12 |
- //{"version":"3.0.5"}
- var __UniServiceStartTime__=Date.now(),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";var subversion={framework:"0.29.6",transformer:">=0.1.5 <0.5"};function getHookKey(e,t,n){return t+"@"+n+"#"+e}var CallbackManager=function(e){this.instanceId=String(e),this.lastCallbackId=0,this.callbacks={},this.hooks={}};CallbackManager.prototype.add=function(e){return this.lastCallbackId++,this.callbacks[this.lastCallbackId]=e,this.lastCallbackId},CallbackManager.prototype.remove=function(e){var t=this.callbacks[e];return delete this.callbacks[e],t},CallbackManager.prototype.registerHook=function(e,t,n,r){var i=getHookKey(e,t,n);this.hooks[i]&&console.warn('[JS Framework] Override an existing component hook "'+i+'".'),this.hooks[i]=r},CallbackManager.prototype.triggerHook=function(e,t,n,r){var i=getHookKey(e,t,n),o=this.hooks[i];if("function"!=typeof o)return console.error("[JS Framework] Invalid hook function type ("+typeof o+') on "'+i+'".'),null;var a=null;try{a=o.apply(null,r||[])}catch(e){throw console.error('[JS Framework] Failed to execute the hook function on "'+i+'".'),e}return a},CallbackManager.prototype.consume=function(e,t,n){var r=this.callbacks[e];if(void 0!==n&&!1!==n||delete this.callbacks[e],"function"==typeof r)try{return r.call(null,t,n)}catch(e){throw console.error("[JS Framework] Failed to execute the callback function:\n "+e.toString()),e}return new Error('invalid callback id "'+e+'"')},CallbackManager.prototype.close=function(){this.callbacks={},this.hooks={}};var nextNodeRef=1;function uniqueId(){return(nextNodeRef++).toString()}function typof(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function isPlainObject(e){return"[object Object]"===Object.prototype.toString.call(e)}function hasOwn(e,t){return isPlainObject(e)&&Object.prototype.hasOwnProperty.call(e,t)}function bufferToBase64(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 isEmpty(e){if(!e||"object"!=typeof e)return!0;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var LEVELS=["off","error","warn","info","log","debug"],levelMap={};function generateLevelMap(){LEVELS.forEach(function(t){var n=LEVELS.indexOf(t);levelMap[t]={},LEVELS.forEach(function(e){LEVELS.indexOf(e)<=n&&(levelMap[t][e]=!0)})})}function checkLevel(e){var t=global.WXEnvironment&&global.WXEnvironment.logLevel||"log";return levelMap[t]&&levelMap[t][e]}function debugLog(e){global.nativeLog("wxInteractionAnalyzer: [jsfm]"+e,"__DEBUG")}var docMap={};function addDoc(e,t){e&&(docMap[e]=t)}function getDoc(e){return docMap[e]}function removeDoc(e){delete docMap[e]}function getTaskCenter(e){var t=docMap[e];return t&&t.taskCenter?t.taskCenter:null}function appendBody(e,t,n){var r=e.documentElement;if(!(0<r.pureChildren.length||t.parentNode)){var i=r.children,o=i.indexOf(n);o<0?i.push(t):i.splice(o,0,t),1===t.nodeType?("body"===t.role?(t.docId=e.id,t.ownerDocument=e,t.parentNode=r,linkParent(t,r)):(t.children.forEach(function(e){e.parentNode=t}),setBody(e,t),t.docId=e.id,t.ownerDocument=e,linkParent(t,r),delete e.nodeMap[t.nodeId]),r.pureChildren.push(t),sendBody(e,t)):(t.parentNode=r,e.nodeMap[t.ref]=t)}}function sendBody(e,t){var n=t.toJSON();e&&e.taskCenter&&"function"==typeof e.taskCenter.send&&e.taskCenter.send("dom",{action:"createBody"},[n])}function setBody(e,t){t.role="body",t.depth=1,delete e.nodeMap[t.nodeId],t.ref="_root",e.nodeMap._root=t,e.body=t}function linkParent(t,e){(t.parentNode=e).docId&&(t.docId=e.docId,t.ownerDocument=e.ownerDocument,(t.ownerDocument.nodeMap[t.nodeId]=t).depth=e.depth+1),t.children.forEach(function(e){linkParent(e,t)})}function nextElement(e){for(;e;){if(1===e.nodeType)return e;e=e.nextSibling}}function previousElement(e){for(;e;){if(1===e.nodeType)return e;e=e.previousSibling}}function insertIndex(e,t,n,r){n<0&&(n=0);var i=t[n-1],o=t[n];return t.splice(n,0,e),r&&(i&&(i.nextSibling=e),e.previousSibling=i,(e.nextSibling=o)&&(o.previousSibling=e)),n}function moveIndex(e,t,n,r){var i=t.indexOf(e);if(i<0)return-1;if(r){var o=t[i-1],a=t[i+1];o&&(o.nextSibling=a),a&&(a.previousSibling=o)}t.splice(i,1);var s=n;i<=n&&(s=n-1);var c=t[s-1],u=t[s];return t.splice(s,0,e),r&&(c&&(c.nextSibling=e),e.previousSibling=c,(e.nextSibling=u)&&(u.previousSibling=e)),i===s?-1:n}function removeIndex(e,t,n){var r=t.indexOf(e);if(!(r<0)){if(n){var i=t[r-1],o=t[r+1];i&&(i.nextSibling=o),o&&(o.previousSibling=i)}t.splice(r,1)}}var Node=function(){this.nodeId=uniqueId(),this.ref=this.nodeId,this.children=[],this.pureChildren=[],this.parentNode=null,this.nextSibling=null,this.previousSibling=null},Element$2;function setElement(e){Element$2=e}Node.prototype.destroy=function(){var e=getDoc(this.docId);e&&(delete this.docId,delete e.nodeMap[this.nodeId]),this.children.forEach(function(e){e.destroy()})};var registeredElements={};function registerElement(i,e){if(Array.isArray(e)&&e.length){var t=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(Element$2);e.forEach(function(r){t.prototype[r]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=getTaskCenter(this.docId);if(n)return n.send("component",{ref:this.ref,component:i,method:r},e)}}),registeredElements[i]=t}}function getWeexElement(e){return registeredElements[e]}function cached(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var parseStyleText=cached(function(e){var n={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(r);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n}),firstLetterToLowerCase=cached(function(e){return e.charAt(0).toLowerCase()+e.slice(1)});function isDef(e){return void 0!==e}function isFn(e){return"function"==typeof e}var processors={slider:{change:function(e){return{index:e.index}},scroll:function(e){return{offsetXRatio:e.offsetXRatio,offsetYRatio:e.offsetYRatio,drag:e.drag}}},"scroll-view":{scrollend:function(e){return{contentOffset:e.contentOffset}}}};function processTarget(e){var t=e.attr,n=e.offsetLeft,r=e.offsetTop,i={};return Object.keys(t||{}).forEach(function(e){0===e.indexOf("data")&&(i[firstLetterToLowerCase(e.replace("data",""))]=t[e])}),{id:t&&t.id||"",dataset:i,offsetLeft:n||0,offsetTop:r||0}}function processCustomEvent(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),n=processTarget(n),{type:e,timeStamp:Date.now(),target:n,currentTarget:n,detail:t}}var WEEX_TAGS=["a","div","list","cell","loading","refresh","recycle-list","scroller","indicator","waterfall","web","richtext"],IGNORE_EVENTS=["viewappear","viewdisappear"],EVENT_EXTRAS={markertap:["markerId"],controltap:["controlId"],regionchange:["causedBy"],end:["causedBy"],appear:["direction"],disappear:["direction"]};function processEvent(t,e){var n=t.type;if(-1!==IGNORE_EVENTS.indexOf(n))return t;var r=t.currentTarget,i=r.type.replace("u-","");if(-1!==WEEX_TAGS.indexOf(i))return t;var o=t.timestamp,a=t.target;if(!isDef(e)){var s=processors[i];e=s&&isFn(s[n])?s[n](t):t.detail||{}}var c={type:n,timeStamp:o,target:processTarget(a),currentTarget:processTarget(r),detail:e,touches:"touchend"===n||"panend"===n?[]:t.changedTouches,changedTouches:t.changedTouches};t.componentId&&(c.componentId=t.componentId);var u=EVENT_EXTRAS[n];return u&&u.forEach(function(e){t.hasOwnProperty(e)&&(c[e]=t[e])}),c}var EPS=1e-4,BASE_DEVICE_WIDTH=750,deviceDPR=1,deviceWidth=0;function upx2px(e,t){if(0===deviceWidth&&(deviceDPR=global.WXEnvironment.scale,deviceWidth=Math.ceil(global.WXEnvironment.deviceWidth/deviceDPR)),0===(e=Number(e)))return 0;var n=e/BASE_DEVICE_WIDTH*(t||deviceWidth);return n<0&&(n=-n),0===(n=Math.floor(n+EPS))?1===deviceDPR?1:.5:e<0?-n:n}var UNIT_RE=/([+-]?\d+(\.\d+)?)[r|u]px/g;function normalizeUnit(n){return"Object"===typof(n)&&Object.keys(n).forEach(function(e){var t=n[e];"string"==typeof t&&(n[e]=t.replace(UNIT_RE,function(e,t){return upx2px(t)}))}),n}function deepClone(e,i){return e.map(function e(t){var n=t.children&&t.children.map(e),r=i(t.tag,t.data,n);return r.text=t.text,r.isComment=t.isComment,r.componentOptions=t.componentOptions,r.elm=t.elm,r.context=t.context,r.ns=t.ns,r.isStatic=t.isStatic,r.key=t.key,r})}var DEFAULT_TAG_NAME="div",BUBBLE_EVENTS=["click","longpress","touchstart","touchmove","touchend","panstart","panmove","panend","horizontalpan","verticalpan","swipe"];function registerNode(e,t){getDoc(e).nodeMap[t.nodeId]=t}var Element=function(i){function e(e,t,n){void 0===e&&(e=DEFAULT_TAG_NAME),i.call(this);var r=getWeexElement(e);if(r&&!n)return new r(e,t,!0);t=t||{},this.nodeType=1,this.nodeId=uniqueId(),this.ref=this.nodeId,this.type=e,this.attr=t.attr||{},this.style=t.style||{},this.classStyle=t.classStyle||{},this.event={},this.children=[],this.pureChildren=[],this.classList=t.classList||[]}return i&&(e.__proto__=i),((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.appendChild=function(e){if(!e.parentNode||e.parentNode===this)if(e.parentNode){if(checkLevel("debug")&&debugLog("[appendChild]("+this.docId+","+e.type+","+e.ref+") Move <"+e.type+"> to "+this.children.length+" of <"+this.type+"> ("+this.ref+")."),moveIndex(e,this.children,this.children.length,!0),1===e.nodeType){var t=moveIndex(e,this.pureChildren,this.pureChildren.length),n=getTaskCenter(this.docId);if(n&&0<=t)return n.send("dom",{action:"moveElement"},[e.ref,this.ref,t])}}else if(checkLevel("debug")&&debugLog("[appendChild]("+this.docId+","+e.type+","+e.ref+") Append <"+e.type+"> to <"+this.type+"> ("+this.ref+")."),linkParent(e,this),insertIndex(e,this.children,this.children.length,!0),this.docId&®isterNode(this.docId,e),1===e.nodeType){insertIndex(e,this.pureChildren,this.pureChildren.length);var r=getTaskCenter(this.docId);if(r)return r.send("dom",{action:"addElement"},[this.ref,e.toJSON(),-1])}},e.prototype.insertBefore=function(e,t){if(!(e.parentNode&&e.parentNode!==this||e===t||e.nextSibling&&e.nextSibling===t))if(e.parentNode){if(moveIndex(e,this.children,this.children.indexOf(t),!0),1===e.nodeType){var n=nextElement(t),r=moveIndex(e,this.pureChildren,n?this.pureChildren.indexOf(n):this.pureChildren.length),i=getTaskCenter(this.docId);if(i&&0<=r)return i.send("dom",{action:"moveElement"},[e.ref,this.ref,r])}}else if(checkLevel("debug")&&debugLog("[insertBefore]("+this.docId+","+e.type+","+e.ref+") Insert <"+e.type+"> to <"+this.type+"> ("+this.ref+"), before ("+t.ref+")."),linkParent(e,this),insertIndex(e,this.children,this.children.indexOf(t),!0),this.docId&®isterNode(this.docId,e),1===e.nodeType){var o=nextElement(t),a=insertIndex(e,this.pureChildren,o?this.pureChildren.indexOf(o):this.pureChildren.length),s=getTaskCenter(this.docId);if(s)return s.send("dom",{action:"addElement"},[this.ref,e.toJSON(),a])}},e.prototype.insertAfter=function(e,t){if(!(e.parentNode&&e.parentNode!==this||e===t||e.previousSibling&&e.previousSibling===t))if(e.parentNode){if(moveIndex(e,this.children,this.children.indexOf(t)+1,!0),1===e.nodeType){var n=moveIndex(e,this.pureChildren,this.pureChildren.indexOf(previousElement(t))+1),r=getTaskCenter(this.docId);if(r&&0<=n)return r.send("dom",{action:"moveElement"},[e.ref,this.ref,n])}}else if(checkLevel("debug")&&debugLog("[insertAfter]("+this.docId+","+e.type+","+e.ref+") Insert <"+e.type+"> to <"+this.type+"> ("+this.ref+"), after ("+t.ref+")."),linkParent(e,this),insertIndex(e,this.children,this.children.indexOf(t)+1,!0),this.docId&®isterNode(this.docId,e),1===e.nodeType){var i=insertIndex(e,this.pureChildren,this.pureChildren.indexOf(previousElement(t))+1),o=getTaskCenter(this.docId);if(o)return o.send("dom",{action:"addElement"},[this.ref,e.toJSON(),i])}},e.prototype.removeChild=function(e,t){if(e.parentNode&&(removeIndex(e,this.children,!0),1===e.nodeType)){checkLevel("debug")&&debugLog("[removeChild]("+this.docId+","+e.type+","+e.ref+") Remove <"+e.type+"> from <"+this.type+"> ("+this.ref+")."),removeIndex(e,this.pureChildren);var n=getTaskCenter(this.docId);n&&n.send("dom",{action:"removeElement"},[e.ref])}t||e.destroy()},e.prototype.clear=function(){var t=getTaskCenter(this.docId);t&&this.pureChildren.forEach(function(e){t.send("dom",{action:"removeElement"},[e.ref])}),this.children.forEach(function(e){e.destroy()}),this.children.length=0,this.pureChildren.length=0},e.prototype.setAttr=function(e,t,n){if(this.attr[e]!==t||!1===n){this.attr[e]=t;var r=getTaskCenter(this.docId);if(!n&&r){var i={};i[e]=t,r.send("dom",{action:"updateAttrs"},[this.ref,i])}}},e.prototype.setAttrs=function(e,t){if(!isEmpty(e)){var n={};for(var r in e)this.attr[r]!==e[r]&&(this.attr[r]=e[r],n[r]=e[r]);if(!isEmpty(n)){var i=getTaskCenter(this.docId);!t&&i&&i.send("dom",{action:"updateAttrs"},[this.ref,n])}}},e.prototype.setStyle=function(e,t,n){if(this.style[e]!==t||!1===n){this.style[e]=t;var r=getTaskCenter(this.docId);if(!n&&r){var i={};i[e]=t,r.send("dom",{action:"updateStyle"},[this.ref,i])}}},e.prototype.setStyles=function(e,t){if(!isEmpty(e)){var n={};for(var r in e)this.style[r]!==e[r]&&(this.style[r]=e[r],n[r]=e[r]);if(!isEmpty(n)){var i=getTaskCenter(this.docId);!t&&i&&i.send("dom",{action:"updateStyle"},[this.ref,n])}}},e.prototype.setClassStyle=function(e){for(var t in this.classStyle)this.classStyle[t]="";Object.assign(this.classStyle,e);var n=getTaskCenter(this.docId);n&&n.send("dom",{action:"updateStyle"},[this.ref,this.toStyle()])},e.prototype.addEvent=function(e,t,n){if(this.event||(this.event={}),!this.event[e]){checkLevel("debug")&&debugLog("[addEvent]("+this.docId+","+this.type+","+this.ref+') Add "'+e+'" event on <'+this.type+"> ("+this.ref+")."),this.event[e]={handler:t,params:n};var r=getTaskCenter(this.docId);r&&r.send("dom",{action:"addEvent"},[this.ref,e])}},e.prototype.removeEvent=function(e){if(this.event&&this.event[e]){checkLevel("debug")&&debugLog("[removeEvent]("+this.docId+","+this.type+","+this.ref+') Remove "'+e+'" event on <'+this.type+"> ("+this.ref+")."),delete this.event[e];var t=getTaskCenter(this.docId);t&&t.send("dom",{action:"removeEvent"},[this.ref,e])}},e.prototype.fireEvent=function(t,e,n,r){var i=null,o=!1,a=this.event[t];if(a&&e){checkLevel("debug")&&debugLog("[fireEvent]("+this.docId+","+this.type+","+this.ref+') Fire "'+t+'" event on <'+this.type+"> ("+this.ref+").");var s=a.handler;e.stopPropagation=function(){o=!0};try{i=r&&r.params?s.call.apply(s,[this].concat(r.params,[e])):s.call(this,e)}catch(e){throw console.error('[JS Framework] Failed to invoke the event handler of "'+t+'" on '+this.type+" ("+this.ref+"):\n "+e.toString()),e}}return!o&&n&&-1!==BUBBLE_EVENTS.indexOf(t)&&this.parentNode&&this.parentNode.fireEvent&&(e.currentTarget=this.parentNode,this.parentNode.fireEvent(t,e,n)),i},e.prototype.toStyle=function(){return Object.assign({},this.classStyle,this.style)},e.prototype.toJSON=function(e){void 0===e&&(e=!1);var t={ref:this.ref.toString(),type:this.type,attr:this.attr,style:normalizeUnit(this.toStyle())};this.classList&&this.classList.length&&(t.class=this.classList.join(" "));var n=[];for(var r in this.event){var i=this.event[r].params;i?n.push({type:r,params:i}):n.push(r)}return n.length&&(t.event=n),!e&&this.pureChildren.length&&(t.children=this.pureChildren.map(function(e){return e.toJSON()})),t},e.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+">"},e.prototype.setClassList=function(e){this.classList=e},e}(Node);function normalizePrimitive(e){var t=typof(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:bufferToBase64(e)};case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":return{"@type":"binary",dataType:t,base64:bufferToBase64(e.buffer)};default:return JSON.stringify(e)}}setElement(Element);var fallback=function(){},TaskCenter=function(e,t){Object.defineProperty(this,"instanceId",{enumerable:!0,value:String(e)}),Object.defineProperty(this,"callbackManager",{enumerable:!0,value:new CallbackManager(e)}),fallback=t||function(){}};function init$1(){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,__updateComponentData:global.__updateComponentData},t=TaskCenter.prototype,n=function(n){var r=e[n];t[n]=r?function(e,t){return r.apply(void 0,[e].concat(t))}:function(e,t){return fallback(e,[{module:"dom",method:n,args:t}],"-1")}};for(var r in e)n(r);t.componentHandler=global.callNativeComponent||function(e,t,n,r,i){return fallback(e,[{component:i.component,ref:t,method:n,args:r}])},t.moduleHandler=global.callNativeModule||function(e,t,n,r){return fallback(e,[{module:t,method:n,args:r}])}}function fireEvent(e,t,n,r,i,o){var a=e.getRef(t);return a?e.fireEvent(a,n,r,i,o):r?(r._nodeId=t,e.fireEvent(e.getRef("_documentElement"),n,r,i,o)):void 0}function callback(e,t,n,r){return e.taskCenter.callback(t,n,r)}function componentHook(e,t,n,r,i){if(!e||!e.taskCenter)return console.error('[JS Framework] Can\'t find "document" or "taskCenter".'),null;var o=null;try{o=e.taskCenter.triggerHook(t,n,r,i)}catch(e){throw console.error('[JS Framework] Failed to trigger the "'+n+"@"+r+'" hook on '+t+"."),e}return o}function receiveTasks(e,t){var n=getDoc(e);return n?Array.isArray(t)?t.map(function(e){switch(e.method){case"callback":return callback.apply(void 0,[n].concat(e.args));case"fireEventSync":case"fireEvent":return fireEvent.apply(void 0,[n].concat(e.args));case"componentHook":return componentHook.apply(void 0,[n].concat(e.args))}}):void 0:new Error("[JS Framework] Failed to receiveTasks, instance ("+e+") is not available.")}TaskCenter.prototype.callback=function(e,t,n){return this.callbackManager.consume(e,t,n)},TaskCenter.prototype.registerHook=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];return(e=this.callbackManager).registerHook.apply(e,t)},TaskCenter.prototype.triggerHook=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];return(e=this.callbackManager).triggerHook.apply(e,t)},TaskCenter.prototype.updateData=function(e,t,n){this.send("module",{module:"dom",method:"updateComponentData"},[e,t,n])},TaskCenter.prototype.destroyCallback=function(){return this.callbackManager.close()},TaskCenter.prototype.normalize=function(e,t){var n=this;void 0===t&&(t=!1);var r=typof(e);if(e&&e instanceof Element)return e.ref;if(e&&e._isVue&&e.$el instanceof Element)return e.$el.ref;if("Function"===r)return this.callbackManager.add(e).toString();if(t){if("Object"===r){var i={};for(var o in e)i[o]=n.normalize(e[o],!0);return i}if("Array"===r)return e.map(function(e){return n.normalize(e,!0)})}return e&&e.ref&&e["[[VirtualElement]]"]?e.ref:normalizePrimitive(e)},TaskCenter.prototype.send=function(e,t,n,r){var i=this,o=t.action,a=t.component,s=t.ref,c=t.module,u=t.method;switch(n=n.map(function(e){return i.normalize(e)}),"Object"===typof(r)&&(r=this.normalize(r,!0)),e){case"dom":return checkLevel("debug")&&debugLog("[task]("+this.instanceId+","+this.type+","+o+") "+JSON.stringify(n)),this[o](this.instanceId,n);case"component":return this.componentHandler(this.instanceId,s,u,n,Object.assign({component:a},r));default:return checkLevel("debug")&&debugLog("[task]("+this.instanceId+","+c+","+u+") "+JSON.stringify(n)),this.moduleHandler(this.instanceId,c,u,n,r)}},TaskCenter.prototype.callDOM=function(e,t){return this[e](this.instanceId,t)},TaskCenter.prototype.callComponent=function(e,t,n,r){return this.componentHandler(this.instanceId,e,t,n,r)},TaskCenter.prototype.callModule=function(e,t,n,r){return this.moduleHandler(this.instanceId,e,t,n,r)};var weexModules={};function registerModules(e){void 0===e&&(e={});var t=function(t){hasOwn(weexModules,t)||(weexModules[t]={}),Array.isArray(e[t])&&e[t].forEach(function(e){"string"==typeof e?weexModules[t][e]=!0:isPlainObject(e)&&"string"==typeof e.name&&(weexModules[t][e.name]=e.args||[])})};for(var n in e)t(n)}function isRegisteredModule(e,t){return"string"==typeof t?!(!weexModules[e]||!weexModules[e][t]):!!weexModules[e]}function getModuleDescription(e){return weexModules[e]}var weexComponents={};function registerComponents(e){Array.isArray(e)&&e.forEach(function(e){e&&("string"==typeof e?weexComponents[e]=!0:isPlainObject(e)&&"string"==typeof e.type&®isterElement((weexComponents[e.type]=e).type,e.methods))})}function isRegisteredComponent(e){return!!weexComponents[e]}var services=[];function register(e,t){has(e)?console.warn('Service "'+e+'" has been registered already!'):(t=Object.assign({},t),services.push({name:e,options:t}))}function unregister(n){services.some(function(e,t){if(e.name===n)return services.splice(t,1),!0})}function has(e){return 0<=indexOf(e)}function indexOf(e){return services.map(function(e){return e.name}).indexOf(e)}var Comment=function(t){function e(e){t.call(this),this.nodeType=8,this.nodeId=uniqueId(),this.ref=this.nodeId,this.type="comment",this.value=e,this.children=[],this.pureChildren=[]}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.toString=function(){return"\x3c!-- "+this.value+" --\x3e"},e}(Node);function createAction(e,t){return void 0===t&&(t=[]),{module:"dom",method:e,args:t}}var Listener=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")};Listener.prototype.createFinish=function(e){return(0,this.handler)([createAction("createFinish")],e)},Listener.prototype.updateFinish=function(e){return(0,this.handler)([createAction("updateFinish")],e)},Listener.prototype.refreshFinish=function(e){return(0,this.handler)([createAction("refreshFinish")],e)},Listener.prototype.createBody=function(e){var t=e.toJSON(),n=t.children;delete t.children;var r=[createAction("createBody",[t])];return n&&r.push.apply(r,n.map(function(e){return createAction("addElement",[t.ref,e,-1])})),this.addActions(r)},Listener.prototype.addElement=function(e,t,n){return 0<=n||(n=-1),this.addActions(createAction("addElement",[t,e.toJSON(),n]))},Listener.prototype.removeElement=function(e){if(Array.isArray(e)){var t=e.map(function(e){return createAction("removeElement",[e])});return this.addActions(t)}return this.addActions(createAction("removeElement",[e]))},Listener.prototype.moveElement=function(e,t,n){return this.addActions(createAction("moveElement",[e,t,n]))},Listener.prototype.setAttr=function(e,t,n){var r={};return r[t]=n,this.addActions(createAction("updateAttrs",[e,r]))},Listener.prototype.setStyle=function(e,t,n){var r={};return r[t]=n,this.addActions(createAction("updateStyle",[e,r]))},Listener.prototype.setStyles=function(e,t){return this.addActions(createAction("updateStyle",[e,t]))},Listener.prototype.addEvent=function(e,t){return this.addActions(createAction("addEvent",[e,t]))},Listener.prototype.removeEvent=function(e,t){return this.addActions(createAction("removeEvent",[e,t]))},Listener.prototype.handler=function(e,t){return t&&t()},Listener.prototype.addActions=function(e){var t=this.updates,n=this.handler;if(Array.isArray(e)||(e=[e]),!this.batched)return n(e);t.push.apply(t,e)};var handlerMap={createBody:"callCreateBody",addElement:"callAddElement",removeElement:"callRemoveElement",moveElement:"callMoveElement",updateAttrs:"callUpdateAttrs",updateStyle:"callUpdateStyle",addEvent:"callAddEvent",removeEvent:"callRemoveEvent"};function createHandler(r,e){var i=e||global.callNative;return"function"!=typeof i&&console.error("[JS Runtime] no default handler"),function(e){Array.isArray(e)||(e=[e]);for(var t=0;t<e.length;t++){var n=dispatchTask(r,e[t],i);if(-1===n)return n}}}function hasAvailableHandler(e,t){return"dom"===e&&handlerMap[t]&&"function"==typeof global[handlerMap[t]]}function dispatchTask(e,t,n){var r=t.module,i=t.method,o=t.args;return hasAvailableHandler(r,i)?global[handlerMap[i]].apply(global,[e].concat(o,["-1"])):n(e,[t],"-1")}function updateElement(e,t){var n=t.attrs||{};for(var r in n)e.setAttr(r,n[r],!0);var i=t.style||{};for(var o in i)e.setStyle(o,i[o],!0)}var Document=function e(t,n,r){t=t?t.toString():"",this.id=t,this.URL=n,addDoc(t,this),this.nodeMap={};var i=e.Listener||Listener;this.listener=new i(t,r||createHandler(t,e.handler)),this.taskCenter=new TaskCenter(t,r?function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return r.apply(void 0,t)}:e.handler),this.createDocumentElement()};Document.prototype.getRef=function(e){return this.nodeMap[e]},Document.prototype.open=function(){this.listener.batched=!1},Document.prototype.close=function(){this.listener.batched=!0},Document.prototype.createDocumentElement=function(){var n=this;if(!this.documentElement){var e=new Element("document");e.docId=this.id,e.ownerDocument=this,e.role="documentElement",e.depth=0,e.ref="_documentElement",this.nodeMap._documentElement=e,this.documentElement=e,Object.defineProperty(e,"appendChild",{configurable:!0,enumerable:!0,writable:!0,value:function(e){appendBody(n,e)}}),Object.defineProperty(e,"insertBefore",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){appendBody(n,e,t)}}),checkLevel("debug")&&debugLog('Create document element (id: "'+e.docId+'", ref: "'+e.ref+'")')}return this.documentElement},Document.prototype.createBody=function(e,t){if(!this.body){var n=new Element(e,t);setBody(this,n),checkLevel("debug")&&debugLog("[createBody]("+this.id+","+n.type+","+n.ref+") ("+JSON.stringify(n.toJSON(!0))+").")}return this.body},Document.prototype.createElement=function(e,t){var n=new Element(e,t);return checkLevel("debug")&&debugLog("[createElement]("+this.id+","+n.type+","+n.ref+") ("+JSON.stringify(n.toJSON(!0))+")."),n},Document.prototype.createComment=function(e){return new Comment(e)},Document.prototype.fireEvent=function(e,t,n,r,i){if(e){var o;(n=n||{}).type=n.type||t,n.target=e,n.currentTarget=e,n.timestamp=Date.now(),r&&updateElement(e,r);var a=this.getRef("_root");return a&&a.attr&&(o="true"===a.attr.bubble),"weex"!==this.__$compiler__&&(n=processEvent(n)),e.fireEvent(t,n,o,i)}},Document.prototype.destroy=function(){checkLevel("debug")&&debugLog("[destroy]("+this.id+",document,"+this.ref+') Destroy document (id: "'+this.id+'", URL: "'+this.URL+'")'),this.taskCenter.destroyCallback(),delete this.listener,delete this.nodeMap,delete this.taskCenter,removeDoc(this.id)},Document.handler=null;var lex={InputElementDiv:"<WhiteSpace>|<LineTerminator>|<ReservedWord>|<Identifier>|<NumericLiteral>|<Punctuator>|<StringLiteral>",InputElementRegExp:"<WhiteSpace>|<LineTerminator>|<ReservedWord>|<Identifier>|<NumericLiteral>|<Punctuator>|<StringLiteral>",ReservedWord:"<Keyword>|<NullLiteral>|<BooleanLiteral>",WhiteSpace:/[\t\v\f\u0020\u00A0\u1680\u180E\u2000-\u200A\u202F\u205f\u3000\uFEFF]/,LineTerminator:/[\n\r\u2028\u2029]/,Keyword:/new(?![_$a-zA-Z0-9])|void(?![_$a-zA-Z0-9])|delete(?![_$a-zA-Z0-9])|in(?![_$a-zA-Z0-9])|instanceof(?![_$a-zA-Z0-9])|typeof(?![_$a-zA-Z0-9])/,NullLiteral:/null(?![_$a-zA-Z0-9])/,BooleanLiteral:/(?:true|false)(?![_$a-zA-Z0-9])/,Identifier:/[_$a-zA-Z][_$a-zA-Z0-9]*/,Punctuator:/\/|=>|\*\*|>>>=|>>=|<<=|===|!==|>>>|<<|%=|\*=|-=|\+=|<=|>=|==|!=|\^=|\|=|\|\||&&|&=|>>|\+\+|--|\:|}|\*|&|\||\^|!|~|-|\+|\?|%|=|>|<|,|;|\.(?![0-9])|\]|\[|\)|\(|{/,DivPunctuator:/\/=|\//,NumericLiteral:/(?:0[xX][0-9a-fA-F]*|\.[0-9]+|(?:[1-9]+[0-9]*|0)(?:\.[0-9]*|\.)?)(?:[eE][+-]{0,1}[0-9]+)?(?![_$a-zA-Z0-9])/,StringLiteral:/"(?:[^"\n\\\r\u2028\u2029]|\\(?:['"\\bfnrtv\n\r\u2028\u2029]|\r\n)|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\[^0-9ux'"\\bfnrtv\n\\\r\u2028\u2029])*"|'(?:[^'\n\\\r\u2028\u2029]|\\(?:['"\\bfnrtv\n\r\u2028\u2029]|\r\n)|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\[^0-9ux'"\\bfnrtv\n\\\r\u2028\u2029])*'/,RegularExpressionLiteral:/\/(?:\[(?:\\[\s\S]|[^\]])*\]|[^*\/\\\n\r\u2028\u2029]|\\[^\n\r\u2028\u2029])(?:\[(?:\\[\s\S]|[^\]])*\]|[^\/\\\n\r\u2028\u2029]|\\[^\n\r\u2028\u2029])*\/[0-9a-zA-Z]*/};function XRegExp(r,e,i){var o=[e];var a=function n(e){var t=new RegExp;return t.compile(e.replace(/<([^>]+)>/g,function(e,t){return r[t]?(o.push(t),r[t]instanceof RegExp?"("+r[t].source+")":"("+n(r[t]).source+")"):""}),i),t}(r[e]);this.exec=function(e){var t=a.exec(e);if(null==t)return null;for(var n=new String(t[0]),r=0;r<o.length;r++)t[r]&&(n[o[r]]=t[r]);return n},Object.defineProperty(this,"lastIndex",{get:function(){return a.lastIndex},set:function(e){a.lastIndex=e}})}function LexicalParser(){var i,o=new XRegExp(lex,"InputElementDiv","g"),a=new XRegExp(lex,"InputElementRegExp","g");Object.defineProperty(this,"source",{get:function(){return i},set:function(e){i=e,o.lastIndex=0,a.lastIndex=0}}),this.reset=function(){o.lastIndex=0,a.lastIndex=0},this.getNextToken=function(e){var t,n=o.lastIndex,r=(t=e?o:a).exec(i);if(r&&t.lastIndex-n>r.length)throw new SyntaxError("Unexpected token ILLEGAL");return o.lastIndex=t.lastIndex,a.lastIndex=t.lastIndex,r}}var rules={IdentifierName:[["Identifier"]],Literal:[["NullLiteral"],["BooleanLiteral"],["NumericLiteral"],["StringLiteral"],["RegularExpressionLiteral"]],PrimaryExpression:[["Identifier"],["Literal"],["(","Expression",")"]],CallExpression:[["PrimaryExpression","Arguments"],["CallExpression","Arguments"]],Arguments:[["(",")"],["(","ArgumentList",")"]],ArgumentList:[["ConditionalExpression"],["ArgumentList",",","ConditionalExpression"]],LeftHandSideExpression:[["PrimaryExpression"],["CallExpression"]],UnaryExpression:[["LeftHandSideExpression"],["void","UnaryExpression"],["+","UnaryExpression"],["-","UnaryExpression"],["~","UnaryExpression"],["!","UnaryExpression"]],ExponentiationExpression:[["UnaryExpression"],["ExponentiationExpression","**","UnaryExpression"]],MultiplicativeExpression:[["MultiplicativeExpression","/","ExponentiationExpression"],["ExponentiationExpression"],["MultiplicativeExpression","*","ExponentiationExpression"],["MultiplicativeExpression","%","ExponentiationExpression"]],AdditiveExpression:[["MultiplicativeExpression"],["AdditiveExpression","+","MultiplicativeExpression"],["AdditiveExpression","-","MultiplicativeExpression"]],ShiftExpression:[["AdditiveExpression"],["ShiftExpression","<<","AdditiveExpression"],["ShiftExpression",">>","AdditiveExpression"],["ShiftExpression",">>>","AdditiveExpression"]],RelationalExpression:[["ShiftExpression"],["RelationalExpression","<","ShiftExpression"],["RelationalExpression",">","ShiftExpression"],["RelationalExpression","<=","ShiftExpression"],["RelationalExpression",">=","ShiftExpression"],["RelationalExpression","instanceof","ShiftExpression"],["RelationalExpression","in","ShiftExpression"]],EqualityExpression:[["RelationalExpression"],["EqualityExpression","==","RelationalExpression"],["EqualityExpression","!=","RelationalExpression"],["EqualityExpression","===","RelationalExpression"],["EqualityExpression","!==","RelationalExpression"]],BitwiseANDExpression:[["EqualityExpression"],["BitwiseANDExpression","&","EqualityExpression"]],BitwiseXORExpression:[["BitwiseANDExpression"],["BitwiseXORExpression","^","BitwiseANDExpression"]],BitwiseORExpression:[["BitwiseXORExpression"],["BitwiseORExpression","|","BitwiseXORExpression"]],LogicalANDExpression:[["BitwiseORExpression"],["LogicalANDExpression","&&","BitwiseORExpression"]],LogicalORExpression:[["LogicalANDExpression"],["LogicalORExpression","||","LogicalANDExpression"]],ConditionalExpression:[["LogicalORExpression"],["LogicalORExpression","?","LogicalORExpression",":","LogicalORExpression"]],Expression:[["ConditionalExpression"],["Expression",",","ConditionalExpression"]],Program:[["Expression"]]};function Symbol$1(e,t){this.name=e,this.token=t,this.childNodes=[],this.toString=function(e){if(e||(e=""),1==this.childNodes.length)return this.childNodes[0].toString(e);for(var t=e+this.name+(null!=this.token&&this.name!=this.token?":"+this.token:"")+"\n",n=0;n<this.childNodes.length;n++)t+=this.childNodes[n].toString(e+" ");return t}}function SyntacticalParser(){var e={Program:"$"},o={};!function e(n){o[JSON.stringify(n)]=n;for(var r=Object.getOwnPropertyNames(n);r.length;){var i=r.shift();rules[i]&&rules[i].forEach(function(e){n[e[0]]||r.push(e[0]);var t=n;e.forEach(function(e){t[e]||(t[e]={}),t=t[e]}),n[i].$div&&(t.$div=!0),t.$reduce=i,t.$count=e.length})}for(var t in n)"object"!=typeof n[t]||"$"==t.charAt(0)||n[t].$closure||(o[JSON.stringify(n[t])]?n[t]=o[JSON.stringify(n[t])]:e(n[t]));n.$closure=!0}(e);var i=[],a=[e],s=e;this.insertSymbol=function(e,t){for(;!s[e.name]&&s.$reduce;){for(var n=s.$count,r=new Symbol$1(s.$reduce);n--;)r.childNodes.push(i.pop()),a.pop();s=a[a.length-1],this.insertSymbol(r)}if(s=s[e.name],i.push(e),a.push(s),!s)throw new Error;return s.$div},this.reset=function(){i=[],a=[s=e]},Object.defineProperty(this,"grammarTree",{get:function(){try{for(;s.$reduce;){for(var e=s.$count,t=new Symbol$1(s.$reduce);e--;)t.childNodes.push(i.pop()),a.pop();s=a[a.length-1],this.insertSymbol(t)}if(0<i.length&&s[";"])return this.insertSymbol(new Symbol$1(";",";")),this.grammarTree;if(1!=i.length||"Program"!=i[0].name)throw new Error}catch(e){throw new SyntaxError("Unexpected end of input")}return i[0]}})}function Parser(){this.lexicalParser=new LexicalParser,this.syntacticalParser=new SyntacticalParser;var a={};["NullLiteral","BooleanLiteral","NumericLiteral","StringLiteral","RegularExpressionLiteral","Identifier","**","=>","{","}","(",")","[","]",".",";",",","<",">","<=",">=","==","!=","===","!==","+","-","*","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","=","+=","-=","*=","%=","<<=",">>=",">>>=","&=","|=","^=","/","/=","instanceof","typeof","new","void","debugger","this","delete","in"].forEach(function(e){Object.defineProperty(a,e,{})}),this.reset=function(){this.lexicalParser.reset(),this.syntacticalParser.reset()},this.parse=function(e,t){var n,r=this,i=!1;this.lexicalParser.source=e;for(var o=!1;n=this.lexicalParser.getNextToken(o);){t&&t(n);try{if(Object.getOwnPropertyNames(n).some(function(e){return!!a.hasOwnProperty(e)&&(o=r.syntacticalParser.insertSymbol(new Symbol$1(e,n),i),!(i=!1))}))continue;(n.Keyword||n.Punctuator||n.DivPunctuator)&&a.hasOwnProperty(n.toString())&&(o=r.syntacticalParser.insertSymbol(new Symbol$1(n.toString(),n),i))}catch(e){throw new SyntaxError("Unexpected token "+n)}}return this.syntacticalParser.grammarTree}}var parser=new Parser;function JavaScriptExpression(text){parser.reset(),this.tree=parser.parse(text),this.paths=[];var context=Object.create(null),me=this,pathIndex=Object.create(null);function checkSimple(e){for(var t=e;t.childNodes.length<=1&&"MemberExpression"!==t.name;)t=t.childNodes[0];"MemberExpression"===t.name?me.isSimple=!0:me.isSimple=!1}function walk(e){if("CallExpression"===e.name&&"CallExpression"!==e.childNodes[e.childNodes.length-1].name){getPath(e.childNodes[1]);walk(e.childNodes[0])}else if("NewExpression"===e.name&&1===e.childNodes.length)getPath(e.childNodes[0]);else if("MemberExpression"===e.name&&1===e.childNodes.length)getPath(e);else for(var t=0;t<e.childNodes.length;t++)walk(e.childNodes[t])}function getPath(e){var t;if("IdentifierName"===e.childNodes[0].name)return(t=getPath(e.childNodes[2]))&&(t=t.concat(e.childNodes[0].childNodes[0].token.toString())),createPath(t),t;if("PrimaryExpression"===e.childNodes[0].name)return"Identifier"===e.childNodes[0].childNodes[0].name?(createPath(t=[e.childNodes[0].childNodes[0].token.toString()]),t):null;if("]"===e.childNodes[0].name)return getPath(e.childNodes[3]),walk(e.childNodes[1]),null;if("Arguments"===e.childNodes[0].name)return walk(e.childNodes[0]),walk(e.childNodes[1]),null;for(var n=0;n<e.childNodes.length;n++)walk(e.childNodes[n])}function createPath(e){for(var t=context,n=0;n<e.length-1;n++)t[e[n]]||(t[e[n]]=Object.create(null)),t=t[e[n]];me.paths.push(e),pathIndex[e.join(".")]=!1}this.isSimple,this.isConst,walk(this.tree),checkSimple(this.tree),0===this.paths.length&&(this.isConst=!0),this.setter=function(t){for(var n=context,r=0;r<t.length-1;r++)n[t[r]]||(n[t[r]]=Object.create(null)),n=n[t[r]];return{isCompleted:function(){for(var e in pathIndex)if(!pathIndex[e])return!1;return!0},set:function(e){return pathIndex[t.join(".")]||(pathIndex[t.join(".")]=!0),n[t[r]]=e,this.isCompleted()?me.exec():void 0}}},this.valueOf=this.exec=function(){try{return function(){return eval(text)}.call(context)}catch(e){}}}function visit(t){var e,n=t.childNodes.slice().reverse(),r=n.filter(function(e){return!e.token||!e.token.Punctuator});if("UnaryExpression"===t.name&&(2===n.length&&"-"===n[0].name&&1===r.length))return(e=visit(r[0])).value=-e.value,e;if("Arguments"===t.name){for(var i=[],o=r[0];o;)3===o.childNodes.length&&(i.unshift(o.childNodes[0]),o=o.childNodes[2]),1===o.childNodes.length&&(i.unshift(o.childNodes[0]),o=null);return{type:"Arguments",children:i.map(function(e){return visit(e)})}}if(r&&1===r.length)return e=visit(r[0]);if(t.token&&["NullLiteral","BooleanLiteral","NumericLiteral","StringLiteral","Identifier"].some(function(e){return t.token[e]})){var a=Object.keys(t.token).filter(function(e){return e.match(/Literal/)||e.match(/Identifier/)})[0];return{type:a,value:{NullLiteral:null,BooleanLiteral:Boolean(t.token),NumericLiteral:Number(t.token),StringLiteral:t.token,Identifier:t.token}[a]}}return"CallExpression"===t.name?{type:"CallExpression",children:[visit(n[0]),visit(n[1])]}:{type:n.filter(function(e){return e.token&&e.token.Punctuator})[0].name,children:n.filter(function(e){return!e.token||!e.token.Punctuator}).map(function(e){return visit(e)})}}function parse(e){var t=new JavaScriptExpression(e);return JSON.stringify(visit(t.tree),null)}var oldCallUpdateStyle=global.callUpdateStyle;function isBindMethod(e,t){return("bindingx"===e||"binding"===e)&&"bind"===t}function formatExpression(e){if(void 0!==e){try{e=JSON.parse(e)}catch(e){}var t={};if("string"==typeof e?t.origin=e:e&&(t.origin=e.origin,t.transformed=e.transformed),t.transformed||t.origin)return t.transformed=t.transformed||parse(t.origin),t}}function formatExpressions(e){return e&&(e.exitExpression=formatExpression(e.exitExpression),e.props&&e.props.forEach(function(e){e.expression=formatExpression(e.expression)})),e}function fixCallback(t){return function(e){if(void 0===e&&(e={}),"function"==typeof t)return t({state:"end"===e.state?"exit":e.state,t:void 0!==e.t?e.t:e.deltaT})}}function handleModuleGetter(e,t,n){return isBindMethod(e,t)?function(e,t){if(void 0===t&&(t=function(){}),!e)throw new Error("should pass options for binding");return formatExpressions(e),n(e,e&&"timing"===e.eventType?fixCallback(t):t)}:n}function setId(e,t){Object.defineProperty(e,"[[CurrentInstanceId]]",{value:t})}function getId(e){return e["[[CurrentInstanceId]]"]}function moduleGetter(e,n,r){var i=getTaskCenter(e);return i&&"function"==typeof i.send?function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return i.send("module",{module:n,method:r},e)}:(console.error("[JS Framework] Failed to find taskCenter ("+e+")."),null)}function moduleSetter(e,t,n,r){var i=getTaskCenter(e);return i&&"function"==typeof i.send?"function"!=typeof r?(console.error("[JS Framework] "+t+"."+n+" must be assigned as a function."),null):function(e){return i.send("module",{module:t,method:n},[e])}:(console.error("[JS Framework] Failed to find taskCenter ("+e+")."),null)}global.callUpdateStyle=function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return t[1]&&(t[1]=normalizeUnit(t[1])),oldCallUpdateStyle.apply(void 0,[e].concat(t))};var WeexInstance=function(e,t,n){setId(this,String(e)),this.config=t||{},this._nativeData=n||{},this.document=new Document(e,this.config.bundleUrl),this.requireModule=this.requireModule.bind(this),this.importScript=this.importScript.bind(this),this.isRegisteredModule=isRegisteredModule,this.isRegisteredComponent=isRegisteredComponent},__vuePlugin,__definePage,__registerApp,__registerPage,uni,getApp,getCurrentPages,UniServiceJSBridge;function createServiceContext($p,Pp,Mp,jp,e){var Bp=e.setTimeout,Np=e.clearTimeout,Dp=e.setInterval,Lp=e.clearInterval,Rp=e.__uniConfig,Fp=e.__uniRoutes,t=function(){var e=["base64ToArrayBuffer","arrayBufferToBase64","addInterceptor","removeInterceptor"].concat(["request","uploadFile","downloadFile","connectSocket","onSocketOpen","onSocketError","sendSocketMessage","onSocketMessage","closeSocket","onSocketClose","getUpdateManager"],["navigateTo","redirectTo","reLaunch","switchTab","navigateBack"],["setStorage","setStorageSync","getStorage","getStorageSync","getStorageInfo","getStorageInfoSync","removeStorage","removeStorageSync","clearStorage","clearStorageSync"],["getLocation","chooseLocation","openLocation","createMapContext"],["chooseImage","chooseFile","previewImage","getImageInfo","saveImageToPhotosAlbum","compressImage","getRecorderManager","getBackgroundAudioManager","createAudioContext","createInnerAudioContext","chooseVideo","saveVideoToPhotosAlbum","createVideoContext","createCameraContext","createLivePlayerContext","createLivePusherContext"],["getSystemInfo","getSystemInfoSync","canIUse","onMemoryWarning","getNetworkType","onNetworkStatusChange","onAccelerometerChange","offAccelerometerChange","startAccelerometer","stopAccelerometer","onCompassChange","offCompassChange","startCompass","stopCompass","onGyroscopeChange","startGyroscope","stopGyroscope","makePhoneCall","scanCode","setClipboardData","getClipboardData","setScreenBrightness","getScreenBrightness","setKeepScreenOn","onUserCaptureScreen","vibrateLong","vibrateShort","addPhoneContact","openBluetoothAdapter","startBluetoothDevicesDiscovery","onBluetoothDeviceFound","stopBluetoothDevicesDiscovery","onBluetoothAdapterStateChange","getConnectedBluetoothDevices","getBluetoothDevices","getBluetoothAdapterState","closeBluetoothAdapter","writeBLECharacteristicValue","readBLECharacteristicValue","onBLEConnectionStateChange","onBLECharacteristicValueChange","notifyBLECharacteristicValueChange","getBLEDeviceServices","getBLEDeviceCharacteristics","createBLEConnection","closeBLEConnection","setBLEMTU","getBLEDeviceRSSI","onBeaconServiceChange","onBeaconUpdate","getBeacons","startBeaconDiscovery","stopBeaconDiscovery","checkIsSupportSoterAuthentication","checkIsSoterEnrolledInDevice","startSoterAuthentication","onThemeChange","onUIStyleChange"],["hideKeyboard","onKeyboardHeightChange","getSelectedTextRange"],["showToast","hideToast","showLoading","hideLoading","showModal","showActionSheet","setNavigationBarTitle","setNavigationBarColor","showNavigationBarLoading","hideNavigationBarLoading","setTabBarItem","setTabBarStyle","hideTabBar","showTabBar","setTabBarBadge","removeTabBarBadge","showTabBarRedDot","hideTabBarRedDot","onTabBarMidButtonTap","setBackgroundColor","setBackgroundTextStyle","createAnimation","pageScrollTo","onWindowResize","offWindowResize","loadFontFace","startPullDownRefresh","stopPullDownRefresh","createSelectorQuery","createIntersectionObserver","createMediaQueryObserver","getMenuButtonBoundingClientRect","showTopWindow","showLeftWindow","showRightWindow","hideTopWindow","hideLeftWindow","hideRightWindow","setTopWindowStyle","setLeftWindowStyle","setRightWindowStyle"],["$emit","$on","$once","$off"],["saveFile","getSavedFileList","getSavedFileInfo","removeSavedFile","getFileInfo","openDocument","getFileSystemManager"],["createOffscreenCanvas","createCanvasContext","canvasToTempFilePath","canvasPutImageData","canvasGetImageData"],["getProvider","login","checkSession","getUserInfo","preLogin","closeAuthView","share","shareWithSystem","showShareMenu","hideShareMenu","requestPayment","subscribePush","unsubscribePush","onPush","offPush","requireNativePlugin","upx2px","restoreGlobal","getSubNVueById","getCurrentSubNVue","setPageMeta","onNativeEventReceive","sendNativeEvent","preloadPage","unPreloadPage","loadSubPackage"],["createRewardedVideoAd","createFullScreenVideoAd"]);try{var t={};Object.defineProperty(t,"passive",{get:function(){}}),window.addEventListener("test-passive",null,t)}catch(e){}var n=Object.prototype.toString,r=Object.prototype.hasOwnProperty;function O(e){return"function"==typeof e}function c(e){return null!==e&&"object"==typeof e}function E(e){return"[object Object]"===n.call(e)}function _(e,t){return r.call(e,t)}function i(){}function f(e){return n.call(e).slice(8,-1)}function o(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var a=/-(\w)/g,s=o(function(e){return e.replace(a,function(e,t){return t?t.toUpperCase():""})});function u(t,n){if(t===n)return!0;var e=c(t),r=c(n);if(!e||!r)return!e&&!r&&String(t)===String(n);try{var i=Array.isArray(t),o=Array.isArray(n);if(i&&o)return t.length===n.length&&t.every(function(e,t){return u(e,n[t])});if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(e){return u(t[e],n[e])})}catch(e){return!1}}var l=/[!'()*]/g,d=function(e){return"%"+e.charCodeAt(0).toString(16)},p=/%2C/g,h=function(e){return encodeURIComponent(e).replace(l,d).replace(p,",")},g=decodeURIComponent;function v(e){var i={};return(e=e.trim().replace(/^(\?|#|&)/,""))&&e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),n=g(t.shift()),r=0<t.length?g(t.join("=")):null;void 0===i[n]?i[n]=r:Array.isArray(i[n])?i[n].push(r):i[n]=[i[n],r]}),i}function w(r,i){void 0===i&&(i=h);var e=r?Object.keys(r).map(function(t){var e=r[t];if(void 0===e)return"";if(null===e)return i(t);if(Array.isArray(e)){var n=[];return e.forEach(function(e){void 0!==e&&(null===e?n.push(i(t)):n.push(i(t)+"="+i(e)))}),n.join("&")}return i(t)+"="+i(e)}).filter(function(e){return 0<e.length}).join("&"):null;return e?"?"+e:""}var m=0,y={};function b(e,t){var n=y[e]||{};delete y[e];var r=t.errMsg||"";new RegExp("\\:\\s*fail").test(r)?n.fail&&n.fail(t):n.success&&n.success(t),n.complete&&n.complete(t)}var k={warp:function(i){return function(e){void 0===e&&(e={});var t=String(m++);y[t]={success:e.success,fail:e.fail,complete:e.complete};var n=Object.assign({},e),r=i.bind(this)(n,t);r&&b(t,r)}},invoke:b};function A(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}function I(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var S=["invoke","success","fail","complete","returnValue"],x={},C={};function T(i,o){Object.keys(o).forEach(function(e){var t,n,r;-1!==S.indexOf(e)&&O(o[e])&&(i[e]=(t=i[e],n=o[e],(r=n?t?t.concat(n):Array.isArray(n)?n:[n]:t)?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(r):r))})}function $(i,o){i&&o&&Object.keys(o).forEach(function(e){var t,n,r;-1!==S.indexOf(e)&&O(o[e])&&(t=i[e],n=o[e],-1!==(r=t.indexOf(n))&&t.splice(r,1))})}function P(t){return function(e){return t(e)||e}}function M(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function j(e,t){for(var n=!1,r=0;r<e.length;r++){var i=e[r];if(n)n=Promise.resolve(P(i));else{var o=i(t);if(M(o)&&(n=Promise.resolve(o)),!1===o)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function B(r,e){return void 0===e&&(e={}),["success","fail","complete"].forEach(function(t){if(Array.isArray(r[t])){var n=e[t];e[t]=function(e){j(r[t],e).then(function(e){return O(n)&&n(e)||e})}}}),e}function N(e,t){var n=[];Array.isArray(x.returnValue)&&n.push.apply(n,x.returnValue);var r=C[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,r.returnValue),n.forEach(function(e){t=e(t)||t}),t}function D(e,t,n){for(var r=[],i=arguments.length-3;0<i--;)r[i]=arguments[i+3];var o=function(e){var t=Object.create(null);Object.keys(x).forEach(function(e){"returnValue"!==e&&(t[e]=x[e].slice())});var n=C[e];return n&&Object.keys(n).forEach(function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}(e);return o&&Object.keys(o).length?Array.isArray(o.invoke)?j(o.invoke,n).then(function(e){return t.apply(void 0,[B(o,e)].concat(r))}):t.apply(void 0,[B(o,n)].concat(r)):t.apply(void 0,[n].concat(r))}var L={returnValue:function(e){return M(e)?e.then(function(e){return e[1]}).catch(function(e){return e[0]}):e}},R=/^\$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/,F=/^create|Manager$/,z=["createBLEConnection"],U=["request","downloadFile","uploadFile","connectSocket"],V=["createBLEConnection"],q=/^on|^off/;function W(e){return R.test(e)&&-1===V.indexOf(e)}function H(e){return q.test(e)&&"onPush"!==e}function G(e){return t=e,!(F.test(t)&&-1===z.indexOf(t)||W(e)||H(e));var t}Promise.prototype.finally||(Promise.prototype.finally=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})})});var X=[{name:"base64",type:String,required:!0}],Y=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}],J=Object.freeze({__proto__:null,base64ToArrayBuffer:X,arrayBufferToBase64:Y}),K=[{name:"schema",type:String,required:!0}],Z=Object.freeze({__proto__:null,canIUse:K}),Q=[{name:"event",type:[String,Array],required:!0},{name:"callback",type:Function,required:!0}],ee=Q,te=[{name:"event",type:[String,Array]},{name:"callback",type:Function}],ne=[{name:"event",type:String,required:!0}],re=Object.freeze({__proto__:null,$on:Q,$once:ee,$off:te,$emit:ne}),ie=[{name:"method",type:[String,Object],required:!0}],oe=ie,ae=Object.freeze({__proto__:null,addInterceptor:ie,removeInterceptor:oe}),se=[{name:"upx",type:[Number,String],required:!0}],ce=Object.freeze({__proto__:null,upx2px:se});function ue(n){return function(e,t){e&&(t[n]=Math.round(e))}}var le={canvasId:{type:String,required:!0},x:{type:Number,required:!0,validator:ue("x")},y:{type:Number,required:!0,validator:ue("y")},width:{type:Number,required:!0,validator:ue("width")},height:{type:Number,required:!0,validator:ue("height")}},de={canvasId:{type:String,required:!0},data:{type:Uint8ClampedArray,required:!0},x:{type:Number,required:!0,validator:ue("x")},y:{type:Number,required:!0,validator:ue("y")},width:{type:Number,required:!0,validator:ue("width")},height:{type:Number,validator:ue("height")}},fe={PNG:"png",JPG:"jpg",JPEG:"jpg"},pe={x:{type:Number,default:0,validator:ue("x")},y:{type:Number,default:0,validator:ue("y")},width:{type:Number,validator:ue("width")},height:{type:Number,validator:ue("height")},destWidth:{type:Number,validator:ue("destWidth")},destHeight:{type:Number,validator:ue("destHeight")},canvasId:{type:String,required:!0},fileType:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.fileType=e in fe?fe[e]:fe.PNG}},quality:{type:Number,validator:function(e,t){e=Math.floor(e),t.quality=0<e&&e<1?e:1}}},he={canvasId:{type:String,required:!0},actions:{type:Array,required:!0},reserve:{type:Boolean,default:!1}},ve=Object.freeze({__proto__:null,canvasGetImageData:le,canvasPutImageData:de,canvasToTempFilePath:pe,drawCanvas:he}),ge=[{name:"id",type:String,required:!0}],me=ge,ye=ge,_e=ge,be=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}],we=Object.freeze({__proto__:null,createAudioContext:me,createVideoContext:ye,createMapContext:_e,createCanvasContext:be}),ke={phoneNumber:{type:String,required:!0,validator:function(e){if(!e)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}},Se=Object.freeze({__proto__:null,makePhoneCall:ke}),xe={onlyFromCamera:{type:Boolean},scanType:{type:Array},autoDecodeCharSet:{type:Boolean}},Ce=Object.freeze({__proto__:null,scanCode:xe}),Te={beforeSuccess:function(){zp.showToast({title:"内容已复制",icon:"success",mask:!1})}},Oe=Object.freeze({__proto__:null,setClipboardData:Te});function Ee(e,t){if(t){if(0===t.indexOf("/"))return t}else{if(0===(t=e).indexOf("/"))return t;var n=Vp();e=n.length?n[n.length-1].$page.route:""}if(0===t.indexOf("./"))return Ee(e,t.substr(2));for(var r=t.split("/"),i=r.length,o=0;o<i&&".."===r[o];o++);r.splice(0,o),t=r.join("/");var a=0<e.length?e.split("/"):[];return a.splice(a.length-o-1,o+1),"/"+a.concat(r).join("/")}var Ae,Ie=/^([a-z-]+:)?\/\//i,$e=/^data:.*,.*/;function Pe(e){return Mp.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,"")}function Me(e){return Ae||(Ae="file://"+Pe("_www")+"/"),Ae+e}function je(e){if(0===e.indexOf("/")){if(0!==e.indexOf("//"))return Me(e.substr(1));e="https:"+e}if(Ie.test(e)||$e.test(e)||0===e.indexOf("blob:"))return e;if(0===e.indexOf("_www")||0===e.indexOf("_do"))return"file://"+Pe(e);var t=Vp();return t.length?Me(Ee(t[t.length-1].$page.route,e).substr(1)):e}var Be={tempFilePath:{type:String,required:!0,validator:function(e,t){t.tempFilePath=je(e)}}},Ne=["md5","sha1"],De={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=je(e)}},digestAlgorithm:{type:String,validator:function(e,t){t.digestAlgorithm=Ne.includes(e)?e:Ne[0]},default:Ne[0]}},Le={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=je(e)}}},Re={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=je(e)}}},Fe=Object.freeze({__proto__:null,saveFile:Be,getFileInfo:De,getSavedFileInfo:Le,removeSavedFile:Re}),ze={filePath:{type:String,required:!0},fileType:{type:String}},Ue=Object.freeze({__proto__:null,openDocument:ze}),Ve={keyword:{type:String}},qe=Object.freeze({__proto__:null,chooseLocation:Ve}),We={WGS84:"WGS84",GCJ02:"GCJ02"},He={type:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.type=Object.values(We).indexOf(e)<0?We.WGS84:e},default:We.WGS84},altitude:{type:Boolean,default:!1}},Ge=Object.freeze({__proto__:null,getLocation:He}),Xe={latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},scale:{type:Number,validator:function(e,t){e=Math.floor(e),t.scale=5<=e&&e<=18?e:18},default:18},name:{type:String},address:{type:String}},Ye=Object.freeze({__proto__:null,openLocation:Xe}),Je=["all","image","video"],Ke=["album","camera"],Ze={count:{type:Number,required:!1,default:100,validator:function(e,t){e<=0&&(t.count=100)}},sourceType:{type:Array,required:!1,default:Ke,validator:function(e,t){e=e.filter(function(e){return Ke.includes(e)}),t.sourceType=e.length?e:Ke}},type:{type:String,required:!1,default:"all",validator:function(e,t){Je.includes(e)||(t.type=Je[0]),t.type="all"===t.type?t.type="*":t.type}},extension:{type:Array,default:[""]}},Qe=Object.freeze({__proto__:null,chooseFile:Ze}),et=["original","compressed"],tt=["album","camera"],nt={count:{type:Number,required:!1,default:9,validator:function(e,t){e<=0&&(t.count=9)}},sizeType:{type:[Array,String],required:!1,default:et,validator:function(e,t){e=(e="string"==typeof e?[e]:e).filter(function(e){return et.includes(e)}),t.sizeType=e.length?e:et}},sourceType:{type:Array,required:!1,default:tt,validator:function(e,t){e=e.filter(function(e){return tt.includes(e)}),t.sourceType=e.length?e:tt}},extension:{type:Array,default:["*"]}},rt=Object.freeze({__proto__:null,chooseImage:nt}),it=["album","camera"],ot={sourceType:{type:Array,required:!1,default:it,validator:function(e,t){e=e.filter(function(e){return it.includes(e)}),t.sourceType=e.length?e:it}},maxDuration:{type:Number,default:60},camera:{type:String,default:"back"},extension:{type:Array,default:["*"]}},at=Object.freeze({__proto__:null,chooseVideo:ot}),st={src:{type:String,required:!0,validator:function(e,t){t.src=je(e)}}},ct=Object.freeze({__proto__:null,getImageInfo:st}),ut={urls:{type:Array,required:!0,validator:function(e,t){var n;if(t.urls=e.map(function(e){if("string"==typeof e)return je(e);n=!0}),n)return"url is not string"}},current:{type:[String,Number],validator:function(e,t){"number"==typeof e?t.current=0<e&&e<t.urls.length?e:0:"string"==typeof e&&e&&(t.current=je(e))},default:0}},lt=Object.freeze({__proto__:null,previewImage:ut}),dt={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=je(e)}}},ft=Object.freeze({__proto__:null,saveImageToPhotosAlbum:dt}),pt={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}}},ht=Object.freeze({__proto__:null,downloadFile:pt}),vt={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},gt="json",mt={TEXT:"text",ARRAYBUFFER:"arraybuffer"},yt=encodeURIComponent;var _t,bt={method:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.method=Object.values(vt).indexOf(e)<0?vt.GET:e}},data:{type:[Object,String,Array,ArrayBuffer],validator:function(e,t){t.data=e||""}},url:{type:String,required:!0,validator:function(e,t){t.method===vt.GET&&E(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){var n=e.split("#"),r=n[1]||"",i=(n=n[0].split("?"))[1]||"";e=n[0];var o=i.split("&").filter(function(e){return e});for(var a in i={},o.forEach(function(e){e=e.split("="),i[e[0]]=e[1]}),t)if(_(t,a)){var s=t[a];null==s?s="":E(s)&&(s=JSON.stringify(s)),i[yt(a)]=yt(s)}return e+((i=Object.keys(i).map(function(e){return e+"="+i[e]}).join("&"))?"?"+i:"")+(r?"#"+r:"")}(e,t.data))}},header:{type:Object,validator:function(e,t){var n=t.header=e||{};t.method!==vt.GET&&(Object.keys(n).find(function(e){return"content-type"===e.toLowerCase()})||(n["Content-Type"]="application/json"))}},dataType:{type:String,validator:function(e,t){t.dataType=(e||gt).toLowerCase()}},responseType:{type:String,validator:function(e,t){e=(e||"").toLowerCase(),t.responseType=Object.values(mt).indexOf(e)<0?mt.TEXT:e}},withCredentials:{type:Boolean},timeout:{type:Number}},wt=Object.freeze({__proto__:null,request:bt}),kt={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},St={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}},method:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.method=Object.values(kt).indexOf(e)<0?kt.GET:e}},protocols:{type:[Array,String],validator:function(e,t){"string"==typeof e&&(e=[e]),t.protocols=(e||[]).filter(function(e){return"string"==typeof e})}}},xt={data:{type:[String,ArrayBuffer]}},Ct={code:{type:Number},reason:{type:String}},Tt=Object.freeze({__proto__:null,connectSocket:St,sendSocketMessage:xt,closeSocket:Ct}),Ot={url:{type:String,required:!0},files:{type:Array},filePath:{type:String,validator:function(e,t){e&&(t.type=je(e))}},name:{type:String},header:{type:Object,validator:function(e,t){t.header=e||{}}},formData:{type:Object,validator:function(e,t){t.formData=e||{}}}},Et=Object.freeze({__proto__:null,uploadFile:Ot}),At={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},It={service:{type:String,required:!0,validator:function(e,t){if((e=(e||"").toUpperCase())&&Object.values(At).indexOf(e)<0)return"service error"}}},$t=Object.freeze({__proto__:null,getProvider:It}),Pt={root:{type:String,required:!0,validator:function(t,e){var n=Rp.subPackages;return Array.isArray(n)&&0!==n.length?n.find(function(e){return e.root===t})?void 0:"root `"+t+"` is not found":"no subPackages"}}},Mt=Object.freeze({__proto__:null,loadSubPackage:Pt}),jt={UNIVERIFY:"univerify"},Bt={provider:{type:String,required:!0,default:jt.UNIVERIFY,validator:function(e,t){if(Object.values(jt).indexOf(e)<0)return"provider error"}}},Nt=Object.freeze({__proto__:null,preLogin:Bt});function Dt(a){return function(e,t){var r=(e=Ee(e)).split("?")[0],n=Fp.find(function(e){var t=e.path,n=e.alias;return t===r||n===r});if(!n)return"page `"+e+"` is not found";if("navigateTo"===a||"redirectTo"===a){if(n.meta.isTabBar)return"can not "+a+" a tabbar page"}else if("switchTab"===a&&!n.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==a&&"preloadPage"!==a||!n.meta.isTabBar||"appLaunch"===t.openType||(e=r),n.meta.isEntry&&(e=e.replace(n.alias,"/")),t.url=function(e){if("string"!=typeof e)return e;var t=e.indexOf("?");if(-1===t)return e;var n=e.substr(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.substr(0,t);var i=[];return n.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),n=t.shift(),r=0<t.length?t.join("="):"";i.push(n+"="+encodeURIComponent(r))}),i.length?e+"?"+i.join("&"):e}(e),"unPreloadPage"!==a)if("preloadPage"!==a){if(_t===e&&"appLaunch"!==t.openType)return _t+" locked";Rp.ready&&!1!==Rp.enableNavigatorLock&&(_t=e)}else{if(!n.meta.isNVue)return"can not preload vue page";if(n.meta.isTabBar){var i=Vp(!0),o=(n.alias||n.path).substr(1);if(i.find(function(e){return e.route===o}))return"tabBar page `"+o+"` already exists"}}}}function Lt(e,t){return void 0===t&&(t={}),Object.assign({url:{type:String,required:!0,validator:Dt(e)},beforeAll:function(){_t=""}},t)}function Rt(t){return{animationType:{type:String,validator:function(e){if(e&&-1===t.indexOf(e))return"`"+e+"` is not supported for `animationType` (supported values are: `"+t.join("`|`")+"`)"}},animationDuration:{type:Number}}}var Ft,zt,Ut=Lt("redirectTo"),Vt=Lt("reLaunch"),qt=Lt("navigateTo",Rt(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),Wt=Lt("switchTab"),Ht=Object.assign({delta:{type:Number,validator:function(e,t){e=parseInt(e)||1,t.delta=Math.min(Vp().length-1,e)}}},Rt(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"])),Gt={url:{type:String,required:!0,validator:Dt("preloadPage")}},Xt={url:{type:String,required:!0,validator:Dt("unPreloadPage")}},Yt=Object.freeze({__proto__:null,redirectTo:Ut,reLaunch:Vt,navigateTo:qt,switchTab:Wt,navigateBack:Ht,preloadPage:Gt,unPreloadPage:Xt}),Jt={key:{type:String,required:!0}},Kt=[{name:"key",type:String,required:!0}],Zt={key:{type:String,required:!0},data:{required:!0}},Qt=[{name:"key",type:String,required:!0},{name:"data",required:!0}],en=Jt,tn=Kt,nn=Object.freeze({__proto__:null,getStorage:Jt,getStorageSync:Kt,setStorage:Zt,setStorageSync:Qt,removeStorage:en,removeStorageSync:tn}),rn={family:{type:String,required:!0},source:{type:String,required:!0},desc:{type:Object,required:!1},success:{type:Function,required:!1},fail:{type:Function,required:!1},complete:{type:Function,required:!1}},on=Object.freeze({__proto__:null,loadFontFace:rn}),an=["#ffffff","#000000"],sn={frontColor:{type:String,required:!0,validator:function(e,t){if(-1===an.indexOf(e))return'invalid frontColor "'+e+'"'}},backgroundColor:{type:String,required:!0},animation:{type:Object,default:function(){return{duration:0,timingFunc:"linear"}},validator:function(e,t){void 0===e&&(e={}),t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},cn={title:{type:String,required:!0}},un=Object.freeze({__proto__:null,setNavigationBarColor:sn,setNavigationBarTitle:cn}),ln={scrollTop:{type:Number,required:!0},duration:{type:Number,default:300,validator:function(e,t){t.duration=Math.max(0,e)}}},dn=Object.freeze({__proto__:null,pageScrollTo:ln}),fn={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"确定"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}},pn={title:{type:String,default:""},icon:{default:"success",validator:function(e,t){-1===["success","loading","none"].indexOf(e)&&(t.icon="success")}},image:{type:String,default:"",validator:function(e,t){e&&(t.image=je(e))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},hn={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},vn={itemList:{type:Array,required:!0,validator:function(e,t){if(!e.length)return"parameter.itemList should have at least 1 item"}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!0},popover:{type:Object}},gn=Object.freeze({__proto__:null,showModal:fn,showToast:pn,showLoading:hn,showActionSheet:vn}),mn={type:Number,required:!0},yn={index:mn,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String},pagePath:{type:String}},_n={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},backgroundImage:{type:String,validator:function(e,t){e&&!/^(linear|radial)-gradient\(.+?\);?$/.test(e)&&(t.backgroundImage=je(e))}},backgroundRepeat:{type:String},borderStyle:{type:String,validator:function(e,t){e&&(t.borderStyle="black"===e?"black":"white")}}},bn={animation:{type:Boolean,default:!1}},wn={animation:{type:Boolean,default:!1}},kn={index:mn},Sn={index:mn},xn={index:mn},Cn={index:mn,text:{type:String,required:!0,validator:function(e,t){var n;void 0===(n=e)&&(n=""),4<=(""+n).replace(/[^\x00-\xff]/g,"**").length&&(t.text="...")}}},Tn=Object.freeze({__proto__:null,setTabBarItem:yn,setTabBarStyle:_n,hideTabBar:bn,showTabBar:wn,hideTabBarRedDot:kn,showTabBarRedDot:Sn,removeTabBarBadge:xn,setTabBarBadge:Cn}),On=Object.create(null),En=(Ft={"./base/base64.js":J,"./base/can-i-use.js":Z,"./base/event-bus.js":re,"./base/interceptor.js":ae,"./base/upx2px.js":ce,"./context/canvas.js":ve,"./context/context.js":we,"./device/make-phone-call.js":Se,"./device/scan-code.js":Ce,"./device/set-clipboard-data.js":Oe,"./file/file.js":Fe,"./file/open-document.js":Ue,"./location/choose-location.js":qe,"./location/get-location.js":Ge,"./location/open-location.js":Ye,"./media/choose-file.js":Qe,"./media/choose-image.js":rt,"./media/choose-video.js":at,"./media/get-image-info.js":ct,"./media/preview-image.js":lt,"./media/save-image-to-photos-album.js":ft,"./network/download-file.js":ht,"./network/request.js":wt,"./network/socket.js":Tt,"./network/upload-file.js":Et,"./plugin/get-provider.js":$t,"./plugin/load-sub-package.js":Mt,"./plugin/pre-login.js":Nt,"./route/route.js":Yt,"./storage/storage.js":nn,"./ui/load-font-face.js":on,"./ui/navigation-bar.js":un,"./ui/page-scroll-to.js":dn,"./ui/popup.js":gn,"./ui/tab-bar.js":Tn},(zt=function(e){return Ft[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}).keys=function(){return Object.keys(Ft)},zt);function An(e,t,n){var r=t[e],i=!_(n,e),o=n[e];if(-1<function(e,t){if(!Array.isArray(t))return Mn(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Mn(t[n],e))return n;return-1}(Boolean,r.type)&&i&&!_(r,"default")&&(o=!1),void 0===o&&_(r,"default")){var a=r.default;o=O(a)?a():a,n[e]=o}return function(e,t,n,r,i){if(e.required&&r)return"Missing required parameter `"+t+"`";if(null==n&&!e.required){var o=e.validator;return o?o(n,i):void 0}var a=e.type,s=!a||!0===a,c=[];if(a){Array.isArray(a)||(a=[a]);for(var u=0;u<a.length&&!s;u++){var l=$n(n,a[u]);c.push(l.expectedType||""),s=l.valid}}if(!s)return function(e,t,n){var r="parameter `"+e+"`. Expected "+n.join(", "),i=n[0],o=f(t),a=jn(t,i),s=jn(t,o);1===n.length&&Nn(i)&&!function(){var e=[],t=arguments.length;for(;t--;)e[t]=arguments[t];return e.some(function(e){return"boolean"===e.toLowerCase()})}(i,o)&&(r+=" with value "+a);r+=", got "+o+" ",Nn(o)&&(r+="with value "+s+".");return r}(t,n,c);var d=e.validator;if(d)return d(n,i)}(r,e,o,i,n)}En.keys().forEach(function(e){Object.assign(On,En(e))});var In=/^(String|Number|Boolean|Function|Symbol)$/;function $n(e,t){var n,r=Pn(t);if(In.test(r)){var i=typeof e;(n=i===r.toLowerCase())||"object"!==i||(n=e instanceof t)}else n=0<=e.byteLength||("Object"===r?E(e):"Array"===r?Array.isArray(e):e instanceof t||f(e)===Pn(t));return{valid:n,expectedType:r}}function Pn(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Mn(e,t){return Pn(e)===Pn(t)}function jn(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}var Bn=["string","number","boolean"];function Nn(t){return Bn.some(function(e){return t.toLowerCase()===e})}function Dn(e,t,n){var r=t+":fail "+e;if(-1===n)throw new Error(r);return"number"==typeof n&&qn(n,{errMsg:r}),!1}var Ln=[{name:"callback",type:Function,required:!0}],Rn=["beforeValidate","beforeAll","beforeSuccess"];function Fn(e,n,t){var r=On[e];if(!r&&H(e)&&(r=Ln),r){if(Array.isArray(r)&&Array.isArray(n)){var i=Object.create(null),o=Object.create(null),a=n.length;r.forEach(function(e,t){i[e.name]=e,t<a&&(o[e.name]=n[t])}),r=i,n=o}if(O(r.beforeValidate)){var s=r.beforeValidate(n);if(s)return Dn(s,e,t)}for(var c=Object.keys(r),u=0;u<c.length;u++)if(-1===Rn.indexOf(c[u])){var l=An(c[u],r,n);if(l)return Dn(l,e,t)}}return!0}var zn=1,Un={};function Vn(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r=function(i,e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!E(e))return{params:e};e=Object.assign({},e);var n={};for(var r in e){var o=e[r];O(o)&&(n[r]=I(o),delete e[r])}var a=n.success,s=n.fail,c=n.cancel,u=n.complete,l=O(a),d=O(s),f=O(c),p=O(u);if(!(l||d||f||p))return{params:e};var h={};for(var v in t){var g=t[v];O(g)&&(h[v]=A(g))}var m=h.beforeSuccess,y=h.afterSuccess,_=h.beforeFail,b=h.afterFail,w=h.beforeCancel,k=h.afterCancel,S=h.beforeAll,x=h.afterAll,C=zn++,T="api."+i+"."+C;return Un[C]={name:T,callback:function(e){if(e.errMsg=e.errMsg||i+":ok",-1!==e.errMsg.indexOf(":ok"))e.errMsg=i+":ok";else if(-1!==e.errMsg.indexOf(":cancel"))e.errMsg=i+":cancel";else if(-1!==e.errMsg.indexOf(":fail")){var t="",n=e.errMsg.indexOf(" ");-1<n&&(t=e.errMsg.substr(n)),e.errMsg=i+":fail"+t}O(S)&&S(e);var r=e.errMsg;0===r.indexOf(i+":ok")?(O(m)&&m(e),l&&a(e),O(y)&&y(e)):0===r.indexOf(i+":cancel")?(e.errMsg=e.errMsg.replace(i+":cancel",i+":fail cancel"),d&&s(e),O(w)&&w(e),f&&c(e),O(k)&&k(e)):0===r.indexOf(i+":fail")&&(O(_)&&_(e),d&&s(e),O(b)&&b(e)),p&&u(e),O(x)&&x(e)}},{params:e,callbackId:C}}(e,t,n),i=r.params,o=r.callbackId;return E(i)&&!Fn(e,i,o)?{params:i,callbackId:!1}:{params:i,callbackId:o}}function qn(e,t,n){if("number"==typeof e){var r=Un[e];if(r)return r.keepAlive||delete Un[e],r.callback(t,n)}return t}function Wn(t){return function(e){console.error("API `"+t+"` is not yet implemented")}}function Hn(c,u,l){return void 0===l&&(l={}),O(u)?(e=l,(t=On[c])&&(O(t.beforeAll)&&(e.beforeAll=t.beforeAll),O(t.beforeSuccess)&&(e.beforeSuccess=t.beforeSuccess)),function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];if(W(c)){if(Fn(c,t,-1))return u.apply(null,t)}else if(H(c)){if(Fn(c,t,-1))return u((c.startsWith("off")?function(e,t){for(var n in Un){var r=Un[n];if(r.name.startsWith("api."+e.replace(/^off/,"on"))&&r.callback===t)return delete Un[n],Number(n)}return"fail"}:function(e,t){var n=zn++,r="api."+e+"."+n;return Un[n]={name:r,keepAlive:!0,callback:t},n})(c,t[0]))}else{var r={};t.length&&(r=t[0]);var i,o=Vn(c,r,l),a=o.params,s=o.callbackId;if(!1!==s)return(i=O(a)?u(s):u(a,s))&&(e=c,-1===U.indexOf(e))&&E(i=qn(s,i))&&(i.errMsg=i.errMsg||c+":ok"),i}}):u;var e,t}function Gn(e,t){return e(t={exports:{}},t.exports),t.exports}var Xn=Gn(function(e,t){!function(){for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=new Uint8Array(256),e=0;e<o.length;e++)d[o.charCodeAt(e)]=e;t.encode=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=o[n[t]>>2],i+=o[(3&n[t])<<4|n[t+1]>>4],i+=o[(15&n[t+1])<<2|n[t+2]>>6],i+=o[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(e){var t,n,r,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),l=new Uint8Array(u);for(t=0;t<s;t+=4)n=d[e.charCodeAt(t)],r=d[e.charCodeAt(t+1)],i=d[e.charCodeAt(t+2)],o=d[e.charCodeAt(t+3)],l[c++]=n<<2|r>>4,l[c++]=(15&r)<<4|i>>2,l[c++]=(3&i)<<6|63&o;return u}}()}),Yn=Xn.encode,Jn=Xn.decode;var Kn=Object.freeze({__proto__:null,base64ToArrayBuffer:function(e){return Jn(e)},arrayBufferToBase64:function(e){return Yn(e)}}),Zn={};var Qn=Object.freeze({__proto__:null,canIUse:function(e){return!_(Zn,e)||Zn[e]}}),er={promiseInterceptor:L},tr=Object.freeze({__proto__:null,interceptors:er,addInterceptor:function(e,t){"string"==typeof e&&E(t)?T(C[e]||(C[e]={}),t):E(e)&&T(x,e)},removeInterceptor:function(e,t){"string"==typeof e?E(t)?$(C[e],t):delete C[e]:E(e)&&$(x,e)}}),nr=!1,rr=0,ir=0;function or(e,t){return e=Number(e),isNaN(e)?t:e}var ar=Object.freeze({__proto__:null,upx2px:function(e,t){var n,r,i,o;if(0===rr&&(n=zp.getSystemInfoSync(),r=n.platform,i=n.pixelRatio,o=n.windowWidth,rr=o,ir=i,nr="ios"===r),0===(e=Number(e)))return 0;var a=Rp.globalStyle||Rp.window||{},s=or(a.rpxCalcMaxDeviceWidth,960),c=or(a.rpxCalcBaseDeviceWidth,375),u=or(a.rpxCalcIncludeWidth,750),l=t||rr,d=e/750*(l=e===u||l<=s?l:c);return d<0&&(d=-d),0===(d=Math.floor(d+1e-4))&&(d=1!==ir&&nr?.5:1),e<0?-d:d}});function sr(e,t,n,r){jp.publishHandler(t+"-audio-"+e,{audioId:e,type:n,data:r},t)}var cr=function(e,t){this.id=e,this.pageId=t};cr.prototype.setSrc=function(e){sr(this.id,this.pageId,"setSrc",{src:e})},cr.prototype.play=function(){sr(this.id,this.pageId,"play")},cr.prototype.pause=function(){sr(this.id,this.pageId,"pause")},cr.prototype.seek=function(e){sr(this.id,this.pageId,"seek",{position:e})};var ur=Object.freeze({__proto__:null,createAudioContext:function(e,t){if(t)return new cr(e,t.$page.id);var n=Up();if(n.$route&&n.$route.params.__id__)return new cr(e,n.$route.params.__id__);jp.emit("onError","createAudioContext:fail")}}),lr=new $p;function dr(e,t,n){return e[t].apply(e,n)}function fr(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return dr(lr,"$on",[].concat(t))}function pr(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return dr(lr,"$off",[].concat(t))}function hr(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return dr(lr,"$once",[].concat(t))}function vr(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return dr(lr,"$emit",[].concat(t))}var gr,mr=Object.freeze({__proto__:null,$on:fr,$off:pr,$once:hr,$emit:vr});function yr(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return jp.invokeCallbackHandler.apply(jp,e)}function _r(e){return zp.requireNativePlugin(e)}function br(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return jp.emit.apply(jp,["api."+e].concat(t))}var wr=Mp.navigator.setStatusBarStyle;function kr(e){wr(gr=e)}function Sr(e){if(!e){var t=Vp();if(!t.length)return;if(!(e=t[t.length-1].$page.meta.statusBarStyle)||e===gr)return}e!==gr&&(gr=e,Mp.navigator.setStatusBarStyle(e))}function xr(t){if(void 0===t&&(t=""),!Rp.tabBar||!Array.isArray(Rp.tabBar.list))return!1;try{if(!t){var e=Vp();if(!e.length)return!1;var n=e[e.length-1];return!!n&&n.$page.meta.isTabBar}/^\//.test(t)||(t="/"+t);var r=Fp.find(function(e){return e.path===t});return r&&r.meta.isTabBar}catch(e){}return!1}function Cr(e){return Jn(e)}function Tr(e,t,n,r){var i=e(t);return i&&i.errMsg&&(i.errMsg=i.errMsg.replace(n,r)),i}function Or(){try{var e=Vp();if(e.length)return e[e.length-1].$getAppWebview()}catch(e){}}Mp.navigator.setStatusBarStyle=kr;var Er=function(e,t){if(0===t.indexOf("./"))return Er(e,t.substr(2));var n,r,i=t.split("/");for(n=0,r=i.length;n<r&&".."===i[n];n++);i.splice(0,n),t=i.join("/");var o=0<e.length?e.split("/"):[];return o.splice(o.length-n-1,n+1),o.concat(i).join("/")},Ar=function(e){return Mp.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,"")};function Ir(e){if(0===e.indexOf("//")&&(e="https:"+e),/^([a-z-]+:)?\/\//i.test(e)||/^data:.*,.*/.test(e))return e;if(0===e.indexOf("_www")||0===e.indexOf("_doc")||0===e.indexOf("_documents")||0===e.indexOf("_downloads"))return"file://"+Ar(e);var t="file://"+Ar("_www");if(0===e.indexOf("/"))return t+e;if(0===e.indexOf("../")||0===e.indexOf("./")){if("string"==typeof __id__)return t+Er("/"+__id__,e);var n=Vp();if(n.length)return t+Er("/"+n[n.length-1].route,e)}return e}var $r=3.141592653589793,Pr=6378245,Mr=.006693421622965943;var jr=function(e,t){var n=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*$r)+20*Math.sin(2*e*$r))/3,n+=2*(20*Math.sin(t*$r)+40*Math.sin(t/3*$r))/3,n+=2*(160*Math.sin(t/12*$r)+320*Math.sin(t*$r/30))/3},Br=function(e,t){var n=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*$r)+20*Math.sin(2*e*$r))/3,n+=2*(20*Math.sin(e*$r)+40*Math.sin(e/3*$r))/3,n+=2*(150*Math.sin(e/12*$r)+300*Math.sin(e/30*$r))/3},Nr=function(e,t){return e<72.004||137.8347<e||t<.8293||55.8271<t||!1};function Dr(e,n){return function(t){Mp[e][n](function(e){e&&(delete e.code,delete e.message),yr(t,e)})}}function Lr(a,s,c){return function(e){var t=(e=e||{}).code;void 0===t&&(t=0);var n=e.message,r={};for(var i in e)-1===["code","message"].indexOf(i)&&(r[i]=e[i]);var o=r;yr(a,Object.assign({},{errMsg:s+":fail "+(n||c||""),errCode:t,code:t},o))}}function Rr(n,r,i){return function(e,t){"function"==typeof i&&(e=i(e)),Mp[n][r](Object.assign(e,{success:function(e){void 0===e&&(e={}),delete e.code,delete e.message,yr(t,Object.assign({},e,{errMsg:r+":ok"}))},fail:Lr(t,r)}))}}function Fr(e){var t=e.split("/");return t[t.length-1]}var zr,Ur={},Vr=["play","canplay","ended","stop","waiting","seeking","seeked","pause"],qr=function(e,t){return void 0===t&&(t={}),br("onAudioStateChange",Object.assign({state:e},t))};var Wr=null,Hr=250,Gr=function(e,t){return void 0===t&&(t={}),br("onBackgroundAudioStateChange",Object.assign({state:e},t))},Xr=["play","pause","ended","stop","canplay"];function Yr(){zr||((zr=Mp.audio.createPlayer({autoplay:!0,backgroundControl:!0})).src=zr.title=zr.epname=zr.singer=zr.coverImgUrl=zr.webUrl="",zr.startTime=0,Xr.forEach(function(t){zr.addEventListener(t,function(){"play"===t?(zr.isStopped=!1,Jr(),Wr=Dp(function(){Gr("timeUpdate",{})},Hr)):"stop"===t&&(zr.isStopped=!0),"pause"!==t&&"ended"!==t&&"stop"!==t||Jr();var e="onMusic"+(t[0].toUpperCase()+t.substr(1));br(e,{dataUrl:zr.src,errMsg:e+":ok"}),Gr(t,{dataUrl:zr.src})})}),zr.addEventListener("waiting",function(){Jr(),Gr("waiting",{dataUrl:zr.src})}),zr.addEventListener("error",function(e){Jr(),br("onMusicError",{dataUrl:zr.src,errMsg:"Error:"+e.message}),Gr("error",{dataUrl:zr.src,errMsg:e.message,errCode:e.code})}),zr.addEventListener("prev",function(){return br("onBackgroundAudioPrev")}),zr.addEventListener("next",function(){return br("onBackgroundAudioNext")}))}function Jr(){null!==Wr&&Lp(Wr)}function Kr(n){Yr();var r=["src","startTime","coverImgUrl","webUrl","singer","epname","title"],i={};Object.keys(n).forEach(function(e){if(0<=r.indexOf(e)){var t=n[e];e===r[0]&&t&&(t=Ir(t)),zr[e]=i[e]=t}}),zr.setStyles(i)}function Zr(){return zr}function Qr(e){var t=e.operationType,n=e.dataUrl,r=e.position,i=e.api;void 0===i&&(i="operateMusicPlayer");var o=e.title,a=e.coverImgUrl,s=Zr();return 0<["resume","pause","stop"].indexOf(t)?s&&s[t]():"play"===t?(Kr({src:n,startTime:r,title:o,coverImgUrl:a}),s.play()):"seek"===t&&s&&s.seekTo(r),{errMsg:i+":ok"}}var ei="success",ti="fail",ni=[ei,ti,"complete"];function ri(e,t,n,r){if(e){if(void 0===n)return e[t]();var i=ai(n,r)[1];return Object.keys(i).length?e[t](si(t,i)):e[t]()}}function ii(e,t,n,r){if(e){var i=ai(n,r),o=i[0],a=i[1];return Object.keys(a).length?e[t](o,si(t,a)):e[t](o)}}function oi(e,t){var n=function e(t,n){if(!t||!n)return;if(n.attr&&n.attr.id===t)return n;var r=n.children;if(!r)return;for(var i=0,o=r.length;i<o;i++){var a=e(t,r[i]);if(a)return a}}(e,t.$el);return n||console.error("Can not find `"+e+"`")}function ai(n,e){void 0===n&&(n={});var r=Object.create(null),t=function(e){var t=n[e];O(t)&&(r[e]=t,delete n[e])};return ni.forEach(t),e&&e.forEach(t),[n,r]}function si(i,o){return function(e){var t=e.type;delete e.type;var n=o[t];if(t===ei?e.errMsg=i+":ok":t===ti&&(e.errMsg=i+":fail"+(e.msg?" "+e.msg:"")),delete e.code,delete e.msg,O(n)&&n(e),t===ei||t===ti){var r=o.complete;O(r)&&r(e)}}}var ci={getCenterLocation:function(e,t){return ri(e,"getCenterLocation",t)},moveToLocation:function(e,t){return ii(e,"moveToLocation",t)},translateMarker:function(e,t){return ii(e,"translateMarker",t,["animationEnd"])},includePoints:function(e,t){return ii(e,"includePoints",t)},getRegion:function(e,t){return ri(e,"getRegion",t)},getScale:function(e,t){return ri(e,"getScale",t)}};var ui={play:function(e){return ri(e,"play")},pause:function(e){return ri(e,"pause")},seek:function(e,t){return ii(e,"seek",t.position)},stop:function(e){return ri(e,"stop")},sendDanmu:function(e,t){return ii(e,"sendDanmu",t)},playbackRate:function(e,t){return ii(e,"playbackRate",t.rate)},requestFullScreen:function(e,t){return ii(e,"requestFullScreen",t)},exitFullScreen:function(e){return ri(e,"exitFullScreen")},showStatusBar:function(e){return ri(e,"showStatusBar")},hideStatusBar:function(e){return ri(e,"hideStatusBar")}};var li=function(e,t){this.id=e,this.ctx=t};li.prototype.start=function(e){return ri(this.ctx,"start",e)},li.prototype.stop=function(e){return ri(this.ctx,"stop",e)},li.prototype.pause=function(e){return ri(this.ctx,"pause",e)},li.prototype.resume=function(e){return ri(this.ctx,"resume",e)},li.prototype.switchCamera=function(e){return ri(this.ctx,"switchCamera",e)},li.prototype.snapshot=function(e){return ri(this.ctx,"snapshot",e)},li.prototype.toggleTorch=function(e){return ri(this.ctx,"toggleTorch",e)},li.prototype.playBGM=function(e){return ii(this.ctx,"playBGM",e)},li.prototype.stopBGM=function(e){return ri(this.ctx,"stopBGM",e)},li.prototype.pauseBGM=function(e){return ri(this.ctx,"pauseBGM",e)},li.prototype.resumeBGM=function(e){return ri(this.ctx,"resumeBGM",e)},li.prototype.setBGMVolume=function(e){return ii(this.ctx,"setBGMVolume",e)},li.prototype.startPreview=function(e){return ri(this.ctx,"startPreview",e)},li.prototype.stopPreview=function(e){return ri(this.ctx,"stopPreview",e)};var di,fi=200,pi=["unknown","none","ethernet","wifi","2g","3g","4g"],hi="__UNIAPP_MAP",vi="_doc/uniapp_temp",gi=vi+"_"+Date.now(),mi=[];function yi(e,t){di=di||Mp.accelerometer.watchAcceleration(function(t){mi.forEach(function(e){yr(e,{x:t.xAxis,y:t.yAxis,z:t.zAxis})})},function(e){di=null,yr(t,{errMsg:"startAccelerometer:fail "+e.message})},{frequency:fi}),Bp(function(){yr(t,{errMsg:"startAccelerometer:ok"})},fi)}function _i(){return di&&(Mp.accelerometer.clearWatch(di),di=null),{}}var bi=Dr("bluetooth","onBluetoothDeviceFound"),wi=Dr("bluetooth","onBluetoothAdapterStateChange"),ki=Dr("bluetooth","onBLEConnectionStateChange"),Si=Dr("bluetooth","onBLECharacteristicValueChange");function xi(e){void 0===e&&(e={});var t=e.deviceId;t&&(e.deviceId=t.toUpperCase());var n=e.serviceId;return n&&(e.serviceId=n.toUpperCase()),e}var Ci,Ti=Rr("bluetooth","openBluetoothAdapter"),Oi=Rr("bluetooth","closeBluetoothAdapter"),Ei=Rr("bluetooth","getBluetoothAdapterState"),Ai=Rr("bluetooth","startBluetoothDevicesDiscovery",xi),Ii=Rr("bluetooth","stopBluetoothDevicesDiscovery"),$i=Rr("bluetooth","getBluetoothDevices"),Pi=Rr("bluetooth","getConnectedBluetoothDevices",xi),Mi=Rr("bluetooth","createBLEConnection",xi),ji=Rr("bluetooth","closeBLEConnection",xi),Bi=Rr("bluetooth","getBLEDeviceServices",xi),Ni=Rr("bluetooth","getBLEDeviceCharacteristics",xi),Di=Rr("bluetooth","notifyBLECharacteristicValueChange",xi),Li=Rr("bluetooth","readBLECharacteristicValue",xi),Ri=Rr("bluetooth","writeBLECharacteristicValue",xi),Fi=Rr("bluetooth","setBLEMTU",xi),zi=Rr("bluetooth","getBLEDeviceRSSI",xi);var Ui=[];function Vi(e,t){Ci=Ci||Mp.orientation.watchOrientation(function(t){Ui.forEach(function(e){yr(e,{direction:t.magneticHeading})})},function(e){Ci=null,yr(t,{errMsg:"startCompass:fail "+e.message})},{frequency:fi}),Bp(function(){yr(t,{errMsg:"startCompass:ok"})},fi)}function qi(){return Ci&&(Mp.orientation.clearWatch(Ci),Ci=null),{}}var Wi=Dr("ibeacon","onBeaconUpdate"),Hi=Dr("ibeacon","onBeaconServiceChange"),Gi=Rr("ibeacon","getBeacons"),Xi=Rr("ibeacon","startBeaconDiscovery"),Yi=Rr("ibeacon","stopBeaconDiscovery");var Ji="Android"===Mp.os.name&&parseInt(Mp.os.version)<6,Ki=Ji?"slide-in-right":"pop-in",Zi=300,Qi=Ji?"slide-out-right":"pop-out",eo=50,to="_www/__uniappview.html",no="f",ro="i",io="e",oo="v-show",ao="c",so="s",co="sc",uo={},lo="WEB_INVOKE_APPSERVICE";function fo(e,t){if(e===lo)return br(lo,t.data,t.webviewIds),!0;var n=uo[e];return!!n&&(n(t),n.keepAlive||delete uo[e],!0)}function po(e,t,n){if(void 0===n&&(n=!0),uo[e])return console.warn(e+" 已注册:"+uo[e].toString());t.keepAlive=!!n,uo[e]=t}var ho="__UNIAPP_SCAN",vo="_www/__uniappscan.html",go="scanCode";var mo,yo,_o,bo,wo,ko=Object.freeze({__proto__:null,SCAN_ID:ho,SCAN_PATH:vo,scanCode:function(e,t){var n=e.onlyFromCamera;void 0===n&&(n=!1);var r=e.scanType,i=e.autoDecodeCharSet,o=Mp.barcode,a={qrCode:[o.QR,o.AZTEC,o.MAXICODE],barCode:[o.EAN13,o.EAN8,o.UPCA,o.UPCE,o.CODABAR,o.CODE128,o.CODE39,o.CODE93,o.ITF,o.RSS14,o.RSSEXPANDED],datamatrix:[o.DATAMATRIX],pdf417:[o.PDF417]},s={};s[o.QR]="QR_CODE",s[o.EAN13]="EAN_13",s[o.EAN8]="EAN_8",s[o.DATAMATRIX]="DATA_MATRIX",s[o.UPCA]="UPC_A",s[o.UPCE]="UPC_E",s[o.CODABAR]="CODABAR",s[o.CODE39]="CODE_39",s[o.CODE93]="CODE_93",s[o.CODE128]="CODE_128",s[o.ITF]="CODE_25",s[o.PDF417]="PDF_417",s[o.AZTEC]="AZTEC",s[o.RSS14]="RSS_14",s[o.RSSEXPANDED]="RSSEXPANDED";var c,u,l="light"!==("UIStatusBarStyleBlackTranslucent"===(c=Mp.navigator.getStatusBarStyle())||"UIStatusBarStyleBlackOpaque"===c||"null"===c?c="light":"UIStatusBarStyleDefault"===c&&(c="dark"),c),d=[];Array.isArray(r)&&r.length&&r.forEach(function(e){var t=a[e];t&&(d=d.concat(t))}),d.length||(d=d.concat(a.qrCode).concat(a.barCode).concat(a.datamatrix).concat(a.pdf417));var f=[];n||f.push({float:"right",text:"相册",fontSize:"17px",width:"60px",onclick:function(){Mp.gallery.pick(function(e){o.scan(e,function(e,t,n,r){l&&Mp.navigator.setStatusBarStyle("dark"),u={type:e,code:t,charSet:r},p.close("auto")},function(){Mp.nativeUI.toast("识别失败")},d,i)},function(e){12!==e.code&&Mp.nativeUI.toast("选择失败")},{multiple:!1,system:!1,filename:gi+"/gallery/",permissionAlert:!0})}});var p=Mp.webview.create(vo,ho,{titleNView:{autoBackButton:!0,type:"float",backgroundColor:"rgba(0,0,0,0)",titleColor:"#ffffff",titleText:"扫码",titleSize:"17px",buttons:f},popGesture:"close",backButtonAutoControl:"close"},{__uniapp_type:"scan",__uniapp_dark:l,__uniapp_scan_type:d,__uniapp_auto_decode_char_set:i,"uni-app":"none"}),h=Mp.nativeUI.showWaiting();p.addEventListener("titleUpdate",function(){p.show(Ki,Zi,function(){h.close()})}),p.addEventListener("close",function(){yr(t,u?{result:u.code,scanType:s[u.type]||"",charSet:u.charSet||"utf8",path:"",errMsg:"scanCode:ok"}:{errMsg:"scanCode:fail cancel"}),fo(go)}),l&&(Mp.navigator.setStatusBarStyle("light"),p.addEventListener("popGesture",function(e){var t=e.type,n=e.result;"start"===t?Mp.navigator.setStatusBarStyle("dark"):"end"!==t||n||Mp.navigator.setStatusBarStyle("light")})),po(go,function(e){e&&"code"in e&&(u=e)},!1)}});function So(){return"object"==typeof window&&"object"==typeof navigator&&"object"==typeof document?"webview":"v8"}function xo(){return mo.webview.currentWebview().id}var Co={};function To(e){var t=e.data&&e.data.__message;if(t&&t.__page){var n=t.__page,r=Co[n];r&&r(t),t.keep||delete Co[n]}}var Oo=function(e){this.webview=e};function Eo(e){var t=e.context;void 0===t&&(t={});var n=e.url,r=e.data;void 0===r&&(r={});var i=e.style;void 0===i&&(i={});var o=e.onMessage,a=e.onClose;mo=t.plus||Mp,yo=t.weex||("object"==typeof Pp?Pp:null),_o=t.BroadcastChannel||("object"==typeof BroadcastChannel?BroadcastChannel:null);var s="page"+Date.now();!1!==(i=Object.assign({},i)).titleNView&&"none"!==i.titleNView&&(i.titleNView=Object.assign({autoBackButton:!0,titleSize:"17px"},i.titleNView));var c={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:("object"==typeof process&&process.env&&process.env.VUE_APP_TEMPLATE_PATH||"")+"/"+n+".js",defaultFontSize:mo.screen.resolutionWidth/20,viewport:mo.screen.resolutionWidth}};i=Object.assign(c,i);var u,l,d=mo.webview.create("",s,i,{extras:{from:xo(),runtime:So(),data:r,useGlobalEvent:!_o}});return d.addEventListener("close",a),u=s,l=function(e){"function"==typeof o&&o(e.data),e.keep||d.close("auto")},"v8"===So()?_o?(bo&&bo.close(),(bo=new _o(xo())).onmessage=To):wo||(wo=yo.requireModule("globalEvent")).addEventListener("plusMessage",To):window.__plusMessage=To,Co[u]=l,d.show(i.animationType,i.animationDuration),new Oo(d)}Oo.prototype.sendMessage=function(e){var t={__message:{data:e}},n=this.webview.id;_o?new _o(n).postMessage(t):mo.webview.postMessageToUniNView(t,n)},Oo.prototype.close=function(){this.webview.close()};var Ao=Object.freeze({__proto__:null,scanCode:function(e,t){var n,r,i="light"!==("UIStatusBarStyleBlackTranslucent"===(n=Mp.navigator.getStatusBarStyle())||"UIStatusBarStyleBlackOpaque"===n||"null"===n?n="light":"UIStatusBarStyleDefault"===n&&(n="dark"),n),o=Eo({url:"__uniappscan",data:e,style:{animationType:e.animationType||"pop-in",titleNView:{autoBackButton:!0,type:"float",titleText:e.titleText||"扫码",titleColor:"#ffffff",backgroundColor:"rgba(0,0,0,0)",buttons:e.onlyFromCamera?[]:[{text:e.albumText||"相册",fontSize:"17px",width:"60px",onclick:function(){o.sendMessage({type:"gallery"})}}]},popGesture:"close",backButtonAutoControl:"close"},onMessage:function(e){var t=e.event,n=e.detail;(r=n).errMsg="marked"===t?"scanCode:ok":"scanCode:fail "+n.message},onClose:function(){i&&Mp.navigator.setStatusBarStyle("dark"),yr(t,r||{errMsg:"scanCode:fail cancel"})}});i&&(Mp.navigator.setStatusBarStyle("light"),o.webview.addEventListener("popGesture",function(e){var t=e.type,n=e.result;"start"===t?Mp.navigator.setStatusBarStyle("dark"):"end"!==t||n||Mp.navigator.setStatusBarStyle("light")}))}});function Io(){if("ios"!==Mp.os.name.toLowerCase())return!1;var e=_r("faceID");return!(!e||!e.isSupport())}function $o(){return!(!Mp.fingerprint||!Mp.fingerprint.isSupport())}function Po(){var e=[];return $o()&&e.push("fingerPrint"),Io()&&e.push("facial"),{supportMode:e,errMsg:"checkIsSupportSoterAuthentication:ok"}}function Mo(e){void 0===e&&(e={});var t=e.checkAuthMode;if("fingerPrint"===t)return $o()?{isEnrolled:Mp.fingerprint.isKeyguardSecure()&&Mp.fingerprint.isEnrolledFingerprints(),errMsg:"checkIsSoterEnrolledInDevice:ok"}:{isEnrolled:!1,errMsg:"checkIsSoterEnrolledInDevice:fail not support"};if("facial"===t){if(Io()){var n=_r("faceID");return{isEnrolled:n&&n.isKeyguardSecure()&&n.isEnrolledFaceID(),errMsg:"checkIsSoterEnrolledInDevice:ok"}}return{isEnrolled:!1,errMsg:"checkIsSoterEnrolledInDevice:fail not support"}}return{isEnrolled:!1,errMsg:"checkIsSoterEnrolledInDevice:fail not support"}}var jo,Bo,No=44,Do="iOS"===Mp.os.name,Lo=!0;var Ro=[],Fo={id:"0",init:function(e,n){e&&e.list.length&&(jo=e);try{Bo=_r("uni-tabview")}catch(e){console.log('uni.requireNativePlugin("uni-tabview") error '+e)}Bo.onMaskClick(function(){Ro.forEach(function(e){e()})}),Bo&&Bo.onClick(function(e){var t=e.index;n(jo.list[t],t)}),Bo&&Bo.onMidButtonClick(function(){br("onTabBarMidButtonTap",{})})},indexOf:function(e){var t=jo&&jo.list&&jo.list.length;if(t)for(var n=0;n<t;n++)if(jo.list[n].pagePath===e||jo.list[n].pagePath===e+".html")return n;return-1},switchTab:function(e){var t=this.indexOf(e);return 0<=t&&(Bo&&Bo.switchSelect({index:t}),!0)},setTabBarBadge:function(e,t,n){Bo&&("none"===e?(Bo.hideTabBarRedDot({index:t}),Bo.removeTabBarBadge({index:t})):"text"===e?Bo.setTabBarBadge({index:t,text:n}):"redDot"===e&&Bo.showTabBarRedDot({index:t}))},setTabBarItem:function(e,t,n,r){var i={index:e};void 0!==t&&(i.text=t),n&&(i.iconPath=Ir(n)),r&&(i.selectedIconPath=Ir(r)),Bo&&Bo.setTabBarItem(i)},setTabBarStyle:function(e){Bo&&Bo.setTabBarStyle(e)},hideTabBar:function(e){Lo=!1,Bo&&Bo.hideTabBar({animation:e})},showTabBar:function(e){Lo=!0,Bo&&Bo.showTabBar({animation:e})},append:function(t){var n=this;Bo&&Bo.append({id:t.id},function(e){0!==e.code&&Bp(function(){n.append(t)},20)})},get visible(){return Lo},get height(){return(jo&&jo.height?parseFloat(jo.height):50)+Mp.navigator.getSafeAreaInsets().deviceBottom},get cover(){return Do&&0<=["extralight","light","dark"].indexOf(jo.blurEffect)},setStyle:function(e){var t=e.mask;Bo.setMask({color:t})},addEventListener:function(e,t){Ro.push(t)},removeEventListener:function(e,t){var n=Ro.indexOf(t);Ro.splice(n,1)}};function zo(){return Mp.navigator.isImmersedStatusbar()?Math.round("iOS"===Mp.os.name?Mp.navigator.getSafeAreaInsets().top:Mp.navigator.getStatusbarHeight()):0}function Uo(){var e,t,n,r,i=Mp.os.name.toLowerCase(),o="ios"===i,a=(e=Mp.screen.getCurrentSize(),t=e.resolutionWidth,n=e.resolutionHeight,{screenWidth:Math.round(t),screenHeight:Math.round(n)}),s=a.screenWidth,c=a.screenHeight,u=zo(),l={height:0,cover:!1},d=Or();if(d){var f=d.getStyle();(f=f&&f.titleNView)&&f.type&&"none"!==f.type&&(l.height="transparent"===f.type?0:u+No,l.cover="transparent"===f.type||"float"===f.type),r=d.getSafeAreaInsets()}else r=Mp.navigator.getSafeAreaInsets();var p={height:0,cover:!1};xr()&&(p.height=Fo.visible?Fo.height:0,p.cover=Fo.cover);var h=l.cover?l.height:0,v=p.cover?p.height:0,g=c-l.height-p.height,m=c-(l.cover?0:l.height)-(p.cover?0:p.height),y=s;p.height&&!p.cover||r.bottom||!r.deviceBottom||(g-=r.deviceBottom,m-=r.deviceBottom);var _={left:(r=o?r:{left:0,right:0,top:l.height&&!l.cover?0:u,bottom:0}).left,right:y-r.right,top:r.top,bottom:m-r.bottom,width:y-r.left-r.right,height:m-r.top-r.bottom};return{errMsg:"getSystemInfo:ok",brand:Mp.device.vendor,model:Mp.device.model,pixelRatio:Mp.screen.scale,screenWidth:s,screenHeight:c,windowWidth:y,windowHeight:g,statusBarHeight:u,language:Mp.os.language,system:Mp.os.version,version:Mp.runtime.innerVersion,fontSizeSetting:"",platform:i,SDKVersion:"",windowTop:h,windowBottom:v,safeArea:_,safeAreaInsets:{top:r.top,right:r.right,bottom:r.bottom,left:r.left}}}var Vo="uniapp_save",qo="_doc/"+Vo;function Wo(t,n){n=n||function(){},Mp.io.requestFileSystem(Mp.io.PRIVATE_DOC,function(e){e.root.getDirectory(Vo,{create:!0},t,n)},n)}var Ho=0;var Go=Rr("io","getFileInfo");var Xo="chooseLocation";var Yo=Object.freeze({__proto__:null,chooseLocation:function(e,t){var n=Mp.navigator.getStatusBarStyle(),r=Mp.webview.create("_www/__uniappchooselocation.html",hi,{titleNView:{autoBackButton:!0,backgroundColor:"#000000",titleColor:"#ffffff",titleText:"选择位置",titleSize:"17px",buttons:[{float:"right",text:"完成",fontSize:"17px",width:"60px",onclick:function(){r.evalJS("__chooseLocationConfirm__()")}}]},popGesture:"close",scrollIndicator:"none"},{__uniapp_type:"map",__uniapp_statusbar_style:n,"uni-app":"none"});"dark"===n&&(Mp.navigator.setStatusBarStyle("light"),r.addEventListener("popGesture",function(e){var t=e.type,n=e.result;"start"===t?Mp.navigator.setStatusBarStyle("dark"):"end"!==t||n||Mp.navigator.setStatusBarStyle("light")}));var i,o=0,a=function(){2==++o&&r.evalJS("__chooseLocation__("+JSON.stringify(e)+")")};r.addEventListener("loaded",a),r.show("slide-in-bottom",Zi,a),r.addEventListener("close",function(){i?yr(t,{name:i.poiname,address:i.poiaddress,latitude:i.latlng.lat,longitude:i.latlng.lng,errMsg:"chooseLocation:ok"}):(fo(Xo),yr(t,{errMsg:"chooseLocation:fail cancel"}))}),po(Xo,function(e){e&&"latlng"in e&&(i=e)},!1)}});var Jo=Object.freeze({__proto__:null,chooseLocation:function(e,t){var n,r,i="light"!==("UIStatusBarStyleBlackTranslucent"===(n=Mp.navigator.getStatusBarStyle())||"UIStatusBarStyleBlackOpaque"===n||"null"===n?n="light":"UIStatusBarStyleDefault"===n&&(n="dark"),n),o=Eo({url:"__uniappchooselocation",data:e,style:{animationType:e.animationType||"slide-in-bottom",titleNView:!1,popGesture:"close",scrollIndicator:"none"},onMessage:function(e){var t=e.event,n=e.detail;"selected"===t&&((r=n).errMsg="chooseLocation:ok")},onClose:function(){i&&Mp.navigator.setStatusBarStyle("dark"),yr(t,r||{errMsg:"chooseLocation:fail cancel"})}});i&&(Mp.navigator.setStatusBarStyle("light"),o.webview.addEventListener("popGesture",function(e){var t=e.type,n=e.result;"start"===t?Mp.navigator.setStatusBarStyle("dark"):"end"!==t||n||Mp.navigator.setStatusBarStyle("light")}))}});function Ko(e,t,n){var r,i=t.coords;e!==t.coordsType&&("wgs84"===e?r=function(e,t){if(Nr(e=+e,t=+t))return[e,t];var n=jr(e-105,t-35),r=Br(e-105,t-35),i=t/180*$r,o=Math.sin(i);o=1-Mr*o*o;var a=Math.sqrt(o);return n=180*n/(Pr*(1-Mr)/(o*a)*$r),[2*e-(e+(r=180*r/(Pr/a*Math.cos(i)*$r))),2*t-(t+n)]}(i.longitude,i.latitude):"gcj02"===e&&(r=function(e,t){if(Nr(e=+e,t=+t))return[e,t];var n=jr(e-105,t-35),r=Br(e-105,t-35),i=t/180*$r,o=Math.sin(i);o=1-Mr*o*o;var a=Math.sqrt(o);return n=180*n/(Pr*(1-Mr)/(o*a)*$r),[e+(r=180*r/(Pr/a*Math.cos(i)*$r)),t+n]}(i.longitude,i.latitude)),r&&(i.longitude=r[0],i.latitude=r[1]));yr(n,{type:e,altitude:i.altitude||0,latitude:i.latitude,longitude:i.longitude,speed:i.speed,accuracy:i.accuracy,address:t.address,errMsg:"getLocation:ok"})}var Zo=Object.freeze({__proto__:null,openLocation:function(e){var t=Mp.navigator.getStatusBarStyle(),n=Mp.webview.create("_www/__uniappopenlocation.html",hi,{titleNView:{autoBackButton:!0,titleColor:"#ffffff",titleText:"",titleSize:"17px",type:"transparent"},popGesture:"close",scrollIndicator:"none"},{__uniapp_type:"map",__uniapp_statusbar_style:t,"uni-app":"none"});return"light"===t&&(Mp.navigator.setStatusBarStyle("dark"),n.addEventListener("popGesture",function(e){var t=e.type,n=e.result;"start"===t?Mp.navigator.setStatusBarStyle("light"):"end"!==t||n||Mp.navigator.setStatusBarStyle("dark")})),n.show(Ki,Zi,function(){n.evalJS("__openLocation__("+JSON.stringify(e)+")")}),{errMsg:"openLocation:ok"}}});var Qo=Object.freeze({__proto__:null,openLocation:function(e,t){return Eo({url:"__uniappopenlocation",data:e,style:{titleNView:{type:"transparent"},popGesture:"close",backButtonAutoControl:"close"},onClose:function(){yr(t,{errMsg:"openLocation:fail cancel"})}}),{errMsg:"openLocation:ok"}}});var ea,ta,na,ra,ia;function oa(e){return new Promise(function(t,n){Mp.io.resolveLocalFileSystemURL(e,function(e){e.getMetadata(t,n,!1)},n)})}var aa,sa,ca=Rr("io","getImageInfo",function(e){return e.savePath=e.filename=gi+"/download/",e});var ua=function(e,t){void 0===t&&(t={}),br("onRecorderStateChange",Object.assign({state:e},t))},la={start:function(e,t){var n=e.duration;void 0===n&&(n=6e4);var r=e.sampleRate,i=(e.numberOfChannels,e.encodeBitRate,e.format);void 0===i&&(i="mp3");e.frameSize;var o=e.audioSource;if(void 0===o&&(o="auto"),aa)return ua("start");(aa=Mp.audio.getRecorder()).record({format:i,samplerate:r,filename:gi+"/recorder/"},function(e){return ua("stop",{tempFilePath:e})},function(e){return ua("error",{errMsg:e.message})}),sa=Bp(function(){la.stop()},n),ua("start")},stop:function(){aa&&(aa.stop(),aa=!1,sa&&Np(sa))},pause:function(){aa&&ua("error",{errMsg:"暂不支持录音pause操作"})},resume:function(){aa&&ua("error",{errMsg:"暂不支持录音resume操作"})}};var da=0,fa={},pa=function(e){br("onDownloadTaskStateChange",e)};var ha=0,va={},ga=function(e){br("onRequestTaskStateChange",e),delete va[ha]},ma=function(e){var t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));for(var r=t.split(";"),i=0;i<r.length;i++)-1!==r[i].indexOf("Expires=")?n.push(r[i].replace(",","")):n.push(r[i]);return n=n.join(";").split(",")};function ya(a,e){void 0===e&&(e={});var t=e.url,n=e.data,r=e.header,i=e.method;void 0===i&&(i="GET");var s=e.responseType,o=e.sslVerify;void 0===o&&(o=!0);var c=e.firstIpv4;void 0===c&&(c=!1);var u=e.timeout;void 0===u&&(u=Rp.networkTimeout&&Rp.networkTimeout.request||6e4);var l,d,f=_r("stream"),p={},h=!1;for(var v in r)if(h||"content-type"!==v.toLowerCase())p[v]=r[v];else if(h=!0,p["Content-Type"]=r[v],"GET"!==i&&0===r[v].indexOf("application/x-www-form-urlencoded")&&"string"!=typeof n&&!(n instanceof ArrayBuffer)){var g=[];for(var m in n)_(n,m)&&g.push(encodeURIComponent(m)+"="+encodeURIComponent(n[m]));n=g.join("&")}h||"POST"!==i||(p["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),u&&(l=Bp(function(){d=!0,ga({requestTaskId:a,state:"fail",statusCode:0,errMsg:"timeout"})},u+200));var y={method:i,url:t.trim(),headers:p,type:"arraybuffer"===s?"base64":"text",timeout:u||6e5,sslVerify:!o,firstIpv4:c};"GET"!==i&&(y.body="string"==typeof n?n:JSON.stringify(n));try{f.fetch(y,function(e){var t=e.ok,n=e.status,r=e.data,i=e.headers;if(!d){l&&Np(l);var o=n;ga(0<o?{requestTaskId:a,state:"success",data:t&&"arraybuffer"===s?Cr(r):r,statusCode:o,header:i,cookies:ma(i)}:{requestTaskId:a,state:"fail",statusCode:o,errMsg:"abort statusCode:"+o})}}),va[a]={abort:function(){d=!0,l&&Np(l),ga({requestTaskId:a,state:"fail",statusCode:0,errMsg:"abort"})}}}catch(e){return{requestTaskId:a,errMsg:"createRequestTask:fail"}}return{requestTaskId:a,errMsg:"createRequestTask:ok"}}var _a,ba={},wa=function(e){br("onSocketTaskStateChange",e)};var ka=function(e,t){void 0===t&&(t={});var n=t.url,r=(t.data,t.header),i=(t.method,t.protocols),o=_a||((_a=_r("uni-webSocket")).onopen(function(e){wa({socketTaskId:e.id,state:"open"})}),_a.onmessage(function(e){var t=e.data;wa({socketTaskId:e.id,state:"message",data:"object"==typeof t?Cr(t.base64):t})}),_a.onerror(function(e){wa({socketTaskId:e.id,state:"error",errMsg:e.data})}),_a.onclose(function(e){var t=e.id;delete ba[t],wa({socketTaskId:t,state:"close"})}),_a);return o.WebSocket({id:e,url:n,protocol:Array.isArray(i)?i.join(","):i,header:r}),ba[e]=o,{socketTaskId:e,errMsg:"createSocketTask:ok"}};var Sa=0,xa={},Ca=function(e){br("onUploadTaskStateChange",e)};var Ta,Oa={oauth:function(t){Mp.oauth.getServices(function(e){var n=[];e.forEach(function(e){var t=e.id;n.push(t)}),t(null,n)},function(e){t(e)})},share:function(t){Mp.share.getServices(function(e){var n=[];e.forEach(function(e){var t=e.id;n.push(t)}),t(null,n)},function(e){t(e)})},payment:function(t){Mp.payment.getChannels(function(e){var n=[];e.forEach(function(e){var t=e.id;n.push(t)}),t(null,n)},function(e){t(e)})},push:function(e){e(null,void 0!==Pp||void 0!==Mp?[Mp.push.getClientInfo().id]:[])}};function Ea(i){return new Promise(function(n,r){Mp.oauth.getServices(function(e){var t=e.find(function(e){return e.id===i});t?n(t):r(new Error("provider not find"))},r)})}function Aa(a,s){var c=a.provider||"weixin",e=Lr(s,"operateWXData");Ea(c).then(function(o){o.getUserInfo(function(e){var t;if("weixin"===c){var n=o.userInfo;t={openId:n.openid,nickName:n.nickname,gender:n.sex,city:n.city,province:n.province,country:n.country,avatarUrl:n.headimgurl,unionId:n.unionid}}else if("apple"===c){var r=o.appleInfo;t={openId:r.user,fullName:r.fullName,email:r.email,authorizationCode:r.authorizationCode,identityToken:r.identityToken,realUserStatus:r.realUserStatus}}else(t=o.userInfo).openId=t.openId||t.openid||o.authResult.openid,t.nickName=t.nickName||t.nickname,t.avatarUrl=t.avatarUrl||t.headimgurl;var i={errMsg:"operateWXData:ok"};a.data&&"webapi_getuserinfo"===a.data.api_name?i.data={data:JSON.stringify(t),rawData:"",signature:"",encryptedData:"",iv:""}:i.userInfo=t,yr(s,i)},e)}).catch(function(){yr(s,{errMsg:"operateWXData:fail:请先调用 uni.login"})})}var Ia=!1,$a=!1;function Pa(e){return Pp.requireModule(e)}var Ma={0:{name:"web",title:"图文"},1:{name:"text",title:"纯文字"},2:{name:"image",title:"纯图片"},3:{name:"music",title:"音乐"},4:{name:"video",title:"视频"},5:{name:"miniProgram",title:"小程序"}},ja=function(e,t,n){e.type=e.type||0;var r=e.provider,i=e.type,o=e.title,a=e.summary,s=e.href,c=e.imageUrl,u=e.mediaUrl,l=e.scene,d=e.miniProgram;"string"==typeof c&&c&&(c=Ir(c));var f=Ma[i+""];if(f){var p={provider:r,type:f.name,title:o,content:a,href:s,pictures:[c],thumbs:[c],media:u,miniProgram:d,extra:{scene:l}};return"weixin"!==r||1!==i&&2!==i||delete p.thumbs,p}return"分享参数 type 不正确"},Ba=function(e,t,n,r){void 0===r&&(r="share");var i=Lr(n,r);e.send(t,function(){yr(n,{errMsg:r+":ok"})},i)};function Na(n,r,i){void 0===i&&(i="share"),n=ja(n);var o=Lr(r,i);if("string"==typeof n)return yr(r,{errMsg:i+":fail "+n});var a=n.provider;Mp.share.getServices(function(e){var t=e.find(function(e){return e.id===a});t?t.authenticated?Ba(t,n,r):t.authorize(function(){return Ba(t,n,r)},o):yr(r,{errMsg:i+":fail 分享服务["+a+"]不存在"})},o)}function Da(n){n.$processed=!0,n.postMessage=function(e){Mp.webview.postMessageToUniNView({type:"UniAppSubNVue",data:e},n.id)};var r=[];if(n.onMessage=function(e){r.push(e)},n.$consumeMessage=function(t){r.forEach(function(e){return e(t)})},n.__uniapp_mask_id){var i=n.__uniapp_mask,o="0"===n.__uniapp_mask_id?{setStyle:function(e){var t=e.mask;Pa("uni-tabview").setMask({color:t})}}:Mp.webview.getWebviewById(n.__uniapp_mask_id),a=n.show,s=n.hide,c=n.close,u=function(){o.setStyle({mask:"none"})};n.show=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return o.setStyle({mask:i}),a.apply(n,e)},n.hide=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return u(),s.apply(n,e)},n.close=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return u(),r=[],c.apply(n,e)}}}function La(e){var t=Mp.webview.getWebviewById(e);if(null==t)throw new Error("Unable to find SubNVue, id="+e);t&&!t.$processed&&Da(t);var n=t.setStyle,r=Mp.webview.getWebviewById(t.__uniapp_mask_id);return t.setStyle=function(e){e&&e.mask&&(r&&r.setStyle({mask:e.mask}),delete e.mask),n.call(this,e)},t}var Ra=[];jp.on("api.uniMPNativeEvent",function(t){Ra.forEach(function(e){yr(e,t.event,t.data)})});var Fa=[];function za(t,e){var n=!1,r=Rp.subPackages;if(Array.isArray(r)){var i=r.find(function(e){return 0===t.indexOf(e.root)});i&&(n=!0,function(e,t){if(-1!==Fa.indexOf(e))return t();Va([e],function(){t()})}(i.root,e))}n||e()}var Ua="app-sub-service.js";function Va(e,t){var n,r;n=e.map(function(e){return Fa.push(e),e+"/"+Ua}),r=function(e){t&&t(!0)},Rp.onServiceReady(function(){Pp.requireModule("plus").evalJSFiles(n,r)})}var qa=2,Wa="vdSync",Ha="webviewReady",Ga="vdSyncCallback",Xa="invokeApi",Ya="WEB_INVOKE_APPSERVICE",Ja="webviewInserted",Ka="webviewRemoved",Za="webviewId";function Qa(e){var t=e.buttons;return Array.isArray(t)&&t.forEach(function(e,t){var r;e.onclick=(r=t,function(e){var t=Vp();if(t.length){e.index=r;var n=t[t.length-1];n.$vm&&n.$vm.__call_hook&&n.$vm.__call_hook("onNavigationBarButtonTap",e)}})}),e}var es=/(\d+(\.\d+)?)[r|u]px/g;function ts(t){var n={},e=JSON.stringify(t);if(~e.indexOf("upx")||~e.indexOf("rpx"))try{n=JSON.parse(e.replace(es,function(e,t){return zp.upx2px(parseInt(t)||0)+"px"}))}catch(e){n=t,console.error(e)}else n=JSON.parse(e);return n}var ns,rs=["navigationBarBackgroundColor","navigationBarTextStyle","navigationBarTitleText","navigationBarShadow","navigationStyle","disableScroll","backgroundColor","backgroundTextStyle","enablePullDownRefresh","onReachBottomDistance","usingComponents","titleNView","pullToRefresh"];function is(e,t,n){void 0===n&&(n={});var r={bounce:"vertical"};n.window=ts(Object.assign(JSON.parse(JSON.stringify(Rp.window||{})),n.window||{})),Object.keys(n.window).forEach(function(e){-1===rs.indexOf(e)&&(r[e]=n.window[e])});var i=n.window.backgroundColor;i&&(r.background||(r.background=i),r.backgroundColorTop||(r.backgroundColorTop=i));var o=function(e){var t=e.window,n=t.titleNView;if(e.meta.statusBarStyle="black"===t.navigationBarTextStyle?"dark":"light",!1===n||"false"===n||"custom"===t.navigationStyle&&!E(n)||"always"===t.transparentTitle&&!E(n))return!1;var r=t.titleImage||"",i=t.transparentTitle||"none",o={autoBackButton:!e.meta.isQuit,titleText:""===r&&t.navigationBarTitleText||"",titleColor:"black"===t.navigationBarTextStyle?"#000000":"#ffffff",type:{none:"default",auto:"transparent",always:"float"}[i],backgroundColor:t.navigationBarBackgroundColor||"#f8f8f8",tags:""===r?[]:[{tag:"img",src:r,position:{left:"auto",top:"auto",width:"auto",height:"26px"}}]};return E(n)?Object.assign(o,Qa(n)):o}(n);o&&(1===e&&Rp.realEntryPagePath&&!n.meta.isQuit&&(o.autoBackButton=!0),r.titleNView=o);var a=function(e){var t=e.window;if(t.enablePullDownRefresh||t.pullToRefresh&&t.pullToRefresh.support){var n=Object.create(null);return"Android"===Mp.os.name?Object.assign(n,{support:!0,style:"circle"}):Object.assign(n,{support:!0,style:"default",height:"50px",range:"200px",contentdown:{caption:""},contentover:{caption:""},contentrefresh:{caption:""}}),t.backgroundTextStyle&&(n.color=t.backgroundTextStyle,n.snowColor=t.backgroundTextStyle),Object.assign(n,t.pullToRefresh||{}),n}}(n);return a&&("circle"===a.style&&(r.bounce="none"),r.pullToRefresh=a),"hide"===r.popGesture&&delete r.popGesture,n.meta.isQuit&&(r.popGesture="iOS"===Mp.os.name?"appback":"none"),t&&n.meta.isNVue&&(r.uniNView={path:t,defaultFontSize:Rp.defaultFontSize,viewport:Rp.viewport}),r}function os(){zp.navigateBack({from:"backbutton"})}function as(e,t,n){if(e.path){var r=e.style||{},i="navigationBar"===e.type,o="popup"===e.type;delete r.type,o&&!e.id&&console.warn("subNVue["+e.path+"] 尚未配置 id"),r.uniNView={path:e.path.replace(".nvue",".js"),defaultFontSize:Rp.defaultFontSize,viewport:Rp.viewport};var a,s={__uniapp_host:t.path,__uniapp_origin:r.uniNView.path.split("?")[0].replace(".js",""),__uniapp_origin_id:n.id,__uniapp_origin_type:n.__uniapp_type};i?(r.position="dock",r.dock="top",r.top=0,r.width="100%",r.height=No+zo(),delete r.left,delete r.right,delete r.bottom,delete r.margin):o&&(r.position="absolute",a=xr(t.path)?Fo:n,s.__uniapp_mask=r.mask||"rgba(0,0,0,0.5)",s.__uniapp_mask_id=a.id),delete r.mask;var c,u=Mp.webview.create("",e.id,r,s);o?function(e,t,n){n.popupSubNVueWebviews||(n.popupSubNVueWebviews={}),n.popupSubNVueWebviews[e.id]=e;var r=function(){n.setStyle({mask:"none"}),e.hide("auto")};n.addEventListener("maskClick",r);var i=!1;e.addEventListener("show",function(){i||(Mp.key.removeEventListener("backbutton",os),Mp.key.addEventListener("backbutton",r),i=!0)}),e.addEventListener("hide",function(){i&&(Mp.key.removeEventListener("backbutton",r),Mp.key.addEventListener("backbutton",os),i=!1)}),e.addEventListener("close",function(){delete n.popupSubNVueWebviews[e.id],i&&(Mp.key.removeEventListener("backbutton",r),Mp.key.addEventListener("backbutton",os),i=!1)})}(u,0,a):(c=u,n.append(c))}}function ss(i){var n,r,o,e;i.addEventListener("resize",(n=function(e){var t=e.width,n=e.height,r={deviceOrientation:90===Math.abs(Mp.navigator.getOrientation())?"landscape":"portrait",size:{windowWidth:Math.ceil(t),windowHeight:Math.ceil(n)}};br("onViewDidResize",r),jp.emit("onResize",r,parseInt(i.id))},r=50,(e=function(){var e=arguments,t=this;Np(o),o=Bp(function(){return n.apply(t,e)},r)}).cancel=function(){Np(o)},e))}var cs=2,us={pullToRefresh:"onPullDownRefresh",titleNViewSearchInputChanged:"onNavigationBarSearchInputChanged",titleNViewSearchInputConfirmed:"onNavigationBarSearchInputConfirmed",titleNViewSearchInputClicked:"onNavigationBarSearchInputClicked",titleNViewSearchInputFocusChanged:"onNavigationBarSearchInputFocusChanged"};function ls(e){ns=e}function ds(e){return e}function fs(e,t){var n=t?w(t,ds):"";return{path:e.substr(1),query:n?n.substr(1):n}}function ps(e,t,n,r){if(void 0===r&&(r={}),t.meta.isNVue){var i=cs++,o=is(i,e,t);return o.uniPageUrl=fs(e,n),o.isTab=!!t.meta.isTabBar,Mp.webview.create("",String(i),o,Object.assign({nvue:!0},r))}return 2===cs?Mp.webview.getLaunchWebview():ns}function hs(n,e,t,r){if("1"===n.id||!e.meta.isNVue){var i=is(parseInt(n.id),"",e);i.uniPageUrl=fs(t,r),e.meta.isNVue?i.isTab=!!e.meta.isTabBar:i.debugRefresh=(o=t,s=e,c=(a=r)?w(a,ds):"",{isTab:s.meta.isTabBar,arguments:JSON.stringify({path:o.substr(1),query:c?c.substr(1):c})}),n.setStyle(i)}var o,a,s,c,u,l,d,f,p,h,v,g,m,y,_=jp.on,b=jp.emit;return l=n,(d=(u=e).window.subNVues)&&d.length&&d.forEach(function(e){as(e,u,l)}),Object.keys(us).forEach(function(t){n.addEventListener(t,function(e){b(us[t],e,parseInt(n.id))})}),(f=n).popupSubNVueWebviews&&f.addEventListener("close",function(){Object.keys(f.popupSubNVueWebviews).forEach(function(e){f.popupSubNVueWebviews[e].close("none")})}),ss(n),"iOS"===Mp.os.name&&(!n.nvue&&(h=n,v=jp.subscribe,g=jp.unsubscribe,m=h.id,y=function(e,t){if(m===t){g(Ha,y),t=parseInt(t);var n=Vp(!0).find(function(e){return e.$page.id===t});if(!n)return console.error("Page["+t+"] not found");n.$vm._$vd.restore()}},h.addEventListener("recovery",function(e){v(Ha,y)})),n.addEventListener("popGesture",function(e){if("start"===e.type){var t=Vp(),n=t[t.length-2];p=gr;var r=n&&n.$page.meta.statusBarStyle;r&&Sr(r)}else if("end"!==e.type||e.result){if("end"===e.type&&e.result){var i=Vp(),o=i[i.length-1];o&&o.$remove(),Sr(),jp.emit("onAppRoute",{type:"navigateBack"})}}else Sr(p)})),_(n.id+".startPullDownRefresh",function(){n.beginPullToRefresh()}),_(n.id+".stopPullDownRefresh",function(){n.endPullToRefresh()}),n}var vs={};function gs(e,t){(vs[e]||(vs[e]=[])).push(t)}var ms=!1;function ys(t,e,n){ms={path:t,nvue:Fp.find(function(e){return e.path===t}).meta.isNVue,navigate:e}}function _s(e,t,n){if(n&&Rp.splashscreen&&Rp.splashscreen.autoclose&&!Rp.splashscreen.alwaysShowBeforeRender&&Mp.navigator.closeSplashscreen(),!n&&ms)return console.error("已存在待跳转页面"+ms.path+",请不要连续多次跳转页面"+e);if("native"===Rp.renderer)return 0===Vp().length?ys(e,t):t();var r=!ns||ns&&ns.__uniapp_route,i=ns&&!ns.loaded;r||i?ys(e,t):t(),i&&gs(ns.id,bs)}function bs(){if(ms){var e=ms.navigate;return ms=!1,e()}}function ws(){if("native"===Rp.renderer){if(!ms)return;return ms.nvue?bs():void 0}var e=(ns&&!ns.__uniapp_route||(ns=Mp.webview.create(to,String(cs++))),ns);if(ms)return ms.nvue?bs():void(e.loaded?ms.navigate():gs(e.id,bs))}function ks(e,t,n){e[e.__preload__?"hide":"close"](t,n)}function Ss(n,r,e,i,t){void 0===t&&(t=n.nvue?0:100);var o=(e=void 0===e?Zi:parseInt(e))||Zi;Bp(function(){var e=function(){e._called||(e._called=!0,i&&i(),ws())},t=Bp(function(){e()},o+150);n.show(r||Ki,o,function(){e._called||Np(t),e()})},t)}var xs=0;function Cs(t,n,r){var i=Vp(),o=i.length,a=i[o-1];1<t&&i.slice(o-t,o-1).reverse().forEach(function(e){ks(e.$getAppWebview(),"none")});var e=function(e){n?ks(e,n,r||Zi):"redirect"===a.$page.openType?ks(e,Qi,Zi):ks(e,"auto"),i.slice(o-t,o).forEach(function(e){return e.$remove()}),Sr(),jp.emit("onAppRoute",{type:"navigateBack"})},s=a.$getAppWebview();if(!a.__uniapp_webview)return e(s);!function(e,t){var n=e.children();if(!n||!n.length)return t();var r=n.find(function(e){return 0===e.id.indexOf(Za)})||n[0];r.canBack(function(e){e.canBack?r.back():t()})}(s,function(){e(s)})}function Ts(e){var t=e.from;void 0===t&&(t="navigateBack");var n=e.delta,r=e.animationType,i=e.animationDuration,o=Vp(),a=o[o.length-1];if(!(a.$vm&&a.$vm.$options.onBackPress&&a.$vm.__call_hook&&a.$vm.__call_hook("onBackPress",{from:t})))return zp.hideToast(),zp.hideLoading(),a.$page.meta.isQuit?xs?Date.now()-xs<2e3&&Mp.runtime.quit():(xs=Date.now(),Mp.nativeUI.toast("再按一次退出应用"),Bp(function(){xs=null},2e3)):1===a.$page.id&&Rp.realEntryPagePath?(Rp.entryPagePath=Rp.realEntryPagePath,delete Rp.realEntryPagePath,zp.reLaunch({url:"/"+Rp.entryPagePath})):Cs(n,r,i),{errMsg:"navigateBack:ok"}}var Os=function(e,t){var n=this;this.id=e,this.listener={},this.emitCache={},t&&Object.keys(t).forEach(function(e){n.on(e,t[e])})};Os.prototype.emit=function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];var r=this.listener[e];if(!r)return(this.emitCache[e]||(this.emitCache[e]=[])).push(t);r.forEach(function(e){e.fn.apply(e.fn,t)}),this.listener[e]=r.filter(function(e){return"once"!==e.type})},Os.prototype.on=function(e,t){this._addListener(e,"on",t),this._clearCache(e)},Os.prototype.once=function(e,t){this._addListener(e,"once",t),this._clearCache(e)},Os.prototype.off=function(e,t){var n=this.listener[e];if(n)if(t)for(var r=0;r<n.length;)n[r].fn===t&&(n.splice(r,1),r--),r++;else delete this.listener[e]},Os.prototype._clearCache=function(e){var t=this.emitCache[e];if(t)for(;0<t.length;)this.emit.apply(this,[e].concat(t.shift()))},Os.prototype._addListener=function(e,t,n){(this.listener[e]||(this.listener[e]=[])).push({fn:n,type:t})};var Es=0;var As=Object.create(null);var Is=o(function(e){return As[e]()});var $s=!1;function Ps(){if(!$s){var e,t;$s=!0;var n=Pp.requireModule("plus");if(n.getRedirectInfo){var r=n.getRedirectInfo()||{};e=r.path,t=r.query?"?"+r.query:""}else{var i=Mp.runtime.arguments;if(!i)return;try{var o=JSON.parse(i);e=o.path||o.pathName,t=o.query?"?"+o.query:""}catch(e){}}if(e&&e!==Rp.entryPagePath){var a="/"+e,s=Fp.find(function(e){return e.path===a});s&&(s.meta.isTabBar||(Rp.realEntryPagePath=Rp.realEntryPagePath||Rp.entryPagePath),Rp.entryPagePath=e,Rp.entryPageQuery=t)}else t&&(Rp.entryPageQuery=t)}}var Ms=[];function js(e){return e?Ms.slice(0):Ms.filter(function(e){return!e.$page.meta.isTabBar||e.$page.meta.visible})}var Bs={};function Ns(e){var t=e.url,n=e.path,i=e.query,r=e.openType,o=e.webview,a=e.eventChannel;if(o&&Ps(),Bs[t]&&(o=Bs[t]).__page__){if(!js(!0).find(function(e){return e===o.__page__}))return a&&(o.__page__.eventChannel=a),Ms.push(o.__page__),o;o=null}var s=JSON.parse(JSON.stringify(Fp.find(function(e){return e.path===n})));"reLaunch"===r||!Rp.realEntryPagePath&&0===js().length?s.meta.isQuit=!0:s.meta.isTabBar||(s.meta.isQuit=!1),o?(o=Mp.webview.getWebviewById(o.id)).nvue=s.meta.isNVue:o=ps(n,s,i),s.meta.isTabBar&&(s.meta.visible=!0),s.meta.isTabBar&&Fo.append(o);var c="1"===o.id&&o.nvue;hs(o,s,n,i);var u=n.slice(1),l={route:o.__uniapp_route=u,options:Object.assign({},i||{}),$getAppWebview:function(){return Mp.webview.getWebviewById(o.id)},eventChannel:a,$page:{id:parseInt(o.id),meta:s.meta,path:n,route:u,fullPath:t,openType:r},$remove:function(){var t=this,e=Ms.findIndex(function(e){return e===t});-1!==e&&(o.nvue||this.$vm.$destroy(),Ms.splice(e,1))},selectComponent:function(e){return this.$vm.selectComponent(e)},selectAllComponents:function(e){return this.$vm.selectAllComponents(e)}};if(Ms.push(l),o.__preload__&&(o.__page__=l),c&&(Rp.splashscreen&&Rp.splashscreen.autoclose&&!Rp.splashscreen.alwaysShowBeforeRender&&Mp.navigator.closeSplashscreen(),Rp.onReady(function(){ws()})),!o.nvue){var d=o.id;try{za(u,function(){var e,t,n,r;(e=u,t=d,n=i,r=l,As[e]||console.error(e+" not found"),new(Is(e))({mpType:"page",pageId:t,pagePath:e,pageQuery:n,pageInstance:r})).$mount()})}catch(e){console.error(e)}}return o}function Ds(e,t){var n=e.url,r=e.path,i=e.query,o=e.events,a=e.animationType,s=e.animationDuration;jp.emit("onAppRoute",{type:"navigateTo",path:r});var c=(void 0===!1&&!0,new Os(++Es,o));Ss(Ns({url:n,path:r,query:i,openType:"navigate",eventChannel:c}),a,s,function(){yr(t,{errMsg:"navigateTo:ok",eventChannel:c})}),Sr()}function Ls(e,t){return void 0===e&&(e={}),Array.isArray(e[t])&&e[t].length}function Rs(e,r){var t=e.url,n=e.path,i=e.query,o=e.exists,a=Vp(),s=a.length-1;if("back"===o){var c=function(e){for(var t=Vp(),n=t.length;n--;){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}(t);if(-1!==c){var u=s-c;if(0<u)return Ts({delta:u}),void yr(r,{errMsg:"redirectTo:ok"})}}var l=a[s];l&&l.$remove(),Ss(Ns({url:t,path:n,query:i,openType:"redirect"}),"none",0,function(){if(l){var e=l.$getAppWebview();e.__preload__&&(t=e,(n=Object.keys(Bs).find(function(e){return Bs[e].id===t.id}))&&delete Bs[n]),e.close("none")}var t,n;yr(r,{errMsg:"redirectTo:ok"})}),Sr()}var Fs,zs,Us,Vs,qs="__TYPE",Ws="uni-storage-keys";function Hs(e){try{var t="string"==typeof e?JSON.parse(e):e,n=t.type;if(0<=["object","string","number","boolean","undefined"].indexOf(n)){var r=Object.keys(t);if(2===r.length&&"data"in t){if(typeof t.data===n)return t.data;if("object"===n&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(t.data))return new Date(t.data)}else if(1===r.length)return""}}catch(e){}}function Gs(e,t){var n=t;if("string"!==e||"string"===e&&'{"type":"undefined"}'===t)try{var r=JSON.parse(t),i=Hs(r);if(void 0!==i)n=i;else if(e&&"string"==typeof(n=r)){var o=typeof(r=JSON.parse(r));"number"===o&&"date"===e?n=new Date(r):o===(["null","array"].indexOf(e)<0?e:"object")&&(n=r)}}catch(e){}return n}function Xs(){for(var e=Mp.storage.length||Mp.storage.getLength()||0,t=[],n=0,r=0;r<e;r++){var i=Mp.storage.key(r);if(i!==Ws&&i.indexOf(qs)+qs.length!==i.length){var o=Mp.storage.getItem(i);n+=i.length+o.length,t.push(i)}}return{keys:t,currentSize:Math.ceil(2*n/1024),limitSize:Number.MAX_VALUE,errMsg:"getStorageInfo:ok"}}function Ys(e){void 0===e&&(e={});var t=e.title;void 0===t&&(t="");var n=e.icon;void 0===n&&(n="success");var r=e.image;void 0===r&&(r="");var i=e.duration;void 0===i&&(i=1500);var o=e.mask;void 0===o&&(o=!1);var a=e.position;void 0===a&&(a="");var s=e.type;if(void 0===s&&(s="toast"),Js(null),zs=s,["top","center","bottom"].includes(a))Mp.nativeUI.toast(t,{verticalAlign:a}),Fs=!0;else{n&&!~["success","loading","none"].indexOf(n)&&(n="success");var c={modal:o,back:"transmit",padding:"10px",size:"16px"};r||n&&"none"!==n?(c.width="140px",c.height="112px"):c.loading={display:"none"},r?c.loading={display:"block",height:"55px",icon:r,interval:i}:"success"===n&&(c.loading={display:"block",height:"55px",icon:"__uniappsuccess.png",interval:i}),Fs=Mp.nativeUI.showWaiting(t,c)}return Us=Bp(function(){Js(null)},i),{errMsg:"showToast:ok"}}function Js(e){if(void 0===e&&(e="toast"),!e||e===zs)return Us&&(Np(Us),Us=null),!0===Fs?Mp.nativeUI.closeToast():Fs&&Fs.close&&Fs.close(),zs=Fs=null,{errMsg:"hide:ok"}}var Ks={};function Zs(e){var n=Ks[e];return n||(n={id:1,callbacks:Object.create(null)},Ks[e]=n),{get:function(e){return n.callbacks[e]},pop:function(e){var t=n.callbacks[e];return t&&delete n.callbacks[e],t},push:function(e){var t=n.id++;return n.callbacks[t]=e,t}}}var Qs=Zs("requestComponentInfo");function ec(n){var r={};return Object.keys(n||{}).forEach(function(e){if(0===e.indexOf("data")){var t=e.replace("data","");t=t.charAt(0).toLowerCase()+t.slice(1),r[t]=n[e]}}),r}function tc(e,t,n){var r=e._$weex.requireModule("dom"),i=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].selector;0===r.indexOf("#")&&t.push(r.substring(1))}return t}(t),o=new Array(i.length);!function e(t,n,r){var i=n.children;if(!Array.isArray(i))return!1;for(var o=0;o<i.length;o++){var a=i[o];if(a.attr){var s=t.indexOf(a.attr.id);if(0<=s&&(r[s]={id:t[s],ref:a.ref,dataset:ec(a.attr)},1===t.length))break}a.children&&e(t,a,r)}}(i,e.$el,o),function t(n,r,i,o,a){var s=r[i];n.getComponentRect(s.ref,function(e){e.size.id=s.id,e.size.dataset=s.dataset,o.push(e.size),(i+=1)<r.length?t(n,r,i,o,a):a(o)})}(r,o,0,[],function(e){n(e)})}var nc=["load","close","verify","error","adClicked"],rc=[-5001,-5002,-5003,-5004,-5005,-5006],ic={code:-5008,errMsg:"广告数据已过期,请重新加载"},oc="csj",ac=function(e){var i=this;void 0===e&&(e={});var n=this._callbacks={};nc.forEach(function(t){n[t]=[];var e=t[0].toUpperCase()+t.substr(1);i["on"+e]=function(e){n[t].push(e)}}),this._preload=void 0===e.preload||e.preload,this._isLoad=!1,this._adError="",this._loadPromiseResolve=null,this._loadPromiseReject=null,this._lastLoadTime=0;var t=this._rewardAd=Mp.ad.createRewardedVideoAd(e);t.onLoad(function(e){i._isLoad=!0,i._lastLoadTime=Date.now(),i._dispatchEvent("load",{}),null!=i._loadPromiseResolve&&(i._loadPromiseResolve(),i._loadPromiseResolve=null)}),t.onClose(function(e){i._preload&&i._loadAd(),i._dispatchEvent("close",{isEnded:e.isEnded})}),t.onVerify&&t.onVerify(function(e){i._dispatchEvent("verify",{isValid:e.isValid})}),t.onError(function(e){var t=e.code,n=e.message,r={code:t,errMsg:n};i._adError=n,-5008===t&&(i._isLoad=!1),i._dispatchEvent("error",r),-5005!==t&&-1!==rc.index(t)||null==i._loadPromiseReject||(i._loadPromiseReject(r),i._loadPromiseReject=null)}),t.onAdClicked(function(e){i._dispatchEvent("adClicked",{})}),this._preload&&this._loadAd()},sc={isExpired:{configurable:!0}};sc.isExpired.get=function(){return 0!==this._lastLoadTime&&18e5<Math.abs(Date.now()-this._lastLoadTime)},ac.prototype.load=function(){var n=this;return new Promise(function(e,t){n._isLoad?e():(n._loadPromiseResolve=e,n._loadPromiseReject=t,n._loadAd())})},ac.prototype.show=function(){var n=this;return new Promise(function(e,t){if(n.getProvider()===oc&&n.isExpired)return n._isLoad=!1,n._dispatchEvent("error",ic),void t(new Error(ic.errMsg));n._isLoad?(n._rewardAd.show(),e()):t(new Error(n._adError))})},ac.prototype.getProvider=function(){return this._rewardAd.getProvider()},ac.prototype.destroy=function(){this._rewardAd.destroy()},ac.prototype._loadAd=function(){this._isLoad=!1,this._rewardAd.load()},ac.prototype._dispatchEvent=function(e,t){this._callbacks[e].forEach(function(e){"function"==typeof e&&e(t||{})})},Object.defineProperties(ac.prototype,sc);var cc=["load","close","error","adClicked"],uc=function(e){var i=this;void 0===e&&(e={});var n=this._callbacks={};cc.forEach(function(t){n[t]=[];var e=t[0].toUpperCase()+t.substr(1);i["on"+e]=function(e){n[t].push(e)}}),this._isLoad=!1,this._adError="",this._loadPromiseResolve=null,this._loadPromiseReject=null,this._lastLoadTime=0;var t=this._ad=Mp.ad.createFullScreenVideoAd(e);t.onLoad(function(e){i._isLoad=!0,i._lastLoadTime=Date.now(),i._dispatchEvent("load",{}),null!=i._loadPromiseResolve&&(i._loadPromiseResolve(),i._loadPromiseResolve=null)}),t.onClose(function(e){i._isLoad=!1,i._dispatchEvent("close",{isEnded:e.isEnded})}),t.onError(function(e){var t=e.code,n=e.message,r={code:t,errMsg:n};i._adError=n,-5008===t&&(i._isLoad=!1),i._dispatchEvent("error",r),null!=i._loadPromiseReject&&(i._loadPromiseReject(r),i._loadPromiseReject=null)}),t.onAdClicked(function(e){i._dispatchEvent("adClicked",{})})};uc.prototype.load=function(){var n=this;return new Promise(function(e,t){n._isLoad?e():(n._loadPromiseResolve=e,n._loadPromiseReject=t,n._loadAd())})},uc.prototype.show=function(){var n=this;return new Promise(function(e,t){n._isLoad?(n._ad.show(),e()):t(new Error(n._adError))})},uc.prototype.getProvider=function(){return this._ad.getProvider()},uc.prototype.destroy=function(){this._ad.destroy()},uc.prototype._loadAd=function(){this._isLoad=!1,this._ad.load()},uc.prototype._dispatchEvent=function(e,t){this._callbacks[e].forEach(function(e){"function"==typeof e&&e(t||{})})};var lc=Object.freeze({__proto__:null,startPullDownRefresh:function(){return Vs&&Vs.endPullToRefresh(),(Vs=Or())?(Vs.beginPullToRefresh(),{errMsg:"startPullDownRefresh:ok"}):{errMsg:"startPullDownRefresh:fail"}},stopPullDownRefresh:function(){return Vs||(Vs=Or()),Vs?(Vs.endPullToRefresh(),Vs=null,{errMsg:"stopPullDownRefresh:ok"}):{errMsg:"stopPullDownRefresh:fail"}},$on:fr,$off:pr,$once:hr,$emit:vr,createAudioInstance:function(){var e=""+Date.now()+Math.random(),t=Ur[e]=Mp.audio.createPlayer("");return t.src="",t.volume=1,t.startTime=0,{errMsg:"createAudioInstance:ok",audioId:e}},destroyAudioInstance:function(e){var t=e.audioId;return Ur[t]&&(Ur[t].close(),delete Ur[t]),{errMsg:"destroyAudioInstance:ok",audioId:t}},setAudioState:function(e){var t=e.audioId,n=e.src,r=e.startTime,i=e.autoplay;void 0===i&&(i=!1);var o=e.loop;void 0===o&&(o=!1),e.obeyMuteSwitch;var a,s,c=e.volume,u=Ur[t];if(u){var l={loop:o,autoplay:i};n&&(u.src=l.src=Ir(n)),r&&(u.startTime=l.startTime=r),"number"==typeof c&&(u.volume=l.volume=c),u.setStyles(l),(s=Ur[a=t])&&(s.initStateChage||(s.initStateChage=!0,s.addEventListener("error",function(e){qr("error",{audioId:a,errMsg:"MediaError",errCode:e.code})}),Vr.forEach(function(e){s.addEventListener(e,function(){"play"===e?s.isStopped=!1:"stop"===e&&(s.isStopped=!0),qr(e,{audioId:a})})})))}return{errMsg:"setAudioState:ok"}},getAudioState:function(e){var t=e.audioId,n=Ur[t];if(!n)return{errMsg:"getAudioState:fail"};var r=n.src,i=n.startTime,o=n.volume;return{errMsg:"getAudioState:ok",duration:1e3*(n.getDuration()||0),currentTime:n.isStopped?0:1e3*n.getPosition(),paused:n.isPaused(),src:r,volume:o,startTime:1e3*i,buffered:1e3*n.getBuffered()}},operateAudio:function(e){var t=e.operationType,n=e.audioId,r=e.currentTime,i=Ur[n],o=["play","pause","stop"];return 0<=o.indexOf(t)?i[t===o[0]&&i.isPaused()?"resume":t]():"seek"===t&&i.seekTo(r/1e3),{errMsg:"operateAudio:ok"}},getMusicPlayerState:function(){var e=Zr();return e?{dataUrl:e.src,duration:e.getDuration()||0,currentPosition:e.getPosition(),status:e.isPaused()?0:1,downloadPercent:Math.round(100*e.getBuffered()/e.getDuration()),errMsg:"getMusicPlayerState:ok"}:{status:2,errMsg:"getMusicPlayerState:ok"}},operateMusicPlayer:Qr,setBackgroundAudioState:function(e){return Kr(e),{errMsg:"setBackgroundAudioState:ok"}},operateBackgroundAudio:function(e){var t=e.operationType,n=e.src,r=e.startTime,i=e.currentTime;return Qr({operationType:t,dataUrl:n,position:r||i||0,api:"operateBackgroundAudio"})},getBackgroundAudioState:function(){var e={duration:0,currentTime:0,paused:!1,src:"",buffered:0,title:"",epname:"",singer:"",coverImgUrl:"",webUrl:"",startTime:0,errMsg:"getBackgroundAudioState:ok"},t=Zr();if(t){var n={duration:t.getDuration()||0,currentTime:t.isStopped?0:t.getPosition(),paused:t.isPaused(),src:t.src,buffered:t.getBuffered(),title:t.title,epname:t.epname,singer:t.singer,coverImgUrl:t.coverImgUrl,webUrl:t.webUrl,startTime:t.startTime};e=Object.assign(e,n)}return e},operateMapPlayer:function(e,t,n,r){var i,o,a,s,c,u,l;t.$page.meta.isNVue?(c=e,u=t,l=r,ci[n](oi(c,u),l)):(i=e,o=n,a=r,s=t.$page.id,jp.publishHandler(s+"-map-"+i,{mapId:i,type:o,data:a},s))},operateVideoPlayer:function(e,t,n,r){var i,o,a,s,c,u,l;t.$page.meta.isNVue?(c=e,u=t,l=r,ui[n](oi(c,u),l)):(i=e,o=n,a=r,s=t.$page.id,jp.publishHandler(s+"-video-"+i,{videoId:i,type:o,data:a},s))},createLivePusherContext:function(e,t){return function(e,t){if(!t)return console.warn("uni.createLivePusherContext 必须传入第二个参数,即当前 vm 对象(this)");var n=oi(e,t);return n?new li(e,n):console.warn("Can not find `"+e+"`")}(e,t)},startAccelerometer:yi,stopAccelerometer:_i,onAccelerometerChange:function(e){mi.length||yi(),mi.push(e)},offAccelerometerChange:function(e){if(e){var t=mi.indexOf(e);0<=t&&mi.splice(t,1)}mi.length||_i()},addPhoneContact:function(e,d){void 0===e&&(e={});var f=e.photoFilePath;void 0===f&&(f="");var p=e.nickName,h=e.lastName,v=e.middleName,g=e.firstName,m=e.remark,y=e.mobilePhoneNumber,_=e.weChatNumber,b=e.addressCountry,w=e.addressState,k=e.addressCity,S=e.addressStreet,x=e.addressPostalCode,C=(e.organization,e.title,e.workFaxNumber),T=e.workPhoneNumber,O=e.hostNumber,E=e.email,A=e.url,I=e.workAddressCountry,$=e.workAddressState,P=e.workAddressCity,M=e.workAddressStreet,j=e.workAddressPostalCode,B=e.homeFaxNumber,N=(e.homePhoneNumber,e.homeAddressCountry),D=e.homeAddressState,L=e.homeAddressCity,R=e.homeAddressStreet,F=e.homeAddressPostalCode;Mp.contacts.getAddressBook(Mp.contacts.ADDRESSBOOK_PHONE,function(e){var t=e.create(),n={};h&&(n.familyName=h),g&&(n.givenName=g),v&&(n.middleName=v),t.name=n,p&&(t.nickname=p),f&&(t.photos=[{type:"url",value:f}]),m&&(t.note=m);var r={type:"mobile"},i={type:"work"},o={type:"company"},a={type:"home fax"},s={type:"work fax"};y&&(r.value=y),T&&(i.value=T),O&&(o.value=O),B&&(a.value=B),C&&(s.value=C),t.phoneNumbers=[r,i,o,a,s],E&&(t.emails=[{type:"home",value:E}]),A&&(t.urls=[{type:"other",value:A}]),_&&(t.ims=[{type:"other",value:_}]);var c={type:"other",preferred:!0},u={type:"home"},l={type:"company"};b&&(c.country=b),w&&(c.region=w),k&&(c.locality=k),S&&(c.streetAddress=S),x&&(c.postalCode=x),N&&(u.country=N),D&&(u.region=D),L&&(u.locality=L),R&&(u.streetAddress=R),F&&(u.postalCode=F),I&&(l.country=I),$&&(l.region=$),P&&(l.locality=P),M&&(l.streetAddress=M),j&&(l.postalCode=j),t.addresses=[c,u,l],t.save(function(){yr(d,{errMsg:"addPhoneContact:ok"})},function(e){yr(d,{errMsg:"addPhoneContact:fail"})})},function(e){yr(d,{errMsg:"addPhoneContact:fail"})})},onBluetoothDeviceFound:bi,onBluetoothAdapterStateChange:wi,onBLEConnectionStateChange:ki,onBLECharacteristicValueChange:Si,openBluetoothAdapter:Ti,closeBluetoothAdapter:Oi,getBluetoothAdapterState:Ei,startBluetoothDevicesDiscovery:Ai,stopBluetoothDevicesDiscovery:Ii,getBluetoothDevices:$i,getConnectedBluetoothDevices:Pi,createBLEConnection:Mi,closeBLEConnection:ji,getBLEDeviceServices:Bi,getBLEDeviceCharacteristics:Ni,notifyBLECharacteristicValueChange:Di,readBLECharacteristicValue:Li,writeBLECharacteristicValue:Ri,setBLEMTU:Fi,getBLEDeviceRSSI:zi,getScreenBrightness:function(){return{errMsg:"getScreenBrightness:ok",value:Mp.screen.getBrightness(!1)}},setScreenBrightness:function(e){void 0===e&&(e={});var t=e.value;return Mp.screen.setBrightness(t,!1),{errMsg:"setScreenBrightness:ok"}},setKeepScreenOn:function(e){void 0===e&&(e={});var t=e.keepScreenOn;return Mp.device.setWakelock(!!t),{errMsg:"setKeepScreenOn:ok"}},getClipboardData:function(e,t){_r("clipboard").getString(function(e){"success"===e.result?yr(t,{data:e.data,errMsg:"getClipboardData:ok"}):yr(t,{data:e.result,errMsg:"getClipboardData:fail"})})},setClipboardData:function(e){var t=e.data;return _r("clipboard").setString(t),{errMsg:"setClipboardData:ok"}},startCompass:Vi,stopCompass:qi,onCompassChange:function(e){Ui.length||Vi(),Ui.push(e)},offCompassChange:function(e){if(e){var t=Ui.indexOf(e);0<=t&&Ui.splice(t,1)}Ui.length||qi()},getNetworkType:function(){return{errMsg:"getNetworkType:ok",networkType:pi[Mp.networkinfo.getCurrentType()]}},onBeaconUpdate:Wi,onBeaconServiceChange:Hi,getBeacons:Gi,startBeaconDiscovery:Xi,stopBeaconDiscovery:Yi,makePhoneCall:function(e){void 0===e&&(e={});var t=e.phoneNumber;return Mp.device.dial(t),{errMsg:"makePhoneCall:ok"}},scanCode:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n="weex"!==Rp.nvueCompiler?Ao:ko;return n.scanCode.apply(n,e)},checkIsSupportSoterAuthentication:Po,checkIsSoterEnrolledInDevice:Mo,startSoterAuthentication:function(e,t){void 0===e&&(e={});var n=e.requestAuthModes,r=e.challenge;void 0===r&&(r=!1);var i=e.authContent,o=Po().supportMode;if(0===o.length)return{authMode:o[0]||"fingerPrint",errCode:90001,errMsg:"startSoterAuthentication:fail"};var a=[];if(n.map(function(e,t){-1<o.indexOf(e)&&a.push(e)}),0===a.length)return{authMode:a[0]||"fingerPrint",errCode:90003,errMsg:"startSoterAuthentication:fail no corresponding mode"};var s=[];if(a.map(function(e,t){Mo({checkAuthMode:e}).isEnrolled&&s.push(e)}),0===s.length)return{authMode:a[0],errCode:90011,errMsg:"startSoterAuthentication:fail no "+a[0]+" enrolled"};var c=s[0];"fingerPrint"===c?("android"===Mp.os.name.toLowerCase()&&(Mp.nativeUI.showWaiting(i||"指纹识别中...").onclose=function(){Mp.fingerprint.cancel()}),Mp.fingerprint.authenticate(function(){Mp.nativeUI.closeWaiting(),yr(t,{authMode:c,errCode:0,errMsg:"startSoterAuthentication:ok"})},function(e){switch(e.code){case e.AUTHENTICATE_MISMATCH:break;case e.AUTHENTICATE_OVERLIMIT:Mp.nativeUI.closeWaiting(),yr(t,{authMode:c,errCode:90010,errMsg:"startSoterAuthentication:fail authenticate freeze. please try again later"});break;case e.CANCEL:Mp.nativeUI.closeWaiting(),yr(t,{authMode:c,errCode:90008,errMsg:"startSoterAuthentication:fail cancel"});break;default:Mp.nativeUI.closeWaiting(),yr(t,{authMode:c,errCode:90007,errMsg:"startSoterAuthentication:fail"})}},{message:i})):"facial"===c&&_r("faceID").authenticate({message:i},function(e){if("success"===e.type&&0===e.code)yr(t,{authMode:c,errCode:0,errMsg:"startSoterAuthentication:ok"});else switch(e.code){case 4:yr(t,{authMode:c,errCode:90009,errMsg:"startSoterAuthentication:fail"});break;case 5:yr(t,{authMode:c,errCode:90010,errMsg:"startSoterAuthentication:fail authenticate freeze. please try again later"});break;case 6:yr(t,{authMode:c,errCode:90008,errMsg:"startSoterAuthentication:fail cancel"});break;default:yr(t,{authMode:c,errCode:90007,errMsg:"startSoterAuthentication:fail"})}})},getSystemInfoSync:function(){return Tr(Uo,Object.create(null),"getSystemInfo","getSystemInfoSync")},getSystemInfo:Uo,vibrateLong:function(){return Mp.device.vibrate(400),{errMsg:"vibrateLong:ok"}},vibrateShort:function(){return Mp.device.vibrate(15),{errMsg:"vibrateShort:ok"}},saveFile:function(e,n){void 0===e&&(e={});var t,r=e.tempFilePath,i=Lr(n,"saveFile"),o=""+Date.now()+Ho+++(1<(t=r.split(".")).length?"."+t[t.length-1]:"");Mp.io.resolveLocalFileSystemURL(r,function(t){Wo(function(e){t.copyTo(e,o,function(){yr(n,{errMsg:"saveFile:ok",savedFilePath:qo+"/"+o})},i)},i)},i)},getSavedFileList:function(e,i){var o=Lr(i,"getSavedFileList");Wo(function(e){var t=e.createReader(),r=[];t.readEntries(function(n){n&&n.length?n.forEach(function(t){t.getMetadata(function(e){r.push({filePath:Mp.io.convertAbsoluteFileSystem(t.fullPath),createTime:e.modificationTime.getTime(),size:e.size}),r.length===n.length&&yr(i,{errMsg:"getSavedFileList:ok",fileList:r})},o,!1)}):yr(i,{errMsg:"getSavedFileList:ok",fileList:r})},o)},o)},getFileInfo:Go,getSavedFileInfo:function(e,t){void 0===e&&(e={});var n=e.filePath,r=Lr(t,"getSavedFileInfo");Mp.io.resolveLocalFileSystemURL(n,function(e){e.getMetadata(function(e){yr(t,{createTime:e.modificationTime.getTime(),size:e.size,errMsg:"getSavedFileInfo:ok"})},r,!1)},r)},removeSavedFile:function(e,t){void 0===e&&(e={});var n=e.filePath,r=Lr(t,"removeSavedFile");Mp.io.resolveLocalFileSystemURL(n,function(e){e.remove(function(){yr(t,{errMsg:"removeSavedFile:ok"})},r)},r)},openDocument:function(e,t){void 0===e&&(e={});var n=e.filePath;e.fileType,Mp.io.resolveLocalFileSystemURL(Ir(n),function(e){Mp.runtime.openFile(Ir(n)),yr(t,{errMsg:"openDocument:ok"})},function(e){yr(t,{errMsg:"openDocument:fail 文件["+n+"]读取失败:"+e.message})})},chooseLocation:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n="weex"!==Rp.nvueCompiler?Jo:Yo;return n.chooseLocation.apply(n,e)},getLocation:function(e,t){void 0===e&&(e={});var n=e.type;void 0===n&&(n="wgs84");var r=e.geocode;void 0===r&&(r=!1);var i=e.altitude;void 0===i&&(i=!1),Mp.geolocation.getCurrentPosition(function(e){Ko(n,e,t)},function(e){1501!==e.code?yr(t,{errMsg:"getLocation:fail "+e.message}):Ko(n,e,t)},{geocode:r,enableHighAccuracy:i})},openLocation:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n="weex"!==Rp.nvueCompiler?Qo:Zo;return n.openLocation.apply(n,e)},startRecord:function(e,t){ea&&ea.stop(),(ea=Mp.audio.getRecorder()).record({filename:"_doc/audio/",format:"aac"},function(e){yr(t,{errMsg:"startRecord:ok",tempFilePath:e})},function(e){yr(t,{errMsg:"startRecord:fail"})}),ta=Bp(function(){ea.stop(),ea=!1},36e5)},stopRecord:function(){return ea?(ta&&Np(ta),ea.stop(),{errMsg:"stopRecord:ok"}):{errMsg:"stopRecord:fail"}},playVoice:function(e,t){void 0===e&&(e={});var n=e.filePath;if(na&&ra===n&&"pause"===ia)return ia="play",na.play(function(e){ia=ra=na=!1,yr(t,{errMsg:"playVoice:ok"})}),{errMsg:"playVoice:ok"};na&&na.stop(),ra=n,ia="play",(na=Mp.audio.createPlayer(Ir(n))).play(function(e){ia=ra=na=!1,yr(t,{errMsg:"playVoice:ok"})})},pauseVoice:function(){return na&&"play"===ia&&(na.pause(),ia="pause"),{errMsg:"pauseVoice:ok"}},stopVoice:function(){return na&&(na.stop(),ia=ra=na=!1),{errMsg:"stopVoice:ok"}},chooseImage:function(e,t){void 0===e&&(e={});var n=e.count,o=e.sizeType,r=e.sourceType,i=Lr(t,"chooseImage","cancel");function a(e){var n=[],r=[];e.reduce(function(e,i){return e.then(function(){return oa(i)}).then(function(e){var n,r,t=e.size;return o.includes("compressed")&&524288<t?(n=i,r=gi+"/compressed/"+Date.now()+"_"+Fr(n),new Promise(function(e,t){Mp.nativeUI.showWaiting(),Mp.zip.compressImage({src:n,dst:r,overwrite:!0},function(){Mp.nativeUI.closeWaiting(),e(r)},function(e){Mp.nativeUI.closeWaiting(),t(e)})})).then(function(e){return oa(i=e)}):e}).then(function(e){var t=e.size;r.push(i),n.push({path:i,size:t})})},Promise.resolve()).then(function(){yr(t,{errMsg:"chooseImage:ok",tempFilePaths:r,tempFiles:n})}).catch(i)}function s(){Mp.camera.getCamera().captureImage(function(e){return a([e])},i,{filename:gi+"/camera/",resolution:"high"})}function c(){Mp.gallery.pick(function(e){return a(e.files)},i,{maximum:n,multiple:!0,system:!1,filename:gi+"/gallery/",permissionAlert:!0})}if(1===r.length){if(r.includes("album"))return void c();if(r.includes("camera"))return void s()}Mp.nativeUI.actionSheet({cancel:"取消",buttons:[{title:"拍摄"},{title:"从手机相册选择"}]},function(e){switch(e.index){case 1:s();break;case 2:c();break;default:i()}})},chooseVideo:function(e,r){void 0===e&&(e={});var t=e.sourceType,n=e.maxDuration,i=e.camera,o=Lr(r,"chooseVideo","cancel");function a(n){void 0===n&&(n=""),Mp.io.getVideoInfo({filePath:n,success:function(e){var t={errMsg:"chooseVideo:ok",tempFilePath:n};t.size=e.size,t.duration=e.duration,t.width=e.width,t.height=e.height,yr(r,t)},errorCallback:o})}function s(){Mp.gallery.pick(function(e){return a(e.files[0])},o,{filter:"video",system:!1,multiple:!0,maximum:1,filename:gi+"/gallery/",permissionAlert:!0})}function c(){Mp.camera.getCamera().startVideoCapture(a,o,{index:"front"===i?2:1,videoMaximumDuration:n,filename:gi+"/camera/"})}if(1===t.length){if(t.includes("album"))return void s();if(t.includes("camera"))return void c()}Mp.nativeUI.actionSheet({cancel:"取消",buttons:[{title:"拍摄"},{title:"从手机相册选择"}]},function(e){switch(e.index){case 1:c();break;case 2:s();break;default:o()}})},compressImage:function(e,t){var n=gi+"/compressed/"+Date.now()+"_"+Fr(e.src),r=Lr(t,"compressImage");Mp.zip.compressImage(Object.assign({},e,{dst:n}),function(){yr(t,{errMsg:"compressImage:ok",tempFilePath:n})},r)},getImageInfo:ca,previewImagePlus:function(e){void 0===e&&(e={});var t=e.current;void 0===t&&(t=0);var n=e.background;void 0===n&&(n="#000000");var r=e.indicator;void 0===r&&(r="number");var i=e.loop;void 0===i&&(i=!1);var o=e.urls,a=e.longPressActions;o=o.map(function(e){return Ir(e)});var s=Number(t);return t=isNaN(s)?(t=o.indexOf(Ir(t)))<0?0:t:s,Mp.nativeUI.previewImage(o,{current:t,background:n,indicator:r,loop:i,onLongPress:function(t){var e=[],n="",r="",i=a&&a.callbackId;i?(e=a.itemList?a.itemList:[],n=a.itemColor?a.itemColor:"#000000",r=a.title?a.title:""):(e=["保存相册"],n="#000000",r="");var o={buttons:e.map(function(e){return{title:e,color:n}}),cancel:""};r&&(o.title=r),Mp.nativeUI.actionSheet(o,function(e){if(0<e.index){if(i)return void br(a.callbackId,{errMsg:"showActionSheet:ok",tapIndex:e.index-1,index:t.index});Mp.gallery.save(t.url,function(e){Mp.nativeUI.toast("保存图片到相册成功")})}else i&&br(a.callbackId,{errMsg:"showActionSheet:fail cancel"})})}}),{errMsg:"previewImage:ok"}},operateRecorder:function(e,t){var n=e.operationType,r={};for(var i in e)-1===["operationType"].indexOf(i)&&(r[i]=e[i]);var o=r;return la[n](o),{errMsg:"operateRecorder:ok"}},saveImageToPhotosAlbum:function(e,t){void 0===e&&(e={});var n=e.filePath;Mp.gallery.save(Ir(n),function(e){yr(t,{errMsg:"saveImageToPhotosAlbum:ok"})},function(e){yr(t,{errMsg:"saveImageToPhotosAlbum:fail"})})},saveVideoToPhotosAlbum:function(e,t){void 0===e&&(e={});var n=e.filePath;Mp.gallery.save(Ir(n),function(e){yr(t,{errMsg:"saveVideoToPhotosAlbum:ok"})},function(e){yr(t,{errMsg:"saveVideoToPhotosAlbum:fail"})})},operateDownloadTask:function(e){void 0===e&&(e={});var t=e.downloadTaskId,n=e.operationType,r=fa[t];return r&&"abort"===n?(delete fa[t],r.abort(),pa({downloadTaskId:t,state:"fail",errMsg:"abort"}),{errMsg:"operateDownloadTask:ok"}):{errMsg:"operateDownloadTask:fail"}},createDownloadTask:function(e){return function(n,e){void 0===e&&(e={});var t=e.url,r=e.header,i=e.timeout;i=(i||Rp.networkTimeout&&Rp.networkTimeout.request||6e4)/1e3;var o=Mp.downloader.createDownload(t,{timeout:i,filename:gi+"/download/",retry:0,retryInterval:0},function(e,t){pa(t?{downloadTaskId:n,state:"success",tempFilePath:e.filename,statusCode:t}:{downloadTaskId:n,state:"fail",statusCode:t})});for(var a in r)_(r,a)&&o.setRequestHeader(a,r[a]);return o.addEventListener("statechanged",function(e,t){e.downloadedSize&&e.totalSize&&pa({downloadTaskId:n,state:"progressUpdate",progress:parseInt(e.downloadedSize/e.totalSize*100),totalBytesWritten:e.downloadedSize,totalBytesExpectedToWrite:e.totalSize})}),(fa[n]=o).start(),{downloadTaskId:n,errMsg:"createDownloadTask:ok"}}(++da,e)},createRequestTaskById:ya,createRequestTask:function(e){return ya(++ha,e)},operateRequestTask:function(e){void 0===e&&(e={});var t=e.requestTaskId,n=e.operationType,r=va[t];return r&&"abort"===n?(r.abort(),{errMsg:"operateRequestTask:ok"}):{errMsg:"operateRequestTask:fail"}},createSocketTask:function(e){return ka(String(Date.now()),e)},operateSocketTask:function(e){var t,n=e,r=n.operationType,i=n.code,o=n.reason,a=n.data,s=n.socketTaskId,c=ba[s];if(!c)return{errMsg:"operateSocketTask:fail"};switch(r){case"send":return a&&c.send({id:s,data:"object"==typeof a?{"@type":"binary",base64:(t=a,Yn(t))}:a}),{errMsg:"operateSocketTask:ok"};case"close":return c.close({id:s,code:i,reason:o}),delete ba[s],{errMsg:"operateSocketTask:ok"}}return{errMsg:"operateSocketTask:fail"}},operateUploadTask:function(e){void 0===e&&(e={});var t=e.uploadTaskId,n=e.operationType,r=xa[t];return r&&"abort"===n?(delete xa[t],r.abort(),Ca({uploadTaskId:t,state:"fail",errMsg:"abort"}),{errMsg:"operateUploadTask:ok"}):{errMsg:"operateUploadTask:fail"}},createUploadTask:function(e){return function(n,e){void 0===e&&(e={});var t=e.url,r=e.filePath,i=e.name,o=e.files,a=e.header,s=e.formData,c=e.timeout;void 0===c&&(c=Rp.networkTimeout.uploadFile?Rp.networkTimeout.uploadFile/1e3:120);var u=Mp.uploader.createUpload(t,{timeout:c,retry:0,retryInterval:0},function(e,t){Ca(t?{uploadTaskId:n,state:"success",data:e.responseText,statusCode:t}:{uploadTaskId:n,state:"fail",data:"",statusCode:t}),delete xa[n]});for(var l in a)_(a,l)&&u.setRequestHeader(l,String(a[l]));for(var d in s)_(s,d)&&u.addData(d,String(s[d]));return o&&o.length?o.forEach(function(e){u.addFile(Ir(e.uri),{key:e.name||"file"})}):u.addFile(Ir(r),{key:i}),u.addEventListener("statechanged",function(e,t){e.uploadedSize&&e.totalSize&&Ca({uploadTaskId:n,state:"progressUpdate",progress:parseInt(e.uploadedSize/e.totalSize*100),totalBytesSent:e.uploadedSize,totalBytesExpectedToSend:e.totalSize})}),(xa[n]=u).start(),{uploadTaskId:n,errMsg:"createUploadTask:ok"}}(++Sa,e)},getProvider:function(e,n){var r=e.service;Oa[r]?Oa[r](function(e,t){yr(n,e?{errMsg:"getProvider:fail "+e.message}:{errMsg:"getProvider:ok",service:r,provider:t})}):yr(n,{errMsg:"getProvider:fail 服务["+r+"]不支持"})},login:function(n,r){var i=n.provider||"weixin",o=Lr(r,"login");Ea(i).then(function(e){function t(){e.login(function(e){var t=e.target.authResult;yr(r,{code:t.code,authResult:t,errMsg:"login:ok"})},o,"apple"===i?{scope:"email"}:{univerifyStyle:n.univerifyStyle})}"apple"===i||"univerify"===i?t():e.logout(t,t)}).catch(o)},getUserInfo:Aa,operateWXData:function(e,t){switch(e.data.api_name){case"webapi_getuserinfo":Aa(e,t);break;default:return{errMsg:"operateWXData:fail"}}},preLogin:function(e,t){var n,r,i=(n=t,r="preLogin",function(e){e=e||{},yr(n,Object.assign({},e,{errMsg:r+":ok"}))}),o=Lr(t,"preLogin");Ea(e.provider).then(function(e){return e.preLogin(i,o)}).catch(o)},closeAuthView:function(){Ea("univerify").then(function(e){return e.closeAuthView()})},requestPayment:function(n,r){var i=n.provider,o=Lr(r,"requestPayment");Mp.payment.getChannels(function(e){var t=e.find(function(e){return e.id===i});t?Mp.payment.request(t,n.orderInfo,function(e){e.errMsg="requestPayment:ok",yr(r,e)},o):yr(r,{errMsg:"requestPayment:fail 支付服务["+i+"]不存在"})},o)},subscribePush:function(e,t){var n=Mp.push.getClientInfo();return n?(Ia||(Ia=!0,Mp.push.addEventListener("receive",function(e){Ta&&!$a&&br("onPushMessage",{messageId:e.__UUID__,data:e.payload,errMsg:"onPush:ok"})})),$a=!1,n.errMsg="subscribePush:ok",n):{errMsg:"subscribePush:fail:请确保当前运行环境已包含 push 模块"}},unsubscribePush:function(e){return $a=!0,{errMsg:"unsubscribePush:ok"}},onPush:function(){return Ia?Mp.push.getClientInfo()?(Ta=!0,{errMsg:"onPush:ok"}):{errMsg:"onPush:fail:请确保当前运行环境已包含 push 模块"}:{errMsg:"onPush:fail:请先调用 uni.subscribePush"}},offPush:function(e){return Ta=!1,{errMsg:"offPush:ok"}},requireNativePlugin:Pa,shareAppMessageDirectly:function(e,t){var n=e.title,r=e.path,i=e.imageUrl,o=e.useDefaultSnapshot;n=n||Rp.appname;var a=function(){Na({provider:"weixin",type:0,title:n,imageUrl:i,href:r,scene:"WXSceneSession"},t,"shareAppMessageDirectly")},s=Lr(t,"shareAppMessageDirectly");if(o){var c=Vp(),u=Mp.webview.getWebviewById(c[c.length-1].__wxWebviewId__+"");if(u){var l=new Mp.nativeObj.Bitmap;u.draw(l,function(){var e=gi+"/share/snapshot.jpg";l.save(e,{overwrite:!0,format:"jpg"},function(){i=e,a()},s)},s)}else a()}else a()},share:Na,shareWithSystem:function(e,t,n){void 0===n&&(n="shareWithSystem");var r=e.type,i=e.imageUrl,o=e.summary,a=e.href;r=r||"text";var s=Lr(t,n);["text","image"].indexOf(r)<0&&yr(t,{errMsg:n+":fail 分享参数 type 不正确"}),"string"==typeof i&&i&&(i=Ir(i)),Mp.share.sendWithSystem({type:r,pictures:i&&[i],content:o,href:a},function(e){yr(t,{errMsg:n+":ok"})},s)},restoreGlobal:function(e,t,n,r,i,o){var a;Mp!==t&&(Pp=e,a=(Mp=t).navigator.setStatusBarStyle,wr=a,Mp.navigator.setStatusBarStyle=kr,Bp=n,Np=r,Dp=i,Lp=o),Rp.serviceReady=!0},getSubNVueById:La,getCurrentSubNVue:function(){return La(Mp.webview.currentWebview().id)},onNativeEventReceive:function(e){Ra.push(e)},sendNativeEvent:function(e,t,n){return Pp.requireModule("plus").sendNativeEvent(e,t,n)},loadSubPackage:function(e,t){var n,r,i=e.root;if(-1!==Fa.indexOf(i))return{errMsg:"loadSubPackage:ok"};Fa.push(i),n=i+"/app-sub-service.js",r=function(e){yr(t,{errMsg:"loadSubPackage:ok"})},Rp.onServiceReady(function(){Pp.requireModule("plus").evalJSFiles([n],r)})},navigateBack:Ts,navigateTo:function(e,t){var n=e.url,r=e.events,i=e.openType,o=e.animationType,a=e.animationDuration,s=n.split("?"),c=s[0],u=Fp.find(function(e){return e.path===c}).window,l=Rp.window||{};o||(o=u.animationType||l.animationType||Ki),a||(a=u.animationDuration||l.animationDuration||Zi);var d=v(s[1]||"");_s(c,function(){Ds({url:n,path:c,query:d,events:r,animationType:o,animationDuration:a},t)},"appLaunch"===i)},reLaunch:function(e,a){var s=e.url,t=s.split("?"),c=t[0],u=v(t[1]||"");_s(c,function(){var e,t,n,r,i,o;t=a,n=(e={url:s,path:c,query:u}).url,r=e.path,i=e.query,o=Vp(!0).slice(0),Fp.find(function(e){return e.path===r}).meta.isTabBar&&Fo.switchTab(r.slice(1)),Ss(Ns({url:n,path:r,query:i,openType:"reLaunch"}),"none",0,function(){o.forEach(function(e){e.$remove(),ks(e.$getAppWebview(),"none")}),yr(t,{errMsg:"reLaunch:ok"})}),Sr()})},redirectTo:function(e,t){var n=e.url,r=e.exists,i=n.split("?"),o=i[0],a=v(i[1]||"");_s(o,function(){Rs({url:n,path:o,query:a,exists:r},t)})},switchTab:function(e,t){var n=e.url,r=e.from,i=e.openType,o=n.split("?"),a=o[0],s=v(o[1]||"");_s(a,function(){!function(e,t){var n=e.url,r=e.path,i=e.query;e.from,Fo.switchTab(r.slice(1));var o,a,s=Vp(),c=s.length,u=!1,l=!1;if(1<=c&&((o=s[c-1]).$page.meta.isTabBar?u=!0:(l=!0,s.reverse().forEach(function(e){e.$page.meta.isTabBar||e===o||(e.$remove(),ks(e.$getAppWebview(),"none"))}),o.$remove(),Bp(function(){"redirect"===o.$page.openType?ks(o.$getAppWebview(),Qi,Zi):ks(o.$getAppWebview(),"auto")},100))),Vp(!0).forEach(function(e){"/"+e.route===r?(e.$page.meta.visible||(l=!0),e.$page.meta.visible=!0,a=e):e.$page.meta.isTabBar&&(e.$page.meta.visible=!1)}),o===a&&(u=!1),o&&u&&o.$vm.__call_hook("onHide"),!a)return Ss(Ns({url:n,path:r,query:i,openType:"switchTab"}),"none",0,function(){Sr(),yr(t,{errMsg:"switchTab:ok"})},70);var d=a.$getAppWebview();d.show("none"),l&&!d.__preload__&&a.$vm.__call_hook("onShow"),Sr(),yr(t,{errMsg:"switchTab:ok"})}({url:n,path:a,query:s,from:r},t)},"appLaunch"===i)},unPreloadPage:function(e){var t,n,r=e.url,i=((n=Bs[t=r])&&(n.__page__&&js(!0).find(function(e){return e===n.__page__})?n.__preload__=!1:n.close("none"),delete Bs[t]),n);return i?{id:i.id,url:r,errMsg:"unPreloadPage:ok"}:{url:r,errMsg:"unPreloadPage:fail not found"}},preloadPage:function(e,t){var n=e.url,r=n.split("?");yr(t,{id:function(e){var t=e.url,n=e.path,r=e.query;if(!Bs[t]){var i=JSON.parse(JSON.stringify(Fp.find(function(e){return e.path===n})));Bs[t]=ps(n,i,r,{__preload__:!0,__query__:JSON.stringify(r)})}return Bs[t]}({url:n,path:r[0],query:v(r[1]||"")}).id,url:n,errMsg:"preloadPage:ok"})},setStorage:function(e,t){void 0===e&&(e={});var n=e.key,r=e.data,i=(e.isSync,typeof r),o="string"===i?r:JSON.stringify({type:i,data:r});try{"string"===i&&void 0!==Hs(o)?Mp.storage.setItemAsync(n+qs,i):Mp.storage.removeItemAsync(n+qs),Mp.storage.setItemAsync(n,o,function(){yr(t,{errMsg:"setStorage:ok"})},function(e){yr(t,{errMsg:"setStorage:fail "+e.message})})}catch(e){yr(t,{errMsg:"setStorage:fail "+e})}},setStorageSync:function(e,t){var n=typeof t,r="string"===n?t:JSON.stringify({type:n,data:t});try{"string"===n&&void 0!==Hs(r)?Mp.storage.setItem(e+qs,n):Mp.storage.removeItem(e+qs),Mp.storage.setItem(e,r)}catch(e){}},getStorage:function(e,r){void 0===e&&(e={});var t=e.key;Mp.storage.getItemAsync(t,function(n){Mp.storage.getItemAsync(t+qs,function(e){var t=(e.data||"").toLowerCase();yr(r,{data:Gs(t,n.data),errMsg:"getStorage:ok"})},function(){yr(r,{data:Gs("",n.data),errMsg:"getStorage:ok"})})},function(e){yr(r,{data:"",errMsg:"getStorage:fail "+e.message})})},getStorageSync:function(e){var t=Mp.storage.getItem(e),n=(Mp.storage.getItem(e+qs)||"").toLowerCase();return"string"!=typeof t?"":Gs(n,t)},removeStorage:function(e,t){void 0===e&&(e={});var n=e.key;Mp.storage.removeItemAsync(n+qs),Mp.storage.removeItemAsync(n,function(e){yr(t,{errMsg:"removeStorage:ok"})},function(e){yr(t,{errMsg:"removeStorage:fail "+e.message})})},removeStorageSync:function(e){Mp.storage.removeItem(e+qs),Mp.storage.removeItem(e)},clearStorage:function(e,t){Mp.storage.clearAsync(function(e){yr(t,{errMsg:"clearStorage:ok"})},function(e){yr(t,{errMsg:"clearStorage:fail "+e.message})})},clearStorageSync:function(){Mp.storage.clear()},getStorageInfo:Xs,getStorageInfoSync:function(){var e=Xs();return delete e.errMsg,e},showKeyboard:function(){return Mp.key.showSoftKeybord(),{errMsg:"showKeyboard:ok"}},hideKeyboard:function(){return Mp.key.hideSoftKeybord(),{errMsg:"hideKeyboard:ok"}},setNavigationBarTitle:function(e){void 0===e&&(e={});var t=e.title;void 0===t&&(t="");var n=Or();if(n){var r=n.getStyle();return r&&r.titleNView&&n.setStyle({titleNView:{titleText:t}}),{errMsg:"setNavigationBarTitle:ok"}}return{errMsg:"setNavigationBarTitle:fail"}},showNavigationBarLoading:function(){return Mp.nativeUI.showWaiting("",{modal:!1}),{errMsg:"showNavigationBarLoading:ok"}},hideNavigationBarLoading:function(){return Mp.nativeUI.closeWaiting(),{errMsg:"hideNavigationBarLoading:ok"}},setNavigationBarColor:function(e){void 0===e&&(e={});var t,n,r=e.frontColor,i=e.backgroundColor,o=Or();if(o){var a={};r&&(a.titleColor=r),i&&(a.backgroundColor=i);var s="#000000"===r?"dark":"light";Mp.navigator.setStatusBarStyle(s),t=s,(n=Vp()).length&&(n[n.length-1].$page.meta.statusBarStyle=t);var c=o.getStyle();return c&&c.titleNView&&(c.titleNView.autoBackButton&&(a.backButton=a.backButton||{},a.backButton.color=r),o.setStyle({titleNView:a})),{errMsg:"setNavigationBarColor:ok"}}return{errMsg:"setNavigationBarColor:fail"}},showLoading:function(e){return Tr(Ys,Object.assign({},e,{type:"loading"}),"showToast","showLoading")},hideLoading:function(){return Tr(Js,"loading","hide","hideLoading")},showToast:Ys,hideToast:function(){return Tr(Js,"toast","hide","hideToast")},hide:Js,showModal:function(e,t){void 0===e&&(e={});var n=e.title;void 0===n&&(n="");var r=e.content;void 0===r&&(r="");var i=e.showCancel;void 0===i&&(i=!0);var o=e.cancelText;void 0===o&&(o="取消");var a=e.cancelColor;void 0===a&&(a="#000000");var s=e.confirmText;void 0===s&&(s="确定");var c=e.confirmColor;void 0===c&&(c="#3CC51F"),r=r||" ",Mp.nativeUI.confirm(r,function(e){yr(t,i?{errMsg:"showModal:ok",confirm:1===e.index,cancel:0===e.index||-1===e.index}:{errMsg:"showModal:ok",confirm:0===e.index,cancel:!1})},n,i?[o,s]:[s])},showActionSheet:function(e,t){var n=e.itemList;void 0===n&&(n=[]);var r=e.itemColor;void 0===r&&(r="#000000");var i=e.title;void 0===i&&(i="");var o=e.popover,a={buttons:n.map(function(e){return{title:e,color:r}})};i&&(a.title=i),a.cancel="",Mp.nativeUI.actionSheet(Object.assign(a,{popover:o}),function(e){0<e.index?yr(t,{errMsg:"showActionSheet:ok",tapIndex:e.index-1}):yr(t,{errMsg:"showActionSheet:fail cancel"})})},setTabBarBadge:function(e){var t=e.index,n=e.text,r=e.type;return void 0===r&&(r="text"),Fo.setTabBarBadge(r,t,n),{errMsg:"setTabBarBadge:ok"}},setTabBarItem:function(e){var t=e.index,n=e.text,r=e.iconPath,i=e.selectedIconPath,o=e.pagePath;Fo.setTabBarItem(t,n,r,i);var a=o&&Fp.find(function(e){return e.path===o});if(a){var s=a.meta;s.isTabBar=!0,s.tabBarIndex=t,s.isQuit=!0;var c=Rp.tabBar;c&&c.list&&c.list[t]&&(c.list[t].pagePath=o.startsWith("/")?o.substring(1):o)}return{errMsg:"setTabBarItem:ok"}},setTabBarStyle:function(e){if(void 0===e&&(e={}),!xr())return{errMsg:"setTabBarStyle:fail not TabBar page"};var t={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"},n=e.borderStyle;return n in t&&(e.borderStyle=t[n]),Fo.setTabBarStyle(e),{errMsg:"setTabBarStyle:ok"}},hideTabBar:function(e){var t=e.animation;return xr()?(Fo.hideTabBar(t),{errMsg:"hideTabBar:ok"}):{errMsg:"hideTabBar:fail not TabBar page"}},showTabBar:function(e){var t=e.animation;return xr()?(Fo.showTabBar(t),{errMsg:"showTabBar:ok"}):{errMsg:"showTabBar:fail not TabBar page"}},requestComponentInfo:function(e,t,n){var r,i,o;e.$page.meta.isNVue?tc(e,t,n):(r=e,i=t,o=n,jp.publishHandler("requestComponentInfo",{reqId:Qs.push(o),reqs:i},r.$page.id))},createRewardedVideoAd:function(e){return new ac(e)},createFullScreenVideoAd:function(e){return new uc(e)}}),dc=Object.assign(Object.create(null),lc,mr);function fc(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return dc[e].apply(null,t)}function pc(e,t){return jp.on("api."+e,t)}function hc(e){var t=Vp(),n=t.length;return n||jp.emit("onError",e+":fail"),t[n-1].$vm}function vc(){var e=Vp(),t=e[e.length-1];return t&&t.$page.id}var gc=["canplay","play","pause","stop","ended","timeUpdate","prev","next","error","waiting"],mc={};gc.forEach(function(e){mc[e]=[]});var yc,_c=[{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"buffered",readonly:!0},{name:"title",cache:!0},{name:"epname",cache:!0},{name:"singer",cache:!0},{name:"coverImgUrl",cache:!0},{name:"webUrl",cache:!0},{name:"protocol",readonly:!0,default:"http"}],bc=function(){var r=this;this._options={},pc("onBackgroundAudioStateChange",function(e){var t=e.state,n=e.errMsg,r=e.errCode;mc[t].forEach(function(e){"function"==typeof e&&e("error"===t?{errMsg:n,errCode:r}:{})})}),_c.forEach(function(t){var n=t.name,e={get:function(){var e=t.cache?this._options:fc("getBackgroundAudioState");return n in e?e[n]:t.default}};t.readonly||(e.set=function(e){this._options[n]=e,fc("setBackgroundAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(r,n,e)})};bc.prototype.play=function(){this._operate("play")},bc.prototype.pause=function(){this._operate("pause")},bc.prototype.stop=function(){this._operate("stop")},bc.prototype.seek=function(e){this._operate("seek",{currentTime:e})},bc.prototype._operate=function(e,t){fc("operateBackgroundAudio",Object.assign({},t,{operationType:e}))},gc.forEach(function(t){var e=t[0].toUpperCase()+t.substr(1);bc.prototype["on"+e]=function(e){mc[t].push(e)}});var wc=Object.freeze({__proto__:null,getBackgroundAudioManager:function(){return yc||(yc=new bc)}}),kc=Gn(function(e,t){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;t.assign=function(e){for(var t,n,r=Array.prototype.slice.call(arguments,1);r.length;){var i=r.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var o in i)t=i,n=o,Object.prototype.hasOwnProperty.call(t,n)&&(e[o]=i[o])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},i={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(n)}),Sc=(kc.assign,kc.shrinkBuf,kc.setTyped,kc.Buf8,kc.Buf16,kc.Buf32,0),xc=1;function Cc(e){for(var t=e.length;0<=--t;)e[t]=0}var Tc=0,Oc=29,Ec=256,Ac=Ec+1+Oc,Ic=30,$c=19,Pc=2*Ac+1,Mc=15,jc=16,Bc=7,Nc=256,Dc=16,Lc=17,Rc=18,Fc=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],zc=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Uc=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Vc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],qc=new Array(2*(Ac+2));Cc(qc);var Wc=new Array(2*Ic);Cc(Wc);var Hc=new Array(512);Cc(Hc);var Gc=new Array(256);Cc(Gc);var Xc=new Array(Oc);Cc(Xc);var Yc,Jc,Kc,Zc=new Array(Ic);function Qc(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function eu(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function tu(e){return e<256?Hc[e]:Hc[256+(e>>>7)]}function nu(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function ru(e,t,n){e.bi_valid>jc-n?(e.bi_buf|=t<<e.bi_valid&65535,nu(e,e.bi_buf),e.bi_buf=t>>jc-e.bi_valid,e.bi_valid+=n-jc):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function iu(e,t,n){ru(e,n[2*t],n[2*t+1])}function ou(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function au(e,t,n){var r,i,o=new Array(Mc+1),a=0;for(r=1;r<=Mc;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=ou(o[s]++,s))}}function su(e){var t;for(t=0;t<Ac;t++)e.dyn_ltree[2*t]=0;for(t=0;t<Ic;t++)e.dyn_dtree[2*t]=0;for(t=0;t<$c;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*Nc]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function cu(e){8<e.bi_valid?nu(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function uu(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function lu(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&uu(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!uu(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function du(e,t,n){var r,i,o,a,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?iu(e,i,t):(iu(e,(o=Gc[i])+Ec+1,t),0!==(a=Fc[o])&&ru(e,i-=Xc[o],a),iu(e,o=tu(--r),n),0!==(a=zc[o])&&ru(e,r-=Zc[o],a)),s<e.last_lit;);iu(e,Nc,t)}function fu(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=Pc,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)lu(e,o,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],lu(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,lu(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,v=0;for(o=0;o<=Mc;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<Pc;n++)h<(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(o=h,v++),c[2*r+1]=o,u<r||(e.bl_count[o]++,a=0,p<=r&&(a=f[r-p]),s=c[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=h-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[h]--,v-=2}while(0<v);for(o=h;0!==o;o--)for(r=e.bl_count[o];0!==r;)u<(i=e.heap[--n])||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),au(o,u,e.bl_count)}function pu(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*Dc]++):s<=10?e.bl_tree[2*Lc]++:e.bl_tree[2*Rc]++,o=i,(s=0)===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))}function hu(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<c&&i===a)){if(s<u)for(;iu(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(iu(e,i,e.bl_tree),s--),iu(e,Dc,e.bl_tree),ru(e,s-3,2)):s<=10?(iu(e,Lc,e.bl_tree),ru(e,s-3,3)):(iu(e,Rc,e.bl_tree),ru(e,s-11,7));o=i,(s=0)===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4)}}Cc(Zc);var vu=!1;function gu(e,t,n,r){var i,o,a,s;ru(e,(Tc<<1)+(r?1:0),3),o=t,a=n,s=!0,cu(i=e),s&&(nu(i,a),nu(i,~a)),kc.arraySet(i.pending_buf,i.window,o,a,i.pending),i.pending+=a}var mu={_tr_init:function(e){vu||(function(){var e,t,n,r,i,o=new Array(Mc+1);for(r=n=0;r<Oc-1;r++)for(Xc[r]=n,e=0;e<1<<Fc[r];e++)Gc[n++]=r;for(Gc[n-1]=r,r=i=0;r<16;r++)for(Zc[r]=i,e=0;e<1<<zc[r];e++)Hc[i++]=r;for(i>>=7;r<Ic;r++)for(Zc[r]=i<<7,e=0;e<1<<zc[r]-7;e++)Hc[256+i++]=r;for(t=0;t<=Mc;t++)o[t]=0;for(e=0;e<=143;)qc[2*e+1]=8,e++,o[8]++;for(;e<=255;)qc[2*e+1]=9,e++,o[9]++;for(;e<=279;)qc[2*e+1]=7,e++,o[7]++;for(;e<=287;)qc[2*e+1]=8,e++,o[8]++;for(au(qc,Ac+1,o),e=0;e<Ic;e++)Wc[2*e+1]=5,Wc[2*e]=ou(e,5);Yc=new Qc(qc,Fc,Ec+1,Ac,Mc),Jc=new Qc(Wc,zc,0,Ic,Mc),Kc=new Qc(new Array(0),Uc,0,$c,Bc)}(),vu=!0),e.l_desc=new eu(e.dyn_ltree,Yc),e.d_desc=new eu(e.dyn_dtree,Jc),e.bl_desc=new eu(e.bl_tree,Kc),e.bi_buf=0,e.bi_valid=0,su(e)},_tr_stored_block:gu,_tr_flush_block:function(e,t,n,r){var i,o,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return Sc;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return xc;for(t=32;t<Ec;t++)if(0!==e.dyn_ltree[2*t])return xc;return Sc}(e)),fu(e,e.l_desc),fu(e,e.d_desc),a=function(e){var t;for(pu(e,e.dyn_ltree,e.l_desc.max_code),pu(e,e.dyn_dtree,e.d_desc.max_code),fu(e,e.bl_desc),t=$c-1;3<=t&&0===e.bl_tree[2*Vc[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?gu(e,t,n,r):4===e.strategy||o===i?(ru(e,2+(r?1:0),3),du(e,qc,Wc)):(ru(e,4+(r?1:0),3),function(e,t,n,r){var i;for(ru(e,t-257,5),ru(e,n-1,5),ru(e,r-4,4),i=0;i<r;i++)ru(e,e.bl_tree[2*Vc[i]+1],3);hu(e,e.dyn_ltree,t-1),hu(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),du(e,e.dyn_ltree,e.dyn_dtree)),su(e),r&&cu(e)},_tr_tally:function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Gc[n]+Ec+1)]++,e.dyn_dtree[2*tu(t)]++),e.last_lit===e.lit_bufsize-1},_tr_align:function(e){var t;ru(e,2,3),iu(e,Nc,qc),16===(t=e).bi_valid?(nu(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}};var yu=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0};var _u=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();var bu,wu=function(e,t,n,r){var i=_u,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e},ku={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Su=0,xu=4,Cu=0,Tu=-2,Ou=-1,Eu=4,Au=2,Iu=8,$u=9,Pu=286,Mu=30,ju=19,Bu=2*Pu+1,Nu=15,Du=3,Lu=258,Ru=Lu+Du+1,Fu=42,zu=113,Uu=1,Vu=2,qu=3,Wu=4;function Hu(e,t){return e.msg=ku[t],t}function Gu(e){return(e<<1)-(4<e?9:0)}function Xu(e){for(var t=e.length;0<=--t;)e[t]=0}function Yu(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(kc.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Ju(e,t){mu._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Yu(e.strm)}function Ku(e,t){e.pending_buf[e.pending++]=t}function Zu(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Qu(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-Ru?e.strstart-(e.w_size-Ru):0,u=e.window,l=e.w_mask,d=e.prev,f=e.strstart+Lu,p=u[o+a-1],h=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===h&&u[n+a-1]===p&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<f);if(r=Lu-(f-o),o=f-Lu,a<r){if(e.match_start=t,s<=(a=r))break;p=u[o+a-1],h=u[o+a]}}}while((t=d[t&l])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function el(e){var t,n,r,i,o,a,s,c,u,l,d=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=d+(d-Ru)){for(kc.arraySet(e.window,e.window,d,d,0),e.match_start-=d,e.strstart-=d,e.block_start-=d,t=n=e.hash_size;r=e.head[--t],e.head[t]=d<=r?r-d:0,--n;);for(t=n=d;r=e.prev[--t],e.prev[t]=d<=r?r-d:0,--n;);i+=d}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,c=e.strstart+e.lookahead,u=i,l=void 0,l=a.avail_in,u<l&&(l=u),n=0===l?0:(a.avail_in-=l,kc.arraySet(s,a.input,a.next_in,l,c),1===a.state.wrap?a.adler=yu(a.adler,s,l,c):2===a.state.wrap&&(a.adler=wu(a.adler,s,l,c)),a.next_in+=l,a.total_in+=l,l),e.lookahead+=n,e.lookahead+e.insert>=Du)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+Du-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<Du)););}while(e.lookahead<Ru&&0!==e.strm.avail_in)}function tl(e,t){for(var n,r;;){if(e.lookahead<Ru){if(el(e),e.lookahead<Ru&&t===Su)return Uu;if(0===e.lookahead)break}if(n=0,e.lookahead>=Du&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Du-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Ru&&(e.match_length=Qu(e,n)),e.match_length>=Du)if(r=mu._tr_tally(e,e.strstart-e.match_start,e.match_length-Du),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Du){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Du-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=mu._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Ju(e,!1),0===e.strm.avail_out))return Uu}return e.insert=e.strstart<Du-1?e.strstart:Du-1,t===xu?(Ju(e,!0),0===e.strm.avail_out?qu:Wu):e.last_lit&&(Ju(e,!1),0===e.strm.avail_out)?Uu:Vu}function nl(e,t){for(var n,r,i;;){if(e.lookahead<Ru){if(el(e),e.lookahead<Ru&&t===Su)return Uu;if(0===e.lookahead)break}if(n=0,e.lookahead>=Du&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Du-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Du-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Ru&&(e.match_length=Qu(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===Du&&4096<e.strstart-e.match_start)&&(e.match_length=Du-1)),e.prev_length>=Du&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-Du,r=mu._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-Du),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Du-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=Du-1,e.strstart++,r&&(Ju(e,!1),0===e.strm.avail_out))return Uu}else if(e.match_available){if((r=mu._tr_tally(e,0,e.window[e.strstart-1]))&&Ju(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return Uu}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=mu._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Du-1?e.strstart:Du-1,t===xu?(Ju(e,!0),0===e.strm.avail_out?qu:Wu):e.last_lit&&(Ju(e,!1),0===e.strm.avail_out)?Uu:Vu}function rl(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function il(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Iu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new kc.Buf16(2*Bu),this.dyn_dtree=new kc.Buf16(2*(2*Mu+1)),this.bl_tree=new kc.Buf16(2*(2*ju+1)),Xu(this.dyn_ltree),Xu(this.dyn_dtree),Xu(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new kc.Buf16(Nu+1),this.heap=new kc.Buf16(2*Pu+1),Xu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new kc.Buf16(2*Pu+1),Xu(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ol(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=Au,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Fu:zu,e.adler=2===t.wrap?0:1,t.last_flush=Su,mu._tr_init(t),Cu):Hu(e,Tu)}function al(e){var t,n=ol(e);return n===Cu&&((t=e.state).window_size=2*t.w_size,Xu(t.head),t.max_lazy_match=bu[t.level].max_lazy,t.good_match=bu[t.level].good_length,t.nice_match=bu[t.level].nice_length,t.max_chain_length=bu[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=Du-1,t.match_available=0,t.ins_h=0),n}function sl(e,t,n,r,i,o){if(!e)return Tu;var a=1;if(t===Ou&&(t=6),r<0?(a=0,r=-r):15<r&&(a=2,r-=16),i<1||$u<i||n!==Iu||r<8||15<r||t<0||9<t||o<0||Eu<o)return Hu(e,Tu);8===r&&(r=9);var s=new il;return(e.state=s).strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+Du-1)/Du),s.window=new kc.Buf8(2*s.w_size),s.head=new kc.Buf16(s.hash_size),s.prev=new kc.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new kc.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=o,s.method=n,al(e)}bu=[new rl(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(el(e),0===e.lookahead&&t===Su)return Uu;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Ju(e,!1),0===e.strm.avail_out))return Uu;if(e.strstart-e.block_start>=e.w_size-Ru&&(Ju(e,!1),0===e.strm.avail_out))return Uu}return e.insert=0,t===xu?(Ju(e,!0),0===e.strm.avail_out?qu:Wu):(e.strstart>e.block_start&&(Ju(e,!1),e.strm.avail_out),Uu)}),new rl(4,4,8,4,tl),new rl(4,5,16,8,tl),new rl(4,6,32,32,tl),new rl(4,4,16,16,nl),new rl(8,16,32,32,nl),new rl(8,16,128,128,nl),new rl(8,32,128,256,nl),new rl(32,128,258,1024,nl),new rl(32,258,258,4096,nl)];var cl={deflateInit:function(e,t){return sl(e,t,Iu,15,8,0)},deflateInit2:sl,deflateReset:al,deflateResetKeep:ol,deflateSetHeader:function(e,t){return e&&e.state?2!==e.state.wrap?Tu:(e.state.gzhead=t,Cu):Tu},deflate:function(e,t){var n,r,i,o;if(!e||!e.state||5<t||t<0)return e?Hu(e,Tu):Tu;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&t!==xu)return Hu(e,0===e.avail_out?-5:Tu);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===Fu)if(2===r.wrap)e.adler=0,Ku(r,31),Ku(r,139),Ku(r,8),r.gzhead?(Ku(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Ku(r,255&r.gzhead.time),Ku(r,r.gzhead.time>>8&255),Ku(r,r.gzhead.time>>16&255),Ku(r,r.gzhead.time>>24&255),Ku(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),Ku(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Ku(r,255&r.gzhead.extra.length),Ku(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=wu(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Ku(r,0),Ku(r,0),Ku(r,0),Ku(r,0),Ku(r,0),Ku(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),Ku(r,3),r.status=zu);else{var a=Iu+(r.w_bits-8<<4)<<8;a|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=zu,Zu(r,a),0!==r.strstart&&(Zu(r,e.adler>>>16),Zu(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=wu(e.adler,r.pending_buf,r.pending-i,i)),Yu(e),i=r.pending,r.pending!==r.pending_buf_size));)Ku(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=wu(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=wu(e.adler,r.pending_buf,r.pending-i,i)),Yu(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}Ku(r,o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=wu(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=wu(e.adler,r.pending_buf,r.pending-i,i)),Yu(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}Ku(r,o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=wu(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Yu(e),r.pending+2<=r.pending_buf_size&&(Ku(r,255&e.adler),Ku(r,e.adler>>8&255),e.adler=0,r.status=zu)):r.status=zu),0!==r.pending){if(Yu(e),0===e.avail_out)return r.last_flush=-1,Cu}else if(0===e.avail_in&&Gu(t)<=Gu(n)&&t!==xu)return Hu(e,-5);if(666===r.status&&0!==e.avail_in)return Hu(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==Su&&666!==r.status){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(el(e),0===e.lookahead)){if(t===Su)return Uu;break}if(e.match_length=0,n=mu._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Ju(e,!1),0===e.strm.avail_out))return Uu}return e.insert=0,t===xu?(Ju(e,!0),0===e.strm.avail_out?qu:Wu):e.last_lit&&(Ju(e,!1),0===e.strm.avail_out)?Uu:Vu}(r,t):3===r.strategy?function(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=Lu){if(el(e),e.lookahead<=Lu&&t===Su)return Uu;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=Du&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=e.strstart+Lu;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);e.match_length=Lu-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Du?(n=mu._tr_tally(e,1,e.match_length-Du),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=mu._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Ju(e,!1),0===e.strm.avail_out))return Uu}return e.insert=0,t===xu?(Ju(e,!0),0===e.strm.avail_out?qu:Wu):e.last_lit&&(Ju(e,!1),0===e.strm.avail_out)?Uu:Vu}(r,t):bu[r.level].func(r,t);if(s!==qu&&s!==Wu||(r.status=666),s===Uu||s===qu)return 0===e.avail_out&&(r.last_flush=-1),Cu;if(s===Vu&&(1===t?mu._tr_align(r):5!==t&&(mu._tr_stored_block(r,0,0,!1),3===t&&(Xu(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Yu(e),0===e.avail_out))return r.last_flush=-1,Cu}return t!==xu?Cu:r.wrap<=0?1:(2===r.wrap?(Ku(r,255&e.adler),Ku(r,e.adler>>8&255),Ku(r,e.adler>>16&255),Ku(r,e.adler>>24&255),Ku(r,255&e.total_in),Ku(r,e.total_in>>8&255),Ku(r,e.total_in>>16&255),Ku(r,e.total_in>>24&255)):(Zu(r,e.adler>>>16),Zu(r,65535&e.adler)),Yu(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?Cu:1)},deflateEnd:function(e){var t;return e&&e.state?(t=e.state.status)!==Fu&&69!==t&&73!==t&&91!==t&&103!==t&&t!==zu&&666!==t?Hu(e,Tu):(e.state=null,t===zu?Hu(e,-3):Cu):Tu},deflateSetDictionary:function(e,t){var n,r,i,o,a,s,c,u,l=t.length;if(!e||!e.state)return Tu;if(2===(o=(n=e.state).wrap)||1===o&&n.status!==Fu||n.lookahead)return Tu;for(1===o&&(e.adler=yu(e.adler,t,l,0)),n.wrap=0,l>=n.w_size&&(0===o&&(Xu(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new kc.Buf8(n.w_size),kc.arraySet(u,t,l-n.w_size,n.w_size,0),t=u,l=n.w_size),a=e.avail_in,s=e.next_in,c=e.input,e.avail_in=l,e.next_in=0,e.input=t,el(n);n.lookahead>=Du;){for(r=n.strstart,i=n.lookahead-(Du-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+Du-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--i;);n.strstart=r,n.lookahead=Du-1,el(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=Du-1,n.match_available=0,e.next_in=s,e.input=c,e.avail_in=a,n.wrap=o,Cu},deflateInfo:"pako deflate (from Nodeca project)"},ul=!0,ll=!0;try{String.fromCharCode.apply(null,[0])}catch(e){ul=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){ll=!1}for(var dl=new kc.Buf8(256),fl=0;fl<256;fl++)dl[fl]=252<=fl?6:248<=fl?5:240<=fl?4:224<=fl?3:192<=fl?2:1;dl[254]=dl[254]=1;function pl(e,t){if(t<65534&&(e.subarray&&ll||!e.subarray&&ul))return String.fromCharCode.apply(null,kc.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}var hl={string2buf:function(e){var t,n,r,i,o,a=e.length,s=0;for(i=0;i<a;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new kc.Buf8(s),i=o=0;o<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},buf2binstring:function(e){return pl(e,e.length)},binstring2buf:function(e){for(var t=new kc.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},buf2string:function(e,t){var n,r,i,o,a=t||e.length,s=new Array(2*a);for(n=r=0;n<a;)if((i=e[n++])<128)s[r++]=i;else if(4<(o=dl[i]))s[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<a;)i=i<<6|63&e[n++],o--;1<o?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return pl(s,r)},utf8border:function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+dl[e[n]]>t?n:t}};var vl=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},gl=Object.prototype.toString,ml=0,yl=-1,_l=0,bl=8;function wl(e){if(!(this instanceof wl))return new wl(e);this.options=kc.assign({level:yl,method:bl,chunkSize:16384,windowBits:15,memLevel:8,strategy:_l,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new vl,this.strm.avail_out=0;var n=cl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==ml)throw new Error(ku[n]);if(t.header&&cl.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?hl.string2buf(t.dictionary):"[object ArrayBuffer]"===gl.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=cl.deflateSetDictionary(this.strm,r))!==ml)throw new Error(ku[n]);this._dict_set=!0}}function kl(e,t){var n=new wl(t);if(n.push(e,!0),n.err)throw n.msg||ku[n.err];return n.result}wl.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=hl.string2buf(e):"[object ArrayBuffer]"===gl.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new kc.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=cl.deflate(i,r))&&n!==ml)return this.onEnd(n),!(this.ended=!0);0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(hl.buf2binstring(kc.shrinkBuf(i.output,i.next_out))):this.onData(kc.shrinkBuf(i.output,i.next_out)))}while((0<i.avail_in||0===i.avail_out)&&1!==n);return 4===r?(n=cl.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===ml):2!==r||(this.onEnd(ml),!(i.avail_out=0))},wl.prototype.onData=function(e){this.chunks.push(e)},wl.prototype.onEnd=function(e){e===ml&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=kc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Sl={Deflate:wl,deflate:kl,deflateRaw:function(e,t){return(t=t||{}).raw=!0,kl(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,kl(e,t)}},xl=function(e,t){var n,r,i,o,a,s,c,u,l,d,f,p,h,v,g,m,y,_,b,w,k,S,x,C,T;n=e.state,r=e.next_in,C=e.input,i=r+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,d=n.wnext,f=n.window,p=n.hold,h=n.bits,v=n.lencode,g=n.distcode,m=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{h<15&&(p+=C[r++]<<h,h+=8,p+=C[r++]<<h,h+=8),_=v[p&m];t:for(;;){if(p>>>=b=_>>>24,h-=b,0===(b=_>>>16&255))T[o++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=v[(65535&_)+(p&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&_,(b&=15)&&(h<b&&(p+=C[r++]<<h,h+=8),w+=p&(1<<b)-1,p>>>=b,h-=b),h<15&&(p+=C[r++]<<h,h+=8,p+=C[r++]<<h,h+=8),_=g[p&y];n:for(;;){if(p>>>=b=_>>>24,h-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=g[(65535&_)+(p&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(k=65535&_,h<(b&=15)&&(p+=C[r++]<<h,(h+=8)<b&&(p+=C[r++]<<h,h+=8)),c<(k+=p&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=b,h-=b,(b=o-a)<k){if(l<(b=k-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=f,(S=0)===d){if(S+=u-b,b<w){for(w-=b;T[o++]=f[S++],--b;);S=o-k,x=T}}else if(d<b){if(S+=u+d-b,(b-=d)<w){for(w-=b;T[o++]=f[S++],--b;);if(S=0,d<w){for(w-=b=d;T[o++]=f[S++],--b;);S=o-k,x=T}}}else if(S+=d-b,b<w){for(w-=b;T[o++]=f[S++],--b;);S=o-k,x=T}for(;2<w;)T[o++]=x[S++],T[o++]=x[S++],T[o++]=x[S++],w-=3;w&&(T[o++]=x[S++],1<w&&(T[o++]=x[S++]))}else{for(S=o-k;T[o++]=T[S++],T[o++]=T[S++],T[o++]=T[S++],2<(w-=3););w&&(T[o++]=T[S++],1<w&&(T[o++]=T[S++]))}break}}break}}while(r<i&&o<s);r-=w=h>>3,p&=(1<<(h-=w<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=h},Cl=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Tl=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Ol=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],El=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Al=function(e,t,n,r,i,o,a,s){var c,u,l,d,f,p,h,v,g,m=s.bits,y=0,_=0,b=0,w=0,k=0,S=0,x=0,C=0,T=0,O=0,E=null,A=0,I=new kc.Buf16(16),$=new kc.Buf16(16),P=null,M=0;for(y=0;y<=15;y++)I[y]=0;for(_=0;_<r;_++)I[t[n+_]]++;for(k=m,w=15;1<=w&&0===I[w];w--);if(w<k&&(k=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<w&&0===I[b];b++);for(k<b&&(k=b),y=C=1;y<=15;y++)if(C<<=1,(C-=I[y])<0)return-1;if(0<C&&(0===e||1!==w))return-1;for($[1]=0,y=1;y<15;y++)$[y+1]=$[y]+I[y];for(_=0;_<r;_++)0!==t[n+_]&&(a[$[t[n+_]]++]=_);if(0===e?(E=P=a,p=19):1===e?(E=Cl,A-=257,P=Tl,M-=257,p=256):(E=Ol,P=El,p=-1),y=b,f=o,x=_=O=0,l=-1,d=(T=1<<(S=k))-1,1===e&&852<T||2===e&&592<T)return 1;for(;;){for(h=y-x,a[_]<p?(v=0,g=a[_]):a[_]>p?(v=P[M+a[_]],g=E[A+a[_]]):(v=96,g=0),c=1<<y-x,b=u=1<<S;i[f+(O>>x)+(u-=c)]=h<<24|v<<16|g|0,0!==u;);for(c=1<<y-1;O&c;)c>>=1;if(0!==c?(O&=c-1,O+=c):O=0,_++,0==--I[y]){if(y===w)break;y=t[n+a[_]]}if(k<y&&(O&d)!==l){for(0===x&&(x=k),f+=b,C=1<<(S=y-x);S+x<w&&!((C-=I[S+x])<=0);)S++,C<<=1;if(T+=1<<S,1===e&&852<T||2===e&&592<T)return 1;i[l=O&d]=k<<24|S<<16|f-o|0}}return 0!==O&&(i[f+O]=y-x<<24|64<<16|0),s.bits=k,0},Il=1,$l=2,Pl=0,Ml=-2,jl=1,Bl=852,Nl=592;function Dl(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Ll(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new kc.Buf16(320),this.work=new kc.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Rl(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=jl,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new kc.Buf32(Bl),t.distcode=t.distdyn=new kc.Buf32(Nl),t.sane=1,t.back=-1,Pl):Ml}function Fl(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,Rl(e)):Ml}function zl(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?Ml:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Fl(e))):Ml}function Ul(e,t){var n,r;return e?(r=new Ll,(e.state=r).window=null,(n=zl(e,t))!==Pl&&(e.state=null),n):Ml}var Vl,ql,Wl=!0;function Hl(e){if(Wl){var t;for(Vl=new kc.Buf32(512),ql=new kc.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Al(Il,e.lens,0,288,Vl,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Al($l,e.lens,0,32,ql,0,e.work,{bits:5}),Wl=!1}e.lencode=Vl,e.lenbits=9,e.distcode=ql,e.distbits=5}function Gl(e,t,n,r){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new kc.Buf8(o.wsize)),r>=o.wsize?(kc.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(r<(i=o.wsize-o.wnext)&&(i=r),kc.arraySet(o.window,t,n-r,i,o.wnext),(r-=i)?(kc.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}var Xl={inflateReset:Fl,inflateReset2:zl,inflateResetKeep:Rl,inflateInit:function(e){return Ul(e,15)},inflateInit2:Ul,inflate:function(e,t){var n,r,i,o,a,s,c,u,l,d,f,p,h,v,g,m,y,_,b,w,k,S,x,C,T=0,O=new kc.Buf8(4),E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Ml;12===(n=e.state).mode&&(n.mode=13),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,l=n.bits,d=s,f=c,S=Pl;e:for(;;)switch(n.mode){case jl:if(0===n.wrap){n.mode=13;break}for(;l<16;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(2&n.wrap&&35615===u){O[n.check=0]=255&u,O[1]=u>>>8&255,n.check=wu(n.check,O,2,0),l=u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&u)){e.msg="unknown compression method",n.mode=30;break}if(l-=4,k=8+(15&(u>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<k,e.adler=n.check=1,n.mode=512&u?10:12,l=u=0;break;case 2:for(;l<16;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(n.flags=u,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&(O[0]=255&u,O[1]=u>>>8&255,n.check=wu(n.check,O,2,0)),l=u=0,n.mode=3;case 3:for(;l<32;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.head&&(n.head.time=u),512&n.flags&&(O[0]=255&u,O[1]=u>>>8&255,O[2]=u>>>16&255,O[3]=u>>>24&255,n.check=wu(n.check,O,4,0)),l=u=0,n.mode=4;case 4:for(;l<16;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&(O[0]=255&u,O[1]=u>>>8&255,n.check=wu(n.check,O,2,0)),l=u=0,n.mode=5;case 5:if(1024&n.flags){for(;l<16;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&(O[0]=255&u,O[1]=u>>>8&255,n.check=wu(n.check,O,2,0)),l=u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(s<(p=n.length)&&(p=s),p&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),kc.arraySet(n.head.extra,r,o,p,k)),512&n.flags&&(n.check=wu(n.check,r,p,o)),s-=p,o+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;for(p=0;k=r[o+p++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k)),k&&p<s;);if(512&n.flags&&(n.check=wu(n.check,r,p,o)),s-=p,o+=p,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;for(p=0;k=r[o+p++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k)),k&&p<s;);if(512&n.flags&&(n.check=wu(n.check,r,p,o)),s-=p,o+=p,k)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;l<16;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}l=u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;l<32;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}e.adler=n.check=Dl(u),l=u=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=l,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){u>>>=7&l,l-=7&l,n.mode=27;break}for(;l<3;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}switch(n.last=1&u,l-=1,3&(u>>>=1)){case 0:n.mode=14;break;case 1:if(Hl(n),n.mode=20,6===t){u>>>=2,l-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&u,l=u=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(p=n.length){if(s<p&&(p=s),c<p&&(p=c),0===p)break e;kc.arraySet(i,r,o,p,a),s-=p,o+=p,c-=p,a+=p,n.length-=p;break}n.mode=12;break;case 17:for(;l<14;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(n.nlen=257+(31&u),u>>>=5,l-=5,n.ndist=1+(31&u),u>>>=5,l-=5,n.ncode=4+(15&u),u>>>=4,l-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;l<3;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.lens[E[n.have++]]=7&u,u>>>=3,l-=3}for(;n.have<19;)n.lens[E[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x={bits:n.lenbits},S=Al(0,n.lens,0,19,n.lencode,0,n.work,x),n.lenbits=x.bits,S){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;m=(T=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,y=65535&T,!((g=T>>>24)<=l);){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(y<16)u>>>=g,l-=g,n.lens[n.have++]=y;else{if(16===y){for(C=g+2;l<C;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(u>>>=g,l-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}k=n.lens[n.have-1],p=3+(3&u),u>>>=2,l-=2}else if(17===y){for(C=g+3;l<C;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}l-=g,k=0,p=3+(7&(u>>>=g)),u>>>=3,l-=3}else{for(C=g+7;l<C;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}l-=g,k=0,p=11+(127&(u>>>=g)),u>>>=7,l-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;p--;)n.lens[n.have++]=k}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,x={bits:n.lenbits},S=Al(Il,n.lens,0,n.nlen,n.lencode,0,n.work,x),n.lenbits=x.bits,S){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,x={bits:n.distbits},S=Al($l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,x),n.distbits=x.bits,S){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=s&&258<=c){e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=l,xl(e,f),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,l=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;m=(T=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,y=65535&T,!((g=T>>>24)<=l);){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(m&&0==(240&m)){for(_=g,b=m,w=y;m=(T=n.lencode[w+((u&(1<<_+b)-1)>>_)])>>>16&255,y=65535&T,!(_+(g=T>>>24)<=l);){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}u>>>=_,l-=_,n.back+=_}if(u>>>=g,l-=g,n.back+=g,n.length=y,0===m){n.mode=26;break}if(32&m){n.back=-1,n.mode=12;break}if(64&m){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&m,n.mode=22;case 22:if(n.extra){for(C=n.extra;l<C;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;m=(T=n.distcode[u&(1<<n.distbits)-1])>>>16&255,y=65535&T,!((g=T>>>24)<=l);){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(0==(240&m)){for(_=g,b=m,w=y;m=(T=n.distcode[w+((u&(1<<_+b)-1)>>_)])>>>16&255,y=65535&T,!(_+(g=T>>>24)<=l);){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}u>>>=_,l-=_,n.back+=_}if(u>>>=g,l-=g,n.back+=g,64&m){e.msg="invalid distance code",n.mode=30;break}n.offset=y,n.extra=15&m,n.mode=24;case 24:if(n.extra){for(C=n.extra;l<C;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===c)break e;if(p=f-c,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}p>n.wnext?(p-=n.wnext,h=n.wsize-p):h=n.wnext-p,p>n.length&&(p=n.length),v=n.window}else v=i,h=a-n.offset,p=n.length;for(c<p&&(p=c),c-=p,n.length-=p;i[a++]=v[h++],--p;);0===n.length&&(n.mode=21);break;case 26:if(0===c)break e;i[a++]=n.length,c--,n.mode=21;break;case 27:if(n.wrap){for(;l<32;){if(0===s)break e;s--,u|=r[o++]<<l,l+=8}if(f-=c,e.total_out+=f,n.total+=f,f&&(e.adler=n.check=n.flags?wu(n.check,i,f,a-f):yu(n.check,i,f,a-f)),f=c,(n.flags?u:Dl(u))!==n.check){e.msg="incorrect data check",n.mode=30;break}l=u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;l<32;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}l=u=0}n.mode=29;case 29:S=1;break e;case 30:S=-3;break e;case 31:return-4;case 32:default:return Ml}return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=l,(n.wsize||f!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&Gl(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&&f&&(e.adler=n.check=n.flags?wu(n.check,i,f,e.next_out-f):yu(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===d&&0===f||4===t)&&S===Pl&&(S=-5),S},inflateEnd:function(e){if(!e||!e.state)return Ml;var t=e.state;return t.window&&(t.window=null),e.state=null,Pl},inflateGetHeader:function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?Ml:((n.head=t).done=!1,Pl):Ml},inflateSetDictionary:function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?Ml:11===n.mode&&yu(1,t,r,0)!==n.check?-3:Gl(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,Pl):Ml},inflateInfo:"pako inflate (from Nodeca project)"},Yl={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var Jl=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},Kl=Object.prototype.toString;function Zl(e){if(!(this instanceof Zl))return new Zl(e);this.options=kc.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new vl,this.strm.avail_out=0;var n=Xl.inflateInit2(this.strm,t.windowBits);if(n!==Yl.Z_OK)throw new Error(ku[n]);if(this.header=new Jl,Xl.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=hl.string2buf(t.dictionary):"[object ArrayBuffer]"===Kl.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Xl.inflateSetDictionary(this.strm,t.dictionary))!==Yl.Z_OK))throw new Error(ku[n])}function Ql(e,t){var n=new Zl(t);if(n.push(e,!0),n.err)throw n.msg||ku[n.err];return n.result}Zl.prototype.push=function(e,t){var n,r,i,o,a,s=this.strm,c=this.options.chunkSize,u=this.options.dictionary,l=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?Yl.Z_FINISH:Yl.Z_NO_FLUSH,"string"==typeof e?s.input=hl.binstring2buf(e):"[object ArrayBuffer]"===Kl.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new kc.Buf8(c),s.next_out=0,s.avail_out=c),(n=Xl.inflate(s,Yl.Z_NO_FLUSH))===Yl.Z_NEED_DICT&&u&&(n=Xl.inflateSetDictionary(this.strm,u)),n===Yl.Z_BUF_ERROR&&!0===l&&(n=Yl.Z_OK,l=!1),n!==Yl.Z_STREAM_END&&n!==Yl.Z_OK)return this.onEnd(n),!(this.ended=!0);s.next_out&&(0!==s.avail_out&&n!==Yl.Z_STREAM_END&&(0!==s.avail_in||r!==Yl.Z_FINISH&&r!==Yl.Z_SYNC_FLUSH)||("string"===this.options.to?(i=hl.utf8border(s.output,s.next_out),o=s.next_out-i,a=hl.buf2string(s.output,i),s.next_out=o,s.avail_out=c-o,o&&kc.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(kc.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(l=!0)}while((0<s.avail_in||0===s.avail_out)&&n!==Yl.Z_STREAM_END);return n===Yl.Z_STREAM_END&&(r=Yl.Z_FINISH),r===Yl.Z_FINISH?(n=Xl.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yl.Z_OK):r!==Yl.Z_SYNC_FLUSH||(this.onEnd(Yl.Z_OK),!(s.avail_out=0))},Zl.prototype.onData=function(e){this.chunks.push(e)},Zl.prototype.onEnd=function(e){e===Yl.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=kc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ed={Inflate:Zl,inflate:Ql,inflateRaw:function(e,t){return(t=t||{}).raw=!0,Ql(e,t)},ungzip:Ql},td={};(0,kc.assign)(td,Sl,ed,Yl);var nd=td,rd=Zs("canvasEvent");function id(e,t,n,r){jp.publishHandler(t+"-canvas-"+e,{canvasId:e,type:n,data:r},t)}jp.subscribe("onCanvasMethodCallback",function(e){var t=e.callbackId,n=e.data,r=rd.pop(t);r&&r(n)});var od={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function ad(e){var t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000")))return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255];if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){var n=t[1].slice(0,1),r=t[1].slice(1,2),i=t[1].slice(2,3);return[n=parseInt(n+n,16),r=parseInt(r+r,16),i=parseInt(i+i,16),255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e){return Math.min(255,parseInt(e.trim()))}).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))});var o=e.toLowerCase();if(_(od,o)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(od[o]);var a=parseInt(t[1].slice(0,2),16),s=parseInt(t[1].slice(2,4),16),c=parseInt(t[1].slice(4,6),16),u=parseInt(t[1].slice(6,8),16);return[a,s,c,u=0<=u?u:255]}return console.group("非法颜色: "+e),console.error("不支持颜色:"+e),console.groupEnd(),[0,0,0,255]}function sd(e,t){this.image=e,this.repetition=t}var cd=function(e,t){this.type=e,this.data=t,this.colorStop=[]};cd.prototype.addColorStop=function(e,t){this.colorStop.push([e,ad(t)])};function ud(e){this.width=e}var ld=function(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.currentTransform=[],this.currentStepAnimates=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}},dd={lineDashOffset:{configurable:!0},globalCompositeOperation:{configurable:!0},shadowBlur:{configurable:!0},shadowColor:{configurable:!0},shadowOffsetX:{configurable:!0},shadowOffsetY:{configurable:!0},font:{configurable:!0},fillStyle:{configurable:!0},strokeStyle:{configurable:!0},globalAlpha:{configurable:!0},textAlign:{configurable:!0},lineCap:{configurable:!0},lineJoin:{configurable:!0},lineWidth:{configurable:!0},miterLimit:{configurable:!0},textBaseline:{configurable:!0}};ld.prototype.draw=function(e,t){void 0===e&&(e=!1);var n,r=[].concat(this.actions);this.actions=[],this.path=[],"function"==typeof t&&(n=rd.push(t)),id(this.id,this.pageId,"actionsChanged",{actions:r,reserve:e,callbackId:n})},ld.prototype.createLinearGradient=function(e,t,n,r){return new cd("linear",[e,t,n,r])},ld.prototype.createCircularGradient=function(e,t,n){return new cd("radial",[e,t,n])},ld.prototype.createPattern=function(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new sd(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}},ld.prototype.measureText=function(e){var t=this.state.font,n=0,r=Mp.webview.all().find(function(e){return e.getURL().endsWith("www/__uniappview.html")});return r&&(n=Number(r.evalJSSync("("+function(e,t){var n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}.toString()+")("+JSON.stringify(e)+","+JSON.stringify(t)+")"))),new ud(n)},ld.prototype.save=function(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)},ld.prototype.restore=function(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}},ld.prototype.beginPath=function(){this.path=[],this.subpath=[]},ld.prototype.moveTo=function(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]},ld.prototype.lineTo=function(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])},ld.prototype.quadraticCurveTo=function(e,t,n,r){this.path.push({method:"quadraticCurveTo",data:[e,t,n,r]}),this.subpath.push([n,r])},ld.prototype.bezierCurveTo=function(e,t,n,r,i,o){this.path.push({method:"bezierCurveTo",data:[e,t,n,r,i,o]}),this.subpath.push([i,o])},ld.prototype.arc=function(e,t,n,r,i,o){void 0===o&&(o=!1),this.path.push({method:"arc",data:[e,t,n,r,i,o]}),this.subpath.push([e,t])},ld.prototype.rect=function(e,t,n,r){this.path.push({method:"rect",data:[e,t,n,r]}),this.subpath=[[e,t]]},ld.prototype.arcTo=function(e,t,n,r,i){this.path.push({method:"arcTo",data:[e,t,n,r,i]}),this.subpath.push([n,r])},ld.prototype.clip=function(){this.actions.push({method:"clip",data:[].concat(this.path)})},ld.prototype.closePath=function(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])},ld.prototype.clearActions=function(){this.actions=[],this.path=[],this.subpath=[]},ld.prototype.getActions=function(){var e=[].concat(this.actions);return this.clearActions(),e},dd.lineDashOffset.set=function(e){this.actions.push({method:"setLineDashOffset",data:[e]})},dd.globalCompositeOperation.set=function(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})},dd.shadowBlur.set=function(e){this.actions.push({method:"setShadowBlur",data:[e]})},dd.shadowColor.set=function(e){this.actions.push({method:"setShadowColor",data:[e]})},dd.shadowOffsetX.set=function(e){this.actions.push({method:"setShadowOffsetX",data:[e]})},dd.shadowOffsetY.set=function(e){this.actions.push({method:"setShadowOffsetY",data:[e]})},dd.font.set=function(e){var n=this,t=(this.state.font=e).match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(t){var r=t[1].trim().split(/\s/),i=parseFloat(t[3]),o=t[7],a=[];r.forEach(function(e,t){-1<["italic","oblique","normal"].indexOf(e)?(a.push({method:"setFontStyle",data:[e]}),n.state.fontStyle=e):-1<["bold","normal"].indexOf(e)?(a.push({method:"setFontWeight",data:[e]}),n.state.fontWeight=e):0===t?(a.push({method:"setFontStyle",data:["normal"]}),n.state.fontStyle="normal"):1===t&&s()}),1===r.length&&s(),r=a.map(function(e){return e.data[0]}).join(" "),this.state.fontSize=i,this.state.fontFamily=o,this.actions.push({method:"setFont",data:[r+" "+i+"px "+o]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function s(){a.push({method:"setFontWeight",data:["normal"]}),n.state.fontWeight="normal"}},dd.font.get=function(){return this.state.font},dd.fillStyle.set=function(e){this.setFillStyle(e)},dd.strokeStyle.set=function(e){this.setStrokeStyle(e)},dd.globalAlpha.set=function(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})},dd.textAlign.set=function(e){this.actions.push({method:"setTextAlign",data:[e]})},dd.lineCap.set=function(e){this.actions.push({method:"setLineCap",data:[e]})},dd.lineJoin.set=function(e){this.actions.push({method:"setLineJoin",data:[e]})},dd.lineWidth.set=function(e){this.actions.push({method:"setLineWidth",data:[e]})},dd.miterLimit.set=function(e){this.actions.push({method:"setMiterLimit",data:[e]})},dd.textBaseline.set=function(e){this.actions.push({method:"setTextBaseline",data:[e]})},Object.defineProperties(ld.prototype,dd),["scale","rotate","translate","setTransform","transform"].concat(["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"]).forEach(function(e){ld.prototype[e]=function(d){switch(d){case"fill":case"stroke":return function(){this.actions.push({method:d+"Path",data:[].concat(this.path)})};case"fillRect":return function(e,t,n,r){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,r]}]})};case"strokeRect":return function(e,t,n,r){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,r]}]})};case"fillText":case"strokeText":return function(e,t,n,r){var i=[e.toString(),t,n];"number"==typeof r&&i.push(r),this.actions.push({method:d,data:i})};case"drawImage":return function(e,t,n,r,i,o,a,s,c){var u;function l(e){return"number"==typeof e}void 0===c&&(o=t,a=n,s=r,c=i,i=r=n=t=void 0),u=l(t)&&l(n)&&l(r)&&l(i)?[e,o,a,s,c,t,n,r,i]:l(s)&&l(c)?[e,o,a,s,c]:[e,o,a],this.actions.push({method:d,data:u})};default:return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this.actions.push({method:d,data:e})}}}(e)}),["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"].forEach(function(e){ld.prototype[e]=function(i){switch(i){case"setFillStyle":case"setStrokeStyle":return function(e){"object"!=typeof e?this.actions.push({method:i,data:["normal",ad(e)]}):this.actions.push({method:i,data:[e.type,e.data,e.colorStop]})};case"setGlobalAlpha":return function(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:i,data:[e]})};case"setShadow":return function(e,t,n,r){r=ad(r),this.actions.push({method:i,data:[e,t,n,r]}),this.state.shadowBlur=n,this.state.shadowColor=r,this.state.shadowOffsetX=e,this.state.shadowOffsetY=t};case"setLineDash":return function(e,t){e=e||[0,0],t=t||0,this.actions.push({method:i,data:[e,t]}),this.state.lineDash=e};case"setFontSize":return function(e){this.state.font=this.state.font.replace(/\d+\.?\d*px/,e+"px"),this.state.fontSize=e,this.actions.push({method:i,data:[e]})};default:return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this.actions.push({method:i,data:e})}}}(e)});var fd=Object.freeze({__proto__:null,CanvasContext:ld,createCanvasContext:function(e,t){if(t)return new ld(e,t.$page.id);var n=vc();if(n)return new ld(e,n);jp.emit("onError","createCanvasContext:fail")},canvasGetImageData:function(e,n){var t=e.canvasId,r=e.x,i=e.y,o=e.width,a=e.height,s=vc();s?id(t,s,"getImageData",{x:r,y:i,width:o,height:a,callbackId:rd.push(function(e){var t=e.data;t&&t.length&&(e.compressed&&(t=nd.inflateRaw(t),delete e.compressed),e.data=new Uint8ClampedArray(t)),yr(n,e)})}):yr(n,{errMsg:"canvasGetImageData:fail"})},canvasPutImageData:function(e,t){var n=e.canvasId,r=e.data,i=e.x,o=e.y,a=e.width,s=e.height,c=vc();if(c){var u,l=rd.push(function(e){yr(t,e)});"iOS"!==Mp.os.name||"boolean"==typeof __WEEX_DEVTOOL__?(r=nd.deflateRaw(r,{to:"string"}),u=!0):r=Array.prototype.slice.call(r),id(n,c,"putImageData",{data:r,x:i,y:o,width:a,height:s,compressed:u,callbackId:l})}else yr(t,{errMsg:"canvasPutImageData:fail"})},canvasToTempFilePath:function(e,t){var n=e.x;void 0===n&&(n=0);var r=e.y;void 0===r&&(r=0);var i=e.width,o=e.height,a=e.destWidth,s=e.destHeight,c=e.canvasId,u=e.fileType,l=e.qualit,d=vc();if(d){var f=rd.push(function(e){yr(t,e)});id(c,d,"toTempFilePath",{x:n,y:r,width:i,height:o,destWidth:a,destHeight:s,fileType:u,qualit:l,dirname:gi+"/canvas",callbackId:f})}else yr(t,{errMsg:"canvasToTempFilePath:fail"})}});jp.subscribe("onMapMethodCallback",function(e){var t=e.callbackId,n=e.data;k.invoke(t,n)});var pd=function(e,t){this.id=e,this.pageVm=t};pd.prototype.$getAppMap=function(){return Mp.maps.getMapById(this.pageVm.$page.id+"-map-"+this.id)},["getCenterLocation","moveToLocation","getScale","getRegion","includePoints","translateMarker"].forEach(function(i){pd.prototype[i]=k.warp(function(e,t){var n,r;e.callbackId=t,n=this.id,r=this.pageVm,fc("operateMapPlayer",n,r,i,e)})});var hd=Object.freeze({__proto__:null,MapContext:pd,createMapContext:function(e,t){return new pd(e,t||hc("createMapContext"))}}),vd=[.5,.8,1,1.25,1.5,2];function gd(e,t,n,r){fc("operateVideoPlayer",e,t,n,r)}var md=function(e,t){this.id=e,this.pageVm=t};md.prototype.play=function(){gd(this.id,this.pageVm,"play")},md.prototype.pause=function(){gd(this.id,this.pageVm,"pause")},md.prototype.stop=function(){gd(this.id,this.pageVm,"stop")},md.prototype.seek=function(e){gd(this.id,this.pageVm,"seek",{position:e})},md.prototype.sendDanmu=function(e){gd(this.id,this.pageVm,"sendDanmu",e)},md.prototype.playbackRate=function(e){~vd.indexOf(e)||(e=1),gd(this.id,this.pageVm,"playbackRate",{rate:e})},md.prototype.requestFullScreen=function(e){void 0===e&&(e={}),gd(this.id,this.pageVm,"requestFullScreen",e)},md.prototype.exitFullScreen=function(){gd(this.id,this.pageVm,"exitFullScreen")},md.prototype.showStatusBar=function(){gd(this.id,this.pageVm,"showStatusBar")},md.prototype.hideStatusBar=function(){gd(this.id,this.pageVm,"hideStatusBar")};var yd=Object.freeze({__proto__:null,VideoContext:md,createVideoContext:function(e,t){return new md(e,t||hc("createVideoContext"))}});function _d(e,t,n,r){jp.publishHandler(t+"-editor-"+e,{componentId:e,type:n,data:r},t)}jp.subscribe("onEditorMethodCallback",function(e){var t=e.callbackId,n=e.data;k.invoke(t,n)});var bd=function(e,t){this.id=e,this.pageId=t};bd.prototype.format=function(e,t){_d(this.id,this.pageId,"format",{options:{name:e,value:t}})},["insertDivider","insertImage","insertText","setContents","getContents","clear","removeFormat","undo","redo"].forEach(function(n){bd.prototype[n]=k.warp(function(e,t){_d(this.id,this.pageId,n,{options:e,callbackId:t})})});var wd=Object.freeze({__proto__:null,EditorContext:bd}),kd=["canplay","play","pause","stop","ended","timeUpdate","error","waiting","seeking","seeked"],Sd=[{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"autoplay",default:!1,cache:!0},{name:"loop",default:!1,cache:!0},{name:"obeyMuteSwitch",default:!0,readonly:!0,cache:!0},{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"buffered",readonly:!0},{name:"volume"}],xd=function(e){var t=this;this.id=e,this._callbacks={},this._options={},kd.forEach(function(e){t._callbacks[e.toLowerCase()]=[]}),Sd.forEach(function(n){var r=n.name,e={get:function(){var e=n.cache?this._options:fc("getAudioState",{audioId:this.id}),t=r in e?e[r]:n.default;return"number"==typeof t&&"volume"!==r?t/1e3:t}};n.readonly||(e.set=function(e){this._options[r]=e,fc("setAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(t,r,e)})};function Cd(e,t,n,r){e._callbacks[t].forEach(function(e){"function"==typeof e&&e("error"===t?{errMsg:n,errCode:r}:{})})}xd.prototype.play=function(){this._operate("play")},xd.prototype.pause=function(){this._operate("pause")},xd.prototype.stop=function(){this._operate("stop")},xd.prototype.seek=function(e){this._operate("seek",{currentTime:1e3*e})},xd.prototype.destroy=function(){Lp(this.__timing),fc("destroyAudioInstance",{audioId:this.id}),delete Td[this.id]},xd.prototype._operate=function(e,t){fc("operateAudio",Object.assign({},t,{audioId:this.id,operationType:e}))},kd.forEach(function(r){var e=r[0].toUpperCase()+r.substr(1);r=r.toLowerCase(),xd.prototype["on"+e]=function(e){this._callbacks[r].push(e)},xd.prototype["off"+e]=function(e){var t=this._callbacks[r],n=t.indexOf(e);0<=n&&t.splice(n,1)}}),pc("onAudioStateChange",function(e){var t=e.state,n=e.audioId,r=e.errMsg,i=e.errCode,o=Td[n];if(o)if(Cd(o,t,r,i),"play"===t){var a=o.currentTime;o.__timing=Dp(function(){o.currentTime!==a&&Cd(o,"timeupdate")},200)}else"pause"!==t&&"stop"!==t&&"error"!==t||Lp(o.__timing)});var Td=Object.create(null);var Od=Object.freeze({__proto__:null,createInnerAudioContext:function(){var e=fc("createAudioInstance").audioId,t=new xd(e);return Td[e]=t}}),Ed=[];pc("onNetworkStatusChange",function(t){Ed.forEach(function(e){yr(e,t)})});var Ad=Object.freeze({__proto__:null,onNetworkStatusChange:function(e){Ed.push(e)}}),Id=[];pc("onThemeChange",function(t){Id.forEach(function(e){yr(e,t)})}),pc("onUIStyleChange",function(t){Id.forEach(function(e){yr(e,t)})});var $d=Object.freeze({__proto__:null,onThemeChange:function(e){Id.push(e)},onUIStyleChange:function(e){Id.push(e),console.log("API uni.onUIStyleChange 已过时,请使用 uni.onThemeChange,详情:https://uniapp.dcloud.net.cn/api/system/theme")}}),Pd=Zs("getSelectedTextRangeEvent");jp.subscribe("onGetSelectedTextRange",function(e){var t=e.callbackId,n=e.data;console.log("onGetSelectedTextRange");var r=Pd.pop(t);r&&r(n)});var Md,jd=Object.freeze({__proto__:null,getSelectedTextRange:function(e,t){var n=vc();jp.publishHandler("getSelectedTextRange",{pageId:n,callbackId:Pd.push(function(e){yr(t,e)})},n)}});pc("onKeyboardHeightChange",function(e){Md&&yr(Md,e)});var Bd=Object.freeze({__proto__:null,onKeyboardHeightChange:function(e){Md=e}}),Nd="longPressActionsCallback",Dd={};pc(Nd,function(e){var t=e.errMsg||"";new RegExp("\\:\\s*fail").test(t)?Dd.fail&&Dd.fail(e):Dd.success&&Dd.success(e),Dd.complete&&Dd.complete(e)});var Ld,Rd=Object.freeze({__proto__:null,previewImage:function(e){return void 0===e&&(e={}),((Dd=e.longPressActions||{}).success||Dd.fail||Dd.complete)&&(Dd.callbackId=Nd),fc("previewImagePlus",e)}}),Fd={pause:null,resume:null,start:null,stop:null,error:null},zd=function(){pc("onRecorderStateChange",function(e){var t=e.state;delete e.state,delete e.errMsg,"function"==typeof Fd[t]&&Fd[t](e)})};zd.prototype.onError=function(e){Fd.error=e},zd.prototype.onFrameRecorded=function(e){},zd.prototype.onInterruptionBegin=function(e){},zd.prototype.onInterruptionEnd=function(e){},zd.prototype.onPause=function(e){Fd.pause=e},zd.prototype.onResume=function(e){Fd.resume=e},zd.prototype.onStart=function(e){Fd.start=e},zd.prototype.onStop=function(e){Fd.stop=e},zd.prototype.pause=function(){fc("operateRecorder",{operationType:"pause"})},zd.prototype.resume=function(){fc("operateRecorder",{operationType:"resume"})},zd.prototype.start=function(e){fc("operateRecorder",Object.assign({},e,{operationType:"start"}))},zd.prototype.stop=function(){fc("operateRecorder",{operationType:"stop"})};var Ud=Object.freeze({__proto__:null,getRecorderManager:function(){return Ld||(Ld=new zd)}}),Vd=function(e,t){this.id=e,this._callbackId=t,this._callbacks=[]};Vd.prototype.abort=function(){fc("operateDownloadTask",{downloadTaskId:this.id,operationType:"abort"})},Vd.prototype.onProgressUpdate=function(e){"function"==typeof e&&this._callbacks.push(e)},Vd.prototype.onHeadersReceived=function(){},Vd.prototype.offProgressUpdate=function(e){var t=this._callbacks.indexOf(e);0<=t&&this._callbacks.splice(t,1)},Vd.prototype.offHeadersReceived=function(){};var qd=Object.create(null);pc("onDownloadTaskStateChange",function(e){var t=e.downloadTaskId,n=e.state,r=e.tempFilePath,i=e.statusCode,o=e.progress,a=e.totalBytesWritten,s=e.totalBytesExpectedToWrite,c=e.errMsg,u=qd[t],l=u._callbackId;switch(n){case"progressUpdate":u._callbacks.forEach(function(e){e({progress:o,totalBytesWritten:a,totalBytesExpectedToWrite:s})});break;case"success":yr(l,{tempFilePath:r,statusCode:i,errMsg:"request:ok"});case"fail":yr(l,{errMsg:"request:fail "+c});default:Bp(function(){delete qd[t]},100)}});var Wd=Object.freeze({__proto__:null,downloadFile:function(e,t){var n=fc("createDownloadTask",e).downloadTaskId,r=new Vd(n,t);return qd[n]=r}}),Hd=Object.create(null);pc("onRequestTaskStateChange",function(e){var t=e.requestTaskId,n=e.state,r=e.data,i=e.statusCode,o=e.header,a=e.errMsg,s=e.cookies,c=Hd[t]||{},u=c.args,l=c.callbackId;if(l)switch(delete Hd[t],n){case"success":yr(l,function(r,e){if("string"==typeof r.data&&65279===r.data.charCodeAt(0)&&(r.data=r.data.substr(1)),r.statusCode=parseInt(r.statusCode,10),E(r.header)&&(r.header=Object.keys(r.header).reduce(function(e,t){var n=r.header[t];return Array.isArray(n)?e[t]=n.join(","):"string"==typeof n&&(e[t]=n),e},{})),e.dataType&&"json"===e.dataType.toLowerCase())try{r.data=JSON.parse(r.data)}catch(e){}return r}({data:r,statusCode:i,header:o,errMsg:"request:ok",cookies:s},u));break;case"fail":yr(l,{errMsg:"request:fail "+a})}});var Gd=function(e){this.id=e};Gd.prototype.abort=function(){fc("operateRequestTask",{requestTaskId:this.id,operationType:"abort"})},Gd.prototype.offHeadersReceived=function(){},Gd.prototype.onHeadersReceived=function(){};var Xd=Object.freeze({__proto__:null,request:function(e,t){var n;for(var r in e.header)if("content-type"===r.toLowerCase()){n=e.header[r];break}"GET"!==e.method&&0===n.indexOf("application/json")&&E(e.data)&&(e.data=JSON.stringify(e.data));var i=fc("createRequestTask",e).requestTaskId;return Hd[i]={args:e,callbackId:t},new Gd(i)}}),Yd=function(e){this.id=e,this._callbacks={open:[],close:[],error:[],message:[]},this.CLOSED=3,this.CLOSING=2,this.CONNECTING=0,this.OPEN=1,this.readyState=this.CLOSED};Yd.prototype.send=function(e){this.readyState!==this.OPEN&&this._callback(e,"sendSocketMessage:fail WebSocket is not connected");var t=fc("operateSocketTask",Object.assign({},e,{operationType:"send",socketTaskId:this.id})).errMsg;this._callback(e,t.replace("operateSocketTask","sendSocketMessage"))},Yd.prototype.close=function(e){this.readyState=this.CLOSING;var t=fc("operateSocketTask",Object.assign({},e,{operationType:"close",socketTaskId:this.id})).errMsg;this._callback(e,t.replace("operateSocketTask","closeSocket"))},Yd.prototype.onOpen=function(e){this._callbacks.open.push(e)},Yd.prototype.onClose=function(e){this._callbacks.close.push(e)},Yd.prototype.onError=function(e){this._callbacks.error.push(e)},Yd.prototype.onMessage=function(e){this._callbacks.message.push(e)},Yd.prototype._callback=function(e,t){void 0===e&&(e={});var n=e.success,r=e.fail,i=e.complete,o={errMsg:t};/:ok$/.test(t)?"function"==typeof n&&n(o):"function"==typeof r&&r(o),"function"==typeof i&&i(o)};var Jd=Object.create(null),Kd=[],Zd=Object.create(null);pc("onSocketTaskStateChange",function(e){var t=e.socketTaskId,n=e.state,r=e.data,i=(e.errMsg,Jd[t]);if(i){if("open"===n&&(i.readyState=i.OPEN),i===Kd[0]&&Zd[n]&&yr(Zd[n],"message"===n?{data:r}:{}),"error"===n||"close"===n){i.readyState=i.CLOSED,delete Jd[t];var o=Kd.indexOf(i);0<=o&&Kd.splice(o,1)}i._callbacks[n].forEach(function(e){"function"==typeof e&&e("message"===n?{data:r}:{})})}});var Qd,ef=Object.freeze({__proto__:null,connectSocket:function(e,t){var n=fc("createSocketTask",e).socketTaskId,r=new Yd(n);return Jd[n]=r,Kd.push(r),Bp(function(){yr(t,{errMsg:"connectSocket:ok"})},0),r},sendSocketMessage:function(e,t){var n=Kd[0];if(n&&n.readyState===n.OPEN)return fc("operateSocketTask",Object.assign({},e,{operationType:"send",socketTaskId:n.id}));yr(t,{errMsg:"sendSocketMessage:fail WebSocket is not connected"})},closeSocket:function(e,t){var n=Kd[0];if(n)return n.readyState=n.CLOSING,fc("operateSocketTask",Object.assign({},e,{operationType:"close",socketTaskId:n.id}));yr(t,{errMsg:"closeSocket:fail WebSocket is not connected"})},onSocketOpen:function(e){Zd.open=e},onSocketError:function(e){Zd.error=e},onSocketMessage:function(e){Zd.message=e},onSocketClose:function(e){Zd.close=e}}),tf=function(){};tf.prototype.onCheckForUpdate=function(){},tf.prototype.onUpdateReady=function(){},tf.prototype.onUpdateFailed=function(){},tf.prototype.applyUpdate=function(){};var nf=Object.freeze({__proto__:null,getUpdateManager:function(){return Qd||(Qd=new tf)}}),rf=function(e,t){this.id=e,this._callbackId=t,this._callbacks=[]};rf.prototype.abort=function(){fc("operateUploadTask",{uploadTaskId:this.id,operationType:"abort"})},rf.prototype.onProgressUpdate=function(e){"function"==typeof e&&this._callbacks.push(e)},rf.prototype.onHeadersReceived=function(){},rf.prototype.offProgressUpdate=function(e){var t=this._callbacks.indexOf(e);0<=t&&this._callbacks.splice(t,1)},rf.prototype.offHeadersReceived=function(){};var of=Object.create(null);pc("onUploadTaskStateChange",function(e){var t=e.uploadTaskId,n=e.state,r=e.data,i=e.statusCode,o=e.progress,a=e.totalBytesSent,s=e.totalBytesExpectedToSend,c=e.errMsg,u=of[t],l=u._callbackId;switch(n){case"progressUpdate":u._callbacks.forEach(function(e){e({progress:o,totalBytesSent:a,totalBytesExpectedToSend:s})});break;case"success":yr(l,{data:r,statusCode:i,errMsg:"request:ok"});case"fail":yr(l,{errMsg:"request:fail "+c});default:Bp(function(){delete of[t]},100)}});var af=Object.freeze({__proto__:null,uploadFile:function(e,t){var n=fc("createUploadTask",e).uploadTaskId,r=new rf(n,t);return of[n]=r}}),sf={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"},cf=function(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=Object.assign({},sf,e)};cf.prototype._getOption=function(e){var t={transition:Object.assign({},this.option,e)};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t},cf.prototype._pushAnimates=function(e,t){this.currentStepAnimates.push({type:e,args:t})},cf.prototype._converType=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})},cf.prototype._getValue=function(e){return"number"==typeof e?e+"px":e},cf.prototype.export=function(){var e=this.actions;return this.actions=[],{actions:e}},cf.prototype.step=function(e){var t=this;return this.currentStepAnimates.forEach(function(e){"style"!==e.type?t.currentTransform[e.type]=e:t.currentTransform[e.type+"."+e.args[0]]=e}),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this};var uf=["opacity","backgroundColor"],lf=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(uf,lf).forEach(function(n){cf.prototype[n]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return uf.concat(lf).includes(n)?this._pushAnimates("style",[this._converType(n),lf.includes(n)?this._getValue(e[0]):e[0]]):this._pushAnimates(n,e),this}});var df=Object.freeze({__proto__:null,createAnimation:function(e){return new cf(e)}}),ff=Zs("requestComponentObserver"),pf={thresholds:[0],initialRatio:0,observeAll:!1},hf=function(e,t){this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=Object.assign({},pf,t)};hf.prototype._makeRootMargin=function(t){void 0===t&&(t={}),this.options.rootMargin=["top","right","bottom","left"].map(function(e){return(Number(t[e])||0)+"px"}).join(" ")},hf.prototype.relativeTo=function(e,t){return this.options.relativeToSelector=e,this._makeRootMargin(t),this},hf.prototype.relativeToViewport=function(e){return this.options.relativeToSelector=null,this._makeRootMargin(e),this},hf.prototype.observe=function(e,t){"function"==typeof t&&(this.options.selector=e,this.reqId=ff.push(t),jp.publishHandler("requestComponentObserver",{reqId:this.reqId,component:this.component,options:this.options},(this.component,this.pageId)))},hf.prototype.disconnect=function(){jp.publishHandler("destroyComponentObserver",{reqId:this.reqId},(this.component,this.pageId))};var vf=Object.freeze({__proto__:null,createIntersectionObserver:function(e,t){return e._isVue||(t=e,e=null),new hf(e||hc("createIntersectionObserver"),t)}}),gf=Zs("requestMediaQueryObserver"),mf=function(e,t){this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=t};mf.prototype.observe=function(e,t){"function"==typeof t&&(this.options=e,this.reqId=gf.push(t),jp.publishHandler("requestMediaQueryObserver",{reqId:this.reqId,component:this.component,options:this.options},(this.component,this.pageId)))},mf.prototype.disconnect=function(){jp.publishHandler("destroyMediaQueryObserver",{reqId:this.reqId},(this.component,this.pageId))};var yf=Object.freeze({__proto__:null,createMediaQueryObserver:function(e,t){return e._isVue||(t=e,e=null),new mf(e||hc("createMediaQueryObserver"),t)}}),_f={canvas:ld,map:pd,video:md,editor:bd};function bf(e){if(e&&e.context){var t=e.context,n=t.id,r=t.name,i=t.page,o=_f[r];e.context=o&&new o(n,i)}}var wf=function(e,t,n,r){this._selectorQuery=e,this._component=t,this._selector=n,this._single=r};wf.prototype.boundingClientRect=function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery},wf.prototype.fields=function(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery},wf.prototype.scrollOffset=function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery},wf.prototype.context=function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery};var kf=function(e){this._page=e,this._queue=[],this._queueCb=[]};kf.prototype.exec=function(t){var i=this;fc("requestComponentInfo",this._page,this._queue,function(e){var r=i._queueCb;e.forEach(function(e,t){Array.isArray(e)?e.forEach(bf):bf(e);var n=r[t];O(n)&&n.call(i,e)}),O(t)&&t.call(i,e)})},kf.prototype.in=function(e){return this._component=e._$id||e,this},kf.prototype.select=function(e){return new wf(this,this._component,e,!0)},kf.prototype.selectAll=function(e){return new wf(this,this._component,e,!1)},kf.prototype.selectViewport=function(){return new wf(this,0,"",!0)},kf.prototype._push=function(e,t,n,r,i){this._queue.push({component:t,selector:e,single:n,fields:r}),this._queueCb.push(i)};var Sf=Object.freeze({__proto__:null,createSelectorQuery:function(e){return new kf(e||hc("createSelectorQuery"))}});jp.subscribe("onLoadFontFaceCallback",function(e){yr(e.callbackId,e.data)});var xf=Object.freeze({__proto__:null,loadFontFace:function(e,t){var n=vc();if(!n)return{errMsg:"loadFontFace:fail not font page"};jp.publishHandler("loadFontFace",{options:e,callbackId:t},n)}});var Cf=Object.freeze({__proto__:null,pageScrollTo:function(e){var t=Vp();return t.length&&jp.publishHandler("pageScrollTo",e,t[t.length-1].$page.id),{}}});var Tf=Object.freeze({__proto__:null,setPageMeta:function(e){var t=Vp();return t.length&&jp.publishHandler("setPageMeta",e,t[t.length-1].$page.id),{}}});function Of(e){return fc("setTabBarBadge",{index:e.index,type:"none"})}var Ef=Of,Af=[];pc("onTabBarMidButtonTap",function(t){Af.forEach(function(e){yr(e,t)})});var If=Object.freeze({__proto__:null,removeTabBarBadge:Of,showTabBarRedDot:function(e){return fc("setTabBarBadge",{index:e.index,type:"redDot"})},hideTabBarRedDot:Ef,onTabBarMidButtonTap:function(e){Af.push(e)}}),$f=[];pc("onViewDidResize",function(t){$f.forEach(function(e){yr(e,t)})});var Pf,Mf,jf=Object.freeze({__proto__:null,onWindowResize:function(e){$f.push(e)},offWindowResize:function(e){$f.splice($f.indexOf(e),1)}}),Bf=Object.create(null),Nf=(Pf={"./base/base64.js":Kn,"./base/can-i-use.js":Qn,"./base/interceptor.js":tr,"./base/upx2px.js":ar,"./context/audio.js":ur,"./context/background-audio.js":wc,"./context/canvas.js":fd,"./context/create-map-context.js":hd,"./context/create-video-context.js":yd,"./context/editor.js":wd,"./context/inner-audio.js":Od,"./device/network.js":Ad,"./device/theme.js":$d,"./keyboard/get-selected-text-range.js":jd,"./keyboard/keyboard.js":Bd,"./media/preview-image.js":Rd,"./media/recorder.js":Ud,"./network/download-file.js":Wd,"./network/request.js":Xd,"./network/socket.js":ef,"./network/update.js":nf,"./network/upload-file.js":af,"./ui/create-animation.js":df,"./ui/create-intersection-observer.js":vf,"./ui/create-media-query-observer.js":yf,"./ui/create-selector-query.js":Sf,"./ui/load-font-face.js":xf,"./ui/page-scroll-to.js":Cf,"./ui/set-page-meta.js":Tf,"./ui/tab-bar.js":If,"./ui/window.js":jf},(Mf=function(e){return Pf[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}).keys=function(){return Object.keys(Pf)},Mf);Nf.keys().forEach(function(e){Object.assign(Bf,Nf(e))});var Df=Object.assign(Object.create(null),Bf,dc),Lf=Object.create(null);e.forEach(function(e){var i,o;Df[e]?Lf[e]=(o=Hn(i=e,Df[e]),G(i)?function(n){void 0===n&&(n={});for(var r=[],e=arguments.length-1;0<e--;)r[e]=arguments[e+1];return O(n.success)||O(n.fail)||O(n.complete)?N(i,D.apply(void 0,[i,o,n].concat(r))):N(i,new Promise(function(e,t){D.apply(void 0,[i,o,Object.assign({},n,{success:e,fail:t})].concat(r))}).then(function(e){return[null,e]}).catch(function(e){return[e]}))}:o):Lf[e]=Wn(e)});var Rf=Object.create(null);function Ff(e,t,n){return"onError"!==t&&console.debug("App:"+t+" have been invoked"+(n?" "+JSON.stringify(n):"")),(e=e.$vm||e).__call_hook&&e.__call_hook(t,n)}function zf(e,t,n){return"onPageScroll"!==t&&console.debug(e.$page.route+"["+e.$page.id+"]:"+t+" have been invoked"),i=t,o=n,(r=(r=e).$vm||r).__call_hook&&r.__call_hook(i,o);var r,i,o}function Uf(e,t){var n=e.name,r=e.arg;"postMessage"===n?function(t,e){t=parseInt(t);var n=Vp(!0).find(function(e){return e.$page.id===t});if(n&&!n.$page.meta.isNVue){var r=n.$vm._$vd.elements.find(function(e){return"web-view"===e.type&&e.events.message});if(!r)return;r.dispatchEvent("message",{type:"message",target:Object.create(null),currentTarget:Object.create(null),timeStamp:Date.now(),detail:{data:[e]}})}}(t[0],r):zp[n](r)}function Vf(e,t){var r=t.getApp,i=t.getCurrentPages;function o(e,t){var n=i();n.length&&zf(n[n.length-1],e,t)}function n(t){return function(e){o(t,e)}}var a={navigateTo:function(){o("onHide")},navigateBack:function(){o("onShow")}};e("onError",function(e){Ff(r(),"onError",e)}),e("onPageNotFound",function(e){Ff(r(),"onPageNotFound",e)}),e("onAppRoute",function(e){var t=e.type,n=a[t];n&&n()}),e("onAppEnterBackground",function(){Ff(r(),"onHide"),o("onHide")}),e("onAppEnterForeground",function(){var e=i();if(0!==e.length){var t=e[e.length-1],n={path:t.route,query:t.options};Ff(r(),"onShow",n),o("onShow")}}),e("onResize",function(e,t){var n=i().find(function(e){return e.$page.id===t});n&&zf(n,"onResize",e)}),e("onPullDownRefresh",function(e,t){var n,r=i().find(function(e){return e.$page.id===t});r&&(Vs="number"==typeof(n=t)?Mp.webview.getWebviewById(String(n)):n,zf(r,"onPullDownRefresh"))}),e("onTabItemTap",n("onTabItemTap")),e("onNavigationBarButtonTap",n("onNavigationBarButtonTap")),e("onNavigationBarSearchInputChanged",n("onNavigationBarSearchInputChanged")),e("onNavigationBarSearchInputConfirmed",n("onNavigationBarSearchInputConfirmed")),e("onNavigationBarSearchInputClicked",n("onNavigationBarSearchInputClicked")),e("onNavigationBarSearchInputFocusChanged",n("onNavigationBarSearchInputFocusChanged")),e("onWebInvokeAppService",Uf)}e.forEach(function(e){Df[e]?Rf[e]=Hn(e,Df[e]):Rf[e]=Wn(e)});var qf=!1;function Wf(e,t){var n="1"===t;if(!n||!qf){if(n?(qf=!0,ls(Mp.webview.getLaunchWebview())):ns||ls(Mp.webview.getWebviewById(t)),ns.id!==t)return console.error("webviewReady["+ns.id+"]["+t+"] not match");var r,i;if(ns.loaded=!0,i=vs[r=t],Array.isArray(i)&&i.forEach(function(e){return e()}),delete vs[r],n){var o="/"+Rp.entryPagePath,a=Fp.find(function(e){return e.path===o});if(!a.meta.isNVue){var s=a.meta.isTabBar?"switchTab":"navigateTo";return zp[s]({url:o+(Rp.entryPageQuery||""),openType:"appLaunch"})}}}}var Hf=Object.create(null);function Gf(e,t){var n=e.data,r=(e.options,Hf[t]);Array.isArray(r)&&r.forEach(function(e){e(n)})}var Xf,Yf=[];function Jf(){for(var e=Yf.slice(0),t=Yf.length=0;t<e.length;t++)e[t]()}function Kf(e){var t=e.data,n=t.method,r=t.args;zp[n]&&zp[n](r)}function Zf(e,t){var n=e.cid,r=e.method,i=e.args;t=parseInt(t);var o=Vp(!0).find(function(e){return e.$page.id===t});if(!o)return console.error("Page["+t+"] not found");var a=o.$vm._$vd.getVm(n);if(!a)return console.error("vm["+n+"] not found");a[r]&&a[r](i)}function Qf(t){t=parseInt(t);var e=Vp(!0).find(function(e){return e.$page.id===t});return e||console.error("Page["+t+"] not found")}function ep(e,t){var n=Qf(t);n&&(n.__uniapp_webview=!0)}function tp(e,t){var n=Qf(t);n&&delete n.__uniapp_webview}function np(){var e=jp.on,n=jp.emit,t=jp.subscribe,r=jp.publishHandler,i=jp.subscribeHandler;if(function(e,t){t.getApp;var i=t.getCurrentPages;function n(r){return function(e,t){t=parseInt(t);var n=i().find(function(e){return e.$page.id===t});n&&zf(n,r,e)}}var o=Zs("requestComponentInfo"),a=Zs("requestComponentObserver"),s=Zs("requestMediaQueryObserver");e("onPageScroll",n("onPageScroll")),e("onReachBottom",n("onReachBottom")),e("onRequestComponentInfo",function(e){var t=e.reqId,n=e.res,r=o.pop(t);r&&r(n)}),e("onRequestComponentObserver",function(e){var t=e.reqId,n=e.reqEnd,r=e.res,i=a.get(t);if(i){if(n)return void a.pop(t);i(r)}}),e("onRequestMediaQueryObserver",function(e){var t=e.reqId,n=e.reqEnd,r=e.res,i=s.get(t);if(i){if(n)return void s.pop(t);i(r)}})}(t,{getApp:Up,getCurrentPages:Vp}),po("subscribeHandler",function(e){i(e.type,e.data,e.pageId)}),"native"!==Rp.renderer){t(Ha,Wf),t(Wa,Gf),t(Ga,Jf);var o="/"+Rp.entryPagePath;Fp.find(function(e){return e.path===o}).meta.isNVue||r(Ha,Object.create(null),[1])}e("api."+Ya,function(e,t){n("onWebInvokeAppService",e,t)}),t("onWxsInvokeCallMethod",Zf),t(Xa,Kf),t(Ja,ep),t(Ka,tp)}var rp={globalData:{}};function ip(e){void 0===e&&(e={});var t=e.allowDefault;return void 0===t&&(t=!1),Xf||(t?rp:void console.error("[warn]: getApp() 操作失败,v3模式加速了首页 nvue 的启动速度,当在首页 nvue 中使用 getApp() 不一定可以获取真正的 App 对象。详情请参考:https://uniapp.dcloud.io/collocation/frame/window?id=getapp"))}function op(e){e.data&&e.data.type&&fo(e.data.type,e.data.args||{})}function ap(){function e(e){return 0===(e=e.replace(/\/$/,"")).indexOf("_")?Mp.io.convertLocalFileSystemURL(e):e}var t=e(vi),n=e(gi),r=n.split("/");r.pop(),r=r.join("/"),Mp.io.resolveLocalFileSystemURL(Mp.io.convertAbsoluteFileSystem(r),function(e){e.createReader().readEntries(function(e){e&&e.length&&e.forEach(function(e){e.isDirectory&&0===e.fullPath.indexOf(t)&&0!==e.fullPath.indexOf(n)&&e.removeRecursively()})})})}function sp(e){(Xf=e).$vm=e,Object.assign(Xf,rp);var t,n,r,i,o=e.$options.globalData||{};Xf.globalData=Object.assign(o,Xf.globalData),Vf(jp.on,{getApp:ip,getCurrentPages:js}),Ps(),function(){if(Rp.tabBar&&Rp.tabBar.list&&Rp.tabBar.list.length){Rp.tabBar.selected=0;var e=Rp.tabBar.list.findIndex(function(e){return e.pagePath===Rp.entryPagePath});Fo.init(Rp.tabBar,function(e,t){zp.switchTab({url:"/"+e.pagePath,openType:"switchTab",from:"tabBar",success:function(){jp.emit("onTabItemTap",{index:t,text:e.text,pagePath:e.pagePath})}})}),-1!==e&&0!==(Rp.tabBar.selected=e)&&Fo.switchTab(Rp.entryPagePath)}}(),t=_r("globalEvent"),n=jp.emit,Pp.config.preload?Mp.key.addEventListener("backbutton",os):Mp.globalEvent.addEventListener("splashclosed",function(){Mp.key.addEventListener("backbutton",os)}),Mp.globalEvent.addEventListener("pause",function(){n("onAppEnterBackground")}),Mp.globalEvent.addEventListener("resume",function(){n("onAppEnterForeground")}),Mp.globalEvent.addEventListener("netchange",function(){var e=pi[Mp.networkinfo.getCurrentType()];br("onNetworkStatusChange",{isConnected:"none"!==e,networkType:e})}),Mp.globalEvent.addEventListener("KeyboardHeightChange",function(e){br("onKeyboardHeightChange",{height:e.height})}),t.addEventListener("uistylechange",function(e){var t={theme:e.uistyle};Ff(Xf,"onThemeChange",t),br("onThemeChange",t),br("onUIStyleChange",{style:e.uistyle})}),t.addEventListener("uniMPNativeEvent",function(e){br("uniMPNativeEvent",e)}),Mp.globalEvent.addEventListener("plusMessage",op),Mp.globalEvent.addEventListener("WebviewPostMessage",op),np(),r=e,i={path:Rp.entryPagePath,query:{},scene:1001},Ff(r,"onLaunch",i),Ff(r,"onShow",i),Bp(ap,1e4),Rp.ready=!0}var cp=["uni-app","uni-layout","uni-content","uni-main","uni-top-window","uni-left-window","uni-right-window","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-shadow-root","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-editor","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"];function up(e){if(0===e.indexOf("#")){var t=e.substr(1);return function(e){return!(!e.componentInstance||e.componentInstance.id!==t)||!(!e.data||!e.data.attrs||e.data.attrs.id!==t)}}if(0===e.indexOf(".")){var n=e.substr(1);return function(e){return e.data&&function(e,t,n){void 0===t&&(t="");void 0===n&&(n="");if(t)return-1!==t.split(lp).indexOf(e);if(n&&"string"==typeof n)return-1!==n.split(lp).indexOf(e)}(n,e.data.staticClass,e.data.class)}}}var lp=/\s+/;function dp(e){e.prototype.createIntersectionObserver=function(e){return zp.createIntersectionObserver(this,e)},e.prototype.createMediaQueryObserver=function(e){return zp.createMediaQueryObserver(this,e)},e.prototype.selectComponent=function(e){return function e(t,n){if(n(t.$vnode||t._vnode))return t;for(var r=t.$children,i=0;i<r.length;i++){var o=e(r[i],n);if(o)return o}}(this,up(e))},e.prototype.selectAllComponents=function(e){return function e(t,n,r){n(t.$vnode||t._vnode)&&r.push(t);for(var i=t.$children,o=0;o<i.length;o++)e(i[o],n,r);return r}(this,up(e),[])}}var fp,pp,hp="android"===Mp.os.name.toLowerCase()?300:700,vp=0;function gp(n){var r=Object.create(null);return Object.keys(n).forEach(function(t){try{r[t]=JSON.parse(n[t])}catch(e){r[t]=n[t]}}),r}function mp(e){return function(e){var t=e.target&&e.target.dataset;t&&(e.target.dataset=gp(t));var n=e.currentTarget&&e.currentTarget.dataset;n&&(e.currentTarget.dataset=gp(n))}(e),e.preventDefault=i,e.stopPropagation=i,(t=e).mp=Object.assign({"@warning":"mp is deprecated"},t),t._processed=!0,t;var t}pc("onKeyboardHeightChange",function(e){0<(vp=e.height)&&fp&&fp()});var yp={};yp[20]=function(e,s){e.forEach(function(e){var t=e[0],n=e[1],r=e[2];n=String(n);var i=s.elements.find(function(e){return e.cid===t&&e.nid===n});if(i){var o=r.type,a=mp(r);"focus"===o||"blur"===o?function(e,t){if(fp=null,pp&&Np(pp),"focus"===e.type){if(!(0<vp))return pp=Bp(function(){e.detail.height=vp,t(e)},hp),fp=function(){Np(pp),e.detail.height=vp,t(e)};e.detail.height=vp}t(e)}(a,function(e){i.dispatchEvent(o,e)}):i.dispatchEvent(o,a)}})};var _p=function(e,t,n,r){this.pageId=e,this.pagePath=t,this.pageQuery=n,this.pageVm=r,this.batchData=[],this.vms=Object.create(null),this.initialized=!1,this.pageCreateData=!1,this.elements=[],this._init()};function bp(e,t,n){e[t]=n}function wp(e,t){var n,r,i;for(r in e)i=e[r],u(t[r],i)||bp(n||(n=Object.create(null)),r,i);return n}function kp(e,t,n){var r,i,o;for(r in e)if(i=e[r],o=t[r]){var a=wp(i,o);a&&bp(n,r,a)}else bp(n,r,i);return n}function Sp(e){e.prototype._$s=Cp,e.prototype._$setData=function(e,t){this._$vd.push(e,this._$id,t,4===e&&void 0)},e.prototype._$mounted=function(){this._$vd&&(kp(this._$newData,this._$data,this._$vdMountedData),this._$data=JSON.parse(JSON.stringify(this._$newData)),"page"===this.mpType&&this._$vd.flush())},e.prototype._$updated=function(){var e=this;this._$vd&&(kp(this._$newData,this._$data,this._$vdUpdatedData),this._$data=JSON.parse(JSON.stringify(this._$newData)),this._$vd.initialized&&Bp(function(){e.$nextTick(e._$vd.flush.bind(e._$vd))},0))},Object.defineProperty(e.prototype,"_$vd",{get:function(){return this.$root._$vdomSync}}),e.mixin({beforeCreate:function(){this.$options.mpType&&(this.mpType=this.$options.mpType),"app"!==this.mpType&&("page"===this.mpType&&(this._$vdomSync=new _p(this.$options.pageId,this.$options.pagePath,this.$options.pageQuery,this)),this._$vd&&(this._$id=function(e,t,n){if(!e.$parent)return"-1";var r=e.$vnode,i=r.context,o=r.data.attrs._i;return n&&_(r.data,"key")&&(o=o+";"+r.data.key),i&&i!==t&&i._$id?i._$id+";"+t._$id+","+o:t._$id+","+o}(this,this.$parent,qa),this._$vd.addVm(this),this._$vdMountedData=Object.create(null),this._$setData(4,this._$vdMountedData),this._$data=Object.create(null),this._$newData=Object.create(null)))},beforeUpdate:function(){if(this._$vd){var e=this._$vd.find(4,this._$id);e?(this._$data=Object.create(null),this._$vdUpdatedData=e[1][1]=Object.create(null)):(this._$vdUpdatedData=Object.create(null),this._$setData(6,this._$vdUpdatedData)),this._$newData=Object.create(null)}},beforeDestroy:function(){this._$vd&&(this._$vd.removeVm(this),this._$vdomSync&&this._$vdomSync.destroy())}})}function xp(n,r){var e=r.$options.mpOptions;return e&&Array.isArray(e.externalClasses)&&e.externalClasses.forEach(function(e){var t=r[s(e)];t&&(n=n.replace(e,t))}),n}function Cp(e,t,n){switch(t){case ao:n=xp(this._$stringifyClass(n),this);break;case co:n=xp(n,this);break;case so:n=this._$normalizeStyleBinding(n);break;case ro:case oo:case io:n=n?1:0;break;case no:return function(e,t){var n=this._$newData[e]||(this._$newData[e]={}),r=n[no]||(n[no]=[]);if(t.forItems)return t.fill&&function(e,t){var n,r;if(Array.isArray(e)||"string"==typeof e)for(n=0,r=e.length;n<r;n++)t[n]=n;else if("number"==typeof e)for(n=0;n<e;n++)t[n]=n;else if(c(e))for(n=0,r=Object.keys(e).length;n<r;n++)t[n]=n}(t.forItems,r),t.forItems;var i=t.forIndex,o=t.key;_(t,"keyIndex")?(r[i]||(r[i]={}))["k"+t.keyIndex]=o:r[i]=o;return o}.call(this,e,n)}if(0===t.indexOf("a-data-")&&("string"!=typeof n||("null"===(r=n)||"true"===r||"false"===r||!isNaN(Number(r))||r.startsWith("[")&&r.endsWith("]")||r.startsWith("{")&&r.endsWith("}"))))try{n=JSON.stringify(n)}catch(e){}var r;return(this._$newData[e]||(this._$newData[e]={}))[t]=n}_p.prototype._init=function(){var e,t,n=this;e=this.pageId,t=function(e){var r;r=n,e.forEach(function(e){var t=e[0],n=e[1];yp[t](n,r)})},(Hf[e]||(Hf[e]=[])).push(t)},_p.prototype.addMountedVm=function(e){e._$mounted(),this.addVdSyncCallback(function(){e.__call_hook("mounted")})},_p.prototype.addUpdatedVm=function(e){e._$updated(),this.addVdSyncCallback(function(){e.__call_hook("updated")})},_p.prototype.addVdSyncCallback=function(e){O(e)&&Yf.push(e)},_p.prototype.getVm=function(e){return this.vms[e]},_p.prototype.addVm=function(e){this.vms[e._$id]=e},_p.prototype.removeVm=function(e){var t=e._$id;e===this.vms[t]&&(this.batchData=this.batchData.filter(function(e){return e[1][0]!==t}),delete this.vms[t])},_p.prototype.addElement=function(e){-1===this.elements.indexOf(e)&&this.elements.push(e)},_p.prototype.removeElement=function(e){var t=this.elements.indexOf(e);-1!==t&&this.elements.splice(t,1)},_p.prototype.push=function(e,t,n,r){var i=[t,n];r&&i.push(r),this.batchData.push([e,i])},_p.prototype.find=function(t,n){return this.batchData.find(function(e){return e[0]===t&&e[1][0]===n})},_p.prototype.sendPageCreate=function(e){this.pageCreateData=e,jp.publishHandler(Wa,{data:[[2,e]],options:{timestamp:Date.now()}},[this.pageId])},_p.prototype.flush=function(){this.initialized||(this.initialized=!0,this.batchData.push([10,[this.pageId,this.pagePath,this.pageQuery]]));var e=this.batchData.filter(function(e){return!(6===e[0]&&!Object.keys(e[1][1]).length)});this.batchData.length=0,e.length&&jp.publishHandler(Wa,{data:e,options:{timestamp:Date.now()}},[this.pageId])},_p.prototype.restorePageCreate=function(){this.batchData.push([2,this.pageCreateData])},_p.prototype.restoreMountedData=function(){var t=this,n=function(e){e._$id&&t.push(4,e._$id,e._$data,void 0),e.$children.forEach(function(e){return n(e)})};n(this.pageVm)},_p.prototype.restorePageCreated=function(){this.batchData.push([10,[this.pageId,this.pagePath,this.pageQuery]])},_p.prototype.restore=function(){this.initialized=!0,this.batchData.length=0,this.restorePageCreate(),this.restoreMountedData(),this.restorePageCreated(),this.flush()},_p.prototype.destroy=function(){var e;this.batchData.length=0,this.vms=Object.create(null),this.initialized=!1,this.elements.length=0,e=this.pageId,delete Hf[e]};var Tp=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onNavigationBarSearchInputFocusChanged","onPageShow","onPageHide","onPageResize","onServiceCreated","onServiceAttached"],Op=["data","properties","options","relations"];function Ep(i,o){var e,t;Op.forEach(function(e){var t,n,r;t=i,(n=o)[r=e]&&Object.assign(t[r]||(t[r]={}),n[r])}),o.externalClasses&&(e=i.externalClasses||(i.externalClasses=[]),t=o.externalClasses,e.push.apply(e,t)),o.path&&(i.path=o.path)}function Ap(v){!function(e){var r=e.extend;e.extend=function(t){var n=(t=t||{}).methods;return n&&Object.keys(n).forEach(function(e){-1!==Tp.indexOf(e)&&(t[e]=n[e],delete n[e])}),r.call(this,t)};var t=e.config.optionMergeStrategies,n=t.created;Tp.forEach(function(e){t[e]=n}),t.mpOptions=function(e,t){if(!e)return t;var n=Object.create(null);return Ep(n,e),t&&Ep(n,t),n}}(v),v.mixin({beforeCreate:function(){var t=this,e=this.$options;e.store&&!v.prototype.$store&&(v.prototype.$store=e.store);var n,r,i,o,a,s,c,u,l,d,f=e.wxs;if(f&&Object.keys(f).forEach(function(e){t[e]=f[e]}),"page"===this.mpType){this.$scope=this.$options.pageInstance,delete(this.$scope.$vm=this).$options.pageInstance;var p=this.$scope.route,h=this.$scope.$page.id;this._$vd.sendPageCreate([h,p,(n=this,r=p,i="/"+r,o=Fp.find(function(e){return e.path===i}),a=Object.assign({},Rp.window,o.window),s=!0===a.disableScroll?1:0,c=_(a,"onReachBottomDistance")?parseInt(a.onReachBottomDistance):eo,u=Ls(n.$options,"onPageScroll")?1:0,l=Ls(n.$options,"onReachBottom")?1:0,d=zo(),{version:qa,disableScroll:s,onPageScroll:u,onPageReachBottom:l,onReachBottomDistance:c,statusbarHeight:d,windowTop:a.titleNView&&"float"===a.titleNView.type?d+No:0,windowBottom:0<=Fo.indexOf(r)&&Fo.cover?Fo.height:0})])}},created:function(){"page"===this.mpType&&(zf(this.$scope,"onLoad",function(n){void 0===n&&(n={});var r={};return Object.keys(n).forEach(function(t){try{r[t]=g(n[t])}catch(e){r[t]=n[t]}}),r}(this.$options.pageQuery)),zf(this.$scope,"onShow"))},beforeDestroy:function(){"page"===this.mpType&&zf(this.$scope,"onUnload")},mounted:function(){"page"===this.mpType&&(zf(this.$scope,"onReady"),function(e){if(Rp.preloadRule){var t=Rp.preloadRule[e];t&&Array.isArray(t.packages)&&t.packages.filter(function(e){return-1===Fa.indexOf(e)}).length&&Va(t.packages)}}(this.$scope.route))}})}var Ip={install:function(o,e){!function(o){o.config.errorHandler=function(e,t,n){var r=f(e);o.util.warn("Error in "+n+': "'+("Error"===r?e.toString():e)+'"',t);var i="function"==typeof Up&&Up();i&&Ls(i.$options,"onError")?i.__call_hook("onError",e):console.error(e)};var t=o.config.isReservedTag;o.config.isReservedTag=function(e){return-1!==cp.indexOf(e)||t(e)},o.config.ignoredElements=cp;var n=o.config.getTagNamespace,r=["switch","image","text","view"];o.config.getTagNamespace=function(e){return!~r.indexOf(e)&&n(e)}}(o),Sp(o),Ap(o),dp(o),o.prototype.getOpenerEventChannel=function(){return this.$root.$scope.eventChannel||(this.$root.$scope.eventChannel=new Os),this.$root.$scope.eventChannel},Object.defineProperty(o.prototype,"$page",{get:function(){return this.$root.$scope.$page}}),Object.defineProperty(o.prototype,"$mp",{get:function(){return{page:this.$root.$scope}}});var r=o.prototype.$mount;o.prototype.$mount=function(e,t){var n=this;if("app"===this.mpType){if(this.$options.render=function(){},Pp.config.preload)return void Pp.requireModule("globalEvent").addEventListener("launchApp",function(){Mp.updateConfigInfo&&Mp.updateConfigInfo(),sp(n),r.call(n,e,t)});sp(this)}return r.call(this,e,t)},o.prototype.$nextTick=function(t){var n=this,r=this._watcher,i="function"==typeof t,e=new Promise(function(e){r&&n._$queue.find(function(e){return r===e})?Yf.push(i?t.bind(n):e):o.nextTick(i?function(){return t.call(n)}:e),i&&e()});return i?void 0:e}}};return Lf.__$wx__=Rf,jp.publishHandler=function(e,t,n){t=JSON.stringify(t),Array.isArray(n)||(n=[n]);var r="typeof UniViewJSBridge !== 'undefined' && UniViewJSBridge.subscribeHandler(\""+e+'",'+t+",__PAGE_ID__)";n.forEach(function(e){var t=Mp.webview.getWebviewById(String(e));t&&t.evalJS(r.replace("__PAGE_ID__",e))})},jp.invokeCallbackHandler=qn,{__vuePlugin:Ip,__definePage:function(e,t){As[e]=t},__registerApp:sp,__registerPage:Ns,uni:Lf,getApp:ip,getCurrentPages:js}}(),zp=t.uni,Up=t.getApp,Vp=t.getCurrentPages;return t}function initServiceJSBridge(e){var r=new e;UniServiceJSBridge={on:r.$on.bind(r),off:r.$off.bind(r),once:r.$once.bind(r),emit:r.$emit.bind(r),subscribe:function(e,t){return r.$on("view."+e,t)},unsubscribe:function(e,t){return r.$off("view."+e,t)},subscribeHandler:function(e,t,n){return r.$emit("view."+e,t,n)}}}function createInstanceContext$1(e){var t,n=e.weex,r=e.Vue,i=new e.WeexPlus(n);(UniServiceJSBridge||initServiceJSBridge(r),uni)||(t=createServiceContext(r,n,i,UniServiceJSBridge,e),__vuePlugin=t.__vuePlugin,__definePage=t.__definePage,__registerApp=t.__registerApp,__registerPage=t.__registerPage,uni=t.uni,getApp=t.getApp,getCurrentPages=t.getCurrentPages);return{__vuePlugin:__vuePlugin,__definePage:__definePage,__registerApp:__registerApp,__registerPage:__registerPage,plus:i,uni:uni,wx:uni.__$wx__||uni,getApp:getApp,getCurrentPages:getCurrentPages,UniServiceJSBridge:UniServiceJSBridge}}function styleMixin(e){e.prototype.__merge_style=function(t,e){if(void 0===t&&(t={}),t){var n=e||this.$options.style;Object.keys(t).forEach(function(e){n[e]?Object.assign(n[e],t[e]):n[e]=Object.assign({},t[e])}),e||(this.$options.style=n)}}}WeexInstance.prototype.requireModule=function(n){var r=getId(this);if(r&&this.document&&this.document.taskCenter){if(isRegisteredModule(n)){var e={},t=getModuleDescription(n),i=function(t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return handleModuleGetter(n,t,moduleGetter(r,n,t))},set:function(e){return moduleSetter(r,n,t,e)}})};for(var o in t)i(o);return e}console.warn("[JS Framework] 当前运行的基座不包含原生插件["+n+"],请在manifest中配置该插件,重新制作包括该原生插件的自定义运行基座")}else console.error('[JS Framework] Failed to requireModule("'+n+'"), instance ('+r+") doesn't exist anymore.")},WeexInstance.prototype.supports=function(e){if("string"!=typeof e)return null;var t=e.match(/^@(\w+)\/([\w-]+)(\.(\w+))?$/i);if(t){var n=t[1],r=t[2],i=t[4];switch(n){case"module":return isRegisteredModule(r,i);case"component":return isRegisteredComponent(r)}}return null},WeexInstance.prototype.importScript=function(e,r){void 0===r&&(r={});var i=getId(this),o=getTaskCenter(i);return new Promise(function(t,n){o&&"function"==typeof o.send||n(new Error('[JS Framework] Failed to import script "'+e+'", no taskCenter ('+i+") matched."));try{o.send("module",{module:"script",method:"importScript"},[e,r],{callback:[function(e){return t(e)},function(e){return n(e)}]})}catch(e){n(e)}})};var decode=decodeURIComponent;function parseQuery(e){var i={};return(e=e.trim().replace(/^(\?|#|&)/,""))&&e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),n=decode(t.shift()),r=0<t.length?decode(t.join("=")):null;void 0===i[n]?i[n]=r:Array.isArray(i[n])?i[n].push(r):i[n]=[i[n],r]}),i}var LIFECYCLE_HOOKS=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onPageShow","onPageHide","onPageResize"];function parseQueryByBundleUrl(e){var t={};if(e&&"string"==typeof e){var n=e.indexOf("?");if(-1!==n){var r=e.substr(n+1);".js"===r.substr(-3)&&(r=r.substr(0,r.length-3)),t=parseQuery(r)}}return t}var INSTANCE_ID="[[CurrentInstanceId]]";function getId$1(e){return e[INSTANCE_ID]}function initScope(t,e){var n=e.getCurrentPages(),r=n[n.length-1];if(this.$options.route===r.route)r.$vm=this,r[INSTANCE_ID]=getId$1(t);else if(t.config.oldInstanceId){var i=e.getCurrentPages(!0).find(function(e){return getId$1(e)===t.config.oldInstanceId});i&&(i.$vm=this)}this.$scope=r}function lifecycleMixin(e,r,i){var t=e.config.optionMergeStrategies,n=t.created;LIFECYCLE_HOOKS.forEach(function(e){t[e]=n});var o=parseQueryByBundleUrl(r.config.bundleUrl);e.mixin({beforeCreate:function(){var e=this;this._$weex=r;try{var t=i.getApp({allowDefault:!0});t&&!this.$store&&(t.$store||t.$vm&&t.$vm.$store)&&(this.$store=t.$store||t.$vm.$store)}catch(e){}switch(this.$options.mpType){case"app":if(this.mpType="app",this.$options.render=function(){},i.weex.config.preload)i.weex.requireModule("globalEvent").addEventListener("launchApp",function(){i.plus.updateConfigInfo&&i.plus.updateConfigInfo(),i.__registerApp(e)});else i.__registerApp(this);break;case"page":this.mpType="page";var n=i.plus.webview.currentWebview();n.__preload__?(n.addEventListener("show",function(){!e.$scope&&initScope.call(e,r,i),e.__call_hook("onShow")}),n.addEventListener("hide",function(){e.__call_hook("onHide")})):(0===i.getCurrentPages().length&&i.__registerPage({path:"/"+this.$options.route,webview:n}),initScope.call(this,r,i))}},created:function(){if("page"===this.$options.mpType){var e=i.plus.webview.currentWebview();if(e.__preload__){var t=Object.assign(Object.create(null),o);if(e.__query__)try{Object.assign(t,JSON.parse(e.__query__))}catch(e){}this.__call_hook("onLoad",t)}else{var n=Object.assign(Object.create(null),o),r=i.getCurrentPages();Object.assign(n,r[r.length-1].options),this.__call_hook("onLoad",n),this.__call_hook("onShow")}}},mounted:function(){var t=this;"page"===this.$options.mpType&&(this.__call_hook("onReady"),this.$options.onPageScroll&&this.$el.addEvent("scroll",function(e){e.scrollTop=e.detail.scrollTop,t.__call_hook("onPageScroll",e)}),this.$options.onReachBottom&&this.$el.addEvent("scrolltolower",function(e){t.__call_hook("onReachBottom",e)}))},beforeDestroy:function(){"page"===this.$options.mpType&&this.__call_hook("onUnload")}})}function broadcast(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];for(var i=this.$children,o=i.length,a=0;a<o;a++){var s=i[a],c=s.$options.name;if(~e.indexOf(c))return s.$emit.apply(s,[t].concat(n)),!1;if(!1===broadcast.apply(s,[e,t].concat([n])))return!1}}var emitter={methods:{$trigger:function(e,t){this.$emit(e,processCustomEvent.call(this,e,t,this.$el))},$dispatch:function(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];"string"==typeof e&&(e=[e]);for(var i=this.$parent||this.$root,o=i.$options.name;i&&(!o||!~e.indexOf(o));)(i=i.$parent)&&(o=i.$options.name);i&&i.$emit.apply(i,[t].concat(n))},$broadcast:function(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];"string"==typeof e&&(e=[e]),broadcast.apply(this,[e,t].concat(n))}}},listeners={props:{id:{type:String,default:""}},created:function(){var n=this;this._addListeners(this.id),this.$watch("id",function(e,t){n._removeListeners(t,!0),n._addListeners(e,!0)})},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(t,n){var r=this;if(!n||t){var i=this.$options.listeners;"Object"===typof(i)&&Object.keys(i).forEach(function(e){n?0!==e.indexOf("@")&&0!==e.indexOf("uni-")&&r._$bus.on("uni-"+e+"-"+t,r[i[e]]):0===e.indexOf("@")?r.$on("uni-"+e.substr(1),r[i[e]]):0===e.indexOf("uni-")?r._$bus.on(e,r[i[e]]):t&&r._$bus.on("uni-"+e+"-"+t,r[i[e]])})}},_removeListeners:function(t,n){var r=this;if(!n||t){var i=this.$options.listeners;"Object"===typof(i)&&Object.keys(i).forEach(function(e){n?0!==e.indexOf("@")&&0!==e.indexOf("uni-")&&r._$bus.off("uni-"+e+"-"+t,r[i[e]]):0===e.indexOf("@")?r.$off("uni-"+e.substr(1),r[i[e]]):0===e.indexOf("uni-")?r._$bus.off(e,r[i[e]]):t&&r._$bus.off("uni-"+e+"-"+t,r[i[e]])})}}}},_adDataCache={};function getAdData(e,t,n,r,i){var o=t+"-"+n,a=_adDataCache[o];a&&0<a.length?r(a.splice(0,1)[0]):e.ad.getAds({adpid:t,count:10,width:n},function(e){var t=e.ads;r(t.splice(0,1)[0]),_adDataCache[o]=a?a.concat(t):t},function(e){i({errCode:e.code,errMsg:e.message})})}function getAd(n,r){return{name:"Ad",isReserved:!0,mixins:[emitter,listeners],props:{adpid:{type:[Number,String],default:""},data:{type:Object},width:{type:String,default:""}},data:function(){return{adWidth:0,adData:{}}},mounted:function(){var t=this;if(this.data)this._fillData(this.data);else if(this.adpid){if(this.width&&0<this.width.length){var e=parseFloat(this.width);return/\d+[ur]px$/i.test(this.width)?this.adWidth=upx2px(e):this.adWidth=e,void this._loadData()}setTimeout(function(){n.requireModule("dom").getComponentRect(t.$refs.ad,function(e){t.adWidth=0===e.size.width?-1:e.size.width,t._loadData()})},50)}},watch:{adpid:function(e){e&&this._loadData(e)},data:function(e){e&&this._fillData(e)}},methods:{_ondownloadchange:function(e){this.$trigger("downloadchange",e.detail)},_ondislike:function(e){this.$trigger("close",e.detail)},_loadData:function(e){var t=this;getAdData(r.plus||new r.WeexPlus(r.weex),e||this.adpid,this.adWidth,function(e){t._fillData(e)},function(e){t.$trigger("error",e)})},_fillData:function(e){this.adData=e,this.$trigger("load",{})}},render:function(e){var t={},n=this.$listeners;return n.downloadchange&&(t.downloadchange=this._ondownloadchange),n.close&&(t.dislike=this._ondislike),e("u-ad",this._g({ref:"ad",attrs:{data:this.adData,rendering:!0},on:t},n),[],1)}}}function init$3(e,t,n){e.component("ad",getAd(t,n))}var _adDataCache$1={};function getAdData$1(e,t,n,r,i,o){var a=t+"-"+n,s=_adDataCache$1[a];s&&0<s.length?i(s.splice(0,1)[0]):e.ad.getDrawAds({adpid:t,count:3,width:n,height:r},function(e){var t=e.ads;i(t.splice(0,1)[0]),_adDataCache$1[a]=s?s.concat(t):t},function(e){o({errCode:e.code,errMsg:e.message})})}function getAd$1(e,n){return{name:"AdDraw",isReserved:!0,mixins:[emitter,listeners],props:{adpid:{type:[Number,String],default:""},data:{type:Object},width:{type:String,default:""}},data:function(){return{adWidth:0,adHeight:0,adData:{}}},mounted:function(){var t=this;this.data?this._fillData(this.data):this.adpid&&setTimeout(function(){e.requireModule("dom").getComponentRect(t.$refs.ad,function(e){t.adWidth=0===e.size.width?-1:e.size.width,t.adHeight=0===e.size.height?-1:e.size.height,t._loadData()})},100)},watch:{adpid:function(e){e&&this._loadData(e)},data:function(e){e&&this._fillData(e)}},beforeDestroy:function(){(n.plus||new n.WeexPlus(n.weex)).ad.releaseAdData(this.adData)},methods:{_ondislike:function(e){this.$trigger("close",e.detail)},_loadData:function(e){var t=this;getAdData$1(n.plus||new n.WeexPlus(n.weex),e||this.adpid,this.adWidth,this.adHeight,function(e){t._fillData(e)},function(e){t.$trigger("error",e)})},_fillData:function(e){this.adData=e,this.$trigger("load",{})}},render:function(e){var t={},n=this.$listeners;return n.close&&(t.dislike=this._ondislike),e("u-ad-draw",this._g({ref:"ad",attrs:{data:this.adData,rendering:!0},on:t},n),[],1)}}}function init$4(e,t,n){e.component("ad-draw",getAd$1(t,n))}var OPEN_TYPES=["agreePrivacy","disagreePrivacy"];function getButton(e,r){return{name:"Button",isReserved:!0,mixins:[emitter,listeners],props:{hoverClass:{type:String,default:"button-hover"},disabled:{type:[Boolean,String],default:!1},id:{type:String,default:""},type:{type:String,default:"default"},size:{type:String,default:"default"},plain:{type:[Boolean,String],default:!1},loading:{type:[Boolean,String],default:!1},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:Number,default:20},hoverStayTime:{type:Number,default:70},openType:{type:String,default:""},formType:{type:String,default:"",validator:function(e){return~["","submit","reset"].indexOf(e)}}},data:function(){return{TYPES:{default:"d",primary:"p",warn:"w"},clickFunction:null}},methods:{_onClick:function(e,t){if(!this.disabled&&(t&&this.$el.click(),this.formType&&this.$dispatch("Form","submit"===this.formType?"uni-form-submit":"uni-form-reset",{type:this.formType},this),0<this.openType.length&&0<=OPEN_TYPES.indexOf(this.openType))){var n=r.plus||new r.WeexPlus(r.weex);this["_"+this.openType](n),this.$trigger(this.openType.toLowerCase(),{})}},_agreePrivacy:function(e){e.runtime.agreePrivacy()},_disagreePrivacy:function(e){e.runtime.disagreePrivacy()},_getClass:function(e){var t="ub-"+this.TYPES[this.type]+e;return this.disabled&&(t+="-d"),this.plain&&(t+="-plain"),"-t"===e&&"mini"===this.size&&(t+=" ub-mini"),t},_getHoverClass:function(e){if(this.disabled)return"";var t="ub-"+this.TYPES[this.type]+e+"-hover";return this.plain&&(t+="-plain"),t}},render:function(e){var t=this,n=Array.isArray(this.$slots.default)?this.$slots.default:[];return 1===n.length&&n[0].text&&(n=e("u-text",{staticClass:["ub-t"],class:t._getClass("-t")},[t._t("default")],2)),e("view",t._g({staticClass:["ub"],class:t._getClass(""),attrs:{hoverClass:t._getHoverClass(""),hoverStartTime:t.hoverStartTime,hoverStayTime:t.hoverStayTime},on:{click:t._onClick}},t.$listeners),[t.loading?e("loading-indicator",{staticClass:["ub-loading"],class:["ub-"+t.TYPES[t.type]+"-loading"],attrs:{arrow:"false",animating:"true"}}):t._e()].concat(n),1)},style:{ub:{flexDirection:"row",alignItems:"center",justifyContent:"center",position:"relative",paddingLeft:"5",paddingRight:"5",overflow:"hidden",color:"#000000",backgroundColor:"#f8f8f8",borderRadius:"5",borderStyle:"solid",borderWidth:"1",borderColor:"#dbdbdb"},"ub-t":{color:"#000000",fontSize:"18",textDecoration:"none",lineHeight:"46"},"ub-d":{backgroundColor:"#f8f8f8"},"ub-p":{backgroundColor:"#007aff",borderColor:"#0062cc"},"ub-w":{backgroundColor:"#e64340",borderColor:"#b83633"},"ub-d-t":{color:"#000000"},"ub-p-t":{color:"#ffffff"},"ub-w-t":{color:"#ffffff"},"ub-d-d":{backgroundColor:"#f7f7f7"},"ub-p-d":{backgroundColor:"#63acfc",borderColor:"#4f8aca"},"ub-w-d":{backgroundColor:"#ec8b89",borderColor:"#bd6f6e"},"ub-d-t-d":{color:"#cccccc"},"ub-p-t-d":{color:"rgba(255,255,255,0.6)"},"ub-w-t-d":{color:"rgba(255,255,255,0.6)"},"ub-d-plain":{borderColor:"#353535",backgroundColor:"rgba(0,0,0,0)"},"ub-p-plain":{borderColor:"#007aff",backgroundColor:"rgba(0,0,0,0)"},"ub-w-plain":{borderColor:"#e64340",backgroundColor:"rgba(0,0,0,0)"},"ub-d-t-plain":{color:"#353535"},"ub-p-t-plain":{color:"#007aff"},"ub-w-t-plain":{color:"#e64340"},"ub-d-d-plain":{borderColor:"#c6c6c6",backgroundColor:"rgba(0,0,0,0)"},"ub-p-d-plain":{borderColor:"#c6c6c6",backgroundColor:"rgba(0,0,0,0)"},"ub-w-d-plain":{borderColor:"#c6c6c6",backgroundColor:"rgba(0,0,0,0)"},"ub-d-t-d-plain":{color:"rgba(0,0,0,0.2)"},"ub-p-t-d-plain":{color:"rgba(0,0,0,0.2)"},"ub-w-t-d-plain":{color:"rgba(0,0,0,0.2)"},"ub-mini":{lineHeight:"30",fontSize:"13",paddingTop:0,paddingRight:"17.5",paddingBottom:0,paddingLeft:"17.5"},"ub-loading":{width:"18",height:"18",marginRight:"10"},"ub-d-loading":{color:"rgba(255,255,255,0.6)",backgroundColor:"rgba(0,0,0,0)"},"ub-p-loading":{color:"rgba(255,255,255,0.6)",backgroundColor:"rgba(0,0,0,0)"},"ub-w-loading":{color:"rgba(255,255,255,0.6)",backgroundColor:"rgba(0,0,0,0)"},"ub-d-loading-plain":{color:"#353535"},"ub-p-loading-plain":{color:"#007aff",backgroundColor:"#0062cc"},"ub-w-loading-plain":{color:"#e64340",backgroundColor:"rgba(0,0,0,0)"},"ub-d-hover":{opacity:.8,backgroundColor:"#dedede"},"ub-p-hover":{opacity:.8,backgroundColor:"#0062cc"},"ub-w-hover":{opacity:.8,backgroundColor:"#ce3c39"},"ub-d-t-hover":{color:"rgba(0,0,0,0.6)"},"ub-p-t-hover":{color:"rgba(255,255,255,0.6)"},"ub-w-t-hover":{color:"rgba(255,255,255,0.6)"},"ub-d-hover-plain":{color:"rgba(53,53,53,0.6)",borderColor:"rgba(53,53,53,0.6)",backgroundColor:"rgba(0,0,0,0)"},"ub-p-hover-plain":{color:"rgba(26,173,25,0.6)",borderColor:"rgba(0,122,255,0.6)",backgroundColor:"rgba(0,0,0,0)"},"ub-w-hover-plain":{color:"rgba(230,67,64,0.6)",borderColor:"rgba(230,67,64,0.6)",backgroundColor:"rgba(0,0,0,0)"}}}}function init$5(e,t,n){e.component("button",getButton(t,n))}function getCheckboxGroup(e){return{name:"CheckboxGroup",isReserved:!0,mixins:[emitter,listeners],props:{name:{type:String,default:""}},data:function(){return{checkboxList:[]}},listeners:{"@checkbox-change":"_changeHandler","@checkbox-group-update":"_checkboxGroupUpdateHandler"},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(e){var t=[];this.checkboxList.forEach(function(e){e.checkboxChecked&&t.push(e.value)}),this.$trigger("change",{value:t})},_checkboxGroupUpdateHandler:function(e){if("add"===e.type)this.checkboxList.push(e.vm);else{var t=this.checkboxList.indexOf(e.vm);this.checkboxList.splice(t,1)}},_getFormData:function(){var e={};if(""!==this.name){var t=[];this.checkboxList.forEach(function(e){e.checkboxChecked&&t.push(e.value)}),e.value=t,e.key=this.name}return e}},render:function(e){return e("div",this._g({staticClass:["uni-checkbox-group"]},this.$listeners),[this._t("default")],2)},style:{}}}function init$6(e,t){e.component("checkbox-group",getCheckboxGroup(t))}function getCheckbox(e){return{name:"Checkbox",isReserved:!0,mixins:[emitter,listeners],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},data:function(){return{checkboxChecked:this.checked,checkboxValue:this.value}},watch:{checked:function(e){this.checkboxChecked=e},value:function(e){this.checkboxValue=e}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},computed:{checkboxColor:function(){return this.disabled?"#adadad":this.color}},created:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(e){this.disabled||(this.checkboxChecked=!this.checkboxChecked,this.$dispatch("CheckboxGroup","uni-checkbox-change",e))},_resetFormData:function(){this.checkboxChecked=!1}},render:function(e){var t=this;return e("div",t._g({attrs:{dataUncType:"uni-checkbox"},on:{click:t._onClick}},t.$listeners),[e("div",{staticClass:["uni-checkbox"]},[e("div",{staticClass:["uni-checkbox-input"],class:[t.disabled?"uni-checkbox-input-disabled":""]},[t.checkboxChecked?e("u-text",{staticClass:["uni-icon"],style:{color:t.checkboxColor}},[t._v(t._s(""))]):t._e()]),e("u-text",{staticClass:["uni-slot"]},[t._t("default")],2)])])},style:{"uni-checkbox":{flexDirection:"row",alignItems:"center"},"uni-checkbox-input":{justifyContent:"center",alignItems:"center",position:"relative",borderWidth:"1",borderColor:"#d1d1d1",borderStyle:"solid",backgroundColor:"#ffffff",borderRadius:"3",width:"22",height:"22"},"uni-icon":{fontFamily:"unincomponents",fontSize:"16",marginLeft:"2",marginTop:"2",color:"#007aff"},"uni-checkbox-input-disabled":{backgroundColor:"#e1e1e1"},"uni-checkbox-input-disabled-before":{color:"#adadad"},"uni-slot":{fontSize:"16",marginLeft:"5"},"uni-checkbox-group":{display:"block"}}}}function init$7(e,t){e.component("checkbox",getCheckbox(t))}var NATIVE_COMPONENT_TYPES=["u-input","u-textarea"];function getForm(e){var i=e.requireModule("plus");return{name:"Form",isReserved:!0,mixins:[emitter,listeners],data:function(){return{childrenList:[]}},listeners:{"@form-submit":"_onSubmit","@form-reset":"_onReset","@form-group-update":"_formGroupUpdateHandler"},methods:{_onSubmit:function(e){var t=this._getNativeFormData()||{};this.childrenList.forEach(function(e){e._getFormData&&e._getFormData().key&&(t[e._getFormData().key]=e._getFormData().value)}),this.$trigger("submit",{value:t})},_onReset:function(e){this.$trigger("reset",{}),this._getNativeFormData(!0),this.childrenList.forEach(function(e){e._resetFormData&&e._resetFormData()})},_formGroupUpdateHandler:function(e){if("add"===e.type)this.childrenList.push(e.vm);else{var t=this.childrenList.indexOf(e.vm);this.childrenList.splice(t,1)}},_getNativeFormData:function(n){var r={};return function t(e){e.forEach(function(e){0<=NATIVE_COMPONENT_TYPES.indexOf(e.tag)&&e.data.attrs&&e.data.attrs.name&&(n?e.elm.setValue(""):r[e.data.attrs.name]=i.getValue(e.elm.nodeId)),e.children&&t(e.children)})}(this.$vnode.componentOptions.children),r}},render:function(e){return e("view",this._g({},this.$listeners),[this._t("default")],2)}}}function init$8(e,t){e.component("form",getForm(t))}var iconChars={success:"",info:"",warn:"",waiting:"",safe_success:"",safe_warn:"",success_circle:"",success_no_circle:"",waiting_circle:"",circle:"",download:"",info_circle:"",cancel:"",search:"",clear:""},iconColors={success:"#09bb07",info:"#10aeff",warn:"#f76260",waiting:"#10aeff",safe_success:"#09bb07",safe_warn:"#ffbe00",success_circle:"#09bb07",success_no_circle:"#09bb07",waiting_circle:"#10aeff",circle:"#c9c9c9",download:"#09bb07",info_circle:"#09bb07",cancel:"#f43530",search:"#b2b2b2",clear:"#b2b2b2"};function getIcon(e){return{name:"Icon",isReserved:!0,props:{type:{type:String,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},data:function(){return{iconChars:iconChars}},beforeCreate:function(){},computed:{styles:function(){return{color:this.color||iconColors[this.type],fontSize:this.size}}},render:function(e){return e("u-text",this._g({staticClass:["uni-icon"],style:this.styles},this.$listeners),[this.iconChars[this.type]])},style:{"uni-icon":{fontFamily:"unincomponents"}}}}function init$9(e,t){e.component("icon",getIcon(t))}function getLabel(e){return{name:"Label",isReserved:!0,mixins:[emitter,listeners],props:{for:{type:String,default:""}},methods:{_onClick:function(e){var t=e.target.attr.dataUncType||"",n=/^uni-(checkbox|radio|switch)-/.test(t);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(t)),n||(this.for?this.$emit("uni-label-click-"+this.$page.id+"-"+this.for,e,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",e,!0))}},render:function(e){return e("div",this._g({on:{click:this._onClick}},this.$listeners),[this._t("default")],2)}}}function init$10(e,t){e.component("label",getLabel(t))}function getMovableArea(e){var t=e.requireModule("dom");return{name:"MovableArea",isReserved:!0,props:{scaleArea:{type:Boolean,default:!1}},data:function(){return{width:0,height:0,items:[]}},methods:{_resize:function(){var e=this;this._getWH().then(function(){e.items.forEach(function(e){e.componentInstance.setParent()})})},_panstart:function(e){this.touchItem&&this.touchItem.touchstart(e)},_panmove:function(e){e.stopPropagation(),this.touchItem&&this.touchItem.touchmove(e)},_panend:function(e){this.touchItem&&(this.touchItem.touchend(e),this.touchItem=null)},_getWH:function(){var o=this;return this._getComponentSize(this.$refs.el).then(function(e){var t=e.width,n=e.height,r=e.top,i=e.left;o.width=t,o.height=n,o.top=r,o.left=i})},_getComponentSize:function(e){return new Promise(function(n){t.getComponentRect(e,function(e){var t=e.size;n(t)})})}},created:function(){this.items=[],this.gapV={x:null,y:null},this.pinchStartLen=null},mounted:function(){var e=this;setTimeout(function(){e.__isMounted=!0,e._resize()},200)},render:function(e){var t=this,n=[];(Array.isArray(this.$slots.default)?deepClone(this.$slots.default,e):[]).forEach(function(e){e.componentOptions&&"movable-view"===e.componentOptions.tag&&n.push(e)}),this.items=n;var r={};return["panstart","panmove","panend"].forEach(function(e){r[e]=t["_"+e]}),e("div",this._g({ref:"el",on:r,staticClass:["uni-movable-area"]},this.$listeners),n,2)},style:{"uni-movable-area":{width:"10px",height:"10px"}}}}function init$11(e,t){e.component("movable-area",getMovableArea(t))}var touchtrack={methods:{touchtrack:function(i){var o=this,a=0,s=0,c=0,u=0,n=function(e,t,n,r){if(!1===o[i]({target:e.target,currentTarget:e.currentTarget,stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:t,x0:n,y0:r,dx:n-a,dy:r-s,ddx:n-c,ddy:r-u,timeStamp:e.timeStamp||Date.now()}}))return!1},r=null;this.addListener("touchstart",function(e){if(!r)return a=c=(r=e).touches[0].pageX,s=u=e.touches[0].pageY,n(e,"start",a,s)}),this.addListener("touchmove",function(e){if(r){var t=n(e,"move",e.touches[0].pageX,e.touches[0].pageY);return c=e.touches[0].pageX,u=e.touches[0].pageY,t}}),this.addListener("touchend",function(e){if(r)return r=null,n(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)})},touchstart:function(e){this.callback("touchstart",e)},touchmove:function(e){this.callback("touchmove",e)},touchend:function(e){this.callback("touchend",e)},addListener:function(e,t){this.__event[e]=function(e){"function"==typeof t&&(e.touches=e.changedTouches,!1===t(e)&&e.stopPropagation())}},callback:function(e,t){this.__event[e]&&this.__event[e](t)}},created:function(){this.__event={}}};function e(e,t,n){return t-n<e&&e<t+n}function t(t,n){return e(t,0,n)}function Decline(){}function Friction(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function Spring(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function STD(e,t,n){this._springX=new Spring(e,t,n),this._springY=new Spring(e,t,n),this._springScale=new Spring(e,t,n),this._startTime=0}Decline.prototype.x=function(e){return Math.sqrt(e)},Friction.prototype.setV=function(e,t){var n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Friction.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Friction.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(0<this._x_a&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(0<this._y_a&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Friction.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Friction.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Friction.prototype.dt=function(){return-this._x_v/this._x_a},Friction.prototype.done=function(){var t=e(this.s().x,this._endPositionX)||e(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,t},Friction.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Friction.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Spring.prototype._solve=function(e,t){var n=this._c,r=this._m,i=this._k,o=n*n-4*r*i;if(0===o){var a=-n/(2*r),s=e,c=t/(a*e);return{x:function(e){return(s+c*e)*Math.pow(Math.E,a*e)},dx:function(e){var t=Math.pow(Math.E,a*e);return a*(s+c*e)*t+c*t}}}if(0<o){var u=(-n-Math.sqrt(o))/(2*r),l=(-n+Math.sqrt(o))/(2*r),d=(t-u*e)/(l-u),f=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*u*t+d*l*n}}}var p=Math.sqrt(4*r*i-n*n)/(2*r),h=-n/2*r,v=e,g=(t-h*e)/p;return{x:function(e){return Math.pow(Math.E,h*e)*(v*Math.cos(p*e)+g*Math.sin(p*e))},dx:function(e){var t=Math.pow(Math.E,h*e),n=Math.cos(p*e),r=Math.sin(p*e);return t*(g*p*n-v*p*r)+h*t*(g*r+v*n)}}},Spring.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Spring.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Spring.prototype.setEnd=function(e,n,r){if(r||(r=(new Date).getTime()),e!==this._endPosition||!t(n,.1)){n=n||0;var i=this._endPosition;this._solution&&(t(n,.1)&&(n=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),t(n,.1)&&(n=0),t(i,.1)&&(i=0),i+=this._endPosition),this._solution&&t(i-e,.1)&&t(n,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,n),this._startTime=r)}},Spring.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Spring.prototype.done=function(n){return n||(n=(new Date).getTime()),e(this.x(),this._endPosition,.1)&&t(this.dx(),.1)},Spring.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Spring.prototype.springConstant=function(){return this._k},Spring.prototype.damping=function(){return this._c},Spring.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},STD.prototype.setEnd=function(e,t,n,r){var i=(new Date).getTime();this._springX.setEnd(e,r,i),this._springY.setEnd(t,r,i),this._springScale.setEnd(n,r,i),this._startTime=i},STD.prototype.x=function(){var e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},STD.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},STD.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};var requesting=!1;function requestAnimationFrame(e){return setTimeout(e,16)}function cancelAnimationFrame(e){clearTimeout(e)}function _requestAnimationFrame(e){requesting||(requesting=!0,requestAnimationFrame(function(){e(),requesting=!1}))}function v(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function g(a,e,t){var n={id:0,cancelled:!1};return function e(t,n,r,i){if(!t||!t.cancelled){r(n);var o=a.done();o||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,i))),o&&i&&i(n)}}(n,a,e,t),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,n),model:a}}function getMovableView(e){var t=e.requireModule("dom"),s=e.requireModule("animation");return{name:"MovableView",isReserved:!0,mixins:[touchtrack,emitter],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:this._getScaleNumber(this.scaleValue),width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var e=Number(this.damping);return isNaN(e)?20:e},frictionNumber:function(){var e=Number(this.friction);return isNaN(e)||e<=0?2:e},scaleMinNumber:function(){var e=Number(this.scaleMin);return isNaN(e)?.5:e},scaleMaxNumber:function(){var e=Number(this.scaleMax);return isNaN(e)?10:e},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(e){this.xSync=this._getPx(e)},xSync:function(e){this._setX(e)},y:function(e){this.ySync=this._getPx(e)},ySync:function(e){this._setY(e)},scaleValue:function(e){this._setScaleValue(this._getScaleNumber(e))},scaleValueSync:function(e){this._setScaleValue(e)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new STD(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new Friction(1,this.frictionNumber),this._declineX=new Decline,this._declineY=new Decline,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]},this._rect={top:0,left:0,width:0,height:0}},mounted:function(){var e=this;this.touchtrack("_onTrack"),setTimeout(function(){e._updateRect().then(function(){e.setParent()})},100),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber)},methods:{_getPx:function(e){return Number(e)||0},_getScaleNumber:function(e){return e=Number(e),isNaN(e)?1:e},_setX:function(e){if(this.xMove){if(e+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(e+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return e},_setY:function(e){if(this.yMove){if(e+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,e+this._scaleOffset.y,this._scale)}return e},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(e){return!!this.scale&&(e=this._adjustScale(e),this._updateScale(e,!0),this._updateOldScale(e),e)},__handleTouchStart:function(){this._isScaling||this.disabled||(this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(e){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,r=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=1<Math.abs(e.detail.dx/e.detail.dy)?"htouchmove":"vtouchmove"),this.xMove&&(n=e.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dx/e.detail.dy)<1)),this.yMove&&(r=e.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(r),this.xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dy/e.detail.dx)<1)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(e.detail.timeStamp),!this._checkCanMove){var i="touch";n<this.minX?this.outOfBounds?(i="touch-out-of-bounds",n=this.minX-this._declineX.x(this.minX-n)):n=this.minX:n>this.maxX&&(this.outOfBounds?(i="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),r<this.minY?this.outOfBounds?(i="touch-out-of-bounds",r=this.minY-this._declineY.x(this.minY-r)):r=this.minY:r>this.maxY&&(this.outOfBounds?(i="touch-out-of-bounds",r=this.maxY+this._declineY.x(r-this.maxY)):r=this.maxY),_requestAnimationFrame(function(){t._setTransform(n,r,t._scale,i)})}}},__handleTouchEnd:function(){var r=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var e=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),t=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(e,t),this._friction.setS(this._translateX,this._translateY);var n=this._friction.delta().x,i=this._friction.delta().y,o=n+this._translateX,a=i+this._translateY;o<this.minX?(o=this.minX,a=this._translateY+(this.minX-this._translateX)*i/n):o>this.maxX&&(o=this.maxX,a=this._translateY+(this.maxX-this._translateX)*i/n),a<this.minY?(a=this.minY,o=this._translateX+(this.minY-this._translateY)*n/i):a>this.maxY&&(a=this.maxY,o=this._translateX+(this.maxY-this._translateY)*n/i),this._friction.setEnd(o,a),this._FA=g(this._friction,function(){var e=r._friction.s(),t=e.x,n=e.y;r._setTransform(t,n,r._scale,"friction")},function(){r._FA.cancel()})}},_onTrack:function(e){switch(e.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(e);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(e,t){var n=!1;return e>this.maxX?(e=this.maxX,n=!0):e<this.minX&&(e=this.minX,n=!0),t>this.maxY?(t=this.maxY,n=!0):t<this.minY&&(t=this.minY,n=!0),{x:e,y:t,outOfBounds:n}},setParent:function(){if(this.$parent.__isMounted){this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel();var e=this.scale?this.scaleValueSync:1;this._updateOffset(),this._updateWH(e),this._updateBoundary(),this._translateX=this.xSync+this._scaleOffset.x,this._translateY=this.ySync+this._scaleOffset.y;var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,r=t.y;this._setTransform(n,r,e,"",!0),this._updateOldScale(e)}},_updateOffset:function(){this._offset.x=this._rect.left-this.$parent.left,this._offset.y=this._rect.top-this.$parent.top},_updateWH:function(e){e=e||this._scale,e=this._adjustScale(e);var t=this._rect;this.height=t.height/this._scale,this.width=t.width/this._scale;var n=this.height*e,r=this.width*e;this._scaleOffset.x=(r-this.width)/2,this._scaleOffset.y=(n-this.height)/2},_updateBoundary:function(){var e=0-this._offset.x+this._scaleOffset.x,t=this.$parent.width-this.width-this._offset.x-this._scaleOffset.x;this.minX=Math.min(e,t),this.maxX=Math.max(e,t);var n=0-this._offset.y+this._scaleOffset.y,r=this.$parent.height-this.height-this._offset.y-this._scaleOffset.y;this.minY=Math.min(n,r),this.maxY=Math.max(n,r)},_beginScale:function(){this._isScaling=!0},_endScale:function(){this._isScaling=!1,this._updateOldScale(this._scale)},_setScale:function(e){this.scale&&(e=this._adjustScale(e),e=this._oldScale*e,this._beginScale(),this._updateScale(e))},_updateScale:function(e,t){var n=this;if(this.scale){e=this._adjustScale(e),this._updateWH(e),this._updateBoundary();var r=this._getLimitXY(this._translateX,this._translateY),i=r.x,o=r.y;t?this._animationTo(i,o,e,"",!0,!0):_requestAnimationFrame(function(){n._setTransform(i,o,e,"",!0,!0)})}},_updateOldScale:function(e){this._oldScale=e},_adjustScale:function(e){return e=Math.max(.5,this.scaleMinNumber,e),e=Math.min(10,this.scaleMaxNumber,e)},_animationTo:function(e,t,n,i,o,a){var s=this;this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.xMove||(e=this._translateX),this.yMove||(t=this._translateY),this.scale||(n=this._scale);var r=this._getLimitXY(e,t);e=r.x,t=r.y,this.animation?(this._STD._springX._solution=null,this._STD._springY._solution=null,this._STD._springScale._solution=null,this._STD._springX._endPosition=this._translateX,this._STD._springY._endPosition=this._translateY,this._STD._springScale._endPosition=this._scale,this._STD.setEnd(e,t,n,1),this._SFA=g(this._STD,function(){var e=s._STD.x(),t=e.x,n=e.y,r=e.scale;s._setTransform(t,n,r,i,o,a)},function(){s._SFA.cancel()})):this._setTransform(e,t,n,i,o,a)},_revise:function(e){var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,r=t.y,i=t.outOfBounds;return i&&this._animationTo(n,r,this._scale,e),i},_setTransform:function(e,t,n,r,i,o){void 0===r&&(r=""),null!==e&&"NaN"!==e.toString()&&"number"==typeof e||(e=this._translateX||0),null!==t&&"NaN"!==t.toString()&&"number"==typeof t||(t=this._translateY||0),e=Number(e.toFixed(1)),t=Number(t.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===e&&this._translateY===t||i||this.$trigger("change",{x:v(e,this._scaleOffset.x),y:v(t,this._scaleOffset.y),source:r}),this.scale||(n=this._scale),n=+(n=this._adjustScale(n)).toFixed(3),o&&n!==this._scale&&this.$trigger("scale",{x:e,y:t,scale:n});var a="translate("+e+"px, "+t+"px) scale("+n+")";s.transition(this.$refs.el,{styles:{transform:a},duration:0,delay:0}),this._translateX=e,this._translateY=t,this._scale=n},_touchstart:function(){this.$parent.touchItem=this},_getComponentSize:function(e){return new Promise(function(n){t.getComponentRect(e,function(e){var t=e.size;n(t)})})},_updateRect:function(){var t=this;return this._getComponentSize(this.$refs.el).then(function(e){t._rect=e})}},render:function(e){var t={touchstart:this._touchstart};return e("div",this._g({ref:"el",on:t,staticClass:["uni-movable-view"],staticStyle:{transformOrigin:"center"},attrs:{preventGesture:!0}},this.$listeners),this.$slots.default,2)},style:{"uni-movable-view":{position:"absolute",top:"0px",left:"0px",width:"10px",height:"10px"}}}}function init$12(e,t){e.component("movable-view",getMovableView(t))}var OPEN_TYPES$1={navigate:"navigateTo",redirect:"redirectTo",switchTab:"switchTab",reLaunch:"reLaunch",navigateBack:"navigateBack"},plus_,BroadcastChannel_,channel;function getNavigator(e,t){return{name:"Navigator",isReserved:!0,props:{url:{type:String,default:""},openType:{type:String,default:"navigate",validator:function(e){return!!OPEN_TYPES$1[e]}},delta:{type:Number,default:1},animationType:{type:String,default:"pop-in/out"},animationTime:{type:Number,default:300},hoverClass:{type:String,default:"navigator-hover"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:Number,default:50},hoverStayTime:{type:Number,default:600}},methods:{_click:function(){if("navigateBack"===this.openType)return t.navigateBack({delta:this.delta});this.url?t[OPEN_TYPES$1[this.openType]]({url:this.url}):console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}},render:function(e){return e("view",this._g({attrs:{hoverClass:this.hoverClass,hoverStopPropagation:this.hoverStopPropagation,hoverStartTime:this.hoverStartTime,hoverStayTime:this.hoverStayTime},on:{click:this._click}},this.$listeners),[this._t("default")],2)},style:{"navigator-hover":{backgroundColor:"rgba(0,0,0,0.1)",opacity:.7}}}}function init$13(e,t,n){e.component("navigator",getNavigator(t,n.uni))}function getRuntime(){return"object"==typeof window&&"object"==typeof navigator&&"object"==typeof document?"webview":"v8"}function getPageId(){return plus_.webview.currentWebview().id}var callbacks={};function onPlusMessage(e){var t=e.data&&e.data.__message;if(t&&t.__page){var n=t.__page,r=callbacks[n];r&&r(t),t.keep||delete callbacks[n]}}function addEventListener(e,t){"v8"===getRuntime()?(channel&&channel.close(),(channel=new BroadcastChannel_(getPageId())).onmessage=onPlusMessage):window.__plusMessage=onPlusMessage,callbacks[e]=t}var Page=function(e){this.webview=e};function showPage(e){var t=e.context;void 0===t&&(t={});var n=e.url,r=e.data;void 0===r&&(r={});var i=e.style;void 0===i&&(i={});var o=e.onMessage,a=e.onClose;plus_=t.plus||plus,BroadcastChannel_=t.BroadcastChannel||BroadcastChannel;var s="page"+Date.now();!1!==(i=Object.assign({},i)).titleNView&&"none"!==i.titleNView&&(i.titleNView=Object.assign({autoBackButton:!0,titleSize:"17px"},i.titleNView));var c={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:("object"==typeof process&&process.env&&process.env.VUE_APP_TEMPLATE_PATH||"")+"/"+n+".js",defaultFontSize:plus_.screen.resolutionWidth/20,viewport:plus_.screen.resolutionWidth}};i=Object.assign(c,i);var u=plus_.webview.create("",s,i,{extras:{from:getPageId(),runtime:getRuntime(),data:r}});return u.addEventListener("close",a),addEventListener(s,function(e){"function"==typeof o&&o(e.data),e.keep||u.close("auto")}),u.show(i.animationType,i.animationDuration),new Page(u)}function getPicker(e,t){var o={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},a={YEAR:"year",MONTH:"month",DAY:"day"},r=["range","rangeKey","value","mode","fields","start","end","disabled"];function s(e){return 9<e?e:"0"+e}function c(e,t){var n=new Date;return e=String(e||""),t===o.TIME?2===(e=e.split(":")).length&&n.setHours(parseInt(e[0]),parseInt(e[1])):3===(e=e.split("-")).length&&n.setFullYear(parseInt(e[0]),parseInt(e[1]-1),parseInt(e[2])),n}return{name:"Picker",isReserved:!0,mixins:[emitter],props:{range:{type:Array,default:function(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:o.SELECTOR,validator:function(e){return 0<=Object.values(o).indexOf(e)}},fields:{type:String,default:""},start:{type:String,default:function(){if(this.mode===o.TIME)return"00:00";if(this.mode===o.DATE){var e=(new Date).getFullYear()-100;switch(this.fields){case a.YEAR:return e;case a.MONTH:return e+"-01";default:return e+"-01-01"}}return""}},end:{type:String,default:function(){if(this.mode===o.TIME)return"23:59";if(this.mode===o.DATE){var e=(new Date).getFullYear()+100;switch(this.fields){case a.YEAR:return e;case a.MONTH:return e+"-12";default:return e+"-12-31"}}return""}},disabled:{type:[Boolean,String],default:!1}},computed:{attrs:function(){var t=this,n={};return r.forEach(function(e){n[e]=t.$props[e]}),n}},methods:{_show:function(){this._showPicker(Object.assign({},this.attrs))},_showPicker:function(n){var r=this,e=t.plus||new t.WeexPlus(t.weex);if(e.key.hideSoftKeybord(),this.mode!==o.TIME&&this.mode!==o.DATE||n.fields){n.fields=Object.values(a).includes(n.fields)?n.fields:a.DAY;var i={event:"cancel"};this.page=showPage({context:Object.assign({},t,{plus:e}),url:"__uniapppicker",data:n,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:function(e){var t=e.event;if("created"!==t)return"columnchange"===t?(delete e.event,void r.$trigger(t,e)):void(i=e);r._updatePicker(n)},onClose:function(){r.page=null;var e=i.event;delete i.event,r.$trigger(e,i)}})}else e.nativeUI[this.mode===o.TIME?"pickTime":"pickDate"](function(e){var t=e.date;r.$trigger("change",{value:r.mode===o.TIME?s(t.getHours())+":"+s(t.getMinutes()):t.getFullYear()+"-"+s(t.getMonth()+1)+"-"+s(t.getDate())})},function(){r.$trigger("cancel",{})},this.mode===o.TIME?{time:c(this.value,o.TIME)}:{date:c(this.value,o.DATE),minDate:c(this.start,o.DATE),maxDate:c(this.end,o.DATE)})},_updatePicker:function(e){this.page&&this.page.sendMessage(e)}},created:function(){var t=this;this.$watch("attrs",function(e){t._updatePicker(e)},{deep:!0})},render:function(e){var t={};return this.disabled||(t.click=this._show),e("div",this._g({on:t},this.$listener),this.$slots.default,2)}}}function init$14(e,t,n){e.component("picker",getPicker(t,n))}Page.prototype.sendMessage=function(e){var t=JSON.parse(JSON.stringify({__message:{data:e}}));new BroadcastChannel_(this.webview.id).postMessage(t)},Page.prototype.close=function(){this.webview.close()};var PRIMARY_COLOR="#007AFF",BACKGROUND_COLOR="#EBEBEB",ANIMATE_INTERVAL_DEFAULT=30,FONT_SIZE=16,STROKE_WIDTH=6;function getProgress(e,n){return{name:"Progress",isReserved:!0,mixins:[emitter],props:{percent:{type:[String,Number],default:0},showInfo:{type:Boolean,default:!1},borderRadius:{type:[String,Number],default:0},fontSize:{type:[String,Number],default:FONT_SIZE},strokeWidth:{type:[String,Number],default:STROKE_WIDTH},active:{type:Boolean,default:!1},activeColor:{type:String,default:PRIMARY_COLOR},activeMode:{type:String,default:"backwards"},backgroundColor:{type:String,default:BACKGROUND_COLOR},duration:{type:[String,Number],default:ANIMATE_INTERVAL_DEFAULT}},data:function(){return{width:0,curPercent:0}},computed:{barStyle:function(){return{height:this.strokeWidth,borderRadius:this.borderRadius,backgroundColor:this.backgroundColor}},innerBarStyle:function(){return{width:this.activeWidth,height:this.strokeWidth,backgroundColor:this.activeColor}},activeWidth:function(){return this.curPercent*this.width/100},finalPercent:function(){var e=parseFloat(this.percent,10);return 100<e&&(e=100),e<0&&(e=0),e}},watch:{finalPercent:function(e,t){this._timerId&&n.clearInterval(this._timerId),this._lastPercent=t||0,this._animate()}},mounted:function(){var t=this;setTimeout(function(){e.requireModule("dom").getComponentRect(t.$refs.progress,function(e){t.width=e.size.width,t._animate()})},50)},methods:{_animate:function(){var e=this,t=this.finalPercent;if(!this.active)return this.curPercent=t;this.curPercent="forwards"===this.activeMode?this._lastPercent:0,this._timerId=n.setInterval(function(){t<=e.curPercent+1?(e.curPercent=t,n.clearInterval(e._timerId),e.$trigger("activeend",{curPercent:e.curPercent})):++e.curPercent},this.duration)}},render:function(e){return e("div",this._g({ref:"progress",staticClass:["uni-progress"]},this.$listeners),[e("div",{staticClass:["uni-progress-bar"],style:this.barStyle},[e("div",{staticClass:["uni-progress-inner-bar"],style:this.innerBarStyle})]),this.showInfo?[e("u-text",{staticClass:["uni-progress-info"],style:{fontSize:this.fontSize}},[this.curPercent+"%"])]:this._e()],2)},style:{"uni-progress":{flex:1,flexDirection:"row",alignItems:"center"},"uni-progress-bar":{flex:1},"uni-progress-inner-bar":{position:"absolute"},"uni-progress-info":{marginLeft:"15px"}}}}function init$15(e,t,n){e.component("progress",getProgress(t,n))}function getRadioGroup(e){return{name:"RadioGroup",isReserved:!0,mixins:[emitter,listeners],props:{name:{type:String,default:""}},data:function(){return{radioList:[]}},listeners:{"@radio-change":"_changeHandler","@radio-group-update":"_radioGroupUpdateHandler"},mounted:function(){this._resetRadioGroupValue(this.radioList.length-1)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(e,t){var n=this.radioList.indexOf(t);this._resetRadioGroupValue(n,!0),this.$trigger("change",{value:t.radioValue})},_radioGroupUpdateHandler:function(e){if("add"===e.type)this.radioList.push(e.vm);else{var t=this.radioList.indexOf(e.vm);this.radioList.splice(t,1)}},_resetRadioGroupValue:function(t,r){var i=this;this.radioList.forEach(function(e,n){n!==t&&(r?i.radioList[n].radioChecked=!1:i.radioList.forEach(function(e,t){t<=n||i.radioList[t].radioChecked&&(i.radioList[n].radioChecked=!1)}))})},_getFormData:function(){var e={};if(""!==this.name){var t="";this.radioList.forEach(function(e){e.radioChecked&&(t=e.value)}),e.value=t,e.key=this.name}return e}},render:function(e){return e("div",this._g({},this.$listeners),[this._t("default")],2)}}}function init$16(e,t){e.component("radio-group",getRadioGroup(t))}function getRadio(e){return{name:"Radio",isReserved:!0,mixins:[emitter,listeners],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007AFF"},value:{type:String,default:""}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},computed:{checkedStyle:function(){return{backgroundColor:this.color,borderColor:this.color}},uncheckedStyle:function(){return{borderColor:"#d1d1d1"}}},watch:{checked:function(e){this.radioChecked=e},value:function(e){this.radioValue=e}},beforeCreate:function(){},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(e){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",e,this))},_resetFormData:function(){this.radioChecked=!1}},render:function(e){var t=this;return e("div",t._g({staticClass:["uni-radio"],attrs:{dataUncType:"uni-radio"},on:{click:t._onClick}},t.$listeners),[e("div",{staticClass:["uni-radio-input"],style:t.radioChecked?t.checkedStyle:t.uncheckedStyle},[t.radioChecked?e("u-text",{staticClass:["uni-radio-input-icon"]},[t._v(t._s(""))]):t._e()],1),e("u-text",{staticClass:["uni-text"]},[t._t("default")],2)],1)},style:{"uni-radio":{alignItems:"center",flexDirection:"row"},"uni-radio-input":{position:"relative",alignItems:"center",justifyContent:"center",marginRight:"5",backgroundColor:"#ffffff",borderStyle:"solid",borderWidth:"1",borderColor:"#d1d1d1",borderRadius:50,width:"22",height:"22",outline:0},"uni-radio-input-icon":{fontFamily:"unincomponents",fontSize:"14",color:"#ffffff"},"uni-radio-input-disabled":{backgroundColor:"#e1e1e1",borderColor:"#d1d1d1",color:"#adadad"}}}}function init$17(e,t){e.component("radio",getRadio(t))}function parseStyle(e,t){var n=Object.create(null);if(!e.attrs)return n;var r=(e.attrs.class||"").split(" "),i=t.$options.style||{};return r.forEach(function(e){e&&i[e]&&Object.assign(n,i[e])}),Object.assign(n,parseStyleText(e.attrs.style||"")),n}var TAGS=["span","a","image","img"];function block(e){return e.attr.value=(e.attr.value||"")+"\n",e}function heading(e,t,n){return!e.style.fontSize&&(e.style.fontSize=n.defaultFontSize*t),block(bold(e))}function createHeading(n){return function(e,t){return heading(e,n,t)}}function bold(e){return!e.style.fontWeight&&(e.style.fontWeight="bold"),e}var strategies={blockquote:block,br:block,div:block,dl:block,h1:createHeading(2),h2:createHeading(1.5),h3:createHeading(1.17),h4:createHeading(1),h5:createHeading(.83),h6:createHeading(.67),hr:block,ol:block,p:block,strong:bold,table:block,tbody:block,tfoot:block,thead:block,ul:block},HTML_RE=/&(amp|gt|lt|nbsp|quot|apos);/g,CHARS={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function normalizeText(e){return e.replace(HTML_RE,function(e,t){return CHARS[t]})}function normalizeNode(t,e,n){var r=(t.name||"").toLowerCase(),i=strategies[r];-1===TAGS.indexOf(r)&&(r="span"),"img"===r&&(r="image");var o={type:r,attr:Object.create(null)};return("text"===t.type||t.text)&&(o.attr.value=normalizeText((t.text||"").trim())),t.attrs&&Object.keys(t.attrs).forEach(function(e){"class"!==e&&"style"!==e&&(o.attr[e]=t.attrs[e])}),o.style=normalizeUnit(parseStyle(t,e)),i&&i(o,n),o.children=normalizeNodes(t.children,e,n),o}function normalizeNodes(e,t,n){return Array.isArray(e)?e.map(function(e){return normalizeNode(e,t,n)}):[]}function getRichText(e){var t=e.config.env,n=t.scale,r=t.deviceWidth/n/20;return{name:"RichText",isReserved:!0,props:{nodes:{type:[Array,String],default:function(){return[]}}},render:function(e){var t=normalizeNodes(this.nodes||[],this.$vnode.context,{defaultFontSize:r});return e("u-rich-text",this._g({attrs:{value:t}},this.$listeners))}}}function init$18(e,t){e.component("rich-text",getRichText(t))}function getSwiperItem(e){return{name:"SwiperItem",isReserved:!0,props:{itemId:{type:String,default:""}},render:function(e){return e("div",this._g({staticClass:["uni-swiper-item"],staticStyle:{position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"}},this.$listeners),this._t("default"),2)}}}function init$19(e,t){e.component("swiper-item",getSwiperItem(t))}function getSwiper(r){var t=r.requireModule("dom");return{name:"Swiper",isReserved:!0,mixins:[emitter],props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:"rgba(0,0,0,.3)"},indicatorActiveColor:{type:String,default:"#000000"},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}},data:function(){return{currentSync:this.current,currentChangeSource:"autoplay"}},watch:{current:function(){this._currentCheck()},currentItemId:function(){this._currentCheck()},currentSync:function(){this.$trigger("change",this._getDetail())}},methods:{onChange:function(e){this.currentSync=e.detail.index,this._lastOffsetRatio=0},onScroll:function(e){var t=this.vertical?e.detail.offsetYRatio:e.detail.offsetXRatio;if((e.drag||e.detail.drag)&&(this.currentChangeSource="touch"),0===t){var n=Math.abs(this._lastOffsetRatio);if(1===n)return;.5<n&&(t=1)}this._lastOffsetRatio=t,this.$trigger("transition",{dx:this.vertical?0:-this._width*t,dy:this.vertical?-this._height*t:0})},onScrollEnd:function(e){var t=this,n=function(){t.$trigger("animationfinish",t._getDetail()),t.currentChangeSource="autoplay"};"iOS"===r.config.env.platform?setTimeout(n,50):n()},_getDetail:function(){var e=this.currentSync,t=this.items[e]||{};return{current:e,currentItemId:t.componentInstance&&t.componentInstance.itemId||"",source:this.currentChangeSource}},_currentCheck:function(){var e=-1;if(this.currentItemId)for(var t=0,n=this.items;t<n.length;t++){var r=n[t].componentInstance;if(r&&r.itemId===this.currentItemId){e=t;break}}e<0&&(e=Math.round(this.current)||0),e=e<0?0:e,this.currentSync!==e&&(this.currentChangeSource="",this.currentSync=e)},_getWH:function(){var r=this;this._getComponentSize(this.$refs.el).then(function(e){var t=e.width,n=e.height;e.top,e.left;r._width=t,r._height=n})},_getComponentSize:function(e){return new Promise(function(n){t.getComponentRect(e,function(e){var t=e.size;n(t)})})}},created:function(){this.items=[],this._width=this.height=0},mounted:function(){var e=this;this._currentCheck(),setTimeout(function(){e._getWH()},100)},render:function(e){var t=[];(Array.isArray(this.$slots.default)?deepClone(this.$slots.default,e):[]).forEach(function(e){e.componentOptions&&"swiper-item"===e.componentOptions.tag&&t.push(e)}),this.items=t;var n={},r=this.$listeners;return(r.change||r.animationfinish||r.transition)&&(n.scroll=this.onScroll,n.scrollend=this.onScrollEnd),r.change&&(n.change=this.onChange),e("div",this._g({ref:"el",staticClass:["uni-swiper"]},r),[e("slider",{staticClass:["uni-swiper-slider"],attrs:{autoPlay:this.autoplay,interval:this.interval,index:this.currentSync,showIndicators:this.indicatorDots,infinite:this.circular,vertical:this.vertical,scrollable:!this.disableTouch},on:n},t.concat([e("indicator",{staticClass:["uni-swiper-dots"],style:{itemColor:this.indicatorColor,itemSelectedColor:this.indicatorActiveColor,itemSize:8,opacity:this.indicatorDots?1:0}})]),2)])},style:{"uni-swiper":{position:"relative",height:"150px"},"uni-swiper-slider":{position:"absolute",left:0,top:0,right:0,bottom:0},"uni-swiper-dots":{position:"absolute",left:0,right:0,bottom:"10",height:"10"}}}}function init$20(e,t){e.component("swiper",getSwiper(t))}function getSwitch(e){return{name:"Switch",isReserved:!0,mixins:[emitter,listeners],props:{name:{type:String,default:""},id:{type:String,default:""},type:{type:String,default:"switch"},checked:{type:[Boolean,String],default:!1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},data:function(){return{switchChecked:this.checked}},watch:{checked:function(e){this.switchChecked=e}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onChange:function(e){this.switchChecked=e.detail.value,this.$trigger("change",{value:this.switchChecked})},_resetFormData:function(){this.switchChecked=!1},_getFormData:function(){var e={};return""!==this.name&&(e.value=this.switchChecked,e.key=this.name),e}},render:function(e){var t=this,n={},r=this.$listeners;return r.change&&(n.change=this._onChange),e("div",t._g({style:{paddingRight:5}},r),["switch"===t.type?e("dc-switch",{attrs:{dataUncType:"uni-switch",color:t.color,checked:t.switchChecked,disabled:t.disabled},style:{width:52,height:32},on:n}):t._e(),"checkbox"===t.type?e("checkbox",{attrs:{checked:t.checked,disabled:t.disabled},style:{color:t.color},on:n}):t._e()],1)}}}function init$21(e,t){e.component("switch",getSwitch(t))}function getSlider(e){return{name:"USlider",isReserved:!0,mixins:[emitter,listeners],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{left:0,width:0,sliderValue:Number(this.value),sliderThumbValue:0}},computed:{trackStyle:function(){return{backgroundColor:this._getBgColor()}},trackActiveStyle:function(){return{backgroundColor:this._getActiveColor(),width:this.thumbValue+"px"}},thumbStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginTop:-this.blockSize/2+"px",left:this.thumbValue+"px",backgroundColor:this.blockColor}},thumbValue:function(){return(this.sliderValue-Number(this.min))/(Number(this.max)-Number(this.min))*this.width}},watch:{value:function(e){this.sliderValue=Number(e)}},mounted:function(){var t=this;this._x0=0,this._x1=0,this.$eventOld=null,setTimeout(function(){e.requireModule("dom").getComponentRect(t.$refs["slider-track"],function(e){t.left=e.size.left,t.width=e.size.width})},50)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_handleStart:function(e){if(1===e.changedTouches.length&&!this._$eventOld){var t=(this._$eventOld=e).changedTouches[0].pageX-this.left;this._x0=this._x1=t,this._onTrack("start",t)}},_handleMove:function(e){if(1===e.changedTouches.length&&this._$eventOld){var t=e.changedTouches[0].pageX-this.left;this._onTrack("move",t),this._x1=t}},_handleEnd:function(e){if(1===e.changedTouches.length&&this._$eventOld){var t=e.changedTouches[0].pageX-this.left;this._$eventOld=null,this._onTrack("end",t)}},_onTrack:function(e,t){this.disabled||("move"===e?(this._onUserChangedValue({x:t}),this.$trigger("changing",{value:this.sliderValue})):"end"===e&&(this._onUserChangedValue({x:t}),this.$trigger("change",{value:this.sliderValue})))},_onUserChangedValue:function(e){var t=e.x;t<0&&(t=0),t>this.width&&(t=this.width),this.sliderValue=this._filterValue(t)},_filterValue:function(e){var t=e/this.width*(Number(this.max)-Number(this.min)),n=Number(this.step);return 0<n&&n<t&&t%n/n!=0&&(t-=t%n),parseInt(t+Number(this.min))},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var e={};return""!==this.name&&(e.value=this.sliderValue,e.key=this.name),e}},render:function(e){var t=this;return e("div",t._g({staticClass:["uni-slider"],style:{flexDirection:"column"}},t.$listeners),[e("div",{staticClass:["uni-slider-wrapper"]},[e("div",{staticClass:["uni-slider-tap-area"],on:{touchstart:t._handleStart,touchmove:t._handleMove,touchend:t._handleEnd},style:{flexDirection:"column"}},[e("div",{ref:"slider-track",staticClass:["uni-slider-handle-wrapper"],style:t.trackStyle},[e("div",{staticClass:["uni-slider-track"],style:t.trackActiveStyle})]),e("div",{ref:"uni-slider-handle",staticClass:["uni-slider-thumb"],style:t.thumbStyle})]),t.showValue?e("u-text",{staticClass:["uni-slider-value"]},[t._v(t._s(t.sliderValue))]):t._e()])])},style:{"uni-slider":{flex:1,marginTop:"12",marginRight:0,marginBottom:"12",marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},"uni-slider-wrapper":{flexDirection:"row",alignItems:"center",minHeight:"30"},"uni-slider-tap-area":{position:"relative",flex:1,paddingTop:"15",paddingRight:0,paddingBottom:"15",paddingLeft:0},"uni-slider-handle-wrapper":{position:"relative",marginTop:0,marginRight:"18",marginBottom:0,marginLeft:"18",height:"2",borderRadius:"5",backgroundColor:"#e9e9e9",transitionProperty:"backgroundColor",transitionDuration:300,transitionTimingFunction:"ease"},"@TRANSITION":{"uni-slider-handle-wrapper":{property:"backgroundColor",duration:300,timingFunction:"ease"},"uni-slider-track":{property:"backgroundColor",duration:300,timingFunction:"ease"},"uni-slider-thumb":{property:"borderColor",duration:300,timingFunction:"ease"}},"uni-slider-track":{height:"2",borderRadius:"6",backgroundColor:"#007aff",transitionProperty:"backgroundColor",transitionDuration:300,transitionTimingFunction:"ease"},"uni-slider-thumb":{position:"absolute",width:"28",height:"28",borderRadius:50,boxShadow:"0 0 4px #ebebeb",transitionProperty:"borderColor",transitionDuration:300,transitionTimingFunction:"ease"},"uni-slider-step":{position:"absolute",width:100,height:"2",background:"transparent",zIndex:1},"uni-slider-value":{color:"#888888",fontSize:"14",marginRight:"14"}}}}function init$22(e,t){e.component("u-slider",getSlider(t))}function getPickerView(e){return{name:"PickerView",isReserved:!0,mixins:[emitter],props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(function(e){return"number"==typeof e}).length===e.length}},height:{type:[Number,String],default:0},indicatorStyle:{type:String,default:""},maskStyle:{type:String,default:""}},data:function(){return{maskStyleSync:this.getStyle(this.maskStyle),indicatorStyleSync:this.getStyle(this.indicatorStyle),valueSync:[].concat(this.value)}},watch:{value:function(e){var n=this;this.valueSync.length=e.length,e.forEach(function(e,t){e!==n.valueSync[t]&&(n.valueSync[t]=e,n.items[t].componentInstance.setCurrent(e))})},maskStyle:function(e){this.maskStyleSync=this.getStyle(e)},indicatorStyle:function(e){this.indicatorStyleSync=this.getStyle(e)}},methods:{getStyle:function(e){return Object.assign({},"string"==typeof e?parseStyleText(e):e)},getItemIndex:function(e){return this.items.indexOf(e)},getItemValue:function(e){return this.valueSync[this.getItemIndex(e.$vnode)]||0},setItemValue:function(e,t){var n=this.getItemIndex(e.$vnode);this.valueSync[n]=t;var r=[].concat(this.valueSync);this.$emit("update:value",r),this.$trigger("change",{value:r})}},created:function(){this.items=[]},render:function(e){var t=[];return(Array.isArray(this.$slots.default)?deepClone(this.$slots.default,e):[]).forEach(function(e){e.componentOptions&&"picker-view-column"===e.componentOptions.tag&&t.push(e)}),this.items=t,e("div",this._g({staticClass:["uni-picker-view"],attrs:{preventGesture:!0}},this.$listeners),[e("div",{staticClass:["uni-picker-view-wrapper"]},t)],2)},style:{"uni-picker-view":{position:"relative"},"uni-picker-view-wrapper":{display:"flex",flexDirection:"row",position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}}}function init$23(e,t){e.component("picker-view",getPickerView(t))}function getHeight(e){void 0===e&&(e={});var t=(e.height||e.lineHeight||"").match(/(-?[\d\.]+)px/),n=0;return t&&(n=parseFloat(t[1])),n}function getPickerViewColumn(e){var r=e.requireModule("dom"),o="android"===e.config.env.platform.toLowerCase();return{name:"PickerViewColumn",isReserved:!0,props:{length:{type:[Number,String],default:0}},data:function(){return{indicatorHeight:getHeight(this.$parent.indicatorStyleSync),height:parseFloat(this.$parent.height),current:this.$parent.getItemValue(this)}},watch:{current:function(e){this._isMounted&&this.$parent.setItemValue(this,e)},length:function(){var e=this;setTimeout(function(){e.setCurrent(e.current,!0,!0)},150)}},mounted:function(){this.checkMounted()},methods:{checkMounted:function(){var n,r,i=this;setTimeout(function(){Promise.all([i._getComponentSize(i.$refs.el).then(function(e){var t=e.height;n=i.height=t}),o&&i.length?i._getComponentSize(i.$refs.item).then(function(e){var t=e.height;r=i.indicatorHeight=t/i.length}):i._getComponentSize(i.$refs.indicator).then(function(e){var t=e.height;r=i.indicatorHeight=t})]).then(function(){n&&r?setTimeout(function(){i.setCurrent(i.current,!1,!0),i._isMounted=!0},50):i.checkMounted()})},50)},onScrollend:function(e){if(!(Date.now()-this.scrollToElementTime<340)){var t=e.detail.contentOffset.y,n=Math.round(t/this.indicatorHeight);t%this.indicatorHeight?this.setCurrent(n,!0,!0):this.current=n}},setCurrent:function(e,t,n){void 0===t&&(t=!0),(this.current!==e||n)&&(r.scrollToElement(this.$refs.content,{offset:e*this.indicatorHeight,animated:t}),this.current=e,t&&(this.scrollToElementTime=Date.now()))},_getComponentSize:function(e){return new Promise(function(n){r.getComponentRect(e,function(e){var t=e.size;n(t)})})}},render:function(e){var t=this.$slots.default,n=(this.height-this.indicatorHeight)/2,r=this.height-n+"px";n+="px";var i={showScrollbar:!1,scrollToBegin:!1,decelerationRate:.3,scrollY:!0};return o||(i.scrollTop=this.current*this.indicatorHeight),e("div",this._g({ref:"el",staticClass:["uni-picker-view-column"]},this.$listeners),[e("scroll-view",{staticClass:["uni-picker-view-group"],attrs:i,on:{scrollend:this.onScrollend},style:{flexDirection:"column"}},[e("div",{ref:"content",staticClass:["uni-picker-view-content"],style:{flexDirection:"column",paddingTop:n,paddingBottom:n}},o?[e("div",{ref:"item",style:{flexDirection:"column"}},t)]:t)]),e("u-scalable",{staticClass:["uni-picker-view-mask"],style:this.$parent.maskStyleSync},[e("u-scalable",{staticClass:["uni-picker-view-mask","uni-picker-view-mask-top"],style:{bottom:r}}),e("u-scalable",{staticClass:["uni-picker-view-mask","uni-picker-view-mask-bottom"],style:{top:r}})]),e("u-scalable",{ref:"indicator",staticClass:["uni-picker-view-indicator"],style:Object.assign({},this.$parent.indicatorStyleSync,{top:n})})],2)},style:{"uni-picker-view-column":{flex:1,position:"relative",alignItems:"stretch",overflow:"hidden"},"uni-picker-view-mask":{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none"},"uni-picker-view-mask-top":{bottom:0,backgroundImage:"linear-gradient(to bottom,rgba(255, 255, 255, 0.95),rgba(255, 255, 255, 0.6))"},"uni-picker-view-mask-bottom":{top:0,backgroundImage:"linear-gradient(to top,rgba(255, 255, 255, 0.95),rgba(255, 255, 255, 0.6))"},"uni-picker-view-group":{position:"absolute",top:0,left:0,right:0,bottom:0},"uni-picker-view-content":{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},"uni-picker-view-indicator":{position:"absolute",left:0,right:0,top:0,height:"34px",pointerEvents:"none",borderColor:"#e5e5e5",borderTopWidth:"1px",borderBottomWidth:"1px"}}}}function init$24(e,t){e.component("picker-view-column",getPickerViewColumn(t))}var initComponents=[init$3,init$4,init$5,init$6,init$7,init$8,init$9,init$10,init$11,init$12,init$13,init$14,init$15,init$16,init$17,init$18,init$19,init$20,init$21,init$22,init$23,init$24],uniApp={install:function(t,n){t.prototype._$bus=new t,Object.defineProperty(t.prototype,"$page",{get:function(){return!this.$scope&&this.$root&&this.$root.$scope&&(this.$scope=this.$root.$scope),this.$scope.$page}}),styleMixin(t),lifecycleMixin(t,n.weex,n),"weex"!==n.__uniConfig.nvueCompiler&&initComponents.forEach(function(e){e(t,n.weex,n)})}};function vueFactory(e,t){var m=Object.freeze({});function E(e){return null==e}function A(e){return null!=e}function I(e){return!0===e}function c(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function y(e){return null!==e&&"object"==typeof e}var r=Object.prototype.toString;function u(e){return"[object Object]"===r.call(e)}function i(e){var t=parseFloat(String(e));return 0<=t&&Math.floor(t)===t&&isFinite(e)}function _(e){return A(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function n(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===r?JSON.stringify(e,null,2):String(e)}function o(e){var t=parseFloat(e);return isNaN(t)?e:t}function s(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}s("slot,component",!0);var l=s("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(-1<n)return e.splice(n,1)}}var a=Object.prototype.hasOwnProperty;function d(e,t){return a.call(e,t)}function f(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var p=/-(\w)/g,h=f(function(e){return e.replace(p,function(e,t){return t?t.toUpperCase():""})}),v=f(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),g=/\B([A-Z])/g,w=f(function(e){return e.replace(g,"-$1").toLowerCase()});var k=Function.prototype.bind?function(e,t){return e.bind(t)}:function(n,r){function e(e){var t=arguments.length;return t?1<t?n.apply(r,arguments):n.call(r,e):n.call(r)}return e._length=n.length,e};function S(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function x(e,t){for(var n in t)e[n]=t[n];return e}function C(e){for(var t={},n=0;n<e.length;n++)e[n]&&x(t,e[n]);return t}function T(e,t,n){}var O=function(e,t,n){return!1},$=function(e){return e};function P(t,n){if(t===n)return!0;var e=y(t),r=y(n);if(!e||!r)return!e&&!r&&String(t)===String(n);try{var i=Array.isArray(t),o=Array.isArray(n);if(i&&o)return t.length===n.length&&t.every(function(e,t){return P(e,n[t])});if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(e){return P(t[e],n[e])})}catch(e){return!1}}function M(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function j(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var B="data-server-rendered",N=["component","directive","filter"],D=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],L={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:O,isReservedAttr:O,isUnknownElement:O,getTagNamespace:T,parsePlatformTagName:$,mustUseProp:O,async:!0,_lifecycleHooks:D};function R(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var F=new RegExp("[^"+/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source+".$_\\d]");var z,U="__proto__"in{},V="undefined"!=typeof window,q="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,W=q&&WXEnvironment.platform.toLowerCase(),H=V&&window.navigator.userAgent.toLowerCase(),G=H&&/msie|trident/.test(H),X=(H&&H.indexOf("msie 9.0"),H&&0<H.indexOf("edge/")),Y=(H&&H.indexOf("android"),H&&/iphone|ipad|ipod|ios/.test(H),H&&/chrome\/\d+/.test(H),H&&/phantomjs/.test(H),H&&H.match(/firefox\/(\d+)/),{}.watch);if(V)try{var J={};Object.defineProperty(J,"passive",{get:function(){}}),window.addEventListener("test-passive",null,J)}catch(e){}var K=function(){return void 0===z&&(z=!V&&!q&&void 0!==global&&(global.process&&"server"===global.process.env.VUE_ENV)),z},Z=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Q(e){return"function"==typeof e&&/native code/.test(e.toString())}var ee,te="undefined"!=typeof Symbol&&Q(Symbol)&&"undefined"!=typeof Reflect&&Q(Reflect.ownKeys);ee="undefined"!=typeof Set&&Q(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 ne=T,re=0,ie=function(){this.id=void 0!==t?t.uid++:re++,this.subs=[]};function oe(e){ie.SharedObject.targetStack.push(e),ie.SharedObject.target=e}function ae(){ie.SharedObject.targetStack.pop(),ie.SharedObject.target=ie.SharedObject.targetStack[ie.SharedObject.targetStack.length-1]}ie.prototype.addSub=function(e){this.subs.push(e)},ie.prototype.removeSub=function(e){b(this.subs,e)},ie.prototype.depend=function(){ie.SharedObject.target&&ie.SharedObject.target.addDep(this)},ie.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},ie.SharedObject=void 0!==t?t:{},ie.SharedObject.target=null,ie.SharedObject.targetStack=[];var se=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,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},ce={child:{configurable:!0}};ce.child.get=function(){return this.componentInstance},Object.defineProperties(se.prototype,ce);var ue=function(e){void 0===e&&(e="");var t=new se;return t.text=e,t.isComment=!0,t};function le(e){return new se(void 0,void 0,void 0,String(e))}function de(e){var t=new se(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var fe=Array.prototype,pe=Object.create(fe);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(a){var s=fe[a];R(pe,a,function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r,i=s.apply(this,t),o=this.__ob__;switch(a){case"push":case"unshift":r=t;break;case"splice":r=t.slice(2)}return r&&o.observeArray(r),o.dep.notify(),i})});var he=Object.getOwnPropertyNames(pe),ve=!0;function ge(e){ve=e}var me=function(e){var t;this.value=e,this.dep=new ie,this.vmCount=0,R(e,"__ob__",this),Array.isArray(e)?(U?(t=pe,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];R(e,o,t[o])}}(e,pe,he),this.observeArray(e)):this.walk(e)};function ye(e,t){var n;if(y(e)&&!(e instanceof se))return d(e,"__ob__")&&e.__ob__ instanceof me?n=e.__ob__:ve&&!K()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new me(e)),t&&n&&n.vmCount++,n}function _e(n,e,r,t,i){var o=new ie,a=Object.getOwnPropertyDescriptor(n,e);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(r=n[e]);var u=!i&&ye(r);Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(n):r;return ie.SharedObject.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(e))),e},set:function(e){var t=s?s.call(n):r;e===t||e!=e&&t!=t||s&&!c||(c?c.call(n,e):r=e,u=!i&&ye(e),o.notify())}})}}function be(e,t,n){if(Array.isArray(e)&&i(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;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(_e(r.value,t,n),r.dep.notify(),n):e[t]=n}function we(e,t){if(Array.isArray(e)&&i(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||d(e,t)&&(delete e[t],n&&n.dep.notify())}}me.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)_e(e,t[n])},me.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)ye(e[t])};var ke=L.optionMergeStrategies;function Se(e,t){if(!t)return e;for(var n,r,i,o=te?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],d(e,n)?r!==i&&u(r)&&u(i)&&Se(r,i):be(e,n,i));return e}function xe(n,r,i){return i?function(){var e="function"==typeof r?r.call(i,i):r,t="function"==typeof n?n.call(i,i):n;return e?Se(e,t):t}:r?n?function(){return Se("function"==typeof r?r.call(this,this):r,"function"==typeof n?n.call(this,this):n)}:r:n}function Ce(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Te(e,t,n,r){var i=Object.create(e||null);return t?x(i,t):i}ke.data=function(e,t,n){return n?xe(e,t,n):t&&"function"!=typeof t?e:xe(e,t)},D.forEach(function(e){ke[e]=Ce}),N.forEach(function(e){ke[e+"s"]=Te}),ke.watch=function(e,t,n,r){if(e===Y&&(e=void 0),t===Y&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in x(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},ke.props=ke.methods=ke.inject=ke.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return x(i,e),t&&x(i,t),i},ke.provide=xe;var Oe=function(e,t){return void 0===t?e:t};function Ee(n,r,i){if("function"==typeof r&&(r=r.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[h(i)]={type:null});else if(u(n))for(var a in n)i=n[a],o[h(a)]=u(i)?i:{type:i};e.props=o}}(r),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?x({from:o},a):{from:a}}}}(r),function(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})}}(r),!r._base&&(r.extends&&(n=Ee(n,r.extends,i)),r.mixins))for(var e=0,t=r.mixins.length;e<t;e++)n=Ee(n,r.mixins[e],i);var o,a={};for(o in n)s(o);for(o in r)d(n,o)||s(o);function s(e){var t=ke[e]||Oe;a[e]=t(n[e],r[e],i,e)}return a}function Ae(e,t,n,r){if("string"==typeof n){var i=e[t];if(d(i,n))return i[n];var o=h(n);if(d(i,o))return i[o];var a=v(o);return d(i,a)?i[a]:i[n]||i[o]||i[a]}}function Ie(e,t,n,r){var i=t[e],o=!d(n,e),a=n[e],s=Me(Boolean,i.type);if(-1<s)if(o&&!d(i,"default"))a=!1;else if(""===a||a===w(e)){var c=Me(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!d(t,"default"))return;var r=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==$e(t.type)?r.call(e):r}(r,i,e);var u=ve;ge(!0),ye(a),ge(u)}return a}function $e(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Pe(e,t){return $e(e)===$e(t)}function Me(e,t){if(!Array.isArray(t))return Pe(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Pe(t[n],e))return n;return-1}function je(e,t,n){oe();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Ne(e,r,"errorCaptured hook")}}Ne(e,t,n)}finally{ae()}}function Be(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&_(o)&&!o._handled&&(o.catch(function(e){return je(e,r,i+" (Promise/async)")}),o._handled=!0)}catch(e){je(e,r,i)}return o}function Ne(t,e,n){if(L.errorHandler)try{return L.errorHandler.call(null,t,e,n)}catch(e){e!==t&&De(e,null,"config.errorHandler")}De(t,e,n)}function De(e,t,n){if(!V&&!q||"undefined"==typeof console)throw e;console.error(e)}var Le=[],Re=!1;function Fe(){Re=!1;for(var e=Le.slice(0),t=Le.length=0;t<e.length;t++)e[t]()}var ze=function(){setTimeout(Fe,0)};function Ue(e,t){var n;if(Le.push(function(){if(e)try{e.call(t)}catch(e){je(e,t,"nextTick")}else n&&n(t)}),Re||(Re=!0,ze()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Ve=new ee;function qe(e){!function e(t,n){var r,i;var o=Array.isArray(t);if(!o&&!y(t)||Object.isFrozen(t)||t instanceof se)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,Ve),Ve.clear()}var We=f(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function He(e,i){function o(){var e=arguments,t=o.fns;if(!Array.isArray(t))return Be(t,null,arguments,i,"v-on handler");for(var n=t.slice(),r=0;r<n.length;r++)Be(n[r],null,e,i,"v-on handler")}return o.fns=e,o}function Ge(e,t,n,r,i,o){var a,s,c,u;for(a in e)s=e[a],c=t[a],u=We(a),E(s)||(E(c)?(E(s.fns)&&(s=e[a]=He(s,o)),I(u.once)&&(s=e[a]=i(u.name,s,u.capture)),n(u.name,s,u.capture,u.passive,u.params)):s!==c&&(c.fns=s,e[a]=c));for(a in t)E(e[a])&&r((u=We(a)).name,t[a],u.capture)}function Xe(e,t,n){var r;e instanceof se&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function o(){n.apply(this,arguments),b(r.fns,o)}E(i)?r=He([o]):A(i.fns)&&I(i.merged)?(r=i).fns.push(o):r=He([i,o]),r.merged=!0,e[t]=r}function Ye(e,t,n,r){var i=t.options.mpOptions&&t.options.mpOptions.properties;if(E(i))return n;var o=t.options.mpOptions.externalClasses||[],a=e.attrs,s=e.props;if(A(a)||A(s))for(var c in i){var u=w(c);(Je(n,s,c,u,!0)||Je(n,a,c,u,!1))&&n[c]&&-1!==o.indexOf(u)&&r[h(n[c])]&&(n[c]=r[h(n[c])])}return n}function Je(e,t,n,r,i){if(A(t)){if(d(t,n))return e[n]=t[n],i||delete t[n],!0;if(d(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Ke(e){return c(e)?[le(e)]:Array.isArray(e)?function e(t,n){var r=[];var i,o,a,s;for(i=0;i<t.length;i++)E(o=t[i])||"boolean"==typeof o||(a=r.length-1,s=r[a],Array.isArray(o)?0<o.length&&(Ze((o=e(o,(n||"")+"_"+i))[0])&&Ze(s)&&(r[a]=le(s.text+o[0].text),o.shift()),r.push.apply(r,o)):c(o)?Ze(s)?r[a]=le(s.text+o):""!==o&&r.push(le(o)):Ze(o)&&Ze(s)?r[a]=le(s.text+o.text):(I(t._isVList)&&A(o.tag)&&E(o.key)&&A(n)&&(o.key="__vlist"+n+"_"+i+"__"),r.push(o)));return r}(e):void 0}function Ze(e){return A(e)&&A(e.text)&&!1===e.isComment}function Qe(e,t){if(e){for(var n=Object.create(null),r=te?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&d(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}}}return n}}function et(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(tt)&&delete n[u];return n}function tt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function nt(e,t,n){var r,i=0<Object.keys(t).length,o=e?!!e.$stable:!i,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==m&&a===n.$key&&!i&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=rt(t,s,e[s]))}else r={};for(var c in t)c in r||(r[c]=it(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),R(r,"$stable",o),R(r,"$key",a),R(r,"$hasNormal",i),r}function rt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:Ke(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function it(e,t){return function(){return e[t]}}function ot(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r,r,r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r,r,r);else if(y(e))if(te&&e[Symbol.iterator]){n=[];var s=e[Symbol.iterator](),c=s.next();for(r=0;!c.done;)n.push(t(c.value,n.length,r++,r)),c=s.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r,r);return A(n)||(n=[]),n._isVList=!0,n}function at(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=x(x({},r),n)),i=o(n,this,n._i)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function st(e){return Ae(this.$options,"filters",e)||$}function ct(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function ut(e,t,n,r,i){var o=L.keyCodes[t]||n;return i&&r&&!L.keyCodes[t]?ct(i,r):o?ct(o,e):r?w(r)!==t:void 0}function lt(i,o,a,s,c){if(a)if(y(a)){var u;Array.isArray(a)&&(a=C(a));var e=function(t){if("class"===t||"style"===t||l(t))u=i;else{var e=i.attrs&&i.attrs.type;u=s||L.mustUseProp(o,e,t)?i.domProps||(i.domProps={}):i.attrs||(i.attrs={})}var n=h(t),r=w(t);n in u||r in u||(u[t]=a[t],c&&((i.on||(i.on={}))["update:"+t]=function(e){a[t]=e}))};for(var t in a)e(t)}else;return i}function dt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||pt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function ft(e,t,n){return pt(e,"__once__"+t+(n?"_"+n:""),!0),e}function pt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&ht(e[r],t+"_"+r,n);else ht(e,t,n)}function ht(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function vt(e,t){if(t)if(u(t)){var n=e.on=e.on?x({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function gt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?gt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function mt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function yt(e,t){return"string"==typeof e?t+e:e}function _t(e){e._o=ft,e._n=o,e._s=n,e._l=ot,e._t=at,e._q=P,e._i=M,e._m=dt,e._f=st,e._k=ut,e._b=lt,e._v=le,e._e=ue,e._u=gt,e._g=vt,e._d=mt,e._p=yt}function bt(e,t,n,o,r){var a,i=this,s=r.options;d(o,"_uid")?(a=Object.create(o))._original=o:o=(a=o)._original;var c=I(s._compiled),u=!c;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||m,this.injections=Qe(s.inject,o),this.slots=function(){return i.$slots||nt(e.scopedSlots,i.$slots=et(n,o)),i.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return nt(e.scopedSlots,this.slots())}}),c&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=nt(e.scopedSlots,this.$slots)),s._scopeId?this._c=function(e,t,n,r){var i=At(a,e,t,n,r,u);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return At(a,e,t,n,r,u)}}function wt(e,t,n,r,i){var o=de(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function kt(e,t){for(var n in t)e[h(n)]=t[n]}_t(bt.prototype);var St={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;St.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;A(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Dt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){var o=r.data.scopedSlots,a=e.$scopedSlots,s=!!(o&&!o.$stable||a!==m&&!a.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(i||e.$options._renderChildren||s);e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r);if(e.$options._renderChildren=i,e.$attrs=r.data.attrs||m,e.$listeners=n||m,t&&e.$options.props){ge(!1);for(var u=e._props,l=e.$options._propKeys||[],d=0;d<l.length;d++){var f=l[d],p=e.$options.props;u[f]=Ie(f,p,t,e)}ge(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),n=n||m;var h=e.$options._parentListeners;e.$options._parentListeners=n,Nt(e,n,h),c&&(e.$slots=et(i,r.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,r._$vd?(Ft(r,"onServiceCreated"),Ft(r,"onServiceAttached"),r._$vd.addMountedVm(r)):Ft(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,Ut.push(t)):Rt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Lt(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);Ft(t,"deactivated")}}(t,!0):t.$destroy())}},xt=Object.keys(St);function Ct(e,t,n,r,i){if(!E(e)){var o=n.$options._base;if(y(e)&&(e=o.extend(e)),"function"==typeof e){var a,s,c,u,l,d,f;if(E(e.cid)&&void 0===(e=function(t,n){if(I(t.error)&&A(t.errorComp))return t.errorComp;if(A(t.resolved))return t.resolved;var e=$t;e&&A(t.owners)&&-1===t.owners.indexOf(e)&&t.owners.push(e);if(I(t.loading)&&A(t.loadingComp))return t.loadingComp;if(e&&!A(t.owners)){var r=t.owners=[e],i=!0,o=null,a=null;e.$on("hook:destroyed",function(){return b(r,e)});var s=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==o&&(clearTimeout(o),o=null),null!==a&&(clearTimeout(a),a=null))},c=j(function(e){t.resolved=Pt(e,n),i?r.length=0:s(!0)}),u=j(function(e){A(t.errorComp)&&(t.error=!0,s(!0))}),l=t(c,u);return y(l)&&(_(l)?E(t.resolved)&&l.then(c,u):_(l.component)&&(l.component.then(c,u),A(l.error)&&(t.errorComp=Pt(l.error,n)),A(l.loading)&&(t.loadingComp=Pt(l.loading,n),0===l.delay?t.loading=!0:o=setTimeout(function(){o=null,E(t.resolved)&&E(t.error)&&(t.loading=!0,s(!1))},l.delay||200)),A(l.timeout)&&(a=setTimeout(function(){a=null,E(t.resolved)&&u(null)},l.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(a=e,o)))return s=a,c=t,u=n,l=r,d=i,(f=ue()).asyncFactory=s,f.asyncMeta={data:c,context:u,children:l,tag:d},f;t=t||{},vn(e),A(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),o=i[r],a=t.model.callback;A(o)?(Array.isArray(o)?-1===o.indexOf(a):o!==a)&&(i[r]=[a].concat(o)):i[r]=a}(e.options,t);var p=function(e,t,n,r){var i=t.options.props;if(E(i))return Ye(e,t,{},r);var o={},a=e.attrs,s=e.props;if(A(a)||A(s))for(var c in i){var u=w(c);Je(o,s,c,u,!0)||Je(o,a,c,u,!1)}return Ye(e,t,o,r)}(t,e,0,n);if(I(e.options.functional))return function(e,t,n,r,i){var o=e.options,a={},s=o.props;if(A(s))for(var c in s)a[c]=Ie(c,s,t||m);else A(n.attrs)&&kt(a,n.attrs),A(n.props)&&kt(a,n.props);var u=new bt(n,a,i,r,e),l=o.render.call(null,u._c,u);if(l instanceof se)return wt(l,n,u.parent,o);if(Array.isArray(l)){for(var d=Ke(l)||[],f=new Array(d.length),p=0;p<d.length;p++)f[p]=wt(d[p],n,u.parent,o);return f}}(e,p,t,n,r);var h=t.on;if(t.on=t.nativeOn,I(e.options.abstract)){var v=t.slot;t={},v&&(t.slot=v)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<xt.length;n++){var r=xt[n],i=t[r],o=St[r];i===o||i&&i._merged||(t[r]=i?Tt(o,i):o)}}(t);var g=e.options.name||i;return new se("vue-component-"+e.cid+(g?"-"+g:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:p,listeners:h,tag:i,children:r},a)}}}function Tt(n,r){var e=function(e,t){n(e,t),r(e,t)};return e._merged=!0,e}var Ot=1,Et=2;function At(e,t,n,r,i,o){return(Array.isArray(n)||c(n))&&(i=r,r=n,n=void 0),I(o)&&(i=Et),function(e,t,n,r,i){if(A(n)&&A(n.__ob__))return ue();A(n)&&A(n.is)&&(t=n.is);if(!t)return ue();Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);i===Et?r=Ke(r):i===Ot&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var o,a;if("string"==typeof t){var s;a=e.$vnode&&e.$vnode.ns||L.getTagNamespace(t),o=L.isReservedTag(t)?new se(L.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!A(s=Ae(e.$options,"components",t))?new se(t,n,r,void 0,void 0,e):Ct(s,n,e,r,t)}else o=Ct(t,n,e,r);return Array.isArray(o)?o:A(o)?(A(a)&&function e(t,n,r){t.ns=n;"foreignObject"===t.tag&&(r=!(n=void 0));if(A(t.children))for(var i=0,o=t.children.length;i<o;i++){var a=t.children[i];A(a.tag)&&(E(a.ns)||I(r)&&"svg"!==a.tag)&&e(a,n,r)}}(o,a),A(n)&&function(e){y(e.style)&&qe(e.style);y(e.class)&&qe(e.class)}(n),o):ue()}(e,t,n,r,i)}var It,$t=null;function Pt(e,t){return(e.__esModule||te&&"Module"===e[Symbol.toStringTag])&&(e=e.default),y(e)?t.extend(e):e}function Mt(e,t){It.$on(e,t)}function jt(e,t){It.$off(e,t)}function Bt(t,n){var r=It;return function e(){null!==n.apply(null,arguments)&&r.$off(t,e)}}function Nt(e,t,n){Ge(t,n||{},Mt,jt,Bt,It=e),It=void 0}var Dt=null;function Lt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Rt(e,t){if(t){if(e._directInactive=!1,Lt(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++)Rt(e.$children[n]);Ft(e,"activated")}}function Ft(e,t){oe();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Be(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ae()}var zt=[],Ut=[],Vt={},qt=!1,Wt=!1,Ht=0;var Gt=Date.now;if(V&&!G){var Xt=window.performance;Xt&&"function"==typeof Xt.now&&Gt()>document.createEvent("Event").timeStamp&&(Gt=function(){return Xt.now()})}function Yt(){var e,t;for(Gt(),Wt=!0,zt.sort(function(e,t){return e.id-t.id}),Ht=0;Ht<zt.length;Ht++)(e=zt[Ht]).before&&e.before(),t=e.id,Vt[t]=null,e.run();var n=Ut.slice(),r=zt.slice();Ht=zt.length=Ut.length=0,qt=Wt=!(Vt={}),function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Rt(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&(r._$vd?r._$vd.addUpdatedVm(r):Ft(r,"updated"))}}(r),Z&&L.devtools&&Z.emit("flush")}var Jt=0,Kt=function(e,t,n,r,i){this.vm=e,i&&(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.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Jt,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ee,this.newDepIds=new ee,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!F.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}(t),this.getter||(this.getter=T)),this.value=this.lazy?void 0:this.get()};Kt.prototype.get=function(){var e;oe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;je(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&qe(e),ae(),this.cleanupDeps()}return e},Kt.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))},Kt.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Kt.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==Vt[t]){if(Vt[t]=!0,Wt){for(var n=zt.length-1;Ht<n&&zt[n].id>e.id;)n--;zt.splice(n+1,0,e)}else zt.push(e);qt||(qt=!0,Ue(Yt))}}(this)},Kt.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||y(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){je(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Kt.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Kt.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Kt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Zt={enumerable:!0,configurable:!0,get:T,set:T};function Qt(e,t,n){Zt.get=function(){return this[t][n]},Zt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Zt)}function en(e){e._watchers=[];var t=e.$options;t.props&&function(n,r){var i=n.$options.propsData||{},o=n._props={},a=n.$options._propKeys=[];n.$parent&&ge(!1);var e=function(e){a.push(e);var t=Ie(e,r,i,n);_e(o,e,t),e in n||Qt(n,"_props",e)};for(var t in r)e(t);ge(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?T:k(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){oe();try{return e.call(t,t)}catch(e){return je(e,t,"data()"),{}}finally{ae()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&d(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&Qt(e,"_data",o))}var a;ye(t,!0)}(e):ye(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=K();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new Kt(e,a||T,T,tn)),i in e||nn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Y&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)an(e,n,r[i]);else an(e,n,r)}}(e,t.watch)}var tn={lazy:!0};function nn(e,t,n){var r=!K();"function"==typeof n?(Zt.get=r?rn(t):on(n),Zt.set=T):(Zt.get=n.get?r&&!1!==n.cache?rn(t):on(n.get):T,Zt.set=n.set||T),Object.defineProperty(e,t,Zt)}function rn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ie.SharedObject.target&&e.depend(),e.value}}function on(e){return function(){return e.call(this,this)}}function an(e,t,n,r){return u(n)&&(n=(r=n).handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var sn,cn,un,ln,dn,fn,pn,hn=0;function vn(e){var t=e.options;if(e.super){var n=vn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&x(e.extendOptions,r),(t=e.options=Ee(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function gn(e){this._init(e)}function mn(e){e.cid=0;var a=1;e.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var i=e.name||t.options.name,o=function(e){this._init(e)};return((o.prototype=Object.create(t.prototype)).constructor=o).cid=a++,o.options=Ee(t.options,e),o.super=t,o.options.props&&function(e){var t=e.options.props;for(var n in t)Qt(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)nn(e.prototype,n,t[n])}(o),o.extend=t.extend,o.mixin=t.mixin,o.use=t.use,N.forEach(function(e){o[e]=t[e]}),i&&(o.options.components[i]=o),o.superOptions=t.options,o.extendOptions=e,o.sealedOptions=x({},o.options),r[n]=o}}function yn(e){return e&&(e.Ctor.options.name||e.tag)}function _n(e,t){return Array.isArray(e)?-1<e.indexOf(t):"string"==typeof e?-1<e.split(",").indexOf(t):(n=e,"[object RegExp]"===r.call(n)&&e.test(t));var n}function bn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=yn(a.componentOptions);s&&!t(s)&&wn(n,o,r,i)}}}function wn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}gn.prototype._init=function(e){var t,n,r,i,o=this;o._uid=hn++,o._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent;var i=(n._parentVnode=r).componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(o,e):o.$options=Ee(vn(o.constructor),e||{},o),function(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}((o._renderProxy=o)._self=o),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Nt(e,t)}(o),function(i){i._vnode=null,i._staticTrees=null;var e=i.$options,t=i.$vnode=e._parentVnode,n=t&&t.context;i.$slots=et(e._renderChildren,n),i.$scopedSlots=m,i._c=function(e,t,n,r){return At(i,e,t,n,r,!1)},i.$createElement=function(e,t,n,r){return At(i,e,t,n,r,!0)};var r=t&&t.data;_e(i,"$attrs",r&&r.attrs||m,null,!0),_e(i,"$listeners",e._parentListeners||m,null,!0)}(o),Ft(o,"beforeCreate"),(n=Qe((t=o).$options.inject,t))&&(ge(!1),Object.keys(n).forEach(function(e){_e(t,e,n[e])}),ge(!0)),en(o),(i=(r=o).$options.provide)&&(r._provided="function"==typeof i?i.call(r):i),Ft(o,"created"),o.$options.el&&o.$mount(o.$options.el)},sn=gn,cn={get:function(){return this._data}},un={get:function(){return this._props}},Object.defineProperty(sn.prototype,"$data",cn),Object.defineProperty(sn.prototype,"$props",un),sn.prototype.$set=be,sn.prototype.$delete=we,sn.prototype.$watch=function(e,t,n){var r=this;if(u(t))return an(r,e,t,n);(n=n||{}).user=!0;var i=new Kt(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(e){je(e,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}},dn=/^hook:/,(ln=gn).prototype.$on=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)this.$on(e[n],t);else(this._events[e]||(this._events[e]=[])).push(t),dn.test(e)&&(this._hasHookEvent=!0);return this},ln.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},ln.prototype.$off=function(e,t){if(!arguments.length)return this._events=Object.create(null),this;if(Array.isArray(e)){for(var n=0,r=e.length;n<r;n++)this.$off(e[n],t);return this}var i,o=this._events[e];if(!o)return this;if(!t)return this._events[e]=null,this;for(var a=o.length;a--;)if((i=o[a])===t||i.fn===t){o.splice(a,1);break}return this},ln.prototype.$emit=function(e){var t=this._events[e];if(t){t=1<t.length?S(t):t;for(var n=S(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;i<o;i++)Be(t[i],this,n,this,r)}return this},(fn=gn).prototype._update=function(e,t){var n,r=this,i=r.$el,o=r._vnode,a=(n=Dt,Dt=r,function(){Dt=n});r._vnode=e,r.$el=o?r.__patch__(o,e):r.__patch__(r.$el,e,t,!1),a(),i&&(i.__vue__=null),r.$el&&(r.$el.__vue__=r),r.$vnode&&r.$parent&&r.$vnode===r.$parent._vnode&&(r.$parent.$el=r.$el)},fn.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},fn.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Ft(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Ft(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}},_t((pn=gn).prototype),pn.prototype.$nextTick=function(e){return Ue(e,this)},pn.prototype._render=function(){var t,n=this,e=n.$options,r=e.render,i=e._parentVnode;i&&(n.$scopedSlots=nt(i.data.scopedSlots,n.$slots,n.$scopedSlots)),n.$vnode=i;try{$t=n,t=r.call(n._renderProxy,n.$createElement)}catch(e){je(e,n,"render"),t=n._vnode}finally{$t=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof se||(t=ue()),t.parent=i,t};var kn,Sn,xn,Cn=[String,RegExp,Array],Tn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Cn,exclude:Cn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)wn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){bn(e,function(e){return _n(t,e)})}),this.$watch("exclude",function(t){bn(e,function(e){return!_n(t,e)})})},render:function(){var e=this.$slots.default,t=function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(A(n)&&(A(n.componentOptions)||(r=n).isComment&&r.asyncFactory))return n}var r}(e),n=t&&t.componentOptions;if(n){var r=yn(n),i=this.include,o=this.exclude;if(i&&(!r||!_n(i,r))||o&&r&&_n(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,b(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&wn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};kn=gn,xn={get:function(){return L}},Object.defineProperty(kn,"config",xn),kn.util={warn:ne,extend:x,mergeOptions:Ee,defineReactive:_e},kn.set=be,kn.delete=we,kn.nextTick=Ue,kn.observable=function(e){return ye(e),e},kn.options=Object.create(null),N.forEach(function(e){kn.options[e+"s"]=Object.create(null)}),x((kn.options._base=kn).options.components,Tn),kn.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(-1<t.indexOf(e))return this;var n=S(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},kn.mixin=function(e){return this.options=Ee(this.options,e),this},mn(kn),Sn=kn,N.forEach(function(n){Sn[n]=function(e,t){return t?("component"===n&&u(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t):this.options[n+"s"][e]}}),Object.defineProperty(gn.prototype,"$isServer",{get:K}),Object.defineProperty(gn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:bt}),gn.version="2.6.11";var On=1;function En(){return(On++).toString()}var An=function(){this.nodeId=En(),this.ref=this.nodeId,this.children=[],this.pureChildren=[],this.parentNode=null,this.nextSibling=null,this.previousSibling=null};An.prototype.destroy=function(){this._$vd&&this._$vd.removeElement(this),this.children.forEach(function(e){e.destroy()})};var In=function(t){function e(e){t.call(this),this.nodeType=8,this.nodeId=En(),this.ref=this.nodeId,this.type="comment",this.value=e,this.children=[],this.pureChildren=[]}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.toString=function(){return"\x3c!-- "+this.value+" --\x3e"},e}(An);function $n(e,t,n){var r=e.documentElement;if(!(0<r.pureChildren.length||t.parentNode)){var i=r.children,o=i.indexOf(n);o<0?i.push(t):i.splice(o,0,t),1===t.nodeType?("body"===t.role?(t.docId=e.id,t.ownerDocument=e,t.parentNode=r):(t.children.forEach(function(e){e.parentNode=t}),Pn(e,t),t.docId=e.id,t.ownerDocument=e),Mn(t,r),r.pureChildren.push(t)):t.parentNode=r}}function Pn(e,t){t.role="body",t.depth=1,t.ref="_root",e.body=t}function Mn(t,e){(t.parentNode=e).docId&&(t.docId=e.docId,t.ownerDocument=e.ownerDocument,t.depth=e.depth+1),t.children.forEach(function(e){Mn(e,t)})}function jn(e){for(;e;){if(1===e.nodeType)return e;e=e.nextSibling}}function Bn(e){for(;e;){if(1===e.nodeType)return e;e=e.previousSibling}}function Nn(e,t,n,r){n<0&&(n=0);var i=t[n-1],o=t[n];return t.splice(n,0,e),r&&(i&&(i.nextSibling=e),e.previousSibling=i,(e.nextSibling=o)&&(o.previousSibling=e)),n}function Dn(e,t,n,r){var i=t.indexOf(e);if(i<0)return-1;if(r){var o=t[i-1],a=t[i+1];o&&(o.nextSibling=a),a&&(a.previousSibling=o)}t.splice(i,1);var s=n;i<=n&&(s=n-1);var c=t[s-1],u=t[s];return t.splice(s,0,e),r&&(c&&(c.nextSibling=e),e.previousSibling=c,(e.nextSibling=u)&&(u.previousSibling=e)),i===s?-1:n}function Ln(e,t,n){var r=t.indexOf(e);if(!(r<0)){if(n){var i=t[r-1],o=t[r+1];i&&(i.nextSibling=o),o&&(o.previousSibling=i)}t.splice(r,1)}}var Rn=function(t){function e(e){void 0===e&&(e="view"),t.call(this),this.nodeType=1,this.nodeId=En(),this.ref=this.nodeId,this.type=e,this.attr={},this.events={},this.children=[],this.pureChildren=[]}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.setAttribute=function(e,t){"cid"===e?this.cid=t:"nid"===e&&(this.nid=t)},e.prototype.dispatchEvent=function(e,t){var n=this.events[e];n&&n.forEach(function(e){e(t)})},e.prototype.addEventListener=function(e,t){if(""===this.cid||""===this.nid)return console.error("cid="+this.cid+",nid="+this.nid+" addEventListener("+e+") not found");(this.events[e]||(this.events[e]=[])).push(t),this._$vd.addElement(this)},e.prototype.removeEventListener=function(e,t){var n=this;if(""===this.cid||""===this.nid)return console.error("cid="+this.cid+",nid="+this.nid+" removeEventListener("+e+") not found");var r=!1;if(this.events[e]){var i=this.events[e].indexOf(t);-1!==i&&(this.events[e].splice(i,1),r=!0)}r||console.error("cid="+this.cid+",nid="+this.nid+" removeEventListener("+e+") handler not found"),Object.keys(this.events).every(function(e){return 0===n.events[e].length})&&this._$vd.removeElement(this)},e.prototype.appendChild=function(e){e.parentNode&&e.parentNode!==this||(e.parentNode?(Dn(e,this.children,this.children.length,!0),1===e.nodeType&&Dn(e,this.pureChildren,this.pureChildren.length)):(Mn(e,this),Nn(e,this.children,this.children.length,!0),1===e.nodeType&&Nn(e,this.pureChildren,this.pureChildren.length)))},e.prototype.insertBefore=function(e,t){if(!(e.parentNode&&e.parentNode!==this||e===t||e.nextSibling&&e.nextSibling===t))if(e.parentNode){if(Dn(e,this.children,this.children.indexOf(t),!0),1===e.nodeType){var n=jn(t);Dn(e,this.pureChildren,n?this.pureChildren.indexOf(n):this.pureChildren.length)}}else if(Mn(e,this),Nn(e,this.children,this.children.indexOf(t),!0),1===e.nodeType){var r=jn(t);Nn(e,this.pureChildren,r?this.pureChildren.indexOf(r):this.pureChildren.length)}},e.prototype.insertAfter=function(e,t){e.parentNode&&e.parentNode!==this||e===t||e.previousSibling&&e.previousSibling===t||(e.parentNode?(Dn(e,this.children,this.children.indexOf(t)+1,!0),1===e.nodeType&&Dn(e,this.pureChildren,this.pureChildren.indexOf(Bn(t))+1)):(Mn(e,this),Nn(e,this.children,this.children.indexOf(t)+1,!0),1===e.nodeType&&Nn(e,this.pureChildren,this.pureChildren.indexOf(Bn(t))+1)))},e.prototype.removeChild=function(e,t){e.parentNode&&(Ln(e,this.children,!0),1===e.nodeType&&Ln(e,this.pureChildren)),t||e.destroy()},e.prototype.clear=function(){this.children.forEach(function(e){e.destroy()}),this.children.length=0,this.pureChildren.length=0},e.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+">"},e}(An),Fn=function(e,t){this.id=e?e.toString():"",this.URL=t,this.createDocumentElement()};Fn.prototype.createDocumentElement=function(){var n=this;if(!this.documentElement){var e=new Rn("document");e.docId=this.id,e.ownerDocument=this,e.role="documentElement",e.depth=0,e.ref="_documentElement",this.documentElement=e,Object.defineProperty(e,"appendChild",{configurable:!0,enumerable:!0,writable:!0,value:function(e){$n(n,e)}}),Object.defineProperty(e,"insertBefore",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){$n(n,e,t)}})}return this.documentElement},Fn.prototype.createBody=function(e){this.body||Pn(this,new Rn(e));return this.body},Fn.prototype.createElement=function(e){return new Rn(e)},Fn.prototype.createComment=function(e){return new In(e)},Fn.prototype.destroy=function(){};var zn=s("style,class"),Un=(s("input,textarea,option,select,progress"),s("contenteditable,draggable,spellcheck"),s("events,caret,typing,plaintext-only"),s("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),s("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,summary,content,element,shadow,template,blockquote,iframe,tfoot"));var Vn=Object.freeze({createElement:function(e){return new Rn(e)},createElementNS:function(e,t){return new Rn(e+":"+t)},createTextNode:function(){return new Rn("text")},createComment:function(e){return new In(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.type},setTextContent:function(){},setStyleScope:function(){}}),qn={create:function(e,t){Wn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Wn(e,!0),Wn(t))},destroy:function(e){Wn(e,!0)}};function Wn(e,t){var n=e.data.ref;if(A(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?b(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}s("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,summary,content,element,shadow,template,blockquote,iframe,tfoot"),s("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0);var Hn=s("text,number,password,search,email,tel,url"),Gn=new se("",{},[]),Xn=["create","activate","update","remove","destroy"];function Yn(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&A(e.data)===A(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=A(n=e.data)&&A(n=n.attrs)&&n.type,i=A(n=t.data)&&A(n=n.attrs)&&n.type;return r===i||Hn(r)&&Hn(i)}(e,t)||I(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&E(t.asyncFactory.error))}function Jn(e,t,n){var r,i,o={};for(r=t;r<=n;++r)A(i=e[r].key)&&(o[i]=r);return o}var Kn={create:Zn,update:Zn,destroy:function(e){Zn(e,Gn)}};function Zn(e,t){(e.data.directives||t.data.directives)&&function(t,n){var e,r,i,o=t===Gn,a=n===Gn,s=er(t.data.directives,t.context),c=er(n.data.directives,n.context),u=[],l=[];for(e in c)r=s[e],i=c[e],r?(i.oldValue=r.value,i.oldArg=r.arg,tr(i,"update",n,t),i.def&&i.def.componentUpdated&&l.push(i)):(tr(i,"bind",n,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var d=function(){for(var e=0;e<u.length;e++)tr(u[e],"inserted",n,t)};o?Xe(n,"insert",d):d()}l.length&&Xe(n,"postpatch",function(){for(var e=0;e<l.length;e++)tr(l[e],"componentUpdated",n,t)});if(!o)for(e in s)c[e]||tr(s[e],"unbind",t,t,a)}(e,t)}var Qn=Object.create(null);function er(e,t){var n,r,i,o=Object.create(null);if(!e)return o;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=Qn),(o[(i=r,i.rawName||i.name+"."+Object.keys(i.modifiers||{}).join("."))]=r).def=Ae(t.$options,"directives",r.name);return o}function tr(t,n,r,e,i){var o=t.def&&t.def[n];if(o)try{o(r.elm,t,r,e,i)}catch(e){je(e,r.context,"directive "+t.name+" "+n+" hook")}}function nr(e,n){if(!E(e.data.wxsProps)||!E(n.data.wxsProps)){var r=e.$wxsWatches,t=Object.keys(n.data.wxsProps);if(r||t.length){r||(r={});var i=n.data.wxsProps;n.$wxsWatches={},Object.keys(i).forEach(function(e){var t=i[e];n.$wxsWatches[e]=r[e]||n.context.$watch(t,function(){this.$forceUpdate()},{deep:!0})}),Object.keys(r).forEach(function(e){n.$wxsWatches[e]||(r[e](),delete r[e])})}}}function rr(e,t){var n=t.data.attrs;if(!E(n)&&!E(n._i)){var r,i,o=t.elm;o.dataset=Object.assign(o.dataset||{},(r=n,i=Object.create(null),Object.keys(r).forEach(function(t){if(0===t.indexOf("data-")){var n=h(t.replace("data-",""));try{i[n]=JSON.parse(r[t])}catch(e){i[n]=r[t]}}}),i))}}var ir,or="__r",ar="__c";function sr(t,n,r){var i=ir;return function e(){null!==n.apply(null,arguments)&&ur(t,e,r,i)}}function cr(e,t){ir.addEventListener(e,t)}function ur(e,t,n,r){t&&(r||ir).removeEventListener(e,t._wrapper||t)}function lr(e,t){if(!E(e.data.on)||!E(t.data.on)){var n=t.data.on||{},r=e.data.on||{};(ir=t.elm)._$vd=t.context._$vd;for(var i=t.context,o=(t.data.attrs||{})._i,a=t.parent;a&&a.componentInstance;){var s=a.data.attrs&&a.data.attrs._i;A(s)&&(o="r-"+s),a=a.parent}ir.setAttribute("nid",String(o)),ir.setAttribute("cid",i._$id),function(e){A(e[or])&&(e.input=[].concat(e[or],e.input||[]),delete e[or]);A(e[ar])&&(e.change=[].concat(e[ar],e.change||[]),delete e[ar])}(n),Ge(n,r,cr,ur,sr,t.context),ir=void 0}}var dr=function(e){var r,t,g={},n=e.modules,m=e.nodeOps;for(r=0;r<Xn.length;++r)for(g[Xn[r]]=[],t=0;t<n.length;++t)A(n[t][Xn[r]])&&g[Xn[r]].push(n[t][Xn[r]]);function o(e){var t=m.parentNode(e);A(t)&&m.removeChild(t,e)}function y(e,t,n,r,i,o,a){if(A(e.elm)&&A(o)&&(e=o[a]=de(e)),e.isRootInsert=!i,!function(e,t,n,r){var i=e.data;if(A(i)){var o=A(e.componentInstance)&&i.keepAlive;if(A(i=i.hook)&&A(i=i.init)&&i(e,!1),A(e.componentInstance))return p(e,t),l(n,e.elm,r),I(o)&&function(e,t,n,r){for(var i,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,A(i=o.data)&&A(i=i.transition)){for(i=0;i<g.activate.length;++i)g.activate[i](Gn,o);t.push(o);break}l(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){var s=e.data,c=e.children,u=e.tag;A(u)?(e.elm=e.ns?m.createElementNS(e.ns,u):m.createElement(u,e),d(e),h(e,c,t),A(s)&&v(e,t)):I(e.isComment)?e.elm=m.createComment(e.text):e.elm=m.createTextNode(e.text),l(n,e.elm,r)}}function p(e,t){A(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(v(e,t),d(e)):(Wn(e),t.push(e))}function l(e,t,n){A(e)&&(A(n)?m.parentNode(n)===e&&m.insertBefore(e,t,n):m.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)y(t[r],n,e.elm,null,!0,t,r);else c(e.text)&&m.appendChild(e.elm,m.createTextNode(String(e.text)))}function _(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return A(e.tag)}function v(e,t){for(var n=0;n<g.create.length;++n)g.create[n](Gn,e);A(r=e.data.hook)&&(A(r.create)&&r.create(Gn,e),A(r.insert)&&t.push(e))}function d(e){var t;if(A(t=e.fnScopeId))m.setStyleScope(e.elm,t);else for(var n=e;n;)A(t=n.context)&&A(t=t.$options._scopeId)&&m.setStyleScope(e.elm,t),n=n.parent;A(t=Dt)&&t!==e.context&&t!==e.fnContext&&A(t=t.$options._scopeId)&&m.setStyleScope(e.elm,t)}function b(e,t,n,r,i,o){for(;r<=i;++r)y(n[r],o,e,t,!1,n,r)}function w(e){var t,n,r=e.data;if(A(r))for(A(t=r.hook)&&A(t=t.destroy)&&t(e),t=0;t<g.destroy.length;++t)g.destroy[t](e);if(A(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function k(e,t,n){for(;t<=n;++t){var r=e[t];A(r)&&(A(r.tag)?(a(r),w(r)):o(r.elm))}}function a(e,t){if(A(t)||A(e.data)){var n,r,i=g.remove.length+1;if(A(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&o(e)}return n.listeners=t,n}(e.elm,i),A(n=e.componentInstance)&&A(n=n._vnode)&&A(n.data))a(n,t);else if(A(r=e.children))for(n=0;n<r.length;n++)r[n].tag&&a(r[n]);for(n=0;n<g.remove.length;++n)g.remove[n](e,t);A(n=e.data.hook)&&A(n=n.remove)?n(e,t):t()}else o(e.elm)}function S(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(A(o)&&Yn(e,o))return i}}function x(e,t,n,r,i,o){if(e!==t){A(t.elm)&&A(r)&&(t=r[i]=de(t));var a=t.elm=e.elm;if(I(e.isAsyncPlaceholder))A(t.asyncFactory.resolved)?O(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(I(t.isStatic)&&I(e.isStatic)&&t.key===e.key&&(I(t.isCloned)||I(t.isOnce)))t.componentInstance=e.componentInstance;else{var s,c=t.data;A(c)&&A(s=c.hook)&&A(s=s.prepatch)&&s(e,t);var u=e.children,l=t.children;if(A(c)&&_(t)){for(s=0;s<g.update.length;++s)g.update[s](e,t);A(s=c.hook)&&A(s=s.update)&&s(e,t)}E(t.text)?A(u)&&A(l)?u!==l&&function(e,t,n,r,i){for(var o,a,s,c=0,u=0,l=t.length-1,d=t[0],f=t[l],p=n.length-1,h=n[0],v=n[p],g=!i;c<=l&&u<=p;)E(d)?d=t[++c]:E(f)?f=t[--l]:Yn(d,h)?(x(d,h,r,n,u),d=t[++c],h=n[++u]):Yn(f,v)?(x(f,v,r,n,p),f=t[--l],v=n[--p]):Yn(d,v)?(x(d,v,r,n,p),g&&m.insertBefore(e,d.elm,m.nextSibling(f.elm)),d=t[++c],v=n[--p]):(Yn(f,h)?(x(f,h,r,n,u),g&&m.insertBefore(e,f.elm,d.elm),f=t[--l]):(E(o)&&(o=Jn(t,c,l)),E(a=A(h.key)?o[h.key]:S(h,t,c,l))?y(h,r,e,d.elm,!1,n,u):Yn(s=t[a],h)?(x(s,h,r,n,u),t[a]=void 0,g&&m.insertBefore(e,s.elm,d.elm)):y(h,r,e,d.elm,!1,n,u)),h=n[++u]);l<c?b(e,E(n[p+1])?null:n[p+1].elm,n,u,p,r):p<u&&k(t,c,l)}(a,u,l,n,o):A(l)?(A(e.text)&&m.setTextContent(a,""),b(a,null,l,0,l.length-1,n)):A(u)?k(u,0,u.length-1):A(e.text)&&m.setTextContent(a,""):e.text!==t.text&&m.setTextContent(a,t.text),A(c)&&A(s=c.hook)&&A(s=s.postpatch)&&s(e,t)}}}function C(e,t,n){if(I(n)&&A(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var T=s("attrs,class,staticClass,staticStyle,key");function O(e,t,n,r){var i,o=t.tag,a=t.data,s=t.children;if(r=r||a&&a.pre,t.elm=e,I(t.isComment)&&A(t.asyncFactory))return t.isAsyncPlaceholder=!0;if(A(a)&&(A(i=a.hook)&&A(i=i.init)&&i(t,!0),A(i=t.componentInstance)))return p(t,n),!0;if(A(o)){if(A(s))if(e.hasChildNodes())if(A(i=a)&&A(i=i.domProps)&&A(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,u=e.firstChild,l=0;l<s.length;l++){if(!u||!O(u,s[l],n,r)){c=!1;break}u=u.nextSibling}if(!c||u)return!1}else h(t,s,n);if(A(a)){var d=!1;for(var f in a)if(!T(f)){d=!0,v(t,n);break}!d&&a.class&&qe(a.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,r){if(!E(t)){var i,o=!1,a=[];if(E(e))o=!0,y(t,a);else{var s=A(e.nodeType);if(!s&&Yn(e,t))x(e,t,a,null,null,r);else{if(s){if(1===e.nodeType&&e.hasAttribute(B)&&(e.removeAttribute(B),n=!0),I(n)&&O(e,t,a))return C(t,a,!0),e;i=e,e=new se(m.tagName(i).toLowerCase(),{},[],void 0,i)}var c=e.elm,u=m.parentNode(c);if(y(t,a,c._leaveCb?null:u,m.nextSibling(c)),A(t.parent))for(var l=t.parent,d=_(t);l;){for(var f=0;f<g.destroy.length;++f)g.destroy[f](l);if(l.elm=t.elm,d){for(var p=0;p<g.create.length;++p)g.create[p](Gn,l);var h=l.data.hook.insert;if(h.merged)for(var v=1;v<h.fns.length;v++)h.fns[v]()}else Wn(l);l=l.parent}A(u)?k([e],0,0):A(e.tag)&&w(e)}}return C(t,a,o),t.elm}A(e)&&w(e)}}({nodeOps:Vn,modules:[{create:nr,update:nr},{create:rr,update:rr},{create:lr,update:lr}].concat([qn,Kn])}),fr={model:{},show:{}};function pr(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)A(t=pr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):y(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var hr=f(function(e){var n={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(r);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n});function vr(e){return Array.isArray(e)?C(e):"string"==typeof e?hr(e):e}function gr(e,t){oe();var n,r=this.$options[e],i=e+" hook";if(r)for(var o=0,a=r.length;o<a;o++)n=Be(r[o],this,t?[t]:null,this,i);return this._hasHookEvent&&this.$emit("hook:"+e,t),ae(),n}var mr={install:function(e){e.prototype._$queue=zt,e.prototype.__call_hook=gr,e.prototype._$stringifyClass=pr,e.prototype._$normalizeStyleBinding=vr}};gn.config.mustUseProp=function(){return!1},gn.config.isReservedTag=Un,gn.config.isReservedAttr=zn,gn.config.getTagNamespace=function(){},gn.config.isUnknownElement=function(){return!1},x(gn.options.directives,fr),x(gn.options.components,{}),gn.prototype.__patch__=dr,gn.prototype.$mount=function(e,t){if("page"===this.$options.mpType){var n=new Fn(this.$options.pageId,this.$options.pagePath);(e=n.createComment("root")).hasAttribute=e.removeAttribute=function(){},n.documentElement.appendChild(e)}return i=e,o=t,(r=this).$el=i,r.$options.render||(r.$options.render=ue),Ft(r,"beforeMount"),new Kt(r,function(){r._update(r._render(),o)},T,{before:function(){r._isMounted&&!r._isDestroyed&&Ft(r,"beforeUpdate")}},!0),o=!1,null==r.$vnode&&(r._isMounted=!0,r._$vd?(Ft(r,"onServiceCreated"),Ft(r,"onServiceAttached"),r._$vd.addMountedVm(r)):Ft(r,"mounted")),r;var r,i,o},gn.use(mr),e.Vue=gn}var isFirst=!0,frameworks,runtimeConfig;function init$2(e){if(e.__uniConfig){var t=e.weex;isFirst&&(global.WXEnvironment.deviceWidth=t.config.env.deviceWidth);var n="weex"===e.__uniConfig.nvueCompiler;t.document.__$automator__=!!e.__uniConfig.automator,t.document.__$compiler__=n?"weex":"uni-app";var r="native"!==e.__uniConfig.renderer&&-1!==t.config.bundleUrl.indexOf("app-service.js");if(r){var i={};vueFactory(i,e.SharedObject),e.Vue=i.Vue}if(Object.assign(e,createInstanceContext$1(e)),r&&e.Vue.use(e.__vuePlugin),delete e.__vuePlugin,!n){var o=e.plus,a=global.WXEnvironment,s=a.scale,c=a.deviceWidth,u=a.platform,l=Math.ceil(c/s),d=t.requireModule("meta");if("1"===t.config.plus_web_id){var f=t.requireModule("plus");f.setDefaultFontSize&&f.setDefaultFontSize(Math.round(o.screen.resolutionWidth/20))}"ios"===u.toLowerCase()&&d.setViewport({width:l,roundOffDeviation:!1})}r||e.Vue.use(uniApp,e)}}function getJSFMVersion(){return"0.29.6"}function createServices(i,o,a){var s=Object.create(null);return s.service=Object.create(null),services.forEach(function(e){var t=e.name,n=e.options.create;if(n)try{var r=n(i,o,a);Object.assign(s.service,r),Object.assign(s,r.instance)}catch(e){console.error("[JS Runtime] Failed to create service "+t+".")}}),delete s.service.instance,Object.freeze(s.service),s}var instanceTypeMap={};function getFrameworkType(e){return instanceTypeMap[e]}var SharedObject={uid:0};function createInstanceContext(e,t,n){void 0===t&&(t={});var r=new WeexInstance(e,t,n);instanceTypeMap[e]="Vue";var i=runtimeConfig.frameworks.Vue;if(!i)return new Error('[JS Framework] Invalid bundle type "Vue".');var o=createServices(e,{weex:r,config:t,created:Date.now(),framework:"Vue",bundleType:"Vue"},runtimeConfig);Object.freeze(o);var a=Object.create(null);Object.assign(a,o,{SharedObject:SharedObject,weex:r,getJSFMVersion:getJSFMVersion,requireModule:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return r.requireModule.apply(r,e)},__WEEX_CALL_JAVASCRIPT__:receiveTasks,services:o}),Object.freeze(a);var s=Object.assign({},a);return"function"==typeof i.createInstanceContext&&Object.assign(s,i.createInstanceContext(e,a,n)),init$2(s),Object.freeze(s),s}function createInstance(e,t,n,r){if(instanceTypeMap[e])return new Error('The instance id "'+e+'" has already been used!');var i="Vue";instanceTypeMap[e]=i,(n=JSON.parse(JSON.stringify(n||{}))).env=JSON.parse(JSON.stringify(global.WXEnvironment||{})),n.bundleType=i;var o=runtimeConfig.frameworks.Vue;if(!o)return new Error('[JS Framework] Invalid bundle type "Vue".');var a=createInstanceContext(e,n,r);if("function"==typeof o.createInstance)return o.createInstance(e,t,n,r,a);runInContext(t,a)}function runInContext(e,t){var n=[],r=[];for(var i in t)n.push(i),r.push(t[i]);var o="\n (function (global) {\n "+e+"\n })(Object.create(this))\n ";return(new(Function.prototype.bind.apply(Function,[null].concat(n,[o])))).apply(void 0,r)}function getRoot(e){var t=getDoc(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.")}}var methods={createInstance:createInstance,createInstanceContext:createInstanceContext,getRoot:getRoot,getJSFMVersion:getJSFMVersion,getDocument:getDoc,registerService:register,unregisterService:unregister,callJS:function(e,t){var n=frameworks[getFrameworkType(e)];return n&&"function"==typeof n.receiveTasks?n.receiveTasks(e,t):receiveTasks(e,t)}};function genInstance(s){methods[s]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=e[0],i=getFrameworkType(r);if(i&&frameworks[i]){var o=(n=frameworks[i])[s].apply(n,e),a={framework:i};return"refreshInstance"===s?services.forEach(function(e){var t=e.options.refresh;t&&t(r,{info:a,runtime:runtimeConfig})}):"destroyInstance"===s&&(services.forEach(function(e){var t=e.options.destroy;t&&t(r,{info:a,runtime:runtimeConfig})}),delete instanceTypeMap[r]),o}}}function adaptMethod(i,o){methods[i]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n in"function"==typeof o&&o.apply(void 0,e),runtimeConfig.frameworks){var r=runtimeConfig.frameworks[n];r&&r[i]&&r[i].apply(r,e)}}}function init$$1(e){for(var t in frameworks=(runtimeConfig=e||{}).frameworks||{},init$1(),frameworks){var n=frameworks[t];if("function"==typeof n.init)try{n.init(e)}catch(e){}}return adaptMethod("registerComponents",registerComponents),adaptMethod("registerModules",registerModules),adaptMethod("registerMethods"),["destroyInstance","refreshInstance"].forEach(genInstance),methods}var config={Document:Document,Element:Element,Comment:Comment,Listener:Listener,TaskCenter:TaskCenter,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)}};function freezePrototype(){Object.freeze(config.Comment),Object.freeze(config.Listener),Object.freeze(config.Document.prototype),Object.freeze(config.Comment.prototype),Object.freeze(config.Listener.prototype)}Document.handler=config.sendTasks;var runtime={service:{register:register,unregister:unregister,has:has},freezePrototype:freezePrototype,init:init$$1,config:config};function MessageEvent(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()}var channels={},instances={};function BroadcastChannel$1(){}BroadcastChannel$1.prototype.postMessage=function(e){if(this._closed)throw new Error('BroadcastChannel "'+this.name+'" is closed.');var t=channels[this.name];if(t&&t.length)for(var n=0;n<t.length;++n){var r=t[n];r._closed||r===this||"function"==typeof r.onmessage&&r.onmessage(new MessageEvent("message",{data:e}))}},BroadcastChannel$1.prototype.close=function(){var t=this;if(!this._closed&&(this._closed=!0,channels[this.name])){var e=channels[this.name].filter(function(e){return e!==t});e.length?channels[this.name]=e:delete channels[this.name]}};var BroadcastChannel$2={create:function(t,e,n){if(instances[t]=[],"function"==typeof global.BroadcastChannel)return{};var r={BroadcastChannel:function(e){Object.defineProperty(this,"name",{configurable:!1,enumerable:!0,writable:!1,value:String(e)}),this._closed=!1,this.onmessage=null,channels[this.name]||(channels[this.name]=[]),channels[this.name].push(this),instances[t].push(this)}};return r.BroadcastChannel.prototype=BroadcastChannel$1.prototype,{instance:r}},destroy:function(e,t){instances[e].forEach(function(e){return e.close()}),delete instances[e]}},services$1={BroadcastChannel:BroadcastChannel$2},rBb,sBb,uBb,vBb;function setup(e){var t=runtime.init,n=runtime.config;n.frameworks=e;var r=subversion.native,i=subversion.transformer;for(var o in services$1)runtime.service.register(o,services$1[o]);runtime.freezePrototype(),global.frameworkVersion=r,global.transformerVersion=i;var a=t(n),s=function(r){global[r]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=a[r].apply(a,e);return n instanceof Error&&console.error(n.toString()),n}};for(var c in a)s(c)}function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}Array.from||(Array.from=(rBb=Object.prototype.toString,sBb=function(e){return"function"==typeof e||"[object Function]"===rBb.call(e)},uBb=Math.pow(2,53)-1,vBb=function(e){var t,n=(t=Number(e),isNaN(t)?0:0!==t&&isFinite(t)?(0<t?1:-1)*Math.floor(Math.abs(t)):t);return Math.min(Math.max(n,0),uBb)},function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=1<arguments.length?arguments[1]:void 0;if(void 0!==r){if(!sBb(r))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(n=arguments[2])}for(var i,o=vBb(t.length),a=sBb(this)?Object(new this(o)):new Array(o),s=0;s<o;)i=t[s],a[s]=r?void 0===n?r(i,s):r.call(n,i,s):i,s+=1;return a.length=o,a}));var _global=createCommonjsModule(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)}),_core=createCommonjsModule(function(e){var t=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=t)}),_core_1=_core.version,_isObject=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_anObject=function(e){if(!_isObject(e))throw TypeError(e+" is not an object!");return e},_fails=function(e){try{return!!e()}catch(e){return!0}},_descriptors=!_fails(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),document$1=_global.document,is=_isObject(document$1)&&_isObject(document$1.createElement),_domCreate=function(e){return is?document$1.createElement(e):{}},_ie8DomDefine=!_descriptors&&!_fails(function(){return 7!=Object.defineProperty(_domCreate("div"),"a",{get:function(){return 7}}).a}),_toPrimitive=function(e,t){if(!_isObject(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!_isObject(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!_isObject(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!_isObject(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},dP=Object.defineProperty,f=_descriptors?Object.defineProperty:function(e,t,n){if(_anObject(e),t=_toPrimitive(t,!0),_anObject(n),_ie8DomDefine)try{return dP(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},_objectDp={f:f},_propertyDesc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_hide=_descriptors?function(e,t,n){return _objectDp.f(e,t,_propertyDesc(1,n))}:function(e,t,n){return e[t]=n,e},hasOwnProperty={}.hasOwnProperty,_has=function(e,t){return hasOwnProperty.call(e,t)},id=0,px=Math.random(),_uid=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++id+px).toString(36))},_redefine=createCommonjsModule(function(e){var o=_uid("src"),t="toString",n=Function[t],a=(""+n).split(t);_core.inspectSource=function(e){return n.call(e)},(e.exports=function(e,t,n,r){var i="function"==typeof n;i&&(_has(n,"name")||_hide(n,"name",t)),e[t]!==n&&(i&&(_has(n,o)||_hide(n,o,e[t]?""+e[t]:a.join(String(t)))),e===_global?e[t]=n:r?e[t]?e[t]=n:_hide(e,t,n):(delete e[t],_hide(e,t,n)))})(Function.prototype,t,function(){return"function"==typeof this&&this[o]||n.call(this)})}),_aFunction=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},_ctx=function(r,i,e){if(_aFunction(r),void 0===i)return r;switch(e){case 1:return function(e){return r.call(i,e)};case 2:return function(e,t){return r.call(i,e,t)};case 3:return function(e,t,n){return r.call(i,e,t,n)}}return function(){return r.apply(i,arguments)}},PROTOTYPE="prototype",$export=function(e,t,n){var r,i,o,a,s=e&$export.F,c=e&$export.G,u=e&$export.S,l=e&$export.P,d=e&$export.B,f=c?_global:u?_global[t]||(_global[t]={}):(_global[t]||{})[PROTOTYPE],p=c?_core:_core[t]||(_core[t]={}),h=p[PROTOTYPE]||(p[PROTOTYPE]={});for(r in c&&(n=t),n)o=((i=!s&&f&&void 0!==f[r])?f:n)[r],a=d&&i?_ctx(o,_global):l&&"function"==typeof o?_ctx(Function.call,o):o,f&&_redefine(f,r,o,e&$export.U),p[r]!=o&&_hide(p,r,a),l&&h[r]!=o&&(h[r]=o)};_global.core=_core,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128;var _export=$export,toString={}.toString,_cof=function(e){return toString.call(e).slice(8,-1)},_iobject=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==_cof(e)?e.split(""):Object(e)},_defined=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},_toIobject=function(e){return _iobject(_defined(e))},ceil=Math.ceil,floor=Math.floor,_toInteger=function(e){return isNaN(e=+e)?0:(0<e?floor:ceil)(e)},min=Math.min,_toLength=function(e){return 0<e?min(_toInteger(e),9007199254740991):0},max=Math.max,min$1=Math.min,_toAbsoluteIndex=function(e,t){return(e=_toInteger(e))<0?max(e+t,0):min$1(e,t)},_arrayIncludes=function(s){return function(e,t,n){var r,i=_toIobject(e),o=_toLength(i.length),a=_toAbsoluteIndex(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},_library=!1,_shared=createCommonjsModule(function(e){var t="__core-js_shared__",n=_global[t]||(_global[t]={});(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:_core.version,mode:_library?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),shared$2=_shared("keys"),_sharedKey=function(e){return shared$2[e]||(shared$2[e]=_uid(e))},arrayIndexOf=_arrayIncludes(!1),IE_PROTO=_sharedKey("IE_PROTO"),_objectKeysInternal=function(e,t){var n,r=_toIobject(e),i=0,o=[];for(n in r)n!=IE_PROTO&&_has(r,n)&&o.push(n);for(;t.length>i;)_has(r,n=t[i++])&&(~arrayIndexOf(o,n)||o.push(n));return o},_enumBugKeys="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),_objectKeys=Object.keys||function(e){return _objectKeysInternal(e,_enumBugKeys)},f$1=Object.getOwnPropertySymbols,_objectGops={f:f$1},f$2={}.propertyIsEnumerable,_objectPie={f:f$2},_toObject=function(e){return Object(_defined(e))},$assign=Object.assign,_objectAssign=!$assign||_fails(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n]||Object.keys($assign({},t)).join("")!=r})?function(e,t){for(var n=arguments,r=_toObject(e),i=arguments.length,o=1,a=_objectGops.f,s=_objectPie.f;o<i;)for(var c,u=_iobject(n[o++]),l=a?_objectKeys(u).concat(a(u)):_objectKeys(u),d=l.length,f=0;f<d;)s.call(u,c=l[f++])&&(r[c]=u[c]);return r}:$assign;_export(_export.S+_export.F,"Object",{assign:_objectAssign});var assign=_core.Object.assign;Object.setPrototypeOf||(Object.setPrototypeOf=function(t,n){var r;function i(e,t){return r.call(e,t),e}try{(r=t.getOwnPropertyDescriptor(t.prototype,n).set).call({},null)}catch(e){if(t.prototype!=={}[n])return;r=function(e){this[n]=e},i.polyfill=i(i({},null),t.prototype)instanceof t}return i}(Object,"__proto__"));var WXEnvironment$1=global.WXEnvironment;void 0===WXEnvironment$1||"iOS"!==WXEnvironment$1.platform||WXEnvironment$1.__enable_native_promise__||(global.Promise=void 0);var _wks=createCommonjsModule(function(e){var t=_shared("wks"),n=_global.Symbol,r="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=r&&n[e]||(r?n:_uid)("Symbol."+e))}).store=t}),TAG=_wks("toStringTag"),ARG="Arguments"==_cof(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},_classof=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=tryGet(t=Object(e),TAG))?n:ARG?_cof(t):"Object"==(r=_cof(t))&&"function"==typeof t.callee?"Arguments":r},test={};test[_wks("toStringTag")]="z",test+""!="[object z]"&&_redefine(Object.prototype,"toString",function(){return"[object "+_classof(this)+"]"},!0);var _stringAt=function(s){return function(e,t){var n,r,i=String(_defined(e)),o=_toInteger(t),a=i.length;return o<0||a<=o?s?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===a||(r=i.charCodeAt(o+1))<56320||57343<r?s?i.charAt(o):n:s?i.slice(o,o+2):r-56320+(n-55296<<10)+65536}},_iterators={},_objectDps=_descriptors?Object.defineProperties:function(e,t){_anObject(e);for(var n,r=_objectKeys(t),i=r.length,o=0;o<i;)_objectDp.f(e,n=r[o++],t[n]);return e},document$2=_global.document,_html=document$2&&document$2.documentElement,IE_PROTO$1=_sharedKey("IE_PROTO"),Empty=function(){},PROTOTYPE$1="prototype",createDict=function(){var e,t=_domCreate("iframe"),n=_enumBugKeys.length;for(t.style.display="none",_html.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),createDict=e.F;n--;)delete createDict[PROTOTYPE$1][_enumBugKeys[n]];return createDict()},_objectCreate=Object.create||function(e,t){var n;return null!==e?(Empty[PROTOTYPE$1]=_anObject(e),n=new Empty,Empty[PROTOTYPE$1]=null,n[IE_PROTO$1]=e):n=createDict(),void 0===t?n:_objectDps(n,t)},def=_objectDp.f,TAG$1=_wks("toStringTag"),_setToStringTag=function(e,t,n){e&&!_has(e=n?e:e.prototype,TAG$1)&&def(e,TAG$1,{configurable:!0,value:t})},IteratorPrototype={};_hide(IteratorPrototype,_wks("iterator"),function(){return this});var _iterCreate=function(e,t,n){e.prototype=_objectCreate(IteratorPrototype,{next:_propertyDesc(1,n)}),_setToStringTag(e,t+" Iterator")},IE_PROTO$2=_sharedKey("IE_PROTO"),ObjectProto=Object.prototype,_objectGpo=Object.getPrototypeOf||function(e){return e=_toObject(e),_has(e,IE_PROTO$2)?e[IE_PROTO$2]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ObjectProto:null},ITERATOR=_wks("iterator"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values",returnThis=function(){return this},_iterDefine=function(e,t,n,r,i,o,a){_iterCreate(n,t,r);var s,c,u,l=function(e){if(!BUGGY&&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)}},d=t+" Iterator",f=i==VALUES,p=!1,h=e.prototype,v=h[ITERATOR]||h[FF_ITERATOR]||i&&h[i],g=v||l(i),m=i?f?l("entries"):g:void 0,y="Array"==t&&h.entries||v;if(y&&(u=_objectGpo(y.call(new e)))!==Object.prototype&&u.next&&(_setToStringTag(u,d,!0),_library||"function"==typeof u[ITERATOR]||_hide(u,ITERATOR,returnThis)),f&&v&&v.name!==VALUES&&(p=!0,g=function(){return v.call(this)}),_library&&!a||!BUGGY&&!p&&h[ITERATOR]||_hide(h,ITERATOR,g),_iterators[t]=g,_iterators[d]=returnThis,i)if(s={values:f?g:l(VALUES),keys:o?g:l(KEYS),entries:m},a)for(c in s)c in h||_redefine(h,c,s[c]);else _export(_export.P+_export.F*(BUGGY||p),t,s);return s},$at=_stringAt(!0);_iterDefine(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=$at(t,n),this._i+=e.length,{value:e,done:!1})});var UNSCOPABLES=_wks("unscopables"),ArrayProto=Array.prototype;null==ArrayProto[UNSCOPABLES]&&_hide(ArrayProto,UNSCOPABLES,{});var _addToUnscopables=function(e){ArrayProto[UNSCOPABLES][e]=!0},_iterStep=function(e,t){return{value:t,done:!!e}},es6_array_iterator=_iterDefine(Array,"Array",function(e,t){this._t=_toIobject(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,_iterStep(1)):_iterStep(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values");_iterators.Arguments=_iterators.Array,_addToUnscopables("keys"),_addToUnscopables("values"),_addToUnscopables("entries");for(var ITERATOR$1=_wks("iterator"),TO_STRING_TAG=_wks("toStringTag"),ArrayValues=_iterators.Array,DOMIterables={CSSRuleList:!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},collections=_objectKeys(DOMIterables),i=0;i<collections.length;i++){var NAME=collections[i],explicit=DOMIterables[NAME],Collection=_global[NAME],proto=Collection&&Collection.prototype,key;if(proto&&(proto[ITERATOR$1]||_hide(proto,ITERATOR$1,ArrayValues),proto[TO_STRING_TAG]||_hide(proto,TO_STRING_TAG,NAME),_iterators[NAME]=ArrayValues,explicit))for(key in es6_array_iterator)proto[key]||_redefine(proto,key,es6_array_iterator[key],!0)}var _anInstance=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e},_iterCall=function(t,e,n,r){try{return r?e(_anObject(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&_anObject(i.call(t)),e}},ITERATOR$2=_wks("iterator"),ArrayProto$1=Array.prototype,_isArrayIter=function(e){return void 0!==e&&(_iterators.Array===e||ArrayProto$1[ITERATOR$2]===e)},ITERATOR$3=_wks("iterator"),core_getIteratorMethod=_core.getIteratorMethod=function(e){if(null!=e)return e[ITERATOR$3]||e["@@iterator"]||_iterators[_classof(e)]},_forOf=createCommonjsModule(function(e){var f={},p={},t=e.exports=function(e,t,n,r,i){var o,a,s,c,u=i?function(){return e}:core_getIteratorMethod(e),l=_ctx(n,r,t?2:1),d=0;if("function"!=typeof u)throw TypeError(e+" is not iterable!");if(_isArrayIter(u)){for(o=_toLength(e.length);d<o;d++)if((c=t?l(_anObject(a=e[d])[0],a[1]):l(e[d]))===f||c===p)return c}else for(s=u.call(e);!(a=s.next()).done;)if((c=_iterCall(s,l,a.value,t))===f||c===p)return c};t.BREAK=f,t.RETURN=p}),SPECIES=_wks("species"),_speciesConstructor=function(e,t){var n,r=_anObject(e).constructor;return void 0===r||null==(n=_anObject(r)[SPECIES])?t:_aFunction(n)},_invoke=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)},process$2=_global.process,setTask=_global.setImmediate,clearTask=_global.clearImmediate,MessageChannel=_global.MessageChannel,Dispatch=_global.Dispatch,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",defer,channel$1,port,run=function(){var e=+this;if(queue.hasOwnProperty(e)){var t=queue[e];delete queue[e],t()}},listener=function(e){run.call(e.data)};setTask&&clearTask||(setTask=function(e){for(var t=arguments,n=[],r=1;arguments.length>r;)n.push(t[r++]);return queue[++counter]=function(){_invoke("function"==typeof e?e:Function(e),n)},defer(counter),counter},clearTask=function(e){delete queue[e]},"process"==_cof(process$2)?defer=function(e){process$2.nextTick(_ctx(run,e,1))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(_ctx(run,e,1))}:MessageChannel?(channel$1=new MessageChannel,port=channel$1.port2,channel$1.port1.onmessage=listener,defer=_ctx(port.postMessage,port,1)):_global.addEventListener&&"function"==typeof postMessage&&!_global.importScripts?(defer=function(e){_global.postMessage(e+"","*")},_global.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in _domCreate("script")?function(e){_html.appendChild(_domCreate("script"))[ONREADYSTATECHANGE]=function(){_html.removeChild(this),run.call(e)}}:function(e){setTimeout(_ctx(run,e,1),0)});var _task={set:setTask,clear:clearTask},macrotask=_task.set,Observer=_global.MutationObserver||_global.WebKitMutationObserver,process$3=_global.process,Promise$1=_global.Promise,isNode$1="process"==_cof(process$3),_microtask=function(){var n,r,i,e=function(){var e,t;for(isNode$1&&(e=process$3.domain)&&e.exit();n;){t=n.fn,n=n.next;try{t()}catch(e){throw n?i():r=void 0,e}}r=void 0,e&&e.enter()};if(isNode$1)i=function(){process$3.nextTick(e)};else if(!Observer||_global.navigator&&_global.navigator.standalone)if(Promise$1&&Promise$1.resolve){var t=Promise$1.resolve(void 0);i=function(){t.then(e)}}else i=function(){macrotask.call(_global,e)};else{var o=!0,a=document.createTextNode("");new Observer(e).observe(a,{characterData:!0}),i=function(){a.data=o=!o}}return function(e){var t={fn:e,next:void 0};r&&(r.next=t),n||(n=t,i()),r=t}};function PromiseCapability(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=_aFunction(n),this.reject=_aFunction(r)}var f$3=function(e){return new PromiseCapability(e)},_newPromiseCapability={f:f$3},_perform=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},navigator$1=_global.navigator,_userAgent=navigator$1&&navigator$1.userAgent||"",_promiseResolve=function(e,t){if(_anObject(e),_isObject(t)&&t.constructor===e)return t;var n=_newPromiseCapability.f(e);return(0,n.resolve)(t),n.promise},_redefineAll=function(e,t,n){for(var r in t)_redefine(e,r,t[r],n);return e},SPECIES$1=_wks("species"),_setSpecies=function(e){var t=_global[e];_descriptors&&t&&!t[SPECIES$1]&&_objectDp.f(t,SPECIES$1,{configurable:!0,get:function(){return this}})},ITERATOR$4=_wks("iterator"),SAFE_CLOSING=!1;try{var riter=[7][ITERATOR$4]();riter.return=function(){SAFE_CLOSING=!0}}catch(e){}var _iterDetect=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var n=!1;try{var r=[7],i=r[ITERATOR$4]();i.next=function(){return{done:n=!0}},r[ITERATOR$4]=function(){return i},e(r)}catch(e){}return n},task=_task.set,microtask=_microtask(),PROMISE="Promise",TypeError$1=_global.TypeError,process$1=_global.process,versions=process$1&&process$1.versions,v8=versions&&versions.v8||"",$Promise=_global[PROMISE],isNode="process"==_classof(process$1),empty=function(){},Internal,newGenericPromiseCapability,OwnPromiseCapability,Wrapper,newPromiseCapability=newGenericPromiseCapability=_newPromiseCapability.f,USE_NATIVE=!!function(){try{var e=$Promise.resolve(1),t=(e.constructor={})[_wks("species")]=function(e){e(empty,empty)};return(isNode||"function"==typeof PromiseRejectionEvent)&&e.then(empty)instanceof t&&0!==v8.indexOf("6.6")&&-1===_userAgent.indexOf("Chrome/66")}catch(e){}}(),isThenable=function(e){var t;return!(!_isObject(e)||"function"!=typeof(t=e.then))&&t},notify=function(l,n){if(!l._n){l._n=!0;var r=l._c;microtask(function(){for(var c=l._v,u=1==l._s,e=0,t=function(e){var t,n,r,i=u?e.ok:e.fail,o=e.resolve,a=e.reject,s=e.domain;try{i?(u||(2==l._h&&onHandleUnhandled(l),l._h=1),!0===i?t=c:(s&&s.enter(),t=i(c),s&&(s.exit(),r=!0)),t===e.promise?a(TypeError$1("Promise-chain cycle")):(n=isThenable(t))?n.call(t,o,a):o(t)):a(c)}catch(e){s&&!r&&s.exit(),a(e)}};r.length>e;)t(r[e++]);l._c=[],l._n=!1,n&&!l._h&&onUnhandled(l)})}},onUnhandled=function(o){task.call(_global,function(){var e,t,n,r=o._v,i=isUnhandled(o);if(i&&(e=_perform(function(){isNode?process$1.emit("unhandledRejection",r,o):(t=_global.onunhandledrejection)?t({promise:o,reason:r}):(n=_global.console)&&n.error&&n.error("Unhandled promise rejection",r)}),o._h=isNode||isUnhandled(o)?2:1),o._a=void 0,i&&e.e)throw e.v})},isUnhandled=function(e){return 1!==e._h&&0===(e._a||e._c).length},onHandleUnhandled=function(t){task.call(_global,function(){var e;isNode?process$1.emit("rejectionHandled",t):(e=_global.onrejectionhandled)&&e({promise:t,reason:t._v})})},$reject=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()),notify(t,!0))},$resolve=function(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw TypeError$1("Promise can't be resolved itself");(n=isThenable(e))?microtask(function(){var t={_w:r,_d:!1};try{n.call(e,_ctx($resolve,t,1),_ctx($reject,t,1))}catch(e){$reject.call(t,e)}}):(r._v=e,r._s=1,notify(r,!1))}catch(e){$reject.call({_w:r,_d:!1},e)}}};USE_NATIVE||($Promise=function(e){_anInstance(this,$Promise,PROMISE,"_h"),_aFunction(e),Internal.call(this);try{e(_ctx($resolve,this,1),_ctx($reject,this,1))}catch(e){$reject.call(this,e)}},Internal=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},Internal.prototype=_redefineAll($Promise.prototype,{then:function(e,t){var n=newPromiseCapability(_speciesConstructor(this,$Promise));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=isNode?process$1.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&¬ify(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),OwnPromiseCapability=function(){var e=new Internal;this.promise=e,this.resolve=_ctx($resolve,e,1),this.reject=_ctx($reject,e,1)},_newPromiseCapability.f=newPromiseCapability=function(e){return e===$Promise||e===Wrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)}),_export(_export.G+_export.W+_export.F*!USE_NATIVE,{Promise:$Promise}),_setToStringTag($Promise,PROMISE),_setSpecies(PROMISE),Wrapper=_core[PROMISE],_export(_export.S+_export.F*!USE_NATIVE,PROMISE,{reject:function(e){var t=newPromiseCapability(this);return(0,t.reject)(e),t.promise}}),_export(_export.S+_export.F*(_library||!USE_NATIVE),PROMISE,{resolve:function(e){return _promiseResolve(_library&&this===Wrapper?$Promise:this,e)}}),_export(_export.S+_export.F*!(USE_NATIVE&&_iterDetect(function(e){$Promise.all(e).catch(empty)})),PROMISE,{all:function(e){var a=this,t=newPromiseCapability(a),s=t.resolve,c=t.reject,n=_perform(function(){var r=[],i=0,o=1;_forOf(e,!1,function(e){var t=i++,n=!1;r.push(void 0),o++,a.resolve(e).then(function(e){n||(n=!0,r[t]=e,--o||s(r))},c)}),--o||s(r)});return n.e&&c(n.v),t.promise},race:function(e){var t=this,n=newPromiseCapability(t),r=n.reject,i=_perform(function(){_forOf(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}});var $includes=_arrayIncludes(!0);_export(_export.P,"Array",{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),_addToUnscopables("includes");var isEnum=_objectPie.f,_objectToArray=function(s){return function(e){for(var t,n=_toIobject(e),r=_objectKeys(n),i=r.length,o=0,a=[];o<i;)isEnum.call(n,t=r[o++])&&a.push(s?[t,n[t]]:n[t]);return a}},$values=_objectToArray(!1);_export(_export.S,"Object",{values:function(e){return $values(e)}});var originalConsole=global.console;function setNativeConsole(){if(generateLevelMap(),global.WXEnvironment&&"Web"!==global.WXEnvironment.platform)global.console={debug:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("debug")&&global.nativeLog.apply(global,format(e).concat(["__DEBUG"]))},log:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("log")&&global.nativeLog.apply(global,format(e).concat(["__LOG"]))},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("info")&&global.nativeLog.apply(global,format(e).concat(["__INFO"]))},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("warn")&&global.nativeLog.apply(global,format(e).concat(["__WARN"]))},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("error")&&global.nativeLog.apply(global,format(e).concat(["__ERROR"]))}};else{var e=console.debug,t=console.log,n=console.info,r=console.warn,i=console.error;console.__ori__={debug:e,log:t,info:n,warn:r,error:i},console.debug=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("debug")&&console.__ori__.debug.apply(console,e)},console.log=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("log")&&console.__ori__.log.apply(console,e)},console.info=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("info")&&console.__ori__.info.apply(console,e)},console.warn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("warn")&&console.__ori__.warn.apply(console,e)},console.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("error")&&console.__ori__.error.apply(console,e)}}}function format(e){return e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringify(e):String(e)})}var originalSetTimeout=global.setTimeout,setTimeoutNative=global.setTimeoutNative;function setNativeTimer(){if(void 0===setTimeout&&"function"==typeof setTimeoutNative){var n={},r=0;global.setTimeout=function(e,t){n[++r]=e,setTimeoutNative(r.toString(),t)},global.setTimeoutCallback=function(e){"function"==typeof n[e]&&(n[e](),delete n[e])}}}setNativeTimer(),"undefined"==typeof WXEnvironment||WXEnvironment.__enable_native_promise__;var factory=createCommonjsModule(function(e){e.exports=function(e,o,t){var _=Object.freeze({});function E(e){return null==e}function A(e){return null!=e}function I(e){return!0===e}function $(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function b(e){return null!==e&&"object"==typeof e}var r=Object.prototype.toString;function d(e){return"[object Object]"===r.call(e)}function i(e){var t=parseFloat(String(e));return 0<=t&&Math.floor(t)===t&&isFinite(e)}function w(e){return A(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function n(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===r?JSON.stringify(e,null,2):String(e)}function a(e){var t=parseFloat(e);return isNaN(t)?e:t}function s(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}s("slot,component",!0);var l=s("key,ref,slot,slot-scope,is");function k(e,t){if(e.length){var n=e.indexOf(t);if(-1<n)return e.splice(n,1)}}var c=Object.prototype.hasOwnProperty;function f(e,t){return c.call(e,t)}function u(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var p=/-(\w)/g,h=u(function(e){return e.replace(p,function(e,t){return t?t.toUpperCase():""})}),v=u(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),g=/\B([A-Z])/g,S=u(function(e){return e.replace(g,"-$1").toLowerCase()});var m=Function.prototype.bind?function(e,t){return e.bind(t)}:function(n,r){function e(e){var t=arguments.length;return t?1<t?n.apply(r,arguments):n.call(r,e):n.call(r)}return e._length=n.length,e};function y(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function N(e,t){for(var n in t)e[n]=t[n];return e}function x(e){for(var t={},n=0;n<e.length;n++)e[n]&&N(t,e[n]);return t}function D(e,t,n){}var C=function(e,t,n){return!1},T=function(e){return e};function O(t,n){if(t===n)return!0;var e=b(t),r=b(n);if(!e||!r)return!e&&!r&&String(t)===String(n);try{var i=Array.isArray(t),o=Array.isArray(n);if(i&&o)return t.length===n.length&&t.every(function(e,t){return O(e,n[t])});if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(e){return O(t[e],n[e])})}catch(e){return!1}}function P(e,t){for(var n=0;n<e.length;n++)if(O(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var M="data-server-rendered",j=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],R={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:C,isReservedAttr:C,isUnknownElement:C,getTagNamespace:D,parsePlatformTagName:T,mustUseProp:C,async:!0,_lifecycleHooks:B};function F(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var z=new RegExp("[^"+/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source+".$_\\d]");var U,V="__proto__"in{},q="undefined"!=typeof window,W="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,H=W&&WXEnvironment.platform.toLowerCase(),G=q&&window.navigator.userAgent.toLowerCase(),X=G&&/msie|trident/.test(G),Y=G&&0<G.indexOf("msie 9.0"),J=G&&0<G.indexOf("edge/"),K=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G),G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/),{}.watch);if(q)try{var Z={};Object.defineProperty(Z,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Z)}catch(e){}var Q=function(){return void 0===U&&(U=!q&&!W&&void 0!==global&&(global.process&&"server"===global.process.env.VUE_ENV)),U},ee=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function te(e){return"function"==typeof e&&/native code/.test(e.toString())}var ne,re="undefined"!=typeof Symbol&&te(Symbol)&&"undefined"!=typeof Reflect&&te(Reflect.ownKeys);ne="undefined"!=typeof Set&&te(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 ie=D,oe=0,ae=function(){this.id=void 0!==t?t.uid++:oe++,this.subs=[]};function se(e){ae.SharedObject.targetStack.push(e),ae.SharedObject.target=e}function ce(){ae.SharedObject.targetStack.pop(),ae.SharedObject.target=ae.SharedObject.targetStack[ae.SharedObject.targetStack.length-1]}ae.prototype.addSub=function(e){this.subs.push(e)},ae.prototype.removeSub=function(e){k(this.subs,e)},ae.prototype.depend=function(){ae.SharedObject.target&&ae.SharedObject.target.addDep(this)},ae.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},ae.SharedObject=void 0!==t?t:{},ae.SharedObject.target=null,ae.SharedObject.targetStack=[];var ue=function(e,t,n,r,i,o,a,s){t&&Array.isArray(t.class)&&(t.class=t.class.slice(0)),this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,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},le={child:{configurable:!0}};le.child.get=function(){return this.componentInstance},Object.defineProperties(ue.prototype,le);var de=function(e){void 0===e&&(e="");var t=new ue;return t.text=e,t.isComment=!0,t};function fe(e){return new ue(void 0,void 0,void 0,String(e))}function pe(e){var t=new ue(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var he=Array.prototype,ve=Object.create(he);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(a){var s=he[a];F(ve,a,function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r,i=s.apply(this,t),o=this.__ob__;switch(a){case"push":case"unshift":r=t;break;case"splice":r=t.slice(2)}return r&&o.observeArray(r),o.dep.notify(),i})});var ge=Object.getOwnPropertyNames(ve),me=!0;function ye(e){me=e}var _e=function(e){var t;this.value=e,this.dep=new ae,this.vmCount=0,F(e,"__ob__",this),Array.isArray(e)?(V?(t=ve,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];F(e,o,t[o])}}(e,ve,ge),this.observeArray(e)):this.walk(e)};function be(e,t){var n;if(b(e)&&!(e instanceof ue))return f(e,"__ob__")&&e.__ob__ instanceof _e?n=e.__ob__:me&&!Q()&&(Array.isArray(e)||d(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new _e(e)),t&&n&&n.vmCount++,n}function we(n,e,r,t,i){var o=new ae,a=Object.getOwnPropertyDescriptor(n,e);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(r=n[e]);var u=!i&&be(r);Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(n):r;return ae.SharedObject.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(e))),e},set:function(e){var t=s?s.call(n):r;e===t||e!=e&&t!=t||s&&!c||(c?c.call(n,e):r=e,u=!i&&be(e),o.notify())}})}}function ke(e,t,n){if(Array.isArray(e)&&i(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;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(we(r.value,t,n),r.dep.notify(),n):e[t]=n}function Se(e,t){if(Array.isArray(e)&&i(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||f(e,t)&&(delete e[t],n&&n.dep.notify())}}_e.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)we(e,t[n])},_e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)be(e[t])};var xe=R.optionMergeStrategies;function Ce(e,t){if(!t)return e;for(var n,r,i,o=re?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],f(e,n)?r!==i&&d(r)&&d(i)&&Ce(r,i):ke(e,n,i));return e}function Te(n,r,i){return i?function(){var e="function"==typeof r?r.call(i,i):r,t="function"==typeof n?n.call(i,i):n;return e?Ce(e,t):t}:r?n?function(){return Ce("function"==typeof r?r.call(this,this):r,"function"==typeof n?n.call(this,this):n)}:r:n}function Oe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ee(e,t,n,r){var i=Object.create(e||null);return t?N(i,t):i}xe.data=function(e,t,n){return n?Te(e,t,n):t&&"function"!=typeof t?e:Te(e,t)},B.forEach(function(e){xe[e]=Oe}),j.forEach(function(e){xe[e+"s"]=Ee}),xe.watch=function(e,t,n,r){if(e===K&&(e=void 0),t===K&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in N(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},xe.props=xe.methods=xe.inject=xe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return N(i,e),t&&N(i,t),i},xe.provide=Te;var Ae=function(e,t){return void 0===t?e:t};function Ie(n,r,i){if("function"==typeof r&&(r=r.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[h(i)]={type:null});else if(d(n))for(var a in n)i=n[a],o[h(a)]=d(i)?i:{type:i};e.props=o}}(r),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(d(n))for(var o in n){var a=n[o];r[o]=d(a)?N({from:o},a):{from:a}}}}(r),function(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})}}(r),!r._base&&(r.extends&&(n=Ie(n,r.extends,i)),r.mixins))for(var e=0,t=r.mixins.length;e<t;e++)n=Ie(n,r.mixins[e],i);var o,a={};for(o in n)s(o);for(o in r)f(n,o)||s(o);function s(e){var t=xe[e]||Ae;a[e]=t(n[e],r[e],i,e)}return a}function $e(e,t,n,r){if("string"==typeof n){var i=e[t];if(f(i,n))return i[n];var o=h(n);if(f(i,o))return i[o];var a=v(o);return f(i,a)?i[a]:i[n]||i[o]||i[a]}}function Pe(e,t,n,r){var i=t[e],o=!f(n,e),a=n[e],s=Be(Boolean,i.type);if(-1<s)if(o&&!f(i,"default"))a=!1;else if(""===a||a===S(e)){var c=Be(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!f(t,"default"))return;var r=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Me(t.type)?r.call(e):r}(r,i,e);var u=me;ye(!0),be(a),ye(u)}return a}function Me(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function je(e,t){return Me(e)===Me(t)}function Be(e,t){if(!Array.isArray(t))return je(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(je(t[n],e))return n;return-1}function Ne(e,t,n){se();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Le(e,r,"errorCaptured hook")}}Le(e,t,n)}finally{ce()}}function De(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&w(o)&&!o._handled&&(o.catch(function(e){return Ne(e,r,i+" (Promise/async)")}),o._handled=!0)}catch(e){Ne(e,r,i)}return o}function Le(t,e,n){if(R.errorHandler)try{return R.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Re(e,null,"config.errorHandler")}Re(t,e,n)}function Re(e,t,n){if(!q&&!W||"undefined"==typeof console)throw e;console.error(e)}var Fe=[],ze=!1;function Ue(){ze=!1;for(var e=Fe.slice(0),t=Fe.length=0;t<e.length;t++)e[t]()}var Ve=function(){setTimeout(Ue,0)};function qe(e,t){var n;if(Fe.push(function(){if(e)try{e.call(t)}catch(e){Ne(e,t,"nextTick")}else n&&n(t)}),ze||(ze=!0,Ve()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var We=new ne;function He(e){!function e(t,n){var r,i;var o=Array.isArray(t);if(!o&&!b(t)||Object.isFrozen(t)||t instanceof ue)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,We),We.clear()}var Ge=u(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function Xe(e,i){function o(){var e=arguments,t=o.fns;if(!Array.isArray(t))return De(t,null,arguments,i,"v-on handler");for(var n=t.slice(),r=0;r<n.length;r++)De(n[r],null,e,i,"v-on handler")}return o.fns=e,o}function Ye(e,t,n,r,i,o){var a,s,c,u,l;for(a in e)s=c=e[a],u=t[a],l=Ge(a),d(s)&&(c=s.handler,l.params=s.params),E(c)||(E(u)?(E(c.fns)&&(c=e[a]=Xe(c,o)),I(l.once)&&(c=e[a]=i(l.name,c,l.capture)),n(l.name,c,l.capture,l.passive,l.params)):c!==u&&(u.fns=c,e[a]=u));for(a in t)E(e[a])&&r((l=Ge(a)).name,t[a],l.capture)}function Je(e,t,n){var r;e instanceof ue&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function o(){n.apply(this,arguments),k(r.fns,o)}E(i)?r=Xe([o]):A(i.fns)&&I(i.merged)?(r=i).fns.push(o):r=Xe([i,o]),r.merged=!0,e[t]=r}function Ke(e,t,n,r,i){if(A(t)){if(f(t,n))return e[n]=t[n],i||delete t[n],!0;if(f(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Ze(e){return $(e)?[fe(e)]:Array.isArray(e)?function e(t,n){var r=[];var i,o,a,s;for(i=0;i<t.length;i++)E(o=t[i])||"boolean"==typeof o||(a=r.length-1,s=r[a],Array.isArray(o)?0<o.length&&(Qe((o=e(o,(n||"")+"_"+i))[0])&&Qe(s)&&(r[a]=fe(s.text+o[0].text),o.shift()),r.push.apply(r,o)):$(o)?Qe(s)?r[a]=fe(s.text+o):""!==o&&r.push(fe(o)):Qe(o)&&Qe(s)?r[a]=fe(s.text+o.text):(I(t._isVList)&&A(o.tag)&&E(o.key)&&A(n)&&(o.key="__vlist"+n+"_"+i+"__"),r.push(o)));return r}(e):void 0}function Qe(e){return A(e)&&A(e.text)&&!1===e.isComment}function et(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function tt(t){var n=nt(t.$options.inject,t);n&&(ye(!1),Object.keys(n).forEach(function(e){we(t,e,n[e])}),ye(!0))}function nt(e,t){if(e){for(var n=Object.create(null),r=re?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&f(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}}}return n}}function rt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)o.asyncMeta&&o.asyncMeta.data&&"page"===o.asyncMeta.data.slot?(n.page||(n.page=[])).push(o):(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(it)&&delete n[u];return n}function it(e){return e.isComment&&!e.asyncFactory||" "===e.text}function ot(e,t,n){var r,i=0<Object.keys(t).length,o=e?!!e.$stable:!i,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==_&&a===n.$key&&!i&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=at(t,s,e[s]))}else r={};for(var c in t)c in r||(r[c]=st(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),F(r,"$stable",o),F(r,"$key",a),F(r,"$hasNormal",i),r}function at(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:Ze(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function st(e,t){return function(){return e[t]}}function ct(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(b(e))if(re&&e[Symbol.iterator]){n=[];for(var s=e[Symbol.iterator](),c=s.next();!c.done;)n.push(t(c.value,n.length)),c=s.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r);return A(n)||(n=[]),n._isVList=!0,n}function ut(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=N(N({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function lt(e){return $e(this.$options,"filters",e)||T}function dt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function ft(e,t,n,r,i){var o=R.keyCodes[t]||n;return i&&r&&!R.keyCodes[t]?dt(i,r):o?dt(o,e):r?S(r)!==t:void 0}function pt(i,o,a,s,c){if(a)if(b(a)){var u;Array.isArray(a)&&(a=x(a));var e=function(t){if("class"===t||"style"===t||l(t))u=i;else{var e=i.attrs&&i.attrs.type;u=s||R.mustUseProp(o,e,t)?i.domProps||(i.domProps={}):i.attrs||(i.attrs={})}var n=h(t),r=S(t);n in u||r in u||(u[t]=a[t],c&&((i.on||(i.on={}))["update:"+t]=function(e){a[t]=e}))};for(var t in a)e(t)}else;return i}function ht(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||gt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function vt(e,t,n){return gt(e,"__once__"+t+(n?"_"+n:""),!0),e}function gt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&mt(e[r],t+"_"+r,n);else mt(e,t,n)}function mt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function yt(e,t){if(t)if(d(t)){var n=e.on=e.on?N({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function _t(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?_t(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function bt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function wt(e,t){return"string"==typeof e?t+e:e}function kt(e){e._o=vt,e._n=a,e._s=n,e._l=ct,e._t=ut,e._q=O,e._i=P,e._m=ht,e._f=lt,e._k=ft,e._b=pt,e._v=fe,e._e=de,e._u=_t,e._g=yt,e._d=bt,e._p=wt}function St(e,t,n,o,r){var a,i=this,s=r.options;f(o,"_uid")?(a=Object.create(o))._original=o:o=(a=o)._original;var c=I(s._compiled),u=!c;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||_,this.injections=nt(s.inject,o),this.slots=function(){return i.$slots||ot(e.scopedSlots,i.$slots=rt(n,o)),i.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ot(e.scopedSlots,this.slots())}}),c&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=ot(e.scopedSlots,this.$slots)),s._scopeId?this._c=function(e,t,n,r){var i=Vt(a,e,t,n,r,u);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return Vt(a,e,t,n,r,u)}}function xt(e,t,n,r,i){var o=pe(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Ct(e,t){for(var n in t)e[h(n)]=t[n]}kt(St.prototype);var Tt="@inRecycleList";function Ot(e,t,n,r){if(o&&o.taskCenter)return"function"==typeof o.taskCenter.registerHook?o.taskCenter.registerHook(e,t,n,r):void 0}function Et(e,n,t){if(b(n))if(t)e.$refs={};else{var r=e.$refs||{};Object.keys(n).forEach(function(e){var t=n[e];r[e]=1===t.length?t[0]:t}),e.$refs=r}}function At(e,n,r,t){if(b(r)){var i=e.$refs||{};t?Object.keys(r).forEach(function(e){var t=r[e];i[e]&&(1===t.length&&Array.isArray(i[e])?delete i[e][n]:delete i[e])}):(Object.keys(r).forEach(function(e){var t=r[e];1===t.length?(Array.isArray(i[e])||(i[e]=[]),i[e][n]=t[0]):i[e]=t}),e.$refs=i)}}var It=0;function $t(e){var t=e.$options.data,n=e.$options.computed||{},r=e._data?Object.assign({},e._data):"function"==typeof t?wn(t,e):t||{},i={};for(var o in n)i[o]=e[o];return Object.assign({},r,i)}function Pt(e){void 0===e&&(e={});var r=this,t=e.componentId;F(r,"_vmTemplate",e.vmTemplate),r._uid=t||"virtual-component-"+It++,r._isVue=!0,e&&e._isComponent?Bn(r,e):r.$options=Ie(Nn(r.constructor),e||{},r),nn((r._renderProxy=r)._self=r),Jt(r),qt(r),an(r,"beforeCreate"),tt(r),bn(r),et(r),an(r,"created"),Ot(t,"lifecycle","attach",function(e){Et(r,e&&e.refs),an(r,"beforeMount"),new mn(r,function(){return $t(r)},function(){return r._update(r._vnode,!1)}),r._isMounted=!0,an(r,"mounted")}),Ot(t,"lifecycle","update",function(e){Et(r,e&&e.refs),r._update(r._vnode,!1)}),Ot(t,"lifecycle","syncState",function(e,t){if(d(t))for(var n in t)r[n]=t[n];return $t(r)}),Ot(t,"lifecycle","detach",function(e){Et(r,e&&e.refs,!0),r.$destroy(),r._vmTemplate&&(r._vmTemplate.removeVirtualComponent(r._uid),delete r._vmTemplate)})}function Mt(e){var t=this,n=t.$options.componentId;(t._isMounted&&an(t,"beforeUpdate"),t._vnode=e,t._isMounted&&n)&&function(e,t,n){if(o&&o.taskCenter)"function"==typeof o.taskCenter.updateData&&o.taskCenter.updateData(e,t,n)}(n,$t(t),function(){an(t,"updated")})}function jt(e){void 0===e&&(e={});var t=this;t._uid="virtual-component-template-"+It++,t._isVue=!0,e&&e._isComponent?Bn(t,e):t.$options=Ie(Nn(t.constructor),e||{},t),Jt(t._self=t),qt(t),bn(t),this.registerVirtualComponent()}function Bt(e){var t,n,i,o;delete e.data.attrs[Tt],n=(t=e).componentOptions.Ctor,i=n.extend({}),o=i.prototype.$emit,i.prototype._init=Pt,i.prototype._update=Mt,i.prototype.$emit=function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r=this._uid,i=this._vmTemplate;return r&&i&&(t.push(r),o.apply(i,t)),o.apply(this,t)},t.componentOptions.Ctor=n.extend({methods:{registerVirtualComponent:function(){var r=this;F(r,"_virtualComponents",{}),Ot(String(r._uid),"lifecycle","create",function(e,t){var n=new i({vmTemplate:r,componentId:e,propsData:t});return n._uid=e,r._virtualComponents&&(r._virtualComponents[e]=n),$t(n)})},removeVirtualComponent:function(e){delete this._virtualComponents[e]}},destroyed:function(){delete this._virtualComponents}}),t.componentOptions.Ctor.prototype._init=jt,t.componentOptions.Ctor.prototype._update=D;var r=Rt(e),a=r.$options["@render"];if(a)try{return a.call(r)}catch(e){Ne(e,r,"@render")}}var Nt={init:function(e,t,n,r){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var i=e;Nt.prepatch(i,i)}else{(e.componentInstance=Rt(e,tn,n,r)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){var o=r.data.scopedSlots,a=e.$scopedSlots,s=!!(o&&!o.$stable||a!==_&&!a.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(i||e.$options._renderChildren||s);e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r);if(e.$options._renderChildren=i,e.$attrs=r.data.attrs||_,e.$listeners=n||_,t&&e.$options.props){ye(!1);for(var u=e._props,l=e.$options._propKeys||[],d=0;d<l.length;d++){var f=l[d],p=e.$options.props;u[f]=Pe(f,p,t,e)}ye(!0),e.$options.propsData=t}n=n||_;var h=e.$options._parentListeners;e.$options._parentListeners=n,en(e,n,h),c&&(e.$slots=rt(i,r.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,an(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,cn.push(t)):on(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,rn(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);an(t,"deactivated")}}(t,!0):t.$destroy())}},Dt=Object.keys(Nt);function Lt(e,t,n,r,i){if(!E(e)){var o=n.$options._base;if(b(e)&&(e=o.extend(e)),"function"==typeof e){var a,s,c,u,l,d,f;if(E(e.cid)&&void 0===(e=function(t,n){if(I(t.error)&&A(t.errorComp))return t.errorComp;if(A(t.resolved))return t.resolved;var e=Ht;e&&A(t.owners)&&-1===t.owners.indexOf(e)&&t.owners.push(e);if(I(t.loading)&&A(t.loadingComp))return t.loadingComp;if(e&&!A(t.owners)){var r=t.owners=[e],i=!0,o=null,a=null;e.$on("hook:destroyed",function(){return k(r,e)});var s=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==o&&(clearTimeout(o),o=null),null!==a&&(clearTimeout(a),a=null))},c=L(function(e){t.resolved=Gt(e,n),i?r.length=0:s(!0)}),u=L(function(e){A(t.errorComp)&&(t.error=!0,s(!0))}),l=t(c,u);return b(l)&&(w(l)?E(t.resolved)&&l.then(c,u):w(l.component)&&(l.component.then(c,u),A(l.error)&&(t.errorComp=Gt(l.error,n)),A(l.loading)&&(t.loadingComp=Gt(l.loading,n),0===l.delay?t.loading=!0:o=setTimeout(function(){o=null,E(t.resolved)&&E(t.error)&&(t.loading=!0,s(!1))},l.delay||200)),A(l.timeout)&&(a=setTimeout(function(){a=null,E(t.resolved)&&u(null)},l.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(a=e,o)))return s=a,c=t,u=n,l=r,d=i,(f=de()).asyncFactory=s,f.asyncMeta={data:c,context:u,children:l,tag:d},f;t=t||{},Nn(e),A(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),o=i[r],a=t.model.callback;A(o)?(Array.isArray(o)?-1===o.indexOf(a):o!==a)&&(i[r]=[a].concat(o)):i[r]=a}(e.options,t);var p=function(e,t,n){var r=t.options.props;if(!E(r)){var i={},o=e.attrs,a=e.props;if(A(o)||A(a))for(var s in r){var c=S(s);Ke(i,a,s,c,!0)||Ke(i,o,s,c,!1)}return i}}(t,e);if(I(e.options.functional))return function(e,t,n,r,i){var o=e.options,a={},s=o.props;if(A(s))for(var c in s)a[c]=Pe(c,s,t||_);else A(n.attrs)&&Ct(a,n.attrs),A(n.props)&&Ct(a,n.props);var u=new St(n,a,i,r,e),l=o.render.call(null,u._c,u);if(l instanceof ue)return xt(l,n,u.parent,o);if(Array.isArray(l)){for(var d=Ze(l)||[],f=new Array(d.length),p=0;p<d.length;p++)f[p]=xt(d[p],n,u.parent,o);return f}}(e,p,t,n,r);var h=t.on;if(t.on=t.nativeOn,I(e.options.abstract)){var v=t.slot;t={},v&&(t.slot=v)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Dt.length;n++){var r=Dt[n],i=t[r],o=Nt[r];i===o||i&&i._merged||(t[r]=i?Ft(o,i):o)}}(t);var g,m=e.options.name||i,y=new ue("vue-component-"+e.cid+(m?"-"+m:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:p,listeners:h,tag:i,children:r},a);return(g=y).data.attrs&&Tt in g.data.attrs?Bt(y):y}}}function Rt(e,t,n,r){var i={_isComponent:!0,_parentVnode:e,parent:t,_parentElm:n||null,_refElm:r||null},o=e.data.inlineTemplate;return A(o)&&(i.render=o.render,i.staticRenderFns=o.staticRenderFns),new e.componentOptions.Ctor(i)}function Ft(n,r){var e=function(e,t){n(e,t),r(e,t)};return e._merged=!0,e}var zt=1,Ut=2;function Vt(e,t,n,r,i,o){return(Array.isArray(n)||$(n))&&(i=r,r=n,n=void 0),I(o)&&(i=Ut),function(e,t,n,r,i){if(A(n)&&A(n.__ob__))return de();A(n)&&A(n.is)&&(t=n.is);if(!t)return de();Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);i===Ut?r=Ze(r):i===zt&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var o,a;if("string"==typeof t){var s;a=e.$vnode&&e.$vnode.ns||R.getTagNamespace(t),o=R.isReservedTag(t)?new ue(R.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!A(s=$e(e.$options,"components",t))?new ue(t,n,r,void 0,void 0,e):Lt(s,n,e,r,t)}else o=Lt(t,n,e,r);return Array.isArray(o)?o:A(o)?(A(a)&&function e(t,n,r){t.ns=n;"foreignObject"===t.tag&&(r=!(n=void 0));if(A(t.children))for(var i=0,o=t.children.length;i<o;i++){var a=t.children[i];A(a.tag)&&(E(a.ns)||I(r)&&"svg"!==a.tag)&&e(a,n,r)}}(o,a),A(n)&&function(e){b(e.style)&&He(e.style);b(e.class)&&He(e.class)}(n),o):de()}(e,t,n,r,i)}function qt(i){i._vnode=null,i._staticTrees=null;var e=i.$options,t=i.$vnode=e._parentVnode,n=t&&t.context;i.$slots=rt(e._renderChildren,n),i.$scopedSlots=_,i._c=function(e,t,n,r){return Vt(i,e,t,n,r,!1)},i.$createElement=function(e,t,n,r){return Vt(i,e,t,n,r,!0)};var r=t&&t.data;we(i,"$attrs",r&&r.attrs||_,null,!0),we(i,"$listeners",e._parentListeners||_,null,!0)}var Wt,Ht=null;function Gt(e,t){return(e.__esModule||re&&"Module"===e[Symbol.toStringTag])&&(e=e.default),b(e)?t.extend(e):e}function Xt(e){return e.isComment&&e.asyncFactory}function Yt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(A(n)&&(A(n.componentOptions)||Xt(n)))return n}}function Jt(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&en(e,t)}function Kt(e,t){Wt.$on(e,t)}function Zt(e,t){Wt.$off(e,t)}function Qt(t,n){var r=Wt;return function e(){null!==n.apply(null,arguments)&&r.$off(t,e)}}function en(e,t,n){Ye(t,n||{},Kt,Zt,Qt,Wt=e),Wt=void 0}var tn=null;function nn(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 rn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function on(e,t){if(t){if(e._directInactive=!1,rn(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++)on(e.$children[n]);an(e,"activated")}}function an(e,t){se();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)De(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ce()}var sn=[],cn=[],un={},ln=!1,dn=!1,fn=0;var pn=Date.now;if(q&&!X){var hn=window.performance;hn&&"function"==typeof hn.now&&pn()>o.createEvent("Event").timeStamp&&(pn=function(){return hn.now()})}function vn(){var e,t;for(pn(),dn=!0,sn.sort(function(e,t){return e.id-t.id}),fn=0;fn<sn.length;fn++)(e=sn[fn]).before&&e.before(),t=e.id,un[t]=null,e.run();var n=cn.slice(),r=sn.slice();fn=sn.length=cn.length=0,ln=dn=!(un={}),function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,on(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&an(r,"updated")}}(r),ee&&R.devtools&&ee.emit("flush")}var gn=0,mn=function(e,t,n,r,i){this.vm=e,i&&(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.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++gn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ne,this.newDepIds=new ne,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!z.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}(t),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};mn.prototype.get=function(){var e;se(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Ne(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&He(e),ce(),this.cleanupDeps()}return e},mn.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))},mn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},mn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==un[t]){if(un[t]=!0,dn){for(var n=sn.length-1;fn<n&&sn[n].id>e.id;)n--;sn.splice(n+1,0,e)}else sn.push(e);ln||(ln=!0,qe(vn))}}(this)},mn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||b(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ne(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},mn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},mn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},mn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||k(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var yn={enumerable:!0,configurable:!0,get:D,set:D};function _n(e,t,n){yn.get=function(){return this[t][n]},yn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,yn)}function bn(e){e._watchers=[];var t=e.$options;t.props&&function(n,r){var i=n.$options.propsData||{},o=n._props={},a=n.$options._propKeys=[];n.$parent&&ye(!1);var e=function(e){a.push(e);var t=Pe(e,r,i,n);we(o,e,t),e in n||_n(n,"_props",e)};for(var t in r)e(t);ye(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?D:m(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;d(t=e._data="function"==typeof t?wn(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&f(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&_n(e,"_data",o))}var a;be(t,!0)}(e):be(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Q();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new mn(e,a||D,D,kn)),i in e||Sn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==K&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Tn(e,n,r[i]);else Tn(e,n,r)}}(e,t.watch)}function wn(e,t){se();try{return e.call(t,t)}catch(e){return Ne(e,t,"data()"),{}}finally{ce()}}var kn={lazy:!0};function Sn(e,t,n){var r=!Q();"function"==typeof n?(yn.get=r?xn(t):Cn(n),yn.set=D):(yn.get=n.get?r&&!1!==n.cache?xn(t):Cn(n.get):D,yn.set=n.set||D),Object.defineProperty(e,t,yn)}function xn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ae.SharedObject.target&&e.depend(),e.value}}function Cn(e){return function(){return e.call(this,this)}}function Tn(e,t,n,r){return d(n)&&(n=(r=n).handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var On,En,An,In,$n,Pn,Mn,jn=0;function Bn(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 i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Nn(e){var t=e.options;if(e.super){var n=Nn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&N(e.extendOptions,r),(t=e.options=Ie(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Dn(e){this._init(e)}function Ln(e){e.cid=0;var a=1;e.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var i=e.name||t.options.name,o=function(e){this._init(e)};return((o.prototype=Object.create(t.prototype)).constructor=o).cid=a++,o.options=Ie(t.options,e),o.super=t,o.options.props&&function(e){var t=e.options.props;for(var n in t)_n(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)Sn(e.prototype,n,t[n])}(o),o.extend=t.extend,o.mixin=t.mixin,o.use=t.use,j.forEach(function(e){o[e]=t[e]}),i&&(o.options.components[i]=o),o.superOptions=t.options,o.extendOptions=e,o.sealedOptions=N({},o.options),r[n]=o}}function Rn(e){return e&&(e.Ctor.options.name||e.tag)}function Fn(e,t){return Array.isArray(e)?-1<e.indexOf(t):"string"==typeof e?-1<e.split(",").indexOf(t):(n=e,"[object RegExp]"===r.call(n)&&e.test(t));var n}function zn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Rn(a.componentOptions);s&&!t(s)&&Un(n,o,r,i)}}}function Un(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,k(n,t)}Dn.prototype._init=function(e){var t=this;t._uid=jn++,t._isVue=!0,e&&e._isComponent?Bn(t,e):t.$options=Ie(Nn(t.constructor),e||{},t),nn((t._renderProxy=t)._self=t),Jt(t),qt(t),an(t,"beforeCreate"),"mp-toutiao"!==t.mpHost&&tt(t),bn(t),"mp-toutiao"!==t.mpHost&&et(t),"mp-toutiao"!==t.mpHost&&an(t,"created"),t.$options.el&&t.$mount(t.$options.el)},On=Dn,En={get:function(){return this._data}},An={get:function(){return this._props}},Object.defineProperty(On.prototype,"$data",En),Object.defineProperty(On.prototype,"$props",An),On.prototype.$set=ke,On.prototype.$delete=Se,On.prototype.$watch=function(e,t,n){var r=this;if(d(t))return Tn(r,e,t,n);(n=n||{}).user=!0;var i=new mn(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(e){Ne(e,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}},$n=/^hook:/,(In=Dn).prototype.$on=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)this.$on(e[n],t);else(this._events[e]||(this._events[e]=[])).push(t),$n.test(e)&&(this._hasHookEvent=!0);return this},In.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},In.prototype.$off=function(e,t){if(!arguments.length)return this._events=Object.create(null),this;if(Array.isArray(e)){for(var n=0,r=e.length;n<r;n++)this.$off(e[n],t);return this}var i,o=this._events[e];if(!o)return this;if(!t)return this._events[e]=null,this;for(var a=o.length;a--;)if((i=o[a])===t||i.fn===t){o.splice(a,1);break}return this},In.prototype.$emit=function(e){var t=this._events[e];if(t){t=1<t.length?y(t):t;for(var n=y(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;i<o;i++)De(t[i],this,n,this,r)}return this},(Pn=Dn).prototype._update=function(e,t){var n,r=this,i=r.$el,o=r._vnode,a=(n=tn,tn=r,function(){tn=n});r._vnode=e,o?r.$el=r.__patch__(o,e):(r.$el=r.__patch__(r.$el,e,t,!1,r.$options._parentElm,r.$options._refElm),r.$options._parentElm=r.$options._refElm=null),a(),i&&(i.__vue__=null),r.$el&&(r.$el.__vue__=r),r.$vnode&&r.$parent&&r.$vnode===r.$parent._vnode&&(r.$parent.$el=r.$el)},Pn.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},Pn.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){an(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||k(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),an(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}},kt((Mn=Dn).prototype),Mn.prototype.$nextTick=function(e){return qe(e,this)},Mn.prototype._render=function(){var t,n=this,e=n.$options,r=e.render,i=e._parentVnode;i&&(n.$scopedSlots=ot(i.data.scopedSlots,n.$slots,n.$scopedSlots)),n.$vnode=i;try{Ht=n,t=r.call(n._renderProxy,n.$createElement)}catch(e){Ne(e,n,"render"),t=n._vnode}finally{Ht=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof ue||(t=de()),t.parent=i,t};var Vn,qn,Wn,Hn=[String,RegExp,Array],Gn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Hn,exclude:Hn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Un(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){zn(e,function(e){return Fn(t,e)})}),this.$watch("exclude",function(t){zn(e,function(e){return!Fn(t,e)})})},render:function(){var e=this.$slots.default,t=Yt(e),n=t&&t.componentOptions;if(n){var r=Rn(n),i=this.include,o=this.exclude;if(i&&(!r||!Fn(i,r))||o&&r&&Fn(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,k(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&Un(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};Vn=Dn,Wn={get:function(){return R}},Object.defineProperty(Vn,"config",Wn),Vn.util={warn:ie,extend:N,mergeOptions:Ie,defineReactive:we},Vn.set=ke,Vn.delete=Se,Vn.nextTick=qe,Vn.observable=function(e){return be(e),e},Vn.options=Object.create(null),j.forEach(function(e){Vn.options[e+"s"]=Object.create(null)}),N((Vn.options._base=Vn).options.components,Gn),Vn.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(-1<t.indexOf(e))return this;var n=y(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},Vn.mixin=function(e){return this.options=Ie(this.options,e),this},Ln(Vn),qn=Vn,j.forEach(function(n){qn[n]=function(e,t){return t?("component"===n&&d(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t):this.options[n+"s"][e]}}),Object.defineProperty(Dn.prototype,"$isServer",{get:Q}),Object.defineProperty(Dn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Dn,"FunctionalRenderContext",{value:St}),Dn.version="2.6.10";var Xn=1;function Yn(e){this.instanceId="",this.nodeId=Xn++,this.parentNode=null,this.nodeType=3,this.text=e}function Jn(e){return o.createElement(e)}var Kn=Object.freeze({namespaceMap:{},createElement:Jn,createElementNS:function(e,t){return o.createElement(e+":"+t)},createTextNode:function(e){return new Yn(e)},createComment:function(e){return o.createComment(e)},insertBefore:function(e,t,n){if(3!==t.nodeType)e.insertBefore(t,n);else{var r="weex"===o.__$compiler__?"text":"u-text";if(e.type===r)e.setAttr("value",t.text),t.parentNode=e;else{var i=Jn(r);i.setAttr("value",t.text),e.insertBefore(i,n)}}},removeChild:function(e,t){3!==t.nodeType?e.removeChild(t):e.setAttr("value","")},appendChild:function(e,t){if(3!==t.nodeType)e.appendChild(t);else{var n="weex"===o.__$compiler__?"text":"u-text";if(e.type===n)e.setAttr("value",t.text),t.parentNode=e;else{var r=Jn(n);r.setAttr("value",t.text),e.appendChild(r)}}},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.type},setTextContent:function(e,t){e.parentNode&&e.parentNode.setAttr("value",t)},setAttribute:function(e,t,n){e.setAttr(t,n)},setStyleScope:function(e,t){e.setAttr("@styleScope",t)}}),Zn={create:function(e,t){Qn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Qn(e,!0),Qn(t))},destroy:function(e){Qn(e,!0)}};function Qn(e,t){var n=e.data.ref;if(A(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?k(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}s("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,summary,content,element,shadow,template,blockquote,iframe,tfoot"),s("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0);var er=s("text,number,password,search,email,tel,url"),tr=new ue("",{},[]),nr=["create","activate","update","remove","destroy"];function rr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&A(e.data)===A(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=A(n=e.data)&&A(n=n.attrs)&&n.type,i=A(n=t.data)&&A(n=n.attrs)&&n.type;return r===i||er(r)&&er(i)}(e,t)||I(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&E(t.asyncFactory.error))}function ir(e,t,n){var r,i,o={};for(r=t;r<=n;++r)A(i=e[r].key)&&(o[i]=r);return o}var or={create:ar,update:ar,destroy:function(e){ar(e,tr)}};function ar(e,t){(e.data.directives||t.data.directives)&&function(t,n){var e,r,i,o=t===tr,a=n===tr,s=cr(t.data.directives,t.context),c=cr(n.data.directives,n.context),u=[],l=[];for(e in c)r=s[e],i=c[e],r?(i.oldValue=r.value,i.oldArg=r.arg,ur(i,"update",n,t),i.def&&i.def.componentUpdated&&l.push(i)):(ur(i,"bind",n,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var d=function(){for(var e=0;e<u.length;e++)ur(u[e],"inserted",n,t)};o?Je(n,"insert",d):d()}l.length&&Je(n,"postpatch",function(){for(var e=0;e<l.length;e++)ur(l[e],"componentUpdated",n,t)});if(!o)for(e in s)c[e]||ur(s[e],"unbind",t,t,a)}(e,t)}var sr=Object.create(null);function cr(e,t){var n,r,i,o=Object.create(null);if(!e)return o;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=sr),(o[(i=r,i.rawName||i.name+"."+Object.keys(i.modifiers||{}).join("."))]=r).def=$e(t.$options,"directives",r.name);return o}function ur(t,n,r,e,i){var o=t.def&&t.def[n];if(o)try{o(r.elm,t,r,e,i)}catch(e){Ne(e,r.context,"directive "+t.name+" "+n+" hook")}}var lr=[Zn,or],dr=u(function(e){var n={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(r);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n});function fr(e){var t=pr(e.style);return e.staticStyle?N(e.staticStyle,t):t}function pr(e){return Array.isArray(e)?x(e):"string"==typeof e?dr(e):e}var hr={view:{class:["hoverClass"],style:[]},button:{class:["hoverClass"],style:[]},navigator:{class:["hoverClass"],style:[]},"u-input":{class:["placeholderClass"],style:["placeholderStyle"]},"u-textarea":{class:["placeholderClass"],style:["placeholderStyle"]},"picker-view":{class:["indicatorClass","maskClass"],style:["indicatorStyle","maskStyle"]}};function vr(e,t,n,r){if(!t)return t;var i=hr[n.type];if(i){if(-1!==i.class.indexOf(e))return r.$options.style&&r.$options.style[t]||{};if(-1!==i.style.indexOf(e))return pr(t)}return t}function gr(e,t){if(e.data.attrs||t.data.attrs){var n,r,i=t.elm,o=e.data.attrs||{},a=t.data.attrs||{};a.__ob__&&(a=t.data.attrs=N({},a));var s="function"==typeof i.setAttrs,c={};for(n in a)r=a[n],o[n]!==r&&(s?c[n]=r:i.setAttr(n,vr(n,r,i,t.context)));for(n in o)null==a[n]&&(s?c[n]=void 0:i.setAttr(n));s&&i.setAttrs(function(n,e,t){var r=hr[e.type];if(!r)return n;var i=t.$options.style||{};return Object.keys(n).forEach(function(e){var t=n[e];-1!==r.class.indexOf(e)?n[e]=i[t]||{}:-1!==r.style.indexOf(e)&&(n[e]=pr(t))}),n}(c,i,t.context))}}var mr={create:gr,update:gr};function yr(e){for(var t=_r(e),n=e,r=e;A(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=N(_r(r),t));for(;A(n=n.parent);)n&&n.data&&(t=N(t,_r(n)));return t}function _r(e){var t,n,r,i,o=e.data;return E(o.staticClass)&&E(o.class)?{}:(t=function(e){var t=[],n=e.staticClass,r=e.class;n&&t.push.apply(t,n);Array.isArray(r)?t.push.apply(t,r):b(r)?t.push.apply(t,Object.keys(r).filter(function(e){return r[e]})):"string"==typeof r&&t.push.apply(t,r.trim().split(/\s+/));return t}(o),n=e.context,r=n.$options.style||{},i={},t.forEach(function(e){var t=r[e];N(i,t)}),i)}function br(e,t,n,r){var i,o,a={};for(o in n)E(t[o])&&(a[r(o)]="");for(o in t)(i=t[o])!==n[o]&&(a[r(o)]=i);e.setStyles(a)}function wr(e){for(var t=e.data,n=e,r=e;A(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=kr(r.data,t));for(;A(n=n.parent);)n&&n.data&&(t=kr(t,n.data));return function(e,t){if(A(e)||A(t))return Sr(xr(e),xr(t));return""}(t.staticClass,t.class)}function kr(e,t){return{staticClass:Sr(xr(e.staticClass),xr(t.staticClass)),class:A(e.class)?[e.class,t.class]:t.class}}function Sr(e,t){return e?t?e+" "+t:e:t||""}function xr(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)A(t=xr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):b(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}function Cr(e,t){var n=t.data,r=e.data;if(!(E(n.staticClass)&&E(n.class)&&(E(r)||E(r.staticClass)&&E(r.class)))){if(o.__$automator__){var i=wr(t);t.elm.setClassList&&t.elm.setClassList(i.split(" "))}br(t.elm,yr(t),yr(e),Tr)}}function Tr(e){return e}var Or,Er,Ar={create:Cr,update:Cr};function Ir(e,t,n,r,i){if(n)console.log("Weex do not support event in bubble phase.");else{if(Er&&Er._virtualComponents){Or._context=Er;var o=t;t=function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r=(t[0]||{}).componentId,i=this._context;r&&this._context&&(i=(this._context._virtualComponents||{})[r]||i);try{!function(e,t,n){void 0===n&&(n=null);var r=e.fns;if(!Array.isArray(r))return"function"==typeof r?r.apply(n,t):e.apply(n,t);for(var i=r.slice(),o=0;o<i.length;o++)i[o].apply(n,t)}(o,t,i)}catch(e){Ne(e,i,"Failed to invoke virtual component handler ("+r+")")}}}Or.addEvent(e,t,i)}}function $r(e,t,n,r){(r||Or).removeEvent(e)}function Pr(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.on||{};Or=t.elm,Er=t.context,Ye(n,r,Ir,$r,t.context),Er=Or=void 0}}var Mr={create:Pr,update:Pr},jr=u(h);function Br(e,t){var n=t.data,r=e.data;if(!(E(n.staticStyle)&&E(n.style)&&E(r.staticStyle)&&E(r.style))){var i=t.elm,o=r.staticStyle,a=r.normalizedStyle||r.style||{},s=o||a,c=pr(t.data.style)||{};t.data.normalizedStyle=A(c.__ob__)?N({},c):c,br(i,function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=fr(i.data))&&N(r,n);(n=fr(e.data))&&N(r,n);for(var o=e;o=o.parent;)o.data&&(n=fr(o.data))&&N(r,n);return r}(t,!0),s,jr)}}var Nr={create:Br,update:Br};function Dr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&N(t,Lr(e.name||"v")),N(t,e),t}return"string"==typeof e?Lr(e):void 0}}var Lr=u(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}});q&&!Y&&(void 0===window.ontransitionend&&window.onwebkittransitionend,void 0===window.onanimationend&&window.onwebkitanimationend);q&&window.requestAnimationFrame&&window.requestAnimationFrame.bind(window);function Rr(e,n){var r=n.elm;r._leaveCb&&(r._leaveCb.cancelled=!0,r._leaveCb());var t=Dr(n.data.transition);if(t&&!r._enterCb){for(var i=t.enterClass,o=t.enterToClass,a=t.enterActiveClass,s=t.appearClass,c=t.appearToClass,u=t.appearActiveClass,l=t.beforeEnter,d=t.enter,f=t.afterEnter,p=t.enterCancelled,h=t.beforeAppear,v=t.appear,g=t.afterAppear,m=t.appearCancelled,y=tn,_=tn.$vnode;_&&_.parent;)y=(_=_.parent).context;var b=!y._isMounted||!n.isRootInsert;if(!b||v||""===v){var w=b?s:i,k=b?c:o,S=b?u:a,x=b&&h||l,C=b&&"function"==typeof v?v:d,T=b&&g||f,O=b&&m||p,E=C&&1<(C._length||C.length),A=n.context.$options.style||{},I=A[w],$=A["@TRANSITION"]&&A["@TRANSITION"][S]||{},P=function(e,t,n,r,i){var o={},a=t[n],s=t[r],c=t[i];if(a)for(var u in a)o[u]=e.style[u];if(c)for(var l in c)0!==l.indexOf("transition")&&(o[l]=c[l]);s&&N(o,s);return o}(r,A,w,k,S),M=0<Object.keys(P).length,j=r._enterCb=L(function(){j.cancelled?O&&O(r):T&&T(r),r._enterCb=null});if(setTimeout(function(){var e=r.parentNode,t=e&&e._pending&&e._pending[n.key];(t&&t.context===n.context&&t.tag===n.tag&&t.elm._leaveCb&&t.elm._leaveCb(),C&&C(r,j),M)?n.context.$requireWeexModule("animation").transition(r.ref,{styles:P,duration:$.duration||0,delay:$.delay||0,timingFunction:$.timingFunction||"linear"},E?D:j):E||j()},16),x&&x(r),I)if("function"==typeof r.setStyles)r.setStyles(I);else for(var B in I)r.setStyle(B,I[B]);M||E||j()}}}var Fr=function(e){var r,t,y={},n=e.modules,_=e.nodeOps;for(r=0;r<nr.length;++r)for(y[nr[r]]=[],t=0;t<n.length;++t)A(n[t][nr[r]])&&y[nr[r]].push(n[t][nr[r]]);function o(e){var t=_.parentNode(e);A(t)&&_.removeChild(t,e)}function b(e,t,n,r,i,o,a){if(A(e.elm)&&A(o)&&(e=o[a]=pe(e)),e.isRootInsert=!i,!function(e,t,n,r){var i=e.data;if(A(i)){var o=A(e.componentInstance)&&i.keepAlive;if(A(i=i.hook)&&A(i=i.init)&&i(e,!1,n,r),A(e.componentInstance))return p(e,t),d(n,e.elm,r),I(o)&&function(e,t,n,r){for(var i,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,A(i=o.data)&&A(i=i.transition)){for(i=0;i<y.activate.length;++i)y.activate[i](tr,o);t.push(o);break}d(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){var s=e.data,c=e.children,u=e.tag;if(A(u)){e.elm=e.ns?_.createElementNS(e.ns,u):_.createElement(u,e),f(e);var l=A(s)&&I(s.appendAsTree);l||(A(s)&&v(e,t),d(n,e.elm,r)),h(e,c,t),l&&(A(s)&&v(e,t),d(n,e.elm,r))}else I(e.isComment)?e.elm=_.createComment(e.text):e.elm=_.createTextNode(e.text),d(n,e.elm,r)}}function p(e,t){A(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,w(e)?(v(e,t),f(e)):(Qn(e),t.push(e))}function d(e,t,n){A(e)&&(A(n)?_.parentNode(n)===e&&_.insertBefore(e,t,n):_.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)b(t[r],n,e.elm,null,!0,t,r);else $(e.text)&&_.appendChild(e.elm,_.createTextNode(String(e.text)))}function w(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return A(e.tag)}function v(e,t){for(var n=0;n<y.create.length;++n)y.create[n](tr,e);A(r=e.data.hook)&&(A(r.create)&&r.create(tr,e),A(r.insert)&&t.push(e))}function f(e){var t;if(A(t=e.fnScopeId))_.setStyleScope(e.elm,t);else for(var n=e;n;)A(t=n.context)&&A(t=t.$options._scopeId)&&_.setStyleScope(e.elm,t),n=n.parent;A(t=tn)&&t!==e.context&&t!==e.fnContext&&A(t=t.$options._scopeId)&&_.setStyleScope(e.elm,t)}function m(e,t,n,r,i,o){for(;r<=i;++r)b(n[r],o,e,t,!1,n,r)}function k(e){var t,n,r=e.data;if(A(r))for(A(t=r.hook)&&A(t=t.destroy)&&t(e),t=0;t<y.destroy.length;++t)y.destroy[t](e);if(A(t=e.children))for(n=0;n<e.children.length;++n)k(e.children[n])}function S(e,t,n,r){for(;n<=r;++n){var i=t[n];A(i)&&(A(i.tag)?(a(i),k(i)):o(i.elm))}}function a(e,t){if(A(t)||A(e.data)){var n,r=y.remove.length+1;for(A(t)?t.listeners+=r:t=function(e,t){function n(){0==--n.listeners&&o(e)}return n.listeners=t,n}(e.elm,r),A(n=e.componentInstance)&&A(n=n._vnode)&&A(n.data)&&a(n,t),n=0;n<y.remove.length;++n)y.remove[n](e,t);A(n=e.data.hook)&&A(n=n.remove)?n(e,t):t()}else o(e.elm)}function x(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(A(o)&&rr(e,o))return i}}function C(e,t,n,r,i,o){if(e!==t){A(t.elm)&&A(r)&&(t=r[i]=pe(t));var a=t.elm=e.elm;if(I(e.isAsyncPlaceholder))A(t.asyncFactory.resolved)?O(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(I(t.isStatic)&&I(e.isStatic)&&t.key===e.key&&(I(t.isCloned)||I(t.isOnce)))t.componentInstance=e.componentInstance;else{var s,c=t.data;A(c)&&A(s=c.hook)&&A(s=s.prepatch)&&s(e,t);var u=e.children,l=t.children;if(A(c)&&w(t)){for(s=0;s<y.update.length;++s)y.update[s](e,t);A(s=c.hook)&&A(s=s.update)&&s(e,t)}E(t.text)?A(u)&&A(l)?u!==l&&function(e,t,n,r,i){for(var o,a,s,c=0,u=0,l=t.length-1,d=t[0],f=t[l],p=n.length-1,h=n[0],v=n[p],g=!i;c<=l&&u<=p;)E(d)?d=t[++c]:E(f)?f=t[--l]:rr(d,h)?(C(d,h,r,n,u),d=t[++c],h=n[++u]):rr(f,v)?(C(f,v,r,n,p),f=t[--l],v=n[--p]):rr(d,v)?(C(d,v,r,n,p),g&&_.insertBefore(e,d.elm,_.nextSibling(f.elm)),d=t[++c],v=n[--p]):(rr(f,h)?(C(f,h,r,n,u),g&&_.insertBefore(e,f.elm,d.elm),f=t[--l]):(E(o)&&(o=ir(t,c,l)),E(a=A(h.key)?o[h.key]:x(h,t,c,l))?b(h,r,e,d.elm,!1,n,u):rr(s=t[a],h)?(C(s,h,r,n,u),t[a]=void 0,g&&_.insertBefore(e,s.elm,d.elm)):b(h,r,e,d.elm,!1,n,u)),h=n[++u]);l<c?m(e,E(n[p+1])?null:n[p+1].elm,n,u,p,r):p<u&&S(0,t,c,l)}(a,u,l,n,o):A(l)?(A(e.text)&&_.setTextContent(a,""),m(a,null,l,0,l.length-1,n)):A(u)?S(0,u,0,u.length-1):A(e.text)&&_.setTextContent(a,""):e.text!==t.text&&_.setTextContent(a,t.text),A(c)&&A(s=c.hook)&&A(s=s.postpatch)&&s(e,t)}}}function T(e,t,n){if(I(n)&&A(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var g=s("attrs,class,staticClass,staticStyle,key");function O(e,t,n,r){var i,o=t.tag,a=t.data,s=t.children;if(r=r||a&&a.pre,t.elm=e,I(t.isComment)&&A(t.asyncFactory))return t.isAsyncPlaceholder=!0;if(A(a)&&(A(i=a.hook)&&A(i=i.init)&&i(t,!0),A(i=t.componentInstance)))return p(t,n),!0;if(A(o)){if(A(s))if(e.hasChildNodes())if(A(i=a)&&A(i=i.domProps)&&A(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,u=e.firstChild,l=0;l<s.length;l++){if(!u||!O(u,s[l],n,r)){c=!1;break}u=u.nextSibling}if(!c||u)return!1}else h(t,s,n);if(A(a)){var d=!1;for(var f in a)if(!g(f)){d=!0,v(t,n);break}!d&&a.class&&He(a.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,r,i,o){if(!E(t)){var a,s=!1,c=[];if(E(e))s=!0,b(t,c,i,o);else{var u=A(e.nodeType);if(!u&&rr(e,t))C(e,t,c,null,null,r);else{if(u){if(1===e.nodeType&&e.hasAttribute(M)&&(e.removeAttribute(M),n=!0),I(n)&&O(e,t,c))return T(t,c,!0),e;a=e,e=new ue(_.tagName(a).toLowerCase(),{},[],void 0,a)}var l=e.elm,d=_.parentNode(l);if(b(t,c,l._leaveCb?null:d,_.nextSibling(l)),A(t.parent))for(var f=t.parent,p=w(t);f;){for(var h=0;h<y.destroy.length;++h)y.destroy[h](f);if(f.elm=t.elm,p){for(var v=0;v<y.create.length;++v)y.create[v](tr,f);var g=f.data.hook.insert;if(g.merged)for(var m=1;m<g.fns.length;m++)g.fns[m]()}else Qn(f);f=f.parent}A(d)?S(0,[e],0,0):A(e.tag)&&k(e)}}return T(t,c,s),t.elm}A(e)&&k(e)}}({nodeOps:Kn,modules:[mr,Ar,Mr,Nr,{create:Rr,activate:Rr,remove:function(n,e){var r=n.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var t=Dr(n.data.transition);if(!t)return e();if(r._leaveCb)return;var i=t.leaveClass,o=t.leaveToClass,a=t.leaveActiveClass,s=t.beforeLeave,c=t.leave,u=t.afterLeave,l=t.leaveCancelled,d=t.delayLeave,f=c&&1<(c._length||c.length),p=n.context.$options.style||{},h=p[i],v=p[o]||p[a],g=p["@TRANSITION"]&&p["@TRANSITION"][a]||{},m=r._leaveCb=L(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[n.key]=null),m.cancelled?l&&l(r):(e(),u&&u(r)),r._leaveCb=null});d?d(y):y();function y(){var e=n.context.$requireWeexModule("animation");function t(){e.transition(r.ref,{styles:v,duration:g.duration||0,delay:g.delay||0,timingFunction:g.timingFunction||"linear"},f?D:m)}m.cancelled||(n.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[n.key]=n),s&&s(r),h?e.transition(r.ref,{styles:h},t):t(),c&&c(r,m),v||f||m())}}}].concat(lr),LONG_LIST_THRESHOLD:10}),zr=Object.getOwnPropertyNames(ve);function Ur(e,r){var i=e.$el;return i&&"function"==typeof i[r]?function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];return i[r].apply(i,t)}:(ie("Can't find component method \""+r+'" on '+i.type),D)}function Vr(e,n){Array.isArray(n)&&(!function(f,n){for(var e=function(e,t){var d=zr[e];F(n,d,function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r=this.length,i=ve[d];"function"==typeof i&&i.apply(this,t);var o=Ur(f,"removeData"),a=Ur(f,"insertRange"),s=Ur(f,"setListData");switch(d){case"push":a(r,t);break;case"pop":o(r-1,1);break;case"shift":o(0,1);break;case"unshift":a(0,t);break;case"splice":var c=t[0],u=t[1],l=t.slice(2);0<u&&o(c,u),0<l.length&&a(c,l);break;case"sort":case"reverse":s(this.slice())}})},t=0,r=zr.length;t<r;t++)e(t)}(e,n),n.forEach(function(t){d(t)&&!f(t,"[[Watched]]")&&(F(t,"[[Watched]]",!0),e.$watch(function(){for(var e in t)t[e]},function(){Ur(e,"updateData")(n.indexOf(t),t)},{deep:!0}))}))}var qr={name:"recycle-list",methods:{closest:function(){for(var e,t=arguments,n=[],r=arguments.length;r--;)n[r]=t[r];return(e=this.$el).closest.apply(e,n)},queryElement:function(){for(var e,t=arguments,n=[],r=arguments.length;r--;)n[r]=t[r];return(e=this.$el).queryElement.apply(e,n)},queryElementAll:function(){for(var e,t=arguments,n=[],r=arguments.length;r--;)n[r]=t[r];return(e=this.$el).queryElementAll.apply(e,n)},scrollToElement:function(){for(var e,t=arguments,n=[],r=arguments.length;r--;)n[r]=t[r];return(e=this.$el).scrollToElement.apply(e,n)},resetLoadmore:function(){for(var e,t=arguments,n=[],r=arguments.length;r--;)n[r]=t[r];return(e=this.$el).resetLoadmore.apply(e,n)}},render:function(e){var t=this;if(this._vnode&&this.$options["[[UseCache]]"])return F(this.$options,"[[UseCache]]",!1),this._vnode;var n=this.$options.parent,r=this.$attrs.bindingExpression;return n&&r&&(n.$watch(r,function(){return F(t.$options,"[[UseCache]]",!0)},{deep:!0,immediate:!0}),Vr(this,this.$attrs.listData),n.$watch(r,function(e){Vr(t,e)})),this._events._attach_slot=function(e){At(t.$parent||t,e.position,e.refs)},this._events._detach_slot=function(e){At(t.$parent||t,e.position,e.refs,!0)},e("weex:recycle-list",{on:this._events},this.$slots.default)},renderError:function(e,t){return e("text",{style:{fontSize:"36px",color:"#FF0000"},value:t.toString()})}},Wr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Hr(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Hr(Yt(t.children)):e}function Gr(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[h(o)]=i[o];return t}function Xr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Yr=function(e){return e.tag||Xt(e)},Jr=function(e){return"show"===e.name},Kr={name:"transition",props:Wr,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Yr)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Hr(i);if(!o)return i;if(this._leaving)return Xr(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:$(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s,c,u=(o.data||(o.data={})).transition=Gr(this),l=this._vnode,d=Hr(l);if(o.data.directives&&o.data.directives.some(Jr)&&(o.data.show=!0),d&&d.data&&(s=o,(c=d).key!==s.key||c.tag!==s.tag)&&!Xt(d)&&(!d.componentInstance||!d.componentInstance._vnode.isComment)){var f=d.data.transition=N({},u);if("out-in"===r)return this._leaving=!0,Je(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Xr(e,i);if("in-out"===r){if(Xt(o))return l;var p,h=function(){p()};Je(u,"afterEnter",h),Je(u,"enterCancelled",h),Je(f,"delayLeave",function(e){p=e})}}return i}}},Zr=N({tag:String,moveClass:String},Wr);delete Zr.mode;var Qr={RecycleList:qr,Transition:Kr,TransitionGroup:{props:Zr,created:function(){var e=this.$requireWeexModule("dom");this.getPosition=function(r){return new Promise(function(t,n){e.getComponentRect(r.ref,function(e){e.result?t(e.size):n(new Error("failed to get rect for element: "+r.tag))})})};var r=this.$requireWeexModule("animation");this.animate=function(t,n){return new Promise(function(e){r.transition(t.ref,n,e)})}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Gr(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),((n[c.key]=c).data||(c.data={})).transition=a)}if(r){var u=[],l=[];r.forEach(function(e){e.data.transition=a,n[e.key]?u.push(e):l.push(e)}),this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.getMoveData(e[0].context,t)},methods:{getMoveData:function(e,t){var n=e.$options.style||{};return n["@TRANSITION"]&&n["@TRANSITION"][t]}}}},ei=s("template,script,style,element,content,slot,link,meta,svg,view,a,div,img,image,text,u-text,span,input,textarea,spinner,select,slider,slider-neighbor,indicator,canvas,list,cell,header,loading,loading-indicator,refresh,scrollable,scroller,video,web,embed,tabbar,tabheader,datepicker,timepicker,marquee,countdown",!0),ti=(s("web,spinner,switch,video,textarea,canvas,indicator,marquee,countdown",!0),s("richtext,transition,transition-group,recycle-list",!0));s("embed,img,image,input,link,meta",!0);Dn.config.mustUseProp=function(){return!1},Dn.config.isReservedTag=ei,Dn.config.isRuntimeComponent=ti,Dn.config.isUnknownElement=function(){return!1},Dn.options.directives={},Dn.options.components=Qr,Dn.prototype.__patch__=Fr,Dn.prototype.$mount=function(e,t){return n=this,r=e&&(o=this.$document,(a=o.createComment("root")).hasAttribute=a.removeAttribute=D,o.documentElement.appendChild(a),a),i=t,n.$el=r,n.$options.render||(n.$options.render=de),an(n,"beforeMount"),new mn(n,function(){n._update(n._render(),i)},D,{before:function(){n._isMounted&&!n._isDestroyed&&an(n,"beforeUpdate")}},!0),i=!1,null==n.$vnode&&(n._isMounted=!0,an(n,"mounted")),n;var n,r,i,o,a},Dn.prototype.__call_hook=function(e,t){se();var n,r=this.$options[e],i=e+" hook";if(r)for(var o=0,a=r.length;o<a;o++)n=De(r[o],this,t?[t]:null,this,i);return this._hasHookEvent&&this.$emit("hook:"+e,t),ce(),n},e.Vue=Dn}});unwrapExports(factory);var weexVueFramework=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var d={};t.createInstanceContext=function(e,t,n){void 0===n&&(n={});var r,i,o,a,s=t.weex,c=(d[e]={instanceId:e,config:s.config,document:s.document,data:n}).Vue=function(e,t,n){var r={};factory(r,t.document,n);var i=r.Vue,o=d[e],a=/^weex:/i,s=i.config.isReservedTag||function(){return!1},c=i.config.isRuntimeComponent||function(){return!1};return i.config.isReservedTag=function(e){return!c(e)&&t.supports("@component/"+e)||s(e)||a.test(e)},i.config.parsePlatformTagName=function(e){return e.replace(a,"")},i.prototype.$instanceId=e,i.prototype.$document=o.document,i.prototype.$requireWeexModule=t.requireModule,i.mixin({beforeCreate:function(){var e=this.$options;if(e.el){var t=e.data,n=("function"==typeof t?t():t)||{};e.data=Object.assign(n,o.data),o.app=this}},mounted:function(){if(this.$options.el&&t.document&&o.app===this)try{t.document.taskCenter.send("dom",{action:"createFinish"},[])}catch(e){}}}),i.prototype.$getConfig=function(){if(o.app instanceof i)return o.config},i}(e,s,t.SharedObject),u=(r=e,i=s.requireModule,o=d[r],a=i("timer"),{setTimeout:function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];if(a.setTimeout){var r=o.document.taskCenter.callbackManager.lastCallbackId;return a.setTimeout(function(){t[0].apply(t,t.slice(2))},t[1]),(r+1).toString()}},setInterval:function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];if(a.setInterval){var r=o.document.taskCenter.callbackManager.lastCallbackId;return a.setInterval(function(){t[0].apply(t,t.slice(2))},t[1]),(r+1).toString()}},clearTimeout:function(e){a.clearTimeout&&a.clearTimeout(e)},clearInterval:function(e){a.clearInterval&&a.clearInterval(e)}}),l=Object.assign({Vue:c},u);return Object.freeze(l),l},t.destroyInstance=function(e){var t=d[e];if(t&&t.app instanceof t.Vue){try{t.app.$destroy(),t.document.destroy()}catch(e){}delete t.document,delete t.app}delete d[e]},t.refreshInstance=function(e,t){var n=d[e];if(!(n&&n.app instanceof n.Vue))return new Error("refreshInstance: instance "+e+" not found!");if(n.Vue&&n.Vue.set)for(var r in t)n.Vue.set(n.app,r,t[r]);n.document.taskCenter.send("dom",{action:"refreshFinish"},[])}}),index=unwrapExports(weexVueFramework),weexVueFramework_1=weexVueFramework.createInstanceContext,weexVueFramework_2=weexVueFramework.destroyInstance,weexVueFramework_3=weexVueFramework.refreshInstance,Vue=Object.freeze({default:index,__moduleExports:weexVueFramework,createInstanceContext:weexVueFramework_1,destroyInstance:weexVueFramework_2,refreshInstance:weexVueFramework_3});setNativeConsole(),setup({Vue:Vue})});
|