2023-05-12 11:43:37 +08:00

2 lines
130 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see taro.js.LICENSE.txt */
(wx.webpackJsonp=wx.webpackJsonp||[]).push([["taro"],{"./node_modules/@tarojs/api/dist/index.esm.js":function(e,t,n){"use strict";n.d(t,{default:function(){return w}});var i=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),r=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js"),o=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),a=n("./node_modules/@babel/runtime/helpers/esm/createSuper.js"),s=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),l=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),c=n("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),u=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function isFunction$1(e){return"function"==typeof e}function isUndefined(e){return void 0===e}function isObject(e){return e&&"object"===(0,i.default)(e)}var d=function isBadObj(e){return!isObject(e)};function throwTypeError(e){throw new TypeError(e)}isFunction$1(Object.assign)||(Object.assign=function(e){null==e&&throwTypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}),isFunction$1(Object.defineProperties)||(Object.defineProperties=function(e,t){function convertToDescriptor(e){function hasProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}d(e)&&throwTypeError("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;isFunction$1(n)||isUndefined(n)||throwTypeError("bad get"),t.get=n}if(hasProperty(e,"set")){var i=e.set;isFunction$1(i)||isUndefined(i)||throwTypeError("bad set"),t.set=i}return("get"in t||"set"in t)&&("value"in t||"writable"in t)&&throwTypeError("identity-confused descriptor"),t}d(e)&&throwTypeError("bad obj"),t=Object(t);for(var n=Object.keys(t),i=[],r=0;r<n.length;r++)i.push([n[r],convertToDescriptor(t[n[r]])]);for(var o=0;o<i.length;o++)Object.defineProperty(e,i[o][0],i[o][1]);return e});var h,f="[]",p="",v="!0",m="!1",g={bindTouchStart:p,bindTouchMove:p,bindTouchEnd:p,bindTouchCancel:p,bindLongTap:p},b={animation:p,bindAnimationStart:p,bindAnimationIteration:p,bindAnimationEnd:p,bindTransitionEnd:p};function singleQuote(e){return"'".concat(e,"'")}Object.assign(Object.assign({"hover-class":singleQuote("none"),"hover-stop-propagation":m,"hover-start-time":"50","hover-stay-time":"400"},g),b),Object.assign({longitude:p,latitude:p,scale:"16",markers:f,covers:p,polyline:f,circles:f,controls:f,"include-points":f,"show-location":p,"layer-style":"1",bindMarkerTap:p,bindControlTap:p,bindCalloutTap:p,bindUpdated:p},g),Object.assign({size:singleQuote("default"),type:p,plain:m,disabled:p,loading:m,"form-type":p,"open-type":p,"hover-class":singleQuote("button-hover"),"hover-stop-propagation":m,"hover-start-time":"20","hover-stay-time":"70",name:p},g),Object.assign({"scroll-top":m},g),Object.assign(Object.assign({direction:"none",inertia:m,"out-of-bounds":m,x:p,y:p,damping:"20",friction:"2",disabled:p,scale:m,"scale-min":"0.5","scale-max":"10","scale-value":"1",bindChange:p,bindScale:p,bindHTouchMove:p,bindVTouchMove:p,width:singleQuote("10px"),height:singleQuote("10px")},g),b),Object.assign(Object.assign({"scroll-x":m,"scroll-y":m,"upper-threshold":"50","lower-threshold":"50","scroll-top":p,"scroll-left":p,"scroll-into-view":p,"scroll-with-animation":m,"enable-back-to-top":m,bindScrollToUpper:p,bindScrollToLower:p,bindScroll:p},g),b),Object.assign({"indicator-dots":m,"indicator-color":singleQuote("rgba(0, 0, 0, .3)"),"indicator-active-color":singleQuote("#000000"),autoplay:m,current:"0",interval:"5000",duration:"500",circular:m,vertical:m,"previous-margin":singleQuote("0px"),"next-margin":singleQuote("0px"),"display-multiple-items":"1",bindChange:p,bindTransition:p,bindAnimationFinish:p},g),Object.assign({src:p,mode:singleQuote("scaleToFill"),"lazy-load":m,bindError:p,bindLoad:p},g),Object.assign({src:p,autoplay:m,muted:m,orientation:singleQuote("vertical"),"object-fit":singleQuote("contain"),"background-mute":m,"min-cache":"1","max-cache":"3",bindStateChange:p,bindFullScreenChange:p,bindNetStatus:p},b),Object.assign({src:p,duration:p,controls:v,"danmu-list":p,"danmu-btn":p,"enable-danmu":p,autoplay:m,loop:m,muted:m,"initial-time":"0","page-gesture":m,direction:p,"show-progress":v,"show-fullscreen-btn":v,"show-play-btn":v,"show-center-play-btn":v,"enable-progress-gesture":v,"object-fit":singleQuote("contain"),poster:p,"show-mute-btn":m,bindPlay:p,bindPause:p,bindEnded:p,bindTimeUpdate:p,bindFullScreenChange:p,bindWaiting:p,bindError:p},b),Object.assign({"canvas-id":p,"disable-scroll":m,bindError:p},g),function(e){e.MINI="mini",e.WEB="web",e.RN="rn",e.HARMONY="harmony",e.QUICK="quickapp"}(h||(h={})),h.WEB,h.HARMONY,h.MINI,h.RN,h.QUICK;var y=function(){function Events(e){var t;(0,s.default)(this,Events),this.callbacks=null!==(t=null==e?void 0:e.callbacks)&&void 0!==t?t:{}}return(0,l.default)(Events,[{key:"on",value:function on(e,t,n){var i,r,o,a;if(!t)return this;e=e.split(Events.eventSplitter),this.callbacks||(this.callbacks={});for(var s=this.callbacks;i=e.shift();)(r=(a=s[i])?a.tail:{}).next=o={},r.context=n,r.callback=t,s[i]={tail:o,next:a?a.next:r};return this}},{key:"once",value:function once(e,t,n){var i=this;return this.on(e,(function wrapper(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t.apply(i,o),i.off(e,wrapper,n)}),n),this}},{key:"off",value:function off(e,t,n){var i,r,o,a,s,l;if(!(r=this.callbacks))return this;if(!(e||t||n))return delete this.callbacks,this;for(e=e?e.split(Events.eventSplitter):Object.keys(r);i=e.shift();)if(o=r[i],delete r[i],o&&(t||n))for(a=o.tail;(o=o.next)!==a;)s=o.callback,l=o.context,(t&&s!==t||n&&l!==n)&&this.on(i,s,l);return this}},{key:"trigger",value:function trigger(e){var t,n,i,r;if(!(i=this.callbacks))return this;e=e.split(Events.eventSplitter);for(var o=[].slice.call(arguments,1);t=e.shift();)if(n=i[t])for(r=n.tail;(n=n.next)!==r;)n.callback.apply(n.context||this,o);return this}}]),Events}();function isFunction(e){return"function"==typeof e}y.eventSplitter=",";var k;!function(e){e[e.SINGLE=0]="SINGLE",e[e.MULTI=1]="MULTI",e[e.WATERFALL=2]="WATERFALL"}(k||(k={}));var _={app:["onLaunch","onShow","onHide"],page:["onLoad","onUnload","onReady","onShow","onHide",["onPullDownRefresh","onReachBottom","onPageScroll","onResize","onTabItemTap","onTitleClick","onOptionMenuClick","onPopMenuClick","onPullIntercept","onAddToFavorites"],["onShareAppMessage","onShareTimeline"]],component:["attached","detached"]};function TaroHook(e,t){return{type:e,initial:t||null}}var P=function(e){(0,o.default)(TaroHooks,e);var t=(0,a.default)(TaroHooks);function TaroHooks(e,n){var i;for(var r in(0,s.default)(this,TaroHooks),(i=t.call(this,n)).hooks=e,e){var o=e[r].initial;isFunction(o)&&i.on(r,o)}return i}return(0,l.default)(TaroHooks,[{key:"tapOneOrMany",value:function tapOneOrMany(e,t){var n=this;(isFunction(t)?[t]:t).forEach((function(t){return n.on(e,t)}))}},{key:"tap",value:function tap(e,t){var n=this.hooks[e],i=n.type,r=n.initial;i===k.SINGLE?(this.off(e),this.on(e,isFunction(t)?t:t[t.length-1])):(r&&this.off(e,r),this.tapOneOrMany(e,t))}},{key:"call",value:function call(e){var t,n=this.hooks[e];if(n){var i=n.type,r=this.callbacks;if(r){var o=r[e];if(o){for(var a=o.tail,s=o.next,l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(var d,h=c;s!==a;){if(d=null===(t=s.callback)||void 0===t?void 0:t.apply(s.context||this,h),i===k.WATERFALL)h=[d];s=s.next}return d}}}}},{key:"isExist",value:function isExist(e){var t;return Boolean(null===(t=this.callbacks)||void 0===t?void 0:t[e])}}]),TaroHooks}(y);new P({getMiniLifecycle:TaroHook(k.SINGLE,(function(e){return e})),getMiniLifecycleImpl:TaroHook(k.SINGLE,(function(){return this.call("getMiniLifecycle",_)})),getLifecycle:TaroHook(k.SINGLE,(function(e,t){return e[t]})),getPathIndex:TaroHook(k.SINGLE,(function(e){return"[".concat(e,"]")})),getEventCenter:TaroHook(k.SINGLE,(function(e){return new e})),isBubbleEvents:TaroHook(k.SINGLE,(function(e){return new Set(["touchstart","touchmove","touchcancel","touchend","touchforcechange","tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend"]).has(e)})),getSpecialNodes:TaroHook(k.SINGLE,(function(){return["view","text","image"]})),onRemoveAttribute:TaroHook(k.SINGLE),batchedEventUpdates:TaroHook(k.SINGLE),mergePageInstance:TaroHook(k.SINGLE),modifyPageObject:TaroHook(k.SINGLE),createPullDownComponent:TaroHook(k.SINGLE),getDOMNode:TaroHook(k.SINGLE),modifyHydrateData:TaroHook(k.SINGLE),modifySetAttrPayload:TaroHook(k.SINGLE),modifyRmAttrPayload:TaroHook(k.SINGLE),onAddEvent:TaroHook(k.SINGLE),modifyMpEvent:TaroHook(k.MULTI),modifyMpEventImpl:TaroHook(k.SINGLE,(function(e){try{this.call("modifyMpEvent",e)}catch(e){console.warn("[Taro modifyMpEvent hook Error]: "+(null==e?void 0:e.message))}})),injectNewStyleProperties:TaroHook(k.SINGLE),modifyTaroEvent:TaroHook(k.MULTI),modifyDispatchEvent:TaroHook(k.MULTI),initNativeApi:TaroHook(k.MULTI),patchElement:TaroHook(k.MULTI)}),(new Date).getTime().toString();var E={WEAPP:"WEAPP",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",WEB:"WEB",RN:"RN",HARMONY:"HARMONY",QUICKAPP:"QUICKAPP"};var S=function(){function Chain(e,t,n){(0,s.default)(this,Chain),this.index=n||0,this.requestParams=e,this.interceptors=t||[]}return(0,l.default)(Chain,[{key:"proceed",value:function proceed(e){if(this.requestParams=e,this.index>=this.interceptors.length)throw new Error("chain 参数错误, 请勿直接修改 request.chain");var t=this._getNextInterceptor()(this._getNextChain()),n=t.catch((function(e){return Promise.reject(e)}));return Object.keys(t).forEach((function(e){return isFunction$1(t[e])&&(n[e]=t[e])})),n}},{key:"_getNextInterceptor",value:function _getNextInterceptor(){return this.interceptors[this.index]}},{key:"_getNextChain",value:function _getNextChain(){return new Chain(this.requestParams,this.interceptors,this.index+1)}}]),Chain}(),T=function(){function Link(e){(0,s.default)(this,Link),this.taroInterceptor=e,this.chain=new S}return(0,l.default)(Link,[{key:"request",value:function request(e){var t=this.chain,n=this.taroInterceptor;return t.interceptors=t.interceptors.filter((function(e){return e!==n})).concat(n),t.proceed((0,c.default)({},e))}},{key:"addInterceptor",value:function addInterceptor(e){this.chain.interceptors.push(e)}},{key:"cleanInterceptors",value:function cleanInterceptors(){this.chain=new S}}]),Link}();var C={640:1.17,750:1,828:.905};function getInitPxTransform(e){return function(t){var n=t.designWidth,i=void 0===n?750:n,r=t.deviceRatio,o=void 0===r?C:r,a=t.baseFontSize,s=void 0===a?20:a,l=t.targetUnit,c=void 0===l?"rpx":l,u=t.unitPrecision,d=void 0===u?5:u;e.config=e.config||{},e.config.designWidth=i,e.config.deviceRatio=o,e.config.baseFontSize=s,e.config.targetUnit=c,e.config.unitPrecision=d}}var w={Behavior:function Behavior(e){return e},getEnv:function getEnv(){return E.WEAPP},ENV_TYPE:E,Link:T,interceptors:Object.freeze({__proto__:null,timeoutInterceptor:function timeoutInterceptor(e){var t,n=e.requestParams,i=new Promise((function(i,r){var o=setTimeout((function(){o=null,r(new Error("网络链接超时,请稍后再试!"))}),n&&n.timeout||6e4);(t=e.proceed(n)).then((function(e){o&&(clearTimeout(o),i(e))})).catch((function(e){o&&clearTimeout(o),r(e)}))}));return!isUndefined(t)&&isFunction$1(t.abort)&&(i.abort=t.abort),i},logInterceptor:function logInterceptor(e){var t=e.requestParams,n=t.method,i=t.data,r=t.url;console.log("http ".concat(n||"GET"," --\x3e ").concat(r," data: "),i);var o=e.proceed(t),a=o.then((function(e){return console.log("http <-- ".concat(r," result:"),e),e}));return isFunction$1(o.abort)&&(a.abort=o.abort),a}}),Current:r.Current,getCurrentInstance:r.getCurrentInstance,options:r.options,nextTick:r.nextTick,eventCenter:r.eventCenter,Events:r.Events,getInitPxTransform:getInitPxTransform,interceptorify:function interceptorify(e){return new T((function(t){return e(t.requestParams)}))}};w.initPxTransform=getInitPxTransform(w),w.preload=function getPreload(e){return function(t,n){e.preloadData=isObject(t)?t:(0,u.default)({},t,n)}}(r.Current),w.pxTransform=function getPxTransform(e){return function(t){var n=e.config||{},i=n.deviceRatio||C,r=n.baseFontSize,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return isFunction$1(n.designWidth)?n.designWidth(e):n.designWidth||750}(t);if(!(o in i))throw new Error("deviceRatio 配置中不存在 ".concat(o," 的设置!"));var a=~~t,s=1/n.deviceRatio[o];switch(n.targetUnit){case"rem":s*=2*r;break;case"px":s*=2}var l=a/s;return n.unitPrecision>=0&&n.unitPrecision<=100&&(l=Number(l.toFixed(n.unitPrecision))),l+n.targetUnit}}(w)},"./node_modules/@tarojs/plugin-framework-react/dist/runtime.js":function(e,t,n){"use strict";n.d(t,{createReactApp:function(){return createReactApp}});var i=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),o=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),a=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),s=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),l=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),c=n("./node_modules/@babel/runtime/helpers/esm/createSuper.js"),u=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),d=n("./node_modules/@tarojs/shared/dist/shared.esm.js"),h=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js"),f={PageContext:d.EMPTY_OBJ,R:d.EMPTY_OBJ},p="taro-app";function isClassComponent(e,t){var n,i=t.prototype;return!(null===(n=t.displayName)||void 0===n?void 0:n.includes("Connect"))&&((0,d.isFunction)(t.render)||!!(null==i?void 0:i.isReactComponent)||i instanceof e.Component)}function setDefaultDescriptor(e){return e.writable=!0,e.enumerable=!0,e}function setRouterParams(e){h.Current.router=Object.assign({params:null==e?void 0:e.query},e)}var v,m,g,b=function createTaroHook(e){return function(t){var n=f.R,i=f.PageContext,r=n.useContext(i)||p,o=n.useRef(),a=n.useRef(t);a.current!==t&&(a.current=t),n.useLayoutEffect((function(){var t=o.current=(0,h.getPageInstance)(r),n=!1;t||(n=!0,o.current=Object.create(null),t=o.current);var i=function callback(){return a.current.apply(a,arguments)};return(0,d.isFunction)(t[e])?t[e]=[t[e],i]:t[e]=[].concat((0,u.default)(t[e]||[]),[i]),n&&(0,h.injectPageInstance)(t,r),function(){var t=o.current;if(t){var n=t[e];n===i?t[e]=void 0:(0,d.isArray)(n)&&(t[e]=n.filter((function(e){return e!==i}))),o.current=void 0}}}),[])}},y=b("componentDidHide"),k=b("componentDidShow"),_=b("onError"),P=b("onUnhandledRejection"),E=b("onLaunch"),S=b("onPageNotFound"),T=b("onLoad"),C=b("onPageScroll"),w=b("onPullDownRefresh"),I=b("onPullIntercept"),x=b("onReachBottom"),A=b("onResize"),N=b("onUnload"),L=b("onAddToFavorites"),F=b("onOptionMenuClick"),O=b("onSaveExitState"),R=b("onShareAppMessage"),j=b("onShareTimeline"),M=b("onTitleClick"),B=b("onReady"),U=b("onTabItemTap"),G=Object.freeze({__proto__:null,useAddToFavorites:L,useDidHide:y,useDidShow:k,useError:_,useLaunch:E,useLoad:T,useOptionMenuClick:F,usePageNotFound:S,usePageScroll:C,usePullDownRefresh:w,usePullIntercept:I,useReachBottom:x,useReady:B,useResize:A,useRouter:function useRouter(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=f.R;return e?h.Current.router:t.useMemo((function(){return h.Current.router}),[])},useSaveExitState:O,useScope:function useScope(){},useShareAppMessage:R,useShareTimeline:j,useTabItemTap:U,useTitleClick:M,useUnhandledRejection:P,useUnload:N}),H=(0,h.incrementId)(),D=(0,d.isWebPlatform)();function setReconciler(e){d.hooks.tap("getLifecycle",(function(e,t){return e[t=t.replace(/^on(Show|Hide)$/,"componentDid$1")]})),d.hooks.tap("modifyMpEvent",(function(e){Object.defineProperty(e,"type",{value:e.type.replace(/-/g,"")})})),d.hooks.tap("batchedEventUpdates",(function(t){e.unstable_batchedUpdates(t)})),d.hooks.tap("mergePageInstance",(function(e,t){e&&t&&("constructor"in e||Object.keys(e).forEach((function(n){var i=e[n],r=function ensureIsArray(e){return(0,d.isArray)(e)?e:e?[e]:[]}(t[n]);t[n]=r.concat(i)})))})),D&&(d.hooks.tap("createPullDownComponent",(function(e,t,n,i){var r=isClassComponent(n,e);return n.forwardRef((function(t,n){var o=Object.assign({},t),a=r?{ref:n}:{forwardedRef:n,reactReduxForwardedRef:n};return v(i||"taro-pull-to-refresh",null,v(e,Object.assign(Object.assign({},o),a)))}))})),d.hooks.tap("getDOMNode",(function(t){return e.findDOMNode(t)})))}function createReactApp(e,t,n,u){var b;(0,d.ensure)(!!n,"构建 React/Nerv 项目请把 process.env.FRAMEWORK 设置为 'react'/'nerv' "),f.R=t,v=t.createElement,m=n,g=t.Fragment;var y,k,_=t.createRef(),P=isClassComponent(t,e),E=new Promise((function(e){return k=e}));function getAppInstance(){return _.current}function waitAppWrapper(e){y?e():E.then((function(){return e()}))}function renderReactRoot(){var e,n,i="app";D&&(i=(null==u?void 0:u.appId)||i);var r=h.document.getElementById(i);if((t.version||"").startsWith("18")){var o=m.createRoot(r);null===(e=o.render)||void 0===e||e.call(o,v(S))}else null===(n=m.render)||void 0===n||n.call(m,v(S),r)}setReconciler(m);var S=function(n){(0,l.default)(AppWrapper,n);var i=(0,c.default)(AppWrapper);function AppWrapper(e){var t;return(0,a.default)(this,AppWrapper),(t=i.call(this,e)).pages=[],t.elements=[],y=(0,o.default)(t),k((0,o.default)(t)),t}return(0,s.default)(AppWrapper,[{key:"mount",value:function mount(e,n,i){var r=function connectReactPage(e,t){return function(n){var i=function inject(e){return e&&(0,h.injectPageInstance)(e,t)},r=isClassComponent(e,n)?{ref:i}:{forwardedRef:i,reactReduxForwardedRef:i};return f.PageContext===d.EMPTY_OBJ&&(f.PageContext=e.createContext("")),function(e){(0,l.default)(PageWrapper,e);var i=(0,c.default)(PageWrapper);function PageWrapper(){var e;return(0,a.default)(this,PageWrapper),(e=i.apply(this,arguments)).state={hasError:!1},e}return(0,s.default)(PageWrapper,[{key:"componentDidCatch",value:function componentDidCatch(e,t){console.warn(e),console.error(t.componentStack)}},{key:"render",value:function render(){var e=this.state.hasError?[]:v(f.PageContext.Provider,{value:t},v(n,Object.assign(Object.assign({},this.props),r)));return D?v("div",{id:t,className:"taro_page"},e):v("root",{id:t},e)}}],[{key:"getDerivedStateFromError",value:function getDerivedStateFromError(e){var t,n;return null===(n=null===(t=h.Current.app)||void 0===t?void 0:t.onError)||void 0===n||n.call(t,e.message+e.stack),{hasError:!0}}}]),PageWrapper}(e.Component)}}(t,n)(e),o=n+H();this.pages.push((function page(){return v(r,{key:o,tid:n})})),this.forceUpdate(i)}},{key:"unmount",value:function unmount(e,t){var n=this.elements,i=n.findIndex((function(t){return t.props.tid===e}));n.splice(i,1),this.forceUpdate(t)}},{key:"render",value:function render(){for(var t=this.pages,n=this.elements;t.length>0;){var i=t.pop();n.push(i())}var r=null;return P&&(r={ref:_}),v(e,r,D?v(null!=g?g:"div",null,n.slice()):n.slice())}}]),AppWrapper}(t.Component);D||renderReactRoot();var T=(0,r.default)(d.hooks.call("getMiniLifecycleImpl").app,3),C=T[0],w=T[1],I=T[2],x=Object.create({render:function render(e){y.forceUpdate(e)},mount:function mount(e,t,n){y?y.mount(e,t,n):E.then((function(i){return i.mount(e,t,n)}))},unmount:function unmount(e,t){y.unmount(e,t)}},(b={config:setDefaultDescriptor({configurable:!0,value:u})},(0,i.default)(b,C,setDefaultDescriptor({value:function value(e){var t=this;setRouterParams(e),D&&renderReactRoot();waitAppWrapper((function onLaunch(){var n,i=getAppInstance();if(t.$app=i,i){if(i.taroGlobalData){var r=i.taroGlobalData,o=Object.keys(r),a=Object.getOwnPropertyDescriptors(r);o.forEach((function(e){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function get(){return r[e]},set:function set(t){r[e]=t}})})),Object.defineProperties(t,a)}null===(n=i.onLaunch)||void 0===n||n.call(i,e)}triggerAppHook("onLaunch",e)}))}})),(0,i.default)(b,w,setDefaultDescriptor({value:function value(e){setRouterParams(e);waitAppWrapper((function onShow(){var t,n=getAppInstance();null===(t=null==n?void 0:n.componentDidShow)||void 0===t||t.call(n,e),triggerAppHook("onShow",e)}))}})),(0,i.default)(b,I,setDefaultDescriptor({value:function value(){waitAppWrapper((function onHide(){var e,t=getAppInstance();null===(e=null==t?void 0:t.componentDidHide)||void 0===e||e.call(t),triggerAppHook("onHide")}))}})),(0,i.default)(b,"onError",setDefaultDescriptor({value:function value(e){waitAppWrapper((function onError(){var t,n=getAppInstance();null===(t=null==n?void 0:n.onError)||void 0===t||t.call(n,e),triggerAppHook("onError",e),(null==e?void 0:e.includes("Minified React error"))&&console.warn("React 出现报错,请打开编译配置 mini.debugReact 查看报错详情https://docs.taro.zone/docs/config-detail#minidebugreact")}))}})),(0,i.default)(b,"onUnhandledRejection",setDefaultDescriptor({value:function value(e){waitAppWrapper((function onUnhandledRejection(){var t,n=getAppInstance();null===(t=null==n?void 0:n.onUnhandledRejection)||void 0===t||t.call(n,e),triggerAppHook("onUnhandledRejection",e)}))}})),(0,i.default)(b,"onPageNotFound",setDefaultDescriptor({value:function value(e){waitAppWrapper((function onPageNotFound(){var t,n=getAppInstance();null===(t=null==n?void 0:n.onPageNotFound)||void 0===t||t.call(n,e),triggerAppHook("onPageNotFound",e)}))}})),b));function triggerAppHook(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=(0,h.getPageInstance)(p);if(r){var o=getAppInstance(),a=d.hooks.call("getLifecycle",r,e);Array.isArray(a)&&a.forEach((function(e){return e.apply(o,n)}))}}return h.Current.app=x,x}(0,h.incrementId)();d.hooks.tap("initNativeApi",(function(e){for(var t in G)e[t]=G[t]}))},"./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js":function(e,t,n){"use strict";n.d(t,{Block:function(){return k},Button:function(){return a},Canvas:function(){return y},CustomWrapper:function(){return _},Image:function(){return g},Input:function(){return s},MovableArea:function(){return d},MovableView:function(){return h},Navigator:function(){return m},Picker:function(){return l},RichText:function(){return r},ScrollView:function(){return f},Swiper:function(){return p},SwiperItem:function(){return v},Switch:function(){return c},Text:function(){return o},Textarea:function(){return u},Video:function(){return b},View:function(){return i}});var i="view",r="rich-text",o="text",a="button",s="input",l="picker",c="switch",u="textarea",d="movable-area",h="movable-view",f="scroll-view",p="swiper",v="swiper-item",m="navigator",g="image",b="video",y="canvas",k="block",_="custom-wrapper"},"./node_modules/@tarojs/plugin-platform-weapp/dist/runtime.js":function(e,t,n){"use strict";var i=n("./node_modules/@tarojs/shared/dist/shared.esm.js"),r=new Set(["addFileToFavorites","addVideoToFavorites","authPrivateMessage","checkIsAddedToMyMiniProgram","chooseContact","cropImage","disableAlertBeforeUnload","editImage","enableAlertBeforeUnload","getBackgroundFetchData","getChannelsLiveInfo","getChannelsLiveNoticeInfo","getFuzzyLocation","getGroupEnterInfo","getLocalIPAddress","getShareInfo","getUserProfile","getWeRunData","join1v1Chat","openChannelsActivity","openChannelsEvent","openChannelsLive","openChannelsUserProfile","openCustomerServiceChat","openVideoEditor","saveFileToDisk","scanItem","setEnable1v1Chat","setWindowSize","sendBizRedPacket","startFacialRecognitionVerify"]);var o="true",a="false",s="",l="0",c={Progress:{"border-radius":l,"font-size":"16",duration:"30",bindActiveEnd:s},RichText:{space:s,"user-select":a},Text:{"user-select":a},Map:{polygons:"[]",subkey:s,rotate:l,skew:l,"max-scale":"20","min-scale":"3","enable-3D":a,"show-compass":a,"show-scale":a,"enable-overlooking":a,"enable-zoom":o,"enable-scroll":o,"enable-rotate":a,"enable-satellite":a,"enable-traffic":a,"enable-poi":o,"enable-building":o,setting:"[]",bindLabelTap:s,bindRegionChange:s,bindPoiTap:s,bindAnchorPointTap:s},Button:{lang:"en","session-from":s,"send-message-title":s,"send-message-path":s,"send-message-img":s,"app-parameter":s,"show-message-card":a,"business-id":s,bindGetUserInfo:s,bindContact:s,bindGetPhoneNumber:s,bindChooseAvatar:s,bindError:s,bindOpenSetting:s,bindLaunchApp:s},Form:{"report-submit-timeout":l},Input:{"always-embed":a,"adjust-position":o,"hold-keyboard":a,"safe-password-cert-path":"","safe-password-length":"","safe-password-time-stamp":"","safe-password-nonce":"","safe-password-salt":"","safe-password-custom-hash":"","auto-fill":s,bindKeyboardHeightChange:s,bindNicknameReview:s},Picker:{"header-text":s,level:"region"},PickerView:{"immediate-change":a,bindPickStart:s,bindPickEnd:s},Slider:{color:"'#e9e9e9'","selected-color":"'#1aad19'"},Textarea:{"show-confirm-bar":o,"adjust-position":o,"hold-keyboard":a,"disable-default-padding":a,"confirm-type":"'return'","confirm-hold":a,bindKeyboardHeightChange:s},ScrollView:{type:"'list'","event-passive":a,"enable-flex":a,"scroll-anchoring":a,"refresher-enabled":a,"refresher-threshold":"45","refresher-default-style":"'black'","refresher-background":"'#FFF'","refresher-triggered":a,enhanced:a,bounces:o,"show-scrollbar":o,"paging-enabled":a,"fast-deceleration":a,reverse:a,"cache-extent":l,"scroll-into-view-within-extent":a,"scroll-into-view-alignment":"'start'",bindDragStart:s,bindDragging:s,bindDragEnd:s,bindRefresherPulling:s,bindRefresherRefresh:s,bindRefresherRestore:s,bindRefresherAbort:s,bindScrollStart:s,bindScrollEnd:s,bindRefresherWillRefresh:s},StickySection:{"push-pinned-header":o},GridView:{type:"'aligned'","cross-axis-count":"2","max-cross-axis-extent":l,"main-axis-gap":l,"cross-axis-gap":l},ListView:{},StickyHeader:{},Swiper:{"snap-to-edge":a,"easing-function":"'default'"},SwiperItem:{"skip-hidden-item-layout":a},Navigator:{target:"'self'","app-id":s,path:s,"extra-data":s,version:"'version'"},Camera:{mode:"'normal'",resolution:"'medium'","frame-size":"'medium'",bindInitDone:s,bindScanCode:s},Image:{webp:a,"show-menu-by-longpress":a},LivePlayer:{mode:"'live'","sound-mode":"'speaker'","auto-pause-if-navigate":o,"auto-pause-if-open-native":o,"picture-in-picture-mode":"[]",bindstatechange:s,bindfullscreenchange:s,bindnetstatus:s,bindAudioVolumeNotify:s,bindEnterPictureInPicture:s,bindLeavePictureInPicture:s},Video:{title:s,"play-btn-position":"'bottom'","enable-play-gesture":a,"auto-pause-if-navigate":o,"auto-pause-if-open-native":o,"vslide-gesture":a,"vslide-gesture-in-fullscreen":o,"ad-unit-id":s,"poster-for-crawler":s,"show-casting-button":a,"picture-in-picture-mode":"[]","enable-auto-rotation":a,"show-screen-lock-button":a,"show-snapshot-button":a,"show-background-playback-button":a,"background-poster":s,bindProgress:s,bindLoadedMetadata:s,bindControlsToggle:s,bindEnterPictureInPicture:s,bindLeavePictureInPicture:s,bindSeekComplete:s,bindAdLoad:s,bindAdError:s,bindAdClose:s,bindAdPlay:s},Canvas:{type:s},Ad:{"ad-type":"'banner'","ad-theme":"'white'"},CoverView:{"marker-id":s,slot:s},Editor:{"read-only":a,placeholder:s,"show-img-size":a,"show-img-toolbar":a,"show-img-resize":a,focus:a,bindReady:s,bindFocus:s,bindBlur:s,bindInput:s,bindStatusChange:s,name:s},MatchMedia:{"min-width":s,"max-width":s,width:s,"min-height":s,"max-height":s,height:s,orientation:s},FunctionalPageNavigator:{version:"'release'",name:s,args:s,bindSuccess:s,bindFail:s,bindCancel:s},LivePusher:{url:s,mode:"'RTC'",autopush:a,muted:a,"enable-camera":o,"auto-focus":o,orientation:"'vertical'",beauty:l,whiteness:l,aspect:"'9:16'","min-bitrate":"200","max-bitrate":"1000","audio-quality":"'high'","waiting-image":s,"waiting-image-hash":s,zoom:a,"device-position":"'front'","background-mute":a,mirror:a,"remote-mirror":a,"local-mirror":a,"audio-reverb-type":l,"enable-mic":o,"enable-agc":a,"enable-ans":a,"audio-volume-type":"'voicecall'","video-width":"360","video-height":"640","beauty-style":"'smooth'",filter:"'standard'",animation:s,bindStateChange:s,bindNetStatus:s,bindBgmStart:s,bindBgmProgress:s,bindBgmComplete:s,bindAudioVolumeNotify:s},OfficialAccount:{bindLoad:s,bindError:s},OpenData:{type:s,"open-gid":s,lang:"'en'","default-text":s,"default-avatar":s,bindError:s},NavigationBar:{title:s,loading:a,"front-color":s,"background-color":s,"color-animation-duration":l,"color-animation-timing-func":"'linear'"},PageMeta:{"background-text-style":s,"background-color":s,"background-color-top":s,"background-color-bottom":s,"scroll-top":"''","scroll-duration":"300","page-style":"''","root-font-size":"''",bindResize:s,bindScroll:s,bindScrollDone:s},VoipRoom:{openid:s,mode:"'camera'","device-position":"'front'",bindError:s},AdCustom:{"unit-id":s,"ad-intervals":s,bindLoad:s,bindError:s},PageContainer:{show:a,duration:"300","z-index":"100",overlay:o,position:"'bottom'",round:a,"close-on-slide-down":a,"overlay-style":s,"custom-style":s,bindBeforeEnter:s,bindEnter:s,bindAfterEnter:s,bindBeforeLeave:s,bindLeave:s,bindAfterLeave:s,bindClickOverlay:s},ShareElement:{mapkey:s,transform:a,duration:"300","easing-function":"'ease-out'"},KeyboardAccessory:{},RootPortal:{},ChannelLive:{feedId:s,finderUserName:s},ChannelVideo:{feedId:s,finderUserName:s,autoplay:a,loop:a,muted:a,objectFit:"'contain'",bindError:s}},u={initNativeApi:function initNativeApi(e){(0,i.processApis)(e,wx,{needPromiseApis:r,modifyApis:function modifyApis(e){e.delete("lanDebug")},transformMeta:function transformMeta(e,t){var n;return"showShareMenu"===e&&(t.menus=null===(n=t.showShareItems)||void 0===n?void 0:n.map((function(e){return"wechatFriends"===e?"shareAppMessage":"wechatMoment"===e?"shareTimeline":e}))),{key:e,options:t}}}),e.cloud=wx.cloud,e.getTabBar=function(e){var t;if("function"==typeof(null==e?void 0:e.getTabBar))return null===(t=e.getTabBar())||void 0===t?void 0:t.$taroInstances},e.getRenderer=function(){var t,n,i;return null!==(i=null===(n=null===(t=e.getCurrentInstance())||void 0===t?void 0:t.page)||void 0===n?void 0:n.renderer)&&void 0!==i?i:"webview"}},getMiniLifecycle:function getMiniLifecycle(e){var t=e.page[5];return-1===t.indexOf("onSaveExitState")&&t.push("onSaveExitState"),e}};(0,i.mergeReconciler)(u),(0,i.mergeInternalComponents)(c)},"./node_modules/@tarojs/react/dist/react.esm.js":function(e,t,n){"use strict";n.d(t,{default:function(){return g},unstable_batchedUpdates:function(){return v}});var i=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),o=n("./node_modules/@tarojs/shared/dist/shared.esm.js"),a=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js"),s=n("./node_modules/react-reconciler/cjs/react-reconciler.production.min.js"),l=n.n(s),c=n("./node_modules/react-reconciler/constants.js");var u=/aspect|acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function updatePropsByPayload(e,t,n){for(var i=0;i<n.length;i+=2){var r=n[i];setProperty(e,r,n[i+1],t[r])}}function getUpdatePayload(e,t,n){var i,r=null;for(i in t)i in n||(r=r||[]).push(i,null);var o=e instanceof a.FormElement;for(i in n)(t[i]!==n[i]||o&&"value"===i)&&(r=r||[]).push(i,n[i]);return r}function setStyle(e,t,n){"-"!==t[0]?e[t]=(0,o.isNumber)(n)&&!1===u.test(t)?n+"px":null==n?"":n:e.setProperty(t,n.toString())}function setProperty(e,t,n,i){var r,a;if("key"===(t="className"===t?"class":t)||"children"===t||"ref"===t);else if("style"===t){var s=e.style;if((0,o.isString)(n))s.cssText=n;else{if((0,o.isString)(i)&&(s.cssText="",i=null),(0,o.isObject)(i))for(var l in i)n&&l in n||setStyle(s,l,"");if((0,o.isObject)(n))for(var c in n)i&&n[c]===i[c]||setStyle(s,c,n[c])}}else if(function isEventName(e){return"o"===e[0]&&"n"===e[1]}(t))!function setEvent(e,t,n,i){var r=t.endsWith("Capture"),a=t.toLowerCase().slice(2);r&&(a=a.slice(0,-7));var s=(0,o.capitalize)((0,o.toCamelCase)(e.tagName.toLowerCase()));"click"===a&&s in o.internalComponents&&(a="tap"),(0,o.isFunction)(n)?i?(e.removeEventListener(a,i,!1),e.addEventListener(a,n,{isCapture:r,sideEffect:!1})):e.addEventListener(a,n,r):e.removeEventListener(a,i)}(e,t,n,i);else if("dangerouslySetInnerHTML"===t){var u=null!==(r=null==n?void 0:n.__html)&&void 0!==r?r:"",d=null!==(a=null==i?void 0:i.__html)&&void 0!==a?a:"";(u||d)&&d!==u&&(e.innerHTML=u)}else(0,o.isFunction)(n)||(null==n?e.removeAttribute(t):e.setAttribute(t,n))}var d={getPublicInstance:function getPublicInstance(e){return e},getRootHostContext:function getRootHostContext(){return{}},getChildHostContext:function getChildHostContext(e){return e},prepareForCommit:function prepareForCommit(){return null},resetAfterCommit:o.noop,createInstance:function createInstance(e){return a.document.createElement(e)},appendInitialChild:function appendInitialChild(e,t){e.appendChild(t)},finalizeInitialChildren:function finalizeInitialChildren(e,t,n){return function updateProps(e,t,n){var i=getUpdatePayload(e,t,n);i&&updatePropsByPayload(e,t,i)}(e,{},n),!1},prepareUpdate:function prepareUpdate(e,t,n,i){return getUpdatePayload(e,n,i)},shouldSetTextContent:function shouldSetTextContent(){return!1},createTextInstance:function createTextInstance(e){return a.document.createTextNode(e)},scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,isPrimaryRenderer:!0,warnsIfNotActing:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,getInstanceFromNode:function getInstanceFromNode(){return null},beforeActiveInstanceBlur:o.noop,afterActiveInstanceBlur:o.noop,preparePortalMount:o.noop,prepareScopeUpdate:o.noop,getInstanceFromScope:function getInstanceFromScope(){return null},getCurrentEventPriority:function getCurrentEventPriority(){return c.DefaultEventPriority},detachDeletedInstance:o.noop,supportsMicrotasks:!0,scheduleMicrotask:(0,o.isUndefined)(Promise)?setTimeout:function(e){return Promise.resolve(null).then(e).catch((function(e){setTimeout((function(){throw e}))}))},appendChild:function appendChild(e,t){e.appendChild(t)},appendChildToContainer:function appendChildToContainer(e,t){e.appendChild(t)},commitTextUpdate:function commitTextUpdate(e,t,n){e.nodeValue=n},commitMount:o.noop,commitUpdate:function commitUpdate(e,t,n,i){updatePropsByPayload(e,i,t)},insertBefore:function insertBefore(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function insertInContainerBefore(e,t,n){e.insertBefore(t,n)},removeChild:function removeChild(e,t){e.removeChild(t)},removeChildFromContainer:function removeChildFromContainer(e,t){e.removeChild(t)},resetTextContent:o.noop,hideInstance:function hideInstance(e){e.style.setProperty("display","none")},hideTextInstance:function hideTextInstance(e){e.nodeValue=""},unhideInstance:function unhideInstance(e,t){var n=t.style,i=(null==n?void 0:n.hasOwnProperty("display"))?n.display:null;i=null==i||(0,o.isBoolean)(i)||""===i?"":(""+i).trim(),e.style.display=i},unhideTextInstance:function unhideTextInstance(e,t){e.nodeValue=t},clearContainer:function clearContainer(e){e.childNodes.length>0&&(e.textContent="")}},h=l()(d);h.injectIntoDevTools({bundleType:1,version:"18.0.0",rendererPackageName:"taro-react"})||console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools","font-weight:bold");var f=new WeakMap,p=function(){function Root(e,t,n){(0,i.default)(this,Root),this.renderer=e,this.initInternalRoot(e,t,n)}return(0,r.default)(Root,[{key:"initInternalRoot",value:function initInternalRoot(e,t,n){var i=t;if(n){var r=!1,o="",a=function onRecoverableError(e){return console.error(e)},s=null;!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&(s=n.unstable_transitionCallbacks),this.internalRoot=e.createContainer(i,1,null,r,!1,o,a,s)}else{this.internalRoot=e.createContainer(i,0,null,!1,!1,"",(function(){}),null)}}},{key:"render",value:function render(e,t){var n=this.renderer,i=this.internalRoot;return n.updateContainer(e,i,null,t),n.getPublicRootInstance(i)}},{key:"unmount",value:function unmount(e){this.renderer.updateContainer(null,this.internalRoot,null,e)}}]),Root}();var v=h.batchedUpdates;var m=(0,o.isFunction)(Symbol)&&Symbol.for?Symbol.for("react.portal"):60106;var g={render:function render(e,t,n){var i=f.get(t);if(null!=i)return i.render(e,n);var r=new p(h,t);return f.set(t,r),r.render(e,n)},createRoot:function createRoot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f.get(e);if(null!=n)return n;var i=new p(h,e,t);return f.set(e,i),i},unstable_batchedUpdates:v,unmountComponentAtNode:function unmountComponentAtNode(e){(0,o.ensure)(e&&[1,8,9,11].includes(e.nodeType),"unmountComponentAtNode(...): Target container is not a DOM element.");var t=f.get(e);return!!t&&(v((function(){t.unmount((function(){f.delete(e)}))}),null),!0)},findDOMNode:function findDOMNode(e){if(null==e)return null;var t=e.nodeType;return 1===t||3===t?e:h.findHostInstance(e)},createPortal:function createPortal(e,t,n){return{$$typeof:m,key:null==n?null:String(n),children:e,containerInfo:t,implementation:null}}}},"./node_modules/@tarojs/runtime/dist/runtime.esm.js":function(e,t,n){"use strict";n.r(t),n.d(t,{Current:function(){return Mt},Events:function(){return b.Events},FormElement:function(){return Je},History:function(){return wt},Location:function(){return Ht},MutationObserver:function(){return oe},SVGElement:function(){return Xt},Style:function(){return je},TaroElement:function(){return Me},TaroEvent:function(){return Ye},TaroNode:function(){return be},TaroRootElement:function(){return tt},TaroText:function(){return nt},URL:function(){return ft},URLSearchParams:function(){return ht},addLeadingSlash:function(){return addLeadingSlash},cancelAnimationFrame:function(){return Yt},createComponentConfig:function(){return createComponentConfig},createEvent:function(){return createEvent},createPageConfig:function(){return createPageConfig},createRecursiveComponentConfig:function(){return createRecursiveComponentConfig},document:function(){return pt},eventCenter:function(){return St},eventHandler:function(){return eventHandler},eventSource:function(){return fe},getComputedStyle:function(){return getComputedStyle},getCurrentInstance:function(){return Bt},getPageInstance:function(){return getPageInstance},history:function(){return Zt},hooks:function(){return b.hooks},hydrate:function(){return hydrate},incrementId:function(){return ae},injectPageInstance:function(){return injectPageInstance},location:function(){return Jt},navigator:function(){return qt},nextTick:function(){return rn},now:function(){return Dt},options:function(){return Be},parseUrl:function(){return parseUrl},removePageInstance:function(){return removePageInstance},requestAnimationFrame:function(){return $t},safeExecute:function(){return safeExecute},stringify:function(){return stringify},window:function(){return zt}});var i,r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),o=n("./node_modules/@babel/runtime/helpers/esm/get.js"),a=n("./node_modules/@babel/runtime/helpers/esm/set.js"),s=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),l=n("./node_modules/@babel/runtime/helpers/esm/toArray.js"),c=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),u=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),d=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),h=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),f=n("./node_modules/@babel/runtime/helpers/esm/createSuper.js"),p=n("./node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js"),v=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),m=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),g=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),b=n("./node_modules/@tarojs/shared/dist/shared.esm.js"),y=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js").window,k=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js").document,_=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js").requestAnimationFrame,P=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js").cancelAnimationFrame,E=2046,S="页面初始化",T="root",C="document-fragment",w="id",I="class",x="style",A="focus",N="view",L="static-view",F="pure-view",O="value",R="input",j="custom-wrapper",M="target",B="currentTarget",U="type",G="confirm",H="timeStamp",D="keyCode",W="touchmove",V="catchMove",q="catch-view",z="comment",Q="onLoad",$="onReady",Y="onShow",K="onHide",J="options",Z="externalClasses",X="e_result",ee="behaviors";!function(e){e.INIT="0",e.RESTORE="1",e.RECOVER="2",e.DESTORY="3"}(i||(i={}));var te=[],ne=function sidMatches(e,t){return!!e&&e.sid===(null==t?void 0:t.sid)},ie=function isConcerned(e,t){var n=t.characterData,i=t.characterDataOldValue,r=t.attributes,o=t.attributeOldValue,a=t.childList;switch(e.type){case"characterData":return!!n&&(i||(e.oldValue=null),!0);case"attributes":return!!r&&(o||(e.oldValue=null),!0);case"childList":return!!a}},re=!1;function logMutation(e,t){e.records.push(t),re||(re=!0,Promise.resolve().then((function(){re=!1,te.forEach((function(e){return e.callback(e.takeRecords())}))})))}var oe=function(){function MutationObserver(e){(0,m.default)(this,MutationObserver),console.warn("[Taro Warning] 若要使用 MutationObserver请在 Taro 编译配置中设置 'mini.enableMutationObserver: true'"),this.core={observe:b.noop,disconnect:b.noop,takeRecords:b.noop}}return(0,g.default)(MutationObserver,[{key:"observe",value:function observe(){var e;(e=this.core).observe.apply(e,arguments)}},{key:"disconnect",value:function disconnect(){this.core.disconnect()}},{key:"takeRecords",value:function takeRecords(){return this.core.takeRecords()}}],[{key:"record",value:function record(e){!function recordMutation(e){te.forEach((function(t){for(var n=t.options,i=e.target;i;i=i.parentNode){if(ne(t.target,i)&&ie(e,n)){logMutation(t,e);break}if(!n.subtree)break}}))}(e)}}]),MutationObserver}(),ae=function incrementId(){for(var e=[],t=65;t<=90;t++)e.push(t);for(var n=97;n<=122;n++)e.push(n);var i=e.length-1,r=[0,0];return function(){var t=r.map((function(t){return e[t]})),n=String.fromCharCode.apply(String,(0,v.default)(t)),o=r.length-1;for(r[o]++;r[o]>i;){if(r[o]=0,(o-=1)<0){r.push(0);break}r[o]++}return n}};function isElement(e){return 1===e.nodeType}function isComment(e){return e.nodeName===z}function isHasExtractProp(e){var t=Object.keys(e.props).find((function(e){return!(/^(class|style|id)$/.test(e)||e.startsWith("data-"))}));return Boolean(t)}function shortcutAttr(e){switch(e){case x:return"st";case w:return"uid";case I:return"cl";default:return e}}var se,le=new Map;function _extend(e,t,n){(0,b.isFunction)(n)&&(n={value:n}),Object.defineProperty(e.prototype,t,Object.assign({configurable:!0,enumerable:!0},n))}function getComponentsAlias(){return se||(se=(0,b.getComponentsAlias)(b.internalComponents)),se}var ce,ue,de=function(){function ClassList(e,t){var n=this;(0,m.default)(this,ClassList),this.tokenList=[],this.el=t,e.trim().split(/\s+/).forEach((function(e){return n.tokenList.push(e)}))}return(0,g.default)(ClassList,[{key:"value",get:function get(){return this.toString()}},{key:"length",get:function get(){return this.tokenList.length}},{key:"add",value:function add(){var e=0,t=!1,n=arguments,i=n.length,r=this.tokenList;do{var o=n[e];this.checkTokenIsValid(o)&&!~r.indexOf(o)&&(r.push(o),t=!0)}while(++e<i);t&&this._update()}},{key:"remove",value:function remove(){var e=0,t=!1,n=arguments,i=n.length,r=this.tokenList;do{var o=n[e]+"";if(this.checkTokenIsValid(o)){var a=r.indexOf(o);~r.indexOf(o)&&(r.splice(a,1),t=!0)}}while(++e<i);t&&this._update()}},{key:"contains",value:function contains(e){return!!this.checkTokenIsValid(e)&&!!~this.tokenList.indexOf(e)}},{key:"toggle",value:function toggle(e,t){var n=this.contains(e),i=n?!0!==t&&"remove":!1!==t&&"add";return i&&this[i](e),!0===t||!1===t?t:!n}},{key:"replace",value:function replace(e,t){if(this.checkTokenIsValid(e)&&this.checkTokenIsValid(t)){var n=this.tokenList.indexOf(e);~n&&(this.tokenList.splice(n,1,t),this._update())}}},{key:"toString",value:function toString(){return this.tokenList.filter((function(e){return""!==e})).join(" ")}},{key:"checkTokenIsValid",value:function checkTokenIsValid(e){return""!==e&&!/\s/.test(e)}},{key:"_update",value:function _update(){this.el.className=this.value}}]),ClassList}(),he=function(e){(0,h.default)(EventSource,e);var t=(0,f.default)(EventSource);function EventSource(){return(0,m.default)(this,EventSource),t.apply(this,arguments)}return(0,g.default)(EventSource,[{key:"removeNode",value:function removeNode(e){var t=e.sid,n=e.uid;this.delete(t),n!==t&&n&&this.delete(n)}},{key:"removeNodeTree",value:function removeNodeTree(e){var t=this;this.removeNode(e),e.childNodes.forEach((function(e){return t.removeNodeTree(e)}))}}]),EventSource}((0,p.default)(Map)),fe=new he,pe=(0,b.isWebPlatform)(),ve={window:pe?y:b.EMPTY_OBJ,document:pe?k:b.EMPTY_OBJ};function hydrate(e){var t;ue||(ue=getComponentsAlias()),ce||(ce=b.hooks.call("getSpecialNodes"));var n,i=e.nodeName;if(function isText(e){return 3===e.nodeType}(e))return n={},(0,d.default)(n,"v",e.nodeValue),(0,d.default)(n,"nn",ue[i]._num),n;var r=(t={},(0,d.default)(t,"nn",i),(0,d.default)(t,"sid",e.sid),t);e.uid!==e.sid&&(r.uid=e.uid),!e.isAnyEventBinded()&&ce.indexOf(i)>-1&&(r.nn="static-".concat(i),i!==N||isHasExtractProp(e)||(r.nn=F));var o=e.props;for(var a in o){var s=(0,b.toCamelCase)(a);a.startsWith("data-")||a===I||a===x||a===w||s===V||(r[s]=o[a]),i===N&&s===V&&!1!==o[a]&&(r.nn=q)}var l=e.childNodes;l=l.filter((function(e){return!isComment(e)})),l.length>0?r.cn=l.map(hydrate):r.cn=[],""!==e.className&&(r.cl=e.className);var c=e.cssText;""!==c&&"swiper-item"!==i&&(r.st=c),b.hooks.call("modifyHydrateData",r);var u=r.nn,h=ue[u];if(h)for(var f in r.nn=h._num,r)f in h&&(r[h[f]]=r[f],delete r[f]);return r}var me=function(){function TaroEventTarget(){(0,m.default)(this,TaroEventTarget),this.__handlers={}}return(0,g.default)(TaroEventTarget,[{key:"addEventListener",value:function addEventListener(e,t,n){if(e=e.toLowerCase(),b.hooks.call("onAddEvent",e,t,n,this),"regionchange"===e)return this.addEventListener("begin",t,n),void this.addEventListener("end",t,n);var i=Boolean(n),r=!1;if((0,b.isObject)(n)&&(i=Boolean(n.capture),r=Boolean(n.once)),r){this.addEventListener(e,(function wrapper(){t.apply(this,arguments),this.removeEventListener(e,wrapper)}),Object.assign(Object.assign({},n),{once:!1}))}else{(0,b.warn)(i,"Taro 暂未实现 event 的 capture 特性。");var o=t;t=function handler(){return o.apply(this,arguments)},t.oldHandler=o;var a=this.__handlers[e];(0,b.isArray)(a)?a.push(t):this.__handlers[e]=[t]}}},{key:"removeEventListener",value:function removeEventListener(e,t){if("regionchange"===(e=e.toLowerCase()))return this.removeEventListener("begin",t),void this.removeEventListener("end",t);if(t){var n=this.__handlers[e];if((0,b.isArray)(n)){var i=n.findIndex((function(e){if(e===t||e.oldHandler===t)return!0}));(0,b.warn)(-1===i,"事件: '".concat(e,"' 没有注册在 DOM 中,因此不会被移除。")),n.splice(i,1)}}}},{key:"isAnyEventBinded",value:function isAnyEventBinded(){var e=this.__handlers,isAnyEventBinded=Object.keys(e).find((function(t){return e[t].length}));return Boolean(isAnyEventBinded)}}]),TaroEventTarget}(),ge=ae(),be=function(e){(0,h.default)(TaroNode,e);var t=(0,f.default)(TaroNode);function TaroNode(){var e;return(0,m.default)(this,TaroNode),(e=t.call(this)).parentNode=null,e.childNodes=[],e.hydrate=function(e){return function(){return hydrate(e)}},e.uid="_"+ge(),e.sid=e.uid,fe.set(e.sid,(0,u.default)(e)),e}return(0,g.default)(TaroNode,[{key:"updateChildNodes",value:function updateChildNodes(e){var t=this;this.enqueueUpdate({path:"".concat(this._path,".").concat("cn"),value:e?function cleanChildNodes(){return[]}:function rerenderChildNodes(){return t.childNodes.filter((function(e){return!isComment(e)})).map(hydrate)}})}},{key:"_root",get:function get(){var e;return(null===(e=this.parentNode)||void 0===e?void 0:e._root)||null}},{key:"findIndex",value:function findIndex(e){var t=this.childNodes.indexOf(e);return(0,b.ensure)(-1!==t,"The node to be replaced is not a child of this node."),t}},{key:"_path",get:function get(){var e=this.parentNode;if(e){var t=e.childNodes.filter((function(e){return!isComment(e)})).indexOf(this),n=b.hooks.call("getPathIndex",t);return"".concat(e._path,".").concat("cn",".").concat(n)}return""}},{key:"nextSibling",get:function get(){var e=this.parentNode;return(null==e?void 0:e.childNodes[e.findIndex(this)+1])||null}},{key:"previousSibling",get:function get(){var e=this.parentNode;return(null==e?void 0:e.childNodes[e.findIndex(this)-1])||null}},{key:"parentElement",get:function get(){var e=this.parentNode;return 1===(null==e?void 0:e.nodeType)?e:null}},{key:"firstChild",get:function get(){return this.childNodes[0]||null}},{key:"lastChild",get:function get(){var e=this.childNodes;return e[e.length-1]||null}},{key:"textContent",set:function set(e){for(var t=this.childNodes.slice(),n=[];this.firstChild;)this.removeChild(this.firstChild,{doUpdate:!1});if(""===e)this.updateChildNodes(!0);else{var i=ve.document.createTextNode(e);n.push(i),this.appendChild(i),this.updateChildNodes()}oe.record({type:"childList",target:this,removedNodes:t,addedNodes:n})}},{key:"insertBefore",value:function insertBefore(e,t,n){var i=this;if(e.nodeName===C)return e.childNodes.reduceRight((function(e,t){return i.insertBefore(t,e),t}),t),e;if(e.remove({cleanRef:!1}),e.parentNode=this,t){var r=this.findIndex(t);this.childNodes.splice(r,0,e)}else this.childNodes.push(e);this._root&&(t?n?this.enqueueUpdate({path:e._path,value:this.hydrate(e)}):this.updateChildNodes():1===this.childNodes.length?this.updateChildNodes():this.enqueueUpdate({path:e._path,value:this.hydrate(e)}));return oe.record({type:"childList",target:this,addedNodes:[e],removedNodes:n?[t]:[],nextSibling:n?t.nextSibling:t||null,previousSibling:e.previousSibling}),e}},{key:"appendChild",value:function appendChild(e){return this.insertBefore(e)}},{key:"replaceChild",value:function replaceChild(e,t){if(t.parentNode===this)return this.insertBefore(e,t,!0),t.remove({doUpdate:!1}),t}},{key:"removeChild",value:function removeChild(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.cleanRef,i=t.doUpdate;!1!==n&&!1!==i&&oe.record({type:"childList",target:this,removedNodes:[e],nextSibling:e.nextSibling,previousSibling:e.previousSibling});var r=this.findIndex(e);return this.childNodes.splice(r,1),e.parentNode=null,!1!==n&&fe.removeNodeTree(e),this._root&&!1!==i&&this.updateChildNodes(),e}},{key:"remove",value:function remove(e){var t;null===(t=this.parentNode)||void 0===t||t.removeChild(this,e)}},{key:"hasChildNodes",value:function hasChildNodes(){return this.childNodes.length>0}},{key:"enqueueUpdate",value:function enqueueUpdate(e){var t;null===(t=this._root)||void 0===t||t.enqueueUpdate(e)}},{key:"ownerDocument",get:function get(){return ve.document}}],[{key:"extend",value:function extend(e,t){_extend(TaroNode,e,t)}}]),TaroNode}(me),ye="webkit",ke=["all","appearance","blockOverflow","blockSize","bottom","clear","contain","content","continue","cursor","direction","display","filter","float","gap","height","inset","isolation","left","letterSpacing","lightingColor","markerSide","mixBlendMode","opacity","order","position","quotes","resize","right","rowGap","tabSize","tableLayout","top","userSelect","verticalAlign","visibility","voiceFamily","volume","whiteSpace","widows","width","zIndex","pointerEvents","aspectRatio"];function combine(e,t,n){!n&&ke.push(e),t.forEach((function(t){ke.push(e+t),e===ye&&ke.push("Webkit"+t)}))}var _e="Color",Pe="Style",Ee="Width",Se="Image",Te="Size",Ce=[_e,Pe,Ee],we=["FitLength","FitWidth",Se],Ie=[].concat(we,["Radius"]),xe=[].concat(Ce,we),Ae=["EndRadius","StartRadius"],Ne=["Bottom","Left","Right","Top"],Le=["End","Start"],Fe=["Content","Items","Self"],Oe=["BlockSize","Height","InlineSize",Ee],Re=["After","Before"];function recordCss(e){oe.record({type:"attributes",target:e._element,attributeName:"style",oldValue:e.cssText})}function enqueueUpdate(e){var t=e._element;t._root&&t.enqueueUpdate({path:"".concat(t._path,".","st"),value:e.cssText})}function setStyle(e,t){(0,b.warn)((0,b.isString)(e)&&e.length>E,"Style 属性 ".concat(t," 的值数据量过大,可能会影响渲染性能,考虑使用 CSS 类或其它方案替代。")),this[t]!==e&&(!this._pending&&recordCss(this),(0,b.isNull)(e)||(0,b.isUndefined)(e)?(this._usedStyleProp.delete(t),delete this._value[t]):(this._usedStyleProp.add(t),this._value[t]=e),!this._pending&&enqueueUpdate(this))}function initStyle(e,t){for(var n={},i=function _loop(){var i=t[r];if(e[i])return{v:void 0};n[i]={get:function get(){var e=this._value[i];return(0,b.isNull)(e)||(0,b.isUndefined)(e)?"":e},set:function set(e){setStyle.call(this,e,i)}}},r=0;r<t.length;r++){var o=i();if("object"===(0,c.default)(o))return o.v}Object.defineProperties(e.prototype,n)}combine("borderBlock",Ce),combine("borderBlockEnd",Ce),combine("borderBlockStart",Ce),combine("outline",[].concat(Ce,["Offset"])),combine("border",[].concat(Ce,["Boundary","Break","Collapse","Radius","Spacing"])),combine("borderFit",["Length",Ee]),combine("borderInline",Ce),combine("borderInlineEnd",Ce),combine("borderInlineStart",Ce),combine("borderLeft",xe),combine("borderRight",xe),combine("borderTop",xe),combine("borderBottom",xe),combine("textDecoration",[_e,Pe,"Line"]),combine("textEmphasis",[_e,Pe,"Position"]),combine("scrollMargin",Ne),combine("scrollPadding",Ne),combine("padding",Ne),combine("margin",[].concat(Ne,["Trim"])),combine("scrollMarginBlock",Le),combine("scrollMarginInline",Le),combine("scrollPaddingBlock",Le),combine("scrollPaddingInline",Le),combine("gridColumn",Le),combine("gridRow",Le),combine("insetBlock",Le),combine("insetInline",Le),combine("marginBlock",Le),combine("marginInline",Le),combine("paddingBlock",Le),combine("paddingInline",Le),combine("pause",Re),combine("cue",Re),combine("mask",["Clip","Composite",Se,"Mode","Origin","Position","Repeat",Te,"Type"]),combine("borderImage",["Outset","Repeat","Slice","Source","Transform",Ee]),combine("maskBorder",["Mode","Outset","Repeat","Slice","Source",Ee]),combine("font",["Family","FeatureSettings","Kerning","LanguageOverride","MaxSize","MinSize","OpticalSizing","Palette",Te,"SizeAdjust","Stretch",Pe,"Weight","VariationSettings"]),combine("transform",["Box","Origin",Pe]),combine("background",[_e,Se,"Attachment","BlendMode","Clip","Origin","Position","Repeat",Te]),combine("listStyle",[Se,"Position","Type"]),combine("scrollSnap",["Align","Stop","Type"]),combine("grid",["Area","AutoColumns","AutoFlow","AutoRows"]),combine("gridTemplate",["Areas","Columns","Rows"]),combine("overflow",["Block","Inline","Wrap","X","Y"]),combine("transition",["Delay","Duration","Property","TimingFunction"]),combine("color",["Adjust","InterpolationFilters","Scheme"]),combine("textAlign",["All","Last"]),combine("page",["BreakAfter","BreakBefore","BreakInside"]),combine("animation",["Delay","Direction","Duration","FillMode","IterationCount","Name","PlayState","TimingFunction"]),combine("flex",["Basis","Direction","Flow","Grow","Shrink","Wrap"]),combine("offset",[].concat(Re,Le,["Anchor","Distance","Path","Position","Rotate"])),combine("perspective",["Origin"]),combine("clip",["Path","Rule"]),combine("flow",["From","Into"]),combine("align",["Content","Items","Self"],!0),combine("alignment",["Adjust","Baseline"],!0),combine("borderStart",Ae,!0),combine("borderEnd",Ae,!0),combine("borderCorner",["Fit",Se,"ImageTransform"],!0),combine("borderTopLeft",Ie,!0),combine("borderTopRight",Ie,!0),combine("borderBottomLeft",Ie,!0),combine("borderBottomRight",Ie,!0),combine("column",["s","Count","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","Span",Ee],!0),combine("break",[].concat(Re,["Inside"]),!0),combine("wrap",[].concat(Re,["Flow","Inside","Through"]),!0),combine("justify",Fe,!0),combine("place",Fe,!0),combine("max",[].concat(Oe,["Lines"]),!0),combine("min",Oe,!0),combine("line",["Break","Clamp","Grid","Height","Padding","Snap"],!0),combine("inline",["BoxAlign",Te,"Sizing"],!0),combine("text",["CombineUpright","GroupAlign","Height","Indent","Justify","Orientation","Overflow","Shadow","SpaceCollapse","SpaceTrim","Spacing","Transform","UnderlinePosition","Wrap"],!0),combine("shape",["ImageThreshold","Inside","Margin","Outside"],!0),combine("word",["Break","Spacing","Wrap"],!0),combine("object",["Fit","Position"],!0),combine("box",["DecorationBreak","Shadow","Sizing","Snap"],!0),combine(ye,["LineClamp","BoxOrient","TextFillColor","TextStroke","TextStrokeColor","TextStrokeWidth"],!0);var je=function(){function Style(e){(0,m.default)(this,Style),this._element=e,this._usedStyleProp=new Set,this._value={}}return(0,g.default)(Style,[{key:"setCssVariables",value:function setCssVariables(e){var t=this;this.hasOwnProperty(e)||Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:function get(){return t._value[e]||""},set:function set(n){setStyle.call(t,n,e)}})}},{key:"cssText",get:function get(){var e=this;if(!this._usedStyleProp.size)return"";var t=[];return this._usedStyleProp.forEach((function(n){var i=e[n];if(!(0,b.isNull)(i)&&!(0,b.isUndefined)(i)){var r=function isCssVariable(e){return/^--/.test(e)}(n)?n:(0,b.toDashed)(n);0!==r.indexOf("webkit")&&0!==r.indexOf("Webkit")||(r="-".concat(r)),t.push("".concat(r,": ").concat(i,";"))}})),t.join(" ")},set:function set(e){var t=this;if(this._pending=!0,recordCss(this),this._usedStyleProp.forEach((function(e){t.removeProperty(e)})),""===e||(0,b.isUndefined)(e)||(0,b.isNull)(e))return this._pending=!1,void enqueueUpdate(this);for(var n=e.split(";"),i=0;i<n.length;i++){var r=n[i].trim();if(""!==r){var o=r.split(":"),a=(0,l.default)(o),s=a[0],c=a.slice(1).join(":");(0,b.isUndefined)(c)||this.setProperty(s.trim(),c.trim())}}this._pending=!1,enqueueUpdate(this)}},{key:"setProperty",value:function setProperty(e,t){"-"===e[0]?this.setCssVariables(e):e=(0,b.toCamelCase)(e),(0,b.isNull)(t)||(0,b.isUndefined)(t)?this.removeProperty(e):this[e]=t}},{key:"removeProperty",value:function removeProperty(e){if(e=(0,b.toCamelCase)(e),!this._usedStyleProp.has(e))return"";var t=this[e];return this[e]=void 0,t}},{key:"getPropertyValue",value:function getPropertyValue(e){var t=this[e=(0,b.toCamelCase)(e)];return t||""}}]),Style}();function returnTrue(){return!0}function treeToArray(e,t){for(var n=[],i=null!=t?t:returnTrue,r=e;r;)1===r.nodeType&&i(r)&&n.push(r),r=following(r,e);return n}function following(e,t){var n=e.firstChild,i=1===e.nodeType||9===e.nodeType;if(n&&i)return n;var r=e;do{if(r===t)return null;var o=r.nextSibling;if(o)return o;r=r.parentElement}while(r);return null}initStyle(je,ke),b.hooks.tap("injectNewStyleProperties",(function(e){if((0,b.isArray)(e))initStyle(je,e);else{if("string"!=typeof e)return;initStyle(je,[e])}}));var Me=function(e){(0,h.default)(TaroElement,e);var t=(0,f.default)(TaroElement);function TaroElement(){var e;return(0,m.default)(this,TaroElement),(e=t.call(this)).props={},e.dataset=b.EMPTY_OBJ,e.nodeType=1,e.style=new je((0,u.default)(e)),b.hooks.call("patchElement",(0,u.default)(e)),e}return(0,g.default)(TaroElement,[{key:"_stopPropagation",value:function _stopPropagation(e){for(var t=this;t=t.parentNode;){var n=t.__handlers[e.type];if((0,b.isArray)(n))for(var i=n.length;i--;){n[i]._stop=!0}}}},{key:"id",get:function get(){return this.getAttribute(w)},set:function set(e){this.setAttribute(w,e)}},{key:"className",get:function get(){return this.getAttribute(I)||""},set:function set(e){this.setAttribute(I,e)}},{key:"cssText",get:function get(){return this.getAttribute(x)||""}},{key:"classList",get:function get(){return new de(this.className,this)}},{key:"children",get:function get(){return this.childNodes.filter(isElement)}},{key:"attributes",get:function get(){var e=this.props,t=Object.keys(e),n=this.style.cssText;return t.map((function(t){return{name:t,value:e[t]}})).concat(n?{name:x,value:n}:[])}},{key:"textContent",get:function get(){for(var e="",t=this.childNodes,n=0;n<t.length;n++)e+=t[n].textContent;return e},set:function set(e){(0,a.default)((0,s.default)(TaroElement.prototype),"textContent",e,this,!0)}},{key:"hasAttribute",value:function hasAttribute(e){return!(0,b.isUndefined)(this.props[e])}},{key:"hasAttributes",value:function hasAttributes(){return this.attributes.length>0}},{key:"focus",get:function get(){return function(){this.setAttribute(A,!0)}},set:function set(e){this.setAttribute(A,e)}},{key:"blur",value:function blur(){this.setAttribute(A,!1)}},{key:"setAttribute",value:function setAttribute(e,t){(0,b.warn)((0,b.isString)(t)&&t.length>E,"元素 ".concat(this.nodeName," 的 ").concat(e," 属性值数据量过大,可能会影响渲染性能。考虑降低图片转为 base64 的阈值或在 CSS 中使用 base64。"));var n=this.nodeName===N&&!isHasExtractProp(this)&&!this.isAnyEventBinded();switch(e!==x&&oe.record({target:this,type:"attributes",attributeName:e,oldValue:this.getAttribute(e)}),e){case x:this.style.cssText=t;break;case w:this.uid!==this.sid&&fe.delete(this.uid),t=String(t),this.props[e]=this.uid=t,fe.set(t,this);break;default:this.props[e]=t,e.startsWith("data-")&&(this.dataset===b.EMPTY_OBJ&&(this.dataset=Object.create(null)),this.dataset[(0,b.toCamelCase)(e.replace(/^data-/,""))]=t)}if(this._root){var i=getComponentsAlias(),r=i[this.nodeName],o=i[N]._num,a=i[L]._num,s=i[q]._num,l=this._path;e=shortcutAttr(e);var c=(0,b.toCamelCase)(e),u={path:"".concat(l,".").concat(c),value:(0,b.isFunction)(t)?function(){return t}:t};if(b.hooks.call("modifySetAttrPayload",this,e,u,i),r){var d=r[c]||e;u.path="".concat(l,".").concat((0,b.toCamelCase)(d))}this.enqueueUpdate(u),this.nodeName===N&&(c===V?this.enqueueUpdate({path:"".concat(l,".","nn"),value:t?s:this.isAnyEventBinded()?o:a}):n&&isHasExtractProp(this)&&this.enqueueUpdate({path:"".concat(l,".","nn"),value:a}))}}},{key:"removeAttribute",value:function removeAttribute(e){var t=this.nodeName===N&&isHasExtractProp(this)&&!this.isAnyEventBinded();if(oe.record({target:this,type:"attributes",attributeName:e,oldValue:this.getAttribute(e)}),e===x)this.style.cssText="";else{if(b.hooks.call("onRemoveAttribute",this,e))return;if(!this.props.hasOwnProperty(e))return;delete this.props[e]}if(this._root){var n=getComponentsAlias(),i=n[this.nodeName],r=n[N]._num,o=n[L]._num,a=n[F]._num,s=this._path;e=shortcutAttr(e);var l=(0,b.toCamelCase)(e),c={path:"".concat(s,".").concat(l),value:""};if(b.hooks.call("modifyRmAttrPayload",this,e,c,n),i){var u=i[l]||e;c.path="".concat(s,".").concat((0,b.toCamelCase)(u))}this.enqueueUpdate(c),this.nodeName===N&&(l===V?this.enqueueUpdate({path:"".concat(s,".","nn"),value:this.isAnyEventBinded()?r:isHasExtractProp(this)?o:a}):t&&!isHasExtractProp(this)&&this.enqueueUpdate({path:"".concat(s,".","nn"),value:a}))}}},{key:"getAttribute",value:function getAttribute(e){var t=e===x?this.style.cssText:this.props[e];return null!=t?t:""}},{key:"getElementsByTagName",value:function getElementsByTagName(e){var t=this;return treeToArray(this,(function(n){return n.nodeName===e||"*"===e&&t!==n}))}},{key:"getElementsByClassName",value:function getElementsByClassName(e){var t=e.trim().split(/\s+/);return treeToArray(this,(function(e){var n=e.classList;return t.every((function(e){return n.contains(e)}))}))}},{key:"dispatchEvent",value:function dispatchEvent(e){var t=e.cancelable,n=this.__handlers[e.type];if(!(0,b.isArray)(n))return!1;for(var i=n.length;i--;){var r=n[i],o=void 0;if(r._stop?r._stop=!1:(b.hooks.call("modifyDispatchEvent",e,this),o=r.call(this,e)),(!1===o||e._end)&&t&&(e.defaultPrevented=!0),!(0,b.isUndefined)(o)&&e.mpEvent&&(e.mpEvent[X]=o),e._end&&e._stop)break}return e._stop?this._stopPropagation(e):e._stop=!0,null!=n}},{key:"addEventListener",value:function addEventListener(e,t,n){var i=this.nodeName,r=b.hooks.call("getSpecialNodes"),a=!0;if((0,b.isObject)(n)&&!1===n.sideEffect&&(a=!1,delete n.sideEffect),!1!==a&&!this.isAnyEventBinded()&&r.indexOf(i)>-1){var l=getComponentsAlias()[i]._num;this.enqueueUpdate({path:"".concat(this._path,".","nn"),value:l})}(0,o.default)((0,s.default)(TaroElement.prototype),"addEventListener",this).call(this,e,t,n)}},{key:"removeEventListener",value:function removeEventListener(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,o.default)((0,s.default)(TaroElement.prototype),"removeEventListener",this).call(this,e,t);var i=this.nodeName,r=b.hooks.call("getSpecialNodes");if(!1!==n&&!this.isAnyEventBinded()&&r.indexOf(i)>-1){var a=getComponentsAlias()[isHasExtractProp(this)?"static-".concat(i):"pure-".concat(i)]._num;this.enqueueUpdate({path:"".concat(this._path,".","nn"),value:a})}}}],[{key:"extend",value:function extend(e,t){_extend(TaroElement,e,t)}}]),TaroElement}(be),Be={prerender:!0,debug:!1};function feedPosition(e,t,n){for(var i=e.index,r=e.index=i+n,o=i;o<r;o++){"\n"===t.charAt(o)?(e.line++,e.column=0):e.column++}}function jumpPosition(e,t,n){return feedPosition(e,t,n-e.index)}function copyPosition(e){return{index:e.index,line:e.line,column:e.column}}var Ue=/\s/;function isWhitespaceChar(e){return Ue.test(e)}var Ge=/=/;function isEqualSignChar(e){return Ge.test(e)}function shouldBeIgnore(e){var t=e.toLowerCase();return!!Be.html.skipElements.has(t)}var He=/[A-Za-z0-9]/;function isWordEnd(e,t,n){if(!isWhitespaceChar(n.charAt(e)))return!1;for(var i=n.length,r=e-1;r>t;r--){var o=n.charAt(r);if(!isWhitespaceChar(o)){if(isEqualSignChar(o))return!1;break}}for(var a=e+1;a<i;a++){var s=n.charAt(a);if(!isWhitespaceChar(s))return!isEqualSignChar(s)}}var De=function(){function Scaner(e){(0,m.default)(this,Scaner),this.tokens=[],this.position={index:0,column:0,line:0},this.html=e}return(0,g.default)(Scaner,[{key:"scan",value:function scan(){for(var e=this.html,t=this.position,n=e.length;t.index<n;){var i=t.index;if(this.scanText(),t.index===i)if(e.startsWith("!--",i+1))this.scanComment();else{var r=this.scanTag();shouldBeIgnore(r)&&this.scanSkipTag(r)}}return this.tokens}},{key:"scanText",value:function scanText(){var e=this.html,t=this.position,n=function findTextEnd(e,t){for(;;){var n=e.indexOf("<",t);if(-1===n)return n;var i=e.charAt(n+1);if("/"===i||"!"===i||He.test(i))return n;t=n+1}}(e,t.index);if(n!==t.index){-1===n&&(n=e.length);var i=copyPosition(t),r=e.slice(t.index,n);jumpPosition(t,e,n);var o=copyPosition(t);this.tokens.push({type:"text",content:r,position:{start:i,end:o}})}}},{key:"scanComment",value:function scanComment(){var e=this.html,t=this.position,n=copyPosition(t);feedPosition(t,e,4);var i=e.indexOf("--\x3e",t.index),r=i+3;-1===i&&(i=r=e.length);var o=e.slice(t.index,i);jumpPosition(t,e,r),this.tokens.push({type:"comment",content:o,position:{start:n,end:copyPosition(t)}})}},{key:"scanTag",value:function scanTag(){this.scanTagStart();var e=this.scanTagName();return this.scanAttrs(),this.scanTagEnd(),e}},{key:"scanTagStart",value:function scanTagStart(){var e=this.html,t=this.position,n="/"===e.charAt(t.index+1),i=copyPosition(t);feedPosition(t,e,n?2:1),this.tokens.push({type:"tag-start",close:n,position:{start:i}})}},{key:"scanTagEnd",value:function scanTagEnd(){var e=this.html,t=this.position,n="/"===e.charAt(t.index);feedPosition(t,e,n?2:1);var i=copyPosition(t);this.tokens.push({type:"tag-end",close:n,position:{end:i}})}},{key:"scanTagName",value:function scanTagName(){for(var e=this.html,t=this.position,n=e.length,i=t.index;i<n;){var r=e.charAt(i);if(!(isWhitespaceChar(r)||"/"===r||">"===r))break;i++}for(var o=i+1;o<n;){var a=e.charAt(o);if(!!(isWhitespaceChar(a)||"/"===a||">"===a))break;o++}jumpPosition(t,e,o);var s=e.slice(i,o);return this.tokens.push({type:"tag",content:s}),s}},{key:"scanAttrs",value:function scanAttrs(){for(var e=this.html,t=this.position,n=this.tokens,i=t.index,r=null,o=i,a=[],s=e.length;i<s;){var l=e.charAt(i);if(r){l===r&&(r=null),i++}else{if("/"===l||">"===l){i!==o&&a.push(e.slice(o,i));break}if(isWordEnd(i,o,e))i!==o&&a.push(e.slice(o,i)),o=i+1,i++;else"'"===l||'"'===l?(r=l,i++):i++}}jumpPosition(t,e,i);for(var c=a.length,u="attribute",d=0;d<c;d++){var h=a[d];if(h.includes("=")){var f=a[d+1];if(f&&f.startsWith("=")){if(f.length>1){var p=h+f;n.push({type:u,content:p}),d+=1;continue}var v=a[d+2];if(d+=1,v){var m=h+"="+v;n.push({type:u,content:m}),d+=1;continue}}}if(h.endsWith("=")){var g=a[d+1];if(g&&!g.includes("=")){var b=h+g;n.push({type:u,content:b}),d+=1;continue}var y=h.slice(0,-1);n.push({type:u,content:y})}else n.push({type:u,content:h})}}},{key:"scanSkipTag",value:function scanSkipTag(e){for(var t=this.html,n=this.position,i=e.toLowerCase(),r=t.length;n.index<r;){var o=t.indexOf("</",n.index);if(-1===o){this.scanText();break}if(jumpPosition(n,t,o),i===this.scanTag().toLowerCase())break}}}]),Scaner}();function unquote(e){var t=e.charAt(0),n=e.length-1;return('"'===t||"'"===t)&&t===e.charAt(n)?e.slice(1,n):e}var We=function(){function StyleTagParser(){(0,m.default)(this,StyleTagParser),this.styles=[]}return(0,g.default)(StyleTagParser,[{key:"extractStyle",value:function extractStyle(e){var t=this,n=e;return n=n.replace(/<style\s?[^>]*>((.|\n|\s)+?)<\/style>/g,(function(e,n){var i=n.trim();return t.stringToSelector(i),""})),n.trim()}},{key:"stringToSelector",value:function stringToSelector(e){for(var t=this,n=e.indexOf("{"),i=function _loop2(){var i=e.indexOf("}"),r=e.slice(0,n).trim(),o=e.slice(n+1,i);o=(o=(o=o.replace(/:(.*);/g,(function(e,t){var n=t.trim().replace(/ +/g,"+++");return":".concat(n,";")}))).replace(/ /g,"")).replace(/\+\+\+/g," "),/;$/.test(o)||(o+=";"),r.split(",").forEach((function(e){var n=t.parseSelector(e);t.styles.push({content:o,selectorList:n})})),e=e.slice(i+1),n=e.indexOf("{")};n>-1;)i()}},{key:"parseSelector",value:function parseSelector(e){return e.trim().replace(/ *([>~+]) */g," $1").replace(/ +/g," ").replace(/\[\s*([^[\]=\s]+)\s*=\s*([^[\]=\s]+)\s*\]/g,"[$1=$2]").split(" ").map((function(e){var t=e.charAt(0),n={isChild:">"===t,isGeneralSibling:"~"===t,isAdjacentSibling:"+"===t,tag:null,id:null,class:[],attrs:[]};return""!==(e=(e=(e=e.replace(/^[>~+]/,"")).replace(/\[(.+?)\]/g,(function(e,t){var i=t.split("="),o=(0,r.default)(i,2),a=o[0],s=o[1],l=-1===t.indexOf("="),c={all:l,key:a,value:l?null:s};return n.attrs.push(c),""}))).replace(/([.#][A-Za-z0-9-_]+)/g,(function(e,t){return"#"===t[0]?n.id=t.substr(1):"."===t[0]&&n.class.push(t.substr(1)),""})))&&(n.tag=e),n}))}},{key:"matchStyle",value:function matchStyle(e,t,n){var i=this;return function sortStyles(e){return e.sort((function(e,t){var n=getHundredsWeight(e.selectorList),i=getHundredsWeight(t.selectorList);if(n!==i)return n-i;var r=getTensWeight(e.selectorList),o=getTensWeight(t.selectorList);return r!==o?r-o:getOnesWeight(e.selectorList)-getOnesWeight(t.selectorList)}))}(this.styles).reduce((function(r,o,a){var s=o.content,l=o.selectorList,c=n[a],u=l[c],d=l[c+1];((null==d?void 0:d.isGeneralSibling)||(null==d?void 0:d.isAdjacentSibling))&&(u=d,c+=1,n[a]+=1);var h=i.matchCurrent(e,t,u);if(h&&u.isGeneralSibling)for(var f=getPreviousElement(t);f;){if(f.h5tagName&&i.matchCurrent(f.h5tagName,f,l[c-1])){h=!0;break}f=getPreviousElement(f),h=!1}if(h&&u.isAdjacentSibling){var p=getPreviousElement(t);if(p&&p.h5tagName)i.matchCurrent(p.h5tagName,p,l[c-1])||(h=!1);else h=!1}if(h){if(c===l.length-1)return r+s;c<l.length-1&&(n[a]+=1)}else u.isChild&&c>0&&(n[a]-=1,i.matchCurrent(e,t,l[n[a]])&&(n[a]+=1));return r}),"")}},{key:"matchCurrent",value:function matchCurrent(e,t,n){if(n.tag&&n.tag!==e)return!1;if(n.id&&n.id!==t.id)return!1;if(n.class.length)for(var i=t.className.split(" "),r=0;r<n.class.length;r++){var o=n.class[r];if(-1===i.indexOf(o))return!1}if(n.attrs.length)for(var a=0;a<n.attrs.length;a++){var s=n.attrs[a],l=s.all,c=s.key,u=s.value;if(l&&!t.hasAttribute(c))return!1;if(t.getAttribute(c)!==unquote(u||""))return!1}return!0}}]),StyleTagParser}();function getPreviousElement(e){if(!e.parentElement)return null;var t=e.previousSibling;return t?1===t.nodeType?t:getPreviousElement(t):null}function getHundredsWeight(e){return e.reduce((function(e,t){return e+(t.id?1:0)}),0)}function getTensWeight(e){return e.reduce((function(e,t){return e+t.class.length+t.attrs.length}),0)}function getOnesWeight(e){return e.reduce((function(e,t){return e+(t.tag?1:0)}),0)}function makeMap(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return!!n[e.toLowerCase()]}:function(e){return!!n[e]}}var Ve={img:"image",iframe:"web-view"},qe=makeMap(Object.keys(b.internalComponents).map((function(e){return e.toLowerCase()})).join(","),!0),ze=makeMap("a,i,abbr,iframe,select,acronym,slot,small,span,bdi,kbd,strong,big,map,sub,sup,br,mark,mark,meter,template,canvas,textarea,cite,object,time,code,output,u,data,picture,tt,datalist,var,dfn,del,q,em,s,embed,samp,b",!0),Qe=makeMap("address,fieldset,li,article,figcaption,main,aside,figure,nav,blockquote,footer,ol,details,form,p,dialog,h1,h2,h3,h4,h5,h6,pre,dd,header,section,div,hgroup,table,dl,hr,ul,dt",!0),$e={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]};function hasTerminalParent(e,t){var n=$e[e];if(n)for(var i=t.length-1;i>=0;){var r=t[i].tagName;if(r===e)break;if(n&&n.includes(r))return!0;i--}return!1}function format(e,t,n,i){return e.filter((function(e){return"comment"!==e.type&&("text"!==e.type||""!==e.content)})).map((function(e){if("text"===e.type){var o=t.createTextNode(e.content);return(0,b.isFunction)(Be.html.transformText)&&(o=Be.html.transformText(o,e)),null==i||i.appendChild(o),o}var a,s,l=t.createElement(function getTagName(e){return Be.html.renderHTMLTag?e:Ve[e]?Ve[e]:qe(e)?e:Qe(e)?"view":ze(e)?"text":"view"}(e.tagName));l.h5tagName=e.tagName,null==i||i.appendChild(l),Be.html.renderHTMLTag||(l.className="h5-".concat(e.tagName));for(var c=0;c<e.attributes.length;c++){var u=e.attributes[c],d=(s=void 0,-1===(s=(a=u).indexOf("="))?[a]:[a.slice(0,s).trim(),a.slice(s+1).trim()]),h=(0,r.default)(d,2),f=h[0],p=h[1];if("class"===f)l.className+=" "+unquote(p);else{if("o"===f[0]&&"n"===f[1])continue;l.setAttribute(f,null==p||unquote(p))}}var v=n.styleTagParser,m=n.descendantList.slice(),g=v.matchStyle(e.tagName,l,m);return l.setAttribute("style",g+l.style.cssText),format(e.children,t,{styleTagParser:v,descendantList:m},l),(0,b.isFunction)(Be.html.transformElement)?Be.html.transformElement(l,e):l}))}function parser(e,t){var n=new We;e=n.extractStyle(e);var i={tagName:"",children:[],type:"element",attributes:[]};return parse({tokens:new De(e).scan(),options:Be,cursor:0,stack:[i]}),format(i.children,t,{styleTagParser:n,descendantList:Array(n.styles.length).fill(0)})}function parse(e){for(var t=e.tokens,n=e.stack,i=e.cursor,r=t.length,o=n[n.length-1].children;i<r;){var a=t[i];if("tag-start"===a.type){var s=t[++i];i++;var l=s.content.toLowerCase();if(a.close){for(var c=n.length,u=!1;--c>-1;)if(n[c].tagName===l){u=!0;break}for(;i<r;){if("tag-end"!==t[i].type)break;i++}if(u){n.splice(c);break}}else{var d=Be.html.closingElements.has(l);if(d&&(d=!hasTerminalParent(l,n)),d)for(var h=n.length-1;h>0;){if(l===n[h].tagName){n.splice(h),o=n[h-1].children;break}h-=1}for(var f=[],p=void 0;i<r&&"tag-end"!==(p=t[i]).type;)f.push(p.content),i++;i++;var v=[],m={type:"element",tagName:s.content,attributes:f,children:v};if(o.push(m),!(p.close||Be.html.voidElements.has(l))){n.push({tagName:l,children:v});var g={tokens:t,cursor:i,stack:n};parse(g),i=g.cursor}}}else o.push(a),i++}e.cursor=i}function setInnerHTML(e,t){for(;e.firstChild;)e.removeChild(e.firstChild);for(var n=parser(t,e.ownerDocument),i=0;i<n.length;i++)e.appendChild(n[i])}Be.html={skipElements:new Set(["style","script"]),voidElements:new Set(["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),closingElements:new Set(["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"]),renderHTMLTag:!1},(0,b.isWebPlatform)()||be.extend("innerHTML",{set:function set(e){setInnerHTML.call(this,this,e)},get:function get(){return""}});var Ye=function(){function TaroEvent(e,t,n){(0,m.default)(this,TaroEvent),this._stop=!1,this._end=!1,this.defaultPrevented=!1,this.button=0,this.timeStamp=Date.now(),this.type=e.toLowerCase(),this.mpEvent=n,this.bubbles=Boolean(t&&t.bubbles),this.cancelable=Boolean(t&&t.cancelable)}return(0,g.default)(TaroEvent,[{key:"stopPropagation",value:function stopPropagation(){this._stop=!0}},{key:"stopImmediatePropagation",value:function stopImmediatePropagation(){this._end=this._stop=!0}},{key:"preventDefault",value:function preventDefault(){this.defaultPrevented=!0}},{key:"target",get:function get(){var e,t,n=this.cacheTarget;if(n)return n;var i=Object.create((null===(e=this.mpEvent)||void 0===e?void 0:e.target)||null),r=ve.document.getElementById(i.id);for(var o in i.dataset=null!==r?r.dataset:b.EMPTY_OBJ,null===(t=this.mpEvent)||void 0===t?void 0:t.detail)i[o]=this.mpEvent.detail[o];return this.cacheTarget=i,i}},{key:"currentTarget",get:function get(){var e,t,n,i,r=this.cacheCurrentTarget;if(r)return r;var o=ve.document,a=Object.create((null===(e=this.mpEvent)||void 0===e?void 0:e.currentTarget)||null),s=o.getElementById(a.id),l=o.getElementById((null===(n=null===(t=this.mpEvent)||void 0===t?void 0:t.target)||void 0===n?void 0:n.id)||null);if(null===s||s&&s===l)return this.cacheCurrentTarget=this.target,this.target;for(var c in a.dataset=s.dataset,null===(i=this.mpEvent)||void 0===i?void 0:i.detail)a[c]=this.mpEvent.detail[c];return this.cacheCurrentTarget=a,a}}]),TaroEvent}();function createEvent(e,t){if("string"==typeof e)return new Ye(e,{bubbles:!0,cancelable:!0});var n=new Ye(e.type,{bubbles:!0,cancelable:!0},e);for(var i in e)i!==B&&i!==M&&i!==U&&i!==H&&(n[i]=e[i]);return n.type===G&&(null==t?void 0:t.nodeName)===R&&(n[D]=13),n}var Ke={};function getEventCBResult(e){var t=e[X];return(0,b.isUndefined)(t)||delete e[X],t}function eventHandler(e){var t,n;void 0===e.type&&Object.defineProperty(e,"type",{value:e._type}),void 0===e.detail&&Object.defineProperty(e,"detail",{value:e._detail||Object.assign({},e)}),e.currentTarget=e.currentTarget||e.target||Object.assign({},e),b.hooks.call("modifyMpEventImpl",e);var i=e.currentTarget,r=(null===(t=i.dataset)||void 0===t?void 0:t.sid)||i.id||(null===(n=e.detail)||void 0===n?void 0:n.id)||"",o=ve.document.getElementById(r);if(o){var a=function dispatch(){var t=createEvent(e,o);b.hooks.call("modifyTaroEvent",t,o),o.dispatchEvent(t)};if(!b.hooks.isExist("batchedEventUpdates"))return a(),getEventCBResult(e);var s=e.type;if(!b.hooks.call("isBubbleEvents",s)||!function isParentBinded(e,t){for(var n,i=!1;(null==e?void 0:e.parentElement)&&e.parentElement._path!==T;){if(null===(n=e.parentElement.__handlers[t])||void 0===n?void 0:n.length){i=!0;break}e=e.parentElement}return i}(o,s)||s===W&&o.props.catchMove)return b.hooks.call("batchedEventUpdates",(function(){Ke[s]&&(Ke[s].forEach((function(e){return e()})),delete Ke[s]),a()})),getEventCBResult(e);(Ke[s]||(Ke[s]=[])).push(a)}}var Je=function(e){(0,h.default)(FormElement,e);var t=(0,f.default)(FormElement);function FormElement(){return(0,m.default)(this,FormElement),t.apply(this,arguments)}return(0,g.default)(FormElement,[{key:"value",get:function get(){var e=this.props[O];return null==e?"":e},set:function set(e){this.setAttribute(O,e)}},{key:"dispatchEvent",value:function dispatchEvent(e){if(e.mpEvent){var t=e.mpEvent.detail.value;"change"===e.type?this.props.value=t:e.type===R&&(this.value=t)}return(0,o.default)((0,s.default)(FormElement.prototype),"dispatchEvent",this).call(this,e)}}]),FormElement}(Me),Ze=function(){function Performance(){(0,m.default)(this,Performance),this.recorder=new Map}return(0,g.default)(Performance,[{key:"start",value:function start(e){Be.debug&&this.recorder.set(e,Date.now())}},{key:"stop",value:function stop(e){if(Be.debug){var t=Date.now(),n=this.recorder.get(e);this.recorder.delete(e);var i=t-n;console.log("".concat(e," 时长: ").concat(i,"ms"))}}}]),Performance}(),Xe=new Ze;function findCustomWrapper(e,t){var n,i=t.slice(1),r=e,o="";if(i.some((function(e,i){var a=e.replace(/^\[(.+)\]$/,"$1").replace(/\bcn\b/g,"childNodes");if(r=r[a],(0,b.isArray)(r)&&(r=r.filter((function(e){return!isComment(e)}))),(0,b.isUndefined)(r))return!0;if(r.nodeName===j){var s=le.get(r.sid);s&&(n=s,o=t.slice(i+2).join("."))}})),n)return{customWrapper:n,splitedPath:o}}var et,tt=function(e){(0,h.default)(TaroRootElement,e);var t=(0,f.default)(TaroRootElement);function TaroRootElement(){var e;return(0,m.default)(this,TaroRootElement),(e=t.call(this)).updatePayloads=[],e.updateCallbacks=[],e.pendingUpdate=!1,e.ctx=null,e.nodeName=T,e.tagName=T.toUpperCase(),e}return(0,g.default)(TaroRootElement,[{key:"_path",get:function get(){return T}},{key:"_root",get:function get(){return this}},{key:"enqueueUpdate",value:function enqueueUpdate(e){this.updatePayloads.push(e),!this.pendingUpdate&&this.ctx&&this.performUpdate()}},{key:"performUpdate",value:function performUpdate(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;this.pendingUpdate=!0;var i=this.ctx;setTimeout((function(){var r="".concat("小程序 setData"," 开始时间戳 ").concat(Date.now());Xe.start(r);for(var o=Object.create(null),a=new Set(t?["root.cn.[0]","root.cn[0]"]:[]);e.updatePayloads.length>0;){var s=e.updatePayloads.shift(),l=s.path,c=s.value;l.endsWith("cn")&&a.add(l),o[l]=c}var u=function _loop3(e){a.forEach((function(t){e.includes(t)&&e!==t&&delete o[e]}));var t=o[e];(0,b.isFunction)(t)&&(o[e]=t())};for(var h in o)u(h);if((0,b.isFunction)(n))return n(o);e.pendingUpdate=!1;var f={},p=new Map;if(t)f=o;else for(var v in o){var m=v.split("."),g=findCustomWrapper(e,m);if(g){var y=g.customWrapper,k=g.splitedPath;p.set(y,Object.assign(Object.assign({},p.get(y)||{}),(0,d.default)({},"i.".concat(k),o[v])))}else f[v]=o[v]}var _=p.size,P=Object.keys(f).length>0,E=_+(P?1:0),T=0,C=function cb(){++T===E&&(Xe.stop(r),e.flushUpdateCallback(),t&&Xe.stop(S))};_&&p.forEach((function(e,t){Be.debug&&console.log("custom wrapper setData: ",e),t.setData(e,C)})),P&&(Be.debug&&console.log("page setData:",f),i.setData(f,C))}),0)}},{key:"enqueueUpdateCallback",value:function enqueueUpdateCallback(e,t){this.updateCallbacks.push((function(){t?e.call(t):e()}))}},{key:"flushUpdateCallback",value:function flushUpdateCallback(){var e=this.updateCallbacks;if(e.length){var t=e.slice(0);this.updateCallbacks.length=0;for(var n=0;n<t.length;n++)t[n]()}}}]),TaroRootElement}(Me),nt=function(e){(0,h.default)(TaroText,e);var t=(0,f.default)(TaroText);function TaroText(e){var n;return(0,m.default)(this,TaroText),(n=t.call(this)).nodeType=3,n.nodeName="#text",n._value=e,n}return(0,g.default)(TaroText,[{key:"textContent",get:function get(){return this._value},set:function set(e){oe.record({target:this,type:"characterData",oldValue:this._value}),this._value=e,this.enqueueUpdate({path:"".concat(this._path,".","v"),value:e})}},{key:"nodeValue",get:function get(){return this._value},set:function set(e){this.textContent=e}},{key:"data",get:function get(){return this._value},set:function set(e){this.textContent=e}}]),TaroText}(be);function __classPrivateFieldGet(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function __classPrivateFieldSet(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}var it=/[!'()~]|%20|%00/g,rt=/\+/g,ot={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};function replacer(e){return ot[e]}function appendTo(e,t,n){var i=(0,b.isArray)(n)?n.join(","):n;t in e?e[t].push(i):e[t]=[i]}function addEach(e,t){appendTo(this,t,e)}function decode(e){return decodeURIComponent(e.replace(rt," "))}function encode(e){return encodeURIComponent(e).replace(it,replacer)}var at,st,lt,ct,ut,dt,ht=function(){function URLSearchParams(e){(0,m.default)(this,URLSearchParams),et.set(this,Object.create(null)),null!=e||(e="");var t=__classPrivateFieldGet(this,et,"f");if("string"==typeof e){"?"===e.charAt(0)&&(e=e.slice(1));for(var n=e.split("&"),i=0,r=n.length;i<r;i++){var o=n[i],a=o.indexOf("=");a>-1?appendTo(t,decode(o.slice(0,a)),decode(o.slice(a+1))):o.length&&appendTo(t,decode(o),"")}}else if((0,b.isArray)(e))for(var s=0,l=e.length;s<l;s++){var c=e[s];appendTo(t,c[0],c[1])}else if(e.forEach)e.forEach(addEach,t);else for(var u in e)appendTo(t,u,e[u])}return(0,g.default)(URLSearchParams,[{key:"append",value:function append(e,t){appendTo(__classPrivateFieldGet(this,et,"f"),e,t)}},{key:"delete",value:function _delete(e){delete __classPrivateFieldGet(this,et,"f")[e]}},{key:"get",value:function get(e){var t=__classPrivateFieldGet(this,et,"f");return e in t?t[e][0]:null}},{key:"getAll",value:function getAll(e){var t=__classPrivateFieldGet(this,et,"f");return e in t?t[e].slice(0):[]}},{key:"has",value:function has(e){return e in __classPrivateFieldGet(this,et,"f")}},{key:"keys",value:function keys(){return Object.keys(__classPrivateFieldGet(this,et,"f"))}},{key:"set",value:function set(e,t){__classPrivateFieldGet(this,et,"f")[e]=[""+t]}},{key:"forEach",value:function forEach(e,t){var n=__classPrivateFieldGet(this,et,"f");Object.getOwnPropertyNames(n).forEach((function(i){n[i].forEach((function(n){e.call(t,n,i,this)}),this)}),this)}},{key:"toJSON",value:function toJSON(){return{}}},{key:"toString",value:function toString(){var e=__classPrivateFieldGet(this,et,"f"),t=[];for(var n in e)for(var i=encode(n),r=0,o=e[n];r<o.length;r++)t.push(i+"="+encode(o[r]));return t.join("&")}}]),URLSearchParams}();et=new WeakMap;var ft=function(){function URL(e,t){(0,m.default)(this,URL),at.set(this,""),st.set(this,""),lt.set(this,""),ct.set(this,""),ut.set(this,""),dt.set(this,void 0),(0,b.isString)(e)||(e=String(e));var n=function parseUrlBase(e,t){var n=/^(https?:)\/\//i,i="",r=null;if(!(0,b.isUndefined)(t)){if(t=String(t).trim(),!n.test(t))throw new TypeError("Failed to construct 'URL': Invalid base URL");r=parseUrl(t)}if(e=String(e).trim(),n.test(e))i=e;else{if(!r)throw new TypeError("Failed to construct 'URL': Invalid URL");i=e?e.startsWith("//")?r.protocol+e:r.origin+(e.startsWith("/")?e:"/".concat(e)):r.href}return parseUrl(i)}(e,t),i=n.hash,r=n.hostname,o=n.pathname,a=n.port,s=n.protocol,l=n.search;__classPrivateFieldSet(this,at,i,"f"),__classPrivateFieldSet(this,st,r,"f"),__classPrivateFieldSet(this,lt,o||"/","f"),__classPrivateFieldSet(this,ct,a,"f"),__classPrivateFieldSet(this,ut,s,"f"),__classPrivateFieldSet(this,dt,new ht(l),"f")}return(0,g.default)(URL,[{key:"protocol",get:function get(){return __classPrivateFieldGet(this,ut,"f")},set:function set(e){(0,b.isString)(e)&&__classPrivateFieldSet(this,ut,e.trim(),"f")}},{key:"host",get:function get(){return this.hostname+(this.port?":"+this.port:"")},set:function set(e){if(e&&(0,b.isString)(e)){e=e.trim();var t=parseUrl("//".concat(e)),n=t.hostname,i=t.port;this.hostname=n,this.port=i}}},{key:"hostname",get:function get(){return __classPrivateFieldGet(this,st,"f")},set:function set(e){e&&(0,b.isString)(e)&&__classPrivateFieldSet(this,st,e.trim(),"f")}},{key:"port",get:function get(){return __classPrivateFieldGet(this,ct,"f")},set:function set(e){(0,b.isString)(e)&&__classPrivateFieldSet(this,ct,e.trim(),"f")}},{key:"pathname",get:function get(){return __classPrivateFieldGet(this,lt,"f")},set:function set(e){if((0,b.isString)(e)){for(var t=/^(\/|\.\/|\.\.\/)/,n=e=e.trim();t.test(n);)n=n.replace(t,"");__classPrivateFieldSet(this,lt,n?"/"+n:"/","f")}}},{key:"search",get:function get(){var e=__classPrivateFieldGet(this,dt,"f").toString();return 0===e.length||e.startsWith("?")?e:"?".concat(e)},set:function set(e){(0,b.isString)(e)&&(e=e.trim(),__classPrivateFieldSet(this,dt,new ht(e),"f"))}},{key:"hash",get:function get(){return __classPrivateFieldGet(this,at,"f")},set:function set(e){(0,b.isString)(e)&&(e=e.trim(),__classPrivateFieldSet(this,at,e?e.startsWith("#")?e:"#".concat(e):"","f"))}},{key:"href",get:function get(){return"".concat(this.protocol,"//").concat(this.host).concat(this.pathname).concat(this.search).concat(this.hash)},set:function set(e){if(e&&(0,b.isString)(e)){var t=parseUrl(e=e.trim()),n=t.protocol,i=t.hostname,r=t.port,o=t.hash,a=t.search,s=t.pathname;this.protocol=n,this.hostname=i,this.pathname=s,this.port=r,this.hash=o,this.search=a}}},{key:"origin",get:function get(){return"".concat(this.protocol,"//").concat(this.host)},set:function set(e){if(e&&(0,b.isString)(e)){var t=parseUrl(e=e.trim()),n=t.protocol,i=t.hostname,r=t.port;this.protocol=n,this.hostname=i,this.port=r}}},{key:"searchParams",get:function get(){return __classPrivateFieldGet(this,dt,"f")}},{key:"toString",value:function toString(){return this.href}},{key:"toJSON",value:function toJSON(){return this.toString()}},{key:"_toRaw",value:function _toRaw(){return{protocol:this.protocol,port:this.port,host:this.host,hostname:this.hostname,pathname:this.pathname,hash:this.hash,search:this.search,origin:this.origin,href:this.href}}}],[{key:"createObjectURL",value:function createObjectURL(){throw new Error("Oops, not support URL.createObjectURL() in miniprogram.")}},{key:"revokeObjectURL",value:function revokeObjectURL(){throw new Error("Oops, not support URL.revokeObjectURL() in miniprogram.")}}]),URL}();function parseUrl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={href:"",origin:"",protocol:"",hostname:"",host:"",port:"",pathname:"",search:"",hash:""};if(!e||!(0,b.isString)(e))return t;var n=(e=e.trim()).match(/^(([^:/?#]+):)?\/\/(([^/?#]+):(.+)@)?([^/?#:]*)(:(\d+))?([^?#]*)(\?([^#]*))?(#(.*))?/);return n?(t.protocol=n[1]||"https:",t.hostname=n[6]||"taro.com",t.port=n[8]||"",t.pathname=n[9]||"/",t.search=n[10]||"",t.hash=n[12]||"",t.href=e,t.origin=t.protocol+"//"+t.hostname,t.host=t.hostname+(t.port?":".concat(t.port):""),t):t}at=new WeakMap,st=new WeakMap,lt=new WeakMap,ct=new WeakMap,ut=new WeakMap,dt=new WeakMap;var pt,vt=function(e){(0,h.default)(AnchorElement,e);var t=(0,f.default)(AnchorElement);function AnchorElement(){return(0,m.default)(this,AnchorElement),t.apply(this,arguments)}return(0,g.default)(AnchorElement,[{key:"href",get:function get(){var e;return null!==(e=this.props.href)&&void 0!==e?e:""},set:function set(e){this.setAttribute("href",e)}},{key:"protocol",get:function get(){var e;return null!==(e=this.props.protocol)&&void 0!==e?e:""}},{key:"host",get:function get(){var e;return null!==(e=this.props.host)&&void 0!==e?e:""}},{key:"search",get:function get(){var e;return null!==(e=this.props.search)&&void 0!==e?e:""}},{key:"hash",get:function get(){var e;return null!==(e=this.props.hash)&&void 0!==e?e:""}},{key:"hostname",get:function get(){var e;return null!==(e=this.props.hostname)&&void 0!==e?e:""}},{key:"port",get:function get(){var e;return null!==(e=this.props.port)&&void 0!==e?e:""}},{key:"pathname",get:function get(){var e;return null!==(e=this.props.pathname)&&void 0!==e?e:""}},{key:"setAttribute",value:function setAttribute(e,t){if("href"===e){var n=parseUrl(t);for(var i in n)(0,o.default)((0,s.default)(AnchorElement.prototype),"setAttribute",this).call(this,i,n[i])}else(0,o.default)((0,s.default)(AnchorElement.prototype),"setAttribute",this).call(this,e,t)}}]),AnchorElement}(Me),mt=function(e){(0,h.default)(CustomWrapperElement,e);var t=(0,f.default)(CustomWrapperElement);function CustomWrapperElement(){return(0,m.default)(this,CustomWrapperElement),t.apply(this,arguments)}return(0,g.default)(CustomWrapperElement)}(Me),gt=function(e){(0,h.default)(TaroDocument,e);var t=(0,f.default)(TaroDocument);function TaroDocument(){var e;return(0,m.default)(this,TaroDocument),(e=t.call(this)).createEvent=createEvent,e.nodeType=9,e.nodeName="#document",e}return(0,g.default)(TaroDocument,[{key:"createElement",value:function createElement(e){var t,n=e.toLowerCase();switch(!0){case n===T:return t=new tt;case b.controlledComponent.has(n):t=new Je;break;case"a"===n:t=new vt;break;case n===j:t=new mt;break;default:t=new Me}return t.nodeName=n,t.tagName=e.toUpperCase(),t}},{key:"createElementNS",value:function createElementNS(e,t){return this.createElement(t)}},{key:"createTextNode",value:function createTextNode(e){return new nt(e)}},{key:"getElementById",value:function getElementById(e){var t=fe.get(e);return(0,b.isUndefined)(t)?null:t}},{key:"querySelector",value:function querySelector(e){return/^#/.test(e)?this.getElementById(e.slice(1)):null}},{key:"querySelectorAll",value:function querySelectorAll(){return[]}},{key:"createComment",value:function createComment(){var e=new nt("");return e.nodeName=z,e}},{key:"defaultView",get:function get(){return ve.window}}]),TaroDocument}(Me);if((0,b.isWebPlatform)())pt=ve.document;else{pt=ve.document=function createDocument(){var e=new gt,t=e.createElement.bind(e),n=t("html"),i=t("head"),r=t("body"),o=t("app");o.id="app";var a=t("container");return e.appendChild(n),n.appendChild(i),n.appendChild(r),r.appendChild(a),a.appendChild(o),e.documentElement=n,e.head=i,e.body=r,e}()}function getComputedStyle(e){return e.style}var bt,yt,kt,_t,Pt,Et,St=b.hooks.call("getEventCenter",b.Events),Tt=function(){function RuntimeCache(e){(0,m.default)(this,RuntimeCache),this.cache=new Map,this.name=e}return(0,g.default)(RuntimeCache,[{key:"has",value:function has(e){return this.cache.has(e)}},{key:"set",value:function set(e,t){e&&t&&this.cache.set(e,t)}},{key:"get",value:function get(e){if(this.has(e))return this.cache.get(e)}},{key:"delete",value:function _delete(e){this.cache.delete(e)}}]),RuntimeCache}(),Ct=new Tt("history"),wt=function(e){(0,h.default)(History,e);var t=(0,f.default)(History);function History(e,n){var r;return(0,m.default)(this,History),r=t.call(this),bt.add((0,u.default)(r)),yt.set((0,u.default)(r),void 0),kt.set((0,u.default)(r),[]),_t.set((0,u.default)(r),0),Pt.set((0,u.default)(r),void 0),__classPrivateFieldSet((0,u.default)(r),Pt,n.window,"f"),__classPrivateFieldSet((0,u.default)(r),yt,e,"f"),__classPrivateFieldGet((0,u.default)(r),yt,"f").on("__record_history__",(function(e){var t;__classPrivateFieldSet((0,u.default)(r),_t,(t=__classPrivateFieldGet((0,u.default)(r),_t,"f"),++t),"f"),__classPrivateFieldSet((0,u.default)(r),kt,__classPrivateFieldGet((0,u.default)(r),kt,"f").slice(0,__classPrivateFieldGet((0,u.default)(r),_t,"f")),"f"),__classPrivateFieldGet((0,u.default)(r),kt,"f").push({state:null,title:"",url:e})}),null),__classPrivateFieldGet((0,u.default)(r),yt,"f").on("__reset_history__",(function(e){__classPrivateFieldGet((0,u.default)(r),bt,"m",Et).call((0,u.default)(r),e)}),null),r.on(i.INIT,(function(){__classPrivateFieldGet((0,u.default)(r),bt,"m",Et).call((0,u.default)(r))}),null),r.on(i.RESTORE,(function(e){Ct.set(e,{location:__classPrivateFieldGet((0,u.default)(r),yt,"f"),stack:__classPrivateFieldGet((0,u.default)(r),kt,"f").slice(),cur:__classPrivateFieldGet((0,u.default)(r),_t,"f")})}),null),r.on(i.RECOVER,(function(e){if(Ct.has(e)){var t=Ct.get(e);__classPrivateFieldSet((0,u.default)(r),yt,t.location,"f"),__classPrivateFieldSet((0,u.default)(r),kt,t.stack,"f"),__classPrivateFieldSet((0,u.default)(r),_t,t.cur,"f")}}),null),r.on(i.DESTORY,(function(e){Ct.delete(e)}),null),__classPrivateFieldGet((0,u.default)(r),bt,"m",Et).call((0,u.default)(r)),r}return(0,g.default)(History,[{key:"length",get:function get(){return __classPrivateFieldGet(this,kt,"f").length}},{key:"state",get:function get(){return __classPrivateFieldGet(this,kt,"f")[__classPrivateFieldGet(this,_t,"f")].state}},{key:"go",value:function go(e){if((0,b.isNumber)(e)&&!isNaN(e)){var t=__classPrivateFieldGet(this,_t,"f")+e;t=Math.min(Math.max(t,0),this.length-1),__classPrivateFieldSet(this,_t,t,"f"),__classPrivateFieldGet(this,yt,"f").trigger("__set_href_without_history__",__classPrivateFieldGet(this,kt,"f")[__classPrivateFieldGet(this,_t,"f")].url),__classPrivateFieldGet(this,Pt,"f").trigger("popstate",__classPrivateFieldGet(this,kt,"f")[__classPrivateFieldGet(this,_t,"f")])}}},{key:"back",value:function back(){this.go(-1)}},{key:"forward",value:function forward(){this.go(1)}},{key:"pushState",value:function pushState(e,t,n){n&&(0,b.isString)(n)&&(__classPrivateFieldSet(this,kt,__classPrivateFieldGet(this,kt,"f").slice(0,__classPrivateFieldGet(this,_t,"f")+1),"f"),__classPrivateFieldGet(this,kt,"f").push({state:e,title:t,url:n}),__classPrivateFieldSet(this,_t,this.length-1,"f"),__classPrivateFieldGet(this,yt,"f").trigger("__set_href_without_history__",n))}},{key:"replaceState",value:function replaceState(e,t,n){n&&(0,b.isString)(n)&&(__classPrivateFieldGet(this,kt,"f")[__classPrivateFieldGet(this,_t,"f")]={state:e,title:t,url:n},__classPrivateFieldGet(this,yt,"f").trigger("__set_href_without_history__",n))}},{key:"cache",get:function get(){return Ct}}]),History}(b.Events);yt=new WeakMap,kt=new WeakMap,_t=new WeakMap,Pt=new WeakMap,bt=new WeakSet,Et=function _History_reset(){__classPrivateFieldSet(this,kt,[{state:null,title:"",url:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||__classPrivateFieldGet(this,yt,"f").href}],"f"),__classPrivateFieldSet(this,_t,0,"f")};var It,xt,At,Nt,Lt,Ft,Ot,Rt,jt,Mt={app:null,router:null,page:null},Bt=function getCurrentInstance(){return Mt},Ut="https://taro.com",Gt=new Tt("location"),Ht=function(e){(0,h.default)(Location,e);var t=(0,f.default)(Location);function Location(e){var n;return(0,m.default)(this,Location),n=t.call(this),It.add((0,u.default)(n)),xt.set((0,u.default)(n),new ft(Ut)),At.set((0,u.default)(n),!1),Nt.set((0,u.default)(n),void 0),__classPrivateFieldSet((0,u.default)(n),Nt,e.window,"f"),__classPrivateFieldGet((0,u.default)(n),It,"m",Lt).call((0,u.default)(n)),n.on("__set_href_without_history__",(function(e){__classPrivateFieldSet((0,u.default)(n),At,!0,"f");var t=__classPrivateFieldGet((0,u.default)(n),xt,"f").hash;__classPrivateFieldGet((0,u.default)(n),xt,"f").href=function generateFullUrl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Ut;if(/^[/?#]/.test(e))return t+e;return e}(e),t!==__classPrivateFieldGet((0,u.default)(n),xt,"f").hash&&__classPrivateFieldGet((0,u.default)(n),Nt,"f").trigger("hashchange"),__classPrivateFieldSet((0,u.default)(n),At,!1,"f")}),null),n.on(i.INIT,(function(){__classPrivateFieldGet((0,u.default)(n),It,"m",Lt).call((0,u.default)(n))}),null),n.on(i.RESTORE,(function(e){Gt.set(e,{lastHref:n.href})}),null),n.on(i.RECOVER,(function(e){if(Gt.has(e)){var t=Gt.get(e);__classPrivateFieldSet((0,u.default)(n),At,!0,"f"),__classPrivateFieldGet((0,u.default)(n),xt,"f").href=t.lastHref,__classPrivateFieldSet((0,u.default)(n),At,!1,"f")}}),null),n.on(i.DESTORY,(function(e){Gt.delete(e)}),null),n}return(0,g.default)(Location,[{key:"protocol",get:function get(){return __classPrivateFieldGet(this,xt,"f").protocol},set:function set(e){if(e&&(0,b.isString)(e)&&/^(http|https):$/i.test(e.trim())){e=e.trim();var t=__classPrivateFieldGet(this,It,"m",Ft).call(this);__classPrivateFieldGet(this,xt,"f").protocol=e,__classPrivateFieldGet(this,It,"m",jt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Rt).call(this)}}},{key:"host",get:function get(){return __classPrivateFieldGet(this,xt,"f").host},set:function set(e){if(e&&(0,b.isString)(e)){e=e.trim();var t=__classPrivateFieldGet(this,It,"m",Ft).call(this);__classPrivateFieldGet(this,xt,"f").host=e,__classPrivateFieldGet(this,It,"m",jt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Rt).call(this)}}},{key:"hostname",get:function get(){return __classPrivateFieldGet(this,xt,"f").hostname},set:function set(e){if(e&&(0,b.isString)(e)){e=e.trim();var t=__classPrivateFieldGet(this,It,"m",Ft).call(this);__classPrivateFieldGet(this,xt,"f").hostname=e,__classPrivateFieldGet(this,It,"m",jt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Rt).call(this)}}},{key:"port",get:function get(){return __classPrivateFieldGet(this,xt,"f").port},set:function set(e){var t=Number(e=e.trim());if((0,b.isNumber)(t)&&!(t<=0)){var n=__classPrivateFieldGet(this,It,"m",Ft).call(this);__classPrivateFieldGet(this,xt,"f").port=e,__classPrivateFieldGet(this,It,"m",jt).call(this,n)&&__classPrivateFieldGet(this,It,"m",Rt).call(this)}}},{key:"pathname",get:function get(){return __classPrivateFieldGet(this,xt,"f").pathname},set:function set(e){if(e&&(0,b.isString)(e)){e=e.trim();var t=__classPrivateFieldGet(this,It,"m",Ft).call(this);__classPrivateFieldGet(this,xt,"f").pathname=e,__classPrivateFieldGet(this,It,"m",jt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Rt).call(this)}}},{key:"search",get:function get(){return __classPrivateFieldGet(this,xt,"f").search},set:function set(e){if(e&&(0,b.isString)(e)){e=(e=e.trim()).startsWith("?")?e:"?".concat(e);var t=__classPrivateFieldGet(this,It,"m",Ft).call(this);__classPrivateFieldGet(this,xt,"f").search=e,__classPrivateFieldGet(this,It,"m",jt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Rt).call(this)}}},{key:"hash",get:function get(){return __classPrivateFieldGet(this,xt,"f").hash},set:function set(e){if(e&&(0,b.isString)(e)){e=(e=e.trim()).startsWith("#")?e:"#".concat(e);var t=__classPrivateFieldGet(this,It,"m",Ft).call(this);__classPrivateFieldGet(this,xt,"f").hash=e,__classPrivateFieldGet(this,It,"m",jt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Rt).call(this)}}},{key:"href",get:function get(){return __classPrivateFieldGet(this,xt,"f").href},set:function set(e){if(e&&(0,b.isString)(e)&&/^(http:|https:)?\/\/.+/.test(e=e.trim())){var t=__classPrivateFieldGet(this,It,"m",Ft).call(this);__classPrivateFieldGet(this,xt,"f").href=e,__classPrivateFieldGet(this,It,"m",jt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Rt).call(this)}}},{key:"origin",get:function get(){return __classPrivateFieldGet(this,xt,"f").origin},set:function set(e){if(e&&(0,b.isString)(e)&&/^(http:|https:)?\/\/.+/.test(e=e.trim())){var t=__classPrivateFieldGet(this,It,"m",Ft).call(this);__classPrivateFieldGet(this,xt,"f").origin=e,__classPrivateFieldGet(this,It,"m",jt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Rt).call(this)}}},{key:"assign",value:function assign(){(0,b.warn)(!0,"小程序环境中调用location.assign()无效.")}},{key:"reload",value:function reload(){(0,b.warn)(!0,"小程序环境中调用location.reload()无效.")}},{key:"replace",value:function replace(e){this.trigger("__set_href_without_history__",e)}},{key:"toString",value:function toString(){return this.href}},{key:"cache",get:function get(){return Gt}}]),Location}(b.Events);xt=new WeakMap,At=new WeakMap,Nt=new WeakMap,It=new WeakSet,Lt=function _Location_reset(){var e=Bt().router;if(e){var t=e.path,n=e.params,i=Object.keys(n).map((function(e){return"".concat(e,"=").concat(n[e])})),r=i.length>0?"?"+i.join("&"):"",o="".concat(Ut).concat(t.startsWith("/")?t:"/"+t).concat(r);__classPrivateFieldSet(this,xt,new ft(o),"f"),this.trigger("__reset_history__",this.href)}},Ft=function _Location_getPreValue(){return __classPrivateFieldGet(this,xt,"f")._toRaw()},Ot=function _Location_rollBack(e){__classPrivateFieldGet(this,xt,"f").href=e},Rt=function _Location_recordHistory(){this.trigger("__record_history__",this.href)},jt=function _Location_checkUrlChange(e){if(__classPrivateFieldGet(this,At,"f"))return!1;var t=__classPrivateFieldGet(this,xt,"f")._toRaw(),n=t.protocol,i=t.hostname,r=t.port,o=t.pathname,a=t.search,s=t.hash;return n!==e.protocol||i!==e.hostname||r!==e.port?(__classPrivateFieldGet(this,It,"m",Ot).call(this,e.href),!1):o!==e.pathname||(a!==e.search||(s!==e.hash?(__classPrivateFieldGet(this,Nt,"f").trigger("hashchange"),!0):(__classPrivateFieldGet(this,It,"m",Ot).call(this,e.href),!1)))};var Dt,Wt,Vt="(Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/534.36 (KHTML, like Gecko) NodeJS/v4.1.0 Chrome/76.0.3809.132 Safari/534.36",qt=(0,b.isWebPlatform)()?ve.window.navigator:{appCodeName:"Mozilla",appName:"Netscape",appVersion:"5.0 "+Vt,cookieEnabled:!0,mimeTypes:[],onLine:!0,platform:"MacIntel",plugins:[],product:"Taro",productSub:"20030107",userAgent:"Mozilla/5.0 "+Vt,vendor:"Joyent",vendorSub:""};"undefined"!=typeof performance&&null!==performance&&performance.now?Dt=function now(){return performance.now()}:Date.now?(Wt=Date.now(),Dt=function now(){return Date.now()-Wt}):(Wt=(new Date).getTime(),Dt=function now(){return(new Date).getTime()-Wt});var zt,Qt=0,$t=null!=_?_:function(e){var t=Dt(),n=Math.max(Qt+16,t);return setTimeout((function(){e(Qt=n)}),n-t)},Yt=null!=P?P:function(e){clearTimeout(e)};if((0,b.isWebPlatform)())zt=ve.window;else{var Kt=function(e){(0,h.default)(Window,e);var t=(0,f.default)(Window);function Window(){var e;return(0,m.default)(this,Window),(e=t.call(this)).navigator=qt,e.requestAnimationFrame=$t,e.cancelAnimationFrame=Yt,e.getComputedStyle=getComputedStyle,[].concat((0,v.default)(Object.getOwnPropertyNames(n.g||{})),(0,v.default)(Object.getOwnPropertySymbols(n.g||{}))).forEach((function(t){if("atob"!==t&&"document"!==t&&!Object.prototype.hasOwnProperty.call((0,u.default)(e),t))try{e[t]=n.g[t]}catch(e){console.warn("[Taro warn] window.".concat(String(t)," 在赋值到 window 时报错"))}})),e.Date||(e.Date=Date),e.location=new Ht({window:(0,u.default)(e)}),e.history=new wt(e.location,{window:(0,u.default)(e)}),e.initEvent(),e}return(0,g.default)(Window,[{key:"initEvent",value:function initEvent(){var e=this.location,t=this.history;this.on(i.INIT,(function(t){e.trigger(i.INIT,t)}),null),this.on(i.RECOVER,(function(n){e.trigger(i.RECOVER,n),t.trigger(i.RECOVER,n)}),null),this.on(i.RESTORE,(function(n){e.trigger(i.RESTORE,n),t.trigger(i.RESTORE,n)}),null),this.on(i.DESTORY,(function(n){e.trigger(i.DESTORY,n),t.trigger(i.DESTORY,n)}),null)}},{key:"document",get:function get(){return ve.document}},{key:"addEventListener",value:function addEventListener(e,t){(0,b.isString)(e)&&this.on(e,t,null)}},{key:"removeEventListener",value:function removeEventListener(e,t){(0,b.isString)(e)&&this.off(e,t,null)}},{key:"setTimeout",value:function(e){function setTimeout(){return e.apply(this,arguments)}return setTimeout.toString=function(){return e.toString()},setTimeout}((function(){return setTimeout.apply(void 0,arguments)}))},{key:"clearTimeout",value:function(e){function clearTimeout(){return e.apply(this,arguments)}return clearTimeout.toString=function(){return e.toString()},clearTimeout}((function(){return clearTimeout.apply(void 0,arguments)}))}]),Window}(b.Events);zt=ve.window=new Kt}var Jt=zt.location,Zt=zt.history,Xt=function(e){(0,h.default)(SVGElement,e);var t=(0,f.default)(SVGElement);function SVGElement(){return(0,m.default)(this,SVGElement),t.apply(this,arguments)}return(0,g.default)(SVGElement)}(Me),en=new Map,tn=ae(),nn=(0,b.isWebPlatform)();function injectPageInstance(e,t){b.hooks.call("mergePageInstance",en.get(t),e),en.set(t,e)}function getPageInstance(e){return en.get(e)}function removePageInstance(e){en.delete(e)}function addLeadingSlash(e){return null==e?"":"/"===e.charAt(0)?e:"/"+e}function safeExecute(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=en.get(e);if(null!=o){var a=b.hooks.call("getLifecycle",o,t);if((0,b.isArray)(a))return a.map((function(e){return e.apply(o,i)}))[0];if((0,b.isFunction)(a))return a.apply(o,i)}}function stringify(e){if(null==e)return"";var t=Object.keys(e).map((function(t){return t+"="+e[t]})).join("&");return""===t?t:"?"+t}function getPath(e,t){var n=e.indexOf("?");return nn?"".concat(n>-1?e.substring(0,n):e).concat(stringify((null==t?void 0:t.stamp)?{stamp:t.stamp}:{})):"".concat(n>-1?e.substring(0,n):e).concat(stringify(t))}function getOnReadyEventKey(e){return e+"."+$}function getOnShowEventKey(e){return e+"."+Y}function getOnHideEventKey(e){return e+"."+K}function createPageConfig(e,t,n,o){var a,s,l,c=null!=t?t:"taro_page_".concat(tn()),u=(0,r.default)(b.hooks.call("getMiniLifecycleImpl").page,7),h=u[0],f=u[1],p=u[2],v=u[3],m=u[4],g=u[5],y=u[6],k=null,_=!1,P=[];function setCurrentRouter(e){var t=nn?e.$taroPath:e.route||e.__route__||e.$taroPath;Mt.router={params:e.$taroParams,path:addLeadingSlash(t),$taroPath:e.$taroPath,onReady:getOnReadyEventKey(c),onShow:getOnShowEventKey(c),onHide:getOnHideEventKey(c)},(0,b.isUndefined)(e.exitState)||(Mt.router.exitState=e.exitState)}var E=(a={},(0,d.default)(a,h,(function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;l=new Promise((function(e){s=e})),Xe.start(S),Mt.page=this,this.config=o||{};var a=Object.assign({},n,{$taroTimestamp:Date.now()}),u=this.$taroPath=getPath(c,a);nn&&(E.path=u),null==this.$taroParams&&(this.$taroParams=a),setCurrentRouter(this),nn||zt.trigger(i.INIT,u);var d=function mount(){Mt.app.mount(e,u,(function(){k=ve.document.getElementById(u),(0,b.ensure)(null!==k,"没有找到页面实例。"),safeExecute(u,Q,t.$taroParams),s(),nn?(0,b.isFunction)(r)&&r():(k.ctx=t,k.performUpdate(!0,r))}))};_?P.push(d):d()})),(0,d.default)(a,f,(function(){var e=this.$taroPath;nn||zt.trigger(i.DESTORY,e),safeExecute(e,f),_=!0,Mt.app.unmount(e,(function(){_=!1,en.delete(e),k&&(k.ctx=null,k=null),P.length&&(P.forEach((function(e){return e()})),P=[])}))})),(0,d.default)(a,p,(function(){var e=this;l.then((function(){safeExecute(e.$taroPath,$),$t((function(){return St.trigger(getOnReadyEventKey(c))})),e.onReady.called=!0}))})),(0,d.default)(a,v,(function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.then((function(){Mt.page=e,setCurrentRouter(e),nn||zt.trigger(i.RECOVER,e.$taroPath),safeExecute(e.$taroPath,Y,t),$t((function(){return St.trigger(getOnShowEventKey(c))}))}))})),(0,d.default)(a,m,(function(){nn||zt.trigger(i.RESTORE,this.$taroPath),Mt.page===this&&(Mt.page=null,Mt.router=null),safeExecute(this.$taroPath,K),St.trigger(getOnHideEventKey(c))})),a);return g.forEach((function(e){E[e]=function(){return safeExecute.apply(void 0,[this.$taroPath,e].concat(Array.prototype.slice.call(arguments)))}})),y.forEach((function(t){var n;(e[t]||(null===(n=e.prototype)||void 0===n?void 0:n[t])||e[t.replace(/^on/,"enable")])&&(E[t]=function(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=null===(e=i[0])||void 0===e?void 0:e.target;if(null==o?void 0:o.id){var a=o.id,s=ve.document.getElementById(a);s&&(o.dataset=s.dataset)}return safeExecute.apply(void 0,[this.$taroPath,t].concat(i))})})),E.eh=eventHandler,(0,b.isUndefined)(n)||(E.data=n),b.hooks.call("modifyPageObject",E),E}function createComponentConfig(e,t,n){var i,o=null!=t?t:"taro_component_".concat(tn()),a=null,s=(0,r.default)(b.hooks.call("getMiniLifecycleImpl").component,2),l=s[0],c=s[1],u=(i={},(0,d.default)(i,l,(function(){var t,n=this;Xe.start(S);var i=getPath(o,{id:(null===(t=this.getPageId)||void 0===t?void 0:t.call(this))||tn()});Mt.app.mount(e,i,(function(){a=ve.document.getElementById(i),(0,b.ensure)(null!==a,"没有找到组件实例。"),n.$taroInstances=en.get(i),safeExecute(i,Q),nn||(a.ctx=n,a.performUpdate(!0))}))})),(0,d.default)(i,c,(function(){var e=getPath(o,{id:this.getPageId()});Mt.app.unmount(e,(function(){en.delete(e),a&&(a.ctx=null)}))})),(0,d.default)(i,"methods",{eh:eventHandler}),i);return(0,b.isUndefined)(n)||(u.data=n),[J,Z,ee].forEach((function(t){var n;u[t]=null!==(n=e[t])&&void 0!==n?n:b.EMPTY_OBJ})),u}function createRecursiveComponentConfig(e){var t,n=e===j,i=(0,r.default)(b.hooks.call("getMiniLifecycleImpl").component,2),o=i[0],a=i[1],s=n?(t={},(0,d.default)(t,o,(function(){var e,t,n=(null===(e=this.data.i)||void 0===e?void 0:e.sid)||(null===(t=this.props.i)||void 0===t?void 0:t.sid);if((0,b.isString)(n)){le.set(n,this);var i=ve.document.getElementById(n);i&&(i.ctx=this)}})),(0,d.default)(t,a,(function(){var e,t,n=(null===(e=this.data.i)||void 0===e?void 0:e.sid)||(null===(t=this.props.i)||void 0===t?void 0:t.sid);if((0,b.isString)(n)){le.delete(n);var i=ve.document.getElementById(n);i&&(i.ctx=null)}})),t):b.EMPTY_OBJ;return Object.assign({properties:{i:{type:Object,value:(0,d.default)({},"nn",(0,b.getComponentsAlias)(b.internalComponents)[N]._num)},l:{type:String,value:""}},options:{addGlobalClass:!0,virtualHost:!n},methods:{eh:eventHandler}},s)}var rn=function nextTick(e,t){var n,i,r,o=Mt.router,a=function timerFunc(){setTimeout((function(){t?e.call(t):e()}),1)};if(null!==o){var s=null,l=o.$taroPath;(null==(s=ve.document.getElementById(l))?void 0:s.pendingUpdate)?(0,b.isWebPlatform)()?null!==(r=null===(i=null===(n=s.firstChild)||void 0===n?void 0:n.componentOnReady)||void 0===i?void 0:i.call(n).then((function(){a()})))&&void 0!==r||a():s.enqueueUpdateCallback(e,t):a()}else a()}},"./node_modules/@tarojs/shared/dist/shared.esm.js":function(e,t,n){"use strict";n.d(t,{EMPTY_OBJ:function(){return I},Events:function(){return _},capitalize:function(){return capitalize},controlledComponent:function(){return k},ensure:function(){return ensure},getComponentsAlias:function(){return getComponentsAlias},hooks:function(){return w},internalComponents:function(){return y},isArray:function(){return E},isBoolean:function(){return isBoolean},isFunction:function(){return isFunction},isNull:function(){return isNull},isNumber:function(){return isNumber},isObject:function(){return isObject},isString:function(){return isString},isUndefined:function(){return isUndefined},isWebPlatform:function(){return S},mergeInternalComponents:function(){return mergeInternalComponents},mergeReconciler:function(){return mergeReconciler},noop:function(){return x},processApis:function(){return processApis},toCamelCase:function(){return toCamelCase},toDashed:function(){return toDashed},warn:function(){return warn}});var i=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),r=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),o=n("./node_modules/@babel/runtime/helpers/esm/createSuper.js"),a=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),s=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),l=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),c="[]",u="",d="!0",h="!1",f={bindTouchStart:u,bindTouchMove:u,bindTouchEnd:u,bindTouchCancel:u,bindLongTap:u},p={animation:u,bindAnimationStart:u,bindAnimationIteration:u,bindAnimationEnd:u,bindTransitionEnd:u};function singleQuote(e){return"'".concat(e,"'")}var v,m=Object.assign(Object.assign({"hover-class":singleQuote("none"),"hover-stop-propagation":h,"hover-start-time":"50","hover-stay-time":"400"},f),p),g={type:u,size:"23",color:u},b=Object.assign({longitude:u,latitude:u,scale:"16",markers:c,covers:u,polyline:c,circles:c,controls:c,"include-points":c,"show-location":u,"layer-style":"1",bindMarkerTap:u,bindControlTap:u,bindCalloutTap:u,bindUpdated:u},f),y={View:m,Icon:g,Progress:{percent:u,"stroke-width":"6",color:singleQuote("#09BB07"),activeColor:singleQuote("#09BB07"),backgroundColor:singleQuote("#EBEBEB"),active:h,"active-mode":singleQuote("backwards"),"show-info":h},RichText:{nodes:c},Text:{selectable:h,space:u,decode:h},Button:Object.assign({size:singleQuote("default"),type:u,plain:h,disabled:u,loading:h,"form-type":u,"open-type":u,"hover-class":singleQuote("button-hover"),"hover-stop-propagation":h,"hover-start-time":"20","hover-stay-time":"70",name:u},f),Checkbox:{value:u,disabled:u,checked:h,color:singleQuote("#09BB07"),name:u},CheckboxGroup:{bindChange:u,name:u},Form:{"report-submit":h,bindSubmit:u,bindReset:u,name:u},Input:{value:u,type:singleQuote(u),password:h,placeholder:u,"placeholder-style":u,"placeholder-class":singleQuote("input-placeholder"),disabled:u,maxlength:"140","cursor-spacing":"0",focus:h,"confirm-type":singleQuote("done"),"confirm-hold":h,cursor:"i.value.length","selection-start":"-1","selection-end":"-1",bindInput:u,bindFocus:u,bindBlur:u,bindConfirm:u,name:u},Label:{for:u,name:u},Picker:{mode:singleQuote("selector"),disabled:u,range:u,"range-key":u,value:u,start:u,end:u,fields:singleQuote("day"),"custom-item":u,name:u,bindCancel:u,bindChange:u,bindColumnChange:u},PickerView:{value:u,"indicator-style":u,"indicator-class":u,"mask-style":u,"mask-class":u,bindChange:u,name:u},PickerViewColumn:{name:u},Radio:{value:u,checked:h,disabled:u,color:singleQuote("#09BB07"),name:u},RadioGroup:{bindChange:u,name:u},Slider:{min:"0",max:"100",step:"1",disabled:u,value:"0",activeColor:singleQuote("#1aad19"),backgroundColor:singleQuote("#e9e9e9"),"block-size":"28","block-color":singleQuote("#ffffff"),"show-value":h,bindChange:u,bindChanging:u,name:u},Switch:{checked:h,disabled:u,type:singleQuote("switch"),color:singleQuote("#04BE02"),bindChange:u,name:u},CoverImage:{src:u,bindLoad:"eh",bindError:"eh"},Textarea:{value:u,placeholder:u,"placeholder-style":u,"placeholder-class":singleQuote("textarea-placeholder"),disabled:u,maxlength:"140","auto-focus":h,focus:h,"auto-height":h,fixed:h,"cursor-spacing":"0",cursor:"-1","selection-start":"-1","selection-end":"-1",bindFocus:u,bindBlur:u,bindLineChange:u,bindInput:u,bindConfirm:u,name:u},CoverView:Object.assign({"scroll-top":h},f),MovableArea:{"scale-area":h},MovableView:Object.assign(Object.assign({direction:"none",inertia:h,"out-of-bounds":h,x:u,y:u,damping:"20",friction:"2",disabled:u,scale:h,"scale-min":"0.5","scale-max":"10","scale-value":"1",bindChange:u,bindScale:u,bindHTouchMove:u,bindVTouchMove:u,width:singleQuote("10px"),height:singleQuote("10px")},f),p),ScrollView:Object.assign(Object.assign({"scroll-x":h,"scroll-y":h,"upper-threshold":"50","lower-threshold":"50","scroll-top":u,"scroll-left":u,"scroll-into-view":u,"scroll-with-animation":h,"enable-back-to-top":h,bindScrollToUpper:u,bindScrollToLower:u,bindScroll:u},f),p),Swiper:Object.assign({"indicator-dots":h,"indicator-color":singleQuote("rgba(0, 0, 0, .3)"),"indicator-active-color":singleQuote("#000000"),autoplay:h,current:"0",interval:"5000",duration:"500",circular:h,vertical:h,"previous-margin":singleQuote("0px"),"next-margin":singleQuote("0px"),"display-multiple-items":"1",bindChange:u,bindTransition:u,bindAnimationFinish:u},f),SwiperItem:{"item-id":u},Navigator:{url:u,"open-type":singleQuote("navigate"),delta:"1","hover-class":singleQuote("navigator-hover"),"hover-stop-propagation":h,"hover-start-time":"50","hover-stay-time":"600",bindSuccess:u,bindFail:u,bindComplete:u},Audio:{id:u,src:u,loop:h,controls:h,poster:u,name:u,author:u,bindError:u,bindPlay:u,bindPause:u,bindTimeUpdate:u,bindEnded:u},Camera:{"device-position":singleQuote("back"),flash:singleQuote("auto"),bindStop:u,bindError:u},Image:Object.assign({src:u,mode:singleQuote("scaleToFill"),"lazy-load":h,bindError:u,bindLoad:u},f),LivePlayer:Object.assign({src:u,autoplay:h,muted:h,orientation:singleQuote("vertical"),"object-fit":singleQuote("contain"),"background-mute":h,"min-cache":"1","max-cache":"3",bindStateChange:u,bindFullScreenChange:u,bindNetStatus:u},p),Video:Object.assign({src:u,duration:u,controls:d,"danmu-list":u,"danmu-btn":u,"enable-danmu":u,autoplay:h,loop:h,muted:h,"initial-time":"0","page-gesture":h,direction:u,"show-progress":d,"show-fullscreen-btn":d,"show-play-btn":d,"show-center-play-btn":d,"enable-progress-gesture":d,"object-fit":singleQuote("contain"),poster:u,"show-mute-btn":h,bindPlay:u,bindPause:u,bindEnded:u,bindTimeUpdate:u,bindFullScreenChange:u,bindWaiting:u,bindError:u},p),Canvas:Object.assign({"canvas-id":u,"disable-scroll":h,bindError:u},f),Ad:{"unit-id":u,"ad-intervals":u,bindLoad:u,bindError:u,bindClose:u},WebView:{src:u,bindMessage:u,bindLoad:u,bindError:u},Block:{},Map:b,Slot:{name:u},SlotView:{name:u},NativeSlot:{name:u}},k=new Set(["input","checkbox","picker","picker-view","radio","slider","switch","textarea"]);new Set(["input","textarea"]),new Set(["progress","icon","rich-text","input","textarea","slider","switch","audio","ad","official-account","open-data","navigation-bar"]),new Map([["view",-1],["catch-view",-1],["cover-view",-1],["static-view",-1],["pure-view",-1],["block",-1],["text",-1],["static-text",6],["slot",8],["slot-view",8],["label",6],["form",4],["scroll-view",4],["swiper",4],["swiper-item",4]]);!function(e){e.MINI="mini",e.WEB="web",e.RN="rn",e.HARMONY="harmony",e.QUICK="quickapp"}(v||(v={}));v.WEB,v.HARMONY,v.MINI,v.RN,v.QUICK;var _=function(){function Events(e){var t;(0,s.default)(this,Events),this.callbacks=null!==(t=null==e?void 0:e.callbacks)&&void 0!==t?t:{}}return(0,l.default)(Events,[{key:"on",value:function on(e,t,n){var i,r,o,a;if(!t)return this;e=e.split(Events.eventSplitter),this.callbacks||(this.callbacks={});for(var s=this.callbacks;i=e.shift();)(r=(a=s[i])?a.tail:{}).next=o={},r.context=n,r.callback=t,s[i]={tail:o,next:a?a.next:r};return this}},{key:"once",value:function once(e,t,n){var i=this;return this.on(e,(function wrapper(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t.apply(i,o),i.off(e,wrapper,n)}),n),this}},{key:"off",value:function off(e,t,n){var i,r,o,a,s,l;if(!(r=this.callbacks))return this;if(!(e||t||n))return delete this.callbacks,this;for(e=e?e.split(Events.eventSplitter):Object.keys(r);i=e.shift();)if(o=r[i],delete r[i],o&&(t||n))for(a=o.tail;(o=o.next)!==a;)s=o.callback,l=o.context,(t&&s!==t||n&&l!==n)&&this.on(i,s,l);return this}},{key:"trigger",value:function trigger(e){var t,n,i,r;if(!(i=this.callbacks))return this;e=e.split(Events.eventSplitter);for(var o=[].slice.call(arguments,1);t=e.shift();)if(n=i[t])for(r=n.tail;(n=n.next)!==r;)n.callback.apply(n.context||this,o);return this}}]),Events}();function isString(e){return"string"==typeof e}function isUndefined(e){return void 0===e}function isNull(e){return null===e}function isObject(e){return null!==e&&"object"===(0,a.default)(e)}function isBoolean(e){return!0===e||!1===e}function isFunction(e){return"function"==typeof e}function isNumber(e){return"number"==typeof e}_.eventSplitter=",";var P,E=Array.isArray,S=function isWebPlatform(){return!1};!function(e){e[e.SINGLE=0]="SINGLE",e[e.MULTI=1]="MULTI",e[e.WATERFALL=2]="WATERFALL"}(P||(P={}));var T={app:["onLaunch","onShow","onHide"],page:["onLoad","onUnload","onReady","onShow","onHide",["onPullDownRefresh","onReachBottom","onPageScroll","onResize","onTabItemTap","onTitleClick","onOptionMenuClick","onPopMenuClick","onPullIntercept","onAddToFavorites"],["onShareAppMessage","onShareTimeline"]],component:["attached","detached"]};function TaroHook(e,t){return{type:e,initial:t||null}}var C=function(e){(0,r.default)(TaroHooks,e);var t=(0,o.default)(TaroHooks);function TaroHooks(e,n){var i;for(var r in(0,s.default)(this,TaroHooks),(i=t.call(this,n)).hooks=e,e){var o=e[r].initial;isFunction(o)&&i.on(r,o)}return i}return(0,l.default)(TaroHooks,[{key:"tapOneOrMany",value:function tapOneOrMany(e,t){var n=this;(isFunction(t)?[t]:t).forEach((function(t){return n.on(e,t)}))}},{key:"tap",value:function tap(e,t){var n=this.hooks[e],i=n.type,r=n.initial;i===P.SINGLE?(this.off(e),this.on(e,isFunction(t)?t:t[t.length-1])):(r&&this.off(e,r),this.tapOneOrMany(e,t))}},{key:"call",value:function call(e){var t,n=this.hooks[e];if(n){var i=n.type,r=this.callbacks;if(r){var o=r[e];if(o){for(var a=o.tail,s=o.next,l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(var d,h=c;s!==a;){if(d=null===(t=s.callback)||void 0===t?void 0:t.apply(s.context||this,h),i===P.WATERFALL)h=[d];s=s.next}return d}}}}},{key:"isExist",value:function isExist(e){var t;return Boolean(null===(t=this.callbacks)||void 0===t?void 0:t[e])}}]),TaroHooks}(_),w=new C({getMiniLifecycle:TaroHook(P.SINGLE,(function(e){return e})),getMiniLifecycleImpl:TaroHook(P.SINGLE,(function(){return this.call("getMiniLifecycle",T)})),getLifecycle:TaroHook(P.SINGLE,(function(e,t){return e[t]})),getPathIndex:TaroHook(P.SINGLE,(function(e){return"[".concat(e,"]")})),getEventCenter:TaroHook(P.SINGLE,(function(e){return new e})),isBubbleEvents:TaroHook(P.SINGLE,(function(e){return new Set(["touchstart","touchmove","touchcancel","touchend","touchforcechange","tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend"]).has(e)})),getSpecialNodes:TaroHook(P.SINGLE,(function(){return["view","text","image"]})),onRemoveAttribute:TaroHook(P.SINGLE),batchedEventUpdates:TaroHook(P.SINGLE),mergePageInstance:TaroHook(P.SINGLE),modifyPageObject:TaroHook(P.SINGLE),createPullDownComponent:TaroHook(P.SINGLE),getDOMNode:TaroHook(P.SINGLE),modifyHydrateData:TaroHook(P.SINGLE),modifySetAttrPayload:TaroHook(P.SINGLE),modifyRmAttrPayload:TaroHook(P.SINGLE),onAddEvent:TaroHook(P.SINGLE),modifyMpEvent:TaroHook(P.MULTI),modifyMpEventImpl:TaroHook(P.SINGLE,(function(e){try{this.call("modifyMpEvent",e)}catch(e){console.warn("[Taro modifyMpEvent hook Error]: "+(null==e?void 0:e.message))}})),injectNewStyleProperties:TaroHook(P.SINGLE),modifyTaroEvent:TaroHook(P.MULTI),modifyDispatchEvent:TaroHook(P.MULTI),initNativeApi:TaroHook(P.MULTI),patchElement:TaroHook(P.MULTI)}),I={},x=function noop(){};function toDashed(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function toCamelCase(e){for(var t="",n=!1,i=0;i<e.length;i++)"-"!==e[i]?(t+=n?e[i].toUpperCase():e[i],n=!1):n=!0;return t}function capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}Object.prototype.hasOwnProperty;function ensure(e,t){if(!e){throw new Error(t+"\n如有疑问请提交 issue 至https://github.com/nervjs/taro/issues")}}function warn(e,t){e&&console.warn("[taro warn] ".concat(t))}var A=1,N=(new Date).getTime().toString();function mergeInternalComponents(e){return Object.keys(e).forEach((function(t){t in y?Object.assign(y[t],e[t]):y[t]=e[t]})),y}function getComponentsAlias(e){var t={},n=e.View,i={"#text":{},StaticView:n,StaticImage:e.Image,StaticText:e.Text,PureView:n,CatchView:n};return e=Object.assign(Object.assign({},e),i),Object.keys(e).sort((function(e,t){var n=/^(Static|Pure|Catch)*(View|Image|Text)$/,i=n.test(e),r=n.test(t);return i&&r?e>t?1:-1:i?-1:r||e>=t?1:-1})).forEach((function(n,i){var r={_num:String(i)};Object.keys(e[n]).filter((function(e){return!/^bind/.test(e)&&!["focus","blur"].includes(e)})).sort().forEach((function(e,t){r[toCamelCase(e)]="p"+t})),t[toDashed(n)]=r})),t}function mergeReconciler(e,t){var n=t||w;Object.keys(e).forEach((function(t){n.tap(t,e[t])}))}function nonsupport(e){return function(){console.warn("小程序暂不支持 ".concat(e))}}function setUniqueKeyToRoute(e,t){if(["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(e)>-1){var n=(t.url=t.url||"").indexOf("?")>-1,i=function getUniqueKey(){return N+A++}();t.url+=(n?"&":"?")+"".concat("__key_","=").concat(i)}}var L=new Set(["addPhoneContact","authorize","canvasGetImageData","canvasPutImageData","canvasToTempFilePath","checkSession","chooseAddress","chooseImage","chooseInvoiceTitle","chooseLocation","chooseVideo","clearStorage","closeBLEConnection","closeBluetoothAdapter","closeSocket","compressImage","connectSocket","createBLEConnection","downloadFile","exitMiniProgram","getAvailableAudioSources","getBLEDeviceCharacteristics","getBLEDeviceServices","getBatteryInfo","getBeacons","getBluetoothAdapterState","getBluetoothDevices","getClipboardData","getConnectedBluetoothDevices","getConnectedWifi","getExtConfig","getFileInfo","getImageInfo","getLocation","getNetworkType","getSavedFileInfo","getSavedFileList","getScreenBrightness","getSetting","getStorage","getStorageInfo","getSystemInfo","getUserInfo","getWifiList","hideHomeButton","hideShareMenu","hideTabBar","hideTabBarRedDot","loadFontFace","login","makePhoneCall","navigateBack","navigateBackMiniProgram","navigateTo","navigateToBookshelf","navigateToMiniProgram","notifyBLECharacteristicValueChange","hideKeyboard","hideLoading","hideNavigationBarLoading","hideToast","openBluetoothAdapter","openDocument","openLocation","openSetting","pageScrollTo","previewImage","queryBookshelf","reLaunch","readBLECharacteristicValue","redirectTo","removeSavedFile","removeStorage","removeTabBarBadge","requestSubscribeMessage","saveFile","saveImageToPhotosAlbum","saveVideoToPhotosAlbum","scanCode","sendSocketMessage","setBackgroundColor","setBackgroundTextStyle","setClipboardData","setEnableDebug","setInnerAudioOption","setKeepScreenOn","setNavigationBarColor","setNavigationBarTitle","setScreenBrightness","setStorage","setTabBarBadge","setTabBarItem","setTabBarStyle","showActionSheet","showFavoriteGuide","showLoading","showModal","showShareMenu","showTabBar","showTabBarRedDot","showToast","startBeaconDiscovery","startBluetoothDevicesDiscovery","startDeviceMotionListening","startPullDownRefresh","stopBeaconDiscovery","stopBluetoothDevicesDiscovery","stopCompass","startCompass","startAccelerometer","stopAccelerometer","showNavigationBarLoading","stopDeviceMotionListening","stopPullDownRefresh","switchTab","uploadFile","vibrateLong","vibrateShort","writeBLECharacteristicValue"]);function processApis(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.needPromiseApis||[],o=new Set([].concat((0,i.default)(r),(0,i.default)(L))),a=["getEnv","interceptors","Current","getCurrentInstance","options","nextTick","eventCenter","Events","preload","webpackJsonp"],s=new Set(n.isOnlyPromisify?r:Object.keys(t).filter((function(e){return-1===a.indexOf(e)})));n.modifyApis&&n.modifyApis(s),s.forEach((function(i){if(o.has(i)){var r=i;e[r]=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=r;if("string"==typeof e)return o.length?t[s].apply(t,[e].concat(o)):t[s](e);if(n.transformMeta){var l=n.transformMeta(s,e);if(s=l.key,e=l.options,!t.hasOwnProperty(s))return nonsupport(s)()}var c=null,u=Object.assign({},e);setUniqueKeyToRoute(s,e);var d=new Promise((function(i,r){u.success=function(t){var r,o;null===(r=n.modifyAsyncResult)||void 0===r||r.call(n,s,t),null===(o=e.success)||void 0===o||o.call(e,t),i("connectSocket"===s?Promise.resolve().then((function(){return c?Object.assign(c,t):t})):t)},u.fail=function(t){var n;null===(n=e.fail)||void 0===n||n.call(e,t),r(t)},u.complete=function(t){var n;null===(n=e.complete)||void 0===n||n.call(e,t)},c=o.length?t[s].apply(t,[u].concat(o)):t[s](u)}));return["uploadFile","downloadFile"].includes(s)&&(equipTaskMethodsIntoPromise(c,d),d.progress=function(e){return null==c||c.onProgressUpdate(e),d},d.abort=function(e){return null==e||e(),null==c||c.abort(),d}),d}}else{var a=i;if(n.transformMeta&&(a=n.transformMeta(i,{}).key),!t.hasOwnProperty(a))return void(e[i]=nonsupport(i));isFunction(t[i])?e[i]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.handleSyncApis?n.handleSyncApis(i,t,r):t[a].apply(t,r)}:e[i]=t[a]}})),!n.isOnlyPromisify&&function equipCommonApis(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.canIUseWebp=function getCanIUseWebp(e){return function(){var t,n=null===(t=e.getSystemInfoSync)||void 0===t?void 0:t.call(e);if(!n)return console.error("不支持 API canIUseWebp"),!1;var i=n.platform.toLowerCase();return"android"===i||"devtools"===i}}(e),e.getCurrentPages=getCurrentPages||nonsupport("getCurrentPages"),e.getApp=getApp||nonsupport("getApp"),e.env=t.env||{};try{e.requirePlugin=requirePlugin||nonsupport("requirePlugin")}catch(t){e.requirePlugin=nonsupport("requirePlugin")}var i=n.request||function getNormalRequest(e){return function request(t){var n,i=(t=t?isString(t)?{url:t}:t:{}).success,r=t.fail,o=t.complete,a=new Promise((function(a,s){t.success=function(e){i&&i(e),a(e)},t.fail=function(e){r&&r(e),s(e)},t.complete=function(e){o&&o(e)},n=e.request(t)}));return equipTaskMethodsIntoPromise(n,a),a.abort=function(e){return e&&e(),n&&n.abort(),a},a}}(t);function taroInterceptor(e){return i(e.requestParams)}var r=new e.Link(taroInterceptor);e.request=r.request.bind(r),e.addInterceptor=r.addInterceptor.bind(r),e.cleanInterceptors=r.cleanInterceptors.bind(r),e.miniGlobal=e.options.miniGlobal=t,e.initAppInfo=function(t){"function"==typeof e.getAppInfo&&(e.getAppInfo=function(){return t})}}(e,t,n)}function equipTaskMethodsIntoPromise(e,t){if(e&&t){e&&["abort","onHeadersReceived","offHeadersReceived","onProgressUpdate","offProgressUpdate","onChunkReceived","offChunkReceived"].forEach((function(n){n in e&&(t[n]=e[n].bind(e))}))}}},"./node_modules/@tarojs/taro/index.js":function(e,t,n){var i=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js").hooks,r=n("./node_modules/@tarojs/api/dist/index.esm.js").default;i.isExist("initNativeApi")&&i.call("initNativeApi",r),e.exports=r,e.exports.default=e.exports},"./node_modules/@tarojs/webpack5-runner/dist/template/comp.js":function(e,t,n){"use strict";var i=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js");Component((0,i.createRecursiveComponentConfig)())},"./node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js":function(e,t,n){"use strict";var i=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js");Component((0,i.createRecursiveComponentConfig)("custom-wrapper"))}}]);