http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3a53b794/pre-build/native-bundle-main.js ---------------------------------------------------------------------- diff --git a/pre-build/native-bundle-main.js b/pre-build/native-bundle-main.js index 2462718..3699a42 100644 --- a/pre-build/native-bundle-main.js +++ b/pre-build/native-bundle-main.js @@ -1,9 +1,10 @@ -(this.nativeLog||function(e){console.log(e)})("START JS FRAMEWORK 0.23.5-beta.0, Build 2017-12-14 15:01."),this.getJSFMVersion=function(){return"0.23.5-beta.0"};var global=this,process={env:{}},setTimeout=global.setTimeout;!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";function e(e){ar.Document=e.Document,ar.Element=e.Element,ar.Comment=e.Comment,ar.sendTasks=e.sendTasks}function t(e,t,n,r,o){void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={});var i=new ar.Document(e,n.bundleUrl),a={},s={id:e,data:r,document:i,callbacks:a},u=0;i.addCallback=function(e){return u++,a[u]=e,u},i.handleCallback=function(e,t,n){var r=a[e];return n&&delete a[e],r(t)},sr[e]=s;var c=Object.assign({Document:ar.Document,Element:ar.Element,Comment:ar.Comment,sendTasks:function(t){return ar.sendTasks(e,t,-1)},options:n,document:i},o),l=[],f=[];for(var d in c)l.push(d),f.push(c[d]);return l.push(t),(new(Fu nction.prototype.bind.apply(Function,[null].concat(l)))).apply(void 0,f),ar.sendTasks(e,[{module:"dom",method:"createFinish",args:[]}],-1),s}function n(e){delete sr[e]}function r(e){return sr[e].document.body.toJSON()}function o(e,t){var n={fireEvent:function(e,t,n,r,o){var i=sr[e],a=i.document,s=a.getRef(t);return a.fireEvent(s,n,r,o)},callback:function(e,t,n,r){return sr[e].document.handleCallback(t,n,r)}};if((sr[e]||{}).document&&Array.isArray(t)){var r=[];return t.forEach(function(t){var o=n[t.method],i=[].concat(t.args);"function"==typeof o&&(i.unshift(e),r.push(o.apply(void 0,i)))}),r}}function i(e){return e&&e.__esModule?e.default:e}function a(e,t){return t={exports:{}},e(t,t.exports),t.exports}function s(e){console.warn("[JS Framework] Vm#$ is deprecated, please use Vm#$vm instead");var t=this._ids[e];if(t)return t.vm}function u(e){var t=this._ids[e];if(t)return t.el}function c(e){var t=this._ids[e];if(t)return t.vm}function l(e){return this._app.differ.then(function(){e()}) }function f(e,t){console.warn("[JS Framework] Vm#$scrollTo is deprecated, please use \"require('@weex-module/dom').scrollTo(el, options)\" instead");var n=this.$el(e);if(n){this._app.requireModule("dom").scrollToElement(n.ref,{offset:t})}}function d(e,t,n){var r=this,o=this.$el(e);if(o&&t&&t.styles){this._app.requireModule("animation").transition(o.ref,t,function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];r._setStyle(o,t.styles),n&&n.apply(void 0,e)})}}function p(e){var t=this._app.options;return"function"==typeof e&&(console.warn("[JS Framework] the callback of Vm#$getConfig(callback) is deprecated, this api now can directly RETURN config info."),e(t)),t}function h(e,t){console.warn("[JS Framework] Vm#$sendHttp is deprecated, please use \"require('@weex-module/stream').sendHttp(params, callback)\" instead"),this._app.requireModule("stream").sendHttp(e,t)}function v(e){console.warn("[JS Framework] Vm#$openURL is deprecated, please use \"require('@weex-module/event').op enURL(url)\" instead"),this._app.requireModule("event").openURL(e)}function y(e){console.warn("[JS Framework] Vm#$setTitle is deprecated, please use \"require('@weex-module/pageInfo').setTitle(title)\" instead"),this._app.requireModule("pageInfo").setTitle(e)}function m(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];console.warn("[JS Framework] Vm#$call is deprecated, please use \"require('@weex-module/moduleName')\" instead");var o=this._app.requireModule(e);o&&o[t]&&o[t].apply(o,n)}function _(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"==typeof Object.assign)Object.assign.apply(Object,[e].concat(t));else{var r=t.shift();for(var o in r)e[o]=r[o];t.length&&_.apply(void 0,[e].concat(t))}return e}function g(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function w(e,t){return _r.call(e,t)}function x(e,t){return fu nction(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function O(e){return null!==e&&"object"==typeof e}function S(e){return gr.call(e)===br}function k(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function E(){return"object"==typeof nativeSet?nativeSet.create():new ir}function C(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1).toLowerCase()}function j(e){return e.replace(xr,"").replace(Or,"")}function A(e){return e.replace(kr,"")}function I(){this.id=Ir++,this.subs=[]}function T(e){I.target&&Tr.push(I.target),I.target=e}function P(){I.target=Tr.pop()}function N(){I.target=null,Tr=[]}function M(e,t,n,r){r&&_(this,r);var o="function"==typeof t;this.vm=e,e._watchers.push(this),this.expression=t,this.cb=n,this.id=++Pr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=E(),this.newDepIds=E(),o&&(this.getter=t),this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function $(e,t){v ar n,r,o,i;if(t||(t=Nr,t.clear()),o=Array.isArray(e),i=O(e),o||i){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o)for(n=e.length;n--;)$(e[n],t);else if(i)for(r=Object.keys(e),n=r.length;n--;)$(e[r[n]],t)}}function R(e){if(this.value=e,this.dep=new I,g(e,"__ob__",this),Array.isArray(e)){(wr?D:F)(e,$r,Rr),this.observeArray(e)}else this.walk(e)}function D(e,t){e.__proto__=t}function F(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];g(e,i,t[i])}}function L(e,t){if(O(e)){var n;return w(e,"__ob__")&&e.__ob__ instanceof R?n=e.__ob__:(Array.isArray(e)||S(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new R(e)),n&&t&&n.addVm(t),n}}function W(e,t,n){var r=new I,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var i=o&&o.get,a=o&&o.set,s=L(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=i?i.call(e):n;if(I.target&&(r.depend(),s&&s.dep.depend(),Array.isArray(t)))for(var o=void 0,a=0,u=t.length;a<u;a++)(o=t[a])&&o.__ob__&&o.__ob __.dep.depend();return t},set:function(t){t!==(i?i.call(e):n)&&(a?a.call(e,t):n=t,s=L(t),r.notify())}})}}function V(e,t,n){if(Array.isArray(e))return e.splice(t,1,n);if(w(e,t))return void(e[t]=n);if(e._isVue)return void V(e._data,t,n);var r=e.__ob__;if(!r)return void(e[t]=n);if(r.convert(t,n),r.dep.notify(),r.vms)for(var o=r.vms.length;o--;){var i=r.vms[o];B(i,t)}return n}function U(e,t){if(w(e,t)){delete e[t];var n=e.__ob__;if(!n)return void(e._isVue&&delete e._data[t]);if(n.dep.notify(),n.vms)for(var r=n.vms.length;r--;){var o=n.vms[r];q(o,t)}}}function B(e,t){(Dr.indexOf(t)>-1||!k(t))&&Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})}function q(e,t){k(t)||delete e[t]}function J(e){e._watchers=[],z(e),G(e),K(e)}function z(e){var t=e._data;S(t)||(t={});for(var n=Object.keys(t),r=n.length;r--;)B(e,n[r]);L(t,e)}function H(){}function G(e){var t=e._computed;if(t)for(var n in t){var r=t[n],o={enumerable:!0,config urable:!0};"function"==typeof r?(o.get=X(r,e),o.set=H):(o.get=r.get?!1!==r.cache?X(r.get,e):x(r.get,e):H,o.set=r.set?x(r.set,e):H),Object.defineProperty(e,n,o)}}function X(e,t){var n=new M(t,e,null,{lazy:!0});return function(){return n.dirty&&n.evaluate(),I.target&&n.depend(),n.value}}function K(e){var t=e._methods;if(t)for(var n in t)e[n]=t[n]}function Z(e){var t=e.type,n=Lr[t];if("object"==typeof n)for(var r in n)if(null==e[r])e[r]=n[r];else if("object"===C(e[r])&&"object"===C(n[r]))for(var o in n[r])null==e[r][o]&&(e[r][o]=n[r][o])}function Q(e,t,n){oe(e,t,n.id,e),ie(e,t,n.attr),se(e,t,n.classList),ue(e,t,n.style),le(e,t,n.events)}function Y(e,t,n,r){t=t||{},n=n||{};var o=t._options||{},i=o.props;Array.isArray(i)&&(i=i.reduce(function(e,t){return e[t]=!0,e},{})),te(r,i,e,t),te(n.attr,i,e,t)}function ee(e,t,n,r){void 0===r&&(r={}),re(n.classList,e,t),ne(n.style,e,t),r.children?r.children[r.children.length-1]._vm=t:r._vm=t}function te(e,t,n,r){if(e){for(var o in e)!function(o){if(! t||t[o]){var i=e[o];if("function"==typeof i){var a=pe(n,i,function(e){r[o]=e});r[o]=a}else r[o]=i}}(o)}}function ne(e,t,n){for(var r in e)!function(r){var o=e[r];if("function"==typeof o){var i=pe(t,o,function(e){n._rootEl&&n._rootEl.setStyle(r,e)});n._rootEl.setStyle(r,i)}else n._rootEl&&n._rootEl.setStyle(r,o)}(r)}function re(e,t,n){function r(e,t){"array"===C(e)&&e.unshift(t)}var o=t._options&&t._options.style||{};if(n._rootEl){var i="@originalRootEl";if(o[i]=n._rootEl.classStyle,"function"==typeof e){var a=pe(t,e,function(e){r(e,i),ae(n._rootEl,o,e)});r(a,i),ae(n._rootEl,o,a)}else null!=e&&(r(e,i),ae(n._rootEl,o,e))}}function oe(e,t,n,r){var o=Object.create(null);if(Object.defineProperties(o,{vm:{value:r,writable:!1,configurable:!1},el:{get:function(){return t||r._rootEl},configurable:!1}}),"function"==typeof n){var i=n;n=i.call(e),(n||0===n)&&(e._ids[n]=o),pe(e,i,function(t){t&&(e._ids[t]=o)})}else n&&"string"==typeof n&&(e._ids[n]=o)}function ie(e,t,n){fe(e,t,"attr",n)}function ae(e,t,n){"string"==typeof n&&(n=n.split(/\s+/)),n.forEach(function(e,t){n.splice.apply(n,[t,1].concat(e.split(/\s+/)))});for(var r={},o=n.length,i=0;i<o;i++)!function(e){var o=t[n[e]];o&&Object.keys(o).forEach(function(e){r[e]=o[e]})}(i);e.setClassStyle(r)}function se(e,t,n){if("function"==typeof n||Array.isArray(n)){if(Array.isArray(n)&&!n.length)return void t.setClassStyle({});var r=e._options&&e._options.style||{};if("function"==typeof n){var o=pe(e,n,function(e){ae(t,r,e)});ae(t,r,o)}else ae(t,r,n)}}function ue(e,t,n){fe(e,t,"style",n)}function ce(e,t,n,r){t.addEvent(n,x(r,e))}function le(e,t,n){if(n)for(var r=Object.keys(n),o=r.length;o--;){var i=r[o],a=n[i];"string"==typeof a&&((a=e[a])||console.warn('[JS Framework] The event handler "'+a+'" is not defined.')),ce(e,t,i,a)}}function fe(e,t,n,r){if(r)for(var o=Object.keys(r),i=o.length;i--;){var a=o[i],s=r[a];"function"==typeof s?de(e,t,n,a,s):t[Wr[n]](a,s)}}function de(e,t,n,r,o){var i=Wr[n],a=pe(e,o,function(n){function o(){ t[i](r,n)}var a=e&&e._app&&e._app.differ;a?a.append("element",t.depth||0,t.ref,o):o()});t[i](r,a)}function pe(e,t,n){return e._static?t.call(e,e):new M(e,t,function(e,t){"object"!=typeof e&&e===t||n(e)}).value}function he(e,t){return e._app.doc.createBody(t)}function ve(e,t){return e._app.doc.createElement(t)}function ye(e,t){var n=me(e),r=_e(e),o=Vr++;if(t.element){var i=t.updateMark;i?(i.element&&(i=i.end),t.element.insertAfter(r,i),t.element.insertAfter(n,i),t.updateMark=r):(t.element.insertBefore(n,t.end),t.element.insertBefore(r,t.end)),t=t.element}else t.appendChild(n),t.appendChild(r);return{start:n,end:r,element:t,blockId:o}}function me(e){return e._app.doc.createComment("start")}function _e(e){return e._app.doc.createComment("end")}function ge(e,t,n){if(n.element){var r=n.end,o=n.updateMark;if(n.children&&n.children.push(t),o){var i=be(e,t,o);return n.updateMark=t.element?t.end:t,i}if(!t.element)return n.element.insertBefore(t,r);n.element.insertBefore(t.start,r),n.element. insertBefore(t.end,r)}else{if(!t.element)return n.appendChild(t);n.appendChild(t.start),n.appendChild(t.end)}}function be(e,t,n){return t.element?xe(t,n):we(t,n)}function we(e,t){var n=t.parentNode;if(n)return n.insertAfter(e,t)}function xe(e,t){var n=t.parentNode;if(n){for(var r,o=e.start,i=[o];o&&o!==e.end;)o=o.nextSibling,i.push(o);var a=t;return i.every(function(e){return r=n.insertAfter(e,a),a=e,-1!==r}),r}}function Oe(e,t,n){void 0===n&&(n=!1),t.element?ke(t,n):Se(t),t._vm&&t._vm.$emit("hook:destroyed")}function Se(e){var t=e.parentNode;t&&t.removeChild(e)}function ke(e,t){void 0===t&&(t=!1);for(var n=[],r=e.start.nextSibling;r&&r!==e.end;)n.push(r),r=r.nextSibling;t||Se(e.start),n.forEach(function(e){Se(e)}),t||Se(e.end)}function Ee(e){var t=e._options||{},n=t.template||{};t.replace?n.children&&1===n.children.length?Ce(e,n.children[0],e._parentEl):Ce(e,n.children,e._parentEl):Ce(e,n,e._parentEl),console.debug('[JS Framework] "ready" lifecycle in Vm('+e._type+")"),e.$emit("hoo k:ready"),e._ready=!0}function Ce(e,t,n,r){if(-1!==(e._app||{}).lastSignal){if(t.attr&&t.attr.hasOwnProperty("static")&&(e._static=!0),je(t))return void Me(e,t,n,r);if(r=r||{},Ae(t))return console.debug('[JS Framework] compile "content" block by',t),void(e._content=ye(e,n));if(Ie(t,r))return console.debug('[JS Framework] compile "repeat" logic by',t),void("document"===n.type?console.warn("[JS Framework] The root element does't support `repeat` directive!"):$e(e,t,n));if(Te(t,r))return console.debug('[JS Framework] compile "if" logic by',t),void("document"===n.type?console.warn("[JS Framework] The root element does't support `if` directive!"):Re(e,t,n,r));var o=r.type||t.type;if(Pe(o,r))return void De(e,t,n,o,r);var i=o,a=Ne(e,t,i);if(a)return console.debug("[JS Framework] compile composed component by",t),void Fe(e,a,t,n,i,r);console.debug("[JS Framework] compile native component by",t),Le(e,t,n,i)}}function je(e){return Array.isArray(e)}function Ae(e){return"content"===e.type||"slo t"===e.type}function Ie(e,t){return!t.hasOwnProperty("repeat")&&e.repeat}function Te(e,t){return!t.hasOwnProperty("shown")&&e.shown}function Pe(e,t){return"function"==typeof e&&!t.hasOwnProperty("type")}function Ne(e,t,n){var r;return e._app&&e._app.customComponentMap&&(r=e._app.customComponentMap[n]),e._options&&e._options.components&&(r=e._options.components[n]),t.component&&(r=r||{}),r}function Me(e,t,n,r){var o=ye(e,n);t.forEach(function(t){Ce(e,t,o,r)})}function $e(e,t,n){var r=t.repeat,o="function"==typeof r,i=r.getter||r.expression||r;"function"!=typeof i&&(i=function(){return[]});var a=r.key||"$index",s=r.value||"$value",u=r.trackBy||t.trackBy||t.attr&&t.attr.trackBy,c=ye(e,n);c.children=[],c.data=[],c.vms=[],Ve(e,t,c,{getter:i,key:a,value:s,trackBy:u,oldStyle:o})}function Re(e,t,n,r){var o={shown:!0},i=ye(e,n);n.element&&n.children&&n.children.push(i),r.repeat&&(o.repeat=r.repeat),Ue(e,t,i,o)}function De(e,t,n,r,o){var i=r.call(e),a=_({type:i},o),s=ye(e,n);n.element&&n.chil dren&&n.children.push(s),pe(e,r,function(n){var r=_({type:n},o);Oe(e,s,!0),Ce(e,t,s,r)}),Ce(e,t,s,a)}function Fe(e,t,n,r,o,i){var a=e.constructor,s=new a(o,t,e,r,void 0,{"hook:init":function(){e._static&&(this._static=e._static),oe(e,null,n.id,this),this._externalBinding={parent:e,template:n}},"hook:created":function(){Y(e,this,n,i.repeat)},"hook:ready":function(){this._content&&We(e,n,this._content)}});ee(e,s,n,r)}function Le(e,t,n,r){Z(t);var o;if("_documentElement"===n.ref?(console.debug("[JS Framework] compile to create body for "+r),o=he(e,r)):(console.debug("[JS Framework] compile to create element for "+r),o=ve(e,r)),!e._rootEl){e._rootEl=o;var i=e._externalBinding||{},a=i.template,s=i.parent;if(a&&a.events&&s&&o)for(var u in a.events){var c=s[a.events[u]];c&&o.addEvent(u,x(c,s))}}Q(e,o,t),t.attr&&t.attr.append&&(t.append=t.attr.append),t.append&&(o.attr=o.attr||{},o.attr.append=t.append);var l="tree"===t.append,f=e._app||{};-1===f.lastSignal||l||(console.debug("[JS Framework ] compile to append single node for",o),f.lastSignal=ge(e,o,n)),-1!==f.lastSignal&&We(e,t,o),-1!==f.lastSignal&&l&&(console.debug("[JS Framework] compile to append whole tree for",o),f.lastSignal=ge(e,o,n))}function We(e,t,n){var r=e._app||{},o=t.children;o&&o.length&&o.every(function(t){return Ce(e,t,n),-1!==r.lastSignal})}function Ve(e,t,n,r){function o(e,r,o){var a;c?(a=e,O(e)?(a[l]=r,a.hasOwnProperty("INDEX")||Object.defineProperty(a,"INDEX",{value:function(){console.warn('[JS Framework] "INDEX" in repeat is deprecated, please use "$index" instead')}})):(console.warn("[JS Framework] Each list item must be an object in old-style repeat, please use `repeat={{v in list}}` instead."),a={},a[l]=r,a[f]=e)):(a={},a[l]=r,a[f]=e);var s=qe(o,a);i.push(s),Ce(s,t,n,{repeat:e})}var i=n.vms,a=n.children,s=r.getter,u=r.trackBy,c=r.oldStyle,l=r.key,f=r.value,d=Be(e,n,s,"repeat",function(t){if(console.debug('[JS Framework] the "repeat" item has changed',t),n&&t){var r=a.slice(),s=i.slice(),d=n.d ata.slice(),p={},h={};t.forEach(function(e,t){var n=u?e[u]:c?e[l]:t;null!=n&&""!==n&&(p[n]=e)});var v=[];d.forEach(function(t,n){var o=u?t[u]:c?t[l]:n;p.hasOwnProperty(o)?(h[o]={item:t,index:n,key:o,target:r[n],vm:s[n]},v.push(t)):Oe(e,r[n])}),a.length=0,i.length=0,n.data=t.slice(),n.updateMark=n.start,t.forEach(function(t,r){var s=u?t[u]:c?t[l]:r,d=h[s];d?(d.item===v[0]?v.shift():(v.$remove(d.item),be(e,d.target,n.updateMark,!0)),a.push(d.target),i.push(d.vm),c?d.vm=t:d.vm[f]=t,d.vm[l]=r,n.updateMark=d.target):o(t,r,e)}),delete n.updateMark}});n.data=d.slice(0),d.forEach(function(t,n){o(t,n,e)})}function Ue(e,t,n,r){var o=Be(e,n,t.shown,"shown",function(o){console.debug('[JS Framework] the "if" item was changed',o),n&&!!n.display!=!!o&&(n.display=!!o,o?Ce(e,t,n,r):Oe(e,n,!0))});n.display=!!o,o&&Ce(e,t,n,r)}function Be(e,t,n,r,o){var i=e&&e._app&&e._app.differ,a={},s=(t.element.depth||0)+1;return pe(e,n,function(e){a.latestValue=e,i&&!a.recorded&&i.append(r,s,t.blockId,function(){va r e=a.latestValue;o(e),a.recorded=!1,a.latestValue=void 0}),a.recorded=!0})}function qe(e,t){var n=Object.create(e);return n._data=t,z(n),G(n),n._realParent=e,e._static&&(n._static=e._static),n}function Je(e,t){if(t instanceof Je)return t;this.timestamp=Date.now(),this.detail=t,this.type=e;var n=!1;this.stop=function(){n=!0},this.hasStopped=function(){return n}}function ze(e,t){var n=this,r=this._vmEvents,o=r[e];if(o){var i=new Je(e,t);o.forEach(function(e){e.call(n,i)})}}function He(e,t){var n=new Je(e,t);this.$emit(e,n),!n.hasStopped()&&this._parent&&this._parent.$dispatch&&this._parent.$dispatch(e,n)}function Ge(e,t){var n=new Je(e,t);this.$emit(e,n),!n.hasStopped()&&this._childrenVms&&this._childrenVms.forEach(function(t){t.$broadcast(e,n)})}function Xe(e,t){if(e&&"function"==typeof t){var n=this._vmEvents,r=n[e]||[];r.push(t),n[e]=r,"hook:ready"===e&&this._ready&&this.$emit("hook:ready")}}function Ke(e,t){if(e){var n=this._vmEvents;if(!t)return void delete n[e];var r=n[e];r&&r. $remove(t)}}function Ze(e,t){var n=e._options||{},r=n.events||{};for(var o in r)e.$on(o,r[o]);for(var i in t)e.$on(i,t[i]);Ur.forEach(function(t){e.$on("hook:"+t,n[t])})}function Qe(e,t,n,r,o,i){n=n||{},this._parent=n._realParent?n._realParent:n,this._app=n._app||{},n._childrenVms&&n._childrenVms.push(this),!t&&this._app.customComponentMap&&(t=this._app.customComponentMap[e]),t=t||{};var a=t.data||{};this._options=t,this._methods=t.methods||{},this._computed=t.computed||{},this._css=t.style||{},this._ids={},this._vmEvents={},this._childrenVms=[],this._type=e,Ze(this,i),console.debug('[JS Framework] "init" lifecycle in Vm('+this._type+")"),this.$emit("hook:init"),this._inited=!0,this._data="function"==typeof a?a():a,o&&_(this._data,o),J(this),console.debug('[JS Framework] "created" lifecycle in Vm('+this._type+")"),this.$emit("hook:created"),this._created=!0,t.methods&&t.methods.ready&&(console.warn('"exports.methods.ready" is deprecated, please use "exports.created" instead'),t.meth ods.ready.call(this)),this._app.doc&&(this._parentEl=r||this._app.doc.documentElement,Ee(this))}function Ye(e,t){for(var n in e)!function(n){var r=Br[n];r||(r={},Br[n]=r),e[n].forEach(function(e){"string"==typeof e&&(e={name:e}),r[e.name]&&!t||(r[e.name]=e)})}(n)}function et(e,t){var n=e.prototype;for(var r in t)n.hasOwnProperty(r)||(n[r]=t[r])}function tt(e,t){var n=Br[t],r={};for(var o in n)!function(n){Object.defineProperty(r,n,{configurable:!0,enumerable:!0,get:function(){return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return e.callTasks({module:t,method:n,args:r})}},set:function(r){if("function"==typeof r)return e.callTasks({module:t,method:n,args:[r]})}})}(o);return r}function nt(e,t){return e.customComponentMap[t]}function rt(e,t,n){var r=e.customComponentMap;if(r[t])return void console.error("[JS Framework] define a component("+t+") that already exists");r[t]=n}function ot(e){if(qr.valid(e))return e;e="string"==typeof e?e:"";for(var t=e.split("."),n= 0,r=[];n<3;){var o="string"==typeof t[n]&&t[n]?t[n]:"0";r.push(o),n++}return r.join(".")}function it(e,t,n){var r={isDowngrade:!0,errorType:1,code:1e3},o=e.toLowerCase();return r.errorMessage=function(e,t,n){return"Downgrade["+e+"] :: deviceInfo "+t+" matched criteria "+n}(e,t,n),o.indexOf("osversion")>=0?r.code=1001:o.indexOf("appversion")>=0?r.code=1002:o.indexOf("weexversion")>=0?r.code=1003:o.indexOf("devicemodel")>=0&&(r.code=1004),r}function at(e,t){t=t||global.WXEnvironment,t=S(t)?t:{};var n={isDowngrade:!1};if("function"===C(e)){var r=e.call(this,t,{semver:qr,normalizeVersion:ot});r=!!r,n=r?it("custom","","custom params"):n}else{e=S(e)?e:{};var o=t.platform||"unknow",i=o.toLowerCase(),a=e[i]||{};for(var s in t){var u=s,c=u.toLowerCase(),l=t[s],f=c.indexOf("version")>=0,d=c.indexOf("devicemodel")>=0,p=a[s];if(p&&f){var h=ot(p),v=ot(t[s]);if(qr.satisfies(v,h)){n=it(u,l,p);break}}else if(d){var y="array"===C(p)?p:[p];if(y.indexOf(l)>=0){n=it(u,l,p);break}}}}return n}function st (e,t){if(void 0===t&&(t={}),e&&e.callTasks)return e.callTasks([{module:"meta",method:"setViewport",args:[t]}])}function ut(e,t,n,r){console.debug("[JS Framework] bootstrap for "+t);var o;if(Er(t))o=j(t);else{if(!Ar(t))return new Error("Wrong component name: "+t);if(o=A(t),!nt(e,o))return new Error("It's not a component: "+t)}if(n=S(n)?n:{},"string"==typeof n.transformerVersion&&"string"==typeof global.transformerVersion&&!qr.satisfies(n.transformerVersion,global.transformerVersion))return new Error("JS Bundle version: "+n.transformerVersion+" not compatible with "+global.transformerVersion);var i=at(n.downgrade);if(i.isDowngrade)return e.callTasks([{module:"instanceWrap",method:"error",args:[i.errorType,i.code,i.errorMessage]}]),new Error("Downgrade["+i.code+"]: "+i.errorMessage);n.viewport&&st(e,n.viewport),e.vm=new Qe(o,null,{_app:e},null,r)}function ct(e,t,n){console.warn("[JS Framework] Register is deprecated, please install lastest transformer."),rt(e,t,n)}function lt(e,t){cons ole.debug("[JS Framework] Refresh with",t,"in instance["+e.id+"]");var n=e.vm;return n&&t?("function"==typeof n.refreshData?n.refreshData(t):_(n,t),e.differ.flush(),void e.doc.taskCenter.send("dom",{action:"refreshFinish"},[])):new Error('invalid data "'+t+'"')}function ft(e){console.debug("[JS Framework] Destory an instance("+e.id+")"),e.vm&&dt(e.vm),e.id="",e.options=null,e.blocks=null,e.vm=null,e.doc.taskCenter.destroyCallback(),e.doc.destroy(),e.doc=null,e.customComponentMap=null,e.commonModules=null}function dt(e){if(delete e._app,delete e._computed,delete e._css,delete e._data,delete e._ids,delete e._methods,delete e._options,delete e._parent,delete e._parentEl,delete e._rootEl,e._watchers){for(var t=e._watchers.length;t--;)e._watchers[t].teardown();delete e._watchers}if(e._childrenVms){for(var n=e._childrenVms.length;n--;)dt(e._childrenVms[n]);delete e._childrenVms}console.debug('[JS Framework] "destroyed" lifecycle in Vm('+e._type+")"),e.$emit("hook:destroyed"),delete e._typ e,delete e._vmEvents}function pt(e){var t=e.doc||{},n=t.body||{};return n.toJSON?n.toJSON():{}}function ht(e,t,n,r,o){if(console.debug('[JS Framework] Fire a "'+n+'" event on an element('+t+") in instance("+e.id+")"),Array.isArray(t))return void t.some(function(t){return!1!==ht(e,t,n,r)});var i=e.doc.getRef(t);if(i){var a=e.doc.fireEvent(i,n,r,o);return e.differ.flush(),e.doc.taskCenter.send("dom",{action:"updateFinish"},[]),a}return new Error('invalid element reference "'+t+'"')}function vt(e,t,n,r){console.debug("[JS Framework] Invoke a callback("+t+") with",n,"in instance("+e.id+")");var o=e.doc.taskCenter.callback(t,n,r);return yt(e),e.doc.taskCenter.send("dom",{action:"updateFinish"},[]),o}function yt(e){e.differ.flush()}function mt(e,t){var n;return"array"!==C(t)&&(t=[t]),t.forEach(function(t){n=e.doc.taskCenter.send("module",{module:t.module,method:t.method},t.args)}),n}function _t(e,t,n,r){console.debug("[JS Framework] Intialize an instance with:\n",n);var o,i=function(){for (var t=[],n=arguments.length;n--;)t[n]=arguments[n];return Jr.apply(void 0,[e].concat(t))},a=function(t,r,i){o=ut(e,t,r,i||n),yt(e),e.doc.listener.createFinish(),console.debug("[JS Framework] After intialized an instance("+e.id+")")},s=Qe,u=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return ct.apply(void 0,[e].concat(t))},c=function(t,n){o=ut(e,t,{},n)},l=function(t){return function(n){o=ut(e,t,{},n)}},f=e.doc,d=function(t){return e.requireModule(j(t))},p={config:e.options,define:i,bootstrap:a,requireModule:d,document:f,Vm:s};Object.freeze(p);var h;"function"==typeof t?h=t.toString().substr(12):t&&(h=t.toString()),h='(function(global){\n\n"use strict";\n\n '+h+" \n\n})(Object.create(this))";var v=global.WXEnvironment,y={};if(v&&"Web"!==v.platform){var m=e.requireModule("timer");Object.assign(y,{setTimeout:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=function(){t[0].apply(t,t.slice(2))};return m.setTimeout(r,t[1]),e.doc.taskCenter.call backManager.lastCallbackId.toString()},setInterval:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=function(){t[0].apply(t,t.slice(2))};return m.setInterval(r,t[1]),e.doc.taskCenter.callbackManager.lastCallbackId.toString()},clearTimeout:function(e){m.clearTimeout(e)},clearInterval:function(e){m.clearInterval(e)}})}var _=Object.assign({define:i,require:l,bootstrap:a,register:u,render:c,__weex_define__:i,__weex_bootstrap__:a,__weex_document__:f,__weex_require__:d,__weex_viewmodel__:s,weex:p},y,r);return bt(_,h)||gt(_,h),o}function gt(e,t){var n=[],r=[];for(var o in e)n.push(o),r.push(e[o]);return n.push(t),(new(Function.prototype.bind.apply(Function,[null].concat(n)))).apply(void 0,r)}function bt(e,t){if("function"!=typeof compileAndRunBundle)return!1;var n=void 0,r=!1,o="(function (",i=[],a=[];for(var s in e)i.push(s),a.push(e[s]);for(var u=0;u<i.length-1;++u)o+=i[u],o+=",";o+=i[i.length-1],o+=") {",o+=t,o+="} )";try{var c=e.weex||{},l=c.config||{};n=compileA ndRunBundle(o,l.bundleUrl,l.bundleDigest,l.codeCachePath),n&&"function"==typeof n&&(n.apply(void 0,a),r=!0)}catch(e){console.error(e)}return r}function wt(e,t){var n=e[t];for(var r in n)n[r]()}function xt(e,t){var n=e[t];for(var r in n){n[r].forEach(function(e){e()})}}function Ot(e,t){this.id=e,this.options=t||{},this.vm=null,this.customComponentMap={},this.commonModules={},this.doc=new Fr.Document(e,this.options.bundleUrl,null,Fr.Listener),this.differ=new zr(e)}function St(e,t,n,r,o){var i=o||{},a=i.services;N();var s=Hr[e];n=n||{};var u;return s?u=new Error('invalid instance id "'+e+'"'):(s=new Ot(e,n),Hr[e]=s,u=_t(s,t,r,a)),u instanceof Error?u:s}function kt(e){Fr.Document=e.Document,Fr.Element=e.Element,Fr.Comment=e.Comment,Fr.sendTasks=e.sendTasks,Fr.Listener=e.Listener}function Et(e,t){var n=Hr[e];return n?lt(n,t):new Error('invalid instance id "'+e+'"')}function Ct(e){"function"==typeof markupState&&markupState(),N();var t=Hr[e];if(!t)return new Error('invalid instance id "'+ e+'"');ft(t),delete Hr[e];var n=Math.round(e);if(n>0){n%18||"function"!=typeof notifyTrimMemory||notifyTrimMemory()}return Hr}function jt(e){Array.isArray(e)&&e.forEach(function(e){e&&("string"==typeof e?Gr[e]=!0:"object"==typeof e&&"string"==typeof e.type&&(Gr[e.type]=e))})}function At(e){"object"==typeof e&&Ye(e)}function It(e){"object"==typeof e&&et(Qe,e)}function Tt(e,t){if(Hr[e]&&Array.isArray(t)){var n=[];return t.forEach(function(t){var r=Xr[t.method],o=[].concat(t.args);"function"==typeof r&&(o.unshift(e),n.push(r.apply(void 0,o)))}),n}return new Error('invalid instance id "'+e+'" or tasks')}function Pt(e){var t=Hr[e];return t?pt(t):new Error('invalid instance id "'+e+'"')}function Nt(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=Zs(t),this.reject=Zs(n)}function Mt(){if(Rt(),global.WXEnvironment&&"Web"!==global.WXEnvironment.platform)global.console={debug:function(){for(var e=[],t=argum ents.length;t--;)e[t]=arguments[t];Dt("debug")&&global.nativeLog.apply(global,Ft(e).concat(["__DEBUG"]))},log:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Dt("log")&&global.nativeLog.apply(global,Ft(e).concat(["__LOG"]))},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Dt("info")&&global.nativeLog.apply(global,Ft(e).concat(["__INFO"]))},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Dt("warn")&&global.nativeLog.apply(global,Ft(e).concat(["__WARN"]))},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Dt("error")&&global.nativeLog.apply(global,Ft(e).concat(["__ERROR"]))}};else{var e=console.debug,t=console.log,n=console.info,r=console.warn,o=console.error;console.__ori__={debug:e,log:t,info:n,warn:r,error:o},console.debug=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Dt("debug")&&console.__ori__.debug.apply(console,e)},console.log=function(){for(var e=[],t=arguments.length;t-- ;)e[t]=arguments[t];Dt("log")&&console.__ori__.log.apply(console,e)},console.info=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Dt("info")&&console.__ori__.info.apply(console,e)},console.warn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Dt("warn")&&console.__ori__.warn.apply(console,e)},console.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Dt("error")&&console.__ori__.error.apply(console,e)}}}function $t(){zu={},global.console=Hu}function Rt(){Ju.forEach(function(e){var t=Ju.indexOf(e);zu[e]={},Ju.forEach(function(n){Ju.indexOf(n)<=t&&(zu[e][n]=!0)})})}function Dt(e){var t=global.WXEnvironment&&global.WXEnvironment.logLevel||"log";return zu[t]&&zu[t][e]}function Ft(e){return e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringify(e):String(e)})}function Lt(){if(void 0===setTimeout&&"function"==typeof Xu){var e={},t=0;global.setTimeout=function(n,r){e[++t]=n,Xu(t.t oString(),r)},global.setTimeoutCallback=function(t){"function"==typeof e[t]&&(e[t](),delete e[t])}}}function Wt(){global.setTimeout=Gu,global.setTimeoutCallback=null}function Vt(){Object.freeze(Object),Object.freeze(Array),Ut(),Object.freeze(Array.prototype),Object.freeze(String.prototype),Object.freeze(Number.prototype),Object.freeze(Boolean.prototype),Bt(),Object.freeze(Date.prototype),Object.freeze(RegExp.prototype)}function Ut(){var e=Object.prototype,t="Object.prototype";qt(e,"__defineGetter__",t),qt(e,"__defineSetter__",t),qt(e,"__lookupGetter__",t),qt(e,"__lookupSetter__",t),qt(e,"constructor",t),qt(e,"hasOwnProperty",t),qt(e,"isPrototypeOf",t),qt(e,"propertyIsEnumerable",t),qt(e,"toLocaleString",t),qt(e,"toString",t),qt(e,"valueOf",t),Object.seal(e)}function Bt(){var e=Error.prototype,t="Error.prototype";qt(e,"name",t),qt(e,"message",t),qt(e,"toString",t),qt(e,"constructor",t),Object.seal(e)}function qt(e,t,n){if(e.hasOwnProperty(t)){var r=e[t];Object.defineProperty(e,t,{get :function(){return r},set:function(r){if(this===e)throw Error("Cannot assign to read only property "+t+" of "+n);return Object.defineProperty(this,t,{value:r,writable:!0}),r}})}}function Jt(){return(Ku++).toString()}function zt(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function Ht(e){if("function"!=typeof btoa)return"";var t=Array.prototype.map.call(new Uint8Array(e),function(e){return String.fromCharCode(e)}).join("");return btoa(t)}function Gt(e){if("function"!=typeof atob)return new ArrayBuffer(0);var t=atob(e),n=new Uint8Array(t.length);return Array.prototype.forEach.call(t,function(e,t){n[t]=e.charCodeAt(0)}),n.buffer}function Xt(e){var t=zt(e);switch(t){case"Undefined":case"Null":return"";case"RegExp":return e.toString();case"Date":return e.toISOString();case"Number":case"String":case"Boolean":case"Array":case"Object":return e;case"ArrayBuffer":return{"@type":"binary",dataType:t,base64:Ht(e)};case"Int8Array":case"Uint8Array":case"Uint8ClampedA rray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array": -case"Float64Array":return{"@type":"binary",dataType:t,base64:Ht(e.buffer)};default:return JSON.stringify(e)}}function Kt(e){if("Object"===zt(e)){if(e["@type"]&&"binary"===e["@type"])return Gt(e.base64||"");var t={};for(var n in e)t[n]=Kt(e[n]);return t}return"Array"===zt(e)?e.map(Kt):e}function Zt(e,t,n){return t+"@"+n+"#"+e}function Qt(e,t){e&&(Qu[e]=t)}function Yt(e){return Qu[e]}function en(e){delete Qu[e]}function tn(e){var t=Qu[e];return t&&t.taskCenter?t.taskCenter:null}function nn(e,t,n){var r=e.documentElement;if(!(r.pureChildren.length>0||t.parentNode)){var o=r.children,i=o.indexOf(n);i<0?o.push(t):o.splice(i,0,t),1===t.nodeType?("body"===t.role?(t.docId=e.id,t.ownerDocument=e,t.parentNode=r,an(t,r)):(t.children.forEach(function(e){e.parentNode=t}),on(e,t),t.docId=e.id,t.ownerDocument=e,an(t,r),delete e.nodeMap[t.nodeId]),r.pureChildren.push(t),rn(e,t)):(t.parentNode=r,e.nodeMap[t.ref]=t)}}function rn(e,t){var n=t.toJSON(),r=n.children;delete n.children;var o=e.taskCenter.s end("dom",{action:"createBody"},[n]);return r&&r.forEach(function(t){o=e.taskCenter.send("dom",{action:"addElement"},[n.ref,t,-1])}),o}function on(e,t){t.role="body",t.depth=1,delete e.nodeMap[t.nodeId],t.ref="_root",e.nodeMap._root=t,e.body=t}function an(e,t){e.parentNode=t,t.docId&&(e.docId=t.docId,e.ownerDocument=t.ownerDocument,e.ownerDocument.nodeMap[e.nodeId]=e,e.depth=t.depth+1),e.children.forEach(function(t){an(t,e)})}function sn(e){for(;e;){if(1===e.nodeType)return e;e=e.nextSibling}}function un(e){for(;e;){if(1===e.nodeType)return e;e=e.previousSibling}}function cn(e,t,n,r){n<0&&(n=0);var o=t[n-1],i=t[n];return t.splice(n,0,e),r&&(o&&(o.nextSibling=e),e.previousSibling=o,e.nextSibling=i,i&&(i.previousSibling=e)),n}function ln(e,t,n,r){var o=t.indexOf(e);if(o<0)return-1;if(r){var i=t[o-1],a=t[o+1];i&&(i.nextSibling=a),a&&(a.previousSibling=i)}t.splice(o,1);var s=n;o<=n&&(s=n-1);var u=t[s-1],c=t[s];return t.splice(s,0,e),r&&(u&&(u.nextSibling=e),e.previousSibling=u,e.nextSib ling=c,c&&(c.previousSibling=e)),o===s?-1:n}function fn(e,t,n){var r=t.indexOf(e);if(!(r<0)){if(n){var o=t[r-1],i=t[r+1];o&&(o.nextSibling=i),i&&(i.previousSibling=o)}t.splice(r,1)}}function dn(e,t){if(t&&t.length){var n=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ec);t.forEach(function(t){n.prototype[t]=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var o=tn(this.docId);if(o)return o.send("component",{ref:this.ref,component:e,method:t},n)}}),tc[e]=n}}function pn(e){return tc[e]}function hn(e,t){Yt(e).nodeMap[t.nodeId]=t}function vn(){var e={createFinish:global.callCreateFinish,updateFinish:global.callUpdateFinish,refreshFinish:global.callRefreshFinish,createBody:global.callCreateBody,addElement:global.callAddElement,removeElement:global.callRemoveElement,moveElement:global.callMoveElement,updateAttrs:global.callUpdateAttrs,updateStyle:global.callUpdateStyle,addEv ent:global.callAddEvent,removeEvent:global.callRemoveEvent},t=ac.prototype;for(var n in e)!function(n){var r=e[n];t[n]=r?function(e,t){return r.apply(void 0,[e].concat(t))}:function(e,t){return ic(e,[{module:"dom",method:n,args:t}],"-1")}}(n);t.componentHandler=global.callNativeComponent||function(e,t,n,r,o){return ic(e,[{component:o.component,ref:t,method:n,args:r}])},t.moduleHandler=global.callNativeModule||function(e,t,n,r){return ic(e,[{module:t,method:n,args:r}])}}function yn(e,t,n,r,o,i){var a=e.getRef(t);return a?e.fireEvent(a,n,r,o,i):new Error('invalid element reference "'+t+'"')}function mn(e,t,n,r){return e.taskCenter.callback(t,n,r)}function _n(e,t,n,r,o){if(!e||!e.taskCenter)return console.error('[JS Framework] Can\'t find "document" or "taskCenter".'),null;var i=null;try{i=e.taskCenter.triggerHook(t,n,r,o)}catch(e){console.error('[JS Framework] Failed to trigger the "'+n+"@"+r+'" hook on '+t+".")}return i}function gn(e,t){var n=Yt(e);return n?Array.isArray(t)?t.map(fun ction(e){switch(e.method){case"callback":return mn.apply(void 0,[n].concat(e.args));case"fireEventSync":case"fireEvent":return yn.apply(void 0,[n].concat(e.args));case"componentHook":return _n.apply(void 0,[n].concat(e.args))}}):void 0:new Error("[JS Framework] Failed to receiveTasks, instance ("+e+") is not available.")}function bn(e){for(var t in e)!function(t){sc[t]||(sc[t]={}),e[t].forEach(function(e){"string"==typeof e?sc[t][e]=!0:sc[t][e.name]=e.args})}(t)}function wn(e,t){return"string"==typeof t?!(!sc[e]||!sc[e][t]):!!sc[e]}function xn(e){return sc[e]}function On(e){Array.isArray(e)&&e.forEach(function(e){e&&("string"==typeof e?uc[e]=!0:"object"==typeof e&&"string"==typeof e.type&&(uc[e.type]=e,dn(e.type,e.methods)))})}function Sn(e){return!!uc[e]}function kn(e,t){Cn(e)?console.warn('Service "'+e+'" has been registered already!'):(t=Object.assign({},t),cc.push({name:e,options:t}))}function En(e){cc.some(function(t,n){if(t.name===e)return cc.splice(n,1),!0})}function Cn(e){re turn jn(e)>=0}function jn(e){return cc.map(function(e){return e.name}).indexOf(e)}function An(e,t,n){var r=tn(e);if(!r||"function"!=typeof r.send)return void console.error("[JS Framework] Failed to create tracker!");if(!t||!n)return void console.warn("[JS Framework] Invalid track type ("+t+") or value ("+n+")");var o="jsfm."+t+"."+n;try{if(wn("userTrack","addPerfPoint")){var i=Object.create(null);i[o]="4",r.send("module",{module:"userTrack",method:"addPerfPoint"},[i])}}catch(e){console.error('[JS Framework] Failed to trace "'+o+'"!')}}function In(e,t){return void 0===t&&(t=[]),{module:"dom",method:e,args:t}}function Tn(e,t){var n=t||global.callNative;return"function"!=typeof n&&console.error("[JS Runtime] no default handler"),function(t){Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var o=Nn(e,t[r],n);if(-1===o)return o}}}function Pn(e,t){return"dom"===e&&dc[t]&&"function"==typeof global[dc[t]]}function Nn(e,t,n){var r=t.module,o=t.method,i=t.args;return Pn(r,o)?global[dc[o] ].apply(global,[e].concat(i,["-1"])):n(e,[t],"-1")}function Mn(e,t){var n=t.attrs||{};for(var r in n)e.setAttr(r,n[r],!0);var o=t.style||{};for(var i in o)e.setStyle(i,o[i],!0)}function $n(e,t){Object.defineProperty(e,"[[CurrentInstanceId]]",{value:t})}function Rn(e){return e["[[CurrentInstanceId]]"]}function Dn(e,t,n){var r=tn(e);return r&&"function"==typeof r.send?function(){for(var e=[],o=arguments.length;o--;)e[o]=arguments[o];return r.send("module",{module:t,method:n},e)}:(console.error("[JS Framework] Failed to find taskCenter ("+e+")."),null)}function Fn(e,t,n,r){var o=tn(e);return o&&"function"==typeof o.send?"function"!=typeof r?(console.error("[JS Framework] "+t+"."+n+" must be assigned as a function."),null):function(e){return o.send("module",{module:t,method:n},[e])}:(console.error("[JS Framework] Failed to find taskCenter ("+e+")."),null)}function Ln(e){var t=_c.exec(e);if(t)try{return JSON.parse(t[1]).framework}catch(e){}return"Weex"}function Wn(e,t,n){var r=Object.cre ate(null);return r.service=Object.create(null),cc.forEach(function(o){var i=(o.name,o.options),a=i.create;if(a){var s=a(e,t,n);Object.assign(r.service,s),Object.assign(r,s.instance)}}),delete r.service.instance,Object.freeze(r.service),r}function Vn(e){return gc[e]}function Un(e,t,n){void 0===t&&(t={});var r=new vc(e,t);Object.freeze(r);var o=t.bundleType||"Vue";gc[e]=o;var i=mc.frameworks[o];if(!i)return new Error('[JS Framework] Invalid bundle type "'+o+'".');An(e,"bundleType",o);var a=Wn(e,{weex:r,bundleType:o},mc);Object.freeze(a);var s=Object.create(null);Object.assign(s,a,{weex:r}),Object.freeze(s);var u=Object.create(s);return"function"==typeof i.createInstanceContext&&Object.assign(u,i.createInstanceContext(e,s,n)),Object.freeze(u),u}function Bn(e,t,n,r){if(gc[e])return new Error('The instance id "'+e+'" has already been used!');var o=Ln(t);gc[e]=o,n=JSON.parse(JSON.stringify(n||{})),n.env=JSON.parse(JSON.stringify(global.WXEnvironment||{})),n.bundleType=o;var i=mc.framework s[o];if(!i)return new Error('[JS Framework] Invalid bundle type "'+o+'".');"Weex"===o&&console.error('[JS Framework] COMPATIBILITY WARNING: Weex DSL 1.0 (.we) framework is no longer supported! It will be removed in the next version of WeexSDK, your page would be crash if you still using the ".we" framework. Please upgrade it to Vue.js or Rax.');var a=Un(e,n,r);if("function"==typeof i.createInstance)return i.createInstance(e,t,n,r,a);qn(t,a)}function qn(e,t){var n=[],r=[];for(var o in t)n.push(o),r.push(t[o]);var i="\n (function (global) {\n "+e+"\n })(Object.create(this))\n ";return(new(Function.prototype.bind.apply(Function,[null].concat(n,[i])))).apply(void 0,r)}function Jn(e){var t=Yt(e);try{if(t&&t.body)return t.body.toJSON()}catch(e){return void console.error("[JS Framework] Failed to get the virtual dom tree.")}}function zn(e){bc[e]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],o=Vn(r);if(o&&yc[o]){var i=(s=yc[o])[e].apply(s,t),a={fra mework:o};return"refreshInstance"===e?cc.forEach(function(e){var t=e.options.refresh;t&&t(r,{info:a,runtime:mc})}):"destroyInstance"===e&&(cc.forEach(function(e){var t=e.options.destroy;t&&t(r,{info:a,runtime:mc})}),delete gc[r]),i}return new Error('[JS Framework] Using invalid instance id "'+r+'" when calling '+e+".");var s}}function Hn(e,t){bc[e]=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];"function"==typeof t&&t.apply(void 0,n);for(var o in mc.frameworks){var i=mc.frameworks[o];i&&i[e]&&i[e].apply(i,n)}}}function Gn(e){mc=e||{},yc=mc.frameworks||{},vn();for(var t in yc){var n=yc[t];if("function"==typeof n.init)try{n.init(e)}catch(e){}}return Hn("registerComponents",On),Hn("registerModules",bn),Hn("registerMethods"),["destroyInstance","refreshInstance"].forEach(zn),bc}function Xn(){Vt(),Object.freeze(wc.Comment),Object.freeze(wc.Listener),Object.freeze(wc.Document.prototype),Object.freeze(wc.Comment.prototype),Object.freeze(wc.Listener.prototype)}function Kn( e,t){void 0===t&&(t={}),this.type=e||"message",this.data=t.data||null,this.origin=t.origin||"",this.source=t.source||null,this.ports=t.ports||[],this.target=null,this.timeStamp=Date.now()}function Zn(){}function Qn(e,t,n,r){console.warn("[Upgrade Warning] $userTrack will be removed in the next version!"),console.warn("[JS Framework] Vm#$userTrack is deprecated, please use \"require('@weex-module/userTrack').commit(type, name, comName, param)\" instead"),this._app.requireModule("userTrack").commit(e,t,n,r)}function Yn(e,t){if(console.warn("[Upgrade Warning] $sendMtop will be removed in the next version!"),console.warn("[JS Framework] Vm#$sendMtop is deprecated, please use \"require('@weex-module/stream').sendMtop(params, callback)\" instead"),"undefined"==typeof window){this._app.requireModule("windvane").call({class:"MtopWVPlugin",method:"send",data:e},t)}else{this._app.requireModule("stream").sendMtop(e,t)}}function er(e,t){console.warn("[Upgrade Warning] $callWindvane will be remo ved in the next version!"),console.warn("[JS Framework] Vm#$callWindvane is deprecated, please use \"require('@weex-module/windvane').call(params, callback)\" instead"),this._app.requireModule("windvane").call(e,t)}function tr(e,t){console.warn("[Upgrade Warning] $setSpm will be removed in the next version!"),console.warn("[JS Framework] Vm#$setSpm is deprecated, please use \"require('@weex-module/pageInfo').setSpm(a, b)\" instead"),this._app.requireModule("pageInfo").setSpm(e,t)}function nr(e){console.warn("[Upgrade Warning] $getUserInfo will be removed in the next version!"),console.warn("[JS Framework] Vm#$getUserInfo is deprecated, please use \"require('@weex-module/user').getUserInfo(callback)\" instead"),this._app.requireModule("user").getUserInfo(e)}function rr(e){console.warn("[Upgrade Warning] $login will be removed in the next version!"),console.warn("[JS Framework] Vm#$login is deprecated, please use \"require('@weex-module/user').login(callback)\" instead"),this._app.req uireModule("user").login(e)}function or(e){console.warn("[Upgrade Warning] $logout will be removed in the next version!"),console.warn("[JS Framework] Vm#$logout is deprecated, please use \"require('@weex-module/user').logout(callback)\" instead"),this._app.requireModule("user").logout(e)}var ir,ar={},sr={},ur=Object.freeze({init:e,createInstance:t,destroyInstance:n,getRoot:r,receiveTasks:o}),cr="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:{},lr=a(function(e){e.exports=function(e,t){function n(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e){return!0===e}function i(e){return!1===e}function a(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Object]"===Mn.call(e)}function c(e){return"[object RegExp]"===Mn.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f( e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}function h(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function v(e,t){return Rn.call(e,t)}function y(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function m(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function _(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function g(e,t){for(var n in t)e[n]=t[n];return e}function b(e){for(var t={},n=0;n<e.length;n++)e[n]&&g(t,e[n]);return t}function w(e,t,n){}function x(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t) ;if(o&&i)return e.length===t.length&&e.every(function(e,n){return x(e,t[n])});if(o||i)return!1;var a=Object.keys(e),u=Object.keys(t);return a.length===u.length&&a.every(function(n){return x(e[n],t[n])})}catch(e){return!1}}function O(e,t){for(var n=0;n<e.length;n++)if(x(e[n],t))return n;return-1}function S(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function k(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function E(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function C(e){if(!Gn.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}function j(e){return"function"==typeof e&&/native code/.test(e.toString())}function A(e){dr.target&&pr.push(dr.target),dr.target=e}function I(){dr.target=pr.pop()}function T(e){return new hr(void 0,void 0,void 0,String(e))}function P(e,t){var n=e.componentOptions,r=new hr(e.tag,e.data,e.children,e.text,e.elm,e.context,n,e.asyncFac tory);return r.ns=e.ns,r.isStatic=e.isStatic,r.key=e.key,r.isComment=e.isComment,r.fnContext=e.fnContext,r.fnOptions=e.fnOptions,r.fnScopeId=e.fnScopeId,r.isCloned=!0,t&&(e.children&&(r.children=N(e.children,!0)),n&&n.children&&(n.children=N(n.children,!0))),r}function N(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++)r[o]=P(e[o],t);return r}function M(e,t,n){e.__proto__=t}function $(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];E(e,i,t[i])}}function R(e,t){if(s(e)&&!(e instanceof hr)){var n;return v(e,"__ob__")&&e.__ob__ instanceof wr?n=e.__ob__:br.shouldConvert&&!ar()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new wr(e)),t&&n&&n.vmCount++,n}}function D(e,t,n,r,o){var i=new dr,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set,c=!o&&R(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return dr.target&&(i.depend(),c&&(c.dep.depend(),Array.isArray(t)&&W(t))),t},set:func tion(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||(u?u.call(e,t):n=t,c=!o&&R(t),i.notify())}})}}function F(e,t,n){if(Array.isArray(e)&&l(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(D(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function L(e,t){if(Array.isArray(e)&&l(t))return void e.splice(t,1);var n=e.__ob__;e._isVue||n&&n.vmCount||v(e,t)&&(delete e[t],n&&n.dep.notify())}function W(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&W(t)}function V(e,t){if(!t)return e;for(var n,r,o,i=Object.keys(t),a=0;a<i.length;a++)n=i[a],r=e[n],o=t[n],v(e,n)?u(r)&&u(o)&&V(r,o):F(e,n,o);return e}function U(e,t,n){return n?function(){var r="function"==typeof t?t.call(n):t,o="function"==typeof e?e.call(n):e;return r?V(r,o):o}:t?e?function(){return V("function"==typeof t?t.call(this):t,"function"==typeof e?e.call(this):e)}:t:e}function B(e ,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}function q(e,t,n,r){var o=Object.create(e||null);return t?g(o,t):o}function J(e,t){var n=e.props;if(n){var r,o,i,a={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(o=n[r])&&(i=Fn(o),a[i]={type:null});else if(u(n))for(var s in n)o=n[s],i=Fn(s),a[i]=u(o)?o:{type:o};e.props=a}}function z(e,t){var n=e.inject,r=e.inject={};if(Array.isArray(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(u(n))for(var i in n){var a=n[i];r[i]=u(a)?g({from:i},a):{from:a}}}function H(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}function G(e,t,n){function r(r){var o=xr[r]||kr;u[r]=o(e[r],t[r],n,r)}"function"==typeof t&&(t=t.options),J(t,n),z(t,n),H(t);var o=t.extends;if(o&&(e=G(e,o,n)),t.mixins)for(var i=0,a=t.mixins.length;i<a;i++)e=G(e,t.mixins[i],n);var s,u={};for(s in e)r(s);for(s in t)v(e,s)||r(s);return u}function X(e,t,n,r){if("string"==typeof n){var o=e[t];if(v(o,n))return o [n];var i=Fn(n);if(v(o,i))return o[i];var a=Ln(i);if(v(o,a))return o[a];var s=o[n]||o[i]||o[a];return s}}function K(e,t,n,r){var o=t[e],i=!v(n,e),a=n[e];if(Y(Boolean,o.type)&&(i&&!v(o,"default")?a=!1:Y(String,o.type)||""!==a&&a!==Vn(e)||(a=!0)),void 0===a){a=Z(r,o,e);var s=br.shouldConvert;br.shouldConvert=!0,R(a),br.shouldConvert=s}return a}function Z(e,t,n){if(v(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==Q(t.type)?r.call(e):r}}function Q(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Y(e,t){if(!Array.isArray(t))return Q(t)===Q(e);for(var n=0,r=t.length;n<r;n++)if(Q(t[n])===Q(e))return!0;return!1}function ee(e,t,n){if(t)for(var r=t;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{var a=!1===o[i].call(r,e,t,n);if(a)return}catch(e){te(e,r,"errorCaptured hook")}}te(e,t,n)}function te(e,t,n){if(Hn.errorH andler)try{return Hn.errorHandler.call(null,e,t,n)}catch(e){ne(e,null,"config.errorHandler")}ne(e,t,n)}function ne(e,t,n){if(!Kn&&!Zn||"undefined"==typeof console)throw e;console.error(e)}function re(){Cr=!1;var e=Er.slice(0);Er.length=0;for(var t=0;t<e.length;t++)e[t]()}function oe(e,t){var n;if(Er.push(function(){if(e)try{e.call(t)}catch(e){ee(e,t,"nextTick")}else n&&n(t)}),Cr||(Cr=!0,jr?Sr():Or()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}function ie(e){ae(e,Nr),Nr.clear()}function ae(e,t){var n,r,o=Array.isArray(e);if((o||s(e))&&!Object.isFrozen(e)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(o)for(n=e.length;n--;)ae(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)ae(e[r[n]],t)}}function se(e){function t(){var e=arguments,n=t.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var r=n.slice(),o=0;o<r.length;o++)r[o].apply(null,e)}return t.fns=e,t}function ue(e,t,r,o,i){var a,s,u,c;for(a in e)s=e[a],u=t[a],c=Mr(a),n(s)||( n(u)?(n(s.fns)&&(s=e[a]=se(s)),r(c.name,s,c.once,c.capture,c.passive)):s!==u&&(u.fns=s,e[a]=u));for(a in t)n(e[a])&&(c=Mr(a),o(c.name,t[a],c.capture))}function ce(e,t,i){function a(){i.apply(this,arguments),h(s.fns,a)}e instanceof hr&&(e=e.data.hook||(e.data.hook={}));var s,u=e[t];n(u)?s=se([a]):r(u.fns)&&o(u.merged)?(s=u,s.fns.push(a)):s=se([u,a]),s.merged=!0,e[t]=s}function le(e,t,o){var i=t.options.props;if(!n(i)){var a={},s=e.attrs,u=e.props;if(r(s)||r(u))for(var c in i){var l=Vn(c);fe(a,u,c,l,!0)||fe(a,s,c,l,!1)}return a}}function fe(e,t,n,o,i){if(r(t)){if(v(t,n))return e[n]=t[n],i||delete t[n],!0;if(v(t,o))return e[n]=t[o],i||delete t[o],!0}return!1}function de(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function pe(e){return a(e)?[T(e)]:Array.isArray(e)?ve(e):void 0}function he(e){return r(e)&&r(e.text)&&i(e.isComment)}function ve(e,t){var i,s,u,c,l=[];for(i=0;i<e.length;i++)s=e[i],n(s)||"boolean"==typeof s||(u=l.len gth-1,c=l[u],Array.isArray(s)?s.length>0&&(s=ve(s,(t||"")+"_"+i),he(s[0])&&he(c)&&(l[u]=T(c.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?he(c)?l[u]=T(c.text+s):""!==s&&l.push(T(s)):he(s)&&he(c)?l[u]=T(c.text+s.text):(o(e._isVList)&&r(s.tag)&&n(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+i+"__"),l.push(s)));return l}function ye(e,t){return(e.__esModule||ur&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function me(e,t,n,r,o){var i=yr();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function _e(e,t,i){if(o(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;if(o(e.loading)&&r(e.loadingComp))return e.loadingComp;if(!r(e.contexts)){var a=e.contexts=[i],u=!0,c=function(){for(var e=0,t=a.length;e<t;e++)a[e].$forceUpdate()},l=S(function(n){e.resolved=ye(n,t),u||c()}),f=S(function(t){r(e.errorComp)&&(e.error=!0,c())}),d=e(l,f);return s(d)&&("function"==typeof d.then?n(e.resolved)&&d.then(l,f):r(d.component)&&"functio n"==typeof d.component.then&&(d.component.then(l,f),r(d.error)&&(e.errorComp=ye(d.error,t)),r(d.loading)&&(e.loadingComp=ye(d.loading,t),0===d.delay?e.loading=!0:setTimeout(function(){n(e.resolved)&&n(e.error)&&(e.loading=!0,c())},d.delay||200)),r(d.timeout)&&setTimeout(function(){n(e.resolved)&&f(null)},d.timeout))),u=!1,e.loading?e.loadingComp:e.resolved}e.contexts.push(i)}function ge(e){return e.isComment&&e.asyncFactory}function be(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||ge(n)))return n}}function we(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Se(e,t)}function xe(e,t,n){n?Pr.$once(e,t):Pr.$on(e,t)}function Oe(e,t){Pr.$off(e,t)}function Se(e,t,n){Pr=e,ue(t,n||{},xe,Oe,e),Pr=void 0}function ke(e,t){var n={};if(!e)return n;for(var r=0,o=e.length;r<o;r++){var i=e[r],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,i.context!==t&&i.fnContext!==t||!a||null==a.slot)(n.default||(n .default=[])).push(i);else{var s=i.data.slot,u=n[s]||(n[s]=[]);"template"===i.tag?u.push.apply(u,i.children):u.push(i)}}for(var c in n)n[c].every(Ee)&&delete n[c];return n}function Ee(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Ce(e,t){t=t||{};for(var n=0;n<e.length;n++)Array.isArray(e[n])?Ce(e[n],t):t[e[n].key]=e[n].fn;return t}function je(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Ae(e,t,n){e.$el=t,e.$options.render||(e.$options.render=yr),Me(e,"beforeMount");var r;return r=function(){e._update(e._render(),n)},new Br(e,r,w,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Me(e,"mounted")),e}function Ie(e,t,n,r,o){var i=!!(o||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==Nn);if(e.$options._parentVno de=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,e.$attrs=r.data&&r.data.attrs||Nn,e.$listeners=n||Nn,t&&e.$options.props){br.shouldConvert=!1;for(var a=e._props,s=e.$options._propKeys||[],u=0;u<s.length;u++){var c=s[u];a[c]=K(c,e.$options.props,t,e)}br.shouldConvert=!0,e.$options.propsData=t}if(n){var l=e.$options._parentListeners;e.$options._parentListeners=n,Se(e,n,l)}i&&(e.$slots=ke(o,r.context),e.$forceUpdate())}function Te(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Pe(e,t){if(t){if(e._directInactive=!1,Te(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Pe(e.$children[n]);Me(e,"activated")}}function Ne(e,t){if(!(t&&(e._directInactive=!0,Te(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Ne(e.$children[n]);Me(e,"deactivated")}}function Me(e,t){var n=e.$options[t];if(n)for(var r=0,o=n.length;r<o;r++)try{n[r].call(e)}catch(n){ ee(n,e,t+" hook")}e._hasHookEvent&&e.$emit("hook:"+t)}function $e(){Vr=Rr.length=Dr.length=0,Fr={},Lr=Wr=!1}function Re(){Wr=!0;var e,t;for(Rr.sort(function(e,t){return e.id-t.id}),Vr=0;Vr<Rr.length;Vr++)e=Rr[Vr],t=e.id,Fr[t]=null,e.run();var n=Dr.slice(),r=Rr.slice();$e(),Le(n),De(r),sr&&Hn.devtools&&sr.emit("flush")}function De(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&Me(r,"updated")}}function Fe(e){e._inactive=!1,Dr.push(e)}function Le(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Pe(e[t],!0)}function We(e){var t=e.id;if(null==Fr[t]){if(Fr[t]=!0,Wr){for(var n=Rr.length-1;n>Vr&&Rr[n].id>e.id;)n--;Rr.splice(n+1,0,e)}else Rr.push(e);Lr||(Lr=!0,oe(Re))}}function Ve(e,t,n){qr.get=function(){return this[t][n]},qr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,qr)}function Ue(e){e._watchers=[];var t=e.$options;t.props&&Be(e,t.props),t.methods&&Xe(e,t.methods),t.data?qe(e):R(e._data={},!0),t.computed&&ze(e,t.computed),t.watch&&t.watch!==nr&&K e(e,t.watch)}function Be(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;br.shouldConvert=i;for(var a in t)!function(i){o.push(i);var a=K(i,t,n,e);D(r,i,a),i in e||Ve(e,"_props",i)}(a);br.shouldConvert=!0}function qe(e){var t=e.$options.data;t=e._data="function"==typeof t?Je(t,e):t||{},u(t)||(t={});for(var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);o--;){var i=n[o];r&&v(r,i)||k(i)||Ve(e,"_data",i)}R(t,!0)}function Je(e,t){try{return e.call(t,t)}catch(e){return ee(e,t,"data()"),{}}}function ze(e,t){var n=e._computedWatchers=Object.create(null),r=ar();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;r||(n[o]=new Br(e,a||w,w,Jr)),o in e||He(e,o,i)}}function He(e,t,n){var r=!ar();"function"==typeof n?(qr.get=r?Ge(t):n,qr.set=w):(qr.get=n.get?r&&!1!==n.cache?Ge(t):n.get:w,qr.set=n.set?n.set:w),Object.defineProperty(e,t,qr)}function Ge(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if( t)return t.dirty&&t.evaluate(),dr.target&&t.depend(),t.value}}function Xe(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?w:m(t[n],e)}function Ke(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)Ze(e,n,r[o]);else Ze(e,n,r)}}function Ze(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Qe(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function Ye(e){var t=et(e.$options.inject,e);t&&(br.shouldConvert=!1,Object.keys(t).forEach(function(n){D(e,n,t[n])}),br.shouldConvert=!0)}function et(e,t){if(e){for(var n=Object.create(null),r=ur?Reflect.ownKeys(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}):Object.keys(e),o=0;o<r.length;o++){for(var i=r[o],a=e[i].from,s=t;s;){if(s._provided&&a in s._provided){n[i]=s._provided[a];break}s=s.$parent}if(!s&&"default"in e[i]){var u=e[i].default;n[i]="function"==typeof u?u.call(t):u}}return n}}function tt(e,t){var n,o ,i,a,u;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,i=e.length;o<i;o++)n[o]=t(e[o],o);else if("number"==typeof e)for(n=new Array(e),o=0;o<e;o++)n[o]=t(o+1,o);else if(s(e))for(a=Object.keys(e),n=new Array(a.length),o=0,i=a.length;o<i;o++)u=a[o],n[o]=t(e[u],u,o);return r(n)&&(n._isVList=!0),n}function nt(e,t,n,r){var o,i=this.$scopedSlots[e];if(i)n=n||{},r&&(n=g(g({},r),n)),o=i(n)||t;else{var a=this.$slots[e];a&&(a._rendered=!0),o=a||t}var s=n&&n.slot;return s?this.$createElement("template",{slot:s},o):o}function rt(e){return X(this.$options,"filters",e,!0)||Bn}function ot(e,t,n,r){var o=Hn.keyCodes[t]||n;return o?Array.isArray(o)?-1===o.indexOf(e):o!==e:r?Vn(r)!==t:void 0}function it(e,t,n,r,o){if(n)if(s(n)){Array.isArray(n)&&(n=b(n));var i;for(var a in n)!function(a){if("class"===a||"style"===a||$n(a))i=e;else{var s=e.attrs&&e.attrs.type;i=r||Hn.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}if(!(a in i)&&(i[a]=n[a],o)){(e.on||(e.on={}) )["update:"+a]=function(e){n[a]=e}}}(a)}else;return e}function at(e,t,n){var r=arguments.length<3,o=this.$options.staticRenderFns,i=r||n?this._staticTrees||(this._staticTrees=[]):o.cached||(o.cached=[]),a=i[e];return a&&!t?Array.isArray(a)?N(a):P(a):(a=i[e]=o[e].call(this._renderProxy,null,this),ut(a,"__static__"+e,!1),a)}function st(e,t,n){return ut(e,"__once__"+t+(n?"_"+n:""),!0),e}function ut(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&ct(e[r],t+"_"+r,n);else ct(e,t,n)}function ct(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function lt(e,t){if(t)if(u(t)){var n=e.on=e.on?g({},e.on):{};for(var r in t){var o=n[r],i=t[r];n[r]=o?[].concat(o,i):i}}else;return e}function ft(e){e._o=st,e._n=d,e._s=f,e._l=tt,e._t=nt,e._q=x,e._i=O,e._m=at,e._f=rt,e._k=ot,e._b=it,e._v=T,e._e=yr,e._u=Ce,e._g=lt}function dt(e,t,n,r,i){var a=i.options;this.data=e,this.props=t,this.children=n,this.parent=r,this.listeners=e.on||Nn,this.injections=et(a.inject,r),this.slots=funct ion(){return ke(n,r)};var s=Object.create(r),u=o(a._compiled),c=!u;u&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=e.scopedSlots||Nn),a._scopeId?this._c=function(e,t,n,o){var i=bt(s,e,t,n,o,c);return i&&(i.fnScopeId=a._scopeId,i.fnContext=r),i}:this._c=function(e,t,n,r){return bt(s,e,t,n,r,c)}}function pt(e,t,n,o,i){var a=e.options,s={},u=a.props;if(r(u))for(var c in u)s[c]=K(c,u,t||Nn);else r(n.attrs)&&ht(s,n.attrs),r(n.props)&&ht(s,n.props);var l=new dt(n,s,i,o,e),f=a.render.call(null,l._c,l);return f instanceof hr&&(f.fnContext=o,f.fnOptions=a,n.slot&&((f.data||(f.data={})).slot=n.slot)),f}function ht(e,t){for(var n in t)e[Fn(n)]=t[n]}function vt(e,t,i,a,u){if(!n(e)){var c=i.$options._base;if(s(e)&&(e=c.extend(e)),"function"==typeof e){var l;if(n(e.cid)&&(l=e,void 0===(e=_e(l,c,i))))return me(l,t,i,a,u);t=t||{},kt(e),r(t.model)&>(e.options,t);var f=le(t,e,u);if(o(e.options.functional))return pt(e,f,t,i,a);var d=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var p =t.slot;t={},p&&(t.slot=p)}mt(t);var h=e.options.name||u;return new hr("vue-component-"+e.cid+(h?"-"+h:""),t,void 0,void 0,void 0,i,{Ctor:e,propsData:f,listeners:d,tag:u,children:a},l)}}}function yt(e,t,n,o){var i={_isComponent:!0,parent:t,_parentVnode:e,_parentElm:n||null,_refElm:o||null},a=e.data.inlineTemplate;return r(a)&&(i.render=a.render,i.staticRenderFns=a.staticRenderFns),new e.componentOptions.Ctor(i)}function mt(e){e.hook||(e.hook={});for(var t=0;t<Hr.length;t++){var n=Hr[t],r=e.hook[n],o=zr[n];e.hook[n]=r?_t(o,r):o}}function _t(e,t){return function(n,r,o,i){e(n,r,o,i),t(n,r,o,i)}}function gt(e,t){var n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.props||(t.props={}))[n]=t.model.value;var i=t.on||(t.on={});r(i[o])?i[o]=[t.model.callback].concat(i[o]):i[o]=t.model.callback}function bt(e,t,n,r,i,s){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),o(s)&&(i=Xr),wt(e,t,n,r,i)}function wt(e,t,n,o,i){if(r(n)&&r(n.__ob__))return yr();if(r(n)&&r(n.is)&&(t= n.is),!t)return yr();Array.isArray(o)&&"function"==typeof o[0]&&(n=n||{},n.scopedSlots={ -default:o[0]},o.length=0),i===Xr?o=pe(o):i===Gr&&(o=de(o));var a,s;if("string"==typeof t){var u;s=e.$vnode&&e.$vnode.ns||Hn.getTagNamespace(t),a=Hn.isReservedTag(t)?new hr(Hn.parsePlatformTagName(t),n,o,void 0,void 0,e):r(u=X(e.$options,"components",t))?vt(u,n,e,o,t):new hr(t,n,o,void 0,void 0,e)}else a=vt(t,n,e,o);return r(a)?(s&&xt(a,s),a):yr()}function xt(e,t,i){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,i=!0),r(e.children))for(var a=0,s=e.children.length;a<s;a++){var u=e.children[a];r(u.tag)&&(n(u.ns)||o(i))&&xt(u,t,i)}}function Ot(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=ke(t._renderChildren,r),e.$scopedSlots=Nn,e._c=function(t,n,r,o){return bt(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return bt(e,t,n,r,o,!0)};var o=n&&n.data;D(e,"$attrs",o&&o.attrs||Nn,null,!0),D(e,"$listeners",t._parentListeners||Nn,null,!0)}function St(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent= t.parent,n._parentVnode=r,n._parentElm=t._parentElm,n._refElm=t._refElm;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function kt(e){var t=e.options;if(e.super){var n=kt(e.super);if(n!==e.superOptions){e.superOptions=n;var r=Et(e);r&&g(e.extendOptions,r),t=e.options=G(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Et(e){var t,n=e.options,r=e.extendOptions,o=e.sealedOptions;for(var i in n)n[i]!==o[i]&&(t||(t={}),t[i]=Ct(n[i],r[i],o[i]));return t}function Ct(e,t,n){if(Array.isArray(e)){var r=[];n=Array.isArray(n)?n:[n],t=Array.isArray(t)?t:[t];for(var o=0;o<e.length;o++)(t.indexOf(e[o])>=0||n.indexOf(e[o])<0)&&r.push(e[o]);return r}return e}function jt(e){this._init(e)}function At(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=_(arguments,1);ret urn n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function It(e){e.mixin=function(e){return this.options=G(this.options,e),this}}function Tt(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=G(n.options,e),a.super=n,a.options.props&&Pt(a),a.options.computed&&Nt(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Jn.forEach(function(e){a[e]=n[e]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=g({},a.options),o[r]=a,a}}function Pt(e){var t=e.options.props;for(var n in t)Ve(e.prototype,"_props",n)}function Nt(e){var t=e.options.computed;for(var n in t)He(e.prototype,n,t[n])}function Mt(e){Jn.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n. name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function $t(e){return e&&(e.Ctor.options.name||e.tag)}function Rt(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!c(e)&&e.test(t)}function Dt(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=$t(a.componentOptions);s&&!t(s)&&Ft(n,i,r,o)}}}function Ft(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,h(n,t)}function Lt(e){this.instanceId="",this.nodeId=to++,this.parentNode=null,this.nodeType=3,this.text=e}function Wt(e){return t.createElement(e)}function Vt(e,n){return t.createElement(e+":"+n)}function Ut(e){return new Lt(e)}function Bt(e){return t.createComment(e)}function qt(e,t,n){if(3!==t.nodeType)e.insertBefore(t,n);else if("text"===e.type)e.setAttr("value",t.text),t.parentNode=e;else{var r=Wt("text");r.setAttr("val ue",t.text),e.insertBefore(r,n)}}function Jt(e,t){if(3===t.nodeType)return void e.setAttr("value","");e.removeChild(t)}function zt(e,t){if(3!==t.nodeType)e.appendChild(t);else if("text"===e.type)e.setAttr("value",t.text),t.parentNode=e;else{var n=Wt("text");n.setAttr("value",t.text),e.appendChild(n)}}function Ht(e){return e.parentNode}function Gt(e){return e.nextSibling}function Xt(e){return e.type}function Kt(e,t){e.parentNode.setAttr("value",t)}function Zt(e,t,n){e.setAttr(t,n)}function Qt(e,t){var n=e.data.ref;if(n){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?h(i[n],o):i[n]===o&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(o)<0&&i[n].push(o):i[n]=[o]:i[n]=o}}function Yt(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&en(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&n(t.asyncFactory.error))}function en(e,t){if("input"!==e.tag)return!0;var n,o=r(n=e.data)&&r(n=n.attrs)& &n.type,i=r(n=t.data)&&r(n=n.attrs)&&n.type;return o===i||io(o)&&io(i)}function tn(e,t,n){var o,i,a={};for(o=t;o<=n;++o)i=e[o].key,r(i)&&(a[i]=o);return a}function nn(e,t){(e.data.directives||t.data.directives)&&rn(e,t)}function rn(e,t){var n,r,o,i=e===ao,a=t===ao,s=on(e.data.directives,e.context),u=on(t.data.directives,t.context),c=[],l=[];for(n in u)r=s[n],o=u[n],r?(o.oldValue=r.value,sn(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(sn(o,"bind",t,e),o.def&&o.def.inserted&&c.push(o));if(c.length){var f=function(){for(var n=0;n<c.length;n++)sn(c[n],"inserted",t,e)};i?ce(t,"insert",f):f()}if(l.length&&ce(t,"postpatch",function(){for(var n=0;n<l.length;n++)sn(l[n],"componentUpdated",t,e)}),!i)for(n in s)u[n]||sn(s[n],"unbind",e,e,a)}function on(e,t){var n=Object.create(null);if(!e)return n;var r,o;for(r=0;r<e.length;r++)o=e[r],o.modifiers||(o.modifiers=co),n[an(o)]=o,o.def=X(t.$options,"directives",o.name,!0);return n}function an(e){return e.rawName||e.name+"."+Object.key s(e.modifiers||{}).join(".")}function sn(e,t,n,r,o){var i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,o)}catch(r){ee(r,n.context,"directive "+e.name+" "+t+" hook")}}function un(e,t){if(e.data.attrs||t.data.attrs){var n,r,o=t.elm,i=e.data.attrs||{},a=t.data.attrs||{};a.__ob__&&(a=t.data.attrs=g({},a));var s="function"==typeof o.setAttrs,u={};for(n in a)r=a[n],i[n]!==r&&(s?u[n]=r:o.setAttr(n,r));for(n in i)null==a[n]&&(s?u[n]=void 0:o.setAttr(n));s&&o.setAttrs(u)}}function cn(e,t){var n=t.elm,r=t.context,o=t.data,i=e.data;if(o.staticClass||o.class||i&&(i.staticClass||i.class)){var a=[],s=i.staticClass;s&&a.push.apply(a,s),i.class&&a.push.apply(a,i.class);var u=[],c=o.staticClass;c&&u.push.apply(u,c),o.class&&u.push.apply(u,o.class);var l=ln(a,u,r);if("function"==typeof n.setStyles)n.setStyles(l);else for(var f in l)n.setStyle(f,l[f])}}function ln(e,t,n){var r=n.$options.style||{},o={};return t.forEach(function(e){g(o,r[e])}),e.forEach(function(e){var t=r[e];for(var n in t)o.hasOwnProperty( n)||(o[n]="")}),o}function fn(e,t,n,r){if(r)return void console.log("Weex do not support event in bubble phase.");if(n){var o=t,i=eo;t=function(t){null!==(1===arguments.length?o(t):o.apply(null,arguments))&&dn(e,null,null,i)}}eo.addEvent(e,t)}function dn(e,t,n,r){(r||eo).removeEvent(e)}function pn(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.on||{};eo=t.elm,ue(n,r,fn,dn,t.context),eo=void 0}}function hn(e,t){if(!t.data.staticStyle)return void vn(e,t);var n=t.elm,r=t.data.staticStyle,o="function"==typeof n.setStyles,i={};for(var a in r)r[a]&&(o?i[vo(a)]=r[a]:n.setStyle(vo(a),r[a]));o&&n.setStyles(i),vn(e,t)}function vn(e,t){if(e.data.style||t.data.style){var n,r,o=t.elm,i=e.data.style||{},a=t.data.style||{},s=a.__ob__;Array.isArray(a)&&(a=t.data.style=yn(a)),s&&(a=t.data.style=g({},a));var u="function"==typeof o.setStyles,c={};for(r in i)a[r]||(u?c[vo(r)]="":o.setStyle(vo(r),""));for(r in a)n=a[r],u?c[vo(r)]=n:o.setStyle(vo(r),n);u&&o.setStyles(c)}}function yn(e){for(va r t={},n=0;n<e.length;n++)e[n]&&g(t,e[n]);return t}function mn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&g(t,mo(e.name||"v")),g(t,e),t}return"string"==typeof e?mo(e):void 0}}function _n(e,t){var n=t.elm;n._leaveCb&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=mn(t.data.transition);if(r&&!n._enterCb){for(var o=r.enterClass,i=r.enterToClass,a=r.enterActiveClass,s=r.appearClass,u=r.appearToClass,c=r.appearActiveClass,l=r.beforeEnter,f=r.enter,d=r.afterEnter,p=r.enterCancelled,h=r.beforeAppear,v=r.appear,y=r.afterAppear,m=r.appearCancelled,_=$r,g=$r.$vnode;g&&g.parent;)g=g.parent,_=g.context;var b=!_._isMounted||!t.isRootInsert;if(!b||v||""===v){var x=b?s:o,O=b?u:i,k=b?c:a,E=b?h||l:l,C=b&&"function"==typeof v?v:f,j=b?y||d:d,A=b?m||p:p,I=C&&(C._length||C.length)>1,T=t.context.$options.style||{},P=T[x],N=T["@TRANSITION"]&&T["@TRANSITION"][k]||{},M=bn(n,T,x,O,k,t.context),$=Object.keys(M).length>0,R=n._enterCb=S(function(){R.cancelled?A&&A(n):j&&j(n),n._enterCb=null});if(s etTimeout(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];if(r&&r.context===t.context&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),C&&C(n,R),$){t.context.$requireWeexModule("animation").transition(n.ref,{styles:M,duration:N.duration||0,delay:N.delay||0,timingFunction:N.timingFunction||"linear"},I?w:R)}else I||R()},16),E&&E(n),P)if("function"==typeof n.setStyles)n.setStyles(P);else for(var D in P)n.setStyle(D,P[D]);$||I||R()}}}function gn(e,t){function n(){function t(){n.transition(r.ref,{styles:y,duration:m.duration||0,delay:m.delay||0,timingFunction:m.timingFunction||"linear"},p?w:_)}var n=e.context.$requireWeexModule("animation");_.cancelled||(e.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e),u&&u(r),v?n.transition(r.ref,{styles:v},t):t(),c&&c(r,_),y||p||_())}var r=e.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var o=mn(e.data.transition);if(!o)return t();if(!r._leaveCb){var i=o.leaveClass,a=o.leaveToClass,s=o.leaveActiveCla ss,u=o.beforeLeave,c=o.leave,l=o.afterLeave,f=o.leaveCancelled,d=o.delayLeave,p=c&&(c._length||c.length)>1,h=e.context.$options.style||{},v=h[i],y=h[a]||h[s],m=h["@TRANSITION"]&&h["@TRANSITION"][s]||{},_=r._leaveCb=S(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[e.key]=null),_.cancelled?f&&f(r):(t(),l&&l(r)),r._leaveCb=null});d?d(n):n()}}function bn(e,t,n,r,o,i){var a={},s=t[n],u=t[r],c=t[o];if(s)for(var l in s)a[l]=e.style[l];if(c)for(var f in c)0!==f.indexOf("transition")&&(a[f]=c[f]);return u&&g(a,u),a}function wn(e){return e.tag?e.tag.replace(/vue\-component\-(\d+\-)?/,""):""}function xn(e){return e.children&&1===e.children.length&&!e.children[0].tag}function On(e){if(e&&e.data){var t=e.data,n=t.staticStyle,r=t.staticClass;if(e.data.style||e.data.class||n||r){var o=Object.assign({},n,e.data.style),i=e.context.$options.style||{};return[].concat(r,e.data.class).forEach(function(e){e&&i[e]&&Object.assign(o,i[e])}),o}}}function Sn(e){if(e.length)return e.map (function(e){var t=wn(e),n={type:t};if(t){if(n.style=On(e),e.data&&(n.attr=e.data.attrs,e.data.on&&(n.events=e.data.on)),"span"===t&&xn(e))return n.attr=n.attr||{},n.attr.value=e.children[0].text.trim(),n}else n.type="span",n.attr={value:(e.text||"").trim()};return e.children&&e.children.length&&(n.children=Sn(e.children)),n})}function kn(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?kn(be(t.children)):e}function En(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[Fn(i)]=o[i];return t}function Cn(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function jn(e){for(;e=e.parent;)if(e.data.transition)return!0}function An(e,t){return t.key===e.key&&t.tag===e.tag}function In(){}function Tn(){}function Pn(e,t){var n=t.createComment("root");return n.hasAttribute=n.removeAttribute=function(){},t.documentElement.appendChild(n),n}var Nn=Object.freeze({}),Mn=Object.prototype.t oString,$n=(p("slot,component",!0),p("key,ref,slot,slot-scope,is")),Rn=Object.prototype.hasOwnProperty,Dn=/-(\w)/g,Fn=y(function(e){return e.replace(Dn,function(e,t){return t?t.toUpperCase():""})}),Ln=y(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Wn=/\B([A-Z])/g,Vn=y(function(e){return e.replace(Wn,"-$1").toLowerCase()}),Un=function(e,t,n){return!1},Bn=function(e){return e},qn="data-server-rendered",Jn=["component","directive","filter"],zn=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],Hn={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Un,isReservedAttr:Un,isUnknownElement:Un,getTagNamespace:w,parsePlatformTagName:Bn,mustUseProp:Un,_lifecycleHooks:zn},Gn=/[^\w.$]/,Xn="__proto__"in{},Kn="undefined"!=typeof window,Zn="undefined"!= typeof WXEnvironment&&!!WXEnvironment.platform,Qn=Zn&&WXEnvironment.platform.toLowerCase(),Yn=Kn&&window.navigator.userAgent.toLowerCase(),er=(Yn&&/msie|trident/.test(Yn),Yn&&Yn.indexOf("msie 9.0"),Yn&&Yn.indexOf("edge/")>0),tr=(Yn&&Yn.indexOf("android"),Yn&&/iphone|ipad|ipod|ios/.test(Yn)||"ios"===Qn),nr=(Yn&&/chrome\/\d+/.test(Yn),{}.watch);if(Kn)try{var rr={};Object.defineProperty(rr,"passive",{get:function(){}}),window.addEventListener("test-passive",null,rr)}catch(e){}var or,ir,ar=function(){return void 0===or&&(or=!Kn&&void 0!==cr&&"server"===cr.process.env.VUE_ENV),or},sr=Kn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,ur="undefined"!=typeof Symbol&&j(Symbol)&&"undefined"!=typeof Reflect&&j(Reflect.ownKeys);ir="undefined"!=typeof Set&&j(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var lr=w,fr=0,dr=funct ion(){this.id=fr++,this.subs=[]};dr.prototype.addSub=function(e){this.subs.push(e)},dr.prototype.removeSub=function(e){h(this.subs,e)},dr.prototype.depend=function(){dr.target&&dr.target.addDep(this)},dr.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},dr.target=null;var pr=[],hr=function(e,t,n,r,o,i,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},vr={child:{configurable:!0}};vr.child.get=function(){return this.componentInstance},Object.defineProperties(hr.prototype,vr);var yr=function(e){void 0===e&&(e="");var t=new hr;return t.text=e,t.isComment=!0,t},mr=Array.prototy pe,_r=Object.create(mr);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=mr[e];E(_r,e,function(){for(var n=arguments,r=[],o=arguments.length;o--;)r[o]=n[o];var i,a=t.apply(this,r),s=this.__ob__;switch(e){case"push":case"unshift":i=r;break;case"splice":i=r.slice(2)}return i&&s.observeArray(i),s.dep.notify(),a})});var gr=Object.getOwnPropertyNames(_r),br={shouldConvert:!0},wr=function(e){if(this.value=e,this.dep=new dr,this.vmCount=0,E(e,"__ob__",this),Array.isArray(e)){(Xn?M:$)(e,_r,gr),this.observeArray(e)}else this.walk(e)};wr.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)D(e,t[n],e[t[n]])},wr.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)R(e[t])};var xr=Hn.optionMergeStrategies;xr.data=function(e,t,n){return n?U(e,t,n):t&&"function"!=typeof t?e:U(e,t)},zn.forEach(function(e){xr[e]=B}),Jn.forEach(function(e){xr[e+"s"]=q}),xr.watch=function(e,t,n,r){if(e===nr&&(e=void 0),t===nr&&(t=void 0),!t)return Obj ect.create(e||null);if(!e)return t;var o={};g(o,e);for(var i in t){var a=o[i],s=t[i];a&&!Array.isArray(a)&&(a=[a]),o[i]=a?a.concat(s):Array.isArray(s)?s:[s]}return o},xr.props=xr.methods=xr.inject=xr.computed=function(e,t,n,r){if(!e)return t;var o=Object.create(null);return g(o,e),t&&g(o,t),o},xr.provide=U;var Or,Sr,kr=function(e,t){return void 0===t?e:t},Er=[],Cr=!1,jr=!1;if("undefined"!=typeof setImmediate&&j(setImmediate))Sr=function(){setImmediate(re)};else if("undefined"==typeof MessageChannel||!j(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())Sr=function(){setTimeout(re,0)};else{var Ar=new MessageChannel,Ir=Ar.port2;Ar.port1.onmessage=re,Sr=function(){Ir.postMessage(1)}}if("undefined"!=typeof Promise&&j(Promise)){var Tr=Promise.resolve();Or=function(){Tr.then(re),tr&&setTimeout(w)}}else Or=Sr;var Pr,Nr=new ir,Mr=y(function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e .slice(1):e,{name:e,once:n,capture:r,passive:t}}),$r=null,Rr=[],Dr=[],Fr={},Lr=!1,Wr=!1,Vr=0,Ur=0,Br=function(e,t,n,r,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Ur,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ir,this.newDepIds=new ir,this.expression="","function"==typeof t?this.getter=t:(this.getter=C(t),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};Br.prototype.get=function(){A(this);var e,t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;ee(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ie(e),I(),this.cleanupDeps()}return e},Br.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Br.prototype.cleanupDeps=function(){for(var e=this ,t=this.deps.length;t--;){var n=e.deps[t];e.newDepIds.has(n.id)||n.removeSub(e)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},Br.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():We(this)},Br.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){ee(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Br.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Br.prototype.depend=function(){for(var e=this,t=this.deps.length;t--;)e.deps[t].depend()},Br.prototype.teardown=function(){var e=this;if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var t=this.deps.length;t--;)e.deps[t].removeSub(e);this.active=!1}};var qr={enumerable:!0,configurable:!0,get:w,set:w},Jr={l azy:!0};ft(dt.prototype);var zr={init:function(e,t,n,r){if(!e.componentInstance||e.componentInstance._isDestroyed){(e.componentInstance=yt(e,$r,n,r)).$mount(t?e.elm:void 0,t)}else if(e.data.keepAlive){var o=e;zr.prepatch(o,o)}},prepatch:function(e,t){var n=t.componentOptions;Ie(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Me(n,"mounted")),e.data.keepAlive&&(t._isMounted?Fe(n):Pe(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Ne(t,!0):t.$destroy())}},Hr=Object.keys(zr),Gr=1,Xr=2,Kr=0;!function(e){e.prototype._init=function(e){var t=this;t._uid=Kr++,t._isVue=!0,e&&e._isComponent?St(t,e):t.$options=G(kt(t.constructor),e||{},t),t._renderProxy=t,t._self=t,je(t),we(t),Ot(t),Me(t,"beforeCreate"),Ye(t),Ue(t),Qe(t),Me(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(jt),function(e){var t={};t.get=function(){return this._data}; var n={};n.get=function(){return this._props},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=F,e.prototype.$delete=L,e.prototype.$watch=function(e,t,n){var r=this;if(u(t))return Ze(r,e,t,n);n=n||{},n.user=!0;var o=new Br(r,e,t,n);return n.immediate&&t.call(r,o.value),function(){o.teardown()}}}(jt),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this,o=this;if(Array.isArray(e))for(var i=0,a=e.length;i<a;i++)r.$on(e[i],n);else(o._events[e]||(o._events[e]=[])).push(n),t.test(e)&&(o._hasHookEvent=!0);return o},e.prototype.$once=function(e,t){function n(){r.$off(e,n),t.apply(r,arguments)}var r=this;return n.fn=t,r.$on(e,n),r},e.prototype.$off=function(e,t){var n=this,r=this;if(!arguments.length)return r._events=Object.create(null),r;if(Array.isArray(e)){for(var o=0,i=e.length;o<i;o++)n.$off(e[o],t);return r}var a=r._events[e];if(!a)return r;if(!t)return r._events[e]=null,r;if(t)for(var s,u=a.length;u--;)if((s=a[u ])===t||s.fn===t){a.splice(u,1);break}return r},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?_(n):n;for(var r=_(arguments,1),o=0,i=n.length;o<i;o++)try{n[o].apply(t,r)}catch(n){ee(n,t,'event handler for "'+e+'"')}}return t}}(jt),function(e){e.prototype._update=function(e,t){var n=this;n._isMounted&&Me(n,"beforeUpdate");var r=n.$el,o=n._vnode,i=$r;$r=n,n._vnode=e,o?n.$el=n.__patch__(o,e):(n.$el=n.__patch__(n.$el,e,t,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),$r=i,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Me(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||h(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.lengt h;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Me(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(jt),function(e){ft(e.prototype),e.prototype.$nextTick=function(e){return oe(e,this)},e.prototype._render=function(){var e=this,t=e.$options,n=t.render,r=t._parentVnode;if(e._isMounted)for(var o in e.$slots){var i=e.$slots[o];(i._rendered||i[0]&&i[0].elm)&&(e.$slots[o]=N(i,!0))}e.$scopedSlots=r&&r.data.scopedSlots||Nn,e.$vnode=r;var a;try{a=n.call(e._renderProxy,e.$createElement)}catch(t){ee(t,e,"render"),a=e._vnode}return a instanceof hr||(a=yr()),a.parent=r,a}}(jt);var Zr=[String,RegExp,Array],Qr={name:"keep-alive",abstract:!0,props:{include:Zr,exclude:Zr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){var e=this;for(var t in e.cache)Ft(e.cache,t,e.keys)},watch:{include:function(e){Dt(this,function(t){return Rt(e,t)})} ,exclude:function(e){Dt(this,function(t){return!Rt(e,t)})}},render:function(){var e=this.$slots.default,t=be(e),n=t&&t.componentOptions;if(n){var r=$t(n),o=this,i=o.include,a=o.exclude;if(i&&(!r||!Rt(i,r))||a&&r&&Rt(a,r))return t;var s=this,u=s.cache,c=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;u[l]?(t.componentInstance=u[l].componentInstance,h(c,l),c.push(l)):(u[l]=t,c.push(l),this.max&&c.length>parseInt(this.max)&&Ft(u,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Yr={KeepAlive:Qr};!function(e){var t={};t.get=function(){return Hn},Object.defineProperty(e,"config",t),e.util={warn:lr,extend:g,mergeOptions:G,defineReactive:D},e.set=F,e.delete=L,e.nextTick=oe,e.options=Object.create(null),Jn.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,g(e.options.components,Yr),At(e),It(e),Tt(e),Mt(e)}(jt),Object.defineProperty(jt.prototype,"$isServer",{get:ar}),Object.defineProperty(jt.prototype,"$ssrContext",{get:function(){return this .$vnode&&this.$vnode.ssrContext}}),jt.version="2.5.9";var eo,to=1,no={},ro=Object.freeze({namespaceMap:no,createElement:Wt,createElementNS:Vt,createTextNode:Ut,createComment:Bt,insertBefore:qt,removeChild:Jt,appendChild:zt,parentNode:Ht,nextSibling:Gt,tagName:Xt,setTextContent:Kt,setAttribute:Zt}),oo={create:function(e,t){Qt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Qt(e,!0),Qt(t))},destroy:function(e){Qt(e,!0)}},io=(p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,s ummary,content,element,shadow,template,blockquote,iframe,tfoot"),p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-gly
<TRUNCATED>
