@vqh2602/mini-app-sdk 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,199 @@
1
+ var mc=Object.defineProperty;var yc=(e,t,n)=>t in e?mc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var J=(e,t,n)=>yc(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zs={exports:{}},ul={},Js={exports:{}},T={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var nr=Symbol.for("react.element"),xc=Symbol.for("react.portal"),kc=Symbol.for("react.fragment"),wc=Symbol.for("react.strict_mode"),Sc=Symbol.for("react.profiler"),Cc=Symbol.for("react.provider"),Ec=Symbol.for("react.context"),_c=Symbol.for("react.forward_ref"),jc=Symbol.for("react.suspense"),zc=Symbol.for("react.memo"),Pc=Symbol.for("react.lazy"),Bi=Symbol.iterator;function Ic(e){return e===null||typeof e!="object"?null:(e=Bi&&e[Bi]||e["@@iterator"],typeof e=="function"?e:null)}var qs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bs=Object.assign,eu={};function pn(e,t,n){this.props=e,this.context=t,this.refs=eu,this.updater=n||qs}pn.prototype.isReactComponent={};pn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tu(){}tu.prototype=pn.prototype;function Ko(e,t,n){this.props=e,this.context=t,this.refs=eu,this.updater=n||qs}var Xo=Ko.prototype=new tu;Xo.constructor=Ko;bs(Xo,pn.prototype);Xo.isPureReactComponent=!0;var Vi=Array.isArray,nu=Object.prototype.hasOwnProperty,Yo={current:null},ru={key:!0,ref:!0,__self:!0,__source:!0};function lu(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)nu.call(t,r)&&!ru.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1<s){for(var u=Array(s),d=0;d<s;d++)u[d]=arguments[d+2];l.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)l[r]===void 0&&(l[r]=s[r]);return{$$typeof:nr,type:e,key:o,ref:i,props:l,_owner:Yo.current}}function Nc(e,t){return{$$typeof:nr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Go(e){return typeof e=="object"&&e!==null&&e.$$typeof===nr}function Tc(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $i=/\/+/g;function El(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Tc(""+e.key):t.toString(36)}function jr(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case nr:case xc:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+El(i,0):r,Vi(l)?(n="",e!=null&&(n=e.replace($i,"$&/")+"/"),jr(l,t,n,"",function(d){return d})):l!=null&&(Go(l)&&(l=Nc(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace($i,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",Vi(e))for(var s=0;s<e.length;s++){o=e[s];var u=r+El(o,s);i+=jr(o,t,n,u,l)}else if(u=Ic(e),typeof u=="function")for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=r+El(o,s++),i+=jr(o,t,n,u,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function ar(e,t,n){if(e==null)return e;var r=[],l=0;return jr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Mc(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var de={current:null},zr={transition:null},Lc={ReactCurrentDispatcher:de,ReactCurrentBatchConfig:zr,ReactCurrentOwner:Yo};function ou(){throw Error("act(...) is not supported in production builds of React.")}T.Children={map:ar,forEach:function(e,t,n){ar(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ar(e,function(){t++}),t},toArray:function(e){return ar(e,function(t){return t})||[]},only:function(e){if(!Go(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};T.Component=pn;T.Fragment=kc;T.Profiler=Sc;T.PureComponent=Ko;T.StrictMode=wc;T.Suspense=jc;T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lc;T.act=ou;T.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=bs({},e.props),l=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Yo.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)nu.call(t,u)&&!ru.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var d=0;d<u;d++)s[d]=arguments[d+2];r.children=s}return{$$typeof:nr,type:e.type,key:l,ref:o,props:r,_owner:i}};T.createContext=function(e){return e={$$typeof:Ec,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Cc,_context:e},e.Consumer=e};T.createElement=lu;T.createFactory=function(e){var t=lu.bind(null,e);return t.type=e,t};T.createRef=function(){return{current:null}};T.forwardRef=function(e){return{$$typeof:_c,render:e}};T.isValidElement=Go;T.lazy=function(e){return{$$typeof:Pc,_payload:{_status:-1,_result:e},_init:Mc}};T.memo=function(e,t){return{$$typeof:zc,type:e,compare:t===void 0?null:t}};T.startTransition=function(e){var t=zr.transition;zr.transition={};try{e()}finally{zr.transition=t}};T.unstable_act=ou;T.useCallback=function(e,t){return de.current.useCallback(e,t)};T.useContext=function(e){return de.current.useContext(e)};T.useDebugValue=function(){};T.useDeferredValue=function(e){return de.current.useDeferredValue(e)};T.useEffect=function(e,t){return de.current.useEffect(e,t)};T.useId=function(){return de.current.useId()};T.useImperativeHandle=function(e,t,n){return de.current.useImperativeHandle(e,t,n)};T.useInsertionEffect=function(e,t){return de.current.useInsertionEffect(e,t)};T.useLayoutEffect=function(e,t){return de.current.useLayoutEffect(e,t)};T.useMemo=function(e,t){return de.current.useMemo(e,t)};T.useReducer=function(e,t,n){return de.current.useReducer(e,t,n)};T.useRef=function(e){return de.current.useRef(e)};T.useState=function(e){return de.current.useState(e)};T.useSyncExternalStore=function(e,t,n){return de.current.useSyncExternalStore(e,t,n)};T.useTransition=function(){return de.current.useTransition()};T.version="18.3.1";Js.exports=T;var M=Js.exports;const Rc=vc(M);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Dc=M,Ac=Symbol.for("react.element"),Oc=Symbol.for("react.fragment"),Uc=Object.prototype.hasOwnProperty,Fc=Dc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bc={key:!0,ref:!0,__self:!0,__source:!0};function iu(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Uc.call(t,r)&&!Bc.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Ac,type:e,key:o,ref:i,props:l,_owner:Fc.current}}ul.Fragment=Oc;ul.jsx=iu;ul.jsxs=iu;Zs.exports=ul;var a=Zs.exports,Jl={},su={exports:{}},Ce={},uu={exports:{}},au={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(y,P){var I=y.length;y.push(P);e:for(;0<I;){var O=I-1>>>1,Y=y[O];if(0<l(Y,P))y[O]=P,y[I]=Y,I=O;else break e}}function n(y){return y.length===0?null:y[0]}function r(y){if(y.length===0)return null;var P=y[0],I=y.pop();if(I!==P){y[0]=I;e:for(var O=0,Y=y.length,yn=Y>>>1;O<yn;){var Me=2*(O+1)-1,nt=y[Me],_t=Me+1,ur=y[_t];if(0>l(nt,I))_t<Y&&0>l(ur,nt)?(y[O]=ur,y[_t]=I,O=_t):(y[O]=nt,y[Me]=I,O=Me);else if(_t<Y&&0>l(ur,I))y[O]=ur,y[_t]=I,O=_t;else break e}}return P}function l(y,P){var I=y.sortIndex-P.sortIndex;return I!==0?I:y.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],d=[],g=1,m=null,h=3,k=!1,w=!1,S=!1,A=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(y){for(var P=n(d);P!==null;){if(P.callback===null)r(d);else if(P.startTime<=y)r(d),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(d)}}function v(y){if(S=!1,p(y),!w)if(n(u)!==null)w=!0,mn(C);else{var P=n(d);P!==null&&F(v,P.startTime-y)}}function C(y,P){w=!1,S&&(S=!1,f(z),z=-1),k=!0;var I=h;try{for(p(P),m=n(u);m!==null&&(!(m.expirationTime>P)||y&&!ve());){var O=m.callback;if(typeof O=="function"){m.callback=null,h=m.priorityLevel;var Y=O(m.expirationTime<=P);P=e.unstable_now(),typeof Y=="function"?m.callback=Y:m===n(u)&&r(u),p(P)}else r(u);m=n(u)}if(m!==null)var yn=!0;else{var Me=n(d);Me!==null&&F(v,Me.startTime-P),yn=!1}return yn}finally{m=null,h=I,k=!1}}var j=!1,_=null,z=-1,W=5,N=-1;function ve(){return!(e.unstable_now()-N<W)}function Ct(){if(_!==null){var y=e.unstable_now();N=y;var P=!0;try{P=_(!0,y)}finally{P?Et():(j=!1,_=null)}}else j=!1}var Et;if(typeof c=="function")Et=function(){c(Ct)};else if(typeof MessageChannel<"u"){var sr=new MessageChannel,Te=sr.port2;sr.port1.onmessage=Ct,Et=function(){Te.postMessage(null)}}else Et=function(){A(Ct,0)};function mn(y){_=y,j||(j=!0,Et())}function F(y,P){z=A(function(){y(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(y){y.callback=null},e.unstable_continueExecution=function(){w||k||(w=!0,mn(C))},e.unstable_forceFrameRate=function(y){0>y||125<y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<y?Math.floor(1e3/y):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(y){switch(h){case 1:case 2:case 3:var P=3;break;default:P=h}var I=h;h=P;try{return y()}finally{h=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(y,P){switch(y){case 1:case 2:case 3:case 4:case 5:break;default:y=3}var I=h;h=y;try{return P()}finally{h=I}},e.unstable_scheduleCallback=function(y,P,I){var O=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?O+I:O):I=O,y){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=I+Y,y={id:g++,callback:P,priorityLevel:y,startTime:I,expirationTime:Y,sortIndex:-1},I>O?(y.sortIndex=I,t(d,y),n(u)===null&&y===n(d)&&(S?(f(z),z=-1):S=!0,F(v,I-O))):(y.sortIndex=Y,t(u,y),w||k||(w=!0,mn(C))),y},e.unstable_shouldYield=ve,e.unstable_wrapCallback=function(y){var P=h;return function(){var I=h;h=P;try{return y.apply(this,arguments)}finally{h=I}}}})(au);uu.exports=au;var Vc=uu.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var $c=M,Se=Vc;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var cu=new Set,Fn={};function Ut(e,t){on(e,t),on(e+"Capture",t)}function on(e,t){for(Fn[e]=t,e=0;e<t.length;e++)cu.add(t[e])}var Je=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ql=Object.prototype.hasOwnProperty,Wc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Wi={},Hi={};function Hc(e){return ql.call(Hi,e)?!0:ql.call(Wi,e)?!1:Wc.test(e)?Hi[e]=!0:(Wi[e]=!0,!1)}function Qc(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Kc(e,t,n,r){if(t===null||typeof t>"u"||Qc(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){le[e]=new fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zo=/[\-:]([a-z])/g;function Jo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zo,Jo);le[t]=new fe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zo,Jo);le[t]=new fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zo,Jo);le[t]=new fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new fe(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function qo(e,t,n,r){var l=le.hasOwnProperty(t)?le[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Kc(t,n,l,r)&&(n=null),r||l===null?Hc(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var tt=$c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cr=Symbol.for("react.element"),Vt=Symbol.for("react.portal"),$t=Symbol.for("react.fragment"),bo=Symbol.for("react.strict_mode"),bl=Symbol.for("react.profiler"),du=Symbol.for("react.provider"),fu=Symbol.for("react.context"),ei=Symbol.for("react.forward_ref"),eo=Symbol.for("react.suspense"),to=Symbol.for("react.suspense_list"),ti=Symbol.for("react.memo"),lt=Symbol.for("react.lazy"),pu=Symbol.for("react.offscreen"),Qi=Symbol.iterator;function vn(e){return e===null||typeof e!="object"?null:(e=Qi&&e[Qi]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,_l;function jn(e){if(_l===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_l=t&&t[1]||""}return`
34
+ `+_l+e}var jl=!1;function zl(e,t){if(!e||jl)return"";jl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
35
+ `),o=r.stack.split(`
36
+ `),i=l.length-1,s=o.length-1;1<=i&&0<=s&&l[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(l[i]!==o[s]){if(i!==1||s!==1)do if(i--,s--,0>s||l[i]!==o[s]){var u=`
37
+ `+l[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?jn(e):""}function Xc(e){switch(e.tag){case 5:return jn(e.type);case 16:return jn("Lazy");case 13:return jn("Suspense");case 19:return jn("SuspenseList");case 0:case 2:case 15:return e=zl(e.type,!1),e;case 11:return e=zl(e.type.render,!1),e;case 1:return e=zl(e.type,!0),e;default:return""}}function no(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $t:return"Fragment";case Vt:return"Portal";case bl:return"Profiler";case bo:return"StrictMode";case eo:return"Suspense";case to:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fu:return(e.displayName||"Context")+".Consumer";case du:return(e._context.displayName||"Context")+".Provider";case ei:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ti:return t=e.displayName||null,t!==null?t:no(e.type)||"Memo";case lt:t=e._payload,e=e._init;try{return no(e(t))}catch{}}return null}function Yc(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return no(t);case 8:return t===bo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gc(e){var t=hu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){e._valueTracker||(e._valueTracker=Gc(e))}function gu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ur(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ro(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ki(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mu(e,t){t=t.checked,t!=null&&qo(e,"checked",t,!1)}function lo(e,t){mu(e,t);var n=vt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&oo(e,t.type,vt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xi(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function oo(e,t,n){(t!=="number"||Ur(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zn=Array.isArray;function bt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function io(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(zn(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vt(n)}}function yu(e,t){var n=vt(t.value),r=vt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Gi(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function so(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fr,xu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fr=fr||document.createElement("div"),fr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zc=["Webkit","ms","Moz","O"];Object.keys(Nn).forEach(function(e){Zc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nn[t]=Nn[e]})});function ku(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nn.hasOwnProperty(e)&&Nn[e]?(""+t).trim():t+"px"}function wu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ku(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Jc=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uo(e,t){if(t){if(Jc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function ao(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var co=null;function ni(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fo=null,en=null,tn=null;function Zi(e){if(e=or(e)){if(typeof fo!="function")throw Error(x(280));var t=e.stateNode;t&&(t=pl(t),fo(e.stateNode,e.type,t))}}function Su(e){en?tn?tn.push(e):tn=[e]:en=e}function Cu(){if(en){var e=en,t=tn;if(tn=en=null,Zi(e),t)for(e=0;e<t.length;e++)Zi(t[e])}}function Eu(e,t){return e(t)}function _u(){}var Pl=!1;function ju(e,t,n){if(Pl)return e(t,n);Pl=!0;try{return Eu(e,t,n)}finally{Pl=!1,(en!==null||tn!==null)&&(_u(),Cu())}}function Vn(e,t){var n=e.stateNode;if(n===null)return null;var r=pl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var po=!1;if(Je)try{var xn={};Object.defineProperty(xn,"passive",{get:function(){po=!0}}),window.addEventListener("test",xn,xn),window.removeEventListener("test",xn,xn)}catch{po=!1}function qc(e,t,n,r,l,o,i,s,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(g){this.onError(g)}}var Tn=!1,Fr=null,Br=!1,ho=null,bc={onError:function(e){Tn=!0,Fr=e}};function ed(e,t,n,r,l,o,i,s,u){Tn=!1,Fr=null,qc.apply(bc,arguments)}function td(e,t,n,r,l,o,i,s,u){if(ed.apply(this,arguments),Tn){if(Tn){var d=Fr;Tn=!1,Fr=null}else throw Error(x(198));Br||(Br=!0,ho=d)}}function Ft(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function zu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ji(e){if(Ft(e)!==e)throw Error(x(188))}function nd(e){var t=e.alternate;if(!t){if(t=Ft(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return Ji(l),e;if(o===r)return Ji(l),t;o=o.sibling}throw Error(x(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,s=l.child;s;){if(s===n){i=!0,n=l,r=o;break}if(s===r){i=!0,r=l,n=o;break}s=s.sibling}if(!i){for(s=o.child;s;){if(s===n){i=!0,n=o,r=l;break}if(s===r){i=!0,r=o,n=l;break}s=s.sibling}if(!i)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function Pu(e){return e=nd(e),e!==null?Iu(e):null}function Iu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Iu(e);if(t!==null)return t;e=e.sibling}return null}var Nu=Se.unstable_scheduleCallback,qi=Se.unstable_cancelCallback,rd=Se.unstable_shouldYield,ld=Se.unstable_requestPaint,G=Se.unstable_now,od=Se.unstable_getCurrentPriorityLevel,ri=Se.unstable_ImmediatePriority,Tu=Se.unstable_UserBlockingPriority,Vr=Se.unstable_NormalPriority,id=Se.unstable_LowPriority,Mu=Se.unstable_IdlePriority,al=null,We=null;function sd(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(al,e,void 0,(e.current.flags&128)===128)}catch{}}var Oe=Math.clz32?Math.clz32:cd,ud=Math.log,ad=Math.LN2;function cd(e){return e>>>=0,e===0?32:31-(ud(e)/ad|0)|0}var pr=64,hr=4194304;function Pn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $r(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=Pn(s):(o&=i,o!==0&&(r=Pn(o)))}else i=n&~l,i!==0?r=Pn(i):o!==0&&(r=Pn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Oe(t),l=1<<n,r|=e[n],t&=~l;return r}function dd(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Oe(o),s=1<<i,u=l[i];u===-1?(!(s&n)||s&r)&&(l[i]=dd(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}function go(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Lu(){var e=pr;return pr<<=1,!(pr&4194240)&&(pr=64),e}function Il(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oe(t),e[t]=n}function pd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Oe(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function li(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Oe(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var R=0;function Ru(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Du,oi,Au,Ou,Uu,mo=!1,gr=[],ct=null,dt=null,ft=null,$n=new Map,Wn=new Map,it=[],hd="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function bi(e,t){switch(e){case"focusin":case"focusout":ct=null;break;case"dragenter":case"dragleave":dt=null;break;case"mouseover":case"mouseout":ft=null;break;case"pointerover":case"pointerout":$n.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wn.delete(t.pointerId)}}function kn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=or(t),t!==null&&oi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function gd(e,t,n,r,l){switch(t){case"focusin":return ct=kn(ct,e,t,n,r,l),!0;case"dragenter":return dt=kn(dt,e,t,n,r,l),!0;case"mouseover":return ft=kn(ft,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return $n.set(o,kn($n.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Wn.set(o,kn(Wn.get(o)||null,e,t,n,r,l)),!0}return!1}function Fu(e){var t=Pt(e.target);if(t!==null){var n=Ft(t);if(n!==null){if(t=n.tag,t===13){if(t=zu(n),t!==null){e.blockedOn=t,Uu(e.priority,function(){Au(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);co=r,n.target.dispatchEvent(r),co=null}else return t=or(n),t!==null&&oi(t),e.blockedOn=n,!1;t.shift()}return!0}function es(e,t,n){Pr(e)&&n.delete(t)}function md(){mo=!1,ct!==null&&Pr(ct)&&(ct=null),dt!==null&&Pr(dt)&&(dt=null),ft!==null&&Pr(ft)&&(ft=null),$n.forEach(es),Wn.forEach(es)}function wn(e,t){e.blockedOn===t&&(e.blockedOn=null,mo||(mo=!0,Se.unstable_scheduleCallback(Se.unstable_NormalPriority,md)))}function Hn(e){function t(l){return wn(l,e)}if(0<gr.length){wn(gr[0],e);for(var n=1;n<gr.length;n++){var r=gr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ct!==null&&wn(ct,e),dt!==null&&wn(dt,e),ft!==null&&wn(ft,e),$n.forEach(t),Wn.forEach(t),n=0;n<it.length;n++)r=it[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<it.length&&(n=it[0],n.blockedOn===null);)Fu(n),n.blockedOn===null&&it.shift()}var nn=tt.ReactCurrentBatchConfig,Wr=!0;function yd(e,t,n,r){var l=R,o=nn.transition;nn.transition=null;try{R=1,ii(e,t,n,r)}finally{R=l,nn.transition=o}}function vd(e,t,n,r){var l=R,o=nn.transition;nn.transition=null;try{R=4,ii(e,t,n,r)}finally{R=l,nn.transition=o}}function ii(e,t,n,r){if(Wr){var l=yo(e,t,n,r);if(l===null)Fl(e,t,r,Hr,n),bi(e,r);else if(gd(l,e,t,n,r))r.stopPropagation();else if(bi(e,r),t&4&&-1<hd.indexOf(e)){for(;l!==null;){var o=or(l);if(o!==null&&Du(o),o=yo(e,t,n,r),o===null&&Fl(e,t,r,Hr,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Fl(e,t,r,null,n)}}var Hr=null;function yo(e,t,n,r){if(Hr=null,e=ni(r),e=Pt(e),e!==null)if(t=Ft(e),t===null)e=null;else if(n=t.tag,n===13){if(e=zu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Hr=e,null}function Bu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(od()){case ri:return 1;case Tu:return 4;case Vr:case id:return 16;case Mu:return 536870912;default:return 16}default:return 16}}var ut=null,si=null,Ir=null;function Vu(){if(Ir)return Ir;var e,t=si,n=t.length,r,l="value"in ut?ut.value:ut.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return Ir=l.slice(e,1<r?1-r:void 0)}function Nr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mr(){return!0}function ts(){return!1}function Ee(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?mr:ts,this.isPropagationStopped=ts,this}return K(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=mr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mr)},persist:function(){},isPersistent:mr}),t}var hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ui=Ee(hn),lr=K({},hn,{view:0,detail:0}),xd=Ee(lr),Nl,Tl,Sn,cl=K({},lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ai,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Sn&&(Sn&&e.type==="mousemove"?(Nl=e.screenX-Sn.screenX,Tl=e.screenY-Sn.screenY):Tl=Nl=0,Sn=e),Nl)},movementY:function(e){return"movementY"in e?e.movementY:Tl}}),ns=Ee(cl),kd=K({},cl,{dataTransfer:0}),wd=Ee(kd),Sd=K({},lr,{relatedTarget:0}),Ml=Ee(Sd),Cd=K({},hn,{animationName:0,elapsedTime:0,pseudoElement:0}),Ed=Ee(Cd),_d=K({},hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jd=Ee(_d),zd=K({},hn,{data:0}),rs=Ee(zd),Pd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Id={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Nd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Td(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nd[e])?!!t[e]:!1}function ai(){return Td}var Md=K({},lr,{key:function(e){if(e.key){var t=Pd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Id[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ai,charCode:function(e){return e.type==="keypress"?Nr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ld=Ee(Md),Rd=K({},cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ls=Ee(Rd),Dd=K({},lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ai}),Ad=Ee(Dd),Od=K({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ud=Ee(Od),Fd=K({},cl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Bd=Ee(Fd),Vd=[9,13,27,32],ci=Je&&"CompositionEvent"in window,Mn=null;Je&&"documentMode"in document&&(Mn=document.documentMode);var $d=Je&&"TextEvent"in window&&!Mn,$u=Je&&(!ci||Mn&&8<Mn&&11>=Mn),os=" ",is=!1;function Wu(e,t){switch(e){case"keyup":return Vd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wt=!1;function Wd(e,t){switch(e){case"compositionend":return Hu(t);case"keypress":return t.which!==32?null:(is=!0,os);case"textInput":return e=t.data,e===os&&is?null:e;default:return null}}function Hd(e,t){if(Wt)return e==="compositionend"||!ci&&Wu(e,t)?(e=Vu(),Ir=si=ut=null,Wt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $u&&t.locale!=="ko"?null:t.data;default:return null}}var Qd={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ss(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qd[e.type]:t==="textarea"}function Qu(e,t,n,r){Su(r),t=Qr(t,"onChange"),0<t.length&&(n=new ui("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ln=null,Qn=null;function Kd(e){na(e,0)}function dl(e){var t=Kt(e);if(gu(t))return e}function Xd(e,t){if(e==="change")return t}var Ku=!1;if(Je){var Ll;if(Je){var Rl="oninput"in document;if(!Rl){var us=document.createElement("div");us.setAttribute("oninput","return;"),Rl=typeof us.oninput=="function"}Ll=Rl}else Ll=!1;Ku=Ll&&(!document.documentMode||9<document.documentMode)}function as(){Ln&&(Ln.detachEvent("onpropertychange",Xu),Qn=Ln=null)}function Xu(e){if(e.propertyName==="value"&&dl(Qn)){var t=[];Qu(t,Qn,e,ni(e)),ju(Kd,t)}}function Yd(e,t,n){e==="focusin"?(as(),Ln=t,Qn=n,Ln.attachEvent("onpropertychange",Xu)):e==="focusout"&&as()}function Gd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dl(Qn)}function Zd(e,t){if(e==="click")return dl(t)}function Jd(e,t){if(e==="input"||e==="change")return dl(t)}function qd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fe=typeof Object.is=="function"?Object.is:qd;function Kn(e,t){if(Fe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!ql.call(t,l)||!Fe(e[l],t[l]))return!1}return!0}function cs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ds(e,t){var n=cs(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cs(n)}}function Yu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gu(){for(var e=window,t=Ur();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ur(e.document)}return t}function di(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function bd(e){var t=Gu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yu(n.ownerDocument.documentElement,n)){if(r!==null&&di(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ds(n,o);var i=ds(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ef=Je&&"documentMode"in document&&11>=document.documentMode,Ht=null,vo=null,Rn=null,xo=!1;function fs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xo||Ht==null||Ht!==Ur(r)||(r=Ht,"selectionStart"in r&&di(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rn&&Kn(Rn,r)||(Rn=r,r=Qr(vo,"onSelect"),0<r.length&&(t=new ui("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ht)))}function yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Qt={animationend:yr("Animation","AnimationEnd"),animationiteration:yr("Animation","AnimationIteration"),animationstart:yr("Animation","AnimationStart"),transitionend:yr("Transition","TransitionEnd")},Dl={},Zu={};Je&&(Zu=document.createElement("div").style,"AnimationEvent"in window||(delete Qt.animationend.animation,delete Qt.animationiteration.animation,delete Qt.animationstart.animation),"TransitionEvent"in window||delete Qt.transitionend.transition);function fl(e){if(Dl[e])return Dl[e];if(!Qt[e])return e;var t=Qt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zu)return Dl[e]=t[n];return e}var Ju=fl("animationend"),qu=fl("animationiteration"),bu=fl("animationstart"),ea=fl("transitionend"),ta=new Map,ps="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kt(e,t){ta.set(e,t),Ut(t,[e])}for(var Al=0;Al<ps.length;Al++){var Ol=ps[Al],tf=Ol.toLowerCase(),nf=Ol[0].toUpperCase()+Ol.slice(1);kt(tf,"on"+nf)}kt(Ju,"onAnimationEnd");kt(qu,"onAnimationIteration");kt(bu,"onAnimationStart");kt("dblclick","onDoubleClick");kt("focusin","onFocus");kt("focusout","onBlur");kt(ea,"onTransitionEnd");on("onMouseEnter",["mouseout","mouseover"]);on("onMouseLeave",["mouseout","mouseover"]);on("onPointerEnter",["pointerout","pointerover"]);on("onPointerLeave",["pointerout","pointerover"]);Ut("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ut("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ut("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ut("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ut("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ut("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rf=new Set("cancel close invalid load scroll toggle".split(" ").concat(In));function hs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,td(r,t,void 0,e),e.currentTarget=null}function na(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],u=s.instance,d=s.currentTarget;if(s=s.listener,u!==o&&l.isPropagationStopped())break e;hs(l,s,d),o=u}else for(i=0;i<r.length;i++){if(s=r[i],u=s.instance,d=s.currentTarget,s=s.listener,u!==o&&l.isPropagationStopped())break e;hs(l,s,d),o=u}}}if(Br)throw e=ho,Br=!1,ho=null,e}function B(e,t){var n=t[Eo];n===void 0&&(n=t[Eo]=new Set);var r=e+"__bubble";n.has(r)||(ra(t,e,2,!1),n.add(r))}function Ul(e,t,n){var r=0;t&&(r|=4),ra(n,e,r,t)}var vr="_reactListening"+Math.random().toString(36).slice(2);function Xn(e){if(!e[vr]){e[vr]=!0,cu.forEach(function(n){n!=="selectionchange"&&(rf.has(n)||Ul(n,!1,e),Ul(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vr]||(t[vr]=!0,Ul("selectionchange",!1,t))}}function ra(e,t,n,r){switch(Bu(t)){case 1:var l=yd;break;case 4:l=vd;break;default:l=ii}n=l.bind(null,t,n,e),l=void 0,!po||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Fl(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var s=r.stateNode.containerInfo;if(s===l||s.nodeType===8&&s.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;i=i.return}for(;s!==null;){if(i=Pt(s),i===null)return;if(u=i.tag,u===5||u===6){r=o=i;continue e}s=s.parentNode}}r=r.return}ju(function(){var d=o,g=ni(n),m=[];e:{var h=ta.get(e);if(h!==void 0){var k=ui,w=e;switch(e){case"keypress":if(Nr(n)===0)break e;case"keydown":case"keyup":k=Ld;break;case"focusin":w="focus",k=Ml;break;case"focusout":w="blur",k=Ml;break;case"beforeblur":case"afterblur":k=Ml;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=ns;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=wd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Ad;break;case Ju:case qu:case bu:k=Ed;break;case ea:k=Ud;break;case"scroll":k=xd;break;case"wheel":k=Bd;break;case"copy":case"cut":case"paste":k=jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=ls}var S=(t&4)!==0,A=!S&&e==="scroll",f=S?h!==null?h+"Capture":null:h;S=[];for(var c=d,p;c!==null;){p=c;var v=p.stateNode;if(p.tag===5&&v!==null&&(p=v,f!==null&&(v=Vn(c,f),v!=null&&S.push(Yn(c,v,p)))),A)break;c=c.return}0<S.length&&(h=new k(h,w,null,n,g),m.push({event:h,listeners:S}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",h&&n!==co&&(w=n.relatedTarget||n.fromElement)&&(Pt(w)||w[qe]))break e;if((k||h)&&(h=g.window===g?g:(h=g.ownerDocument)?h.defaultView||h.parentWindow:window,k?(w=n.relatedTarget||n.toElement,k=d,w=w?Pt(w):null,w!==null&&(A=Ft(w),w!==A||w.tag!==5&&w.tag!==6)&&(w=null)):(k=null,w=d),k!==w)){if(S=ns,v="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(S=ls,v="onPointerLeave",f="onPointerEnter",c="pointer"),A=k==null?h:Kt(k),p=w==null?h:Kt(w),h=new S(v,c+"leave",k,n,g),h.target=A,h.relatedTarget=p,v=null,Pt(g)===d&&(S=new S(f,c+"enter",w,n,g),S.target=p,S.relatedTarget=A,v=S),A=v,k&&w)t:{for(S=k,f=w,c=0,p=S;p;p=Bt(p))c++;for(p=0,v=f;v;v=Bt(v))p++;for(;0<c-p;)S=Bt(S),c--;for(;0<p-c;)f=Bt(f),p--;for(;c--;){if(S===f||f!==null&&S===f.alternate)break t;S=Bt(S),f=Bt(f)}S=null}else S=null;k!==null&&gs(m,h,k,S,!1),w!==null&&A!==null&&gs(m,A,w,S,!0)}}e:{if(h=d?Kt(d):window,k=h.nodeName&&h.nodeName.toLowerCase(),k==="select"||k==="input"&&h.type==="file")var C=Xd;else if(ss(h))if(Ku)C=Jd;else{C=Gd;var j=Yd}else(k=h.nodeName)&&k.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=Zd);if(C&&(C=C(e,d))){Qu(m,C,n,g);break e}j&&j(e,h,d),e==="focusout"&&(j=h._wrapperState)&&j.controlled&&h.type==="number"&&oo(h,"number",h.value)}switch(j=d?Kt(d):window,e){case"focusin":(ss(j)||j.contentEditable==="true")&&(Ht=j,vo=d,Rn=null);break;case"focusout":Rn=vo=Ht=null;break;case"mousedown":xo=!0;break;case"contextmenu":case"mouseup":case"dragend":xo=!1,fs(m,n,g);break;case"selectionchange":if(ef)break;case"keydown":case"keyup":fs(m,n,g)}var _;if(ci)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else Wt?Wu(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&($u&&n.locale!=="ko"&&(Wt||z!=="onCompositionStart"?z==="onCompositionEnd"&&Wt&&(_=Vu()):(ut=g,si="value"in ut?ut.value:ut.textContent,Wt=!0)),j=Qr(d,z),0<j.length&&(z=new rs(z,e,null,n,g),m.push({event:z,listeners:j}),_?z.data=_:(_=Hu(n),_!==null&&(z.data=_)))),(_=$d?Wd(e,n):Hd(e,n))&&(d=Qr(d,"onBeforeInput"),0<d.length&&(g=new rs("onBeforeInput","beforeinput",null,n,g),m.push({event:g,listeners:d}),g.data=_))}na(m,t)})}function Yn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Vn(e,n),o!=null&&r.unshift(Yn(e,o,l)),o=Vn(e,t),o!=null&&r.push(Yn(e,o,l))),e=e.return}return r}function Bt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gs(e,t,n,r,l){for(var o=t._reactName,i=[];n!==null&&n!==r;){var s=n,u=s.alternate,d=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&d!==null&&(s=d,l?(u=Vn(n,o),u!=null&&i.unshift(Yn(n,u,s))):l||(u=Vn(n,o),u!=null&&i.push(Yn(n,u,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var lf=/\r\n?/g,of=/\u0000|\uFFFD/g;function ms(e){return(typeof e=="string"?e:""+e).replace(lf,`
38
+ `).replace(of,"")}function xr(e,t,n){if(t=ms(t),ms(e)!==t&&n)throw Error(x(425))}function Kr(){}var ko=null,wo=null;function So(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Co=typeof setTimeout=="function"?setTimeout:void 0,sf=typeof clearTimeout=="function"?clearTimeout:void 0,ys=typeof Promise=="function"?Promise:void 0,uf=typeof queueMicrotask=="function"?queueMicrotask:typeof ys<"u"?function(e){return ys.resolve(null).then(e).catch(af)}:Co;function af(e){setTimeout(function(){throw e})}function Bl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Hn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Hn(t)}function pt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function vs(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var gn=Math.random().toString(36).slice(2),$e="__reactFiber$"+gn,Gn="__reactProps$"+gn,qe="__reactContainer$"+gn,Eo="__reactEvents$"+gn,cf="__reactListeners$"+gn,df="__reactHandles$"+gn;function Pt(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qe]||n[$e]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vs(e);e!==null;){if(n=e[$e])return n;e=vs(e)}return t}e=n,n=e.parentNode}return null}function or(e){return e=e[$e]||e[qe],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function pl(e){return e[Gn]||null}var _o=[],Xt=-1;function wt(e){return{current:e}}function V(e){0>Xt||(e.current=_o[Xt],_o[Xt]=null,Xt--)}function U(e,t){Xt++,_o[Xt]=e.current,e.current=t}var xt={},ue=wt(xt),ge=wt(!1),Lt=xt;function sn(e,t){var n=e.type.contextTypes;if(!n)return xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function Xr(){V(ge),V(ue)}function xs(e,t,n){if(ue.current!==xt)throw Error(x(168));U(ue,t),U(ge,n)}function la(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(x(108,Yc(e)||"Unknown",l));return K({},n,r)}function Yr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xt,Lt=ue.current,U(ue,e),U(ge,ge.current),!0}function ks(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=la(e,t,Lt),r.__reactInternalMemoizedMergedChildContext=e,V(ge),V(ue),U(ue,e)):V(ge),U(ge,n)}var Xe=null,hl=!1,Vl=!1;function oa(e){Xe===null?Xe=[e]:Xe.push(e)}function ff(e){hl=!0,oa(e)}function St(){if(!Vl&&Xe!==null){Vl=!0;var e=0,t=R;try{var n=Xe;for(R=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Xe=null,hl=!1}catch(l){throw Xe!==null&&(Xe=Xe.slice(e+1)),Nu(ri,St),l}finally{R=t,Vl=!1}}return null}var Yt=[],Gt=0,Gr=null,Zr=0,_e=[],je=0,Rt=null,Ye=1,Ge="";function jt(e,t){Yt[Gt++]=Zr,Yt[Gt++]=Gr,Gr=e,Zr=t}function ia(e,t,n){_e[je++]=Ye,_e[je++]=Ge,_e[je++]=Rt,Rt=e;var r=Ye;e=Ge;var l=32-Oe(r)-1;r&=~(1<<l),n+=1;var o=32-Oe(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,Ye=1<<32-Oe(t)+l|n<<l|r,Ge=o+e}else Ye=1<<o|n<<l|r,Ge=e}function fi(e){e.return!==null&&(jt(e,1),ia(e,1,0))}function pi(e){for(;e===Gr;)Gr=Yt[--Gt],Yt[Gt]=null,Zr=Yt[--Gt],Yt[Gt]=null;for(;e===Rt;)Rt=_e[--je],_e[je]=null,Ge=_e[--je],_e[je]=null,Ye=_e[--je],_e[je]=null}var we=null,ke=null,$=!1,Ae=null;function sa(e,t){var n=ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ws(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,we=e,ke=pt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Rt!==null?{id:Ye,overflow:Ge}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,ke=null,!0):!1;default:return!1}}function jo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zo(e){if($){var t=ke;if(t){var n=t;if(!ws(e,t)){if(jo(e))throw Error(x(418));t=pt(n.nextSibling);var r=we;t&&ws(e,t)?sa(r,n):(e.flags=e.flags&-4097|2,$=!1,we=e)}}else{if(jo(e))throw Error(x(418));e.flags=e.flags&-4097|2,$=!1,we=e}}}function Ss(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function kr(e){if(e!==we)return!1;if(!$)return Ss(e),$=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!So(e.type,e.memoizedProps)),t&&(t=ke)){if(jo(e))throw ua(),Error(x(418));for(;t;)sa(e,t),t=pt(t.nextSibling)}if(Ss(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ke=pt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ke=null}}else ke=we?pt(e.stateNode.nextSibling):null;return!0}function ua(){for(var e=ke;e;)e=pt(e.nextSibling)}function un(){ke=we=null,$=!1}function hi(e){Ae===null?Ae=[e]:Ae.push(e)}var pf=tt.ReactCurrentBatchConfig;function Cn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var s=l.refs;i===null?delete s[o]:s[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function wr(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cs(e){var t=e._init;return t(e._payload)}function aa(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function l(f,c){return f=yt(f,c),f.index=0,f.sibling=null,f}function o(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function i(f){return e&&f.alternate===null&&(f.flags|=2),f}function s(f,c,p,v){return c===null||c.tag!==6?(c=Yl(p,f.mode,v),c.return=f,c):(c=l(c,p),c.return=f,c)}function u(f,c,p,v){var C=p.type;return C===$t?g(f,c,p.props.children,v,p.key):c!==null&&(c.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===lt&&Cs(C)===c.type)?(v=l(c,p.props),v.ref=Cn(f,c,p),v.return=f,v):(v=Or(p.type,p.key,p.props,null,f.mode,v),v.ref=Cn(f,c,p),v.return=f,v)}function d(f,c,p,v){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=Gl(p,f.mode,v),c.return=f,c):(c=l(c,p.children||[]),c.return=f,c)}function g(f,c,p,v,C){return c===null||c.tag!==7?(c=Mt(p,f.mode,v,C),c.return=f,c):(c=l(c,p),c.return=f,c)}function m(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=Yl(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case cr:return p=Or(c.type,c.key,c.props,null,f.mode,p),p.ref=Cn(f,null,c),p.return=f,p;case Vt:return c=Gl(c,f.mode,p),c.return=f,c;case lt:var v=c._init;return m(f,v(c._payload),p)}if(zn(c)||vn(c))return c=Mt(c,f.mode,p,null),c.return=f,c;wr(f,c)}return null}function h(f,c,p,v){var C=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return C!==null?null:s(f,c,""+p,v);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:return p.key===C?u(f,c,p,v):null;case Vt:return p.key===C?d(f,c,p,v):null;case lt:return C=p._init,h(f,c,C(p._payload),v)}if(zn(p)||vn(p))return C!==null?null:g(f,c,p,v,null);wr(f,p)}return null}function k(f,c,p,v,C){if(typeof v=="string"&&v!==""||typeof v=="number")return f=f.get(p)||null,s(c,f,""+v,C);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case cr:return f=f.get(v.key===null?p:v.key)||null,u(c,f,v,C);case Vt:return f=f.get(v.key===null?p:v.key)||null,d(c,f,v,C);case lt:var j=v._init;return k(f,c,p,j(v._payload),C)}if(zn(v)||vn(v))return f=f.get(p)||null,g(c,f,v,C,null);wr(c,v)}return null}function w(f,c,p,v){for(var C=null,j=null,_=c,z=c=0,W=null;_!==null&&z<p.length;z++){_.index>z?(W=_,_=null):W=_.sibling;var N=h(f,_,p[z],v);if(N===null){_===null&&(_=W);break}e&&_&&N.alternate===null&&t(f,_),c=o(N,c,z),j===null?C=N:j.sibling=N,j=N,_=W}if(z===p.length)return n(f,_),$&&jt(f,z),C;if(_===null){for(;z<p.length;z++)_=m(f,p[z],v),_!==null&&(c=o(_,c,z),j===null?C=_:j.sibling=_,j=_);return $&&jt(f,z),C}for(_=r(f,_);z<p.length;z++)W=k(_,f,z,p[z],v),W!==null&&(e&&W.alternate!==null&&_.delete(W.key===null?z:W.key),c=o(W,c,z),j===null?C=W:j.sibling=W,j=W);return e&&_.forEach(function(ve){return t(f,ve)}),$&&jt(f,z),C}function S(f,c,p,v){var C=vn(p);if(typeof C!="function")throw Error(x(150));if(p=C.call(p),p==null)throw Error(x(151));for(var j=C=null,_=c,z=c=0,W=null,N=p.next();_!==null&&!N.done;z++,N=p.next()){_.index>z?(W=_,_=null):W=_.sibling;var ve=h(f,_,N.value,v);if(ve===null){_===null&&(_=W);break}e&&_&&ve.alternate===null&&t(f,_),c=o(ve,c,z),j===null?C=ve:j.sibling=ve,j=ve,_=W}if(N.done)return n(f,_),$&&jt(f,z),C;if(_===null){for(;!N.done;z++,N=p.next())N=m(f,N.value,v),N!==null&&(c=o(N,c,z),j===null?C=N:j.sibling=N,j=N);return $&&jt(f,z),C}for(_=r(f,_);!N.done;z++,N=p.next())N=k(_,f,z,N.value,v),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?z:N.key),c=o(N,c,z),j===null?C=N:j.sibling=N,j=N);return e&&_.forEach(function(Ct){return t(f,Ct)}),$&&jt(f,z),C}function A(f,c,p,v){if(typeof p=="object"&&p!==null&&p.type===$t&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:e:{for(var C=p.key,j=c;j!==null;){if(j.key===C){if(C=p.type,C===$t){if(j.tag===7){n(f,j.sibling),c=l(j,p.props.children),c.return=f,f=c;break e}}else if(j.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===lt&&Cs(C)===j.type){n(f,j.sibling),c=l(j,p.props),c.ref=Cn(f,j,p),c.return=f,f=c;break e}n(f,j);break}else t(f,j);j=j.sibling}p.type===$t?(c=Mt(p.props.children,f.mode,v,p.key),c.return=f,f=c):(v=Or(p.type,p.key,p.props,null,f.mode,v),v.ref=Cn(f,c,p),v.return=f,f=v)}return i(f);case Vt:e:{for(j=p.key;c!==null;){if(c.key===j)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=Gl(p,f.mode,v),c.return=f,f=c}return i(f);case lt:return j=p._init,A(f,c,j(p._payload),v)}if(zn(p))return w(f,c,p,v);if(vn(p))return S(f,c,p,v);wr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=Yl(p,f.mode,v),c.return=f,f=c),i(f)):n(f,c)}return A}var an=aa(!0),ca=aa(!1),Jr=wt(null),qr=null,Zt=null,gi=null;function mi(){gi=Zt=qr=null}function yi(e){var t=Jr.current;V(Jr),e._currentValue=t}function Po(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rn(e,t){qr=e,gi=Zt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(he=!0),e.firstContext=null)}function Ie(e){var t=e._currentValue;if(gi!==e)if(e={context:e,memoizedValue:t,next:null},Zt===null){if(qr===null)throw Error(x(308));Zt=e,qr.dependencies={lanes:0,firstContext:e}}else Zt=Zt.next=e;return t}var It=null;function vi(e){It===null?It=[e]:It.push(e)}function da(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,vi(t)):(n.next=l.next,l.next=n),t.interleaved=n,be(e,r)}function be(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ot=!1;function xi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ze(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,L&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,be(e,n)}return l=r.interleaved,l===null?(t.next=t,vi(r)):(t.next=l.next,l.next=t),r.interleaved=t,be(e,n)}function Tr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,li(e,n)}}function Es(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function br(e,t,n,r){var l=e.updateQueue;ot=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,d=u.next;u.next=null,i===null?o=d:i.next=d,i=u;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==i&&(s===null?g.firstBaseUpdate=d:s.next=d,g.lastBaseUpdate=u))}if(o!==null){var m=l.baseState;i=0,g=d=u=null,s=o;do{var h=s.lane,k=s.eventTime;if((r&h)===h){g!==null&&(g=g.next={eventTime:k,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,S=s;switch(h=t,k=n,S.tag){case 1:if(w=S.payload,typeof w=="function"){m=w.call(k,m,h);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,h=typeof w=="function"?w.call(k,m,h):w,h==null)break e;m=K({},m,h);break e;case 2:ot=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[s]:h.push(s))}else k={eventTime:k,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(d=g=k,u=m):g=g.next=k,i|=h;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;h=s,s=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(g===null&&(u=m),l.baseState=u,l.firstBaseUpdate=d,l.lastBaseUpdate=g,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);At|=i,e.lanes=i,e.memoizedState=m}}function _s(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(x(191,l));l.call(r)}}}var ir={},He=wt(ir),Zn=wt(ir),Jn=wt(ir);function Nt(e){if(e===ir)throw Error(x(174));return e}function ki(e,t){switch(U(Jn,t),U(Zn,e),U(He,ir),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:so(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=so(t,e)}V(He),U(He,t)}function cn(){V(He),V(Zn),V(Jn)}function pa(e){Nt(Jn.current);var t=Nt(He.current),n=so(t,e.type);t!==n&&(U(Zn,e),U(He,n))}function wi(e){Zn.current===e&&(V(He),V(Zn))}var H=wt(0);function el(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $l=[];function Si(){for(var e=0;e<$l.length;e++)$l[e]._workInProgressVersionPrimary=null;$l.length=0}var Mr=tt.ReactCurrentDispatcher,Wl=tt.ReactCurrentBatchConfig,Dt=0,Q=null,q=null,ee=null,tl=!1,Dn=!1,qn=0,hf=0;function oe(){throw Error(x(321))}function Ci(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}function Ei(e,t,n,r,l,o){if(Dt=o,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mr.current=e===null||e.memoizedState===null?vf:xf,e=n(r,l),Dn){o=0;do{if(Dn=!1,qn=0,25<=o)throw Error(x(301));o+=1,ee=q=null,t.updateQueue=null,Mr.current=kf,e=n(r,l)}while(Dn)}if(Mr.current=nl,t=q!==null&&q.next!==null,Dt=0,ee=q=Q=null,tl=!1,t)throw Error(x(300));return e}function _i(){var e=qn!==0;return qn=0,e}function Ve(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ee===null?Q.memoizedState=ee=e:ee=ee.next=e,ee}function Ne(){if(q===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=q.next;var t=ee===null?Q.memoizedState:ee.next;if(t!==null)ee=t,q=e;else{if(e===null)throw Error(x(310));q=e,e={memoizedState:q.memoizedState,baseState:q.baseState,baseQueue:q.baseQueue,queue:q.queue,next:null},ee===null?Q.memoizedState=ee=e:ee=ee.next=e}return ee}function bn(e,t){return typeof t=="function"?t(e):t}function Hl(e){var t=Ne(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=q,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var s=i=null,u=null,d=o;do{var g=d.lane;if((Dt&g)===g)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var m={lane:g,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(s=u=m,i=r):u=u.next=m,Q.lanes|=g,At|=g}d=d.next}while(d!==null&&d!==o);u===null?i=r:u.next=s,Fe(r,t.memoizedState)||(he=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,Q.lanes|=o,At|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ql(e){var t=Ne(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);Fe(o,t.memoizedState)||(he=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ha(){}function ga(e,t){var n=Q,r=Ne(),l=t(),o=!Fe(r.memoizedState,l);if(o&&(r.memoizedState=l,he=!0),r=r.queue,ji(va.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ee!==null&&ee.memoizedState.tag&1){if(n.flags|=2048,er(9,ya.bind(null,n,r,l,t),void 0,null),te===null)throw Error(x(349));Dt&30||ma(n,t,l)}return l}function ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ya(e,t,n,r){t.value=n,t.getSnapshot=r,xa(t)&&ka(e)}function va(e,t,n){return n(function(){xa(t)&&ka(e)})}function xa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fe(e,n)}catch{return!0}}function ka(e){var t=be(e,1);t!==null&&Ue(t,e,1,-1)}function js(e){var t=Ve();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:e},t.queue=e,e=e.dispatch=yf.bind(null,Q,e),[t.memoizedState,e]}function er(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function wa(){return Ne().memoizedState}function Lr(e,t,n,r){var l=Ve();Q.flags|=e,l.memoizedState=er(1|t,n,void 0,r===void 0?null:r)}function gl(e,t,n,r){var l=Ne();r=r===void 0?null:r;var o=void 0;if(q!==null){var i=q.memoizedState;if(o=i.destroy,r!==null&&Ci(r,i.deps)){l.memoizedState=er(t,n,o,r);return}}Q.flags|=e,l.memoizedState=er(1|t,n,o,r)}function zs(e,t){return Lr(8390656,8,e,t)}function ji(e,t){return gl(2048,8,e,t)}function Sa(e,t){return gl(4,2,e,t)}function Ca(e,t){return gl(4,4,e,t)}function Ea(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _a(e,t,n){return n=n!=null?n.concat([e]):null,gl(4,4,Ea.bind(null,t,e),n)}function zi(){}function ja(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ci(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function za(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ci(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t,n){return Dt&21?(Fe(n,t)||(n=Lu(),Q.lanes|=n,At|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,he=!0),e.memoizedState=n)}function gf(e,t){var n=R;R=n!==0&&4>n?n:4,e(!0);var r=Wl.transition;Wl.transition={};try{e(!1),t()}finally{R=n,Wl.transition=r}}function Ia(){return Ne().memoizedState}function mf(e,t,n){var r=mt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Na(e))Ta(t,n);else if(n=da(e,t,n,r),n!==null){var l=ce();Ue(n,e,r,l),Ma(n,t,r)}}function yf(e,t,n){var r=mt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Na(e))Ta(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,Fe(s,i)){var u=t.interleaved;u===null?(l.next=l,vi(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=da(e,t,l,r),n!==null&&(l=ce(),Ue(n,e,r,l),Ma(n,t,r))}}function Na(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Ta(e,t){Dn=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ma(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,li(e,n)}}var nl={readContext:Ie,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},vf={readContext:Ie,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:zs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Lr(4194308,4,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Lr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lr(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mf.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:js,useDebugValue:zi,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=js(!1),t=e[0];return e=gf.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,l=Ve();if($){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),te===null)throw Error(x(349));Dt&30||ma(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,zs(va.bind(null,r,o,e),[e]),r.flags|=2048,er(9,ya.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ve(),t=te.identifierPrefix;if($){var n=Ge,r=Ye;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=hf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xf={readContext:Ie,useCallback:ja,useContext:Ie,useEffect:ji,useImperativeHandle:_a,useInsertionEffect:Sa,useLayoutEffect:Ca,useMemo:za,useReducer:Hl,useRef:wa,useState:function(){return Hl(bn)},useDebugValue:zi,useDeferredValue:function(e){var t=Ne();return Pa(t,q.memoizedState,e)},useTransition:function(){var e=Hl(bn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:ha,useSyncExternalStore:ga,useId:Ia,unstable_isNewReconciler:!1},kf={readContext:Ie,useCallback:ja,useContext:Ie,useEffect:ji,useImperativeHandle:_a,useInsertionEffect:Sa,useLayoutEffect:Ca,useMemo:za,useReducer:Ql,useRef:wa,useState:function(){return Ql(bn)},useDebugValue:zi,useDeferredValue:function(e){var t=Ne();return q===null?t.memoizedState=e:Pa(t,q.memoizedState,e)},useTransition:function(){var e=Ql(bn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:ha,useSyncExternalStore:ga,useId:Ia,unstable_isNewReconciler:!1};function Re(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Io(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ml={isMounted:function(e){return(e=e._reactInternals)?Ft(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ce(),l=mt(e),o=Ze(r,l);o.payload=t,n!=null&&(o.callback=n),t=ht(e,o,l),t!==null&&(Ue(t,e,l,r),Tr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ce(),l=mt(e),o=Ze(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ht(e,o,l),t!==null&&(Ue(t,e,l,r),Tr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ce(),r=mt(e),l=Ze(n,r);l.tag=2,t!=null&&(l.callback=t),t=ht(e,l,r),t!==null&&(Ue(t,e,r,n),Tr(t,e,r))}};function Ps(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!Kn(n,r)||!Kn(l,o):!0}function La(e,t,n){var r=!1,l=xt,o=t.contextType;return typeof o=="object"&&o!==null?o=Ie(o):(l=me(t)?Lt:ue.current,r=t.contextTypes,o=(r=r!=null)?sn(e,l):xt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Is(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ml.enqueueReplaceState(t,t.state,null)}function No(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},xi(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Ie(o):(o=me(t)?Lt:ue.current,l.context=sn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Io(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&ml.enqueueReplaceState(l,l.state,null),br(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function dn(e,t){try{var n="",r=t;do n+=Xc(r),r=r.return;while(r);var l=n}catch(o){l=`
39
+ Error generating stack: `+o.message+`
40
+ `+o.stack}return{value:e,source:t,stack:l,digest:null}}function Kl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function To(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wf=typeof WeakMap=="function"?WeakMap:Map;function Ra(e,t,n){n=Ze(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ll||(ll=!0,Vo=r),To(e,t)},n}function Da(e,t,n){n=Ze(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){To(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){To(e,t),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Ns(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wf;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Df.bind(null,e,t,n),t.then(e,e))}function Ts(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ms(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ze(-1,1),t.tag=2,ht(n,t,1))),n.lanes|=1),e)}var Sf=tt.ReactCurrentOwner,he=!1;function ae(e,t,n,r){t.child=e===null?ca(t,null,n,r):an(t,e.child,n,r)}function Ls(e,t,n,r,l){n=n.render;var o=t.ref;return rn(t,l),r=Ei(e,t,n,r,o,l),n=_i(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,et(e,t,l)):($&&n&&fi(t),t.flags|=1,ae(e,t,r,l),t.child)}function Rs(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Di(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Aa(e,t,o,r,l)):(e=Or(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Kn,n(i,r)&&e.ref===t.ref)return et(e,t,l)}return t.flags|=1,e=yt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Aa(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Kn(o,r)&&e.ref===t.ref)if(he=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(he=!0);else return t.lanes=e.lanes,et(e,t,l)}return Mo(e,t,n,r,l)}function Oa(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(qt,xe),xe|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(qt,xe),xe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(qt,xe),xe|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(qt,xe),xe|=r;return ae(e,t,l,n),t.child}function Ua(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Mo(e,t,n,r,l){var o=me(n)?Lt:ue.current;return o=sn(t,o),rn(t,l),n=Ei(e,t,n,r,o,l),r=_i(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,et(e,t,l)):($&&r&&fi(t),t.flags|=1,ae(e,t,n,l),t.child)}function Ds(e,t,n,r,l){if(me(n)){var o=!0;Yr(t)}else o=!1;if(rn(t,l),t.stateNode===null)Rr(e,t),La(t,n,r),No(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,d=n.contextType;typeof d=="object"&&d!==null?d=Ie(d):(d=me(n)?Lt:ue.current,d=sn(t,d));var g=n.getDerivedStateFromProps,m=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||u!==d)&&Is(t,i,r,d),ot=!1;var h=t.memoizedState;i.state=h,br(t,r,i,l),u=t.memoizedState,s!==r||h!==u||ge.current||ot?(typeof g=="function"&&(Io(t,n,g,r),u=t.memoizedState),(s=ot||Ps(t,n,s,r,h,u,d))?(m||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=d,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,fa(e,t),s=t.memoizedProps,d=t.type===t.elementType?s:Re(t.type,s),i.props=d,m=t.pendingProps,h=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ie(u):(u=me(n)?Lt:ue.current,u=sn(t,u));var k=n.getDerivedStateFromProps;(g=typeof k=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==m||h!==u)&&Is(t,i,r,u),ot=!1,h=t.memoizedState,i.state=h,br(t,r,i,l);var w=t.memoizedState;s!==m||h!==w||ge.current||ot?(typeof k=="function"&&(Io(t,n,k,r),w=t.memoizedState),(d=ot||Ps(t,n,d,r,h,w,u)||!1)?(g||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,w,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,w,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=u,r=d):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Lo(e,t,n,r,o,l)}function Lo(e,t,n,r,l,o){Ua(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&ks(t,n,!1),et(e,t,o);r=t.stateNode,Sf.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=an(t,e.child,null,o),t.child=an(t,null,s,o)):ae(e,t,s,o),t.memoizedState=r.state,l&&ks(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?xs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xs(e,t.context,!1),ki(e,t.containerInfo)}function As(e,t,n,r,l){return un(),hi(l),t.flags|=256,ae(e,t,n,r),t.child}var Ro={dehydrated:null,treeContext:null,retryLane:0};function Do(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ba(e,t,n){var r=t.pendingProps,l=H.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),U(H,l&1),e===null)return zo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=xl(i,r,0,null),e=Mt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Do(n),t.memoizedState=Ro,e):Pi(t,i));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return Cf(e,t,i,r,s,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=yt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?o=yt(s,o):(o=Mt(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Do(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Ro,r}return o=e.child,e=o.sibling,r=yt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Pi(e,t){return t=xl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Sr(e,t,n,r){return r!==null&&hi(r),an(t,e.child,null,n),e=Pi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cf(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Kl(Error(x(422))),Sr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=xl({mode:"visible",children:r.children},l,0,null),o=Mt(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&an(t,e.child,null,i),t.child.memoizedState=Do(i),t.memoizedState=Ro,o);if(!(t.mode&1))return Sr(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(x(419)),r=Kl(o,r,void 0),Sr(e,t,i,r)}if(s=(i&e.childLanes)!==0,he||s){if(r=te,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,be(e,l),Ue(r,e,l,-1))}return Ri(),r=Kl(Error(x(421))),Sr(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Af.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ke=pt(l.nextSibling),we=t,$=!0,Ae=null,e!==null&&(_e[je++]=Ye,_e[je++]=Ge,_e[je++]=Rt,Ye=e.id,Ge=e.overflow,Rt=t),t=Pi(t,r.children),t.flags|=4096,t)}function Os(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Po(e.return,t,n)}function Xl(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Va(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ae(e,t,r.children,n),r=H.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Os(e,n,t);else if(e.tag===19)Os(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(U(H,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&el(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Xl(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&el(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Xl(t,!0,n,null,o);break;case"together":Xl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Rr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),At|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=yt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ef(e,t,n){switch(t.tag){case 3:Fa(t),un();break;case 5:pa(t);break;case 1:me(t.type)&&Yr(t);break;case 4:ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;U(Jr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(H,H.current&1),t.flags|=128,null):n&t.child.childLanes?Ba(e,t,n):(U(H,H.current&1),e=et(e,t,n),e!==null?e.sibling:null);U(H,H.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Va(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),U(H,H.current),r)break;return null;case 22:case 23:return t.lanes=0,Oa(e,t,n)}return et(e,t,n)}var $a,Ao,Wa,Ha;$a=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ao=function(){};Wa=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Nt(He.current);var o=null;switch(n){case"input":l=ro(e,l),r=ro(e,r),o=[];break;case"select":l=K({},l,{value:void 0}),r=K({},r,{value:void 0}),o=[];break;case"textarea":l=io(e,l),r=io(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}uo(n,r);var i;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var s=l[d];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Fn.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var u=r[d];if(s=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&u!==s&&(u!=null||s!=null))if(d==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Fn.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&B("scroll",e),o||s===u||(o=[])):(o=o||[]).push(d,u))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};Ha=function(e,t,n,r){n!==r&&(t.flags|=4)};function En(e,t){if(!$)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ie(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _f(e,t,n){var r=t.pendingProps;switch(pi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ie(t),null;case 1:return me(t.type)&&Xr(),ie(t),null;case 3:return r=t.stateNode,cn(),V(ge),V(ue),Si(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(kr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ae!==null&&(Ho(Ae),Ae=null))),Ao(e,t),ie(t),null;case 5:wi(t);var l=Nt(Jn.current);if(n=t.type,e!==null&&t.stateNode!=null)Wa(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return ie(t),null}if(e=Nt(He.current),kr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[$e]=t,r[Gn]=o,e=(t.mode&1)!==0,n){case"dialog":B("cancel",r),B("close",r);break;case"iframe":case"object":case"embed":B("load",r);break;case"video":case"audio":for(l=0;l<In.length;l++)B(In[l],r);break;case"source":B("error",r);break;case"img":case"image":case"link":B("error",r),B("load",r);break;case"details":B("toggle",r);break;case"input":Ki(r,o),B("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},B("invalid",r);break;case"textarea":Yi(r,o),B("invalid",r)}uo(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];i==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&xr(r.textContent,s,e),l=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&xr(r.textContent,s,e),l=["children",""+s]):Fn.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&B("scroll",r)}switch(n){case"input":dr(r),Xi(r,o,!0);break;case"textarea":dr(r),Gi(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Kr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[$e]=t,e[Gn]=r,$a(e,t,!1,!1),t.stateNode=e;e:{switch(i=ao(n,r),n){case"dialog":B("cancel",e),B("close",e),l=r;break;case"iframe":case"object":case"embed":B("load",e),l=r;break;case"video":case"audio":for(l=0;l<In.length;l++)B(In[l],e);l=r;break;case"source":B("error",e),l=r;break;case"img":case"image":case"link":B("error",e),B("load",e),l=r;break;case"details":B("toggle",e),l=r;break;case"input":Ki(e,r),l=ro(e,r),B("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=K({},r,{value:void 0}),B("invalid",e);break;case"textarea":Yi(e,r),l=io(e,r),B("invalid",e);break;default:l=r}uo(n,l),s=l;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?wu(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&xu(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Bn(e,u):typeof u=="number"&&Bn(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Fn.hasOwnProperty(o)?u!=null&&o==="onScroll"&&B("scroll",e):u!=null&&qo(e,o,u,i))}switch(n){case"input":dr(e),Xi(e,r,!1);break;case"textarea":dr(e),Gi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?bt(e,!!r.multiple,o,!1):r.defaultValue!=null&&bt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Kr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ie(t),null;case 6:if(e&&t.stateNode!=null)Ha(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Nt(Jn.current),Nt(He.current),kr(t)){if(r=t.stateNode,n=t.memoizedProps,r[$e]=t,(o=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:xr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[$e]=t,t.stateNode=r}return ie(t),null;case 13:if(V(H),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($&&ke!==null&&t.mode&1&&!(t.flags&128))ua(),un(),t.flags|=98560,o=!1;else if(o=kr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(x(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(x(317));o[$e]=t}else un(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ie(t),o=!1}else Ae!==null&&(Ho(Ae),Ae=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||H.current&1?b===0&&(b=3):Ri())),t.updateQueue!==null&&(t.flags|=4),ie(t),null);case 4:return cn(),Ao(e,t),e===null&&Xn(t.stateNode.containerInfo),ie(t),null;case 10:return yi(t.type._context),ie(t),null;case 17:return me(t.type)&&Xr(),ie(t),null;case 19:if(V(H),o=t.memoizedState,o===null)return ie(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)En(o,!1);else{if(b!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=el(e),i!==null){for(t.flags|=128,En(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(H,H.current&1|2),t.child}e=e.sibling}o.tail!==null&&G()>fn&&(t.flags|=128,r=!0,En(o,!1),t.lanes=4194304)}else{if(!r)if(e=el(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),En(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return ie(t),null}else 2*G()-o.renderingStartTime>fn&&n!==1073741824&&(t.flags|=128,r=!0,En(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=G(),t.sibling=null,n=H.current,U(H,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return Li(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xe&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function jf(e,t){switch(pi(t),t.tag){case 1:return me(t.type)&&Xr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(),V(ge),V(ue),Si(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wi(t),null;case 13:if(V(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(H),null;case 4:return cn(),null;case 10:return yi(t.type._context),null;case 22:case 23:return Li(),null;case 24:return null;default:return null}}var Cr=!1,se=!1,zf=typeof WeakSet=="function"?WeakSet:Set,E=null;function Jt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function Oo(e,t,n){try{n()}catch(r){X(e,t,r)}}var Us=!1;function Pf(e,t){if(ko=Wr,e=Gu(),di(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,d=0,g=0,m=e,h=null;t:for(;;){for(var k;m!==n||l!==0&&m.nodeType!==3||(s=i+l),m!==o||r!==0&&m.nodeType!==3||(u=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(k=m.firstChild)!==null;)h=m,m=k;for(;;){if(m===e)break t;if(h===n&&++d===l&&(s=i),h===o&&++g===r&&(u=i),(k=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=k}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(wo={focusedElem:e,selectionRange:n},Wr=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,A=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?S:Re(t.type,S),A);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(v){X(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return w=Us,Us=!1,w}function An(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Oo(t,n,o)}l=l.next}while(l!==r)}}function yl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Uo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Qa(e){var t=e.alternate;t!==null&&(e.alternate=null,Qa(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$e],delete t[Gn],delete t[Eo],delete t[cf],delete t[df])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ka(e){return e.tag===5||e.tag===3||e.tag===4}function Fs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ka(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kr));else if(r!==4&&(e=e.child,e!==null))for(Fo(e,t,n),e=e.sibling;e!==null;)Fo(e,t,n),e=e.sibling}function Bo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bo(e,t,n),e=e.sibling;e!==null;)Bo(e,t,n),e=e.sibling}var ne=null,De=!1;function rt(e,t,n){for(n=n.child;n!==null;)Xa(e,t,n),n=n.sibling}function Xa(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(al,n)}catch{}switch(n.tag){case 5:se||Jt(n,t);case 6:var r=ne,l=De;ne=null,rt(e,t,n),ne=r,De=l,ne!==null&&(De?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&(De?(e=ne,n=n.stateNode,e.nodeType===8?Bl(e.parentNode,n):e.nodeType===1&&Bl(e,n),Hn(e)):Bl(ne,n.stateNode));break;case 4:r=ne,l=De,ne=n.stateNode.containerInfo,De=!0,rt(e,t,n),ne=r,De=l;break;case 0:case 11:case 14:case 15:if(!se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Oo(n,t,i),l=l.next}while(l!==r)}rt(e,t,n);break;case 1:if(!se&&(Jt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){X(n,t,s)}rt(e,t,n);break;case 21:rt(e,t,n);break;case 22:n.mode&1?(se=(r=se)||n.memoizedState!==null,rt(e,t,n),se=r):rt(e,t,n);break;default:rt(e,t,n)}}function Bs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zf),t.forEach(function(r){var l=Of.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:ne=s.stateNode,De=!1;break e;case 3:ne=s.stateNode.containerInfo,De=!0;break e;case 4:ne=s.stateNode.containerInfo,De=!0;break e}s=s.return}if(ne===null)throw Error(x(160));Xa(o,i,l),ne=null,De=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){X(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ya(t,e),t=t.sibling}function Ya(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Le(t,e),Be(e),r&4){try{An(3,e,e.return),yl(3,e)}catch(S){X(e,e.return,S)}try{An(5,e,e.return)}catch(S){X(e,e.return,S)}}break;case 1:Le(t,e),Be(e),r&512&&n!==null&&Jt(n,n.return);break;case 5:if(Le(t,e),Be(e),r&512&&n!==null&&Jt(n,n.return),e.flags&32){var l=e.stateNode;try{Bn(l,"")}catch(S){X(e,e.return,S)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&mu(l,o),ao(s,i);var d=ao(s,o);for(i=0;i<u.length;i+=2){var g=u[i],m=u[i+1];g==="style"?wu(l,m):g==="dangerouslySetInnerHTML"?xu(l,m):g==="children"?Bn(l,m):qo(l,g,m,d)}switch(s){case"input":lo(l,o);break;case"textarea":yu(l,o);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var k=o.value;k!=null?bt(l,!!o.multiple,k,!1):h!==!!o.multiple&&(o.defaultValue!=null?bt(l,!!o.multiple,o.defaultValue,!0):bt(l,!!o.multiple,o.multiple?[]:"",!1))}l[Gn]=o}catch(S){X(e,e.return,S)}}break;case 6:if(Le(t,e),Be(e),r&4){if(e.stateNode===null)throw Error(x(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(S){X(e,e.return,S)}}break;case 3:if(Le(t,e),Be(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hn(t.containerInfo)}catch(S){X(e,e.return,S)}break;case 4:Le(t,e),Be(e);break;case 13:Le(t,e),Be(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Ti=G())),r&4&&Bs(e);break;case 22:if(g=n!==null&&n.memoizedState!==null,e.mode&1?(se=(d=se)||g,Le(t,e),se=d):Le(t,e),Be(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!g&&e.mode&1)for(E=e,g=e.child;g!==null;){for(m=E=g;E!==null;){switch(h=E,k=h.child,h.tag){case 0:case 11:case 14:case 15:An(4,h,h.return);break;case 1:Jt(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(S){X(r,n,S)}}break;case 5:Jt(h,h.return);break;case 22:if(h.memoizedState!==null){$s(m);continue}}k!==null?(k.return=h,E=k):$s(m)}g=g.sibling}e:for(g=null,m=e;;){if(m.tag===5){if(g===null){g=m;try{l=m.stateNode,d?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=m.stateNode,u=m.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=ku("display",i))}catch(S){X(e,e.return,S)}}}else if(m.tag===6){if(g===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(S){X(e,e.return,S)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;g===m&&(g=null),m=m.return}g===m&&(g=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Le(t,e),Be(e),r&4&&Bs(e);break;case 21:break;default:Le(t,e),Be(e)}}function Be(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ka(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Bn(l,""),r.flags&=-33);var o=Fs(e);Bo(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,s=Fs(e);Fo(e,s,i);break;default:throw Error(x(161))}}catch(u){X(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function If(e,t,n){E=e,Ga(e)}function Ga(e,t,n){for(var r=(e.mode&1)!==0;E!==null;){var l=E,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||Cr;if(!i){var s=l.alternate,u=s!==null&&s.memoizedState!==null||se;s=Cr;var d=se;if(Cr=i,(se=u)&&!d)for(E=l;E!==null;)i=E,u=i.child,i.tag===22&&i.memoizedState!==null?Ws(l):u!==null?(u.return=i,E=u):Ws(l);for(;o!==null;)E=o,Ga(o),o=o.sibling;E=l,Cr=s,se=d}Vs(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,E=o):Vs(e)}}function Vs(e){for(;E!==null;){var t=E;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:se||yl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!se)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Re(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&_s(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}_s(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var g=d.memoizedState;if(g!==null){var m=g.dehydrated;m!==null&&Hn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}se||t.flags&512&&Uo(t)}catch(h){X(t,t.return,h)}}if(t===e){E=null;break}if(n=t.sibling,n!==null){n.return=t.return,E=n;break}E=t.return}}function $s(e){for(;E!==null;){var t=E;if(t===e){E=null;break}var n=t.sibling;if(n!==null){n.return=t.return,E=n;break}E=t.return}}function Ws(e){for(;E!==null;){var t=E;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yl(4,t)}catch(u){X(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){X(t,l,u)}}var o=t.return;try{Uo(t)}catch(u){X(t,o,u)}break;case 5:var i=t.return;try{Uo(t)}catch(u){X(t,i,u)}}}catch(u){X(t,t.return,u)}if(t===e){E=null;break}var s=t.sibling;if(s!==null){s.return=t.return,E=s;break}E=t.return}}var Nf=Math.ceil,rl=tt.ReactCurrentDispatcher,Ii=tt.ReactCurrentOwner,Pe=tt.ReactCurrentBatchConfig,L=0,te=null,Z=null,re=0,xe=0,qt=wt(0),b=0,tr=null,At=0,vl=0,Ni=0,On=null,pe=null,Ti=0,fn=1/0,Ke=null,ll=!1,Vo=null,gt=null,Er=!1,at=null,ol=0,Un=0,$o=null,Dr=-1,Ar=0;function ce(){return L&6?G():Dr!==-1?Dr:Dr=G()}function mt(e){return e.mode&1?L&2&&re!==0?re&-re:pf.transition!==null?(Ar===0&&(Ar=Lu()),Ar):(e=R,e!==0||(e=window.event,e=e===void 0?16:Bu(e.type)),e):1}function Ue(e,t,n,r){if(50<Un)throw Un=0,$o=null,Error(x(185));rr(e,n,r),(!(L&2)||e!==te)&&(e===te&&(!(L&2)&&(vl|=n),b===4&&st(e,re)),ye(e,r),n===1&&L===0&&!(t.mode&1)&&(fn=G()+500,hl&&St()))}function ye(e,t){var n=e.callbackNode;fd(e,t);var r=$r(e,e===te?re:0);if(r===0)n!==null&&qi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&qi(n),t===1)e.tag===0?ff(Hs.bind(null,e)):oa(Hs.bind(null,e)),uf(function(){!(L&6)&&St()}),n=null;else{switch(Ru(r)){case 1:n=ri;break;case 4:n=Tu;break;case 16:n=Vr;break;case 536870912:n=Mu;break;default:n=Vr}n=rc(n,Za.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Za(e,t){if(Dr=-1,Ar=0,L&6)throw Error(x(327));var n=e.callbackNode;if(ln()&&e.callbackNode!==n)return null;var r=$r(e,e===te?re:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=il(e,r);else{t=r;var l=L;L|=2;var o=qa();(te!==e||re!==t)&&(Ke=null,fn=G()+500,Tt(e,t));do try{Lf();break}catch(s){Ja(e,s)}while(!0);mi(),rl.current=o,L=l,Z!==null?t=0:(te=null,re=0,t=b)}if(t!==0){if(t===2&&(l=go(e),l!==0&&(r=l,t=Wo(e,l))),t===1)throw n=tr,Tt(e,0),st(e,r),ye(e,G()),n;if(t===6)st(e,r);else{if(l=e.current.alternate,!(r&30)&&!Tf(l)&&(t=il(e,r),t===2&&(o=go(e),o!==0&&(r=o,t=Wo(e,o))),t===1))throw n=tr,Tt(e,0),st(e,r),ye(e,G()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:zt(e,pe,Ke);break;case 3:if(st(e,r),(r&130023424)===r&&(t=Ti+500-G(),10<t)){if($r(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ce(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Co(zt.bind(null,e,pe,Ke),t);break}zt(e,pe,Ke);break;case 4:if(st(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-Oe(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nf(r/1960))-r,10<r){e.timeoutHandle=Co(zt.bind(null,e,pe,Ke),r);break}zt(e,pe,Ke);break;case 5:zt(e,pe,Ke);break;default:throw Error(x(329))}}}return ye(e,G()),e.callbackNode===n?Za.bind(null,e):null}function Wo(e,t){var n=On;return e.current.memoizedState.isDehydrated&&(Tt(e,t).flags|=256),e=il(e,t),e!==2&&(t=pe,pe=n,t!==null&&Ho(t)),e}function Ho(e){pe===null?pe=e:pe.push.apply(pe,e)}function Tf(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Fe(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function st(e,t){for(t&=~Ni,t&=~vl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Oe(t),r=1<<n;e[n]=-1,t&=~r}}function Hs(e){if(L&6)throw Error(x(327));ln();var t=$r(e,0);if(!(t&1))return ye(e,G()),null;var n=il(e,t);if(e.tag!==0&&n===2){var r=go(e);r!==0&&(t=r,n=Wo(e,r))}if(n===1)throw n=tr,Tt(e,0),st(e,t),ye(e,G()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zt(e,pe,Ke),ye(e,G()),null}function Mi(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(fn=G()+500,hl&&St())}}function Ot(e){at!==null&&at.tag===0&&!(L&6)&&ln();var t=L;L|=1;var n=Pe.transition,r=R;try{if(Pe.transition=null,R=1,e)return e()}finally{R=r,Pe.transition=n,L=t,!(L&6)&&St()}}function Li(){xe=qt.current,V(qt)}function Tt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sf(n)),Z!==null)for(n=Z.return;n!==null;){var r=n;switch(pi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xr();break;case 3:cn(),V(ge),V(ue),Si();break;case 5:wi(r);break;case 4:cn();break;case 13:V(H);break;case 19:V(H);break;case 10:yi(r.type._context);break;case 22:case 23:Li()}n=n.return}if(te=e,Z=e=yt(e.current,null),re=xe=t,b=0,tr=null,Ni=vl=At=0,pe=On=null,It!==null){for(t=0;t<It.length;t++)if(n=It[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}It=null}return e}function Ja(e,t){do{var n=Z;try{if(mi(),Mr.current=nl,tl){for(var r=Q.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}tl=!1}if(Dt=0,ee=q=Q=null,Dn=!1,qn=0,Ii.current=null,n===null||n.return===null){b=1,tr=t,Z=null;break}e:{var o=e,i=n.return,s=n,u=t;if(t=re,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,g=s,m=g.tag;if(!(g.mode&1)&&(m===0||m===11||m===15)){var h=g.alternate;h?(g.updateQueue=h.updateQueue,g.memoizedState=h.memoizedState,g.lanes=h.lanes):(g.updateQueue=null,g.memoizedState=null)}var k=Ts(i);if(k!==null){k.flags&=-257,Ms(k,i,s,o,t),k.mode&1&&Ns(o,d,t),t=k,u=d;var w=t.updateQueue;if(w===null){var S=new Set;S.add(u),t.updateQueue=S}else w.add(u);break e}else{if(!(t&1)){Ns(o,d,t),Ri();break e}u=Error(x(426))}}else if($&&s.mode&1){var A=Ts(i);if(A!==null){!(A.flags&65536)&&(A.flags|=256),Ms(A,i,s,o,t),hi(dn(u,s));break e}}o=u=dn(u,s),b!==4&&(b=2),On===null?On=[o]:On.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=Ra(o,u,t);Es(o,f);break e;case 1:s=u;var c=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(gt===null||!gt.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var v=Da(o,s,t);Es(o,v);break e}}o=o.return}while(o!==null)}ec(n)}catch(C){t=C,Z===n&&n!==null&&(Z=n=n.return);continue}break}while(!0)}function qa(){var e=rl.current;return rl.current=nl,e===null?nl:e}function Ri(){(b===0||b===3||b===2)&&(b=4),te===null||!(At&268435455)&&!(vl&268435455)||st(te,re)}function il(e,t){var n=L;L|=2;var r=qa();(te!==e||re!==t)&&(Ke=null,Tt(e,t));do try{Mf();break}catch(l){Ja(e,l)}while(!0);if(mi(),L=n,rl.current=r,Z!==null)throw Error(x(261));return te=null,re=0,b}function Mf(){for(;Z!==null;)ba(Z)}function Lf(){for(;Z!==null&&!rd();)ba(Z)}function ba(e){var t=nc(e.alternate,e,xe);e.memoizedProps=e.pendingProps,t===null?ec(e):Z=t,Ii.current=null}function ec(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=jf(n,t),n!==null){n.flags&=32767,Z=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{b=6,Z=null;return}}else if(n=_f(n,t,xe),n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);b===0&&(b=5)}function zt(e,t,n){var r=R,l=Pe.transition;try{Pe.transition=null,R=1,Rf(e,t,n,r)}finally{Pe.transition=l,R=r}return null}function Rf(e,t,n,r){do ln();while(at!==null);if(L&6)throw Error(x(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(pd(e,o),e===te&&(Z=te=null,re=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Er||(Er=!0,rc(Vr,function(){return ln(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Pe.transition,Pe.transition=null;var i=R;R=1;var s=L;L|=4,Ii.current=null,Pf(e,n),Ya(n,e),bd(wo),Wr=!!ko,wo=ko=null,e.current=n,If(n),ld(),L=s,R=i,Pe.transition=o}else e.current=n;if(Er&&(Er=!1,at=e,ol=l),o=e.pendingLanes,o===0&&(gt=null),sd(n.stateNode),ye(e,G()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(ll)throw ll=!1,e=Vo,Vo=null,e;return ol&1&&e.tag!==0&&ln(),o=e.pendingLanes,o&1?e===$o?Un++:(Un=0,$o=e):Un=0,St(),null}function ln(){if(at!==null){var e=Ru(ol),t=Pe.transition,n=R;try{if(Pe.transition=null,R=16>e?16:e,at===null)var r=!1;else{if(e=at,at=null,ol=0,L&6)throw Error(x(331));var l=L;for(L|=4,E=e.current;E!==null;){var o=E,i=o.child;if(E.flags&16){var s=o.deletions;if(s!==null){for(var u=0;u<s.length;u++){var d=s[u];for(E=d;E!==null;){var g=E;switch(g.tag){case 0:case 11:case 15:An(8,g,o)}var m=g.child;if(m!==null)m.return=g,E=m;else for(;E!==null;){g=E;var h=g.sibling,k=g.return;if(Qa(g),g===d){E=null;break}if(h!==null){h.return=k,E=h;break}E=k}}}var w=o.alternate;if(w!==null){var S=w.child;if(S!==null){w.child=null;do{var A=S.sibling;S.sibling=null,S=A}while(S!==null)}}E=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,E=i;else e:for(;E!==null;){if(o=E,o.flags&2048)switch(o.tag){case 0:case 11:case 15:An(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,E=f;break e}E=o.return}}var c=e.current;for(E=c;E!==null;){i=E;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,E=p;else e:for(i=c;E!==null;){if(s=E,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:yl(9,s)}}catch(C){X(s,s.return,C)}if(s===i){E=null;break e}var v=s.sibling;if(v!==null){v.return=s.return,E=v;break e}E=s.return}}if(L=l,St(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(al,e)}catch{}r=!0}return r}finally{R=n,Pe.transition=t}}return!1}function Qs(e,t,n){t=dn(n,t),t=Ra(e,t,1),e=ht(e,t,1),t=ce(),e!==null&&(rr(e,1,t),ye(e,t))}function X(e,t,n){if(e.tag===3)Qs(e,e,n);else for(;t!==null;){if(t.tag===3){Qs(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))){e=dn(n,e),e=Da(t,e,1),t=ht(t,e,1),e=ce(),t!==null&&(rr(t,1,e),ye(t,e));break}}t=t.return}}function Df(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ce(),e.pingedLanes|=e.suspendedLanes&n,te===e&&(re&n)===n&&(b===4||b===3&&(re&130023424)===re&&500>G()-Ti?Tt(e,0):Ni|=n),ye(e,t)}function tc(e,t){t===0&&(e.mode&1?(t=hr,hr<<=1,!(hr&130023424)&&(hr=4194304)):t=1);var n=ce();e=be(e,t),e!==null&&(rr(e,t,n),ye(e,n))}function Af(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tc(e,n)}function Of(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),tc(e,n)}var nc;nc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ge.current)he=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return he=!1,Ef(e,t,n);he=!!(e.flags&131072)}else he=!1,$&&t.flags&1048576&&ia(t,Zr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Rr(e,t),e=t.pendingProps;var l=sn(t,ue.current);rn(t,n),l=Ei(null,t,r,e,l,n);var o=_i();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(o=!0,Yr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,xi(t),l.updater=ml,t.stateNode=l,l._reactInternals=t,No(t,r,e,n),t=Lo(null,t,r,!0,o,n)):(t.tag=0,$&&o&&fi(t),ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Rr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ff(r),e=Re(r,e),l){case 0:t=Mo(null,t,r,e,n);break e;case 1:t=Ds(null,t,r,e,n);break e;case 11:t=Ls(null,t,r,e,n);break e;case 14:t=Rs(null,t,r,Re(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Mo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Ds(e,t,r,l,n);case 3:e:{if(Fa(t),e===null)throw Error(x(387));r=t.pendingProps,o=t.memoizedState,l=o.element,fa(e,t),br(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=dn(Error(x(423)),t),t=As(e,t,r,n,l);break e}else if(r!==l){l=dn(Error(x(424)),t),t=As(e,t,r,n,l);break e}else for(ke=pt(t.stateNode.containerInfo.firstChild),we=t,$=!0,Ae=null,n=ca(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(un(),r===l){t=et(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return pa(t),e===null&&zo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,So(r,l)?i=null:o!==null&&So(r,o)&&(t.flags|=32),Ua(e,t),ae(e,t,i,n),t.child;case 6:return e===null&&zo(t),null;case 13:return Ba(e,t,n);case 4:return ki(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Ls(e,t,r,l,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,U(Jr,r._currentValue),r._currentValue=i,o!==null)if(Fe(o.value,i)){if(o.children===l.children&&!ge.current){t=et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Ze(-1,n&-n),u.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var g=d.pending;g===null?u.next=u:(u.next=g.next,g.next=u),d.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Po(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(x(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Po(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ae(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,rn(t,n),l=Ie(l),r=r(l),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,l=Re(r,t.pendingProps),l=Re(r.type,l),Rs(e,t,r,l,n);case 15:return Aa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Rr(e,t),t.tag=1,me(r)?(e=!0,Yr(t)):e=!1,rn(t,n),La(t,r,l),No(t,r,l,n),Lo(null,t,r,!0,e,n);case 19:return Va(e,t,n);case 22:return Oa(e,t,n)}throw Error(x(156,t.tag))};function rc(e,t){return Nu(e,t)}function Uf(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(e,t,n,r){return new Uf(e,t,n,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ff(e){if(typeof e=="function")return Di(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ei)return 11;if(e===ti)return 14}return 2}function yt(e,t){var n=e.alternate;return n===null?(n=ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Or(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Di(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case $t:return Mt(n.children,l,o,t);case bo:i=8,l|=8;break;case bl:return e=ze(12,n,t,l|2),e.elementType=bl,e.lanes=o,e;case eo:return e=ze(13,n,t,l),e.elementType=eo,e.lanes=o,e;case to:return e=ze(19,n,t,l),e.elementType=to,e.lanes=o,e;case pu:return xl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case du:i=10;break e;case fu:i=9;break e;case ei:i=11;break e;case ti:i=14;break e;case lt:i=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=ze(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Mt(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function xl(e,t,n,r){return e=ze(22,e,r,t),e.elementType=pu,e.lanes=n,e.stateNode={isHidden:!1},e}function Yl(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function Gl(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bf(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Il(0),this.expirationTimes=Il(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Il(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ai(e,t,n,r,l,o,i,s,u){return e=new Bf(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xi(o),e}function Vf(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lc(e){if(!e)return xt;e=e._reactInternals;e:{if(Ft(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if(me(n))return la(e,n,t)}return t}function oc(e,t,n,r,l,o,i,s,u){return e=Ai(n,r,!0,e,l,o,i,s,u),e.context=lc(null),n=e.current,r=ce(),l=mt(n),o=Ze(r,l),o.callback=t??null,ht(n,o,l),e.current.lanes=l,rr(e,l,r),ye(e,r),e}function kl(e,t,n,r){var l=t.current,o=ce(),i=mt(l);return n=lc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ze(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ht(l,t,i),e!==null&&(Ue(e,l,i,o),Tr(e,l,i)),i}function sl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ks(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Oi(e,t){Ks(e,t),(e=e.alternate)&&Ks(e,t)}function $f(){return null}var ic=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ui(e){this._internalRoot=e}wl.prototype.render=Ui.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));kl(e,t,null,null)};wl.prototype.unmount=Ui.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ot(function(){kl(null,e,null,null)}),t[qe]=null}};function wl(e){this._internalRoot=e}wl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ou();e={blockedOn:null,target:e,priority:t};for(var n=0;n<it.length&&t!==0&&t<it[n].priority;n++);it.splice(n,0,e),n===0&&Fu(e)}};function Fi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xs(){}function Wf(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var d=sl(i);o.call(d)}}var i=oc(t,r,e,0,null,!1,!1,"",Xs);return e._reactRootContainer=i,e[qe]=i.current,Xn(e.nodeType===8?e.parentNode:e),Ot(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var s=r;r=function(){var d=sl(u);s.call(d)}}var u=Ai(e,0,!1,null,null,!1,!1,"",Xs);return e._reactRootContainer=u,e[qe]=u.current,Xn(e.nodeType===8?e.parentNode:e),Ot(function(){kl(t,u,n,r)}),u}function Cl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var s=l;l=function(){var u=sl(i);s.call(u)}}kl(t,i,e,l)}else i=Wf(n,t,e,l,r);return sl(i)}Du=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pn(t.pendingLanes);n!==0&&(li(t,n|1),ye(t,G()),!(L&6)&&(fn=G()+500,St()))}break;case 13:Ot(function(){var r=be(e,1);if(r!==null){var l=ce();Ue(r,e,1,l)}}),Oi(e,1)}};oi=function(e){if(e.tag===13){var t=be(e,134217728);if(t!==null){var n=ce();Ue(t,e,134217728,n)}Oi(e,134217728)}};Au=function(e){if(e.tag===13){var t=mt(e),n=be(e,t);if(n!==null){var r=ce();Ue(n,e,t,r)}Oi(e,t)}};Ou=function(){return R};Uu=function(e,t){var n=R;try{return R=e,t()}finally{R=n}};fo=function(e,t,n){switch(t){case"input":if(lo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=pl(r);if(!l)throw Error(x(90));gu(r),lo(r,l)}}}break;case"textarea":yu(e,n);break;case"select":t=n.value,t!=null&&bt(e,!!n.multiple,t,!1)}};Eu=Mi;_u=Ot;var Hf={usingClientEntryPoint:!1,Events:[or,Kt,pl,Su,Cu,Mi]},_n={findFiberByHostInstance:Pt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qf={bundleType:_n.bundleType,version:_n.version,rendererPackageName:_n.rendererPackageName,rendererConfig:_n.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:tt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Pu(e),e===null?null:e.stateNode},findFiberByHostInstance:_n.findFiberByHostInstance||$f,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_r.isDisabled&&_r.supportsFiber)try{al=_r.inject(Qf),We=_r}catch{}}Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hf;Ce.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fi(t))throw Error(x(200));return Vf(e,t,null,n)};Ce.createRoot=function(e,t){if(!Fi(e))throw Error(x(299));var n=!1,r="",l=ic;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Ai(e,1,!1,null,null,n,!1,r,l),e[qe]=t.current,Xn(e.nodeType===8?e.parentNode:e),new Ui(t)};Ce.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=Pu(t),e=e===null?null:e.stateNode,e};Ce.flushSync=function(e){return Ot(e)};Ce.hydrate=function(e,t,n){if(!Sl(t))throw Error(x(200));return Cl(null,e,t,!0,n)};Ce.hydrateRoot=function(e,t,n){if(!Fi(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=ic;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=oc(t,null,e,1,n??null,l,!1,o,i),e[qe]=t.current,Xn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new wl(t)};Ce.render=function(e,t,n){if(!Sl(t))throw Error(x(200));return Cl(null,e,t,!1,n)};Ce.unmountComponentAtNode=function(e){if(!Sl(e))throw Error(x(40));return e._reactRootContainer?(Ot(function(){Cl(null,null,e,!1,function(){e._reactRootContainer=null,e[qe]=null})}),!0):!1};Ce.unstable_batchedUpdates=Mi;Ce.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Sl(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Cl(e,t,n,!1,r)};Ce.version="18.3.1-next-f1338f8080-20240426";function sc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sc)}catch(e){console.error(e)}}sc(),su.exports=Ce;var Kf=su.exports,Ys=Kf;Jl.createRoot=Ys.createRoot,Jl.hydrateRoot=Ys.hydrateRoot;/**
41
+ * @license lucide-react v0.468.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const Xf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46
+ * @license lucide-react v0.468.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */var Yf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51
+ * @license lucide-react v0.468.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const Gf=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:i,...s},u)=>M.createElement("svg",{ref:u,...Yf,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:uc("lucide",l),...s},[...i.map(([d,g])=>M.createElement(d,g)),...Array.isArray(o)?o:[o]]));/**
56
+ * @license lucide-react v0.468.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const D=(e,t)=>{const n=M.forwardRef(({className:r,...l},o)=>M.createElement(Gf,{ref:o,iconNode:t,className:uc(`lucide-${Xf(e)}`,r),...l}));return n.displayName=`${e}`,n};/**
61
+ * @license lucide-react v0.468.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const Zf=D("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
66
+ * @license lucide-react v0.468.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const Jf=D("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
71
+ * @license lucide-react v0.468.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const ac=D("BatteryCharging",[["path",{d:"M15 7h1a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2",key:"1sdynx"}],["path",{d:"M6 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h1",key:"1gkd3k"}],["path",{d:"m11 7-3 5h4l-3 5",key:"b4a64w"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
76
+ * @license lucide-react v0.468.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const qf=D("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
81
+ * @license lucide-react v0.468.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const bf=D("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
86
+ * @license lucide-react v0.468.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const ep=D("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
91
+ * @license lucide-react v0.468.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const cc=D("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
96
+ * @license lucide-react v0.468.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const Gs=D("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
101
+ * @license lucide-react v0.468.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const tp=D("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
106
+ * @license lucide-react v0.468.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const np=D("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
111
+ * @license lucide-react v0.468.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const dc=D("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
116
+ * @license lucide-react v0.468.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const rp=D("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
121
+ * @license lucide-react v0.468.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const lp=D("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
126
+ * @license lucide-react v0.468.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const op=D("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
131
+ * @license lucide-react v0.468.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const ip=D("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
136
+ * @license lucide-react v0.468.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const sp=D("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
141
+ * @license lucide-react v0.468.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const up=D("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
146
+ * @license lucide-react v0.468.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const ap=D("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
151
+ * @license lucide-react v0.468.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const fc=D("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
156
+ * @license lucide-react v0.468.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const cp=D("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
161
+ * @license lucide-react v0.468.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const Qo=D("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
166
+ * @license lucide-react v0.468.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const dp=D("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
171
+ * @license lucide-react v0.468.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const fp=D("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
176
+ * @license lucide-react v0.468.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const pp=D("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
181
+ * @license lucide-react v0.468.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const pc=D("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
186
+ * @license lucide-react v0.468.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const hc=D("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
191
+ * @license lucide-react v0.468.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const hp=D("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),Zl={standard:{id:"user_std_001",name:"Nguyễn Văn An",phone:"0901234567",email:"an.nguyen@example.com",avatarUrl:"https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=150",role:"CUSTOMER",isVerified:!0,walletBalance:25e5},vip:{id:"user_vip_888",name:"Trần Thị Mai (VIP Diamond)",phone:"0988888888",email:"mai.tran@superapp.vn",avatarUrl:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=150",role:"VIP",isVerified:!0,walletBalance:5e7},lowBalance:{id:"user_low_002",name:"Lê Hoàng Khang",phone:"0912345678",email:"khang.le@example.com",avatarUrl:"https://images.unsplash.com/photo-1570295999919-56ceb5ecca61?w=150",role:"CUSTOMER",isVerified:!0,walletBalance:15e3},unverified:{id:"user_guest_999",name:"Khách Vãng Lai",phone:"",email:"",avatarUrl:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150",role:"CUSTOMER",isVerified:!1,walletBalance:0}};class gp{constructor(t="superapp_mock_state"){J(this,"user");J(this,"session",null);J(this,"transactions",[]);J(this,"appStorage",new Map);J(this,"deviceState");J(this,"networkCondition");J(this,"permissions");this.user={...Zl.standard},this.deviceState={batteryLevel:85,isCharging:!1,platform:"ios",language:"vi-VN",systemName:"iOS",systemVersion:"18.2",model:"iPhone 15 Pro Max"},this.networkCondition={online:!0,type:"wifi",latencyMs:50},this.permissions={camera:"granted",location:"granted",notification:"granted",photos:"granted"},this.initDefaultSession()}initDefaultSession(){const t=Date.now();this.session={accessToken:`mock_jwt_${Math.random().toString(36).substring(2)}${Date.now()}`,refreshToken:`mock_refresh_${Math.random().toString(36).substring(2)}`,expiresIn:3600,tokenType:"Bearer",issuedAt:t}}getUser(){return{...this.user}}setUser(t){return this.user={...this.user,...t},this.getUser()}setUserPreset(t){const n=Zl[t]||Zl.standard;return this.user={...n},this.getUser()}getSession(){return!this.session||Date.now()>this.session.issuedAt+this.session.expiresIn*1e3?null:{...this.session}}createSession(){return this.initDefaultSession(),this.getSession()}clearSession(){this.session=null}getBalance(){return this.user.walletBalance}deductBalance(t){return this.user.walletBalance<t?!1:(this.user.walletBalance-=t,!0)}addTransaction(t){this.transactions.unshift(t)}getTransactions(){return[...this.transactions]}getTransaction(t){return this.transactions.find(n=>n.transactionId===t)}getDeviceState(){return{...this.deviceState}}updateDeviceState(t){this.deviceState={...this.deviceState,...t}}getNetworkCondition(){return{...this.networkCondition}}setNetworkCondition(t){this.networkCondition={...this.networkCondition,...t}}getPermissions(){return{...this.permissions}}setPermission(t,n){this.permissions[t]=n}getStorage(t){return this.appStorage.has(t)||this.appStorage.set(t,new Map),this.appStorage.get(t)}setStorageItem(t,n,r){this.getStorage(t).set(n,r)}getStorageItem(t,n){return this.getStorage(t).get(n)??null}removeStorageItem(t,n){this.getStorage(t).delete(n)}clearStorage(t){this.getStorage(t).clear()}}class mp{constructor(t){this.store=t}async login(t={}){var o,i;const n=this.store.getUser(),r=this.store.createSession();return{authCode:`AUTH_${Math.random().toString(36).substring(2,10).toUpperCase()}`,accessToken:r.accessToken,refreshToken:r.refreshToken,expiresIn:r.expiresIn,user:{id:n.id,name:n.name,avatarUrl:n.avatarUrl,phone:((o=t.scopes)!=null&&o.includes("user.phone"),n.phone),email:((i=t.scopes)!=null&&i.includes("user.email"),n.email),role:n.role,walletBalance:n.walletBalance}}}async requestCode(t={}){const n=this.store.getUser();return{authCode:`AUTH_${Math.random().toString(36).substring(2,10).toUpperCase()}`,userId:n.id,expiresIn:60}}async exchangeCode(t={}){const n=this.store.getUser(),r=this.store.createSession();return{accessToken:r.accessToken,refreshToken:r.refreshToken,tokenType:"Bearer",expiresIn:3600,userId:n.id,user:{id:n.id,name:n.name,avatarUrl:n.avatarUrl,phone:n.phone,email:n.email,role:n.role,walletBalance:n.walletBalance}}}async getAccessToken(){const t=this.store.getSession();if(!t)throw{code:"TOKEN_EXPIRED",message:"Current access token has expired. Call auth.login() again."};return{accessToken:t.accessToken,tokenType:t.tokenType,expiresIn:Math.max(0,Math.floor((t.issuedAt+t.expiresIn*1e3-Date.now())/1e3))}}async getUserProfile(){const t=this.store.getUser();return{id:t.id,name:t.name,phone:t.phone,email:t.email,avatarUrl:t.avatarUrl,role:t.role,isVerified:t.isVerified,walletBalance:t.walletBalance}}async getProfile(){return this.getUserProfile()}async getBasicInfo(){const t=this.store.getUser();return{id:t.id,name:t.name,avatarUrl:t.avatarUrl}}async refreshToken(t={}){const n=this.store.createSession();return{accessToken:n.accessToken,refreshToken:n.refreshToken,expiresIn:n.expiresIn}}async logout(){return this.store.clearSession(),{success:!0,message:"Logged out successfully"}}}class yp{constructor(t){this.store=t}async getBatteryInfo(){const t=this.store.getDeviceState();return{batteryLevel:t.batteryLevel,isCharging:t.isCharging}}async getNetworkInfo(){const t=this.store.getNetworkCondition();return{isConnected:t.online,networkType:t.type,isWifi:t.type==="wifi",isMobile:t.type==="4g"||t.type==="5g"||t.type==="2g"}}async getDeviceInfo(){const t=this.store.getDeviceState();return{model:t.model,platform:t.platform,systemName:t.systemName,systemVersion:t.systemVersion,language:t.language,screenWidth:390,screenHeight:844,pixelRatio:3}}async getSystemInfo(){return this.getDeviceInfo()}async vibrate(t={}){if(typeof navigator<"u"&&"vibrate"in navigator)try{const n=t.style==="heavy"?80:t.style==="medium"?40:15;navigator.vibrate(n)}catch{}return{success:!0,style:t.style||"light"}}async keepScreen(t={}){return{success:!0,keepScreenOn:t.keepScreenOn!==!1}}}class vp{constructor(t){this.store=t}async getItem(t,n){if(!(n!=null&&n.key))throw{code:"INVALID_KEY",message:"Storage key is required"};const r=this.store.getStorageItem(t,n.key);return{key:n.key,value:r}}async setItem(t,n){if(!(n!=null&&n.key))throw{code:"INVALID_KEY",message:"Storage key is required"};return this.store.setStorageItem(t,n.key,String(n.value)),{success:!0,key:n.key}}async removeItem(t,n){if(!(n!=null&&n.key))throw{code:"INVALID_KEY",message:"Storage key is required"};return this.store.removeStorageItem(t,n.key),{success:!0,key:n.key}}async clear(t){return this.store.clearStorage(t),{success:!0}}async getAll(t){const n=this.store.getStorage(t),r={};return n.forEach((l,o)=>{r[o]=l}),r}}class xp{async showToast(t){return typeof window<"u"&&console.log(`[Toast] ${t.message}`),{success:!0,message:t.message}}async showAlert(t){return typeof window<"u"&&typeof window.alert=="function"&&window.alert(`${t.title}
196
+
197
+ ${t.message}`),{confirmed:!0}}async showConfirm(t){let n=!0;return typeof window<"u"&&typeof window.confirm=="function"&&(n=window.confirm(`${t.title}
198
+
199
+ ${t.message}`)),{confirmed:n}}async setNavigationBarTitle(t){return typeof document<"u"&&(document.title=t.title),{success:!0,title:t.title}}async setStatusBarColor(t){return{success:!0,color:t.color}}async setNavigationBarColor(t){return{success:!0,color:t.color,textColor:t.textColor||"black",statusBarColor:t.statusBarColor}}async configAppView(t={}){return{success:!0,actionBarHidden:!!t.actionBarHidden,statusBar:t.statusBar||"transparent",hideAndroidBottomNavigationBar:!!t.hideAndroidBottomNavigationBar,hasPadding:t.hasPadding!==!1,...t}}async requestSendNotification(t={}){return{success:!0,granted:!0,subscriptionId:`mock_sub_${Date.now()}`,token:`mock_notif_token_${Date.now()}`,templateId:t.templateId,reason:t.reason}}}class kp{async scanQRCode(t={}){return{content:"https://superapp.vn/pay?order=mock_qr_12345",format:"QR_CODE"}}async chooseImage(t={}){const n=t.count||1,r=["https://images.unsplash.com/photo-1546069901-ba9599a7e63c?w=500","https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?w=500"];return{tempFilePaths:r.slice(0,n),count:Math.min(n,r.length)}}}class wp{constructor(t){J(this,"approvalHook");this.store=t}setApprovalHook(t){this.approvalHook=t}async requestPayment(t){const n=Number(t.amount)||0,r=t.orderId||`ORD_${Date.now()}_${Math.floor(1e3+Math.random()*9e3)}`,l={orderId:r,amount:n,description:t.description||"Thanh toán dịch vụ Mini App",extraData:{currency:t.currency||"VND"}};if(this.approvalHook&&!await this.approvalHook(l))throw{code:"USER_CANCELLED",message:"Người dùng đã huỷ giao dịch thanh toán"};const o=this.store.getUser();if(o.walletBalance<n)throw{code:"INSUFFICIENT_FUNDS",message:`Số dư ví SuperApp Pay (${o.walletBalance.toLocaleString("vi-VN")} đ) không đủ để thanh toán ${n.toLocaleString("vi-VN")} đ`};this.store.deductBalance(n);const s={status:"SUCCESS",transactionId:`TXN_${Date.now()}_${Math.random().toString(36).substring(2,8).toUpperCase()}`,orderId:r,amount:n,timestamp:Date.now(),paymentMethod:"SUPERAPP_WALLET",message:"Thanh toán thành công qua Ví SuperApp"};return this.store.addTransaction(s),s}async createOrder(t){return{orderId:`ORD_${Date.now()}_${Math.floor(1e3+Math.random()*9e3)}`,amount:Number(t.amount)||0,currency:t.currency||"VND",status:"PENDING"}}}class Sp{constructor(t={}){J(this,"store");J(this,"auth");J(this,"device");J(this,"storage");J(this,"ui");J(this,"media");J(this,"payment");J(this,"latencyMs");J(this,"logListeners",new Set);J(this,"logs",[]);this.store=new gp(t.storageKeyPrefix),this.latencyMs=t.simulatedLatencyMs??40,this.auth=new mp(this.store),this.device=new yp(this.store),this.storage=new vp(this.store),this.ui=new xp,this.media=new kp,this.payment=new wp(this.store)}setLatency(t){this.latencyMs=t}onLog(t){return this.logListeners.add(t),()=>this.logListeners.delete(t)}getLogs(){return[...this.logs]}clearLogs(){this.logs=[]}async dispatch(t){const n=Date.now();this.latencyMs>0&&await new Promise(r=>setTimeout(r,this.latencyMs));try{const r=await this.routeAction(t),l=Date.now()-n,o={id:t.id,action:t.action,success:!0,data:r,timestamp:Date.now()};return this.recordLog({id:t.id,action:t.action,payload:t.payload,response:r,durationMs:l,timestamp:n,success:!0}),o}catch(r){const l=Date.now()-n,o={code:(r==null?void 0:r.code)||"ACTION_FAILED",message:(r==null?void 0:r.message)||"Operation failed in mock engine",details:r==null?void 0:r.details},i={id:t.id,action:t.action,success:!1,error:o,timestamp:Date.now()};return this.recordLog({id:t.id,action:t.action,payload:t.payload,error:o,durationMs:l,timestamp:n,success:!1}),i}}recordLog(t){this.logs.unshift(t),this.logs.length>200&&this.logs.pop(),this.logListeners.forEach(n=>{try{n(t)}catch(r){console.error("[SDKMockEngine] Error in log listener:",r)}})}async routeAction(t){var i;const{action:n,payload:r,appId:l}=t,o=r||{};switch(n){case"auth.login":case"login":return this.auth.login(o);case"auth.requestCode":return this.auth.requestCode(o);case"auth.exchangeCode":return this.auth.exchangeCode(o);case"auth.getAccessToken":case"getAccessToken":return this.auth.getAccessToken();case"auth.getUserProfile":case"getUserProfile":case"user.getProfile":return this.auth.getUserProfile();case"user.getBasicInfo":return this.auth.getBasicInfo();case"auth.refreshToken":return this.auth.refreshToken(o);case"auth.logout":return this.auth.logout();case"payment.requestPayment":case"payment.openCheckout":case"requestPayment":return this.payment.requestPayment(o);case"payment.createOrder":return this.payment.createOrder(o);case"device.getBatteryInfo":case"getBatteryInfo":return this.device.getBatteryInfo();case"device.getNetworkInfo":case"getNetworkInfo":return this.device.getNetworkInfo();case"device.getDeviceInfo":case"getDeviceInfo":return this.device.getDeviceInfo();case"device.getSystemInfo":case"getSystemInfo":return this.device.getSystemInfo();case"getAppInfo":return{appId:l||"mini_app",version:"1.0.0",platformVersion:"2.0.0",appName:"SuperApp Mini App"};case"device.getLocation":case"getLocation":return{latitude:21.028511,longitude:105.854167,accuracy:10,altitude:12,speed:0,address:"Hà Nội, Việt Nam"};case"getDeviceLanguage":return{language:this.store.getDeviceState().language||"vi-VN"};case"getSuperAppSettings":return{theme:"dark",notificationsEnabled:!0,language:"vi-VN",appVersion:"1.0.0"};case"device.vibrate":case"vibrate":return this.device.vibrate(o);case"device.keepScreen":case"keepScreen":return this.device.keepScreen(o);case"copyToClipboard":return{success:!0,text:o.text};case"setBrightness":return{success:!0,brightness:o.brightness};case"getContacts":return{contacts:[{id:"c_01",name:"Nguyễn Văn An",phone:"0988123456",email:"an.nguyen@example.com"},{id:"c_02",name:"Trần Thị Mai",phone:"0912345678",email:"mai.tran@example.com"}]};case"permission.request":case"permission.check":case"permission.getPermissions":return{granted:!0,capability:o.capability,permissions:{camera:"granted",location:"granted",notification:"granted",photos:"granted"}};case"storage.getItem":case"getStorage":case"storage.getSecureItem":return this.storage.getItem(l,o);case"storage.setItem":case"setStorage":case"storage.setSecureItem":return this.storage.setItem(l,o);case"storage.removeItem":case"removeStorage":case"storage.removeSecureItem":return this.storage.removeItem(l,o);case"storage.clear":case"clearStorage":return this.storage.clear(l);case"storage.getAll":return this.storage.getAll(l);case"storage.getCredentials":return{username:this.store.getUser().email,token:(i=this.store.getSession())==null?void 0:i.accessToken,role:this.store.getUser().role};case"storage.setCredentials":case"storage.deleteCredentials":return{success:!0};case"ui.showToast":case"showToast":return this.ui.showToast(o);case"ui.showAlert":case"showAlert":return this.ui.showAlert(o);case"ui.showConfirm":case"showConfirm":return this.ui.showConfirm(o);case"ui.setNavigationBarTitle":case"setTitle":case"setNavigationBarTitle":return this.ui.setNavigationBarTitle(o);case"ui.setStatusBarColor":case"setStatusBarColor":return this.ui.setStatusBarColor(o);case"ui.setNavigationBarColor":case"setNavigationBarColor":return this.ui.setNavigationBarColor(o);case"ui.configAppView":case"configAppView":return this.ui.configAppView(o);case"ui.requestSendNotification":case"requestSendNotification":return this.ui.requestSendNotification(o);case"showMiniappMenu":case"ui.showMiniappMenu":return{success:!0,message:"Menu triggered"};case"media.scanQRCode":case"scanQr":case"device.scanQRCode":return this.media.scanQRCode(o);case"media.chooseImage":case"getPhoto":case"device.pickImage":case"pickImages":return this.media.chooseImage(o);case"saveImageToGallery":case"saveVideoToGallery":case"pickVideo":case"saveFile":case"pickFile":case"filePreview":return{success:!0,uri:o.uri||"mock_file_uri_"+Date.now(),name:o.fileName||"demo_file.png"};case"navigation.closeApp":case"closeApp":case"navigation.close":return{success:!0,message:"App closed"};case"navigation.minimizeApp":case"minimizeApp":return{success:!0,status:"minimized",appId:l};case"navigation.openMiniApp":return{success:!0,targetAppId:o.appId};case"navigation.openNativePage":return{success:!0,page:o.page,params:o.params};case"openPhone":case"openSMS":case"openExternalBrowser":case"openDeepLink":return{success:!0};case"speechToText":return{success:!0,text:"Nội dung nhận diện giọng nói thử nghiệm",lang:o.lang||"vi-VN"};case"hideKeyboard":return{success:!0};case"debug.echo":return o;case"debug.simulateFailure":throw{code:o.type||"SIMULATED_FAILURE",message:"Mô phỏng lỗi debug từ Simulator"};default:return console.warn(`[SDKMockEngine] Action "${n}" not specifically handled. Returning generic success.`),{success:!0,action:n,payload:o}}}}const gc=M.createContext(null),Cp=({children:e})=>{const[t]=M.useState(()=>new Sp({autoApprovePayment:!0})),[n,r]=M.useState(()=>typeof window<"u"&&new URLSearchParams(window.location.search).get("url")||"http://localhost:3000"),[l,o]=M.useState("iphone"),[i,s]=M.useState(1),[u,d]=M.useState([]),[g,m]=M.useState("bridge"),[h,k]=M.useState(!1),[w,S]=M.useState(1),[A,f]=M.useState(null),[c,p]=M.useState(()=>t.store.getUser()),[v,C]=M.useState(()=>t.store.getNetworkCondition()),[j,_]=M.useState(()=>t.store.getDeviceState()),z=M.useRef(null);M.useEffect(()=>{const F=t.onLog(y=>{d(P=>[y,...P.slice(0,150)])});return()=>{F()}},[t]),M.useEffect(()=>{h?t.payment.setApprovalHook(F=>new Promise(y=>{z.current=y,f({order:F,resolve:y})})):t.payment.setApprovalHook(void 0)},[t,h]),M.useEffect(()=>{const F=async y=>{const P=y.data;if(!P)return;if(P.type==="MINIAPP_CLOSE"||P.type==="MINIAPP_MINIMIZE"){t.onLog(Me=>d(nt=>[Me,...nt.slice(0,150)]));return}let I=null;if(P.type==="SUPERAPP_BRIDGE_REQUEST"&&P.request?I=P.request:P.id&&P.action&&(I=P),!I||!I.id||!I.action)return;const O=await t.dispatch(I);p(t.store.getUser()),_(t.store.getDeviceState());const Y={type:"SUPERAPP_BRIDGE_RESPONSE",response:O};y.source&&"postMessage"in y.source&&y.source.postMessage(Y,"*"),document.querySelectorAll("iframe").forEach(Me=>{var nt;(nt=Me.contentWindow)==null||nt.postMessage(Y,"*")})};return window.addEventListener("message",F),()=>window.removeEventListener("message",F)},[t]);const W=F=>{z.current&&(z.current(F),z.current=null),f(null)},N=F=>{const y=t.store.setUser(F);p(y),Te("session.changed",{user:y,status:"LOGGED_IN"}),Te("auth.userChanged",{user:y}),Te("auth.sessionChanged",{state:"logged_in",user:y,userId:y.id})},ve=F=>{const y=t.store.setUserPreset(F);p(y),Te("session.changed",{user:y,status:"LOGGED_IN"}),Te("auth.userChanged",{user:y}),Te("auth.sessionChanged",{state:"logged_in",user:y,userId:y.id})},Ct=F=>{t.store.setNetworkCondition(F);const y=t.store.getNetworkCondition();C(y),Te("miniapp.networkChanged",{isConnected:y.online,networkType:y.type})},Et=F=>{t.store.updateDeviceState(F);const y=t.store.getDeviceState();_(y),Te("miniapp.batteryChanged",{batteryLevel:y.batteryLevel,isCharging:y.isCharging})},sr=()=>{S(F=>F+1)},Te=(F,y)=>{document.querySelectorAll("iframe").forEach(I=>{var O;(O=I.contentWindow)==null||O.postMessage({type:"SUPERAPP_BRIDGE_EVENT",event:F,payload:y},"*")})},mn=()=>{t.clearLogs(),d([])};return a.jsx(gc.Provider,{value:{mockEngine:t,miniAppUrl:n,setMiniAppUrl:r,deviceType:l,setDeviceType:o,scale:i,setScale:s,logs:u,clearLogs:mn,activeTab:g,setActiveTab:m,user:c,setUser:N,setUserPreset:ve,network:v,setNetwork:Ct,deviceState:j,setDeviceState:Et,manualPaymentMode:h,setManualPaymentMode:k,pendingPayment:A,resolvePayment:W,reloadIframe:sr,iframeKey:w,sendEventToMiniApp:Te},children:e})},Qe=()=>{const e=M.useContext(gc);if(!e)throw new Error("useSimulator must be used inside SimulatorProvider");return e},Ep=()=>{const{deviceType:e,network:t,deviceState:n}=Qe(),[r,l]=M.useState("09:41");return M.useEffect(()=>{const o=()=>{const s=new Date;l(`${String(s.getHours()).padStart(2,"0")}:${String(s.getMinutes()).padStart(2,"0")}`)};o();const i=setInterval(o,1e4);return()=>clearInterval(i)},[]),a.jsxs("div",{style:{height:44,padding:"0 20px",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#ffffff",color:"#000000",fontSize:13,fontWeight:600,userSelect:"none",position:"relative",borderTopLeftRadius:e==="iphone"?44:28,borderTopRightRadius:e==="iphone"?44:28},children:[a.jsx("span",{children:r}),e==="iphone"?a.jsx("div",{style:{position:"absolute",top:10,left:"50%",transform:"translateX(-50%)",width:110,height:28,backgroundColor:"#000000",borderRadius:18,zIndex:10}}):a.jsx("div",{style:{position:"absolute",top:12,left:"50%",transform:"translateX(-50%)",width:14,height:14,backgroundColor:"#000000",borderRadius:"50%",zIndex:10}}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[t.online?a.jsx("span",{style:{fontSize:11,fontWeight:700},children:t.type.toUpperCase()}):a.jsx("span",{style:{fontSize:11,color:"#ef4444"},children:"OFFLINE"}),t.online?a.jsx(pc,{size:14}):a.jsx(pp,{size:14,color:"#ef4444"}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[a.jsxs("span",{style:{fontSize:11},children:[n.batteryLevel,"%"]}),n.isCharging?a.jsx(ac,{size:16,color:"#10b981"}):a.jsx(qf,{size:16})]})]})]})},_p=({title:e="Mini App"})=>{const{reloadIframe:t,sendEventToMiniApp:n}=Qe();return a.jsxs("div",{style:{height:48,padding:"0 12px",backgroundColor:"#ffffff",borderBottom:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",color:"#0f172a"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.jsx("button",{onClick:()=>n("onNavigateBack",{}),title:"Back",style:{background:"none",border:"none",cursor:"pointer",padding:4,display:"flex",alignItems:"center"},children:a.jsx(Jf,{size:18,color:"#0f172a"})}),a.jsx("span",{style:{fontSize:15,fontWeight:600,maxWidth:160,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#f1f5f9",border:"1px solid #cbd5e1",borderRadius:20,padding:"2px 6px",gap:6},children:[a.jsx("button",{onClick:t,title:"Tải lại Mini App",style:{background:"none",border:"none",cursor:"pointer",padding:2,display:"flex",alignItems:"center"},children:a.jsx(ap,{size:13,color:"#475569"})}),a.jsx("div",{style:{width:1,height:12,backgroundColor:"#cbd5e1"}}),a.jsx("button",{title:"Menu",style:{background:"none",border:"none",cursor:"pointer",padding:2,display:"flex",alignItems:"center"},children:a.jsx(rp,{size:14,color:"#475569"})}),a.jsx("div",{style:{width:1,height:12,backgroundColor:"#cbd5e1"}}),a.jsx("button",{onClick:()=>alert("Đóng Mini App - Trở về màn hình chính SuperApp"),title:"Đóng Mini App",style:{background:"none",border:"none",cursor:"pointer",padding:2,display:"flex",alignItems:"center"},children:a.jsx(hc,{size:14,color:"#475569"})})]})]})},jp=()=>{const{pendingPayment:e,resolvePayment:t,user:n}=Qe();if(!e)return null;const{order:r}=e,l=n.walletBalance>=r.amount;return a.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",display:"flex",flexDirection:"column",justifyContent:"flex-end",zIndex:100,animation:"fadeIn 0.2s ease"},children:a.jsxs("div",{style:{backgroundColor:"#ffffff",borderTopLeftRadius:24,borderTopRightRadius:24,padding:20,color:"#0f172a",boxShadow:"0 -4px 20px rgba(0, 0, 0, 0.15)"},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[a.jsx(fc,{size:20,color:"#0068FF"}),a.jsx("span",{style:{fontWeight:700,fontSize:16},children:"SuperApp Pay"})]}),a.jsx("button",{onClick:()=>t(!1),style:{background:"none",border:"none",cursor:"pointer",padding:4},children:a.jsx(hc,{size:18,color:"#64748b"})})]}),a.jsxs("div",{style:{textAlign:"center",margin:"12px 0 20px"},children:[a.jsx("div",{style:{fontSize:13,color:"#64748b"},children:"Tổng tiền thanh toán"}),a.jsxs("div",{style:{fontSize:28,fontWeight:800,color:"#0068FF"},children:[r.amount.toLocaleString("vi-VN")," đ"]}),a.jsx("div",{style:{fontSize:13,fontWeight:500,color:"#334155",marginTop:4},children:r.description||"Thanh toán dịch vụ Mini App"})]}),a.jsx("div",{style:{backgroundColor:"#f8fafc",borderRadius:12,padding:12,marginBottom:20,border:"1px solid #e2e8f0"},children:a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[a.jsx("div",{style:{width:36,height:36,borderRadius:8,backgroundColor:"#dbeafe",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(fp,{size:20,color:"#0068FF"})}),a.jsxs("div",{children:[a.jsx("div",{style:{fontWeight:600,fontSize:14},children:"Ví điện tử SuperApp"}),a.jsxs("div",{style:{fontSize:12,color:l?"#10b981":"#ef4444"},children:["Số dư: ",n.walletBalance.toLocaleString("vi-VN")," đ",!l&&" (Không đủ số dư)"]})]})]}),a.jsx(cc,{size:18,color:"#0068FF"})]})}),a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[a.jsx("button",{onClick:()=>t(!0),disabled:!l,style:{padding:"14px",backgroundColor:l?"#0068FF":"#94a3b8",color:"white",border:"none",borderRadius:12,fontWeight:700,fontSize:15,cursor:l?"pointer":"not-allowed"},children:"Xác nhận thanh toán"}),a.jsx("button",{onClick:()=>t(!1),style:{padding:"12px",backgroundColor:"transparent",color:"#64748b",border:"none",borderRadius:12,fontWeight:600,fontSize:14,cursor:"pointer"},children:"Huỷ giao dịch"})]})]})})},zp=()=>{const{deviceType:e,scale:t,miniAppUrl:n,iframeKey:r,sendEventToMiniApp:l,user:o}=Qe(),i=e==="iphone"?390:412,s=e==="iphone"?844:880;return a.jsx("div",{style:{transform:`scale(${t})`,transformOrigin:"top center",transition:"transform 0.2s ease"},children:a.jsx("div",{style:{width:i,height:s,backgroundColor:"#000000",borderRadius:e==="iphone"?52:36,padding:10,boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15)",position:"relative",display:"flex",flexDirection:"column"},children:a.jsxs("div",{style:{flex:1,backgroundColor:"#ffffff",borderRadius:e==="iphone"?44:28,overflow:"hidden",display:"flex",flexDirection:"column",position:"relative"},children:[a.jsx(Ep,{}),a.jsx(_p,{title:"SuperApp Mini App"}),a.jsxs("div",{style:{flex:1,position:"relative",overflow:"hidden"},children:[a.jsx("iframe",{src:n,title:"Mini App Simulator View",style:{width:"100%",height:"100%",border:"none",backgroundColor:"#f8fafc"},allow:"geolocation; camera; microphone",onLoad:()=>{setTimeout(()=>{l("miniapp.ready",{appId:"mini_app",timestamp:Date.now()}),l("session.changed",{user:o,status:"LOGGED_IN"})},150)}},r),a.jsx(jp,{})]}),e==="iphone"&&a.jsx("div",{style:{height:20,backgroundColor:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx("div",{style:{width:130,height:4,backgroundColor:"#0f172a",borderRadius:2}})})]})})})},Pp=()=>{const{logs:e,clearLogs:t}=Qe(),[n,r]=M.useState(null),[l,o]=M.useState(""),i=e.filter(s=>s.action.toLowerCase().includes(l.toLowerCase()));return a.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",gap:12},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:8},children:[a.jsx("input",{type:"text",placeholder:"Lọc bridge action (vd: auth, payment)...",value:l,onChange:s=>o(s.target.value),style:{flex:1,padding:"6px 12px",borderRadius:6,border:"1px solid #334155",backgroundColor:"#0f172a",color:"#f8fafc",fontSize:13}}),a.jsxs("button",{onClick:t,title:"Xoá nhật ký",style:{padding:"6px 10px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:6,color:"#94a3b8",cursor:"pointer",display:"flex",alignItems:"center",gap:4,fontSize:12},children:[a.jsx(Qo,{size:14})," Xoá"]})]}),a.jsx("div",{style:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",gap:6},children:i.length===0?a.jsx("div",{style:{textAlign:"center",color:"#64748b",padding:"40px 10px",fontSize:13},children:"Chưa có cuộc gọi Bridge nào từ Mini App. Hãy thực hiện thao tác trong Mini App để theo dõi."}):i.map(s=>{const u=(n==null?void 0:n.id)===s.id;return a.jsxs("div",{onClick:()=>r(u?null:s),style:{padding:10,borderRadius:8,backgroundColor:u?"#1e293b":"#0f172a",border:`1px solid ${u?"#38bdf8":"#1e293b"}`,cursor:"pointer",fontSize:12,display:"flex",flexDirection:"column",gap:6},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[s.success?a.jsx(cc,{size:14,color:"#10b981"}):a.jsx(tp,{size:14,color:"#ef4444"}),a.jsx("span",{style:{fontWeight:600,color:"#f1f5f9"},children:s.action})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,color:"#94a3b8"},children:[a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:2,fontSize:11},children:[a.jsx(np,{size:11})," ",s.durationMs,"ms"]}),u?a.jsx(bf,{size:14}):a.jsx(ep,{size:14})]})]}),u&&a.jsxs("div",{style:{marginTop:6,paddingTop:8,borderTop:"1px solid #334155",display:"flex",flexDirection:"column",gap:8},children:[a.jsxs("div",{children:[a.jsx("div",{style:{color:"#94a3b8",fontSize:11,marginBottom:2},children:"Payload gửi đi:"}),a.jsx("pre",{style:{margin:0,padding:8,backgroundColor:"#020617",borderRadius:6,fontSize:11,color:"#e2e8f0",overflowX:"auto"},children:JSON.stringify(s.payload,null,2)})]}),a.jsxs("div",{children:[a.jsx("div",{style:{color:"#94a3b8",fontSize:11,marginBottom:2},children:"Kết quả phản hồi:"}),a.jsx("pre",{style:{margin:0,padding:8,backgroundColor:"#020617",borderRadius:6,fontSize:11,color:s.success?"#34d399":"#f87171",overflowX:"auto"},children:JSON.stringify(s.success?s.response:s.error,null,2)})]})]})]},s.id)})})]})},Ip=()=>{const{user:e,setUser:t,setUserPreset:n,mockEngine:r,sendEventToMiniApp:l}=Qe(),o=r.store.getSession();return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,fontSize:13,color:"#f1f5f9"},children:[a.jsxs("div",{children:[a.jsx("div",{style:{fontWeight:600,marginBottom:8,color:"#94a3b8"},children:"Chọn tài khoản mẫu (Persona):"}),a.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[a.jsx("button",{onClick:()=>n("standard"),style:{padding:8,backgroundColor:e.id==="user_std_001"?"#0284c7":"#1e293b",border:"1px solid #334155",borderRadius:6,color:"#ffffff",cursor:"pointer",fontWeight:500,fontSize:12},children:"👤 Khách hàng chuẩn"}),a.jsx("button",{onClick:()=>n("vip"),style:{padding:8,backgroundColor:e.id==="user_vip_888"?"#7c3aed":"#1e293b",border:"1px solid #334155",borderRadius:6,color:"#ffffff",cursor:"pointer",fontWeight:500,fontSize:12},children:"💎 VIP Diamond (50tr)"}),a.jsx("button",{onClick:()=>n("lowBalance"),style:{padding:8,backgroundColor:e.id==="user_low_002"?"#d97706":"#1e293b",border:"1px solid #334155",borderRadius:6,color:"#ffffff",cursor:"pointer",fontWeight:500,fontSize:12},children:"⚠️ Số dư thấp (15k)"}),a.jsx("button",{onClick:()=>n("unverified"),style:{padding:8,backgroundColor:e.id==="user_guest_999"?"#dc2626":"#1e293b",border:"1px solid #334155",borderRadius:6,color:"#ffffff",cursor:"pointer",fontWeight:500,fontSize:12},children:"❓ Khách vãng lai"})]})]}),a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:10},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[a.jsx("img",{src:e.avatarUrl,alt:"Avatar",style:{width:44,height:44,borderRadius:"50%",objectFit:"cover"}}),a.jsxs("div",{style:{flex:1},children:[a.jsx("div",{style:{fontWeight:700,fontSize:14},children:e.name}),a.jsx("div",{style:{color:"#94a3b8",fontSize:12},children:e.phone||"Chưa cung cấp SĐT"})]}),e.isVerified&&a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4,backgroundColor:"#064e3b",color:"#34d399",padding:"2px 8px",borderRadius:12,fontSize:11,fontWeight:600},children:[a.jsx(fc,{size:12})," Đã xác thực"]})]}),a.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,fontSize:12,marginTop:4},children:[a.jsxs("div",{children:[a.jsx("span",{style:{color:"#94a3b8"},children:"Vai trò:"})," ",a.jsx("span",{style:{fontWeight:600,color:"#38bdf8"},children:e.role})]}),a.jsxs("div",{children:[a.jsx("span",{style:{color:"#94a3b8"},children:"Số dư ví:"})," ",a.jsxs("span",{style:{fontWeight:600,color:"#10b981"},children:[e.walletBalance.toLocaleString("vi-VN")," đ"]})]})]})]}),a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:8},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,fontWeight:600,color:"#38bdf8"},children:[a.jsx(lp,{size:16})," Phiên Access Token"]}),o?a.jsxs("div",{children:[a.jsx("div",{style:{fontSize:11,color:"#94a3b8",marginBottom:2},children:"Mã Token:"}),a.jsx("div",{style:{fontFamily:"monospace",fontSize:11,backgroundColor:"#020617",padding:6,borderRadius:4,color:"#facc15",wordBreak:"break-all"},children:o.accessToken}),a.jsxs("div",{style:{fontSize:11,color:"#94a3b8",marginTop:4},children:["Hết hạn sau: ",o.expiresIn,"s (",o.tokenType,")"]})]}):a.jsx("div",{style:{color:"#ef4444",fontSize:12},children:"Phiên đã hết hạn hoặc chưa đăng nhập"}),a.jsxs("div",{style:{display:"flex",gap:8,marginTop:4},children:[a.jsx("button",{onClick:()=>{r.store.createSession(),l("onAuthStatusChange",{loggedIn:!0})},style:{flex:1,padding:"6px 10px",backgroundColor:"#0369a1",color:"white",border:"none",borderRadius:6,cursor:"pointer",fontWeight:600,fontSize:12},children:"Làm mới Token"}),a.jsxs("button",{onClick:()=>{r.store.clearSession(),l("onAuthStatusChange",{loggedIn:!1})},style:{padding:"6px 10px",backgroundColor:"#334155",color:"#f87171",border:"none",borderRadius:6,cursor:"pointer",display:"flex",alignItems:"center",gap:4,fontSize:12},children:[a.jsx(op,{size:13})," Đăng xuất"]})]})]})]})},Np=()=>{const{deviceState:e,setDeviceState:t,network:n,setNetwork:r,mockEngine:l,sendEventToMiniApp:o}=Qe();return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,fontSize:13,color:"#f1f5f9"},children:[a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:10},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{style:{fontWeight:600,display:"flex",alignItems:"center",gap:6},children:[a.jsx(ac,{size:16,color:"#38bdf8"})," Giả lập Pin thiết bị"]}),a.jsxs("span",{style:{fontWeight:700,color:"#38bdf8"},children:[e.batteryLevel,"%"]})]}),a.jsx("input",{type:"range",min:"0",max:"100",value:e.batteryLevel,onChange:i=>t({batteryLevel:parseInt(i.target.value,10)}),style:{width:"100%",accentColor:"#0284c7"}}),a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsx("span",{style:{color:"#94a3b8",fontSize:12},children:"Đang cắm sạc (Charging):"}),a.jsx("input",{type:"checkbox",checked:e.isCharging,onChange:i=>t({isCharging:i.target.checked}),style:{width:16,height:16,accentColor:"#0284c7"}})]})]}),a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:10},children:[a.jsxs("div",{style:{fontWeight:600,display:"flex",alignItems:"center",gap:6},children:[a.jsx(pc,{size:16,color:"#38bdf8"})," Mạng kết nối (Network Profile)"]}),a.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:6},children:["wifi","5g","4g","2g","none"].map(i=>a.jsx("button",{onClick:()=>r({type:i,online:i!=="none"}),style:{padding:"6px 4px",backgroundColor:n.type===i?"#0284c7":"#1e293b",border:"1px solid #334155",borderRadius:6,color:"white",fontSize:11,fontWeight:600,cursor:"pointer",textTransform:"uppercase"},children:i},i))})]}),a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:10},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{style:{fontWeight:600,display:"flex",alignItems:"center",gap:6},children:[a.jsx(sp,{size:16,color:"#38bdf8"})," Độ trễ Bridge (Latency Injection)"]}),a.jsxs("span",{style:{fontWeight:700,color:"#38bdf8"},children:[n.latencyMs," ms"]})]}),a.jsx("input",{type:"range",min:"0",max:"1500",step:"50",value:n.latencyMs,onChange:i=>{const s=parseInt(i.target.value,10);r({latencyMs:s}),l.setLatency(s)},style:{width:"100%",accentColor:"#0284c7"}})]}),a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:8},children:[a.jsx("div",{style:{fontWeight:600,color:"#94a3b8"},children:"Giả lập sự kiện vòng đời (Lifecycle Events):"}),a.jsxs("div",{style:{display:"flex",gap:8},children:[a.jsxs("button",{onClick:()=>o("appShow",{timestamp:Date.now()}),style:{flex:1,padding:"8px 10px",backgroundColor:"#065f46",color:"#34d399",border:"1px solid #047857",borderRadius:6,fontWeight:600,fontSize:12,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:4},children:[a.jsx(Gs,{size:14})," appShow"]}),a.jsxs("button",{onClick:()=>o("appHide",{timestamp:Date.now()}),style:{flex:1,padding:"8px 10px",backgroundColor:"#374151",color:"#d1d5db",border:"1px solid #4b5563",borderRadius:6,fontWeight:600,fontSize:12,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:4},children:[a.jsx(Gs,{size:14})," appHide"]})]})]})]})},Tp=()=>{const{mockEngine:e}=Qe(),[t,n]=M.useState(""),[r,l]=M.useState(""),[o,i]=M.useState(0),s=e.store.getStorage("mini_app_simulator"),u=Array.from(s.entries()),d=()=>{t.trim()&&(e.store.setStorageItem("mini_app_simulator",t.trim(),r),n(""),l(""),i(h=>h+1))},g=h=>{e.store.removeStorageItem("mini_app_simulator",h),i(k=>k+1)},m=()=>{e.store.clearStorage("mini_app_simulator"),i(h=>h+1)};return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,fontSize:13,color:"#f1f5f9"},children:[a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:8},children:[a.jsxs("div",{style:{fontWeight:600,color:"#38bdf8",display:"flex",alignItems:"center",gap:6},children:[a.jsx(dc,{size:16})," Thêm Key vào bộ nhớ Mini App"]}),a.jsxs("div",{style:{display:"flex",gap:6},children:[a.jsx("input",{type:"text",placeholder:"Key (vd: cart_id)",value:t,onChange:h=>n(h.target.value),style:{flex:1,padding:"6px 10px",backgroundColor:"#020617",border:"1px solid #334155",borderRadius:6,color:"white",fontSize:12}}),a.jsx("input",{type:"text",placeholder:"Value",value:r,onChange:h=>l(h.target.value),style:{flex:2,padding:"6px 10px",backgroundColor:"#020617",border:"1px solid #334155",borderRadius:6,color:"white",fontSize:12}}),a.jsxs("button",{onClick:d,style:{padding:"6px 12px",backgroundColor:"#0284c7",color:"white",border:"none",borderRadius:6,cursor:"pointer",display:"flex",alignItems:"center",gap:4,fontSize:12,fontWeight:600},children:[a.jsx(ip,{size:14})," Thêm"]})]})]}),a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{style:{fontWeight:600,color:"#94a3b8"},children:["Dữ liệu đã lưu (",u.length,"):"]}),u.length>0&&a.jsxs("button",{onClick:m,style:{background:"none",border:"none",color:"#ef4444",cursor:"pointer",fontSize:12,display:"flex",alignItems:"center",gap:4},children:[a.jsx(Qo,{size:13})," Xoá toàn bộ"]})]}),a.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:300,overflowY:"auto"},children:u.length===0?a.jsx("div",{style:{textAlign:"center",color:"#64748b",padding:"30px 0",fontSize:12},children:"Kho lưu trữ đang trống. Mini App có thể lưu qua `superApp.storage.setItem()`."}):u.map(([h,k])=>a.jsxs("div",{style:{backgroundColor:"#0f172a",border:"1px solid #1e293b",borderRadius:6,padding:"8px 10px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:8},children:[a.jsxs("div",{style:{flex:1,overflow:"hidden"},children:[a.jsx("span",{style:{fontWeight:700,color:"#38bdf8",fontSize:12},children:h}),a.jsx("div",{style:{color:"#e2e8f0",fontSize:12,fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:k})]}),a.jsx("button",{onClick:()=>g(h),style:{background:"none",border:"none",cursor:"pointer",padding:4,color:"#94a3b8"},children:a.jsx(Qo,{size:14})})]},h))})]},o)},Mp=()=>{const{activeTab:e,setActiveTab:t,logs:n,user:r}=Qe(),l=[{id:"bridge",label:"Bridge Inspector",icon:Zf,count:n.length},{id:"auth",label:"Auth & Persona",icon:dp,note:r.name.split(" ")[0]},{id:"device",label:"Device & Hardware",icon:cp},{id:"storage",label:"Storage",icon:dc}];return a.jsxs("div",{style:{flex:1,backgroundColor:"#0b1120",borderRadius:16,border:"1px solid #1e293b",display:"flex",flexDirection:"column",overflow:"hidden",minWidth:420,maxWidth:600,height:"100%",boxShadow:"0 10px 25px -5px rgba(0, 0, 0, 0.4)"},children:[a.jsx("div",{style:{display:"flex",backgroundColor:"#0f172a",borderBottom:"1px solid #1e293b",overflowX:"auto",padding:"4px 6px",gap:4},children:l.map(o=>{const i=e===o.id,s=o.icon;return a.jsxs("button",{onClick:()=>t(o.id),style:{display:"flex",alignItems:"center",gap:6,padding:"8px 12px",borderRadius:8,backgroundColor:i?"#1e293b":"transparent",color:i?"#38bdf8":"#94a3b8",border:"none",cursor:"pointer",fontWeight:i?600:500,fontSize:12,whiteSpace:"nowrap",transition:"all 0.15s ease"},children:[a.jsx(s,{size:15}),a.jsx("span",{children:o.label}),"count"in o&&o.count>0&&a.jsx("span",{style:{backgroundColor:i?"#0284c7":"#334155",color:"white",fontSize:10,fontWeight:700,padding:"1px 6px",borderRadius:10},children:o.count})]},o.id)})}),a.jsxs("div",{style:{flex:1,padding:16,overflowY:"auto"},children:[e==="bridge"&&a.jsx(Pp,{}),e==="auth"&&a.jsx(Ip,{}),e==="device"&&a.jsx(Np,{}),e==="storage"&&a.jsx(Tp,{})]})]})},Lp=()=>{const{miniAppUrl:e,setMiniAppUrl:t,reloadIframe:n,deviceType:r,setDeviceType:l,scale:o,setScale:i}=Qe(),[s,u]=M.useState(e),d=g=>{g.preventDefault(),s.trim()&&(t(s.trim()),n())};return a.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100vh",width:"100vw",overflow:"hidden",backgroundColor:"#030712"},children:[a.jsxs("header",{style:{height:56,backgroundColor:"#0f172a",borderBottom:"1px solid #1e293b",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 20px",gap:16,zIndex:20},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[a.jsx("div",{style:{width:32,height:32,borderRadius:8,backgroundColor:"#0068FF",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontWeight:800,fontSize:16},children:"S"}),a.jsxs("div",{children:[a.jsxs("div",{style:{fontWeight:700,fontSize:14,color:"#f8fafc",display:"flex",alignItems:"center",gap:6},children:["SuperApp Browser Simulator",a.jsx("span",{style:{fontSize:10,backgroundColor:"#0284c7",color:"white",padding:"1px 6px",borderRadius:10},children:"v1.0"})]}),a.jsx("div",{style:{fontSize:11,color:"#64748b"},children:"Mini App Developer Workbench"})]})]}),a.jsxs("form",{onSubmit:d,style:{display:"flex",alignItems:"center",flex:1,maxWidth:520,gap:6},children:[a.jsx("input",{type:"text",value:s,onChange:g=>u(g.target.value),placeholder:"http://localhost:3000",style:{flex:1,padding:"7px 12px",backgroundColor:"#020617",border:"1px solid #334155",borderRadius:8,color:"#38bdf8",fontSize:13,fontFamily:"monospace"}}),a.jsxs("button",{type:"submit",style:{padding:"7px 14px",backgroundColor:"#0284c7",color:"white",border:"none",borderRadius:8,fontSize:12,fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",gap:4},children:[a.jsx(up,{size:13})," Nạp URL"]})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.jsxs("div",{style:{display:"flex",backgroundColor:"#020617",padding:2,borderRadius:8,border:"1px solid #334155"},children:[a.jsx("button",{onClick:()=>l("iphone"),style:{padding:"4px 10px",borderRadius:6,backgroundColor:r==="iphone"?"#1e293b":"transparent",color:r==="iphone"?"#38bdf8":"#94a3b8",border:"none",cursor:"pointer",fontSize:12,fontWeight:600},children:"iPhone 15"}),a.jsx("button",{onClick:()=>l("android"),style:{padding:"4px 10px",borderRadius:6,backgroundColor:r==="android"?"#1e293b":"transparent",color:r==="android"?"#38bdf8":"#94a3b8",border:"none",cursor:"pointer",fontSize:12,fontWeight:600},children:"Android"})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4,color:"#94a3b8",fontSize:12},children:[a.jsx(hp,{size:14}),a.jsxs("select",{value:o,onChange:g=>i(parseFloat(g.target.value)),style:{backgroundColor:"#020617",color:"#f8fafc",border:"1px solid #334155",borderRadius:6,padding:"4px 8px",fontSize:12,cursor:"pointer"},children:[a.jsx("option",{value:"0.75",children:"75%"}),a.jsx("option",{value:"0.85",children:"85%"}),a.jsx("option",{value:"0.9",children:"90%"}),a.jsx("option",{value:"1",children:"100%"})]})]})]})]}),a.jsxs("main",{style:{flex:1,display:"flex",gap:24,padding:20,overflow:"hidden",justifyContent:"center",alignItems:"flex-start"},children:[a.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"flex-start",overflowY:"auto",maxHeight:"calc(100vh - 96px)",padding:"10px 20px"},children:a.jsx(zp,{})}),a.jsx(Mp,{})]})]})};Jl.createRoot(document.getElementById("root")).render(a.jsx(Rc.StrictMode,{children:a.jsx(Cp,{children:a.jsx(Lp,{})})}));