/*! * Vue.js v2.0.0-alpha.7 * (c) 2014-2016 Evan You * Released under the MIT License. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";function e(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function t(e){var t=parseFloat(e,10);return t||0===t?t:e}function n(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}function i(e,t){return or.call(e,t)}function o(e){return"string"==typeof e||"number"==typeof e}function a(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}function s(e,t){return function(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function c(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function u(e,t){for(var n in t)e[n]=t[n];return e}function l(e){return null!==e&&"object"==typeof e}function f(e){return fr.call(e)===dr}function d(e){for(var t=e[0]||{},n=1;n1?c(n):n;for(var r=c(arguments,1),i=0,o=n.length;i-1?pi[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:pi[e]=/HTMLUnknownElement/.test(t.toString())}function Be(e){if("string"==typeof e){if(e=document.querySelector(e),!e)return document.createElement("div")}return e}function Fe(e){return document.createElement(e)}function Ue(e,t){return document.createElementNS(si[e],t)}function He(e){return document.createTextNode(e)}function ze(e,t,n){e.insertBefore(t,n)}function Ve(e,t){e.removeChild(t)}function Je(e,t){e.appendChild(t)}function Ke(e){return e.parentNode}function qe(e){return e.nextSibling}function Ze(e){return e.tagName}function We(e,t){e.textContent=t}function Ge(e){return e.childNodes}function Ye(e,t,n){e.setAttribute(t,n)}function Qe(e){return null==e}function Xe(e){return null!=e}function et(e,t){return e.key===t.key&&e.tag===t.tag}function tt(e,t,n){var r=void 0,i=void 0,o={};for(r=t;r<=n;++r)i=e[r].key,Xe(i)&&(o[i]=r);return o}function nt(e){function t(e){return new Hr(b.tagName(e).toLowerCase(),{},[],(void 0),e)}function n(e,t){function n(){0===--n.listeners&&r(e)}return n.listeners=t,n}function r(e){var t=b.parentNode(e);b.removeChild(t,e)}function i(e,t){var n=void 0,r=void 0,c=e.data;if(Xe(c)&&(Xe(n=c.hook)&&Xe(n=n.init)&&n(e),Xe(n=e.child)))return a(e,t),s(e),e.elm;var u=e.children,l=e.tag;if(Xe(l)){if(r=e.elm=e.ns?b.createElementNS(e.ns,l):b.createElement(l),s(e),Array.isArray(u))for(n=0;ns?(_=Qe(n[d+1])?null:n[d+1].elm,c(e,_,n,a,d,r)):a>d&&l(e,t,o,s)}function p(e,t,n){if(e!==t){var r=void 0,i=void 0;Xe(r=t.data)&&Xe(i=r.hook)&&Xe(r=i.prepatch)&&r(e,t);var o=t.elm=e.elm,a=e.children,s=t.children;if(Xe(t.data)){for(r=0;r-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+e.getAttribute("class")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function dt(e,t){if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t);else{for(var n=" "+e.getAttribute("class")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");e.setAttribute("class",n.trim())}}function pt(e){Bi(function(){Bi(e)})}function vt(e){var t=e.elm,n=e.context;t._leaveCb&&(t._leaveCb.cancelled=!0,t._leaveCb());var r=e.data.transition;if(r){var i=mt(r,e.context),o=i.css,a=i.appear,s=i.enterClass,c=i.enterActiveClass,u=i.appearClass,l=i.appearActiveClass,f=i.beforeEnter,d=i.onEnter,p=i.afterEnter,v=i.enterCancelled,h=i.beforeAppear,m=i.onAppear,g=i.afterAppear,y=i.appearCancelled,_=!e.context.$root._isMounted;if(!_||a||""===a){var b=_?u:s,w=_?l:c,$=_?h||f:f,A=_?m||d:d,x=_?g||p:p,C=_?y||v:v,k=o!==!1,O=A&&A.length>2,T=t._enterCb=Ct(function(){k&&bt(t,w),T.cancelled?(k&&bt(t,b),C&&C(t,n)):x&&x(t,n),t._enterCb=null});$&&$(t,n),k&&(_t(t,b),_t(t,w),pt(function(){bt(t,b),T.cancelled||O||wt(t,T)})),A&&A(t,n,T),k||O||T()}}}function ht(e,t){function n(){l&&l(r,i),h&&(_t(r,c),_t(r,u),pt(function(){bt(r,c),g.cancelled||m||wt(r,g)})),f&&f(r,i,g),h||m||g()}var r=e.elm,i=e.context;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var o=e.data.transition;if(!o)return t();var a=mt(o,e.context),s=a.css,c=a.leaveClass,u=a.leaveActiveClass,l=a.beforeLeave,f=a.onLeave,d=a.afterLeave,p=a.leaveCancelled,v=a.delayLeave,h=s!==!1,m=f&&f.length>2,g=r._leaveCb=Ct(function(){h&&bt(r,u),g.cancelled?(h&&bt(r,c),p&&p(r,i)):(t(),d&&d(r,i)),r._leaveCb=null});v?v(n):n()}function mt(e,t){var n=void 0;if(e&&"string"==typeof e)return n=Ae(t.$options,"transitions",e),n?gt(n.name||e,n):Fi(e);if("object"==typeof e){if(e.name&&(n=Ae(t.$options,"transitions",e.name)),n=n?u(gt(e.name,n),e):gt(e.name,e),e.hooks)for(var r in e.hooks)yt(n,r,e.hooks[r]);return n}return Fi("v")}function gt(e,t){e=e||"v";var n={};return t.css!==!1&&u(n,Fi(e)),u(n,t),n}function yt(e,t,n){var r=e[t];r?e[t]=function(){r.apply(this,arguments),n()}:e[t]=n}function _t(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(t),ft(e,t)}function bt(e,t){r(e._transitionClasses,t),dt(e,t)}function wt(e,t){var n=$t(e),r=n.type,i=n.timeout,o=n.propCount;if(!r)return t();var a=r===Ni?Ri:Ii,s=0,c=function(){e.removeEventListener(a,u),t()},u=function(){++s>=o&&c()};setTimeout(function(){s0?a>s?Ni:Di:null,l=u?u===Ni?r.length:o.length:0;return{type:u,timeout:c,propCount:l}}function At(e,t){return Math.max.apply(null,t.map(function(t,n){return xt(t)+xt(e[n])}))}function xt(e){return 1e3*Number(e.slice(0,-1))}function Ct(e){var t=!1;return function(){t||(t=!0,e())}}function kt(e){return!!(e.parent&&e.parent.data.transition||e.data.show)}function Ot(e,t){var n=e.multiple;n||(e.selectedIndex=-1);for(var r=0,i=e.options.length;r-1;else if(jt(o)===t){e.selectedIndex=r;break}}}function Tt(e,t){for(var n=0,r=t.length;n=0&&a[o].tag.toLowerCase()!==s;o--);}else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)t.end&&t.end(a[c].tag,r,i);a.length=o,d=o&&a[o-1].tag}else"br"===n.toLowerCase()?t.start&&t.start(n,[],!0,r,i):"p"===n.toLowerCase()&&(t.start&&t.start(n,[],!1,r,i),t.end&&t.end(n,r,i))}for(var a=[],s=Rt(t),c=t.expectHTML,u=t.isUnaryTag||pr,l=0,f=void 0,d=void 0;e;){if(f=e,d&&co(d))!function(){var n=d.toLowerCase(),r=uo[n]||(uo[n]=new RegExp("([\\s\\S]*?)(]*>)","i")),i=0,a=e.replace(r,function(e,r,o){return i=o.length,"script"!==n&&"style"!==n&&"noscript"!==n&&(r=r.replace(//g,"$1").replace(//g,"$1")),t.chars&&t.chars(r),""});l+=e.length-a.length,e=a,o("",n,l-i,l)}();else{var p=e.indexOf("<");if(0===p){if(/^");if(v>=0){n(v+3);continue}}if(/^");if(h>=0){n(h+2);continue}}var m=e.match(ao);if(m){t.doctype&&t.doctype(m[0]),n(m[0].length);continue}var g=e.match(oo);if(g){var y=l;n(g[0].length),o(g[0],g[1],y,l);continue}var _=r();if(_){i(_);continue}}var b=void 0;p>=0?(b=e.substring(0,p),n(p)):(b=e,e=""),t.chars&&t.chars(b)}if(e===f)throw new Error("Error parsing template:\n\n"+e)}o()}function Bt(e){function t(){(d||(d=[])).push(e.slice(s,l).trim()),s=l+1}var n=!1,r=!1,i=0,o=0,a=0,s=0,c=void 0,u=void 0,l=void 0,f=void 0,d=void 0;for(l=0;li&&r.push(JSON.stringify(e.slice(i,a)));var s=Bt(o[1].trim());r.push("_s("+s+")"),i=a+o[0].length}return i-1")+(":("+t+")===("+r+")")),Wt(e,"change","var $$a="+t+",$$el=$event.target,"+("$$c=$$el.checked?("+r+"):("+i+");")+"if(Array.isArray($$a)){"+("var $$v="+n+",")+"$$i=$$a.indexOf($$v);if($$c){$$i<0&&$$a.push($$v)}else{$$i>-1&&$$a.splice($$i,1)}"+("}else{"+t+"=$$c}"))}function Wn(e,t){var n=Gt(e,"value");Vt(e,"checked","("+t+")===("+n+")"),Wt(e,"change",t+"="+n)}function Gn(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=o?"change":"input",u=!o&&"range"!==r,l="$event.target.value"+(s?".trim()":""),f=a||"number"===r?t+"=_n("+l+")":t+"="+l;if(u&&(f="if($event.target.composing)return;"+f),Vt(e,"value","_s("+t+")"),Wt(e,c,f),u)return!0}function Yn(e,t){var n=t+'=Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){return "_value" in o ? o._value : o.value})'+(null==e.attrsMap.multiple?"[0]":"");return Wt(e,"change",n),!0}function Qn(e,t){t.value&&Vt(e,"textContent","_s("+t.value+")")}function Xn(e,t){t.value&&Vt(e,"innerHTML","_s("+t.value+")")}function er(e,t){return t=t?u(u({},Xo),t):Xo,Bn(e,t)}function tr(e,t,n){var r=(t&&t.warn||Zr,t&&t.delimiters?String(t.delimiters)+e:e);if(Qo[r])return Qo[r];var i={},o=er(e,t);i.render=nr(o.render);var a=o.staticRenderFns.length;i.staticRenderFns=new Array(a);for(var s=0;s=9&&Number($r[1])>=3&&!window.indexedDB,xr=function(){function e(){n=!1;var e=t.slice(0);t=[];for(var r=0;r0,gi=vi&&vi.indexOf("android")>0,yi=Object.freeze({createElement:Fe,createElementNS:Ue,createTextNode:He,insertBefore:ze,removeChild:Ve,appendChild:Je,parentNode:Ke,nextSibling:qe,tagName:Ze,setTextContent:We,childNodes:Ge,setAttribute:Ye}),_i=new Hr("",{},[]),bi=["create","update","postpatch","remove","destroy"],wi={create:function(e,t){rt(e,t,"bind")},update:function(e,t){rt(e,t,"update")},postpatch:function(e,t){rt(e,t,"postupdate")},destroy:function(e){rt(e,e,"unbind")}},$i={create:function(e,t){it(t)},update:function(e,t){e.data.ref!==t.data.ref&&(it(e,!0),it(t))},destroy:function(e){it(e,!0)}},Ai=[$i,wi],xi={create:function(e,t){var n=t.data.staticAttrs;if(n)for(var r in n)at(t.elm,r,n[r]);ot(e,t)},update:ot},Ci={create:st,update:st},ki={create:ct,update:ct},Oi={create:ut,update:ut},Ti=["Webkit","Moz","ms"],ji=void 0,Li=a(function(e){if(ji=ji||document.createElement("div"),e=sr(e),"filter"!==e&&e in ji.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n\/=]+)/,Qi=/=/,Xi=[Qi],eo=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],to="[a-zA-Z_][\\w\\-\\.]*",no="((?:"+to+"\\:)?"+to+")",ro=new RegExp("^<"+no),io=/^\s*(\/?)>/,oo=new RegExp("^<\\/"+no+"[^>]*>"),ao=/^]+>/i,so=!1;"x".replace(/x(.)?/g,function(e,t){so=""===t});var co=n("script,style",!0),uo={},lo=/\{\{((?:.|\\n)+?)\}\}/g,fo=/[-.*+?^${}()|[\]\/\\]/g,po=a(function(e){var t=e[0].replace(fo,"\\$&"),n=e[1].replace(fo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),vo=/^v-|^@|^:/,ho=/(.*)\s+(?:in|of)\s+(.*)/,mo=/\(([^,]*),([^,]*)(?:,([^,]*))?\)/,go=/^:|^v-bind:/,yo=/^@|^v-on:/,_o=/:(.*)$/,bo=/\.[^\.]+/g,wo=/[a-z\d][A-Z]/,$o=a(Mt),Ao=void 0,xo=void 0,Co=void 0,ko=void 0,Oo=void 0,To=void 0,jo=void 0,Lo=/^xmlns:NS\d+/,Eo=/^NS\d+:/,So=void 0,No=void 0,Do=a(gn),Mo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,Ro={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Po={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:"if($event.target !== $event.currentTarget)return;"},Io={bind:xn,cloak:p},Bo=void 0,Fo=void 0,Uo=void 0,Ho=void 0,zo=void 0,Vo=void 0,Jo=void 0,Ko=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),{staticKeys:["staticClass"],transformNode:Fn,genData:Un}),qo={transformNode:Hn,genData:zn},Zo={transformNode:Vn,genData:Jn,transformCode:Kn},Wo=[Ko,qo,Zo],Go=void 0,Yo={model:qn,text:Qn,html:Xn},Qo=Object.create(null),Xo={isIE:hi,expectHTML:!0,modules:Wo,staticKeys:v(Wo),directives:Yo,isReservedTag:ci,isUnaryTag:ui,mustUseProp:ei,getTagNamespace:Pe},ea=a(function(e){var t=Be(e);return t&&t.innerHTML}),ta=he.prototype.$mount;return he.prototype.$mount=function(e,t){e=e&&Be(e);var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ea(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=rr(e));if(r){var i=tr(r,{delimiters:n.delimiters,warn:Zr},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ta.call(this,e,t)},he.compile=tr,he});