diff --git a/driver/js/examples/android-demo/res/vendor.android.js b/driver/js/examples/android-demo/res/vendor.android.js index f086989e2..65333bf56 100644 --- a/driver/js/examples/android-demo/res/vendor.android.js +++ b/driver/js/examples/android-demo/res/vendor.android.js @@ -1,7 +1,7 @@ -var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Animated",(function(){return mn})),n.d(t,"Animation",(function(){return je})),n.d(t,"AnimationSet",(function(){return Ue})),n.d(t,"AppRegistry",(function(){return un})),n.d(t,"AsyncStorage",(function(){return Bn})),n.d(t,"BackAndroid",(function(){return Vn})),n.d(t,"Clipboard",(function(){return qn})),n.d(t,"ConsoleModule",(function(){return or})),n.d(t,"Dimensions",(function(){return pr})),n.d(t,"Easing",(function(){return yn})),n.d(t,"Focusable",(function(){return Fn})),n.d(t,"Hippy",(function(){return lr})),n.d(t,"HippyEventEmitter",(function(){return ge})),n.d(t,"HippyEventListener",(function(){return me})),n.d(t,"HippyRegister",(function(){return Gn})),n.d(t,"Image",(function(){return hn})),n.d(t,"ImageBackground",(function(){return ur})),n.d(t,"ImageLoaderModule",(function(){return Yn})),n.d(t,"ListView",(function(){return wn})),n.d(t,"ListViewItem",(function(){return gn})),n.d(t,"Modal",(function(){return jn})),n.d(t,"Navigator",(function(){return Sn})),n.d(t,"NetInfo",(function(){return Xn})),n.d(t,"NetworkModule",(function(){return Qn})),n.d(t,"PixelRatio",(function(){return hr})),n.d(t,"Platform",(function(){return ar})),n.d(t,"PullFooter",(function(){return vn})),n.d(t,"PullHeader",(function(){return bn})),n.d(t,"RNfqb",(function(){return sr})),n.d(t,"RNfqbEventEmitter",(function(){return fr})),n.d(t,"RNfqbEventListener",(function(){return dr})),n.d(t,"RNfqbRegister",(function(){return cr})),n.d(t,"RefreshWrapper",(function(){return kn})),n.d(t,"ScrollView",(function(){return Tn})),n.d(t,"StyleSheet",(function(){return An})),n.d(t,"Text",(function(){return dn})),n.d(t,"TextInput",(function(){return Pn})),n.d(t,"TimerModule",(function(){return ir})),n.d(t,"UIManagerModule",(function(){return Jn})),n.d(t,"View",(function(){return cn})),n.d(t,"ViewPager",(function(){return xn})),n.d(t,"WaterfallView",(function(){return Wn})),n.d(t,"WebSocket",(function(){return Dn})),n.d(t,"WebView",(function(){return Hn})),n.d(t,"callNative",(function(){return er})),n.d(t,"callNativeWithCallbackId",(function(){return nr})),n.d(t,"callNativeWithPromise",(function(){return tr})),n.d(t,"colorParse",(function(){return Pe})),n.d(t,"default",(function(){return sn})),n.d(t,"flushSync",(function(){return Zn})),n.d(t,"removeNativeCallback",(function(){return rr}));var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/@hippy/react-reconciler/index.js"),a=n.n(o);const l=["children"],s=["collapsable","style"],u=["style"],c=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],f=["children"],d=["children"],p=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],h=["children"],m=["initialRoute"],y=["component"],g=["children","onPageScrollStateChanged"],b=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t=0||(i[n]=e[n]);return i} +var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Animated",(function(){return mn})),n.d(t,"Animation",(function(){return Fe})),n.d(t,"AnimationSet",(function(){return Be})),n.d(t,"AppRegistry",(function(){return un})),n.d(t,"AsyncStorage",(function(){return Wn})),n.d(t,"BackAndroid",(function(){return Vn})),n.d(t,"Clipboard",(function(){return qn})),n.d(t,"ConsoleModule",(function(){return or})),n.d(t,"Dimensions",(function(){return pr})),n.d(t,"Easing",(function(){return yn})),n.d(t,"Focusable",(function(){return Fn})),n.d(t,"Hippy",(function(){return lr})),n.d(t,"HippyEventEmitter",(function(){return be})),n.d(t,"HippyEventListener",(function(){return ye})),n.d(t,"HippyRegister",(function(){return Kn})),n.d(t,"Image",(function(){return hn})),n.d(t,"ImageBackground",(function(){return ur})),n.d(t,"ImageLoaderModule",(function(){return Yn})),n.d(t,"ListView",(function(){return wn})),n.d(t,"ListViewItem",(function(){return gn})),n.d(t,"Modal",(function(){return jn})),n.d(t,"Navigator",(function(){return Sn})),n.d(t,"NetInfo",(function(){return Xn})),n.d(t,"NetworkModule",(function(){return Qn})),n.d(t,"PixelRatio",(function(){return hr})),n.d(t,"Platform",(function(){return ar})),n.d(t,"PullFooter",(function(){return vn})),n.d(t,"PullHeader",(function(){return bn})),n.d(t,"RNfqb",(function(){return sr})),n.d(t,"RNfqbEventEmitter",(function(){return fr})),n.d(t,"RNfqbEventListener",(function(){return dr})),n.d(t,"RNfqbRegister",(function(){return cr})),n.d(t,"RefreshWrapper",(function(){return kn})),n.d(t,"ScrollView",(function(){return Tn})),n.d(t,"StyleSheet",(function(){return Rn})),n.d(t,"Text",(function(){return dn})),n.d(t,"TextInput",(function(){return In})),n.d(t,"TimerModule",(function(){return ir})),n.d(t,"UIManagerModule",(function(){return Jn})),n.d(t,"View",(function(){return cn})),n.d(t,"ViewPager",(function(){return xn})),n.d(t,"WaterfallView",(function(){return Bn})),n.d(t,"WebSocket",(function(){return Dn})),n.d(t,"WebView",(function(){return Hn})),n.d(t,"callNative",(function(){return er})),n.d(t,"callNativeWithCallbackId",(function(){return nr})),n.d(t,"callNativeWithPromise",(function(){return tr})),n.d(t,"colorParse",(function(){return _e})),n.d(t,"default",(function(){return sn})),n.d(t,"flushSync",(function(){return Zn})),n.d(t,"removeNativeCallback",(function(){return rr}));var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/@hippy/react-reconciler/index.js"),a=n.n(o);const l=["children"],s=["collapsable","style"],u=["style"],c=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],f=["children"],d=["children"],p=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],h=["children"],m=["initialRoute"],y=["component"],g=["children","onPageScrollStateChanged"],b=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t=0||(i[n]=e[n]);return i} /*! * @hippy/react v2.2.1 - * Build at: Thu Jun 23 2022 16:22:04 GMT+0800 (China Standard Time) + * Build at: Mon Jun 27 2022 13:23:14 GMT+0800 (China Standard Time) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -20,7 +20,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage:S,bridge:C,device:x,document:N,register:I,on:P,off:_,emit:L}=e.Hippy;var R=Object.freeze({__proto__:null,addEventListener:P,removeEventListener:_,dispatchEvent:L,AsyncStorage:S,Bridge:C,Device:x,HippyRegister:I,UIManager:N});let A,z;const T=new Map;function O(e,t){z=e,A=t}function j(){if(!z)throw new Error("getRootViewId must execute after setRootContainer");return z}function F(e){if(!A)return null;const{current:t}=A,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function H(e,t){T.set(t,e)}function M(e){T.delete(e)}function D(e){return(null==e?void 0:e.stateNode)||null}function U(e){return T.get(e)||null}function W(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?M(t):t&&(M(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const B=0,V=1,$=-1,q=1,Q={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},K={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const G=new RegExp(/^\d+$/);let Y=!1,X=!1;function J(...e){0}function Z(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const ee=new RegExp("^on.+Capture$");function te(e){return ee.test(e)}const ne=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function re(e){return"[object Function]"===Object.prototype.toString.call(e)}function ie(e){Y=e}function oe(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}class ae{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,e):n.eventHandler(e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class le{constructor(e,t,n){this.type=e,this.bubbles=!0,this.timeStamp=Date.now(),this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const se=new Map,ue=["%c[event]%c","color: green","color: auto"];function ce(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function fe(e,t,n,r,i){let o=!1;const a=e+"Capture",l=D(r),s=D(n);try{if(ce(a,n)){const e=new le(a,s,l);Object.assign(e,t),n.memoizedProps[a](e),!e.bubbles&&i&&i.stopPropagation()}if(ce(e,n)){const r=new le(e,s,l);Object.assign(r,t),o=n.memoizedProps[e](r),"boolean"!=typeof o&&(o=!X),r.bubbles||(o=!0),!1!==o&&i&&i.stopPropagation()}}catch(e){console.reportUncaughtException(e)}}function de(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return se.get(e)||null}const pe={registerNativeEventHub:function(e){if(J(...ue,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=se.get(e);return t||(t=new ae(e),se.set(e,t)),t},getHippyEventHub:de,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);se.has(e)&&se.delete(e)},receiveNativeEvent:function(e){if(J(...ue,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=de(t);r&&r.notifyEvent(n)},receiveNativeGesture:function(e,t){if(J(...ue,"receiveNativeGesture",e),!e)return;const{id:n,currentId:r,name:i}=e,o=U(r),a=U(n);if(!o||!a)return;fe(function(e,t){let n=e;if(t.memoizedProps&&!t.memoizedProps[e]){const r=Object.keys(Q);for(let i=0;i255?255:t}function Se(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ce(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function xe(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Ce(i,r,e+1/3),a=Ce(i,r,e),l=Ce(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Ne(e){return(parseFloat(e)%360+360)%360/360}function Ie(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Pe(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ke.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(ve,e)?ve[e]:(t=ke.rgb.exec(e),Array.isArray(t)?(Ee(t[1])<<24|Ee(t[2])<<16|Ee(t[3])<<8|255)>>>0:(t=ke.rgba.exec(e),t?(Ee(t[1])<<24|Ee(t[2])<<16|Ee(t[3])<<8|Se(t[4]))>>>0:(t=ke.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ke.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=ke.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ke.hsl.exec(e),t?(255|xe(Ne(t[1]),Ie(t[2]),Ie(t[3])))>>>0:(t=ke.hsla.exec(e),t?(xe(Ne(t[1]),Ie(t[2]),Ie(t[3]))|Se(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function _e(e){return Array.isArray(e)?e.map(e=>Pe(e)):[0]}function Le(e){return"loop"===e?-1:e}function Re(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?Pe(t):t}const Ae="animationstart",ze="animationend",Te="animationcancel",Oe="animationrepeat";class je{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=Re(t.valueType,e)}const i=Re(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=Le(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ae),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(ze),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Te),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(Oe)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ae,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(ze,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Te,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Oe,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!=typeof e)throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach(t=>{const n=e[t];if("startValue"===t){let t;if(e.startValue instanceof je)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=Re(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Le(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:Re(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Fe="animationstart",He="animationend",Me="animationcancel",De="animationrepeat";class Ue{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:Le(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Fe),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(He),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Me),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(De)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Fe,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(He,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Me,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Me,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const We={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let Be=!0,Ve=[];function $e(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!K[e]}(r)?K[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===V&&t.removeEventListener(n,l,o),i===B&&t.addEventListener(n,l,o,a)})}})}function qe(e,t){0}function Qe(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case We.createNode:qe(e.nodes),r.create(e.nodes),$e(e.eventNodes,r);break;case We.updateNode:qe(e.nodes),r.update(e.nodes),$e(e.eventNodes,r);break;case We.deleteNode:qe(e.nodes),r.delete(e.nodes);break;case We.moveNode:qe(e.nodes),r.move(e.nodes)}}),r.build()}function Ke(e=!1){if(!Be)return;if(Be=!1,0===Ve.length)return void(Be=!0);const t=j();e?(Qe(t),Ve=[],Be=!0):Promise.resolve().then(()=>{Qe(t),Ve=[],Be=!0})}function Ge(e){const t=e.attributes,{children:n}=t;return E(t,l)}function Ye(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);return[[{id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:w(w({},Ge(t)),{},{style:t.style})},n],function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t)]}function Xe(e,t,n,r,i={}){const o=[],a=[];let l=n;return void 0===l&&t&&t.parentNode&&(l=t.parentNode.childNodes.indexOf(t)),t.traverseChildren((t,n)=>{const[i,l]=Ye(e,t,n);i&&o.push(i),l&&a.push(l),"function"==typeof r&&r(t)},l,i),[o,a]}function Je(e){return!!A&&e instanceof A.containerInfo.constructor}function Ze(e,t,n=-1,r={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const i=j(),o=Je(e)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(o||a){const[e,o]=Xe(i,t,n,e=>{e.isMounted||(e.isMounted=!0)},r);Ve.push({type:We.createNode,nodes:e,eventNodes:o})}}function et(e){if(!e.isMounted)return;const t=j(),[n,r]=Ye(t,e);n&&Ve.push({type:We.updateNode,nodes:[n],eventNodes:[r]})}let tt=0;class nt{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(tt+=1,tt%10==0&&(tt+=1),tt)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),Ze(this,e,n,{refId:t.nodeId,relativeToRef:$})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e),r=this.childNodes.indexOf(t);if(r===n)return e;this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),function(e,t,n=-1,r={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;t.index=n;const i=j(),o=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:i},r]];Ve.push({type:We.moveNode,nodes:o,eventNodes:[]})}(this,e,r,{refId:t.nodeId,relativeToRef:$})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e);Ze(this,e,t+1,n&&{refId:n.nodeId,relativeToRef:q})}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t,n){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.index=n;const r=j(),i=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},{}]];Ve.push({type:We.deleteNode,nodes:i,eventNodes:[]})}(0,e,t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,n,{})})}}const rt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},it={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},ot="turn",at="rad",lt="deg";function st(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=/^([+-]?\d+\.?\d*)+(deg|turn|rad)|(to\w+)$/g.exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=lt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case ot:r=""+(360*n).toFixed(2);break;case at:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==it[i]&&(r=it[i]),r}function ut(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Pe(n)}:void 0:{color:Pe(n)}}function ct(e){return te(e)&&(e=e.replace("Capture","")),Q[e]?Q[e][1]:e}function ft(e){return t=>{const{id:n,currentId:r,params:i}=t;if(function(e){return!!K[e]}(e)){const o={id:n,name:e,currentId:r};Object.assign(o,i),pe.receiveNativeGesture(o,t)}else{const t=[r,e,i];pe.receiveUIComponentEvent(t)}}}class dt extends nt{constructor(e){super(),this.id="",this.style={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}setStyleAttribute(e){this.style={};let t=e;if(!Array.isArray(t)&&Object.hasOwnProperty.call(t,0)){const e=[],n={};Object.keys(t).forEach(r=>{var i;i=r,G.test(i)?e.push(t[r]):n[r]=t[r]}),t=[...e,n]}Array.isArray(t)||(t=[t]);let n={};t.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=w(w({},n),e)}):"object"==typeof e&&e&&(n=w(w({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(rt,e)&&(e=rt[e]),"transform"===e){const e={};if(!Array.isArray(t))throw new TypeError("transform only support array args");t.forEach(t=>{Object.keys(t).forEach(n=>{const r=t[n];r instanceof je||r instanceof Ue?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof je||t instanceof Ue)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=_e(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=Pe(t);else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=st(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=ut(e);t&&r.push(t)}}else{const t=ut(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=oe(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttributes(e=[]){Array.isArray(e)&&e.length>0&&(e.forEach(e=>{if(Array.isArray(e)){const[t,n]=e;this.setAttribute(t,n,{notToNative:!0})}}),et(this))}parseAnimationStyleProp(e){let t=!1;Object.keys(e).some(n=>{const r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(let e=0;e["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,function(e){if(!e.isMounted)return;const t=j(),[n,r]=Xe(t,e)||{};n&&Ve.push({type:We.updateNode,nodes:n,eventNodes:r})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=Z(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>{if("function"==typeof t){const n=ct(e);this.attributes[n]=t,this.events[n]?this.events[n]&&this.events[n].type!==B&&(this.events[n].type=B):this.events[n]={name:n,type:B,isCapture:te(e),listener:ft(n)}}else{const n=ct(e);if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(n,this.events)&&"function"!=typeof t)return delete this.attributes[n],this.events[n].type=V,!1;this.attributes[e]=t}return!1}}].some(e=>!!e.match()&&(n=e.action(),!0)),n}setAttribute(e,t,n={}){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&et(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&et(this)}catch(e){}}removeAttribute(e){delete this.attributes[e]}setStyle(e,t,n=!1){if(null===t)return void delete this.style[e];let r=t,i=e;Object.prototype.hasOwnProperty.call(rt,e)&&(i=rt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?_e(r):i.toLowerCase().indexOf("color")>-1?Pe(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&ne.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||et(this))}setNativeProps(e){if(e){const{style:t}=e;if(t){const e=t;Object.keys(e).forEach(t=>{this.setStyle(t,e[t],!0)}),et(this),Ke(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=Z(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class pt extends nt{constructor(){super(),this.documentElement=new dt("document")}createElement(e){return new dt(e)}createElementNS(e,t){return new dt(`${e}:${t}`)}}pt.createElement=pt.prototype.createElement,pt.createElementNS=pt.prototype.createElementNS;var ht=Array.isArray,mt=Object.keys,yt=Object.prototype.hasOwnProperty;const gt=setTimeout,bt=clearTimeout;var vt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){Ke(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:gt,cancelTimeout:bt,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){H(o,e.nodeId);const a=Object.keys(t||{});if(0===a.length)return;const l=a.map(e=>[e,t[e]]);e.setAttributes(l)},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),H(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",Z(e)),i.meta={component:{name:"Text"}},H(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(n).forEach(e=>{const t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)}),Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=ht(t),l=ht(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=mt(t);if((i=d.length)!==mt(n).length)return!1;for(r=i;0!=r--;)if(!yt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),W(t)},removeChildFromContainer:function(e,t){e.removeChild(t),W(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=w(w({},t),{},{style:w(w({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const wt=a()(w(w({},vt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var kt=Object.freeze({__proto__:null,getString:function(){return C.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){C.callNative("ClipboardModule","setString",e)}});var Et=Object.freeze({__proto__:null,getCookies:function(e){return C.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),C.callNative("network","setCookie",e,t,r)}});function St(e){return C.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Ct(e){C.callNative("ImageLoaderModule","prefetch",e)}var xt=Object.freeze({__proto__:null,getSize:St,prefetch:Ct});const Nt=new Map;let It;class Pt{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(_t(this.eventName,this.listener),this.listener=void 0)}}function _t(e,t){if(t instanceof Pt)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");It.listenerSize(n)<=1&&C.callNative("NetInfo","removeListener",n);const r=Nt.get(t);r&&(r.remove(),Nt.delete(t))}var Lt=Object.freeze({__proto__:null,addEventListener:function(e,t){It=new ge;let n=e;n&&"change"===n&&(n="networkStatusDidChange"),It.listenerSize(n)<1&&C.callNative("NetInfo","addListener",n);const r=It.addListener(n,e=>{t(e)});return Nt.set(t,r),new Pt(n,t)},removeEventListener:_t,fetch:function(){return C.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:Rt,updateNode:At,deleteNode:zt,flushBatch:Tt,endBatch:Ot,sendRenderError:jt}=N,Ft=function(e){return F(t=>t.stateNode&&t.stateNode.nodeId===e)};function Ht(e){if(e instanceof dt)return e;const t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){let e=t.child;for(;e&&!(e.stateNode instanceof dt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Mt(e){let t=e;if("string"==typeof e){const n=F(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=Ht(t);return e?e.nodeId:0}return t.nodeId}function Dt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Ht(e);t&&({nodeId:i,nativeName:r}=t)}if(!r)throw new Error("callUIFunction is calling a unnamed component");if(!i)throw new Error("callUIFunction is calling a component have no nodeId");let[o=[],a]=n;re(o)&&(a=o,o=[]);null!==j()&&(J(),N.callUIFunction(i,t,o,a))}function Ut(e,t,n){const r=Mt(t);return new Promise((t,i)=>r?(J(),N.callUIFunction(r,e,[],e=>(n&&re(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&re(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Wt=Object.freeze({__proto__:null,createNode:Rt,updateNode:At,deleteNode:zt,flushBatch:Tt,endBatch:Ot,sendRenderError:jt,getNodeById:Ft,getNodeIdByRef:Mt,getElementFromFiberRef:Ht,callUIFunction:Dt,measureInWindow:function(e,t){return Ut("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===x.platform.OS?Ut("measureInWindow",e,t):Ut("measureInAppWindow",e,t)}});const Bt=new ge,Vt=new Set,$t={exitApp(){C.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(C.callNative("DeviceEventModule","setListenBackPress",!0),Vt.add(e),{remove(){$t.removeListener(e)}}),removeListener(e){Vt.delete(e),0===Vt.size&&C.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Bt.addListener("hardwareBackPress",()=>{let e=!0;[...Vt].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&$t.exitApp()})}},qt=($t.initEventListener(),$t),{flushSync:Qt}=wt,{addEventListener:Kt,removeEventListener:Gt,dispatchEvent:Yt,AsyncStorage:Xt,Bridge:Jt,Device:Zt,HippyRegister:en}=R;var tn=Object.freeze({__proto__:null,addEventListener:Kt,removeEventListener:Gt,dispatchEvent:Yt,AsyncStorage:Xt,BackAndroid:qt,Bridge:Jt,Clipboard:kt,Cookie:Et,Device:Zt,HippyRegister:en,ImageLoader:xt,NetworkInfo:Lt,UIManager:Wt,flushSync:Qt});const{createContainer:nn,updateContainer:rn,getPublicRootInstance:on,injectIntoDevTools:an}=wt,ln=['%c[Hippy-React "2.2.1"]%c',"color: #61dafb","color: auto"];class sn{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new pt;this.rootContainer=nn(t,0,!1,null)}static get Native(){return tn}start(){en.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:o=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;J(...ln,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&ie(r),o&&function(e=!1){X=e}(o),O(l,this.rootContainer);const s=i.a.createElement(n,e);return rn(s,this.rootContainer,null,a),on(this.rootContainer)}}sn.version="2.2.1";const un={registerComponent(e,t){new sn({appName:e,entryPage:t}).start()}};class cn extends i.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Dt(this.instance,"setPressed",[e])}setHotspot(e,t){Dt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,s),o=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(o.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=Pe(a.color)),i.a.createElement("div",w({ref:e=>{this.instance=e},nativeName:"View",style:o},r))}}function fn(e,t){let{style:n}=e,r=E(e,u);const o=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(o[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=Z(r.children);else if("number"==typeof r.children)r.text=Z(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=Z(e),r.children=r.text)}return i.a.createElement("p",w({ref:t,nativeName:"Text",style:o},r))}fn.displayName="Text";const dn=i.a.forwardRef(fn);dn.displayName="Text";var pn=Object.freeze({__proto__:null,default:dn});class hn extends i.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=St(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:o,source:a,sources:l,src:s,srcs:u,tintColor:f,tintColors:d}=e,p=E(e,c),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=oe(p.defaultSource));const m=w({},n);return this.handleTintColor(m,f,d),p.style=m,t?i.a.createElement(cn,{style:n},i.a.createElement("img",w(w({},p),{},{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",w(w({},p),{},{nativeName:"Image",alt:"",ref:o}))}getImageUrls({src:e,srcs:t,source:n,sources:r}){let i=[];if("string"==typeof e&&i.push(e),Array.isArray(t)&&(i=[...i,...t]),n)if("string"==typeof n)i.push(n);else if("object"==typeof n&&null!==n){const{uri:e}=n;e&&i.push(e)}return r&&Array.isArray(r)&&r.forEach(e=>{"string"==typeof e?i.push(e):"object"==typeof e&&null!==e&&e.uri&&i.push(e.uri)}),i.length&&(i=i.map(e=>oe(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}hn.prefetch=Ct;class mn{constructor(){this.Value=mn.Value}static Value(e){return e}static timing(e,t){return new je({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}mn.View=cn,mn.Text=pn,mn.Image=hn;const yn={step0:e=>e>0?1:0,step1:e=>e>=1?1:0,linear:()=>"linear",ease:()=>"ease",quad:e=>e**2,cubic:e=>e**3,poly:e=>t=>t**e,sin:e=>1-Math.cos(e*Math.PI/2),circle:e=>1-Math.sqrt(1-e*e),exp:e=>2**(10*(e-1)),elastic:()=>"elastic",back:(e=1.70158)=>t=>t*t*((e+1)*t-e),bounce(e){let t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?(t-=1.5/2.75,7.5625*t*t+.75):t<2.5/2.75?(t-=2.25/2.75,7.5625*t*t+.9375):(t-=2.625/2.75,7.5625*t*t+.984375)},bezier:()=>"bezier",in:()=>"ease-in",out:()=>"ease-out",inOut:()=>"ease-in-out"};function gn(e){return i.a.createElement("li",w({nativeName:"ListViewItem"},e))}class bn extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Dt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Dt(this.instance,"collapsePullHeaderWithOptions",[e]):Dt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=E(e,f);return i.a.createElement("div",w({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class vn extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Dt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Dt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=E(e,d);return i.a.createElement("div",w({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class wn extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Dt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Dt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:o,renderPullFooter:a,getRowType:l,getRowStyle:s,getRowKey:u,dataSource:c,initialListSize:f,rowShouldSticky:d,onRowLayout:h,onHeaderPulling:m,onHeaderReleased:y,onFooterPulling:g,onFooterReleased:b,onAppear:v,onDisappear:k,onWillAppear:S,onWillDisappear:C}=e,x=E(e,p),N=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const p=this.getPullHeader(o,m,y),E=this.getPullFooter(a,g,b);!t&&c&&(t=c.length),e||(t=Math.min(t,f||10));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&N.push(i.a.createElement(gn,w({},t),n))}p&&N.unshift(p),E&&N.push(E),"function"==typeof d&&Object.assign(x,{rowShouldSticky:!0});const I=[v,k,S,C];x.exposureEventEnabled=I.some(e=>"function"==typeof e),"ios"===Zt.platform.OS&&(x.numberOfRows=N.length),x.initialListSize=f,x.style=w({},n)}return i.a.createElement("ul",w({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},x),N.length?N:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(bn,{key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(vn,{key:"pull-footer",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleRowProps(e,t,{getRowKey:n,getRowStyle:r,onRowLayout:i,getRowType:o,rowShouldSticky:a}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}"function"==typeof a&&(e.sticky=a(t))}}wn.defaultProps={numberOfRows:0};class kn extends i.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Dt(this.instance,"startRefresh",null)}refreshCompleted(){Dt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=E(e,h);return i.a.createElement("div",w({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}}class En{constructor(){this.top=null,this.size=0}push(e){this.top={data:e,next:this.top},this.size+=1}peek(){return null===this.top?null:this.top.data}pop(){if(null===this.top)return null;const e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}clear(){this.top=null,this.size=0}displayAll(){const e=[];if(null===this.top)return e;let t=this.top;for(let n=0,r=this.size;n1&&this.pop({animated:!0})}push(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName]){new sn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Dt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Dt(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=E(e.initialRoute,y),r=E(e,m);return r.initialRoute=n,i.a.createElement("div",w({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function Cn(e){return i.a.createElement("div",w(w({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class xn extends i.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&Dt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Dt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=E(e,g);let o=[];return Array.isArray(t)?o=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),i.a.createElement(Cn,w({},t),e)}):o.push(i.a.createElement(Cn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",w({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),o)}}function Nn(){const e=x.platform.Localization;return!!e&&1===e.direction}const In={caretColor:"caret-color"};class Pn extends i.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this.onChangeText=this.onChangeText.bind(this),this.onKeyboardWillShow=this.onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{Dt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Dt(this.instance,"setValue",[e]),e}focus(){Dt(this.instance,"focusTextInput",[])}blur(){Dt(this.instance,"blurTextInput",[])}showInputMethod(){}hideInputMethod(){}clear(){Dt(this.instance,"clear",[])}render(){const e=w({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(In[t]&&(n=In[t]),Array.isArray(e.style)?e.style.push({[n]:r}):e.style&&"object"==typeof e.style?e.style[n]=r:e.style={[n]:r},delete e[t])}),Nn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),i.a.createElement("div",w(w({nativeName:"TextInput"},e),{},{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}onChangeText(e){const{onChangeText:t}=this.props;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}onKeyboardWillShow(e){const{onKeyboardWillShow:t}=this.props;"function"==typeof t&&t(e)}}const _n=Zt.window.scale;let Ln=Math.round(.4*_n)/_n;function Rn(e){return e}0===Ln&&(Ln=1/_n);var An=Object.freeze({__proto__:null,get hairlineWidth(){return Ln},create:Rn});const zn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class Tn extends i.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"number"==typeof e||"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Dt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Dt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,o=[e?zn.contentContainerHorizontal:zn.contentContainerVertical,t],a=e?Object.assign({},zn.baseHorizontal,r):Object.assign({},zn.baseVertical,r);return e&&(a.flexDirection=Nn()?"row-reverse":"row"),i.a.createElement("div",w(w({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),i.a.createElement(cn,{style:o},n))}}const On={modal:{position:"absolute",collapsable:!1}};class jn extends i.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Zt.platform.OS&&(this.eventSubscription=new me("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Zt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:o}=this.props;if(!1===t)return null;const a={backgroundColor:n?"transparent":"white"};return o||(o="none",r&&(o="slide")),i.a.createElement("div",w({nativeName:"Modal",animationType:o,transparent:n,style:[On.modal,a]},this.props),e)}}jn.defaultProps={visible:!0};class Fn extends i.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}render(){var e,t,n;const{requestFocus:r,children:o,nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=i.a.Children.only(o);let y;(null===(t=null===(e=null==m?void 0:m.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?y=m.child.memoizedProps.nativeName:(null===(n=null==m?void 0:m.type)||void 0===n?void 0:n.displayName)&&(y=m.type.displayName);const g=a&&Mt(a),b=l&&Mt(l),v=s&&Mt(s),k=u&&Mt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=w(w({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return i.a.createElement(cn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:v,nextFocusRightId:k,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:S}=m.memoizedProps;return i.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:S,style:E,onFocus:this.handleFocus})}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}}function Hn(e){return i.a.createElement("iframe",w({title:"hippy",nativeName:"WebView"},e))}let Mn;class Dn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Mn||(Mn=new me("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=w({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Mn.addCallback(this.onWebSocketEvent),C.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,C.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);C.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Mn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Un(e){return i.a.createElement("li",w({nativeName:"WaterfallItem"},e))}class Wn extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}scrollToIndex({index:e=0,animated:t=!0}){Dt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Dt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{style:t={},renderBanner:n,numberOfColumns:r=2,columnSpacing:o=0,interItemSpacing:a=0,numberOfItems:l=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:f,getItemType:d,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:k,onFooterReleased:S,containPullHeader:C=!1,containPullFooter:x=!1,containBannerView:N=!1}=e,I=w(w({},E(e,b)),{},{style:t,numberOfColumns:r,columnSpacing:o,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:C,containPullFooter:x,containBannerView:N}),P=[];if("function"==typeof n){const e=n();e&&(P.push(i.a.createElement(cn,{key:"bannerView"},i.a.cloneElement(e))),I.containBannerView=!0)}if("function"==typeof u){const e=this.getPullHeader(c,g,v),n=this.getPullFooter(f,k,S);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},I),P)}componentDidMount(){const{getItemKey:e}=this.props}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i.call(this,e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(bn,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(vn,{key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}}e.WebSocket=Dn;const{AsyncStorage:Bn,BackAndroid:Vn,Bridge:$n,Clipboard:qn,Cookie:Qn,Device:Kn,HippyRegister:Gn,ImageLoader:Yn,NetworkInfo:Xn,UIManager:Jn,flushSync:Zn}=tn,{callNative:er,callNativeWithPromise:tr,callNativeWithCallbackId:nr,removeNativeCallback:rr}=$n,ir=null,or=e.ConsoleModule||e.console,ar=Kn.platform,lr=sn,sr=sn,ur=hn,cr=Gn,fr=ge,dr=me,pr={get:e=>Kn[e]},hr={get:()=>Kn.screen.scale}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ + */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage:S,bridge:C,device:x,document:N,register:P,on:I,off:_,emit:L}=e.Hippy;var A=Object.freeze({__proto__:null,addEventListener:I,removeEventListener:_,dispatchEvent:L,AsyncStorage:S,Bridge:C,Device:x,HippyRegister:P,UIManager:N});let R,z;const T=new Map;function O(e,t){z=e,R=t}function j(){if(!z)throw new Error("getRootViewId must execute after setRootContainer");return z}function F(e){if(!R)return null;const{current:t}=R,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function H(e,t){T.set(t,e)}function M(e){T.delete(e)}function D(e){return(null==e?void 0:e.stateNode)||null}function U(e){return T.get(e)||null}function B(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?M(t):t&&(M(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const W=0,V=1,$=-1,q=1,Q={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},G={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},K={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const Y=new RegExp(/^\d+$/);let X=!1,J=!1;function Z(...e){0}function ee(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const te=new RegExp("^on.+Capture$");function ne(e){return te.test(e)}const re=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ie(e){return"[object Function]"===Object.prototype.toString.call(e)}function oe(e){X=e}function ae(){return J}function le(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}class se{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,e):n.eventHandler(e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class ue{constructor(e,t,n){this.type=e,this.bubbles=!0,this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const ce=new Map,fe=["%c[event]%c","color: green","color: auto"];function de(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function pe(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return ce.get(e)||null}const he={registerNativeEventHub:function(e){if(Z(...fe,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=ce.get(e);return t||(t=new se(e),ce.set(e,t)),t},getHippyEventHub:pe,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);ce.has(e)&&ce.delete(e)},receiveNativeEvent:function(e){if(Z(...fe,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=pe(t);r&&r.notifyEvent(n)},receiveComponentEvent:function(e,t){if(Z(...fe,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:r,nativeName:i,originalName:o,params:a}=e,l=U(r),s=U(n);l&&s&&(K[i]?function(e,t,n,r,i,o){try{let t=!1;const a=D(r),l=D(n),{eventPhase:s}=o;if(de(e,n)&&ne(e)&&[G.AT_TARGET,G.CAPTURING_PHASE].indexOf(s)>-1){const t=new ue(e,l,a);Object.assign(t,{eventPhase:s},i),n.memoizedProps[e](t),!t.bubbles&&o&&o.stopPropagation()}if(de(e,n)&&!ne(e)&&[G.AT_TARGET,G.BUBBLING_PHASE].indexOf(s)>-1){const r=new ue(e,l,a);Object.assign(r,{eventPhase:s},i),t=n.memoizedProps[e](r),"boolean"!=typeof t&&(t=!ae()),r.bubbles||(t=!0),t&&o&&o.stopPropagation()}}catch(e){console.reportUncaughtException(e)}}(o,0,l,s,a,t):function(e,t,n,r,i,o){let a=!1;const l=D(r),s=D(n);try{const{eventPhase:t}=o;if(de(e,n)&&!ne(e)&&[G.AT_TARGET,G.BUBBLING_PHASE].indexOf(t)>-1){const r=new ue(e,s,l);Object.assign(r,{eventPhase:t},i),n.memoizedProps[e](r),a=!ae(),r.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.reportUncaughtException(e)}}(o,0,l,s,a,t))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=he);class me{constructor(e,t){this.callback=e,this.bindListener=t}remove(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}class ye{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=he.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for "+this.eventName);const t=this.listenerIdList.length;for(let n=0;n255?255:t}function Ce(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function xe(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ne(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=xe(i,r,e+1/3),a=xe(i,r,e),l=xe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Pe(e){return(parseFloat(e)%360+360)%360/360}function Ie(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function _e(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ee.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(we,e)?we[e]:(t=Ee.rgb.exec(e),Array.isArray(t)?(Se(t[1])<<24|Se(t[2])<<16|Se(t[3])<<8|255)>>>0:(t=Ee.rgba.exec(e),t?(Se(t[1])<<24|Se(t[2])<<16|Se(t[3])<<8|Ce(t[4]))>>>0:(t=Ee.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ee.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Ee.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ee.hsl.exec(e),t?(255|Ne(Pe(t[1]),Ie(t[2]),Ie(t[3])))>>>0:(t=Ee.hsla.exec(e),t?(Ne(Pe(t[1]),Ie(t[2]),Ie(t[3]))|Ce(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function Le(e){return Array.isArray(e)?e.map(e=>_e(e)):[0]}function Ae(e){return"loop"===e?-1:e}function Re(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?_e(t):t}const ze="animationstart",Te="animationend",Oe="animationcancel",je="animationrepeat";class Fe{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=Re(t.valueType,e)}const i=Re(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=Ae(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(ze),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Te),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Oe),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(je)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(ze,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Te,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Oe,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(je,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!=typeof e)throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach(t=>{const n=e[t];if("startValue"===t){let t;if(e.startValue instanceof Fe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=Re(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Ae(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:Re(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const He="animationstart",Me="animationend",De="animationcancel",Ue="animationrepeat";class Be{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:Ae(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(He),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Me),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(De),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ue)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(He,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Me,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(De,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(De,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const We={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let Ve=!0,$e=[];function qe(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!K[e]}(r)?K[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===V&&t.removeEventListener(n,l,o),i===W&&t.addEventListener(n,l,o,a)})}})}function Qe(e,t){0}function Ge(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case We.createNode:Qe(e.nodes),r.create(e.nodes),qe(e.eventNodes,r);break;case We.updateNode:Qe(e.nodes),r.update(e.nodes),qe(e.eventNodes,r);break;case We.deleteNode:Qe(e.nodes),r.delete(e.nodes);break;case We.moveNode:Qe(e.nodes),r.move(e.nodes)}}),r.build()}function Ke(e=!1){if(!Ve)return;if(Ve=!1,0===$e.length)return void(Ve=!0);const t=j();e?(Ge(t),$e=[],Ve=!0):Promise.resolve().then(()=>{Ge(t),$e=[],Ve=!0})}function Ye(e){const t=e.attributes,{children:n}=t;return E(t,l)}function Xe(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);return[[{id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:w(w({},Ye(t)),{},{style:t.style})},n],function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t)]}function Je(e,t,n,r,i={}){const o=[],a=[];let l=n;return void 0===l&&t&&t.parentNode&&(l=t.parentNode.childNodes.indexOf(t)),t.traverseChildren((t,n)=>{const[i,l]=Xe(e,t,n);i&&o.push(i),l&&a.push(l),"function"==typeof r&&r(t)},l,i),[o,a]}function Ze(e){return!!R&&e instanceof R.containerInfo.constructor}function et(e,t,n=-1,r={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const i=j(),o=Ze(e)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(o||a){const[e,o]=Je(i,t,n,e=>{e.isMounted||(e.isMounted=!0)},r);$e.push({type:We.createNode,nodes:e,eventNodes:o})}}function tt(e){if(!e.isMounted)return;const t=j(),[n,r]=Xe(t,e);n&&$e.push({type:We.updateNode,nodes:[n],eventNodes:[r]})}let nt=0;class rt{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(nt+=1,nt%10==0&&(nt+=1),nt)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),et(this,e,n,{refId:t.nodeId,relativeToRef:$})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e),r=this.childNodes.indexOf(t);if(r===n)return e;this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),function(e,t,n=-1,r={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;t.index=n;const i=j(),o=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:i},r]];$e.push({type:We.moveNode,nodes:o,eventNodes:[]})}(this,e,r,{refId:t.nodeId,relativeToRef:$})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e);et(this,e,t+1,n&&{refId:n.nodeId,relativeToRef:q})}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t,n){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.index=n;const r=j(),i=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},{}]];$e.push({type:We.deleteNode,nodes:i,eventNodes:[]})}(0,e,t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,n,{})})}}const it={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},ot={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},at="turn",lt="rad",st="deg";function ut(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=/^([+-]?\d+\.?\d*)+(deg|turn|rad)|(to\w+)$/g.exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=st){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case at:r=""+(360*n).toFixed(2);break;case lt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==ot[i]&&(r=ot[i]),r}function ct(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:_e(n)}:void 0:{color:_e(n)}}function ft(e){return ne(e)&&(e=e.replace("Capture","")),Q[e]?Q[e][1]:e}class dt extends rt{constructor(e){super(),this.id="",this.style={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}setStyleAttribute(e){this.style={};let t=e;if(!Array.isArray(t)&&Object.hasOwnProperty.call(t,0)){const e=[],n={};Object.keys(t).forEach(r=>{var i;i=r,Y.test(i)?e.push(t[r]):n[r]=t[r]}),t=[...e,n]}Array.isArray(t)||(t=[t]);let n={};t.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=w(w({},n),e)}):"object"==typeof e&&e&&(n=w(w({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(it,e)&&(e=it[e]),"transform"===e){const e={};if(!Array.isArray(t))throw new TypeError("transform only support array args");t.forEach(t=>{Object.keys(t).forEach(n=>{const r=t[n];r instanceof Fe||r instanceof Be?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof Fe||t instanceof Be)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Le(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=_e(t);else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=ut(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=ct(e);t&&r.push(t)}}else{const t=ct(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=le(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttributes(e=[]){Array.isArray(e)&&e.length>0&&(e.forEach(e=>{if(Array.isArray(e)){const[t,n]=e;this.setAttribute(t,n,{notToNative:!0})}}),tt(this))}parseAnimationStyleProp(e){let t=!1;Object.keys(e).some(n=>{const r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(let e=0;e["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,function(e){if(!e.isMounted)return;const t=j(),[n,r]=Je(t,e)||{};n&&$e.push({type:We.updateNode,nodes:n,eventNodes:r})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=ee(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>{if("function"==typeof t){const i=ft(e);this.attributes[i]=t,this.events[e]?this.events[e]&&this.events[e].type!==W&&(this.events[e].type=W):this.events[e]={name:i,type:W,isCapture:ne(e),listener:(n=i,r=e,e=>{const{id:t,currentId:i,params:o,eventPhase:a}=e,l={id:t,nativeName:n,originalName:r,params:o,currentId:i,eventPhase:a};he.receiveComponentEvent(l,e)})}}else{const n=ft(e);if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(e,this.events)&&"function"!=typeof t)return delete this.attributes[n],this.events[e].type=V,!1;this.attributes[e]=t}var n,r;return!1}}].some(e=>!!e.match()&&(n=e.action(),!0)),n}setAttribute(e,t,n={}){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&tt(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&tt(this)}catch(e){}}removeAttribute(e){delete this.attributes[e]}setStyle(e,t,n=!1){if(null===t)return void delete this.style[e];let r=t,i=e;Object.prototype.hasOwnProperty.call(it,e)&&(i=it[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Le(r):i.toLowerCase().indexOf("color")>-1?_e(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&re.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||tt(this))}setNativeProps(e){if(e){const{style:t}=e;if(t){const e=t;Object.keys(e).forEach(t=>{this.setStyle(t,e[t],!0)}),tt(this),Ke(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ee(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class pt extends rt{constructor(){super(),this.documentElement=new dt("document")}createElement(e){return new dt(e)}createElementNS(e,t){return new dt(`${e}:${t}`)}}pt.createElement=pt.prototype.createElement,pt.createElementNS=pt.prototype.createElementNS;var ht=Array.isArray,mt=Object.keys,yt=Object.prototype.hasOwnProperty;const gt=setTimeout,bt=clearTimeout;var vt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){Ke(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:gt,cancelTimeout:bt,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){H(o,e.nodeId);const a=Object.keys(t||{});if(0===a.length)return;const l=a.map(e=>[e,t[e]]);e.setAttributes(l)},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),H(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",ee(e)),i.meta={component:{name:"Text"}},H(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(n).forEach(e=>{const t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)}),Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=ht(t),l=ht(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=mt(t);if((i=d.length)!==mt(n).length)return!1;for(r=i;0!=r--;)if(!yt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),B(t)},removeChildFromContainer:function(e,t){e.removeChild(t),B(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=w(w({},t),{},{style:w(w({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const wt=a()(w(w({},vt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var kt=Object.freeze({__proto__:null,getString:function(){return C.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){C.callNative("ClipboardModule","setString",e)}});var Et=Object.freeze({__proto__:null,getCookies:function(e){return C.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),C.callNative("network","setCookie",e,t,r)}});function St(e){return C.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Ct(e){C.callNative("ImageLoaderModule","prefetch",e)}var xt=Object.freeze({__proto__:null,getSize:St,prefetch:Ct});const Nt=new Map;let Pt;class It{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(_t(this.eventName,this.listener),this.listener=void 0)}}function _t(e,t){if(t instanceof It)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");Pt.listenerSize(n)<=1&&C.callNative("NetInfo","removeListener",n);const r=Nt.get(t);r&&(r.remove(),Nt.delete(t))}var Lt=Object.freeze({__proto__:null,addEventListener:function(e,t){Pt=new be;let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Pt.listenerSize(n)<1&&C.callNative("NetInfo","addListener",n);const r=Pt.addListener(n,e=>{t(e)});return Nt.set(t,r),new It(n,t)},removeEventListener:_t,fetch:function(){return C.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:At,updateNode:Rt,deleteNode:zt,flushBatch:Tt,endBatch:Ot,sendRenderError:jt}=N,Ft=function(e){return F(t=>t.stateNode&&t.stateNode.nodeId===e)};function Ht(e){if(e instanceof dt)return e;const t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){let e=t.child;for(;e&&!(e.stateNode instanceof dt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Mt(e){let t=e;if("string"==typeof e){const n=F(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=Ht(t);return e?e.nodeId:0}return t.nodeId}function Dt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Ht(e);t&&({nodeId:i,nativeName:r}=t)}if(!r)throw new Error("callUIFunction is calling a unnamed component");if(!i)throw new Error("callUIFunction is calling a component have no nodeId");let[o=[],a]=n;ie(o)&&(a=o,o=[]);null!==j()&&(Z(),N.callUIFunction(i,t,o,a))}function Ut(e,t,n){const r=Mt(t);return new Promise((t,i)=>r?(Z(),N.callUIFunction(r,e,[],e=>(n&&ie(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&ie(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Bt=Object.freeze({__proto__:null,createNode:At,updateNode:Rt,deleteNode:zt,flushBatch:Tt,endBatch:Ot,sendRenderError:jt,getNodeById:Ft,getNodeIdByRef:Mt,getElementFromFiberRef:Ht,callUIFunction:Dt,measureInWindow:function(e,t){return Ut("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===x.platform.OS?Ut("measureInWindow",e,t):Ut("measureInAppWindow",e,t)}});const Wt=new be,Vt=new Set,$t={exitApp(){C.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(C.callNative("DeviceEventModule","setListenBackPress",!0),Vt.add(e),{remove(){$t.removeListener(e)}}),removeListener(e){Vt.delete(e),0===Vt.size&&C.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Wt.addListener("hardwareBackPress",()=>{let e=!0;[...Vt].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&$t.exitApp()})}},qt=($t.initEventListener(),$t),{flushSync:Qt}=wt,{addEventListener:Gt,removeEventListener:Kt,dispatchEvent:Yt,AsyncStorage:Xt,Bridge:Jt,Device:Zt,HippyRegister:en}=A;var tn=Object.freeze({__proto__:null,addEventListener:Gt,removeEventListener:Kt,dispatchEvent:Yt,AsyncStorage:Xt,BackAndroid:qt,Bridge:Jt,Clipboard:kt,Cookie:Et,Device:Zt,HippyRegister:en,ImageLoader:xt,NetworkInfo:Lt,UIManager:Bt,flushSync:Qt});const{createContainer:nn,updateContainer:rn,getPublicRootInstance:on,injectIntoDevTools:an}=wt,ln=['%c[Hippy-React "2.2.1"]%c',"color: #61dafb","color: auto"];class sn{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new pt;this.rootContainer=nn(t,0,!1,null)}static get Native(){return tn}start(){en.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:o=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;Z(...ln,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&oe(r),o&&function(e=!1){J=e}(o),O(l,this.rootContainer);const s=i.a.createElement(n,e);return rn(s,this.rootContainer,null,a),on(this.rootContainer)}}sn.version="2.2.1";const un={registerComponent(e,t){new sn({appName:e,entryPage:t}).start()}};class cn extends i.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Dt(this.instance,"setPressed",[e])}setHotspot(e,t){Dt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,s),o=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(o.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=_e(a.color)),i.a.createElement("div",w({ref:e=>{this.instance=e},nativeName:"View",style:o},r))}}function fn(e,t){let{style:n}=e,r=E(e,u);const o=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(o[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=ee(r.children);else if("number"==typeof r.children)r.text=ee(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=ee(e),r.children=r.text)}return i.a.createElement("p",w({ref:t,nativeName:"Text",style:o},r))}fn.displayName="Text";const dn=i.a.forwardRef(fn);dn.displayName="Text";var pn=Object.freeze({__proto__:null,default:dn});class hn extends i.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=St(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:o,source:a,sources:l,src:s,srcs:u,tintColor:f,tintColors:d}=e,p=E(e,c),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=le(p.defaultSource));const m=w({},n);return this.handleTintColor(m,f,d),p.style=m,t?i.a.createElement(cn,{style:n},i.a.createElement("img",w(w({},p),{},{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",w(w({},p),{},{nativeName:"Image",alt:"",ref:o}))}getImageUrls({src:e,srcs:t,source:n,sources:r}){let i=[];if("string"==typeof e&&i.push(e),Array.isArray(t)&&(i=[...i,...t]),n)if("string"==typeof n)i.push(n);else if("object"==typeof n&&null!==n){const{uri:e}=n;e&&i.push(e)}return r&&Array.isArray(r)&&r.forEach(e=>{"string"==typeof e?i.push(e):"object"==typeof e&&null!==e&&e.uri&&i.push(e.uri)}),i.length&&(i=i.map(e=>le(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}hn.prefetch=Ct;class mn{constructor(){this.Value=mn.Value}static Value(e){return e}static timing(e,t){return new Fe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}mn.View=cn,mn.Text=pn,mn.Image=hn;const yn={step0:e=>e>0?1:0,step1:e=>e>=1?1:0,linear:()=>"linear",ease:()=>"ease",quad:e=>e**2,cubic:e=>e**3,poly:e=>t=>t**e,sin:e=>1-Math.cos(e*Math.PI/2),circle:e=>1-Math.sqrt(1-e*e),exp:e=>2**(10*(e-1)),elastic:()=>"elastic",back:(e=1.70158)=>t=>t*t*((e+1)*t-e),bounce(e){let t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?(t-=1.5/2.75,7.5625*t*t+.75):t<2.5/2.75?(t-=2.25/2.75,7.5625*t*t+.9375):(t-=2.625/2.75,7.5625*t*t+.984375)},bezier:()=>"bezier",in:()=>"ease-in",out:()=>"ease-out",inOut:()=>"ease-in-out"};function gn(e){return i.a.createElement("li",w({nativeName:"ListViewItem"},e))}class bn extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Dt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Dt(this.instance,"collapsePullHeaderWithOptions",[e]):Dt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=E(e,f);return i.a.createElement("div",w({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class vn extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Dt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Dt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=E(e,d);return i.a.createElement("div",w({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class wn extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Dt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Dt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:o,renderPullFooter:a,getRowType:l,getRowStyle:s,getRowKey:u,dataSource:c,initialListSize:f,rowShouldSticky:d,onRowLayout:h,onHeaderPulling:m,onHeaderReleased:y,onFooterPulling:g,onFooterReleased:b,onAppear:v,onDisappear:k,onWillAppear:S,onWillDisappear:C}=e,x=E(e,p),N=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const p=this.getPullHeader(o,m,y),E=this.getPullFooter(a,g,b);!t&&c&&(t=c.length),e||(t=Math.min(t,f||10));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&N.push(i.a.createElement(gn,w({},t),n))}p&&N.unshift(p),E&&N.push(E),"function"==typeof d&&Object.assign(x,{rowShouldSticky:!0});const P=[v,k,S,C];x.exposureEventEnabled=P.some(e=>"function"==typeof e),"ios"===Zt.platform.OS&&(x.numberOfRows=N.length),x.initialListSize=f,x.style=w({},n)}return i.a.createElement("ul",w({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},x),N.length?N:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(bn,{key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(vn,{key:"pull-footer",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleRowProps(e,t,{getRowKey:n,getRowStyle:r,onRowLayout:i,getRowType:o,rowShouldSticky:a}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}"function"==typeof a&&(e.sticky=a(t))}}wn.defaultProps={numberOfRows:0};class kn extends i.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Dt(this.instance,"startRefresh",null)}refreshCompleted(){Dt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=E(e,h);return i.a.createElement("div",w({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}}class En{constructor(){this.top=null,this.size=0}push(e){this.top={data:e,next:this.top},this.size+=1}peek(){return null===this.top?null:this.top.data}pop(){if(null===this.top)return null;const e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}clear(){this.top=null,this.size=0}displayAll(){const e=[];if(null===this.top)return e;let t=this.top;for(let n=0,r=this.size;n1&&this.pop({animated:!0})}push(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName]){new sn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Dt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Dt(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=E(e.initialRoute,y),r=E(e,m);return r.initialRoute=n,i.a.createElement("div",w({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function Cn(e){return i.a.createElement("div",w(w({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class xn extends i.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&Dt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Dt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=E(e,g);let o=[];return Array.isArray(t)?o=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),i.a.createElement(Cn,w({},t),e)}):o.push(i.a.createElement(Cn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",w({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),o)}}function Nn(){const e=x.platform.Localization;return!!e&&1===e.direction}const Pn={caretColor:"caret-color"};class In extends i.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this.onChangeText=this.onChangeText.bind(this),this.onKeyboardWillShow=this.onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{Dt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Dt(this.instance,"setValue",[e]),e}focus(){Dt(this.instance,"focusTextInput",[])}blur(){Dt(this.instance,"blurTextInput",[])}showInputMethod(){}hideInputMethod(){}clear(){Dt(this.instance,"clear",[])}render(){const e=w({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(Pn[t]&&(n=Pn[t]),Array.isArray(e.style)?e.style.push({[n]:r}):e.style&&"object"==typeof e.style?e.style[n]=r:e.style={[n]:r},delete e[t])}),Nn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),i.a.createElement("div",w(w({nativeName:"TextInput"},e),{},{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}onChangeText(e){const{onChangeText:t}=this.props;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}onKeyboardWillShow(e){const{onKeyboardWillShow:t}=this.props;"function"==typeof t&&t(e)}}const _n=Zt.window.scale;let Ln=Math.round(.4*_n)/_n;function An(e){return e}0===Ln&&(Ln=1/_n);var Rn=Object.freeze({__proto__:null,get hairlineWidth(){return Ln},create:An});const zn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class Tn extends i.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"number"==typeof e||"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Dt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Dt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,o=[e?zn.contentContainerHorizontal:zn.contentContainerVertical,t],a=e?Object.assign({},zn.baseHorizontal,r):Object.assign({},zn.baseVertical,r);return e&&(a.flexDirection=Nn()?"row-reverse":"row"),i.a.createElement("div",w(w({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),i.a.createElement(cn,{style:o},n))}}const On={modal:{position:"absolute",collapsable:!1}};class jn extends i.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Zt.platform.OS&&(this.eventSubscription=new ye("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Zt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:o}=this.props;if(!1===t)return null;const a={backgroundColor:n?"transparent":"white"};return o||(o="none",r&&(o="slide")),i.a.createElement("div",w({nativeName:"Modal",animationType:o,transparent:n,style:[On.modal,a]},this.props),e)}}jn.defaultProps={visible:!0};class Fn extends i.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}render(){var e,t,n;const{requestFocus:r,children:o,nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=i.a.Children.only(o);let y;(null===(t=null===(e=null==m?void 0:m.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?y=m.child.memoizedProps.nativeName:(null===(n=null==m?void 0:m.type)||void 0===n?void 0:n.displayName)&&(y=m.type.displayName);const g=a&&Mt(a),b=l&&Mt(l),v=s&&Mt(s),k=u&&Mt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=w(w({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return i.a.createElement(cn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:v,nextFocusRightId:k,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:S}=m.memoizedProps;return i.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:S,style:E,onFocus:this.handleFocus})}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}}function Hn(e){return i.a.createElement("iframe",w({title:"hippy",nativeName:"WebView"},e))}let Mn;class Dn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Mn||(Mn=new ye("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=w({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Mn.addCallback(this.onWebSocketEvent),C.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,C.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);C.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Mn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Un(e){return i.a.createElement("li",w({nativeName:"WaterfallItem"},e))}class Bn extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}scrollToIndex({index:e=0,animated:t=!0}){Dt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Dt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{style:t={},renderBanner:n,numberOfColumns:r=2,columnSpacing:o=0,interItemSpacing:a=0,numberOfItems:l=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:f,getItemType:d,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:k,onFooterReleased:S,containPullHeader:C=!1,containPullFooter:x=!1,containBannerView:N=!1}=e,P=w(w({},E(e,b)),{},{style:t,numberOfColumns:r,columnSpacing:o,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:C,containPullFooter:x,containBannerView:N}),I=[];if("function"==typeof n){const e=n();e&&(I.push(i.a.createElement(cn,{key:"bannerView"},i.a.cloneElement(e))),P.containBannerView=!0)}if("function"==typeof u){const e=this.getPullHeader(c,g,v),n=this.getPullFooter(f,k,S);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},P),I)}componentDidMount(){const{getItemKey:e}=this.props}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i.call(this,e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(bn,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(vn,{key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}}e.WebSocket=Dn;const{AsyncStorage:Wn,BackAndroid:Vn,Bridge:$n,Clipboard:qn,Cookie:Qn,Device:Gn,HippyRegister:Kn,ImageLoader:Yn,NetworkInfo:Xn,UIManager:Jn,flushSync:Zn}=tn,{callNative:er,callNativeWithPromise:tr,callNativeWithCallbackId:nr,removeNativeCallback:rr}=$n,ir=null,or=e.ConsoleModule||e.console,ar=Gn.platform,lr=sn,sr=sn,ur=hn,cr=Kn,fr=be,dr=ye,pr={get:e=>Gn[e]},hr={get:()=>Gn.screen.scale}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ /** @license React v0.26.2 * react-reconciler.production.min.js * @@ -29,7 +29,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,P(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var bt=null,vt=null;(0,a.unstable_now)();var wt=0,kt=8;function Et(e){if(0!=(1&e))return kt=15,1;if(0!=(2&e))return kt=14,2;if(0!=(4&e))return kt=13,4;var t=24&e;return 0!==t?(kt=12,t):0!=(32&e)?(kt=11,32):0!==(t=192&e)?(kt=10,t):0!=(256&e)?(kt=9,256):0!==(t=3584&e)?(kt=8,t):0!=(4096&e)?(kt=7,4096):0!==(t=4186112&e)?(kt=6,t):0!==(t=62914560&e)?(kt=5,t):67108864&e?(kt=4,67108864):0!=(134217728&e)?(kt=3,134217728):0!==(t=805306368&e)?(kt=2,t):0!=(1073741824&e)?(kt=1,1073741824):(kt=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return kt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=kt=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=Et(s),i=kt):0!==(l&=o)&&(r=Et(l),i=kt)}else 0!==(o=n&~a)?(r=Et(o),i=kt):0!==l&&(r=Et(l),i=kt);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function Pt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Rt|0)|0},Lt=Math.log,Rt=Math.LN2;var At=a.unstable_runWithPriority,zt=a.unstable_scheduleCallback,Tt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Dt=a.unstable_UserBlockingPriority,Ut=a.unstable_NormalPriority,Wt=a.unstable_LowPriority,Bt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},qt=null,Qt=null,Kt=!1,Gt=Ft(),Yt=1e4>Gt?Ft:function(){return Ft()-Gt};function Xt(){switch(Ht()){case Mt:return 99;case Dt:return 98;case Ut:return 97;case Wt:return 96;case Bt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Dt;case 97:return Ut;case 96:return Wt;case 95:return Bt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),At(e,t)}function en(e,t,n){return e=Jt(e),zt(e,t,n)}function tn(){if(null!==Qt){var e=Qt;Qt=null,Tt(e)}nn()}function nn(){if(!Kt&&null!==qt){Kt=!0;var e=0;try{var t=qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var v=y(i,d,b.value,u);if(null===v){null===d&&(d=h);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v,d=h}if(b.done)return n(i,d),c;if(null===d){for(;!b.done;p++,b=s.next())null!==(b=m(i,b.value,u))&&(a=o(b,a,p),null===f?c=b:f.sibling=b,f=b);return c}for(d=r(i,d);!b.done;p++,b=s.next())null!==(b=g(d,i,p,b.value,u))&&(e&&null!==b.alternate&&d.delete(null===b.key?p:b.key),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===k&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Wa(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Ua(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return b(r,o,s,d);if(I(s))return v(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,P(r.type)||"Component"))}return n(r,o)}}var Dn=Mn(!0),Un=Mn(!1),Wn={},Bn=it(Wn),Vn=it(Wn),$n=it(Wn);function qn(e){if(e===Wn)throw Error(l(174));return e}function Qn(e,t){at($n,t),at(Vn,e),at(Bn,Wn),e=j(t),ot(Bn),at(Bn,e)}function Kn(){ot(Bn),ot(Vn),ot($n)}function Gn(e){var t=qn($n.current),n=qn(Bn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Bn,t))}function Yn(e){Vn.current===e&&(ot(Bn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||De(n)||Ue(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=Be(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=Be(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ke(e)}else er=Zn?Be(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Gr,e=n(r,i)}while(gr)}if(cr.current=qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function kr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function Er(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function Cr(e,t){return"function"==typeof t?t(e):t}function xr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,Eo|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ir(e,t,n){var r=t._getVersion;r=r(t._source);var i=G?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(G?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Pr(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Ir(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Ko(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Io&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Io&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Pi(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Kn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Kn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ri="function"==typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ro||(Ro=!0,Ao=r),Li(0,t)},n}function zi(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===zo?zo=new Set([this]):zo.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var Ti="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ea(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Ie(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(va(n,e),ba(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&In(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}In(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):xe(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?Ce(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Di(e,t){if(vt&&"function"==typeof vt.onCommitFiberUnmount)try{vt.onCommitFiberUnmount(bt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))va(t,n);else{r=t;try{i()}catch(e){Ea(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ea(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Re(t),Te(t,e))}}function Ui(e,t){for(var n=t;;)if(Di(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Wi(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Bi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Bi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(Ee(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Bi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Ui(e,i),r?ke(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Di(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ge(t.containerInfo))));case 12:return;case 13:return Qi(t),void Ki(t);case 19:return void Ki(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return Qi(t),void Ki(t);case 19:return void Ki(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ge(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Te(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function Qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Ki(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ti),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Gi(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==vo&&(vo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ai(0,o,t));break e;case 1:o=s;var k=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===zo||!zo.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,xn(d,zi(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=qr,null===e?qr:e}function sa(){0!==vo&&3!==vo||(vo=4),null===ho||0==(134217727&Eo)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,vo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Ii(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Bo&&(Bo=ko),0===(t=Nt(62914560&~Bo))&&(t=4194304)));var n=Qo();null!==(e=Yo(e,t))&&(Pt(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Gn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:Qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Ei(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),bn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,kn(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,Tn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===v)return 14;if(e===k)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,En(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Qa,findFiberByHostInstance:e.findFiberByHostInstance||Ka,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{bt=t.inject(e),vt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Po(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=Qo(),a=Ko(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Cn(i,t),Go(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; +e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,I(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var bt=null,vt=null;(0,a.unstable_now)();var wt=0,kt=8;function Et(e){if(0!=(1&e))return kt=15,1;if(0!=(2&e))return kt=14,2;if(0!=(4&e))return kt=13,4;var t=24&e;return 0!==t?(kt=12,t):0!=(32&e)?(kt=11,32):0!==(t=192&e)?(kt=10,t):0!=(256&e)?(kt=9,256):0!==(t=3584&e)?(kt=8,t):0!=(4096&e)?(kt=7,4096):0!==(t=4186112&e)?(kt=6,t):0!==(t=62914560&e)?(kt=5,t):67108864&e?(kt=4,67108864):0!=(134217728&e)?(kt=3,134217728):0!==(t=805306368&e)?(kt=2,t):0!=(1073741824&e)?(kt=1,1073741824):(kt=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return kt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=kt=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=Et(s),i=kt):0!==(l&=o)&&(r=Et(l),i=kt)}else 0!==(o=n&~a)?(r=Et(o),i=kt):0!==l&&(r=Et(l),i=kt);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function It(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/At|0)|0},Lt=Math.log,At=Math.LN2;var Rt=a.unstable_runWithPriority,zt=a.unstable_scheduleCallback,Tt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Dt=a.unstable_UserBlockingPriority,Ut=a.unstable_NormalPriority,Bt=a.unstable_LowPriority,Wt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},qt=null,Qt=null,Gt=!1,Kt=Ft(),Yt=1e4>Kt?Ft:function(){return Ft()-Kt};function Xt(){switch(Ht()){case Mt:return 99;case Dt:return 98;case Ut:return 97;case Bt:return 96;case Wt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Dt;case 97:return Ut;case 96:return Bt;case 95:return Wt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),Rt(e,t)}function en(e,t,n){return e=Jt(e),zt(e,t,n)}function tn(){if(null!==Qt){var e=Qt;Qt=null,Tt(e)}nn()}function nn(){if(!Gt&&null!==qt){Gt=!0;var e=0;try{var t=qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var v=y(i,d,b.value,u);if(null===v){null===d&&(d=h);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v,d=h}if(b.done)return n(i,d),c;if(null===d){for(;!b.done;p++,b=s.next())null!==(b=m(i,b.value,u))&&(a=o(b,a,p),null===f?c=b:f.sibling=b,f=b);return c}for(d=r(i,d);!b.done;p++,b=s.next())null!==(b=g(d,i,p,b.value,u))&&(e&&null!==b.alternate&&d.delete(null===b.key?p:b.key),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===k&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ba(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Ua(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return b(r,o,s,d);if(P(s))return v(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,I(r.type)||"Component"))}return n(r,o)}}var Dn=Mn(!0),Un=Mn(!1),Bn={},Wn=it(Bn),Vn=it(Bn),$n=it(Bn);function qn(e){if(e===Bn)throw Error(l(174));return e}function Qn(e,t){at($n,t),at(Vn,e),at(Wn,Bn),e=j(t),ot(Wn),at(Wn,e)}function Gn(){ot(Wn),ot(Vn),ot($n)}function Kn(e){var t=qn($n.current),n=qn(Wn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Wn,t))}function Yn(e){Vn.current===e&&(ot(Wn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||De(n)||Ue(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=We(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=We(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ge(e)}else er=Zn?We(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Kr,e=n(r,i)}while(gr)}if(cr.current=qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function kr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function Er(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function Cr(e,t){return"function"==typeof t?t(e):t}function xr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,Eo|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=K?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(K?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Ir(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Pr(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Go(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Ii(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ai="function"==typeof WeakMap?WeakMap:Map;function Ri(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ao||(Ao=!0,Ro=r),Li(0,t)},n}function zi(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===zo?zo=new Set([this]):zo.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var Ti="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ea(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(va(n,e),ba(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):xe(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?Ce(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Di(e,t){if(vt&&"function"==typeof vt.onCommitFiberUnmount)try{vt.onCommitFiberUnmount(bt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))va(t,n);else{r=t;try{i()}catch(e){Ea(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ea(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Ae(t),Te(t,e))}}function Ui(e,t){for(var n=t;;)if(Di(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Bi(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(Ee(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Ui(e,i),r?ke(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Di(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ke(t.containerInfo))));case 12:return;case 13:return Qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return Qi(t),void Gi(t);case 19:return void Gi(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ke(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Te(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function Qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ti),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==vo&&(vo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ri(0,o,t));break e;case 1:o=s;var k=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===zo||!zo.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,xn(d,zi(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=qr,null===e?qr:e}function sa(){0!==vo&&3!==vo||(vo=4),null===ho||0==(134217727&Eo)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,vo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Wo&&(Wo=ko),0===(t=Nt(62914560&~Wo))&&(t=4194304)));var n=Qo();null!==(e=Yo(e,t))&&(It(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Kn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:Qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Ei(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),bn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,kn(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,Tn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===v)return 14;if(e===k)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,En(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{bt=t.inject(e),vt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=Qo(),a=Go(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Cn(i,t),Ko(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @@ -42,7 +42,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n("./node_modules/object-assign/index.js"),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],P=[],_=1,L=null,R=3,A=!1,z=!1,T=!1;function O(e){for(var t=C(P);null!==t;){if(null===t.callback)x(P);else{if(!(t.startTime<=e))break;x(P),t.sortIndex=t.expirationTime,S(I,t)}t=C(P)}}function j(e){if(T=!1,O(e),!z)if(null!==C(I))z=!0,r(F);else{var t=C(P);null!==t&&i(j,t.startTime-e)}}function F(e,n){z=!1,T&&(T=!1,o()),A=!0;var r=R;try{for(O(n),L=C(I);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,R=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===C(I)&&x(I),O(n)}else x(I);L=C(I)}if(null!==L)var s=!0;else{var u=C(P);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,R=r,A=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){z||A||(z=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return C(I)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(P,e),null===C(I)&&e===C(P)&&(T?o():T=!0,i(j,a-l))):(e.sortIndex=s,S(I,e),z||A||(z=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,b=-1,v=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],_=1,L=null,A=3,R=!1,z=!1,T=!1;function O(e){for(var t=C(I);null!==t;){if(null===t.callback)x(I);else{if(!(t.startTime<=e))break;x(I),t.sortIndex=t.expirationTime,S(P,t)}t=C(I)}}function j(e){if(T=!1,O(e),!z)if(null!==C(P))z=!0,r(F);else{var t=C(I);null!==t&&i(j,t.startTime-e)}}function F(e,n){z=!1,T&&(T=!1,o()),R=!0;var r=A;try{for(O(n),L=C(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,A=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===C(P)&&x(P),O(n)}else x(P);L=C(P)}if(null!==L)var s=!0;else{var u=C(I);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,A=r,R=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){z||R||(z=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(I,e),null===C(P)&&e===C(I)&&(T?o():T=!0,i(j,a-l))):(e.sortIndex=s,S(P,e),z||R||(z=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/driver/js/examples/ios-demo/res/vendor.ios.js b/driver/js/examples/ios-demo/res/vendor.ios.js index 7d46897e5..a19a7e866 100644 --- a/driver/js/examples/ios-demo/res/vendor.ios.js +++ b/driver/js/examples/ios-demo/res/vendor.ios.js @@ -1,7 +1,7 @@ -var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Animated",(function(){return zn})),n.d(t,"Animation",(function(){return Ze})),n.d(t,"AnimationSet",(function(){return it})),n.d(t,"AppRegistry",(function(){return In})),n.d(t,"AsyncStorage",(function(){return lr})),n.d(t,"BackAndroid",(function(){return ur})),n.d(t,"Clipboard",(function(){return cr})),n.d(t,"ConsoleModule",(function(){return Er})),n.d(t,"Dimensions",(function(){return Ar})),n.d(t,"Easing",(function(){return Tn})),n.d(t,"Focusable",(function(){return tr})),n.d(t,"Hippy",(function(){return xr})),n.d(t,"HippyEventEmitter",(function(){return ze})),n.d(t,"HippyEventListener",(function(){return Ae})),n.d(t,"HippyRegister",(function(){return pr})),n.d(t,"Image",(function(){return Rn})),n.d(t,"ImageBackground",(function(){return Ir})),n.d(t,"ImageLoaderModule",(function(){return hr})),n.d(t,"ListView",(function(){return Hn})),n.d(t,"ListViewItem",(function(){return On})),n.d(t,"Modal",(function(){return er})),n.d(t,"Navigator",(function(){return Un})),n.d(t,"NetInfo",(function(){return mr})),n.d(t,"NetworkModule",(function(){return fr})),n.d(t,"PixelRatio",(function(){return Rr})),n.d(t,"Platform",(function(){return Cr})),n.d(t,"PullFooter",(function(){return Fn})),n.d(t,"PullHeader",(function(){return jn})),n.d(t,"RNfqb",(function(){return Nr})),n.d(t,"RNfqbEventEmitter",(function(){return _r})),n.d(t,"RNfqbEventListener",(function(){return Lr})),n.d(t,"RNfqbRegister",(function(){return Pr})),n.d(t,"RefreshWrapper",(function(){return Mn})),n.d(t,"ScrollView",(function(){return Jn})),n.d(t,"StyleSheet",(function(){return Yn})),n.d(t,"Text",(function(){return Ln})),n.d(t,"TextInput",(function(){return qn})),n.d(t,"TimerModule",(function(){return Sr})),n.d(t,"UIManagerModule",(function(){return vr})),n.d(t,"View",(function(){return Pn})),n.d(t,"ViewPager",(function(){return Wn})),n.d(t,"WaterfallView",(function(){return ar})),n.d(t,"WebSocket",(function(){return ir})),n.d(t,"WebView",(function(){return nr})),n.d(t,"callNative",(function(){return gr})),n.d(t,"callNativeWithCallbackId",(function(){return kr})),n.d(t,"callNativeWithPromise",(function(){return br})),n.d(t,"colorParse",(function(){return $e})),n.d(t,"default",(function(){return Nn})),n.d(t,"flushSync",(function(){return yr})),n.d(t,"removeNativeCallback",(function(){return wr}));var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/@hippy/react-reconciler/index.js"),a=n.n(o),l=["children"],u=["collapsable","style"],s=["style"],c=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],f=["children"],d=["children"],p=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],h=["children"],m=["component"],v=["initialRoute"],y=["children","onPageScrollStateChanged"],g=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return o}(e,t)||T(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return o}(e,t)||z(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||e.didTimeout)&&function e(t){"number"==typeof t?ee(t):t&&(ee(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}var ie=0,oe=1,ae=-1,le=1,ue={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},se={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};function ce(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}var fe=new RegExp(/^\d+$/),de=!1;function pe(){}function he(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16))}))}var me=new RegExp("^on.+Capture$");function ve(e){return me.test(e)}var ye=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ge(e){if("number"==typeof e)return e;if("string"==typeof e&&ye.test(e))try{return parseFloat(e)}catch(t){return e}return e}function be(e){return"[object Function]"===Object.prototype.toString.call(e)}function ke(e){e}function we(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}var Se=function(){function e(t){L(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return R(e,[{key:"getEventListeners",value:function(){var e=this;return Object.keys(this.handlerContainer).filter((function(t){return e.handlerContainer[t]})).map((function(t){return e.handlerContainer[t]}))}},{key:"getHandlerSize",value:function(){return Object.keys(this.handlerContainer).length}},{key:"addEventHandler",value:function(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");var n=this.nextIdForHandler;this.nextIdForHandler+=1;var r={id:n,eventHandler:e,context:t},i="eventHandler_".concat(n);return this.handlerContainer[i]=r,n}},{key:"notifyEvent",value:function(e){var t=this;Object.keys(this.handlerContainer).forEach((function(n){var r=t.handlerContainer[n];r&&r.eventHandler&&(r.context?r.eventHandler.call(r.context,e):r.eventHandler(e))}))}},{key:"removeEventHandler",value:function(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");var t="eventHandler_".concat(e);this.handlerContainer[t]&&delete this.handlerContainer[t]}}]),e}(),Ee=function(){function e(t,n,r){L(this,e),this.type=t,this.bubbles=!0,this.timeStamp=Date.now(),this.currentTarget=n,this.target=r}return R(e,[{key:"stopPropagation",value:function(){this.bubbles=!1}},{key:"preventDefault",value:function(){}}]),e}(),Ce=new Map,xe=["%c[event]%c","color: green","color: auto"];function Ne(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function Ie(e,t,n,r,i){var o=!1,a="".concat(e,"Capture"),l=te(r),u=te(n);try{if(Ne(a,n)){var s=new Ee(a,u,l);Object.assign(s,t),n.memoizedProps[a](s),!s.bubbles&&i&&i.stopPropagation()}if(Ne(e,n)){var c=new Ee(e,u,l);Object.assign(c,t),"boolean"!=typeof(o=n.memoizedProps[e](c))&&(o=!de),c.bubbles||(o=!0),!1!==o&&i&&i.stopPropagation()}}catch(e){console.reportUncaughtException(e)}}function Pe(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: ".concat(e));return Ce.get(e)||null}var _e={registerNativeEventHub:function(e){if(pe.apply(void 0,xe.concat(["registerNativeEventHub",e])),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: ".concat(e));var t=Ce.get(e);return t||(t=new Se(e),Ce.set(e,t)),t},getHippyEventHub:Pe,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: ".concat(e));Ce.has(e)&&Ce.delete(e)},receiveNativeEvent:function(e){if(pe.apply(void 0,xe.concat(["receiveNativeEvent",e])),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: ".concat(JSON.stringify(e)));var t=_(e,2),n=t[0],r=t[1];if("string"!=typeof n)throw new TypeError("Invalid arguments for nativeEvent eventName");var i=Pe(n);i&&i.notifyEvent(r)},receiveNativeGesture:function(e,t){if(pe.apply(void 0,xe.concat(["receiveNativeGesture",e])),e){var n=e.id,r=e.currentId,i=e.name,o=ne(r),a=ne(n);if(o&&a)Ie(function(e,t){var n=e;if(t.memoizedProps&&!t.memoizedProps[e])for(var r=Object.keys(ue),i=0;i255?255:t}function De(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ue(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Be(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Ue(i,r,e+1/3),a=Ue(i,r,e),l=Ue(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function We(e){return(parseFloat(e)%360+360)%360/360}function Ve(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function $e(e){if(Number.isInteger(e))return e;var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=He.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(Oe,e)?Oe[e]:(t=He.rgb.exec(e),Array.isArray(t)?(Me(t[1])<<24|Me(t[2])<<16|Me(t[3])<<8|255)>>>0:(t=He.rgba.exec(e))?(Me(t[1])<<24|Me(t[2])<<16|Me(t[3])<<8|De(t[4]))>>>0:(t=He.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=He.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=He.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=He.hsl.exec(e))?(255|Be(We(t[1]),Ve(t[2]),Ve(t[3])))>>>0:(t=He.hsla.exec(e))?(Be(We(t[1]),Ve(t[2]),Ve(t[3]))|De(t[4]))>>>0:null))}(e);return null===t?0:t=(t<<24|t>>>8)>>>0}function qe(e){return Array.isArray(e)?e.map((function(e){return $e(e)})):[0]}function Qe(e){return"loop"===e?-1:e}function Ke(e,t){return"color"===e&&["number","string"].indexOf(j(t))>=0?$e(t):t}var Ge="animationstart",Ye="animationend",Xe="animationcancel",Je="animationrepeat",Ze=function(){function t(n){var r,i;if(L(this,t),(null===(r=n.startValue)||void 0===r?void 0:r.constructor)&&"Animation"===n.startValue.constructor.name)i={animationId:n.startValue.animationId};else{var o=n.startValue;i=Ke(n.valueType,o)}var a=Ke(n.valueType,n.toValue);this.mode=n.mode||"timing",this.delay=n.delay||0,this.startValue=i||0,this.toValue=a||0,this.valueType=n.valueType||void 0,this.duration=n.duration||0,this.direction=n.direction||"center",this.timingFunction=n.timingFunction||"linear",this.repeatCount=Qe(n.repeatCount||0),this.inputRange=n.inputRange||[],this.outputRange=n.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return R(t,[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ge),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ye),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Xe),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(Je)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ge,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ye,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Xe,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Je,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{key:"updateAnimation",value:function(e){var n=this;if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!==j(e))throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach((function(r){var i=e[r];if("startValue"===r){var o;if(e.startValue instanceof t)o={animationId:e.startValue.animationId};else{var a=e.startValue;o=Ke(n.valueType,a)}n.startValue=o||0}else"repeatCount"===r?n.repeatCount=Qe(e.repeatCount||0):Object.defineProperty(n,r,{value:i})})),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:Ke(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}]),t}(),et="animationstart",tt="animationend",nt="animationcancel",rt="animationrepeat",it=function(){function t(n){var r=this;L(this,t),this.animationList=[],null==n||n.children.forEach((function(e){r.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animation=new e.Hippy.AnimationSet({repeatCount:Qe(n.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return R(t,[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(et),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(tt),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(nt),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(rt)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(et,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(tt,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(nt,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(nt,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}]),t}(),ot={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")},at=!0,lt=[];function ut(e){return!!se[e]}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,i=e.name,o=e.type,a=e.listener,l=e.isCapture;r=ut(i)?se[i]:ce(i),o===oe&&t.removeEventListener(n,r,a),o===ie&&t.addEventListener(n,r,a,l)}))}}))}function ct(t){var n=function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]&&arguments[0];if(at)if(at=!1,0!==lt.length){var t=X();e?(ct(t),lt=[],at=!0):Promise.resolve().then((function(){ct(t),lt=[],at=!0}))}else at=!0}function dt(e){var t=e.attributes;t.children;return P(t,l)}function pt(e){var t=void 0,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(t){var i=n[t],o=i.name,a=i.type,l=i.isCapture,u=i.listener;e.isListenerHandled(t,a)||(e.setListenerHandledType(t,a),r.push({name:o,type:a,isCapture:l,listener:u}))})),t={id:e.nodeId,eventList:r}}return t}function ht(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));var i={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,name:t.nativeName,props:N(N({},dt(t)),{},{style:t.style})},o=[i,r],a=pt(t);return[o,a]}function mt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=[],a=[],l=n;return void 0===l&&t&&t.parentNode&&(l=t.parentNode.childNodes.indexOf(t)),t.traverseChildren((function(t,n){var i=_(ht(e,t,n),2),l=i[0],u=i[1];l&&o.push(l),u&&a.push(u),"function"==typeof r&&r(t)}),l,i),[o,a]}function vt(e){return!!F&&e instanceof F.containerInfo.constructor}function yt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e&&t&&!t.meta.skipAddToDom){var i=X(),o=vt(e)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(o||a){var l=mt(i,t,n,(function(e){e.isMounted||(e.isMounted=!0)}),r),u=_(l,2),s=u[0],c=u[1];lt.push({type:ot.createNode,nodes:s,eventNodes:c})}}}function gt(e){if(e.isMounted){var t=_(ht(X(),e),2),n=t[0],r=t[1];n&<.push({type:ot.updateNode,nodes:[n],eventNodes:[r]})}}var bt=0;var kt=function(){function e(){L(this,e),this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=((bt+=1)%10==0&&(bt+=1),bt)}return R(e,[{key:"toString",value:function(){return this.constructor.name}},{key:"isMounted",get:function(){return this.mounted},set:function(e){this.mounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");var n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),yt(this,e,n,{refId:t.nodeId,relativeToRef:ae})}}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");var n=this.childNodes.indexOf(e),r=this.childNodes.indexOf(t);if(r===n)return e;this.childNodes.splice(n,1);var i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e&&t&&!t.meta.skipAddToDom){t.index=n;var i=X(),o=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:i},r]];lt.push({type:ot.moveNode,nodes:o,eventNodes:[]})}}(this,e,r,{refId:t.nodeId,relativeToRef:ae})}}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;var t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),yt(this,e,t+1,n&&{refId:n.nodeId,relativeToRef:le})}}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.meta.skipAddToDom){if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t,n){if(t&&!t.meta.skipAddToDom){t.isMounted=!1,t.index=n;var r=X(),i=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},{}]];lt.push({type:ot.deleteNode,nodes:i,eventNodes:[]})}}(0,e,t)}}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;this.index=this.parentNode?n:0,e(this,r),this.childNodes.length&&this.childNodes.forEach((function(n,r){t.traverseChildren.call(n,e,r,{})}))}}]),e}(),wt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},St={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Et="turn",Ct="rad",xt="deg";function Nt(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=/^([+-]?\d+\.?\d*)+(deg|turn|rad)|(to\w+)$/g.exec(t);if(Array.isArray(n)){var r="180",i=_(n,3),o=i[0],a=i[1],l=i[2];return a&&l?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xt,n=parseFloat(e),r=e||"",i=e.split("."),o=_(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case Et:r="".concat((360*n).toFixed(2));break;case Ct:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,l):o&&void 0!==St[o]&&(r=St[o]),r}}function It(e){var t=_((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:$e(n)}:void 0:{color:$e(n)}}function Pt(e){return ve(e)&&(e=e.replace("Capture","")),ue[e]?ue[e][1]:e}function _t(e){return function(t){var n=t.id,r=t.currentId,i=t.params;if(function(e){return!!se[e]}(e)){var o={id:n,name:e,currentId:r};Object.assign(o,i),_e.receiveNativeGesture(o,t)}else{var a=[r,e,i];_e.receiveUIComponentEvent(a)}}}var Lt=function(e){b(n,e);var t=w(n);function n(e){var r;return L(this,n),(r=t.call(this)).id="",r.style={},r.attributes={},r.events={},r.tagName=e,r}return R(n,[{key:"nativeName",get:function(){return this.meta.component.name}},{key:"toString",value:function(){return"".concat(this.tagName,":(").concat(this.nativeName,")")}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"hasAttribute",value:function(e){return!!this.attributes[e]}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setStyleAttribute",value:function(e){var t=this;this.style={};var n=e;if(!Array.isArray(n)&&Object.hasOwnProperty.call(n,0)){var r=[],i={};Object.keys(n).forEach((function(e){var t;t=e,fe.test(t)?r.push(n[e]):i[e]=n[e]})),n=[].concat(r,[i])}Array.isArray(n)||(n=[n]);var o={};n.forEach((function(e){Array.isArray(e)?e.forEach((function(e){o=N(N({},o),e)})):"object"===j(e)&&e&&(o=N(N({},o),e))})),Object.keys(o).forEach((function(e){var n=o[e];if(Object.prototype.hasOwnProperty.call(wt,e)&&(e=wt[e]),"transform"===e){var r={};if(!Array.isArray(n))throw new TypeError("transform only support array args");n.forEach((function(e){Object.keys(e).forEach((function(t){var n=e[t];n instanceof Ze||n instanceof it?r[t]={animationId:n.animationId}:null===n?r[t]&&delete r[t]:void 0!==n&&(r[t]=n)}))}));var i=Object.keys(r);i.length&&(Array.isArray(t.style.transform)||(t.style.transform=[]),i.forEach((function(e){return t.style.transform.push({[e]:r[e]})})))}else if(null===n&&void 0!==t.style[e])t.style[e]=void 0;else if(n instanceof Ze||n instanceof it)t.style[e]={animationId:n.animationId};else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=qe(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=$e(n);else if("backgroundImage"===e&&n)t.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){var r=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),i=[];n.linearGradient=n.linearGradient||{},r.forEach((function(e,t){if(0===t){var r=Nt(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var o=It(e);o&&i.push(o)}}else{var a=It(e);a&&i.push(a)}})),n.linearGradient.colorStopList=i}else n[e]=we(t);return n}(e,n,t.style);else if("textShadowOffset"===e){var a=n||{},l=a.x,u=void 0===l?0:l,s=a.width,c=void 0===s?0:s,f=a.y,d=void 0===f?0:f,p=a.height,h=void 0===p?0:p;t.style[e]={width:u||c,height:d||h}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?t.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,n,t.style):t.style[e]=n}))}},{key:"setAttributes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.isArray(t)&&t.length>0&&(t.forEach((function(t){if(Array.isArray(t)){var n=_(t,2),r=n[0],i=n[1];e.setAttribute(r,i,{notToNative:!0})}})),gt(this))}},{key:"parseAnimationStyleProp",value:function(e){var t=!1;Object.keys(e).some((function(n){var r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(var i=0;i=0},action:function(){return t===n.id||(n.id=t,function(e){if(e.isMounted){var t=_(mt(X(),e)||{},2),n=t[0],r=t[1];n&<.push({type:ot.updateNode,nodes:n,eventNodes:r})}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=he(t),!1}},{match:function(){return["text"].indexOf(e)>=0},action:function(){return n.attributes[e]=t,!1}},{match:function(){return["style"].indexOf(e)>=0},action:function(){return"object"!==j(t)||null==t||(n.setStyleAttribute(t),!1)}},{match:function(){return!0},action:function(){if("function"==typeof t){var r=Pt(e);n.attributes[r]=t,n.events[r]?n.events[r]&&n.events[r].type!==ie&&(n.events[r].type=ie):n.events[r]={name:r,type:ie,isCapture:ve(e),listener:_t(r)}}else{var i=Pt(e);if(function(e,t){return void 0!==t&&"object"===j(t[e])&&!!t[e]}(i,n.events)&&"function"!=typeof t)return delete n.attributes[i],n.events[i].type=oe,!1;n.attributes[e]=t}return!1}}].some((function(e){return!!e.match()&&(r=e.action(),!0)})),r}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&>(this));var r=this.parseAttributeProp(e,t);if(r)return;this.parseAnimationStyleProp(this.style),!n.notToNative&>(this)}catch(e){}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==t){var r=t,i=e;Object.prototype.hasOwnProperty.call(wt,e)&&(i=wt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?qe(r):i.toLowerCase().indexOf("color")>-1?$e(r):ge(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||gt(this))}else delete this.style[e]}},{key:"setNativeProps",value:function(e){var t=this;if(e){var n=e.style;if(n){var r=n;Object.keys(r).forEach((function(e){t.setStyle(e,r[e],!0)})),gt(this),ft(!0)}}}},{key:"setText",value:function(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=he(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(kt),At=function(e){b(n,e);var t=w(n);function n(){var e;return L(this,n),(e=t.call(this)).documentElement=new Lt("document"),e}return R(n,[{key:"createElement",value:function(e){return new Lt(e)}},{key:"createElementNS",value:function(e,t){return new Lt("".concat(e,":").concat(t))}}]),n}(kt);At.createElement=At.prototype.createElement,At.createElementNS=At.prototype.createElementNS;var Rt=Array.isArray,zt=Object.keys,Tt=Object.prototype.hasOwnProperty;var Ot=setTimeout,jt=clearTimeout,Ft=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){ft(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:Ot,cancelTimeout:jt,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){Z(o,e.nodeId);var a=Object.keys(t||{});if(0!==a.length){var l=a.map((function(e){return[e,t[e]]}));e.setAttributes(l)}},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){var o=n.createElement(e);return Object.keys(t).forEach((function(e){switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}})),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),Z(i,o.nodeId),o},createTextInstance:function(e,t,n,r){var i=t.createElement("p");return i.setAttribute("text",he(e)),i.meta={component:{name:"Text"}},Z(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){var t={style:{display:"none"}};Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){var i={};return Object.keys(n).forEach((function(e){var t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)})),Object.keys(r).forEach((function(e){var t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==j(t)&&"object"==j(n)){var r,i,o,a=Rt(t),l=Rt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var u=t instanceof Date,s=n instanceof Date;if(u!=s)return!1;if(u&&s)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=zt(t);if((i=d.length)!==zt(n).length)return!1;for(r=i;0!=r--;)if(!Tt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}})),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),re(t)},removeChildFromContainer:function(e,t){e.removeChild(t),re(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){var n=N(N({},t),{},{style:N(N({},t.style),{},{display:"flex"})});Object.keys(n).forEach((function(t){return e.setAttribute(t,n[t])}))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){var n=t.children;return"string"==typeof n||"number"==typeof n}return!1}}),Ht=a()(N(N({},Ft),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}}));var Mt=Object.freeze({__proto__:null,getString:function(){return U.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){U.callNative("ClipboardModule","setString",e)}});var Dt=Object.freeze({__proto__:null,getCookies:function(e){return U.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){var r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),U.callNative("network","setCookie",e,t,r)}});function Ut(e){return U.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Bt(e){U.callNative("ImageLoaderModule","prefetch",e)}var Wt,Vt=Object.freeze({__proto__:null,getSize:Ut,prefetch:Bt}),$t=new Map,qt=function(){function e(t,n){L(this,e),this.eventName=t,this.listener=n}return R(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(Qt(this.eventName,this.listener),this.listener=void 0)}}]),e}();function Qt(e,t){if(t instanceof qt)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange"),Wt.listenerSize(n)<=1&&U.callNative("NetInfo","removeListener",n);var r=$t.get(t);r&&(r.remove(),$t.delete(t))}}var Kt=Object.freeze({__proto__:null,addEventListener:function(e,t){var n=e;n&&"change"===n&&(n="networkStatusDidChange"),(Wt=new ze).listenerSize(n)<1&&U.callNative("NetInfo","addListener",n);var r=Wt.addListener(n,(function(e){t(e)}));return $t.set(t,r),new qt(n,t)},removeEventListener:Qt,fetch:function(){return U.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))}}),Gt=W.createNode,Yt=W.updateNode,Xt=W.deleteNode,Jt=W.flushBatch,Zt=W.endBatch,en=W.sendRenderError,tn=function(e){return J((function(t){return t.stateNode&&t.stateNode.nodeId===e}))};function nn(e){if(e instanceof Lt)return e;var t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){for(var n=t.child;n&&!(n.stateNode instanceof Lt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function rn(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=J((function(t){return!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e}));if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){var r=nn(t);return r?r.nodeId:0}return t.nodeId}function on(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=nn(e);i&&(r=i.nodeId,n=i.nativeName)}if(!n)throw new Error("callUIFunction is calling a unnamed component");if(!r)throw new Error("callUIFunction is calling a component have no nodeId");for(var o=arguments.length,a=new Array(o>2?o-2:0),l=2;l0&&void 0!==arguments[0]&&arguments[0];de=e}(u),Y(f,this.rootContainer);var d=i.a.createElement(r,e);return En(d,this.rootContainer,null,c),Cn(this.rootContainer)}}],[{key:"Native",get:function(){return wn}}]),e}();Nn.version="2.2.1";var In={registerComponent:function(e,t){new Nn({appName:e,entryPage:t}).start()}},Pn=function(e){b(n,e);var t=w(n);function n(){var e;return L(this,n),(e=t.apply(this,arguments)).instance=null,e}return R(n,[{key:"setPressed",value:function(e){on(this.instance,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){on(this.instance,"setHotspot",[e,t])}},{key:"render",value:function(){var e=this,t=this.props,n=t.collapsable,r=t.style,o=void 0===r?{}:r,a=P(t,u),l=o,s=a.nativeBackgroundAndroid;return"boolean"==typeof n&&(l.collapsable=n),void 0!==(null==s?void 0:s.color)&&(s.color=$e(s.color)),i.a.createElement("div",N({ref:function(t){e.instance=t},nativeName:"View",style:l},a))}}]),n}(i.a.Component);function _n(e,t){var n=e.style,r=P(e,s),o=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===j(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(o[0].color="#000"):"object"===j(n)&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=he(r.children);else if("number"==typeof r.children)r.text=he(r.children.toString());else if(Array.isArray(r.children)){var a=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");a&&(r.text=he(a),r.children=r.text)}return i.a.createElement("p",N({ref:t,nativeName:"Text",style:o},r))}_n.displayName="Text";var Ln=i.a.forwardRef(_n);Ln.displayName="Text";var An=Object.freeze({__proto__:null,default:Ln}),Rn=function(e){b(n,e);var t=w(n);function n(){return L(this,n),t.apply(this,arguments)}return R(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,o=e.imageRef,a=e.source,l=e.sources,u=e.src,s=e.srcs,f=e.tintColor,d=e.tintColors,p=P(e,c),h=this.getImageUrls({src:u,srcs:s,source:a,sources:l});if(1===h.length){var m=_(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=we(p.defaultSource));var v=N({},n);return this.handleTintColor(v,f,d),p.style=v,t?i.a.createElement(Pn,{style:n},i.a.createElement("img",N(N({},p),{},{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",N(N({},p),{},{nativeName:"Image",alt:"",ref:o}))}},{key:"getImageUrls",value:function(e){var t=e.src,n=e.srcs,r=e.source,i=e.sources,o=[];if("string"==typeof t&&o.push(t),Array.isArray(n)&&(o=[].concat(z(o),z(n))),r)if("string"==typeof r)o.push(r);else if("object"===j(r)&&null!==r){var a=r.uri;a&&o.push(a)}return i&&Array.isArray(i)&&i.forEach((function(e){"string"==typeof e?o.push(e):"object"===j(e)&&null!==e&&e.uri&&o.push(e.uri)})),o.length&&(o=o.map((function(e){return we(e)}))),o}},{key:"handleTintColor",value:function(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}],[{key:"resizeMode",get:function(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}},{key:"getSize",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");var r=Ut(e);return"function"==typeof t&&r.then((function(e){return t(e.width,e.height)})),"function"==typeof n?r.catch(n):r.catch((function(t){"Failed to get size for image: ".concat(e)})),r}}]),n}(i.a.Component);Rn.prefetch=Bt;var zn=function(){function e(){L(this,e),this.Value=e.Value}return R(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new Ze({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();zn.View=Pn,zn.Text=An,zn.Image=Rn;var Tn={step0:function(e){return e>0?1:0},step1:function(e){return e>=1?1:0},linear:function(){return"linear"},ease:function(){return"ease"},quad:function(e){return Math.pow(e,2)},cubic:function(e){return Math.pow(e,3)},poly:function(e){return function(t){return Math.pow(t,e)}},sin:function(e){return 1-Math.cos(e*Math.PI/2)},circle:function(e){return 1-Math.sqrt(1-e*e)},exp:function(e){return Math.pow(2,10*(e-1))},elastic:function(){return"elastic"},back:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(t){return t*t*((e+1)*t-e)}},bounce:function(e){var t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bezier:function(){return"bezier"},in:function(){return"ease-in"},out:function(){return"ease-out"},inOut:function(){return"ease-in-out"}};function On(e){return i.a.createElement("li",N({nativeName:"ListViewItem"},e))}var jn=function(e){b(n,e);var t=w(n);function n(){var e;return L(this,n),(e=t.apply(this,arguments)).instance=null,e}return R(n,[{key:"expandPullHeader",value:function(){on(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){void 0!==e?on(this.instance,"collapsePullHeaderWithOptions",[e]):on(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=P(t,f);return i.a.createElement("div",N({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component),Fn=function(e){b(n,e);var t=w(n);function n(){var e;return L(this,n),(e=t.apply(this,arguments)).instance=null,e}return R(n,[{key:"expandPullFooter",value:function(){on(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){on(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=P(t,d);return i.a.createElement("div",N({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component),Hn=function(e){b(n,e);var t=w(n);function n(e){var r;return L(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(E(r)),r.state={initialListReady:!1},r}return R(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&on(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&on(this.instance,"scrollToContentOffset",[e,t,n])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.style,o=t.renderRow,a=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,s=t.getRowStyle,c=t.getRowKey,f=t.dataSource,d=t.initialListSize,h=t.rowShouldSticky,m=t.onRowLayout,v=t.onHeaderPulling,y=t.onHeaderReleased,g=t.onFooterPulling,b=t.onFooterReleased,k=t.onAppear,w=t.onDisappear,S=t.onWillAppear,E=t.onWillDisappear,C=P(t,p),x=[];if("function"==typeof o){var I=this.state.initialListReady,_=this.props.numberOfRows,L=this.getPullHeader(a,v,y),A=this.getPullFooter(l,g,b);!_&&f&&(_=f.length),I||(_=Math.min(_,d||10));for(var R=function(t){var n={},r=void 0;r=f?o(f[t],null,t):o(t),e.handleRowProps(n,t,{getRowKey:c,getRowStyle:s,getRowType:u,onRowLayout:m,rowShouldSticky:h}),[{func:k,name:"onAppear"},{func:w,name:"onDisappear"},{func:S,name:"onWillAppear"},{func:E,name:"onWillDisappear"}].forEach((function(e){var r=e.func,i=e.name;"function"==typeof r&&(n[i]=function(){r(t)})})),r&&x.push(i.a.createElement(On,N({},n),r))},z=0;z<_;z+=1)R(z);L&&x.unshift(L),A&&x.push(A),"function"==typeof h&&Object.assign(C,{rowShouldSticky:!0});var T=[k,w,S,E];C.exposureEventEnabled=T.some((function(e){return"function"==typeof e})),"ios"===bn.platform.OS&&(C.numberOfRows=x.length),C.initialListSize=d,C.style=N({},r)}return i.a.createElement("ul",N({ref:function(t){e.instance=t},nativeName:"ListView",initialListReady:this.handleInitialListReady},C),x.length?x:n)}},{key:"handleInitialListReady",value:function(){this.setState({initialListReady:!0})}},{key:"getPullHeader",value:function(e,t,n){var r=this,o=null;return"function"==typeof e&&(o=i.a.createElement(jn,{key:"pull-header",ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),o}},{key:"getPullFooter",value:function(e,t,n){var r=this,o=null;return"function"==typeof e&&(o=i.a.createElement(Fn,{key:"pull-footer",ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),o}},{key:"handleRowProps",value:function(e,t,n){var r=n.getRowKey,i=n.getRowStyle,o=n.onRowLayout,a=n.getRowType,l=n.rowShouldSticky;if("function"==typeof r&&(e.key=r(t)),"function"==typeof i&&(e.style=i(t)),"function"==typeof o&&(e.onLayout=function(e){o(e,t)}),"function"==typeof a){var u=a(t);Number.isInteger(u),e.type=u}"function"==typeof l&&(e.sticky=l(t))}}]),n}(i.a.Component);Hn.defaultProps={numberOfRows:0};var Mn=function(e){b(n,e);var t=w(n);function n(e){var r;return L(this,n),(r=t.call(this,e)).instance=null,r.refreshComplected=r.refreshCompleted.bind(E(r)),r}return R(n,[{key:"startRefresh",value:function(){on(this.instance,"startRefresh",null)}},{key:"refreshCompleted",value:function(){on(this.instance,"refreshComplected",null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=P(t,h);return i.a.createElement("div",N({nativeName:"RefreshWrapper",ref:function(t){e.instance=t}},r),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),n)}},{key:"getRefresh",value:function(){var e=this.props.getRefresh;return"function"==typeof e&&e()||null}}]),n}(i.a.Component),Dn=function(){function e(){L(this,e),this.top=null,this.size=0}return R(e,[{key:"push",value:function(e){this.top={data:e,next:this.top},this.size+=1}},{key:"peek",value:function(){return null===this.top?null:this.top.data}},{key:"pop",value:function(){if(null===this.top)return null;var e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}},{key:"clear",value:function(){this.top=null,this.size=0}},{key:"displayAll",value:function(){var e=[];if(null===this.top)return e;for(var t=this.top,n=0,r=this.size;n1&&this.pop({animated:!0})}},{key:"push",value:function(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName])new Nn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),on(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),on(this.instance,"pop",t)}}},{key:"clear",value:function(){this.stack.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.initialRoute,r=(n.component,P(n,m)),o=P(t,v);return o.initialRoute=r,i.a.createElement("div",N({nativeName:"Navigator",ref:function(t){e.instance=t}},o))}}]),n}(i.a.Component);function Bn(e){return i.a.createElement("div",N(N({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Wn=function(e){b(n,e);var t=w(n);function n(e){var r;return L(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(E(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(E(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(E(r)),r}return R(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&on(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&on(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,o=P(t,y),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),i.a.createElement(Bn,N({},t),e)})):a.push(i.a.createElement(Bn,null,n)),"function"==typeof r&&(o.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",N({nativeName:"ViewPager",ref:function(t){e.instance=t}},o),a)}}]),n}(i.a.Component);function Vn(){var e=B.platform.Localization;return!!e&&1===e.direction}var $n={caretColor:"caret-color"},qn=function(e){b(n,e);var t=w(n);function n(e){var r;return L(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r.onChangeText=r.onChangeText.bind(E(r)),r.onKeyboardWillShow=r.onKeyboardWillShow.bind(E(r)),r}return R(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,n=e.autoFocus;this._lastNativeText=t,n&&this.focus()}},{key:"componentWillUnmount",value:function(){this.blur()}},{key:"getValue",value:function(){var e=this;return new Promise((function(t){on(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return on(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){on(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){on(this.instance,"blurTextInput",[])}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}},{key:"clear",value:function(){on(this.instance,"clear",[])}},{key:"render",value:function(){var e=this,t=N({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach((function(n){var r=n,i=e.props[n];"string"==typeof e.props[n]&&($n[n]&&(r=$n[n]),Array.isArray(t.style)?t.style.push({[r]:i}):t.style&&"object"===j(t.style)?t.style[r]=i:t.style={[r]:i},delete t[n])})),Vn()&&(t.style?"object"!==j(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),i.a.createElement("div",N(N({nativeName:"TextInput"},t),{},{ref:function(t){e.instance=t},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}},{key:"onChangeText",value:function(e){var t=this.props.onChangeText;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}},{key:"onKeyboardWillShow",value:function(e){var t=this.props.onKeyboardWillShow;"function"==typeof t&&t(e)}}]),n}(i.a.Component),Qn=bn.window.scale,Kn=Math.round(.4*Qn)/Qn;function Gn(e){return e}0===Kn&&(Kn=1/Qn);var Yn=Object.freeze({__proto__:null,get hairlineWidth(){return Kn},create:Gn}),Xn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}},Jn=function(e){b(n,e);var t=w(n);function n(){var e;return L(this,n),(e=t.apply(this,arguments)).instance=null,e}return R(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"number"==typeof e||"object"===j(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,on(this.instance,"scrollTo",[r,i,o])}},{key:"scrollToWithDuration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;on(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}},{key:"render",value:function(){var e=this,t=this.props,n=t.horizontal,r=t.contentContainerStyle,o=t.children,a=t.style,l=[n?Xn.contentContainerHorizontal:Xn.contentContainerVertical,r],u=n?Object.assign({},Xn.baseHorizontal,a):Object.assign({},Xn.baseVertical,a);return n&&(u.flexDirection=Vn()?"row-reverse":"row"),i.a.createElement("div",N(N({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props),{},{style:u}),i.a.createElement(Pn,{style:l},o))}}]),n}(i.a.Component),Zn={modal:{position:"absolute",collapsable:!1}},er=function(e){b(n,e);var t=w(n);function n(e){var r;return L(this,n),(r=t.call(this,e)).eventSubscription=null,r}return R(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===bn.platform.OS&&(this.eventSubscription=new Ae("modalDismissed"),this.eventSubscription.addCallback((function(t){var n=e.props,r=n.primaryKey,i=n.onDismiss;t.primaryKey===r&&"function"==typeof i&&i()})))}},{key:"componentWillUnmount",value:function(){"ios"===bn.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,o=e.animated,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",o&&(a="slide")),i.a.createElement("div",N({nativeName:"Modal",animationType:a,transparent:r,style:[Zn.modal,l]},this.props),t)}}]),n}(i.a.Component);er.defaultProps={visible:!0};var tr=function(e){b(n,e);var t=w(n);function n(e){var r;L(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(E(r)),r}return R(n,[{key:"render",value:function(){var e,t,n,r,o=this.props,a=o.requestFocus,l=o.children,u=o.nextFocusDownId,s=o.nextFocusUpId,c=o.nextFocusLeftId,f=o.nextFocusRightId,d=o.style,p=o.noFocusStyle,h=o.focusStyle,m=o.onClick,v=this.state.isFocus,y=i.a.Children.only(l);(null===(t=null===(e=null==y?void 0:y.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?r=y.child.memoizedProps.nativeName:(null===(n=null==y?void 0:y.type)||void 0===n?void 0:n.displayName)&&(r=y.type.displayName);var g=u&&rn(u),b=s&&rn(s),k=c&&rn(c),w=f&&rn(f),S=d;if("Text"!==r){var E=y.memoizedProps.style;S=N(N({},S),E)}if(Object.assign(S,v?h:p),"Text"===r)return i.a.createElement(Pn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:k,nextFocusRightId:w,requestFocus:a,style:S,onClick:m,onFocus:this.handleFocus},y);var C=y.memoizedProps.children;return i.a.cloneElement(y,{nextFocusDownId:u,nextFocusUpId:s,nextFocusLeftId:c,nextFocusRightId:f,requestFocus:a,onClick:m,focusable:!0,children:C,style:S,onFocus:this.handleFocus})}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;"function"==typeof t&&t(e),this.state.isFocus!==e.focus&&this.setState({isFocus:e.focus})}}]),n}(i.a.Component);function nr(e){return i.a.createElement("iframe",N({title:"hippy",nativeName:"WebView"},e))}var rr,ir=function(){function e(t,n,r){var i=this;if(L(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),rr||(rr=new Ae("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=N({},r);if(void 0!==n)if(Array.isArray(n)&&n.length>0)o["Sec-WebSocket-Protocol"]=n.join(",");else{if("string"!=typeof n)throw new TypeError("Invalid WebSocket protocols");o["Sec-WebSocket-Protocol"]=n}var a={headers:o,url:t};this.url=t,this.webSocketCallbackId=rr.addCallback(this.onWebSocketEvent),U.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return R(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,U.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(j(e)));U.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.webSocketCallbacks.onOpen=e}},{key:"onclose",set:function(e){this.webSocketCallbacks.onClose=e}},{key:"onerror",set:function(e){this.webSocketCallbacks.onError=e}},{key:"onmessage",set:function(e){this.webSocketCallbacks.onMessage=e}},{key:"onWebSocketEvent",value:function(e){if("object"===j(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,rr.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}();function or(e){return i.a.createElement("li",N({nativeName:"WaterfallItem"},e))}var ar=function(e){b(n,e);var t=w(n);function n(e){var r;return L(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(E(r)),r}return R(n,[{key:"scrollToIndex",value:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;on(this.instance,"scrollToIndex",[n,n,i])}},{key:"scrollToContentOffset",value:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,i=void 0===r?0:r,o=e.animated,a=void 0===o||o;on(this.instance,"scrollToContentOffset",[n,i,a])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=void 0===n?{}:n,o=t.renderBanner,a=t.numberOfColumns,l=void 0===a?2:a,u=t.columnSpacing,s=void 0===u?0:u,c=t.interItemSpacing,f=void 0===c?0:c,d=t.numberOfItems,p=void 0===d?0:d,h=t.preloadItemNumber,m=void 0===h?0:h,v=t.renderItem,y=t.renderPullHeader,b=t.renderPullFooter,k=t.getItemType,w=t.getItemKey,S=t.getItemStyle,E=t.contentInset,C=void 0===E?{top:0,left:0,bottom:0,right:0}:E,x=t.onItemLayout,I=t.onHeaderPulling,_=t.onHeaderReleased,L=t.onFooterPulling,A=t.onFooterReleased,R=t.containPullHeader,z=void 0!==R&&R,T=t.containPullFooter,O=void 0!==T&&T,j=t.containBannerView,F=void 0!==j&&j,H=N(N({},P(t,g)),{},{style:r,numberOfColumns:l,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:C,containPullHeader:z,containPullFooter:O,containBannerView:F}),M=[];if("function"==typeof o){var D=o();D&&(M.push(i.a.createElement(Pn,{key:"bannerView"},i.a.cloneElement(D))),H.containBannerView=!0)}if("function"==typeof v){for(var U=this.getPullHeader(y,I,_),B=this.getPullFooter(b,L,A),W=0;W0||e.didTimeout)&&function e(t){"number"==typeof t?ee(t):t&&(ee(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}var ie=0,oe=1,ae=-1,le=1,ue={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},se={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},ce={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};function fe(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}var de=new RegExp(/^\d+$/),pe=!1;function he(){}function me(){}function ve(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16))}))}var ye=new RegExp("^on.+Capture$");function ge(e){return ye.test(e)}var be=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ke(e){if("number"==typeof e)return e;if("string"==typeof e&&be.test(e))try{return parseFloat(e)}catch(t){return e}return e}function we(e){return"[object Function]"===Object.prototype.toString.call(e)}function Se(e){e}function Ee(){return pe}function Ce(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}var xe=function(){function e(t){A(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return R(e,[{key:"getEventListeners",value:function(){var e=this;return Object.keys(this.handlerContainer).filter((function(t){return e.handlerContainer[t]})).map((function(t){return e.handlerContainer[t]}))}},{key:"getHandlerSize",value:function(){return Object.keys(this.handlerContainer).length}},{key:"addEventHandler",value:function(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");var n=this.nextIdForHandler;this.nextIdForHandler+=1;var r={id:n,eventHandler:e,context:t},i="eventHandler_".concat(n);return this.handlerContainer[i]=r,n}},{key:"notifyEvent",value:function(e){var t=this;Object.keys(this.handlerContainer).forEach((function(n){var r=t.handlerContainer[n];r&&r.eventHandler&&(r.context?r.eventHandler.call(r.context,e):r.eventHandler(e))}))}},{key:"removeEventHandler",value:function(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");var t="eventHandler_".concat(e);this.handlerContainer[t]&&delete this.handlerContainer[t]}}]),e}(),Ne=function(){function e(t,n,r){A(this,e),this.type=t,this.bubbles=!0,this.currentTarget=n,this.target=r}return R(e,[{key:"stopPropagation",value:function(){this.bubbles=!1}},{key:"preventDefault",value:function(){}}]),e}(),Pe=new Map,Ie=["%c[event]%c","color: green","color: auto"];function _e(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function Ae(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: ".concat(e));return Pe.get(e)||null}var Le={registerNativeEventHub:function(e){if(he.apply(void 0,Ie.concat(["registerNativeEventHub",e])),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: ".concat(e));var t=Pe.get(e);return t||(t=new xe(e),Pe.set(e,t)),t},getHippyEventHub:Ae,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: ".concat(e));Pe.has(e)&&Pe.delete(e)},receiveNativeEvent:function(e){if(he.apply(void 0,Ie.concat(["receiveNativeEvent",e])),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: ".concat(JSON.stringify(e)));var t=_(e,2),n=t[0],r=t[1];if("string"!=typeof n)throw new TypeError("Invalid arguments for nativeEvent eventName");var i=Ae(n);i&&i.notifyEvent(r)},receiveComponentEvent:function(e,t){if(he.apply(void 0,Ie.concat(["receiveComponentEvent",e])),e&&t){var n=e.id,r=e.currentId,i=e.nativeName,o=e.originalName,a=e.params,l=ne(r),u=ne(n);if(l&&u)ce[i]?function(e,t,n,r,i,o){try{var a=!1,l=te(r),u=te(n),s=o.eventPhase;if(_e(e,n)&&ge(e)&&[se.AT_TARGET,se.CAPTURING_PHASE].indexOf(s)>-1){var c=new Ne(e,u,l);Object.assign(c,{eventPhase:s},i),n.memoizedProps[e](c),!c.bubbles&&o&&o.stopPropagation()}if(_e(e,n)&&!ge(e)&&[se.AT_TARGET,se.BUBBLING_PHASE].indexOf(s)>-1){var f=new Ne(e,u,l);Object.assign(f,{eventPhase:s},i),"boolean"!=typeof(a=n.memoizedProps[e](f))&&(a=!Ee()),f.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.reportUncaughtException(e)}}(o,0,l,u,a,t):function(e,t,n,r,i,o){var a=!1,l=te(r),u=te(n);try{var s=o.eventPhase;if(_e(e,n)&&!ge(e)&&[se.AT_TARGET,se.BUBBLING_PHASE].indexOf(s)>-1){var c=new Ne(e,u,l);Object.assign(c,{eventPhase:s},i),n.memoizedProps[e](c),a=!Ee(),c.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.reportUncaughtException(e)}}(o,0,l,u,a,t);else me.apply(void 0,Ie.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else me.apply(void 0,Ie.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Le);var Re=function(){function e(t,n){A(this,e),this.callback=t,this.bindListener=n}return R(e,[{key:"remove",value:function(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}]),e}(),Te=function(){function e(t){A(this,e),this.eventName=t,this.listenerIdList=[]}return R(e,[{key:"unregister",value:function(){var e=Le.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for ".concat(this.eventName));for(var t=this.listenerIdList.length,n=0;n255?255:t}function Be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function We(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ve(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=We(i,r,e+1/3),a=We(i,r,e),l=We(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function $e(e){return(parseFloat(e)%360+360)%360/360}function qe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function Qe(e){if(Number.isInteger(e))return e;var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=De.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(Fe,e)?Fe[e]:(t=De.rgb.exec(e),Array.isArray(t)?(Ue(t[1])<<24|Ue(t[2])<<16|Ue(t[3])<<8|255)>>>0:(t=De.rgba.exec(e))?(Ue(t[1])<<24|Ue(t[2])<<16|Ue(t[3])<<8|Be(t[4]))>>>0:(t=De.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=De.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=De.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=De.hsl.exec(e))?(255|Ve($e(t[1]),qe(t[2]),qe(t[3])))>>>0:(t=De.hsla.exec(e))?(Ve($e(t[1]),qe(t[2]),qe(t[3]))|Be(t[4]))>>>0:null))}(e);return null===t?0:t=(t<<24|t>>>8)>>>0}function Ge(e){return Array.isArray(e)?e.map((function(e){return Qe(e)})):[0]}function Ke(e){return"loop"===e?-1:e}function Ye(e,t){return"color"===e&&["number","string"].indexOf(j(t))>=0?Qe(t):t}var Xe="animationstart",Je="animationend",Ze="animationcancel",et="animationrepeat",tt=function(){function t(n){var r,i;if(A(this,t),(null===(r=n.startValue)||void 0===r?void 0:r.constructor)&&"Animation"===n.startValue.constructor.name)i={animationId:n.startValue.animationId};else{var o=n.startValue;i=Ye(n.valueType,o)}var a=Ye(n.valueType,n.toValue);this.mode=n.mode||"timing",this.delay=n.delay||0,this.startValue=i||0,this.toValue=a||0,this.valueType=n.valueType||void 0,this.duration=n.duration||0,this.direction=n.direction||"center",this.timingFunction=n.timingFunction||"linear",this.repeatCount=Ke(n.repeatCount||0),this.inputRange=n.inputRange||[],this.outputRange=n.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return R(t,[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Xe),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Je),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ze),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(et)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Xe,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Je,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ze,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(et,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{key:"updateAnimation",value:function(e){var n=this;if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!==j(e))throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach((function(r){var i=e[r];if("startValue"===r){var o;if(e.startValue instanceof t)o={animationId:e.startValue.animationId};else{var a=e.startValue;o=Ye(n.valueType,a)}n.startValue=o||0}else"repeatCount"===r?n.repeatCount=Ke(e.repeatCount||0):Object.defineProperty(n,r,{value:i})})),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:Ye(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}]),t}(),nt="animationstart",rt="animationend",it="animationcancel",ot="animationrepeat",at=function(){function t(n){var r=this;A(this,t),this.animationList=[],null==n||n.children.forEach((function(e){r.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animation=new e.Hippy.AnimationSet({repeatCount:Ke(n.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return R(t,[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(nt),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(rt),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(it),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(ot)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(nt,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(rt,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(it,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(it,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}]),t}(),lt={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")},ut=!0,st=[];function ct(e){return!!ce[e]}function ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,i=e.name,o=e.type,a=e.listener,l=e.isCapture;r=ct(i)?ce[i]:fe(i),o===oe&&t.removeEventListener(n,r,a),o===ie&&t.addEventListener(n,r,a,l)}))}}))}function dt(t){var n=function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]&&arguments[0];if(ut)if(ut=!1,0!==st.length){var t=X();e?(dt(t),st=[],ut=!0):Promise.resolve().then((function(){dt(t),st=[],ut=!0}))}else ut=!0}function ht(e){var t=e.attributes;t.children;return I(t,l)}function mt(e){var t=void 0,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(t){var i=n[t],o=i.name,a=i.type,l=i.isCapture,u=i.listener;e.isListenerHandled(t,a)||(e.setListenerHandledType(t,a),r.push({name:o,type:a,isCapture:l,listener:u}))})),t={id:e.nodeId,eventList:r}}return t}function vt(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));var i={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,name:t.nativeName,props:N(N({},ht(t)),{},{style:t.style})},o=[i,r],a=mt(t);return[o,a]}function yt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=[],a=[],l=n;return void 0===l&&t&&t.parentNode&&(l=t.parentNode.childNodes.indexOf(t)),t.traverseChildren((function(t,n){var i=_(vt(e,t,n),2),l=i[0],u=i[1];l&&o.push(l),u&&a.push(u),"function"==typeof r&&r(t)}),l,i),[o,a]}function gt(e){return!!F&&e instanceof F.containerInfo.constructor}function bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e&&t&&!t.meta.skipAddToDom){var i=X(),o=gt(e)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(o||a){var l=yt(i,t,n,(function(e){e.isMounted||(e.isMounted=!0)}),r),u=_(l,2),s=u[0],c=u[1];st.push({type:lt.createNode,nodes:s,eventNodes:c})}}}function kt(e){if(e.isMounted){var t=_(vt(X(),e),2),n=t[0],r=t[1];n&&st.push({type:lt.updateNode,nodes:[n],eventNodes:[r]})}}var wt=0;var St=function(){function e(){A(this,e),this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=((wt+=1)%10==0&&(wt+=1),wt)}return R(e,[{key:"toString",value:function(){return this.constructor.name}},{key:"isMounted",get:function(){return this.mounted},set:function(e){this.mounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");var n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),bt(this,e,n,{refId:t.nodeId,relativeToRef:ae})}}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");var n=this.childNodes.indexOf(e),r=this.childNodes.indexOf(t);if(r===n)return e;this.childNodes.splice(n,1);var i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e&&t&&!t.meta.skipAddToDom){t.index=n;var i=X(),o=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:i},r]];st.push({type:lt.moveNode,nodes:o,eventNodes:[]})}}(this,e,r,{refId:t.nodeId,relativeToRef:ae})}}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;var t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),bt(this,e,t+1,n&&{refId:n.nodeId,relativeToRef:le})}}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.meta.skipAddToDom){if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t,n){if(t&&!t.meta.skipAddToDom){t.isMounted=!1,t.index=n;var r=X(),i=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},{}]];st.push({type:lt.deleteNode,nodes:i,eventNodes:[]})}}(0,e,t)}}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;this.index=this.parentNode?n:0,e(this,r),this.childNodes.length&&this.childNodes.forEach((function(n,r){t.traverseChildren.call(n,e,r,{})}))}}]),e}(),Et={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},Ct={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},xt="turn",Nt="rad",Pt="deg";function It(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=/^([+-]?\d+\.?\d*)+(deg|turn|rad)|(to\w+)$/g.exec(t);if(Array.isArray(n)){var r="180",i=_(n,3),o=i[0],a=i[1],l=i[2];return a&&l?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pt,n=parseFloat(e),r=e||"",i=e.split("."),o=_(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case xt:r="".concat((360*n).toFixed(2));break;case Nt:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,l):o&&void 0!==Ct[o]&&(r=Ct[o]),r}}function _t(e){var t=_((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Qe(n)}:void 0:{color:Qe(n)}}function At(e){return ge(e)&&(e=e.replace("Capture","")),ue[e]?ue[e][1]:e}var Lt=function(e){b(n,e);var t=w(n);function n(e){var r;return A(this,n),(r=t.call(this)).id="",r.style={},r.attributes={},r.events={},r.tagName=e,r}return R(n,[{key:"nativeName",get:function(){return this.meta.component.name}},{key:"toString",value:function(){return"".concat(this.tagName,":(").concat(this.nativeName,")")}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"hasAttribute",value:function(e){return!!this.attributes[e]}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setStyleAttribute",value:function(e){var t=this;this.style={};var n=e;if(!Array.isArray(n)&&Object.hasOwnProperty.call(n,0)){var r=[],i={};Object.keys(n).forEach((function(e){var t;t=e,de.test(t)?r.push(n[e]):i[e]=n[e]})),n=[].concat(r,[i])}Array.isArray(n)||(n=[n]);var o={};n.forEach((function(e){Array.isArray(e)?e.forEach((function(e){o=N(N({},o),e)})):"object"===j(e)&&e&&(o=N(N({},o),e))})),Object.keys(o).forEach((function(e){var n=o[e];if(Object.prototype.hasOwnProperty.call(Et,e)&&(e=Et[e]),"transform"===e){var r={};if(!Array.isArray(n))throw new TypeError("transform only support array args");n.forEach((function(e){Object.keys(e).forEach((function(t){var n=e[t];n instanceof tt||n instanceof at?r[t]={animationId:n.animationId}:null===n?r[t]&&delete r[t]:void 0!==n&&(r[t]=n)}))}));var i=Object.keys(r);i.length&&(Array.isArray(t.style.transform)||(t.style.transform=[]),i.forEach((function(e){return t.style.transform.push({[e]:r[e]})})))}else if(null===n&&void 0!==t.style[e])t.style[e]=void 0;else if(n instanceof tt||n instanceof at)t.style[e]={animationId:n.animationId};else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=Ge(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=Qe(n);else if("backgroundImage"===e&&n)t.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){var r=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),i=[];n.linearGradient=n.linearGradient||{},r.forEach((function(e,t){if(0===t){var r=It(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var o=_t(e);o&&i.push(o)}}else{var a=_t(e);a&&i.push(a)}})),n.linearGradient.colorStopList=i}else n[e]=Ce(t);return n}(e,n,t.style);else if("textShadowOffset"===e){var a=n||{},l=a.x,u=void 0===l?0:l,s=a.width,c=void 0===s?0:s,f=a.y,d=void 0===f?0:f,p=a.height,h=void 0===p?0:p;t.style[e]={width:u||c,height:d||h}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?t.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,n,t.style):t.style[e]=n}))}},{key:"setAttributes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.isArray(t)&&t.length>0&&(t.forEach((function(t){if(Array.isArray(t)){var n=_(t,2),r=n[0],i=n[1];e.setAttribute(r,i,{notToNative:!0})}})),kt(this))}},{key:"parseAnimationStyleProp",value:function(e){var t=!1;Object.keys(e).some((function(n){var r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(var i=0;i=0},action:function(){return t===n.id||(n.id=t,function(e){if(e.isMounted){var t=_(yt(X(),e)||{},2),n=t[0],r=t[1];n&&st.push({type:lt.updateNode,nodes:n,eventNodes:r})}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=ve(t),!1}},{match:function(){return["text"].indexOf(e)>=0},action:function(){return n.attributes[e]=t,!1}},{match:function(){return["style"].indexOf(e)>=0},action:function(){return"object"!==j(t)||null==t||(n.setStyleAttribute(t),!1)}},{match:function(){return!0},action:function(){if("function"==typeof t){var r=At(e);n.attributes[r]=t,n.events[e]?n.events[e]&&n.events[e].type!==ie&&(n.events[e].type=ie):n.events[e]={name:r,type:ie,isCapture:ge(e),listener:(o=r,a=e,function(e){var t=e.id,n=e.currentId,r=e.params,i=e.eventPhase,l={id:t,nativeName:o,originalName:a,params:r,currentId:n,eventPhase:i};Le.receiveComponentEvent(l,e)})}}else{var i=At(e);if(function(e,t){return void 0!==t&&"object"===j(t[e])&&!!t[e]}(e,n.events)&&"function"!=typeof t)return delete n.attributes[i],n.events[e].type=oe,!1;n.attributes[e]=t}var o,a;return!1}}].some((function(e){return!!e.match()&&(r=e.action(),!0)})),r}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&kt(this));var r=this.parseAttributeProp(e,t);if(r)return;this.parseAnimationStyleProp(this.style),!n.notToNative&&kt(this)}catch(e){}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==t){var r=t,i=e;Object.prototype.hasOwnProperty.call(Et,e)&&(i=Et[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Ge(r):i.toLowerCase().indexOf("color")>-1?Qe(r):ke(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||kt(this))}else delete this.style[e]}},{key:"setNativeProps",value:function(e){var t=this;if(e){var n=e.style;if(n){var r=n;Object.keys(r).forEach((function(e){t.setStyle(e,r[e],!0)})),kt(this),pt(!0)}}}},{key:"setText",value:function(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ve(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(St),Rt=function(e){b(n,e);var t=w(n);function n(){var e;return A(this,n),(e=t.call(this)).documentElement=new Lt("document"),e}return R(n,[{key:"createElement",value:function(e){return new Lt(e)}},{key:"createElementNS",value:function(e,t){return new Lt("".concat(e,":").concat(t))}}]),n}(St);Rt.createElement=Rt.prototype.createElement,Rt.createElementNS=Rt.prototype.createElementNS;var Tt=Array.isArray,zt=Object.keys,Ot=Object.prototype.hasOwnProperty;var jt=setTimeout,Ft=clearTimeout,Ht=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){pt(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:jt,cancelTimeout:Ft,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){Z(o,e.nodeId);var a=Object.keys(t||{});if(0!==a.length){var l=a.map((function(e){return[e,t[e]]}));e.setAttributes(l)}},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){var o=n.createElement(e);return Object.keys(t).forEach((function(e){switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}})),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),Z(i,o.nodeId),o},createTextInstance:function(e,t,n,r){var i=t.createElement("p");return i.setAttribute("text",ve(e)),i.meta={component:{name:"Text"}},Z(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){var t={style:{display:"none"}};Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){var i={};return Object.keys(n).forEach((function(e){var t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)})),Object.keys(r).forEach((function(e){var t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==j(t)&&"object"==j(n)){var r,i,o,a=Tt(t),l=Tt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var u=t instanceof Date,s=n instanceof Date;if(u!=s)return!1;if(u&&s)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=zt(t);if((i=d.length)!==zt(n).length)return!1;for(r=i;0!=r--;)if(!Ot.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}})),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),re(t)},removeChildFromContainer:function(e,t){e.removeChild(t),re(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){var n=N(N({},t),{},{style:N(N({},t.style),{},{display:"flex"})});Object.keys(n).forEach((function(t){return e.setAttribute(t,n[t])}))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){var n=t.children;return"string"==typeof n||"number"==typeof n}return!1}}),Mt=a()(N(N({},Ht),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}}));var Dt=Object.freeze({__proto__:null,getString:function(){return U.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){U.callNative("ClipboardModule","setString",e)}});var Ut=Object.freeze({__proto__:null,getCookies:function(e){return U.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){var r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),U.callNative("network","setCookie",e,t,r)}});function Bt(e){return U.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Wt(e){U.callNative("ImageLoaderModule","prefetch",e)}var Vt,$t=Object.freeze({__proto__:null,getSize:Bt,prefetch:Wt}),qt=new Map,Qt=function(){function e(t,n){A(this,e),this.eventName=t,this.listener=n}return R(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(Gt(this.eventName,this.listener),this.listener=void 0)}}]),e}();function Gt(e,t){if(t instanceof Qt)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange"),Vt.listenerSize(n)<=1&&U.callNative("NetInfo","removeListener",n);var r=qt.get(t);r&&(r.remove(),qt.delete(t))}}var Kt=Object.freeze({__proto__:null,addEventListener:function(e,t){var n=e;n&&"change"===n&&(n="networkStatusDidChange"),(Vt=new Oe).listenerSize(n)<1&&U.callNative("NetInfo","addListener",n);var r=Vt.addListener(n,(function(e){t(e)}));return qt.set(t,r),new Qt(n,t)},removeEventListener:Gt,fetch:function(){return U.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))}}),Yt=W.createNode,Xt=W.updateNode,Jt=W.deleteNode,Zt=W.flushBatch,en=W.endBatch,tn=W.sendRenderError,nn=function(e){return J((function(t){return t.stateNode&&t.stateNode.nodeId===e}))};function rn(e){if(e instanceof Lt)return e;var t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){for(var n=t.child;n&&!(n.stateNode instanceof Lt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function on(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=J((function(t){return!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e}));if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){var r=rn(t);return r?r.nodeId:0}return t.nodeId}function an(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=rn(e);i&&(r=i.nodeId,n=i.nativeName)}if(!n)throw new Error("callUIFunction is calling a unnamed component");if(!r)throw new Error("callUIFunction is calling a component have no nodeId");for(var o=arguments.length,a=new Array(o>2?o-2:0),l=2;l0&&void 0!==arguments[0]&&arguments[0];pe=e}(u),Y(f,this.rootContainer);var d=i.a.createElement(r,e);return Cn(d,this.rootContainer,null,c),xn(this.rootContainer)}}],[{key:"Native",get:function(){return Sn}}]),e}();Pn.version="2.2.1";var In={registerComponent:function(e,t){new Pn({appName:e,entryPage:t}).start()}},_n=function(e){b(n,e);var t=w(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments)).instance=null,e}return R(n,[{key:"setPressed",value:function(e){an(this.instance,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){an(this.instance,"setHotspot",[e,t])}},{key:"render",value:function(){var e=this,t=this.props,n=t.collapsable,r=t.style,o=void 0===r?{}:r,a=I(t,u),l=o,s=a.nativeBackgroundAndroid;return"boolean"==typeof n&&(l.collapsable=n),void 0!==(null==s?void 0:s.color)&&(s.color=Qe(s.color)),i.a.createElement("div",N({ref:function(t){e.instance=t},nativeName:"View",style:l},a))}}]),n}(i.a.Component);function An(e,t){var n=e.style,r=I(e,s),o=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===j(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(o[0].color="#000"):"object"===j(n)&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=ve(r.children);else if("number"==typeof r.children)r.text=ve(r.children.toString());else if(Array.isArray(r.children)){var a=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");a&&(r.text=ve(a),r.children=r.text)}return i.a.createElement("p",N({ref:t,nativeName:"Text",style:o},r))}An.displayName="Text";var Ln=i.a.forwardRef(An);Ln.displayName="Text";var Rn=Object.freeze({__proto__:null,default:Ln}),Tn=function(e){b(n,e);var t=w(n);function n(){return A(this,n),t.apply(this,arguments)}return R(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,o=e.imageRef,a=e.source,l=e.sources,u=e.src,s=e.srcs,f=e.tintColor,d=e.tintColors,p=I(e,c),h=this.getImageUrls({src:u,srcs:s,source:a,sources:l});if(1===h.length){var m=_(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=Ce(p.defaultSource));var v=N({},n);return this.handleTintColor(v,f,d),p.style=v,t?i.a.createElement(_n,{style:n},i.a.createElement("img",N(N({},p),{},{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",N(N({},p),{},{nativeName:"Image",alt:"",ref:o}))}},{key:"getImageUrls",value:function(e){var t=e.src,n=e.srcs,r=e.source,i=e.sources,o=[];if("string"==typeof t&&o.push(t),Array.isArray(n)&&(o=[].concat(T(o),T(n))),r)if("string"==typeof r)o.push(r);else if("object"===j(r)&&null!==r){var a=r.uri;a&&o.push(a)}return i&&Array.isArray(i)&&i.forEach((function(e){"string"==typeof e?o.push(e):"object"===j(e)&&null!==e&&e.uri&&o.push(e.uri)})),o.length&&(o=o.map((function(e){return Ce(e)}))),o}},{key:"handleTintColor",value:function(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}],[{key:"resizeMode",get:function(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}},{key:"getSize",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");var r=Bt(e);return"function"==typeof t&&r.then((function(e){return t(e.width,e.height)})),"function"==typeof n?r.catch(n):r.catch((function(t){"Failed to get size for image: ".concat(e)})),r}}]),n}(i.a.Component);Tn.prefetch=Wt;var zn=function(){function e(){A(this,e),this.Value=e.Value}return R(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new tt({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();zn.View=_n,zn.Text=Rn,zn.Image=Tn;var On={step0:function(e){return e>0?1:0},step1:function(e){return e>=1?1:0},linear:function(){return"linear"},ease:function(){return"ease"},quad:function(e){return Math.pow(e,2)},cubic:function(e){return Math.pow(e,3)},poly:function(e){return function(t){return Math.pow(t,e)}},sin:function(e){return 1-Math.cos(e*Math.PI/2)},circle:function(e){return 1-Math.sqrt(1-e*e)},exp:function(e){return Math.pow(2,10*(e-1))},elastic:function(){return"elastic"},back:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(t){return t*t*((e+1)*t-e)}},bounce:function(e){var t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bezier:function(){return"bezier"},in:function(){return"ease-in"},out:function(){return"ease-out"},inOut:function(){return"ease-in-out"}};function jn(e){return i.a.createElement("li",N({nativeName:"ListViewItem"},e))}var Fn=function(e){b(n,e);var t=w(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments)).instance=null,e}return R(n,[{key:"expandPullHeader",value:function(){an(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){void 0!==e?an(this.instance,"collapsePullHeaderWithOptions",[e]):an(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=I(t,f);return i.a.createElement("div",N({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component),Hn=function(e){b(n,e);var t=w(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments)).instance=null,e}return R(n,[{key:"expandPullFooter",value:function(){an(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){an(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=I(t,d);return i.a.createElement("div",N({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component),Mn=function(e){b(n,e);var t=w(n);function n(e){var r;return A(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(E(r)),r.state={initialListReady:!1},r}return R(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&an(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&an(this.instance,"scrollToContentOffset",[e,t,n])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.style,o=t.renderRow,a=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,s=t.getRowStyle,c=t.getRowKey,f=t.dataSource,d=t.initialListSize,h=t.rowShouldSticky,m=t.onRowLayout,v=t.onHeaderPulling,y=t.onHeaderReleased,g=t.onFooterPulling,b=t.onFooterReleased,k=t.onAppear,w=t.onDisappear,S=t.onWillAppear,E=t.onWillDisappear,C=I(t,p),x=[];if("function"==typeof o){var P=this.state.initialListReady,_=this.props.numberOfRows,A=this.getPullHeader(a,v,y),L=this.getPullFooter(l,g,b);!_&&f&&(_=f.length),P||(_=Math.min(_,d||10));for(var R=function(t){var n={},r=void 0;r=f?o(f[t],null,t):o(t),e.handleRowProps(n,t,{getRowKey:c,getRowStyle:s,getRowType:u,onRowLayout:m,rowShouldSticky:h}),[{func:k,name:"onAppear"},{func:w,name:"onDisappear"},{func:S,name:"onWillAppear"},{func:E,name:"onWillDisappear"}].forEach((function(e){var r=e.func,i=e.name;"function"==typeof r&&(n[i]=function(){r(t)})})),r&&x.push(i.a.createElement(jn,N({},n),r))},T=0;T<_;T+=1)R(T);A&&x.unshift(A),L&&x.push(L),"function"==typeof h&&Object.assign(C,{rowShouldSticky:!0});var z=[k,w,S,E];C.exposureEventEnabled=z.some((function(e){return"function"==typeof e})),"ios"===kn.platform.OS&&(C.numberOfRows=x.length),C.initialListSize=d,C.style=N({},r)}return i.a.createElement("ul",N({ref:function(t){e.instance=t},nativeName:"ListView",initialListReady:this.handleInitialListReady},C),x.length?x:n)}},{key:"handleInitialListReady",value:function(){this.setState({initialListReady:!0})}},{key:"getPullHeader",value:function(e,t,n){var r=this,o=null;return"function"==typeof e&&(o=i.a.createElement(Fn,{key:"pull-header",ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),o}},{key:"getPullFooter",value:function(e,t,n){var r=this,o=null;return"function"==typeof e&&(o=i.a.createElement(Hn,{key:"pull-footer",ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),o}},{key:"handleRowProps",value:function(e,t,n){var r=n.getRowKey,i=n.getRowStyle,o=n.onRowLayout,a=n.getRowType,l=n.rowShouldSticky;if("function"==typeof r&&(e.key=r(t)),"function"==typeof i&&(e.style=i(t)),"function"==typeof o&&(e.onLayout=function(e){o(e,t)}),"function"==typeof a){var u=a(t);Number.isInteger(u),e.type=u}"function"==typeof l&&(e.sticky=l(t))}}]),n}(i.a.Component);Mn.defaultProps={numberOfRows:0};var Dn=function(e){b(n,e);var t=w(n);function n(e){var r;return A(this,n),(r=t.call(this,e)).instance=null,r.refreshComplected=r.refreshCompleted.bind(E(r)),r}return R(n,[{key:"startRefresh",value:function(){an(this.instance,"startRefresh",null)}},{key:"refreshCompleted",value:function(){an(this.instance,"refreshComplected",null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=I(t,h);return i.a.createElement("div",N({nativeName:"RefreshWrapper",ref:function(t){e.instance=t}},r),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),n)}},{key:"getRefresh",value:function(){var e=this.props.getRefresh;return"function"==typeof e&&e()||null}}]),n}(i.a.Component),Un=function(){function e(){A(this,e),this.top=null,this.size=0}return R(e,[{key:"push",value:function(e){this.top={data:e,next:this.top},this.size+=1}},{key:"peek",value:function(){return null===this.top?null:this.top.data}},{key:"pop",value:function(){if(null===this.top)return null;var e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}},{key:"clear",value:function(){this.top=null,this.size=0}},{key:"displayAll",value:function(){var e=[];if(null===this.top)return e;for(var t=this.top,n=0,r=this.size;n1&&this.pop({animated:!0})}},{key:"push",value:function(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName])new Pn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),an(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),an(this.instance,"pop",t)}}},{key:"clear",value:function(){this.stack.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.initialRoute,r=(n.component,I(n,m)),o=I(t,v);return o.initialRoute=r,i.a.createElement("div",N({nativeName:"Navigator",ref:function(t){e.instance=t}},o))}}]),n}(i.a.Component);function Wn(e){return i.a.createElement("div",N(N({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Vn=function(e){b(n,e);var t=w(n);function n(e){var r;return A(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(E(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(E(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(E(r)),r}return R(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&an(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&an(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,o=I(t,y),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),i.a.createElement(Wn,N({},t),e)})):a.push(i.a.createElement(Wn,null,n)),"function"==typeof r&&(o.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",N({nativeName:"ViewPager",ref:function(t){e.instance=t}},o),a)}}]),n}(i.a.Component);function $n(){var e=B.platform.Localization;return!!e&&1===e.direction}var qn={caretColor:"caret-color"},Qn=function(e){b(n,e);var t=w(n);function n(e){var r;return A(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r.onChangeText=r.onChangeText.bind(E(r)),r.onKeyboardWillShow=r.onKeyboardWillShow.bind(E(r)),r}return R(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,n=e.autoFocus;this._lastNativeText=t,n&&this.focus()}},{key:"componentWillUnmount",value:function(){this.blur()}},{key:"getValue",value:function(){var e=this;return new Promise((function(t){an(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return an(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){an(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){an(this.instance,"blurTextInput",[])}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}},{key:"clear",value:function(){an(this.instance,"clear",[])}},{key:"render",value:function(){var e=this,t=N({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach((function(n){var r=n,i=e.props[n];"string"==typeof e.props[n]&&(qn[n]&&(r=qn[n]),Array.isArray(t.style)?t.style.push({[r]:i}):t.style&&"object"===j(t.style)?t.style[r]=i:t.style={[r]:i},delete t[n])})),$n()&&(t.style?"object"!==j(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),i.a.createElement("div",N(N({nativeName:"TextInput"},t),{},{ref:function(t){e.instance=t},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}},{key:"onChangeText",value:function(e){var t=this.props.onChangeText;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}},{key:"onKeyboardWillShow",value:function(e){var t=this.props.onKeyboardWillShow;"function"==typeof t&&t(e)}}]),n}(i.a.Component),Gn=kn.window.scale,Kn=Math.round(.4*Gn)/Gn;function Yn(e){return e}0===Kn&&(Kn=1/Gn);var Xn=Object.freeze({__proto__:null,get hairlineWidth(){return Kn},create:Yn}),Jn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}},Zn=function(e){b(n,e);var t=w(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments)).instance=null,e}return R(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"number"==typeof e||"object"===j(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,an(this.instance,"scrollTo",[r,i,o])}},{key:"scrollToWithDuration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;an(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}},{key:"render",value:function(){var e=this,t=this.props,n=t.horizontal,r=t.contentContainerStyle,o=t.children,a=t.style,l=[n?Jn.contentContainerHorizontal:Jn.contentContainerVertical,r],u=n?Object.assign({},Jn.baseHorizontal,a):Object.assign({},Jn.baseVertical,a);return n&&(u.flexDirection=$n()?"row-reverse":"row"),i.a.createElement("div",N(N({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props),{},{style:u}),i.a.createElement(_n,{style:l},o))}}]),n}(i.a.Component),er={modal:{position:"absolute",collapsable:!1}},tr=function(e){b(n,e);var t=w(n);function n(e){var r;return A(this,n),(r=t.call(this,e)).eventSubscription=null,r}return R(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===kn.platform.OS&&(this.eventSubscription=new Te("modalDismissed"),this.eventSubscription.addCallback((function(t){var n=e.props,r=n.primaryKey,i=n.onDismiss;t.primaryKey===r&&"function"==typeof i&&i()})))}},{key:"componentWillUnmount",value:function(){"ios"===kn.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,o=e.animated,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",o&&(a="slide")),i.a.createElement("div",N({nativeName:"Modal",animationType:a,transparent:r,style:[er.modal,l]},this.props),t)}}]),n}(i.a.Component);tr.defaultProps={visible:!0};var nr=function(e){b(n,e);var t=w(n);function n(e){var r;A(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(E(r)),r}return R(n,[{key:"render",value:function(){var e,t,n,r,o=this.props,a=o.requestFocus,l=o.children,u=o.nextFocusDownId,s=o.nextFocusUpId,c=o.nextFocusLeftId,f=o.nextFocusRightId,d=o.style,p=o.noFocusStyle,h=o.focusStyle,m=o.onClick,v=this.state.isFocus,y=i.a.Children.only(l);(null===(t=null===(e=null==y?void 0:y.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?r=y.child.memoizedProps.nativeName:(null===(n=null==y?void 0:y.type)||void 0===n?void 0:n.displayName)&&(r=y.type.displayName);var g=u&&on(u),b=s&&on(s),k=c&&on(c),w=f&&on(f),S=d;if("Text"!==r){var E=y.memoizedProps.style;S=N(N({},S),E)}if(Object.assign(S,v?h:p),"Text"===r)return i.a.createElement(_n,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:k,nextFocusRightId:w,requestFocus:a,style:S,onClick:m,onFocus:this.handleFocus},y);var C=y.memoizedProps.children;return i.a.cloneElement(y,{nextFocusDownId:u,nextFocusUpId:s,nextFocusLeftId:c,nextFocusRightId:f,requestFocus:a,onClick:m,focusable:!0,children:C,style:S,onFocus:this.handleFocus})}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;"function"==typeof t&&t(e),this.state.isFocus!==e.focus&&this.setState({isFocus:e.focus})}}]),n}(i.a.Component);function rr(e){return i.a.createElement("iframe",N({title:"hippy",nativeName:"WebView"},e))}var ir,or=function(){function e(t,n,r){var i=this;if(A(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),ir||(ir=new Te("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=N({},r);if(void 0!==n)if(Array.isArray(n)&&n.length>0)o["Sec-WebSocket-Protocol"]=n.join(",");else{if("string"!=typeof n)throw new TypeError("Invalid WebSocket protocols");o["Sec-WebSocket-Protocol"]=n}var a={headers:o,url:t};this.url=t,this.webSocketCallbackId=ir.addCallback(this.onWebSocketEvent),U.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return R(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,U.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(j(e)));U.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.webSocketCallbacks.onOpen=e}},{key:"onclose",set:function(e){this.webSocketCallbacks.onClose=e}},{key:"onerror",set:function(e){this.webSocketCallbacks.onError=e}},{key:"onmessage",set:function(e){this.webSocketCallbacks.onMessage=e}},{key:"onWebSocketEvent",value:function(e){if("object"===j(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,ir.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}();function ar(e){return i.a.createElement("li",N({nativeName:"WaterfallItem"},e))}var lr=function(e){b(n,e);var t=w(n);function n(e){var r;return A(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(E(r)),r}return R(n,[{key:"scrollToIndex",value:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;an(this.instance,"scrollToIndex",[n,n,i])}},{key:"scrollToContentOffset",value:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,i=void 0===r?0:r,o=e.animated,a=void 0===o||o;an(this.instance,"scrollToContentOffset",[n,i,a])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=void 0===n?{}:n,o=t.renderBanner,a=t.numberOfColumns,l=void 0===a?2:a,u=t.columnSpacing,s=void 0===u?0:u,c=t.interItemSpacing,f=void 0===c?0:c,d=t.numberOfItems,p=void 0===d?0:d,h=t.preloadItemNumber,m=void 0===h?0:h,v=t.renderItem,y=t.renderPullHeader,b=t.renderPullFooter,k=t.getItemType,w=t.getItemKey,S=t.getItemStyle,E=t.contentInset,C=void 0===E?{top:0,left:0,bottom:0,right:0}:E,x=t.onItemLayout,P=t.onHeaderPulling,_=t.onHeaderReleased,A=t.onFooterPulling,L=t.onFooterReleased,R=t.containPullHeader,T=void 0!==R&&R,z=t.containPullFooter,O=void 0!==z&&z,j=t.containBannerView,F=void 0!==j&&j,H=N(N({},I(t,g)),{},{style:r,numberOfColumns:l,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:C,containPullHeader:T,containPullFooter:O,containBannerView:F}),M=[];if("function"==typeof o){var D=o();D&&(M.push(i.a.createElement(_n,{key:"bannerView"},i.a.cloneElement(D))),H.containBannerView=!0)}if("function"==typeof v){for(var U=this.getPullHeader(y,P,_),B=this.getPullFooter(b,A,L),W=0;W--u||o[l]!==a[u])return"\n"+o[l].replace(" at new "," at ")}while(1<=l&&0<=u);break}}}finally{tt=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?et(e):""}var rt=[],it=-1;function ot(e){return{current:e}}function at(e){0>it||(e.current=rt[it],rt[it]=null,it--)}function lt(e,t){it++,rt[it]=e.current,e.current=t}var ut={},st=ot(ut),ct=ot(!1),ft=ut;function dt(e,t){var n=e.type.contextTypes;if(!n)return ut;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pt(e){return null!=(e=e.childContextTypes)}function ht(){at(ct),at(st)}function mt(e,t,n){if(st.current!==ut)throw Error(u(168));lt(st,t),lt(ct,n)}function vt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(u(108,_(t)||"Unknown",i));return o({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ut,ft=st.current,lt(st,e),lt(ct,ct.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(u(169));n?(e=vt(e,t,ft),r.__reactInternalMemoizedMergedChildContext=e,at(ct),at(st),lt(st,e)):at(ct),lt(ct,n)}var bt=null,kt=null;(0,l.unstable_now)();var wt=0,St=8;function Et(e){if(0!=(1&e))return St=15,1;if(0!=(2&e))return St=14,2;if(0!=(4&e))return St=13,4;var t=24&e;return 0!==t?(St=12,t):0!=(32&e)?(St=11,32):0!==(t=192&e)?(St=10,t):0!=(256&e)?(St=9,256):0!==(t=3584&e)?(St=8,t):0!=(4096&e)?(St=7,4096):0!==(t=4186112&e)?(St=6,t):0!==(t=62914560&e)?(St=5,t):67108864&e?(St=4,67108864):0!=(134217728&e)?(St=3,134217728):0!==(t=805306368&e)?(St=2,t):0!=(1073741824&e)?(St=1,1073741824):(St=8,e)}function Ct(e,t){var n=e.pendingLanes;if(0===n)return St=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=St=15;else if(0!==(o=134217727&n)){var u=o&~a;0!==u?(r=Et(u),i=St):0!==(l&=o)&&(r=Et(l),i=St)}else 0!==(o=n&~a)?(r=Et(o),i=St):0!==l&&(r=Et(l),i=St);if(0===r)return 0;if(r=n&((0>(r=31-Lt(r))?0:1<n;n++)t.push(e);return t}function _t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Lt(t)]=n}var Lt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(At(e)/Rt|0)|0},At=Math.log,Rt=Math.LN2;var zt=l.unstable_runWithPriority,Tt=l.unstable_scheduleCallback,Ot=l.unstable_cancelCallback,jt=l.unstable_shouldYield,Ft=l.unstable_requestPaint,Ht=l.unstable_now,Mt=l.unstable_getCurrentPriorityLevel,Dt=l.unstable_ImmediatePriority,Ut=l.unstable_UserBlockingPriority,Bt=l.unstable_NormalPriority,Wt=l.unstable_LowPriority,Vt=l.unstable_IdlePriority,$t={},qt=void 0!==Ft?Ft:function(){},Qt=null,Kt=null,Gt=!1,Yt=Ht(),Xt=1e4>Yt?Ht:function(){return Ht()-Yt};function Jt(){switch(Mt()){case Dt:return 99;case Ut:return 98;case Bt:return 97;case Wt:return 96;case Vt:return 95;default:throw Error(u(332))}}function Zt(e){switch(e){case 99:return Dt;case 98:return Ut;case 97:return Bt;case 96:return Wt;case 95:return Vt;default:throw Error(u(332))}}function en(e,t){return e=Zt(e),zt(e,t)}function tn(e,t,n){return e=Zt(e),Tt(e,t,n)}function nn(){if(null!==Kt){var e=Kt;Kt=null,Ot(e)}rn()}function rn(){if(!Gt&&null!==Qt){Gt=!0;var e=0;try{var t=Qt;en(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(t,f,l[d],u);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&n(t,f),o=a(h,o,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===l.length)return r(t,f),s;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(t,d,m.value,s);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&n(t,d),o=a(b,o,p),null===f?c=b:f.sibling=b,f=b,d=h}if(m.done)return r(t,d),c;if(null===d){for(;!m.done;p++,m=l.next())null!==(m=v(t,m.value,s))&&(o=a(m,o,p),null===f?c=m:f.sibling=m,f=m);return c}for(d=i(t,d);!m.done;p++,m=l.next())null!==(m=g(d,t,p,m.value,s))&&(e&&null!==m.alternate&&d.delete(null===m.key?p:m.key),o=a(m,o,p),null===f?c=m:f.sibling=m,f=m);return e&&d.forEach((function(e){return n(t,e)})),c}return function e(i,a,s,p){var h="object"===t(s)&&null!==s&&s.type===d&&null===s.key;h&&(s=s.props.children);var m="object"===t(s)&&null!==s;if(m)switch(s.$$typeof){case c:e:{for(m=s.key,h=a;null!==h;){if(h.key===m){switch(h.tag){case 7:if(s.type===d){r(i,h.sibling),(a=o(h,s.props.children)).return=i,i=a;break e}break;case 22:if((m=s.type).$$typeof===w&&(m=Mn(m)),m.$$typeof===S&&m._render===h.type._render){r(i,h.sibling),(a=o(h,s.props)).type=m,a.return=i,i=a;break e}default:if(h.elementType===s.type){r(i,h.sibling),(a=o(h,s.props)).ref=Fn(i,h,s),a.return=i,i=a;break e}}r(i,h);break}n(i,h),h=h.sibling}s.type===d?((a=Ma(s.props.children,i.mode,p,s.key)).return=i,i=a):((p=Ha(s.type,s.key,s.props,null,i.mode,p)).ref=Fn(i,a,s),p.return=i,i=p)}return l(i);case f:e:{for(h=s.key;null!==a;){if(a.key===h){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(i,a.sibling),(a=o(a,s.children||[])).return=i,i=a;break e}r(i,a);break}n(i,a),a=a.sibling}(a=Ba(s,i.mode,p)).return=i,i=a}return l(i);case w:return e(i,a,(h=s._init)(s._payload),p)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==a&&6===a.tag?(r(i,a.sibling),(a=o(a,s)).return=i,i=a):(r(i,a),(a=Ua(s,i.mode,p)).return=i,i=a),l(i);if(jn(s))return b(i,a,s,p);if(P(s))return k(i,a,s,p);if(m&&Hn(i,s),void 0===s&&!h)switch(i.tag){case 1:case 22:case 0:case 11:case 15:throw Error(u(152,_(i.type)||"Component"))}return r(i,a)}}var Un=Dn(!0),Bn=Dn(!1),Wn={},Vn=ot(Wn),$n=ot(Wn),qn=ot(Wn);function Qn(e){if(e===Wn)throw Error(u(174));return e}function Kn(e,t){lt(qn,t),lt($n,e),lt(Vn,Wn),e=F(t),at(Vn),lt(Vn,e)}function Gn(){at(Vn),at($n),at(qn)}function Yn(e){var t=Qn(qn.current),n=Qn(Vn.current);n!==(t=H(n,e.type,t))&&(lt($n,e),lt(Vn,t))}function Xn(e){$n.current===e&&(at(Vn),at($n))}var Jn=ot(0);function Zn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ue(n)||Be(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var er=null,tr=null,nr=!1;function rr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ir(e,t){switch(e.tag){case 5:return null!==(t=He(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=Me(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=De(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function or(e){if(nr){var t=tr;if(t){var n=t;if(!ir(e,t)){if(!(t=Ve(n))||!ir(e,t))return e.flags=-1025&e.flags|2,nr=!1,void(er=e);rr(er,n)}er=e,tr=$e(t)}else e.flags=-1025&e.flags|2,nr=!1,er=e}}function ar(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;er=e}function lr(e){if(!Z||e!==er)return!1;if(!nr)return ar(e),nr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$(t,e.memoizedProps))for(t=tr;t;)rr(e,t),t=Ve(t);if(ar(e),13===e.tag){if(!Z)throw Error(u(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(u(317));tr=Ge(e)}else tr=er?Ve(e.stateNode):null;return!0}function ur(){Z&&(tr=er=null,nr=!1)}var sr=[];function cr(){for(var e=0;eo))throw Error(u(301));o+=1,vr=mr=null,t.updateQueue=null,fr.current=Yr,e=n(r,i)}while(gr)}if(fr.current=Qr,t=null!==mr&&null!==mr.next,pr=0,vr=mr=hr=null,yr=!1,t)throw Error(u(300));return e}function Sr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function Er(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vr?hr.memoizedState=vr=e:vr=vr.next=e,vr}function Cr(){if(null===mr){var e=hr.alternate;e=null!==e?e.memoizedState:null}else e=mr.next;var t=null===vr?hr.memoizedState:vr.next;if(null!==t)vr=t,mr=e;else{if(null===e)throw Error(u(310));e={memoizedState:(mr=e).memoizedState,baseState:mr.baseState,baseQueue:mr.baseQueue,queue:mr.queue,next:null},null===vr?hr.memoizedState=vr=e:vr=vr.next=e}return vr}function xr(e,t){return"function"==typeof t?t(e):t}function Nr(e){var t=Cr(),n=t.queue;if(null===n)throw Error(u(311));n.lastRenderedReducer=e;var r=mr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=a=o=null,s=i;do{var c=s.lane;if((pr&c)===c)null!==l&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===l?(a=l=f,o=r):l=l.next=f,hr.lanes|=c,So|=c}s=s.next}while(null!==s&&s!==i);null===l?o=r:l.next=a,an(r,t.memoizedState)||(Jr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Ir(e){var t=Cr(),n=t.queue;if(null===n)throw Error(u(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);an(o,t.memoizedState)||(Jr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=Y?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(pr&e)===e)&&(Y?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(u(350))}function _r(e,t,n,r){var i=ho;if(null===i)throw Error(u(349));var o=t._getVersion,a=o(t._source),l=fr.current,s=l.useState((function(){return Pr(i,t,n)})),c=s[1],f=s[0];s=vr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=hr;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!an(a,e)){e=n(t._source),an(f,e)||(c(e),e=Ko(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),en(97Io&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Zn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!nr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Xt()-r.renderingStartTime>Io&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Xt(),e.sibling=null,t=Jn.current,lt(Jn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(u(156,t.tag))}function Pi(e){switch(e.tag){case 1:pt(e.type)&&ht();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),at(ct),at(st),cr(),0!=(64&(t=e.flags)))throw Error(u(285));return e.flags=-4097&t|64,e;case 5:return Xn(e),null;case 13:if(at(Jn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(u(340));ur()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return at(Jn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ai="function"==typeof WeakMap?WeakMap:Map;function Ri(e,t,n){(n=Cn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ao||(Ao=!0,Ro=r),Li(0,t)},n}function zi(e,t,n){(n=Cn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===zo?zo=new Set([this]):zo.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var Ti="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Sa(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:cn(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(X&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(u(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),ga(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:cn(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=j(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(Z&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Xe(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(u(163))}function Mi(e,t){if(X)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Ce(r):Ne(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?xe(r):Ie(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Di(e,t){if(kt&&"function"==typeof kt.onCommitFiberUnmount)try{kt.onCommitFiberUnmount(bt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){Sa(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Sa(t,e)}break;case 5:Oi(t);break;case 4:X?$i(e,t):J&&J&&(t=t.stateNode.containerInfo,e=Re(t),Oe(t,e))}}function Ui(e,t){for(var n=t;;)if(Di(e,n),null===n.child||X&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Bi(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(X){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(u(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(u(161))}16&n.flags&&(Ee(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ke(r,t,n):me(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(u(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Ui(e,i),r?Se(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Ze(n,i.stateNode):Je(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Di(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function qi(e,t){if(X){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(u(162));return n=t.memoizedProps,void ve(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(Z&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ye(t.containerInfo))));case 12:return;case 13:return Qi(t),void Ki(t);case 19:return void Ki(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(u(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return Qi(t),void Ki(t);case 19:return void Ki(t);case 3:Z&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ye(n.containerInfo)));break;case 23:case 24:return}e:if(J){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Oe(t.containerInfo,t.pendingChildren);break e}throw Error(u(163))}}function Qi(e){null!==e.memoizedState&&(No=Xt(),X&&Mi(e.child,!0))}function Ki(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ti),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Gi(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=ee(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(u(364));return t}if(null===(e=le(e)))throw Error(u(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(u(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Xt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*uo(n/1960))-n)){e.timeoutHandle=Q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(u(329))}}return Xo(e,Xt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~Eo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,u),p=l;do{switch(p.tag){case 3:a=s,p.flags|=4096,n&=-n,p.lanes|=n,Nn(p,Ri(0,a,n));break e;case 1:a=s;var S=p.type,E=p.stateNode;if(0==(64&p.flags)&&("function"==typeof S.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===zo||!zo.has(E)))){p.flags|=4096,n&=-n,p.lanes|=n,Nn(p,zi(p,a,n));break e}}p=p.return}while(null!==p)}pa(r)}catch(e){n=e,mo===r&&null!==r&&(mo=r=r.return);continue}break}}function la(){var e=so.current;return so.current=Qr,null===e?Qr:e}function ua(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&So)&&0==(134217727&Eo)||Zo(ho,vo)}function sa(e,t){var n=po;po|=16;var r=la();for(ho===e&&vo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(mn(),po=n,so.current=r,null!==mo)throw Error(u(261));return ho=null,vo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!jt();)da(mo)}function da(e){var t=_o(e.alternate,e,yo);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Ii(n,t,yo)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&yo)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Xt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Jt()?1:2:(0===Wo&&(Wo=wo),0===(t=It(62914560&~Wo))&&(t=4194304)));var n=Qo();null!==(e=Yo(e,t))&&(_t(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,n,r){var i=n.lanes;if(null!==e)if(e.memoizedProps!==n.pendingProps||ct.current)Jr=!0;else{if(0==(r&i)){switch(Jr=!1,n.tag){case 3:si(n),ur();break;case 5:Yn(n);break;case 1:pt(n.type)&&yt(n);break;case 4:Kn(n,n.stateNode.containerInfo);break;case 10:vn(n,n.memoizedProps.value);break;case 13:if(null!==(i=n.memoizedState))return null!==i.dehydrated?(lt(Jn,1&Jn.current),n.flags|=64,null):0!=(r&n.child.childLanes)?mi(e,n,r):(lt(Jn,1&Jn.current),null!==(n=Ci(e,n,r))?n.sibling:null);lt(Jn,1&Jn.current);break;case 19:if(i=0!=(r&n.childLanes),0!=(64&e.flags)){if(i)return Ei(e,n,r);n.flags|=64}var o=n.memoizedState;if(null!==o&&(o.rendering=null,o.tail=null,o.lastEffect=null),lt(Jn,Jn.current),i)break;return null;case 23:case 24:return n.lanes=0,ri(e,n,r)}return Ci(e,n,r)}Jr=0!=(16384&e.flags)}else Jr=!1;switch(n.lanes=0,n.tag){case 2:if(i=n.type,null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,o=dt(n,st.current),bn(n,r),o=wr(null,n,i,e,o,r),n.flags|=1,"object"===t(o)&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,pt(i)){var a=!0;yt(n)}else a=!1;n.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Sn(n);var l=i.getDerivedStateFromProps;"function"==typeof l&&Ln(n,i,l,e),o.updater=An,n.stateNode=o,o._reactInternals=n,On(n,i,e,r),n=ui(null,n,i,!0,a,r)}else n.tag=0,Zr(null,n,o,r),n=n.child;return n;case 16:o=n.elementType;e:{switch(null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,o=(a=o._init)(o._payload),n.type=o,a=n.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===k)return 14;if(e===S)return 22}return 2}(o),l=cn(o,e),a){case 0:n=oi(null,n,o,l,r);break e;case 1:n=li(null,n,o,l,r);break e;case 11:n=ei(null,n,o,l,r);break e;case 14:n=ti(null,n,o,cn(o.type,l),i,r);break e;case 22:n=ai(null,n,o,e,r);break e}throw Error(u(306,o,""))}return n;case 0:return i=n.type,o=n.pendingProps,oi(e,n,i,o=n.elementType===i?o:cn(i,o),r);case 1:return i=n.type,o=n.pendingProps,li(e,n,i,o=n.elementType===i?o:cn(i,o),r);case 3:if(si(n),i=n.updateQueue,null===e||null===i)throw Error(u(282));if(i=n.pendingProps,o=null!==(o=n.memoizedState)?o.element:null,En(e,n),In(n,i,null,r),(i=n.memoizedState.element)===o)ur(),n=Ci(e,n,r);else{if((a=(o=n.stateNode).hydrate)&&(Z?(tr=$e(n.stateNode.containerInfo),er=n,a=nr=!0):a=!1),a){if(Z&&null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==s.width||pa)){d>o&&(s.height+=d-o,s.y=o),pi)){c>r&&(s.width+=c-r,s.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},i.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return j(e.child.stateNode);default:return e.child.stateNode}},i.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Qa,findFiberByHostInstance:e.findFiberByHostInstance||Ka,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{bt=t.inject(e),kt=t}catch(e){}e=!0}return e},i.observeVisibleRects=function(e,t,n,r){if(!ae)throw Error(u(363));e=ao(e,t);var i=pe(e,n,r).disconnect;return{disconnect:function(){i()}}},i.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},i.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},i.shouldSuspend=function(){return!1},i.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Po(),nn())}},i.updateContainer=function(e,t,n,r){var i=t.current,o=Qo(),a=Ko(i);e:if(n){t:{if(L(n=n._reactInternals)!==n||1!==n.tag)throw Error(u(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(pt(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(u(171))}if(1===n.tag){var s=n.type;if(pt(s)){n=vt(n,s,l);break e}}n=l}else n=ut;return null===t.context?t.context=n:t.pendingContext=n,(t=Cn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),xn(i,t),Go(i,a,o),a},i}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; + */e.exports=function(r){var i={},o=n("./node_modules/object-assign/index.js"),a=n("./node_modules/react/index.js"),l=n("./node_modules/scheduler/index.js");function u(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--u||o[l]!==a[u])return"\n"+o[l].replace(" at new "," at ")}while(1<=l&&0<=u);break}}}finally{tt=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?et(e):""}var rt=[],it=-1;function ot(e){return{current:e}}function at(e){0>it||(e.current=rt[it],rt[it]=null,it--)}function lt(e,t){it++,rt[it]=e.current,e.current=t}var ut={},st=ot(ut),ct=ot(!1),ft=ut;function dt(e,t){var n=e.type.contextTypes;if(!n)return ut;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pt(e){return null!=(e=e.childContextTypes)}function ht(){at(ct),at(st)}function mt(e,t,n){if(st.current!==ut)throw Error(u(168));lt(st,t),lt(ct,n)}function vt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(u(108,_(t)||"Unknown",i));return o({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ut,ft=st.current,lt(st,e),lt(ct,ct.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(u(169));n?(e=vt(e,t,ft),r.__reactInternalMemoizedMergedChildContext=e,at(ct),at(st),lt(st,e)):at(ct),lt(ct,n)}var bt=null,kt=null;(0,l.unstable_now)();var wt=0,St=8;function Et(e){if(0!=(1&e))return St=15,1;if(0!=(2&e))return St=14,2;if(0!=(4&e))return St=13,4;var t=24&e;return 0!==t?(St=12,t):0!=(32&e)?(St=11,32):0!==(t=192&e)?(St=10,t):0!=(256&e)?(St=9,256):0!==(t=3584&e)?(St=8,t):0!=(4096&e)?(St=7,4096):0!==(t=4186112&e)?(St=6,t):0!==(t=62914560&e)?(St=5,t):67108864&e?(St=4,67108864):0!=(134217728&e)?(St=3,134217728):0!==(t=805306368&e)?(St=2,t):0!=(1073741824&e)?(St=1,1073741824):(St=8,e)}function Ct(e,t){var n=e.pendingLanes;if(0===n)return St=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=St=15;else if(0!==(o=134217727&n)){var u=o&~a;0!==u?(r=Et(u),i=St):0!==(l&=o)&&(r=Et(l),i=St)}else 0!==(o=n&~a)?(r=Et(o),i=St):0!==l&&(r=Et(l),i=St);if(0===r)return 0;if(r=n&((0>(r=31-At(r))?0:1<n;n++)t.push(e);return t}function _t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-At(t)]=n}var At=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Rt|0)|0},Lt=Math.log,Rt=Math.LN2;var Tt=l.unstable_runWithPriority,zt=l.unstable_scheduleCallback,Ot=l.unstable_cancelCallback,jt=l.unstable_shouldYield,Ft=l.unstable_requestPaint,Ht=l.unstable_now,Mt=l.unstable_getCurrentPriorityLevel,Dt=l.unstable_ImmediatePriority,Ut=l.unstable_UserBlockingPriority,Bt=l.unstable_NormalPriority,Wt=l.unstable_LowPriority,Vt=l.unstable_IdlePriority,$t={},qt=void 0!==Ft?Ft:function(){},Qt=null,Gt=null,Kt=!1,Yt=Ht(),Xt=1e4>Yt?Ht:function(){return Ht()-Yt};function Jt(){switch(Mt()){case Dt:return 99;case Ut:return 98;case Bt:return 97;case Wt:return 96;case Vt:return 95;default:throw Error(u(332))}}function Zt(e){switch(e){case 99:return Dt;case 98:return Ut;case 97:return Bt;case 96:return Wt;case 95:return Vt;default:throw Error(u(332))}}function en(e,t){return e=Zt(e),Tt(e,t)}function tn(e,t,n){return e=Zt(e),zt(e,t,n)}function nn(){if(null!==Gt){var e=Gt;Gt=null,Ot(e)}rn()}function rn(){if(!Kt&&null!==Qt){Kt=!0;var e=0;try{var t=Qt;en(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(t,f,l[d],u);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&n(t,f),o=a(h,o,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===l.length)return r(t,f),s;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(t,d,m.value,s);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&n(t,d),o=a(b,o,p),null===f?c=b:f.sibling=b,f=b,d=h}if(m.done)return r(t,d),c;if(null===d){for(;!m.done;p++,m=l.next())null!==(m=v(t,m.value,s))&&(o=a(m,o,p),null===f?c=m:f.sibling=m,f=m);return c}for(d=i(t,d);!m.done;p++,m=l.next())null!==(m=g(d,t,p,m.value,s))&&(e&&null!==m.alternate&&d.delete(null===m.key?p:m.key),o=a(m,o,p),null===f?c=m:f.sibling=m,f=m);return e&&d.forEach((function(e){return n(t,e)})),c}return function e(i,a,s,p){var h="object"===t(s)&&null!==s&&s.type===d&&null===s.key;h&&(s=s.props.children);var m="object"===t(s)&&null!==s;if(m)switch(s.$$typeof){case c:e:{for(m=s.key,h=a;null!==h;){if(h.key===m){switch(h.tag){case 7:if(s.type===d){r(i,h.sibling),(a=o(h,s.props.children)).return=i,i=a;break e}break;case 22:if((m=s.type).$$typeof===w&&(m=Mn(m)),m.$$typeof===S&&m._render===h.type._render){r(i,h.sibling),(a=o(h,s.props)).type=m,a.return=i,i=a;break e}default:if(h.elementType===s.type){r(i,h.sibling),(a=o(h,s.props)).ref=Fn(i,h,s),a.return=i,i=a;break e}}r(i,h);break}n(i,h),h=h.sibling}s.type===d?((a=Ma(s.props.children,i.mode,p,s.key)).return=i,i=a):((p=Ha(s.type,s.key,s.props,null,i.mode,p)).ref=Fn(i,a,s),p.return=i,i=p)}return l(i);case f:e:{for(h=s.key;null!==a;){if(a.key===h){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(i,a.sibling),(a=o(a,s.children||[])).return=i,i=a;break e}r(i,a);break}n(i,a),a=a.sibling}(a=Ba(s,i.mode,p)).return=i,i=a}return l(i);case w:return e(i,a,(h=s._init)(s._payload),p)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==a&&6===a.tag?(r(i,a.sibling),(a=o(a,s)).return=i,i=a):(r(i,a),(a=Ua(s,i.mode,p)).return=i,i=a),l(i);if(jn(s))return b(i,a,s,p);if(I(s))return k(i,a,s,p);if(m&&Hn(i,s),void 0===s&&!h)switch(i.tag){case 1:case 22:case 0:case 11:case 15:throw Error(u(152,_(i.type)||"Component"))}return r(i,a)}}var Un=Dn(!0),Bn=Dn(!1),Wn={},Vn=ot(Wn),$n=ot(Wn),qn=ot(Wn);function Qn(e){if(e===Wn)throw Error(u(174));return e}function Gn(e,t){lt(qn,t),lt($n,e),lt(Vn,Wn),e=F(t),at(Vn),lt(Vn,e)}function Kn(){at(Vn),at($n),at(qn)}function Yn(e){var t=Qn(qn.current),n=Qn(Vn.current);n!==(t=H(n,e.type,t))&&(lt($n,e),lt(Vn,t))}function Xn(e){$n.current===e&&(at(Vn),at($n))}var Jn=ot(0);function Zn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ue(n)||Be(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var er=null,tr=null,nr=!1;function rr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ir(e,t){switch(e.tag){case 5:return null!==(t=He(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=Me(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=De(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function or(e){if(nr){var t=tr;if(t){var n=t;if(!ir(e,t)){if(!(t=Ve(n))||!ir(e,t))return e.flags=-1025&e.flags|2,nr=!1,void(er=e);rr(er,n)}er=e,tr=$e(t)}else e.flags=-1025&e.flags|2,nr=!1,er=e}}function ar(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;er=e}function lr(e){if(!Z||e!==er)return!1;if(!nr)return ar(e),nr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$(t,e.memoizedProps))for(t=tr;t;)rr(e,t),t=Ve(t);if(ar(e),13===e.tag){if(!Z)throw Error(u(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(u(317));tr=Ke(e)}else tr=er?Ve(e.stateNode):null;return!0}function ur(){Z&&(tr=er=null,nr=!1)}var sr=[];function cr(){for(var e=0;eo))throw Error(u(301));o+=1,vr=mr=null,t.updateQueue=null,fr.current=Yr,e=n(r,i)}while(gr)}if(fr.current=Qr,t=null!==mr&&null!==mr.next,pr=0,vr=mr=hr=null,yr=!1,t)throw Error(u(300));return e}function Sr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function Er(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vr?hr.memoizedState=vr=e:vr=vr.next=e,vr}function Cr(){if(null===mr){var e=hr.alternate;e=null!==e?e.memoizedState:null}else e=mr.next;var t=null===vr?hr.memoizedState:vr.next;if(null!==t)vr=t,mr=e;else{if(null===e)throw Error(u(310));e={memoizedState:(mr=e).memoizedState,baseState:mr.baseState,baseQueue:mr.baseQueue,queue:mr.queue,next:null},null===vr?hr.memoizedState=vr=e:vr=vr.next=e}return vr}function xr(e,t){return"function"==typeof t?t(e):t}function Nr(e){var t=Cr(),n=t.queue;if(null===n)throw Error(u(311));n.lastRenderedReducer=e;var r=mr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=a=o=null,s=i;do{var c=s.lane;if((pr&c)===c)null!==l&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===l?(a=l=f,o=r):l=l.next=f,hr.lanes|=c,So|=c}s=s.next}while(null!==s&&s!==i);null===l?o=r:l.next=a,an(r,t.memoizedState)||(Jr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Pr(e){var t=Cr(),n=t.queue;if(null===n)throw Error(u(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);an(o,t.memoizedState)||(Jr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ir(e,t,n){var r=t._getVersion;r=r(t._source);var i=Y?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(pr&e)===e)&&(Y?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(u(350))}function _r(e,t,n,r){var i=ho;if(null===i)throw Error(u(349));var o=t._getVersion,a=o(t._source),l=fr.current,s=l.useState((function(){return Ir(i,t,n)})),c=s[1],f=s[0];s=vr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=hr;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!an(a,e)){e=n(t._source),an(f,e)||(c(e),e=Go(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),en(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Zn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!nr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Xt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Xt(),e.sibling=null,t=Jn.current,lt(Jn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(u(156,t.tag))}function Ii(e){switch(e.tag){case 1:pt(e.type)&&ht();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Kn(),at(ct),at(st),cr(),0!=(64&(t=e.flags)))throw Error(u(285));return e.flags=-4097&t|64,e;case 5:return Xn(e),null;case 13:if(at(Jn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(u(340));ur()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return at(Jn),null;case 4:return Kn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Ai(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Li="function"==typeof WeakMap?WeakMap:Map;function Ri(e,t,n){(n=Cn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Lo||(Lo=!0,Ro=r),Ai(0,t)},n}function Ti(e,t,n){(n=Cn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Ai(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===To?To=new Set([this]):To.add(this),Ai(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var zi="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Sa(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:cn(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(X&&256&t.flags&&Ie(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(u(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),ga(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:cn(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&In(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=j(n.child.stateNode);break;case 1:e=n.child.stateNode}In(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(Z&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Xe(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(u(163))}function Mi(e,t){if(X)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Ce(r):Ne(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?xe(r):Pe(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Di(e,t){if(kt&&"function"==typeof kt.onCommitFiberUnmount)try{kt.onCommitFiberUnmount(bt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){Sa(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Sa(t,e)}break;case 5:Oi(t);break;case 4:X?$i(e,t):J&&J&&(t=t.stateNode.containerInfo,e=Re(t),Oe(t,e))}}function Ui(e,t){for(var n=t;;)if(Di(e,n),null===n.child||X&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Bi(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(X){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(u(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(u(161))}16&n.flags&&(Ee(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ke(r,t,n):me(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(u(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Ui(e,i),r?Se(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Ze(n,i.stateNode):Je(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Di(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function qi(e,t){if(X){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(u(162));return n=t.memoizedProps,void ve(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(Z&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ye(t.containerInfo))));case 12:return;case 13:return Qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(u(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return Qi(t),void Gi(t);case 19:return void Gi(t);case 3:Z&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ye(n.containerInfo)));break;case 23:case 24:return}e:if(J){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Oe(t.containerInfo,t.pendingChildren);break e}throw Error(u(163))}}function Qi(e){null!==e.memoizedState&&(No=Xt(),X&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new zi),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=ee(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(u(364));return t}if(null===(e=le(e)))throw Error(u(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(u(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Xt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*uo(n/1960))-n)){e.timeoutHandle=Q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(u(329))}}return Xo(e,Xt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~Eo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,u),p=l;do{switch(p.tag){case 3:a=s,p.flags|=4096,n&=-n,p.lanes|=n,Nn(p,Ri(0,a,n));break e;case 1:a=s;var S=p.type,E=p.stateNode;if(0==(64&p.flags)&&("function"==typeof S.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===To||!To.has(E)))){p.flags|=4096,n&=-n,p.lanes|=n,Nn(p,Ti(p,a,n));break e}}p=p.return}while(null!==p)}pa(r)}catch(e){n=e,mo===r&&null!==r&&(mo=r=r.return);continue}break}}function la(){var e=so.current;return so.current=Qr,null===e?Qr:e}function ua(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&So)&&0==(134217727&Eo)||Zo(ho,vo)}function sa(e,t){var n=po;po|=16;var r=la();for(ho===e&&vo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(mn(),po=n,so.current=r,null!==mo)throw Error(u(261));return ho=null,vo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!jt();)da(mo)}function da(e){var t=_o(e.alternate,e,yo);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,yo)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&yo)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Xt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Jt()?1:2:(0===Wo&&(Wo=wo),0===(t=Pt(62914560&~Wo))&&(t=4194304)));var n=Qo();null!==(e=Yo(e,t))&&(_t(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,n,r){var i=n.lanes;if(null!==e)if(e.memoizedProps!==n.pendingProps||ct.current)Jr=!0;else{if(0==(r&i)){switch(Jr=!1,n.tag){case 3:si(n),ur();break;case 5:Yn(n);break;case 1:pt(n.type)&&yt(n);break;case 4:Gn(n,n.stateNode.containerInfo);break;case 10:vn(n,n.memoizedProps.value);break;case 13:if(null!==(i=n.memoizedState))return null!==i.dehydrated?(lt(Jn,1&Jn.current),n.flags|=64,null):0!=(r&n.child.childLanes)?mi(e,n,r):(lt(Jn,1&Jn.current),null!==(n=Ci(e,n,r))?n.sibling:null);lt(Jn,1&Jn.current);break;case 19:if(i=0!=(r&n.childLanes),0!=(64&e.flags)){if(i)return Ei(e,n,r);n.flags|=64}var o=n.memoizedState;if(null!==o&&(o.rendering=null,o.tail=null,o.lastEffect=null),lt(Jn,Jn.current),i)break;return null;case 23:case 24:return n.lanes=0,ri(e,n,r)}return Ci(e,n,r)}Jr=0!=(16384&e.flags)}else Jr=!1;switch(n.lanes=0,n.tag){case 2:if(i=n.type,null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,o=dt(n,st.current),bn(n,r),o=wr(null,n,i,e,o,r),n.flags|=1,"object"===t(o)&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,pt(i)){var a=!0;yt(n)}else a=!1;n.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Sn(n);var l=i.getDerivedStateFromProps;"function"==typeof l&&An(n,i,l,e),o.updater=Ln,n.stateNode=o,o._reactInternals=n,On(n,i,e,r),n=ui(null,n,i,!0,a,r)}else n.tag=0,Zr(null,n,o,r),n=n.child;return n;case 16:o=n.elementType;e:{switch(null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,o=(a=o._init)(o._payload),n.type=o,a=n.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===k)return 14;if(e===S)return 22}return 2}(o),l=cn(o,e),a){case 0:n=oi(null,n,o,l,r);break e;case 1:n=li(null,n,o,l,r);break e;case 11:n=ei(null,n,o,l,r);break e;case 14:n=ti(null,n,o,cn(o.type,l),i,r);break e;case 22:n=ai(null,n,o,e,r);break e}throw Error(u(306,o,""))}return n;case 0:return i=n.type,o=n.pendingProps,oi(e,n,i,o=n.elementType===i?o:cn(i,o),r);case 1:return i=n.type,o=n.pendingProps,li(e,n,i,o=n.elementType===i?o:cn(i,o),r);case 3:if(si(n),i=n.updateQueue,null===e||null===i)throw Error(u(282));if(i=n.pendingProps,o=null!==(o=n.memoizedState)?o.element:null,En(e,n),Pn(n,i,null,r),(i=n.memoizedState.element)===o)ur(),n=Ci(e,n,r);else{if((a=(o=n.stateNode).hydrate)&&(Z?(tr=$e(n.stateNode.containerInfo),er=n,a=nr=!0):a=!1),a){if(Z&&null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==s.width||pa)){d>o&&(s.height+=d-o,s.y=o),pi)){c>r&&(s.width+=c-r,s.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},i.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return j(e.child.stateNode);default:return e.child.stateNode}},i.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{bt=t.inject(e),kt=t}catch(e){}e=!0}return e},i.observeVisibleRects=function(e,t,n,r){if(!ae)throw Error(u(363));e=ao(e,t);var i=pe(e,n,r).disconnect;return{disconnect:function(){i()}}},i.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},i.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},i.shouldSuspend=function(){return!1},i.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),nn())}},i.updateContainer=function(e,t,n,r){var i=t.current,o=Qo(),a=Go(i);e:if(n){t:{if(A(n=n._reactInternals)!==n||1!==n.tag)throw Error(u(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(pt(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(u(171))}if(1===n.tag){var s=n.type;if(pt(s)){n=vt(n,s,l);break e}}n=l}else n=ut;return null===t.context?t.context=n:t.pendingContext=n,(t=Cn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),xn(i,t),Ko(i,a,o),a},i}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @@ -41,7 +41,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n("./node_modules/object-assign/index.js"),o=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var l=60109,u=60110,s=60112;t.Suspense=60113;var c=60115,f=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),l=d("react.provider"),u=d("react.context"),s=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),f=d("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n=w},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0I(a,n))void 0!==u&&0>I(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>I(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],_=[],L=1,A=null,R=3,z=!1,T=!1,O=!1;function j(e){for(var t=x(_);null!==t;){if(null===t.callback)N(_);else{if(!(t.startTime<=e))break;N(_),t.sortIndex=t.expirationTime,C(P,t)}t=x(_)}}function F(e){if(O=!1,j(e),!T)if(null!==x(P))T=!0,i(H);else{var t=x(_);null!==t&&o(F,t.startTime-e)}}function H(e,n){T=!1,O&&(O=!1,a()),z=!0;var r=R;try{for(j(n),A=x(P);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=A.callback;if("function"==typeof i){A.callback=null,R=A.priorityLevel;var l=i(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?A.callback=l:A===x(P)&&N(P),j(n)}else N(P);A=x(P)}if(null!==A)var u=!0;else{var s=x(_);null!==s&&o(F,s.startTime-n),u=!1}return u}finally{A=null,R=r,z=!1}}var M=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){T||z||(T=!0,i(H))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,l){var u=t.unstable_now();switch("object"===r(l)&&null!==l?l="number"==typeof(l=l.delay)&&0u?(e.sortIndex=l,C(_,e),null===x(P)&&e===x(_)&&(O?a():O=!0,o(F,l-u))):(e.sortIndex=s,C(P,e),T||z||(T=!0,i(H))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o,a,l;if("object"===("undefined"==typeof performance?"undefined":r(performance))&&"function"==typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function e(){if(null!==f)try{var n=t.unstable_now();f(!0,n),f=null}catch(t){throw setTimeout(e,0),t}};i=function(e){null!==f?setTimeout(i,0,e):(f=e,setTimeout(p,0))},o=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,b=-1,k=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0P(a,n))void 0!==u&&0>P(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>P(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],_=[],A=1,L=null,R=3,T=!1,z=!1,O=!1;function j(e){for(var t=x(_);null!==t;){if(null===t.callback)N(_);else{if(!(t.startTime<=e))break;N(_),t.sortIndex=t.expirationTime,C(I,t)}t=x(_)}}function F(e){if(O=!1,j(e),!z)if(null!==x(I))z=!0,i(H);else{var t=x(_);null!==t&&o(F,t.startTime-e)}}function H(e,n){z=!1,O&&(O=!1,a()),T=!0;var r=R;try{for(j(n),L=x(I);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=L.callback;if("function"==typeof i){L.callback=null,R=L.priorityLevel;var l=i(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===x(I)&&N(I),j(n)}else N(I);L=x(I)}if(null!==L)var u=!0;else{var s=x(_);null!==s&&o(F,s.startTime-n),u=!1}return u}finally{L=null,R=r,T=!1}}var M=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){z||T||(z=!0,i(H))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return x(I)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,l){var u=t.unstable_now();switch("object"===r(l)&&null!==l?l="number"==typeof(l=l.delay)&&0u?(e.sortIndex=l,C(_,e),null===x(I)&&e===x(_)&&(O?a():O=!0,o(F,l-u))):(e.sortIndex=s,C(I,e),z||T||(z=!0,i(H))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/driver/js/flutter/example/jsbundle/hippy-react-demo/android/vendor.android.js b/driver/js/flutter/example/jsbundle/hippy-react-demo/android/vendor.android.js index f086989e2..65333bf56 100644 --- a/driver/js/flutter/example/jsbundle/hippy-react-demo/android/vendor.android.js +++ b/driver/js/flutter/example/jsbundle/hippy-react-demo/android/vendor.android.js @@ -1,7 +1,7 @@ -var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Animated",(function(){return mn})),n.d(t,"Animation",(function(){return je})),n.d(t,"AnimationSet",(function(){return Ue})),n.d(t,"AppRegistry",(function(){return un})),n.d(t,"AsyncStorage",(function(){return Bn})),n.d(t,"BackAndroid",(function(){return Vn})),n.d(t,"Clipboard",(function(){return qn})),n.d(t,"ConsoleModule",(function(){return or})),n.d(t,"Dimensions",(function(){return pr})),n.d(t,"Easing",(function(){return yn})),n.d(t,"Focusable",(function(){return Fn})),n.d(t,"Hippy",(function(){return lr})),n.d(t,"HippyEventEmitter",(function(){return ge})),n.d(t,"HippyEventListener",(function(){return me})),n.d(t,"HippyRegister",(function(){return Gn})),n.d(t,"Image",(function(){return hn})),n.d(t,"ImageBackground",(function(){return ur})),n.d(t,"ImageLoaderModule",(function(){return Yn})),n.d(t,"ListView",(function(){return wn})),n.d(t,"ListViewItem",(function(){return gn})),n.d(t,"Modal",(function(){return jn})),n.d(t,"Navigator",(function(){return Sn})),n.d(t,"NetInfo",(function(){return Xn})),n.d(t,"NetworkModule",(function(){return Qn})),n.d(t,"PixelRatio",(function(){return hr})),n.d(t,"Platform",(function(){return ar})),n.d(t,"PullFooter",(function(){return vn})),n.d(t,"PullHeader",(function(){return bn})),n.d(t,"RNfqb",(function(){return sr})),n.d(t,"RNfqbEventEmitter",(function(){return fr})),n.d(t,"RNfqbEventListener",(function(){return dr})),n.d(t,"RNfqbRegister",(function(){return cr})),n.d(t,"RefreshWrapper",(function(){return kn})),n.d(t,"ScrollView",(function(){return Tn})),n.d(t,"StyleSheet",(function(){return An})),n.d(t,"Text",(function(){return dn})),n.d(t,"TextInput",(function(){return Pn})),n.d(t,"TimerModule",(function(){return ir})),n.d(t,"UIManagerModule",(function(){return Jn})),n.d(t,"View",(function(){return cn})),n.d(t,"ViewPager",(function(){return xn})),n.d(t,"WaterfallView",(function(){return Wn})),n.d(t,"WebSocket",(function(){return Dn})),n.d(t,"WebView",(function(){return Hn})),n.d(t,"callNative",(function(){return er})),n.d(t,"callNativeWithCallbackId",(function(){return nr})),n.d(t,"callNativeWithPromise",(function(){return tr})),n.d(t,"colorParse",(function(){return Pe})),n.d(t,"default",(function(){return sn})),n.d(t,"flushSync",(function(){return Zn})),n.d(t,"removeNativeCallback",(function(){return rr}));var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/@hippy/react-reconciler/index.js"),a=n.n(o);const l=["children"],s=["collapsable","style"],u=["style"],c=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],f=["children"],d=["children"],p=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],h=["children"],m=["initialRoute"],y=["component"],g=["children","onPageScrollStateChanged"],b=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t=0||(i[n]=e[n]);return i} +var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Animated",(function(){return mn})),n.d(t,"Animation",(function(){return Fe})),n.d(t,"AnimationSet",(function(){return Be})),n.d(t,"AppRegistry",(function(){return un})),n.d(t,"AsyncStorage",(function(){return Wn})),n.d(t,"BackAndroid",(function(){return Vn})),n.d(t,"Clipboard",(function(){return qn})),n.d(t,"ConsoleModule",(function(){return or})),n.d(t,"Dimensions",(function(){return pr})),n.d(t,"Easing",(function(){return yn})),n.d(t,"Focusable",(function(){return Fn})),n.d(t,"Hippy",(function(){return lr})),n.d(t,"HippyEventEmitter",(function(){return be})),n.d(t,"HippyEventListener",(function(){return ye})),n.d(t,"HippyRegister",(function(){return Kn})),n.d(t,"Image",(function(){return hn})),n.d(t,"ImageBackground",(function(){return ur})),n.d(t,"ImageLoaderModule",(function(){return Yn})),n.d(t,"ListView",(function(){return wn})),n.d(t,"ListViewItem",(function(){return gn})),n.d(t,"Modal",(function(){return jn})),n.d(t,"Navigator",(function(){return Sn})),n.d(t,"NetInfo",(function(){return Xn})),n.d(t,"NetworkModule",(function(){return Qn})),n.d(t,"PixelRatio",(function(){return hr})),n.d(t,"Platform",(function(){return ar})),n.d(t,"PullFooter",(function(){return vn})),n.d(t,"PullHeader",(function(){return bn})),n.d(t,"RNfqb",(function(){return sr})),n.d(t,"RNfqbEventEmitter",(function(){return fr})),n.d(t,"RNfqbEventListener",(function(){return dr})),n.d(t,"RNfqbRegister",(function(){return cr})),n.d(t,"RefreshWrapper",(function(){return kn})),n.d(t,"ScrollView",(function(){return Tn})),n.d(t,"StyleSheet",(function(){return Rn})),n.d(t,"Text",(function(){return dn})),n.d(t,"TextInput",(function(){return In})),n.d(t,"TimerModule",(function(){return ir})),n.d(t,"UIManagerModule",(function(){return Jn})),n.d(t,"View",(function(){return cn})),n.d(t,"ViewPager",(function(){return xn})),n.d(t,"WaterfallView",(function(){return Bn})),n.d(t,"WebSocket",(function(){return Dn})),n.d(t,"WebView",(function(){return Hn})),n.d(t,"callNative",(function(){return er})),n.d(t,"callNativeWithCallbackId",(function(){return nr})),n.d(t,"callNativeWithPromise",(function(){return tr})),n.d(t,"colorParse",(function(){return _e})),n.d(t,"default",(function(){return sn})),n.d(t,"flushSync",(function(){return Zn})),n.d(t,"removeNativeCallback",(function(){return rr}));var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/@hippy/react-reconciler/index.js"),a=n.n(o);const l=["children"],s=["collapsable","style"],u=["style"],c=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],f=["children"],d=["children"],p=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],h=["children"],m=["initialRoute"],y=["component"],g=["children","onPageScrollStateChanged"],b=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t=0||(i[n]=e[n]);return i} /*! * @hippy/react v2.2.1 - * Build at: Thu Jun 23 2022 16:22:04 GMT+0800 (China Standard Time) + * Build at: Mon Jun 27 2022 13:23:14 GMT+0800 (China Standard Time) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -20,7 +20,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage:S,bridge:C,device:x,document:N,register:I,on:P,off:_,emit:L}=e.Hippy;var R=Object.freeze({__proto__:null,addEventListener:P,removeEventListener:_,dispatchEvent:L,AsyncStorage:S,Bridge:C,Device:x,HippyRegister:I,UIManager:N});let A,z;const T=new Map;function O(e,t){z=e,A=t}function j(){if(!z)throw new Error("getRootViewId must execute after setRootContainer");return z}function F(e){if(!A)return null;const{current:t}=A,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function H(e,t){T.set(t,e)}function M(e){T.delete(e)}function D(e){return(null==e?void 0:e.stateNode)||null}function U(e){return T.get(e)||null}function W(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?M(t):t&&(M(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const B=0,V=1,$=-1,q=1,Q={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},K={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const G=new RegExp(/^\d+$/);let Y=!1,X=!1;function J(...e){0}function Z(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const ee=new RegExp("^on.+Capture$");function te(e){return ee.test(e)}const ne=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function re(e){return"[object Function]"===Object.prototype.toString.call(e)}function ie(e){Y=e}function oe(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}class ae{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,e):n.eventHandler(e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class le{constructor(e,t,n){this.type=e,this.bubbles=!0,this.timeStamp=Date.now(),this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const se=new Map,ue=["%c[event]%c","color: green","color: auto"];function ce(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function fe(e,t,n,r,i){let o=!1;const a=e+"Capture",l=D(r),s=D(n);try{if(ce(a,n)){const e=new le(a,s,l);Object.assign(e,t),n.memoizedProps[a](e),!e.bubbles&&i&&i.stopPropagation()}if(ce(e,n)){const r=new le(e,s,l);Object.assign(r,t),o=n.memoizedProps[e](r),"boolean"!=typeof o&&(o=!X),r.bubbles||(o=!0),!1!==o&&i&&i.stopPropagation()}}catch(e){console.reportUncaughtException(e)}}function de(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return se.get(e)||null}const pe={registerNativeEventHub:function(e){if(J(...ue,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=se.get(e);return t||(t=new ae(e),se.set(e,t)),t},getHippyEventHub:de,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);se.has(e)&&se.delete(e)},receiveNativeEvent:function(e){if(J(...ue,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=de(t);r&&r.notifyEvent(n)},receiveNativeGesture:function(e,t){if(J(...ue,"receiveNativeGesture",e),!e)return;const{id:n,currentId:r,name:i}=e,o=U(r),a=U(n);if(!o||!a)return;fe(function(e,t){let n=e;if(t.memoizedProps&&!t.memoizedProps[e]){const r=Object.keys(Q);for(let i=0;i255?255:t}function Se(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ce(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function xe(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Ce(i,r,e+1/3),a=Ce(i,r,e),l=Ce(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Ne(e){return(parseFloat(e)%360+360)%360/360}function Ie(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Pe(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ke.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(ve,e)?ve[e]:(t=ke.rgb.exec(e),Array.isArray(t)?(Ee(t[1])<<24|Ee(t[2])<<16|Ee(t[3])<<8|255)>>>0:(t=ke.rgba.exec(e),t?(Ee(t[1])<<24|Ee(t[2])<<16|Ee(t[3])<<8|Se(t[4]))>>>0:(t=ke.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ke.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=ke.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ke.hsl.exec(e),t?(255|xe(Ne(t[1]),Ie(t[2]),Ie(t[3])))>>>0:(t=ke.hsla.exec(e),t?(xe(Ne(t[1]),Ie(t[2]),Ie(t[3]))|Se(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function _e(e){return Array.isArray(e)?e.map(e=>Pe(e)):[0]}function Le(e){return"loop"===e?-1:e}function Re(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?Pe(t):t}const Ae="animationstart",ze="animationend",Te="animationcancel",Oe="animationrepeat";class je{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=Re(t.valueType,e)}const i=Re(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=Le(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ae),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(ze),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Te),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(Oe)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ae,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(ze,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Te,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Oe,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!=typeof e)throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach(t=>{const n=e[t];if("startValue"===t){let t;if(e.startValue instanceof je)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=Re(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Le(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:Re(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Fe="animationstart",He="animationend",Me="animationcancel",De="animationrepeat";class Ue{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:Le(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Fe),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(He),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Me),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(De)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Fe,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(He,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Me,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Me,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const We={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let Be=!0,Ve=[];function $e(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!K[e]}(r)?K[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===V&&t.removeEventListener(n,l,o),i===B&&t.addEventListener(n,l,o,a)})}})}function qe(e,t){0}function Qe(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case We.createNode:qe(e.nodes),r.create(e.nodes),$e(e.eventNodes,r);break;case We.updateNode:qe(e.nodes),r.update(e.nodes),$e(e.eventNodes,r);break;case We.deleteNode:qe(e.nodes),r.delete(e.nodes);break;case We.moveNode:qe(e.nodes),r.move(e.nodes)}}),r.build()}function Ke(e=!1){if(!Be)return;if(Be=!1,0===Ve.length)return void(Be=!0);const t=j();e?(Qe(t),Ve=[],Be=!0):Promise.resolve().then(()=>{Qe(t),Ve=[],Be=!0})}function Ge(e){const t=e.attributes,{children:n}=t;return E(t,l)}function Ye(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);return[[{id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:w(w({},Ge(t)),{},{style:t.style})},n],function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t)]}function Xe(e,t,n,r,i={}){const o=[],a=[];let l=n;return void 0===l&&t&&t.parentNode&&(l=t.parentNode.childNodes.indexOf(t)),t.traverseChildren((t,n)=>{const[i,l]=Ye(e,t,n);i&&o.push(i),l&&a.push(l),"function"==typeof r&&r(t)},l,i),[o,a]}function Je(e){return!!A&&e instanceof A.containerInfo.constructor}function Ze(e,t,n=-1,r={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const i=j(),o=Je(e)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(o||a){const[e,o]=Xe(i,t,n,e=>{e.isMounted||(e.isMounted=!0)},r);Ve.push({type:We.createNode,nodes:e,eventNodes:o})}}function et(e){if(!e.isMounted)return;const t=j(),[n,r]=Ye(t,e);n&&Ve.push({type:We.updateNode,nodes:[n],eventNodes:[r]})}let tt=0;class nt{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(tt+=1,tt%10==0&&(tt+=1),tt)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),Ze(this,e,n,{refId:t.nodeId,relativeToRef:$})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e),r=this.childNodes.indexOf(t);if(r===n)return e;this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),function(e,t,n=-1,r={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;t.index=n;const i=j(),o=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:i},r]];Ve.push({type:We.moveNode,nodes:o,eventNodes:[]})}(this,e,r,{refId:t.nodeId,relativeToRef:$})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e);Ze(this,e,t+1,n&&{refId:n.nodeId,relativeToRef:q})}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t,n){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.index=n;const r=j(),i=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},{}]];Ve.push({type:We.deleteNode,nodes:i,eventNodes:[]})}(0,e,t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,n,{})})}}const rt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},it={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},ot="turn",at="rad",lt="deg";function st(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=/^([+-]?\d+\.?\d*)+(deg|turn|rad)|(to\w+)$/g.exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=lt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case ot:r=""+(360*n).toFixed(2);break;case at:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==it[i]&&(r=it[i]),r}function ut(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Pe(n)}:void 0:{color:Pe(n)}}function ct(e){return te(e)&&(e=e.replace("Capture","")),Q[e]?Q[e][1]:e}function ft(e){return t=>{const{id:n,currentId:r,params:i}=t;if(function(e){return!!K[e]}(e)){const o={id:n,name:e,currentId:r};Object.assign(o,i),pe.receiveNativeGesture(o,t)}else{const t=[r,e,i];pe.receiveUIComponentEvent(t)}}}class dt extends nt{constructor(e){super(),this.id="",this.style={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}setStyleAttribute(e){this.style={};let t=e;if(!Array.isArray(t)&&Object.hasOwnProperty.call(t,0)){const e=[],n={};Object.keys(t).forEach(r=>{var i;i=r,G.test(i)?e.push(t[r]):n[r]=t[r]}),t=[...e,n]}Array.isArray(t)||(t=[t]);let n={};t.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=w(w({},n),e)}):"object"==typeof e&&e&&(n=w(w({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(rt,e)&&(e=rt[e]),"transform"===e){const e={};if(!Array.isArray(t))throw new TypeError("transform only support array args");t.forEach(t=>{Object.keys(t).forEach(n=>{const r=t[n];r instanceof je||r instanceof Ue?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof je||t instanceof Ue)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=_e(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=Pe(t);else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=st(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=ut(e);t&&r.push(t)}}else{const t=ut(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=oe(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttributes(e=[]){Array.isArray(e)&&e.length>0&&(e.forEach(e=>{if(Array.isArray(e)){const[t,n]=e;this.setAttribute(t,n,{notToNative:!0})}}),et(this))}parseAnimationStyleProp(e){let t=!1;Object.keys(e).some(n=>{const r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(let e=0;e["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,function(e){if(!e.isMounted)return;const t=j(),[n,r]=Xe(t,e)||{};n&&Ve.push({type:We.updateNode,nodes:n,eventNodes:r})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=Z(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>{if("function"==typeof t){const n=ct(e);this.attributes[n]=t,this.events[n]?this.events[n]&&this.events[n].type!==B&&(this.events[n].type=B):this.events[n]={name:n,type:B,isCapture:te(e),listener:ft(n)}}else{const n=ct(e);if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(n,this.events)&&"function"!=typeof t)return delete this.attributes[n],this.events[n].type=V,!1;this.attributes[e]=t}return!1}}].some(e=>!!e.match()&&(n=e.action(),!0)),n}setAttribute(e,t,n={}){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&et(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&et(this)}catch(e){}}removeAttribute(e){delete this.attributes[e]}setStyle(e,t,n=!1){if(null===t)return void delete this.style[e];let r=t,i=e;Object.prototype.hasOwnProperty.call(rt,e)&&(i=rt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?_e(r):i.toLowerCase().indexOf("color")>-1?Pe(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&ne.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||et(this))}setNativeProps(e){if(e){const{style:t}=e;if(t){const e=t;Object.keys(e).forEach(t=>{this.setStyle(t,e[t],!0)}),et(this),Ke(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=Z(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class pt extends nt{constructor(){super(),this.documentElement=new dt("document")}createElement(e){return new dt(e)}createElementNS(e,t){return new dt(`${e}:${t}`)}}pt.createElement=pt.prototype.createElement,pt.createElementNS=pt.prototype.createElementNS;var ht=Array.isArray,mt=Object.keys,yt=Object.prototype.hasOwnProperty;const gt=setTimeout,bt=clearTimeout;var vt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){Ke(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:gt,cancelTimeout:bt,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){H(o,e.nodeId);const a=Object.keys(t||{});if(0===a.length)return;const l=a.map(e=>[e,t[e]]);e.setAttributes(l)},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),H(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",Z(e)),i.meta={component:{name:"Text"}},H(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(n).forEach(e=>{const t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)}),Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=ht(t),l=ht(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=mt(t);if((i=d.length)!==mt(n).length)return!1;for(r=i;0!=r--;)if(!yt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),W(t)},removeChildFromContainer:function(e,t){e.removeChild(t),W(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=w(w({},t),{},{style:w(w({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const wt=a()(w(w({},vt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var kt=Object.freeze({__proto__:null,getString:function(){return C.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){C.callNative("ClipboardModule","setString",e)}});var Et=Object.freeze({__proto__:null,getCookies:function(e){return C.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),C.callNative("network","setCookie",e,t,r)}});function St(e){return C.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Ct(e){C.callNative("ImageLoaderModule","prefetch",e)}var xt=Object.freeze({__proto__:null,getSize:St,prefetch:Ct});const Nt=new Map;let It;class Pt{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(_t(this.eventName,this.listener),this.listener=void 0)}}function _t(e,t){if(t instanceof Pt)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");It.listenerSize(n)<=1&&C.callNative("NetInfo","removeListener",n);const r=Nt.get(t);r&&(r.remove(),Nt.delete(t))}var Lt=Object.freeze({__proto__:null,addEventListener:function(e,t){It=new ge;let n=e;n&&"change"===n&&(n="networkStatusDidChange"),It.listenerSize(n)<1&&C.callNative("NetInfo","addListener",n);const r=It.addListener(n,e=>{t(e)});return Nt.set(t,r),new Pt(n,t)},removeEventListener:_t,fetch:function(){return C.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:Rt,updateNode:At,deleteNode:zt,flushBatch:Tt,endBatch:Ot,sendRenderError:jt}=N,Ft=function(e){return F(t=>t.stateNode&&t.stateNode.nodeId===e)};function Ht(e){if(e instanceof dt)return e;const t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){let e=t.child;for(;e&&!(e.stateNode instanceof dt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Mt(e){let t=e;if("string"==typeof e){const n=F(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=Ht(t);return e?e.nodeId:0}return t.nodeId}function Dt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Ht(e);t&&({nodeId:i,nativeName:r}=t)}if(!r)throw new Error("callUIFunction is calling a unnamed component");if(!i)throw new Error("callUIFunction is calling a component have no nodeId");let[o=[],a]=n;re(o)&&(a=o,o=[]);null!==j()&&(J(),N.callUIFunction(i,t,o,a))}function Ut(e,t,n){const r=Mt(t);return new Promise((t,i)=>r?(J(),N.callUIFunction(r,e,[],e=>(n&&re(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&re(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Wt=Object.freeze({__proto__:null,createNode:Rt,updateNode:At,deleteNode:zt,flushBatch:Tt,endBatch:Ot,sendRenderError:jt,getNodeById:Ft,getNodeIdByRef:Mt,getElementFromFiberRef:Ht,callUIFunction:Dt,measureInWindow:function(e,t){return Ut("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===x.platform.OS?Ut("measureInWindow",e,t):Ut("measureInAppWindow",e,t)}});const Bt=new ge,Vt=new Set,$t={exitApp(){C.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(C.callNative("DeviceEventModule","setListenBackPress",!0),Vt.add(e),{remove(){$t.removeListener(e)}}),removeListener(e){Vt.delete(e),0===Vt.size&&C.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Bt.addListener("hardwareBackPress",()=>{let e=!0;[...Vt].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&$t.exitApp()})}},qt=($t.initEventListener(),$t),{flushSync:Qt}=wt,{addEventListener:Kt,removeEventListener:Gt,dispatchEvent:Yt,AsyncStorage:Xt,Bridge:Jt,Device:Zt,HippyRegister:en}=R;var tn=Object.freeze({__proto__:null,addEventListener:Kt,removeEventListener:Gt,dispatchEvent:Yt,AsyncStorage:Xt,BackAndroid:qt,Bridge:Jt,Clipboard:kt,Cookie:Et,Device:Zt,HippyRegister:en,ImageLoader:xt,NetworkInfo:Lt,UIManager:Wt,flushSync:Qt});const{createContainer:nn,updateContainer:rn,getPublicRootInstance:on,injectIntoDevTools:an}=wt,ln=['%c[Hippy-React "2.2.1"]%c',"color: #61dafb","color: auto"];class sn{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new pt;this.rootContainer=nn(t,0,!1,null)}static get Native(){return tn}start(){en.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:o=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;J(...ln,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&ie(r),o&&function(e=!1){X=e}(o),O(l,this.rootContainer);const s=i.a.createElement(n,e);return rn(s,this.rootContainer,null,a),on(this.rootContainer)}}sn.version="2.2.1";const un={registerComponent(e,t){new sn({appName:e,entryPage:t}).start()}};class cn extends i.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Dt(this.instance,"setPressed",[e])}setHotspot(e,t){Dt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,s),o=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(o.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=Pe(a.color)),i.a.createElement("div",w({ref:e=>{this.instance=e},nativeName:"View",style:o},r))}}function fn(e,t){let{style:n}=e,r=E(e,u);const o=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(o[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=Z(r.children);else if("number"==typeof r.children)r.text=Z(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=Z(e),r.children=r.text)}return i.a.createElement("p",w({ref:t,nativeName:"Text",style:o},r))}fn.displayName="Text";const dn=i.a.forwardRef(fn);dn.displayName="Text";var pn=Object.freeze({__proto__:null,default:dn});class hn extends i.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=St(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:o,source:a,sources:l,src:s,srcs:u,tintColor:f,tintColors:d}=e,p=E(e,c),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=oe(p.defaultSource));const m=w({},n);return this.handleTintColor(m,f,d),p.style=m,t?i.a.createElement(cn,{style:n},i.a.createElement("img",w(w({},p),{},{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",w(w({},p),{},{nativeName:"Image",alt:"",ref:o}))}getImageUrls({src:e,srcs:t,source:n,sources:r}){let i=[];if("string"==typeof e&&i.push(e),Array.isArray(t)&&(i=[...i,...t]),n)if("string"==typeof n)i.push(n);else if("object"==typeof n&&null!==n){const{uri:e}=n;e&&i.push(e)}return r&&Array.isArray(r)&&r.forEach(e=>{"string"==typeof e?i.push(e):"object"==typeof e&&null!==e&&e.uri&&i.push(e.uri)}),i.length&&(i=i.map(e=>oe(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}hn.prefetch=Ct;class mn{constructor(){this.Value=mn.Value}static Value(e){return e}static timing(e,t){return new je({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}mn.View=cn,mn.Text=pn,mn.Image=hn;const yn={step0:e=>e>0?1:0,step1:e=>e>=1?1:0,linear:()=>"linear",ease:()=>"ease",quad:e=>e**2,cubic:e=>e**3,poly:e=>t=>t**e,sin:e=>1-Math.cos(e*Math.PI/2),circle:e=>1-Math.sqrt(1-e*e),exp:e=>2**(10*(e-1)),elastic:()=>"elastic",back:(e=1.70158)=>t=>t*t*((e+1)*t-e),bounce(e){let t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?(t-=1.5/2.75,7.5625*t*t+.75):t<2.5/2.75?(t-=2.25/2.75,7.5625*t*t+.9375):(t-=2.625/2.75,7.5625*t*t+.984375)},bezier:()=>"bezier",in:()=>"ease-in",out:()=>"ease-out",inOut:()=>"ease-in-out"};function gn(e){return i.a.createElement("li",w({nativeName:"ListViewItem"},e))}class bn extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Dt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Dt(this.instance,"collapsePullHeaderWithOptions",[e]):Dt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=E(e,f);return i.a.createElement("div",w({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class vn extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Dt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Dt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=E(e,d);return i.a.createElement("div",w({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class wn extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Dt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Dt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:o,renderPullFooter:a,getRowType:l,getRowStyle:s,getRowKey:u,dataSource:c,initialListSize:f,rowShouldSticky:d,onRowLayout:h,onHeaderPulling:m,onHeaderReleased:y,onFooterPulling:g,onFooterReleased:b,onAppear:v,onDisappear:k,onWillAppear:S,onWillDisappear:C}=e,x=E(e,p),N=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const p=this.getPullHeader(o,m,y),E=this.getPullFooter(a,g,b);!t&&c&&(t=c.length),e||(t=Math.min(t,f||10));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&N.push(i.a.createElement(gn,w({},t),n))}p&&N.unshift(p),E&&N.push(E),"function"==typeof d&&Object.assign(x,{rowShouldSticky:!0});const I=[v,k,S,C];x.exposureEventEnabled=I.some(e=>"function"==typeof e),"ios"===Zt.platform.OS&&(x.numberOfRows=N.length),x.initialListSize=f,x.style=w({},n)}return i.a.createElement("ul",w({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},x),N.length?N:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(bn,{key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(vn,{key:"pull-footer",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleRowProps(e,t,{getRowKey:n,getRowStyle:r,onRowLayout:i,getRowType:o,rowShouldSticky:a}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}"function"==typeof a&&(e.sticky=a(t))}}wn.defaultProps={numberOfRows:0};class kn extends i.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Dt(this.instance,"startRefresh",null)}refreshCompleted(){Dt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=E(e,h);return i.a.createElement("div",w({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}}class En{constructor(){this.top=null,this.size=0}push(e){this.top={data:e,next:this.top},this.size+=1}peek(){return null===this.top?null:this.top.data}pop(){if(null===this.top)return null;const e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}clear(){this.top=null,this.size=0}displayAll(){const e=[];if(null===this.top)return e;let t=this.top;for(let n=0,r=this.size;n1&&this.pop({animated:!0})}push(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName]){new sn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Dt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Dt(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=E(e.initialRoute,y),r=E(e,m);return r.initialRoute=n,i.a.createElement("div",w({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function Cn(e){return i.a.createElement("div",w(w({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class xn extends i.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&Dt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Dt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=E(e,g);let o=[];return Array.isArray(t)?o=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),i.a.createElement(Cn,w({},t),e)}):o.push(i.a.createElement(Cn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",w({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),o)}}function Nn(){const e=x.platform.Localization;return!!e&&1===e.direction}const In={caretColor:"caret-color"};class Pn extends i.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this.onChangeText=this.onChangeText.bind(this),this.onKeyboardWillShow=this.onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{Dt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Dt(this.instance,"setValue",[e]),e}focus(){Dt(this.instance,"focusTextInput",[])}blur(){Dt(this.instance,"blurTextInput",[])}showInputMethod(){}hideInputMethod(){}clear(){Dt(this.instance,"clear",[])}render(){const e=w({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(In[t]&&(n=In[t]),Array.isArray(e.style)?e.style.push({[n]:r}):e.style&&"object"==typeof e.style?e.style[n]=r:e.style={[n]:r},delete e[t])}),Nn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),i.a.createElement("div",w(w({nativeName:"TextInput"},e),{},{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}onChangeText(e){const{onChangeText:t}=this.props;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}onKeyboardWillShow(e){const{onKeyboardWillShow:t}=this.props;"function"==typeof t&&t(e)}}const _n=Zt.window.scale;let Ln=Math.round(.4*_n)/_n;function Rn(e){return e}0===Ln&&(Ln=1/_n);var An=Object.freeze({__proto__:null,get hairlineWidth(){return Ln},create:Rn});const zn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class Tn extends i.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"number"==typeof e||"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Dt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Dt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,o=[e?zn.contentContainerHorizontal:zn.contentContainerVertical,t],a=e?Object.assign({},zn.baseHorizontal,r):Object.assign({},zn.baseVertical,r);return e&&(a.flexDirection=Nn()?"row-reverse":"row"),i.a.createElement("div",w(w({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),i.a.createElement(cn,{style:o},n))}}const On={modal:{position:"absolute",collapsable:!1}};class jn extends i.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Zt.platform.OS&&(this.eventSubscription=new me("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Zt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:o}=this.props;if(!1===t)return null;const a={backgroundColor:n?"transparent":"white"};return o||(o="none",r&&(o="slide")),i.a.createElement("div",w({nativeName:"Modal",animationType:o,transparent:n,style:[On.modal,a]},this.props),e)}}jn.defaultProps={visible:!0};class Fn extends i.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}render(){var e,t,n;const{requestFocus:r,children:o,nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=i.a.Children.only(o);let y;(null===(t=null===(e=null==m?void 0:m.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?y=m.child.memoizedProps.nativeName:(null===(n=null==m?void 0:m.type)||void 0===n?void 0:n.displayName)&&(y=m.type.displayName);const g=a&&Mt(a),b=l&&Mt(l),v=s&&Mt(s),k=u&&Mt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=w(w({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return i.a.createElement(cn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:v,nextFocusRightId:k,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:S}=m.memoizedProps;return i.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:S,style:E,onFocus:this.handleFocus})}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}}function Hn(e){return i.a.createElement("iframe",w({title:"hippy",nativeName:"WebView"},e))}let Mn;class Dn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Mn||(Mn=new me("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=w({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Mn.addCallback(this.onWebSocketEvent),C.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,C.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);C.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Mn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Un(e){return i.a.createElement("li",w({nativeName:"WaterfallItem"},e))}class Wn extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}scrollToIndex({index:e=0,animated:t=!0}){Dt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Dt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{style:t={},renderBanner:n,numberOfColumns:r=2,columnSpacing:o=0,interItemSpacing:a=0,numberOfItems:l=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:f,getItemType:d,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:k,onFooterReleased:S,containPullHeader:C=!1,containPullFooter:x=!1,containBannerView:N=!1}=e,I=w(w({},E(e,b)),{},{style:t,numberOfColumns:r,columnSpacing:o,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:C,containPullFooter:x,containBannerView:N}),P=[];if("function"==typeof n){const e=n();e&&(P.push(i.a.createElement(cn,{key:"bannerView"},i.a.cloneElement(e))),I.containBannerView=!0)}if("function"==typeof u){const e=this.getPullHeader(c,g,v),n=this.getPullFooter(f,k,S);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},I),P)}componentDidMount(){const{getItemKey:e}=this.props}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i.call(this,e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(bn,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(vn,{key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}}e.WebSocket=Dn;const{AsyncStorage:Bn,BackAndroid:Vn,Bridge:$n,Clipboard:qn,Cookie:Qn,Device:Kn,HippyRegister:Gn,ImageLoader:Yn,NetworkInfo:Xn,UIManager:Jn,flushSync:Zn}=tn,{callNative:er,callNativeWithPromise:tr,callNativeWithCallbackId:nr,removeNativeCallback:rr}=$n,ir=null,or=e.ConsoleModule||e.console,ar=Kn.platform,lr=sn,sr=sn,ur=hn,cr=Gn,fr=ge,dr=me,pr={get:e=>Kn[e]},hr={get:()=>Kn.screen.scale}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ + */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage:S,bridge:C,device:x,document:N,register:P,on:I,off:_,emit:L}=e.Hippy;var A=Object.freeze({__proto__:null,addEventListener:I,removeEventListener:_,dispatchEvent:L,AsyncStorage:S,Bridge:C,Device:x,HippyRegister:P,UIManager:N});let R,z;const T=new Map;function O(e,t){z=e,R=t}function j(){if(!z)throw new Error("getRootViewId must execute after setRootContainer");return z}function F(e){if(!R)return null;const{current:t}=R,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function H(e,t){T.set(t,e)}function M(e){T.delete(e)}function D(e){return(null==e?void 0:e.stateNode)||null}function U(e){return T.get(e)||null}function B(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?M(t):t&&(M(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const W=0,V=1,$=-1,q=1,Q={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},G={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},K={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const Y=new RegExp(/^\d+$/);let X=!1,J=!1;function Z(...e){0}function ee(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const te=new RegExp("^on.+Capture$");function ne(e){return te.test(e)}const re=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ie(e){return"[object Function]"===Object.prototype.toString.call(e)}function oe(e){X=e}function ae(){return J}function le(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}class se{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,e):n.eventHandler(e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class ue{constructor(e,t,n){this.type=e,this.bubbles=!0,this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const ce=new Map,fe=["%c[event]%c","color: green","color: auto"];function de(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function pe(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return ce.get(e)||null}const he={registerNativeEventHub:function(e){if(Z(...fe,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=ce.get(e);return t||(t=new se(e),ce.set(e,t)),t},getHippyEventHub:pe,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);ce.has(e)&&ce.delete(e)},receiveNativeEvent:function(e){if(Z(...fe,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=pe(t);r&&r.notifyEvent(n)},receiveComponentEvent:function(e,t){if(Z(...fe,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:r,nativeName:i,originalName:o,params:a}=e,l=U(r),s=U(n);l&&s&&(K[i]?function(e,t,n,r,i,o){try{let t=!1;const a=D(r),l=D(n),{eventPhase:s}=o;if(de(e,n)&&ne(e)&&[G.AT_TARGET,G.CAPTURING_PHASE].indexOf(s)>-1){const t=new ue(e,l,a);Object.assign(t,{eventPhase:s},i),n.memoizedProps[e](t),!t.bubbles&&o&&o.stopPropagation()}if(de(e,n)&&!ne(e)&&[G.AT_TARGET,G.BUBBLING_PHASE].indexOf(s)>-1){const r=new ue(e,l,a);Object.assign(r,{eventPhase:s},i),t=n.memoizedProps[e](r),"boolean"!=typeof t&&(t=!ae()),r.bubbles||(t=!0),t&&o&&o.stopPropagation()}}catch(e){console.reportUncaughtException(e)}}(o,0,l,s,a,t):function(e,t,n,r,i,o){let a=!1;const l=D(r),s=D(n);try{const{eventPhase:t}=o;if(de(e,n)&&!ne(e)&&[G.AT_TARGET,G.BUBBLING_PHASE].indexOf(t)>-1){const r=new ue(e,s,l);Object.assign(r,{eventPhase:t},i),n.memoizedProps[e](r),a=!ae(),r.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.reportUncaughtException(e)}}(o,0,l,s,a,t))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=he);class me{constructor(e,t){this.callback=e,this.bindListener=t}remove(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}class ye{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=he.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for "+this.eventName);const t=this.listenerIdList.length;for(let n=0;n255?255:t}function Ce(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function xe(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ne(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=xe(i,r,e+1/3),a=xe(i,r,e),l=xe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Pe(e){return(parseFloat(e)%360+360)%360/360}function Ie(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function _e(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ee.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(we,e)?we[e]:(t=Ee.rgb.exec(e),Array.isArray(t)?(Se(t[1])<<24|Se(t[2])<<16|Se(t[3])<<8|255)>>>0:(t=Ee.rgba.exec(e),t?(Se(t[1])<<24|Se(t[2])<<16|Se(t[3])<<8|Ce(t[4]))>>>0:(t=Ee.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ee.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Ee.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ee.hsl.exec(e),t?(255|Ne(Pe(t[1]),Ie(t[2]),Ie(t[3])))>>>0:(t=Ee.hsla.exec(e),t?(Ne(Pe(t[1]),Ie(t[2]),Ie(t[3]))|Ce(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function Le(e){return Array.isArray(e)?e.map(e=>_e(e)):[0]}function Ae(e){return"loop"===e?-1:e}function Re(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?_e(t):t}const ze="animationstart",Te="animationend",Oe="animationcancel",je="animationrepeat";class Fe{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=Re(t.valueType,e)}const i=Re(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=Ae(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(ze),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Te),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Oe),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(je)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(ze,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Te,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Oe,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(je,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!=typeof e)throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach(t=>{const n=e[t];if("startValue"===t){let t;if(e.startValue instanceof Fe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=Re(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Ae(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:Re(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const He="animationstart",Me="animationend",De="animationcancel",Ue="animationrepeat";class Be{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:Ae(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(He),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Me),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(De),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ue)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(He,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Me,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(De,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(De,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const We={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let Ve=!0,$e=[];function qe(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!K[e]}(r)?K[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===V&&t.removeEventListener(n,l,o),i===W&&t.addEventListener(n,l,o,a)})}})}function Qe(e,t){0}function Ge(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case We.createNode:Qe(e.nodes),r.create(e.nodes),qe(e.eventNodes,r);break;case We.updateNode:Qe(e.nodes),r.update(e.nodes),qe(e.eventNodes,r);break;case We.deleteNode:Qe(e.nodes),r.delete(e.nodes);break;case We.moveNode:Qe(e.nodes),r.move(e.nodes)}}),r.build()}function Ke(e=!1){if(!Ve)return;if(Ve=!1,0===$e.length)return void(Ve=!0);const t=j();e?(Ge(t),$e=[],Ve=!0):Promise.resolve().then(()=>{Ge(t),$e=[],Ve=!0})}function Ye(e){const t=e.attributes,{children:n}=t;return E(t,l)}function Xe(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);return[[{id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:w(w({},Ye(t)),{},{style:t.style})},n],function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t)]}function Je(e,t,n,r,i={}){const o=[],a=[];let l=n;return void 0===l&&t&&t.parentNode&&(l=t.parentNode.childNodes.indexOf(t)),t.traverseChildren((t,n)=>{const[i,l]=Xe(e,t,n);i&&o.push(i),l&&a.push(l),"function"==typeof r&&r(t)},l,i),[o,a]}function Ze(e){return!!R&&e instanceof R.containerInfo.constructor}function et(e,t,n=-1,r={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const i=j(),o=Ze(e)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(o||a){const[e,o]=Je(i,t,n,e=>{e.isMounted||(e.isMounted=!0)},r);$e.push({type:We.createNode,nodes:e,eventNodes:o})}}function tt(e){if(!e.isMounted)return;const t=j(),[n,r]=Xe(t,e);n&&$e.push({type:We.updateNode,nodes:[n],eventNodes:[r]})}let nt=0;class rt{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(nt+=1,nt%10==0&&(nt+=1),nt)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),et(this,e,n,{refId:t.nodeId,relativeToRef:$})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e),r=this.childNodes.indexOf(t);if(r===n)return e;this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),function(e,t,n=-1,r={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;t.index=n;const i=j(),o=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:i},r]];$e.push({type:We.moveNode,nodes:o,eventNodes:[]})}(this,e,r,{refId:t.nodeId,relativeToRef:$})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e);et(this,e,t+1,n&&{refId:n.nodeId,relativeToRef:q})}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t,n){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.index=n;const r=j(),i=[[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},{}]];$e.push({type:We.deleteNode,nodes:i,eventNodes:[]})}(0,e,t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,n,{})})}}const it={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},ot={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},at="turn",lt="rad",st="deg";function ut(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=/^([+-]?\d+\.?\d*)+(deg|turn|rad)|(to\w+)$/g.exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=st){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case at:r=""+(360*n).toFixed(2);break;case lt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==ot[i]&&(r=ot[i]),r}function ct(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:_e(n)}:void 0:{color:_e(n)}}function ft(e){return ne(e)&&(e=e.replace("Capture","")),Q[e]?Q[e][1]:e}class dt extends rt{constructor(e){super(),this.id="",this.style={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}setStyleAttribute(e){this.style={};let t=e;if(!Array.isArray(t)&&Object.hasOwnProperty.call(t,0)){const e=[],n={};Object.keys(t).forEach(r=>{var i;i=r,Y.test(i)?e.push(t[r]):n[r]=t[r]}),t=[...e,n]}Array.isArray(t)||(t=[t]);let n={};t.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=w(w({},n),e)}):"object"==typeof e&&e&&(n=w(w({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(it,e)&&(e=it[e]),"transform"===e){const e={};if(!Array.isArray(t))throw new TypeError("transform only support array args");t.forEach(t=>{Object.keys(t).forEach(n=>{const r=t[n];r instanceof Fe||r instanceof Be?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof Fe||t instanceof Be)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Le(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=_e(t);else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=ut(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=ct(e);t&&r.push(t)}}else{const t=ct(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=le(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttributes(e=[]){Array.isArray(e)&&e.length>0&&(e.forEach(e=>{if(Array.isArray(e)){const[t,n]=e;this.setAttribute(t,n,{notToNative:!0})}}),tt(this))}parseAnimationStyleProp(e){let t=!1;Object.keys(e).some(n=>{const r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(let e=0;e["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,function(e){if(!e.isMounted)return;const t=j(),[n,r]=Je(t,e)||{};n&&$e.push({type:We.updateNode,nodes:n,eventNodes:r})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=ee(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>{if("function"==typeof t){const i=ft(e);this.attributes[i]=t,this.events[e]?this.events[e]&&this.events[e].type!==W&&(this.events[e].type=W):this.events[e]={name:i,type:W,isCapture:ne(e),listener:(n=i,r=e,e=>{const{id:t,currentId:i,params:o,eventPhase:a}=e,l={id:t,nativeName:n,originalName:r,params:o,currentId:i,eventPhase:a};he.receiveComponentEvent(l,e)})}}else{const n=ft(e);if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(e,this.events)&&"function"!=typeof t)return delete this.attributes[n],this.events[e].type=V,!1;this.attributes[e]=t}var n,r;return!1}}].some(e=>!!e.match()&&(n=e.action(),!0)),n}setAttribute(e,t,n={}){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&tt(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&tt(this)}catch(e){}}removeAttribute(e){delete this.attributes[e]}setStyle(e,t,n=!1){if(null===t)return void delete this.style[e];let r=t,i=e;Object.prototype.hasOwnProperty.call(it,e)&&(i=it[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Le(r):i.toLowerCase().indexOf("color")>-1?_e(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&re.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||tt(this))}setNativeProps(e){if(e){const{style:t}=e;if(t){const e=t;Object.keys(e).forEach(t=>{this.setStyle(t,e[t],!0)}),tt(this),Ke(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ee(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class pt extends rt{constructor(){super(),this.documentElement=new dt("document")}createElement(e){return new dt(e)}createElementNS(e,t){return new dt(`${e}:${t}`)}}pt.createElement=pt.prototype.createElement,pt.createElementNS=pt.prototype.createElementNS;var ht=Array.isArray,mt=Object.keys,yt=Object.prototype.hasOwnProperty;const gt=setTimeout,bt=clearTimeout;var vt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){Ke(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:gt,cancelTimeout:bt,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){H(o,e.nodeId);const a=Object.keys(t||{});if(0===a.length)return;const l=a.map(e=>[e,t[e]]);e.setAttributes(l)},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),H(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",ee(e)),i.meta={component:{name:"Text"}},H(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(n).forEach(e=>{const t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)}),Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=ht(t),l=ht(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=mt(t);if((i=d.length)!==mt(n).length)return!1;for(r=i;0!=r--;)if(!yt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),B(t)},removeChildFromContainer:function(e,t){e.removeChild(t),B(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=w(w({},t),{},{style:w(w({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const wt=a()(w(w({},vt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var kt=Object.freeze({__proto__:null,getString:function(){return C.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){C.callNative("ClipboardModule","setString",e)}});var Et=Object.freeze({__proto__:null,getCookies:function(e){return C.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),C.callNative("network","setCookie",e,t,r)}});function St(e){return C.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Ct(e){C.callNative("ImageLoaderModule","prefetch",e)}var xt=Object.freeze({__proto__:null,getSize:St,prefetch:Ct});const Nt=new Map;let Pt;class It{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(_t(this.eventName,this.listener),this.listener=void 0)}}function _t(e,t){if(t instanceof It)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");Pt.listenerSize(n)<=1&&C.callNative("NetInfo","removeListener",n);const r=Nt.get(t);r&&(r.remove(),Nt.delete(t))}var Lt=Object.freeze({__proto__:null,addEventListener:function(e,t){Pt=new be;let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Pt.listenerSize(n)<1&&C.callNative("NetInfo","addListener",n);const r=Pt.addListener(n,e=>{t(e)});return Nt.set(t,r),new It(n,t)},removeEventListener:_t,fetch:function(){return C.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:At,updateNode:Rt,deleteNode:zt,flushBatch:Tt,endBatch:Ot,sendRenderError:jt}=N,Ft=function(e){return F(t=>t.stateNode&&t.stateNode.nodeId===e)};function Ht(e){if(e instanceof dt)return e;const t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){let e=t.child;for(;e&&!(e.stateNode instanceof dt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Mt(e){let t=e;if("string"==typeof e){const n=F(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=Ht(t);return e?e.nodeId:0}return t.nodeId}function Dt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Ht(e);t&&({nodeId:i,nativeName:r}=t)}if(!r)throw new Error("callUIFunction is calling a unnamed component");if(!i)throw new Error("callUIFunction is calling a component have no nodeId");let[o=[],a]=n;ie(o)&&(a=o,o=[]);null!==j()&&(Z(),N.callUIFunction(i,t,o,a))}function Ut(e,t,n){const r=Mt(t);return new Promise((t,i)=>r?(Z(),N.callUIFunction(r,e,[],e=>(n&&ie(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&ie(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Bt=Object.freeze({__proto__:null,createNode:At,updateNode:Rt,deleteNode:zt,flushBatch:Tt,endBatch:Ot,sendRenderError:jt,getNodeById:Ft,getNodeIdByRef:Mt,getElementFromFiberRef:Ht,callUIFunction:Dt,measureInWindow:function(e,t){return Ut("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===x.platform.OS?Ut("measureInWindow",e,t):Ut("measureInAppWindow",e,t)}});const Wt=new be,Vt=new Set,$t={exitApp(){C.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(C.callNative("DeviceEventModule","setListenBackPress",!0),Vt.add(e),{remove(){$t.removeListener(e)}}),removeListener(e){Vt.delete(e),0===Vt.size&&C.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Wt.addListener("hardwareBackPress",()=>{let e=!0;[...Vt].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&$t.exitApp()})}},qt=($t.initEventListener(),$t),{flushSync:Qt}=wt,{addEventListener:Gt,removeEventListener:Kt,dispatchEvent:Yt,AsyncStorage:Xt,Bridge:Jt,Device:Zt,HippyRegister:en}=A;var tn=Object.freeze({__proto__:null,addEventListener:Gt,removeEventListener:Kt,dispatchEvent:Yt,AsyncStorage:Xt,BackAndroid:qt,Bridge:Jt,Clipboard:kt,Cookie:Et,Device:Zt,HippyRegister:en,ImageLoader:xt,NetworkInfo:Lt,UIManager:Bt,flushSync:Qt});const{createContainer:nn,updateContainer:rn,getPublicRootInstance:on,injectIntoDevTools:an}=wt,ln=['%c[Hippy-React "2.2.1"]%c',"color: #61dafb","color: auto"];class sn{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new pt;this.rootContainer=nn(t,0,!1,null)}static get Native(){return tn}start(){en.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:o=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;Z(...ln,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&oe(r),o&&function(e=!1){J=e}(o),O(l,this.rootContainer);const s=i.a.createElement(n,e);return rn(s,this.rootContainer,null,a),on(this.rootContainer)}}sn.version="2.2.1";const un={registerComponent(e,t){new sn({appName:e,entryPage:t}).start()}};class cn extends i.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Dt(this.instance,"setPressed",[e])}setHotspot(e,t){Dt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,s),o=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(o.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=_e(a.color)),i.a.createElement("div",w({ref:e=>{this.instance=e},nativeName:"View",style:o},r))}}function fn(e,t){let{style:n}=e,r=E(e,u);const o=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(o[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=ee(r.children);else if("number"==typeof r.children)r.text=ee(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=ee(e),r.children=r.text)}return i.a.createElement("p",w({ref:t,nativeName:"Text",style:o},r))}fn.displayName="Text";const dn=i.a.forwardRef(fn);dn.displayName="Text";var pn=Object.freeze({__proto__:null,default:dn});class hn extends i.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=St(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:o,source:a,sources:l,src:s,srcs:u,tintColor:f,tintColors:d}=e,p=E(e,c),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=le(p.defaultSource));const m=w({},n);return this.handleTintColor(m,f,d),p.style=m,t?i.a.createElement(cn,{style:n},i.a.createElement("img",w(w({},p),{},{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",w(w({},p),{},{nativeName:"Image",alt:"",ref:o}))}getImageUrls({src:e,srcs:t,source:n,sources:r}){let i=[];if("string"==typeof e&&i.push(e),Array.isArray(t)&&(i=[...i,...t]),n)if("string"==typeof n)i.push(n);else if("object"==typeof n&&null!==n){const{uri:e}=n;e&&i.push(e)}return r&&Array.isArray(r)&&r.forEach(e=>{"string"==typeof e?i.push(e):"object"==typeof e&&null!==e&&e.uri&&i.push(e.uri)}),i.length&&(i=i.map(e=>le(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}hn.prefetch=Ct;class mn{constructor(){this.Value=mn.Value}static Value(e){return e}static timing(e,t){return new Fe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}mn.View=cn,mn.Text=pn,mn.Image=hn;const yn={step0:e=>e>0?1:0,step1:e=>e>=1?1:0,linear:()=>"linear",ease:()=>"ease",quad:e=>e**2,cubic:e=>e**3,poly:e=>t=>t**e,sin:e=>1-Math.cos(e*Math.PI/2),circle:e=>1-Math.sqrt(1-e*e),exp:e=>2**(10*(e-1)),elastic:()=>"elastic",back:(e=1.70158)=>t=>t*t*((e+1)*t-e),bounce(e){let t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?(t-=1.5/2.75,7.5625*t*t+.75):t<2.5/2.75?(t-=2.25/2.75,7.5625*t*t+.9375):(t-=2.625/2.75,7.5625*t*t+.984375)},bezier:()=>"bezier",in:()=>"ease-in",out:()=>"ease-out",inOut:()=>"ease-in-out"};function gn(e){return i.a.createElement("li",w({nativeName:"ListViewItem"},e))}class bn extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Dt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Dt(this.instance,"collapsePullHeaderWithOptions",[e]):Dt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=E(e,f);return i.a.createElement("div",w({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class vn extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Dt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Dt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=E(e,d);return i.a.createElement("div",w({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class wn extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Dt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Dt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:o,renderPullFooter:a,getRowType:l,getRowStyle:s,getRowKey:u,dataSource:c,initialListSize:f,rowShouldSticky:d,onRowLayout:h,onHeaderPulling:m,onHeaderReleased:y,onFooterPulling:g,onFooterReleased:b,onAppear:v,onDisappear:k,onWillAppear:S,onWillDisappear:C}=e,x=E(e,p),N=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const p=this.getPullHeader(o,m,y),E=this.getPullFooter(a,g,b);!t&&c&&(t=c.length),e||(t=Math.min(t,f||10));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&N.push(i.a.createElement(gn,w({},t),n))}p&&N.unshift(p),E&&N.push(E),"function"==typeof d&&Object.assign(x,{rowShouldSticky:!0});const P=[v,k,S,C];x.exposureEventEnabled=P.some(e=>"function"==typeof e),"ios"===Zt.platform.OS&&(x.numberOfRows=N.length),x.initialListSize=f,x.style=w({},n)}return i.a.createElement("ul",w({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},x),N.length?N:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(bn,{key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(vn,{key:"pull-footer",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleRowProps(e,t,{getRowKey:n,getRowStyle:r,onRowLayout:i,getRowType:o,rowShouldSticky:a}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}"function"==typeof a&&(e.sticky=a(t))}}wn.defaultProps={numberOfRows:0};class kn extends i.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Dt(this.instance,"startRefresh",null)}refreshCompleted(){Dt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=E(e,h);return i.a.createElement("div",w({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}}class En{constructor(){this.top=null,this.size=0}push(e){this.top={data:e,next:this.top},this.size+=1}peek(){return null===this.top?null:this.top.data}pop(){if(null===this.top)return null;const e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}clear(){this.top=null,this.size=0}displayAll(){const e=[];if(null===this.top)return e;let t=this.top;for(let n=0,r=this.size;n1&&this.pop({animated:!0})}push(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName]){new sn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Dt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Dt(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=E(e.initialRoute,y),r=E(e,m);return r.initialRoute=n,i.a.createElement("div",w({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function Cn(e){return i.a.createElement("div",w(w({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class xn extends i.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&Dt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Dt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=E(e,g);let o=[];return Array.isArray(t)?o=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),i.a.createElement(Cn,w({},t),e)}):o.push(i.a.createElement(Cn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",w({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),o)}}function Nn(){const e=x.platform.Localization;return!!e&&1===e.direction}const Pn={caretColor:"caret-color"};class In extends i.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this.onChangeText=this.onChangeText.bind(this),this.onKeyboardWillShow=this.onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{Dt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Dt(this.instance,"setValue",[e]),e}focus(){Dt(this.instance,"focusTextInput",[])}blur(){Dt(this.instance,"blurTextInput",[])}showInputMethod(){}hideInputMethod(){}clear(){Dt(this.instance,"clear",[])}render(){const e=w({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(Pn[t]&&(n=Pn[t]),Array.isArray(e.style)?e.style.push({[n]:r}):e.style&&"object"==typeof e.style?e.style[n]=r:e.style={[n]:r},delete e[t])}),Nn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),i.a.createElement("div",w(w({nativeName:"TextInput"},e),{},{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}onChangeText(e){const{onChangeText:t}=this.props;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}onKeyboardWillShow(e){const{onKeyboardWillShow:t}=this.props;"function"==typeof t&&t(e)}}const _n=Zt.window.scale;let Ln=Math.round(.4*_n)/_n;function An(e){return e}0===Ln&&(Ln=1/_n);var Rn=Object.freeze({__proto__:null,get hairlineWidth(){return Ln},create:An});const zn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class Tn extends i.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"number"==typeof e||"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Dt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Dt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,o=[e?zn.contentContainerHorizontal:zn.contentContainerVertical,t],a=e?Object.assign({},zn.baseHorizontal,r):Object.assign({},zn.baseVertical,r);return e&&(a.flexDirection=Nn()?"row-reverse":"row"),i.a.createElement("div",w(w({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),i.a.createElement(cn,{style:o},n))}}const On={modal:{position:"absolute",collapsable:!1}};class jn extends i.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Zt.platform.OS&&(this.eventSubscription=new ye("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Zt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:o}=this.props;if(!1===t)return null;const a={backgroundColor:n?"transparent":"white"};return o||(o="none",r&&(o="slide")),i.a.createElement("div",w({nativeName:"Modal",animationType:o,transparent:n,style:[On.modal,a]},this.props),e)}}jn.defaultProps={visible:!0};class Fn extends i.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}render(){var e,t,n;const{requestFocus:r,children:o,nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=i.a.Children.only(o);let y;(null===(t=null===(e=null==m?void 0:m.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?y=m.child.memoizedProps.nativeName:(null===(n=null==m?void 0:m.type)||void 0===n?void 0:n.displayName)&&(y=m.type.displayName);const g=a&&Mt(a),b=l&&Mt(l),v=s&&Mt(s),k=u&&Mt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=w(w({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return i.a.createElement(cn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:v,nextFocusRightId:k,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:S}=m.memoizedProps;return i.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:S,style:E,onFocus:this.handleFocus})}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}}function Hn(e){return i.a.createElement("iframe",w({title:"hippy",nativeName:"WebView"},e))}let Mn;class Dn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Mn||(Mn=new ye("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=w({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Mn.addCallback(this.onWebSocketEvent),C.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,C.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);C.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Mn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Un(e){return i.a.createElement("li",w({nativeName:"WaterfallItem"},e))}class Bn extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}scrollToIndex({index:e=0,animated:t=!0}){Dt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Dt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{style:t={},renderBanner:n,numberOfColumns:r=2,columnSpacing:o=0,interItemSpacing:a=0,numberOfItems:l=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:f,getItemType:d,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:k,onFooterReleased:S,containPullHeader:C=!1,containPullFooter:x=!1,containBannerView:N=!1}=e,P=w(w({},E(e,b)),{},{style:t,numberOfColumns:r,columnSpacing:o,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:C,containPullFooter:x,containBannerView:N}),I=[];if("function"==typeof n){const e=n();e&&(I.push(i.a.createElement(cn,{key:"bannerView"},i.a.cloneElement(e))),P.containBannerView=!0)}if("function"==typeof u){const e=this.getPullHeader(c,g,v),n=this.getPullFooter(f,k,S);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},P),I)}componentDidMount(){const{getItemKey:e}=this.props}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i.call(this,e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(bn,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(vn,{key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}}e.WebSocket=Dn;const{AsyncStorage:Wn,BackAndroid:Vn,Bridge:$n,Clipboard:qn,Cookie:Qn,Device:Gn,HippyRegister:Kn,ImageLoader:Yn,NetworkInfo:Xn,UIManager:Jn,flushSync:Zn}=tn,{callNative:er,callNativeWithPromise:tr,callNativeWithCallbackId:nr,removeNativeCallback:rr}=$n,ir=null,or=e.ConsoleModule||e.console,ar=Gn.platform,lr=sn,sr=sn,ur=hn,cr=Kn,fr=be,dr=ye,pr={get:e=>Gn[e]},hr={get:()=>Gn.screen.scale}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ /** @license React v0.26.2 * react-reconciler.production.min.js * @@ -29,7 +29,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,P(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var bt=null,vt=null;(0,a.unstable_now)();var wt=0,kt=8;function Et(e){if(0!=(1&e))return kt=15,1;if(0!=(2&e))return kt=14,2;if(0!=(4&e))return kt=13,4;var t=24&e;return 0!==t?(kt=12,t):0!=(32&e)?(kt=11,32):0!==(t=192&e)?(kt=10,t):0!=(256&e)?(kt=9,256):0!==(t=3584&e)?(kt=8,t):0!=(4096&e)?(kt=7,4096):0!==(t=4186112&e)?(kt=6,t):0!==(t=62914560&e)?(kt=5,t):67108864&e?(kt=4,67108864):0!=(134217728&e)?(kt=3,134217728):0!==(t=805306368&e)?(kt=2,t):0!=(1073741824&e)?(kt=1,1073741824):(kt=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return kt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=kt=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=Et(s),i=kt):0!==(l&=o)&&(r=Et(l),i=kt)}else 0!==(o=n&~a)?(r=Et(o),i=kt):0!==l&&(r=Et(l),i=kt);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function Pt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Rt|0)|0},Lt=Math.log,Rt=Math.LN2;var At=a.unstable_runWithPriority,zt=a.unstable_scheduleCallback,Tt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Dt=a.unstable_UserBlockingPriority,Ut=a.unstable_NormalPriority,Wt=a.unstable_LowPriority,Bt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},qt=null,Qt=null,Kt=!1,Gt=Ft(),Yt=1e4>Gt?Ft:function(){return Ft()-Gt};function Xt(){switch(Ht()){case Mt:return 99;case Dt:return 98;case Ut:return 97;case Wt:return 96;case Bt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Dt;case 97:return Ut;case 96:return Wt;case 95:return Bt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),At(e,t)}function en(e,t,n){return e=Jt(e),zt(e,t,n)}function tn(){if(null!==Qt){var e=Qt;Qt=null,Tt(e)}nn()}function nn(){if(!Kt&&null!==qt){Kt=!0;var e=0;try{var t=qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var v=y(i,d,b.value,u);if(null===v){null===d&&(d=h);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v,d=h}if(b.done)return n(i,d),c;if(null===d){for(;!b.done;p++,b=s.next())null!==(b=m(i,b.value,u))&&(a=o(b,a,p),null===f?c=b:f.sibling=b,f=b);return c}for(d=r(i,d);!b.done;p++,b=s.next())null!==(b=g(d,i,p,b.value,u))&&(e&&null!==b.alternate&&d.delete(null===b.key?p:b.key),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===k&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Wa(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Ua(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return b(r,o,s,d);if(I(s))return v(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,P(r.type)||"Component"))}return n(r,o)}}var Dn=Mn(!0),Un=Mn(!1),Wn={},Bn=it(Wn),Vn=it(Wn),$n=it(Wn);function qn(e){if(e===Wn)throw Error(l(174));return e}function Qn(e,t){at($n,t),at(Vn,e),at(Bn,Wn),e=j(t),ot(Bn),at(Bn,e)}function Kn(){ot(Bn),ot(Vn),ot($n)}function Gn(e){var t=qn($n.current),n=qn(Bn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Bn,t))}function Yn(e){Vn.current===e&&(ot(Bn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||De(n)||Ue(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=Be(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=Be(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ke(e)}else er=Zn?Be(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Gr,e=n(r,i)}while(gr)}if(cr.current=qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function kr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function Er(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function Cr(e,t){return"function"==typeof t?t(e):t}function xr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,Eo|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ir(e,t,n){var r=t._getVersion;r=r(t._source);var i=G?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(G?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Pr(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Ir(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Ko(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Io&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Io&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Pi(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Kn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Kn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ri="function"==typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ro||(Ro=!0,Ao=r),Li(0,t)},n}function zi(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===zo?zo=new Set([this]):zo.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var Ti="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ea(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Ie(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(va(n,e),ba(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&In(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}In(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):xe(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?Ce(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Di(e,t){if(vt&&"function"==typeof vt.onCommitFiberUnmount)try{vt.onCommitFiberUnmount(bt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))va(t,n);else{r=t;try{i()}catch(e){Ea(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ea(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Re(t),Te(t,e))}}function Ui(e,t){for(var n=t;;)if(Di(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Wi(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Bi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Bi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(Ee(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Bi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Ui(e,i),r?ke(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Di(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ge(t.containerInfo))));case 12:return;case 13:return Qi(t),void Ki(t);case 19:return void Ki(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return Qi(t),void Ki(t);case 19:return void Ki(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ge(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Te(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function Qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Ki(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ti),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Gi(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==vo&&(vo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ai(0,o,t));break e;case 1:o=s;var k=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===zo||!zo.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,xn(d,zi(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=qr,null===e?qr:e}function sa(){0!==vo&&3!==vo||(vo=4),null===ho||0==(134217727&Eo)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,vo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Ii(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Bo&&(Bo=ko),0===(t=Nt(62914560&~Bo))&&(t=4194304)));var n=Qo();null!==(e=Yo(e,t))&&(Pt(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Gn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:Qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Ei(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),bn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,kn(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,Tn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===v)return 14;if(e===k)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,En(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Qa,findFiberByHostInstance:e.findFiberByHostInstance||Ka,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{bt=t.inject(e),vt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Po(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=Qo(),a=Ko(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Cn(i,t),Go(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; +e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,I(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var bt=null,vt=null;(0,a.unstable_now)();var wt=0,kt=8;function Et(e){if(0!=(1&e))return kt=15,1;if(0!=(2&e))return kt=14,2;if(0!=(4&e))return kt=13,4;var t=24&e;return 0!==t?(kt=12,t):0!=(32&e)?(kt=11,32):0!==(t=192&e)?(kt=10,t):0!=(256&e)?(kt=9,256):0!==(t=3584&e)?(kt=8,t):0!=(4096&e)?(kt=7,4096):0!==(t=4186112&e)?(kt=6,t):0!==(t=62914560&e)?(kt=5,t):67108864&e?(kt=4,67108864):0!=(134217728&e)?(kt=3,134217728):0!==(t=805306368&e)?(kt=2,t):0!=(1073741824&e)?(kt=1,1073741824):(kt=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return kt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=kt=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=Et(s),i=kt):0!==(l&=o)&&(r=Et(l),i=kt)}else 0!==(o=n&~a)?(r=Et(o),i=kt):0!==l&&(r=Et(l),i=kt);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function It(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/At|0)|0},Lt=Math.log,At=Math.LN2;var Rt=a.unstable_runWithPriority,zt=a.unstable_scheduleCallback,Tt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Dt=a.unstable_UserBlockingPriority,Ut=a.unstable_NormalPriority,Bt=a.unstable_LowPriority,Wt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},qt=null,Qt=null,Gt=!1,Kt=Ft(),Yt=1e4>Kt?Ft:function(){return Ft()-Kt};function Xt(){switch(Ht()){case Mt:return 99;case Dt:return 98;case Ut:return 97;case Bt:return 96;case Wt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Dt;case 97:return Ut;case 96:return Bt;case 95:return Wt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),Rt(e,t)}function en(e,t,n){return e=Jt(e),zt(e,t,n)}function tn(){if(null!==Qt){var e=Qt;Qt=null,Tt(e)}nn()}function nn(){if(!Gt&&null!==qt){Gt=!0;var e=0;try{var t=qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var v=y(i,d,b.value,u);if(null===v){null===d&&(d=h);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v,d=h}if(b.done)return n(i,d),c;if(null===d){for(;!b.done;p++,b=s.next())null!==(b=m(i,b.value,u))&&(a=o(b,a,p),null===f?c=b:f.sibling=b,f=b);return c}for(d=r(i,d);!b.done;p++,b=s.next())null!==(b=g(d,i,p,b.value,u))&&(e&&null!==b.alternate&&d.delete(null===b.key?p:b.key),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===k&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ba(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Ua(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return b(r,o,s,d);if(P(s))return v(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,I(r.type)||"Component"))}return n(r,o)}}var Dn=Mn(!0),Un=Mn(!1),Bn={},Wn=it(Bn),Vn=it(Bn),$n=it(Bn);function qn(e){if(e===Bn)throw Error(l(174));return e}function Qn(e,t){at($n,t),at(Vn,e),at(Wn,Bn),e=j(t),ot(Wn),at(Wn,e)}function Gn(){ot(Wn),ot(Vn),ot($n)}function Kn(e){var t=qn($n.current),n=qn(Wn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Wn,t))}function Yn(e){Vn.current===e&&(ot(Wn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||De(n)||Ue(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=We(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=We(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ge(e)}else er=Zn?We(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Kr,e=n(r,i)}while(gr)}if(cr.current=qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function kr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function Er(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function Cr(e,t){return"function"==typeof t?t(e):t}function xr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,Eo|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=K?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(K?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Ir(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Pr(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Go(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Ii(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ai="function"==typeof WeakMap?WeakMap:Map;function Ri(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ao||(Ao=!0,Ro=r),Li(0,t)},n}function zi(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===zo?zo=new Set([this]):zo.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var Ti="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ea(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(va(n,e),ba(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):xe(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?Ce(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Di(e,t){if(vt&&"function"==typeof vt.onCommitFiberUnmount)try{vt.onCommitFiberUnmount(bt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))va(t,n);else{r=t;try{i()}catch(e){Ea(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ea(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Ae(t),Te(t,e))}}function Ui(e,t){for(var n=t;;)if(Di(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Bi(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(Ee(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Ui(e,i),r?ke(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Di(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ke(t.containerInfo))));case 12:return;case 13:return Qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return Qi(t),void Gi(t);case 19:return void Gi(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ke(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Te(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function Qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ti),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==vo&&(vo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ri(0,o,t));break e;case 1:o=s;var k=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===zo||!zo.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,xn(d,zi(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=qr,null===e?qr:e}function sa(){0!==vo&&3!==vo||(vo=4),null===ho||0==(134217727&Eo)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,vo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Wo&&(Wo=ko),0===(t=Nt(62914560&~Wo))&&(t=4194304)));var n=Qo();null!==(e=Yo(e,t))&&(It(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Kn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:Qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Ei(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),bn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,kn(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,Tn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===v)return 14;if(e===k)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,En(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{bt=t.inject(e),vt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=Qo(),a=Go(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Cn(i,t),Ko(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @@ -42,7 +42,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n("./node_modules/object-assign/index.js"),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],P=[],_=1,L=null,R=3,A=!1,z=!1,T=!1;function O(e){for(var t=C(P);null!==t;){if(null===t.callback)x(P);else{if(!(t.startTime<=e))break;x(P),t.sortIndex=t.expirationTime,S(I,t)}t=C(P)}}function j(e){if(T=!1,O(e),!z)if(null!==C(I))z=!0,r(F);else{var t=C(P);null!==t&&i(j,t.startTime-e)}}function F(e,n){z=!1,T&&(T=!1,o()),A=!0;var r=R;try{for(O(n),L=C(I);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,R=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===C(I)&&x(I),O(n)}else x(I);L=C(I)}if(null!==L)var s=!0;else{var u=C(P);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,R=r,A=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){z||A||(z=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return C(I)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(P,e),null===C(I)&&e===C(P)&&(T?o():T=!0,i(j,a-l))):(e.sortIndex=s,S(I,e),z||A||(z=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,b=-1,v=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],_=1,L=null,A=3,R=!1,z=!1,T=!1;function O(e){for(var t=C(I);null!==t;){if(null===t.callback)x(I);else{if(!(t.startTime<=e))break;x(I),t.sortIndex=t.expirationTime,S(P,t)}t=C(I)}}function j(e){if(T=!1,O(e),!z)if(null!==C(P))z=!0,r(F);else{var t=C(I);null!==t&&i(j,t.startTime-e)}}function F(e,n){z=!1,T&&(T=!1,o()),R=!0;var r=A;try{for(O(n),L=C(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,A=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===C(P)&&x(P),O(n)}else x(P);L=C(P)}if(null!==L)var s=!0;else{var u=C(I);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,A=r,R=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){z||R||(z=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(I,e),null===C(P)&&e===C(I)&&(T?o():T=!0,i(j,a-l))):(e.sortIndex=s,S(P,e),z||R||(z=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/driver/js/packages/global.d.ts b/driver/js/packages/global.d.ts index cd397bcd7..d63b79e7f 100644 --- a/driver/js/packages/global.d.ts +++ b/driver/js/packages/global.d.ts @@ -458,6 +458,13 @@ declare namespace HippyTypes { CLOSED, } + export enum EventPhase { + NONE, + CAPTURING_PHASE, + AT_TARGET, + BUBBLING_PHASE, + } + export interface DOMEvent { id: number; currentId: number; @@ -465,6 +472,7 @@ declare namespace HippyTypes { currentTarget?: number | object; params?: any; type: string; + eventPhase: EventPhase; stopPropagation: () => void; } diff --git a/driver/js/packages/hippy-react/src/dom/element-node.ts b/driver/js/packages/hippy-react/src/dom/element-node.ts index 9ea5fdde0..333514488 100644 --- a/driver/js/packages/hippy-react/src/dom/element-node.ts +++ b/driver/js/packages/hippy-react/src/dom/element-node.ts @@ -33,7 +33,7 @@ import { isCaptureEvent, hasTargetEvent, } from '../utils'; -import { eventNamesMap, eventHandlerType, NATIVE_EVENT_INDEX, isNativeGesture } from '../utils/node'; +import { eventNamesMap, eventHandlerType, NATIVE_EVENT_INDEX } from '../utils/node'; import { EventDispatcher } from '../event'; import ViewNode from './view-node'; @@ -230,19 +230,18 @@ function getEventName(key: string) { return key; } -function createEventListener(name): (event: HippyTypes.DOMEvent) => void { +function createEventListener(nativeName, originalName): (event: HippyTypes.DOMEvent) => void { return (event) => { - const { id, currentId, params } = event; - if (isNativeGesture(name)) { - const dispatcherEvent = { - id, name, currentId, - }; - Object.assign(dispatcherEvent, params); - EventDispatcher.receiveNativeGesture(dispatcherEvent, event); - } else { - const dispatcherEvent = [currentId, name, params]; - EventDispatcher.receiveUIComponentEvent(dispatcherEvent); - } + const { id, currentId, params, eventPhase } = event; + const dispatcherEvent = { + id, + nativeName, + originalName, + params, + currentId, + eventPhase, + }; + EventDispatcher.receiveComponentEvent(dispatcherEvent, event); }; } @@ -496,22 +495,25 @@ class ElementNode extends ViewNode { if (typeof value === 'function') { const eventName = getEventName(key); this.attributes[eventName] = value; - if (!this.events[eventName]) { - this.events[eventName] = { + if (!this.events[key]) { + // add event initially + this.events[key] = { name: eventName, type: eventHandlerType.ADD, isCapture: isCaptureEvent(key), - listener: createEventListener(eventName), + listener: createEventListener(eventName, key), }; - } else if (this.events[eventName] && this.events[eventName].type !== eventHandlerType.ADD) { - this.events[eventName].type = eventHandlerType.ADD; + } else if (this.events[key] && this.events[key].type !== eventHandlerType.ADD) { + // add event again when it is removed before + this.events[key].type = eventHandlerType.ADD; } } else { const eventName = getEventName(key); - if (hasTargetEvent(eventName, this.events) + if (hasTargetEvent(key, this.events) && typeof value !== 'function') { + // remove event delete this.attributes[eventName]; - this.events[eventName].type = eventHandlerType.REMOVE; + this.events[key].type = eventHandlerType.REMOVE; return false; } this.attributes[key] = value; diff --git a/driver/js/packages/hippy-react/src/event/dispatcher.ts b/driver/js/packages/hippy-react/src/event/dispatcher.ts index bbdda8846..991b83c2e 100644 --- a/driver/js/packages/hippy-react/src/event/dispatcher.ts +++ b/driver/js/packages/hippy-react/src/event/dispatcher.ts @@ -19,8 +19,13 @@ */ import { Fiber } from '@hippy/react-reconciler'; -import { getFiberNodeFromId, getElementFromFiber, eventNamesMap, NATIVE_EVENT_INDEX } from '../utils/node'; -import { trace, isGlobalBubble } from '../utils'; +import { + getFiberNodeFromId, + getElementFromFiber, + isNativeGesture, + DOMEventPhase, +} from '../utils/node'; +import { trace, warn, isGlobalBubble, isCaptureEvent } from '../utils'; import HippyEventHub from './hub'; import Event from './event'; @@ -29,70 +34,58 @@ type EventParam = string[] | number[]; interface NativeEvent { id: number; currentId: number; - name: string; + nativeName: string; + originalName: string; + eventPhase: HippyTypes.EventPhase, + params?: any } const eventHubs = new Map(); const componentName = ['%c[event]%c', 'color: green', 'color: auto']; -/** - * convertEventName - convert all special event name - * @param eventName - * @param nodeItem - */ -function convertEventName(eventName: string, nodeItem: Fiber) { - let processedEvenName = eventName; - if (nodeItem.memoizedProps && !nodeItem.memoizedProps[eventName]) { - const eventNameList = Object.keys(eventNamesMap); - for (let i = 0; i < eventNameList.length; i += 1) { - const uiEvent = eventNameList[i]; - const eventList = eventNamesMap[uiEvent]; - if (nodeItem.memoizedProps[uiEvent] && eventName === eventList[NATIVE_EVENT_INDEX]) { - processedEvenName = uiEvent; - break; - } - } - } - return processedEvenName; -} - function isNodePropFunction(prop: string, nextNodeItem: Fiber) { return !!(nextNodeItem.memoizedProps && typeof nextNodeItem.memoizedProps[prop] === 'function'); } /** - * triggerEvent - process event + * dispatchGestureEvent - dispatch event * @param {string} eventName * @param {NativeEvent} nativeEvent * @param {Fiber} currentItem * @param {Fiber} targetItem + * @param {any} params * @param {HippyTypes.DOMEvent} domEvent */ -function triggerEvent( +function dispatchGestureEvent( eventName: string, nativeEvent: NativeEvent, currentItem: Fiber, targetItem: Fiber, + params: any, domEvent: HippyTypes.DOMEvent, ) { - let isStopBubble: any = false; - const captureEventName = `${eventName}Capture`; - const targetNode = getElementFromFiber(targetItem); - const currentTargetNode = getElementFromFiber(currentItem); try { - // handle capture phase event - if (isNodePropFunction(captureEventName, currentItem)) { - const syntheticEvent = new Event(captureEventName, currentTargetNode, targetNode); - Object.assign(syntheticEvent, nativeEvent); - currentItem.memoizedProps[captureEventName](syntheticEvent); + let isStopBubble: any = false; + const targetNode = getElementFromFiber(targetItem); + const currentTargetNode = getElementFromFiber(currentItem); + const { eventPhase } = domEvent; + // handle target & capture phase event + if (isNodePropFunction(eventName, currentItem) + && isCaptureEvent(eventName) + && [DOMEventPhase.AT_TARGET, DOMEventPhase.CAPTURING_PHASE].indexOf(eventPhase) > -1) { + const syntheticEvent = new Event(eventName, currentTargetNode, targetNode); + Object.assign(syntheticEvent, { eventPhase }, params); + currentItem.memoizedProps[eventName](syntheticEvent); if (!syntheticEvent.bubbles && domEvent) { domEvent.stopPropagation(); } } - // handle target phase event - if (isNodePropFunction(eventName, currentItem)) { + if (isNodePropFunction(eventName, currentItem) + && !isCaptureEvent(eventName) + && [DOMEventPhase.AT_TARGET, DOMEventPhase.BUBBLING_PHASE].indexOf(eventPhase) > -1) { + // handle target & bubbling phase event const syntheticEvent = new Event(eventName, currentTargetNode, targetNode); - Object.assign(syntheticEvent, nativeEvent); + Object.assign(syntheticEvent, { eventPhase }, params); isStopBubble = currentItem.memoizedProps[eventName](syntheticEvent); // If callback have no return, use global bubble config to set isStopBubble. if (typeof isStopBubble !== 'boolean') { @@ -102,7 +95,7 @@ function triggerEvent( if (!syntheticEvent.bubbles) { isStopBubble = true; } - if (isStopBubble !== false && domEvent) { + if (isStopBubble && domEvent) { domEvent.stopPropagation(); } } @@ -111,21 +104,67 @@ function triggerEvent( } } -function receiveNativeGesture(nativeEvent: NativeEvent, domEvent: HippyTypes.DOMEvent) { - trace(...componentName, 'receiveNativeGesture', nativeEvent); - if (!nativeEvent) { +/** + * dispatchUIEvent - dispatch ui event + * @param {string} eventName + * @param {NativeEvent} nativeEvent + * @param {Fiber} currentItem + * @param {Fiber} targetItem + * @param {any} params + * @param {HippyTypes.DOMEvent} domEvent + */ +function dispatchUIEvent( + eventName: string, + nativeEvent: NativeEvent, + currentItem: Fiber, + targetItem: Fiber, + params: any, + domEvent: HippyTypes.DOMEvent, +) { + let isStopBubble: any = false; + const targetNode = getElementFromFiber(targetItem); + const currentTargetNode = getElementFromFiber(currentItem); + try { + const { eventPhase } = domEvent; + // handle target & bubbling phase event + if (isNodePropFunction(eventName, currentItem) + && !isCaptureEvent(eventName) + && [DOMEventPhase.AT_TARGET, DOMEventPhase.BUBBLING_PHASE].indexOf(eventPhase) > -1) { + const syntheticEvent = new Event(eventName, currentTargetNode, targetNode); + Object.assign(syntheticEvent, { eventPhase }, params); + currentItem.memoizedProps[eventName](syntheticEvent); + isStopBubble = !isGlobalBubble(); + // event bubbles flag has higher priority + if (!syntheticEvent.bubbles) { + isStopBubble = true; + } + if (isStopBubble && domEvent) { + domEvent.stopPropagation(); + } + } + } catch (err) { + (console as any).reportUncaughtException(err); + } +} + +function receiveComponentEvent(nativeEvent: NativeEvent, domEvent: HippyTypes.DOMEvent) { + trace(...componentName, 'receiveComponentEvent', nativeEvent); + if (!nativeEvent || !domEvent) { + warn(...componentName, 'receiveComponentEvent', 'nativeEvent or domEvent not exist'); return; } - const { id, currentId, name } = nativeEvent; + const { id, currentId, nativeName, originalName, params } = nativeEvent; const currentTargetNode = getFiberNodeFromId(currentId); const targetNode = getFiberNodeFromId(id); if (!currentTargetNode || !targetNode) { + warn(...componentName, 'receiveComponentEvent', 'currentTargetNode or targetNode not exist'); return; } - const eventName = convertEventName(name, currentTargetNode); - const currentItem: Fiber = currentTargetNode; - const targetItem: Fiber = targetNode; - triggerEvent(eventName, nativeEvent, currentItem, targetItem, domEvent); + if (isNativeGesture(nativeName)) { + dispatchGestureEvent(originalName, nativeEvent, currentTargetNode, targetNode, params, domEvent); + } else { + dispatchUIEvent(originalName, nativeEvent, currentTargetNode, targetNode, params, domEvent); + } } function getHippyEventHub(eventName: any) { @@ -157,24 +196,6 @@ function unregisterNativeEventHub(eventName: any) { } } -function receiveUIComponentEvent(nativeEvent: any[]) { - trace(...componentName, 'receiveUIComponentEvent', nativeEvent); - if (!nativeEvent || !Array.isArray(nativeEvent) || nativeEvent.length < 2) { - return; - } - const [targetNodeId, eventName, eventParam] = nativeEvent; - if (typeof targetNodeId !== 'number' || typeof eventName !== 'string') { - return; - } - const targetNode = getFiberNodeFromId(targetNodeId); - if (!targetNode) { - return; - } - if (isNodePropFunction(eventName, targetNode)) { - targetNode.memoizedProps[eventName](eventParam); - } -} - function receiveNativeEvent(nativeEvent: EventParam) { trace(...componentName, 'receiveNativeEvent', nativeEvent); if (!nativeEvent || !Array.isArray(nativeEvent) || nativeEvent.length < 2) { @@ -196,8 +217,7 @@ const EventDispatcher = { getHippyEventHub, unregisterNativeEventHub, receiveNativeEvent, - receiveNativeGesture, - receiveUIComponentEvent, + receiveComponentEvent, }; if (global.__GLOBAL__) { diff --git a/driver/js/packages/hippy-react/src/event/event.ts b/driver/js/packages/hippy-react/src/event/event.ts index ecd885127..a686db27c 100644 --- a/driver/js/packages/hippy-react/src/event/event.ts +++ b/driver/js/packages/hippy-react/src/event/event.ts @@ -21,8 +21,6 @@ interface Event { type: string; bubbles: boolean; - cancelable: boolean; - timeStamp: Date | number; currentTarget: Element | null; target: Element | null; } @@ -37,7 +35,6 @@ class Event implements Event { public constructor(eventName: string, currentTarget: Element | null, target: Element | null) { this.type = eventName; this.bubbles = true; - this.timeStamp = Date.now(); // currentTarget is the node which the handler bind to this.currentTarget = currentTarget; // target is the node which triggered the real event diff --git a/driver/js/packages/hippy-react/src/utils/node.ts b/driver/js/packages/hippy-react/src/utils/node.ts index 6794eb8ac..841f22b50 100644 --- a/driver/js/packages/hippy-react/src/utils/node.ts +++ b/driver/js/packages/hippy-react/src/utils/node.ts @@ -190,6 +190,13 @@ const eventNamesMap: EventNamesMap = { onPress: ['onPress', 'onClick'], }; +const DOMEventPhase = { + NONE: 0, + CAPTURING_PHASE: 1, + AT_TARGET: 2, + BUBBLING_PHASE: 3, +}; + const nativeEventMap = { onClick: 'click', onLongClick: 'longclick', @@ -215,6 +222,7 @@ function translateToNativeEventName(name) { export { relativeToRefType, NATIVE_EVENT_INDEX, + DOMEventPhase, eventHandlerType, eventNamesMap, nativeEventMap, diff --git a/driver/js/packages/hippy-vue/src/renderer/element-node.js b/driver/js/packages/hippy-vue/src/renderer/element-node.js index 77a103cf6..23b5a73bc 100644 --- a/driver/js/packages/hippy-vue/src/renderer/element-node.js +++ b/driver/js/packages/hippy-vue/src/renderer/element-node.js @@ -34,7 +34,7 @@ import { warn, } from '../util'; import Native from '../runtime/native'; -import { eventHandlerType, isNativeGesture } from '../util/node'; +import { eventHandlerType } from '../util/node'; import { updateChild, updateWithChildren } from './native'; import { Event, EventDispatcher, EventEmitter } from './native/event'; import { Text } from './native/components'; @@ -200,19 +200,18 @@ function transverseEventNames(eventNames, callback) { } } -function createEventListener(name) { +function createEventListener(nativeName, originalName) { return (event) => { - const { id, currentId, params } = event; - if (isNativeGesture(name)) { - const dispatcherEvent = { - id, name, currentId, - }; - Object.assign(dispatcherEvent, params); - EventDispatcher.receiveNativeGesture(dispatcherEvent, event); - } else { - const dispatcherEvent = [currentId, name, params]; - EventDispatcher.receiveUIComponentEvent(dispatcherEvent, event); - } + const { id, currentId, params, eventPhase } = event; + const dispatcherEvent = { + id, + nativeName, + originalName, + currentId, + params, + eventPhase, + }; + EventDispatcher.receiveComponentEvent(dispatcherEvent, event); }; } @@ -540,7 +539,7 @@ class ElementNode extends ViewNode { this.events[nativeEventName] = { name: nativeEventName, type: eventHandlerType.ADD, - listener: createEventListener(nativeEventName), + listener: createEventListener(nativeEventName, eventName), isCapture: false, }; } else if (this.events[nativeEventName] && this.events[nativeEventName].type !== eventHandlerType.ADD) { diff --git a/driver/js/packages/hippy-vue/src/renderer/native/event/__tests__/dispatcher.test.js b/driver/js/packages/hippy-vue/src/renderer/native/event/__tests__/dispatcher.test.js index 5e7d8b9ce..ca1000fbb 100644 --- a/driver/js/packages/hippy-vue/src/renderer/native/event/__tests__/dispatcher.test.js +++ b/driver/js/packages/hippy-vue/src/renderer/native/event/__tests__/dispatcher.test.js @@ -9,7 +9,14 @@ let childNode; let textareaNode; let listview; let iframe; - +const dispatcherEvent = { + id: 0, + nativeName: '', + originalName: '', + currentId: 0, + params: {}, + eventPhase: 2, +}; before(() => { registerBuiltinElements(); const rootNode = new ElementNode('div'); @@ -26,7 +33,6 @@ before(() => { childNode.appendChild(textareaNode); childNode.appendChild(listview); textareaNode.addEventListener('test', () => {}); - const app = { executed: null, $el: rootNode, @@ -53,167 +59,169 @@ test('receiveNativeEvent test', (t) => { }); }); -test('receiveNativeGesture with wrong node id test', (t) => { - t.is(EventDispatcher.receiveNativeGesture(), undefined); - EventDispatcher.receiveNativeGesture({ - id: 100, - name: 'onTest', +test('receiveComponentEvent with wrong node id test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: 100, + nativeName: 'onTest', + }); + EventDispatcher.receiveComponentEvent(nativeEvent); + t.pass(); +}); + +test('receiveComponentEvent with wrong event name test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: 3, + nativeName: 'test', + }); + EventDispatcher.receiveComponentEvent(nativeEvent); + t.pass(); +}); + +test('receiveComponentEvent test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: 3, + nativeName: 'onTouchDown', + }); + EventDispatcher.receiveComponentEvent(nativeEvent); + t.pass(); +}); + +test('receiveComponentEvent with wrong node id type test', (t) => { + EventDispatcher.receiveComponentEvent({ + currentId: 'str', }); t.pass(); }); -test('receiveNativeGesture with wrong event name test', (t) => { - t.is(EventDispatcher.receiveNativeGesture(), undefined); - EventDispatcher.receiveNativeGesture({ - id: 3, - name: 'test', +test('receiveComponentEvent with wrong event name type test', (t) => { + EventDispatcher.receiveComponentEvent({ + currentId: 'str', }); t.pass(); }); -test('receiveNativeGesture test', (t) => { - t.is(EventDispatcher.receiveNativeGesture(), undefined); - EventDispatcher.receiveNativeGesture({ - id: 3, - name: 'onTouchDown', - }); - t.pass(); -}); - -test('receiveUIComponentEvent with wrong node id type test', (t) => { - EventDispatcher.receiveUIComponentEvent([ - 'str', - ]); - t.pass(); -}); - -test('receiveUIComponentEvent with wrong event name type test', (t) => { - EventDispatcher.receiveUIComponentEvent([ - 10, - 200, - ]); - t.pass(); -}); - -test('receiveUIComponentEvent with wrong event name test', (t) => { - EventDispatcher.receiveUIComponentEvent([ - 10, - 'onTest', - ]); - t.pass(); -}); - -test('receiveUIComponentEvent onChangeText test', (t) => { - t.is(EventDispatcher.receiveUIComponentEvent(), undefined); - EventDispatcher.receiveUIComponentEvent([ - textareaNode.nodeId, - 'onChangeText', - { +test('receiveComponentEvent onChangeText test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: textareaNode.nodeId, + nativeName: 'onChangeText', + params: { text: 'Hello world', }, - ]); + }); + EventDispatcher.receiveComponentEvent(nativeEvent); t.pass(); }); -test('receiveUIComponentEvent onSelectionChange test', (t) => { - t.is(EventDispatcher.receiveUIComponentEvent(), undefined); - EventDispatcher.receiveUIComponentEvent([ - textareaNode.nodeId, - 'onSelectionChange', - { +test('receiveComponentEvent onSelectionChange test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: textareaNode.nodeId, + nativeName: 'onSelectionChange', + params: { selection: { start: 1, end: 2, }, }, - ]); + }); + EventDispatcher.receiveComponentEvent(nativeEvent); t.pass(); }); -test('receiveUIComponentEvent onKeyboardWillShow test', (t) => { - t.is(EventDispatcher.receiveUIComponentEvent(), undefined); - EventDispatcher.receiveUIComponentEvent([ - textareaNode.nodeId, - 'onKeyboardWillShow', - { +test('receiveComponentEvent onKeyboardWillShow test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: textareaNode.nodeId, + nativeName: 'onKeyboardWillShow', + params: { keyboardHeight: 123, }, - ]); + }); + EventDispatcher.receiveComponentEvent(nativeEvent); t.pass(); }); -test('receiveUIComponentEvent onContentSizeChange test', (t) => { - t.is(EventDispatcher.receiveUIComponentEvent(), undefined); - EventDispatcher.receiveUIComponentEvent([ - textareaNode.nodeId, - 'onContentSizeChange', - { +test('receiveComponentEvent onContentSizeChange test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: textareaNode.nodeId, + nativeName: 'onContentSizeChange', + params: { contentSize: { width: 1, height: 2, }, }, - ]); + }); + EventDispatcher.receiveComponentEvent(nativeEvent); t.pass(); }); -test('receiveUIComponentEvent div.onScroll test', (t) => { - t.is(EventDispatcher.receiveUIComponentEvent(), undefined); - EventDispatcher.receiveUIComponentEvent([ - childNode.nodeId, - 'onScroll', - { +test('receiveComponentEvent div.onScroll test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: childNode.nodeId, + nativeName: 'onScroll', + params: { contentOffset: { x: 1, y: 2, }, }, - ]); + }); + EventDispatcher.receiveComponentEvent(nativeEvent); t.pass(); }); -test('receiveUIComponentEvent ul.onScroll test', (t) => { - t.is(EventDispatcher.receiveUIComponentEvent(), undefined); - EventDispatcher.receiveUIComponentEvent([ - listview.nodeId, - 'onScroll', - { +test('receiveComponentEvent ul.onScroll test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: listview.nodeId, + nativeName: 'onScroll', + params: { contentOffset: { x: 1, y: 2, }, }, - ]); + }); + EventDispatcher.receiveComponentEvent(nativeEvent); t.pass(); }); -test('receiveUIComponentEvent onTouch test', (t) => { - t.is(EventDispatcher.receiveUIComponentEvent(), undefined); - EventDispatcher.receiveUIComponentEvent([ - childNode.nodeId, - 'onTouchDown', - { +test('receiveComponentEvent onTouch test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent1 = Object.assign({}, dispatcherEvent, { + currentId: childNode.nodeId, + nativeName: 'onTouchDown', + params: { page_x: 1, page_y: 2, }, - ]); - EventDispatcher.receiveUIComponentEvent([ - childNode.nodeId, - 'onTouchMove', - { + }); + const nativeEvent2 = Object.assign({}, dispatcherEvent, { + currentId: childNode.nodeId, + nativeName: 'onTouchMove', + params: { page_x: 1, page_y: 2, }, - ]); + }); + EventDispatcher.receiveComponentEvent(nativeEvent1); + EventDispatcher.receiveComponentEvent(nativeEvent2); t.pass(); }); -test('receiveUIComponentEvent onLayout test', (t) => { - t.is(EventDispatcher.receiveUIComponentEvent(), undefined); - EventDispatcher.receiveUIComponentEvent([ - childNode.nodeId, - 'onLayout', - { +test('receiveComponentEvent onLayout test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: childNode.nodeId, + nativeName: 'onLayout', + params: { layout: { x: 1, y: 2, @@ -221,18 +229,20 @@ test('receiveUIComponentEvent onLayout test', (t) => { height: 200, }, }, - ]); + }); + EventDispatcher.receiveComponentEvent(nativeEvent); t.pass(); }); -test('receiveUIComponentEvent onLoad test', (t) => { - t.is(EventDispatcher.receiveUIComponentEvent(), undefined); - EventDispatcher.receiveUIComponentEvent([ - iframe.nodeId, - 'onLoad', - { +test('receiveComponentEvent onLoad test', (t) => { + t.is(EventDispatcher.receiveComponentEvent(), undefined); + const nativeEvent = Object.assign({}, dispatcherEvent, { + currentId: iframe.nodeId, + nativeName: 'onLoad', + params: { url: 'http://hippyjs.org', }, - ]); + }); + EventDispatcher.receiveComponentEvent(nativeEvent); t.pass(); }); diff --git a/driver/js/packages/hippy-vue/src/renderer/native/event/dispatcher.js b/driver/js/packages/hippy-vue/src/renderer/native/event/dispatcher.js index 403b0cda6..76534ca6e 100644 --- a/driver/js/packages/hippy-vue/src/renderer/native/event/dispatcher.js +++ b/driver/js/packages/hippy-vue/src/renderer/native/event/dispatcher.js @@ -20,8 +20,8 @@ /* eslint-disable no-underscore-dangle */ -import { trace, getApp } from '../../../util'; -import { getNodeById } from '../../../util/node'; +import { trace, getApp, warn } from '../../../util'; +import { getNodeById, DOMEventPhase } from '../../../util/node'; import { Event } from './event'; const componentName = ['%c[event]%c', 'color: green', 'color: auto']; @@ -40,33 +40,27 @@ function getVueEventName(eventName, targetNode) { return str.charAt(0).toLowerCase() + str.slice(1); } -/** - * Special Touch Event handler compatible for previous camelCase touch event, - * such as touchStart, touchMove etc. - * @type {{isTouchEvent(), mapTouchEvent()}} - */ -const SpecialTouchHandler = { - isTouchEvent(eventName) { - return ['onTouchDown', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'].indexOf(eventName) >= 0; - }, - convertTouchEvent(eventName, nativeEvent) { - let touchEvent; - if (eventName === 'onTouchDown') { - touchEvent = new Event('touchStart'); - } else { - touchEvent = new Event(`t${eventName.slice(3, eventName.length)}`); - } - touchEvent.touches = { - 0: { - clientX: nativeEvent.page_x, - clientY: nativeEvent.page_y, - }, - length: 1, - }; - return touchEvent; - }, -}; +function isTouchEvent(eventName) { + return ['onTouchDown', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'].indexOf(eventName) >= 0; +} +/** + * convert events + */ +function convertEvent(eventName, targetEvent, params) { + if (isTouchEvent(eventName)) { + Object.assign(targetEvent, { + touches: { + 0: { + clientX: params.page_x, + clientY: params.page_y, + }, + length: 1, + }, + }); + } + return targetEvent; +} const EventDispatcher = { /** * Redirect native events to Vue directly. @@ -86,62 +80,46 @@ const EventDispatcher = { /** * Receive native interactive events. */ - receiveNativeGesture(nativeEvent, domEvent) { - trace(...componentName, 'receiveNativeGesture', nativeEvent); - if (!nativeEvent) { + receiveComponentEvent(nativeEvent, domEvent) { + trace(...componentName, 'receiveComponentEvent', nativeEvent); + if (!nativeEvent || !domEvent) { + warn(...componentName, 'receiveComponentEvent', 'nativeEvent or domEvent not exist'); return; } - const { id, currentId, name } = nativeEvent; + const { id, currentId, nativeName, originalName, params, eventPhase } = nativeEvent; const currentTargetNode = getNodeById(currentId); const targetNode = getNodeById(id); if (!currentTargetNode || !targetNode) { + warn(...componentName, 'receiveComponentEvent', 'currentTargetNode or targetNode not exist'); return; } - const eventName = getVueEventName(name, currentTargetNode); - const targetEvent = new Event(eventName); - const { processEventData } = currentTargetNode._meta.component; - if (processEventData) { - processEventData(targetEvent, name, nativeEvent); - } - currentTargetNode.dispatchEvent(targetEvent, targetNode, domEvent); - if (SpecialTouchHandler.isTouchEvent(name)) { - currentTargetNode.dispatchEvent(SpecialTouchHandler.convertTouchEvent(name, nativeEvent), targetNode, domEvent); - } - }, - /** - * Receive the events like keyboard typing - */ - receiveUIComponentEvent(nativeEvent) { - trace(...componentName, 'receiveUIComponentEvent', nativeEvent); - if (!nativeEvent || !(nativeEvent instanceof Array) || nativeEvent.length < 2) { - return; - } - const [targetNodeId, eventName, params] = nativeEvent; - if (typeof targetNodeId !== 'number' || typeof eventName !== 'string') { - return; - } - const targetNode = getNodeById(targetNodeId); - if (!targetNode) { - return; - } - const targetEventName = getVueEventName(eventName, targetNode); - const targetEvent = new Event(targetEventName); - // Post event parameters process. - if (eventName === 'onLayout') { - const { layout } = params; - targetEvent.top = layout.y; - targetEvent.left = layout.x; - targetEvent.bottom = layout.y + layout.height; - targetEvent.right = layout.x + layout.width; - targetEvent.width = layout.width; - targetEvent.height = layout.height; - } else { - const { processEventData } = targetNode._meta.component; - if (processEventData) { - processEventData(targetEvent, eventName, params); + try { + if ([DOMEventPhase.AT_TARGET, DOMEventPhase.BUBBLING_PHASE].indexOf(eventPhase) > -1) { + const targetEvent = new Event(originalName); + Object.assign(targetEvent, { eventPhase }); + if (nativeName === 'onLayout') { + const { layout } = params; + targetEvent.top = layout.y; + targetEvent.left = layout.x; + targetEvent.bottom = layout.y + layout.height; + targetEvent.right = layout.x + layout.width; + targetEvent.width = layout.width; + targetEvent.height = layout.height; + } else { + const { processEventData } = currentTargetNode._meta.component; + if (processEventData) { + processEventData(targetEvent, nativeName, params); + } + } + currentTargetNode.dispatchEvent( + convertEvent(nativeName, targetEvent, params), + targetNode, + domEvent, + ); } + } catch (err) { + console.error('receiveComponentEvent error', err); } - targetNode.dispatchEvent(targetEvent, targetNode); }, }; diff --git a/driver/js/packages/hippy-vue/src/renderer/native/event/event.js b/driver/js/packages/hippy-vue/src/renderer/native/event/event.js index d2fbf501e..c06479c4b 100644 --- a/driver/js/packages/hippy-vue/src/renderer/native/event/event.js +++ b/driver/js/packages/hippy-vue/src/renderer/native/event/event.js @@ -26,12 +26,9 @@ class Event { this.bubbles = true; this.cancelable = true; this.eventPhase = false; - this.timeStamp = Date.now(); - // TODO: Should point to VDOM element. this.originalTarget = null; this.currentTarget = null; this.target = null; - // Private properties this._canceled = false; } diff --git a/driver/js/packages/hippy-vue/src/util/node.js b/driver/js/packages/hippy-vue/src/util/node.js index c0c78e50a..5083539af 100644 --- a/driver/js/packages/hippy-vue/src/util/node.js +++ b/driver/js/packages/hippy-vue/src/util/node.js @@ -122,6 +122,14 @@ const nativeEventMap = { onTouchCancel: 'touchcancel', }; +const DOMEventPhase = { + NONE: 0, + CAPTURING_PHASE: 1, + AT_TARGET: 2, + BUBBLING_PHASE: 3, +}; + + function isNativeGesture(name) { return !!nativeEventMap[name]; } @@ -141,6 +149,7 @@ export { relativeToRefType, eventHandlerType, nativeEventMap, + DOMEventPhase, recursivelyUnCacheNode, requestIdleCallback, cancelIdleCallback,