http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7ae75e3c/packages/weex-js-framework/index.min.js ---------------------------------------------------------------------- diff --git a/packages/weex-js-framework/index.min.js b/packages/weex-js-framework/index.min.js index 3f2c154..941b012 100644 --- a/packages/weex-js-framework/index.min.js +++ b/packages/weex-js-framework/index.min.js @@ -1 +1 @@ -(this.nativeLog||function(e){console.log(e)})("START JS FRAMEWORK 0.22.0, Build 2017-09-21 18:58."),this.getJSFMVersion=function(){return"0.22.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){return e&&e.__esModule?e.default:e}function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(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=qi(t),this.reject=qi(n)}function r(){Ra.forEach(function(e){var t=Ra.indexOf(e);Da[e]={},Ra.forEach(function(n){Ra.indexOf(n)<=t&&(Da[e][n]=!0)})})}function o(e){var t=global.WXEnvironment&&global.WXEnvironment.logLevel||"log";return Da[t]&&Da[t][e]}function i(e){return e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringi fy(e):String(e)})}function a(){if(void 0===setTimeout&&"function"==typeof Wa){var e={},t=0;global.setTimeout=function(n,r){e[++t]=n,Wa(t.toString(),r)},global.setTimeoutCallback=function(t){"function"==typeof e[t]&&(e[t](),delete e[t])}}}function s(){Object.freeze(Object),Object.freeze(Array),u(),Object.freeze(Array.prototype),Object.freeze(String.prototype),Object.freeze(Number.prototype),Object.freeze(Boolean.prototype),c(),Object.freeze(Date.prototype),Object.freeze(RegExp.prototype)}function u(){var e=Object.prototype,t="Object.prototype";l(e,"__defineGetter__",t),l(e,"__defineSetter__",t),l(e,"__lookupGetter__",t),l(e,"__lookupSetter__",t),l(e,"constructor",t),l(e,"hasOwnProperty",t),l(e,"isPrototypeOf",t),l(e,"propertyIsEnumerable",t),l(e,"toLocaleString",t),l(e,"toString",t),l(e,"valueOf",t),Object.seal(e)}function c(){var e=Error.prototype,t="Error.prototype";l(e,"name",t),l(e,"message",t),l(e,"toString",t),l(e,"constructor",t),Object.seal(e)}function l(e,t,n){if(e.hasOwnPro perty(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 f(){return(Ba++).toString()}function p(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function d(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 h(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 v(e){var t=p(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:d(e)};case"In t8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":return{"@type":"binary",dataType:t,base64:d(e.buffer)};default:return JSON.stringify(e)}}function y(e){if("Object"===p(e)){if(e["@type"]&&"binary"===e["@type"])return h(e.base64||"");var t={};for(var n in e)t[n]=y(e[n]);return t}return"Array"===p(e)?e.map(y):e}function m(e,t){e&&(Ua[e]=t)}function _(e){return Ua[e]}function g(e){delete Ua[e]}function b(e){var t=Ua[e];return t&&t.taskCenter?t.taskCenter:null}function w(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,C(t,r)):(t.children.forEach(function(e){e.parentNode=t}),x(e,t),t.docId=e.id,t.ownerDocument=e,C(t,r),delete e.nodeMap[t.nodeId]),r.pureChildren.push(t),E(e,t)):(t.parentNode=r,e.nodeMap[t.ref]=t)}}fu nction E(e,t){var n=t.toJSON(),r=n.children;delete n.children;var o=e.taskCenter.send("dom",{action:"createBody"},[n]);return r&&r.forEach(function(t){o=e.taskCenter.send("dom",{action:"addElement"},[n.ref,t,-1])}),o}function x(e,t){t.role="body",t.depth=1,delete e.nodeMap[t.nodeId],t.ref="_root",e.nodeMap._root=t,e.body=t}function C(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){C(t,e)})}function O(e){for(;e;){if(1===e.nodeType)return e;e=e.nextSibling}}function S(e){for(;e;){if(1===e.nodeType)return e;e=e.previousSibling}}function k(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 j(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];re turn t.splice(s,0,e),r&&(u&&(u.nextSibling=e),e.previousSibling=u,e.nextSibling=c,c&&(c.previousSibling=e)),o===s?-1:n}function A(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 I(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}(qa);t.forEach(function(t){n.prototype[t]=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var o=b(this.docId);if(o)return o.send("component",{ref:this.ref,component:e,method:t},n)}}),Ja[e]=n}}function T(e){return Ja[e]}function N(e){return"String"===p(e)?{"@binding":e}:e}function P(e){for(var t,n,r=[],o=Ha.lastIndex=0;t=Ha.exec(e);){(n=t.index)>o&&r.push(e.slice(o,n));var i=N(t[1].trim());r.push(i),o=n+t[0].length}return o<e.length&&r.push(e.slice(o)),1===r.length?r[0]:r}function M(e){if("String"===p(e)&&Ha.test(e))return P(e);if("Obj ect"===p(e)){var t={};for(var n in e)t[n]=M(e[n]);return t}return"Array"===p(e)?e.map(M):e}function $(e,t){_(e).nodeMap[t.nodeId]=t}function R(){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,addEvent:global.callAddEvent,removeEvent:global.callRemoveEvent},t=Qa.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 Za(e,[{module:"dom",method:n,args:t}],"-1")}}(n);t.componentHandler=global.callNativeComponent||function(e,t,n,r,o){return Za(e,[{component:o.component,ref:t,method:n,args:r}])},t.moduleHandler=global.callNativeModule||function(e,t,n,r){return Za(e,[{module:t,method:n,args:r}])}}function D(e,t){L(e)?console.warn('Service "'+e+'" has been registered already!'):(t=Object.assign({},t),ts.push({name:e,options:t}))}function F(e){ts.some(function(t,n){if(t.name===e)return ts.splice(n,1),!0})}function L(e){return W(e)>=0}function W(e){return ts.map(function(e){return e.name}).indexOf(e)}function B(e){var t=ns.exec(e);if(t)try{return JSON.parse(t[1]).framework}catch(e){}return"Weex"}function V(e,t,n){var r=Object.create(null);return r.service=Object.create(null),ts.forEach(function(o){o.name;var i=o.options.create;if(i){var a=i(e,t,n);Object.assign(r.service,a),Object.assign(r,a.instance)}}),delete r.service.instance,Object.freeze(r.service),r}function U(e){if(rs[e])return rs[e].framework}function z(e){os[e]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];"registerComponents"===e&&q(t[0]);for(var r in Ya){var o=Ya[r];o&&o[e]&&o[e].apply(o,t)}}}function q(e){Array.isArray(e)&&e.forEach(function(e){e&&e.type&&e.methods&&I(e.type,e.methods)})}function J(e){os[e]=function(){for(var t=[],n=argu ments.length;n--;)t[n]=arguments[n];var r=t[0],o=U(r);if(o&&Ya[o]){var i=(s=Ya[o])[e].apply(s,t),a={framework:o};return"refreshInstance"===e?ts.forEach(function(e){var t=e.options.refresh;t&&t(r,{info:a,runtime:es})}):"destroyInstance"===e&&(ts.forEach(function(e){var t=e.options.destroy;t&&t(r,{info:a,runtime:es})}),delete rs[r]),i}return new Error('invalid instance id "'+r+'"');var s}}function H(e,t){os[t]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],o=U(r);return o&&Ya[o]?(i=Ya[o])[e].apply(i,t):new Error('invalid instance id "'+r+'"');var i}}function G(e,t){return void 0===t&&(t=[]),{module:"dom",method:e,args:t}}function X(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=Z(e,t[r],n);if(-1===o)return o}}}function K(e,t){return"dom"===e&&ss[t]&&"function"==typeof global[ss[t]]}function Z(e,t,n){var r=t.module,o=t.metho d,i=t.args;return K(r,o)?global[ss[o]].apply(global,[e].concat(i,["-1"])):n(e,[t],"-1")}function Q(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 Y(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 ee(){}function te(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&&te.apply(void 0,[e].concat(t))}return e}function ne(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function re(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function oe(e,t){return $s.call(e,t)}function ie(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 ae(e){return null!==e&&"object"==typeof e}function se(e){return Rs.call(e)===Ds}function ue(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function ce(){return"object"==typeof nativeSet?nativeSet.create():new ds}function le(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1).toLowerCase()}function fe(e){return e.replace(Ls,"").replace(Ws,"")}function pe(e){return e.replace(Vs,"")}function de(){this.id=Hs++,this.subs=[]}function he(e){de.target&&Gs.push(de.target),de.target=e}function ve(){de.target=Gs.pop()}function ye(){de.target=null,Gs=[]}function me(e,t,n,r){r&&te(this,r);var o="function"==typeof t;this.vm=e,e._watchers.push(this),this.expression=t,this.cb=n,this.id=++Xs,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=ce(),this.newDepIds=ce(),o&&(this.getter=t),this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function _e(e,t){var n,r,o,i;if(t||(t=Ks).clear(),o=Array.isArray(e),i=ae (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(e[n],t);else if(i)for(n=(r=Object.keys(e)).length;n--;)_e(e[r[n]],t)}}function ge(e){this.value=e,this.dep=new de,ne(e,"__ob__",this),Array.isArray(e)?((Fs?be:we)(e,Qs,Ys),this.observeArray(e)):this.walk(e)}function be(e,t){e.__proto__=t}function we(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];ne(e,i,t[i])}}function Ee(e,t){if(ae(e)){var n;return oe(e,"__ob__")&&e.__ob__ instanceof ge?n=e.__ob__:(Array.isArray(e)||se(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new ge(e)),n&&t&&n.addVm(t),n}}function xe(e,t,n){var r=new de,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var i=o&&o.get,a=o&&o.set,s=Ee(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=i?i.call(e):n;if(de.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=Ee(t),r.notify())}})}}function Ce(e,t,n){if(Array.isArray(e))return e.splice(t,1,n);if(oe(e,t))e[t]=n;else if(e._isVue)Ce(e._data,t,n);else{var r=e.__ob__;if(r){if(r.convert(t,n),r.dep.notify(),r.vms)for(var o=r.vms.length;o--;)Oe(r.vms[o],t);return n}e[t]=n}}function Oe(e,t){(eu.indexOf(t)>-1||!ue(t))&&Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})}function Se(e,t){ue(t)||delete e[t]}function ke(e){e._watchers=[],je(e),Ie(e),Ne(e)}function je(e){var t=e._data;se(t)||(t={});for(var n=Object.keys(t),r=n.length;r--;)Oe(e,n[r]);Ee(t,e)}function Ae(){}function Ie(e){var t=e._computed;if(t)for(var n in t){var r=t[n],o={enumerable:!0,configurable:!0};"function"==typeof r?(o.get=Te(r,e),o.set=Ae):(o.get=r.get?!1!==r.cache?Te(r.get,e):ie(r.get,e):Ae,o.set=r.set?ie(r.set,e):Ae),Object.defineProperty(e,n,o)}}function Te(e,t){var n=new me(t,e,null,{lazy:!0});return function(){re turn n.dirty&&n.evaluate(),de.target&&n.depend(),n.value}}function Ne(e){var t=e._methods;if(t)for(var n in t)e[n]=t[n]}function Pe(e){var t=e.type,n=nu[t];if("object"==typeof n)for(var r in n)if(null==e[r])e[r]=n[r];else if("object"===le(e[r])&&"object"===le(n[r]))for(var o in n[r])null==e[r][o]&&(e[r][o]=n[r][o])}function Me(e,t,n){We(e,t,n.id,e),Be(e,t,n.attr),Ue(e,t,n.classList),ze(e,t,n.style),Je(e,t,n.events)}function $e(e,t,n,r){t=t||{},n=n||{};var o=(t._options||{}).props;Array.isArray(o)&&(o=o.reduce(function(e,t){return e[t]=!0,e},{})),De(r,o,e,t),De(n.attr,o,e,t)}function Re(e,t,n,r){void 0===r&&(r={}),Le(n.classList,e,t),Fe(n.style,e,t),r.children?r.children[r.children.length-1]._vm=t:r._vm=t}function De(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=Xe(n,i,function(e){r[o]=e});r[o]=a}else r[o]=i}}(o)}}function Fe(e,t,n){for(var r in e)!function(r){var o=e[r];if("function"==typeof o){var i=Xe(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 Le(e,t,n){function r(e,t){"array"===le(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=Xe(t,e,function(e){r(e,i),Ve(n._rootEl,o,e)});r(a,i),Ve(n._rootEl,o,a)}else null!=e&&(r(e,i),Ve(n._rootEl,o,e))}}function We(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))||0===n)&&(e._ids[n]=o),Xe(e,i,function(t){t&&(e._ids[t]=o)})}else n&&"string"==typeof n&&(e._ids[n]=o)}function Be(e,t,n){He(e,t,"attr",n)}function Ve(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 Ue(e,t,n){if("function"==typeof n||Array.isArray(n))if(!Array.isArray(n)||n.length){var r=e._options&&e._options.style||{};if("function"==typeof n){var o=Xe(e,n,function(e){Ve(t,r,e)});Ve(t,r,o)}else Ve(t,r,n)}else t.setClassStyle({})}function ze(e,t,n){He(e,t,"style",n)}function qe(e,t,n,r){t.addEvent(n,ie(r,e))}function Je(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.')),qe(e,t,i,a)}}function He(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?Ge(e,t,n,a,s):t[ru[n]](a,s)}}function Ge(e,t,n,r,o){var i=ru[n],a=Xe(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 Xe(e,t,n){return e._static?t.call(e,e):new me(e,t,function(e,t){"object"!=typeof e&&e===t||n(e)}).value}function Ke(e,t){re turn e._app.doc.createBody(t)}function Ze(e,t){return e._app.doc.createElement(t)}function Qe(e,t){var n=Ye(e),r=et(e),o=ou++;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 Ye(e){return e._app.doc.createComment("start")}function et(e){return e._app.doc.createComment("end")}function tt(e,t,n){if(n.element){var r=n.end,o=n.updateMark;if(n.children&&n.children.push(t),o){var i=nt(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 nt(e,t,n){return t.element?ot(t,n):rt(t,n)}function rt(e,t){var n=t.parentNode;if(n)return n.insertAfter(e,t)} function ot(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 it(e,t,n){void 0===n&&(n=!1),t.element?st(t,n):at(t),t._vm&&t._vm.$emit("hook:destroyed")}function at(e){var t=e.parentNode;t&&t.removeChild(e)}function st(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||at(e.start),n.forEach(function(e){at(e)}),t||at(e.end)}function ut(e){var t=e._options||{},n=t.template||{};t.replace?n.children&&1===n.children.length?ct(e,n.children[0],e._parentEl):ct(e,n.children,e._parentEl):ct(e,n,e._parentEl),console.debug('[JS Framework] "ready" lifecycle in Vm('+e._type+")"),e.$emit("hook:ready"),e._ready=!0}function ct(e,t,n,r){if(-1!==(e._app||{}).lastSignal)if(t.attr&&t.attr.hasOwnProperty("static")&&(e._static=!0),lt(t))yt(e,t,n,r);else{if(r=r||{},ft(t))return console.debug('[JS Framework] compile "content" block by',t),void(e._content=Qe(e,n));if(pt(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!"):mt(e,t,n));if(dt(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!"):_t(e,t,n,r));var o=r.type||t.type;if(ht(o,r))gt(e,t,n,o,r);else{var i=o,a=vt(e,t,i);if(a)return console.debug("[JS Framework] compile composed component by",t),void bt(e,a,t,n,i,r);console.debug("[JS Framework] compile native component by",t),wt(e,t,n,i)}}}function lt(e){return Array.isArray(e)}function ft(e){return"content"===e.type||"slot"===e.type}function pt(e,t){return!t.hasOwnProperty("repeat")&&e.repeat}function dt(e,t){return!t.hasOwnProperty("shown")&&e.shown}function ht(e,t){return"function"==typeof e&&!t.hasOwnProperty("type")}function vt(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 yt(e,t,n,r){var o=Qe(e,n);t.forEach(function(t){ct(e,t,o,r)})}function mt(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=Qe(e,n);c.children=[],c.data=[],c.vms=[],xt(e,t,c,{getter:i,key:a,value:s,trackBy:u,oldStyle:o})}function _t(e,t,n,r){var o={shown:!0},i=Qe(e,n);n.element&&n.children&&n.children.push(i),r.repeat&&(o.repeat=r.repeat),Ct(e,t,i,o)}function gt(e,t,n,r,o){var i=te({type:r.call(e)},o),a=Qe(e,n);n.element&&n.children&&n.children.push(a),Xe(e,r,function(n){var r=te({type:n},o);it(e,a,!0),ct(e,t,a,r)}),ct(e,t,a,i)}function bt(e,t,n,r,o,i){var a=new(0,e.constructor)(o,t,e,r,void 0,{"hook:init":function(){e._static&&(this._static=e._static),We(e,null,n.id,th is),this._externalBinding={parent:e,template:n}},"hook:created":function(){$e(e,this,n,i.repeat)},"hook:ready":function(){this._content&&Et(e,n,this._content)}});Re(e,a,n,r)}function wt(e,t,n,r){Pe(t);var o;if("_documentElement"===n.ref?(console.debug("[JS Framework] compile to create body for "+r),o=Ke(e,r)):(console.debug("[JS Framework] compile to create element for "+r),o=Ze(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,ie(c,s))}}Me(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=tt(e,o,n)),-1!==f.lastSignal&&Et(e,t,o),-1!==f.lastSignal&&l&&(console.debug("[JS Framework] compile to append whole tree for",o),f.lastSignal=tt(e,o,n))}function Et(e,t,n){var r=e._app||{} ,o=t.children;o&&o.length&&o.every(function(t){return ct(e,t,n),-1!==r.lastSignal})}function xt(e,t,n,r){function o(e,r,o){var a;c?(a=e,ae(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={})[l]=r,a[f]=e)):((a={})[l]=r,a[f]=e);var s=St(o,a);i.push(s),ct(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,p=Ot(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(),p=n.data.slice(),d={},h={};t.forEach(function(e,t){var n=u?e[u]:c?e[l]:t;null!=n&&""!==n&&(d[n]=e)});var v=[];p.forEach(function(t,n){var o=u?t[u]:c?t[l]:n;d.hasOwnProperty(o)?(h[o]={item:t,index:n,key:o,target:r[n],vm:s[n]},v.push(t)):it(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,p=h[s];p?(p.item===v[0]?v.shift():(v.$remove(p.item),nt(e,p.target,n.updateMark,!0)),a.push(p.target),i.push(p.vm),c?p.vm=t:p.vm[f]=t,p.vm[l]=r,n.updateMark=p.target):o(t,r,e)}),delete n.updateMark}});n.data=p.slice(0),p.forEach(function(t,n){o(t,n,e)})}function Ct(e,t,n,r){var o=Ot(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?ct(e,t,n,r):it(e,n,!0))});n.display=!!o,o&&ct(e,t,n,r)}function Ot(e,t,n,r,o){var i=e&&e._app&&e._app.differ,a={},s=(t.element.depth||0)+1;return Xe(e,n,function(e){a.latestValue=e,i&&!a.recorded&&i.append(r,s,t.blockId,function(){var e=a.latestValue;o(e),a.recorded=!1,a.latestValue=void 0}),a.recorded=!0})}function St(e,t){var n=Object.create(e);return n._data=t,je(n),Ie(n),n._realParent=e,e._static&&(n._static=e._static),n}function kt(e,t){if(t instanceof kt)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 jt(e,t){var n=this,r=this._vmEvents[e];if(r){var o=new kt(e,t);r.forEach(function(e){e.call(n,o)})}}function At(e,t){var n=new kt(e,t);this.$emit(e,n),!n.hasStopped()&&this._parent&&this._parent.$dispatch&&this._parent.$dispatch(e,n)}function It(e,t){var n=new kt(e,t);this.$emit(e,n),!n.hasStopped()&&this._childrenVms&&this._childrenVms.forEach(function(t){t.$broadcast(e,n)})}function Tt(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 Nt(e,t){if(e){var n=this._vmEvents;if(t){var r=n[e];r&&r.$remove(t)}else delete n[e]}}function Pt(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]);iu.forEach(function(t){e.$on("hook:"+t,n[t])})}function Mt(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]);var a=(t=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,Pt(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&&te(this._data,o),ke(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.methods.ready.call(this)),this._app.doc&&(this._parentEl=r||this._app.doc.documentElement,ut(this))}function $t(e,t){for(var n in e)!function(n){var r=au[n];r||(r={},au[n]=r),e[n].forEach(function(e){"string"==typeof e&&(e={name:e}),r[e.name]&&!t||(r[e .name]=e)})}(n)}function Rt(e,t){var n=e.prototype;for(var r in t)n.hasOwnProperty(r)||(n[r]=t[r])}function Dt(e,t){var n=au[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 Ft(e,t){return e.customComponentMap[t]}function Lt(e,t,n){var r=e.customComponentMap;r[t]?console.error("[JS Framework] define a component("+t+") that already exists"):r[t]=n}function Wt(e){if(su.valid(e))return e;for(var t=(e="string"==typeof e?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 Bt(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 cri teria "+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 Vt(e,t){t=se(t=t||global.WXEnvironment)?t:{};var n={isDowngrade:!1};if("function"===le(e)){var r=e.call(this,t,{semver:su,normalizeVersion:Wt});n=(r=!!r)?Bt("custom","","custom params"):n}else{var o=(e=se(e)?e:{})[(t.platform||"unknow").toLowerCase()]||{};for(var i in t){var a=i,s=a.toLowerCase(),u=t[i],c=s.indexOf("version")>=0,l=s.indexOf("devicemodel")>=0,f=o[i];if(f&&c){var p=Wt(f),d=Wt(t[i]);if(su.satisfies(d,p)){n=Bt(a,u,f);break}}else if(l&&("array"===le(f)?f:[f]).indexOf(u)>=0){n=Bt(a,u,f);break}}}return n}function Ut(e,t){if(void 0===t&&(t={}),e&&e.callTasks)return e.callTasks([{module:"meta",method:"setViewport",args:[t]}])}function zt(e,t,n,r){console.debug("[JS Framework] bootstrap for "+t);var o;if(Us(t))o=fe(t);else{if(!Js(t))return new Error("Wrong component name: "+t);if(o=pe(t),!F t(e,o))return new Error("It's not a component: "+t)}if("string"==typeof(n=se(n)?n:{}).transformerVersion&&"string"==typeof global.transformerVersion&&!su.satisfies(n.transformerVersion,global.transformerVersion))return new Error("JS Bundle version: "+n.transformerVersion+" not compatible with "+global.transformerVersion);var i=Vt(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&&Ut(e,n.viewport),e.vm=new Mt(o,null,{_app:e},null,r)}function qt(e,t,n){console.warn("[JS Framework] Register is deprecated, please install lastest transformer."),Lt(e,t,n)}function Jt(e,t){console.debug("[JS Framework] Refresh with",t,"in instance["+e.id+"]");var n=e.vm;return n&&t?("function"==typeof n.refreshData?n.refreshData(t):te(n,t),e.differ.flush(),void e.doc.taskCenter.send("dom",{action:"refreshFinish"},[])):new Error('invalid data "'+t+'"')}function Ht( e){console.debug("[JS Framework] Destory an instance("+e.id+")"),e.vm&&Gt(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 Gt(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--;)Gt(e._childrenVms[n]);delete e._childrenVms}console.debug('[JS Framework] "destroyed" lifecycle in Vm('+e._type+")"),e.$emit("hook:destroyed"),delete e._type,delete e._vmEvents}function Xt(e){var t=(e.doc||{}).body||{};return t.toJSON?t.toJSON():{}}function Kt(e,t,n,r,o){console.debug('[JS Framework] Fire a "'+n+'" event on an element('+t+") in instance("+e.id+")");{if(!Array.isArray(t)){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+'"')}t.some(function(t){return!1!==Kt(e,t,n,r)})}}function Zt(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 Qt(e),e.doc.taskCenter.send("dom",{action:"updateFinish"},[]),o}function Qt(e){e.differ.flush()}function Yt(e,t){var n;return"array"!==le(t)&&(t=[t]),t.forEach(function(t){n=e.doc.taskCenter.send("module",{module:t.module,method:t.method},t.args)}),n}function en(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 uu.apply(void 0,[e].concat(t))},a=function(t,r,i){o=zt(e,t,r,i||n),Qt(e),e.doc.listener.createFinish(),console.debug("[JS Framework] After intialized an instance("+e.id+")")},s=Mt,u=e.doc,c=function(t){return e.requireModule (fe(t))},l={config:e.options,define:i,bootstrap:a,requireModule:c,document:u,Vm:s};Object.freeze(l);var f;"function"==typeof t?f=t.toString().substr(12):t&&(f=t.toString()),f='(function(global){\n\n"use strict";\n\n '+f+" \n\n})(Object.create(this))";var p=global.WXEnvironment,d={};if(p&&"Web"!==p.platform){var h=e.requireModule("timer");Object.assign(d,{setTimeout:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return h.setTimeout(function(){t[0].apply(t,t.slice(2))},t[1]),e.doc.taskCenter.callbackManager.lastCallbackId.toString()},setInterval:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return h.setInterval(function(){t[0].apply(t,t.slice(2))},t[1]),e.doc.taskCenter.callbackManager.lastCallbackId.toString()},clearTimeout:function(e){h.clearTimeout(e)},clearInterval:function(e){h.clearInterval(e)}})}var v=Object.assign({define:i,require:function(t){return function(n){o=zt(e,t,{},n)}},bootstrap:a,register:function(){for(var t=[],n=arguments.len gth;n--;)t[n]=arguments[n];return qt.apply(void 0,[e].concat(t))},render:function(t,n){o=zt(e,t,{},n)},__weex_define__:i,__weex_bootstrap__:a,__weex_document__:u,__weex_require__:c,__weex_viewmodel__:s,weex:l},d,r);return nn(v,f)||tn(v,f),o}function tn(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 nn(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||{}).config||{};(n=compileAndRunBundle(o,c.bundleUrl,c.bundleDigest,c.codeCachePath))&&"function"==typeof n&&(n.apply(void 0,a),r=!0)}catch(e){console.error(e)}return r}function rn(e,t){var n=e[t];for(var r in n)n[r]()}function on(e,t){var n=e[t];for(var r in n)n[r].forEach(function(e){e()})}function an(e,t){this.id=e,this.options=t||{} ,this.vm=null,this.customComponentMap={},this.commonModules={},this.doc=new tu.Document(e,this.options.bundleUrl,null,tu.Listener),this.differ=new cu(e)}function sn(e){"object"==typeof e&&Rt(Mt,e)}var un={browser:"0.5.0",framework:"0.22.0","vue-render":"0.12.3",transformer:">=0.1.5 <0.5"};Array.from||(Array.from=function(){var e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t},r=Math.pow(2,53)-1,o=function(e){var t=n(e);return Math.min(Math.max(t,0),r)};return function(e){var n=this,r=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(i=arguments[2])}for(var s,u=o(r.length),c=t(n)?Object(new n( u)):new Array(u),l=0;l<u;)s=r[l],c[l]=a?void 0===i?a(s,l):a.call(i,s,l):s,l+=1;return c.length=u,c}}());var cn="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:{},ln=t(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),fn=t(function(e){var t=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=t)}),pn=function(e){return"object"==typeof e?null!==e:"function"==typeof e},dn=pn,hn=function(e){if(!dn(e))throw TypeError(e+" is not an object!");return e},vn=function(e){try{return!!e()}catch(e){return!0}},yn=!vn(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),mn=pn,_n=ln.document,gn=mn(_n)&&mn(_n.createElement),bn=function(e){return gn?_n.createElement(e):{}},wn=!yn&&!vn(function(){return 7!=Object.defineProperty(bn("div"),"a",{get:function(){return 7}}).a}),En=pn,xn=hn,Cn=wn,On=functi on(e,t){if(!En(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!En(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!En(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!En(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Sn=Object.defineProperty,kn={f:yn?Object.defineProperty:function(e,t,n){if(xn(e),t=On(t,!0),xn(n),Cn)try{return Sn(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},jn=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},An=kn,In=jn,Tn=yn?function(e,t,n){return An.f(e,t,In(1,n))}:function(e,t,n){return e[t]=n,e},Nn={}.hasOwnProperty,Pn=function(e,t){return Nn.call(e,t)},Mn=0,$n=Math.random(),Rn=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++Mn+$n).toString(36))},Dn=t(function(e){var t=ln,n=Tn,r=Pn,o=Rn("src"),i=Function.toString,a=(""+i).split("toString");fn.inspectSource=function(e) {return i.call(e)},(e.exports=function(e,i,s,u){var c="function"==typeof s;c&&(r(s,"name")||n(s,"name",i)),e[i]!==s&&(c&&(r(s,o)||n(s,o,e[i]?""+e[i]:a.join(String(i)))),e===t?e[i]=s:u?e[i]?e[i]=s:n(e,i,s):(delete e[i],n(e,i,s)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||i.call(this)})}),Fn=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},Ln=Fn,Wn=function(e,t,n){if(Ln(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},Bn=ln,Vn=fn,Un=Tn,zn=Dn,qn=Wn,Jn=function(e,t,n){var r,o,i,a,s=e&Jn.F,u=e&Jn.G,c=e&Jn.S,l=e&Jn.P,f=e&Jn.B,p=u?Bn:c?Bn[t]||(Bn[t]={}):(Bn[t]||{}).prototype,d=u?Vn:Vn[t]||(Vn[t]={}),h=d.prototype||(d.prototype={});u&&(n=t);for(r in n)i=((o=!s&&p&&void 0!==p[r])?p:n)[r],a=f&&o?qn(i,Bn):l&&"function"==typeof i?qn(Funct ion.call,i):i,p&&zn(p,r,i,e&Jn.U),d[r]!=i&&Un(d,r,a),l&&h[r]!=i&&(h[r]=i)};Bn.core=Vn,Jn.F=1,Jn.G=2,Jn.S=4,Jn.P=8,Jn.B=16,Jn.W=32,Jn.U=64,Jn.R=128;var Hn=Jn,Gn={}.toString,Xn=function(e){return Gn.call(e).slice(8,-1)},Kn=Xn,Zn=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==Kn(e)?e.split(""):Object(e)},Qn=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},Yn=Zn,er=Qn,tr=function(e){return Yn(er(e))},nr=Math.ceil,rr=Math.floor,or=function(e){return isNaN(e=+e)?0:(e>0?rr:nr)(e)},ir=or,ar=Math.min,sr=function(e){return e>0?ar(ir(e),9007199254740991):0},ur=or,cr=Math.max,lr=Math.min,fr=tr,pr=sr,dr=function(e,t){return(e=ur(e))<0?cr(e+t,0):lr(e,t)},hr=ln,vr=hr["__core-js_shared__"]||(hr["__core-js_shared__"]={}),yr=function(e){return vr[e]||(vr[e]={})},mr=yr("keys"),_r=Rn,gr=function(e){return mr[e]||(mr[e]=_r(e))},br=Pn,wr=tr,Er=function(e){return function(t,n,r){var o,i=fr(t),a=pr(i.length),s=dr(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++]) !=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}}(!1),xr=gr("IE_PROTO"),Cr="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Or=function(e,t){var n,r=wr(e),o=0,i=[];for(n in r)n!=xr&&br(r,n)&&i.push(n);for(;t.length>o;)br(r,n=t[o++])&&(~Er(i,n)||i.push(n));return i},Sr=Cr,kr=Object.keys||function(e){return Or(e,Sr)},jr=Qn,Ar=function(e){return Object(jr(e))},Ir=kr,Tr={f:Object.getOwnPropertySymbols},Nr={f:{}.propertyIsEnumerable},Pr=Ar,Mr=Zn,$r=Object.assign,Rr=!$r||vn(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=$r({},e)[n]||Object.keys($r({},t)).join("")!=r})?function(e,t){for(var n=arguments,r=Pr(e),o=arguments.length,i=1,a=Tr.f,s=Nr.f;o>i;)for(var u,c=Mr(n[i++]),l=a?Ir(c).concat(a(c)):Ir(c),f=l.length,p=0;f>p;)s.call(c,u=l[p++])&&(r[u]=c[u]);return r}:$r,Dr=Hn;Dr(Dr.S+Dr.F,"Object",{assign:Rr}),Object.setPrototypeO f||(Object.setPrototypeOf=function(e,t){function n(e,t){return r.call(e,t),e}var r;try{(r=e.getOwnPropertyDescriptor(e.prototype,"__proto__").set).call({},null)}catch(t){if(e.prototype!=={}.__proto__||void 0==={__proto__:null}.__proto__)return;r=function(e){this.__proto__=e},n.polyfill=n(n({},null),e.prototype)instanceof e}return n}(Object));var Fr=cn.WXEnvironment;Fr&&"iOS"===Fr.platform&&(cn.Promise=void 0);var Lr=t(function(e){var t=yr("wks"),n=Rn,r=ln.Symbol,o="function"==typeof r;(e.exports=function(e){return t[e]||(t[e]=o&&r[e]||(o?r:n)("Symbol."+e))}).store=t}),Wr=Xn,Br=Lr("toStringTag"),Vr="Arguments"==Wr(function(){return arguments}()),Ur=function(e,t){try{return e[t]}catch(e){}},zr=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=Ur(t=Object(e),Br))?n:Vr?Wr(t):"Object"==(r=Wr(t))&&"function"==typeof t.callee?"Arguments":r},qr=zr,Jr={};Jr[Lr("toStringTag")]="z",Jr+""!="[object z]"&&Dn(Object.prototype,"toString",function(){return"[objec t "+qr(this)+"]"},!0);var Hr=or,Gr=Qn,Xr={},Kr=kn,Zr=hn,Qr=kr,Yr=yn?Object.defineProperties:function(e,t){Zr(e);for(var n,r=Qr(t),o=r.length,i=0;o>i;)Kr.f(e,n=r[i++],t[n]);return e},eo=ln.document,to=eo&&eo.documentElement,no=hn,ro=Yr,oo=Cr,io=gr("IE_PROTO"),ao=function(){},so=function(){var e,t=bn("iframe"),n=oo.length;for(t.style.display="none",to.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),so=e.F;n--;)delete so.prototype[oo[n]];return so()},uo=Object.create||function(e,t){var n;return null!==e?(ao.prototype=no(e),n=new ao,ao.prototype=null,n[io]=e):n=so(),void 0===t?n:ro(n,t)},co=kn.f,lo=Pn,fo=Lr("toStringTag"),po=function(e,t,n){e&&!lo(e=n?e:e.prototype,fo)&&co(e,fo,{configurable:!0,value:t})},ho=uo,vo=jn,yo=po,mo={};Tn(mo,Lr("iterator"),function(){return this});var _o=Pn,go=Ar,bo=gr("IE_PROTO"),wo=Object.prototype,Eo=Object.getPrototypeOf||function(e){return e=go(e),_o(e,bo)?e[bo]:"function"==ty peof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?wo:null},xo=Hn,Co=Dn,Oo=Tn,So=Pn,ko=Xr,jo=function(e,t,n){e.prototype=ho(mo,{next:vo(1,n)}),yo(e,t+" Iterator")},Ao=po,Io=Eo,To=Lr("iterator"),No=!([].keys&&"next"in[].keys()),Po=function(){return this},Mo=function(e,t,n,r,o,i,a){jo(n,t,r);var s,u,c,l=function(e){if(!No&&e in h)return h[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},f=t+" Iterator",p="values"==o,d=!1,h=e.prototype,v=h[To]||h["@@iterator"]||o&&h[o],y=v||l(o),m=o?p?l("entries"):y:void 0,_="Array"==t?h.entries||v:v;if(_&&(c=Io(_.call(new e)))!==Object.prototype&&c.next&&(Ao(c,f,!0),So(c,To)||Oo(c,To,Po)),p&&v&&"values"!==v.name&&(d=!0,y=function(){return v.call(this)}),(No||d||!h[To])&&Oo(h,To,y),ko[t]=y,ko[f]=Po,o)if(s={values:p?y:l("values"),keys:i?y:l("keys"),entries:m},a)for(u in s)u in h||Co(h,u,s[u]);else xo(xo.P+xo.F*(No||d),t,s);return s},$o=function(e ){return function(t,n){var r,o,i=String(Gr(t)),a=Hr(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}}(!0);Mo(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=$o(t,n),this._i+=e.length,{value:e,done:!1})});var Ro=Lr("unscopables"),Do=Array.prototype;void 0==Do[Ro]&&Tn(Do,Ro,{});var Fo=function(e){Do[Ro][e]=!0},Lo=function(e,t){return{value:t,done:!!e}},Wo=Xr,Bo=tr,Vo=Mo(Array,"Array",function(e,t){this._t=Bo(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,Lo(1)):"keys"==t?Lo(0,n):"values"==t?Lo(0,e[n]):Lo(0,[n,e[n]])},"values");Wo.Arguments=Wo.Array,Fo("keys"),Fo("values"),Fo("entries");for(var Uo=Vo,zo=kr,qo=Dn,Jo=ln,Ho=Tn,Go=Xr,Xo=Lr,Ko=Xo("iterator"),Zo=Xo("toStringTag"),Qo=Go.Array,Yo={CSSRuleLis t:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},ei=zo(Yo),ti=0;ti<ei.length;ti++){var ni,ri=ei[ti],oi=Yo[ri],ii=Jo[ri],ai=ii&&ii.prototype;if(ai&&(ai[Ko]||Ho(ai,Ko,Qo),ai[Zo]||Ho(ai,Zo,ri),Go[ri]=Qo,oi))for(ni in Uo)ai[ni]||qo(ai,ni,Uo[ni],!0)}var si,ui,ci,li=hn,fi=function(e,t,n,r){try{return r?t(li(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&li(o.call(e)),t}},pi=Xr,di=Lr("iterator"),hi=Array.prototype,vi=function(e){return void 0!==e&&(pi.Array===e||hi[di]===e)},yi=zr,mi=Lr("iterator"),_i=Xr,gi=fn.get IteratorMethod=function(e){if(void 0!=e)return e[mi]||e["@@iterator"]||_i[yi(e)]},bi=t(function(e){var t=Wn,n=fi,r=vi,o=hn,i=sr,a=gi,s={},u={},c=e.exports=function(e,c,l,f,p){var d,h,v,y,m=p?function(){return e}:a(e),_=t(l,f,c?2:1),g=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(r(m)){for(d=i(e.length);d>g;g++)if((y=c?_(o(h=e[g])[0],h[1]):_(e[g]))===s||y===u)return y}else for(v=m.call(e);!(h=v.next()).done;)if((y=n(v,_,h.value,c))===s||y===u)return y};c.BREAK=s,c.RETURN=u}),wi=hn,Ei=Fn,xi=Lr("species"),Ci=Wn,Oi=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)},Si=to,ki=bn,ji=ln,Ai=ji.process,Ii=ji.setImmediate,Ti=ji.clearImmediate,Ni=ji.MessageChannel,Pi=ji.Dispatch,Mi=0,$i={},Ri=function(){var e=+t his;if($i.hasOwnProperty(e)){var t=$i[e];delete $i[e],t()}},Di=function(e){Ri.call(e.data)};Ii&&Ti||(Ii=function(e){for(var t=arguments,n=[],r=1;arguments.length>r;)n.push(t[r++]);return $i[++Mi]=function(){Oi("function"==typeof e?e:Function(e),n)},si(Mi),Mi},Ti=function(e){delete $i[e]},"process"==Xn(Ai)?si=function(e){Ai.nextTick(Ci(Ri,e,1))}:Pi&&Pi.now?si=function(e){Pi.now(Ci(Ri,e,1))}:Ni?(ci=(ui=new Ni).port2,ui.port1.onmessage=Di,si=Ci(ci.postMessage,ci,1)):ji.addEventListener&&"function"==typeof postMessage&&!ji.importScripts?(si=function(e){ji.postMessage(e+"","*")},ji.addEventListener("message",Di,!1)):si="onreadystatechange"in ki("script")?function(e){Si.appendChild(ki("script")).onreadystatechange=function(){Si.removeChild(this),Ri.call(e)}}:function(e){setTimeout(Ci(Ri,e,1),0)});var Fi={set:Ii,clear:Ti},Li=ln,Wi=Fi.set,Bi=Li.MutationObserver||Li.WebKitMutationObserver,Vi=Li.process,Ui=Li.Promise,zi="process"==Xn(Vi),qi=Fn,Ji={f:function(e){return new n(e)}},Hi=hn,Gi=pn,X i=Ji,Ki=Dn,Zi=ln,Qi=kn,Yi=yn,ea=Lr("species"),ta=Lr("iterator"),na=!1;try{var ra=[7][ta]();ra.return=function(){na=!0},Array.from(ra,function(){throw 2})}catch(e){}var oa,ia,aa,sa,ua=ln,ca=Wn,la=zr,fa=Hn,pa=pn,da=Fn,ha=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e},va=bi,ya=function(e,t){var n,r=wi(e).constructor;return void 0===r||void 0==(n=wi(r)[xi])?t:Ei(n)},ma=Fi.set,_a=function(){var e,t,n,r=function(){var r,o;for(zi&&(r=Vi.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(zi)n=function(){Vi.nextTick(r)};else if(Bi){var o=!0,i=document.createTextNode("");new Bi(r).observe(i,{characterData:!0}),n=function(){i.data=o=!o}}else if(Ui&&Ui.resolve){var a=Ui.resolve();n=function(){a.then(r)}}else n=function(){Wi.call(Li,r)};return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}(),ga=Ji,ba=function(e){try{return{e:!1,v:e()}}catch(e){return{e:! 0,v:e}}},wa=function(e,t){if(Hi(e),Gi(t)&&t.constructor===e)return t;var n=Xi.f(e);return(0,n.resolve)(t),n.promise},Ea=ua.TypeError,xa=ua.process,Ca=ua.Promise,Oa="process"==la(xa),Sa=function(){},ka=ia=ga.f,ja=!!function(){try{var e=Ca.resolve(1),t=(e.constructor={})[Lr("species")]=function(e){e(Sa,Sa)};return(Oa||"function"==typeof PromiseRejectionEvent)&&e.then(Sa)instanceof t}catch(e){}}(),Aa=function(e){var t;return!(!pa(e)||"function"!=typeof(t=e.then))&&t},Ia=function(e,t){if(!e._n){e._n=!0;var n=e._c;_a(function(){for(var r=e._v,o=1==e._s,i=0;n.length>i;)!function(t){var n,i,a=o?t.ok:t.fail,s=t.resolve,u=t.reject,c=t.domain;try{a?(o||(2==e._h&&Pa(e),e._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===t.promise?u(Ea("Promise-chain cycle")):(i=Aa(n))?i.call(n,s,u):s(n)):u(r)}catch(e){u(e)}}(n[i++]);e._c=[],e._n=!1,t&&!e._h&&Ta(e)})}},Ta=function(e){ma.call(ua,function(){var t,n,r,o=e._v,i=Na(e);if(i&&(t=ba(function(){Oa?xa.emit("unhandledRejection",o,e):(n=ua.onunhandled rejection)?n({promise:e,reason:o}):(r=ua.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=Oa||Na(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},Na=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if((t=n[r++]).fail||!Na(t.promise))return!1;return!0},Pa=function(e){ma.call(ua,function(){var t;Oa?xa.emit("rejectionHandled",e):(t=ua.onrejectionhandled)&&t({promise:e,reason:e._v})})},Ma=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),Ia(t,!0))},$a=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw Ea("Promise can't be resolved itself");(t=Aa(e))?_a(function(){var r={_w:n,_d:!1};try{t.call(e,ca($a,r,1),ca(Ma,r,1))}catch(e){Ma.call(r,e)}}):(n._v=e,n._s=1,Ia(n,!1))}catch(e){Ma.call({_w:n,_d:!1},e)}}};ja||(Ca=function(e){ha(this,Ca,"Promise","_h"),da(e),oa.call(this);try{e(ca($a,this,1),ca(Ma,this,1))}catch(e){Ma.call(this,e)}},(oa=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v= void 0,this._h=0,this._n=!1}).prototype=function(e,t,n){for(var r in t)Ki(e,r,t[r],n);return e}(Ca.prototype,{then:function(e,t){var n=ka(ya(this,Ca));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=Oa?xa.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Ia(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),aa=function(){var e=new oa;this.promise=e,this.resolve=ca($a,e,1),this.reject=ca(Ma,e,1)},ga.f=ka=function(e){return e===Ca||e===sa?new aa(e):ia(e)}),fa(fa.G+fa.W+fa.F*!ja,{Promise:Ca}),po(Ca,"Promise"),function(e){var t=Zi[e];Yi&&t&&!t[ea]&&Qi.f(t,ea,{configurable:!0,get:function(){return this}})}("Promise"),sa=fn.Promise,fa(fa.S+fa.F*!ja,"Promise",{reject:function(e){var t=ka(this);return(0,t.reject)(e),t.promise}}),fa(fa.S+fa.F*!ja,"Promise",{resolve:function(e){return wa(this,e)}}),fa(fa.S+fa.F*!(ja&&function(e,t){if(!t&&!na)return!1;var n=!1;try{var r=[7],o=r[ta]();o.next=function(){return{done:n=!0}},r[ta]=function( ){return o},e(r)}catch(e){}return n}(function(e){Ca.all(e).catch(Sa)})),"Promise",{all:function(e){var t=this,n=ka(t),r=n.resolve,o=n.reject,i=ba(function(){var n=[],i=0,a=1;va(e,!1,function(e){var s=i++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=ka(t),r=n.reject,o=ba(function(){va(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}});var Ra=["off","error","warn","info","log","debug"],Da={},Fa=global.console,La=global.setTimeout,Wa=global.setTimeoutNative;a();var Ba=1,Va=function(e){this.instanceId=e,this.lastCallbackId=0,this.callbacks={}};Va.prototype.add=function(e){return this.lastCallbackId++,this.callbacks[this.lastCallbackId]=e,this.lastCallbackId},Va.prototype.remove=function(e){var t=this.callbacks[e];return delete this.callbacks[e],t},Va.prototype.consume=function(e,t,n){var r=this.callbacks[e];return void 0!==n&&!1!==n||delete t his.callbacks[e],"function"==typeof r?r(y(t)):new Error('invalid callback id "'+e+'"')},Va.prototype.close=function(){this.callbacks={}};var Ua={},za=function(){this.nodeId=f(),this.ref=this.nodeId,this.children=[],this.pureChildren=[],this.parentNode=null,this.nextSibling=null,this.previousSibling=null};za.prototype.destroy=function(){var e=_(this.docId);e&&(delete this.docId,delete e.nodeMap[this.nodeId]),this.children.forEach(function(e){e.destroy()})};var qa,Ja={},Ha=/\[\[((?:.|\n)+?)\]\]/g,Ga="div",Xa=["click","longpress","touchstart","touchmove","touchend","panstart","panmove","panend","horizontalpan","verticalpan","swipe"],Ka=function(e){function t(t,n,r){void 0===t&&(t=Ga),e.call(this);var o=T(t);if(o&&!r)return new o(t,n,!0);n=n||{},this.nodeType=1,this.nodeId=f(),this.ref=this.nodeId,this.type=t,this.attr=n.attr||{},this.style=n.style||{},this.classStyle=n.classStyle||{},this.event={},this.children=[],this.pureChildren=[]}return e&&(t.__proto__=e),t.prototype=Object.create (e&&e.prototype),t.prototype.constructor=t,t.prototype.appendChild=function(e){if(!e.parentNode||e.parentNode===this)if(e.parentNode){if(j(e,this.children,this.children.length,!0),1===e.nodeType){var t=j(e,this.pureChildren,this.pureChildren.length),n=b(this.docId);if(n&&t>=0)return n.send("dom",{action:"moveElement"},[e.ref,this.ref,t])}}else if(C(e,this),k(e,this.children,this.children.length,!0),this.docId&&$(this.docId,e),1===e.nodeType){k(e,this.pureChildren,this.pureChildren.length);var r=b(this.docId);if(r)return r.send("dom",{action:"addElement"},[this.ref,e.toJSON(),-1])}},t.prototype.insertBefore=function(e,t){if(!(e.parentNode&&e.parentNode!==this||e===t||e.nextSibling&&e.nextSibling===t))if(e.parentNode){if(j(e,this.children,this.children.indexOf(t),!0),1===e.nodeType){var n=O(t),r=j(e,this.pureChildren,n?this.pureChildren.indexOf(n):this.pureChildren.length),o=b(this.docId);if(o&&r>=0)return o.send("dom",{action:"moveElement"},[e.ref,this.ref,r])}}else if(C(e,this),k(e, this.children,this.children.indexOf(t),!0),this.docId&&$(this.docId,e),1===e.nodeType){var i=O(t),a=k(e,this.pureChildren,i?this.pureChildren.indexOf(i):this.pureChildren.length),s=b(this.docId);if(s)return s.send("dom",{action:"addElement"},[this.ref,e.toJSON(),a])}},t.prototype.insertAfter=function(e,t){if(!(e.parentNode&&e.parentNode!==this||e===t||e.previousSibling&&e.previousSibling===t))if(e.parentNode){if(j(e,this.children,this.children.indexOf(t)+1,!0),1===e.nodeType){var n=j(e,this.pureChildren,this.pureChildren.indexOf(S(t))+1),r=b(this.docId);if(r&&n>=0)return r.send("dom",{action:"moveElement"},[e.ref,this.ref,n])}}else if(C(e,this),k(e,this.children,this.children.indexOf(t)+1,!0),this.docId&&$(this.docId,e),1===e.nodeType){var o=k(e,this.pureChildren,this.pureChildren.indexOf(S(t))+1),i=b(this.docId);if(i)return i.send("dom",{action:"addElement"},[this.ref,e.toJSON(),o])}},t.prototype.removeChild=function(e,t){if(e.parentNode&&(A(e,this.children,!0),1===e.nodeType)){A(e ,this.pureChildren);var n=b(this.docId);n&&n.send("dom",{action:"removeElement"},[e.ref])}t||e.destroy()},t.prototype.clear=function(){var e=b(this.docId);e&&this.pureChildren.forEach(function(t){e.send("dom",{action:"removeElement"},[t.ref])}),this.children.forEach(function(e){e.destroy()}),this.children.length=0,this.pureChildren.length=0},t.prototype.setAttr=function(e,t,n){if(this.attr[e]!==t||!1===n){this.attr[e]=t;var r=b(this.docId);if(!n&&r){var o={};o[e]=M(t),r.send("dom",{action:"updateAttrs"},[this.ref,o])}}},t.prototype.setStyle=function(e,t,n){if(this.style[e]!==t||!1===n){this.style[e]=t;var r=b(this.docId);if(!n&&r){var o={};o[e]=t,r.send("dom",{action:"updateStyle"},[this.ref,o])}}},t.prototype.setClassStyle=function(e){var t=this;for(var n in this.classStyle)t.classStyle[n]="";Object.assign(this.classStyle,e);var r=b(this.docId);r&&r.send("dom",{action:"updateStyle"},[this.ref,this.toStyle()])},t.prototype.addEvent=function(e,t,n){if(this.event||(this.event={}),!thi s.event[e]){this.event[e]={handler:t,params:n};var r=b(this.docId);r&&r.send("dom",{action:"addEvent"},[this.ref,e])}},t.prototype.removeEvent=function(e){if(this.event&&this.event[e]){delete this.event[e];var t=b(this.docId);t&&t.send("dom",{action:"removeEvent"},[this.ref,e])}},t.prototype.fireEvent=function(e,t,n,r){var o=null,i=!1,a=this.event[e];if(a&&t){var s=a.handler;t.stopPropagation=function(){i=!0},o=r&&r.params?s.call.apply(s,[this].concat(r.params,[t])):s.call(this,t)}return!i&&n&&Xa.includes(e)&&this.parentNode&&this.parentNode.fireEvent&&(t.currentTarget=this.parentNode,this.parentNode.fireEvent(e,t,n)),o},t.prototype.toStyle=function(){return Object.assign({},this.classStyle,this.style)},t.prototype.toJSON=function(){var e=this,t={ref:this.ref.toString(),type:this.type,attr:M(this.attr),style:this.toStyle()},n=[];for(var r in this.event){var o=e.event[r].params;o?n.push({type:r,params:o}):n.push(r)}return n.length&&(t.event=n),this.pureChildren.length&&(t.children=th is.pureChildren.map(function(e){return e.toJSON()})),t},t.prototype.toString=function(){return"<"+this.type+" attr="+JSON.stringify(this.attr)+" style="+JSON.stringify(this.toStyle())+">"+this.pureChildren.map(function(e){return e.toString()}).join("")+"</"+this.type+">"},t}(za);!function(e){qa=e}(Ka);var Za=function(){},Qa=function(e,t){Object.defineProperty(this,"instanceId",{enumerable:!0,value:e}),Object.defineProperty(this,"callbackManager",{enumerable:!0,value:new Va(e)}),Za=t||function(){}};Qa.prototype.callback=function(e,t,n){return this.callbackManager.consume(e,t,n)},Qa.prototype.destroyCallback=function(){return this.callbackManager.close()},Qa.prototype.normalize=function(e){var t=p(e);return e&&e instanceof Ka?e.ref:e&&e._isVue&&e.$el instanceof Ka?e.$el.ref:"Function"===t?this.callbackManager.add(e).toString():v(e)},Qa.prototype.send=function(e,t,n,r){var o=this,i=t.action,a=t.component,s=t.ref,u=t.module,c=t.method;switch(n=n.map(function(e){return o.normalize(e)}),e ){case"dom":return this[i](this.instanceId,n);case"component":return this.componentHandler(this.instanceId,s,c,n,Object.assign({component:a},r));default:return this.moduleHandler(this.instanceId,u,c,n,r)}},Qa.prototype.callDOM=function(e,t){return this[e](this.instanceId,t)},Qa.prototype.callComponent=function(e,t,n,r){return this.componentHandler(this.instanceId,e,t,n,r)},Qa.prototype.callModule=function(e,t,n,r){return this.moduleHandler(this.instanceId,e,t,n,r)};var Ya,es,ts=[],ns=/^\s*\/\/ *(\{[^}]*\}) *\r?\n/,rs={},os={createInstance:function(e,t,n,r){if(rs[e])return new Error('invalid instance id "'+e+'"');var o=B(t);(n=JSON.parse(JSON.stringify(n||{}))).env=JSON.parse(JSON.stringify(global.WXEnvironment||{}));var i={config:n,created:Date.now(),framework:o};i.services=V(e,i,es),rs[e]=i;var a=Ya[o];return a?a.createInstance(e,t,n,r,i):new Error('invalid bundle type "'+o+'".')},registerService:D,unregisterService:F},is=function(e){function t(t){e.call(this),this.nodeType=8,this. nodeId=f(),this.ref=this.nodeId,this.type="comment",this.value=t,this.children=[],this.pureChildren=[]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return"\x3c!-- "+this.value+" --\x3e"},t}(za),as=function(e,t){this.id=e,this.batched=!1,this.updates=[],"function"==typeof t?Object.defineProperty(this,"handler",{configurable:!0,enumerable:!0,writable:!0,value:t}):console.error("[JS Runtime] invalid parameter, handler must be a function")};as.prototype.createFinish=function(e){return(0,this.handler)([G("createFinish")],e)},as.prototype.updateFinish=function(e){return(0,this.handler)([G("updateFinish")],e)},as.prototype.refreshFinish=function(e){return(0,this.handler)([G("refreshFinish")],e)},as.prototype.createBody=function(e){var t=e.toJSON(),n=t.children;delete t.children;var r=[G("createBody",[t])];return n&&r.push.apply(r,n.map(function(e){return G("addElement",[t.ref,e,-1])})),this.addActions(r)},as.p rototype.addElement=function(e,t,n){return n>=0||(n=-1),this.addActions(G("addElement",[t,e.toJSON(),n]))},as.prototype.removeElement=function(e){if(Array.isArray(e)){var t=e.map(function(e){return G("removeElement",[e])});return this.addActions(t)}return this.addActions(G("removeElement",[e]))},as.prototype.moveElement=function(e,t,n){return this.addActions(G("moveElement",[e,t,n]))},as.prototype.setAttr=function(e,t,n){var r={};return r[t]=n,this.addActions(G("updateAttrs",[e,r]))},as.prototype.setStyle=function(e,t,n){var r={};return r[t]=n,this.addActions(G("updateStyle",[e,r]))},as.prototype.setStyles=function(e,t){return this.addActions(G("updateStyle",[e,t]))},as.prototype.addEvent=function(e,t){return this.addActions(G("addEvent",[e,t]))},as.prototype.removeEvent=function(e,t){return this.addActions(G("removeEvent",[e,t]))},as.prototype.handler=function(e,t){return t&&t()},as.prototype.addActions=function(e){var t=this.updates,n=this.handler;if(Array.isArray(e)||(e=[e]),!thi s.batched)return n(e);t.push.apply(t,e)};var ss={createBody:"callCreateBody",addElement:"callAddElement",removeElement:"callRemoveElement",moveElement:"callMoveElement",updateAttrs:"callUpdateAttrs",updateStyle:"callUpdateStyle",addEvent:"callAddEvent",removeEvent:"callRemoveEvent"},us=function e(t,n,r){t=t?t.toString():"",this.id=t,this.URL=n,m(t,this),this.nodeMap={};var o=e.Listener||as;this.listener=new o(t,r||X(t,e.handler)),this.taskCenter=new Qa(t,r?function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return r.apply(void 0,t)}:e.handler),this.createDocumentElement()};us.prototype.getRef=function(e){return this.nodeMap[e]},us.prototype.open=function(){this.listener.batched=!1},us.prototype.close=function(){this.listener.batched=!0},us.prototype.createDocumentElement=function(){var e=this;if(!this.documentElement){var t=new Ka("document");t.docId=this.id,t.ownerDocument=this,t.role="documentElement",t.depth=0,t.ref="_documentElement",this.nodeMap._documentE lement=t,this.documentElement=t,Object.defineProperty(t,"appendChild",{configurable:!0,enumerable:!0,writable:!0,value:function(t){w(e,t)}}),Object.defineProperty(t,"insertBefore",{configurable:!0,enumerable:!0,writable:!0,value:function(t,n){w(e,t,n)}})}return this.documentElement},us.prototype.createBody=function(e,t){return this.body||x(this,new Ka(e,t)),this.body},us.prototype.createElement=function(e,t){return new Ka(e,t)},us.prototype.createComment=function(e){return new is(e)},us.prototype.fireEvent=function(e,t,n,r,o){if(e){(n=n||{}).type=t,n.target=e,n.currentTarget=e,n.timestamp=Date.now(),r&&Q(e,r);var i="true"===this.getRef("_root").attr.bubble;return e.fireEvent(t,n,i,o)}},us.prototype.destroy=function(){this.taskCenter.destroyCallback(),delete this.listener,delete this.nodeMap,delete this.taskCenter,g(this.id)},us.handler=null;var cs={Document:us,Element:Ka,Comment:is,Listener:as,TaskCenter:Qa,sendTasks:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t]; return"function"==typeof callNative?callNative.apply(void 0,e):(global.callNative||function(){}).apply(void 0,e)}};us.handler=cs.sendTasks;var ls={setNativeConsole:function(){if(r(),global.WXEnvironment&&"Web"!==global.WXEnvironment.platform)global.console={debug:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("debug")&&global.nativeLog.apply(global,i(e).concat(["__DEBUG"]))},log:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("log")&&global.nativeLog.apply(global,i(e).concat(["__LOG"]))},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("info")&&global.nativeLog.apply(global,i(e).concat(["__INFO"]))},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("warn")&&global.nativeLog.apply(global,i(e).concat(["__WARN"]))},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("error")&&global.nativeLog.apply(global,i(e).concat(["__ERROR"]))}};else{var e=console.debug,t=console.log,n=cons ole.info,a=console.warn,s=console.error;console.__ori__={debug:e,log:t,info:n,warn:a,error:s},console.debug=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("debug")&&console.__ori__.debug.apply(console,e)},console.log=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("log")&&console.__ori__.log.apply(console,e)},console.info=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("info")&&console.__ori__.info.apply(console,e)},console.warn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("warn")&&console.__ori__.warn.apply(console,e)},console.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("error")&&console.__ori__.error.apply(console,e)}}},resetNativeConsole:function(){Da={},global.console=Fa},setNativeTimer:a,resetNativeTimer:function(){global.setTimeout=La,global.setTimeoutCallback=null},service:{register:D,unregister:F,has:L},freezePrototype:function(){s(),Object.freeze(cs.Comment),Obj ect.freeze(cs.Listener),Object.freeze(cs.Document.prototype),Object.freeze(cs.Comment.prototype),Object.freeze(cs.Listener.prototype)},init:function(e){Ya=(es=e||{}).frameworks||{},R();for(var t in Ya)Ya[t].init(e);return["registerComponents","registerModules","registerMethods"].forEach(z),["destroyInstance","refreshInstance","receiveTasks","getRoot"].forEach(J),H("receiveTasks","callJS"),os},config:cs},fs={},ps={};ee.prototype.postMessage=function(e){var t=this;if(this._closed)throw new Error('BroadcastChannel "'+this.name+'" is closed.');var n=fs[this.name];if(n&&n.length)for(var r=0;r<n.length;++r){var o=n[r];o._closed||o===t||"function"==typeof o.onmessage&&o.onmessage(new Y("message",{data:e}))}},ee.prototype.close=function(){var e=this;if(!this._closed&&(this._closed=!0,fs[this.name])){var t=fs[this.name].filter(function(t){return t!==e});t.length?fs[this.name]=t:delete fs[this.name]}};var ds,hs={BroadcastChannel:{create:function(e,t,n){if(ps[e]=[],"function"==typeof global.Br oadcastChannel)return{};var r={BroadcastChannel:function(t){Object.defineProperty(this,"name",{configurable:!1,enumerable:!0,writable:!1,value:String(t)}),this._closed=!1,this.onmessage=null,fs[this.name]||(fs[this.name]=[]),fs[this.name].push(this),ps[e].push(this)}};return r.BroadcastChannel.prototype=ee.prototype,{instance:r}},destroy:function(e,t){ps[e].forEach(function(e){return e.close()}),delete ps[e]}}},vs={},ys={},ms=Object.freeze({init:function(e){vs.Document=e.Document,vs.Element=e.Element,vs.Comment=e.Comment,vs.sendTasks=e.sendTasks},createInstance:function(e,t,n,r,o){void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={});var i=new vs.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)},ys[e]=s;var c=Object.assign({Document:vs.Document,Element:vs.Element,Comment:vs.Comment,sendTasks:function(t){return vs.sendTasks(e,t,-1)},options:n ,document:i},o),l=[],f=[];for(var p in c)l.push(p),f.push(c[p]);return l.push(t),(new(Function.prototype.bind.apply(Function,[null].concat(l)))).apply(void 0,f),vs.sendTasks(e,[{module:"dom",method:"createFinish",args:[]}],-1),s},destroyInstance:function(e){delete ys[e]},getRoot:function(e){return ys[e].document.body.toJSON()},receiveTasks:function(e,t){var n={fireEvent:function(e,t,n,r,o){var i=ys[e].document,a=i.getRef(t);return i.fireEvent(a,n,r,o)},callback:function(e,t,n,r){return ys[e].document.handleCallback(t,n,r)}};if((ys[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}}}),_s=t(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){retu rn null!==e&&"object"==typeof e}function u(e){return"[object Object]"===dn.call(e)}function c(e){return"[object RegExp]"===dn.call(e)}function l(e){var t=parseFloat(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 p(e){var t=parseFloat(e);return isNaN(t)?e:t}function d(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 vn.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 E(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 E(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 E(e[n],t[n])})}catch(e){return!1}}function x(e,t){for(var n=0;n<e.length;n++)if(E(e[n],t))return n;return-1}function C(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function O(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function S(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function k(e){if(!jn.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,t,n){if(Sn.errorHandler)Sn.errorHandler.call(null,e,t,n);else{if(!Tn||"undefined"==typeof consol e)throw e;console.error(e)}}function A(e){return"function"==typeof e&&/native code/.test(e.toString())}function I(e){qn.target&&Jn.push(qn.target),qn.target=e}function T(){qn.target=Jn.pop()}function N(e,t,n){e.__proto__=t}function P(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];S(e,i,t[i])}}function M(e,t){if(s(e)){var n;return v(e,"__ob__")&&e.__ob__ instanceof Zn?n=e.__ob__:Kn.shouldConvert&&!Wn()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Zn(e)),t&&n&&n.vmCount++,n}}function $(e,t,n,r,o){var i=new qn,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set,c=!o&&M(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return qn.target&&(i.depend(),c&&c.dep.depend(),Array.isArray(t)&&F(t)),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||(u?u.call(e,t):n=t,c=!o&&M(t),i.notify())}})}}function R(e,t,n){if(Array.isArray(e)&&l(t))return e.length=Math.max(e.length,t),e. splice(t,1,n),n;if(v(e,t))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?($(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function D(e,t){if(Array.isArray(e)&&l(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||v(e,t)&&(delete e[t],n&&n.dep.notify())}}function F(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&F(t)}function L(e,t){if(!t)return e;for(var n,r,o,i=Object.keys(t),a=0;a<i.length;a++)r=e[n=i[a]],o=t[n],v(e,n)?u(r)&&u(o)&&L(r,o):R(e,n,o);return e}function W(e,t,n){return n?e||t?function(){var r="function"==typeof t?t.call(n):t,o="function"==typeof e?e.call(n):e;return r?L(r,o):o}:void 0:t?e?function(){return L("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 V(e,t){var n=Object.create(e||null);return t?g(n,t):n}function U(e){var t=e.props;if(t){var n,r,o={};if(Array.isArray(t))for(n=t.length;n-- ;)"string"==typeof(r=t[n])&&(o[mn(r)]={type:null});else if(u(t))for(var i in t)r=t[i],o[mn(i)]=u(r)?r:{type:r};e.props=o}}function z(e){var t=e.inject;if(Array.isArray(t))for(var n=e.inject={},r=0;r<t.length;r++)n[t[r]]=t[r]}function q(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 J(e,t,n){function r(r){var o=Qn[r]||Yn;u[r]=o(e[r],t[r],n,r)}"function"==typeof t&&(t=t.options),U(t),z(t),q(t);var o=t.extends;if(o&&(e=J(e,o,n)),t.mixins)for(var i=0,a=t.mixins.length;i<a;i++)e=J(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 H(e,t,n,r){if("string"==typeof n){var o=e[t];if(v(o,n))return o[n];var i=mn(n);if(v(o,i))return o[i];var a=_n(i);if(v(o,a))return o[a];var s=o[n]||o[i]||o[a];return s}}function G(e,t,n,r){var o=t[e],i=!v(n,e),a=n[e];if(Z(Boolean,o.type)&&(i&&!v(o,"default")?a=!1:Z(String,o.type)||""!==a&&a!==bn(e)||(a=!0)),void 0===a){a=X(r,o,e);var s=Kn.shouldConvert;Kn.shouldCon vert=!0,M(a),Kn.shouldConvert=s}return a}function X(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"!==K(t.type)?r.call(e):r}}function K(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Z(e,t){if(!Array.isArray(t))return K(t)===K(e);for(var n=0,r=t.length;n<r;n++)if(K(t[n])===K(e))return!0;return!1}function Q(e){return new er(void 0,void 0,void 0,String(e))}function Y(e,t){var n=new er(e.tag,e.data,e.children,e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return n.ns=e.ns,n.isStatic=e.isStatic,n.key=e.key,n.isComment=e.isComment,n.isCloned=!0,t&&e.children&&(n.children=ee(e.children)),n}function ee(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++)r[o]=Y(e[o],t);return r}function te(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].ap ply(null,e)}return t.fns=e,t}function ne(e,t,r,o,i){var a,s,c,l,f;for(a in e)s=c=e[a],l=t[a],f=or(a),u(s)&&(c=s.handler,f.params=s.params),n(c)||(n(l)?(n(c.fns)&&(c=e[a]=te(c)),r(f.name,c,f.once,f.capture,f.passive,f.params)):c!==l&&(l.fns=c,e[a]=l));for(a in t)n(e[a])&&o((f=or(a)).name,t[a],f.capture)}function re(e,t,i){function a(){i.apply(this,arguments),h(s.fns,a)}var s,u=e[t];n(u)?s=te([a]):r(u.fns)&&o(u.merged)?(s=u).fns.push(a):s=te([u,a]),s.merged=!0,e[t]=s}function oe(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=bn(c);ie(a,u,c,l,!0)||ie(a,s,c,l,!1)}return a}}function ie(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 ae(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function se(e){return a(e)?[Q(e)]:Array.isArray(e)?ce(e):void 0}function ue(e){return r(e)&&r(e.text)&&i(e.isComment) }function ce(e,t){var i,s,u,c=[];for(i=0;i<e.length;i++)n(s=e[i])||"boolean"==typeof s||(u=c[c.length-1],Array.isArray(s)?c.push.apply(c,ce(s,(t||"")+"_"+i)):a(s)?ue(u)?u.text+=String(s):""!==s&&c.push(Q(s)):ue(s)&&ue(u)?c[c.length-1]=Q(u.text+s.text):(o(e._isVList)&&r(s.tag)&&n(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+i+"__"),c.push(s)));return c}function le(e,t){return e.__esModule&&e.default&&(e=e.default),s(e)?t.extend(e):e}function fe(e,t,n,r,o){var i=rr();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function pe(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=C(function(n){e.resolved=le(n,t),u||c()}),f=C(function(t){r(e.errorComp)&&(e.error=!0,c())}),p=e(l,f);return s(p)&&("function"==typeof p.then?n(e.resolved)&&p.then(l,f):r(p.component)&&"funct ion"==typeof p.component.then&&(p.component.then(l,f),r(p.error)&&(e.errorComp=le(p.error,t)),r(p.loading)&&(e.loadingComp=le(p.loading,t),0===p.delay?e.loading=!0:setTimeout(function(){n(e.resolved)&&n(e.error)&&(e.loading=!0,c())},p.delay||200)),r(p.timeout)&&setTimeout(function(){n(e.resolved)&&f(null)},p.timeout))),u=!1,e.loading?e.loadingComp:e.resolved}e.contexts.push(i)}function de(e){return e.isComment&&e.asyncFactory}function he(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||de(n)))return n}}function ve(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&_e(e,t)}function ye(e,t,n){n?nr.$once(e,t):nr.$on(e,t)}function me(e,t){nr.$off(e,t)}function _e(e,t,n){nr=e,ne(t,n||{},ye,me,e)}function ge(e,t){var n={};if(!e)return n;for(var r=[],o=0,i=e.length;o<i;o++){var a=e[o];if(a.context!==t&&a.functionalContext!==t||!a.data||null==a.data.slot)r.push(a);else{var s=a.data.slot,u=n[s]||(n[s]=[]);"te mplate"===a.tag?u.push.apply(u,a.children):u.push(a)}}return r.every(be)||(n.default=r),n}function be(e){return e.isComment||" "===e.text}function we(e,t){t=t||{};for(var n=0;n<e.length;n++)Array.isArray(e[n])?we(e[n],t):t[e[n].key]=e[n].fn;return t}function Ee(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 xe(e,t,n){e.$el=t,e.$options.render||(e.$options.render=rr),je(e,"beforeMount");var r;return r=function(){e._update(e._render(),n)},e._watcher=new dr(e,r,w),n=!1,null==e.$vnode&&(e._isMounted=!0,je(e,"mounted")),e}function Ce(e,t,n,r,o){var i=!!(o||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==kn);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,e.$attrs=r.data&&r.da ta.attrs||kn,e.$listeners=n||kn,t&&e.$options.props){Kn.shouldConvert=!1;for(var a=e._props,s=e.$options._propKeys||[],u=0;u<s.length;u++){var c=s[u];a[c]=G(c,e.$options.props,t,e)}Kn.shouldConvert=!0,e.$options.propsData=t}if(n){var l=e.$options._parentListeners;e.$options._parentListeners=n,_e(e,n,l)}i&&(e.$slots=ge(o,r.context),e.$forceUpdate())}function Oe(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Se(e,t){if(t){if(e._directInactive=!1,Oe(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++)Se(e.$children[n]);je(e,"activated")}}function ke(e,t){if(!(t&&(e._directInactive=!0,Oe(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)ke(e.$children[n]);je(e,"deactivated")}}function je(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){j(n,e,t+" hook")}e._hasHookEvent&&e.$emit("hook:"+t)}function Ae(){fr=ar.length=sr.length=0,ur={ },cr=lr=!1}function Ie(){lr=!0;var e,t;for(ar.sort(function(e,t){return e.id-t.id}),fr=0;fr<ar.length;fr++)t=(e=ar[fr]).id,ur[t]=null,e.run();var n=sr.slice(),r=ar.slice();Ae(),Pe(n),Te(r),Bn&&Sn.devtools&&Bn.emit("flush")}function Te(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&je(r,"updated")}}function Ne(e){e._inactive=!1,sr.push(e)}function Pe(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Se(e[t],!0)}function Me(e){var t=e.id;if(null==ur[t]){if(ur[t]=!0,lr){for(var n=ar.length-1;n>fr&&ar[n].id>e.id;)n--;ar.splice(n+1,0,e)}else ar.push(e);cr||(cr=!0,Un(Ie))}}function $e(e){hr.clear(),Re(e,hr)}function Re(e,t){var n,r,o=Array.isArray(e);if((o||s(e))&&Object.isExtensible(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--;)Re(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)Re(e[r[n]],t)}}function De(e,t,n){vr.get=function(){return this[t][n]},vr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,vr)}func tion Fe(e){e._watchers=[];var t=e.$options;t.props&&Le(e,t.props),t.methods&&qe(e,t.methods),t.data?We(e):M(e._data={},!0),t.computed&&Ve(e,t.computed),t.watch&&t.watch!==$n&&Je(e,t.watch)}function Le(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;Kn.shouldConvert=i;for(var a in t)!function(i){o.push(i);var a=G(i,t,n,e);$(r,i,a),i in e||De(e,"_props",i)}(a);Kn.shouldConvert=!0}function We(e){var t=e.$options.data;u(t=e._data="function"==typeof t?Be(t,e):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)||O(i)||De(e,"_data",i)}M(t,!0)}function Be(e,t){try{return e.call(t)}catch(e){return j(e,t,"data()"),{}}}function Ve(e,t){var n=e._computedWatchers=Object.create(null),r=Wn();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;r||(n[o]=new dr(e,a||w,w,yr)),o in e||Ue(e,o,i)}}function Ue(e,t,n){var r=!Wn();"function"==typeof n?(vr.get=r?ze(t):n,vr.set=w):(vr.get=n.get?r&& !1!==n.cache?ze(t):n.get:w,vr.set=n.set?n.set:w),Object.defineProperty(e,t,vr)}function ze(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),qn.target&&t.depend(),t.value}}function qe(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?w:m(t[n],e)}function Je(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)He(e,n,r[o]);else He(e,n,r)}}function He(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Ge(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function Xe(e){var t=Ke(e.$options.inject,e);t&&(Kn.shouldConvert=!1,Object.keys(t).forEach(function(n){$(e,n,t[n])}),Kn.shouldConvert=!0)}function Ke(e,t){if(e){for(var n=Object.create(null),r=Vn?Reflect.ownKeys(e):Object.keys(e),o=0;o<r.length;o++)for(var i=r[o],a=e[i],s=t;s;){if(s._provided&&a in s._provided){n[i]=s._provided[a];break}s=s.$parent}return n}}function Ze(e,t,n, o,i){var a={},s=e.options.props;if(r(s))for(var u in s)a[u]=G(u,s,t||kn);else r(n.attrs)&&Qe(a,n.attrs),r(n.props)&&Qe(a,n.props);var c=Object.create(o),l=e.options.render.call(null,function(e,t,n,r){return ot(c,e,t,n,r,!0)},{data:n,props:a,children:i,parent:o,listeners:n.on||kn,injections:Ke(e.options.inject,o),slots:function(){return ge(i,o)}});return l instanceof er&&(l.functionalContext=o,l.functionalOptions=e.options,n.slot&&((l.data||(l.data={})).slot=n.slot)),l}function Qe(e,t){for(var n in t)e[mn(n)]=t[n]}function Ye(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=pe(l,c,i))))return fe(l,t,i,a,u);t=t||{},gt(e),r(t.model)&&rt(e.options,t);var f=oe(t,e,u);if(o(e.options.functional))return Ze(e,f,t,i,a);var p=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var d=t.slot;t={},d&&(t.slot=d)}tt(t);var h=e.options.name||u;return new er("vue-component-"+e.cid+(h?"-"+h:""),t,void 0,void 0,void 0,i,{Ctor:e,pr opsData:f,listeners:p,tag:u,children:a},l)}}}function et(e,t,n,o){var i=e.componentOptions,a={_isComponent:!0,parent:t,propsData:i.propsData,_componentTag:i.tag,_parentVnode:e,_parentListeners:i.listeners,_renderChildren:i.children,_parentElm:n||null,_refElm:o||null},s=e.data.inlineTemplate;return r(s)&&(a.render=s.render,a.staticRenderFns=s.staticRenderFns),new i.Ctor(a)}function tt(e){e.hook||(e.hook={});for(var t=0;t<_r.length;t++){var n=_r[t],r=e.hook[n],o=mr[n];e.hook[n]=r?nt(o,r):o}}function nt(e,t){return function(n,r,o,i){e(n,r,o,i),t(n,r,o,i)}}function rt(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 ot(e,t,n,r,i,s){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),o(s)&&(i=br),it(e,t,n,r,i)}function it(e,t,n,o,i){if(r(n)&&r(n.__ob__))return rr();if(r(n)&&r(n.is)&&(t=n.is),!t)return rr();Array.isArray(o)&&" function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0),i===br?o=se(o):i===gr&&(o=ae(o));var a,s;if("string"==typeof t){var u;s=e.$vnode&&e.$vnode.ns||Sn.getTagNamespace(t),a=Sn.isReservedTag(t)?new er(Sn.parsePlatformTagName(t),n,o,void 0,void 0,e):r(u=H(e.$options,"components",t))?Ye(u,n,e,o,t):new er(t,n,o,void 0,void 0,e)}else a=Ye(t,n,e,o);return r(a)?(s&&at(a,s),a):rr()}function at(e,t){if(e.ns=t,"foreignObject"!==e.tag&&r(e.children))for(var o=0,i=e.children.length;o<i;o++){var a=e.children[o];r(a.tag)&&n(a.ns)&&at(a,t)}}function st(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 ut(e,t,n,r){var o=this.$scopedSlots[e];if(o)return n=n||{},r&&(n=g(g({},r),n)),o(n)||t;var i=th is.$slots[e];return i||t}function ct(e){return H(this.$options,"filters",e,!0)||En}function lt(e,t,n){var r=Sn.keyCodes[t]||n;return Array.isArray(r)?-1===r.indexOf(e):r!==e}function ft(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||hn(a))i=e;else{var s=e.attrs&&e.attrs.type;i=r||Sn.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}a in i||(i[a]=n[a],o&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))}(a)}else;return e}function pt(e,t){var n=this._staticTrees[e];return n&&!t?Array.isArray(n)?ee(n):Y(n):(n=this._staticTrees[e]=this.$options.staticRenderFns[e].call(this._renderProxy),ht(n,"__static__"+e,!1),n)}function dt(e,t,n){return ht(e,"__once__"+t+(n?"_"+n:""),!0),e}function ht(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&vt(e[r],t+"_"+r,n);else vt(e,t,n)}function vt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function yt(e,t){if(t)if(u(t)){var n=e.on=e.o n?g({},e.on):{};for(var r in t){var o=n[r],i=t[r];n[r]=o?[].concat(i,o):i}}else;return e}function mt(e){e._vnode=null,e._staticTrees=null;var t=e.$vnode=e.$options._parentVnode,n=t&&t.context;e.$slots=ge(e.$options._renderChildren,n),e.$scopedSlots=kn,e._c=function(t,n,r,o){return ot(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return ot(e,t,n,r,o,!0)};var r=t&&t.data;$(e,"$attrs",r&&r.attrs||kn,null,!0),$(e,"$listeners",e.$options._parentListeners||kn,null,!0)}function _t(e,t){var n=e.$options=Object.create(e.constructor.options);n.parent=t.parent,n.propsData=t.propsData,n._parentVnode=t._parentVnode,n._parentListeners=t._parentListeners,n._renderChildren=t._renderChildren,n._componentTag=t._componentTag,n._parentElm=t._parentElm,n._refElm=t._refElm,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function gt(e){var t=e.options;if(e.super){var n=gt(e.super);if(n!==e.superOptions){e.superOptions=n;var r=bt(e);r&&g(e.extendOptions,r),(t=e.options=J(n,e.extendOpt ions)).name&&(t.components[t.name]=e)}}return t}function bt(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]=wt(n[i],r[i],o[i]));return t}function wt(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 Et(e){this._init(e)}function xt(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=_(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function Ct(e){e.mixin=function(e){return this.options=J(this.options,e),this}}function Ot(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.pr ototype.constructor=a,a.cid=t++,a.options=J(n.options,e),a.super=n,a.options.props&&St(a),a.options.computed&&kt(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Cn.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 St(e){var t=e.options.props;for(var n in t)De(e.prototype,"_props",n)}function kt(e){var t=e.options.computed;for(var n in t)Ue(e.prototype,n,t[n])}function jt(e){Cn.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 At(e){return e&&(e.Ctor.options.name||e.tag)}function It(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!c(e)&&e.test(t)}function Tt(e,t,n){for(var r in e){var o=e[r];if(o){var i=At(o.componentOptions);i&&!n(i)&&(o!==t &&Nt(o),e[r]=null)}}}function Nt(e){e&&e.componentInstance.$destroy()}function Pt(e){return new t.Element(e)}function Mt(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 $t(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Rt(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&n(t.asyncFactory.error))}function Rt(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||jr(o)&&jr(i)}function Dt(e,t,n){var o,i,a={};for(o=t;o<=n;++o)r(i=e[o].key)&&(a[i]=o);return a}function Ft(e,t){(e.data.directives||t.data.directives)&&Lt(e,t)}function Lt(e,t){var n,r,o,i=e===Ar,a=t===Ar,s=Wt(e.data.directives,e.context),u=Wt(t.data.directives,t.context),c=[],l=[];for(n in u)r=s[n],o=u[n],r?(o.oldVa lue=r.value,Vt(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(Vt(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++)Vt(c[n],"inserted",t,e)};i?re(t.data.hook||(t.data.hook={}),"insert",f):f()}if(l.length&&re(t.data.hook||(t.data.hook={}),"postpatch",function(){for(var n=0;n<l.length;n++)Vt(l[n],"componentUpdated",t,e)}),!i)for(n in s)u[n]||Vt(s[n],"unbind",e,e,a)}function Wt(e,t){var n=Object.create(null);if(!e)return n;var r,o;for(r=0;r<e.length;r++)(o=e[r]).modifiers||(o.modifiers=Nr),n[Bt(o)]=o,o.def=H(t.$options,"directives",o.name,!0);return n}function Bt(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Vt(e,t,n,r,o){var i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,o)}catch(r){j(r,n.context,"directive "+e.name+" "+t+" hook")}}function Ut(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));for(n in a)r=a[n],i[n]!==r &&o.setAttr(n,r);for(n in i)null==a[n]&&o.setAttr(n)}}function zt(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=qt(a,u,r);for
<TRUNCATED>