Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build h5 运行报错 #3542

Closed
yangyutang opened this issue Jun 25, 2019 · 10 comments
Closed

build h5 运行报错 #3542

yangyutang opened this issue Jun 25, 2019 · 10 comments

Comments

@yangyutang
Copy link

app.js?d0a8:121 Uncaught ReferenceError: Nerv is not defined
at eval (app.js?d0a8:121)
at Module../.temp/app.js (app.js:915)
at webpack_require (app.js:767)
at fn (app.js:130)
at Object.0 (app.js:2146)
at webpack_require (app.js:767)
at app.js:902
at app.js:905
(anonymous) @ app.js?d0a8:121
./.temp/app.js @ app.js:915
webpack_require @ app.js:767
fn @ app.js:130
0 @ app.js:2146
webpack_require @ app.js:767
(anonymous) @ app.js:902
(anonymous) @ app.js:905

@taro-bot
Copy link

taro-bot bot commented Jun 25, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@yangyutang
Copy link
Author

taro版本1.3.4
app.js代码:
!function(e){function webpackJsonpCallback(t){for(var n,o,i=t[0],a=t[1],u=0,s=[];u<i.length;u++)o=i[u],r[o]&&s.push(r[o][0]),r[o]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);s.length;)s.shift()()}var t={},n={"4":0},r={"4":0};function webpack_require(n){if(t[n])return t[n].exports;var r=t[n]={"i":n,"l":!1,"exports":{}};return e[n].call(r.exports,r,r.exports,webpack_require),r.l=!0,r.exports}webpack_require.e=function requireEnsure(e){var t=[];n[e]?t.push(n[e]):0!==n[e]&&{"1":1,"3":1,"6":1,"7":1}[e]&&t.push(n[e]=new Promise(function(t,n){for(var r="css/"+({"2":"Hangban_Hangban","3":"Main_Main","5":"guanli_guanli","6":"index_index","7":"logs_logs","8":"maipiao_maipiao","9":"zhiji_zhiji"}[e]||e)+".css",o=webpack_require.p+r,i=document.getElementsByTagName("link"),a=0;a<i.length;a++){var c=(s=i[a]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(c===r||c===o))return t()}var u=document.getElementsByTagName("style");for(a=0;a<u.length;a++){var s;if((c=(s=u[a]).getAttribute("data-href"))===r||c===o)return t()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=t,l.onerror=function(t){var r=t&&t.target&&t.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.request=r,n(i)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){n[e]=0}));var o=r[e];if(0!==o)if(o)t.push(o[2]);else{var i=new Promise(function(t,n){o=r[e]=[t,n]});t.push(o[2]=i);var a,c=document.createElement("script");c.charset="utf-8",c.timeout=120,webpack_require.nc&&c.setAttribute("nonce",webpack_require.nc),c.src=function jsonpScriptSrc(e){return webpack_require.p+"chunk/"+({"2":"Hangban_Hangban","3":"Main_Main","5":"guanli_guanli","6":"index_index","7":"logs_logs","8":"maipiao_maipiao","9":"zhiji_zhiji"}[e]||e)+".js"}(e),a=function(t){c.onerror=c.onload=null,clearTimeout(u);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src,a=new Error("Loading chunk "+e+" failed.\n("+o+": "+i+")");a.type=o,a.request=i,n1}r[e]=void 0}};var u=setTimeout(function(){a({"type":"timeout","target":c})},12e4);c.onerror=c.onload=a,document.head.appendChild(c)}return Promise.all(t)},webpack_require.m=e,webpack_require.c=t,webpack_require.d=function(e,t,n){webpack_require.o(e,t)||Object.defineProperty(e,t,{"enumerable":!0,"get":n})},webpack_require.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{"value":"Module"}),Object.defineProperty(e,"__esModule",{"value":!0})},webpack_require.t=function(e,t){if(1&t&&(e=webpack_require(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(webpack_require.r(n),Object.defineProperty(n,"default",{"enumerable":!0,"value":e}),2&t&&"string"!=typeof e)for(var r in e)webpack_require.d(n,r,function(t){return e[t]}.bind(null,r));return n},webpack_require.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return webpack_require.d(t,"a",t),t},webpack_require.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},webpack_require.p="/",webpack_require.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],i=o.push.bind(o);o.push=webpackJsonpCallback,o=o.slice();for(var a=0;a<o.length;a++)webpackJsonpCallback(o[a]);var c=i;webpack_require(webpack_require.s=10)}([function(e,t,n){"use strict";n.d(t,"f",function(){return shouleBeObject}),n.d(t,"c",function(){return getParameterError}),n.d(t,"g",function(){return successHandler}),n.d(t,"b",function(){return errorHandler}),n.d(t,"h",function(){return temporarilyNotSupport}),n.d(t,"e",function(){return permanentlyNotSupport}),n.d(t,"d",function(){return i}),n.d(t,"a",function(){return a});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function shouleBeObject(e){return e&&"object"===(void 0===e?"undefined":r(e))?{"res":!0}:{"res":!1,"msg":getParameterError({"correct":"Object","wrong":e})}}function getParameterError(e){var t=e.name,n=void 0===t?"":t,o=e.para,i=e.correct,a=e.wrong;return n+":fail parameter error: "+(o?"parameter."+o:"parameter")+" should be "+i+" instead of "+function upperCaseFirstLetter(e){return"string"!=typeof e?e:e=e.replace(/^./,function(e){return e.toUpperCase()})}(null===a?"Null":void 0===a?"undefined":r(a))}function isFunction(e){return"function"==typeof e}function successHandler(e,t){return function(n){return isFunction(e)&&e(n),isFunction(t)&&t(n),Promise.resolve(n)}}function errorHandler(e,t){return function(n){return isFunction(e)&&e(n),isFunction(t)&&t(n),Promise.reject(n)}}function temporarilyNotSupport(e){return function(){var t="暂时不支持 API "+e;return console.error(t),Promise.reject({"errMsg":t})}}function permanentlyNotSupport(e){return function(){var t="不支持 API "+e;return console.error(t),Promise.reject({"errMsg":t})}}var o=/^#[0-9a-fA-F]{6}$/,i=function isValidColor(e){return o.test(e)},a=function createCallbackManager(){var e=[];return{"add":function add(t){e.push(t)},"remove":function remove(t){var n=-1;e.forEach(function(e,r){e===t&&(n=r)}),n>-1&&e.splice(n,1)},"count":function count(){return e.length},"trigger":function trigger(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach(function(e){if("function"==typeof e)e.apply(void 0,n);else{var t=e.callback,r=e.ctx;t.call.apply(t,[r].concat(n))}})}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return G}),n.d(t,"e",function(){return createElement$2}),n.d(t,"c",function(){return cloneElement}),n.d(t,"o",function(){return p}),n.d(t,"p",function(){return q}),n.d(t,"j",function(){return findDOMNode}),n.d(t,"m",function(){return isValidElement$1}),n.d(t,"q",function(){return unmountComponentAtNode}),n.d(t,"g",function(){return createPortal}),n.d(t,"s",function(){return unstable_renderSubtreeIntoContainer}),n.d(t,"l",function(){return hydrate}),n.d(t,"f",function(){return createFactory}),n.d(t,"r",function(){return X}),n.d(t,"C",function(){return Y}),n.d(t,"b",function(){return Q}),n.d(t,"h",function(){return createRef}),n.d(t,"k",function(){return forwardRef}),n.d(t,"n",function(){return memo}),n.d(t,"d",function(){return createContext}),n.d(t,"v",function(){return useEffect}),n.d(t,"x",function(){return useLayoutEffect}),n.d(t,"z",function(){return useReducer}),n.d(t,"B",function(){return useState}),n.d(t,"A",function(){return useRef}),n.d(t,"t",function(){return useCallback}),n.d(t,"y",function(){return useMemo}),n.d(t,"w",function(){return useImperativeHandle}),n.d(t,"u",function(){return useContext});var r=function(){var e;if(void 0!==r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("global object is unavailable in this environment")}return e}(),o="undefined"!=typeof window;function noop(){}var i=o?document:{"createElement":noop,"createElementNS":noop,"createTextNode":noop},a=o&&navigator.platform&&/mac/i.test(navigator.platform)&&/^((?!chrome|android).)safari/i.test(navigator.userAgent);function isNumber(e){return"number"==typeof e}var c=isFunction(i.createAttributeNS);function isString(e){return"string"==typeof e}function isFunction(e){return"function"==typeof e}var u=Array.isArray;function isObject(e){return e===Object(e)&&!isFunction(e)}function isUndefined(e){return void 0===e}function objectIs(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var s,l="Promise"in r&&!a;l&&(s=Promise.resolve());var p=function nextTick(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(e=isFunction(e)?e.bind.apply(e,[null].concat(t)):e,l)return s.then(e);("requestAnimationFrame"in r&&!a?requestAnimationFrame:setTimeout)(e)};function shallowEqual(e,t){if(null===e||null===t)return!1;if(Object.is(e,t))return!0;var n=e?Object.keys(e):[],r=t?Object.keys(t):[];if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!t.hasOwnProperty(i)||!Object.is(e[i],t[i]))return!1}return!0}Object.is=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var f=function SimpleMap(){this.cache=[],this.size=0};f.prototype.set=function set(e,t){var n=this.cache.length;if(!n)return this.cache.push({"k":e,"v":t}),void(this.size+=1);for(var r=0;r<n;r++){var o=this.cache[r];if(o.k===e)return void(o.v=t)}this.cache.push({"k":e,"v":t}),this.size+=1},f.prototype.get=function get(e){var t=this.cache.length;if(t)for(var n=0;n<t;n++){var r=this.cache[n];if(r.k===e)return r.v}},f.prototype.has=function has(e){var t=this.cache.length;if(!t)return!1;for(var n=0;n<t;n++){if(this.cache[n].k===e)return!0}return!1},f.prototype.delete=function delete$1(e){for(var t=this.cache.length,n=0;n<t;n++){if(this.cache[n].k===e)return this.cache.splice(n,1),this.size-=1,!0}return!1},f.prototype.clear=function clear(){var e=this.cache.length;if(this.size=0,e)for(;e;)this.cache.pop(),e--};var d="Map"in r?Map:f;function isAttrAnEvent(e){return"o"===e[0]&&"n"===e[1]}var v="assign"in Object?function(e,t){return t?(Object.assign(e,t),e):e}:function(e,t){if(!t)return e;for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};function clone(e){return v({},e)}var m,y={"current":null,"index":0},g=[],b={};function isNullOrUndef(e){return void 0===e||null===e}function isInvalid(e){return isNullOrUndef(e)||!0===e||!1===e}function isVNode(e){return!isNullOrUndef(e)&&2===e.vtype}function isComponent(e){return!isInvalid(e)&&e.isReactComponent===b}function isPortal(e,t){return(32&e)>0}function isComposite(e){return!isNullOrUndef(e)&&4===e.vtype}function isValidElement(e){return!isNullOrUndef(e)&&e.vtype}function noop$1(){}!function(e){e[e.Text=1]="Text",e[e.Node=2]="Node",e[e.Composite=4]="Composite",e[e.Void=16]="Void",e[e.Portal=32]="Portal"}(m||(m={}));var ={"update":function update(e,t,n){var r=null!=e&&e.ref,o=null!=t&&t.ref;r!==o&&(this.detach(e,r,e.dom),this.attach(t,o,n))},"attach":function attach(e,t,n){var r=isComposite(e)?e.component:n;if(isFunction(t))errorCatcher(function(){t(r)},isComposite(e)?e.component:e);else if(isString(t)){var o=e.owner;o&&isFunction(o.render)&&(o.refs[t]=r)}else isObject(t)&&(t.current=r)},"detach":function detach(e,t,n){var r=isComposite(e)?e.component:n;if(isFunction(t))errorCatcher(function(){t(null)},isComposite(e)?e.component:e);else if(isString(t)){var o=e.owner;o.refs[t]===r&&isFunction(o.render)&&delete o.refs[t]}else isObject(t)&&(t.current=null)}},C="oninput",O="onpropertychange",j=o&&!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),k=new d,w={"onmousemove":1,"ontouchmove":1,"onmouseleave":1,"onmouseenter":1,"onload":1,"onunload":1,"onscroll":1,"onfocus":1,"onblur":1,"onrowexit":1,"onbeforeunload":1,"onstop":1,"ondragdrop":1,"ondragenter":1,"ondragexit":1,"ondraggesture":1,"ondragover":1,"oncontextmenu":1,"onerror":1,"onabort":1,"oncanplay":1,"oncanplaythrough":1,"ondurationchange":1,"onemptied":1,"onended":1,"onloadeddata":1,"onloadedmetadata":1,"onloadstart":1,"onencrypted":1,"onpause":1,"onplay":1,"onplaying":1,"onprogress":1,"onratechange":1,"onseeking":1,"onseeked":1,"onstalled":1,"onsuspend":1,"ontimeupdate":1,"onvolumechange":1,"onwaiting":1};w[O]=1;var S,P,x,E=!1;if(o&&navigator.userAgent.indexOf("MSIE 9")>=0){var A=[],T=[];i.addEventListener("selectionchange",function(){var e=i.activeElement;if(detectCanUseOnInputNode(e)){var t=A.indexOf(e),n=A[t]||A.push(e);if(n.value!==T[t]){var r=i.createEvent("CustomEvent");r.initCustomEvent("input",!0,!0,void 0),T[t]=n.value,e.dispatchEvent(r)}}})}function attachEvent(e,t,n){if((t=fixEvent(e,t))!==O){var r=k.get(t);if(1===w[t]){r||(r=new d);var o=function attachEventToNode(e,t,n){var r=function eventHandler(t){var r=n.get(e);if(r&&r.eventHandler){var o={"currentTarget":e};Object.defineProperties(t,{"currentTarget":{"configurable":!0,"get":function get(){return o.currentTarget}}}),r.eventHandler(t)}};return e.addEventListener(parseEventName(t),r,!1),r}(e,t,r);k.set(t,r),isFunction(n)&&r.set(e,{"eventHandler":n,"event":o})}else r||((r={"items":new d}).event=function attachEventToDocument(e,t,n){var r=function eventHandler(e){var t=n.items,r=t.size;if(r>0){var o={"currentTarget":e.target};try{Object.defineProperties(e,{"currentTarget":{"configurable":!0,"get":function get(){return o.currentTarget}},"stopPropagation":{"value":stopPropagation}})}catch(e){}!function dispatchEvent(e,t,n,r,o){var i=n.get(t);if(i&&(r--,o.currentTarget=t,Object.defineProperties(e,{"nativeEvent":{"value":e}}),i(e),e.cancelBubble))return;if(r>0){var a=t.parentNode;if(null===a||"click"===e.type&&1===a.nodeType&&a.disabled)return;dispatchEvent(e,a,n,r,o)}}(e,e.target,n.items,r,o)}};return e.addEventListener(parseEventName(t),r,!1),r}(i,t,r),k.set(t,r)),isFunction(n)&&(j&&(e.onclick=noop$1),r.items.set(e,n))}else(function processOnPropertyChangeEvent(e,t){N[e.name]=t,E||(e.addEventListener("focusin",function(){unbindOnPropertyChange(),function bindOnPropertyChange(e){S=e,P=e.value,x=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(S,"value",{"get":function get(){return x.get.call(this)},"set":function set(e){P=e,x.set.call(this,e)}}),S.addEventListener("propertychange",propertyChangeHandler,!1)}(e)},!1),e.addEventListener("focusout",unbindOnPropertyChange,!1))})(e,n)}function detachEvent(e,t,n){if((t=fixEvent(e,t))!==O){var r=k.get(t);if(1===w[t]&&r){var o=r.get(e);if(o){e.removeEventListener(parseEventName(t),o.event,!1);var a=r.size;r.delete(e)&&0===a&&k.delete(t)}}else if(r&&r.items){var c=r.items;c.delete(e)&&0===c.size&&(i.removeEventListener(parseEventName(t),r.event,!1),k.delete(t))}}}"undefined"==typeof Event||Event.prototype.persist||(Event.prototype.persist=noop$1);var N={};function propertyChangeHandler(e){if("value"===e.propertyName){var t=e.target||e.srcElement,n=t.value;if(n!==P){P=n;var r=N[t.name];isFunction(r)&&r.call(t,e)}}}function unbindOnPropertyChange(){S&&(delete S.value,S.removeEventListener("propertychange",propertyChangeHandler,!1),S=null,P=null,x=null)}function detectCanUseOnInputNode(e){var t=e.nodeName&&e.nodeName.toLowerCase(),n=e.type;return"input"===t&&/text|password/.test(n)||"textarea"===t}function fixEvent(e,t){return t="onDoubleClick"===t?"ondblclick":"onTouchTap"===t?"onclick":"onChange"===t&&detectCanUseOnInputNode(e)?C in window?C:O:t.toLowerCase()}function parseEventName(e){return e.substr(2)}function stopPropagation(){this.cancelBubble=!0,this.stopImmediatePropagation()}function unmountChildren(e,t){if(u(e))for(var n=0,r=e.length;n<r;n++)unmount(e[n],t);else unmount(e,t)}function unmount(e,t){if(!isInvalid(e)){var n=e.vtype,r=e.dom;if((4&n)>0)e.destroy();else if((2&n)>0){var o=e.props,i=e.children,a=e.ref;for(var c in unmountChildren(i),o)isAttrAnEvent(c)&&detachEvent(r,c,o[c]);null!==a&&.detach(e,a,r)}else 32&n&&unmountChildren(e.children,e.type);isNullOrUndef(t)||isNullOrUndef(r)||t.removeChild(r)}}var M="http://www.w3.org/1999/xlink",R="http://www.w3.org/XML/1998/namespace",L={"accentHeight":"accent-height","accumulate":0,"additive":0,"alignmentBaseline":"alignment-baseline","allowReorder":"allowReorder","alphabetic":0,"amplitude":0,"arabicForm":"arabic-form","ascent":0,"attributeName":"attributeName","attributeType":"attributeType","autoReverse":"autoReverse","azimuth":0,"baseFrequency":"baseFrequency","baseProfile":"baseProfile","baselineShift":"baseline-shift","bbox":0,"begin":0,"bias":0,"by":0,"calcMode":"calcMode","capHeight":"cap-height","clip":0,"clipPath":"clip-path","clipRule":"clip-rule","clipPathUnits":"clipPathUnits","colorInterpolation":"color-interpolation","colorInterpolationFilters":"color-interpolation-filters","colorProfile":"color-profile","colorRendering":"color-rendering","contentScriptType":"contentScriptType","contentStyleType":"contentStyleType","cursor":0,"cx":0,"cy":0,"d":0,"decelerate":0,"descent":0,"diffuseConstant":"diffuseConstant","direction":0,"display":0,"divisor":0,"dominantBaseline":"dominant-baseline","dur":0,"dx":0,"dy":0,"edgeMode":"edgeMode","elevation":0,"enableBackground":"enable-background","end":0,"evEvent":"ev:event","exponent":0,"externalResourcesRequired":"externalResourcesRequired","fill":0,"fillOpacity":"fill-opacity","fillRule":"fill-rule","filter":0,"filterRes":"filterRes","filterUnits":"filterUnits","floodColor":"flood-color","floodOpacity":"flood-opacity","focusable":0,"fontFamily":"font-family","fontSize":"font-size","fontSizeAdjust":"font-size-adjust","fontStretch":"font-stretch","fontStyle":"font-style","fontVariant":"font-variant","fontWeight":"font-weight","format":0,"from":0,"fx":0,"fy":0,"g1":0,"g2":0,"glyphName":"glyph-name","glyphOrientationHorizontal":"glyph-orientation-horizontal","glyphOrientationVertical":"glyph-orientation-vertical","glyphRef":"glyphRef","gradientTransform":"gradientTransform","gradientUnits":"gradientUnits","hanging":0,"horizAdvX":"horiz-adv-x","horizOriginX":"horiz-origin-x","ideographic":0,"imageRendering":"image-rendering","in":0,"in2":0,"intercept":0,"k":0,"k1":0,"k2":0,"k3":0,"k4":0,"kernelMatrix":"kernelMatrix","kernelUnitLength":"kernelUnitLength","kerning":0,"keyPoints":"keyPoints","keySplines":"keySplines","keyTimes":"keyTimes","lengthAdjust":"lengthAdjust","letterSpacing":"letter-spacing","lightingColor":"lighting-color","limitingConeAngle":"limitingConeAngle","local":0,"markerEnd":"marker-end","markerMid":"marker-mid","markerStart":"marker-start","markerHeight":"markerHeight","markerUnits":"markerUnits","markerWidth":"markerWidth","mask":0,"maskContentUnits":"maskContentUnits","maskUnits":"maskUnits","mathematical":0,"mode":0,"numOctaves":"numOctaves","offset":0,"opacity":0,"operator":0,"order":0,"orient":0,"orientation":0,"origin":0,"overflow":0,"overlinePosition":"overline-position","overlineThickness":"overline-thickness","paintOrder":"paint-order","panose1":"panose-1","pathLength":"pathLength","patternContentUnits":"patternContentUnits","patternTransform":"patternTransform","patternUnits":"patternUnits","pointerEvents":"pointer-events","points":0,"pointsAtX":"pointsAtX","pointsAtY":"pointsAtY","pointsAtZ":"pointsAtZ","preserveAlpha":"preserveAlpha","preserveAspectRatio":"preserveAspectRatio","primitiveUnits":"primitiveUnits","r":0,"radius":0,"refX":"refX","refY":"refY","renderingIntent":"rendering-intent","repeatCount":"repeatCount","repeatDur":"repeatDur","requiredExtensions":"requiredExtensions","requiredFeatures":"requiredFeatures","restart":0,"result":0,"rotate":0,"rx":0,"ry":0,"scale":0,"seed":0,"shapeRendering":"shape-rendering","slope":0,"spacing":0,"specularConstant":"specularConstant","specularExponent":"specularExponent","speed":0,"spreadMethod":"spreadMethod","startOffset":"startOffset","stdDeviation":"stdDeviation","stemh":0,"stemv":0,"stitchTiles":"stitchTiles","stopColor":"stop-color","stopOpacity":"stop-opacity","strikethroughPosition":"strikethrough-position","strikethroughThickness":"strikethrough-thickness","string":0,"stroke":0,"strokeDasharray":"stroke-dasharray","strokeDashoffset":"stroke-dashoffset","strokeLinecap":"stroke-linecap","strokeLinejoin":"stroke-linejoin","strokeMiterlimit":"stroke-miterlimit","strokeOpacity":"stroke-opacity","strokeWidth":"stroke-width","surfaceScale":"surfaceScale","systemLanguage":"systemLanguage","tableValues":"tableValues","targetX":"targetX","targetY":"targetY","textAnchor":"text-anchor","textDecoration":"text-decoration","textRendering":"text-rendering","textLength":"textLength","to":0,"transform":0,"u1":0,"u2":0,"underlinePosition":"underline-position","underlineThickness":"underline-thickness","unicode":0,"unicodeBidi":"unicode-bidi","unicodeRange":"unicode-range","unitsPerEm":"units-per-em","vAlphabetic":"v-alphabetic","vHanging":"v-hanging","vIdeographic":"v-ideographic","vMathematical":"v-mathematical","values":0,"vectorEffect":"vector-effect","version":0,"vertAdvY":"vert-adv-y","vertOriginX":"vert-origin-x","vertOriginY":"vert-origin-y","viewBox":"viewBox","viewTarget":"viewTarget","visibility":0,"widths":0,"wordSpacing":"word-spacing","writingMode":"writing-mode","x":0,"xHeight":"x-height","x1":0,"x2":0,"xChannelSelector":"xChannelSelector","xlinkActuate":"xlink:actuate","xlinkArcrole":"xlink:arcrole","xlinkHref":"xlink:href","xlinkRole":"xlink:role","xlinkShow":"xlink:show","xlinkTitle":"xlink:title","xlinkType":"xlink:type","xmlBase":"xml:base","xmlId":"xml:id","xmlns":0,"xmlnsXlink":"xmlns:xlink","xmlLang":"xml:lang","xmlSpace":"xml:space","y":0,"y1":0,"y2":0,"yChannelSelector":"yChannelSelector","z":0,"zoomAndPan":"zoomAndPan"},U={"Properties":{},"DOMAttributeNamespaces":{"ev:event":"http://www.w3.org/2001/xml-events","xlink:actuate":M,"xlink:arcrole":M,"xlink:href":M,"xlink:role":M,"xlink:show":M,"xlink:title":M,"xlink:type":M,"xml:base":R,"xml:id":R,"xml:lang":R,"xml:space":R},"DOMAttributeNames":{}};function patch(e,t,n,r,o){var i,a=e.dom;if(function isSameVNode(e,t){if(isInvalid(e)||isInvalid(t)||u(e)||u(t))return!1;return e.type===t.type&&e.vtype===t.vtype&&e.key===t.key}(e,t)){var c=t.vtype;if(2&c)(o=isNullOrUndef(o)?e.isSvg:o)&&(t.isSvg=o),function patchProps(e,t,n,r,o){for(var i in n){var a=n[i];isNullOrUndef(t[i])&&!isNullOrUndef(a)&&(isAttrAnEvent(i)?detachEvent(e,i):"dangerouslySetInnerHTML"===i?e.textContent="":"className"===i?e.removeAttribute("class"):e.removeAttribute(i))}for(var c in t)patchProp(e,c,n[c],t[c],r,o)}(a,t.props,e.props,e,o),patchChildren(a,e.children,t.children,r,o),null!==t.ref&&.update(e,t,a),i=a;else if((4&c)>0)i=t.update(e,t,r);else{if(1&c)return function patchVText(e,t){var n=e.dom;if(null===n)return;var r=t.text;t.dom=n,e.text!==r&&(n.nodeValue=r);return n}(e,t);32&c&&patchChildren(e.type,e.children,t.children,r,o)}t.dom=i||a}else u(e)&&u(t)?patchArrayChildren(a,e,t,r,!1):(unmount(e),i=createElement(t,o,r),null!==t&&(t.dom=i),null!==n&&n.replaceChild(i,a));return i}function patchArrayChildren(e,t,n,r,o){var i=t.length,a=n.length;if(0===i){if(a>0)for(var c=0;c<a;c++)mountChild(n[c],e,r,o)}else 0===a?(unmountChildren(t),e.textContent=""):!function isKeyed(e,t){return t.length>0&&!isNullOrUndef(t[0])&&!isNullOrUndef(t[0].key)&&e.length>0&&!isNullOrUndef(e[0])&&!isNullOrUndef(e[0].key)}(t,n)?function patchNonKeyedChildren(e,t,n,r,o,i,a){var c=Math.min(i,a),u=0;for(;u<c;)patch(t[u],n[u],e,r,o),u++;if(i<a)for(u=c;u<a;u++)null!==e&&e.appendChild(createElement(n[u],o,r));else if(i>a)for(u=c;u<i;u++)unmount(t[u],e)}(e,t,n,r,o,i,a):function patchKeyedChildren(e,t,n,r,o,i,a){var c,u,s,l,p,f,h,v=i-1,m=a-1,y=0,g=0,b=e[y],=t[g],C=e[v],O=t[m];e:{for(;b.key===.key;){if(patch(b,,n,r,o),g++,++y>v||g>m)break e;b=e[y],_=t[g]}for(;C.key===O.key;){if(patch(C,O,n,r,o),m--,y>--v||g>m)break e;C=e[v],O=t[m]}}if(y>v){if(g<=m)for(p=(f=m+1)<a?t[f].dom:null;g<=m;)h=t[g],g++,attachNewNode(n,createElement(h,o,r),p)}else if(g>m)for(;y<=v;)unmount(e[y++],n);else{var j=v-y+1,k=m-g+1,w=new Array(k);for(c=0;c<k;c++)w[c]=-1;var S=!1,P=0,x=0;if(k<=4||jk<=16){for(c=y;c<=v;c++)if(s=e[c],x<k)for(u=g;u<=m;u++)if(l=t[u],s.key===l.key){w[u-g]=c,P>u?S=!0:P=u,patch(s,l,n,r,o),x++,e[c]=null;break}}else{var E=new d;for(c=g;c<=m;c++)E.set(t[c].key,c);for(c=y;c<=v;c++)s=e[c],x<k&&void 0!==(u=E.get(s.key))&&(l=t[u],w[u-g]=c,P>u?S=!0:P=u,patch(s,l,n,r,o),x++,e[c]=null)}if(j===i&&0===x)for(unmountChildren(e),n.textContent="";g<k;)h=t[g],g++,attachNewNode(n,createElement(h,o,r),null);else{for(c=j-x;c>0;)null!==(s=e[y++])&&(unmount(s,n),c--);if(S){var A=function lis(e){var t,n,r=e.slice(),o=[];o.push(0);for(var i=0,a=e.length;i<a;++i)if(-1!==e[i]){var c=o[o.length-1];if(e[c]<e[i])r[i]=c,o.push(i);else{for(t=0,n=o.length-1;t<n;){var u=(t+n)/2|0;e[o[u]]<e[i]?t=u+1:n=u}e[i]<e[o[t]]&&(t>0&&(r[i]=o[t-1]),o[t]=i)}}t=o.length,n=o[t-1];for(;t-- >0;)o[t]=n,n=r[n];return o}(w);for(u=A.length-1,c=k-1;c>=0;c--)-1===w[c]?(h=t[P=c+g],f=P+1,attachNewNode(n,createElement(h,o,r),f<a?t[f].dom:null)):u<0||c!==A[u]?(h=t[P=c+g],f=P+1,attachNewNode(n,h.dom,f<a?t[f].dom:null)):u--}else if(x!==k)for(c=k-1;c>=0;c--)-1===w[c]&&(h=t[P=c+g],f=P+1,attachNewNode(n,createElement(h,o,r),f<a?t[f].dom:null))}}}(t,n,e,r,o,i,a)}function patchChildren(e,t,n,r,o){var i=u(t),a=u(n);i&&a?patchArrayChildren(e,t,n,r,o):i||a?i&&!a?patchArrayChildren(e,t,[n],r,o):!i&&a&&patchArrayChildren(e,[t],n,r,o):patch(t,n,e,r,o)}function attachNewNode(e,t,n){isNullOrUndef(n)?e.appendChild(t):e.insertBefore(t,n)}Object.keys(L).forEach(function(e){U.Properties[e]=0,L[e]&&(U.DOMAttributeNames[e]=L[e])});var I={"children":1,"key":1,"ref":1,"owner":1},F=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function setStyle(e,t,n){if(!(isNullOrUndef(n)||isNumber(n)&&isNaN(n)))return"float"===t?(e.cssFloat=n,void(e.styleFloat=n)):void(e[t]=!isNumber(n)||F.test(t)?n:n+"px");e[t]=""}function patchProp(e,t,n,r,o,i){if(n!==r||"value"===t){if("className"===t&&(t="class"),1===I[t])return;if("class"!==t||i)if("dangerouslySetInnerHTML"===t){var a=n&&n.__html,c=r&&r._html;a!==c&&(isNullOrUndef(c)||(isValidElement(o)&&o.children!==g&&(unmountChildren(o.children),o.children=[]),e.innerHTML=c))}else if(isAttrAnEvent(t))!function patchEvent(e,t,n,r){t!==n&&(isFunction(t)&&detachEvent(r,e),attachEvent(r,e,n))}(t,n,r,e);else if("style"===t)!function patchStyle(e,t,n){var r,o,i=n.style;if(isString(t))i.cssText=t;else if(isNullOrUndef(e)||isString(e))for(r in t)setStyle(i,r,o=t[r]);else{for(r in t)(o=t[r])!==e[r]&&setStyle(i,r,o);for(r in e)isNullOrUndef(t[r])&&(i[r]="")}}(n,r,e);else if("list"!==t&&"type"!==t&&!i&&t in e)!function setProperty(e,t,n){try{e[t]=n}catch(e){}}(e,t,null==r?"":r),null!=r&&!1!==r||e.removeAttribute(t);else if(isNullOrUndef(r)||!1===r)e.removeAttribute(t);else{var u=U.DOMAttributeNamespaces[t];if(i&&u)if(r)e.setAttributeNS(u,t,r);else{var s=t.indexOf(":"),l=s>-1?t.substr(s+1):t;e.removeAttributeNS(u,l)}else isFunction(r)||e.setAttribute(t,r)}else e.className=r}}var D="http://www.w3.org/2000/svg";function createElement(e,t,n,r){var o;if(isValidElement(e)){var a=e.vtype;4&a?o=e.init(n,r):1&a?(o=i.createTextNode(e.text),e.dom=o):2&a?o=function mountVNode$1(e,t,n,r){e.isSvg?t=!0:"svg"===e.type?t=!0:c||(t=!1);t&&(e.namespace=D,e.isSvg=t);var o=t?i.createElementNS(e.namespace,e.type):i.createElement(e.type);(function setProps(e,t,n){var r=t.props;for(var o in r)patchProp(e,o,null,r[o],null,n)})(o,e,t),"foreignObject"===e.type&&(t=!1);var a=e.children;if(u(a))for(var s=0,l=a.length;s<l;s++)mountChild(a[s],o,n,t,r);else mountChild(a,o,n,t,r);e.dom=o,null!==e.ref&&_.attach(e,e.ref,o);return o}(e,t,n,r):16&a?o=e.dom=i.createTextNode(""):isPortal(a)&&(e.type.appendChild(createElement(e.children,t,n,r)),o=i.createTextNode(""))}else if(isString(e)||isNumber(e))o=i.createTextNode(e);else if(isNullOrUndef(e)||function isBoolean(e){return!0===e||!1===e}(e))o=i.createTextNode("");else{if(!u(e))throw new Error("Unsupported VNode.");o=i.createDocumentFragment(),e.forEach(function(e){if(!isInvalid(e)){var i=createElement(e,t,n,r);i&&o.appendChild(i)}})}return o}function mountChild(e,t,n,r,o){e.parentContext=n||b;var i=createElement(e,r,n,o);null!==i&&t.appendChild(i)}function createVText(e){return{"text":e,"vtype":1,"dom":null}}function getHooks(e){if(null===y.current)throw new Error("invalid hooks call: hooks can only be called in a stateless component.");var t=y.current.hooks;return e>=t.length&&t.push({}),t[e]}function useState(e){isFunction(e)&&(e=e());var t=getHooks(y.index++);return t.state||(t.component=y.current,t.state=[e,function(e){t.state[0]=isFunction(e)?e(t.state[0]):e,t.component._disable=!1,t.component.setState({})}]),t.state}function useReducer(e,t,n){isFunction(t)&&(t=t());var r=getHooks(y.index++);return r.state||(r.component=y.current,r.state=[isUndefined(n)?t:n(t),function(t){r.state[0]=e(r.state[0],t),r.component._disable=!1,r.component.setState({})}]),r.state}function areDepsChanged(e,t){return!(!isNullOrUndef(e)&&!isNullOrUndef(t))||t.some(function(t,n){return!objectIs(t,e[n])})}function invokeEffects(e,t){void 0===t&&(t=!1),(t?e.effects:e.layoutEffects).forEach(function(e){isFunction(e.cleanup)&&e.cleanup();var t=e.effect();isFunction(t)&&(e.cleanup=t)}),t?e.effects=[]:e.layoutEffects=[]}var B=[];function useEffectImpl(e,t,n){void 0===n&&(n=!1);var r=getHooks(y.index++);areDepsChanged(r.deps,t)&&(r.effect=e,r.deps=t,n?(y.current.effects=y.current.effects.concat(r),function invokeScheduleEffects(e){e._afterScheduleEffect||(e._afterScheduleEffect=!0,B.push(e),1===B.length&&p(function(){setTimeout(function(){B.forEach(function(e){e._afterScheduleEffect=!1,invokeEffects(e,!0)}),B=[]},0)}))}(y.current)):y.current.layoutEffects=y.current.layoutEffects.concat(r))}function useEffect(e,t){useEffectImpl(e,t,!0)}function useLayoutEffect(e,t){useEffectImpl(e,t)}function useRef(e){var t=getHooks(y.index++);return t.ref||(t.ref={"current":e}),t.ref}function useMemo(e,t){var n=getHooks(y.index++);return areDepsChanged(n.deps,t)&&(n.deps=t,n.callback=e,n.value=e()),n.value}function useCallback(e,t){return useMemo(function(){return e},t)}function useContext(e){var t=y.current.context[e._id];if(isUndefined(t))return e._defaultValue;var n=getHooks(y.index++);if(isUndefined(n.context)){n.context=!0;var r=y.current;t.on(function(){return enqueueRender(r)})}return t.value}function useImperativeHandle(e,t,n){useLayoutEffect(function(){return isFunction(e)?(e(t()),function(){return e(null)}):isUndefined(e)?void 0:(e.current=t(),function(){delete e.current})},u(n)?n.concat([e]):void 0)}var W=[];function errorCatcher(e,t){try{return e()}catch(e){!function errorHandler(e,t){var n;for(;;){var r=e.constructor,o=r.getDerivedStateFromError;if(isFunction(o)||isFunction(e.componentDidCatch)){n=e;break}if(!e._parentComponent)break;e=e._parentComponent}if(!n)throw t;var i=n.constructor,a=i.getDerivedStateFromError,c=n._disable;n._disable=!1,isFunction(a)?e.setState(a(t)):isFunction(e.componentDidCatch)&&n.componentDidCatch(t),n._disable=c}(t,e)}}function mountVNode(e,t,n){return createElement(e,!1,t,n)}function getChildContext(e,t){return void 0===t&&(t=b),isFunction(e.getChildContext)?v(clone(t),e.getChildContext()):clone(t)}function renderComponent(e){var t;return y.current=e,y.index=0,invokeEffects(e,!0),errorCatcher(function(){t=e.render()},e),t=function ensureVirtualNode(e){return isNumber(e)||isString(e)?createVText(e):isInvalid(e)?{"dom":null,"vtype":16}:e}(t),y.current=null,t}function flushMount(){if(W.length){var e=W.slice(0);W.length=0,e.forEach(function(e){isFunction(e)?e():e.componentDidMount&&errorCatcher(function(){e.componentDidMount()},e)})}}function updateComponent(e,t){void 0===t&&(t=!1);var n=e.vnode,r=n.dom,o=e.props,i=e.getState(),a=e.context,c=e.prevProps||o,u=e.prevState||e.state,s=e.prevContext||a,l=callGetDerivedStateFromProps(o,i,e);isUndefined(l)||(i=l),e.props=c,e.context=s;var p=!1;if(!t&&isFunction(e.shouldComponentUpdate)&&!1===function callShouldComponentUpdate(e,t,n,r){var o=!0;return errorCatcher(function(){o=r.shouldComponentUpdate(e,t,n)},r),o}(o,i,a,e)?p=!0:!hasNewLifecycle(e)&&isFunction(e.componentWillUpdate)&&errorCatcher(function(){e.componentWillUpdate(o,i,a)},e),isUndefined(l)||(e.state=l),e.props=o,e.state=i,e.context=a,e._dirty=!1,!p){var f=e._rendered,d=renderComponent(e);d.parentVNode=n;var h=getChildContext(e,a),v=function callGetSnapshotBeforeUpdate(e,t,n){var r,o=n.getSnapshotBeforeUpdate;return errorCatcher(function(){isFunction(o)&&(r=o.call(n,e,t))},n),r}(c,u,e),m=f.dom&&f.dom.parentNode;for(r=n.dom=patch(f,d,m||null,h),e._rendered=d,isFunction(e.componentDidUpdate)&&errorCatcher(function(){e.componentDidUpdate(c,u,v)},e);n=n.parentVNode;)(4&n.vtype)>0&&(n.dom=r)}return e.prevProps=e.props,e.prevState=e.state,e.prevContext=e.context,e.clearCallBacks(),flushMount(),invokeEffects(e),r}function callGetDerivedStateFromProps(e,t,n){var r,o=n.constructor.getDerivedStateFromProps;return errorCatcher(function(){if(isFunction(o)){var n=o.call(null,e,t);isUndefined(n)||(r=v(clone(t),n))}},n),r}function hasNewLifecycle(e){return!!isFunction(e.constructor.getDerivedStateFromProps)}var V=[];function enqueueRender(e){!e._dirty&&(e._dirty=!0)&&1===V.push(e)&&p(rerender)}function rerender(e){var t;void 0===e&&(e=!1);var n=V;for(V=[];t=n.pop();)t._dirty&&updateComponent(t,e)}var H=function Component(e,t){this._dirty=!0,this._disable=!0,this._pendingStates=[],this._afterScheduleEffect=!1,this.hooks=[],this.effects=g,this.layoutEffects=g,this.state||(this.state={}),this.props=e||{},this.context=t||b,this.refs={}};H.prototype.setState=function setState(e,t){e&&(this._pendingStates=this._pendingStates||[]).push(e),isFunction(t)&&(this._pendingCallbacks=this._pendingCallbacks||[]).push(t),this._disable||enqueueRender(this)},H.prototype.getState=function getState(){var e=this,t=this._pendingStates,n=this.state,r=this.props;if(!t.length)return n;var o=clone(n),i=t.concat();return this._pendingStates.length=0,i.forEach(function(t){isFunction(t)&&(t=t.call(e,n,r)),v(o,t)}),o},H.prototype.clearCallBacks=function clearCallBacks(){if(u(this._pendingCallbacks))for(;this._pendingCallbacks.length;)this._pendingCallbacks.pop().call(this)},H.prototype.forceUpdate=function forceUpdate(e){isFunction(e)&&(this._pendingCallbacks=this._pendingCallbacks||[]).push(e),updateComponent(this,!0)},H.prototype.render=function render(e,t,n){},H.prototype.isReactComponent=b;var $=function(e){function PureComponent(){e.apply(this,arguments),this.isPureComponent=!0}return e&&(PureComponent.proto=e),PureComponent.prototype=Object.create(e&&e.prototype),PureComponent.prototype.constructor=PureComponent,PureComponent.prototype.shouldComponentUpdate=function shouldComponentUpdate(e,t){return!shallowEqual(this.props,e)||!shallowEqual(this.state,t)},PureComponent}(H),q={"afterMount":noop$1,"afterUpdate":noop$1,"beforeUpdate":noop$1,"beforeUnmount":noop$1,"beforeRender":noop$1,"beforeMount":noop$1,"afterCreate":noop$1,"roots":[],"debug":!1};function render(e,t,n){if(!t)throw new Error(t+" should be a DOM Element");var r,o=t._component;return q.roots.push(e),void 0!==o?(q.roots=q.roots.filter(function(e){return e!==o}),r=patch(o,e,t,{})):(r=mountVNode(e,{}),t.appendChild(r)),t&&(t._component=e),flushMount(),n&&n(),isComposite(e)?e.component:r}function h(e,t,n){var r;return t.children&&(n||(n=t.children)),u(n)?function addChildren(e,t,n){if(isString(t)||isNumber(t))e.push(createVText(String(t)));else if(isValidElement(t))e.push(t);else if(u(t))for(var r=0;r<t.length;r++)addChildren(e,t[r],n);else e.push({"dom":null,"vtype":16})}(r=[],n,e):isString(n)||isNumber(n)?n=createVText(String(n)):isValidElement(n)||(n=g),t.children=void 0!==r?r:n,function createVNode(e,t,n,r,o,i,a){return{"type":e,"key":r||null,"vtype":2,"props":t||b,"children":n,"namespace":o||null,"_owner":i,"dom":null,"ref":a||null}}(e,t,t.children,t.key,t.namespace,t.owner,t.ref)}var z=function ComponentWrapper(e,t){if(this.vtype=4,this.type=e,this.name=e.name,isUndefined(this.name)){var n=e.toString().match(/^function\s*([^\s(]+)/);this.name=u(n)?n[0]:"Component"}e.displayName=this.name,this._owner=t.owner,delete t.owner,(this.ref=t.ref)&&delete t.ref,e._forwarded&&(isUndefined(this.ref)||(t.ref=this.ref),delete this.ref),this.props=t,this.key=t.key||null,this.dom=null,q.afterCreate(this)};function createElement$2(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var o,i=n;return n&&(1===n.length?i=n[0]:0===n.length&&(i=void 0)),isString(e)?((o=function transformPropsForRealTag(e,t){var n={};for(var r in t){var o=t[r];if("defaultValue"!==r){var i=U.DOMAttributeNames[r];i&&i!==r?n[i]=o:n[r]=o}else n.value=t.value||t.defaultValue}return n}(0,t)).owner=y.current,h(e,o,i)):isFunction(e)?((o=function transformPropsForComponent(e,t){var n={};for(var r in e){var o=e[r];n[r]=o}if(t)for(var i in t)isUndefined(n[i])&&(n[i]=t[i]);return n}(t,e.defaultProps)).children&&o.children!==g||(o.children=i||0===i?i:g),o.owner=y.current,new z(e,o)):e}function cloneElement(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];if(function isVText(e){return!isNullOrUndef(e)&&1===e.vtype}(e))return createVText(e.text);if(isString(e)||isNumber(e))return createVText(e);if(isInvalid(e)||!isInvalid(e)&&isPortal(e.vtype)||e&&16&e.vtype)return{"dom":null,"vtype":16};var o=clone(v(clone(e.props),t));e.namespace&&(o.namespace=e.namespace),4&e.vtype&&!isNullOrUndef(e.ref)&&(o.ref=e.ref);var i=(arguments.length>2?[].slice.call(arguments,2):e.children||o.children)||[];if(i.length&&1===i.length&&(i=n[0]),u(e))return e.map(function(e){return cloneElement(e)});var a=createElement$2(e.type,o);if(u(i)){var c=i.map(function(e){return cloneElement(e,e.props)});0===c.length&&(c=g),isVNode(a)&&(a.children=c),a.props.children=c}else i&&(isVNode(a)&&(a.children=cloneElement(i)),a.props.children=cloneElement(i,i.props));return a}z.prototype.init=function init(e,t){q.beforeMount(this);var n=function mountComponent(e,t,n){var r=e.ref;if(e.type.prototype&&e.type.prototype.render){var o=e.type.contextType,i=!isUndefined(o),a=i?t[o._id]:null,c=i?isNullOrUndef(a)?o._defaultValue:a.value:t;e.component=new e.type(e.props,c)}else{var u=new H(e.props,t);u.render=function(){return e.type.call(u,u.props,u.context)},e.component=u}var s=e.component;s.vnode=e,isComponent(n)&&(s._parentComponent=n);var l=callGetDerivedStateFromProps(e.props,s.state,s);isUndefined(l)||(s.state=l),!hasNewLifecycle(s)&&isFunction(s.componentWillMount)&&(errorCatcher(function(){s.componentWillMount()},s),s.state=s.getState(),s.clearCallBacks()),s._dirty=!1;var p=renderComponent(s);p.parentVNode=e,s.rendered=p,isNullOrUndef(r)||.attach(e,r,e.dom);var f=e.dom=mountVNode(p,getChildContext(s,t),s);return invokeEffects(s),isFunction(s.componentDidMount)&&W.push(s),s._disable=!1,f}(this,e,t);return q.afterMount(this),n},z.prototype.update=function update(e,t,n,r){this.context=n,q.beforeUpdate(this);var o=function reRenderComponent(e,t){var n=t.component=e.component,r=t.props,o=t.context;return n._disable=!0,!hasNewLifecycle(n)&&isFunction(n.componentWillReceiveProps)&&errorCatcher(function(){n.componentWillReceiveProps(r,o)},n),n.disable=!1,n.prevProps=n.props,n.prevState=n.state,n.prevContext=n.context,n.props=r,n.context=o,isNullOrUndef(t.ref)||.update(e,t),updateComponent(n)}(e,this);return q.afterUpdate(this),o},z.prototype.destroy=function destroy(){q.beforeUnmount(this),function unmountComponent(e){var t=e.component;t.hooks.forEach(function(e){isFunction(e.cleanup)&&e.cleanup()}),isFunction(t.componentWillUnmount)&&errorCatcher(function(){t.componentWillUnmount()},t),t._disable=!0,unmount(t.rendered),isNullOrUndef(e.ref)||.detach(e,e.ref,e.dom)}(this)};var G={"map":function map(e,t,n){return isNullOrUndef(e)?e:(e=G.toArray(e),n&&n!==e&&(t=t.bind(n)),e.map(t))},"forEach":function forEach(e,t,n){if(!isNullOrUndef(e)){e=G.toArray(e),n&&n!==e&&(t=t.bind(n));for(var r=0,o=e.length;r<o;r++){t(isInvalid(e[r])?null:e[r],r,e)}}},"count":function count(e){return(e=G.toArray(e)).length},"only":function only(e){if(1!==(e=G.toArray(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},"toArray":function toArray(e){if(isNullOrUndef(e))return[];if(u(e)){var t=[];return function flatten(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];u(o)?flatten(o,t):t.push(o)}return t}(e,t),t}return g.concat(e)}};function hydrate(e,t,n){if(null!==t){for(var r=t.lastChild;r;){var o=r.previousSibling;t.removeChild(r),r=o}return render(e,t,n)}}function createPortal(e,t){return{"type":t,"vtype":32,"children":e,"dom":null}}var Y="15.4.2";function unmountComponentAtNode(e){var t=e._component;return!!isValidElement(t)&&(unmount(t,e),delete e.component,!0)}function findDOMNode(e){return isInvalid(e)?null:isComponent(e)?e.vnode.dom:isValidElement(e)?e.dom:e}function createFactory(e){return createElement$2.bind(null,e)}var K=function(e){function WrapperComponent(){e.apply(this,arguments)}return e&&(WrapperComponent.proto=e),WrapperComponent.prototype=Object.create(e&&e.prototype),WrapperComponent.prototype.constructor=WrapperComponent,WrapperComponent.prototype.getChildContext=function getChildContext$$1(){return this.props.context},WrapperComponent.prototype.render=function render$$1(){return this.props.children},WrapperComponent}(H);function unstable_renderSubtreeIntoContainer(e,t,n,r){var o=render(createElement$2(K,{"context":getChildContext(e,e.context)},t),n);return r&&r.call(o),o}function isValidElement$1(e){return isValidElement(e)&&(6&e.vtype)>0}var X=p,J=noop$1;function getShim(){return J}J.isRequired=noop$1;var Q={"array":J,"bool":J,"func":J,"number":J,"object":J,"string":J,"any":J,"arrayOf":getShim,"element":J,"instanceOf":getShim,"node":J,"objectOf":getShim,"oneOf":getShim,"oneOfType":getShim,"shape":getShim,"exact":getShim,"PropTypes":{},"checkPropTypes":noop$1};function createRef(){return{}}function forwardRef(e){var t=function fn(t){var n=t.ref;return delete t.ref,e(t,n)};return t.forwarded=!0,t}function memo(e,t){function shouldComponentUpdate(e){var n=this.props.ref,r=e.ref;return n!==r?(.detach(this.vnode,n,this.dom),.attach(this.vnode,r,this.dom),!0):isFunction(t)?!t(this.props,e):!shallowEqual(this.props,e)}function Memoed(t){return this.shouldComponentUpdate=shouldComponentUpdate,createElement$2(e,Object.assign({},t))}return Memoed._forwarded=!0,Memoed.isMemo=!0,Memoed}Q.PropTypes=Q;var Z=function Emiter(e){this.handlers=[],this.value=e};Z.prototype.on=function on(e){this.handlers.push(e)},Z.prototype.off=function off(e){this.handlers=this.handlers.filter(function(t){return t!==e})},Z.prototype.set=function set(e){var t=this;this.value=e,this.handlers.forEach(function(e){return e(t.value)})};var ee=0;function createContext(e){var t="context"+ee+++"",n=function(e){function Provider(){e.apply(this,arguments),this.emiter=new Z(this.props.value)}return e&&(Provider.proto=e),Provider.prototype=Object.create(e&&e.prototype),Provider.prototype.constructor=Provider,Provider.prototype.getChildContext=function getChildContext(){return(e={})[t]=this.emiter,e;var e},Provider.prototype.componentWillReceiveProps=function componentWillReceiveProps(e){objectIs(this.props.value,e.value)||this.emiter.set(e.value)},Provider.prototype.render=function render(){return this.props.children},Provider}(H);n.isContextProvider=!0;var r=function(n){function Consumer(){var e=this;n.apply(this,arguments),this.state={"value":this.getContextValue()},this.onUpdate=function(t){objectIs(t,e.state.value)||e.setState({"value":e.getContextValue()})}}return n&&(Consumer.proto=n),Consumer.prototype=Object.create(n&&n.prototype),Consumer.prototype.constructor=Consumer,Consumer.prototype.componentWillMount=function componentWillMount(){var e=this.context[t];e&&e.off(this.onUpdate)},Consumer.prototype.componentDidMount=function componentDidMount(){var e=this.context[t];e&&e.on(this.onUpdate)},Consumer.prototype.getContextValue=function getContextValue(){var n=this.context[t];return isUndefined(n)?e:n.value},Consumer.prototype.render=function render(){return function onlyChild(e){return Array.isArray(e)?e[0]:e}(this.props.children)(this.state.value)},Consumer}(H);return r.isContextConsumer=!0,{"Provider":n,"Consumer":r,"_id":t,"_defaultValue":e}}var te={"Children":G,"Component":H,"PureComponent":$,"createElement":createElement$2,"cloneElement":cloneElement,"render":render,"nextTick":p,"options":q,"findDOMNode":findDOMNode,"isValidElement":isValidElement$1,"unmountComponentAtNode":unmountComponentAtNode,"createPortal":createPortal,"unstable_renderSubtreeIntoContainer":unstable_renderSubtreeIntoContainer,"hydrate":hydrate,"createFactory":createFactory,"unstable_batchedUpdates":X,"version":Y,"PropTypes":Q,"createRef":createRef,"forwardRef":forwardRef,"memo":memo,"createContext":createContext,"renderComponent":renderComponent,"useEffect":useEffect,"useLayoutEffect":useLayoutEffect,"useReducer":useReducer,"useState":useState,"useRef":useRef,"useCallback":useCallback,"useMemo":useMemo,"useImperativeHandle":useImperativeHandle,"useContext":useContext};t.i=te},function(e,t,n){"use strict";var r=n(4);t.a=r.a},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return B}),n.d(t,"c",function(){return V}),n.d(t,"d",function(){return getEnv}),n.d(t,"a",function(){return D}),n.d(t,"i",function(){return render}),n.d(t,"g",function(){return get}),n.d(t,"h",function(){return set$1}),n.d(t,"e",function(){return initPxTransform}),n.d(t,"f",function(){return W});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function _typeof(e){return void 0===e?"undefined":r(e)}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t}),"function"!=typeof Object.defineProperties&&(Object.defineProperties=function(e,t){function convertToDescriptor(e){function hasProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isCallable(e){return"function"==typeof e}if("object"!==_typeof(e)||null===e)throw new TypeError("bad desc");var t={};if(hasProperty(e,"enumerable")&&(t.enumerable=!!e.enumerable),hasProperty(e,"configurable")&&(t.configurable=!!e.configurable),hasProperty(e,"value")&&(t.value=e.value),hasProperty(e,"writable")&&(t.writable=!!e.writable),hasProperty(e,"get")){var n=e.get;if(!isCallable(n)&&void 0!==n)throw new TypeError("bad get");t.get=n}if(hasProperty(e,"set")){var r=e.set;if(!isCallable(r)&&void 0!==r)throw new TypeError("bad set");t.set=r}if(("get"in t||"set"in t)&&("value"in t||"writable"in t))throw new TypeError("identity-confused descriptor");return t}if("object"!==_typeof(e)||null===e)throw new TypeError("bad obj");t=Object(t);for(var n=Object.keys(t),r=[],o=0;o<n.length;o++)r.push([n[o],convertToDescriptor(t[n[o]])]);for(o=0;o<r.length;o++)Object.defineProperty(e,r[o][0],r[o][1]);return e});var o="Expected a function",i="lodash_hash_undefined",a=1/0,c="[object Function]",u="[object GeneratorFunction]",s="[object Symbol]",l=/.|[(?:[^[]]|(["'])(?:(?!\1)[^\\]|\.)?\1)]/,p=/^\w*$/,f=/^./,d=/[^.[]]+|[(?:(-?\d+(?:.\d+)?)|(["'])((?:(?!\2)[^\\]|\.)?)\2)]|(?=(?:.|[])(?:.|[]|$))/g,h=/\(\)?/g,v=/^[object .+?Constructor]$/,m="object"===(void 0===e?"undefined":_typeof(e))&&e&&e.Object===Object&&e,y="object"===("undefined"==typeof self?"undefined":typeof(self))&&self&&self.Object===Object&&self,g=m||y||Function("return this")(),b=9007199254740991,=/^(?:0|[1-9]\d)$/;var C,O=Array.prototype,j=Function.prototype,k=Object.prototype,w=g["core-js_shared"],S=(C=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",P=j.toString,x=k.hasOwnProperty,E=k.toString,A=RegExp("^"+P.call(x).replace(/[\^$.+?()[]{}|]/g,"\$&").replace(/hasOwnProperty|(function).?(?=\()| for .+?(?=\])/g,"$1.?")+"$"),T=g.Symbol,N=O.splice,M=getNative(g,"Map"),R=getNative(Object,"create"),L=T?T.prototype:void 0,U=L?L.toString:void 0;function Hash(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ListCache(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function MapCache(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function assocIndexOf(e,t){for(var n=e.length;n--;)if(eq(e[n][0],t))return n;return-1}function baseGet(e,t){for(var n=0,r=(t=function isKey(e,t){if(F(e))return!1;var n=_typeof(e);if("number"==n||"symbol"==n||"boolean"==n||null==e||isSymbol(e))return!0;return p.test(e)||!l.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:castPath(t)).length;null!=e&&n<r;)e=e[toKey(t[n++])];return n&&n==r?e:void 0}function baseIsNative(e){return!(!isObject(e)||function isMasked(e){return!!S&&S in e}(e))&&(function isFunction(e){var t=isObject(e)?E.call(e):"";return t==c||t==u}(e)||function isHostObject(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?A:v).test(function toSource(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function castPath(e){return F(e)?e:I(e)}function getMapData(e,t){var n=e.data;return function isKeyable(e){var t=_typeof(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"proto"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function getNative(e,t){var n=function getValue(e,t){return null==e?void 0:e[t]}(e,t);return baseIsNative(n)?n:void 0}Hash.prototype.clear=function hashClear(){this.data=R?R(null):{}},Hash.prototype.delete=function hashDelete(e){return this.has(e)&&delete this.data[e]},Hash.prototype.get=function hashGet(e){var t=this.data;if(R){var n=t[e];return n===i?void 0:n}return x.call(t,e)?t[e]:void 0},Hash.prototype.has=function hashHas(e){var t=this.data;return R?void 0!==t[e]:x.call(t,e)},Hash.prototype.set=function hashSet(e,t){return this.data[e]=R&&void 0===t?i:t,this},ListCache.prototype.clear=function listCacheClear(){this.data=[]},ListCache.prototype.delete=function listCacheDelete(e){var t=this.data,n=assocIndexOf(t,e);return!(n<0||(n==t.length-1?t.pop():N.call(t,n,1),0))},ListCache.prototype.get=function listCacheGet(e){var t=this.data,n=assocIndexOf(t,e);return n<0?void 0:t[n][1]},ListCache.prototype.has=function listCacheHas(e){return assocIndexOf(this.data,e)>-1},ListCache.prototype.set=function listCacheSet(e,t){var n=this.data,r=assocIndexOf(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},MapCache.prototype.clear=function mapCacheClear(){this.data={"hash":new Hash,"map":new(M||ListCache),"string":new Hash}},MapCache.prototype.delete=function mapCacheDelete(e){return getMapData(this,e).delete(e)},MapCache.prototype.get=function mapCacheGet(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function mapCacheHas(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function mapCacheSet(e,t){return getMapData(this,e).set(e,t),this};var I=memoize(function(e){e=function toString(e){return null==e?"":function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return U?U.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(e)}(e);var t=[];return f.test(e)&&t.push(""),e.replace(d,function(e,n,r,o){t.push(r?o.replace(h,"$1"):n||e)}),t});function toKey(e){if("string"==typeof e||isSymbol(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function memoize(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(o);var n=function memoized(){var n=arguments,r=t?t.apply(this,n):n[0],o=memoized.cache;if(o.has(r))return o.get(r);var i=e.apply(this,n);return memoized.cache=o.set(r,i),i};return n.cache=new(memoize.Cache||MapCache),n}function eq(e,t){return e===t||e!=e&&t!=t}memoize.Cache=MapCache;var F=Array.isArray;function isObject(e){var t=_typeof(e);return!!e&&("object"==t||"function"==t)}function isSymbol(e){return"symbol"===_typeof(e)||function isObjectLike(e){return!!e&&"object"===_typeof(e)}(e)&&E.call(e)==s}function isIndex(e,t){var n=typeof(e);return!!(t=null==t?b:t)&&("number"==n||"symbol"!=n&&.test(e))&&e>-1&&e%1==0&&e<t}x=Object.prototype.hasOwnProperty;function assignValue(e,t,n){var r=e[t];x.call(e,t)&&eq(r,n)&&(void 0!==n||t in e)||function baseAssignValue(e,t,n){"proto"==t?Object.defineProperty(e,t,{"configurable":!0,"enumerable":!0,"value":n,"writable":!0}):e[t]=n}(e,t,n)}function get(e,t,n){var r=null==e?void 0:baseGet(e,t);return void 0===r?n:r}function set$1(e,t,n){return null==e?e:function baseSet(e,t,n,r){if(!isObject(e))return e;for(var o=(t=castPath(t)).length,i=o-1,a=-1,c=e;null!=c&&++a<o;){var u=toKey(t[a]),s=n;if(a!=i){var l=c[u];void 0===(s=r?r(l,u,c):void 0)&&(s=isObject(l)?l:isIndex(t[a+1])?[]:{})}assignValue(c,u,s),c=c[u]}return e}(e,t,n)}var D={"WEAPP":"WEAPP","WEB":"WEB","RN":"RN","SWAN":"SWAN","ALIPAY":"ALIPAY","TT":"TT","QQ":"QQ"};function getEnv(){return"undefined"!=typeof qq&&qq.getSystemInfo?D.QQ:"undefined"!=typeof tt&&tt.getSystemInfo?D.TT:"undefined"!=typeof wx&&wx.getSystemInfo?D.WEAPP:"undefined"!=typeof swan&&swan.getSystemInfo?D.SWAN:"undefined"!=typeof my&&my.getSystemInfo?D.ALIPAY:void 0!==e&&e.__fbGenNativeModule?D.RN:"undefined"!=typeof window?D.WEB:"Unknown environment"}var B=function(){function Events(e){_classCallCheck(this,Events),void 0!==e&&e.callbacks?this.callbacks=e.callbacks:this.callbacks={}}return _createClass(Events,[{"key":"on","value":function on(e,t,n){var r,o,i,a,c;if(!t)return this;for(e=e.split(Events.eventSplitter),r=this.callbacks;o=e.shift();)(i=(c=r[o])?c.tail:{}).next=a={},i.context=n,i.callback=t,r[o]={"tail":a,"next":c?c.next:i};return this}},{"key":"once","value":function once(e,t,n){var r=this;return this.on(e,function wrapper(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t.apply(r,i),r.off(e,wrapper,n)},n),this}},{"key":"off","value":function off(e,t,n){var r,o,i,a,c,u;if(!(o=this.callbacks))return this;if(!(e||t||n))return delete this.callbacks,this;for(e=e?e.split(Events.eventSplitter):Object.keys(o);r=e.shift();)if(i=o[r],delete o[r],i&&(t||n))for(a=i.tail;(i=i.next)!==a;)c=i.callback,u=i.context,(t&&c!==t||n&&u!==n)&&this.on(r,c,u);return this}},{"key":"trigger","value":function trigger(e){var t,n,r,o,i;if(!(r=this.callbacks))return this;for(e=e.split(Events.eventSplitter),i=[].slice.call(arguments,1);t=e.shift();)if(n=r[t])for(o=n.tail;(n=n.next)!==o;)n.callback.apply(n.context||this,i);return this}}]),Events}();function render(){}B.eventSplitter=/\s+/;var W=Object.freeze({"timeoutInterceptor":function timeoutInterceptor(e){var t=e.requestParams;return new Promise(function(n,r){var o=setTimeout(function(){o=null,r(new Error("网络链接超时,请稍后再试!"))},t&&t.timeout||6e4);e.proceed(t).then(function(e){o&&(clearTimeout(o),n(e))}).catch(function(e){o&&clearTimeout(o),r(e)})})},"logInterceptor":function logInterceptor(e){var t=e.requestParams,n=t.method,r=t.data,o=t.url;return console.log("http ".concat(n||"GET"," --\x3e ").concat(o," data: "),r),e.proceed(t).then(function(e){return console.log("http <-- ".concat(o," result:"),e),e})}});function initPxTransform(e){var t=e.designWidth,n=void 0===t?700:t,r=e.deviceRatio,o=void 0===r?{"640":1.17,"750":1,"828":.905}:r;this.config=this.config||{},this.config.designWidth=n,this.config.deviceRatio=o}"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var V=new B}).call(this,n(7))},function(e,t,n){"use strict";var r=n(3),o=n(1),i=n(0),a=function(){function defineProperties(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),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{"constructor":{"value":e,"enumerable":!1,"writable":!0,"configurable":!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.proto=t)}var c={"getEnv":r.d,"ENV_TYPE":r.a,"Events":r.b,"eventCenter":r.c,"render":r.i,"internal_safe_set":r.h,"internal_safe_get":r.g,"Children":o.a,"createElement":o.e,"cloneElement":o.c,"nextTick":o.o,"options":o.p,"findDOMNode":o.j,"isValidElement":o.m,"unmountComponentAtNode":o.q,"createPortal":o.g,"unstable_renderSubtreeIntoContainer":o.s,"hydrate":o.l,"createFactory":o.f,"unstable_batchedUpdates":o.r,"version":o.C,"PropTypes":o.b,"createRef":o.h,"forwardRef":o.k,"memo":o.n,"createContext":o.d,"useEffect":o.v,"useLayoutEffect":o.x,"useReducer":o.z,"useState":o.B,"useRef":o.A,"useCallback":o.t,"useMemo":o.y,"useImperativeHandle":o.w,"useContext":o.u},u=function(e){function Component(){return _classCallCheck(this,Component),_possibleConstructorReturn(this,(Component.proto||Object.getPrototypeOf(Component)).apply(this,arguments))}return _inherits(Component,o["i"].Component),a(Component,[{"key":"$router","get":function get(){return f()},"set":function set(e){console.warn('Property "$router" is read-only.')}},{"key":"$app","get":function get(){return c.getApp()},"set":function set(e){console.warn('Property "$app" is read-only.')}}]),Component}(),s=function(e){function PureComponent(){return _classCallCheck(this,PureComponent),possibleConstructorReturn(this,(PureComponent.proto||Object.getPrototypeOf(PureComponent)).apply(this,arguments))}return inherits(PureComponent,o["i"].PureComponent),a(PureComponent,[{"key":"$router","get":function get(){return f()},"set":function set(e){console.warn('Property "$router" is read-only.')}},{"key":"$app","get":function get(){return c.getApp()},"set":function set(e){console.warn('Property "$app" is read-only.')}}]),PureComponent}(),l=r.e.bind(c),p=Object(i.e)("requirePlugin"),f=function getRouter(){var e=c.$router;return{"path":e.path,"scene":1e3,"params":e.params,"shareTicket":"","referrerInfo":{}}};c.Component=u,c.PureComponent=s,c.initPxTransform=l,c.requirePlugin=p,c.getApp=function getApp(){return c.$app},c.pxTransform=function pxTransform(e){var t=c.config.designWidth;return Math.ceil(parseInt(e,10)/40640/t1e4)/1e4+"rem"},c.canIUseWebp=function canIUseWebp(){return 0===document.createElement("canvas").toDataURL("image/webp").indexOf("data:image/webp")},c.interceptors=r.f,t.a=c},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return Xe}),n.d(t,"a",function(){return Ct}),n.d(t,"c",function(){return Ot});var r=n(2),o=n(1),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function _typeof(e){return void 0===e?"undefined":i(e)}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":i(e)})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{"constructor":{"value":e,"writable":!0,"configurable":!0}}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.proto||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.proto=t,e})(e,t)}function _possibleConstructorReturn(e,t){return!t||"object"!==(void 0===t?"undefined":i(t))&&"function"!=typeof t?function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,n){var r=function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=eSymbol.iterator;!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var a=function warning(){},c=a,u="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function createCommonjsModule(e,t){return e(t={"exports":{}},t.exports),t.exports}var s="object"==(void 0===u?"undefined":i(u))&&u&&u.Object===Object&&u,l="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,p=s||l||Function("return this")(),f=p.Symbol,d=Object.prototype,h=d.hasOwnProperty,v=d.toString,m=f?f.toStringTag:void 0;var y=function getRawTag(e){var t=h.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(e){}var o=v.call(e);return r&&(t?e[m]=n:delete e[m]),o},g=Object.prototype.toString;var b=function objectToString(e){return g.call(e)},="[object Null]",C="[object Undefined]",O=f?f.toStringTag:void 0;var j=function baseGetTag(e){return null==e?void 0===e?C::O&&O in Object(e)?y(e):b(e)};var k=function isObject(e){var t=void 0===e?"undefined":i(e);return null!=e&&("object"==t||"function"==t)},w="[object AsyncFunction]",S="[object Function]",P="[object GeneratorFunction]",x="[object Proxy]";var E,A=function isFunction(e){if(!k(e))return!1;var t=j(e);return t==S||t==P||t==w||t==x},T=p["core-js_shared"],N=(E=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"";var M=function isMasked(e){return!!N&&N in e},R=Function.prototype.toString;var L=function toSource(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""},U=/^[object .+?Constructor]$/,I=Function.prototype,F=Object.prototype,D=I.toString,B=F.hasOwnProperty,W=RegExp("^"+D.call(B).replace(/[\^$.+?()[]{}|]/g,"\$&").replace(/hasOwnProperty|(function).?(?=\()| for .+?(?=\])/g,"$1.?")+"$");var V=function baseIsNative(e){return!(!k(e)||M(e))&&(A(e)?W:U).test(L(e))};var H=function getValue(e,t){return null==e?void 0:e[t]};var $=function getNative(e,t){var n=H(e,t);return V(n)?n:void 0},q=function(){try{var e=$(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var z=function baseAssignValue(e,t,n){"proto"==t&&q?q(e,t,{"configurable":!0,"enumerable":!0,"value":n,"writable":!0}):e[t]=n};var G=function eq(e,t){return e===t||e!=e&&t!=t},Y=Object.prototype.hasOwnProperty;var K=function assignValue(e,t,n){var r=e[t];Y.call(e,t)&&G(r,n)&&(void 0!==n||t in e)||z(e,t,n)};var X=function copyObject(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var c=t[i],u=r?r(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?z(n,c,u):K(n,c,u)}return n};var J=function identity(e){return e};var Q=function apply(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Z=Math.max;var ee=function overRest(e,t,n){return t=Z(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Z(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=r[o];return c[t]=n(a),Q(e,this,c)}};var te=function constant(e){return function(){return e}},ne=q?function(e,t){return q(e,"toString",{"configurable":!0,"enumerable":!1,"value":te(t),"writable":!0})}:J,re=800,oe=16,ie=Date.now;var ae=function shortOut(e){var t=0,n=0;return function(){var r=ie(),o=oe-(r-n);if(n=r,o>0){if(++t>=re)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ne);var ce=function baseRest(e,t){return ae(ee(e,t,J),e+"")},ue=9007199254740991;var se=function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ue};var le=function isArrayLike(e){return null!=e&&se(e.length)&&!A(e)},pe=9007199254740991,fe=/^(?:0|[1-9]\d*)$/;var de=function isIndex(e,t){var n=void 0===e?"undefined":i(e);return!!(t=null==t?pe:t)&&("number"==n||"symbol"!=n&&fe.test(e))&&e>-1&&e%1==0&&e<t};var he=function isIterateeCall(e,t,n){if(!k(n))return!1;var r=void 0===t?"undefined":i(t);return!!("number"==r?le(n)&&de(t,n.length):"string"==r&&t in n)&&G(n[t],e)};var ve=function createAssigner(e){return ce(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&he(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t})},me=Object.prototype;var ye=function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||me)};var ge=function baseTimes(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var be=function isObjectLike(e){return null!=e&&"object"==(void 0===e?"undefined":i(e))},_e="[object Arguments]";var Ce=function baseIsArguments(e){return be(e)&&j(e)==_e},Oe=Object.prototype,je=Oe.hasOwnProperty,ke=Oe.propertyIsEnumerable,we=Ce(function(){return arguments}())?Ce:function(e){return be(e)&&je.call(e,"callee")&&!ke.call(e,"callee")},Se=Array.isArray;var Pe=function stubFalse(){return!1},xe=createCommonjsModule(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?p.Buffer:void 0,i=(o?o.isBuffer:void 0)||Pe;e.exports=i}),Ee={};Ee["[object Float32Array]"]=Ee["[object Float64Array]"]=Ee["[object Int8Array]"]=Ee["[object Int16Array]"]=Ee["[object Int32Array]"]=Ee["[object Uint8Array]"]=Ee["[object Uint8ClampedArray]"]=Ee["[object Uint16Array]"]=Ee["[object Uint32Array]"]=!0,Ee["[object Arguments]"]=Ee["[object Array]"]=Ee["[object ArrayBuffer]"]=Ee["[object Boolean]"]=Ee["[object DataView]"]=Ee["[object Date]"]=Ee["[object Error]"]=Ee["[object Function]"]=Ee["[object Map]"]=Ee["[object Number]"]=Ee["[object Object]"]=Ee["[object RegExp]"]=Ee["[object Set]"]=Ee["[object String]"]=Ee["[object WeakMap]"]=!1;var Ae=function baseIsTypedArray(e){return be(e)&&se(e.length)&&!!Ee[j(e)]};var Te=function baseUnary(e){return function(t){return e(t)}},Ne=createCommonjsModule(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&s.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i}),Me=Ne&&Ne.isTypedArray,Re=Me?Te(Me):Ae,Le=Object.prototype.hasOwnProperty;var Ue=function arrayLikeKeys(e,t){var n=Se(e),r=!n&&we(e),o=!n&&!r&&xe(e),i=!n&&!r&&!o&&Re(e),a=n||r||o||i,c=a?ge(e.length,String):[],u=c.length;for(var s in e)!t&&!Le.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||de(s,u))||c.push(s);return c};var Ie=function overArg(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Fe=Object.prototype.hasOwnProperty;var De=function baseKeys(e){if(!ye(e))return Ie(e);var t=[];for(var n in Object(e))Fe.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Be=function keys(e){return le(e)?Ue(e):De(e)},We=Object.prototype.hasOwnProperty,Ve=ve(function(e,t){if(ye(t)||le(t))X(t,Be(t),e);else for(var n in t)We.call(t,n)&&K(e,n,t[n])});function isAbsolute(e){return"/"===e.charAt(0)}function spliceOne(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var He=function addLeadingSlash(e){return"/"===e.charAt(0)?e:"/"+e},$e=function hasBasename(e,t){return new RegExp("^"+t+"(\/|\?|#|$)","i").test(e)},qe=function parsePath(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{"path":t,"search":"?"===n?"":n,"hash":"#"===r?"":r}},ze=function createPath(e){var t=e.path,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?".concat(n)),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#".concat(r)),o};function createLocation(e,t,n){var r,o=qe(e);(r=Ve({},o,{"state":{"key":t}})).state={"key":t};var i={},a=r.search;a.length>0&&a.substring(1).split("&").forEach(function(e){if(-1!==e.indexOf("=")){var t=slicedToArray(e.split("="),2),n=t[0],r=t[1];i[n]=r}});return r.params=i,n?r.path?"/"!==r.path.charAt(0)&&(r.path=function resolvePathname(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&isAbsolute(e),i=t&&isAbsolute(t),a=o||i;if(e&&isAbsolute(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var u=r[r.length-1];c="."===u||".."===u||""===u}else c=!1;for(var s=0,l=r.length;l>=0;l--){var p=r[l];"."===p?spliceOne(r,l):".."===p?(spliceOne(r,l),s++):s&&(spliceOne(r,l),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&isAbsolute(r[0])||r.unshift("");var f=r.join("/");return c&&"/"!==f.substr(-1)&&(f+="/"),f}(r.path,n.path)):r.path=n.path:r.path||(r.path="/"),r}var Ge=window.history,Ye=0,Ke=function createKey(){return String(++Ye)},Xe=function createHistory(e){var t,n=function createTransitionManager(){var e=null,t=[];return{"setPrompt":function setPrompt(t){return c(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},"confirmTransitionTo":function confirmTransitionTo(t,n,r,o){if(null!==e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):(c(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==i)}else o(!0)},"appendListener":function appendListener(e){var n=!0,r=function listener(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},"notifyListeners":function notifyListeners(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}(),o=e.basename?function stripTrailingSlash(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}(He(e.basename)):"",i=e.customRoutes||{},a=0;e.mode=e.mode||"hash";var u=function getDOMLocation(t){var n=t.key,r=window.location,i=r.pathname,a=r.search,u=r.hash,s="hash"===e.mode?He(function getHashPath(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}()):i+a+u;return"browser"===e.mode&&c($e(s,o),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+s+'" to begin with "'+o+'".'),"/"===(s=function stripBasename(e,t){return $e(e,t)?e.substr(t.length):e}(s,o))&&(s=e.firstPagePath),createLocation(s,n)},s=function getHistoryState(){try{var e=Ge.state||{};return"string"!=typeof e.key?e.key=String(Ye):Ye=e.key,e}catch(e){return{"key":String(Ye)}}}(),l=u(s),p=l;r.a.$router=l;var f=function tryToParseStore(e){var t={"key":"0"};try{var n=JSON.parse(localStorage.getItem("taroRouterStore"));"object"===typeof(n)&&"string"==typeof n.key&&(t=n)}catch(e){}return t.key===e.key||(t.key=e.key),t}(s);t=function createHistorySerializer(e){var t=function serialize(){localStorage.setItem("taroRouterStore",JSON.stringify(e))};return t(),t}(f),Ge.replaceState(l.state,"");var d="hash"===e.mode?function(e){return"#"+He(o+ze(e))}:function(e){return o+ze(e)},h=function setState(e){Ve(b,e);var o=Object.assign({},p);p=Object.assign({},e.location),Ye=Number(e.location.state.key),t(),b.length=Ge.length;var i={"fromLocation":o,"toLocation":b.location,"action":b.action};r.a.$router=b.location,r.a.eventCenter.trigger("__taroRouterChange",Object.assign({},i)),n.notifyListeners(Object.assign({},i))},v=function go(e){Ge.go(e)},m=function handlePopState(e){var t=e.state;t||(t={"key":Ke()},Ge.replaceState(t,"",""));var n,r=Number(p.state.key),o=Number(t.key),i=u(t);n=o&gt;r?"PUSH":o&lt;r?"POP":"REPLACE",f.key=String(o),h({"action":n,"location":i})},y=function checkDOMListeners(e){1===(a+=e)?/^((?!chrome).)*safari/i.test(navigator.userAgent)?window.addEventListener("load",function(){setTimeout(function(){window.addEventListener("popstate",m)},0)}):window.addEventListener("popstate",m):0===a&amp;&amp;window.removeEventListener("popstate",m)},g=!1,b={"action":"POP","block":function block(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]&amp;&amp;arguments[0],t=n.setPrompt(e);return g||(y(1),g=!0),function(){return g&amp;&amp;(g=!1,y(-1)),t()}},"createHref":d,"go":v,"goBack":function goBack(){return v(-1)},"goForward":function goForward(){return v(1)},"length":Ge.length,"listen":function listen(e){var t=n.appendListener(e);return y(1),function(){y(-1),t()}},"location":l,"push":function push(e){var t=Ke(),n=createLocation(e,t,b.location),r=n.path;r in i&amp;&amp;(n.path=i[r]);var o=d(n);Ge.pushState({"key":t},"",o),f.key=t,h({"action":"PUSH","location":n})},"replace":function replace(e){var t=f.key,n=createLocation(e,t,b.location),r=n.path;r in i&amp;&amp;(n.path=i[r]);var o=d(n);Ge.replaceState({"key":t},"",o),h({"action":"REPLACE","location":n})}};return b},Je=function invariant(e,t,n,r,o,i,a,c){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],l=0;(u=new Error(t.replace(/%s/g,function(){return s[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}};var Qe=function arrayMap(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n&lt;r;)o[n]=t(e[n],n,e);return o};var Ze=function baseToPairs(e,t){return Qe(t,function(t){return[t,e[t]]})},et=$(p,"DataView"),tt=$(p,"Map"),nt=$(p,"Promise"),rt=$(p,"Set"),ot=$(p,"WeakMap"),it=L(et),at=L(tt),ct=L(nt),ut=L(rt),st=L(ot),lt=j;(et&&"[object DataView]"!=lt(new et(new ArrayBuffer(1)))||tt&&"[object Map]"!=lt(new tt)||nt&&"[object Promise]"!=lt(nt.resolve())||rt&&"[object Set]"!=lt(new rt)||ot&&"[object WeakMap]"!=lt(new ot))&&(lt=function getTag(e){var t=j(e),n="[object Object]"==t?e.constructor:void 0,r=n?L(n):"";if(r)switch(r){case it:return"[object DataView]";case at:return"[object Map]";case ct:return"[object Promise]";case ut:return"[object Set]";case st:return"[object WeakMap]"}return t});var pt=lt;var ft=function mapToArray(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var dt=function setToPairs(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},ht="[object Map]",vt="[object Set]";var mt,yt=function createToPairs(e){return function(t){var n=pt(t);return n==ht?ft(t):n==vt?dt(t):Ze(t,e(t))}}(Be),gt=function tryToCall(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t?e.apply(t,r):e.apply(void 0,r)}},bt=function getScroller(){var e=document.querySelector(".taro-tabbar__panel");return e?{"set":function set(t){e.scrollTop=t},"get":function get(){return e.scrollTop}}:{"set":function set(e){return window.scrollTo(0,e)},"get":function get(){return window.pageYOffset}}},_t=function(e){function Route(e,t){var n;return _classCallCheck(this,Route),(n=_possibleConstructorReturn(this,_getPrototypeOf(Route).call(this,e,t))).matched=!1,n.isRoute=!0,n.scrollPos=0,n.getWrapRef=function(e){e&&(n.containerRef=e)},n.getRef=function(e){e&&(n.componentRef=e),n.props.collectComponent(e,n.props.k)},n.matched=n.computeMatch(n.props.currentLocation),n}return _inherits(Route,r["a"].Component),_createClass(Route,[{"key":"computeMatch","value":function computeMatch(e){var t=e.path,n=e.state.key;return!(!this.props.isIndex||"/"!==t)||n===this.props.key}},{"key":"updateComponent","value":function updateComponent(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;t.componentLoader().then(function(n){var r=n.default;if(!r)throw Error('Received a falsy component for route "'.concat(t.path,'". Forget to export it?'));var o=function createWrappedComponent(e){return function(t){function WrappedComponent(e,t){var n;_classCallCheck(this,WrappedComponent);var r=(n=_possibleConstructorReturn(this,_getPrototypeOf(WrappedComponent).call(this,e,t))).componentDidShow;return n.componentDidShow=function newComponentDidShow(){var e=(this.config||{"navigationBarTitleText":null}).navigationBarTitleText;e&&(document.title=e),gt(r,this)},n}return _inherits(WrappedComponent,e),_createClass(WrappedComponent,[{"key":"componentDidMount","value":function componentDidMount(){var e=_get(_getPrototypeOf(WrappedComponent.prototype),"componentDidMount",this);gt(e,this),gt(this.componentDidShow,this)}},{"key":"componentWillUnmount","value":function componentWillUnmount(){var e=this.componentDidHide,t=_get(_getPrototypeOf(WrappedComponent.prototype),"componentWillUnmount",this);gt(t,this),gt(e,this)}}]),WrappedComponent}()}(r);e.wrappedComponent=o,e.forceUpdate()}).catch(function(e){console.error(e)})}},{"key":"componentWillMount","value":function componentWillMount(){this.updateComponent()}},{"key":"componentDidMount","value":function componentDidMount(){(mt=mt||bt()).set(0)}},{"key":"componentWillReceiveProps","value":function componentWillReceiveProps(e,t){var n=this,r=this.matched,i=this.computeMatch(e.currentLocation),a=e.isRedirect;if(a)this.updateComponent(e);else if(r===i)return;this.matched=i,Object(o.o)(function(){i?(n.showPage(),a||((mt=mt||bt()).set(n.scrollPos),gt(n.componentRef.componentDidShow,n.componentRef))):(mt=mt||bt(),n.scrollPos=mt.get(),n.hidePage(),gt(n.componentRef.componentDidHide,n.componentRef))})}},{"key":"shouldComponentUpdate","value":function shouldComponentUpdate(){return!1}},{"key":"showPage","value":function showPage(){var e=this.containerRef;if(!e)return console.error('showPage:fail Received a falsy component for route "'.concat(this.props.path,'". Forget to export it?'));e.style.display="block"}},{"key":"hidePage","value":function hidePage(){var e=this.containerRef;if(!e)return console.error('hidePage:fail Received a falsy component for route "'.concat(this.props.path,'". Forget to export it?'));e.style.display="none"}},{"key":"render","value":function render(){if(!this.wrappedComponent)return null;var e=this.wrappedComponent;return o.i.createElement("div",{"className":"taro_page","ref":this.getWrapRef,"style":"min-height: 100%"},o.i.createElement(e,{"ref":this.getRef}))}}]),Route}(),Ct=function(e){function Router(){var e;return _classCallCheck(this,Router),(e=_possibleConstructorReturn(this,_getPrototypeOf(Router).apply(this,arguments))).currentPages=[],e.customRoutes=[],e.state={"location":e.props.history.location,"routeStack":[]},e.collectComponent=function(t,n){e.currentPages[n]=t},e}return _inherits(Router,r["a"].Component),_createClass(Router,[{"key":"mountApis","value":function mountApis(){var e=this;r.a.getCurrentPages=function(){return e.currentPages}}},{"key":"computeMatch","value":function computeMatch(e){var t=e.path,n=t,r=this.customRoutes.filter(function(e){var n=_slicedToArray(e,2),r=(n[0],n[1]);return t===r});r.length&&(n=r[0][0]);var o=this.props.routes.filter(function(e){var t=e.path;return!(!e.isIndex||"/"!==n)||n===t});return Je(o[0],"Can not find proper registered route for '".concat(n,"'")),o[0]}},{"key":"push","value":function push(e){var t=_toConsumableArray(this.state.routeStack),n=this.computeMatch(e);t.forEach(function(e){e.isRedirect=!1}),t.push(Ve({},n,{"key":e.state.key,"isRedirect":!1})),this.setState({"routeStack":t,"location":e})}},{"key":"pop","value":function pop(e,t){var n=_toConsumableArray(this.state.routeStack),r=Number(t.state.key),o=Number(e.state.key)-r;if(n.splice(o),0===n.length){var i=this.computeMatch(e);n=[Ve({},i,{"key":e.state.key,"isRedirect":!1})]}this.setState({"routeStack":n,"location":e})}},{"key":"replace","value":function replace(e){var t=toConsumableArray(this.state.routeStack),n=this.computeMatch(e);t.splice(-1,1,Ve({},n,{"key":e.state.key,"isRedirect":!0})),this.setState({"routeStack":t,"location":e})}},{"key":"componentWillMount","value":function componentWillMount(){var e=this,t=this.props,n=t.history,r=t.customRoutes;this.mountApis(),this.customRoutes=yt(r),this.unlisten=n.listen(function(t){var r=t.fromLocation,o=t.toLocation,i=t.action;"PUSH"===i?e.push(o):"POP"===i?e.pop(o,r):e.replace(o),e.lastLocation=n.location,e.setState({"location":n.location})}),this.lastLocation=n.location,this.push(this.lastLocation)}},{"key":"componentWillUnmount","value":function componentWillUnmount(){this.unlisten()}},{"key":"render","value":function render(){var e=this,t=r.a.$router;return this.currentPages.length=this.state.routeStack.length,o.i.createElement("div",{"className":"taro_router","style":"min-height: 100%"},this.state.routeStack.map(function(n,r){var i=n.path,a=n.componentLoader,c=n.isIndex,u=n.key,s=n.isRedirect;return o.i.createElement(_t,{"path":i,"currentLocation":t,"componentLoader":a,"isIndex":c,"key":u,"k":r,"isRedirect":s,"collectComponent":e.collectComponent})}))}}]),Router}(),Ot=function mountApis(e){r.a.navigateTo=function createNavigateTo(e){return function(t){var n=t.url,r={};try{return Je(n,"navigateTo must be called with a url"),/^(https?:)///.test(n)?window.location.assign(n):e.push(n),r.errMsg="navigateTo:ok",Promise.resolve(r)}catch(e){return r.errMsg="navigateTo:fail ".concat(e.message),Promise.reject(r)}}}(e),r.a.navigateBack=function createNavigateBack(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={};try{var r=t.delta,o=void 0===r?1:r;return Je(o>=0,"navigateBack must be called with a delta greater than 0"),e.go(-o),n.errMsg="navigateBack:ok",Promise.resolve(n)}catch(e){return n.errMsg="navigateBack:fail ".concat(e.message),Promise.reject(n)}}}(e),r.a.redirectTo=function createRedirectTo(e){return function(t){var n=t.url,r={};try{return Je(n,"redirectTo must be called with a url"),/^(https?:)///.test(n)?window.location.assign(n):e.replace(n),r.errMsg="redirectTo:ok",Promise.resolve(r)}catch(e){return r.errMsg="redirectTo:fail ".concat(e.message),Promise.reject(r)}}}(e),r.a.reLaunch=function createReLaunch(e){return function(t){var n=t.url,r={};try{return e.go(-(e.length-1)),/^(https?:)///.test(n)?window.location.assign(n):e.replace(n),r.errMsg="reLaunch:ok",Promise.resolve(r)}catch(e){return r.errMsg="reLaunch:fail ".concat(e.message),Promise.reject(r)}}}(e)}}).call(this,n(7))},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"d",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return c});var r=n(0),o=(Object(r.h)("onBackgroundAudioPlay"),Object(r.h)("onBackgroundAudioPause"),Object(r.h)("onBackgroundAudioStop"),Object(r.h)("onBluetoothAdapterStateChange"),Object(r.h)("onBluetoothDeviceFound"),Object(r.h)("onBLEConnectionStateChange"),Object(r.h)("onBLECharacteristicValueChange"),Object(r.h)("onBeaconUpdate"),Object(r.h)("onBeaconServiceChange"),Object(r.h)("onUserCaptureScreen"),Object(r.h)("onHCEMessage"),Object(r.h)("onGetWifiList"),Object(r.h)("onWifiConnected"),Object(r.h)("getExtConfigSync"),Object(r.h)("getLogManager"),Object(r.h)("onMemoryWarning"),Object(r.h)("reportAnalytics"),Object(r.h)("navigateToSmartGameProgram"),Object(r.h)("getFileSystemManager"),Object(r.h)("stopRecord"),Object(r.h)("getRecorderManager"),Object(r.h)("pauseVoice"),Object(r.h)("stopVoice"),Object(r.h)("pauseBackgroundAudio"),Object(r.h)("stopBackgroundAudio"),Object(r.h)("getBackgroundAudioManager"),Object(r.h)("createAudioContext"),Object(r.h)("createCameraContext"),Object(r.h)("createLivePlayerContext"),Object(r.h)("createLivePusherContext"),Object(r.h)("createMapContext"),Object(r.h)("canIUse")),i=(Object(r.h)("showNavigationBarLoading"),Object(r.h)("hideNavigationBarLoading"),Object(r.h)("drawCanvas"),Object(r.h)("hideKeyboard"),Object(r.h)("createIntersectionObserver"),Object(r.h)("getMenuButtonBoundingClientRect"),Object(r.h)("getAccountInfoSync"),Object(r.h)("getUpdateManager"),Object(r.h)("createWorker"),Object(r.h)("saveImageToPhotosAlbum"),Object(r.h)("startRecord"),Object(r.h)("playVoice"),Object(r.h)("setInnerAudioOption"),Object(r.h)("getAvailableAudioSources"),Object(r.h)("getBackgroundAudioPlayerState"),Object(r.h)("playBackgroundAudio"),Object(r.h)("seekBackgroundAudio"),Object(r.h)("saveVideoToPhotosAlbum"),Object(r.h)("loadFontFace"),Object(r.h)("saveFile"),Object(r.h)("getFileInfo"),Object(r.h)("getSavedFileList"),Object(r.h)("getSavedFileInfo"),Object(r.h)("removeSavedFile"),Object(r.h)("openDocument"),Object(r.h)("openBluetoothAdapter"),Object(r.h)("closeBluetoothAdapter"),Object(r.h)("getBluetoothAdapterState"),Object(r.h)("startBluetoothDevicesDiscovery"),Object(r.h)("stopBluetoothDevicesDiscovery"),Object(r.h)("getBluetoothDevices"),Object(r.h)("getConnectedBluetoothDevices"),Object(r.h)("createBLEConnection"),Object(r.h)("closeBLEConnection"),Object(r.h)("getBLEDeviceServices"),Object(r.h)("getBLEDeviceCharacteristics"),Object(r.h)("readBLECharacteristicValue"),Object(r.h)("writeBLECharacteristicValue"),Object(r.h)("notifyBLECharacteristicValueChange"),Object(r.h)("startBeaconDiscovery"),Object(r.h)("stopBeaconDiscovery"),Object(r.h)("getBeacons"),Object(r.h)("setScreenBrightness"),Object(r.h)("getScreenBrightness"),Object(r.h)("setKeepScreenOn"),Object(r.h)("addPhoneContact"),Object(r.h)("getHCEState"),Object(r.h)("startHCE"),Object(r.h)("stopHCE"),Object(r.h)("sendHCEMessage"),Object(r.h)("startWifi"),Object(r.h)("stopWifi"),Object(r.h)("connectWifi"),Object(r.h)("getWifiList"),Object(r.h)("setWifiList"),Object(r.h)("getConnectedWifi"),Object(r.h)("setTopBarText"),Object(r.h)("setBackgroundColor"),Object(r.h)("setBackgroundTextStyle"),Object(r.h)("getExtConfig"),Object(r.h)("login")),a=(Object(r.h)("checkSession"),Object(r.h)("authorize"),Object(r.h)("getUserInfo")),c=(Object(r.h)("checkIsSupportFacialRecognition"),Object(r.h)("startFacialRecognitionVerify"),Object(r.h)("startFacialRecognitionVerifyAndUploadVideo"),Object(r.h)("faceVerifyForPay"),Object(r.h)("showShareMenu"),Object(r.h)("hideShareMenu"),Object(r.h)("updateShareMenu"),Object(r.h)("getShareInfo"),Object(r.h)("chooseAddress"),Object(r.h)("addCard"),Object(r.h)("openCard"),Object(r.h)("openSetting"),Object(r.h)("getSetting"));Object(r.h)("getWeRunData"),Object(r.h)("navigateToMiniProgram"),Object(r.h)("navigateBackMiniProgram"),Object(r.h)("chooseInvoice"),Object(r.h)("chooseInvoiceTitle"),Object(r.h)("checkIsSupportSoterAuthentication"),Object(r.h)("startSoterAuthentication"),Object(r.h)("checkIsSoterEnrolledInDevice"),Object(r.h)("setEnableDebug"),Object(r.h)("ocrIdCard"),Object(r.h)("ocrBankCard"),Object(r.h)("ocrDrivingLicense"),Object(r.h)("ocrVehicleLicense"),Object(r.h)("textReview"),Object(r.h)("textToAudio"),Object(r.h)("imageAudit"),Object(r.h)("advancedGeneralIdentify"),Object(r.h)("objectDetectIdentify"),Object(r.h)("carClassify"),Object(r.h)("dishClassify"),Object(r.h)("logoClassify"),Object(r.h)("animalClassify"),Object(r.h)("plantClassify"),Object(r.h)("getSwanId"),Object(r.h)("requestPolymerPayment"),Object(r.h)("navigateToSmartProgram"),Object(r.h)("navigateBackSmartProgram"),Object(r.h)("preloadSubPackage")},function(e,t){var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.d(t,"b",function(){return setStorageSync}),n.d(t,"a",function(){return getStorageSync});var r=n(0),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function setStorageSync(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("string"==typeof e){var n={};n="symbol"===(void 0===t?"undefined":o(t))?{"data":""}:{"data":t},localStorage.setItem(e,JSON.stringify(n))}else console.error(Object(r.c)({"name":"setStorage","correct":"String","wrong":e}))}function getStorageSync(e){if("string"==typeof e){var t=getItem(e);return t.result?t.data:""}console.error(Object(r.c)({"name":"getStorage","correct":"String","wrong":e}))}function getItem(e){var t=void 0;try{t=JSON.parse(localStorage.getItem(e))}catch(e){}return t&&"object"===(void 0===t?"undefined":o(t))&&t.hasOwnProperty("data")?{"result":!0,"data":t.data}:{"result":!1}}},,function(e,t,n){e.exports=n(11)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(8),i=n(6),a=(n(12),n(5)),c=function(){function defineProperties(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),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();r.a.initPxTransform({"designWidth":750,"deviceRatio":{"640":1.17,"750":1,"828":.905}});var u=Object(a.b)({"mode":"hash","basename":"/","customRoutes":{},"firstPagePath":"/pages/Main/Main"});Object(a.c)(u);var s=function(e){function App(e,t){!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,App);var n=function possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(App.proto||Object.getPrototypeOf(App)).call(this,e,t));return n.componentWillMount=function(){var e=Object(o.a)("logs")||[];e.unshift(Date.now()),Object(o.b)("logs",e),Object(i.d)({"success":function success(e){}}),Object(i.b)({"success":function success(e){e.authSetting["scope.userInfo"]&&Object(i.c)({"success":function success(e){n.globalData.userInfo=e.userInfo,n.userInfoReadyCallback&&n.userInfoReadyCallback(e)}})}})},n.globalData={"userInfo":null,"httpurl_buy":"https://www.s7-airlines.com/home/personal_account/registration.dot","httpurl_guanli":"https://www.s7-airlines.com/myb/en/","httpurl_zhiji":"https://www.s7-airlines.com/webcheckin/en/","httpurl_hangban":"https://www.s7-airlines.com/zh/info/tablo?searchType=flight_number"},n.config={"pages":["/pages/Main/Main","/pages/logs/logs","/pages/index/index","/pages/Hangban/Hangban","/pages/maipiao/maipiao","/pages/guanli/guanli","/pages/zhiji/zhiji"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#00649E","navigationBarTextStyle":"white","navigationBarTitleText":"WeChat"},"sitemapLocation":"sitemap.json"},r.a.$app=n,n}return function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{"constructor":{"value":e,"enumerable":!1,"writable":!0,"configurable":!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.proto=t)}(App,r["a"].Component),c(App,[{"key":"componentWillMount","value":function componentWillMount(){this.$app.globalData=this.globalData}},{"key":"render","value":function render(){return Nerv.createElement(a.a,{"history":u,"routes":[{"path":"/pages/Main/Main","componentLoader":function componentLoader(){return Promise.all([n.e(0),n.e(1),n.e(10),n.e(3)]).then(n.bind(null,14))},"isIndex":!0},{"path":"/pages/logs/logs","componentLoader":function componentLoader(){return Promise.all([n.e(0),n.e(1),n.e(7)]).then(n.bind(null,15))},"isIndex":!1},{"path":"/pages/index/index","componentLoader":function componentLoader(){return Promise.all([n.e(0),n.e(1),n.e(6)]).then(n.bind(null,16))},"isIndex":!1},{"path":"/pages/Hangban/Hangban","componentLoader":function componentLoader(){return Promise.all([n.e(0),n.e(2)]).then(n.bind(null,17))},"isIndex":!1},{"path":"/pages/maipiao/maipiao","componentLoader":function componentLoader(){return Promise.all([n.e(0),n.e(8)]).then(n.bind(null,18))},"isIndex":!1},{"path":"/pages/guanli/guanli","componentLoader":function componentLoader(){return Promise.all([n.e(0),n.e(5)]).then(n.bind(null,19))},"isIndex":!1},{"path":"/pages/zhiji/zhiji","componentLoader":function componentLoader(){return Promise.all([n.e(0),n.e(9)]).then(n.bind(null,20))},"isIndex":!1}],"customRoutes":{}})}}]),App}();t.default=s,Nerv.render(Nerv.createElement(s,null),document.getElementById("app"))},function(e,t,n){}]);

@jinjinjin0731
Copy link
Contributor

你用 taro build --type h5 -- --watch 编译一下。 这是编译后的代码吧? 你项目本身的 app.js 代码是怎样的?

@yangyutang
Copy link
Author

你好项目本身的app.js:
//app.js
App({

onLaunch: function () {
// 展示本地存储能力
var logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)

// 登录
wx.login({
  success: res => {
    // 发送 res.code 到后台换取 openId, sessionKey, unionId
  }
})
// 获取用户信息
wx.getSetting({
  success: res => {
    if (res.authSetting['scope.userInfo']) {
      // 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
      wx.getUserInfo({
        success: res => {
          // 可以将 res 发送给后台解码出 unionId
          this.globalData.userInfo = res.userInfo

          // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
          // 所以此处加入 callback 以防止这种情况
          if (this.userInfoReadyCallback) {
            this.userInfoReadyCallback(res)
          }
        }
      })
    }
  }
})

},
globalData: {
userInfo: null,

httpurl_buy: "https://www.s7-airlines.com/home/personal_account/registration.dot",
httpurl_guanli : "https://www.s7-airlines.com/myb/en/",
httpurl_zhiji : "https://www.s7-airlines.com/webcheckin/en/",
httpurl_hangban : "https://www.s7-airlines.com/zh/info/tablo?searchType=flight_number"

}
})

@jinjinjin0731
Copy link
Contributor

已经私聊过。 你这是 微信小程序转 Taro . 解决方法已告知。这里就关了

@wizard-a
Copy link

@jinjinjin0731 @yangyutang 怎么解决的呢?

@smalike
Copy link

smalike commented Jul 19, 2019

已经私聊过。 你这是 微信小程序转 Taro . 解决方法已告知。这里就关了

你说这话跟逗人玩似的。怎么解决的不说?

@daiquanqing
Copy link

@jinjinjin0731 @yangyutang 怎么解决的呢?

@iseekTo
Copy link

iseekTo commented Oct 15, 2019

第一次见有人在issues上贴源码,累吗??????????

@shuyanzi
Copy link

已经私聊过。 你这是 微信小程序转 Taro . 解决方法已告知。这里就关了

你说这话跟逗人玩似的。怎么解决的不说?

是啊,连解决办法的地址都不贴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants