Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue

Package Overview
Dependencies
Maintainers
1
Versions
530
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

6

dist/vue.min.js
/*
Vue.js v0.10.0
Vue.js v0.10.1
(c) 2014 Evan You
License: MIT
*/
!function(){"use strict";function e(t,i,n){var r=e.resolve(t);if(null!=r){var s=e.modules[r];if(!s._resolving&&!s.exports){var o={};o.exports={},o.client=o.component=!0,s._resolving=!0,s.call(this,o.exports,e.relative(r),o),delete s._resolving,s.exports=o.exports}return s.exports}}e.modules={},e.aliases={},e.exts=["",".js",".json","/index.js","/index.json"],e.resolve=function(t){"/"===t.charAt(0)&&(t=t.slice(1));for(var i=0;5>i;i++){var n=t+e.exts[i];if(e.modules.hasOwnProperty(n))return n;if(e.aliases.hasOwnProperty(n))return e.aliases[n]}},e.normalize=function(e,t){var i=[];if("."!=t.charAt(0))return t;e=e.split("/"),t=t.split("/");for(var n=0;n<t.length;++n)".."===t[n]?e.pop():"."!=t[n]&&""!=t[n]&&i.push(t[n]);return e.concat(i).join("/")},e.register=function(t,i){e.modules[t]=i},e.alias=function(t,i){e.modules.hasOwnProperty(t)&&(e.aliases[i]=t)},e.relative=function(t){function i(n){var r=i.resolve(n);return e(r,t,n)}var n=e.normalize(t,"..");return i.resolve=function(i){var r=i.charAt(0);if("/"===r)return i.slice(1);if("."===r)return e.normalize(n,i);for(var s=t.split("/"),o=s.length;o--&&"deps"!==s[o];);return i=s.slice(0,o+2).join("/")+"/deps/"+i},i.exists=function(t){return e.modules.hasOwnProperty(i.resolve(t))},i},e.register("vue/src/main.js",function(e,t,i){function n(e){var t=this;e.data&&(e.defaultData=e.data,delete e.data),e=r(e,t.options,!0),a.processOptions(e);var i=function(i,n){n||(i=r(i,e,!0)),t.call(this,i,!0)},s=i.prototype=Object.create(t.prototype);return a.defProtected(s,"constructor",i),i.extend=n,i.super=t,i.options=e,l.forEach(function(e){i[e]=o[e]}),i.use=o.use,i.require=o.require,i}function r(e,t,i){if(e=e||{},!t)return e;for(var n in t)if("el"!==n){var s=e[n],c=t[n];i&&"function"==typeof s&&c?(e[n]=[s],Array.isArray(c)?e[n]=e[n].concat(c):e[n].push(c)):!i||!a.isTrueObject(s)&&!a.isTrueObject(c)||c instanceof o?void 0===s&&(e[n]=c):e[n]=r(s,c)}return e}var s=t("./config"),o=t("./viewmodel"),a=t("./utils"),c=a.hash,l=["directive","filter","partial","effect","component"];t("./observer"),t("./transition"),o.options=s.globalAssets={directives:t("./directives"),filters:t("./filters"),partials:c(),effects:c(),components:c()},l.forEach(function(e){o[e]=function(t,i){var n=this.options[e+"s"];return n||(n=this.options[e+"s"]=c()),i?("partial"===e?i=a.toFragment(i):"component"===e?i=a.toConstructor(i):"filter"===e&&a.checkFilter(i),n[t]=i,this):n[t]}}),o.config=function(e,t){if("string"==typeof e){if(void 0===t)return s[e];s[e]=t}else a.extend(s,e);return this},o.use=function(e){if("string"==typeof e)try{e=t(e)}catch(i){return}var n=[].slice.call(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):e.apply(null,n),this},o.require=function(e){return t("./"+e)},o.extend=n,o.nextTick=a.nextTick,i.exports=o}),e.register("vue/src/emitter.js",function(e,t,i){function n(e){this._ctx=e||this}var r=n.prototype;r.on=function(e,t){return this._cbs=this._cbs||{},(this._cbs[e]=this._cbs[e]||[]).push(t),this},n.prototype.once=function(e,t){function i(){n.off(e,i),t.apply(this,arguments)}var n=this;return this._cbs=this._cbs||{},i.fn=t,this.on(e,i),this},n.prototype.off=function(e,t){if(this._cbs=this._cbs||{},!arguments.length)return this._cbs={},this;var i=this._cbs[e];if(!i)return this;if(1===arguments.length)return delete this._cbs[e],this;for(var n,r=0;r<i.length;r++)if(n=i[r],n===t||n.fn===t){i.splice(r,1);break}return this},n.prototype.emit=function(e,t,i,n){this._cbs=this._cbs||{};var r=this._cbs[e];if(r){r=r.slice(0);for(var s=0,o=r.length;o>s;s++)r[s].call(this._ctx,t,i,n)}return this},i.exports=n}),e.register("vue/src/config.js",function(e,t,i){var n=t("./text-parser");i.exports={prefix:"v",debug:!1,silent:!1,enterClass:"v-enter",leaveClass:"v-leave",interpolate:!0},Object.defineProperty(i.exports,"delimiters",{get:function(){return n.delimiters},set:function(e){n.setDelimiters(e)}})}),e.register("vue/src/utils.js",function(e,t,i){var n,r=t("./config"),s={}.toString,o=window,a=(o.console,o.setTimeout),c=Object.defineProperty,l=/[^\w]this[^\w]/,u="object",h="classList"in document.documentElement,f=i.exports={get:function(e,t){if(t.indexOf(".")<0)return e[t];for(var i=t.split("."),n=-1,r=i.length;++n<r&&null!=e;)e=e[i[n]];return e},set:function(e,t,i){if(t.indexOf(".")<0)return e[t]=i,void 0;for(var n=t.split("."),r=-1,s=n.length-1;++r<s;)null==e[n[r]]&&(e[n[r]]={}),e=e[n[r]];e[n[r]]=i},baseKey:function(e){return e.indexOf(".")>0?e.split(".")[0]:e},hash:function(){return Object.create(null)},attr:function(e,t){var i=r.prefix+"-"+t,n=e.getAttribute(i);return null!==n&&e.removeAttribute(i),n},defProtected:function(e,t,i,n,r){c(e,t,{value:i,enumerable:n,writable:r,configurable:!0})},isObject:function(e){return typeof e===u&&e&&!Array.isArray(e)},isTrueObject:function(e){return"[object Object]"===s.call(e)},bind:function(e,t){return function(i){return e.call(t,i)}},guard:function(e){return null==e?"":"object"==typeof e?JSON.stringify(e):e},checkNumber:function(e){return isNaN(e)||null===e||"boolean"==typeof e?e:Number(e)},extend:function(e,t){for(var i in t)e[i]!==t[i]&&(e[i]=t[i]);return e},unique:function(e){for(var t,i=f.hash(),n=e.length,r=[];n--;)t=e[n],i[t]||(i[t]=1,r.push(t));return r},toFragment:function(e){if("string"!=typeof e)return e;if("#"===e.charAt(0)){var t=document.getElementById(e.slice(1));if(!t)return;if("TEMPLATE"===t.tagName&&t.content)return t.content;e=t.innerHTML}var i,n=document.createElement("div"),r=document.createDocumentFragment();for(n.innerHTML=e.trim();i=n.firstChild;)1===n.nodeType&&r.appendChild(i);return r},toConstructor:function(e){return n=n||t("./viewmodel"),f.isObject(e)?n.extend(e):"function"==typeof e?e:null},checkFilter:function(e){l.test(e.toString())&&(e.computed=!0)},processOptions:function(e){var t,i=e.components,n=e.partials,r=e.template,s=e.filters;if(i)for(t in i)i[t]=f.toConstructor(i[t]);if(n)for(t in n)n[t]=f.toFragment(n[t]);if(s)for(t in s)f.checkFilter(s[t]);r&&(e.template=f.toFragment(r))},nextTick:function(e){a(e,0)},addClass:function(e,t){if(h)e.classList.add(t);else{var i=" "+e.className+" ";i.indexOf(" "+t+" ")<0&&(e.className=(i+t).trim())}},removeClass:function(e,t){if(h)e.classList.remove(t);else{for(var i=" "+e.className+" ",n=" "+t+" ";i.indexOf(n)>=0;)i=i.replace(n," ");e.className=i.trim()}},objectToArray:function(e){var t,i,n=[];for(var r in e)t=e[r],i=f.isObject(t)?t:{$value:t},i.$key=r,n.push(i);return n}}}),e.register("vue/src/compiler.js",function(e,t,i){function n(e,t){var i,n,s=this;s.init=!0,s.destroyed=!1,t=s.options=t||{},l.processOptions(t),m(s,t.compilerOptions),s.repeat=s.repeat||!1,s.expCache=s.expCache||{};var a=s.el=s.setupElement(t);if(s.vm=a.vue_vm=e,s.bindings=l.hash(),s.dirs=[],s.deferred=[],s.computed=[],s.children=[],s.emitter=new o(e),t.methods)for(i in t.methods)s.createBinding(i);if(t.computed)for(i in t.computed)s.createBinding(i);e.$={},e.$el=a,e.$options=t,e.$compiler=s,e.$event=null;var c=t.parent;c&&(s.parent=c.$compiler,c.$compiler.children.push(s),e.$parent=c),e.$root=r(s).vm,s.setupObserver();var u=s.data=t.data||{},h=t.defaultData;if(h)for(i in h)g.call(u,i)||(u[i]=h[i]);var f=t.paramAttributes;if(f)for(n=f.length;n--;)u[f[n]]=l.checkNumber(s.eval(a.getAttribute(f[n])));m(e,u),e.$data=u,s.execHook("created"),u=s.data=e.$data;var p;for(i in e)p=e[i],"$"!==i.charAt(0)&&u[i]!==p&&"function"!=typeof p&&(u[i]=p);for(s.observeData(u),t.template&&this.resolveContent(),s.compile(a,!0),n=s.deferred.length;n--;)s.bindDirective(s.deferred[n]);s.deferred=null,this.computed.length&&d.parse(this.computed),s.init=!1,s.execHook("ready")}function r(e){for(;e.parent;)e=e.parent;return e}var s,o=t("./emitter"),a=t("./observer"),c=t("./config"),l=t("./utils"),u=t("./binding"),h=t("./directive"),f=t("./text-parser"),d=t("./deps-parser"),p=t("./exp-parser"),v=[].slice,m=l.extend,g={}.hasOwnProperty,b=Object.defineProperty,y=["created","ready","beforeDestroy","afterDestroy","attached","detached"],_=["if","repeat","view","component"],x=n.prototype;x.setupElement=function(e){var t,i,n,r,s,o="string"==typeof e.el?document.querySelector(e.el):e.el||document.createElement(e.tagName||"div"),a=e.template;if(a){if(o.hasChildNodes())for(this.rawContent=document.createElement("div");t=o.firstChild;)this.rawContent.appendChild(t);if(e.replace&&1===a.childNodes.length){if(i=a.childNodes[0].cloneNode(!0),o.parentNode&&(o.parentNode.insertBefore(i,o),o.parentNode.removeChild(o)),o.hasAttributes())for(n=o.attributes.length;n--;)r=o.attributes[n],i.setAttribute(r.name,r.value);o=i}else o.appendChild(a.cloneNode(!0))}if(e.id&&(o.id=e.id),e.className&&(o.className=e.className),s=e.attributes)for(r in s)o.setAttribute(r,s[r]);return o},x.resolveContent=function(){function e(e,t){for(var i=e.parentNode,n=0,r=t.length;r>n;n++)i.insertBefore(t[n],e);i.removeChild(e)}var t,i,n,r,s,o=v.call(this.el.getElementsByTagName("content")),a=this.rawContent;if(n=o.length){for(;n--;)t=o[n],a?(i=t.getAttribute("select"),i?t.content=v.call(a.querySelectorAll(i)):s=t):t.content=v.call(t.childNodes);for(n=0,r=o.length;r>n;n++)t=o[n],t!==s&&e(t,t.content);a&&s&&e(s,v.call(a.childNodes))}this.rawContent=null},x.setupObserver=function(){function e(e){r(e),d.catcher.emit("get",a[e])}function t(e,t,i){l.emit("change:"+e,t,i),r(e),a[e].update(t)}function i(e,t){l.on("hook:"+e,function(){t.call(s.vm)})}function n(e){var t=s.children;if(t)for(var i,n=t.length;n--;)i=t[n],i.el.parentNode&&(e="hook:"+(e?"attached":"detached"),i.observer.emit(e),i.emitter.emit(e))}function r(e){a[e]||s.createBinding(e)}var s=this,a=s.bindings,c=s.options,l=s.observer=new o;l.proxies={},l._ctx=s.vm,l.on("get",e).on("set",t).on("mutate",t);for(var u,h,f,p=y.length;p--;)if(h=y[p],f=c[h],Array.isArray(f))for(u=f.length;u--;)i(h,f[u]);else f&&i(h,f);l.on("hook:attached",function(){n(1)}).on("hook:detached",function(){n(0)})},x.observeData=function(e){function t(e){"$data"!==e&&i()}function i(){s.update(n.data),r.emit("change:$data",n.data)}var n=this,r=n.observer;a.observe(e,"",r);var s=n.bindings.$data=new u(n,"$data");s.update(e),b(n.vm,"$data",{get:function(){return n.observer.emit("get","$data"),n.data},set:function(e){var t=n.data;a.unobserve(t,"",r),n.data=e,a.copyPaths(e,t),a.observe(e,"",r),i()}}),r.on("set",t).on("mutate",t)},x.compile=function(e,t){var i=e.nodeType;1===i&&"SCRIPT"!==e.tagName?this.compileElement(e,t):3===i&&c.interpolate&&this.compileTextNode(e)},x.checkPriorityDir=function(e,t,i){var n,r,s;if("component"===e&&i!==!0&&(s=this.resolveComponent(t,void 0,!0))?(r=h.parse(e,"",this,t),r.Ctor=s):(n=l.attr(t,e),r=n&&h.parse(e,n,this,t)),r){if(i===!0)return;return this.deferred.push(r),!0}},x.compileElement=function(e,t){if("TEXTAREA"===e.tagName&&e.value&&(e.value=this.eval(e.value)),e.hasAttributes()||e.tagName.indexOf("-")>-1){if(null!==l.attr(e,"pre"))return;for(var i=0,n=_.length;n>i;i++)if(this.checkPriorityDir(_[i],e,t))return;e.vue_trans=l.attr(e,"transition"),e.vue_anim=l.attr(e,"animation"),e.vue_effect=this.eval(l.attr(e,"effect"));var r,s,o,a,u,d,p=c.prefix+"-",m=v.call(e.attributes),g=this.options.paramAttributes;for(i=m.length;i--;){if(r=m[i],s=!1,0===r.name.indexOf(p))for(s=!0,o=h.split(r.value),n=o.length;n--;)a=o[n],d=r.name.slice(p.length),u=h.parse(d,a,this,e),"with"===d?this.bindDirective(u,this.parent):this.bindDirective(u);else c.interpolate&&(a=f.parseAttr(r.value),a&&(u=h.parse("attr",r.name+":"+a,this,e),g&&g.indexOf(r.name)>-1?this.bindDirective(u,this.parent):this.bindDirective(u)));s&&"cloak"!==d&&e.removeAttribute(r.name)}}e.hasChildNodes()&&v.call(e.childNodes).forEach(this.compile,this)},x.compileTextNode=function(e){var t=f.parse(e.nodeValue);if(t){for(var i,n,r,s=0,o=t.length;o>s;s++)n=t[s],r=null,n.key?">"===n.key.charAt(0)?(i=document.createComment("ref"),r=h.parse("partial",n.key.slice(1),this,i)):n.html?(i=document.createComment(c.prefix+"-html"),r=h.parse("html",n.key,this,i)):(i=document.createTextNode(""),r=h.parse("text",n.key,this,i)):i=document.createTextNode(n),e.parentNode.insertBefore(i,e),this.bindDirective(r);e.parentNode.removeChild(e)}},x.bindDirective=function(e,t){if(e){if(this.dirs.push(e),e.isEmpty||e.isLiteral)return e.bind&&e.bind(),void 0;var i,n=t||this,r=e.key;if(e.isExp)i=n.createBinding(r,e);else{for(;n&&!n.hasKey(r);)n=n.parent;n=n||this,i=n.bindings[r]||n.createBinding(r)}i.dirs.push(e),e.binding=i;var s=i.val();e.bind&&e.bind(s),e.update(s,!0)}},x.createBinding=function(e,t){var i=this,n=i.options.methods,r=t&&t.isExp,s=t&&t.isFn||n&&n[e],o=i.bindings,c=i.options.computed,h=new u(i,e,r,s);if(r)i.defineExp(e,h,t);else if(s)o[e]=h,h.value=i.vm[e]=n[e];else if(o[e]=h,h.root)c&&c[e]?i.defineComputed(e,h,c[e]):"$"!==e.charAt(0)?i.defineProp(e,h):i.defineMeta(e,h);else if(c&&c[l.baseKey(e)])i.defineExp(e,h);else{a.ensurePath(i.data,e);var f=e.slice(0,e.lastIndexOf("."));o[f]||i.createBinding(f)}return h},x.defineProp=function(e,t){var i=this,n=i.data,r=n.__emitter__;g.call(n,e)||(n[e]=void 0),r&&!g.call(r.values,e)&&a.convertKey(n,e),t.value=n[e],b(i.vm,e,{get:function(){return i.data[e]},set:function(t){i.data[e]=t}})},x.defineMeta=function(e,t){var i=this.observer;t.value=this.data[e],delete this.data[e],b(this.vm,e,{get:function(){return a.shouldGet&&i.emit("get",e),t.value},set:function(t){i.emit("set",e,t)}})},x.defineExp=function(e,t,i){var n=i&&i.computeFilters&&i.filters,r=n?i.expression:e,s=this.expCache[r];s||(s=this.expCache[r]=p.parse(e,this,null,n)),s&&this.markComputed(t,s)},x.defineComputed=function(e,t,i){this.markComputed(t,i),b(this.vm,e,{get:t.value.$get,set:t.value.$set})},x.markComputed=function(e,t){e.isComputed=!0,e.isFn?e.value=t:("function"==typeof t&&(t={$get:t}),e.value={$get:l.bind(t.$get,this.vm),$set:t.$set?l.bind(t.$set,this.vm):void 0}),this.computed.push(e)},x.getOption=function(e,t){var i=this.options,n=this.parent,r=c.globalAssets;return i[e]&&i[e][t]||(n?n.getOption(e,t):r[e]&&r[e][t])},x.execHook=function(e){e="hook:"+e,this.observer.emit(e),this.emitter.emit(e)},x.hasKey=function(e){var t=l.baseKey(e);return g.call(this.data,t)||g.call(this.vm,t)},x.eval=function(e,t){var i=f.parseAttr(e);return i?p.eval(i,this,t):e},x.resolveComponent=function(e,i,n){s=s||t("./viewmodel");var r=l.attr(e,"component"),o=e.tagName,a=this.eval(r,i),c=o.indexOf("-")>0&&o.toLowerCase(),u=this.getOption("components",a||c);return n?""===r?s:u:u||s},x.destroy=function(){if(!this.destroyed){var e,t,i,n,r,s=this,o=s.vm,c=s.el,l=s.dirs,u=s.computed,h=s.bindings,f=s.children,d=s.parent;for(s.execHook("beforeDestroy"),a.unobserve(s.data,"",s.observer),e=l.length;e--;)i=l[e],i.binding&&i.binding.compiler!==s&&(n=i.binding.dirs,n&&n.splice(n.indexOf(i),1)),i.unbind();for(e=u.length;e--;)u[e].unbind();for(t in h)r=h[t],r&&r.unbind();for(e=f.length;e--;)f[e].destroy();d&&d.children.splice(d.children.indexOf(s),1),c===document.body?c.innerHTML="":o.$remove(),c.vue_vm=null,s.destroyed=!0,s.execHook("afterDestroy"),s.observer.off(),s.emitter.off()}},i.exports=n}),e.register("vue/src/viewmodel.js",function(e,t,i){function n(e){new s(this,e)}function r(e){return"string"==typeof e?document.querySelector(e):e}var s=t("./compiler"),o=t("./utils"),a=t("./transition"),c=t("./batcher"),l=[].slice,u=o.defProtected,h=o.nextTick,f=new c,d=1,p=n.prototype;u(p,"$get",function(e){var t=o.get(this,e);return void 0===t&&this.$parent?this.$parent.$get(e):t}),u(p,"$set",function(e,t){o.set(this,e,t)}),u(p,"$watch",function(e,t){function i(){var e=l.call(arguments);f.push({id:n,override:!0,execute:function(){t.apply(r,e)}})}var n=d++,r=this;t._fn=i,r.$compiler.observer.on("change:"+e,i)}),u(p,"$unwatch",function(e,t){var i=["change:"+e],n=this.$compiler.observer;t&&i.push(t._fn),n.off.apply(n,i)}),u(p,"$destroy",function(){this.$compiler.destroy()}),u(p,"$broadcast",function(){for(var e,t=this.$compiler.children,i=t.length;i--;)e=t[i],e.emitter.emit.apply(e.emitter,arguments),e.vm.$broadcast.apply(e.vm,arguments)}),u(p,"$dispatch",function(){var e=this.$compiler,t=e.emitter,i=e.parent;t.emit.apply(t,arguments),i&&i.vm.$dispatch.apply(i.vm,arguments)}),["emit","on","off","once"].forEach(function(e){u(p,"$"+e,function(){var t=this.$compiler.emitter;t[e].apply(t,arguments)})}),u(p,"$appendTo",function(e,t){e=r(e);var i=this.$el;a(i,1,function(){e.appendChild(i),t&&h(t)},this.$compiler)}),u(p,"$remove",function(e){var t=this.$el;a(t,-1,function(){t.parentNode&&t.parentNode.removeChild(t),e&&h(e)},this.$compiler)}),u(p,"$before",function(e,t){e=r(e);var i=this.$el;a(i,1,function(){e.parentNode.insertBefore(i,e),t&&h(t)},this.$compiler)}),u(p,"$after",function(e,t){e=r(e);var i=this.$el;a(i,1,function(){e.nextSibling?e.parentNode.insertBefore(i,e.nextSibling):e.parentNode.appendChild(i),t&&h(t)},this.$compiler)}),i.exports=n}),e.register("vue/src/binding.js",function(e,t,i){function n(e,t,i,n){this.id=o++,this.value=void 0,this.isExp=!!i,this.isFn=n,this.root=!this.isExp&&-1===t.indexOf("."),this.compiler=e,this.key=t,this.dirs=[],this.subs=[],this.deps=[],this.unbound=!1}var r=t("./batcher"),s=new r,o=1,a=n.prototype;a.update=function(e){if((!this.isComputed||this.isFn)&&(this.value=e),this.dirs.length||this.subs.length){var t=this;s.push({id:this.id,execute:function(){t.unbound||t._update()}})}},a._update=function(){for(var e=this.dirs.length,t=this.val();e--;)this.dirs[e].update(t);this.pub()},a.val=function(){return this.isComputed&&!this.isFn?this.value.$get():this.value},a.pub=function(){for(var e=this.subs.length;e--;)this.subs[e].update()},a.unbind=function(){this.unbound=!0;for(var e=this.dirs.length;e--;)this.dirs[e].unbind();e=this.deps.length;for(var t;e--;)t=this.deps[e].subs,t.splice(t.indexOf(this),1)},i.exports=n}),e.register("vue/src/observer.js",function(e,t,i){function n(e){x(j,e,function(){var t,i,n=E.call(arguments),o=Array.prototype[e].apply(this,n);return"push"===e||"unshift"===e?t=n:"pop"===e||"shift"===e?i=[o]:"splice"===e&&(t=n.slice(2),i=o),r(this,t),s(this,i),this.__emitter__.emit("mutate","",this,{method:e,args:n,result:o,inserted:t,removed:i}),o},!O)}function r(e,t){if(t)for(var i,n,r=t.length;r--;)i=t[r],o(i)&&(i.__emitter__||(a(i),l(i)),n=i.__emitter__.owners,n.indexOf(e)<0&&n.push(e))}function s(e,t){if(t)for(var i,n=t.length;n--;)if(i=t[n],i&&i.__emitter__){var r=i.__emitter__.owners;r&&r.splice(r.indexOf(e))}}function o(e){return"object"==typeof e&&e&&!e.$compiler}function a(e){if(e.__emitter__)return!0;var t=new y;return x(e,"__emitter__",t),t.on("set",function(t,i,n){n&&c(e)}).on("mutate",function(){c(e)}),t.values=_.hash(),t.owners=[],!1}function c(e){for(var t=e.__emitter__.owners,i=t.length;i--;)t[i].__emitter__.emit("set","","",!0)}function l(e){C(e)?f(e):h(e)}function u(e,t){if(O)e.__proto__=t;else for(var i in t)x(e,i,t[i])}function h(e){u(e,A);for(var t in e)d(e,t)}function f(e){u(e,j),r(e,e)}function d(e,t){function i(e,i){s[t]=e,r.emit("set",t,e,i),C(e)&&r.emit("set",t+".length",e.length,i),g(e,t,r)}var n=t.charAt(0);if("$"!==n&&"_"!==n){var r=e.__emitter__,s=r.values;i(e[t]),w(e,t,{enumerable:!0,configurable:!0,get:function(){var e=s[t];return N.shouldGet&&r.emit("get",t),e},set:function(e){var n=s[t];b(n,t,r),v(e,n),i(e,!0)}})}}function p(e){var t=e&&e.__emitter__;if(t)if(C(e))t.emit("set","length",e.length);else{var i,n;for(i in e)n=e[i],t.emit("set",i,n),p(n)}}function v(e,t){if($(e)&&$(t)){var i,n,r;for(i in t)k.call(e,i)||(n=t[i],C(n)?e[i]=[]:$(n)?(r=e[i]={},v(r,n)):e[i]=void 0)}}function m(e,t){for(var i,n=t.split("."),r=0,s=n.length-1;s>r;r++)i=n[r],e[i]||(e[i]={},e.__emitter__&&d(e,i)),e=e[i];$(e)&&(i=n[r],k.call(e,i)||(e[i]=void 0,e.__emitter__&&d(e,i)))}function g(e,t,i){if(o(e)){var n=t?t+".":"",r=a(e),s=e.__emitter__;i.proxies=i.proxies||{};var c=i.proxies[n]={get:function(e){i.emit("get",n+e)},set:function(r,s,o){r&&i.emit("set",n+r,s),t&&o&&i.emit("set",t,e,!0)},mutate:function(e,r,s){var o=e?n+e:t;i.emit("mutate",o,r,s);var a=s.method;"sort"!==a&&"reverse"!==a&&i.emit("set",o+".length",r.length)}};s.on("get",c.get).on("set",c.set).on("mutate",c.mutate),r?p(e):l(e)}}function b(e,t,i){if(e&&e.__emitter__){t=t?t+".":"";var n=i.proxies[t];n&&(e.__emitter__.off("get",n.get).off("set",n.set).off("mutate",n.mutate),i.proxies[t]=null)}}var y=t("./emitter"),_=t("./utils"),x=_.defProtected,$=_.isObject,C=Array.isArray,k={}.hasOwnProperty,w=Object.defineProperty,E=[].slice,O={}.__proto__,j=Object.create(Array.prototype);["push","pop","shift","unshift","splice","sort","reverse"].forEach(n),x(j,"$set",function(e,t){return this.splice(e,1,t)[0]},!O),x(j,"$remove",function(e){return"number"!=typeof e&&(e=this.indexOf(e)),e>-1?this.splice(e,1)[0]:void 0},!O);var A=Object.create(Object.prototype);x(A,"$add",function(e,t){k.call(this,e)||(this[e]=t,d(this,e),this.__emitter__.emit("set",e,t,!0))},!O),x(A,"$delete",function(e){k.call(this,e)&&(this[e]=void 0,delete this[e],this.__emitter__.emit("delete",e))},!O);var N=i.exports={shouldGet:!1,observe:g,unobserve:b,ensurePath:m,copyPaths:v,watch:l,convert:a,convertKey:d}}),e.register("vue/src/directive.js",function(e,t,i){function n(e,t,i,n,o,c){this.id=a++,this.name=e,this.compiler=o,this.vm=o.vm,this.el=c,this.computeFilters=!1;var l=""===i;if("function"==typeof t)this[l?"bind":"_update"]=t;else for(var u in t)"unbind"===u||"update"===u?this["_"+u]=t[u]:this[u]=t[u];if(l||this.isEmpty)return this.isEmpty=!0,void 0;this.expression=(this.isLiteral?o.eval(i):i).trim(),r(this,n);var f=this.expression.slice(n.length).match(h);if(f){this.filters=[];for(var v,m=0,g=f.length;g>m;m++)v=s(f[m],this.compiler),v&&(this.filters.push(v),v.apply.computed&&(this.computeFilters=!0));this.filters.length||(this.filters=null)}else this.filters=null;this.isExp=this.computeFilters||!p.test(this.key)||d.test(this.key)}function r(e,t){var i=t;if(t.indexOf(":")>-1){var n=t.match(u);i=n?n[2].trim():i,e.arg=n?n[1].trim():null}e.key=i}function s(e,t){var i=e.slice(1).match(f);if(i){var n=i[0],r=t.getOption("filters",n);if(r)return{name:n,apply:r,args:i.length>1?i.slice(1):null}}}var o=(t("./utils"),t("./directives")),a=1,c=/(?:['"](?:\\.|[^'"])*['"]|\((?:\\.|[^\)])*\)|\\.|[^,])+/g,l=/^(?:['"](?:\\.|[^'"])*['"]|\\.|[^\|]|\|\|)+/,u=/^([\w-$ ]+):(.+)$/,h=/\|[^\|]+/g,f=/[^\s']+|'[^']+'|[^\s"]+|"[^"]+"/g,d=/^\$(parent|root)\./,p=/^[\w\.$]+$/,v=n.prototype;v.update=function(e,t){(t||e!==this.value||e&&"object"==typeof e)&&(this.value=e,this._update&&this._update(this.filters&&!this.computeFilters?this.applyFilters(e):e,t))},v.applyFilters=function(e){for(var t,i=e,n=0,r=this.filters.length;r>n;n++)t=this.filters[n],i=t.apply.apply(this.vm,[i].concat(t.args));return i},v.unbind=function(){this.el&&this.vm&&(this._unbind&&this._unbind(),this.vm=this.el=this.binding=this.compiler=null)},n.split=function(e){return e.indexOf(",")>-1?e.match(c)||[""]:[e]},n.parse=function(e,t,i,r){var s=i.getOption("directives",e)||o[e];if(s){var a;if(t.indexOf("|")>-1){var c=t.match(l);c&&(a=c[0].trim())}else a=t.trim();return a||""===t?new n(e,s,t,a,i,r):void 0}},i.exports=n}),e.register("vue/src/exp-parser.js",function(e,t){function i(e){return e=e.replace(m,"").replace(g,",").replace(v,"").replace(b,"").replace(y,""),e?e.split(/,+/):[]}function n(e,t,i){var n="",r=0,s=t;if(i&&void 0!==a.get(i,e))return"$temp.";for(;t&&!t.hasKey(e);)t=t.parent,r++;if(t){for(;r--;)n+="$parent.";t.bindings[e]||"$"===e.charAt(0)||t.createBinding(e)}else s.createBinding(e);return n}function r(e,t){var i;try{i=new Function(e)}catch(n){}return i}function s(e){return"$"===e.charAt(0)?"\\"+e:e}function o(e){return e.indexOf('"')>-1?e.replace(d,"'"):e}var a=t("./utils"),c=/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/g,l=/"(\d+)"/g,u=/\n/g,h=new RegExp("constructor".split("").join("['\"+, ]*")),f=/\\u\d\d\d\d/,d=/"/g,p="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,Math",v=new RegExp(["\\b"+p.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),m=/\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,g=/[^\w$]+/g,b=/\b\d[^,]*/g,y=/^,+|,+$/g;e.parse=function(e,t,d,p){function v(e){var t=x.length;return x[t]=e.replace(u,"\\n"),'"'+t+'"'}function m(e){var i=e.charAt(0);e=e.slice(1);var r="this."+n(e,t,d)+e;return _[e]||(y+=r+";",_[e]=1),i+r}function g(e,t){return x[t]}if(!f.test(e)&&!h.test(e)){var b=i(e);if(!b.length)return r("return "+e,e);b=a.unique(b);var y="",_=a.hash(),x=[],$=new RegExp("[^$\\w\\.]("+b.map(s).join("|")+")[$\\w\\.]*\\b","g"),C=(" "+e).replace(c,v).replace($,m).replace(l,g);if(p)for(var k,w,E=0,O=p.length;O>E;E++)w=p[E],k=w.args?',"'+w.args.map(o).join('","')+'"':"",C='this.$compiler.getOption("filters", "'+w.name+'").call(this,'+C+k+")";return C=y+"return "+C,r(C,e)}},e.eval=function(t,i,n){var r,s=e.parse(t,i,n);return s&&(i.vm.$temp=n,r=s.call(i.vm),delete i.vm.$temp),r}}),e.register("vue/src/text-parser.js",function(e){function t(){var e=i(o),t=i(a);return new RegExp(e+e+e+"?(.+?)"+t+"?"+t+t)}function i(e){return e.replace(c,"\\$&")}function n(i){e.delimiters=i,o=i[0],a=i[1],l=t()}function r(e){if(!l.test(e))return null;for(var t,i,n,r,s=[];t=e.match(l);)i=t.index,i>0&&s.push(e.slice(0,i)),n={key:t[1].trim()},r=t[0],n.html=r.charAt(2)===o&&r.charAt(r.length-3)===a,s.push(n),e=e.slice(i+t[0].length);return e.length&&s.push(e),s}function s(e){var t=r(e);if(!t)return null;if(1===t.length)return t[0].key;for(var i,n=[],s=0,o=t.length;o>s;s++)i=t[s],n.push(i.key?"("+i.key+")":'"'+i+'"');return n.join("+")}var o="{",a="}",c=/[-.*+?^${}()|[\]\/\\]/g,l=t();e.parse=r,e.parseAttr=s,e.setDelimiters=n,e.delimiters=[o,a]}),e.register("vue/src/deps-parser.js",function(e,t,i){function n(e){if(!e.isFn){var t=s.hash();e.deps=[],a.on("get",function(i){var n=t[i.key];n&&n.compiler===i.compiler||i.compiler.repeat&&i.compiler.parent===e.compiler||(t[i.key]=i,e.deps.push(i),i.subs.push(e))}),e.value.$get(),a.off("get")}}var r=t("./emitter"),s=t("./utils"),o=t("./observer"),a=new r;i.exports={catcher:a,parse:function(e){o.shouldGet=!0,e.forEach(n),o.shouldGet=!1}}}),e.register("vue/src/filters.js",function(e,t,i){function n(e,t){if(s.isObject(e)){for(var i in e)if(n(e[i],t))return!0}else if(null!=e)return e.toString().toLowerCase().indexOf(t)>-1}function r(e){return c.test(e)?e.slice(1,-1):void 0}var s=t("./utils"),o=s.get,a=[].slice,c=/^'.*'$/,l=i.exports=s.hash();l.capitalize=function(e){return e||0===e?(e=e.toString(),e.charAt(0).toUpperCase()+e.slice(1)):""},l.uppercase=function(e){return e||0===e?e.toString().toUpperCase():""},l.lowercase=function(e){return e||0===e?e.toString().toLowerCase():""},l.currency=function(e,t){if(!e&&0!==e)return"";t=t||"$";var i=Math.floor(e).toString(),n=i.length%3,r=n>0?i.slice(0,n)+(i.length>3?",":""):"",s="."+e.toFixed(2).slice(-2);return t+r+i.slice(n).replace(/(\d{3})(?=\d)/g,"$1,")+s},l.pluralize=function(e){var t=a.call(arguments,1);return t.length>1?t[e-1]||t[t.length-1]:t[e-1]||t[0]+"s"};var u={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};l.key=function(e,t){if(e){var i=u[t];return i||(i=parseInt(t,10)),function(t){t.keyCode===i&&e.call(this,t)}}},l.filterBy=function(e,t,i,a){i&&"in"!==i&&(a=i);var c=r(t)||this.$get(t);return c?(c=c.toLowerCase(),a=a&&(r(a)||this.$get(a)),Array.isArray(e)||(e=s.objectToArray(e)),e.filter(function(e){return a?n(o(e,a),c):n(e,c)})):e},l.filterBy.computed=!0,l.orderBy=function(e,t,i){var n=r(t)||this.$get(t);if(!n)return e;Array.isArray(e)||(e=s.objectToArray(e));var a=1;return i&&("-1"===i?a=-1:"!"===i.charAt(0)?(i=i.slice(1),a=this.$get(i)?1:-1):a=this.$get(i)?-1:1),e.slice().sort(function(e,t){return e=o(e,n),t=o(t,n),e===t?0:e>t?a:-a})},l.orderBy.computed=!0}),e.register("vue/src/transition.js",function(e,t,i){function n(e,t,i,n){if(!o.trans)return i(),f.CSS_SKIP;var r,s=e.classList,c=e.vue_trans_cb,u=a.enterClass,h=a.leaveClass,d=n?o.anim:o.trans;return c&&(e.removeEventListener(d,c),s.remove(u),s.remove(h),e.vue_trans_cb=null),t>0?(s.add(u),i(),n?(r=function(t){t.target===e&&(e.removeEventListener(d,r),e.vue_trans_cb=null,s.remove(u))},e.addEventListener(d,r),e.vue_trans_cb=r):l.push({execute:function(){s.remove(u)}}),f.CSS_E):(e.offsetWidth||e.offsetHeight?(s.add(h),r=function(t){t.target===e&&(e.removeEventListener(d,r),e.vue_trans_cb=null,i(),s.remove(h))},e.addEventListener(d,r),e.vue_trans_cb=r):i(),f.CSS_L)}function r(e,t,i,n,r){function s(t,i){var n=u(function(){t(),l.splice(l.indexOf(n),1),l.length||(e.vue_timeouts=null)},i);l.push(n)}var o=r.getOption("effects",n);if(!o)return i(),f.JS_SKIP;var a=o.enter,c=o.leave,l=e.vue_timeouts;if(l)for(var d=l.length;d--;)h(l[d]);return l=e.vue_timeouts=[],t>0?"function"!=typeof a?(i(),f.JS_SKIP_E):(a(e,i,s),f.JS_E):"function"!=typeof c?(i(),f.JS_SKIP_L):(c(e,i,s),f.JS_L)}function s(){var e=document.createElement("vue"),t="transitionend",i={transition:t,mozTransition:t,webkitTransition:"webkitTransitionEnd"},n={};for(var r in i)if(void 0!==e.style[r]){n.trans=i[r];break}return n.anim=""===e.style.animation?"animationend":"webkitAnimationEnd",n}var o=s(),a=t("./config"),c=t("./batcher"),l=new c,u=window.setTimeout,h=window.clearTimeout,f={CSS_E:1,CSS_L:2,JS_E:3,JS_L:4,CSS_SKIP:-1,JS_SKIP:-2,JS_SKIP_E:-3,JS_SKIP_L:-4,INIT:-5,SKIP:-6};l._preFlush=function(){document.body.offsetHeight};var d=i.exports=function(e,t,i,s){var o=function(){i(),s.execHook(t>0?"attached":"detached")};if(s.init)return o(),f.INIT;var a=""===e.vue_trans,c=""===e.vue_anim,l=e.vue_effect;return l?r(e,t,o,l,s):a||c?n(e,t,o,c):(o(),f.SKIP)};d.codes=f}),e.register("vue/src/batcher.js",function(e,t,i){function n(){this.reset()}var r=t("./utils"),s=n.prototype;s.push=function(e){if(e.id&&this.has[e.id]){if(e.override){var t=this.has[e.id];t.cancelled=!0,this.queue.push(e),this.has[e.id]=e}}else this.queue.push(e),this.has[e.id]=e,this.waiting||(this.waiting=!0,r.nextTick(r.bind(this.flush,this)))},s.flush=function(){this._preFlush&&this._preFlush();for(var e=0;e<this.queue.length;e++){var t=this.queue[e];t.cancelled||t.execute()}this.reset()},s.reset=function(){this.has=r.hash(),this.queue=[],this.waiting=!1},i.exports=n}),e.register("vue/src/directives/index.js",function(e,t,i){var n=t("../utils"),r=t("../config"),s=t("../transition"),o=i.exports=n.hash();o.component={isLiteral:!0,bind:function(){this.el.vue_vm||(this.childVM=new this.Ctor({el:this.el,parent:this.vm}))},unbind:function(){this.childVM&&this.childVM.$destroy()}},o.attr={bind:function(){var e=this.vm.$options.paramAttributes;this.isParam=e&&e.indexOf(this.arg)>-1},update:function(e){e||0===e?this.el.setAttribute(this.arg,e):this.el.removeAttribute(this.arg),this.isParam&&(this.vm[this.arg]=n.checkNumber(e))}},o.text={bind:function(){this.attr=3===this.el.nodeType?"nodeValue":"textContent"},update:function(e){this.el[this.attr]=n.guard(e)}},o.show=function(e){var t=this.el,i=e?"":"none",n=function(){t.style.display=i};s(t,e?1:-1,n,this.compiler)},o["class"]=function(e){this.arg?n[e?"addClass":"removeClass"](this.el,this.arg):(this.lastVal&&n.removeClass(this.el,this.lastVal),e&&(n.addClass(this.el,e),this.lastVal=e))},o.cloak={isEmpty:!0,bind:function(){var e=this.el;this.compiler.observer.once("hook:ready",function(){e.removeAttribute(r.prefix+"-cloak")})}},o.ref={isLiteral:!0,bind:function(){var e=this.expression;e&&(this.vm.$parent.$[e]=this.vm)},unbind:function(){var e=this.expression;e&&delete this.vm.$parent.$[e]}},o.on=t("./on"),o.repeat=t("./repeat"),o.model=t("./model"),o["if"]=t("./if"),o["with"]=t("./with"),o.html=t("./html"),o.style=t("./style"),o.partial=t("./partial"),o.view=t("./view")}),e.register("vue/src/directives/if.js",function(e,t,i){var n=t("../utils");i.exports={bind:function(){this.parent=this.el.parentNode,this.ref=document.createComment("vue-if"),this.Ctor=this.compiler.resolveComponent(this.el),this.parent.insertBefore(this.ref,this.el),this.parent.removeChild(this.el),n.attr(this.el,"view"),n.attr(this.el,"repeat")
},update:function(e){e?this.childVM||(this.childVM=new this.Ctor({el:this.el.cloneNode(!0),parent:this.vm}),this.compiler.init?this.parent.insertBefore(this.childVM.$el,this.ref):this.childVM.$before(this.ref)):this._unbind()},unbind:function(){this.childVM&&(this.childVM.$destroy(),this.childVM=null)}}}),e.register("vue/src/directives/repeat.js",function(e,t,i){function n(e,t){for(var i,n=0,r=e.length;r>n;n++)if(i=e[n],!i.$reused&&i.$value===t)return n;return-1}var r=t("../utils"),s=t("../config");i.exports={bind:function(){this.identifier="$r"+this.id,this.expCache=r.hash();var e=this.el,t=this.container=e.parentNode;this.childId=this.compiler.eval(r.attr(e,"ref")),this.ref=document.createComment(s.prefix+"-repeat-"+this.key),t.insertBefore(this.ref,e),t.removeChild(e),this.initiated=!1,this.collection=null,this.vms=null},update:function(e){Array.isArray(e)||r.isObject(e)&&(e=r.objectToArray(e)),this.initiated||e&&e.length||this.dryBuild(),this.oldVMs=this.vms,this.oldCollection=this.collection,e=this.collection=e||[];var t=e[0]&&r.isObject(e[0]);this.vms=this.oldCollection?this.diff(e,t):this.init(e,t),this.childId&&(this.vm.$[this.childId]=this.vms)},dryBuild:function(){var e=this.el.cloneNode(!0),t=this.compiler.resolveComponent(e);new t({el:e,parent:this.vm,data:{$index:0},compilerOptions:{repeat:!0,expCache:this.expCache}}).$destroy(),this.initiated=!0},init:function(e,t){for(var i,n=[],r=0,s=e.length;s>r;r++)i=this.build(e[r],r,t),n.push(i),this.compiler.init?this.container.insertBefore(i.$el,this.ref):i.$before(this.ref);return n},diff:function(e,t){var i,r,s,o,a,c,l,u,h=this.container,f=this.oldVMs,d=[];for(d.length=e.length,i=0,r=e.length;r>i;i++)s=e[i],t?(s.$index=i,s.__emitter__&&s.__emitter__[this.identifier]?s.$reused=!0:d[i]=this.build(s,i,t)):(a=n(f,s),a>-1?(f[a].$reused=!0,f[a].$data.$index=i):d[i]=this.build(s,i,t));for(i=0,r=f.length;r>i;i++)o=f[i],s=o.$data,s.$reused&&(o.$reused=!0,delete s.$reused),o.$reused?(o.$index=s.$index,s.$key&&s.$key!==o.$key&&(o.$key=s.$key),d[o.$index]=o):(delete s.__emitter__[this.identifier],o.$destroy());for(i=d.length;i--;)if(o=d[i],s=o.$data,c=d[i+1],o.$reused){for(u=o.$el.nextSibling;!u.vue_vm&&u!==this.ref;)u=u.nextSibling;if(l=u.vue_vm,l!==c)if(c){for(u=c.$el;!u.parentNode;)c=d[u.vue_vm.$index+1],u=c?c.$el:this.ref;h.insertBefore(o.$el,u)}else h.insertBefore(o.$el,this.ref);delete o.$reused,delete s.$index,delete s.$key}else o.$before(c?c.$el:this.ref);return d},build:function(e,t,i){var n,r,s=!i||this.arg;s&&(n=e,r=this.arg||"$value",e={},e[r]=n),e.$index=t;var o=this.el.cloneNode(!0),a=this.compiler.resolveComponent(o,e),c=new a({el:o,data:e,parent:this.vm,compilerOptions:{repeat:!0,expCache:this.expCache}});if(e.__emitter__[this.identifier]=!0,s){var l=this,u=function(e){l.lock=!0,l.collection.$set(c.$index,e),l.lock=!1};c.$compiler.observer.on("change:"+r,u)}return c},unbind:function(){if(this.childId&&delete this.vm.$[this.childId],this.vms)for(var e=this.vms.length;e--;)this.vms[e].$destroy()}}}),e.register("vue/src/directives/on.js",function(e,t,i){t("../utils");i.exports={isFn:!0,bind:function(){this.context=this.binding.isExp?this.vm:this.binding.compiler.vm},update:function(e){if("function"==typeof e){this._unbind();var t=this.vm,i=this.context;this.handler=function(n){n.targetVM=t,i.$event=n;var r=e.call(i,n);return i.$event=null,r},this.el.addEventListener(this.arg,this.handler)}},unbind:function(){this.el.removeEventListener(this.arg,this.handler)}}}),e.register("vue/src/directives/model.js",function(e,t,i){function n(e){return o.call(e.options,function(e){return e.selected}).map(function(e){return e.value||e.text})}var r=t("../utils"),s=navigator.userAgent.indexOf("MSIE 9.0")>0,o=[].filter;i.exports={bind:function(){var e=this,t=e.el,i=t.type,n=t.tagName;e.lock=!1,e.ownerVM=e.binding.compiler.vm,e.event=e.compiler.options.lazy||"SELECT"===n||"checkbox"===i||"radio"===i?"change":"input",e.attr="checkbox"===i?"checked":"INPUT"===n||"SELECT"===n||"TEXTAREA"===n?"value":"innerHTML","SELECT"===n&&t.hasAttribute("multiple")&&(this.multi=!0);var o=!1;e.cLock=function(){o=!0},e.cUnlock=function(){o=!1},t.addEventListener("compositionstart",this.cLock),t.addEventListener("compositionend",this.cUnlock),e.set=e.filters?function(){if(!o){var i;try{i=t.selectionStart}catch(n){}e._set(),r.nextTick(function(){void 0!==i&&t.setSelectionRange(i,i)})}}:function(){o||(e.lock=!0,e._set(),r.nextTick(function(){e.lock=!1}))},t.addEventListener(e.event,e.set),s&&(e.onCut=function(){r.nextTick(function(){e.set()})},e.onDel=function(t){(46===t.keyCode||8===t.keyCode)&&e.set()},t.addEventListener("cut",e.onCut),t.addEventListener("keyup",e.onDel))},_set:function(){this.ownerVM.$set(this.key,this.multi?n(this.el):this.el[this.attr])},update:function(e,t){if(t&&void 0===e)return this._set();if(!this.lock){var i=this.el;"SELECT"===i.tagName?(i.selectedIndex=-1,this.multi&&Array.isArray(e)?e.forEach(this.updateSelect,this):this.updateSelect(e)):"radio"===i.type?i.checked=e==i.value:"checkbox"===i.type?i.checked=!!e:i[this.attr]=r.guard(e)}},updateSelect:function(e){for(var t=this.el.options,i=t.length;i--;)if(t[i].value==e){t[i].selected=!0;break}},unbind:function(){var e=this.el;e.removeEventListener(this.event,this.set),e.removeEventListener("compositionstart",this.cLock),e.removeEventListener("compositionend",this.cUnlock),s&&(e.removeEventListener("cut",this.onCut),e.removeEventListener("keyup",this.onDel))}}}),e.register("vue/src/directives/with.js",function(e,t,i){var n=t("../utils");i.exports={bind:function(){var e=this,t=e.arg,i=e.key,r=e.compiler,s=e.binding.compiler;return r===s?(this.alone=!0,void 0):(t&&(r.bindings[t]||r.createBinding(t),r.observer.on("change:"+t,function(t){r.init||(e.lock||(e.lock=!0,n.nextTick(function(){e.lock=!1})),s.vm.$set(i,t))})),void 0)},update:function(e){this.alone||this.lock||(this.arg?this.vm.$set(this.arg,e):this.vm.$data=e)}}}),e.register("vue/src/directives/html.js",function(e,t,i){var n=t("../utils").guard,r=[].slice;i.exports={bind:function(){8===this.el.nodeType&&(this.holder=document.createElement("div"),this.nodes=[])},update:function(e){e=n(e),this.holder?this.swap(e):this.el.innerHTML=e},swap:function(e){for(var t,i=this.el.parentNode,n=this.holder,s=this.nodes,o=s.length;o--;)i.removeChild(s[o]);for(n.innerHTML=e,s=this.nodes=r.call(n.childNodes),o=0,t=s.length;t>o;o++)i.insertBefore(s[o],this.el)}}}),e.register("vue/src/directives/style.js",function(e,t,i){function n(e){return e[1].toUpperCase()}var r=/-([a-z])/g,s=["webkit","moz","ms"];i.exports={bind:function(){var e=this.arg;if(e){var t=e.charAt(0);"$"===t?(e=e.slice(1),this.prefixed=!0):"-"===t&&(e=e.slice(1)),this.prop=e.replace(r,n)}},update:function(e){var t=this.prop;if(t){if(this.el.style[t]=e,this.prefixed){t=t.charAt(0).toUpperCase()+t.slice(1);for(var i=s.length;i--;)this.el.style[s[i]+t]=e}}else this.el.style.cssText=e}}}),e.register("vue/src/directives/partial.js",function(e,t,i){t("../utils");i.exports={isLiteral:!0,bind:function(){var e=this.expression;if(e){var t=this.el,i=this.compiler,n=i.getOption("partials",e);if(n)if(n=n.cloneNode(!0),8===t.nodeType){var r=[].slice.call(n.childNodes),s=t.parentNode;s.insertBefore(n,t),s.removeChild(t),r.forEach(i.compile,i)}else t.innerHTML="",t.appendChild(n.cloneNode(!0))}}}}),e.register("vue/src/directives/view.js",function(e,t,i){i.exports={bind:function(){var e=this.raw=this.el,t=e.parentNode,i=this.ref=document.createComment("v-view");t.insertBefore(i,e),t.removeChild(e);for(var n,r=this.inner=document.createElement("div");n=e.firstChild;)r.appendChild(n)},update:function(e){this._unbind();var t=this.compiler.getOption("components",e);t&&(this.childVM=new t({el:this.raw.cloneNode(!0),parent:this.vm,compilerOptions:{rawContent:this.inner.cloneNode(!0)}}),this.el=this.childVM.$el,this.compiler.init?this.ref.parentNode.insertBefore(this.el,this.ref):this.childVM.$before(this.ref))},unbind:function(){this.childVM&&this.childVM.$destroy()}}}),e.alias("vue/src/main.js","vue/index.js"),"object"==typeof exports?module.exports=e("vue"):"function"==typeof define&&define.amd?define(function(){return e("vue")}):window.Vue=e("vue")}();
!function(){"use strict";function e(t,i,n){var r=e.resolve(t);if(null!=r){var s=e.modules[r];if(!s._resolving&&!s.exports){var o={};o.exports={},o.client=o.component=!0,s._resolving=!0,s.call(this,o.exports,e.relative(r),o),delete s._resolving,s.exports=o.exports}return s.exports}}e.modules={},e.aliases={},e.exts=["",".js",".json","/index.js","/index.json"],e.resolve=function(t){"/"===t.charAt(0)&&(t=t.slice(1));for(var i=0;5>i;i++){var n=t+e.exts[i];if(e.modules.hasOwnProperty(n))return n;if(e.aliases.hasOwnProperty(n))return e.aliases[n]}},e.normalize=function(e,t){var i=[];if("."!=t.charAt(0))return t;e=e.split("/"),t=t.split("/");for(var n=0;n<t.length;++n)".."===t[n]?e.pop():"."!=t[n]&&""!=t[n]&&i.push(t[n]);return e.concat(i).join("/")},e.register=function(t,i){e.modules[t]=i},e.alias=function(t,i){e.modules.hasOwnProperty(t)&&(e.aliases[i]=t)},e.relative=function(t){function i(n){var r=i.resolve(n);return e(r,t,n)}var n=e.normalize(t,"..");return i.resolve=function(i){var r=i.charAt(0);if("/"===r)return i.slice(1);if("."===r)return e.normalize(n,i);for(var s=t.split("/"),o=s.length;o--&&"deps"!==s[o];);return i=s.slice(0,o+2).join("/")+"/deps/"+i},i.exists=function(t){return e.modules.hasOwnProperty(i.resolve(t))},i},e.register("vue/src/main.js",function(e,t,i){function n(e){var t=this;e.data&&(e.defaultData=e.data,delete e.data),e=r(e,t.options,!0),a.processOptions(e);var i=function(i,n){n||(i=r(i,e,!0)),t.call(this,i,!0)},s=i.prototype=Object.create(t.prototype);return a.defProtected(s,"constructor",i),i.extend=n,i.super=t,i.options=e,u.forEach(function(e){i[e]=o[e]}),i.use=o.use,i.require=o.require,i}function r(e,t,i){if(e=e||{},!t)return e;for(var n in t)if("el"!==n){var s=e[n],c=t[n];i&&"function"==typeof s&&c?(e[n]=[s],Array.isArray(c)?e[n]=e[n].concat(c):e[n].push(c)):!i||!a.isTrueObject(s)&&!a.isTrueObject(c)||c instanceof o?void 0===s&&(e[n]=c):e[n]=r(s,c)}return e}var s=t("./config"),o=t("./viewmodel"),a=t("./utils"),c=a.hash,u=["directive","filter","partial","effect","component"];t("./observer"),t("./transition"),o.options=s.globalAssets={directives:t("./directives"),filters:t("./filters"),partials:c(),effects:c(),components:c()},u.forEach(function(e){o[e]=function(t,i){var n=this.options[e+"s"];return n||(n=this.options[e+"s"]=c()),i?("partial"===e?i=a.toFragment(i):"component"===e?i=a.toConstructor(i):"filter"===e&&a.checkFilter(i),n[t]=i,this):n[t]}}),o.config=function(e,t){if("string"==typeof e){if(void 0===t)return s[e];s[e]=t}else a.extend(s,e);return this},o.use=function(e){if("string"==typeof e)try{e=t(e)}catch(i){return}var n=[].slice.call(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):e.apply(null,n),this},o.require=function(e){return t("./"+e)},o.extend=n,o.nextTick=a.nextTick,i.exports=o}),e.register("vue/src/emitter.js",function(e,t,i){function n(e){this._ctx=e||this}var r=n.prototype;r.on=function(e,t){return this._cbs=this._cbs||{},(this._cbs[e]=this._cbs[e]||[]).push(t),this},r.once=function(e,t){function i(){n.off(e,i),t.apply(this,arguments)}var n=this;return this._cbs=this._cbs||{},i.fn=t,this.on(e,i),this},r.off=function(e,t){if(this._cbs=this._cbs||{},!arguments.length)return this._cbs={},this;var i=this._cbs[e];if(!i)return this;if(1===arguments.length)return delete this._cbs[e],this;for(var n,r=0;r<i.length;r++)if(n=i[r],n===t||n.fn===t){i.splice(r,1);break}return this},r.emit=function(e,t,i,n){this._cbs=this._cbs||{};var r=this._cbs[e];if(r){r=r.slice(0);for(var s=0,o=r.length;o>s;s++)r[s].call(this._ctx,t,i,n)}return this},i.exports=n}),e.register("vue/src/config.js",function(e,t,i){var n=t("./text-parser");i.exports={prefix:"v",debug:!1,silent:!1,enterClass:"v-enter",leaveClass:"v-leave",interpolate:!0},Object.defineProperty(i.exports,"delimiters",{get:function(){return n.delimiters},set:function(e){n.setDelimiters(e)}})}),e.register("vue/src/utils.js",function(e,t,i){var n,r=t("./config"),s={}.toString,o=window,a=(o.console,o.setTimeout),c=Object.defineProperty,u=/[^\w]this[^\w]/,l="object",h="classList"in document.documentElement,f=i.exports={get:function(e,t){if(t.indexOf(".")<0)return e[t];for(var i=t.split("."),n=-1,r=i.length;++n<r&&null!=e;)e=e[i[n]];return e},set:function(e,t,i){if(t.indexOf(".")<0)return e[t]=i,void 0;for(var n=t.split("."),r=-1,s=n.length-1;++r<s;)null==e[n[r]]&&(e[n[r]]={}),e=e[n[r]];e[n[r]]=i},baseKey:function(e){return e.indexOf(".")>0?e.split(".")[0]:e},hash:function(){return Object.create(null)},attr:function(e,t){var i=r.prefix+"-"+t,n=e.getAttribute(i);return null!==n&&e.removeAttribute(i),n},defProtected:function(e,t,i,n,r){c(e,t,{value:i,enumerable:n,writable:r,configurable:!0})},isObject:function(e){return typeof e===l&&e&&!Array.isArray(e)},isTrueObject:function(e){return"[object Object]"===s.call(e)},bind:function(e,t){return function(i){return e.call(t,i)}},guard:function(e){return null==e?"":"object"==typeof e?JSON.stringify(e):e},checkNumber:function(e){return isNaN(e)||null===e||"boolean"==typeof e?e:Number(e)},extend:function(e,t){for(var i in t)e[i]!==t[i]&&(e[i]=t[i]);return e},unique:function(e){for(var t,i=f.hash(),n=e.length,r=[];n--;)t=e[n],i[t]||(i[t]=1,r.push(t));return r},toFragment:function(e){if("string"!=typeof e)return e;if("#"===e.charAt(0)){var t=document.getElementById(e.slice(1));if(!t)return;if("TEMPLATE"===t.tagName&&t.content)return t.content;e=t.innerHTML}var i,n=document.createElement("div"),r=document.createDocumentFragment();for(n.innerHTML=e.trim();i=n.firstChild;)1===n.nodeType&&r.appendChild(i);return r},toConstructor:function(e){return n=n||t("./viewmodel"),f.isObject(e)?n.extend(e):"function"==typeof e?e:null},checkFilter:function(e){u.test(e.toString())&&(e.computed=!0)},processOptions:function(e){var t,i=e.components,n=e.partials,r=e.template,s=e.filters;if(i)for(t in i)i[t]=f.toConstructor(i[t]);if(n)for(t in n)n[t]=f.toFragment(n[t]);if(s)for(t in s)f.checkFilter(s[t]);r&&(e.template=f.toFragment(r))},nextTick:function(e){a(e,0)},addClass:function(e,t){if(h)e.classList.add(t);else{var i=" "+e.className+" ";i.indexOf(" "+t+" ")<0&&(e.className=(i+t).trim())}},removeClass:function(e,t){if(h)e.classList.remove(t);else{for(var i=" "+e.className+" ",n=" "+t+" ";i.indexOf(n)>=0;)i=i.replace(n," ");e.className=i.trim()}},objectToArray:function(e){var t,i,n=[];for(var r in e)t=e[r],i=f.isObject(t)?t:{$value:t},i.$key=r,n.push(i);return n}}}),e.register("vue/src/compiler.js",function(e,t,i){function n(e,t){var i,n,s=this;s.init=!0,s.destroyed=!1,t=s.options=t||{},u.processOptions(t),m(s,t.compilerOptions),s.repeat=s.repeat||!1,s.expCache=s.expCache||{};var a=s.el=s.setupElement(t);if(s.vm=a.vue_vm=e,s.bindings=u.hash(),s.dirs=[],s.deferred=[],s.computed=[],s.children=[],s.emitter=new o(e),t.methods)for(i in t.methods)s.createBinding(i);if(t.computed)for(i in t.computed)s.createBinding(i);e.$={},e.$el=a,e.$options=t,e.$compiler=s,e.$event=null;var c=t.parent;c&&(s.parent=c.$compiler,c.$compiler.children.push(s),e.$parent=c),e.$root=r(s).vm,s.setupObserver();var l=s.data=t.data||{},h=t.defaultData;if(h)for(i in h)g.call(l,i)||(l[i]=h[i]);var f=t.paramAttributes;if(f)for(n=f.length;n--;)l[f[n]]=u.checkNumber(s.eval(a.getAttribute(f[n])));m(e,l),e.$data=l,s.execHook("created"),l=s.data=e.$data;var p;for(i in e)p=e[i],"$"!==i.charAt(0)&&l[i]!==p&&"function"!=typeof p&&(l[i]=p);for(s.observeData(l),t.template&&this.resolveContent(),s.compile(a,!0),n=s.deferred.length;n--;)s.bindDirective(s.deferred[n]);s.deferred=null,this.computed.length&&d.parse(this.computed),s.init=!1,s.execHook("ready")}function r(e){for(;e.parent;)e=e.parent;return e}var s,o=t("./emitter"),a=t("./observer"),c=t("./config"),u=t("./utils"),l=t("./binding"),h=t("./directive"),f=t("./text-parser"),d=t("./deps-parser"),p=t("./exp-parser"),v=[].slice,m=u.extend,g={}.hasOwnProperty,b=Object.defineProperty,y=["created","ready","beforeDestroy","afterDestroy","attached","detached"],_=["if","repeat","view","component"],x=n.prototype;x.setupElement=function(e){var t,i,n,r,s,o="string"==typeof e.el?document.querySelector(e.el):e.el||document.createElement(e.tagName||"div"),a=e.template;if(a){if(o.hasChildNodes())for(this.rawContent=document.createElement("div");t=o.firstChild;)this.rawContent.appendChild(t);if(e.replace&&1===a.childNodes.length){if(i=a.childNodes[0].cloneNode(!0),o.parentNode&&(o.parentNode.insertBefore(i,o),o.parentNode.removeChild(o)),o.hasAttributes())for(n=o.attributes.length;n--;)r=o.attributes[n],i.setAttribute(r.name,r.value);o=i}else o.appendChild(a.cloneNode(!0))}if(e.id&&(o.id=e.id),e.className&&(o.className=e.className),s=e.attributes)for(r in s)o.setAttribute(r,s[r]);return o},x.resolveContent=function(){function e(e,t){for(var i=e.parentNode,n=0,r=t.length;r>n;n++)i.insertBefore(t[n],e);i.removeChild(e)}var t,i,n,r,s,o=v.call(this.el.getElementsByTagName("content")),a=this.rawContent;if(n=o.length){for(;n--;)t=o[n],a?(i=t.getAttribute("select"),i?t.content=v.call(a.querySelectorAll(i)):s=t):t.content=v.call(t.childNodes);for(n=0,r=o.length;r>n;n++)t=o[n],t!==s&&e(t,t.content);a&&s&&e(s,v.call(a.childNodes))}this.rawContent=null},x.setupObserver=function(){function e(e){r(e),d.catcher.emit("get",a[e])}function t(e,t,i){u.emit("change:"+e,t,i),r(e),a[e].update(t)}function i(e,t){u.on("hook:"+e,function(){t.call(s.vm)})}function n(e){var t=s.children;if(t)for(var i,n=t.length;n--;)i=t[n],i.el.parentNode&&(e="hook:"+(e?"attached":"detached"),i.observer.emit(e),i.emitter.emit(e))}function r(e){a[e]||s.createBinding(e)}var s=this,a=s.bindings,c=s.options,u=s.observer=new o(s.vm);u.proxies={},u.on("get",e).on("set",t).on("mutate",t);for(var l,h,f,p=y.length;p--;)if(h=y[p],f=c[h],Array.isArray(f))for(l=f.length;l--;)i(h,f[l]);else f&&i(h,f);u.on("hook:attached",function(){n(1)}).on("hook:detached",function(){n(0)})},x.observeData=function(e){function t(e){"$data"!==e&&i()}function i(){s.update(n.data),r.emit("change:$data",n.data)}var n=this,r=n.observer;a.observe(e,"",r);var s=n.bindings.$data=new l(n,"$data");s.update(e),b(n.vm,"$data",{get:function(){return n.observer.emit("get","$data"),n.data},set:function(e){var t=n.data;a.unobserve(t,"",r),n.data=e,a.copyPaths(e,t),a.observe(e,"",r),i()}}),r.on("set",t).on("mutate",t)},x.compile=function(e,t){var i=e.nodeType;1===i&&"SCRIPT"!==e.tagName?this.compileElement(e,t):3===i&&c.interpolate&&this.compileTextNode(e)},x.checkPriorityDir=function(e,t,i){var n,r,s;if("component"===e&&i!==!0&&(s=this.resolveComponent(t,void 0,!0))?(r=h.build(e,"",this,t),r.Ctor=s):(n=u.attr(t,e),r=n&&h.build(e,n,this,t)),r){if(i===!0)return;return this.deferred.push(r),!0}},x.compileElement=function(e,t){if("TEXTAREA"===e.tagName&&e.value&&(e.value=this.eval(e.value)),e.hasAttributes()||e.tagName.indexOf("-")>-1){if(null!==u.attr(e,"pre"))return;for(var i=0,n=_.length;n>i;i++)if(this.checkPriorityDir(_[i],e,t))return;e.vue_trans=u.attr(e,"transition"),e.vue_anim=u.attr(e,"animation"),e.vue_effect=this.eval(u.attr(e,"effect"));var r,s,o,a,l,d,p=c.prefix+"-",m=v.call(e.attributes),g=this.options.paramAttributes;for(i=m.length;i--;){if(r=m[i],s=!1,0===r.name.indexOf(p))for(s=!0,o=h.split(r.value),n=o.length;n--;)a=o[n],d=r.name.slice(p.length),l=h.build(d,a,this,e),"with"===d?this.bindDirective(l,this.parent):this.bindDirective(l);else c.interpolate&&(a=f.parseAttr(r.value),a&&(l=h.build("attr",r.name+":"+a,this,e),g&&g.indexOf(r.name)>-1?this.bindDirective(l,this.parent):this.bindDirective(l)));s&&"cloak"!==d&&e.removeAttribute(r.name)}}e.hasChildNodes()&&v.call(e.childNodes).forEach(this.compile,this)},x.compileTextNode=function(e){var t=f.parse(e.nodeValue);if(t){for(var i,n,r,s=0,o=t.length;o>s;s++)n=t[s],r=null,n.key?">"===n.key.charAt(0)?(i=document.createComment("ref"),r=h.build("partial",n.key.slice(1),this,i)):n.html?(i=document.createComment(c.prefix+"-html"),r=h.build("html",n.key,this,i)):(i=document.createTextNode(""),r=h.build("text",n.key,this,i)):i=document.createTextNode(n),e.parentNode.insertBefore(i,e),this.bindDirective(r);e.parentNode.removeChild(e)}},x.bindDirective=function(e,t){if(e){if(this.dirs.push(e),e.isEmpty||e.isLiteral)return e.bind&&e.bind(),void 0;var i,n=t||this,r=e.key;if(e.isExp)i=n.createBinding(r,e);else{for(;n&&!n.hasKey(r);)n=n.parent;n=n||this,i=n.bindings[r]||n.createBinding(r)}i.dirs.push(e),e.binding=i;var s=i.val();e.bind&&e.bind(s),e.update(s,!0)}},x.createBinding=function(e,t){var i=this,n=i.options.methods,r=t&&t.isExp,s=t&&t.isFn||n&&n[e],o=i.bindings,c=i.options.computed,h=new l(i,e,r,s);if(r)i.defineExp(e,h,t);else if(s)o[e]=h,h.value=i.vm[e]=n[e];else if(o[e]=h,h.root)c&&c[e]?i.defineComputed(e,h,c[e]):"$"!==e.charAt(0)?i.defineProp(e,h):i.defineMeta(e,h);else if(c&&c[u.baseKey(e)])i.defineExp(e,h);else{a.ensurePath(i.data,e);var f=e.slice(0,e.lastIndexOf("."));o[f]||i.createBinding(f)}return h},x.defineProp=function(e,t){var i=this,n=i.data,r=n.__emitter__;g.call(n,e)||(n[e]=void 0),r&&!g.call(r.values,e)&&a.convertKey(n,e),t.value=n[e],b(i.vm,e,{get:function(){return i.data[e]},set:function(t){i.data[e]=t}})},x.defineMeta=function(e,t){var i=this.observer;t.value=this.data[e],delete this.data[e],b(this.vm,e,{get:function(){return a.shouldGet&&i.emit("get",e),t.value},set:function(t){i.emit("set",e,t)}})},x.defineExp=function(e,t,i){var n=i&&i.computedKey,r=n?i.expression:e,s=this.expCache[r];s||(s=this.expCache[r]=p.parse(n||e,this)),s&&this.markComputed(t,s)},x.defineComputed=function(e,t,i){this.markComputed(t,i),b(this.vm,e,{get:t.value.$get,set:t.value.$set})},x.markComputed=function(e,t){e.isComputed=!0,e.isFn?e.value=t:("function"==typeof t&&(t={$get:t}),e.value={$get:u.bind(t.$get,this.vm),$set:t.$set?u.bind(t.$set,this.vm):void 0}),this.computed.push(e)},x.getOption=function(e,t,i){var n=this.options,r=this.parent,s=c.globalAssets,o=n[e]&&n[e][t]||(r?r.getOption(e,t,i):s[e]&&s[e][t]);return o},x.execHook=function(e){e="hook:"+e,this.observer.emit(e),this.emitter.emit(e)},x.hasKey=function(e){var t=u.baseKey(e);return g.call(this.data,t)||g.call(this.vm,t)},x.eval=function(e,t){var i=f.parseAttr(e);return i?p.eval(i,this,t):e},x.resolveComponent=function(e,i,n){s=s||t("./viewmodel");var r=u.attr(e,"component"),o=e.tagName,a=this.eval(r,i),c=o.indexOf("-")>0&&o.toLowerCase(),l=this.getOption("components",a||c,!0);return n?""===r?s:l:l||s},x.destroy=function(){if(!this.destroyed){var e,t,i,n,r,s=this,o=s.vm,c=s.el,u=s.dirs,l=s.computed,h=s.bindings,f=s.children,d=s.parent;for(s.execHook("beforeDestroy"),a.unobserve(s.data,"",s.observer),e=u.length;e--;)i=u[e],i.binding&&i.binding.compiler!==s&&(n=i.binding.dirs,n&&n.splice(n.indexOf(i),1)),i.unbind();for(e=l.length;e--;)l[e].unbind();for(t in h)r=h[t],r&&r.unbind();for(e=f.length;e--;)f[e].destroy();d&&d.children.splice(d.children.indexOf(s),1),c===document.body?c.innerHTML="":o.$remove(),c.vue_vm=null,s.destroyed=!0,s.execHook("afterDestroy"),s.observer.off(),s.emitter.off()}},i.exports=n}),e.register("vue/src/viewmodel.js",function(e,t,i){function n(e){new s(this,e)}function r(e){return"string"==typeof e?document.querySelector(e):e}var s=t("./compiler"),o=t("./utils"),a=t("./transition"),c=t("./batcher"),u=[].slice,l=o.defProtected,h=o.nextTick,f=new c,d=1,p=n.prototype;l(p,"$get",function(e){var t=o.get(this,e);return void 0===t&&this.$parent?this.$parent.$get(e):t}),l(p,"$set",function(e,t){o.set(this,e,t)}),l(p,"$watch",function(e,t){function i(){var e=u.call(arguments);f.push({id:n,override:!0,execute:function(){t.apply(r,e)}})}var n=d++,r=this;t._fn=i,r.$compiler.observer.on("change:"+e,i)}),l(p,"$unwatch",function(e,t){var i=["change:"+e],n=this.$compiler.observer;t&&i.push(t._fn),n.off.apply(n,i)}),l(p,"$destroy",function(){this.$compiler.destroy()}),l(p,"$broadcast",function(){for(var e,t=this.$compiler.children,i=t.length;i--;)e=t[i],e.emitter.emit.apply(e.emitter,arguments),e.vm.$broadcast.apply(e.vm,arguments)}),l(p,"$dispatch",function(){var e=this.$compiler,t=e.emitter,i=e.parent;t.emit.apply(t,arguments),i&&i.vm.$dispatch.apply(i.vm,arguments)}),["emit","on","off","once"].forEach(function(e){l(p,"$"+e,function(){var t=this.$compiler.emitter;t[e].apply(t,arguments)})}),l(p,"$appendTo",function(e,t){e=r(e);var i=this.$el;a(i,1,function(){e.appendChild(i),t&&h(t)},this.$compiler)}),l(p,"$remove",function(e){var t=this.$el;a(t,-1,function(){t.parentNode&&t.parentNode.removeChild(t),e&&h(e)},this.$compiler)}),l(p,"$before",function(e,t){e=r(e);var i=this.$el;a(i,1,function(){e.parentNode.insertBefore(i,e),t&&h(t)},this.$compiler)}),l(p,"$after",function(e,t){e=r(e);var i=this.$el;a(i,1,function(){e.nextSibling?e.parentNode.insertBefore(i,e.nextSibling):e.parentNode.appendChild(i),t&&h(t)},this.$compiler)}),i.exports=n}),e.register("vue/src/binding.js",function(e,t,i){function n(e,t,i,n){this.id=o++,this.value=void 0,this.isExp=!!i,this.isFn=n,this.root=!this.isExp&&-1===t.indexOf("."),this.compiler=e,this.key=t,this.dirs=[],this.subs=[],this.deps=[],this.unbound=!1}var r=t("./batcher"),s=new r,o=1,a=n.prototype;a.update=function(e){if((!this.isComputed||this.isFn)&&(this.value=e),this.dirs.length||this.subs.length){var t=this;s.push({id:this.id,execute:function(){t.unbound||t._update()}})}},a._update=function(){for(var e=this.dirs.length,t=this.val();e--;)this.dirs[e].update(t);this.pub()},a.val=function(){return this.isComputed&&!this.isFn?this.value.$get():this.value},a.pub=function(){for(var e=this.subs.length;e--;)this.subs[e].update()},a.unbind=function(){this.unbound=!0;for(var e=this.dirs.length;e--;)this.dirs[e].unbind();e=this.deps.length;for(var t;e--;)t=this.deps[e].subs,t.splice(t.indexOf(this),1)},i.exports=n}),e.register("vue/src/observer.js",function(e,t,i){function n(e){x(A,e,function(){var t,i,n=E.call(arguments),o=Array.prototype[e].apply(this,n);return"push"===e||"unshift"===e?t=n:"pop"===e||"shift"===e?i=[o]:"splice"===e&&(t=n.slice(2),i=o),r(this,t),s(this,i),this.__emitter__.emit("mutate","",this,{method:e,args:n,result:o,inserted:t,removed:i}),o},!O)}function r(e,t){if(t)for(var i,n,r=t.length;r--;)i=t[r],o(i)&&(i.__emitter__||(a(i),u(i)),n=i.__emitter__.owners,n.indexOf(e)<0&&n.push(e))}function s(e,t){if(t)for(var i,n=t.length;n--;)if(i=t[n],i&&i.__emitter__){var r=i.__emitter__.owners;r&&r.splice(r.indexOf(e))}}function o(e){return"object"==typeof e&&e&&!e.$compiler}function a(e){if(e.__emitter__)return!0;var t=new y;return x(e,"__emitter__",t),t.on("set",function(t,i,n){n&&c(e)}).on("mutate",function(){c(e)}),t.values=_.hash(),t.owners=[],!1}function c(e){for(var t=e.__emitter__.owners,i=t.length;i--;)t[i].__emitter__.emit("set","","",!0)}function u(e){k(e)?f(e):h(e)}function l(e,t){if(O)e.__proto__=t;else for(var i in t)x(e,i,t[i])}function h(e){l(e,j);for(var t in e)d(e,t)}function f(e){l(e,A),r(e,e)}function d(e,t){function i(e,i){s[t]=e,r.emit("set",t,e,i),k(e)&&r.emit("set",t+".length",e.length,i),g(e,t,r)}var n=t.charAt(0);if("$"!==n&&"_"!==n){var r=e.__emitter__,s=r.values;i(e[t]),w(e,t,{enumerable:!0,configurable:!0,get:function(){var e=s[t];return N.shouldGet&&r.emit("get",t),e},set:function(e){var n=s[t];b(n,t,r),v(e,n),i(e,!0)}})}}function p(e){var t=e&&e.__emitter__;if(t)if(k(e))t.emit("set","length",e.length);else{var i,n;for(i in e)n=e[i],t.emit("set",i,n),p(n)}}function v(e,t){if($(e)&&$(t)){var i,n,r;for(i in t)C.call(e,i)||(n=t[i],k(n)?e[i]=[]:$(n)?(r=e[i]={},v(r,n)):e[i]=void 0)}}function m(e,t){for(var i,n=t.split("."),r=0,s=n.length-1;s>r;r++)i=n[r],e[i]||(e[i]={},e.__emitter__&&d(e,i)),e=e[i];$(e)&&(i=n[r],C.call(e,i)||(e[i]=void 0,e.__emitter__&&d(e,i)))}function g(e,t,i){if(o(e)){var n=t?t+".":"",r=a(e),s=e.__emitter__;i.proxies=i.proxies||{};var c=i.proxies[n]={get:function(e){i.emit("get",n+e)},set:function(r,s,o){r&&i.emit("set",n+r,s),t&&o&&i.emit("set",t,e,!0)},mutate:function(e,r,s){var o=e?n+e:t;i.emit("mutate",o,r,s);var a=s.method;"sort"!==a&&"reverse"!==a&&i.emit("set",o+".length",r.length)}};s.on("get",c.get).on("set",c.set).on("mutate",c.mutate),r?p(e):u(e)}}function b(e,t,i){if(e&&e.__emitter__){t=t?t+".":"";var n=i.proxies[t];n&&(e.__emitter__.off("get",n.get).off("set",n.set).off("mutate",n.mutate),i.proxies[t]=null)}}var y=t("./emitter"),_=t("./utils"),x=_.defProtected,$=_.isObject,k=Array.isArray,C={}.hasOwnProperty,w=Object.defineProperty,E=[].slice,O={}.__proto__,A=Object.create(Array.prototype);["push","pop","shift","unshift","splice","sort","reverse"].forEach(n),x(A,"$set",function(e,t){return this.splice(e,1,t)[0]},!O),x(A,"$remove",function(e){return"number"!=typeof e&&(e=this.indexOf(e)),e>-1?this.splice(e,1)[0]:void 0},!O);var j=Object.create(Object.prototype);x(j,"$add",function(e,t){C.call(this,e)||(this[e]=t,d(this,e),this.__emitter__.emit("set",e,t,!0))},!O),x(j,"$delete",function(e){C.call(this,e)&&(this[e]=void 0,delete this[e],this.__emitter__.emit("delete",e))},!O);var N=i.exports={shouldGet:!1,observe:g,unobserve:b,ensurePath:m,copyPaths:v,watch:u,convert:a,convertKey:d}}),e.register("vue/src/directive.js",function(e,t,i){function n(e,t,i,r,o,a){this.id=s++,this.name=e,this.compiler=o,this.vm=o.vm,this.el=a,this.computeFilters=!1;var c=""===i;if("function"==typeof t)this[c?"bind":"_update"]=t;else for(var u in t)"unbind"===u||"update"===u?this["_"+u]=t[u]:this[u]=t[u];if(c||this.isEmpty)return this.isEmpty=!0,void 0;this.expression=(this.isLiteral?o.eval(i):i).trim();var l=n.parseArg(r);this.key=l.key,this.arg=l.arg;var d,p,v,m,g,b=n.parseFilters(this.expression.slice(r.length));if(b)for(this.filters=[],v=0,m=b.length;m>v;v++)d=b[v],p=this.compiler.getOption("filters",d.name),p&&(d.apply=p,this.filters.push(d),p.computed&&(g=!0));this.filters&&this.filters.length||(this.filters=null),g&&(this.computedKey=n.inlineFilters(this.key,this.filters),this.filters=null),this.isExp=g||!f.test(this.key)||h.test(this.key)}function r(e){return e.indexOf('"')>-1?e.replace(d,"'"):e}var s=(t("./utils"),1),o=/(?:['"](?:\\.|[^'"])*['"]|\((?:\\.|[^\)])*\)|\\.|[^,])+/g,a=/^(?:['"](?:\\.|[^'"])*['"]|\\.|[^\|]|\|\|)+/,c=/^([\w-$ ]+):(.+)$/,u=/\|[^\|]+/g,l=/[^\s']+|'[^']+'|[^\s"]+|"[^"]+"/g,h=/^\$(parent|root)\./,f=/^[\w\.$]+$/,d=/"/g,p=n.prototype;p.update=function(e,t){(t||e!==this.value||e&&"object"==typeof e)&&(this.value=e,this._update&&this._update(this.filters&&!this.computeFilters?this.applyFilters(e):e,t))},p.applyFilters=function(e){for(var t,i=e,n=0,r=this.filters.length;r>n;n++)t=this.filters[n],i=t.apply.apply(this.vm,[i].concat(t.args));return i},p.unbind=function(){this.el&&this.vm&&(this._unbind&&this._unbind(),this.vm=this.el=this.binding=this.compiler=null)},n.split=function(e){return e.indexOf(",")>-1?e.match(o)||[""]:[e]},n.parseArg=function(e){var t=e,i=null;if(e.indexOf(":")>-1){var n=e.match(c);t=n?n[2].trim():t,i=n?n[1].trim():i}return{key:t,arg:i}},n.parseFilters=function(e){if(!(e.indexOf("|")<0)){var t,i,n,r,s=e.match(u);if(s)for(t=[],i=0,n=s.length;n>i;i++)r=s[i].slice(1).match(l),r&&t.push({name:r[0],args:r.length>1?r.slice(1):null});return t}},n.inlineFilters=function(e,t){for(var i,n,s=0,o=t.length;o>s;s++)n=t[s],i=n.args?',"'+n.args.map(r).join('","')+'"':"",e='this.$compiler.getOption("filters", "'+n.name+'").call(this,'+e+i+")";return e},n.parseKey=function(e){if(!(e.indexOf("|")>-1))return e.trim();var t=e.match(a);return t?t[0].trim():void 0},n.build=function(e,t,i,r){var s=i.getOption("directives",e);if(s){var o=n.parseKey(t);return o||""===t?new n(e,s,t,o,i,r):void 0}},i.exports=n}),e.register("vue/src/exp-parser.js",function(e,t){function i(e){return e=e.replace(p,"").replace(v,",").replace(d,"").replace(m,"").replace(g,""),e?e.split(/,+/):[]}function n(e,t,i){var n="",r=0,s=t;if(i&&void 0!==o.get(i,e))return"$temp.";for(;t&&!t.hasKey(e);)t=t.parent,r++;if(t){for(;r--;)n+="$parent.";t.bindings[e]||"$"===e.charAt(0)||t.createBinding(e)}else s.createBinding(e);return n}function r(e,t){var i;try{i=new Function(e)}catch(n){}return i}function s(e){return"$"===e.charAt(0)?"\\"+e:e}var o=t("./utils"),a=/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/g,c=/"(\d+)"/g,u=/\n/g,l=new RegExp("constructor".split("").join("['\"+, ]*")),h=/\\u\d\d\d\d/,f="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,Math",d=new RegExp(["\\b"+f.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),p=/\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,v=/[^\w$]+/g,m=/\b\d[^,]*/g,g=/^,+|,+$/g;e.parse=function(e,t,f){function d(e){var t=y.length;return y[t]=e.replace(u,"\\n"),'"'+t+'"'}function p(e){var i=e.charAt(0);e=e.slice(1);var r="this."+n(e,t,f)+e;return b[e]||(g+=r+";",b[e]=1),i+r}function v(e,t){return y[t]}if(!h.test(e)&&!l.test(e)){var m=i(e);if(!m.length)return r("return "+e,e);m=o.unique(m);var g="",b=o.hash(),y=[],_=new RegExp("[^$\\w\\.]("+m.map(s).join("|")+")[$\\w\\.]*\\b","g"),x=(" "+e).replace(a,d).replace(_,p).replace(c,v);return x=g+"return "+x,r(x,e)}},e.eval=function(t,i,n){var r,s=e.parse(t,i,n);return s&&(i.vm.$temp=n,r=s.call(i.vm),delete i.vm.$temp),r}}),e.register("vue/src/text-parser.js",function(e,t){function i(){var e=n(u),t=n(l);return new RegExp(e+e+e+"?(.+?)"+t+"?"+t+t)}function n(e){return e.replace(h,"\\$&")}function r(t){e.delimiters=t,u=t[0],l=t[1],f=i()}function s(e){if(!f.test(e))return null;for(var t,i,n,r,s=[];t=e.match(f);)i=t.index,i>0&&s.push(e.slice(0,i)),n={key:t[1].trim()},r=t[0],n.html=r.charAt(2)===u&&r.charAt(r.length-3)===l,s.push(n),e=e.slice(i+t[0].length);return e.length&&s.push(e),s}function o(e){c=c||t("./directive");var i=s(e);if(!i)return null;if(1===i.length)return i[0].key;for(var n,r=[],o=0,u=i.length;u>o;o++)n=i[o],r.push(n.key?a(n.key):'"'+n+'"');return r.join("+")}function a(e){var t=c.parseFilters(e);return t&&(e=c.inlineFilters(c.parseKey(e),t)),"("+e+")"}var c,u="{",l="}",h=/[-.*+?^${}()|[\]\/\\]/g,f=i();e.parse=s,e.parseAttr=o,e.setDelimiters=r,e.delimiters=[u,l]}),e.register("vue/src/deps-parser.js",function(e,t,i){function n(e){if(!e.isFn){var t=s.hash();e.deps=[],a.on("get",function(i){var n=t[i.key];n&&n.compiler===i.compiler||i.compiler.repeat&&i.compiler.parent===e.compiler||(t[i.key]=i,e.deps.push(i),i.subs.push(e))}),e.value.$get(),a.off("get")}}var r=t("./emitter"),s=t("./utils"),o=t("./observer"),a=new r;i.exports={catcher:a,parse:function(e){o.shouldGet=!0,e.forEach(n),o.shouldGet=!1}}}),e.register("vue/src/filters.js",function(e,t,i){function n(e,t){if(s.isObject(e)){for(var i in e)if(n(e[i],t))return!0}else if(null!=e)return e.toString().toLowerCase().indexOf(t)>-1}function r(e){return c.test(e)?e.slice(1,-1):void 0}var s=t("./utils"),o=s.get,a=[].slice,c=/^'.*'$/,u=i.exports=s.hash();u.capitalize=function(e){return e||0===e?(e=e.toString(),e.charAt(0).toUpperCase()+e.slice(1)):""},u.uppercase=function(e){return e||0===e?e.toString().toUpperCase():""},u.lowercase=function(e){return e||0===e?e.toString().toLowerCase():""},u.currency=function(e,t){if(!e&&0!==e)return"";t=t||"$";var i=Math.floor(e).toString(),n=i.length%3,r=n>0?i.slice(0,n)+(i.length>3?",":""):"",s="."+e.toFixed(2).slice(-2);return t+r+i.slice(n).replace(/(\d{3})(?=\d)/g,"$1,")+s},u.pluralize=function(e){var t=a.call(arguments,1);return t.length>1?t[e-1]||t[t.length-1]:t[e-1]||t[0]+"s"};var l={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};u.key=function(e,t){if(e){var i=l[t];return i||(i=parseInt(t,10)),function(t){return t.keyCode===i?e.call(this,t):void 0}}},u.filterBy=function(e,t,i,a){i&&"in"!==i&&(a=i);var c=r(t)||this.$get(t);return c?(c=c.toLowerCase(),a=a&&(r(a)||this.$get(a)),Array.isArray(e)||(e=s.objectToArray(e)),e.filter(function(e){return a?n(o(e,a),c):n(e,c)})):e},u.filterBy.computed=!0,u.orderBy=function(e,t,i){var n=r(t)||this.$get(t);if(!n)return e;Array.isArray(e)||(e=s.objectToArray(e));var a=1;return i&&("-1"===i?a=-1:"!"===i.charAt(0)?(i=i.slice(1),a=this.$get(i)?1:-1):a=this.$get(i)?-1:1),e.slice().sort(function(e,t){return e=o(e,n),t=o(t,n),e===t?0:e>t?a:-a})},u.orderBy.computed=!0}),e.register("vue/src/transition.js",function(e,t,i){function n(e,t,i,n){if(!o.trans)return i(),f.CSS_SKIP;var r,s=e.classList,c=e.vue_trans_cb,l=a.enterClass,h=a.leaveClass,d=n?o.anim:o.trans;return c&&(e.removeEventListener(d,c),s.remove(l),s.remove(h),e.vue_trans_cb=null),t>0?(s.add(l),i(),n?(r=function(t){t.target===e&&(e.removeEventListener(d,r),e.vue_trans_cb=null,s.remove(l))},e.addEventListener(d,r),e.vue_trans_cb=r):u.push({execute:function(){s.remove(l)}}),f.CSS_E):(e.offsetWidth||e.offsetHeight?(s.add(h),r=function(t){t.target===e&&(e.removeEventListener(d,r),e.vue_trans_cb=null,i(),s.remove(h))},e.addEventListener(d,r),e.vue_trans_cb=r):i(),f.CSS_L)}function r(e,t,i,n,r){function s(t,i){var n=l(function(){t(),u.splice(u.indexOf(n),1),u.length||(e.vue_timeouts=null)},i);u.push(n)}var o=r.getOption("effects",n);if(!o)return i(),f.JS_SKIP;var a=o.enter,c=o.leave,u=e.vue_timeouts;if(u)for(var d=u.length;d--;)h(u[d]);return u=e.vue_timeouts=[],t>0?"function"!=typeof a?(i(),f.JS_SKIP_E):(a(e,i,s),f.JS_E):"function"!=typeof c?(i(),f.JS_SKIP_L):(c(e,i,s),f.JS_L)}function s(){var e=document.createElement("vue"),t="transitionend",i={transition:t,mozTransition:t,webkitTransition:"webkitTransitionEnd"},n={};for(var r in i)if(void 0!==e.style[r]){n.trans=i[r];break}return n.anim=""===e.style.animation?"animationend":"webkitAnimationEnd",n}var o=s(),a=t("./config"),c=t("./batcher"),u=new c,l=window.setTimeout,h=window.clearTimeout,f={CSS_E:1,CSS_L:2,JS_E:3,JS_L:4,CSS_SKIP:-1,JS_SKIP:-2,JS_SKIP_E:-3,JS_SKIP_L:-4,INIT:-5,SKIP:-6};u._preFlush=function(){document.body.offsetHeight};var d=i.exports=function(e,t,i,s){var o=function(){i(),s.execHook(t>0?"attached":"detached")};if(s.init)return o(),f.INIT;var a=""===e.vue_trans,c=""===e.vue_anim,u=e.vue_effect;return u?r(e,t,o,u,s):a||c?n(e,t,o,c):(o(),f.SKIP)};d.codes=f}),e.register("vue/src/batcher.js",function(e,t,i){function n(){this.reset()}var r=t("./utils"),s=n.prototype;s.push=function(e){if(e.id&&this.has[e.id]){if(e.override){var t=this.has[e.id];t.cancelled=!0,this.queue.push(e),this.has[e.id]=e}}else this.queue.push(e),this.has[e.id]=e,this.waiting||(this.waiting=!0,r.nextTick(r.bind(this.flush,this)))},s.flush=function(){this._preFlush&&this._preFlush();for(var e=0;e<this.queue.length;e++){var t=this.queue[e];t.cancelled||t.execute()}this.reset()},s.reset=function(){this.has=r.hash(),this.queue=[],this.waiting=!1},i.exports=n}),e.register("vue/src/directives/index.js",function(e,t,i){var n=t("../utils"),r=t("../config"),s=t("../transition"),o=i.exports=n.hash();o.component={isLiteral:!0,bind:function(){this.el.vue_vm||(this.childVM=new this.Ctor({el:this.el,parent:this.vm}))},unbind:function(){this.childVM&&this.childVM.$destroy()}},o.attr={bind:function(){var e=this.vm.$options.paramAttributes;this.isParam=e&&e.indexOf(this.arg)>-1},update:function(e){e||0===e?this.el.setAttribute(this.arg,e):this.el.removeAttribute(this.arg),this.isParam&&(this.vm[this.arg]=n.checkNumber(e))}},o.text={bind:function(){this.attr=3===this.el.nodeType?"nodeValue":"textContent"},update:function(e){this.el[this.attr]=n.guard(e)}},o.show=function(e){var t=this.el,i=e?"":"none",n=function(){t.style.display=i};s(t,e?1:-1,n,this.compiler)},o["class"]=function(e){this.arg?n[e?"addClass":"removeClass"](this.el,this.arg):(this.lastVal&&n.removeClass(this.el,this.lastVal),e&&(n.addClass(this.el,e),this.lastVal=e))},o.cloak={isEmpty:!0,bind:function(){var e=this.el;this.compiler.observer.once("hook:ready",function(){e.removeAttribute(r.prefix+"-cloak")})}},o.ref={isLiteral:!0,bind:function(){var e=this.expression;e&&(this.vm.$parent.$[e]=this.vm)},unbind:function(){var e=this.expression;e&&delete this.vm.$parent.$[e]}},o.on=t("./on"),o.repeat=t("./repeat"),o.model=t("./model"),o["if"]=t("./if"),o["with"]=t("./with"),o.html=t("./html"),o.style=t("./style"),o.partial=t("./partial"),o.view=t("./view")
}),e.register("vue/src/directives/if.js",function(e,t,i){var n=t("../utils");i.exports={bind:function(){this.parent=this.el.parentNode,this.ref=document.createComment("vue-if"),this.Ctor=this.compiler.resolveComponent(this.el),this.parent.insertBefore(this.ref,this.el),this.parent.removeChild(this.el),n.attr(this.el,"view"),n.attr(this.el,"repeat")},update:function(e){e?this.childVM||(this.childVM=new this.Ctor({el:this.el.cloneNode(!0),parent:this.vm}),this.compiler.init?this.parent.insertBefore(this.childVM.$el,this.ref):this.childVM.$before(this.ref)):this._unbind()},unbind:function(){this.childVM&&(this.childVM.$destroy(),this.childVM=null)}}}),e.register("vue/src/directives/repeat.js",function(e,t,i){function n(e,t){for(var i,n=0,r=e.length;r>n;n++)if(i=e[n],!i.$reused&&i.$value===t)return n;return-1}var r=t("../utils"),s=t("../config");i.exports={bind:function(){this.identifier="$r"+this.id,this.expCache=r.hash();var e=this.el,t=this.container=e.parentNode;this.childId=this.compiler.eval(r.attr(e,"ref")),this.ref=document.createComment(s.prefix+"-repeat-"+this.key),t.insertBefore(this.ref,e),t.removeChild(e),this.initiated=!1,this.collection=null,this.vms=null},update:function(e){Array.isArray(e)||r.isObject(e)&&(e=r.objectToArray(e)),this.initiated||e&&e.length||this.dryBuild(),this.oldVMs=this.vms,this.oldCollection=this.collection,e=this.collection=e||[];var t=e[0]&&r.isObject(e[0]);this.vms=this.oldCollection?this.diff(e,t):this.init(e,t),this.childId&&(this.vm.$[this.childId]=this.vms)},dryBuild:function(){var e=this.el.cloneNode(!0),t=this.compiler.resolveComponent(e);new t({el:e,parent:this.vm,data:{$index:0},compilerOptions:{repeat:!0,expCache:this.expCache}}).$destroy(),this.initiated=!0},init:function(e,t){for(var i,n=[],r=0,s=e.length;s>r;r++)i=this.build(e[r],r,t),n.push(i),this.compiler.init?this.container.insertBefore(i.$el,this.ref):i.$before(this.ref);return n},diff:function(e,t){var i,r,s,o,a,c,u,l,h=this.container,f=this.oldVMs,d=[];for(d.length=e.length,i=0,r=e.length;r>i;i++)s=e[i],t?(s.$index=i,s.__emitter__&&s.__emitter__[this.identifier]?s.$reused=!0:d[i]=this.build(s,i,t)):(a=n(f,s),a>-1?(f[a].$reused=!0,f[a].$data.$index=i):d[i]=this.build(s,i,t));for(i=0,r=f.length;r>i;i++)o=f[i],s=o.$data,s.$reused&&(o.$reused=!0,delete s.$reused),o.$reused?(o.$index=s.$index,s.$key&&s.$key!==o.$key&&(o.$key=s.$key),d[o.$index]=o):(delete s.__emitter__[this.identifier],o.$destroy());for(i=d.length;i--;)if(o=d[i],s=o.$data,c=d[i+1],o.$reused){for(l=o.$el.nextSibling;!l.vue_vm&&l!==this.ref;)l=l.nextSibling;if(u=l.vue_vm,u!==c)if(c){for(l=c.$el;!l.parentNode;)c=d[l.vue_vm.$index+1],l=c?c.$el:this.ref;h.insertBefore(o.$el,l)}else h.insertBefore(o.$el,this.ref);delete o.$reused,delete s.$index,delete s.$key}else o.$before(c?c.$el:this.ref);return d},build:function(e,t,i){var n,r,s=!i||this.arg;s&&(n=e,r=this.arg||"$value",e={},e[r]=n),e.$index=t;var o=this.el.cloneNode(!0),a=this.compiler.resolveComponent(o,e),c=new a({el:o,data:e,parent:this.vm,compilerOptions:{repeat:!0,expCache:this.expCache}});if(e.__emitter__[this.identifier]=!0,s){var u=this,l=function(e){u.lock=!0,u.collection.$set(c.$index,e),u.lock=!1};c.$compiler.observer.on("change:"+r,l)}return c},unbind:function(){if(this.childId&&delete this.vm.$[this.childId],this.vms)for(var e=this.vms.length;e--;)this.vms[e].$destroy()}}}),e.register("vue/src/directives/on.js",function(e,t,i){t("../utils");i.exports={isFn:!0,bind:function(){this.context=this.binding.isExp?this.vm:this.binding.compiler.vm},update:function(e){if("function"==typeof e){this._unbind();var t=this.vm,i=this.context;this.handler=function(n){n.targetVM=t,i.$event=n;var r=e.call(i,n);return i.$event=null,r},this.el.addEventListener(this.arg,this.handler)}},unbind:function(){this.el.removeEventListener(this.arg,this.handler)}}}),e.register("vue/src/directives/model.js",function(e,t,i){function n(e){return o.call(e.options,function(e){return e.selected}).map(function(e){return e.value||e.text})}var r=t("../utils"),s=navigator.userAgent.indexOf("MSIE 9.0")>0,o=[].filter;i.exports={bind:function(){var e=this,t=e.el,i=t.type,n=t.tagName;e.lock=!1,e.ownerVM=e.binding.compiler.vm,e.event=e.compiler.options.lazy||"SELECT"===n||"checkbox"===i||"radio"===i?"change":"input",e.attr="checkbox"===i?"checked":"INPUT"===n||"SELECT"===n||"TEXTAREA"===n?"value":"innerHTML","SELECT"===n&&t.hasAttribute("multiple")&&(this.multi=!0);var o=!1;e.cLock=function(){o=!0},e.cUnlock=function(){o=!1},t.addEventListener("compositionstart",this.cLock),t.addEventListener("compositionend",this.cUnlock),e.set=e.filters?function(){if(!o){var i;try{i=t.selectionStart}catch(n){}e._set(),r.nextTick(function(){void 0!==i&&t.setSelectionRange(i,i)})}}:function(){o||(e.lock=!0,e._set(),r.nextTick(function(){e.lock=!1}))},t.addEventListener(e.event,e.set),s&&(e.onCut=function(){r.nextTick(function(){e.set()})},e.onDel=function(t){(46===t.keyCode||8===t.keyCode)&&e.set()},t.addEventListener("cut",e.onCut),t.addEventListener("keyup",e.onDel))},_set:function(){this.ownerVM.$set(this.key,this.multi?n(this.el):this.el[this.attr])},update:function(e,t){if(t&&void 0===e)return this._set();if(!this.lock){var i=this.el;"SELECT"===i.tagName?(i.selectedIndex=-1,this.multi&&Array.isArray(e)?e.forEach(this.updateSelect,this):this.updateSelect(e)):"radio"===i.type?i.checked=e==i.value:"checkbox"===i.type?i.checked=!!e:i[this.attr]=r.guard(e)}},updateSelect:function(e){for(var t=this.el.options,i=t.length;i--;)if(t[i].value==e){t[i].selected=!0;break}},unbind:function(){var e=this.el;e.removeEventListener(this.event,this.set),e.removeEventListener("compositionstart",this.cLock),e.removeEventListener("compositionend",this.cUnlock),s&&(e.removeEventListener("cut",this.onCut),e.removeEventListener("keyup",this.onDel))}}}),e.register("vue/src/directives/with.js",function(e,t,i){var n=t("../utils");i.exports={bind:function(){var e=this,t=e.arg,i=e.key,r=e.compiler,s=e.binding.compiler;return r===s?(this.alone=!0,void 0):(t&&(r.bindings[t]||r.createBinding(t),r.observer.on("change:"+t,function(t){r.init||(e.lock||(e.lock=!0,n.nextTick(function(){e.lock=!1})),s.vm.$set(i,t))})),void 0)},update:function(e){this.alone||this.lock||(this.arg?this.vm.$set(this.arg,e):this.vm.$data=e)}}}),e.register("vue/src/directives/html.js",function(e,t,i){var n=t("../utils").guard,r=[].slice;i.exports={bind:function(){8===this.el.nodeType&&(this.holder=document.createElement("div"),this.nodes=[])},update:function(e){e=n(e),this.holder?this.swap(e):this.el.innerHTML=e},swap:function(e){for(var t,i=this.el.parentNode,n=this.holder,s=this.nodes,o=s.length;o--;)i.removeChild(s[o]);for(n.innerHTML=e,s=this.nodes=r.call(n.childNodes),o=0,t=s.length;t>o;o++)i.insertBefore(s[o],this.el)}}}),e.register("vue/src/directives/style.js",function(e,t,i){function n(e){return e[1].toUpperCase()}var r=/-([a-z])/g,s=["webkit","moz","ms"];i.exports={bind:function(){var e=this.arg;if(e){var t=e.charAt(0);"$"===t?(e=e.slice(1),this.prefixed=!0):"-"===t&&(e=e.slice(1)),this.prop=e.replace(r,n)}},update:function(e){var t=this.prop;if(t){if(this.el.style[t]=e,this.prefixed){t=t.charAt(0).toUpperCase()+t.slice(1);for(var i=s.length;i--;)this.el.style[s[i]+t]=e}}else this.el.style.cssText=e}}}),e.register("vue/src/directives/partial.js",function(e,t,i){t("../utils");i.exports={isLiteral:!0,bind:function(){var e=this.expression;if(e){var t=this.el,i=this.compiler,n=i.getOption("partials",e);if(n)if(n=n.cloneNode(!0),8===t.nodeType){var r=[].slice.call(n.childNodes),s=t.parentNode;s.insertBefore(n,t),s.removeChild(t),r.forEach(i.compile,i)}else t.innerHTML="",t.appendChild(n.cloneNode(!0))}}}}),e.register("vue/src/directives/view.js",function(e,t,i){i.exports={bind:function(){var e=this.raw=this.el,t=e.parentNode,i=this.ref=document.createComment("v-view");t.insertBefore(i,e),t.removeChild(e);for(var n,r=this.inner=document.createElement("div");n=e.firstChild;)r.appendChild(n)},update:function(e){this._unbind();var t=this.compiler.getOption("components",e);t&&(this.childVM=new t({el:this.raw.cloneNode(!0),parent:this.vm,compilerOptions:{rawContent:this.inner.cloneNode(!0)}}),this.el=this.childVM.$el,this.compiler.init?this.ref.parentNode.insertBefore(this.el,this.ref):this.childVM.$before(this.ref))},unbind:function(){this.childVM&&this.childVM.$destroy()}}}),e.alias("vue/src/main.js","vue/index.js"),"object"==typeof exports?module.exports=e("vue"):"function"==typeof define&&define.amd?define(function(){return e("vue")}):window.Vue=e("vue")}();
{
"name": "vue",
"version": "0.10.0",
"version": "0.10.1",
"author": {

@@ -5,0 +5,0 @@ "name": "Evan You",

@@ -324,3 +324,3 @@ var Emitter = require('./emitter'),

options = compiler.options,
observer = compiler.observer = new Emitter()
observer = compiler.observer = new Emitter(compiler.vm)

@@ -330,3 +330,2 @@ // a hash to hold event proxies for each root level key

observer.proxies = {}
observer._ctx = compiler.vm

@@ -471,7 +470,7 @@ // add own listeners which trigger binding updates

) {
directive = Directive.parse(dirname, '', this, node)
directive = Directive.build(dirname, '', this, node)
directive.Ctor = Ctor
} else {
expression = utils.attr(node, dirname)
directive = expression && Directive.parse(dirname, expression, this, node)
directive = expression && Directive.build(dirname, expression, this, node)
}

@@ -548,3 +547,3 @@ if (directive) {

dirname = attr.name.slice(prefix.length)
directive = Directive.parse(dirname, exp, this, node)
directive = Directive.build(dirname, exp, this, node)

@@ -562,3 +561,3 @@ if (dirname === 'with') {

if (exp) {
directive = Directive.parse('attr', attr.name + ':' + exp, this, node)
directive = Directive.build('attr', attr.name + ':' + exp, this, node)
if (params && params.indexOf(attr.name) > -1) {

@@ -604,10 +603,10 @@ // a param attribute... we should use the parent binding

el = document.createComment('ref')
directive = Directive.parse('partial', token.key.slice(1), this, el)
directive = Directive.build('partial', token.key.slice(1), this, el)
} else {
if (!token.html) { // text binding
el = document.createTextNode('')
directive = Directive.parse('text', token.key, this, el)
directive = Directive.build('text', token.key, this, el)
} else { // html binding
el = document.createComment(config.prefix + '-html')
directive = Directive.parse('html', token.key, this, el)
directive = Directive.build('html', token.key, this, el)
}

@@ -788,7 +787,7 @@ }

CompilerProto.defineExp = function (key, binding, directive) {
var filters = directive && directive.computeFilters && directive.filters,
exp = filters ? directive.expression : key,
getter = this.expCache[exp]
var computedKey = directive && directive.computedKey,
exp = computedKey ? directive.expression : key,
getter = this.expCache[exp]
if (!getter) {
getter = this.expCache[exp] = ExpParser.parse(key, this, null, filters)
getter = this.expCache[exp] = ExpParser.parse(computedKey || key, this)
}

@@ -838,11 +837,15 @@ if (getter) {

*/
CompilerProto.getOption = function (type, id) {
CompilerProto.getOption = function (type, id, silent) {
var opts = this.options,
parent = this.parent,
globalAssets = config.globalAssets
return (opts[type] && opts[type][id]) || (
parent
? parent.getOption(type, id)
: globalAssets[type] && globalAssets[type][id]
)
globalAssets = config.globalAssets,
res = (opts[type] && opts[type][id]) || (
parent
? parent.getOption(type, id, silent)
: globalAssets[type] && globalAssets[type][id]
)
if (!res && !silent) {
utils.warn('Unknown ' + type.slice(0, -1) + ': ' + id)
}
return res
}

@@ -894,3 +897,3 @@

tagId = (tagName.indexOf('-') > 0 && tagName.toLowerCase()),
Ctor = this.getOption('components', id || tagId)
Ctor = this.getOption('components', id || tagId, true)

@@ -897,0 +900,0 @@ if (id && !Ctor) {

var utils = require('./utils'),
directives = require('./directives'),
dirId = 1,
// Regexes!
// regex to split multiple directive expressions
// split by commas, but ignore commas within quotes, parens and escapes.
SPLIT_RE = /(?:['"](?:\\.|[^'"])*['"]|\((?:\\.|[^\)])*\)|\\.|[^,])+/g,
// match up to the first single pipe, ignore those within quotes.
KEY_RE = /^(?:['"](?:\\.|[^'"])*['"]|\\.|[^\|]|\|\|)+/,
ARG_RE = /^([\w-$ ]+):(.+)$/,

@@ -18,3 +14,4 @@ FILTERS_RE = /\|[^\|]+/g,

NESTING_RE = /^\$(parent|root)\./,
SINGLE_VAR_RE = /^[\w\.$]+$/
SINGLE_VAR_RE = /^[\w\.$]+$/,
QUOTE_RE = /"/g

@@ -61,26 +58,34 @@ /**

parseKey(this, rawKey)
var parsed = Directive.parseArg(rawKey)
this.key = parsed.key
this.arg = parsed.arg
var filterExps = this.expression.slice(rawKey.length).match(FILTERS_RE)
if (filterExps) {
var filters = Directive.parseFilters(this.expression.slice(rawKey.length)),
filter, fn, i, l, computed
if (filters) {
this.filters = []
for (var i = 0, l = filterExps.length, filter; i < l; i++) {
filter = parseFilter(filterExps[i], this.compiler)
if (filter) {
for (i = 0, l = filters.length; i < l; i++) {
filter = filters[i]
fn = this.compiler.getOption('filters', filter.name)
if (fn) {
filter.apply = fn
this.filters.push(filter)
if (filter.apply.computed) {
// some special filters, e.g. filterBy & orderBy,
// can involve VM properties and they often need to
// be computed.
this.computeFilters = true
if (fn.computed) {
computed = true
}
}
}
if (!this.filters.length) this.filters = null
} else {
}
if (!this.filters || !this.filters.length) {
this.filters = null
}
if (computed) {
this.computedKey = Directive.inlineFilters(this.key, this.filters)
this.filters = null
}
this.isExp =
this.computeFilters ||
computed ||
!SINGLE_VAR_RE.test(this.key) ||

@@ -94,43 +99,2 @@ NESTING_RE.test(this.key)

/**
* parse a key, extract argument and nesting/root info
*/
function parseKey (dir, rawKey) {
var key = rawKey
if (rawKey.indexOf(':') > -1) {
var argMatch = rawKey.match(ARG_RE)
key = argMatch
? argMatch[2].trim()
: key
dir.arg = argMatch
? argMatch[1].trim()
: null
}
dir.key = key
}
/**
* parse a filter expression
*/
function parseFilter (filter, compiler) {
var tokens = filter.slice(1).match(FILTER_TOKEN_RE)
if (!tokens) return
var name = tokens[0],
apply = compiler.getOption('filters', name)
if (!apply) {
utils.warn('Unknown filter: ' + name)
return
}
return {
name : name,
apply : apply,
args : tokens.length > 1
? tokens.slice(1)
: null
}
}
/**
* called when a new value is set

@@ -176,3 +140,3 @@ * for computed properties, this will only be called once

// exposed methods ------------------------------------------------------------
// Exposed static methods -----------------------------------------------------

@@ -190,23 +154,102 @@ /**

/**
* make sure the directive and expression is valid
* before we create an instance
* parse a key, extract argument
*/
Directive.parse = function (dirname, expression, compiler, node) {
Directive.parseArg = function (rawKey) {
var key = rawKey,
arg = null
if (rawKey.indexOf(':') > -1) {
var argMatch = rawKey.match(ARG_RE)
key = argMatch
? argMatch[2].trim()
: key
arg = argMatch
? argMatch[1].trim()
: arg
}
return {
key: key,
arg: arg
}
}
var dir = compiler.getOption('directives', dirname) || directives[dirname]
if (!dir) {
utils.warn('Unknown directive: ' + dirname)
/**
* parse a the filters
*/
Directive.parseFilters = function (exp) {
if (exp.indexOf('|') < 0) {
return
}
var filters = exp.match(FILTERS_RE),
res, i, l, tokens
if (filters) {
res = []
for (i = 0, l = filters.length; i < l; i++) {
tokens = filters[i].slice(1).match(FILTER_TOKEN_RE)
if (tokens) {
res.push({
name: tokens[0],
args: tokens.length > 1
? tokens.slice(1)
: null
})
}
}
}
return res
}
var rawKey
/**
* Inline computed filters so they become part
* of the expression
*/
Directive.inlineFilters = function (key, filters) {
var args, filter
for (var i = 0, l = filters.length; i < l; i++) {
filter = filters[i]
args = filter.args
? ',"' + filter.args.map(escapeQuote).join('","') + '"'
: ''
key = 'this.$compiler.getOption("filters", "' +
filter.name +
'").call(this,' +
key + args +
')'
}
return key
}
/**
* Convert double quotes to single quotes
* so they don't mess up the generated function body
*/
function escapeQuote (v) {
return v.indexOf('"') > -1
? v.replace(QUOTE_RE, '\'')
: v
}
/**
* Parse the key from a directive raw expression
*/
Directive.parseKey = function (expression) {
if (expression.indexOf('|') > -1) {
var keyMatch = expression.match(KEY_RE)
if (keyMatch) {
rawKey = keyMatch[0].trim()
return keyMatch[0].trim()
}
} else {
rawKey = expression.trim()
return expression.trim()
}
}
/**
* make sure the directive and expression is valid
* before we create an instance
*/
Directive.build = function (dirname, expression, compiler, node) {
var dir = compiler.getOption('directives', dirname)
if (!dir) return
var rawKey = Directive.parseKey(expression)
// have a valid raw key, or be an empty directive

@@ -213,0 +256,0 @@ if (rawKey || expression === '') {

@@ -22,4 +22,2 @@ var utils = require('../utils')

utils.warn('{{>yield}} syntax has been deprecated. Use <content> tag instead.')
} else {
utils.warn('Unknown partial: ' + id)
}

@@ -26,0 +24,0 @@ return

@@ -14,3 +14,3 @@ function Emitter (ctx) {

Emitter.prototype.once = function(event, fn){
EmitterProto.once = function(event, fn){
var self = this

@@ -29,3 +29,3 @@ this._cbs = this._cbs || {}

Emitter.prototype.off = function(event, fn){
EmitterProto.off = function(event, fn){
this._cbs = this._cbs || {}

@@ -61,3 +61,3 @@

Emitter.prototype.emit = function(event, a, b, c){
EmitterProto.emit = function(event, a, b, c){
this._cbs = this._cbs || {}

@@ -64,0 +64,0 @@ var callbacks = this._cbs[event]

@@ -6,4 +6,3 @@ var utils = require('./utils'),

CTOR_RE = new RegExp('constructor'.split('').join('[\'"+, ]*')),
UNICODE_RE = /\\u\d\d\d\d/,
QUOTE_RE = /"/g
UNICODE_RE = /\\u\d\d\d\d/

@@ -115,12 +114,2 @@ // Variable extraction scooped from https://github.com/RubyLouvre/avalon

/**
* Convert double quotes to single quotes
* so they don't mess up the generated function body
*/
function escapeQuote (v) {
return v.indexOf('"') > -1
? v.replace(QUOTE_RE, '\'')
: v
}
/**
* Parse and return an anonymous computed property getter function

@@ -130,3 +119,3 @@ * from an arbitrary expression, together with a list of paths to be

*/
exports.parse = function (exp, compiler, data, filters) {
exports.parse = function (exp, compiler, data) {
// unicode and 'constructor' are not allowed for XSS security.

@@ -160,19 +149,2 @@ if (UNICODE_RE.test(exp) || CTOR_RE.test(exp)) {

// wrap expression with computed filters
if (filters) {
var args, filter
for (var i = 0, l = filters.length; i < l; i++) {
filter = filters[i]
args = filter.args
? ',"' + filter.args.map(escapeQuote).join('","') + '"'
: ''
body =
'this.$compiler.getOption("filters", "' +
filter.name +
'").call(this,' +
body + args +
')'
}
}
body = accessors + 'return ' + body

@@ -179,0 +151,0 @@

@@ -89,3 +89,3 @@ var utils = require('./utils'),

if (e.keyCode === code) {
handler.call(this, e)
return handler.call(this, e)
}

@@ -92,0 +92,0 @@ }

@@ -1,5 +0,7 @@

var openChar = '{',
endChar = '}',
ESCAPE_RE = /[-.*+?^${}()|[\]\/\\]/g,
BINDING_RE = buildInterpolationRegex()
var openChar = '{',
endChar = '}',
ESCAPE_RE = /[-.*+?^${}()|[\]\/\\]/g,
BINDING_RE = buildInterpolationRegex(),
// lazy require
Directive

@@ -56,2 +58,3 @@ function buildInterpolationRegex () {

function parseAttr (attr) {
Directive = Directive || require('./directive')
var tokens = parse(attr)

@@ -65,3 +68,3 @@ if (!tokens) return null

token.key
? ('(' + token.key + ')')
? inlineFilters(token.key)
: ('"' + token + '"')

@@ -73,2 +76,17 @@ )

/**
* Inlines any possible filters in a binding
* so that we can combine everything into a huge expression
*/
function inlineFilters (key) {
var filters = Directive.parseFilters(key)
if (filters) {
key = Directive.inlineFilters(
Directive.parseKey(key),
filters
)
}
return '(' + key + ')'
}
exports.parse = parse

@@ -75,0 +93,0 @@ exports.parseAttr = parseAttr

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc