weweb-cli
Version:
微信小程序转成h5的小工具
1 lines • 347 kB
JavaScript
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,r,i){for(var a,s,u=0,c=[];u<t.length;u++)s=t[u],o[s]&&c.push(o[s][0]),o[s]=0;for(a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);for(n&&n(t,r,i);c.length;)c.shift()()};var r={},o={23:0};t.e=function(e){function n(){s.onerror=s.onload=null,clearTimeout(u);var t=o[e];0!==t&&(t&&t[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var r=o[e];if(0===r)return new Promise(function(e){e()});if(r)return r[2];var i=new Promise(function(t,n){r=o[e]=[t,n]});r[2]=i;var a=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript",s.charset="utf-8",s.async=!0,s.timeout=12e4,t.nc&&s.setAttribute("nonce",t.nc),s.src=t.p+""+({0:"wx-video",1:"wx-toast",2:"wx-textarea",3:"wx-switch",4:"wx-swiper",5:"wx-swiper-item",6:"wx-slider",7:"wx-scroll-view",8:"wx-radio",9:"wx-radio-group",10:"wx-progress",11:"wx-picker",12:"wx-picker-view",13:"wx-picker-view-column",14:"wx-modal",15:"wx-map",16:"wx-form",17:"wx-contact-button",18:"wx-canvas",19:"wx-audio",20:"wx-action-sheet",21:"wx-action-sheet-item",22:"wx-action-sheet-cancel"}[e]||e)+".wd.chunk.js";var u=setTimeout(n,12e4);return s.onerror=s.onload=n,a.appendChild(s),i},t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="script/",t.oe=function(e){throw console.error(e),e},t(t.s=118)}([function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(51),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){function r(e){if(e)return o(e)}function o(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if((r=n[o])===t||r.fn===t){n.splice(o,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(151),i=r(o),a=n(95),s=r(a),u="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(i.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":u(e)}},function(e,t,n){e.exports={default:n(172),__esModule:!0}},function(e,t,n){var r=n(62)("wks"),o=n(43),i=n(8).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return"number"==typeof e?e+"px":e}function i(e){return e+"deg"}Object.defineProperty(t,"__esModule",{value:!0});var a=n(15),s=r(a),u=n(51),c=r(u),l=n(52),d=r(l),f=n(4),h=r(f),p=n(13),v=r(p),g=n(9),m=r(g),y=n(16),_=r(y),b=n(22),w=r(b),x=n(23),k=r(x),T=n(0),S=r(T),C=n(1),E=r(C),M=window.btoa,A=window.atob,P=function(){function e(t,n,r){(0,S.default)(this,e),this._selectorQuery=t,this._selector=n,this._single=r}return(0,E.default)(e,[{key:"fields",value:function(e,t){return this._selectorQuery._push(this._selector,this._single,e,t),this._selectorQuery}},{key:"boundingClientRect",value:function(e){return this._selectorQuery._push(this._selector,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}},{key:"scrollOffset",value:function(e){return this._selectorQuery._push(this._selector,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}}]),e}(),O=function(e){var t={};return e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset&&(t.scrollLeft=document.documentElement.scrollLeft||document.body.scrollLeft||0,t.scrollTop=document.documentElement.scrollTop||document.body.scrollTop||0),t},I=function(e,t){var n=e.$$,r={};if(t.id&&(r.id=e.id||""),t.dataset&&(r.dataset=e.dataset||{}),t.rect||t.size){var o=n.getBoundingClientRect();t.rect&&(r.left=o.left,r.right=o.right,r.top=o.top,r.bottom=o.bottom),t.size&&(r.width=o.width,r.height=o.height)}if(t.properties&&t.properties.forEach(function(t){var n=t.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});window.exparser.Component.hasPublicProperty(e,n)&&(r[n]=e[n])}),t.scrollOffset)if(e.hasBehavior("wx-positioning-container")){var i=e.getScrollPosition();r.scrollLeft=i.scrollLeft,r.scrollTop=i.scrollTop}else r.scrollLeft=0,r.scrollTop=0;return r},R=function(e,t,n){var r=[];t.forEach(function(e){var t=e.selector,n=e.single,o=e.fields,i=null;if("viewport"===t)i=O(o);else if(n){var a=window.__DOMTree__.querySelector(t);i=a?I(a,o):null}else{var s=window.__DOMTree__.querySelectorAll(t);i=[];for(var u=0;u<s.length;u++)i.push(I(s[u],o))}r.push(i)}),n(r)},N=function(){function e(t){(0,S.default)(this,e),this._webviewId=t,this._queue=[],this._queueCb=[]}return(0,E.default)(e,[{key:"select",value:function(e){return new P(this,e,!0)}},{key:"selectAll",value:function(e){return new P(this,e,!1)}},{key:"selectViewport",value:function(){return new P(this,"viewport",!0)}},{key:"_push",value:function(e,t,n,r){this._queue.push({selector:e,single:t,fields:n}),this._queueCb.push(r||null)}},{key:"exec",value:function(e){var t=this;R(this._webviewId,this._queue,function(n){var r=t._queueCb;n.forEach(function(e,n){"function"==typeof r[n]&&r[n].call(t,e)}),"function"==typeof e&&e.call(t,n)})}}]),e}(),L=function(e){function t(e){(0,S.default)(this,t);var n=(0,w.default)(this,(t.__proto__||(0,_.default)(t)).call(this,"APP-SERVICE-SDK:"+e));return n.type="AppServiceSdkKnownError",n}return(0,k.default)(t,e),t}(Error),j=function(e){function t(e){(0,S.default)(this,t);var n=(0,w.default)(this,(t.__proto__||(0,_.default)(t)).call(this,"APP-SERVICE-Engine:"+e));return n.type="AppServiceEngineKnownError",n}return(0,k.default)(t,e),t}(Error),B=window.navigator.userAgent.toLowerCase(),D=/(iphone|ipad)/.test(B)?"ios":/android/.test(B)?"android":"",F=D&&window.innerWidth||375,V=window.devicePixelRatio||2,U=function(e){return e=e/750*F,e=Math.floor(e+1e-4),0===e?1!==V&&"ios"==D?.5:1:e},H=function(e){for(var t=0,n=1,r=!1,o=!1,i=0;i<e.length;++i){var a=e[i];a>="0"&&a<="9"?r?(n*=.1,t+=(a-"0")*n):t=10*t+(a-"0"):"."===a?r=!0:"-"===a&&(o=!0)}return o&&(t=-t),U(t)},q=/%%\?[+-]?\d+(\.\d+)?rpx\?%%/g,W=/(:|\s)[+-]?\d+(\.\d+)?rpx/g,G={copyObj:function(e,t){for(var n in t)!function(n){e.__defineGetter__(n,function(){return Reporter.surroundThirdByTryCatch(t[n],"wx."+n)})}(n)},getPlatform:function(){return D},transformRpx:function(e,t){if("String"!==this.getDataType(e))return e;var n=void 0;return n=t?e.match(W):e.match(q),n&&n.forEach(function(n){var r=H(n),o=(t?n[0]:"")+r+"px";e=e.replace(n,o)}),e},getRealRoute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.indexOf("/"))return t.substr(1);if(0===t.indexOf("./"))return this.getRealRoute(e,t.substr(2));var n,r,o=t.split("/");for(n=0,r=o.length;n<r&&".."===o[n];n++);o.splice(0,n);var i=e.length>0?e.split("/"):[];return i.splice(i.length-n-1,n+1),i.concat(o).join("/")},animationToStyle:function(e){var t=e.animates,n=e.option,r=void 0===n?{}:n,a=r.transformOrigin,s=r.transition;if(void 0===s||void 0===t)return{transformOrigin:"",transform:"",transition:""};var u=t.filter(function(e){return"style"!==e.type}).map(function(e){var t=e.type,n=e.args;switch(t){case"matrix":return"matrix("+n.join(",")+")";case"matrix3d":return"matrix3d("+n.join(",")+")";case"rotate":return n=n.map(i),"rotate("+n[0]+")";case"rotate3d":return n[3]=i(n[3]),"rotate3d("+n.join(",")+")";case"rotateX":return n=n.map(i),"rotateX("+n[0]+")";case"rotateY":return n=n.map(i),"rotateY("+n[0]+")";case"rotateZ":return n=n.map(i),"rotateZ("+n[0]+")";case"scale":return"scale("+n.join(",")+")";case"scale3d":return"scale3d("+n.join(",")+")";case"scaleX":return"scaleX("+n[0]+")";case"scaleY":return"scaleY("+n[0]+")";case"scaleZ":return"scaleZ("+n[0]+")";case"translate":return n=n.map(o),"translate("+n.join(",")+")";case"translate3d":return n=n.map(o),"translate3d("+n.join(",")+")";case"translateX":return n=n.map(o),"translateX("+n[0]+")";case"translateY":return n=n.map(o),"translateY("+n[0]+")";case"translateZ":return n=n.map(o),"translateZ("+n[0]+")";case"skew":return n=n.map(i),"skew("+n.join(",")+")";case"skewX":return n=n.map(i),"skewX("+n[0]+")";case"skewY":return n=n.map(i),"skewY("+n[0]+")";default:return""}}).join(" "),c=t.filter(function(e){return"style"===e.type}).reduce(function(e,t){return e[t.args[0]]=t.args[1],e},{});return{style:c,transformOrigin:a,transform:u,transitionProperty:["transform"].concat((0,m.default)(c)).join(","),transition:s.duration+"ms "+s.timingFunction+" "+s.delay+"ms"}},anyTypeToString:function(e){var t=this.getDataType(e);if("Array"==t||"Object"==t)try{e=(0,v.default)(e)}catch(e){throw e.type="AppServiceSdkKnownError",e}else e="String"==t||"Number"==t||"Boolean"==t?e.toString():"Date"==t?e.getTime().toString():"Undefined"==t?"undefined":"Null"==t?"null":"";return{data:e,dataType:t}},stringToAnyType:function(e,t){return e="String"==t?e:"Array"==t||"Object"==t?JSON.parse(e):"Number"==t?parseFloat(e):"Boolean"==t?"true"==e:"Date"==t?new Date(parseInt(e)):"Undefined"==t?void 0:"Null"==t?null:""},getDataType:function(e){return Object.prototype.toString.call(e).split(" ")[1].split("]")[0]},isPlainObject:function(e){return"Object"===this.getDataType(e)},paramCheck:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"parameter",o=this.getDataType(t),i=this.getDataType(e);if(i!=o)return r+" should be "+o+" instead of "+i+";";switch(n="",o){case"Object":for(var a in t)n+=this.paramCheck(e[a],t[a],r+"."+a);break;case"Array":if(e.length<t.length)return r+" should have at least "+t.length+" item;";for(var s=0;s<t.length;++s)n+=this.paramCheck(e[s],t[s],r+"["+s+"]")}return n},urlEncodeFormData:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("object"!==(void 0===e?"undefined":(0,h.default)(e)))return e;var n=[];for(var r in e)if(e.hasOwnProperty(r))if(t)try{n.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]))}catch(t){n.push(r+"="+e[r])}else n.push(r+"="+e[r]);return n.join("&")},addQueryStringToUrl:function(e,t){if("string"==typeof e&&"object"===(void 0===t?"undefined":(0,h.default)(t))&&(0,m.default)(t).length>0){var n=e.split("?"),r=n[0],o=(n[1]||"").split("&").reduce(function(e,t){if("string"==typeof t&&t.length>0){var n=t.split("="),r=n[0],o=n[1];e[r]=o}return e},{}),i=(0,m.default)(t).reduce(function(e,n){return"object"===(0,h.default)(t[n])?e[encodeURIComponent(n)]=encodeURIComponent((0,v.default)(t[n])):e[encodeURIComponent(n)]=encodeURIComponent(t[n]),e},{});return r+"?"+this.urlEncodeFormData(this.assign(o,i))}return e},validateUrl:function(e){return/^(http|https):\/\/.*/i.test(e)},assign:function(){return Array.prototype.slice.apply(arguments).reduce(function(e,t){for(var n in t)e[n]=t[n];return e},{})},encodeUrlQuery:function(e){if("string"==typeof e){var t=e.split("?"),n=t[0],r=(t[1]||"").split("&").reduce(function(e,t){if("string"==typeof t&&t.length>0){var n=t.split("="),r=n[0],o=n[1];e[r]=o}return e},{}),o=[];for(var i in r)r.hasOwnProperty(i)&&o.push(i+"="+encodeURIComponent(r[i]));return o.length>0?n+"?"+o.join("&"):e}return e},addHTMLSuffix:function(e){if("string"!=typeof e)return e;var t=e.split("?");return t[0]+=".html",void 0!==t[1]?t[0]+"?"+t[1]:t[0]},arrayBufferToBase64:function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,o=0;o<r;o++)t+=String.fromCharCode(n[o]);return M(t)},base64ToArrayBuffer:function(e){for(var t=A(e),n=t.length,r=new Uint8Array(n),o=0;o<n;o++)r[o]=t.charCodeAt(o);return r.buffer},blobToArrayBuffer:function(e,t){var n=new FileReader;n.onload=function(){t(this.result)},n.readAsArrayBuffer(e)},convertObjectValueToString:function(e){return(0,m.default)(e).reduce(function(t,n){return"string"==typeof e[n]?t[n]=e[n]:"number"==typeof e[n]?t[n]=e[n]+"":t[n]=Object.prototype.toString.apply(e[n]),t},{})},renameProperty:function(e,t,n){!1!==this.isPlainObject(e)&&t!=n&&e.hasOwnProperty(t)&&(e[n]=e[t],delete e[t])},toArray:function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,d.default)(e)},canIUse:function(e,t){return!0},transWxmlToHtml:function(e){if("string"!=typeof e)return e;var t=e.split("?");return t[0]+=".html",void 0!==t[1]?t[0]+"?"+t[1]:t[0]},removeHtmlSuffixFromUrl:function(e){return"string"==typeof e?-1!==e.indexOf("?")?e.replace(/\.html\?/,"?"):e.replace(/\.html$/,""):e},AppServiceSdkKnownError:L,AppServiceEngineKnownError:j,defaultRunningStatus:"active",wxQuerySelector:N,safeInvoke:function(){var e=void 0,t=Array.prototype.slice.call(arguments),n=t[0];t=t.slice(1);try{var r=Date.now();e=this[n].apply(this,t);var o=Date.now()-r;o>1e3&&Reporter.slowReport({key:"pageInvoke",cost:o,extend:"at "+this.__route__+" page "+n+" function"})}catch(e){Reporter.thirdErrorReport({error:e,extend:'at "'+this.__route__+'" page '+n+" function"})}return e},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},noop:function(){},def:function(e,t,n,r){(0,c.default)(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})},error:function(e,t){console.group(new Date+" "+e),console.error(t),console.groupEnd()},warn:function(e,t){this.error(e,t)},info:function(e){__wxConfig__&&__wxConfig__.debug&&console.info(e)},publish:function(){var e=Array.prototype.slice.call(arguments),t={options:{timestamp:Date.now()}};e[1]?e[1].options=(0,s.default)(e[1].options||{},t.options):e[1]=t,ServiceJSBridge.publish.apply(ServiceJSBridge,e)}};t.default=G},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){e.exports={default:n(147),__esModule:!0}},function(e,t,n){var r=n(8),o=n(2),i=n(26),a=n(18),s=function(e,t,n){var u,c,l,d=e&s.F,f=e&s.G,h=e&s.S,p=e&s.P,v=e&s.B,g=e&s.W,m=f?o:o[t]||(o[t]={}),y=m.prototype,_=f?r:h?r[t]:(r[t]||{}).prototype;f&&(n=t);for(u in n)(c=!d&&_&&void 0!==_[u])&&u in m||(l=c?_[u]:n[u],m[u]=f&&"function"!=typeof _[u]?n[u]:v&&c?i(l,r):g&&_[u]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):p&&"function"==typeof l?i(Function.call,l):l,p&&((m.virtual||(m.virtual={}))[u]=l,e&s.R&&y&&!y[u]&&a(y,u,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(12),o=n(83),i=n(58),a=Object.defineProperty;t.f=n(14)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(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}},function(e,t,n){var r=n(27);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports={default:n(138),__esModule:!0}},function(e,t,n){e.exports=!n(28)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports={default:n(141),__esModule:!0}},function(e,t,n){e.exports={default:n(164),__esModule:!0}},function(e,t){function n(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var r=n[1];if("body"==r){var o=t.createElement("html");return o.innerHTML=e,o.removeChild(o.lastChild)}var a=i[r]||i._default,s=a[0],u=a[1],c=a[2],o=t.createElement("div");for(o.innerHTML=u+e+c;s--;)o=o.lastChild;if(o.firstChild==o.lastChild)return o.removeChild(o.firstChild);for(var l=t.createDocumentFragment();o.firstChild;)l.appendChild(o.removeChild(o.firstChild));return l}e.exports=n;var r,o=!1;"undefined"!=typeof document&&(r=document.createElement("div"),r.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',o=!r.getElementsByTagName("link").length,r=void 0);var i={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:o?[1,"X<div>","</div>"]:[0,"",""]};i.td=i.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],i.option=i.optgroup=[1,'<select multiple="multiple">',"</select>"],i.thead=i.tbody=i.colgroup=i.caption=i.tfoot=[1,"<table>","</table>"],i.polyline=i.ellipse=i.polygon=i.circle=i.text=i.line=i.path=i.rect=i.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"]},function(e,t,n){var r=n(11),o=n(34);e.exports=n(14)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(86),o=n(55);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return T++}function i(){return k||(k=new x.default),k}function a(e,t,n){var r=function r(o){e.removeEventListener(t,r,!1),n.call(e,o)};e.addEventListener(t,r,!1)}function s(e){return e.replace(/\.html/,"").replace(/^\.?\//,"")}function u(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.body,o=document.createElement("iframe");return o.setAttribute("src",t),o.setAttribute("id",e),o.setAttribute("seamless","seamless"),o.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-modals"),o.setAttribute("frameborder","0"),o.setAttribute("width",n?"0":"100%"),o.setAttribute("height",n?"0":"100%"),n&&o.setAttribute("style","width:0;height:0;border:0; display:none;"),r.appendChild(o),o}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,n=document.createElement("iframe");return n.setAttribute("id",e),n.setAttribute("seamless","seamless"),n.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-modals"),n.setAttribute("frameborder","0"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","width:0;height:0;border:0; display:none;"),t.appendChild(n),n}function l(e,t){var n=document.querySelector("#"+e);return n.setAttribute("src",t),n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribute("style",""),n}function d(e){var t=e.split(/\?/);return{path:t[0],query:b.default.parse(t[1])}}function f(e){var t=window.__wxConfig__.pages,n=d(e),r=n.path;return-1!==t.indexOf(r)}function h(e){var t=window.__wxConfig__.tabBar&&window.__wxConfig__.tabBar.list;if(t){return-1!==t.map(function(e){return e.pagePath}).indexOf(e)}}function p(){location.reload()}function v(){var e=location.protocol+"//"+location.host+location.pathname;"function"==typeof location.replace?location.replace(e):"function"==typeof history.replaceState?(window.history.replaceState({},"",e),location.reload()):(location.hash="#",location.reload())}function g(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);var a=new Blob([r],{type:n});return URL.createObjectURL(a)}function m(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=[],o=t;o<=e;o++)r.push(o<10?"0"+o+n:""+o+n);return r}function y(e){return Array.isArray(e)?e.map(function(e){return Number(e)}):"string"==typeof e?Number(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.uid=o,t.getBus=i,t.once=a,t.normalize=s,t.createFrame=u,t.createWebview=c,t.updateWebView=l,t.parsePath=d,t.validPath=f,t.isTabbar=h,t.reload=p,t.navigateHome=v,t.dataURItoBlob=g,t.range=m,t.toNumber=y;var _=n(161),b=r(_),w=n(3),x=r(w),k=null,T=0},function(e,t,n){"use strict";t.__esModule=!0;var r=n(4),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(168),i=r(o),a=n(5),s=r(a),u=n(4),c=r(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(195),__esModule:!0}},function(e,t,n){function r(e,t){if(!(this instanceof r))return new r(e,t);if(!e)throw new Error("element required");if(!t)throw new Error("object required");this.el=e,this.obj=t,this._events={}}function o(e){var t=e.split(/ +/);return{name:t.shift(),selector:t.join(" ")}}try{var i=n(104)}catch(e){var i=n(104)}try{var a=n(105)}catch(e){var a=n(105)}e.exports=r,r.prototype.sub=function(e,t,n){this._events[e]=this._events[e]||{},this._events[e][t]=n},r.prototype.bind=function(e,t){function n(){var e=[].slice.call(arguments).concat(l);u[t].apply(u,e)}var r=o(e),s=this.el,u=this.obj,c=r.name,t=t||"on"+c,l=[].slice.call(arguments,2);return r.selector?n=a.bind(s,r.selector,c,n):i.bind(s,c,n),this.sub(c,t,n),n},r.prototype.unbind=function(e,t){if(0==arguments.length)return this.unbindAll();if(1==arguments.length)return this.unbindAllOf(e);var n=this._events[e];if(n){var r=n[t];r&&i.unbind(this.el,e,r)}},r.prototype.unbindAll=function(){for(var e in this._events)this.unbindAllOf(e)},r.prototype.unbindAllOf=function(e){var t=this._events[e];if(t)for(var n in t)this.unbind(e,n)}},function(e,t,n){var r=n(56);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(85),o=n(63);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(){},a=null;i.prototype=(0,o.default)(Object.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),i._setGlobalOptionsGetter=function(e){a=e},i.create=function(e){var t=(0,o.default)(i.prototype);return t.empty=!0,t._type=e,t._arr=[],t._index=0,t},i.prototype.add=function(e){var t=this._index++;return this._arr.push({id:t,func:e}),this.empty=!1,t},i.prototype.remove=function(e){var t=this._arr,n=0;if("function"==typeof e){for(n=0;n<t.length;n++)if(t[n].func===e)return t.splice(n,1),this.empty=!t.length,!0}else for(n=0;n<t.length;n++)if(t[n].id===e)return t.splice(n,1),this.empty=!t.length,!0;return!1},i.prototype.call=function(e,t){for(var n=this._arr,r=!1,o=0;o<n.length;o++){!1===c(this._type,n[o].func,e,t)&&(r=!0)}if(r)return!1};var s=i.create(),u=function(e,t){if(!t.type||!1!==s.call(null,[e,t])){if(console.error(t.message),a().throwGlobalError)throw e;console.error(e.stack)}},c=function(e,t,n,r){try{return t.apply(n,r)}catch(i){var o="Exparser "+(e||"Error Listener")+" Error @ ";n&&(o+=n.is),o+="#"+(t.name||"(anonymous)"),u(i,{message:o,type:e,element:n,method:t,args:r})}};i.safeCallback=c,i.addGlobalErrorListener=function(e){return s.add(e)},i.removeGlobalErrorListener=function(e){return s.remove(e)},t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(15),i=r(o),a=n(4),s=r(a),u=n(16),c=r(u),l=function(e){return"[object String]"===Object.prototype.toString.call(e)};t.default={isString:l,isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},getPrototype:function(e){return c.default?(0,c.default)(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0},isObject:function(e){return"object"===(void 0===e?"undefined":(0,s.default)(e))&&null!==e},isEmptyObject:function(e){for(var t in e)return!1;return!0},isVirtualNode:function(e){return e&&"WxVirtualNode"===e.type},isVirtualText:function(e){return e&&"WxVirtualText"===e.type},isUndefined:function(e){return"[object Undefined]"===Object.prototype.toString.call(e)},uuid:function(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},getDataType:function(e){return Object.prototype.toString.call(e).split(" ")[1].split("]")[0]},getPageConfig:function(){var e={};if(window.__wxConfig&&window.__wxConfig.window)e=window.__wxConfig.window;else{var t={};window.__wxConfig&&window.__wxConfig.global&&window.__wxConfig.global.window&&(t=window.__wxConfig.global.window);var n={};window.__wxConfig&&window.__wxConfig.page&&window.__wxConfig.page[window.__route__]&&window.__wxConfig.page[window.__route__].window&&(n=window.__wxConfig.page[window.__route__].window),e=(0,i.default)({},t,n)}return e}}},function(e,t,n){"use strict";var r=n(122)(!0);n(82)(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=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(55);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=null;!function(){for(var e=["webkitTransform","MozTransform","msTransform","OTransform","transform"],t=document.createElement("p"),n=0;n<e.length;n++)if(null!=t.style[e[n]]){r=e[n];break}}();var o=null;!function(){var e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"},t=document.createElement("p");for(var n in e)if(null!=t.style[n]){o=e[n];break}}(),t.transitionend=o,t.transition=n(180),t.transform=r,t.touchAction=n(181),t.has3d=n(182)},function(e,t,n){"use strict";function r(){ServiceJSBridge.invoke.apply(ServiceJSBridge,arguments)}function o(){ServiceJSBridge.on.apply(ServiceJSBridge,arguments)}function i(){var e=Array.prototype.slice.call(arguments);e[1]={data:e[1],options:{timestamp:Date.now()}},ServiceJSBridge.publish.apply(ServiceJSBridge,e)}function a(){var e=Array.prototype.slice.call(arguments),t=e[1];e[1]=function(e,n){var r=e.data;"function"==typeof t&&t(r,n)},ServiceJSBridge.subscribe.apply(ServiceJSBridge,e)}function s(e,t,n){var r={};for(var o in t)"function"==typeof t[o]&&(r[o]=Reporter.surroundThirdByTryCatch(t[o],"at api "+e+" "+o+" callback function"),delete t[o]);var i={};for(var a in n)"function"==typeof n[a]&&(i[a]=Reporter.surroundThirdByTryCatch(n[a],"at api "+e+" "+a+" callback function"));var s={};s.sdkName=e,s.args=t;var u=m[e](s);!function(t){t.errMsg=t.errMsg||e+":ok";var n=0===t.errMsg.indexOf(e+":ok"),o=0===t.errMsg.indexOf(e+":cancel"),a=0===t.errMsg.indexOf(e+":fail");if("function"==typeof i.beforeAll&&i.beforeAll(t),n)"function"==typeof i.beforeSuccess&&i.beforeSuccess(t),"function"==typeof r.success&&r.success(t),"function"==typeof i.afterSuccess&&i.afterSuccess(t);else if(o)t.errMsg=t.errMsg.replace(e+":cancel",e+":fail cancel"),"function"==typeof r.fail&&r.fail(t),"function"==typeof i.beforeCancel&&i.beforeCancel(t),"function"==typeof r.cancel&&r.cancel(t),"function"==typeof i.afterCancel&&i.afterCancel(t);else if(a){"function"==typeof i.beforeFail&&i.beforeFail(t),"function"==typeof r.fail&&r.fail(t);var s=!0;"function"==typeof i.afterFail&&(s=i.afterFail(t)),!1!==s&&Reporter.reportIDKey({key:e+"_fail"})}"function"==typeof r.complete&&r.complete(t),"function"==typeof i.afterAll&&i.afterAll(t)}(u.msg),Reporter.reportIDKey({key:e})}function u(e,t,n){var o={};for(var i in t)"function"==typeof t[i]&&(o[i]=Reporter.surroundThirdByTryCatch(t[i],"at api "+e+" "+i+" callback function"),delete t[i]);var a={};for(var s in n)"function"==typeof n[s]&&(a[s]=Reporter.surroundThirdByTryCatch(n[s],"at api "+e+" "+s+" callback function"));r(e,t,function(t){t.errMsg=t.errMsg||e+":ok";var n=0===t.errMsg.indexOf(e+":ok"),r=0===t.errMsg.indexOf(e+":cancel"),i=0===t.errMsg.indexOf(e+":fail");if("function"==typeof a.beforeAll&&a.beforeAll(t),n)"function"==typeof a.beforeSuccess&&a.beforeSuccess(t),"function"==typeof o.success&&o.success(t),"function"==typeof a.afterSuccess&&a.afterSuccess(t);else if(r)t.errMsg=t.errMsg.replace(e+":cancel",e+":fail cancel"),"function"==typeof o.fail&&o.fail(t),"function"==typeof a.beforeCancel&&a.beforeCancel(t),"function"==typeof o.cancel&&o.cancel(t),"function"==typeof a.afterCancel&&a.afterCancel(t);else if(i){"function"==typeof a.beforeFail&&a.beforeFail(t),"function"==typeof o.fail&&o.fail(t);var s=!0;"function"==typeof a.afterFail&&(s=a.afterFail(t)),!1!==s&&Reporter.reportIDKey({key:e+"_fail"})}"function"==typeof o.complete&&o.complete(t),"function"==typeof a.afterAll&&a.afterAll(t)}),Reporter.reportIDKey({key:e})}function c(){}function l(e,t){o(e,Reporter.surroundThirdByTryCatch(t,"at api "+e+" callback function"))}function d(e,t,n){var r=v.default.paramCheck(t,n);return!r||(f(e,t,"parameter error: "+r),!1)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=e+":fail "+n;console.error(r);var o=Reporter.surroundThirdByTryCatch(t.fail||c,"at api "+e+" fail callback function"),i=Reporter.surroundThirdByTryCatch(t.complete||c,"at api "+e+" complete callback function");o({errMsg:r}),i({errMsg:r})}function h(e,t,n){var r=t.replace(/\.html\?.*|\.html$/,"");return-1!==__wxConfig.pages.indexOf(r)||(f(e,n,'url "'+v.default.removeHtmlSuffixFromUrl(t)+'" is not in app.json'),!1)}Object.defineProperty(t,"__esModule",{value:!0});var p=n(7),v=function(e){return e&&e.__esModule?e:{default:e}}(p),g=n(220),m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(g);t.default={invoke:r,on:o,publish:i,subscribe:a,invokeMethod:u,invokeMethodSync:s,onMethod:l,noop:c,beforeInvoke:d,beforeInvokeFail:f,checkUrlInConfig:h}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=r(o),a=n(5),s=r(a),u=n(79),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(u),l=n(50),d=r(l),f=function(){};f.prototype=(0,s.default)(Object.prototype,{constructor:{value:f,writable:!0,configurable:!0}});var h=null;f._setCompnentSystem=function(e){h=e},f.initialize=function(e){e.__attached=!1,e.parentNode=null,e.childNodes=[],e.__slotParent=null,e.__slotChildren=e.childNodes,e.__subtreeObserversCount=0};var p=function(e){if(!e.parentNode||e.parentNode.__attached){!function e(t){t.__attached=!0,t.shadowRoot instanceof f&&e(t.shadowRoot);var n=t.childNodes;if(n)for(var r=0;r<n.length;r++)e(n[r])}(e);!function e(t){t.__lifeTimeFuncs&&h._callLifeTimeFuncs(t,"attached"),t.shadowRoot instanceof f&&e(t.shadowRoot);var n=t.childNodes;if(n)for(var r=0;r<n.length;r++)e(n[r])}(e)}},v=function(e){if(e.__attached){!function e(t){t.__attached=!1,t.shadowRoot instanceof f&&e(t.shadowRoot);var n=t.childNodes;if(n)for(var r=0;r<n.length;r++)e(n[r])}(e);!function e(t){t.__lifeTimeFuncs&&h._callLifeTimeFuncs(t,"detached"),t.shadowRoot instanceof f&&e(t.shadowRoot);var n=t.childNodes;if(n)for(var r=0;r<n.length;r++)e(n[r])}(e)}},g=function(e,t,n){if(e.__childObservers&&!e.__childObservers.empty||e.__subtreeObserversCount){var r=null;r="add"===t?{type:"childList",target:e,addedNodes:[n]}:{type:"childList",target:e,removedNodes:[n]},d.default._callObservers(e,"__childObservers",r)}},m=function(e,t,n,r){var o=e;if(o instanceof f){for(;o.__virtual;){var i=o.__slotParent;if(!i)return;if(t&&!n){var a=i.__slotChildren.indexOf(o);n=i.__slotChildren[a+1]}o=i}o instanceof f&&(o=o.__domElement)}var s=null;if(t)if(t.__virtual){var u=document.createDocumentFragment();!function e(t){for(var n=0;n<t.__slotChildren.length;n++){var r=t.__slotChildren[n];r.__virtual?e(r):u.appendChild(r.__domElement)}}(t),s=u}else s=t.__domElement;var c=null;if(n)if(n.__virtual){var l=e,d=0;if(r){!function e(t){for(var n=0;n<t.__slotChildren.length;n++){var r=t.__slotChildren[n];r.__virtual?e(r):o.removeChild(r.__domElement)}}(n),r=!1,d=e.__slotChildren.indexOf(n)+1}else l=n.__slotParent,d=l.__slotChildren.indexOf(n);if(t){n=null;for(var h=l;!(n=function e(t,n){for(;n<t.__slotChildren.length;n++){var r=t.__slotChildren[n];if(!r.__virtual)return r;var o=e(r,0);if(o)return o}}(h,d))&&h.__virtual;h=h.__slotParent)d=h.__slotParent.__slotChildren.indexOf(h)+1;n&&(c=n.__domElement)}}else c=n.__domElement;r?s?o.replaceChild(s,c):o.removeChild(c):s&&(c?o.insertBefore(s,c):o.appendChild(s))},y=function(e,t,n,r){var o=-1;if(n&&(o=e.childNodes.indexOf(n))<0)return!1;r&&(t===n?r=!1:(e.__subtreeObserversCount&&d.default._updateSubtreeCaches(n,-e.__subtreeObserversCount),n.parentNode=null,n.__slotParent=null));var i=null,a=e;if(e.__slots&&(a=e.__slots[""]),t){i=t.parentNode,t.parentNode=e,t.__slotParent=a;var s=e.__subtreeObserversCount;if(i){var u=i.childNodes.indexOf(t);i.childNodes.splice(u,1),i===e&&u<o&&o--,s-=i.__subtreeObserversCount}s&&d.default._updateSubtreeCaches(t,s)}return m(a,t,n,r),-1===o&&(o=e.childNodes.length),t?e.childNodes.splice(o,r?1:0,t):e.childNodes.splice(o,r?1:0),r&&(v(n),g(e,"remove",n)),t&&(i&&(v(t),g(i,"remove",t)),p(t),g(e,"add",t)),!0},_=function(e,t,n,r){var o=r?n:t;return y(e,t,n,r)?o:null};f._attachShadowRoot=function(e,t){m(e,t,null,!1)},f.appendChild=function(e,t){return _(e,t,null,!1)},f.insertBefore=function(e,t,n){return _(e,t,n,!1)},f.removeChild=function(e,t){return _(e,null,t,!0)},f.replaceChild=function(e,t,n){return _(e,t,n,!0)},f.replaceDocumentElement=function(e,t){e.__attached||(t.parentNode.replaceChild(e.__domElement,t),p(e))};var b=function(e,t){var n=e.match(/^(#[_a-zA-Z][-_a-zA-Z0-9:]*|)((?:\.-?[_a-zA-Z][-_a-zA-Z0-9]*)+|)$/);if(!n)return null;var r=n[1].slice(1),o=n[2].split(".");return o.shift(),r||o.length?{id:r,classes:o,relation:t||""}:null};f.parseSelector=function(e){for(var t=e.split(","),n=[],r=0;r<t.length;r++){for(var o=t[r].split(/( |\t|>)/g),i=[],a="",s=0;s<o.length;s++){var u=o[s];if(u&&" "!==u&&"\t"!==u)if(">"!==u){var c=b(u,a);if(a="",!c)break;i.push(c)}else{if(""!==a)break;a="child"}}s===o.length&&i.length&&n.push(i)}return n.length?n:null};var w=f.parseSelector;f.prototype.appendChild=function(e){return _(this,e,null,!1)},f.prototype.insertBefore=function(e,t){return _(this,e,t,!1)},f.prototype.removeChild=function(e){return _(this,null,e,!0)},f.prototype.replaceChild=function(e,t){return _(this,e,t,!0)},f.prototype.triggerEvent=function(e,t,n){c.triggerEvent(this,e,t,n)},f.prototype.addListener=function(e,t){c.addListenerToElement(this,e,t)},f.prototype.removeListener=function(e,t){c.removeListenerFromElement(this,e,t)},f.prototype.hasBehavior=function(e){return!!this.__behavior&&this.__behavior.hasBehavior(e)};var x=function e(t,n,r,o,i,a){var s=r[o],u=!0;s.id&&s.id!==n.__id&&(u=!1);for(var c=s.classes,l=0;u&&l<c.length;l++)n.classList.contains(c[l])||(u=!1);if(u&&0===o)return!0;if(n===t)return!1;for(var d=i?n.__wxSlotParent:n.parentNode;d&&d.__virtual;){if(d===t)return!1;d=i?d.__wxSlotParent:d.parentNode}return!!d&&(u?e(t,d,r,o-1,i,""===s.relation):!!a&&e(t,d,r,o,i,!0))},k=function(e,t,n,r){if(n.__virtual)return!1;for(var o=0;o<e.length;o++){var i=e[o];if(x(t,n,i,i.length-1,r,!1))return!0}return!1},T=function e(t,n,r,o,i,a){if(k(n,r,o,i)&&(t.push(o),a))return!0;for(var s=i?o.__wxSlotChildren:o.childNodes,u=0;u<s.length;u++)if(s[u]instanceof f&&e(t,n,r,s[u],i,a)&&a)return!0;return!1};f.prototype.querySelector=function(e,t){var n="object"===(void 0===e?"undefined":(0,i.default)(e))?e:w(e);if(!n)return null;var r=[];return T(r,n,this,this,t,!0),r[0]||null},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={PATCH_TYPE:{NONE:0,TEXT:1,VNODE:2,PROPS:3,REORDER:4,INSERT:5,REMOVE:6},WX_KEY:"wxKey",ATTRIBUTE_NAME:["class","style"],RPX_RATE:20,BASE_DEVICE_WIDTH:750,INLINE_STYLE:["placeholderStyle","hoverStyle","style"]}},function(e,t,n){n(127);for(var r=n(8),o=n(18),i=n(33),a=n(6)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var c=s[u],l=r[c],d=l&&l.prototype;d&&!d[a]&&o(d,a,c),i[c]=i.Array}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(11).f,o=n(19),i=n(6)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){var n=Object.prototype.toString;e.exports=function(e){switch(n.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===e?"null":void 0===e?"undefined":e!==e?"nan":e&&1===e.nodeType?"element":typeof(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e))}},function(e,t){function n(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-r)),o=setTimeout(e,n);return r=t,o}t=e.exports=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||n;var r=(new Date).getTime(),o=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.clearTimeout;t.cancel=function(e){o.call(window,e)}},function(e,t,n){function r(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}try{var o=n(101)}catch(e){var o=n(101)}var i=/\s+/,a=Object.prototype.toString;e.exports=function(e){return new r(e)},r.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~o(t,e)||t.push(e),this.el.className=t.join(" "),this},r.prototype.remove=function(e){if("[object RegExp]"==a.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=o(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},r.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},r.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},r.prototype.array=function(){var e=this.el.getAttribute("class")||"",t=e.replace(/^\s+|\s+$/g,""),n=t.split(i);return""===n[0]&&n.shift(),n},r.prototype.has=r.prototype.contains=function(e){return this.list?this.list.contains(e):!!~o(this.array(),e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={AppStatus:{FORE_GROUND:0,BACK_GROUND:1,LOCLOCKK:2}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=r(o),a=n(30),s=r(a),u=function(){};u.prototype=(0,i.default)(Object.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),u.create=function(e){var t=(0,i.default)(u.prototype);return t._cb=e,t._noSubtreeCb=function(t){t.target===this&&e.call(this,t)},t._binded=[],t};var c=u._updateSubtreeCaches=function(e,t){e.__subtreeObserversCount+=t;var n=e.childNodes;if(n)for(var r=0;r<n.length;r++)c(n[r],t)};u.prototype.observe=function(e,t){t=t||{};var n=0,r=t.subtree?this._cb:this._noSubtreeCb;t.properties&&(e.__propObservers||(e.__propObservers=s.default.create("Observer Callback")),this._binded.push({funcArr:e.__propObservers,id:e.__propObservers.add(r),subtree:t.subtree?e:null}),n++),t.childList&&(e.__childObservers||(e.__childObservers=s.default.create("Observer Callback")),this._binded.push({funcArr:e.__childObservers,id:e.__childObservers.add(r),subtree:t.subtree?e:null}),n++),t.characterData&&(e.__textObservers||(e.__textObservers=s.default.create("Observer Callback")),this._binded.push({funcArr:e.__textObservers,id:e.__textObservers.add(r),subtree:t.subtree?e:null}),n++),t.subtree&&c(e,n)},u.prototype.disconnect=function(){for(var e=this._binded,t=0;t<e.length;t++){var n=e[t];n.funcArr.remove(n.id),n.subtree&&c(n.subtree,-1)}this._binded=[]},u._callObservers=function(e,t,n){do{e[t]&&e[t].call(e,[n]),e=e.parentNode}while(e&&e.__subtreeObserversCount)},t.default=u},function(e,t,n){e.exports={default:n(166),__esModule:!0}},function(e,t,n){e.exports={default:n(174),__esModule:!0}},function(e,t){},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(27),o=n(8).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(27);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(12),o=n(124),i=n(63),a=n(61)("IE_PROTO"),s=function(){},u=function(){var e,t=n(57)("iframe"),r=i.length;for(t.style.display="none",n(87).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(54),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(62)("keys"),o=n(43);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(8),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(80),o=n(6)("iterator"),i=n(33);e.exports=n(2).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){i({msg:{eventName:"onAppRoute",data:{path:e+".wxml",query:t,openType:n}}})}function i(e){var t=k?k.id:0,n=e.msg||{};ServiceJSBridge.subscribeHandler(n.eventName,n.data||{},t)}function a(){var e=window.__root__,t=location.hash.replace(/^#!/,""),n=t?[t]:[e];if(sessionStorage){var r=sessionStorage.getItem("weweb_routes");if(r){var o=r.split("|");o.indexOf(t)===o.length-1&&(n=o)}}return n}function s(){var e=location.protocol+"//"+location.host+location.pathname;"function"==typeof history.replaceState&&history.replaceState({},"",e+"#!"+k.url),x.emit("route",k);for(var t=[],n=k;n;)t.push(n.url),n=null!=n.pid?T[n.pid]:null;var r=t.reverse().join("|");sessionStorage.setItem("weweb_routes",r)}function u(){k.external||o(k.path,k.query,"navigateBack")}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"navigateTo";if(!e)throw new Error("url not found");if("reLaunch"==t&&m.isTabbar(k.path)&&k.query)return void console.error("wx.reLaunch 跳转到 tabbar 页面时不允许携带参数,请去除参数或使用 wx.switchTab");k.onReady(function(){o(k.path,k.query,t)})}Object.defineProperty(t,"__esModule",{value:!0});var l=n(9),d=r(l),f=n(81),h=r(f),p=n(4),v=r(p);t.lifeSycleEvent=o;var g=n(21),m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(g),y=n(163),_=r(y),b=n(178),w=r(b),x=m.getBus(),k=null,T={},S={};window.__wxConfig||(Object.defineProperty(window,"__wxConfig",{get:function(){return k?k.getConfig():__wxConfig__}}),Object.defineProperty(window,"__curPage__",{get:function(){return k},set:function(e){k[e.name]=e.value}}),window.addEventListener("message",function(e){var t=e.data||{};"object"!==(void 0===t?"undefined":(0,v.default)(t))||"geolocation"!==t.module&&"locationPicker"!==t.module||("geolocation"==t.module&&(t={module:"locationPicker",latlng:{lat:t.lat,lng:t.lng},poiaddress:""+t.province+t.city,poiname:t.addr,cityname:t.city}),k.setLocation(t))}));var C={onLaunch:function(){var e=a(),t=e.shift(),n=m.validPath(t),r=n?t:window.__root__;if(this.navigateTo(r,!0),!n)return void console.warn("Invalid route: "+t+", redirect to root");if(e.length){w.default.show();var o=k.id;x.once("ready",function(t){if(w.default.hide(),t===o){var r=!0,a=!1,s=void 0;try{for(var u,c=(0,h.default)(e);!(r=(u=c.next()).done);r=!0){var l=u.value;if(!(n=m.validPath(l))){console.warn("无法在 pages 配置中找到 "+l+",停止路由");break}i({msg:{eventName:"custom_event_INVOKE_METHOD",data:{data:{name:"navigateTo",args:{url:"/"+l}}}}})}}catch(e){a=!0,s=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw s}}}})}},redirectTo:function(e){if(e=m.normalize(e),!k)throw new Error("Current view not exists");var t=k.pid;k.destroy(),delete T[k.id];var n=k=new _.default(e);k.pid=t,T[k.id]=n,s(),c(e,"redirectTo")},navigateTo:function(e,t){e=m.normalize(e);var n=S[e];if(k&&k.hide(),n&&n.__DOMTree__)k=n,n.show();else{var r=m.isTabbar(e),o=k?k.id:null,i=k=new _.default(e);k.pid=r?null:o,T[i.id]=i,r&&(S[e]=k)}s(),t?c(e,"appLaunch"):c(e,"navigateTo")},reLaunch:function(e){sessionStorage.clear(),e=m.normalize(e);var t=S[e];if(k&&k.hide(),t&&t.__DOMTree__)k=t,t.show();else{var n=m.isTabbar(e),r=k=new _.default(e);k.pid=null,T=[],T[r.id]=r,n&&(S[e]=k)}s(),c(e,"reLaunch")},switchTab:function(e){e=m.normalize(e),m.isTabbar(k.path)&&k.hide();var t=S[e];if((0,d.default)(T).forEach(function(e){var t=T[e];m.isTabbar(t.path)||(t.destroy(),delete T[e])}),t&&t.__DOMTree__)k=t,t.show();else{var n=m.isTabbar(e),r=k?k.id:null,o=k=new _.default(e);k.pid=n?null:r,T[o.id]=o,n&&(S[e]=k)}s(),c(e,"switchTab")},navigateBack:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(!k)throw new Error("Current page not exists");if(null!=k.pid){for(var t=e;t>0&&null!=k.pid;t--)k.destroy(),delete T[k.id],k=T[k.pid],u();k.show(),s(),c(k.path,"navigateBack")}},openExternal:function(e){console.log("openExternal start!!!"),k&&k.hide();var t=k?k.id:null,n=k=new _.default(e);T[n.id]=n,n.pid=t,n.show(),s()},currentView:function(){return k},getViewById:function(e){return T[e]},getViewIds:function(){return(0,d.default)(T).map(function(e){return Number(e)})},eachView:function(e){this.getViewIds().forEach(function(t){e.call(null,T[t])})}};t.default=C},function(e,t,n){t.f=n(6)},function(e,t,n){var r=n(8),o=n(2),i=n(42),a=n(67),s=n(11).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnP