@ttmg/cli 0.1.3 → 0.1.4

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,120 @@
1
+ (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();var ta=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function it(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Du={exports:{}},mo={},Mu={exports:{}},Se={};/**
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 sv;function KC(){if(sv)return Se;sv=1;var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),w=Symbol.iterator;function C(E){return E===null||typeof E!="object"?null:(E=w&&E[w]||E["@@iterator"],typeof E=="function"?E:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,P={};function b(E,q,X){this.props=E,this.context=q,this.refs=P,this.updater=X||_}b.prototype.isReactComponent={},b.prototype.setState=function(E,q){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,q,"setState")},b.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function N(){}N.prototype=b.prototype;function I(E,q,X){this.props=E,this.context=q,this.refs=P,this.updater=X||_}var $=I.prototype=new N;$.constructor=I,T($,b.prototype),$.isPureReactComponent=!0;var F=Array.isArray,U=Object.prototype.hasOwnProperty,M={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function W(E,q,X){var pe,se={},me=null,ue=null;if(q!=null)for(pe in q.ref!==void 0&&(ue=q.ref),q.key!==void 0&&(me=""+q.key),q)U.call(q,pe)&&!A.hasOwnProperty(pe)&&(se[pe]=q[pe]);var he=arguments.length-2;if(he===1)se.children=X;else if(1<he){for(var ce=Array(he),we=0;we<he;we++)ce[we]=arguments[we+2];se.children=ce}if(E&&E.defaultProps)for(pe in he=E.defaultProps,he)se[pe]===void 0&&(se[pe]=he[pe]);return{$$typeof:r,type:E,key:me,ref:ue,props:se,_owner:M.current}}function K(E,q){return{$$typeof:r,type:E.type,key:q,ref:E.ref,props:E.props,_owner:E._owner}}function Z(E){return typeof E=="object"&&E!==null&&E.$$typeof===r}function Q(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(X){return q[X]})}var oe=/\/+/g;function te(E,q){return typeof E=="object"&&E!==null&&E.key!=null?Q(""+E.key):q.toString(36)}function ve(E,q,X,pe,se){var me=typeof E;(me==="undefined"||me==="boolean")&&(E=null);var ue=!1;if(E===null)ue=!0;else switch(me){case"string":case"number":ue=!0;break;case"object":switch(E.$$typeof){case r:case n:ue=!0}}if(ue)return ue=E,se=se(ue),E=pe===""?"."+te(ue,0):pe,F(se)?(X="",E!=null&&(X=E.replace(oe,"$&/")+"/"),ve(se,q,X,"",function(we){return we})):se!=null&&(Z(se)&&(se=K(se,X+(!se.key||ue&&ue.key===se.key?"":(""+se.key).replace(oe,"$&/")+"/")+E)),q.push(se)),1;if(ue=0,pe=pe===""?".":pe+":",F(E))for(var he=0;he<E.length;he++){me=E[he];var ce=pe+te(me,he);ue+=ve(me,q,X,ce,se)}else if(ce=C(E),typeof ce=="function")for(E=ce.call(E),he=0;!(me=E.next()).done;)me=me.value,ce=pe+te(me,he++),ue+=ve(me,q,X,ce,se);else if(me==="object")throw q=String(E),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return ue}function Pe(E,q,X){if(E==null)return E;var pe=[],se=0;return ve(E,pe,"","",function(me){return q.call(X,me,se++)}),pe}function Ee(E){if(E._status===-1){var q=E._result;q=q(),q.then(function(X){(E._status===0||E._status===-1)&&(E._status=1,E._result=X)},function(X){(E._status===0||E._status===-1)&&(E._status=2,E._result=X)}),E._status===-1&&(E._status=0,E._result=q)}if(E._status===1)return E._result.default;throw E._result}var ye={current:null},G={transition:null},Y={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:G,ReactCurrentOwner:M};return Se.Children={map:Pe,forEach:function(E,q,X){Pe(E,function(){q.apply(this,arguments)},X)},count:function(E){var q=0;return Pe(E,function(){q++}),q},toArray:function(E){return Pe(E,function(q){return q})||[]},only:function(E){if(!Z(E))throw Error("React.Children.only expected to receive a single React element child.");return E}},Se.Component=b,Se.Fragment=i,Se.Profiler=a,Se.PureComponent=I,Se.StrictMode=o,Se.Suspense=h,Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,Se.cloneElement=function(E,q,X){if(E==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+E+".");var pe=T({},E.props),se=E.key,me=E.ref,ue=E._owner;if(q!=null){if(q.ref!==void 0&&(me=q.ref,ue=M.current),q.key!==void 0&&(se=""+q.key),E.type&&E.type.defaultProps)var he=E.type.defaultProps;for(ce in q)U.call(q,ce)&&!A.hasOwnProperty(ce)&&(pe[ce]=q[ce]===void 0&&he!==void 0?he[ce]:q[ce])}var ce=arguments.length-2;if(ce===1)pe.children=X;else if(1<ce){he=Array(ce);for(var we=0;we<ce;we++)he[we]=arguments[we+2];pe.children=he}return{$$typeof:r,type:E.type,key:se,ref:me,props:pe,_owner:ue}},Se.createContext=function(E){return E={$$typeof:f,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},E.Provider={$$typeof:u,_context:E},E.Consumer=E},Se.createElement=W,Se.createFactory=function(E){var q=W.bind(null,E);return q.type=E,q},Se.createRef=function(){return{current:null}},Se.forwardRef=function(E){return{$$typeof:p,render:E}},Se.isValidElement=Z,Se.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:Ee}},Se.memo=function(E,q){return{$$typeof:m,type:E,compare:q===void 0?null:q}},Se.startTransition=function(E){var q=G.transition;G.transition={};try{E()}finally{G.transition=q}},Se.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Se.useCallback=function(E,q){return ye.current.useCallback(E,q)},Se.useContext=function(E){return ye.current.useContext(E)},Se.useDebugValue=function(){},Se.useDeferredValue=function(E){return ye.current.useDeferredValue(E)},Se.useEffect=function(E,q){return ye.current.useEffect(E,q)},Se.useId=function(){return ye.current.useId()},Se.useImperativeHandle=function(E,q,X){return ye.current.useImperativeHandle(E,q,X)},Se.useInsertionEffect=function(E,q){return ye.current.useInsertionEffect(E,q)},Se.useLayoutEffect=function(E,q){return ye.current.useLayoutEffect(E,q)},Se.useMemo=function(E,q){return ye.current.useMemo(E,q)},Se.useReducer=function(E,q,X){return ye.current.useReducer(E,q,X)},Se.useRef=function(E){return ye.current.useRef(E)},Se.useState=function(E){return ye.current.useState(E)},Se.useSyncExternalStore=function(E,q,X){return ye.current.useSyncExternalStore(E,q,X)},Se.useTransition=function(){return ye.current.useTransition()},Se.version="18.2.0",Se}var av;function Fp(){return av||(av=1,Mu.exports=KC()),Mu.exports}/**
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 lv;function QC(){if(lv)return mo;lv=1;var r=Fp(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(p,h,m){var v,w={},C=null,_=null;m!==void 0&&(C=""+m),h.key!==void 0&&(C=""+h.key),h.ref!==void 0&&(_=h.ref);for(v in h)o.call(h,v)&&!u.hasOwnProperty(v)&&(w[v]=h[v]);if(p&&p.defaultProps)for(v in h=p.defaultProps,h)w[v]===void 0&&(w[v]=h[v]);return{$$typeof:n,type:p,key:C,ref:_,props:w,_owner:a.current}}return mo.Fragment=i,mo.jsx=f,mo.jsxs=f,mo}var uv;function YC(){return uv||(uv=1,Du.exports=QC()),Du.exports}var fe=YC(),na={},$u={exports:{}},Ot={},Fu={exports:{}},qu={};/**
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
+ */var cv;function XC(){return cv||(cv=1,(function(r){function n(G,Y){var E=G.length;G.push(Y);e:for(;0<E;){var q=E-1>>>1,X=G[q];if(0<a(X,Y))G[q]=Y,G[E]=X,E=q;else break e}}function i(G){return G.length===0?null:G[0]}function o(G){if(G.length===0)return null;var Y=G[0],E=G.pop();if(E!==Y){G[0]=E;e:for(var q=0,X=G.length,pe=X>>>1;q<pe;){var se=2*(q+1)-1,me=G[se],ue=se+1,he=G[ue];if(0>a(me,E))ue<X&&0>a(he,me)?(G[q]=he,G[ue]=E,q=ue):(G[q]=me,G[se]=E,q=se);else if(ue<X&&0>a(he,E))G[q]=he,G[ue]=E,q=ue;else break e}}return Y}function a(G,Y){var E=G.sortIndex-Y.sortIndex;return E!==0?E:G.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;r.unstable_now=function(){return u.now()}}else{var f=Date,p=f.now();r.unstable_now=function(){return f.now()-p}}var h=[],m=[],v=1,w=null,C=3,_=!1,T=!1,P=!1,b=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(G){for(var Y=i(m);Y!==null;){if(Y.callback===null)o(m);else if(Y.startTime<=G)o(m),Y.sortIndex=Y.expirationTime,n(h,Y);else break;Y=i(m)}}function F(G){if(P=!1,$(G),!T)if(i(h)!==null)T=!0,Ee(U);else{var Y=i(m);Y!==null&&ye(F,Y.startTime-G)}}function U(G,Y){T=!1,P&&(P=!1,N(W),W=-1),_=!0;var E=C;try{for($(Y),w=i(h);w!==null&&(!(w.expirationTime>Y)||G&&!Q());){var q=w.callback;if(typeof q=="function"){w.callback=null,C=w.priorityLevel;var X=q(w.expirationTime<=Y);Y=r.unstable_now(),typeof X=="function"?w.callback=X:w===i(h)&&o(h),$(Y)}else o(h);w=i(h)}if(w!==null)var pe=!0;else{var se=i(m);se!==null&&ye(F,se.startTime-Y),pe=!1}return pe}finally{w=null,C=E,_=!1}}var M=!1,A=null,W=-1,K=5,Z=-1;function Q(){return!(r.unstable_now()-Z<K)}function oe(){if(A!==null){var G=r.unstable_now();Z=G;var Y=!0;try{Y=A(!0,G)}finally{Y?te():(M=!1,A=null)}}else M=!1}var te;if(typeof I=="function")te=function(){I(oe)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,Pe=ve.port2;ve.port1.onmessage=oe,te=function(){Pe.postMessage(null)}}else te=function(){b(oe,0)};function Ee(G){A=G,M||(M=!0,te())}function ye(G,Y){W=b(function(){G(r.unstable_now())},Y)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(G){G.callback=null},r.unstable_continueExecution=function(){T||_||(T=!0,Ee(U))},r.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<G?Math.floor(1e3/G):5},r.unstable_getCurrentPriorityLevel=function(){return C},r.unstable_getFirstCallbackNode=function(){return i(h)},r.unstable_next=function(G){switch(C){case 1:case 2:case 3:var Y=3;break;default:Y=C}var E=C;C=Y;try{return G()}finally{C=E}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(G,Y){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var E=C;C=G;try{return Y()}finally{C=E}},r.unstable_scheduleCallback=function(G,Y,E){var q=r.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?q+E:q):E=q,G){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=E+X,G={id:v++,callback:Y,priorityLevel:G,startTime:E,expirationTime:X,sortIndex:-1},E>q?(G.sortIndex=E,n(m,G),i(h)===null&&G===i(m)&&(P?(N(W),W=-1):P=!0,ye(F,E-q))):(G.sortIndex=X,n(h,G),T||_||(T=!0,Ee(U))),G},r.unstable_shouldYield=Q,r.unstable_wrapCallback=function(G){var Y=C;return function(){var E=C;C=Y;try{return G.apply(this,arguments)}finally{C=E}}}})(qu)),qu}var fv;function ZC(){return fv||(fv=1,Fu.exports=XC()),Fu.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 dv;function JC(){if(dv)return Ot;dv=1;var r=Fp(),n=ZC();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s]);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 o=new Set,a={};function u(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(a[e]=t,e=0;e<t.length;e++)o.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[: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]*$/,v={},w={};function C(e){return h.call(w,e)?!0:h.call(v,e)?!1:m.test(e)?w[e]=!0:(v[e]=!0,!1)}function _(e,t,s,l){if(s!==null&&s.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function T(e,t,s,l){if(t===null||typeof t>"u"||_(e,t,s,l))return!0;if(l)return!1;if(s!==null)switch(s.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 P(e,t,s,l,c,d,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=g}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new P(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];b[t]=new P(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new P(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new P(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){b[e]=new P(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new P(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new P(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new P(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new P(e,5,!1,e.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function I(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(N,I);b[t]=new P(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(N,I);b[t]=new P(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(N,I);b[t]=new P(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new P(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new P("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new P(e,1,!1,e.toLowerCase(),null,!0,!0)});function $(e,t,s,l){var c=b.hasOwnProperty(t)?b[t]:null;(c!==null?c.type!==0:l||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(T(t,s,c,l)&&(s=null),l||c===null?C(t)&&(s===null?e.removeAttribute(t):e.setAttribute(t,""+s)):c.mustUseProperty?e[c.propertyName]=s===null?c.type===3?!1:"":s:(t=c.attributeName,l=c.attributeNamespace,s===null?e.removeAttribute(t):(c=c.type,s=c===3||c===4&&s===!0?"":""+s,l?e.setAttributeNS(l,t,s):e.setAttribute(t,s))))}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),M=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),Q=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),G=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=G&&e[G]||e["@@iterator"],typeof e=="function"?e:null)}var E=Object.assign,q;function X(e){if(q===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||""}return`
34
+ `+q+e}var pe=!1;function se(e,t){if(!e||pe)return"";pe=!0;var s=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 l=D}Reflect.construct(e,[],t)}else{try{t.call()}catch(D){l=D}e.call(t.prototype)}else{try{throw Error()}catch(D){l=D}e()}}catch(D){if(D&&l&&typeof D.stack=="string"){for(var c=D.stack.split(`
35
+ `),d=l.stack.split(`
36
+ `),g=c.length-1,S=d.length-1;1<=g&&0<=S&&c[g]!==d[S];)S--;for(;1<=g&&0<=S;g--,S--)if(c[g]!==d[S]){if(g!==1||S!==1)do if(g--,S--,0>S||c[g]!==d[S]){var x=`
37
+ `+c[g].replace(" at new "," at ");return e.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",e.displayName)),x}while(1<=g&&0<=S);break}}}finally{pe=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?X(e):""}function me(e){switch(e.tag){case 5:return X(e.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return e=se(e.type,!1),e;case 11:return e=se(e.type.render,!1),e;case 1:return e=se(e.type,!0),e;default:return""}}function ue(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 A:return"Fragment";case M:return"Portal";case K:return"Profiler";case W:return"StrictMode";case te:return"Suspense";case ve:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Q:return(e.displayName||"Context")+".Consumer";case Z:return(e._context.displayName||"Context")+".Provider";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pe:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case Ee:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}function he(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 ue(t);case 8:return t===W?"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 ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gt(e){var t=we(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,d=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){l=""+g,d.call(this,g)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ot(e){e._valueTracker||(e._valueTracker=gt(e))}function vt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),l="";return e&&(l=we(e)?e.checked?"true":"false":e.value),e=l,e!==s?(t.setValue(e),!0):!1}function Mn(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 fr(e,t){var s=t.checked;return E({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function Oe(e,t){var s=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;s=ce(t.value!=null?t.value:s),e._wrapperState={initialChecked:l,initialValue:s,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _n(e,t){t=t.checked,t!=null&&$(e,"checked",t,!1)}function _e(e,t){_n(e,t);var s=ce(t.value),l=t.type;if(s!=null)l==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Mt(e,t.type,s):t.hasOwnProperty("defaultValue")&&Mt(e,t.type,ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qt(e,t,s){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,s||t===e.value||(e.value=t),e.defaultValue=t}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function Mt(e,t,s){(t!=="number"||Mn(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var lt=Array.isArray;function Ve(e,t,s,l){if(e=e.options,t){t={};for(var c=0;c<s.length;c++)t["$"+s[c]]=!0;for(s=0;s<e.length;s++)c=t.hasOwnProperty("$"+e[s].value),e[s].selected!==c&&(e[s].selected=c),c&&l&&(e[s].defaultSelected=!0)}else{for(s=""+ce(s),t=null,c=0;c<e.length;c++){if(e[c].value===s){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function ut(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return E({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function He(e,t){var s=t.value;if(s==null){if(s=t.children,t=t.defaultValue,s!=null){if(t!=null)throw Error(i(92));if(lt(s)){if(1<s.length)throw Error(i(93));s=s[0]}t=s}t==null&&(t=""),s=t}e._wrapperState={initialValue:ce(s)}}function Yt(e,t){var s=ce(t.value),l=ce(t.defaultValue);s!=null&&(s=""+s,s!==e.value&&(e.value=s),t.defaultValue==null&&e.defaultValue!==s&&(e.defaultValue=s)),l!=null&&(e.defaultValue=""+l)}function Xt(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dr(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 Cn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dr(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ct,fn=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,s,l,c){MSApp.execUnsafeLocalFunction(function(){return e(t,s,l,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ct=ct||document.createElement("div"),ct.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ct.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $t(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var Zt={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},$n=["Webkit","ms","Moz","O"];Object.keys(Zt).forEach(function(e){$n.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]})});function yt(e,t,s){return t==null||typeof t=="boolean"||t===""?"":s||typeof t!="number"||t===0||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function Tt(e,t){e=e.style;for(var s in t)if(t.hasOwnProperty(s)){var l=s.indexOf("--")===0,c=yt(s,t[s],l);s==="float"&&(s="cssFloat"),l?e.setProperty(s,c):e[s]=c}}var Vo=E({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 Fn(e,t){if(t){if(Vo[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function qn(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 pr=null;function hr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mr=null,dn=null,Rt=null;function gr(e){if(e=Ji(e)){if(typeof mr!="function")throw Error(i(280));var t=e.stateNode;t&&(t=gs(t),mr(e.stateNode,e.type,t))}}function En(e){dn?Rt?Rt.push(e):Rt=[e]:dn=e}function vr(){if(dn){var e=dn,t=Rt;if(Rt=dn=null,gr(e),t)for(e=0;e<t.length;e++)gr(t[e])}}function ki(e,t){return e(t)}function Ni(){}var Ja=!1;function Ph(e,t,s){if(Ja)return e(t,s);Ja=!0;try{return ki(e,t,s)}finally{Ja=!1,(dn!==null||Rt!==null)&&(Ni(),vr())}}function Ii(e,t){var s=e.stateNode;if(s===null)return null;var l=gs(s);if(l===null)return null;s=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(i(231,t,typeof s));return s}var el=!1;if(p)try{var ji={};Object.defineProperty(ji,"passive",{get:function(){el=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{el=!1}function e_(e,t,s,l,c,d,g,S,x){var D=Array.prototype.slice.call(arguments,3);try{t.apply(s,D)}catch(B){this.onError(B)}}var Ai=!1,Ko=null,Qo=!1,tl=null,t_={onError:function(e){Ai=!0,Ko=e}};function n_(e,t,s,l,c,d,g,S,x){Ai=!1,Ko=null,e_.apply(t_,arguments)}function r_(e,t,s,l,c,d,g,S,x){if(n_.apply(this,arguments),Ai){if(Ai){var D=Ko;Ai=!1,Ko=null}else throw Error(i(198));Qo||(Qo=!0,tl=D)}}function yr(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function Th(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 Rh(e){if(yr(e)!==e)throw Error(i(188))}function i_(e){var t=e.alternate;if(!t){if(t=yr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var s=e,l=t;;){var c=s.return;if(c===null)break;var d=c.alternate;if(d===null){if(l=c.return,l!==null){s=l;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===s)return Rh(c),e;if(d===l)return Rh(c),t;d=d.sibling}throw Error(i(188))}if(s.return!==l.return)s=c,l=d;else{for(var g=!1,S=c.child;S;){if(S===s){g=!0,s=c,l=d;break}if(S===l){g=!0,l=c,s=d;break}S=S.sibling}if(!g){for(S=d.child;S;){if(S===s){g=!0,s=d,l=c;break}if(S===l){g=!0,l=d,s=c;break}S=S.sibling}if(!g)throw Error(i(189))}}if(s.alternate!==l)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?e:t}function kh(e){return e=i_(e),e!==null?Nh(e):null}function Nh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Nh(e);if(t!==null)return t;e=e.sibling}return null}var Ih=n.unstable_scheduleCallback,jh=n.unstable_cancelCallback,o_=n.unstable_shouldYield,s_=n.unstable_requestPaint,We=n.unstable_now,a_=n.unstable_getCurrentPriorityLevel,nl=n.unstable_ImmediatePriority,Ah=n.unstable_UserBlockingPriority,Yo=n.unstable_NormalPriority,l_=n.unstable_LowPriority,Lh=n.unstable_IdlePriority,Xo=null,pn=null;function u_(e){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(Xo,e,void 0,(e.current.flags&128)===128)}catch{}}var Jt=Math.clz32?Math.clz32:d_,c_=Math.log,f_=Math.LN2;function d_(e){return e>>>=0,e===0?32:31-(c_(e)/f_|0)|0}var Zo=64,Jo=4194304;function Li(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 es(e,t){var s=e.pendingLanes;if(s===0)return 0;var l=0,c=e.suspendedLanes,d=e.pingedLanes,g=s&268435455;if(g!==0){var S=g&~c;S!==0?l=Li(S):(d&=g,d!==0&&(l=Li(d)))}else g=s&~c,g!==0?l=Li(g):d!==0&&(l=Li(d));if(l===0)return 0;if(t!==0&&t!==l&&(t&c)===0&&(c=l&-l,d=t&-t,c>=d||c===16&&(d&4194240)!==0))return t;if((l&4)!==0&&(l|=s&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0<t;)s=31-Jt(t),c=1<<s,l|=e[s],t&=~c;return l}function p_(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 h_(e,t){for(var s=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes;0<d;){var g=31-Jt(d),S=1<<g,x=c[g];x===-1?((S&s)===0||(S&l)!==0)&&(c[g]=p_(S,t)):x<=t&&(e.expiredLanes|=S),d&=~S}}function rl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Dh(){var e=Zo;return Zo<<=1,(Zo&4194240)===0&&(Zo=64),e}function il(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function Di(e,t,s){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jt(t),e[t]=s}function m_(e,t){var s=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 l=e.eventTimes;for(e=e.expirationTimes;0<s;){var c=31-Jt(s),d=1<<c;t[c]=0,l[c]=-1,e[c]=-1,s&=~d}}function ol(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var l=31-Jt(s),c=1<<l;c&t|e[l]&t&&(e[l]|=t),s&=~c}}var Re=0;function Mh(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var $h,sl,Fh,qh,zh,al=!1,ts=[],zn=null,Bn=null,Un=null,Mi=new Map,$i=new Map,Hn=[],g_="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 Bh(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Bn=null;break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":Mi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$i.delete(t.pointerId)}}function Fi(e,t,s,l,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:s,eventSystemFlags:l,nativeEvent:d,targetContainers:[c]},t!==null&&(t=Ji(t),t!==null&&sl(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function v_(e,t,s,l,c){switch(t){case"focusin":return zn=Fi(zn,e,t,s,l,c),!0;case"dragenter":return Bn=Fi(Bn,e,t,s,l,c),!0;case"mouseover":return Un=Fi(Un,e,t,s,l,c),!0;case"pointerover":var d=c.pointerId;return Mi.set(d,Fi(Mi.get(d)||null,e,t,s,l,c)),!0;case"gotpointercapture":return d=c.pointerId,$i.set(d,Fi($i.get(d)||null,e,t,s,l,c)),!0}return!1}function Uh(e){var t=wr(e.target);if(t!==null){var s=yr(t);if(s!==null){if(t=s.tag,t===13){if(t=Th(s),t!==null){e.blockedOn=t,zh(e.priority,function(){Fh(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ns(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);pr=l,s.target.dispatchEvent(l),pr=null}else return t=Ji(s),t!==null&&sl(t),e.blockedOn=s,!1;t.shift()}return!0}function Hh(e,t,s){ns(e)&&s.delete(t)}function y_(){al=!1,zn!==null&&ns(zn)&&(zn=null),Bn!==null&&ns(Bn)&&(Bn=null),Un!==null&&ns(Un)&&(Un=null),Mi.forEach(Hh),$i.forEach(Hh)}function qi(e,t){e.blockedOn===t&&(e.blockedOn=null,al||(al=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,y_)))}function zi(e){function t(c){return qi(c,e)}if(0<ts.length){qi(ts[0],e);for(var s=1;s<ts.length;s++){var l=ts[s];l.blockedOn===e&&(l.blockedOn=null)}}for(zn!==null&&qi(zn,e),Bn!==null&&qi(Bn,e),Un!==null&&qi(Un,e),Mi.forEach(t),$i.forEach(t),s=0;s<Hn.length;s++)l=Hn[s],l.blockedOn===e&&(l.blockedOn=null);for(;0<Hn.length&&(s=Hn[0],s.blockedOn===null);)Uh(s),s.blockedOn===null&&Hn.shift()}var Ur=F.ReactCurrentBatchConfig,rs=!0;function w_(e,t,s,l){var c=Re,d=Ur.transition;Ur.transition=null;try{Re=1,ll(e,t,s,l)}finally{Re=c,Ur.transition=d}}function S_(e,t,s,l){var c=Re,d=Ur.transition;Ur.transition=null;try{Re=4,ll(e,t,s,l)}finally{Re=c,Ur.transition=d}}function ll(e,t,s,l){if(rs){var c=ul(e,t,s,l);if(c===null)Ol(e,t,l,is,s),Bh(e,l);else if(v_(c,e,t,s,l))l.stopPropagation();else if(Bh(e,l),t&4&&-1<g_.indexOf(e)){for(;c!==null;){var d=Ji(c);if(d!==null&&$h(d),d=ul(e,t,s,l),d===null&&Ol(e,t,l,is,s),d===c)break;c=d}c!==null&&l.stopPropagation()}else Ol(e,t,l,null,s)}}var is=null;function ul(e,t,s,l){if(is=null,e=hr(l),e=wr(e),e!==null)if(t=yr(e),t===null)e=null;else if(s=t.tag,s===13){if(e=Th(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return is=e,null}function Wh(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(a_()){case nl:return 1;case Ah:return 4;case Yo:case l_:return 16;case Lh:return 536870912;default:return 16}default:return 16}}var Wn=null,cl=null,os=null;function Gh(){if(os)return os;var e,t=cl,s=t.length,l,c="value"in Wn?Wn.value:Wn.textContent,d=c.length;for(e=0;e<s&&t[e]===c[e];e++);var g=s-e;for(l=1;l<=g&&t[s-l]===c[d-l];l++);return os=c.slice(e,1<l?1-l:void 0)}function ss(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 as(){return!0}function Vh(){return!1}function kt(e){function t(s,l,c,d,g){this._reactName=s,this._targetInst=c,this.type=l,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(s=e[S],this[S]=s?s(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?as:Vh,this.isPropagationStopped=Vh,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=as)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=as)},persist:function(){},isPersistent:as}),t}var Hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fl=kt(Hr),Bi=E({},Hr,{view:0,detail:0}),__=kt(Bi),dl,pl,Ui,ls=E({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ml,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!==Ui&&(Ui&&e.type==="mousemove"?(dl=e.screenX-Ui.screenX,pl=e.screenY-Ui.screenY):pl=dl=0,Ui=e),dl)},movementY:function(e){return"movementY"in e?e.movementY:pl}}),Kh=kt(ls),C_=E({},ls,{dataTransfer:0}),E_=kt(C_),b_=E({},Bi,{relatedTarget:0}),hl=kt(b_),x_=E({},Hr,{animationName:0,elapsedTime:0,pseudoElement:0}),O_=kt(x_),P_=E({},Hr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),T_=kt(P_),R_=E({},Hr,{data:0}),Qh=kt(R_),k_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N_={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"},I_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=I_[e])?!!t[e]:!1}function ml(){return j_}var A_=E({},Bi,{key:function(e){if(e.key){var t=k_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?N_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ml,charCode:function(e){return e.type==="keypress"?ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),L_=kt(A_),D_=E({},ls,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yh=kt(D_),M_=E({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ml}),$_=kt(M_),F_=E({},Hr,{propertyName:0,elapsedTime:0,pseudoElement:0}),q_=kt(F_),z_=E({},ls,{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}),B_=kt(z_),U_=[9,13,27,32],gl=p&&"CompositionEvent"in window,Hi=null;p&&"documentMode"in document&&(Hi=document.documentMode);var H_=p&&"TextEvent"in window&&!Hi,Xh=p&&(!gl||Hi&&8<Hi&&11>=Hi),Zh=" ",Jh=!1;function em(e,t){switch(e){case"keyup":return U_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function W_(e,t){switch(e){case"compositionend":return tm(t);case"keypress":return t.which!==32?null:(Jh=!0,Zh);case"textInput":return e=t.data,e===Zh&&Jh?null:e;default:return null}}function G_(e,t){if(Wr)return e==="compositionend"||!gl&&em(e,t)?(e=Gh(),os=cl=Wn=null,Wr=!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 Xh&&t.locale!=="ko"?null:t.data;default:return null}}var V_={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 nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!V_[e.type]:t==="textarea"}function rm(e,t,s,l){En(l),t=ps(t,"onChange"),0<t.length&&(s=new fl("onChange","change",null,s,l),e.push({event:s,listeners:t}))}var Wi=null,Gi=null;function K_(e){_m(e,0)}function us(e){var t=Yr(e);if(vt(t))return e}function Q_(e,t){if(e==="change")return t}var im=!1;if(p){var vl;if(p){var yl="oninput"in document;if(!yl){var om=document.createElement("div");om.setAttribute("oninput","return;"),yl=typeof om.oninput=="function"}vl=yl}else vl=!1;im=vl&&(!document.documentMode||9<document.documentMode)}function sm(){Wi&&(Wi.detachEvent("onpropertychange",am),Gi=Wi=null)}function am(e){if(e.propertyName==="value"&&us(Gi)){var t=[];rm(t,Gi,e,hr(e)),Ph(K_,t)}}function Y_(e,t,s){e==="focusin"?(sm(),Wi=t,Gi=s,Wi.attachEvent("onpropertychange",am)):e==="focusout"&&sm()}function X_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return us(Gi)}function Z_(e,t){if(e==="click")return us(t)}function J_(e,t){if(e==="input"||e==="change")return us(t)}function eC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:eC;function Vi(e,t){if(en(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),l=Object.keys(t);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var c=s[l];if(!h.call(t,c)||!en(e[c],t[c]))return!1}return!0}function lm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function um(e,t){var s=lm(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=t&&l>=t)return{node:s,offset:t-e};e=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=lm(s)}}function cm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fm(){for(var e=window,t=Mn();t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=Mn(e.document)}return t}function wl(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 tC(e){var t=fm(),s=e.focusedElem,l=e.selectionRange;if(t!==s&&s&&s.ownerDocument&&cm(s.ownerDocument.documentElement,s)){if(l!==null&&wl(s)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in s)s.selectionStart=t,s.selectionEnd=Math.min(e,s.value.length);else if(e=(t=s.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=s.textContent.length,d=Math.min(l.start,c);l=l.end===void 0?d:Math.min(l.end,c),!e.extend&&d>l&&(c=l,l=d,d=c),c=um(s,d);var g=um(s,l);c&&g&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),d>l?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.offset),e.addRange(t)))}}for(t=[],e=s;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<t.length;s++)e=t[s],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var nC=p&&"documentMode"in document&&11>=document.documentMode,Gr=null,Sl=null,Ki=null,_l=!1;function dm(e,t,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;_l||Gr==null||Gr!==Mn(l)||(l=Gr,"selectionStart"in l&&wl(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ki&&Vi(Ki,l)||(Ki=l,l=ps(Sl,"onSelect"),0<l.length&&(t=new fl("onSelect","select",null,t,s),e.push({event:t,listeners:l}),t.target=Gr)))}function cs(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var Vr={animationend:cs("Animation","AnimationEnd"),animationiteration:cs("Animation","AnimationIteration"),animationstart:cs("Animation","AnimationStart"),transitionend:cs("Transition","TransitionEnd")},Cl={},pm={};p&&(pm=document.createElement("div").style,"AnimationEvent"in window||(delete Vr.animationend.animation,delete Vr.animationiteration.animation,delete Vr.animationstart.animation),"TransitionEvent"in window||delete Vr.transitionend.transition);function fs(e){if(Cl[e])return Cl[e];if(!Vr[e])return e;var t=Vr[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in pm)return Cl[e]=t[s];return e}var hm=fs("animationend"),mm=fs("animationiteration"),gm=fs("animationstart"),vm=fs("transitionend"),ym=new Map,wm="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 Gn(e,t){ym.set(e,t),u(t,[e])}for(var El=0;El<wm.length;El++){var bl=wm[El],rC=bl.toLowerCase(),iC=bl[0].toUpperCase()+bl.slice(1);Gn(rC,"on"+iC)}Gn(hm,"onAnimationEnd"),Gn(mm,"onAnimationIteration"),Gn(gm,"onAnimationStart"),Gn("dblclick","onDoubleClick"),Gn("focusin","onFocus"),Gn("focusout","onBlur"),Gn(vm,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qi="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(" "),oC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qi));function Sm(e,t,s){var l=e.type||"unknown-event";e.currentTarget=s,r_(l,t,void 0,e),e.currentTarget=null}function _m(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],c=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var g=l.length-1;0<=g;g--){var S=l[g],x=S.instance,D=S.currentTarget;if(S=S.listener,x!==d&&c.isPropagationStopped())break e;Sm(c,S,D),d=x}else for(g=0;g<l.length;g++){if(S=l[g],x=S.instance,D=S.currentTarget,S=S.listener,x!==d&&c.isPropagationStopped())break e;Sm(c,S,D),d=x}}}if(Qo)throw e=tl,Qo=!1,tl=null,e}function je(e,t){var s=t[Il];s===void 0&&(s=t[Il]=new Set);var l=e+"__bubble";s.has(l)||(Cm(t,e,2,!1),s.add(l))}function xl(e,t,s){var l=0;t&&(l|=4),Cm(s,e,l,t)}var ds="_reactListening"+Math.random().toString(36).slice(2);function Yi(e){if(!e[ds]){e[ds]=!0,o.forEach(function(s){s!=="selectionchange"&&(oC.has(s)||xl(s,!1,e),xl(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ds]||(t[ds]=!0,xl("selectionchange",!1,t))}}function Cm(e,t,s,l){switch(Wh(t)){case 1:var c=w_;break;case 4:c=S_;break;default:c=ll}s=c.bind(null,t,s,e),c=void 0,!el||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,s,{capture:!0,passive:c}):e.addEventListener(t,s,!0):c!==void 0?e.addEventListener(t,s,{passive:c}):e.addEventListener(t,s,!1)}function Ol(e,t,s,l,c){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var S=l.stateNode.containerInfo;if(S===c||S.nodeType===8&&S.parentNode===c)break;if(g===4)for(g=l.return;g!==null;){var x=g.tag;if((x===3||x===4)&&(x=g.stateNode.containerInfo,x===c||x.nodeType===8&&x.parentNode===c))return;g=g.return}for(;S!==null;){if(g=wr(S),g===null)return;if(x=g.tag,x===5||x===6){l=d=g;continue e}S=S.parentNode}}l=l.return}Ph(function(){var D=d,B=hr(s),H=[];e:{var z=ym.get(e);if(z!==void 0){var J=fl,ne=e;switch(e){case"keypress":if(ss(s)===0)break e;case"keydown":case"keyup":J=L_;break;case"focusin":ne="focus",J=hl;break;case"focusout":ne="blur",J=hl;break;case"beforeblur":case"afterblur":J=hl;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Kh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=E_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=$_;break;case hm:case mm:case gm:J=O_;break;case vm:J=q_;break;case"scroll":J=__;break;case"wheel":J=B_;break;case"copy":case"cut":case"paste":J=T_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Yh}var re=(t&4)!==0,Ge=!re&&e==="scroll",k=re?z!==null?z+"Capture":null:z;re=[];for(var O=D,j;O!==null;){j=O;var V=j.stateNode;if(j.tag===5&&V!==null&&(j=V,k!==null&&(V=Ii(O,k),V!=null&&re.push(Xi(O,V,j)))),Ge)break;O=O.return}0<re.length&&(z=new J(z,ne,null,s,B),H.push({event:z,listeners:re}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",J=e==="mouseout"||e==="pointerout",z&&s!==pr&&(ne=s.relatedTarget||s.fromElement)&&(wr(ne)||ne[bn]))break e;if((J||z)&&(z=B.window===B?B:(z=B.ownerDocument)?z.defaultView||z.parentWindow:window,J?(ne=s.relatedTarget||s.toElement,J=D,ne=ne?wr(ne):null,ne!==null&&(Ge=yr(ne),ne!==Ge||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(J=null,ne=D),J!==ne)){if(re=Kh,V="onMouseLeave",k="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(re=Yh,V="onPointerLeave",k="onPointerEnter",O="pointer"),Ge=J==null?z:Yr(J),j=ne==null?z:Yr(ne),z=new re(V,O+"leave",J,s,B),z.target=Ge,z.relatedTarget=j,V=null,wr(B)===D&&(re=new re(k,O+"enter",ne,s,B),re.target=j,re.relatedTarget=Ge,V=re),Ge=V,J&&ne)t:{for(re=J,k=ne,O=0,j=re;j;j=Kr(j))O++;for(j=0,V=k;V;V=Kr(V))j++;for(;0<O-j;)re=Kr(re),O--;for(;0<j-O;)k=Kr(k),j--;for(;O--;){if(re===k||k!==null&&re===k.alternate)break t;re=Kr(re),k=Kr(k)}re=null}else re=null;J!==null&&Em(H,z,J,re,!1),ne!==null&&Ge!==null&&Em(H,Ge,ne,re,!0)}}e:{if(z=D?Yr(D):window,J=z.nodeName&&z.nodeName.toLowerCase(),J==="select"||J==="input"&&z.type==="file")var ie=Q_;else if(nm(z))if(im)ie=J_;else{ie=X_;var ae=Y_}else(J=z.nodeName)&&J.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")&&(ie=Z_);if(ie&&(ie=ie(e,D))){rm(H,ie,s,B);break e}ae&&ae(e,z,D),e==="focusout"&&(ae=z._wrapperState)&&ae.controlled&&z.type==="number"&&Mt(z,"number",z.value)}switch(ae=D?Yr(D):window,e){case"focusin":(nm(ae)||ae.contentEditable==="true")&&(Gr=ae,Sl=D,Ki=null);break;case"focusout":Ki=Sl=Gr=null;break;case"mousedown":_l=!0;break;case"contextmenu":case"mouseup":case"dragend":_l=!1,dm(H,s,B);break;case"selectionchange":if(nC)break;case"keydown":case"keyup":dm(H,s,B)}var le;if(gl)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Wr?em(e,s)&&(de="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(de="onCompositionStart");de&&(Xh&&s.locale!=="ko"&&(Wr||de!=="onCompositionStart"?de==="onCompositionEnd"&&Wr&&(le=Gh()):(Wn=B,cl="value"in Wn?Wn.value:Wn.textContent,Wr=!0)),ae=ps(D,de),0<ae.length&&(de=new Qh(de,e,null,s,B),H.push({event:de,listeners:ae}),le?de.data=le:(le=tm(s),le!==null&&(de.data=le)))),(le=H_?W_(e,s):G_(e,s))&&(D=ps(D,"onBeforeInput"),0<D.length&&(B=new Qh("onBeforeInput","beforeinput",null,s,B),H.push({event:B,listeners:D}),B.data=le))}_m(H,t)})}function Xi(e,t,s){return{instance:e,listener:t,currentTarget:s}}function ps(e,t){for(var s=t+"Capture",l=[];e!==null;){var c=e,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=Ii(e,s),d!=null&&l.unshift(Xi(e,d,c)),d=Ii(e,t),d!=null&&l.push(Xi(e,d,c))),e=e.return}return l}function Kr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Em(e,t,s,l,c){for(var d=t._reactName,g=[];s!==null&&s!==l;){var S=s,x=S.alternate,D=S.stateNode;if(x!==null&&x===l)break;S.tag===5&&D!==null&&(S=D,c?(x=Ii(s,d),x!=null&&g.unshift(Xi(s,x,S))):c||(x=Ii(s,d),x!=null&&g.push(Xi(s,x,S)))),s=s.return}g.length!==0&&e.push({event:t,listeners:g})}var sC=/\r\n?/g,aC=/\u0000|\uFFFD/g;function bm(e){return(typeof e=="string"?e:""+e).replace(sC,`
38
+ `).replace(aC,"")}function hs(e,t,s){if(t=bm(t),bm(e)!==t&&s)throw Error(i(425))}function ms(){}var Pl=null,Tl=null;function Rl(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 kl=typeof setTimeout=="function"?setTimeout:void 0,lC=typeof clearTimeout=="function"?clearTimeout:void 0,xm=typeof Promise=="function"?Promise:void 0,uC=typeof queueMicrotask=="function"?queueMicrotask:typeof xm<"u"?function(e){return xm.resolve(null).then(e).catch(cC)}:kl;function cC(e){setTimeout(function(){throw e})}function Nl(e,t){var s=t,l=0;do{var c=s.nextSibling;if(e.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(l===0){e.removeChild(c),zi(t);return}l--}else s!=="$"&&s!=="$?"&&s!=="$!"||l++;s=c}while(s);zi(t)}function Vn(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 Om(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(t===0)return e;t--}else s==="/$"&&t++}e=e.previousSibling}return null}var Qr=Math.random().toString(36).slice(2),hn="__reactFiber$"+Qr,Zi="__reactProps$"+Qr,bn="__reactContainer$"+Qr,Il="__reactEvents$"+Qr,fC="__reactListeners$"+Qr,dC="__reactHandles$"+Qr;function wr(e){var t=e[hn];if(t)return t;for(var s=e.parentNode;s;){if(t=s[bn]||s[hn]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=Om(e);e!==null;){if(s=e[hn])return s;e=Om(e)}return t}e=s,s=e.parentNode}return null}function Ji(e){return e=e[hn]||e[bn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function gs(e){return e[Zi]||null}var jl=[],Xr=-1;function Kn(e){return{current:e}}function Ae(e){0>Xr||(e.current=jl[Xr],jl[Xr]=null,Xr--)}function Ie(e,t){Xr++,jl[Xr]=e.current,e.current=t}var Qn={},ft=Kn(Qn),_t=Kn(!1),Sr=Qn;function Zr(e,t){var s=e.type.contextTypes;if(!s)return Qn;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in s)c[d]=t[d];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function Ct(e){return e=e.childContextTypes,e!=null}function vs(){Ae(_t),Ae(ft)}function Pm(e,t,s){if(ft.current!==Qn)throw Error(i(168));Ie(ft,t),Ie(_t,s)}function Tm(e,t,s){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return s;l=l.getChildContext();for(var c in l)if(!(c in t))throw Error(i(108,he(e)||"Unknown",c));return E({},s,l)}function ys(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qn,Sr=ft.current,Ie(ft,e),Ie(_t,_t.current),!0}function Rm(e,t,s){var l=e.stateNode;if(!l)throw Error(i(169));s?(e=Tm(e,t,Sr),l.__reactInternalMemoizedMergedChildContext=e,Ae(_t),Ae(ft),Ie(ft,e)):Ae(_t),Ie(_t,s)}var xn=null,ws=!1,Al=!1;function km(e){xn===null?xn=[e]:xn.push(e)}function pC(e){ws=!0,km(e)}function Yn(){if(!Al&&xn!==null){Al=!0;var e=0,t=Re;try{var s=xn;for(Re=1;e<s.length;e++){var l=s[e];do l=l(!0);while(l!==null)}xn=null,ws=!1}catch(c){throw xn!==null&&(xn=xn.slice(e+1)),Ih(nl,Yn),c}finally{Re=t,Al=!1}}return null}var Jr=[],ei=0,Ss=null,_s=0,Ft=[],qt=0,_r=null,On=1,Pn="";function Cr(e,t){Jr[ei++]=_s,Jr[ei++]=Ss,Ss=e,_s=t}function Nm(e,t,s){Ft[qt++]=On,Ft[qt++]=Pn,Ft[qt++]=_r,_r=e;var l=On;e=Pn;var c=32-Jt(l)-1;l&=~(1<<c),s+=1;var d=32-Jt(t)+c;if(30<d){var g=c-c%5;d=(l&(1<<g)-1).toString(32),l>>=g,c-=g,On=1<<32-Jt(t)+c|s<<c|l,Pn=d+e}else On=1<<d|s<<c|l,Pn=e}function Ll(e){e.return!==null&&(Cr(e,1),Nm(e,1,0))}function Dl(e){for(;e===Ss;)Ss=Jr[--ei],Jr[ei]=null,_s=Jr[--ei],Jr[ei]=null;for(;e===_r;)_r=Ft[--qt],Ft[qt]=null,Pn=Ft[--qt],Ft[qt]=null,On=Ft[--qt],Ft[qt]=null}var Nt=null,It=null,De=!1,tn=null;function Im(e,t){var s=Ht(5,null,null,0);s.elementType="DELETED",s.stateNode=t,s.return=e,t=e.deletions,t===null?(e.deletions=[s],e.flags|=16):t.push(s)}function jm(e,t){switch(e.tag){case 5:var s=e.type;return t=t.nodeType!==1||s.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Nt=e,It=Vn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Nt=e,It=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(s=_r!==null?{id:On,overflow:Pn}:null,e.memoizedState={dehydrated:t,treeContext:s,retryLane:1073741824},s=Ht(18,null,null,0),s.stateNode=t,s.return=e,e.child=s,Nt=e,It=null,!0):!1;default:return!1}}function Ml(e){return(e.mode&1)!==0&&(e.flags&128)===0}function $l(e){if(De){var t=It;if(t){var s=t;if(!jm(e,t)){if(Ml(e))throw Error(i(418));t=Vn(s.nextSibling);var l=Nt;t&&jm(e,t)?Im(l,s):(e.flags=e.flags&-4097|2,De=!1,Nt=e)}}else{if(Ml(e))throw Error(i(418));e.flags=e.flags&-4097|2,De=!1,Nt=e}}}function Am(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Nt=e}function Cs(e){if(e!==Nt)return!1;if(!De)return Am(e),De=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Rl(e.type,e.memoizedProps)),t&&(t=It)){if(Ml(e))throw Lm(),Error(i(418));for(;t;)Im(e,t),t=Vn(t.nextSibling)}if(Am(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"){if(t===0){It=Vn(e.nextSibling);break e}t--}else s!=="$"&&s!=="$!"&&s!=="$?"||t++}e=e.nextSibling}It=null}}else It=Nt?Vn(e.stateNode.nextSibling):null;return!0}function Lm(){for(var e=It;e;)e=Vn(e.nextSibling)}function ti(){It=Nt=null,De=!1}function Fl(e){tn===null?tn=[e]:tn.push(e)}var hC=F.ReactCurrentBatchConfig;function nn(e,t){if(e&&e.defaultProps){t=E({},t),e=e.defaultProps;for(var s in e)t[s]===void 0&&(t[s]=e[s]);return t}return t}var Es=Kn(null),bs=null,ni=null,ql=null;function zl(){ql=ni=bs=null}function Bl(e){var t=Es.current;Ae(Es),e._currentValue=t}function Ul(e,t,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===s)break;e=e.return}}function ri(e,t){bs=e,ql=ni=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Et=!0),e.firstContext=null)}function zt(e){var t=e._currentValue;if(ql!==e)if(e={context:e,memoizedValue:t,next:null},ni===null){if(bs===null)throw Error(i(308));ni=e,bs.dependencies={lanes:0,firstContext:e}}else ni=ni.next=e;return t}var Er=null;function Hl(e){Er===null?Er=[e]:Er.push(e)}function Dm(e,t,s,l){var c=t.interleaved;return c===null?(s.next=s,Hl(t)):(s.next=c.next,c.next=s),t.interleaved=s,Tn(e,l)}function Tn(e,t){e.lanes|=t;var s=e.alternate;for(s!==null&&(s.lanes|=t),s=e,e=e.return;e!==null;)e.childLanes|=t,s=e.alternate,s!==null&&(s.childLanes|=t),s=e,e=e.return;return s.tag===3?s.stateNode:null}var Xn=!1;function Wl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mm(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 Rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(be&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,Tn(e,s)}return c=l.interleaved,c===null?(t.next=t,Hl(l)):(t.next=c.next,c.next=t),l.interleaved=t,Tn(e,s)}function xs(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,s|=l,t.lanes=s,ol(e,s)}}function $m(e,t){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var c=null,d=null;if(s=s.firstBaseUpdate,s!==null){do{var g={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};d===null?c=d=g:d=d.next=g,s=s.next}while(s!==null);d===null?c=d=t:d=d.next=t}else c=d=t;s={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:l.shared,effects:l.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}function Os(e,t,s,l){var c=e.updateQueue;Xn=!1;var d=c.firstBaseUpdate,g=c.lastBaseUpdate,S=c.shared.pending;if(S!==null){c.shared.pending=null;var x=S,D=x.next;x.next=null,g===null?d=D:g.next=D,g=x;var B=e.alternate;B!==null&&(B=B.updateQueue,S=B.lastBaseUpdate,S!==g&&(S===null?B.firstBaseUpdate=D:S.next=D,B.lastBaseUpdate=x))}if(d!==null){var H=c.baseState;g=0,B=D=x=null,S=d;do{var z=S.lane,J=S.eventTime;if((l&z)===z){B!==null&&(B=B.next={eventTime:J,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var ne=e,re=S;switch(z=t,J=s,re.tag){case 1:if(ne=re.payload,typeof ne=="function"){H=ne.call(J,H,z);break e}H=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=re.payload,z=typeof ne=="function"?ne.call(J,H,z):ne,z==null)break e;H=E({},H,z);break e;case 2:Xn=!0}}S.callback!==null&&S.lane!==0&&(e.flags|=64,z=c.effects,z===null?c.effects=[S]:z.push(S))}else J={eventTime:J,lane:z,tag:S.tag,payload:S.payload,callback:S.callback,next:null},B===null?(D=B=J,x=H):B=B.next=J,g|=z;if(S=S.next,S===null){if(S=c.shared.pending,S===null)break;z=S,S=z.next,z.next=null,c.lastBaseUpdate=z,c.shared.pending=null}}while(!0);if(B===null&&(x=H),c.baseState=x,c.firstBaseUpdate=D,c.lastBaseUpdate=B,t=c.shared.interleaved,t!==null){c=t;do g|=c.lane,c=c.next;while(c!==t)}else d===null&&(c.shared.lanes=0);Or|=g,e.lanes=g,e.memoizedState=H}}function Fm(e,t,s){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var l=e[t],c=l.callback;if(c!==null){if(l.callback=null,l=s,typeof c!="function")throw Error(i(191,c));c.call(l)}}}var qm=new r.Component().refs;function Gl(e,t,s,l){t=e.memoizedState,s=s(l,t),s=s==null?t:E({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Ps={isMounted:function(e){return(e=e._reactInternals)?yr(e)===e:!1},enqueueSetState:function(e,t,s){e=e._reactInternals;var l=St(),c=nr(e),d=Rn(l,c);d.payload=t,s!=null&&(d.callback=s),t=Zn(e,d,c),t!==null&&(sn(t,e,c,l),xs(t,e,c))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var l=St(),c=nr(e),d=Rn(l,c);d.tag=1,d.payload=t,s!=null&&(d.callback=s),t=Zn(e,d,c),t!==null&&(sn(t,e,c,l),xs(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=St(),l=nr(e),c=Rn(s,l);c.tag=2,t!=null&&(c.callback=t),t=Zn(e,c,l),t!==null&&(sn(t,e,l,s),xs(t,e,l))}};function zm(e,t,s,l,c,d,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,g):t.prototype&&t.prototype.isPureReactComponent?!Vi(s,l)||!Vi(c,d):!0}function Bm(e,t,s){var l=!1,c=Qn,d=t.contextType;return typeof d=="object"&&d!==null?d=zt(d):(c=Ct(t)?Sr:ft.current,l=t.contextTypes,d=(l=l!=null)?Zr(e,c):Qn),t=new t(s,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ps,e.stateNode=t,t._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=d),t}function Um(e,t,s,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,l),t.state!==e&&Ps.enqueueReplaceState(t,t.state,null)}function Vl(e,t,s,l){var c=e.stateNode;c.props=s,c.state=e.memoizedState,c.refs=qm,Wl(e);var d=t.contextType;typeof d=="object"&&d!==null?c.context=zt(d):(d=Ct(t)?Sr:ft.current,c.context=Zr(e,d)),c.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(Gl(e,t,d,s),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&Ps.enqueueReplaceState(c,c.state,null),Os(e,s,c,l),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function eo(e,t,s){if(e=s.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(i(309));var l=s.stateNode}if(!l)throw Error(i(147,e));var c=l,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(g){var S=c.refs;S===qm&&(S=c.refs={}),g===null?delete S[d]:S[d]=g},t._stringRef=d,t)}if(typeof e!="string")throw Error(i(284));if(!s._owner)throw Error(i(290,e))}return e}function Ts(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hm(e){var t=e._init;return t(e._payload)}function Wm(e){function t(k,O){if(e){var j=k.deletions;j===null?(k.deletions=[O],k.flags|=16):j.push(O)}}function s(k,O){if(!e)return null;for(;O!==null;)t(k,O),O=O.sibling;return null}function l(k,O){for(k=new Map;O!==null;)O.key!==null?k.set(O.key,O):k.set(O.index,O),O=O.sibling;return k}function c(k,O){return k=ir(k,O),k.index=0,k.sibling=null,k}function d(k,O,j){return k.index=j,e?(j=k.alternate,j!==null?(j=j.index,j<O?(k.flags|=2,O):j):(k.flags|=2,O)):(k.flags|=1048576,O)}function g(k){return e&&k.alternate===null&&(k.flags|=2),k}function S(k,O,j,V){return O===null||O.tag!==6?(O=ku(j,k.mode,V),O.return=k,O):(O=c(O,j),O.return=k,O)}function x(k,O,j,V){var ie=j.type;return ie===A?B(k,O,j.props.children,V,j.key):O!==null&&(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ee&&Hm(ie)===O.type)?(V=c(O,j.props),V.ref=eo(k,O,j),V.return=k,V):(V=Vs(j.type,j.key,j.props,null,k.mode,V),V.ref=eo(k,O,j),V.return=k,V)}function D(k,O,j,V){return O===null||O.tag!==4||O.stateNode.containerInfo!==j.containerInfo||O.stateNode.implementation!==j.implementation?(O=Nu(j,k.mode,V),O.return=k,O):(O=c(O,j.children||[]),O.return=k,O)}function B(k,O,j,V,ie){return O===null||O.tag!==7?(O=kr(j,k.mode,V,ie),O.return=k,O):(O=c(O,j),O.return=k,O)}function H(k,O,j){if(typeof O=="string"&&O!==""||typeof O=="number")return O=ku(""+O,k.mode,j),O.return=k,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case U:return j=Vs(O.type,O.key,O.props,null,k.mode,j),j.ref=eo(k,null,O),j.return=k,j;case M:return O=Nu(O,k.mode,j),O.return=k,O;case Ee:var V=O._init;return H(k,V(O._payload),j)}if(lt(O)||Y(O))return O=kr(O,k.mode,j,null),O.return=k,O;Ts(k,O)}return null}function z(k,O,j,V){var ie=O!==null?O.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return ie!==null?null:S(k,O,""+j,V);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case U:return j.key===ie?x(k,O,j,V):null;case M:return j.key===ie?D(k,O,j,V):null;case Ee:return ie=j._init,z(k,O,ie(j._payload),V)}if(lt(j)||Y(j))return ie!==null?null:B(k,O,j,V,null);Ts(k,j)}return null}function J(k,O,j,V,ie){if(typeof V=="string"&&V!==""||typeof V=="number")return k=k.get(j)||null,S(O,k,""+V,ie);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case U:return k=k.get(V.key===null?j:V.key)||null,x(O,k,V,ie);case M:return k=k.get(V.key===null?j:V.key)||null,D(O,k,V,ie);case Ee:var ae=V._init;return J(k,O,j,ae(V._payload),ie)}if(lt(V)||Y(V))return k=k.get(j)||null,B(O,k,V,ie,null);Ts(O,V)}return null}function ne(k,O,j,V){for(var ie=null,ae=null,le=O,de=O=0,et=null;le!==null&&de<j.length;de++){le.index>de?(et=le,le=null):et=le.sibling;var xe=z(k,le,j[de],V);if(xe===null){le===null&&(le=et);break}e&&le&&xe.alternate===null&&t(k,le),O=d(xe,O,de),ae===null?ie=xe:ae.sibling=xe,ae=xe,le=et}if(de===j.length)return s(k,le),De&&Cr(k,de),ie;if(le===null){for(;de<j.length;de++)le=H(k,j[de],V),le!==null&&(O=d(le,O,de),ae===null?ie=le:ae.sibling=le,ae=le);return De&&Cr(k,de),ie}for(le=l(k,le);de<j.length;de++)et=J(le,k,de,j[de],V),et!==null&&(e&&et.alternate!==null&&le.delete(et.key===null?de:et.key),O=d(et,O,de),ae===null?ie=et:ae.sibling=et,ae=et);return e&&le.forEach(function(or){return t(k,or)}),De&&Cr(k,de),ie}function re(k,O,j,V){var ie=Y(j);if(typeof ie!="function")throw Error(i(150));if(j=ie.call(j),j==null)throw Error(i(151));for(var ae=ie=null,le=O,de=O=0,et=null,xe=j.next();le!==null&&!xe.done;de++,xe=j.next()){le.index>de?(et=le,le=null):et=le.sibling;var or=z(k,le,xe.value,V);if(or===null){le===null&&(le=et);break}e&&le&&or.alternate===null&&t(k,le),O=d(or,O,de),ae===null?ie=or:ae.sibling=or,ae=or,le=et}if(xe.done)return s(k,le),De&&Cr(k,de),ie;if(le===null){for(;!xe.done;de++,xe=j.next())xe=H(k,xe.value,V),xe!==null&&(O=d(xe,O,de),ae===null?ie=xe:ae.sibling=xe,ae=xe);return De&&Cr(k,de),ie}for(le=l(k,le);!xe.done;de++,xe=j.next())xe=J(le,k,de,xe.value,V),xe!==null&&(e&&xe.alternate!==null&&le.delete(xe.key===null?de:xe.key),O=d(xe,O,de),ae===null?ie=xe:ae.sibling=xe,ae=xe);return e&&le.forEach(function(VC){return t(k,VC)}),De&&Cr(k,de),ie}function Ge(k,O,j,V){if(typeof j=="object"&&j!==null&&j.type===A&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case U:e:{for(var ie=j.key,ae=O;ae!==null;){if(ae.key===ie){if(ie=j.type,ie===A){if(ae.tag===7){s(k,ae.sibling),O=c(ae,j.props.children),O.return=k,k=O;break e}}else if(ae.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ee&&Hm(ie)===ae.type){s(k,ae.sibling),O=c(ae,j.props),O.ref=eo(k,ae,j),O.return=k,k=O;break e}s(k,ae);break}else t(k,ae);ae=ae.sibling}j.type===A?(O=kr(j.props.children,k.mode,V,j.key),O.return=k,k=O):(V=Vs(j.type,j.key,j.props,null,k.mode,V),V.ref=eo(k,O,j),V.return=k,k=V)}return g(k);case M:e:{for(ae=j.key;O!==null;){if(O.key===ae)if(O.tag===4&&O.stateNode.containerInfo===j.containerInfo&&O.stateNode.implementation===j.implementation){s(k,O.sibling),O=c(O,j.children||[]),O.return=k,k=O;break e}else{s(k,O);break}else t(k,O);O=O.sibling}O=Nu(j,k.mode,V),O.return=k,k=O}return g(k);case Ee:return ae=j._init,Ge(k,O,ae(j._payload),V)}if(lt(j))return ne(k,O,j,V);if(Y(j))return re(k,O,j,V);Ts(k,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,O!==null&&O.tag===6?(s(k,O.sibling),O=c(O,j),O.return=k,k=O):(s(k,O),O=ku(j,k.mode,V),O.return=k,k=O),g(k)):s(k,O)}return Ge}var ii=Wm(!0),Gm=Wm(!1),to={},mn=Kn(to),no=Kn(to),ro=Kn(to);function br(e){if(e===to)throw Error(i(174));return e}function Kl(e,t){switch(Ie(ro,t),Ie(no,e),Ie(mn,to),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cn(t,e)}Ae(mn),Ie(mn,t)}function oi(){Ae(mn),Ae(no),Ae(ro)}function Vm(e){br(ro.current);var t=br(mn.current),s=Cn(t,e.type);t!==s&&(Ie(no,e),Ie(mn,s))}function Ql(e){no.current===e&&(Ae(mn),Ae(no))}var Fe=Kn(0);function Rs(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 Yl=[];function Xl(){for(var e=0;e<Yl.length;e++)Yl[e]._workInProgressVersionPrimary=null;Yl.length=0}var ks=F.ReactCurrentDispatcher,Zl=F.ReactCurrentBatchConfig,xr=0,qe=null,Ye=null,Ze=null,Ns=!1,io=!1,oo=0,mC=0;function dt(){throw Error(i(321))}function Jl(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!en(e[s],t[s]))return!1;return!0}function eu(e,t,s,l,c,d){if(xr=d,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ks.current=e===null||e.memoizedState===null?wC:SC,e=s(l,c),io){d=0;do{if(io=!1,oo=0,25<=d)throw Error(i(301));d+=1,Ze=Ye=null,t.updateQueue=null,ks.current=_C,e=s(l,c)}while(io)}if(ks.current=As,t=Ye!==null&&Ye.next!==null,xr=0,Ze=Ye=qe=null,Ns=!1,t)throw Error(i(300));return e}function tu(){var e=oo!==0;return oo=0,e}function gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?qe.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Bt(){if(Ye===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=Ze===null?qe.memoizedState:Ze.next;if(t!==null)Ze=t,Ye=e;else{if(e===null)throw Error(i(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},Ze===null?qe.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function so(e,t){return typeof t=="function"?t(e):t}function nu(e){var t=Bt(),s=t.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=e;var l=Ye,c=l.baseQueue,d=s.pending;if(d!==null){if(c!==null){var g=c.next;c.next=d.next,d.next=g}l.baseQueue=c=d,s.pending=null}if(c!==null){d=c.next,l=l.baseState;var S=g=null,x=null,D=d;do{var B=D.lane;if((xr&B)===B)x!==null&&(x=x.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),l=D.hasEagerState?D.eagerState:e(l,D.action);else{var H={lane:B,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};x===null?(S=x=H,g=l):x=x.next=H,qe.lanes|=B,Or|=B}D=D.next}while(D!==null&&D!==d);x===null?g=l:x.next=S,en(l,t.memoizedState)||(Et=!0),t.memoizedState=l,t.baseState=g,t.baseQueue=x,s.lastRenderedState=l}if(e=s.interleaved,e!==null){c=e;do d=c.lane,qe.lanes|=d,Or|=d,c=c.next;while(c!==e)}else c===null&&(s.lanes=0);return[t.memoizedState,s.dispatch]}function ru(e){var t=Bt(),s=t.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=e;var l=s.dispatch,c=s.pending,d=t.memoizedState;if(c!==null){s.pending=null;var g=c=c.next;do d=e(d,g.action),g=g.next;while(g!==c);en(d,t.memoizedState)||(Et=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),s.lastRenderedState=d}return[d,l]}function Km(){}function Qm(e,t){var s=qe,l=Bt(),c=t(),d=!en(l.memoizedState,c);if(d&&(l.memoizedState=c,Et=!0),l=l.queue,iu(Zm.bind(null,s,l,e),[e]),l.getSnapshot!==t||d||Ze!==null&&Ze.memoizedState.tag&1){if(s.flags|=2048,ao(9,Xm.bind(null,s,l,c,t),void 0,null),Je===null)throw Error(i(349));(xr&30)!==0||Ym(s,t,c)}return c}function Ym(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function Xm(e,t,s,l){t.value=s,t.getSnapshot=l,Jm(t)&&eg(e)}function Zm(e,t,s){return s(function(){Jm(t)&&eg(e)})}function Jm(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!en(e,s)}catch{return!0}}function eg(e){var t=Tn(e,1);t!==null&&sn(t,e,1,-1)}function tg(e){var t=gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:so,lastRenderedState:e},t.queue=e,e=e.dispatch=yC.bind(null,qe,e),[t.memoizedState,e]}function ao(e,t,s,l){return e={tag:e,create:t,destroy:s,deps:l,next:null},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.lastEffect=e.next=e):(s=t.lastEffect,s===null?t.lastEffect=e.next=e:(l=s.next,s.next=e,e.next=l,t.lastEffect=e)),e}function ng(){return Bt().memoizedState}function Is(e,t,s,l){var c=gn();qe.flags|=e,c.memoizedState=ao(1|t,s,void 0,l===void 0?null:l)}function js(e,t,s,l){var c=Bt();l=l===void 0?null:l;var d=void 0;if(Ye!==null){var g=Ye.memoizedState;if(d=g.destroy,l!==null&&Jl(l,g.deps)){c.memoizedState=ao(t,s,d,l);return}}qe.flags|=e,c.memoizedState=ao(1|t,s,d,l)}function rg(e,t){return Is(8390656,8,e,t)}function iu(e,t){return js(2048,8,e,t)}function ig(e,t){return js(4,2,e,t)}function og(e,t){return js(4,4,e,t)}function sg(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 ag(e,t,s){return s=s!=null?s.concat([e]):null,js(4,4,sg.bind(null,t,e),s)}function ou(){}function lg(e,t){var s=Bt();t=t===void 0?null:t;var l=s.memoizedState;return l!==null&&t!==null&&Jl(t,l[1])?l[0]:(s.memoizedState=[e,t],e)}function ug(e,t){var s=Bt();t=t===void 0?null:t;var l=s.memoizedState;return l!==null&&t!==null&&Jl(t,l[1])?l[0]:(e=e(),s.memoizedState=[e,t],e)}function cg(e,t,s){return(xr&21)===0?(e.baseState&&(e.baseState=!1,Et=!0),e.memoizedState=s):(en(s,t)||(s=Dh(),qe.lanes|=s,Or|=s,e.baseState=!0),t)}function gC(e,t){var s=Re;Re=s!==0&&4>s?s:4,e(!0);var l=Zl.transition;Zl.transition={};try{e(!1),t()}finally{Re=s,Zl.transition=l}}function fg(){return Bt().memoizedState}function vC(e,t,s){var l=nr(e);if(s={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null},dg(e))pg(t,s);else if(s=Dm(e,t,s,l),s!==null){var c=St();sn(s,e,l,c),hg(s,t,l)}}function yC(e,t,s){var l=nr(e),c={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null};if(dg(e))pg(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var g=t.lastRenderedState,S=d(g,s);if(c.hasEagerState=!0,c.eagerState=S,en(S,g)){var x=t.interleaved;x===null?(c.next=c,Hl(t)):(c.next=x.next,x.next=c),t.interleaved=c;return}}catch{}finally{}s=Dm(e,t,c,l),s!==null&&(c=St(),sn(s,e,l,c),hg(s,t,l))}}function dg(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function pg(e,t){io=Ns=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function hg(e,t,s){if((s&4194240)!==0){var l=t.lanes;l&=e.pendingLanes,s|=l,t.lanes=s,ol(e,s)}}var As={readContext:zt,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},wC={readContext:zt,useCallback:function(e,t){return gn().memoizedState=[e,t===void 0?null:t],e},useContext:zt,useEffect:rg,useImperativeHandle:function(e,t,s){return s=s!=null?s.concat([e]):null,Is(4194308,4,sg.bind(null,t,e),s)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){return Is(4,2,e,t)},useMemo:function(e,t){var s=gn();return t=t===void 0?null:t,e=e(),s.memoizedState=[e,t],e},useReducer:function(e,t,s){var l=gn();return t=s!==void 0?s(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=vC.bind(null,qe,e),[l.memoizedState,e]},useRef:function(e){var t=gn();return e={current:e},t.memoizedState=e},useState:tg,useDebugValue:ou,useDeferredValue:function(e){return gn().memoizedState=e},useTransition:function(){var e=tg(!1),t=e[0];return e=gC.bind(null,e[1]),gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,s){var l=qe,c=gn();if(De){if(s===void 0)throw Error(i(407));s=s()}else{if(s=t(),Je===null)throw Error(i(349));(xr&30)!==0||Ym(l,t,s)}c.memoizedState=s;var d={value:s,getSnapshot:t};return c.queue=d,rg(Zm.bind(null,l,d,e),[e]),l.flags|=2048,ao(9,Xm.bind(null,l,d,s,t),void 0,null),s},useId:function(){var e=gn(),t=Je.identifierPrefix;if(De){var s=Pn,l=On;s=(l&~(1<<32-Jt(l)-1)).toString(32)+s,t=":"+t+"R"+s,s=oo++,0<s&&(t+="H"+s.toString(32)),t+=":"}else s=mC++,t=":"+t+"r"+s.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},SC={readContext:zt,useCallback:lg,useContext:zt,useEffect:iu,useImperativeHandle:ag,useInsertionEffect:ig,useLayoutEffect:og,useMemo:ug,useReducer:nu,useRef:ng,useState:function(){return nu(so)},useDebugValue:ou,useDeferredValue:function(e){var t=Bt();return cg(t,Ye.memoizedState,e)},useTransition:function(){var e=nu(so)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:Km,useSyncExternalStore:Qm,useId:fg,unstable_isNewReconciler:!1},_C={readContext:zt,useCallback:lg,useContext:zt,useEffect:iu,useImperativeHandle:ag,useInsertionEffect:ig,useLayoutEffect:og,useMemo:ug,useReducer:ru,useRef:ng,useState:function(){return ru(so)},useDebugValue:ou,useDeferredValue:function(e){var t=Bt();return Ye===null?t.memoizedState=e:cg(t,Ye.memoizedState,e)},useTransition:function(){var e=ru(so)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:Km,useSyncExternalStore:Qm,useId:fg,unstable_isNewReconciler:!1};function si(e,t){try{var s="",l=t;do s+=me(l),l=l.return;while(l);var c=s}catch(d){c=`
39
+ Error generating stack: `+d.message+`
40
+ `+d.stack}return{value:e,source:t,stack:c,digest:null}}function su(e,t,s){return{value:e,source:null,stack:s??null,digest:t??null}}function au(e,t){try{console.error(t.value)}catch(s){setTimeout(function(){throw s})}}var CC=typeof WeakMap=="function"?WeakMap:Map;function mg(e,t,s){s=Rn(-1,s),s.tag=3,s.payload={element:null};var l=t.value;return s.callback=function(){zs||(zs=!0,Cu=l),au(e,t)},s}function gg(e,t,s){s=Rn(-1,s),s.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var c=t.value;s.payload=function(){return l(c)},s.callback=function(){au(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(s.callback=function(){au(e,t),typeof l!="function"&&(er===null?er=new Set([this]):er.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),s}function vg(e,t,s){var l=e.pingCache;if(l===null){l=e.pingCache=new CC;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(s)||(c.add(s),e=DC.bind(null,e,t,s),t.then(e,e))}function yg(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 wg(e,t,s,l,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(t=Rn(-1,1),t.tag=2,Zn(s,t,1))),s.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var EC=F.ReactCurrentOwner,Et=!1;function wt(e,t,s,l){t.child=e===null?Gm(t,null,s,l):ii(t,e.child,s,l)}function Sg(e,t,s,l,c){s=s.render;var d=t.ref;return ri(t,c),l=eu(e,t,s,l,d,c),s=tu(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,kn(e,t,c)):(De&&s&&Ll(t),t.flags|=1,wt(e,t,l,c),t.child)}function _g(e,t,s,l,c){if(e===null){var d=s.type;return typeof d=="function"&&!Ru(d)&&d.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(t.tag=15,t.type=d,Cg(e,t,d,l,c)):(e=Vs(s.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&c)===0){var g=d.memoizedProps;if(s=s.compare,s=s!==null?s:Vi,s(g,l)&&e.ref===t.ref)return kn(e,t,c)}return t.flags|=1,e=ir(d,l),e.ref=t.ref,e.return=t,t.child=e}function Cg(e,t,s,l,c){if(e!==null){var d=e.memoizedProps;if(Vi(d,l)&&e.ref===t.ref)if(Et=!1,t.pendingProps=l=d,(e.lanes&c)!==0)(e.flags&131072)!==0&&(Et=!0);else return t.lanes=e.lanes,kn(e,t,c)}return lu(e,t,s,l,c)}function Eg(e,t,s){var l=t.pendingProps,c=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ie(li,jt),jt|=s;else{if((s&1073741824)===0)return e=d!==null?d.baseLanes|s:s,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ie(li,jt),jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=d!==null?d.baseLanes:s,Ie(li,jt),jt|=l}else d!==null?(l=d.baseLanes|s,t.memoizedState=null):l=s,Ie(li,jt),jt|=l;return wt(e,t,c,s),t.child}function bg(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=512,t.flags|=2097152)}function lu(e,t,s,l,c){var d=Ct(s)?Sr:ft.current;return d=Zr(t,d),ri(t,c),s=eu(e,t,s,l,d,c),l=tu(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,kn(e,t,c)):(De&&l&&Ll(t),t.flags|=1,wt(e,t,s,c),t.child)}function xg(e,t,s,l,c){if(Ct(s)){var d=!0;ys(t)}else d=!1;if(ri(t,c),t.stateNode===null)Ds(e,t),Bm(t,s,l),Vl(t,s,l,c),l=!0;else if(e===null){var g=t.stateNode,S=t.memoizedProps;g.props=S;var x=g.context,D=s.contextType;typeof D=="object"&&D!==null?D=zt(D):(D=Ct(s)?Sr:ft.current,D=Zr(t,D));var B=s.getDerivedStateFromProps,H=typeof B=="function"||typeof g.getSnapshotBeforeUpdate=="function";H||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==l||x!==D)&&Um(t,g,l,D),Xn=!1;var z=t.memoizedState;g.state=z,Os(t,l,g,c),x=t.memoizedState,S!==l||z!==x||_t.current||Xn?(typeof B=="function"&&(Gl(t,s,B,l),x=t.memoizedState),(S=Xn||zm(t,s,S,l,z,x,D))?(H||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=x),g.props=l,g.state=x,g.context=D,l=S):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{g=t.stateNode,Mm(e,t),S=t.memoizedProps,D=t.type===t.elementType?S:nn(t.type,S),g.props=D,H=t.pendingProps,z=g.context,x=s.contextType,typeof x=="object"&&x!==null?x=zt(x):(x=Ct(s)?Sr:ft.current,x=Zr(t,x));var J=s.getDerivedStateFromProps;(B=typeof J=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==H||z!==x)&&Um(t,g,l,x),Xn=!1,z=t.memoizedState,g.state=z,Os(t,l,g,c);var ne=t.memoizedState;S!==H||z!==ne||_t.current||Xn?(typeof J=="function"&&(Gl(t,s,J,l),ne=t.memoizedState),(D=Xn||zm(t,s,D,l,z,ne,x)||!1)?(B||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(l,ne,x),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(l,ne,x)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=ne),g.props=l,g.state=ne,g.context=x,l=D):(typeof g.componentDidUpdate!="function"||S===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return uu(e,t,s,l,d,c)}function uu(e,t,s,l,c,d){bg(e,t);var g=(t.flags&128)!==0;if(!l&&!g)return c&&Rm(t,s,!1),kn(e,t,d);l=t.stateNode,EC.current=t;var S=g&&typeof s.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&g?(t.child=ii(t,e.child,null,d),t.child=ii(t,null,S,d)):wt(e,t,S,d),t.memoizedState=l.state,c&&Rm(t,s,!0),t.child}function Og(e){var t=e.stateNode;t.pendingContext?Pm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Pm(e,t.context,!1),Kl(e,t.containerInfo)}function Pg(e,t,s,l,c){return ti(),Fl(c),t.flags|=256,wt(e,t,s,l),t.child}var cu={dehydrated:null,treeContext:null,retryLane:0};function fu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tg(e,t,s){var l=t.pendingProps,c=Fe.current,d=!1,g=(t.flags&128)!==0,S;if((S=g)||(S=e!==null&&e.memoizedState===null?!1:(c&2)!==0),S?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Ie(Fe,c&1),e===null)return $l(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(g=l.children,e=l.fallback,d?(l=t.mode,d=t.child,g={mode:"hidden",children:g},(l&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=g):d=Ks(g,l,0,null),e=kr(e,l,s,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=fu(s),t.memoizedState=cu,e):du(t,g));if(c=e.memoizedState,c!==null&&(S=c.dehydrated,S!==null))return bC(e,t,g,l,S,c,s);if(d){d=l.fallback,g=t.mode,c=e.child,S=c.sibling;var x={mode:"hidden",children:l.children};return(g&1)===0&&t.child!==c?(l=t.child,l.childLanes=0,l.pendingProps=x,t.deletions=null):(l=ir(c,x),l.subtreeFlags=c.subtreeFlags&14680064),S!==null?d=ir(S,d):(d=kr(d,g,s,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,l=d,d=t.child,g=e.child.memoizedState,g=g===null?fu(s):{baseLanes:g.baseLanes|s,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=e.childLanes&~s,t.memoizedState=cu,l}return d=e.child,e=d.sibling,l=ir(d,{mode:"visible",children:l.children}),(t.mode&1)===0&&(l.lanes=s),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l}function du(e,t){return t=Ks({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ls(e,t,s,l){return l!==null&&Fl(l),ii(t,e.child,null,s),e=du(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bC(e,t,s,l,c,d,g){if(s)return t.flags&256?(t.flags&=-257,l=su(Error(i(422))),Ls(e,t,g,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=l.fallback,c=t.mode,l=Ks({mode:"visible",children:l.children},c,0,null),d=kr(d,c,g,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,(t.mode&1)!==0&&ii(t,e.child,null,g),t.child.memoizedState=fu(g),t.memoizedState=cu,d);if((t.mode&1)===0)return Ls(e,t,g,null);if(c.data==="$!"){if(l=c.nextSibling&&c.nextSibling.dataset,l)var S=l.dgst;return l=S,d=Error(i(419)),l=su(d,l,void 0),Ls(e,t,g,l)}if(S=(g&e.childLanes)!==0,Et||S){if(l=Je,l!==null){switch(g&-g){case 4:c=2;break;case 16:c=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:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(l.suspendedLanes|g))!==0?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,Tn(e,c),sn(l,e,c,-1))}return Tu(),l=su(Error(i(421))),Ls(e,t,g,l)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=MC.bind(null,e),c._reactRetry=t,null):(e=d.treeContext,It=Vn(c.nextSibling),Nt=t,De=!0,tn=null,e!==null&&(Ft[qt++]=On,Ft[qt++]=Pn,Ft[qt++]=_r,On=e.id,Pn=e.overflow,_r=t),t=du(t,l.children),t.flags|=4096,t)}function Rg(e,t,s){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ul(e.return,t,s)}function pu(e,t,s,l,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=s,d.tailMode=c)}function kg(e,t,s){var l=t.pendingProps,c=l.revealOrder,d=l.tail;if(wt(e,t,l.children,s),l=Fe.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rg(e,s,t);else if(e.tag===19)Rg(e,s,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}l&=1}if(Ie(Fe,l),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(s=t.child,c=null;s!==null;)e=s.alternate,e!==null&&Rs(e)===null&&(c=s),s=s.sibling;s=c,s===null?(c=t.child,t.child=null):(c=s.sibling,s.sibling=null),pu(t,!1,c,s,d);break;case"backwards":for(s=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Rs(e)===null){t.child=c;break}e=c.sibling,c.sibling=s,s=c,c=e}pu(t,!0,s,null,d);break;case"together":pu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ds(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kn(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),Or|=t.lanes,(s&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,s=ir(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=ir(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function xC(e,t,s){switch(t.tag){case 3:Og(t),ti();break;case 5:Vm(t);break;case 1:Ct(t.type)&&ys(t);break;case 4:Kl(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,c=t.memoizedProps.value;Ie(Es,l._currentValue),l._currentValue=c;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(Ie(Fe,Fe.current&1),t.flags|=128,null):(s&t.child.childLanes)!==0?Tg(e,t,s):(Ie(Fe,Fe.current&1),e=kn(e,t,s),e!==null?e.sibling:null);Ie(Fe,Fe.current&1);break;case 19:if(l=(s&t.childLanes)!==0,(e.flags&128)!==0){if(l)return kg(e,t,s);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ie(Fe,Fe.current),l)break;return null;case 22:case 23:return t.lanes=0,Eg(e,t,s)}return kn(e,t,s)}var Ng,hu,Ig,jg;Ng=function(e,t){for(var s=t.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},hu=function(){},Ig=function(e,t,s,l){var c=e.memoizedProps;if(c!==l){e=t.stateNode,br(mn.current);var d=null;switch(s){case"input":c=fr(e,c),l=fr(e,l),d=[];break;case"select":c=E({},c,{value:void 0}),l=E({},l,{value:void 0}),d=[];break;case"textarea":c=ut(e,c),l=ut(e,l),d=[];break;default:typeof c.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=ms)}Fn(s,l);var g;s=null;for(D in c)if(!l.hasOwnProperty(D)&&c.hasOwnProperty(D)&&c[D]!=null)if(D==="style"){var S=c[D];for(g in S)S.hasOwnProperty(g)&&(s||(s={}),s[g]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(a.hasOwnProperty(D)?d||(d=[]):(d=d||[]).push(D,null));for(D in l){var x=l[D];if(S=c?.[D],l.hasOwnProperty(D)&&x!==S&&(x!=null||S!=null))if(D==="style")if(S){for(g in S)!S.hasOwnProperty(g)||x&&x.hasOwnProperty(g)||(s||(s={}),s[g]="");for(g in x)x.hasOwnProperty(g)&&S[g]!==x[g]&&(s||(s={}),s[g]=x[g])}else s||(d||(d=[]),d.push(D,s)),s=x;else D==="dangerouslySetInnerHTML"?(x=x?x.__html:void 0,S=S?S.__html:void 0,x!=null&&S!==x&&(d=d||[]).push(D,x)):D==="children"?typeof x!="string"&&typeof x!="number"||(d=d||[]).push(D,""+x):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(a.hasOwnProperty(D)?(x!=null&&D==="onScroll"&&je("scroll",e),d||S===x||(d=[])):(d=d||[]).push(D,x))}s&&(d=d||[]).push("style",s);var D=d;(t.updateQueue=D)&&(t.flags|=4)}},jg=function(e,t,s,l){s!==l&&(t.flags|=4)};function lo(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(t)for(var c=e.child;c!==null;)s|=c.lanes|c.childLanes,l|=c.subtreeFlags&14680064,l|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)s|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=s,t}function OC(e,t,s){var l=t.pendingProps;switch(Dl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(t),null;case 1:return Ct(t.type)&&vs(),pt(t),null;case 3:return l=t.stateNode,oi(),Ae(_t),Ae(ft),Xl(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Cs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tn!==null&&(xu(tn),tn=null))),hu(e,t),pt(t),null;case 5:Ql(t);var c=br(ro.current);if(s=t.type,e!==null&&t.stateNode!=null)Ig(e,t,s,l,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(i(166));return pt(t),null}if(e=br(mn.current),Cs(t)){l=t.stateNode,s=t.type;var d=t.memoizedProps;switch(l[hn]=t,l[Zi]=d,e=(t.mode&1)!==0,s){case"dialog":je("cancel",l),je("close",l);break;case"iframe":case"object":case"embed":je("load",l);break;case"video":case"audio":for(c=0;c<Qi.length;c++)je(Qi[c],l);break;case"source":je("error",l);break;case"img":case"image":case"link":je("error",l),je("load",l);break;case"details":je("toggle",l);break;case"input":Oe(l,d),je("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!d.multiple},je("invalid",l);break;case"textarea":He(l,d),je("invalid",l)}Fn(s,d),c=null;for(var g in d)if(d.hasOwnProperty(g)){var S=d[g];g==="children"?typeof S=="string"?l.textContent!==S&&(d.suppressHydrationWarning!==!0&&hs(l.textContent,S,e),c=["children",S]):typeof S=="number"&&l.textContent!==""+S&&(d.suppressHydrationWarning!==!0&&hs(l.textContent,S,e),c=["children",""+S]):a.hasOwnProperty(g)&&S!=null&&g==="onScroll"&&je("scroll",l)}switch(s){case"input":ot(l),Qt(l,d,!0);break;case"textarea":ot(l),Xt(l);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(l.onclick=ms)}l=c,t.updateQueue=l,l!==null&&(t.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dr(s)),e==="http://www.w3.org/1999/xhtml"?s==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=g.createElement(s,{is:l.is}):(e=g.createElement(s),s==="select"&&(g=e,l.multiple?g.multiple=!0:l.size&&(g.size=l.size))):e=g.createElementNS(e,s),e[hn]=t,e[Zi]=l,Ng(e,t,!1,!1),t.stateNode=e;e:{switch(g=qn(s,l),s){case"dialog":je("cancel",e),je("close",e),c=l;break;case"iframe":case"object":case"embed":je("load",e),c=l;break;case"video":case"audio":for(c=0;c<Qi.length;c++)je(Qi[c],e);c=l;break;case"source":je("error",e),c=l;break;case"img":case"image":case"link":je("error",e),je("load",e),c=l;break;case"details":je("toggle",e),c=l;break;case"input":Oe(e,l),c=fr(e,l),je("invalid",e);break;case"option":c=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},c=E({},l,{value:void 0}),je("invalid",e);break;case"textarea":He(e,l),c=ut(e,l),je("invalid",e);break;default:c=l}Fn(s,c),S=c;for(d in S)if(S.hasOwnProperty(d)){var x=S[d];d==="style"?Tt(e,x):d==="dangerouslySetInnerHTML"?(x=x?x.__html:void 0,x!=null&&fn(e,x)):d==="children"?typeof x=="string"?(s!=="textarea"||x!=="")&&$t(e,x):typeof x=="number"&&$t(e,""+x):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(a.hasOwnProperty(d)?x!=null&&d==="onScroll"&&je("scroll",e):x!=null&&$(e,d,x,g))}switch(s){case"input":ot(e),Qt(e,l,!1);break;case"textarea":ot(e),Xt(e);break;case"option":l.value!=null&&e.setAttribute("value",""+ce(l.value));break;case"select":e.multiple=!!l.multiple,d=l.value,d!=null?Ve(e,!!l.multiple,d,!1):l.defaultValue!=null&&Ve(e,!!l.multiple,l.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=ms)}switch(s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pt(t),null;case 6:if(e&&t.stateNode!=null)jg(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(s=br(ro.current),br(mn.current),Cs(t)){if(l=t.stateNode,s=t.memoizedProps,l[hn]=t,(d=l.nodeValue!==s)&&(e=Nt,e!==null))switch(e.tag){case 3:hs(l.nodeValue,s,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&hs(l.nodeValue,s,(e.mode&1)!==0)}d&&(t.flags|=4)}else l=(s.nodeType===9?s:s.ownerDocument).createTextNode(l),l[hn]=t,t.stateNode=l}return pt(t),null;case 13:if(Ae(Fe),l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(De&&It!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Lm(),ti(),t.flags|=98560,d=!1;else if(d=Cs(t),l!==null&&l.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[hn]=t}else ti(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),d=!1}else tn!==null&&(xu(tn),tn=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=s,t):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Fe.current&1)!==0?Xe===0&&(Xe=3):Tu())),t.updateQueue!==null&&(t.flags|=4),pt(t),null);case 4:return oi(),hu(e,t),e===null&&Yi(t.stateNode.containerInfo),pt(t),null;case 10:return Bl(t.type._context),pt(t),null;case 17:return Ct(t.type)&&vs(),pt(t),null;case 19:if(Ae(Fe),d=t.memoizedState,d===null)return pt(t),null;if(l=(t.flags&128)!==0,g=d.rendering,g===null)if(l)lo(d,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(g=Rs(e),g!==null){for(t.flags|=128,lo(d,!1),l=g.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=s,s=t.child;s!==null;)d=s,e=l,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,e=g.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return Ie(Fe,Fe.current&1|2),t.child}e=e.sibling}d.tail!==null&&We()>ui&&(t.flags|=128,l=!0,lo(d,!1),t.lanes=4194304)}else{if(!l)if(e=Rs(g),e!==null){if(t.flags|=128,l=!0,s=e.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),lo(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!De)return pt(t),null}else 2*We()-d.renderingStartTime>ui&&s!==1073741824&&(t.flags|=128,l=!0,lo(d,!1),t.lanes=4194304);d.isBackwards?(g.sibling=t.child,t.child=g):(s=d.last,s!==null?s.sibling=g:t.child=g,d.last=g)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=We(),t.sibling=null,s=Fe.current,Ie(Fe,l?s&1|2:s&1),t):(pt(t),null);case 22:case 23:return Pu(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&(t.mode&1)!==0?(jt&1073741824)!==0&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function PC(e,t){switch(Dl(t),t.tag){case 1:return Ct(t.type)&&vs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oi(),Ae(_t),Ae(ft),Xl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ql(t),null;case 13:if(Ae(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Fe),null;case 4:return oi(),null;case 10:return Bl(t.type._context),null;case 22:case 23:return Pu(),null;case 24:return null;default:return null}}var Ms=!1,ht=!1,TC=typeof WeakSet=="function"?WeakSet:Set,ee=null;function ai(e,t){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(l){Ue(e,t,l)}else s.current=null}function mu(e,t,s){try{s()}catch(l){Ue(e,t,l)}}var Ag=!1;function RC(e,t){if(Pl=rs,e=fm(),wl(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{s.nodeType,d.nodeType}catch{s=null;break e}var g=0,S=-1,x=-1,D=0,B=0,H=e,z=null;t:for(;;){for(var J;H!==s||c!==0&&H.nodeType!==3||(S=g+c),H!==d||l!==0&&H.nodeType!==3||(x=g+l),H.nodeType===3&&(g+=H.nodeValue.length),(J=H.firstChild)!==null;)z=H,H=J;for(;;){if(H===e)break t;if(z===s&&++D===c&&(S=g),z===d&&++B===l&&(x=g),(J=H.nextSibling)!==null)break;H=z,z=H.parentNode}H=J}s=S===-1||x===-1?null:{start:S,end:x}}else s=null}s=s||{start:0,end:0}}else s=null;for(Tl={focusedElem:e,selectionRange:s},rs=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var ne=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var re=ne.memoizedProps,Ge=ne.memoizedState,k=t.stateNode,O=k.getSnapshotBeforeUpdate(t.elementType===t.type?re:nn(t.type,re),Ge);k.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var j=t.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(V){Ue(t,t.return,V)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return ne=Ag,Ag=!1,ne}function uo(e,t,s){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&e)===e){var d=c.destroy;c.destroy=void 0,d!==void 0&&mu(t,s,d)}c=c.next}while(c!==l)}}function $s(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var s=t=t.next;do{if((s.tag&e)===e){var l=s.create;s.destroy=l()}s=s.next}while(s!==t)}}function gu(e){var t=e.ref;if(t!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof t=="function"?t(e):t.current=e}}function Lg(e){var t=e.alternate;t!==null&&(e.alternate=null,Lg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hn],delete t[Zi],delete t[Il],delete t[fC],delete t[dC])),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 Dg(e){return e.tag===5||e.tag===3||e.tag===4}function Mg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dg(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 vu(e,t,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?s.nodeType===8?s.parentNode.insertBefore(e,t):s.insertBefore(e,t):(s.nodeType===8?(t=s.parentNode,t.insertBefore(e,s)):(t=s,t.appendChild(e)),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=ms));else if(l!==4&&(e=e.child,e!==null))for(vu(e,t,s),e=e.sibling;e!==null;)vu(e,t,s),e=e.sibling}function yu(e,t,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(yu(e,t,s),e=e.sibling;e!==null;)yu(e,t,s),e=e.sibling}var st=null,rn=!1;function Jn(e,t,s){for(s=s.child;s!==null;)$g(e,t,s),s=s.sibling}function $g(e,t,s){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(Xo,s)}catch{}switch(s.tag){case 5:ht||ai(s,t);case 6:var l=st,c=rn;st=null,Jn(e,t,s),st=l,rn=c,st!==null&&(rn?(e=st,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):st.removeChild(s.stateNode));break;case 18:st!==null&&(rn?(e=st,s=s.stateNode,e.nodeType===8?Nl(e.parentNode,s):e.nodeType===1&&Nl(e,s),zi(e)):Nl(st,s.stateNode));break;case 4:l=st,c=rn,st=s.stateNode.containerInfo,rn=!0,Jn(e,t,s),st=l,rn=c;break;case 0:case 11:case 14:case 15:if(!ht&&(l=s.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var d=c,g=d.destroy;d=d.tag,g!==void 0&&((d&2)!==0||(d&4)!==0)&&mu(s,t,g),c=c.next}while(c!==l)}Jn(e,t,s);break;case 1:if(!ht&&(ai(s,t),l=s.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=s.memoizedProps,l.state=s.memoizedState,l.componentWillUnmount()}catch(S){Ue(s,t,S)}Jn(e,t,s);break;case 21:Jn(e,t,s);break;case 22:s.mode&1?(ht=(l=ht)||s.memoizedState!==null,Jn(e,t,s),ht=l):Jn(e,t,s);break;default:Jn(e,t,s)}}function Fg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new TC),t.forEach(function(l){var c=$C.bind(null,e,l);s.has(l)||(s.add(l),l.then(c,c))})}}function on(e,t){var s=t.deletions;if(s!==null)for(var l=0;l<s.length;l++){var c=s[l];try{var d=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 5:st=S.stateNode,rn=!1;break e;case 3:st=S.stateNode.containerInfo,rn=!0;break e;case 4:st=S.stateNode.containerInfo,rn=!0;break e}S=S.return}if(st===null)throw Error(i(160));$g(d,g,c),st=null,rn=!1;var x=c.alternate;x!==null&&(x.return=null),c.return=null}catch(D){Ue(c,t,D)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qg(t,e),t=t.sibling}function qg(e,t){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(on(t,e),vn(e),l&4){try{uo(3,e,e.return),$s(3,e)}catch(re){Ue(e,e.return,re)}try{uo(5,e,e.return)}catch(re){Ue(e,e.return,re)}}break;case 1:on(t,e),vn(e),l&512&&s!==null&&ai(s,s.return);break;case 5:if(on(t,e),vn(e),l&512&&s!==null&&ai(s,s.return),e.flags&32){var c=e.stateNode;try{$t(c,"")}catch(re){Ue(e,e.return,re)}}if(l&4&&(c=e.stateNode,c!=null)){var d=e.memoizedProps,g=s!==null?s.memoizedProps:d,S=e.type,x=e.updateQueue;if(e.updateQueue=null,x!==null)try{S==="input"&&d.type==="radio"&&d.name!=null&&_n(c,d),qn(S,g);var D=qn(S,d);for(g=0;g<x.length;g+=2){var B=x[g],H=x[g+1];B==="style"?Tt(c,H):B==="dangerouslySetInnerHTML"?fn(c,H):B==="children"?$t(c,H):$(c,B,H,D)}switch(S){case"input":_e(c,d);break;case"textarea":Yt(c,d);break;case"select":var z=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var J=d.value;J!=null?Ve(c,!!d.multiple,J,!1):z!==!!d.multiple&&(d.defaultValue!=null?Ve(c,!!d.multiple,d.defaultValue,!0):Ve(c,!!d.multiple,d.multiple?[]:"",!1))}c[Zi]=d}catch(re){Ue(e,e.return,re)}}break;case 6:if(on(t,e),vn(e),l&4){if(e.stateNode===null)throw Error(i(162));c=e.stateNode,d=e.memoizedProps;try{c.nodeValue=d}catch(re){Ue(e,e.return,re)}}break;case 3:if(on(t,e),vn(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{zi(t.containerInfo)}catch(re){Ue(e,e.return,re)}break;case 4:on(t,e),vn(e);break;case 13:on(t,e),vn(e),c=e.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(_u=We())),l&4&&Fg(e);break;case 22:if(B=s!==null&&s.memoizedState!==null,e.mode&1?(ht=(D=ht)||B,on(t,e),ht=D):on(t,e),vn(e),l&8192){if(D=e.memoizedState!==null,(e.stateNode.isHidden=D)&&!B&&(e.mode&1)!==0)for(ee=e,B=e.child;B!==null;){for(H=ee=B;ee!==null;){switch(z=ee,J=z.child,z.tag){case 0:case 11:case 14:case 15:uo(4,z,z.return);break;case 1:ai(z,z.return);var ne=z.stateNode;if(typeof ne.componentWillUnmount=="function"){l=z,s=z.return;try{t=l,ne.props=t.memoizedProps,ne.state=t.memoizedState,ne.componentWillUnmount()}catch(re){Ue(l,s,re)}}break;case 5:ai(z,z.return);break;case 22:if(z.memoizedState!==null){Ug(H);continue}}J!==null?(J.return=z,ee=J):Ug(H)}B=B.sibling}e:for(B=null,H=e;;){if(H.tag===5){if(B===null){B=H;try{c=H.stateNode,D?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(S=H.stateNode,x=H.memoizedProps.style,g=x!=null&&x.hasOwnProperty("display")?x.display:null,S.style.display=yt("display",g))}catch(re){Ue(e,e.return,re)}}}else if(H.tag===6){if(B===null)try{H.stateNode.nodeValue=D?"":H.memoizedProps}catch(re){Ue(e,e.return,re)}}else if((H.tag!==22&&H.tag!==23||H.memoizedState===null||H===e)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===e)break e;for(;H.sibling===null;){if(H.return===null||H.return===e)break e;B===H&&(B=null),H=H.return}B===H&&(B=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:on(t,e),vn(e),l&4&&Fg(e);break;case 21:break;default:on(t,e),vn(e)}}function vn(e){var t=e.flags;if(t&2){try{e:{for(var s=e.return;s!==null;){if(Dg(s)){var l=s;break e}s=s.return}throw Error(i(160))}switch(l.tag){case 5:var c=l.stateNode;l.flags&32&&($t(c,""),l.flags&=-33);var d=Mg(e);yu(e,d,c);break;case 3:case 4:var g=l.stateNode.containerInfo,S=Mg(e);vu(e,S,g);break;default:throw Error(i(161))}}catch(x){Ue(e,e.return,x)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kC(e,t,s){ee=e,zg(e)}function zg(e,t,s){for(var l=(e.mode&1)!==0;ee!==null;){var c=ee,d=c.child;if(c.tag===22&&l){var g=c.memoizedState!==null||Ms;if(!g){var S=c.alternate,x=S!==null&&S.memoizedState!==null||ht;S=Ms;var D=ht;if(Ms=g,(ht=x)&&!D)for(ee=c;ee!==null;)g=ee,x=g.child,g.tag===22&&g.memoizedState!==null?Hg(c):x!==null?(x.return=g,ee=x):Hg(c);for(;d!==null;)ee=d,zg(d),d=d.sibling;ee=c,Ms=S,ht=D}Bg(e)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,ee=d):Bg(e)}}function Bg(e){for(;ee!==null;){var t=ee;if((t.flags&8772)!==0){var s=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ht||$s(5,t);break;case 1:var l=t.stateNode;if(t.flags&4&&!ht)if(s===null)l.componentDidMount();else{var c=t.elementType===t.type?s.memoizedProps:nn(t.type,s.memoizedProps);l.componentDidUpdate(c,s.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&Fm(t,d,l);break;case 3:var g=t.updateQueue;if(g!==null){if(s=null,t.child!==null)switch(t.child.tag){case 5:s=t.child.stateNode;break;case 1:s=t.child.stateNode}Fm(t,g,s)}break;case 5:var S=t.stateNode;if(s===null&&t.flags&4){s=S;var x=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":x.autoFocus&&s.focus();break;case"img":x.src&&(s.src=x.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 B=D.memoizedState;if(B!==null){var H=B.dehydrated;H!==null&&zi(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ht||t.flags&512&&gu(t)}catch(z){Ue(t,t.return,z)}}if(t===e){ee=null;break}if(s=t.sibling,s!==null){s.return=t.return,ee=s;break}ee=t.return}}function Ug(e){for(;ee!==null;){var t=ee;if(t===e){ee=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ee=s;break}ee=t.return}}function Hg(e){for(;ee!==null;){var t=ee;try{switch(t.tag){case 0:case 11:case 15:var s=t.return;try{$s(4,t)}catch(x){Ue(t,s,x)}break;case 1:var l=t.stateNode;if(typeof l.componentDidMount=="function"){var c=t.return;try{l.componentDidMount()}catch(x){Ue(t,c,x)}}var d=t.return;try{gu(t)}catch(x){Ue(t,d,x)}break;case 5:var g=t.return;try{gu(t)}catch(x){Ue(t,g,x)}}}catch(x){Ue(t,t.return,x)}if(t===e){ee=null;break}var S=t.sibling;if(S!==null){S.return=t.return,ee=S;break}ee=t.return}}var NC=Math.ceil,Fs=F.ReactCurrentDispatcher,wu=F.ReactCurrentOwner,Ut=F.ReactCurrentBatchConfig,be=0,Je=null,Ke=null,at=0,jt=0,li=Kn(0),Xe=0,co=null,Or=0,qs=0,Su=0,fo=null,bt=null,_u=0,ui=1/0,Nn=null,zs=!1,Cu=null,er=null,Bs=!1,tr=null,Us=0,po=0,Eu=null,Hs=-1,Ws=0;function St(){return(be&6)!==0?We():Hs!==-1?Hs:Hs=We()}function nr(e){return(e.mode&1)===0?1:(be&2)!==0&&at!==0?at&-at:hC.transition!==null?(Ws===0&&(Ws=Dh()),Ws):(e=Re,e!==0||(e=window.event,e=e===void 0?16:Wh(e.type)),e)}function sn(e,t,s,l){if(50<po)throw po=0,Eu=null,Error(i(185));Di(e,s,l),((be&2)===0||e!==Je)&&(e===Je&&((be&2)===0&&(qs|=s),Xe===4&&rr(e,at)),xt(e,l),s===1&&be===0&&(t.mode&1)===0&&(ui=We()+500,ws&&Yn()))}function xt(e,t){var s=e.callbackNode;h_(e,t);var l=es(e,e===Je?at:0);if(l===0)s!==null&&jh(s),e.callbackNode=null,e.callbackPriority=0;else if(t=l&-l,e.callbackPriority!==t){if(s!=null&&jh(s),t===1)e.tag===0?pC(Gg.bind(null,e)):km(Gg.bind(null,e)),uC(function(){(be&6)===0&&Yn()}),s=null;else{switch(Mh(l)){case 1:s=nl;break;case 4:s=Ah;break;case 16:s=Yo;break;case 536870912:s=Lh;break;default:s=Yo}s=ev(s,Wg.bind(null,e))}e.callbackPriority=t,e.callbackNode=s}}function Wg(e,t){if(Hs=-1,Ws=0,(be&6)!==0)throw Error(i(327));var s=e.callbackNode;if(ci()&&e.callbackNode!==s)return null;var l=es(e,e===Je?at:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||t)t=Gs(e,l);else{t=l;var c=be;be|=2;var d=Kg();(Je!==e||at!==t)&&(Nn=null,ui=We()+500,Tr(e,t));do try{AC();break}catch(S){Vg(e,S)}while(!0);zl(),Fs.current=d,be=c,Ke!==null?t=0:(Je=null,at=0,t=Xe)}if(t!==0){if(t===2&&(c=rl(e),c!==0&&(l=c,t=bu(e,c))),t===1)throw s=co,Tr(e,0),rr(e,l),xt(e,We()),s;if(t===6)rr(e,l);else{if(c=e.current.alternate,(l&30)===0&&!IC(c)&&(t=Gs(e,l),t===2&&(d=rl(e),d!==0&&(l=d,t=bu(e,d))),t===1))throw s=co,Tr(e,0),rr(e,l),xt(e,We()),s;switch(e.finishedWork=c,e.finishedLanes=l,t){case 0:case 1:throw Error(i(345));case 2:Rr(e,bt,Nn);break;case 3:if(rr(e,l),(l&130023424)===l&&(t=_u+500-We(),10<t)){if(es(e,0)!==0)break;if(c=e.suspendedLanes,(c&l)!==l){St(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=kl(Rr.bind(null,e,bt,Nn),t);break}Rr(e,bt,Nn);break;case 4:if(rr(e,l),(l&4194240)===l)break;for(t=e.eventTimes,c=-1;0<l;){var g=31-Jt(l);d=1<<g,g=t[g],g>c&&(c=g),l&=~d}if(l=c,l=We()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*NC(l/1960))-l,10<l){e.timeoutHandle=kl(Rr.bind(null,e,bt,Nn),l);break}Rr(e,bt,Nn);break;case 5:Rr(e,bt,Nn);break;default:throw Error(i(329))}}}return xt(e,We()),e.callbackNode===s?Wg.bind(null,e):null}function bu(e,t){var s=fo;return e.current.memoizedState.isDehydrated&&(Tr(e,t).flags|=256),e=Gs(e,t),e!==2&&(t=bt,bt=s,t!==null&&xu(t)),e}function xu(e){bt===null?bt=e:bt.push.apply(bt,e)}function IC(e){for(var t=e;;){if(t.flags&16384){var s=t.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var l=0;l<s.length;l++){var c=s[l],d=c.getSnapshot;c=c.value;try{if(!en(d(),c))return!1}catch{return!1}}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;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 rr(e,t){for(t&=~Su,t&=~qs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var s=31-Jt(t),l=1<<s;e[s]=-1,t&=~l}}function Gg(e){if((be&6)!==0)throw Error(i(327));ci();var t=es(e,0);if((t&1)===0)return xt(e,We()),null;var s=Gs(e,t);if(e.tag!==0&&s===2){var l=rl(e);l!==0&&(t=l,s=bu(e,l))}if(s===1)throw s=co,Tr(e,0),rr(e,t),xt(e,We()),s;if(s===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Rr(e,bt,Nn),xt(e,We()),null}function Ou(e,t){var s=be;be|=1;try{return e(t)}finally{be=s,be===0&&(ui=We()+500,ws&&Yn())}}function Pr(e){tr!==null&&tr.tag===0&&(be&6)===0&&ci();var t=be;be|=1;var s=Ut.transition,l=Re;try{if(Ut.transition=null,Re=1,e)return e()}finally{Re=l,Ut.transition=s,be=t,(be&6)===0&&Yn()}}function Pu(){jt=li.current,Ae(li)}function Tr(e,t){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;if(s!==-1&&(e.timeoutHandle=-1,lC(s)),Ke!==null)for(s=Ke.return;s!==null;){var l=s;switch(Dl(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&vs();break;case 3:oi(),Ae(_t),Ae(ft),Xl();break;case 5:Ql(l);break;case 4:oi();break;case 13:Ae(Fe);break;case 19:Ae(Fe);break;case 10:Bl(l.type._context);break;case 22:case 23:Pu()}s=s.return}if(Je=e,Ke=e=ir(e.current,null),at=jt=t,Xe=0,co=null,Su=qs=Or=0,bt=fo=null,Er!==null){for(t=0;t<Er.length;t++)if(s=Er[t],l=s.interleaved,l!==null){s.interleaved=null;var c=l.next,d=s.pending;if(d!==null){var g=d.next;d.next=c,l.next=g}s.pending=l}Er=null}return e}function Vg(e,t){do{var s=Ke;try{if(zl(),ks.current=As,Ns){for(var l=qe.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}Ns=!1}if(xr=0,Ze=Ye=qe=null,io=!1,oo=0,wu.current=null,s===null||s.return===null){Xe=1,co=t,Ke=null;break}e:{var d=e,g=s.return,S=s,x=t;if(t=at,S.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){var D=x,B=S,H=B.tag;if((B.mode&1)===0&&(H===0||H===11||H===15)){var z=B.alternate;z?(B.updateQueue=z.updateQueue,B.memoizedState=z.memoizedState,B.lanes=z.lanes):(B.updateQueue=null,B.memoizedState=null)}var J=yg(g);if(J!==null){J.flags&=-257,wg(J,g,S,d,t),J.mode&1&&vg(d,D,t),t=J,x=D;var ne=t.updateQueue;if(ne===null){var re=new Set;re.add(x),t.updateQueue=re}else ne.add(x);break e}else{if((t&1)===0){vg(d,D,t),Tu();break e}x=Error(i(426))}}else if(De&&S.mode&1){var Ge=yg(g);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),wg(Ge,g,S,d,t),Fl(si(x,S));break e}}d=x=si(x,S),Xe!==4&&(Xe=2),fo===null?fo=[d]:fo.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var k=mg(d,x,t);$m(d,k);break e;case 1:S=x;var O=d.type,j=d.stateNode;if((d.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(er===null||!er.has(j)))){d.flags|=65536,t&=-t,d.lanes|=t;var V=gg(d,S,t);$m(d,V);break e}}d=d.return}while(d!==null)}Yg(s)}catch(ie){t=ie,Ke===s&&s!==null&&(Ke=s=s.return);continue}break}while(!0)}function Kg(){var e=Fs.current;return Fs.current=As,e===null?As:e}function Tu(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),Je===null||(Or&268435455)===0&&(qs&268435455)===0||rr(Je,at)}function Gs(e,t){var s=be;be|=2;var l=Kg();(Je!==e||at!==t)&&(Nn=null,Tr(e,t));do try{jC();break}catch(c){Vg(e,c)}while(!0);if(zl(),be=s,Fs.current=l,Ke!==null)throw Error(i(261));return Je=null,at=0,Xe}function jC(){for(;Ke!==null;)Qg(Ke)}function AC(){for(;Ke!==null&&!o_();)Qg(Ke)}function Qg(e){var t=Jg(e.alternate,e,jt);e.memoizedProps=e.pendingProps,t===null?Yg(e):Ke=t,wu.current=null}function Yg(e){var t=e;do{var s=t.alternate;if(e=t.return,(t.flags&32768)===0){if(s=OC(s,t,jt),s!==null){Ke=s;return}}else{if(s=PC(s,t),s!==null){s.flags&=32767,Ke=s;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,Ke=null;return}}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Xe===0&&(Xe=5)}function Rr(e,t,s){var l=Re,c=Ut.transition;try{Ut.transition=null,Re=1,LC(e,t,s,l)}finally{Ut.transition=c,Re=l}return null}function LC(e,t,s,l){do ci();while(tr!==null);if((be&6)!==0)throw Error(i(327));s=e.finishedWork;var c=e.finishedLanes;if(s===null)return null;if(e.finishedWork=null,e.finishedLanes=0,s===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var d=s.lanes|s.childLanes;if(m_(e,d),e===Je&&(Ke=Je=null,at=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||Bs||(Bs=!0,ev(Yo,function(){return ci(),null})),d=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||d){d=Ut.transition,Ut.transition=null;var g=Re;Re=1;var S=be;be|=4,wu.current=null,RC(e,s),qg(s,e),tC(Tl),rs=!!Pl,Tl=Pl=null,e.current=s,kC(s),s_(),be=S,Re=g,Ut.transition=d}else e.current=s;if(Bs&&(Bs=!1,tr=e,Us=c),d=e.pendingLanes,d===0&&(er=null),u_(s.stateNode),xt(e,We()),t!==null)for(l=e.onRecoverableError,s=0;s<t.length;s++)c=t[s],l(c.value,{componentStack:c.stack,digest:c.digest});if(zs)throw zs=!1,e=Cu,Cu=null,e;return(Us&1)!==0&&e.tag!==0&&ci(),d=e.pendingLanes,(d&1)!==0?e===Eu?po++:(po=0,Eu=e):po=0,Yn(),null}function ci(){if(tr!==null){var e=Mh(Us),t=Ut.transition,s=Re;try{if(Ut.transition=null,Re=16>e?16:e,tr===null)var l=!1;else{if(e=tr,tr=null,Us=0,(be&6)!==0)throw Error(i(331));var c=be;for(be|=4,ee=e.current;ee!==null;){var d=ee,g=d.child;if((ee.flags&16)!==0){var S=d.deletions;if(S!==null){for(var x=0;x<S.length;x++){var D=S[x];for(ee=D;ee!==null;){var B=ee;switch(B.tag){case 0:case 11:case 15:uo(8,B,d)}var H=B.child;if(H!==null)H.return=B,ee=H;else for(;ee!==null;){B=ee;var z=B.sibling,J=B.return;if(Lg(B),B===D){ee=null;break}if(z!==null){z.return=J,ee=z;break}ee=J}}}var ne=d.alternate;if(ne!==null){var re=ne.child;if(re!==null){ne.child=null;do{var Ge=re.sibling;re.sibling=null,re=Ge}while(re!==null)}}ee=d}}if((d.subtreeFlags&2064)!==0&&g!==null)g.return=d,ee=g;else e:for(;ee!==null;){if(d=ee,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:uo(9,d,d.return)}var k=d.sibling;if(k!==null){k.return=d.return,ee=k;break e}ee=d.return}}var O=e.current;for(ee=O;ee!==null;){g=ee;var j=g.child;if((g.subtreeFlags&2064)!==0&&j!==null)j.return=g,ee=j;else e:for(g=O;ee!==null;){if(S=ee,(S.flags&2048)!==0)try{switch(S.tag){case 0:case 11:case 15:$s(9,S)}}catch(ie){Ue(S,S.return,ie)}if(S===g){ee=null;break e}var V=S.sibling;if(V!==null){V.return=S.return,ee=V;break e}ee=S.return}}if(be=c,Yn(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(Xo,e)}catch{}l=!0}return l}finally{Re=s,Ut.transition=t}}return!1}function Xg(e,t,s){t=si(s,t),t=mg(e,t,1),e=Zn(e,t,1),t=St(),e!==null&&(Di(e,1,t),xt(e,t))}function Ue(e,t,s){if(e.tag===3)Xg(e,e,s);else for(;t!==null;){if(t.tag===3){Xg(t,e,s);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(er===null||!er.has(l))){e=si(s,e),e=gg(t,e,1),t=Zn(t,e,1),e=St(),t!==null&&(Di(t,1,e),xt(t,e));break}}t=t.return}}function DC(e,t,s){var l=e.pingCache;l!==null&&l.delete(t),t=St(),e.pingedLanes|=e.suspendedLanes&s,Je===e&&(at&s)===s&&(Xe===4||Xe===3&&(at&130023424)===at&&500>We()-_u?Tr(e,0):Su|=s),xt(e,t)}function Zg(e,t){t===0&&((e.mode&1)===0?t=1:(t=Jo,Jo<<=1,(Jo&130023424)===0&&(Jo=4194304)));var s=St();e=Tn(e,t),e!==null&&(Di(e,t,s),xt(e,s))}function MC(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),Zg(e,s)}function $C(e,t){var s=0;switch(e.tag){case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(t),Zg(e,s)}var Jg;Jg=function(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)Et=!0;else{if((e.lanes&s)===0&&(t.flags&128)===0)return Et=!1,xC(e,t,s);Et=(e.flags&131072)!==0}else Et=!1,De&&(t.flags&1048576)!==0&&Nm(t,_s,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;Ds(e,t),e=t.pendingProps;var c=Zr(t,ft.current);ri(t,s),c=eu(null,t,l,e,c,s);var d=tu();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ct(l)?(d=!0,ys(t)):d=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Wl(t),c.updater=Ps,t.stateNode=c,c._reactInternals=t,Vl(t,l,e,s),t=uu(null,t,l,!0,d,s)):(t.tag=0,De&&d&&Ll(t),wt(null,t,c,s),t=t.child),t;case 16:l=t.elementType;e:{switch(Ds(e,t),e=t.pendingProps,c=l._init,l=c(l._payload),t.type=l,c=t.tag=qC(l),e=nn(l,e),c){case 0:t=lu(null,t,l,e,s);break e;case 1:t=xg(null,t,l,e,s);break e;case 11:t=Sg(null,t,l,e,s);break e;case 14:t=_g(null,t,l,nn(l.type,e),s);break e}throw Error(i(306,l,""))}return t;case 0:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:nn(l,c),lu(e,t,l,c,s);case 1:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:nn(l,c),xg(e,t,l,c,s);case 3:e:{if(Og(t),e===null)throw Error(i(387));l=t.pendingProps,d=t.memoizedState,c=d.element,Mm(e,t),Os(t,l,null,s);var g=t.memoizedState;if(l=g.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){c=si(Error(i(423)),t),t=Pg(e,t,l,s,c);break e}else if(l!==c){c=si(Error(i(424)),t),t=Pg(e,t,l,s,c);break e}else for(It=Vn(t.stateNode.containerInfo.firstChild),Nt=t,De=!0,tn=null,s=Gm(t,null,l,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ti(),l===c){t=kn(e,t,s);break e}wt(e,t,l,s)}t=t.child}return t;case 5:return Vm(t),e===null&&$l(t),l=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,g=c.children,Rl(l,c)?g=null:d!==null&&Rl(l,d)&&(t.flags|=32),bg(e,t),wt(e,t,g,s),t.child;case 6:return e===null&&$l(t),null;case 13:return Tg(e,t,s);case 4:return Kl(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ii(t,null,l,s):wt(e,t,l,s),t.child;case 11:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:nn(l,c),Sg(e,t,l,c,s);case 7:return wt(e,t,t.pendingProps,s),t.child;case 8:return wt(e,t,t.pendingProps.children,s),t.child;case 12:return wt(e,t,t.pendingProps.children,s),t.child;case 10:e:{if(l=t.type._context,c=t.pendingProps,d=t.memoizedProps,g=c.value,Ie(Es,l._currentValue),l._currentValue=g,d!==null)if(en(d.value,g)){if(d.children===c.children&&!_t.current){t=kn(e,t,s);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var S=d.dependencies;if(S!==null){g=d.child;for(var x=S.firstContext;x!==null;){if(x.context===l){if(d.tag===1){x=Rn(-1,s&-s),x.tag=2;var D=d.updateQueue;if(D!==null){D=D.shared;var B=D.pending;B===null?x.next=x:(x.next=B.next,B.next=x),D.pending=x}}d.lanes|=s,x=d.alternate,x!==null&&(x.lanes|=s),Ul(d.return,s,t),S.lanes|=s;break}x=x.next}}else if(d.tag===10)g=d.type===t.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(i(341));g.lanes|=s,S=g.alternate,S!==null&&(S.lanes|=s),Ul(g,s,t),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===t){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}wt(e,t,c.children,s),t=t.child}return t;case 9:return c=t.type,l=t.pendingProps.children,ri(t,s),c=zt(c),l=l(c),t.flags|=1,wt(e,t,l,s),t.child;case 14:return l=t.type,c=nn(l,t.pendingProps),c=nn(l.type,c),_g(e,t,l,c,s);case 15:return Cg(e,t,t.type,t.pendingProps,s);case 17:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:nn(l,c),Ds(e,t),t.tag=1,Ct(l)?(e=!0,ys(t)):e=!1,ri(t,s),Bm(t,l,c),Vl(t,l,c,s),uu(null,t,l,!0,e,s);case 19:return kg(e,t,s);case 22:return Eg(e,t,s)}throw Error(i(156,t.tag))};function ev(e,t){return Ih(e,t)}function FC(e,t,s,l){this.tag=e,this.key=s,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,s,l){return new FC(e,t,s,l)}function Ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qC(e){if(typeof e=="function")return Ru(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oe)return 11;if(e===Pe)return 14}return 2}function ir(e,t){var s=e.alternate;return s===null?(s=Ht(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function Vs(e,t,s,l,c,d){var g=2;if(l=e,typeof e=="function")Ru(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case A:return kr(s.children,c,d,t);case W:g=8,c|=8;break;case K:return e=Ht(12,s,t,c|2),e.elementType=K,e.lanes=d,e;case te:return e=Ht(13,s,t,c),e.elementType=te,e.lanes=d,e;case ve:return e=Ht(19,s,t,c),e.elementType=ve,e.lanes=d,e;case ye:return Ks(s,c,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:g=10;break e;case Q:g=9;break e;case oe:g=11;break e;case Pe:g=14;break e;case Ee:g=16,l=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ht(g,s,t,c),t.elementType=e,t.type=l,t.lanes=d,t}function kr(e,t,s,l){return e=Ht(7,e,l,t),e.lanes=s,e}function Ks(e,t,s,l){return e=Ht(22,e,l,t),e.elementType=ye,e.lanes=s,e.stateNode={isHidden:!1},e}function ku(e,t,s){return e=Ht(6,e,null,t),e.lanes=s,e}function Nu(e,t,s){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zC(e,t,s,l,c){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=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Iu(e,t,s,l,c,d,g,S,x){return e=new zC(e,t,s,S,x),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Ht(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:l,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wl(d),e}function BC(e,t,s){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:l==null?null:""+l,children:e,containerInfo:t,implementation:s}}function tv(e){if(!e)return Qn;e=e._reactInternals;e:{if(yr(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ct(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var s=e.type;if(Ct(s))return Tm(e,s,t)}return t}function nv(e,t,s,l,c,d,g,S,x){return e=Iu(s,l,!0,e,c,d,g,S,x),e.context=tv(null),s=e.current,l=St(),c=nr(s),d=Rn(l,c),d.callback=t??null,Zn(s,d,c),e.current.lanes=c,Di(e,c,l),xt(e,l),e}function Qs(e,t,s,l){var c=t.current,d=St(),g=nr(c);return s=tv(s),t.context===null?t.context=s:t.pendingContext=s,t=Rn(d,g),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),e=Zn(c,t,g),e!==null&&(sn(e,c,g,d),xs(e,c,g)),g}function Ys(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 rv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function ju(e,t){rv(e,t),(e=e.alternate)&&rv(e,t)}function UC(){return null}var iv=typeof reportError=="function"?reportError:function(e){console.error(e)};function Au(e){this._internalRoot=e}Xs.prototype.render=Au.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Qs(e,t,null,null)},Xs.prototype.unmount=Au.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pr(function(){Qs(null,e,null,null)}),t[bn]=null}};function Xs(e){this._internalRoot=e}Xs.prototype.unstable_scheduleHydration=function(e){if(e){var t=qh();e={blockedOn:null,target:e,priority:t};for(var s=0;s<Hn.length&&t!==0&&t<Hn[s].priority;s++);Hn.splice(s,0,e),s===0&&Uh(e)}};function Lu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ov(){}function HC(e,t,s,l,c){if(c){if(typeof l=="function"){var d=l;l=function(){var D=Ys(g);d.call(D)}}var g=nv(t,l,e,0,null,!1,!1,"",ov);return e._reactRootContainer=g,e[bn]=g.current,Yi(e.nodeType===8?e.parentNode:e),Pr(),g}for(;c=e.lastChild;)e.removeChild(c);if(typeof l=="function"){var S=l;l=function(){var D=Ys(x);S.call(D)}}var x=Iu(e,0,!1,null,null,!1,!1,"",ov);return e._reactRootContainer=x,e[bn]=x.current,Yi(e.nodeType===8?e.parentNode:e),Pr(function(){Qs(t,x,s,l)}),x}function Js(e,t,s,l,c){var d=s._reactRootContainer;if(d){var g=d;if(typeof c=="function"){var S=c;c=function(){var x=Ys(g);S.call(x)}}Qs(t,g,e,c)}else g=HC(s,t,e,c,l);return Ys(g)}$h=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var s=Li(t.pendingLanes);s!==0&&(ol(t,s|1),xt(t,We()),(be&6)===0&&(ui=We()+500,Yn()))}break;case 13:Pr(function(){var l=Tn(e,1);if(l!==null){var c=St();sn(l,e,1,c)}}),ju(e,1)}},sl=function(e){if(e.tag===13){var t=Tn(e,134217728);if(t!==null){var s=St();sn(t,e,134217728,s)}ju(e,134217728)}},Fh=function(e){if(e.tag===13){var t=nr(e),s=Tn(e,t);if(s!==null){var l=St();sn(s,e,t,l)}ju(e,t)}},qh=function(){return Re},zh=function(e,t){var s=Re;try{return Re=e,t()}finally{Re=s}},mr=function(e,t,s){switch(t){case"input":if(_e(e,s),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<s.length;t++){var l=s[t];if(l!==e&&l.form===e.form){var c=gs(l);if(!c)throw Error(i(90));vt(l),_e(l,c)}}}break;case"textarea":Yt(e,s);break;case"select":t=s.value,t!=null&&Ve(e,!!s.multiple,t,!1)}},ki=Ou,Ni=Pr;var WC={usingClientEntryPoint:!1,Events:[Ji,Yr,gs,En,vr,Ou]},ho={findFiberByHostInstance:wr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},GC={bundleType:ho.bundleType,version:ho.version,rendererPackageName:ho.rendererPackageName,rendererConfig:ho.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=kh(e),e===null?null:e.stateNode},findFiberByHostInstance:ho.findFiberByHostInstance||UC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ea=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ea.isDisabled&&ea.supportsFiber)try{Xo=ea.inject(GC),pn=ea}catch{}}return Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=WC,Ot.createPortal=function(e,t){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Lu(t))throw Error(i(200));return BC(e,t,null,s)},Ot.createRoot=function(e,t){if(!Lu(e))throw Error(i(299));var s=!1,l="",c=iv;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Iu(e,1,!1,null,null,s,!1,l,c),e[bn]=t.current,Yi(e.nodeType===8?e.parentNode:e),new Au(t)},Ot.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(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=kh(t),e=e===null?null:e.stateNode,e},Ot.flushSync=function(e){return Pr(e)},Ot.hydrate=function(e,t,s){if(!Zs(t))throw Error(i(200));return Js(null,e,t,!0,s)},Ot.hydrateRoot=function(e,t,s){if(!Lu(e))throw Error(i(405));var l=s!=null&&s.hydratedSources||null,c=!1,d="",g=iv;if(s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onRecoverableError!==void 0&&(g=s.onRecoverableError)),t=nv(t,null,e,1,s??null,c,!1,d,g),e[bn]=t.current,Yi(e),l)for(e=0;e<l.length;e++)s=l[e],c=s._getVersion,c=c(s._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[s,c]:t.mutableSourceEagerHydrationData.push(s,c);return new Xs(t)},Ot.render=function(e,t,s){if(!Zs(t))throw Error(i(200));return Js(null,e,t,!1,s)},Ot.unmountComponentAtNode=function(e){if(!Zs(e))throw Error(i(40));return e._reactRootContainer?(Pr(function(){Js(null,null,e,!1,function(){e._reactRootContainer=null,e[bn]=null})}),!0):!1},Ot.unstable_batchedUpdates=Ou,Ot.unstable_renderSubtreeIntoContainer=function(e,t,s,l){if(!Zs(s))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Js(e,t,s,!1,l)},Ot.version="18.2.0-next-9e3b772b8-20220608",Ot}var pv;function vw(){if(pv)return $u.exports;pv=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),$u.exports=JC(),$u.exports}var hv;function eE(){if(hv)return na;hv=1;var r=vw();return na.createRoot=r.createRoot,na.hydrateRoot=r.hydrateRoot,na}var tE=eE(),zu,mv;function nE(){if(mv)return zu;mv=1;function r(){}return zu=r,zu}var rE=nE();const ze=it(rE);var Bu,gv;function Vt(){if(gv)return Bu;gv=1;var r=Array.isArray;return Bu=r,Bu}var Uu,vv;function yw(){if(vv)return Uu;vv=1;var r=typeof ta=="object"&&ta&&ta.Object===Object&&ta;return Uu=r,Uu}var Hu,yv;function un(){if(yv)return Hu;yv=1;var r=yw(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=r||n||Function("return this")();return Hu=i,Hu}var Wu,wv;function Ci(){if(wv)return Wu;wv=1;var r=un(),n=r.Symbol;return Wu=n,Wu}var Gu,Sv;function iE(){if(Sv)return Gu;Sv=1;var r=Ci(),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;function u(f){var p=i.call(f,a),h=f[a];try{f[a]=void 0;var m=!0}catch{}var v=o.call(f);return m&&(p?f[a]=h:delete f[a]),v}return Gu=u,Gu}var Vu,_v;function oE(){if(_v)return Vu;_v=1;var r=Object.prototype,n=r.toString;function i(o){return n.call(o)}return Vu=i,Vu}var Ku,Cv;function ur(){if(Cv)return Ku;Cv=1;var r=Ci(),n=iE(),i=oE(),o="[object Null]",a="[object Undefined]",u=r?r.toStringTag:void 0;function f(p){return p==null?p===void 0?a:o:u&&u in Object(p)?n(p):i(p)}return Ku=f,Ku}var Qu,Ev;function cn(){if(Ev)return Qu;Ev=1;function r(n){return n!=null&&typeof n=="object"}return Qu=r,Qu}var Yu,bv;function Oa(){if(bv)return Yu;bv=1;var r=ur(),n=cn(),i="[object Symbol]";function o(a){return typeof a=="symbol"||n(a)&&r(a)==i}return Yu=o,Yu}var Xu,xv;function sE(){if(xv)return Xu;xv=1;var r=Vt(),n=Oa(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function a(u,f){if(r(u))return!1;var p=typeof u;return p=="number"||p=="symbol"||p=="boolean"||u==null||n(u)?!0:o.test(u)||!i.test(u)||f!=null&&u in Object(f)}return Xu=a,Xu}var Zu,Ov;function Kt(){if(Ov)return Zu;Ov=1;function r(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return Zu=r,Zu}var Ju,Pv;function Pa(){if(Pv)return Ju;Pv=1;var r=ur(),n=Kt(),i="[object AsyncFunction]",o="[object Function]",a="[object GeneratorFunction]",u="[object Proxy]";function f(p){if(!n(p))return!1;var h=r(p);return h==o||h==a||h==i||h==u}return Ju=f,Ju}var ec,Tv;function aE(){if(Tv)return ec;Tv=1;var r=un(),n=r["__core-js_shared__"];return ec=n,ec}var tc,Rv;function lE(){if(Rv)return tc;Rv=1;var r=aE(),n=(function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function i(o){return!!n&&n in o}return tc=i,tc}var nc,kv;function ww(){if(kv)return nc;kv=1;var r=Function.prototype,n=r.toString;function i(o){if(o!=null){try{return n.call(o)}catch{}try{return o+""}catch{}}return""}return nc=i,nc}var rc,Nv;function uE(){if(Nv)return rc;Nv=1;var r=Pa(),n=lE(),i=Kt(),o=ww(),a=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,h=f.toString,m=p.hasOwnProperty,v=RegExp("^"+h.call(m).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w(C){if(!i(C)||n(C))return!1;var _=r(C)?v:u;return _.test(o(C))}return rc=w,rc}var ic,Iv;function cE(){if(Iv)return ic;Iv=1;function r(n,i){return n?.[i]}return ic=r,ic}var oc,jv;function Fr(){if(jv)return oc;jv=1;var r=uE(),n=cE();function i(o,a){var u=n(o,a);return r(u)?u:void 0}return oc=i,oc}var sc,Av;function Ta(){if(Av)return sc;Av=1;var r=Fr(),n=r(Object,"create");return sc=n,sc}var ac,Lv;function fE(){if(Lv)return ac;Lv=1;var r=Ta();function n(){this.__data__=r?r(null):{},this.size=0}return ac=n,ac}var lc,Dv;function dE(){if(Dv)return lc;Dv=1;function r(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}return lc=r,lc}var uc,Mv;function pE(){if(Mv)return uc;Mv=1;var r=Ta(),n="__lodash_hash_undefined__",i=Object.prototype,o=i.hasOwnProperty;function a(u){var f=this.__data__;if(r){var p=f[u];return p===n?void 0:p}return o.call(f,u)?f[u]:void 0}return uc=a,uc}var cc,$v;function hE(){if($v)return cc;$v=1;var r=Ta(),n=Object.prototype,i=n.hasOwnProperty;function o(a){var u=this.__data__;return r?u[a]!==void 0:i.call(u,a)}return cc=o,cc}var fc,Fv;function mE(){if(Fv)return fc;Fv=1;var r=Ta(),n="__lodash_hash_undefined__";function i(o,a){var u=this.__data__;return this.size+=this.has(o)?0:1,u[o]=r&&a===void 0?n:a,this}return fc=i,fc}var dc,qv;function gE(){if(qv)return dc;qv=1;var r=fE(),n=dE(),i=pE(),o=hE(),a=mE();function u(f){var p=-1,h=f==null?0:f.length;for(this.clear();++p<h;){var m=f[p];this.set(m[0],m[1])}}return u.prototype.clear=r,u.prototype.delete=n,u.prototype.get=i,u.prototype.has=o,u.prototype.set=a,dc=u,dc}var pc,zv;function vE(){if(zv)return pc;zv=1;function r(){this.__data__=[],this.size=0}return pc=r,pc}var hc,Bv;function Ao(){if(Bv)return hc;Bv=1;function r(n,i){return n===i||n!==n&&i!==i}return hc=r,hc}var mc,Uv;function Ra(){if(Uv)return mc;Uv=1;var r=Ao();function n(i,o){for(var a=i.length;a--;)if(r(i[a][0],o))return a;return-1}return mc=n,mc}var gc,Hv;function yE(){if(Hv)return gc;Hv=1;var r=Ra(),n=Array.prototype,i=n.splice;function o(a){var u=this.__data__,f=r(u,a);if(f<0)return!1;var p=u.length-1;return f==p?u.pop():i.call(u,f,1),--this.size,!0}return gc=o,gc}var vc,Wv;function wE(){if(Wv)return vc;Wv=1;var r=Ra();function n(i){var o=this.__data__,a=r(o,i);return a<0?void 0:o[a][1]}return vc=n,vc}var yc,Gv;function SE(){if(Gv)return yc;Gv=1;var r=Ra();function n(i){return r(this.__data__,i)>-1}return yc=n,yc}var wc,Vv;function _E(){if(Vv)return wc;Vv=1;var r=Ra();function n(i,o){var a=this.__data__,u=r(a,i);return u<0?(++this.size,a.push([i,o])):a[u][1]=o,this}return wc=n,wc}var Sc,Kv;function ka(){if(Kv)return Sc;Kv=1;var r=vE(),n=yE(),i=wE(),o=SE(),a=_E();function u(f){var p=-1,h=f==null?0:f.length;for(this.clear();++p<h;){var m=f[p];this.set(m[0],m[1])}}return u.prototype.clear=r,u.prototype.delete=n,u.prototype.get=i,u.prototype.has=o,u.prototype.set=a,Sc=u,Sc}var _c,Qv;function qp(){if(Qv)return _c;Qv=1;var r=Fr(),n=un(),i=r(n,"Map");return _c=i,_c}var Cc,Yv;function CE(){if(Yv)return Cc;Yv=1;var r=gE(),n=ka(),i=qp();function o(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}return Cc=o,Cc}var Ec,Xv;function EE(){if(Xv)return Ec;Xv=1;function r(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}return Ec=r,Ec}var bc,Zv;function Na(){if(Zv)return bc;Zv=1;var r=EE();function n(i,o){var a=i.__data__;return r(o)?a[typeof o=="string"?"string":"hash"]:a.map}return bc=n,bc}var xc,Jv;function bE(){if(Jv)return xc;Jv=1;var r=Na();function n(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}return xc=n,xc}var Oc,ey;function xE(){if(ey)return Oc;ey=1;var r=Na();function n(i){return r(this,i).get(i)}return Oc=n,Oc}var Pc,ty;function OE(){if(ty)return Pc;ty=1;var r=Na();function n(i){return r(this,i).has(i)}return Pc=n,Pc}var Tc,ny;function PE(){if(ny)return Tc;ny=1;var r=Na();function n(i,o){var a=r(this,i),u=a.size;return a.set(i,o),this.size+=a.size==u?0:1,this}return Tc=n,Tc}var Rc,ry;function zp(){if(ry)return Rc;ry=1;var r=CE(),n=bE(),i=xE(),o=OE(),a=PE();function u(f){var p=-1,h=f==null?0:f.length;for(this.clear();++p<h;){var m=f[p];this.set(m[0],m[1])}}return u.prototype.clear=r,u.prototype.delete=n,u.prototype.get=i,u.prototype.has=o,u.prototype.set=a,Rc=u,Rc}var kc,iy;function TE(){if(iy)return kc;iy=1;var r=zp(),n="Expected a function";function i(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new TypeError(n);var u=function(){var f=arguments,p=a?a.apply(this,f):f[0],h=u.cache;if(h.has(p))return h.get(p);var m=o.apply(this,f);return u.cache=h.set(p,m)||h,m};return u.cache=new(i.Cache||r),u}return i.Cache=r,kc=i,kc}var Nc,oy;function RE(){if(oy)return Nc;oy=1;var r=TE(),n=500;function i(o){var a=r(o,function(f){return u.size===n&&u.clear(),f}),u=a.cache;return a}return Nc=i,Nc}var Ic,sy;function kE(){if(sy)return Ic;sy=1;var r=RE(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=r(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(n,function(f,p,h,m){u.push(h?m.replace(i,"$1"):p||f)}),u});return Ic=o,Ic}var jc,ay;function Sw(){if(ay)return jc;ay=1;function r(n,i){for(var o=-1,a=n==null?0:n.length,u=Array(a);++o<a;)u[o]=i(n[o],o,n);return u}return jc=r,jc}var Ac,ly;function NE(){if(ly)return Ac;ly=1;var r=Ci(),n=Sw(),i=Vt(),o=Oa(),a=r?r.prototype:void 0,u=a?a.toString:void 0;function f(p){if(typeof p=="string")return p;if(i(p))return n(p,f)+"";if(o(p))return u?u.call(p):"";var h=p+"";return h=="0"&&1/p==-1/0?"-0":h}return Ac=f,Ac}var Lc,uy;function IE(){if(uy)return Lc;uy=1;var r=NE();function n(i){return i==null?"":r(i)}return Lc=n,Lc}var Dc,cy;function Ia(){if(cy)return Dc;cy=1;var r=Vt(),n=sE(),i=kE(),o=IE();function a(u,f){return r(u)?u:n(u,f)?[u]:i(o(u))}return Dc=a,Dc}var Mc,fy;function Bp(){if(fy)return Mc;fy=1;var r=Oa();function n(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}return Mc=n,Mc}var $c,dy;function _w(){if(dy)return $c;dy=1;var r=Ia(),n=Bp();function i(o,a){a=r(a,o);for(var u=0,f=a.length;o!=null&&u<f;)o=o[n(a[u++])];return u&&u==f?o:void 0}return $c=i,$c}var Fc,py;function jE(){if(py)return Fc;py=1;var r=_w();function n(i,o,a){var u=i==null?void 0:r(i,o);return u===void 0?a:u}return Fc=n,Fc}var AE=jE();const ke=it(AE),Cw=function(r){if(ke(process,"env.NODE_ENV")==="development"){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console.log(r,...i)}};class Lo{static get cssClasses(){return{}}static get strings(){return{}}static get numbers(){return{}}static get defaultAdapter(){return{getProp:ze,getProps:ze,getState:ze,getStates:ze,setState:ze,getContext:ze,getContexts:ze,getCache:ze,setCache:ze,getCaches:ze,stopPropagation:ze,persistEvent:ze}}constructor(n){this._adapter=Object.assign(Object.assign({},Lo.defaultAdapter),n)}getProp(n){return this._adapter.getProp(n)}getProps(){return this._adapter.getProps()}getState(n){return this._adapter.getState(n)}getStates(){return this._adapter.getStates()}setState(n,i){return this._adapter.setState(Object.assign({},n),i)}getContext(n){return this._adapter.getContext(n)}getContexts(){return this._adapter.getContexts()}getCaches(){return this._adapter.getCaches()}getCache(n){return this._adapter.getCache(n)}setCache(n,i){return n&&this._adapter.setCache(n,i)}stopPropagation(n){this._adapter.stopPropagation(n)}_isControlledComponent(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"value";const i=this.getProps();return n in i}_isInProps(n){const i=this.getProps();return n in i}init(n){}destroy(){}log(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];Cw(n,...o)}_persistEvent(n){this._adapter.persistEvent(n)}}var R=Fp();const L=it(R);function LE(r){return Object.keys(r).reduce((n,i)=>(i.substr(0,5)==="data-"&&(n[i]=r[i]),n),{})}const{hasOwnProperty:DE}=Object.prototype;class Ei extends R.Component{constructor(n){super(n),this.isControlled=i=>!!(i&&this.props&&typeof this.props=="object"&&DE.call(this.props,i)),this.setStateAsync=i=>new Promise(o=>{this.setState(i,o)}),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:n=>{if(this.context&&n)return this.context[n]},getContexts:()=>this.context,getProp:n=>this.props[n],getProps:()=>this.props,getState:n=>this.state[n],getStates:()=>this.state,setState:(n,i)=>this.setState(Object.assign({},n),i),getCache:n=>n&&this.cache[n],getCaches:()=>this.cache,setCache:(n,i)=>n&&(this.cache[n]=i),stopPropagation:n=>{try{n.stopPropagation(),n.nativeEvent&&n.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:n=>{n&&n.persist&&typeof n.persist=="function"&&n.persist()}}}log(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return Cw(n,...o)}getDataAttr(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return LE(n)}}Ei.propTypes={};Ei.defaultProps={};var qc,hy;function ME(){if(hy)return qc;hy=1;var r=un(),n=function(){return r.Date.now()};return qc=n,qc}var zc,my;function $E(){if(my)return zc;my=1;var r=/\s/;function n(i){for(var o=i.length;o--&&r.test(i.charAt(o)););return o}return zc=n,zc}var Bc,gy;function FE(){if(gy)return Bc;gy=1;var r=$E(),n=/^\s+/;function i(o){return o&&o.slice(0,r(o)+1).replace(n,"")}return Bc=i,Bc}var Uc,vy;function qE(){if(vy)return Uc;vy=1;var r=FE(),n=Kt(),i=Oa(),o=NaN,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;function h(m){if(typeof m=="number")return m;if(i(m))return o;if(n(m)){var v=typeof m.valueOf=="function"?m.valueOf():m;m=n(v)?v+"":v}if(typeof m!="string")return m===0?m:+m;m=r(m);var w=u.test(m);return w||f.test(m)?p(m.slice(2),w?2:8):a.test(m)?o:+m}return Uc=h,Uc}var Hc,yy;function zE(){if(yy)return Hc;yy=1;var r=Kt(),n=ME(),i=qE(),o="Expected a function",a=Math.max,u=Math.min;function f(p,h,m){var v,w,C,_,T,P,b=0,N=!1,I=!1,$=!0;if(typeof p!="function")throw new TypeError(o);h=i(h)||0,r(m)&&(N=!!m.leading,I="maxWait"in m,C=I?a(i(m.maxWait)||0,h):C,$="trailing"in m?!!m.trailing:$);function F(te){var ve=v,Pe=w;return v=w=void 0,b=te,_=p.apply(Pe,ve),_}function U(te){return b=te,T=setTimeout(W,h),N?F(te):_}function M(te){var ve=te-P,Pe=te-b,Ee=h-ve;return I?u(Ee,C-Pe):Ee}function A(te){var ve=te-P,Pe=te-b;return P===void 0||ve>=h||ve<0||I&&Pe>=C}function W(){var te=n();if(A(te))return K(te);T=setTimeout(W,M(te))}function K(te){return T=void 0,$&&v?F(te):(v=w=void 0,_)}function Z(){T!==void 0&&clearTimeout(T),b=0,v=P=w=T=void 0}function Q(){return T===void 0?_:K(n())}function oe(){var te=n(),ve=A(te);if(v=arguments,w=this,P=te,ve){if(T===void 0)return U(P);if(I)return clearTimeout(T),T=setTimeout(W,h),F(P)}return T===void 0&&(T=setTimeout(W,h)),_}return oe.cancel=Z,oe.flush=Q,oe}return Hc=f,Hc}var Wc,wy;function BE(){if(wy)return Wc;wy=1;var r=zE(),n=Kt(),i="Expected a function";function o(a,u,f){var p=!0,h=!0;if(typeof a!="function")throw new TypeError(i);return n(f)&&(p="leading"in f?!!f.leading:p,h="trailing"in f?!!f.trailing:h),r(a,u,{leading:p,maxWait:u,trailing:h})}return Wc=o,Wc}var UE=BE();const Sy=it(UE);var Gc={exports:{}};/*!
41
+ Copyright (c) 2018 Jed Watson.
42
+ Licensed under the MIT License (MIT), see
43
+ http://jedwatson.github.io/classnames
44
+ */var _y;function HE(){return _y||(_y=1,(function(r){(function(){var n={}.hasOwnProperty;function i(){for(var u="",f=0;f<arguments.length;f++){var p=arguments[f];p&&(u=a(u,o(p)))}return u}function o(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return i.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var f="";for(var p in u)n.call(u,p)&&u[p]&&(f=a(f,p));return f}function a(u,f){return f?u?u+" "+f:u+f:u}r.exports?(i.default=i,r.exports=i):window.classNames=i})()})(Gc)),Gc.exports}var WE=HE();const Ne=it(WE);var Vc={exports:{}},Kc,Cy;function GE(){if(Cy)return Kc;Cy=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Kc=r,Kc}var Qc,Ey;function VE(){if(Ey)return Qc;Ey=1;var r=GE();function n(){}function i(){}return i.resetWarningCache=n,Qc=function(){function o(f,p,h,m,v,w){if(w!==r){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:i,resetWarningCache:n};return u.PropTypes=u,u},Qc}var by;function KE(){return by||(by=1,Vc.exports=VE()()),Vc.exports}var QE=KE();const y=it(QE),Wt="semi",ja={PREFIX:`${Wt}-typography`},mt={WEIGHT:["light","regular","medium","semibold","bold","default"],TYPE:["primary","secondary","danger","warning","success","tertiary","quaternary"],SIZE:["normal","small","inherit"],SPACING:["normal","extended"],HEADING:[1,2,3,4,5,6],RULE:["text","numbers","bytes-decimal","bytes-binary","percentages","exponential"],TRUNCATE:["ceil","floor","round"]};var YE=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const XE=ja.PREFIX;let Aa=class extends R.PureComponent{render(){const n=this.props,{component:i,className:o,children:a,forwardRef:u}=n,f=YE(n,["component","className","children","forwardRef"]),p=i,h=Ne(XE,o);return L.createElement(p,Object.assign({className:h,ref:u},f),a)}};Aa.defaultProps={component:"article",style:{},className:""};Aa.propTypes={component:y.string,style:y.object,className:y.string};var ZE=Pa();const Up=it(ZE);var Yc,xy;function JE(){if(xy)return Yc;xy=1;function r(n){return n===null}return Yc=r,Yc}var eb=JE();const tb=it(eb);var Xc,Oy;function nb(){if(Oy)return Xc;Oy=1;var r=ur(),n=Vt(),i=cn(),o="[object String]";function a(u){return typeof u=="string"||!n(u)&&i(u)&&r(u)==o}return Xc=a,Xc}var rb=nb();const ib=it(rb);var Zc,Py;function ob(){if(Py)return Zc;Py=1;var r=ka();function n(){this.__data__=new r,this.size=0}return Zc=n,Zc}var Jc,Ty;function sb(){if(Ty)return Jc;Ty=1;function r(n){var i=this.__data__,o=i.delete(n);return this.size=i.size,o}return Jc=r,Jc}var ef,Ry;function ab(){if(Ry)return ef;Ry=1;function r(n){return this.__data__.get(n)}return ef=r,ef}var tf,ky;function lb(){if(ky)return tf;ky=1;function r(n){return this.__data__.has(n)}return tf=r,tf}var nf,Ny;function ub(){if(Ny)return nf;Ny=1;var r=ka(),n=qp(),i=zp(),o=200;function a(u,f){var p=this.__data__;if(p instanceof r){var h=p.__data__;if(!n||h.length<o-1)return h.push([u,f]),this.size=++p.size,this;p=this.__data__=new i(h)}return p.set(u,f),this.size=p.size,this}return nf=a,nf}var rf,Iy;function Hp(){if(Iy)return rf;Iy=1;var r=ka(),n=ob(),i=sb(),o=ab(),a=lb(),u=ub();function f(p){var h=this.__data__=new r(p);this.size=h.size}return f.prototype.clear=n,f.prototype.delete=i,f.prototype.get=o,f.prototype.has=a,f.prototype.set=u,rf=f,rf}var of,jy;function Ew(){if(jy)return of;jy=1;var r=Fr(),n=(function(){try{var i=r(Object,"defineProperty");return i({},"",{}),i}catch{}})();return of=n,of}var sf,Ay;function Wp(){if(Ay)return sf;Ay=1;var r=Ew();function n(i,o,a){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}return sf=n,sf}var af,Ly;function bw(){if(Ly)return af;Ly=1;var r=Wp(),n=Ao();function i(o,a,u){(u!==void 0&&!n(o[a],u)||u===void 0&&!(a in o))&&r(o,a,u)}return af=i,af}var lf,Dy;function cb(){if(Dy)return lf;Dy=1;function r(n){return function(i,o,a){for(var u=-1,f=Object(i),p=a(i),h=p.length;h--;){var m=p[n?h:++u];if(o(f[m],m,f)===!1)break}return i}}return lf=r,lf}var uf,My;function xw(){if(My)return uf;My=1;var r=cb(),n=r();return uf=n,uf}var _o={exports:{}};_o.exports;var $y;function Ow(){return $y||($y=1,(function(r,n){var i=un(),o=n&&!n.nodeType&&n,a=o&&!0&&r&&!r.nodeType&&r,u=a&&a.exports===o,f=u?i.Buffer:void 0,p=f?f.allocUnsafe:void 0;function h(m,v){if(v)return m.slice();var w=m.length,C=p?p(w):new m.constructor(w);return m.copy(C),C}r.exports=h})(_o,_o.exports)),_o.exports}var cf,Fy;function Pw(){if(Fy)return cf;Fy=1;var r=un(),n=r.Uint8Array;return cf=n,cf}var ff,qy;function Gp(){if(qy)return ff;qy=1;var r=Pw();function n(i){var o=new i.constructor(i.byteLength);return new r(o).set(new r(i)),o}return ff=n,ff}var df,zy;function Tw(){if(zy)return df;zy=1;var r=Gp();function n(i,o){var a=o?r(i.buffer):i.buffer;return new i.constructor(a,i.byteOffset,i.length)}return df=n,df}var pf,By;function Rw(){if(By)return pf;By=1;function r(n,i){var o=-1,a=n.length;for(i||(i=Array(a));++o<a;)i[o]=n[o];return i}return pf=r,pf}var hf,Uy;function fb(){if(Uy)return hf;Uy=1;var r=Kt(),n=Object.create,i=(function(){function o(){}return function(a){if(!r(a))return{};if(n)return n(a);o.prototype=a;var u=new o;return o.prototype=void 0,u}})();return hf=i,hf}var mf,Hy;function kw(){if(Hy)return mf;Hy=1;function r(n,i){return function(o){return n(i(o))}}return mf=r,mf}var gf,Wy;function Vp(){if(Wy)return gf;Wy=1;var r=kw(),n=r(Object.getPrototypeOf,Object);return gf=n,gf}var vf,Gy;function La(){if(Gy)return vf;Gy=1;var r=Object.prototype;function n(i){var o=i&&i.constructor,a=typeof o=="function"&&o.prototype||r;return i===a}return vf=n,vf}var yf,Vy;function Nw(){if(Vy)return yf;Vy=1;var r=fb(),n=Vp(),i=La();function o(a){return typeof a.constructor=="function"&&!i(a)?r(n(a)):{}}return yf=o,yf}var wf,Ky;function db(){if(Ky)return wf;Ky=1;var r=ur(),n=cn(),i="[object Arguments]";function o(a){return n(a)&&r(a)==i}return wf=o,wf}var Sf,Qy;function Da(){if(Qy)return Sf;Qy=1;var r=db(),n=cn(),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,u=r((function(){return arguments})())?r:function(f){return n(f)&&o.call(f,"callee")&&!a.call(f,"callee")};return Sf=u,Sf}var _f,Yy;function Iw(){if(Yy)return _f;Yy=1;var r=9007199254740991;function n(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=r}return _f=n,_f}var Cf,Xy;function bi(){if(Xy)return Cf;Xy=1;var r=Pa(),n=Iw();function i(o){return o!=null&&n(o.length)&&!r(o)}return Cf=i,Cf}var Ef,Zy;function pb(){if(Zy)return Ef;Zy=1;var r=bi(),n=cn();function i(o){return n(o)&&r(o)}return Ef=i,Ef}var Co={exports:{}},bf,Jy;function hb(){if(Jy)return bf;Jy=1;function r(){return!1}return bf=r,bf}Co.exports;var e1;function Do(){return e1||(e1=1,(function(r,n){var i=un(),o=hb(),a=n&&!n.nodeType&&n,u=a&&!0&&r&&!r.nodeType&&r,f=u&&u.exports===a,p=f?i.Buffer:void 0,h=p?p.isBuffer:void 0,m=h||o;r.exports=m})(Co,Co.exports)),Co.exports}var xf,t1;function jw(){if(t1)return xf;t1=1;var r=ur(),n=Vp(),i=cn(),o="[object Object]",a=Function.prototype,u=Object.prototype,f=a.toString,p=u.hasOwnProperty,h=f.call(Object);function m(v){if(!i(v)||r(v)!=o)return!1;var w=n(v);if(w===null)return!0;var C=p.call(w,"constructor")&&w.constructor;return typeof C=="function"&&C instanceof C&&f.call(C)==h}return xf=m,xf}var Of,n1;function mb(){if(n1)return Of;n1=1;var r=ur(),n=Iw(),i=cn(),o="[object Arguments]",a="[object Array]",u="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",m="[object Map]",v="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",T="[object String]",P="[object WeakMap]",b="[object ArrayBuffer]",N="[object DataView]",I="[object Float32Array]",$="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",M="[object Int32Array]",A="[object Uint8Array]",W="[object Uint8ClampedArray]",K="[object Uint16Array]",Z="[object Uint32Array]",Q={};Q[I]=Q[$]=Q[F]=Q[U]=Q[M]=Q[A]=Q[W]=Q[K]=Q[Z]=!0,Q[o]=Q[a]=Q[b]=Q[u]=Q[N]=Q[f]=Q[p]=Q[h]=Q[m]=Q[v]=Q[w]=Q[C]=Q[_]=Q[T]=Q[P]=!1;function oe(te){return i(te)&&n(te.length)&&!!Q[r(te)]}return Of=oe,Of}var Pf,r1;function Kp(){if(r1)return Pf;r1=1;function r(n){return function(i){return n(i)}}return Pf=r,Pf}var Eo={exports:{}};Eo.exports;var i1;function Qp(){return i1||(i1=1,(function(r,n){var i=yw(),o=n&&!n.nodeType&&n,a=o&&!0&&r&&!r.nodeType&&r,u=a&&a.exports===o,f=u&&i.process,p=(function(){try{var h=a&&a.require&&a.require("util").types;return h||f&&f.binding&&f.binding("util")}catch{}})();r.exports=p})(Eo,Eo.exports)),Eo.exports}var Tf,o1;function Ma(){if(o1)return Tf;o1=1;var r=mb(),n=Kp(),i=Qp(),o=i&&i.isTypedArray,a=o?n(o):r;return Tf=a,Tf}var Rf,s1;function Aw(){if(s1)return Rf;s1=1;function r(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}return Rf=r,Rf}var kf,a1;function Yp(){if(a1)return kf;a1=1;var r=Wp(),n=Ao(),i=Object.prototype,o=i.hasOwnProperty;function a(u,f,p){var h=u[f];(!(o.call(u,f)&&n(h,p))||p===void 0&&!(f in u))&&r(u,f,p)}return kf=a,kf}var Nf,l1;function xi(){if(l1)return Nf;l1=1;var r=Yp(),n=Wp();function i(o,a,u,f){var p=!u;u||(u={});for(var h=-1,m=a.length;++h<m;){var v=a[h],w=f?f(u[v],o[v],v,u,o):void 0;w===void 0&&(w=o[v]),p?n(u,v,w):r(u,v,w)}return u}return Nf=i,Nf}var If,u1;function gb(){if(u1)return If;u1=1;function r(n,i){for(var o=-1,a=Array(n);++o<n;)a[o]=i(o);return a}return If=r,If}var jf,c1;function Xp(){if(c1)return jf;c1=1;var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function i(o,a){var u=typeof o;return a=a??r,!!a&&(u=="number"||u!="symbol"&&n.test(o))&&o>-1&&o%1==0&&o<a}return jf=i,jf}var Af,f1;function Lw(){if(f1)return Af;f1=1;var r=gb(),n=Da(),i=Vt(),o=Do(),a=Xp(),u=Ma(),f=Object.prototype,p=f.hasOwnProperty;function h(m,v){var w=i(m),C=!w&&n(m),_=!w&&!C&&o(m),T=!w&&!C&&!_&&u(m),P=w||C||_||T,b=P?r(m.length,String):[],N=b.length;for(var I in m)(v||p.call(m,I))&&!(P&&(I=="length"||_&&(I=="offset"||I=="parent")||T&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||a(I,N)))&&b.push(I);return b}return Af=h,Af}var Lf,d1;function vb(){if(d1)return Lf;d1=1;function r(n){var i=[];if(n!=null)for(var o in Object(n))i.push(o);return i}return Lf=r,Lf}var Df,p1;function yb(){if(p1)return Df;p1=1;var r=Kt(),n=La(),i=vb(),o=Object.prototype,a=o.hasOwnProperty;function u(f){if(!r(f))return i(f);var p=n(f),h=[];for(var m in f)m=="constructor"&&(p||!a.call(f,m))||h.push(m);return h}return Df=u,Df}var Mf,h1;function Mo(){if(h1)return Mf;h1=1;var r=Lw(),n=yb(),i=bi();function o(a){return i(a)?r(a,!0):n(a)}return Mf=o,Mf}var $f,m1;function wb(){if(m1)return $f;m1=1;var r=xi(),n=Mo();function i(o){return r(o,n(o))}return $f=i,$f}var Ff,g1;function Sb(){if(g1)return Ff;g1=1;var r=bw(),n=Ow(),i=Tw(),o=Rw(),a=Nw(),u=Da(),f=Vt(),p=pb(),h=Do(),m=Pa(),v=Kt(),w=jw(),C=Ma(),_=Aw(),T=wb();function P(b,N,I,$,F,U,M){var A=_(b,I),W=_(N,I),K=M.get(W);if(K){r(b,I,K);return}var Z=U?U(A,W,I+"",b,N,M):void 0,Q=Z===void 0;if(Q){var oe=f(W),te=!oe&&h(W),ve=!oe&&!te&&C(W);Z=W,oe||te||ve?f(A)?Z=A:p(A)?Z=o(A):te?(Q=!1,Z=n(W,!0)):ve?(Q=!1,Z=i(W,!0)):Z=[]:w(W)||u(W)?(Z=A,u(A)?Z=T(A):(!v(A)||m(A))&&(Z=a(W))):Q=!1}Q&&(M.set(W,Z),F(Z,W,$,U,M),M.delete(W)),r(b,I,Z)}return Ff=P,Ff}var qf,v1;function _b(){if(v1)return qf;v1=1;var r=Hp(),n=bw(),i=xw(),o=Sb(),a=Kt(),u=Mo(),f=Aw();function p(h,m,v,w,C){h!==m&&i(m,function(_,T){if(C||(C=new r),a(_))o(h,m,T,v,p,w,C);else{var P=w?w(f(h,T),_,T+"",h,m,C):void 0;P===void 0&&(P=_),n(h,T,P)}},u)}return qf=p,qf}var zf,y1;function Zp(){if(y1)return zf;y1=1;function r(n){return n}return zf=r,zf}var Bf,w1;function Cb(){if(w1)return Bf;w1=1;function r(n,i,o){switch(o.length){case 0:return n.call(i);case 1:return n.call(i,o[0]);case 2:return n.call(i,o[0],o[1]);case 3:return n.call(i,o[0],o[1],o[2])}return n.apply(i,o)}return Bf=r,Bf}var Uf,S1;function Dw(){if(S1)return Uf;S1=1;var r=Cb(),n=Math.max;function i(o,a,u){return a=n(a===void 0?o.length-1:a,0),function(){for(var f=arguments,p=-1,h=n(f.length-a,0),m=Array(h);++p<h;)m[p]=f[a+p];p=-1;for(var v=Array(a+1);++p<a;)v[p]=f[p];return v[a]=u(m),r(o,this,v)}}return Uf=i,Uf}var Hf,_1;function Eb(){if(_1)return Hf;_1=1;function r(n){return function(){return n}}return Hf=r,Hf}var Wf,C1;function bb(){if(C1)return Wf;C1=1;var r=Eb(),n=Ew(),i=Zp(),o=n?function(a,u){return n(a,"toString",{configurable:!0,enumerable:!1,value:r(u),writable:!0})}:i;return Wf=o,Wf}var Gf,E1;function xb(){if(E1)return Gf;E1=1;var r=800,n=16,i=Date.now;function o(a){var u=0,f=0;return function(){var p=i(),h=n-(p-f);if(f=p,h>0){if(++u>=r)return arguments[0]}else u=0;return a.apply(void 0,arguments)}}return Gf=o,Gf}var Vf,b1;function Mw(){if(b1)return Vf;b1=1;var r=bb(),n=xb(),i=n(r);return Vf=i,Vf}var Kf,x1;function Ob(){if(x1)return Kf;x1=1;var r=Zp(),n=Dw(),i=Mw();function o(a,u){return i(n(a,u,r),a+"")}return Kf=o,Kf}var Qf,O1;function Pb(){if(O1)return Qf;O1=1;var r=Ao(),n=bi(),i=Xp(),o=Kt();function a(u,f,p){if(!o(p))return!1;var h=typeof f;return(h=="number"?n(p)&&i(f,p.length):h=="string"&&f in p)?r(p[f],u):!1}return Qf=a,Qf}var Yf,P1;function Tb(){if(P1)return Yf;P1=1;var r=Ob(),n=Pb();function i(o){return r(function(a,u){var f=-1,p=u.length,h=p>1?u[p-1]:void 0,m=p>2?u[2]:void 0;for(h=o.length>3&&typeof h=="function"?(p--,h):void 0,m&&n(u[0],u[1],m)&&(h=p<3?void 0:h,p=1),a=Object(a);++f<p;){var v=u[f];v&&o(a,v,f,h)}return a})}return Yf=i,Yf}var Xf,T1;function Rb(){if(T1)return Xf;T1=1;var r=_b(),n=Tb(),i=n(function(o,a,u){r(o,a,u)});return Xf=i,Xf}var kb=Rb();const Nb=it(kb);var Zf,R1;function $w(){if(R1)return Zf;R1=1;function r(n,i){for(var o=-1,a=n==null?0:n.length;++o<a&&i(n[o],o,n)!==!1;);return n}return Zf=r,Zf}var Jf,k1;function Ib(){if(k1)return Jf;k1=1;var r=kw(),n=r(Object.keys,Object);return Jf=n,Jf}var ed,N1;function Fw(){if(N1)return ed;N1=1;var r=La(),n=Ib(),i=Object.prototype,o=i.hasOwnProperty;function a(u){if(!r(u))return n(u);var f=[];for(var p in Object(u))o.call(u,p)&&p!="constructor"&&f.push(p);return f}return ed=a,ed}var td,I1;function $a(){if(I1)return td;I1=1;var r=Lw(),n=Fw(),i=bi();function o(a){return i(a)?r(a):n(a)}return td=o,td}var nd,j1;function jb(){if(j1)return nd;j1=1;var r=xi(),n=$a();function i(o,a){return o&&r(a,n(a),o)}return nd=i,nd}var rd,A1;function Ab(){if(A1)return rd;A1=1;var r=xi(),n=Mo();function i(o,a){return o&&r(a,n(a),o)}return rd=i,rd}var id,L1;function Lb(){if(L1)return id;L1=1;function r(n,i){for(var o=-1,a=n==null?0:n.length,u=0,f=[];++o<a;){var p=n[o];i(p,o,n)&&(f[u++]=p)}return f}return id=r,id}var od,D1;function qw(){if(D1)return od;D1=1;function r(){return[]}return od=r,od}var sd,M1;function Jp(){if(M1)return sd;M1=1;var r=Lb(),n=qw(),i=Object.prototype,o=i.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(f){return f==null?[]:(f=Object(f),r(a(f),function(p){return o.call(f,p)}))}:n;return sd=u,sd}var ad,$1;function Db(){if($1)return ad;$1=1;var r=xi(),n=Jp();function i(o,a){return r(o,n(o),a)}return ad=i,ad}var ld,F1;function eh(){if(F1)return ld;F1=1;function r(n,i){for(var o=-1,a=i.length,u=n.length;++o<a;)n[u+o]=i[o];return n}return ld=r,ld}var ud,q1;function zw(){if(q1)return ud;q1=1;var r=eh(),n=Vp(),i=Jp(),o=qw(),a=Object.getOwnPropertySymbols,u=a?function(f){for(var p=[];f;)r(p,i(f)),f=n(f);return p}:o;return ud=u,ud}var cd,z1;function Mb(){if(z1)return cd;z1=1;var r=xi(),n=zw();function i(o,a){return r(o,n(o),a)}return cd=i,cd}var fd,B1;function Bw(){if(B1)return fd;B1=1;var r=eh(),n=Vt();function i(o,a,u){var f=a(o);return n(o)?f:r(f,u(o))}return fd=i,fd}var dd,U1;function Uw(){if(U1)return dd;U1=1;var r=Bw(),n=Jp(),i=$a();function o(a){return r(a,i,n)}return dd=o,dd}var pd,H1;function Hw(){if(H1)return pd;H1=1;var r=Bw(),n=zw(),i=Mo();function o(a){return r(a,i,n)}return pd=o,pd}var hd,W1;function $b(){if(W1)return hd;W1=1;var r=Fr(),n=un(),i=r(n,"DataView");return hd=i,hd}var md,G1;function Fb(){if(G1)return md;G1=1;var r=Fr(),n=un(),i=r(n,"Promise");return md=i,md}var gd,V1;function qb(){if(V1)return gd;V1=1;var r=Fr(),n=un(),i=r(n,"Set");return gd=i,gd}var vd,K1;function zb(){if(K1)return vd;K1=1;var r=Fr(),n=un(),i=r(n,"WeakMap");return vd=i,vd}var yd,Q1;function $o(){if(Q1)return yd;Q1=1;var r=$b(),n=qp(),i=Fb(),o=qb(),a=zb(),u=ur(),f=ww(),p="[object Map]",h="[object Object]",m="[object Promise]",v="[object Set]",w="[object WeakMap]",C="[object DataView]",_=f(r),T=f(n),P=f(i),b=f(o),N=f(a),I=u;return(r&&I(new r(new ArrayBuffer(1)))!=C||n&&I(new n)!=p||i&&I(i.resolve())!=m||o&&I(new o)!=v||a&&I(new a)!=w)&&(I=function($){var F=u($),U=F==h?$.constructor:void 0,M=U?f(U):"";if(M)switch(M){case _:return C;case T:return p;case P:return m;case b:return v;case N:return w}return F}),yd=I,yd}var wd,Y1;function Bb(){if(Y1)return wd;Y1=1;var r=Object.prototype,n=r.hasOwnProperty;function i(o){var a=o.length,u=new o.constructor(a);return a&&typeof o[0]=="string"&&n.call(o,"index")&&(u.index=o.index,u.input=o.input),u}return wd=i,wd}var Sd,X1;function Ub(){if(X1)return Sd;X1=1;var r=Gp();function n(i,o){var a=o?r(i.buffer):i.buffer;return new i.constructor(a,i.byteOffset,i.byteLength)}return Sd=n,Sd}var _d,Z1;function Hb(){if(Z1)return _d;Z1=1;var r=/\w*$/;function n(i){var o=new i.constructor(i.source,r.exec(i));return o.lastIndex=i.lastIndex,o}return _d=n,_d}var Cd,J1;function Wb(){if(J1)return Cd;J1=1;var r=Ci(),n=r?r.prototype:void 0,i=n?n.valueOf:void 0;function o(a){return i?Object(i.call(a)):{}}return Cd=o,Cd}var Ed,e0;function Gb(){if(e0)return Ed;e0=1;var r=Gp(),n=Ub(),i=Hb(),o=Wb(),a=Tw(),u="[object Boolean]",f="[object Date]",p="[object Map]",h="[object Number]",m="[object RegExp]",v="[object Set]",w="[object String]",C="[object Symbol]",_="[object ArrayBuffer]",T="[object DataView]",P="[object Float32Array]",b="[object Float64Array]",N="[object Int8Array]",I="[object Int16Array]",$="[object Int32Array]",F="[object Uint8Array]",U="[object Uint8ClampedArray]",M="[object Uint16Array]",A="[object Uint32Array]";function W(K,Z,Q){var oe=K.constructor;switch(Z){case _:return r(K);case u:case f:return new oe(+K);case T:return n(K,Q);case P:case b:case N:case I:case $:case F:case U:case M:case A:return a(K,Q);case p:return new oe;case h:case w:return new oe(K);case m:return i(K);case v:return new oe;case C:return o(K)}}return Ed=W,Ed}var bd,t0;function Vb(){if(t0)return bd;t0=1;var r=$o(),n=cn(),i="[object Map]";function o(a){return n(a)&&r(a)==i}return bd=o,bd}var xd,n0;function Kb(){if(n0)return xd;n0=1;var r=Vb(),n=Kp(),i=Qp(),o=i&&i.isMap,a=o?n(o):r;return xd=a,xd}var Od,r0;function Qb(){if(r0)return Od;r0=1;var r=$o(),n=cn(),i="[object Set]";function o(a){return n(a)&&r(a)==i}return Od=o,Od}var Pd,i0;function Yb(){if(i0)return Pd;i0=1;var r=Qb(),n=Kp(),i=Qp(),o=i&&i.isSet,a=o?n(o):r;return Pd=a,Pd}var Td,o0;function Ww(){if(o0)return Td;o0=1;var r=Hp(),n=$w(),i=Yp(),o=jb(),a=Ab(),u=Ow(),f=Rw(),p=Db(),h=Mb(),m=Uw(),v=Hw(),w=$o(),C=Bb(),_=Gb(),T=Nw(),P=Vt(),b=Do(),N=Kb(),I=Kt(),$=Yb(),F=$a(),U=Mo(),M=1,A=2,W=4,K="[object Arguments]",Z="[object Array]",Q="[object Boolean]",oe="[object Date]",te="[object Error]",ve="[object Function]",Pe="[object GeneratorFunction]",Ee="[object Map]",ye="[object Number]",G="[object Object]",Y="[object RegExp]",E="[object Set]",q="[object String]",X="[object Symbol]",pe="[object WeakMap]",se="[object ArrayBuffer]",me="[object DataView]",ue="[object Float32Array]",he="[object Float64Array]",ce="[object Int8Array]",we="[object Int16Array]",gt="[object Int32Array]",ot="[object Uint8Array]",vt="[object Uint8ClampedArray]",Mn="[object Uint16Array]",fr="[object Uint32Array]",Oe={};Oe[K]=Oe[Z]=Oe[se]=Oe[me]=Oe[Q]=Oe[oe]=Oe[ue]=Oe[he]=Oe[ce]=Oe[we]=Oe[gt]=Oe[Ee]=Oe[ye]=Oe[G]=Oe[Y]=Oe[E]=Oe[q]=Oe[X]=Oe[ot]=Oe[vt]=Oe[Mn]=Oe[fr]=!0,Oe[te]=Oe[ve]=Oe[pe]=!1;function _n(_e,Qt,Mt,lt,Ve,ut){var He,Yt=Qt&M,Xt=Qt&A,dr=Qt&W;if(Mt&&(He=Ve?Mt(_e,lt,Ve,ut):Mt(_e)),He!==void 0)return He;if(!I(_e))return _e;var Cn=P(_e);if(Cn){if(He=C(_e),!Yt)return f(_e,He)}else{var ct=w(_e),fn=ct==ve||ct==Pe;if(b(_e))return u(_e,Yt);if(ct==G||ct==K||fn&&!Ve){if(He=Xt||fn?{}:T(_e),!Yt)return Xt?h(_e,a(He,_e)):p(_e,o(He,_e))}else{if(!Oe[ct])return Ve?_e:{};He=_(_e,ct,Yt)}}ut||(ut=new r);var $t=ut.get(_e);if($t)return $t;ut.set(_e,He),$(_e)?_e.forEach(function(yt){He.add(_n(yt,Qt,Mt,yt,_e,ut))}):N(_e)&&_e.forEach(function(yt,Tt){He.set(Tt,_n(yt,Qt,Mt,Tt,_e,ut))});var Zt=dr?Xt?v:m:Xt?U:F,$n=Cn?void 0:Zt(_e);return n($n||_e,function(yt,Tt){$n&&(Tt=yt,yt=_e[Tt]),i(He,Tt,_n(yt,Qt,Mt,Tt,_e,ut))}),He}return Td=_n,Td}var Rd,s0;function Xb(){if(s0)return Rd;s0=1;function r(n){var i=n==null?0:n.length;return i?n[i-1]:void 0}return Rd=r,Rd}var kd,a0;function Zb(){if(a0)return kd;a0=1;function r(n,i,o){var a=-1,u=n.length;i<0&&(i=-i>u?0:u+i),o=o>u?u:o,o<0&&(o+=u),u=i>o?0:o-i>>>0,i>>>=0;for(var f=Array(u);++a<u;)f[a]=n[a+i];return f}return kd=r,kd}var Nd,l0;function Jb(){if(l0)return Nd;l0=1;var r=_w(),n=Zb();function i(o,a){return a.length<2?o:r(o,n(a,0,-1))}return Nd=i,Nd}var Id,u0;function ex(){if(u0)return Id;u0=1;var r=Ia(),n=Xb(),i=Jb(),o=Bp();function a(u,f){return f=r(f,u),u=i(u,f),u==null||delete u[o(n(f))]}return Id=a,Id}var jd,c0;function tx(){if(c0)return jd;c0=1;var r=jw();function n(i){return r(i)?void 0:i}return jd=n,jd}var Ad,f0;function nx(){if(f0)return Ad;f0=1;var r=Ci(),n=Da(),i=Vt(),o=r?r.isConcatSpreadable:void 0;function a(u){return i(u)||n(u)||!!(o&&u&&u[o])}return Ad=a,Ad}var Ld,d0;function rx(){if(d0)return Ld;d0=1;var r=eh(),n=nx();function i(o,a,u,f,p){var h=-1,m=o.length;for(u||(u=n),p||(p=[]);++h<m;){var v=o[h];a>0&&u(v)?a>1?i(v,a-1,u,f,p):r(p,v):f||(p[p.length]=v)}return p}return Ld=i,Ld}var Dd,p0;function ix(){if(p0)return Dd;p0=1;var r=rx();function n(i){var o=i==null?0:i.length;return o?r(i,1):[]}return Dd=n,Dd}var Md,h0;function ox(){if(h0)return Md;h0=1;var r=ix(),n=Dw(),i=Mw();function o(a){return i(n(a,void 0,r),a+"")}return Md=o,Md}var $d,m0;function sx(){if(m0)return $d;m0=1;var r=Sw(),n=Ww(),i=ex(),o=Ia(),a=xi(),u=tx(),f=ox(),p=Hw(),h=1,m=2,v=4,w=f(function(C,_){var T={};if(C==null)return T;var P=!1;_=r(_,function(N){return N=o(N,C),P||(P=N.length>1),N}),a(C,p(C),T),P&&(T=n(T,h|m|v,u));for(var b=_.length;b--;)i(T,_[b]);return T});return $d=w,$d}var ax=sx();const Fa=it(ax);var Fd,g0;function lx(){if(g0)return Fd;g0=1;function r(n){return n===void 0}return Fd=r,Fd}var ux=lx();const ra=it(ux);var qd,v0;function cx(){if(v0)return qd;v0=1;var r="__lodash_hash_undefined__";function n(i){return this.__data__.set(i,r),this}return qd=n,qd}var zd,y0;function fx(){if(y0)return zd;y0=1;function r(n){return this.__data__.has(n)}return zd=r,zd}var Bd,w0;function dx(){if(w0)return Bd;w0=1;var r=zp(),n=cx(),i=fx();function o(a){var u=-1,f=a==null?0:a.length;for(this.__data__=new r;++u<f;)this.add(a[u])}return o.prototype.add=o.prototype.push=n,o.prototype.has=i,Bd=o,Bd}var Ud,S0;function px(){if(S0)return Ud;S0=1;function r(n,i){for(var o=-1,a=n==null?0:n.length;++o<a;)if(i(n[o],o,n))return!0;return!1}return Ud=r,Ud}var Hd,_0;function hx(){if(_0)return Hd;_0=1;function r(n,i){return n.has(i)}return Hd=r,Hd}var Wd,C0;function Gw(){if(C0)return Wd;C0=1;var r=dx(),n=px(),i=hx(),o=1,a=2;function u(f,p,h,m,v,w){var C=h&o,_=f.length,T=p.length;if(_!=T&&!(C&&T>_))return!1;var P=w.get(f),b=w.get(p);if(P&&b)return P==p&&b==f;var N=-1,I=!0,$=h&a?new r:void 0;for(w.set(f,p),w.set(p,f);++N<_;){var F=f[N],U=p[N];if(m)var M=C?m(U,F,N,p,f,w):m(F,U,N,f,p,w);if(M!==void 0){if(M)continue;I=!1;break}if($){if(!n(p,function(A,W){if(!i($,W)&&(F===A||v(F,A,h,m,w)))return $.push(W)})){I=!1;break}}else if(!(F===U||v(F,U,h,m,w))){I=!1;break}}return w.delete(f),w.delete(p),I}return Wd=u,Wd}var Gd,E0;function mx(){if(E0)return Gd;E0=1;function r(n){var i=-1,o=Array(n.size);return n.forEach(function(a,u){o[++i]=[u,a]}),o}return Gd=r,Gd}var Vd,b0;function gx(){if(b0)return Vd;b0=1;function r(n){var i=-1,o=Array(n.size);return n.forEach(function(a){o[++i]=a}),o}return Vd=r,Vd}var Kd,x0;function vx(){if(x0)return Kd;x0=1;var r=Ci(),n=Pw(),i=Ao(),o=Gw(),a=mx(),u=gx(),f=1,p=2,h="[object Boolean]",m="[object Date]",v="[object Error]",w="[object Map]",C="[object Number]",_="[object RegExp]",T="[object Set]",P="[object String]",b="[object Symbol]",N="[object ArrayBuffer]",I="[object DataView]",$=r?r.prototype:void 0,F=$?$.valueOf:void 0;function U(M,A,W,K,Z,Q,oe){switch(W){case I:if(M.byteLength!=A.byteLength||M.byteOffset!=A.byteOffset)return!1;M=M.buffer,A=A.buffer;case N:return!(M.byteLength!=A.byteLength||!Q(new n(M),new n(A)));case h:case m:case C:return i(+M,+A);case v:return M.name==A.name&&M.message==A.message;case _:case P:return M==A+"";case w:var te=a;case T:var ve=K&f;if(te||(te=u),M.size!=A.size&&!ve)return!1;var Pe=oe.get(M);if(Pe)return Pe==A;K|=p,oe.set(M,A);var Ee=o(te(M),te(A),K,Z,Q,oe);return oe.delete(M),Ee;case b:if(F)return F.call(M)==F.call(A)}return!1}return Kd=U,Kd}var Qd,O0;function yx(){if(O0)return Qd;O0=1;var r=Uw(),n=1,i=Object.prototype,o=i.hasOwnProperty;function a(u,f,p,h,m,v){var w=p&n,C=r(u),_=C.length,T=r(f),P=T.length;if(_!=P&&!w)return!1;for(var b=_;b--;){var N=C[b];if(!(w?N in f:o.call(f,N)))return!1}var I=v.get(u),$=v.get(f);if(I&&$)return I==f&&$==u;var F=!0;v.set(u,f),v.set(f,u);for(var U=w;++b<_;){N=C[b];var M=u[N],A=f[N];if(h)var W=w?h(A,M,N,f,u,v):h(M,A,N,u,f,v);if(!(W===void 0?M===A||m(M,A,p,h,v):W)){F=!1;break}U||(U=N=="constructor")}if(F&&!U){var K=u.constructor,Z=f.constructor;K!=Z&&"constructor"in u&&"constructor"in f&&!(typeof K=="function"&&K instanceof K&&typeof Z=="function"&&Z instanceof Z)&&(F=!1)}return v.delete(u),v.delete(f),F}return Qd=a,Qd}var Yd,P0;function wx(){if(P0)return Yd;P0=1;var r=Hp(),n=Gw(),i=vx(),o=yx(),a=$o(),u=Vt(),f=Do(),p=Ma(),h=1,m="[object Arguments]",v="[object Array]",w="[object Object]",C=Object.prototype,_=C.hasOwnProperty;function T(P,b,N,I,$,F){var U=u(P),M=u(b),A=U?v:a(P),W=M?v:a(b);A=A==m?w:A,W=W==m?w:W;var K=A==w,Z=W==w,Q=A==W;if(Q&&f(P)){if(!f(b))return!1;U=!0,K=!1}if(Q&&!K)return F||(F=new r),U||p(P)?n(P,b,N,I,$,F):i(P,b,A,N,I,$,F);if(!(N&h)){var oe=K&&_.call(P,"__wrapped__"),te=Z&&_.call(b,"__wrapped__");if(oe||te){var ve=oe?P.value():P,Pe=te?b.value():b;return F||(F=new r),$(ve,Pe,N,I,F)}}return Q?(F||(F=new r),o(P,b,N,I,$,F)):!1}return Yd=T,Yd}var Xd,T0;function Sx(){if(T0)return Xd;T0=1;var r=wx(),n=cn();function i(o,a,u,f,p){return o===a?!0:o==null||a==null||!n(o)&&!n(a)?o!==o&&a!==a:r(o,a,u,f,i,p)}return Xd=i,Xd}var Zd,R0;function _x(){if(R0)return Zd;R0=1;var r=Sx();function n(i,o){return r(i,o)}return Zd=n,Zd}var Cx=_x();const Vw=it(Cx);var Jd,k0;function Ex(){if(k0)return Jd;k0=1;var r=Fw(),n=$o(),i=Da(),o=Vt(),a=bi(),u=Do(),f=La(),p=Ma(),h="[object Map]",m="[object Set]",v=Object.prototype,w=v.hasOwnProperty;function C(_){if(_==null)return!0;if(a(_)&&(o(_)||typeof _=="string"||typeof _.splice=="function"||u(_)||p(_)||i(_)))return!_.length;var T=n(_);if(T==h||T==m)return!_.size;if(f(_))return!r(_).length;for(var P in _)if(w.call(_,P))return!1;return!0}return Jd=C,Jd}var bx=Ex();const ar=it(bx);var ep,N0;function xx(){if(N0)return ep;N0=1;var r=xw(),n=$a();function i(o,a){return o&&r(o,a,n)}return ep=i,ep}var tp,I0;function Ox(){if(I0)return tp;I0=1;var r=bi();function n(i,o){return function(a,u){if(a==null)return a;if(!r(a))return i(a,u);for(var f=a.length,p=o?f:-1,h=Object(a);(o?p--:++p<f)&&u(h[p],p,h)!==!1;);return a}}return tp=n,tp}var np,j0;function Px(){if(j0)return np;j0=1;var r=xx(),n=Ox(),i=n(r);return np=i,np}var rp,A0;function Tx(){if(A0)return rp;A0=1;var r=Zp();function n(i){return typeof i=="function"?i:r}return rp=n,rp}var ip,L0;function Rx(){if(L0)return ip;L0=1;var r=$w(),n=Px(),i=Tx(),o=Vt();function a(u,f){var p=o(u)?r:n;return p(u,i(f))}return ip=a,ip}var op,D0;function kx(){return D0||(D0=1,op=Rx()),op}var Nx=kx();const Ix=it(Nx);var qa=vw();const hi=it(qa);function Cp(r,n){r&&console.warn(`Warning: ${n}`)}function th(r){return r==null}class jx{constructor(){this._eventMap=new Map}on(n,i){return n&&typeof i=="function"&&(this._eventMap.has(n)||this._eventMap.set(n,[]),this._eventMap.get(n).push(i)),this}once(n,i){var o=this;if(n&&typeof i=="function"){const a=function(){i(...arguments),o.off(n,a)};this.on(n,a)}}off(n,i){if(n)if(typeof i=="function"){const o=this._eventMap.get(n);if(Array.isArray(o)&&o.length){let a=-1;for(;(a=o.findIndex(u=>u===i))>-1;)o.splice(a,1)}}else th(i)&&this._eventMap.delete(n);return this}emit(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return this._eventMap.has(n)?([...this._eventMap.get(n)].forEach(f=>f(...o)),!0):!1}}function bo(r){try{return r instanceof HTMLElement}catch{return typeof r=="object"&&r.nodeType===1&&typeof r.style=="object"&&typeof r.ownerDocument=="object"}}function Ax(r){if(r&&typeof r=="object")return typeof r.toJSON=="function"?r.toJSON():["left","top","right","bottom","width","height"].reduce((i,o)=>(i[o]=r[o],i),{})}function Lx(r){r.stopPropagation(),r.preventDefault()}const ia={TOP:/top/i,RIGHT:/right/i,BOTTOM:/bottom/i,LEFT:/left/i},fi={left:0,top:0,height:0,width:0,scrollLeft:0,scrollTop:0};let Dx=class extends Lo{constructor(n){var i;super(Object.assign({},n)),i=this,this.removePortal=()=>{this._adapter.removePortal()},this.setDisplayNone=(o,a)=>{this._adapter.setDisplayNone(o,a)},this.updateStateIfCursorOnTrigger=o=>{var a,u;if(!((a=o?.matches)===null||a===void 0)&&a.call(o,":hover")){const f=this._adapter.getEventName(),p=this.getState("triggerEventSet");(u=p[f.mouseEnter])===null||u===void 0||u.call(p)}},this.onResize=()=>{this.getState("visible")&&this.calcPosition()},this.delayShow=()=>{const o=this.getProp("mouseEnterDelay");this.clearDelayTimer(),o>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},o):this.show()},this.show=()=>{if(this._initContainerPosition(),this._adapter.getAnimatingState())return;const o=this.getProp("content"),a=this.getProp("trigger"),u=this.getProp("clickTriggerToHide"),{visible:f,displayNone:p}=this.getStates();if(p&&this.setDisplayNone(!1),!f){if(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),a==="hover"){const h=()=>{var m;const v=this._adapter.getTriggerDOM();a&&!(!((m=v?.matches)===null||m===void 0)&&m.call(v,":hover"))&&this.hide(),this._adapter.off("portalInserted",h)};this._adapter.on("portalInserted",h)}this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(o,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||u||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent()}},this.calcPosition=function(o,a,u){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;o=(ar(o)?i._adapter.getTriggerBounding():o)||Object.assign({},fi),u=(ar(u)?i._adapter.getPopupContainerRect():u)||Object.assign({},fi),a=(ar(a)?i._adapter.getWrapperBounding():a)||Object.assign({},fi);let p=i.calcPosStyle({triggerRect:o,wrapperRect:a,containerRect:u}),h=i.getProp("position");if(i.getProp("autoAdjustOverflow")){const{position:m,isHeightOverFlow:v,isWidthOverFlow:w}=i.adjustPosIfNeed(h,p,o,a,u);(h!==m||v||w)&&(h=m,p=i.calcPosStyle({triggerRect:o,wrapperRect:a,containerRect:u,position:h,spacing:null,isOverFlow:[v,w]}))}return f&&i._mounted&&i._adapter.setPosition(Object.assign(Object.assign({},p),{position:h})),p},this.delayHide=()=>{const o=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),o>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},o):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=o=>{const{guardFocus:a,closeOnEsc:u}=this.getProps();switch(o&&o.key){case"Escape":u&&this._handleEscKeyDown(o);break;case"Tab":if(a){const f=this._adapter.getContainer(),p=this._adapter.getFocusableElements(f);p.length&&(o.shiftKey?this._handleContainerShiftTabKeyDown(p,o):this._handleContainerTabKeyDown(p,o))}break}},this._timer=null}init(){const{wrapperId:n}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),n||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const n=this.getProp("trigger"),{triggerEventSet:i,portalEventSet:o}=this._generateEvent(n);this._bindTriggerEvent(i),this._bindPortalEvent(o),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(n){this._adapter.registerTriggerEvent(n)}_bindPortalEvent(n){this._adapter.registerPortalEvent(n)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(o){case"reverse":return this._reversePos(n,i);case"expand":return this._expandPos(n,a);case"reduce":return this._reducePos(n);default:return this._reversePos(n,i)}}_reversePos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(ia.TOP.test(n))return n.replace("top","bottom").replace("Top","Bottom");if(ia.BOTTOM.test(n))return n.replace("bottom","top").replace("Bottom","Top")}else{if(ia.LEFT.test(n))return n.replace("left","right").replace("Left","Right");if(ia.RIGHT.test(n))return n.replace("right","left").replace("Right","Left")}return n}_expandPos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;return n.concat(i)}_reducePos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const i=["Top","Bottom","Left","Right"].find(o=>n.endsWith(o));return i?n.replace(i,""):n}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(n){const i=this._adapter.getEventName(),o={[i.keydown]:u=>{this._handleTriggerKeydown(u)}};let a={};switch(n){case"focus":o[i.focus]=()=>{this.delayShow()},o[i.blur]=()=>{this.delayHide()},a=o;break;case"click":o[i.click]=()=>{this.show()},a={};break;case"hover":o[i.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},o[i.mouseLeave]=()=>{this.delayHide()},o[i.focus]=()=>{const{disableFocusListener:u}=this.getProps();!u&&this.delayShow()},o[i.blur]=()=>{const{disableFocusListener:u}=this.getProps();!u&&this.delayHide()},a=Object.assign({},o),this.getProp("clickToHide")&&(a[i.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[i.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":o[i.contextMenu]=u=>{u.preventDefault(),this.show()};break}return{triggerEventSet:o,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(n){const i=this.getState("visible"),o=this.getState("isInsert");(i!==n||o!==n)&&this._adapter.togglePortalVisible(n,()=>{n&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(n)})}_roundPixel(n){return typeof n=="number"?Math.round(n):n}calcTransformOrigin(n,i,o,a){if(n&&i&&o!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(n))return`${this._roundPixel(i.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(n))return`calc(100% - ${this._roundPixel(i.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(n))return`${-o*100}% ${this._roundPixel(i.height/2)}px`;if(["leftBottom","rightBottom"].includes(n))return`${-o*100}% calc(100% - ${this._roundPixel(i.height/2)}px)`}return`${-o*100}% ${-a*100}%`}return null}calcPosStyle(n){var i;const{spacing:o,isOverFlow:a}=n,{innerWidth:u}=window,f=(ar(n.triggerRect)?n.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},fi),p=(ar(n.containerRect)?n.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},fi),h=(ar(n.wrapperRect)?n.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},fi),m=n.position!=null?n.position:this.getProp("position"),v=o??this.getProp("spacing"),{arrowPointAtCenter:w,showArrow:C,arrowBounding:_}=this.getProps(),T=C&&w;let P=v,b=0;if(typeof v!="number"){const we=m.includes("top")||m.includes("bottom");P=we?v.y:v.x,b=we?v.x:v.y}const N=ke(_,"width",24),I=ke(_,"width",24),$=ke(_,"offsetY",0),F=6,U=6;let M,A,W=0,K=0;const Z=f.left+f.width/2,Q=f.top+f.height/2,oe=F+N/2,te=U+I/2,ve=h.height-p.height,Pe=h.width-p.width,Ee=ve>0?ve:0,ye=Pe>0?Pe:0,G=a&&a[0],Y=a&&a[1],E=Z-p.left<p.right-Z,q=Q-p.top<p.bottom-Q,X=h.width>u,pe=Math.abs(h?.width-((i=this._adapter.getContainer())===null||i===void 0?void 0:i.clientWidth))>1;switch(pe&&(P=P*h.width/this._adapter.getContainer().clientWidth),m){case"top":M=Y?E?p.left+h.width/2:p.right-h.width/2+ye:Z+b,A=G?p.bottom+Ee:f.top-P,W=-.5,K=-1;break;case"topLeft":M=Y?X?p.left:p.right-h.width:T?Z-oe+b:f.left+b,A=G?p.bottom+Ee:f.top-P,K=-1;break;case"topRight":M=Y?p.right+ye:T?Z+oe+b:f.right+b,A=G?p.bottom+Ee:f.top-P,K=-1,W=-1;break;case"left":M=Y?p.right+ye-P+oe:f.left-P,A=G?q?p.top+h.height/2:p.bottom-h.height/2+Ee:Q+b,W=-1,K=-.5;break;case"leftTop":M=Y?p.right+ye-P+oe:f.left-P,A=G?p.top:T?Q-te+b:f.top+b,W=-1;break;case"leftBottom":M=Y?p.right+ye-P+oe:f.left-P,A=G?p.bottom+Ee:T?Q+te+b:f.bottom+b,W=-1,K=-1;break;case"bottom":M=Y?E?p.left+h.width/2:p.right-h.width/2+ye:Z+b,A=G?p.top+te-P:f.top+f.height+P,W=-.5;break;case"bottomLeft":M=Y?X?p.left:p.right-h.width:T?Z-oe+b:f.left+b,A=G?p.top+te-P:f.top+f.height+P;break;case"bottomRight":M=Y?p.right+ye:T?Z+oe+b:f.right+b,A=G?p.top+te-P:f.top+f.height+P,W=-1;break;case"right":M=Y?p.left-P+oe:f.right+P,A=G?q?p.top+h.height/2:p.bottom-h.height/2+Ee:Q+b,K=-.5;break;case"rightTop":M=Y?p.left-P+oe:f.right+P,A=G?p.top:T?Q-te+b:f.top+b;break;case"rightBottom":M=Y?p.left-P+oe:f.right+P,A=G?p.bottom+Ee:T?Q+te+b:f.bottom+b,K=-1;break;case"leftTopOver":M=f.left-P,A=f.top-P;break;case"rightTopOver":M=f.right+P,A=f.top-P,W=-1;break;case"leftBottomOver":M=f.left-P,A=f.bottom+P,K=-1;break;case"rightBottomOver":M=f.right+P,A=f.bottom+P,W=-1,K=-1;break}const se=this.calcTransformOrigin(m,f,W,K),me=this._adapter.containerIsBody();if(M=M-p.left,A=A-p.top,pe&&(M/=h.width/this._adapter.getContainer().clientWidth),pe&&(A/=h.height/this._adapter.getContainer().clientHeight),me&&!this._adapter.containerIsRelativeOrAbsolute()){const we=this._adapter.getDocumentElementBounding();M+=p.left-we.left,A+=p.top-we.top}M=me?M:M+p.scrollLeft,A=me?A:A+p.scrollTop;const ue=f.height;if(this.getProp("showArrow")&&!w&&ue<=(I/2+$)*2){const we=ue/2-($+I/2);(m.includes("Top")||m.includes("Bottom"))&&!m.includes("Over")&&(A=m.includes("Top")?A+we:A-we)}const he={left:this._roundPixel(M),top:this._roundPixel(A)};let ce="";return W!=null&&(ce+=`translateX(${W*100}%) `,Object.defineProperty(he,"translateX",{enumerable:!1,value:W})),K!=null&&(ce+=`translateY(${K*100}%) `,Object.defineProperty(he,"translateY",{enumerable:!1,value:K})),se!=null&&(he.transformOrigin=se),ce&&(he.transform=ce),he}isLR(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n.includes("left")||n.includes("right")}isTB(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n.includes("top")||n.includes("bottom")}isReverse(n,i,o){return n<o&&i>o}isOverFlow(n,i,o){return n<o&&i<o}isHalfOverFlow(n,i,o){return n<o||i<o}isHalfAllEnough(n,i,o){return n>=o||i>=o}getReverse(n,i,o,a){return n&&a||o}adjustPosIfNeed(n,i,o,a,u){const{innerWidth:f,innerHeight:p}=window,{margin:h}=this.getProps(),m=typeof h=="number"?h:h.marginLeft,v=typeof h=="number"?h:h.marginTop,w=typeof h=="number"?h:h.marginRight,C=typeof h=="number"?h:h.marginBottom;let _=!1,T=!1;const P=this.getProp("spacing");let b=P,N=0;if(typeof P!="number"){const I=n.includes("top")||n.includes("bottom");b=I?P.y:P.x,N=I?P.x:P.y}if(a.width>0&&a.height>0){const I=o.left,$=o.right,F=o.top,U=o.bottom,M=f-I,A=p-F,W=f-$,K=p-U,Z=a.width>o.width,Q=a.height>o.height,oe=F-v<a.height+b&&K-C>a.height+b,te=I-m<a.width+b&&W-w>a.width+b,ve=K-C<a.height+b&&F-v>a.height+b,Pe=W-w<a.width+b&&I-m>a.width+b;A-C<a.height+b&&U-v>a.height+b,U-v<a.height+b&&A-C>a.height+b;const Ee=A<a.height+N&&U>a.height+N,ye=U<a.height+N&&A>a.height+N,G=M<a.width+N&&$>a.width+N,Y=$<a.width+N&&M>a.width+N,E=A<a.height+b&&U>a.height+b,q=U<a.height+b&&A>a.height+b,X=M<a.width&&$>a.width,pe=$<a.width&&M>a.width,se=F-u.top,me=I-u.left,ue=se+o.height,he=me+o.width,ce=u.bottom-U,we=u.right-$,gt=ce+o.height,ot=we+o.width,vt=this.isReverse(se-v,ce-C,a.height+b),Mn=this.isReverse(me-m,we-w,a.width+b),fr=this.isReverse(ce-C,se-v,a.height+b),Oe=this.isReverse(we-w,me-m,a.width+b);this.isReverse(gt-C,ue-v,a.height+b),this.isReverse(ue-v,gt-C,a.height+b);const _n=this.isReverse(gt,ue,a.height+N),_e=this.isReverse(ue,gt,a.height+N),Qt=this.isReverse(ot,he,a.width+N),Mt=this.isReverse(he,ot,a.width+N),lt=o.height/2,Ve=o.width/2,ut=this.isOverFlow(F-v,K-C,a.height+b),He=this.isOverFlow(I-m,W-w,a.width+b),Yt=this.isOverFlow(U-v,A-C,a.height+b),Xt=this.isOverFlow($-m,M-w,a.width+b),dr=this.isHalfOverFlow(U-lt,A-lt,(a.height+N)/2),Cn=this.isHalfOverFlow($-Ve,M-Ve,(a.width+N)/2),ct=this.isHalfAllEnough(U-lt,A-lt,(a.height+N)/2),fn=this.isHalfAllEnough($-Ve,M-Ve,(a.width+N)/2),$t=this.isOverFlow(se-v,ce-C,a.height+b),Zt=this.isOverFlow(me-m,we-w,a.width+b),$n=this.isOverFlow(ue-v,gt-C,a.height+b),yt=this.isOverFlow(he-m,ot-w,a.width+b),Tt=this.isHalfOverFlow(ue-lt,gt-lt,(a.height+N)/2),Vo=this.isHalfOverFlow(he-Ve,ot-Ve,(a.width+N)/2),Fn=this.isHalfAllEnough(ue-lt,gt-lt,(a.height+N)/2),qn=this.isHalfAllEnough(he-Ve,ot-Ve,(a.width+N)/2),pr=this.getReverse(ut,$t,oe,vt),hr=this.getReverse(He,Zt,te,Mn),mr=this.getReverse(ut,$t,ve,fr),dn=this.getReverse(He,Zt,Pe,Oe),Rt=this.getReverse(Yt,$n,Ee,_n),gr=this.getReverse(Yt,$n,ye,_e),En=this.getReverse(Xt,yt,G,Qt),vr=this.getReverse(Xt,yt,Y,Mt),ki=dr&&Tt,Ni=Cn&&Vo;switch(n){case"top":pr&&(n=this._adjustPos(n,!0)),Ni&&(En||vr)&&(n=this._adjustPos(n,!0,"expand",En?"Right":"Left"));break;case"topLeft":pr&&(n=this._adjustPos(n,!0)),En&&Z&&(n=this._adjustPos(n)),T&&(fn||qn)&&(n=this._adjustPos(n,!0,"reduce"));break;case"topRight":pr&&(n=this._adjustPos(n,!0)),vr&&Z&&(n=this._adjustPos(n)),T&&(fn||qn)&&(n=this._adjustPos(n,!0,"reduce"));break;case"left":hr&&(n=this._adjustPos(n)),ki&&(Rt||gr)&&(n=this._adjustPos(n,!1,"expand",Rt?"Bottom":"Top"));break;case"leftTop":hr&&(n=this._adjustPos(n)),Rt&&Q&&(n=this._adjustPos(n,!0)),_&&(ct||Fn)&&(n=this._adjustPos(n,!1,"reduce"));break;case"leftBottom":hr&&(n=this._adjustPos(n)),gr&&Q&&(n=this._adjustPos(n,!0)),_&&(ct||Fn)&&(n=this._adjustPos(n,!1,"reduce"));break;case"bottom":mr&&(n=this._adjustPos(n,!0)),Ni&&(En||vr)&&(n=this._adjustPos(n,!0,"expand",En?"Right":"Left"));break;case"bottomLeft":mr&&(n=this._adjustPos(n,!0)),En&&Z&&(n=this._adjustPos(n)),T&&(fn||qn)&&(n=this._adjustPos(n,!0,"reduce"));break;case"bottomRight":mr&&(n=this._adjustPos(n,!0)),vr&&Z&&(n=this._adjustPos(n)),T&&(fn||qn)&&(n=this._adjustPos(n,!0,"reduce"));break;case"right":dn&&(n=this._adjustPos(n)),ki&&(Rt||gr)&&(n=this._adjustPos(n,!1,"expand",Rt?"Bottom":"Top"));break;case"rightTop":dn&&(n=this._adjustPos(n)),Rt&&Q&&(n=this._adjustPos(n,!0)),_&&(ct||Fn)&&(n=this._adjustPos(n,!1,"reduce"));break;case"rightBottom":dn&&(n=this._adjustPos(n)),gr&&Q&&(n=this._adjustPos(n,!0)),_&&(ct||Fn)&&(n=this._adjustPos(n,!1,"reduce"));break;case"leftTopOver":E&&(n=this._adjustPos(n,!0)),X&&(n=this._adjustPos(n));break;case"leftBottomOver":q&&(n=this._adjustPos(n,!0)),X&&(n=this._adjustPos(n));break;case"rightTopOver":E&&(n=this._adjustPos(n,!0)),pe&&(n=this._adjustPos(n));break;case"rightBottomOver":q&&(n=this._adjustPos(n,!0)),pe&&(n=this._adjustPos(n));break}this.isTB(n)&&(_=ut&&$t,n==="top"||n==="bottom"?T=Cn&&Vo||$<0||W<0:T=Xt&&yt||$<0||W<0),this.isLR(n)&&(T=He&&Zt,n==="left"||n==="right"?_=dr&&Tt||F<0||A<0:_=Yt&&$n||F<0||A<0)}return{position:n,isHeightOverFlow:_,isWidthOverFlow:T}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.getContainerPosition()||!this._adapter.containerIsBody()||this._adapter.updateContainerPosition()}_handleTriggerKeydown(n){const{closeOnEsc:i,disableArrowKeyDown:o}=this.getProps(),a=this._adapter.getContainer(),u=this._adapter.getFocusableElements(a),f=u.length;switch(n&&n.key){case"Escape":Lx(n),i&&this._handleEscKeyDown(n);break;case"ArrowUp":!o&&f&&this._handleTriggerArrowUpKeydown(u,n);break;case"ArrowDown":!o&&f&&this._handleTriggerArrowDownKeydown(u,n);break}}focusTrigger(){const{trigger:n,returnFocusOnClose:i,preventScroll:o}=this.getProps();if(i&&n!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:o})}}_handleEscKeyDown(n){const{trigger:i}=this.getProps();i!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(n)}_handleContainerTabKeyDown(n,i){const{preventScroll:o}=this.getProps(),a=this._adapter.getActiveElement();n[n.length-1]===a&&(n[0].focus({preventScroll:o}),i.preventDefault())}_handleContainerShiftTabKeyDown(n,i){const{preventScroll:o}=this.getProps(),a=this._adapter.getActiveElement();n[0]===a&&(n[n.length-1].focus({preventScroll:o}),i.preventDefault())}_handleTriggerArrowDownKeydown(n,i){const{preventScroll:o}=this.getProps();n[0].focus({preventScroll:o}),i.preventDefault()}_handleTriggerArrowUpKeydown(n,i){const{preventScroll:o}=this.getProps();n[n.length-1].focus({preventScroll:o}),i.preventDefault()}};const Mx={PREFIX:`${Wt}-tooltip`},Po={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Ir={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function Ep(r){return`${r}-${new Date().getTime()}-${Math.random()}`}function Kw(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:n="",length:i=7}=r,o="0123456789abcdefghijklmnopqrstuvwxyz",a=o.length;let u="";for(let f=0;f<i;f++){const p=Math.floor(Math.random()*a);u+=o.charAt(p)}return n?`${n}-${u}`:u}var sp,M0;function $x(){if(M0)return sp;M0=1;var r=Yp(),n=Ia(),i=Xp(),o=Kt(),a=Bp();function u(f,p,h,m){if(!o(f))return f;p=n(p,f);for(var v=-1,w=p.length,C=w-1,_=f;_!=null&&++v<w;){var T=a(p[v]),P=h;if(T==="__proto__"||T==="constructor"||T==="prototype")return f;if(v!=C){var b=_[T];P=m?m(b,T,_):void 0,P===void 0&&(P=o(b)?b:i(p[v+1])?[]:{})}r(_,T,P),_=_[T]}return f}return sp=u,sp}var ap,$0;function Fx(){if($0)return ap;$0=1;var r=$x();function n(i,o,a){return i==null?i:r(i,o,a)}return ap=n,ap}Fx();var lp,F0;function qx(){if(F0)return lp;F0=1;var r=Ww(),n=1,i=4;function o(a,u){return u=typeof u=="function"?u:void 0,r(a,n|i,u)}return lp=o,lp}qx();class zx{constructor(){this.config={}}}const ca=new zx;var q0=function(r,n,i,o){function a(u){return u instanceof i?u:new i(function(f){f(u)})}return new(i||(i=Promise))(function(u,f){function p(v){try{m(o.next(v))}catch(w){f(w)}}function h(v){try{m(o.throw(v))}catch(w){f(w)}}function m(v){v.done?u(v.value):a(v.value).then(p,h)}m((o=o.apply(r,n||[])).next())})};function oa(r,n){r&&typeof r.stopPropagation=="function"&&r.stopPropagation(),r.nativeEvent&&typeof r.nativeEvent.stopImmediatePropagation=="function"&&r.nativeEvent.stopImmediatePropagation()}const Qw=r=>L.isValidElement(r)&&ke(r.type,"elementType")==="Icon";function Bx(){return document?document.activeElement:null}function Ux(r){if(!bo(r))return[];const i=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(r.querySelectorAll(i))}function nh(r,n){return q0(this,void 0,void 0,function*(){if(n===0){yield r();return}else{yield new Promise(i=>{setTimeout(()=>q0(this,void 0,void 0,function*(){yield nh(r,n-1),i()}),0)});return}})}function za(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=()=>{var o,a;return((a=(o=ca?.config)===null||o===void 0?void 0:o.overrideDefaultProps)===null||a===void 0?void 0:a[r])||{}};return new Proxy(Object.assign({},n),{get(o,a,u){const f=i();return a in f?f[a]:Reflect.get(o,a,u)},set(o,a,u,f){return Reflect.set(o,a,u,f)},ownKeys(){const o=i();return Array.from(new Set([...Reflect.ownKeys(n),...Object.keys(o)]))},getOwnPropertyDescriptor(o,a){const u=i();return a in u?Reflect.getOwnPropertyDescriptor(u,a):Reflect.getOwnPropertyDescriptor(o,a)}})}const cr=L.createContext({}),Hx=()=>document.body;class Ba extends R.PureComponent{constructor(n,i){var o;super(n),o=this,this.initContainer=function(a){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var f,p;try{let h;if(!o.el||!(!((f=o.state)===null||f===void 0)&&f.container)||!Array.from(o.state.container.childNodes).includes(o.el)){o.el=document.createElement("div");const v=(o.props.getPopupContainer||a.getPopupContainer||Hx)();return v.appendChild(o.el),o.addStyle(o.props.style),o.addClass(o.props.prefixCls,a,o.props.className),h=v,h}}catch(h){if(!u)throw h}return(p=o.state)===null||p===void 0?void 0:p.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(o.el)for(const u of Object.keys(a))o.el.style[u]=a[u]},this.addClass=function(a){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.context;const{direction:f}=u;for(var p=arguments.length,h=new Array(p>2?p-2:0),m=2;m<p;m++)h[m-2]=arguments[m];const v=Ne(a,...h,{[`${a}-rtl`]:f==="rtl"});o.el&&(o.el.className=v)},this.state={container:this.initContainer(i,!0)}}componentDidMount(){const n=this.initContainer(this.context);n!==this.state.container&&this.setState({container:n})}componentDidUpdate(n){const{didUpdate:i}=this.props;i&&i(n)}componentWillUnmount(){const{container:n}=this.state;n&&n.removeChild(this.el)}render(){const{state:n,props:i}=this;return n.container?qa.createPortal(i.children,this.el):null}}Ba.contextType=cr;Ba.defaultProps={prefixCls:`${Wt}-portal`};Ba.propTypes={children:y.node,prefixCls:y.string,getPopupContainer:y.func,className:y.string,didUpdate:y.func};var Wx=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const Gx=r=>{const{className:n,style:i}=r,o=Wx(r,["className","style"]);return L.createElement("svg",Object.assign({"aria-hidden":!0,className:n,style:i},o,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),L.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))};var Vx=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const Kx=r=>{const{className:n,style:i}=r,o=Vx(r,["className","style"]);return L.createElement("svg",Object.assign({"aria-hidden":!0,className:n,style:i},o,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),L.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},Qx=y.shape({offsetX:y.number,offsetY:y.number,width:y.number,height:y.number});class rh extends L.Component{constructor(n){super(n),this.handleAnimationStart=()=>{var i,o;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var i,o;(o=(i=this.props).onAnimationEnd)===null||o===void 0||o.call(i,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var n,i,o,a;(i=(n=this.props).onAnimationStart)===null||i===void 0||i.call(n),this.props.motion||((a=(o=this.props).onAnimationEnd)===null||a===void 0||a.call(o,!1),this.setState({isAnimating:!1}))}componentDidUpdate(n,i,o){const a=Object.keys(this.props).filter(u=>!Vw(this.props[u],n[u]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var u,f,p,h;(f=(u=this.props).onAnimationStart)===null||f===void 0||f.call(u),this.props.motion||((h=(p=this.props).onAnimationEnd)===null||h===void 0||h.call(p,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var n;return this.props.motion?this.props.children({animationClassName:(n=this.state.currentClassName)!==null&&n!==void 0?n:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}rh.defaultProps={motion:!0,replayKey:""};var z0=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const fa=Mx.PREFIX,Yx=Po.POSITION_SET,Xx=Po.TRIGGER_SET,Zx=["flex","block","table","flow-root","grid"],Jx=()=>document.body;class lr extends Ei{constructor(n){super(n),this.isAnimating=!1,this.cachedLatestTransitionState="enter",this.setContainerEl=i=>this.containerEl={current:i},this.isSpecial=i=>{if(bo(i))return!!i.disabled;if(R.isValidElement(i)){if(ke(i,"props.disabled"))return Po.STATUS_DISABLED;const a=ke(i,"props.loading"),u=!ar(i)&&!ar(i.type)&&(ke(i,"type.elementType")==="Button"||ke(i,"type.elementType")==="IconButton");if(a&&u)return Po.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:i}=this.state,{showArrow:o,prefixCls:a,style:u}=this.props;let f=null;const p=Ne([`${a}-icon-arrow`]),h=ke(u,"backgroundColor"),m=i?.includes("left")||i?.includes("right")?L.createElement(Kx,null):L.createElement(Gx,null);return o&&(R.isValidElement(o)?f=o:f=L.cloneElement(m,{className:p,style:{color:h,fill:"currentColor"}})),f},this.handlePortalInnerClick=i=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&oa(i)},this.handlePortalMouseDown=i=>{this.props.stopPropagation&&oa(i)},this.handlePortalFocus=i=>{this.props.stopPropagation&&oa(i)},this.handlePortalBlur=i=>{this.props.stopPropagation&&oa(i)},this.handlePortalInnerKeyDown=i=>{this.foundation.handleContainerKeydown(i)},this.renderContentNode=i=>{const o={initialFocusRef:this.initialFocusRef};return Up(i)?i(o):i},this.renderPortal=()=>{const{containerStyle:i={},visible:o,portalEventSet:a,placement:u,displayNone:f,transitionState:p,id:h,isPositionUpdated:m}=this.state,{prefixCls:v,content:w,showArrow:C,style:_,motion:T,role:P,zIndex:b}=this.props,N=this.renderContentNode(w),{className:I}=this.props,$=this.context.direction,F=Ne(I,{[`${v}-wrapper`]:!0,[`${v}-wrapper-show`]:o,[`${v}-with-arrow`]:!!C,[`${v}-rtl`]:$==="rtl"}),U=this.renderIcon(),M=Fa(i,T?["transformOrigin"]:void 0),A=ke(i,"transformOrigin"),W=ke(_,"opacity",null),K=W||1,Z=L.createElement(rh,{fillMode:"forwards",animationState:p,motion:T&&m,startClassName:p==="enter"?`${fa}-animation-show`:`${fa}-animation-hide`,onAnimationStart:()=>this.isAnimating=!0,onAnimationEnd:()=>{var Q,oe;p==="leave"&&(this.didLeave(),(oe=(Q=this.props).afterClose)===null||oe===void 0||oe.call(Q)),this.isAnimating=!1}},Q=>{let{animationStyle:oe,animationClassName:te,animationEventsNeedBind:ve}=Q;return L.createElement("div",Object.assign({className:Ne(F,te),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oe),f?{display:"none"}:{}),{transformOrigin:A}),_),W?{opacity:m?K:"0"}:{})},a,ve,{role:P,"x-placement":u,id:h}),L.createElement("div",{className:`${fa}-content`},N),U)});return L.createElement(Ba,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:b}},L.createElement("div",{tabIndex:-1,className:`${Wt}-portal-inner`,style:M,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},Z))},this.wrapSpan=i=>{const{wrapperClassName:o}=this.props,a=ke(i,"props.style.display"),u=ke(i,"props.block"),f=typeof i=="string",p={};return f||(p.display="inline-block"),(u||Zx.includes(a))&&(p.width="100%"),L.createElement("span",{className:o,style:p},i)},this.mergeEvents=(i,o)=>{const a={};return Ix(o,(u,f)=>{typeof u=="function"&&(a[f]=function(){u(...arguments),i&&typeof i[f]=="function"&&i[f](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:n.position||"top",transitionStyle:{},isPositionUpdated:!1,id:n.wrapperId,displayNone:!1},this.foundation=new Dx(this.adapter),this.eventManager=new jx,this.triggerEl=L.createRef(),this.containerEl=L.createRef(),this.initialFocusRef=L.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var n=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return n.eventManager.on(...arguments)},off:function(){return n.eventManager.off(...arguments)},getAnimatingState:()=>this.isAnimating,insertPortal:(i,o)=>{var{position:a}=o,u=z0(o,["position"]);this.cachedLatestTransitionState="enter",this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),u)},()=>{setTimeout(()=>{this.cachedLatestTransitionState==="enter"&&this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:i=>{this.setState({triggerEventSet:i})},registerPortalEvent:i=>{this.setState({portalEventSet:i})},getTriggerBounding:()=>{const i=this.adapter.getTriggerNode();return this.triggerEl.current=i,i&&i.getBoundingClientRect()},getPopupContainerRect:()=>{const i=this.getPopupContainer();let o=null;if(i&&bo(i)){const a=Ax(i.getBoundingClientRect());o=Object.assign(Object.assign({},a),{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop})}return o},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const i=this.getPopupContainer();return window.getComputedStyle(i).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const i=this.containerEl&&this.containerEl.current;return i&&i.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:i=>{var{position:o}=i,a=z0(i,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:o,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(i,o)=>{this.setState({displayNone:i},o)},updatePlacementAttr:i=>{this.setState({placement:i})},togglePortalVisible:(i,o)=>{const a={};a.transitionState=i?"enter":"leave",a.visible=i,this.cachedLatestTransitionState=a.transitionState,this.mounted&&this.setState(a,()=>{o()})},registerClickOutsideHandler:i=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=o=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,u=this.containerEl&&this.containerEl.current;a=hi.findDOMNode(a),u=hi.findDOMNode(u);const f=o.target,p=o.composedPath&&o.composedPath()||[f],h=this.props.clickTriggerToHide?a&&a.contains(f)||p.includes(a):!1;(a&&!a.contains(f)&&u&&!u.contains(f)&&!(p.includes(u)||p.includes(a))||h)&&(this.props.onClickOutSide(o),i())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:i=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=Sy(o=>{if(!this.mounted)return!1;i(o)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:i=>{this.props.onVisibleChange(i)},registerScrollHandler:i=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=Sy(o=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(o.target.contains(a)){const f={x:o.target.scrollLeft,y:o.target.scrollTop};i(f)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const i=document.body.getAttribute("data-position");if(i){this.containerPosition=i;return}requestAnimationFrame(()=>{const o=this.getPopupContainer();if(o&&bo(o)){const u=window.getComputedStyle(o).getPropertyValue("position");document.body.setAttribute("data-position",u),this.containerPosition=u}})},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let i=this.triggerEl.current;return bo(this.triggerEl.current)||(i=hi.findDOMNode(this.triggerEl.current)),i},getFocusableElements:i=>Ux(i),getActiveElement:()=>Bx(),setInitialFocus:()=>{const{preventScroll:i}=this.props,o=ke(this,"initialFocusRef.current");o&&"focus"in o&&o.focus({preventScroll:i})},notifyEscKeydown:i=>{this.props.onEscKeyDown(i)},setId:()=>{this.setState({id:Kw()})},getTriggerDOM:()=>this.triggerEl.current?hi.findDOMNode(this.triggerEl.current):null})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||Jx,this.foundation.init(),nh(()=>{let n=this.triggerEl.current;n&&(n instanceof HTMLElement||(n=qa.findDOMNode(n))),this.foundation.updateStateIfCursorOnTrigger(n)},1)}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(n,i){Cp(this.props.mouseLeaveDelay<this.props.mouseEnterDelay,"[Semi Tooltip] 'mouseLeaveDelay' cannot be less than 'mouseEnterDelay', which may cause the dropdown layer to not be hidden."),n.visible!==this.props.visible&&(["hover","focus"].includes(this.props.trigger)?this.props.visible?this.foundation.delayShow():this.foundation.delayHide():this.props.visible?this.foundation.show():this.foundation.hide()),Vw(n.rePosKey,this.props.rePosKey)||this.rePosition()}render(){const{isInsert:n,triggerEventSet:i,visible:o,id:a}=this.state,{wrapWhenSpecial:u,role:f,trigger:p}=this.props;let{children:h}=this.props;const m=Object.assign({},ke(h,"props.style")),v={};if(u){const _=this.isSpecial(h);_?(m.pointerEvents="none",_===Po.STATUS_DISABLED&&(v.cursor="not-allowed"),h=R.cloneElement(h,{style:m}),p!=="custom"&&(h=this.wrapSpan(h)),this.isWrapped=!0):R.isValidElement(h)||(h=this.wrapSpan(h),this.isWrapped=!0)}let w={};f==="dialog"?(w["aria-expanded"]=o?"true":"false",w["aria-haspopup"]="dialog",w["aria-controls"]=a):w["aria-describedby"]=a;const C=L.cloneElement(h,Object.assign(Object.assign(Object.assign(Object.assign({},w),h.props),this.mergeEvents(h.props,i)),{style:Object.assign(Object.assign({},ke(h,"props.style")),v),className:Ne(ke(h,"props.className")),ref:_=>{this.triggerEl.current=_;const{ref:T}=h;typeof T=="function"?T(_):T&&typeof T=="object"&&(T.current=_)},tabIndex:h.props.tabIndex||0,"data-popupid":a}));return L.createElement(L.Fragment,null,n?this.renderPortal():null,C)}}lr.contextType=cr;lr.propTypes={children:y.node,motion:y.bool,autoAdjustOverflow:y.bool,position:y.oneOf(Yx),getPopupContainer:y.func,mouseEnterDelay:y.number,mouseLeaveDelay:y.number,trigger:y.oneOf(Xx).isRequired,className:y.string,wrapperClassName:y.string,clickToHide:y.bool,clickTriggerToHide:y.bool,visible:y.bool,style:y.object,content:y.oneOfType([y.node,y.func]),prefixCls:y.string,onVisibleChange:y.func,onClickOutSide:y.func,spacing:y.oneOfType([y.number,y.object]),margin:y.oneOfType([y.number,y.object]),showArrow:y.oneOfType([y.bool,y.node]),zIndex:y.number,rePosKey:y.oneOfType([y.string,y.number]),arrowBounding:Qx,transformFromCenter:y.bool,arrowPointAtCenter:y.bool,stopPropagation:y.bool,role:y.string,wrapWhenSpecial:y.bool,guardFocus:y.bool,returnFocusOnClose:y.bool,preventScroll:y.bool,keepDOM:y.bool};lr.__SemiComponentName__="Tooltip";lr.defaultProps=za(lr.__SemiComponentName__,{arrowBounding:Ir.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:fa,role:"tooltip",mouseEnterDelay:Ir.MOUSE_ENTER_DELAY,mouseLeaveDelay:Ir.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:ze,onClickOutSide:ze,spacing:Ir.SPACING,margin:Ir.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Ir.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:ze,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1});var sa={exports:{}},B0;function eO(){if(B0)return sa.exports;B0=1;const r=(n,{target:i=document.body}={})=>{const o=document.createElement("textarea"),a=document.activeElement;o.value=n,o.setAttribute("readonly",""),o.style.contain="strict",o.style.position="absolute",o.style.left="-9999px",o.style.fontSize="12pt";const u=document.getSelection();let f=!1;u.rangeCount>0&&(f=u.getRangeAt(0)),i.append(o),o.select(),o.selectionStart=0,o.selectionEnd=n.length;let p=!1;try{p=document.execCommand("copy")}catch{}return o.remove(),f&&(u.removeAllRanges(),u.addRange(f)),a&&a.focus(),p};return sa.exports=r,sa.exports.default=r,sa.exports}var tO=eO();const nO=it(tO);function xo(){}const rO=L.createContext(null);function up(r){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.width?String(n.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}function go(r){return function(n,i){var o=i!=null&&i.context?String(i.context):"standalone",a;if(o==="formatting"&&r.formattingValues){var u=r.defaultFormattingWidth||r.defaultWidth,f=i!=null&&i.width?String(i.width):u;a=r.formattingValues[f]||r.formattingValues[u]}else{var p=r.defaultWidth,h=i!=null&&i.width?String(i.width):r.defaultWidth;a=r.values[h]||r.values[p]}var m=r.argumentCallback?r.argumentCallback(n):n;return a[m]}}function vo(r){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.width,a=o&&r.matchPatterns[o]||r.matchPatterns[r.defaultMatchWidth],u=n.match(a);if(!u)return null;var f=u[0],p=o&&r.parsePatterns[o]||r.parsePatterns[r.defaultParseWidth],h=Array.isArray(p)?oO(p,function(w){return w.test(f)}):iO(p,function(w){return w.test(f)}),m;m=r.valueCallback?r.valueCallback(h):h,m=i.valueCallback?i.valueCallback(m):m;var v=n.slice(f.length);return{value:m,rest:v}}}function iO(r,n){for(var i in r)if(r.hasOwnProperty(i)&&n(r[i]))return i}function oO(r,n){for(var i=0;i<r.length;i++)if(n(r[i]))return i}function sO(r){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.match(r.matchPattern);if(!o)return null;var a=o[0],u=n.match(r.parsePattern);if(!u)return null;var f=r.valueCallback?r.valueCallback(u[0]):u[0];f=i.valueCallback?i.valueCallback(f):f;var p=n.slice(a.length);return{value:f,rest:p}}}function bp(r){"@babel/helpers - typeof";return bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bp(r)}function aO(r){if(r===null||r===!0||r===!1)return NaN;var n=Number(r);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function ih(r,n){if(n.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+n.length+" present")}function lO(r){ih(1,arguments);var n=Object.prototype.toString.call(r);return r instanceof Date||bp(r)==="object"&&n==="[object Date]"?new Date(r.getTime()):typeof r=="number"||n==="[object Number]"?new Date(r):((typeof r=="string"||n==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var uO={};function cO(){return uO}function U0(r,n){var i,o,a,u,f,p,h,m;ih(1,arguments);var v=cO(),w=aO((i=(o=(a=(u=n?.weekStartsOn)!==null&&u!==void 0?u:n==null||(f=n.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&a!==void 0?a:v.weekStartsOn)!==null&&o!==void 0?o:(h=v.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&i!==void 0?i:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var C=lO(r),_=C.getUTCDay(),T=(_<w?7:0)+_-w;return C.setUTCDate(C.getUTCDate()-T),C.setUTCHours(0,0,0,0),C}function fO(r,n,i){ih(2,arguments);var o=U0(r,i),a=U0(n,i);return o.getTime()===a.getTime()}var dO={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},pO=function(n,i,o){var a,u=dO[n];return typeof u=="string"?a=u:i===1?a=u.one:a=u.other.replace("{{count}}",String(i)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?a+"内":a+"前":a},hO={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},mO={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},gO={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},vO={date:up({formats:hO,defaultWidth:"full"}),time:up({formats:mO,defaultWidth:"full"}),dateTime:up({formats:gO,defaultWidth:"full"})};function H0(r,n,i){var o="eeee p";return fO(r,n,i)?o:r.getTime()>n.getTime()?"'下个'"+o:"'上个'"+o}var yO={lastWeek:H0,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:H0,other:"PP p"},wO=function(n,i,o,a){var u=yO[n];return typeof u=="function"?u(i,o,a):u},SO={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},_O={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},CO={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},EO={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},bO={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},xO={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},OO=function(n,i){var o=Number(n);switch(i?.unit){case"date":return o.toString()+"日";case"hour":return o.toString()+"时";case"minute":return o.toString()+"分";case"second":return o.toString()+"秒";default:return"第 "+o.toString()}},PO={ordinalNumber:OO,era:go({values:SO,defaultWidth:"wide"}),quarter:go({values:_O,defaultWidth:"wide",argumentCallback:function(n){return n-1}}),month:go({values:CO,defaultWidth:"wide"}),day:go({values:EO,defaultWidth:"wide"}),dayPeriod:go({values:bO,defaultWidth:"wide",formattingValues:xO,defaultFormattingWidth:"wide"})},TO=/^(第\s*)?\d+(日|时|分|秒)?/i,RO=/\d+/i,kO={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},NO={any:[/^(前)/i,/^(公元)/i]},IO={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},jO={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},AO={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},LO={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},DO={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},MO={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},$O={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},FO={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},qO={ordinalNumber:sO({matchPattern:TO,parsePattern:RO,valueCallback:function(n){return parseInt(n,10)}}),era:vo({matchPatterns:kO,defaultMatchWidth:"wide",parsePatterns:NO,defaultParseWidth:"any"}),quarter:vo({matchPatterns:IO,defaultMatchWidth:"wide",parsePatterns:jO,defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:vo({matchPatterns:AO,defaultMatchWidth:"wide",parsePatterns:LO,defaultParseWidth:"any"}),day:vo({matchPatterns:DO,defaultMatchWidth:"wide",parsePatterns:MO,defaultParseWidth:"any"}),dayPeriod:vo({matchPatterns:$O,defaultMatchWidth:"any",parsePatterns:FO,defaultParseWidth:"any"})},zO={code:"zh-CN",formatDistance:pO,formatLong:vO,formatRelative:wO,localize:PO,match:qO,options:{weekStartsOn:1,firstWeekContainsDate:4}};const xp={code:"zh-CN",currency:"CNY",dateFnsLocale:zO,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},Tabs:{more:"更多"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条",descend:"点击降序",ascend:"点击升序",cancelSort:"取消排序"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"},Chat:{deleteConfirm:"确认删除该会话吗?",clearContext:"上下文已清除",copySuccess:"复制成功",stop:"停止",copy:"复制",copied:"复制成功",dropAreaText:"将文件放到这里"},UserGuide:{skip:"跳过",next:"下一步",prev:"上一步",finish:"完成"},InputNumber:{},JsonViewer:{search:"查找",replace:"替换",replaceAll:"全部替换"},VideoPlayer:{rateChange:"切换速率至 ${rate}",qualityChange:"切换清晰度至${quality}",routeChange:"切换线路至${route}",mirror:"镜像",cancelMirror:"取消镜像",loading:"加载中...",stall:"加载失败",noResource:"暂无资源",videoError:"视频加载错误"}};class ko extends R.Component{renderChildren(n,i){const{componentName:o}=this.props;let a=n;n?.code||(a=xp);const u=ke(xp,"dateFnsLocale"),f=ke(a,"dateFnsLocale",u),p=ke(a,"currency");return i(a[o],a.code,f,p)}render(){const{children:n}=this.props;return L.createElement(cr.Consumer,null,i=>{let{locale:o}=i;return L.createElement(rO.Consumer,null,a=>this.renderChildren(o||a,n))})}}ko.propTypes={componentName:y.string.isRequired,children:y.any};ko.defaultProps={componentName:""};const BO="semi";var UO=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const Yw=L.forwardRef((r,n)=>{const{svg:i,spin:o=!1,rotate:a,style:u,className:f,prefixCls:p=BO,type:h,size:m="default"}=r,v=UO(r,["svg","spin","rotate","style","className","prefixCls","type","size"]),w=Ne(`${p}-icon`,{[`${p}-icon-extra-small`]:m==="extra-small",[`${p}-icon-small`]:m==="small",[`${p}-icon-default`]:m==="default",[`${p}-icon-large`]:m==="large",[`${p}-icon-extra-large`]:m==="extra-large",[`${p}-icon-spinning`]:o===!0,[`${p}-icon-${h}`]:!!h},f),C={};return Number.isSafeInteger(a)&&(C.transform=`rotate(${a}deg)`),Object.assign(C,u),L.createElement("span",Object.assign({role:"img",ref:n,"aria-label":h,className:w,style:C},v),i)});Yw.elementType="Icon";const qr=(r,n)=>{const i=L.forwardRef((o,a)=>L.createElement(Yw,Object.assign({svg:L.createElement(r),type:n,ref:a},o)));return i.elementType="Icon",i};function HO(r){return R.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},r),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor"}))}const WO=qr(HO,"alert_circle");function GO(r){return R.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},r),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m10.23 2.4-8.7 16.67A2 2 0 0 0 3.3 22h17.4a2 2 0 0 0 1.77-2.93L13.77 2.4a2 2 0 0 0-3.54 0ZM13.14 14a1.15 1.15 0 0 1-2.28 0l-.58-4.03a1.73 1.73 0 1 1 3.44 0l-.58 4.03Zm.36 4.49a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}))}const VO=qr(GO,"alert_triangle");function KO(r){return R.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},r),R.createElement("path",{d:"M17.66 19.78a1.5 1.5 0 0 0 2.12-2.12L14.12 12l5.66-5.66a1.5 1.5 0 0 0-2.12-2.12L12 9.88 6.34 4.22a1.5 1.5 0 1 0-2.12 2.12L9.88 12l-5.66 5.66a1.5 1.5 0 0 0 2.12 2.12L12 14.12l5.66 5.66Z",fill:"currentColor"}))}const QO=qr(KO,"close");function YO(r){return R.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},r),R.createElement("path",{d:"M7 4c0-1.1.9-2 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-1V8c0-2-1-3-3-3H7V4Z",fill:"currentColor"}),R.createElement("path",{d:"M5 7a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H5Z",fill:"currentColor"}))}const XO=qr(YO,"copy");function ZO(r){return R.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},r),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm2-16a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-5 3.75c0-.41.34-.75.75-.75h2.75a1 1 0 0 1 1 1v5.5h.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h.75v-5h-.75a.75.75 0 0 1-.75-.75Z",fill:"currentColor"}))}const JO=qr(ZO,"info_circle");function eP(r){return R.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},r),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z",fill:"currentColor"}))}const tP=qr(eP,"tick");function nP(r){return R.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},r),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.88-13.18-6.2 7.6a1.5 1.5 0 0 1-2.37 0l-3.5-4a1.5 1.5 0 1 1 2.37-1.84l2.3 2.46L15.5 8a1.5 1.5 0 1 1 2.38 1.82Z",fill:"currentColor"}))}const rP=qr(nP,"tick_circle"),iP="Enter";function Xw(r){return ke(r,"key")===iP}const cp=ja.PREFIX;class oh extends L.PureComponent{constructor(n){super(n),this.copy=i=>{const{content:o,duration:a,onCopy:u}=this.props,f=nO(o);u&&u(i,o,f),this.setCopied(o,a)},this.setCopied=(i,o)=>{this.setState({copied:!0,item:i}),this._timeId=setTimeout(()=>{this.resetCopied()},o*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:i}=this.props;return typeof i<"u"?i:L.createElement(ko,{componentName:"Typography"},o=>L.createElement("span",null,L.createElement(tP,null),o.copied))},this.renderCopyIcon=()=>{const{icon:i}=this.props,o={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:u=>Xw(u)&&this.copy(u)},a=L.createElement("a",{className:`${cp}-action-copy-icon`},L.createElement(XO,Object.assign({onClick:this.copy},o)));return L.isValidElement(i)?L.cloneElement(i,o):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:n,className:i,forwardRef:o,copyTip:a,render:u}=this.props,{copied:f}=this.state,p=Ne(i,{[`${cp}-action-copy`]:!f,[`${cp}-action-copied`]:f});return u?u(f,this.copy,this.props):L.createElement(ko,{componentName:"Typography"},h=>L.createElement("span",{style:Object.assign({marginLeft:"4px"},n),className:p,ref:o},f?this.renderSuccessTip():L.createElement(lr,{content:typeof a<"u"?a:h.copy},this.renderCopyIcon())))}}oh.propTypes={content:y.string,onCopy:y.func,successTip:y.node,copyTip:y.node,duration:y.number,style:y.object,className:y.string,icon:y.node};oh.defaultProps={content:"",onCopy:xo,duration:3,style:{},className:""};const Zw={PREFIX:`${Wt}-popover`,ARROW:`${Wt}-popover-icon-arrow`},Jw={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"]},gi={ARROW_BOUNDING:Object.assign(Object.assign({},Ir.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var oP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const eS=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{position:n="",className:i,arrowStyle:o,popStyle:a}=r,u=oP(r,["position","className","arrowStyle","popStyle"]),f=n.indexOf("top")===0||n.indexOf("bottom")===0,p=Ne(i,Zw.ARROW),h=ke(o,"borderOpacity"),m=ke(o,"backgroundColor",ke(a,"backgroundColor")),v=ke(o,"borderColor",ke(a,"borderColor")),w=Object.assign(Object.assign({},u),{width:gi.ARROW_BOUNDING.width,height:gi.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:p});return f?L.createElement("svg",Object.assign({},w),L.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",style:{fill:v,opacity:h}}),L.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",style:{fill:m}})):L.createElement("svg",Object.assign({},w),L.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",style:{fill:v,opacity:h}}),L.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",style:{fill:m}}))};eS.propTypes={position:y.string,className:y.string,arrowStyle:y.object,popStyle:y.object};var sP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const aP=Jw.POSITION_SET,lP=Jw.TRIGGER_SET;class Dr extends L.PureComponent{constructor(n){super(n),this.focusTrigger=()=>{var i;(i=this.tooltipRef.current)===null||i===void 0||i.focusTrigger()},this.renderPopCard=i=>{let{initialFocusRef:o}=i;const{content:a,contentClassName:u,prefixCls:f}=this.props,{direction:p}=this.context,h=Ne(f,u,{[`${f}-rtl`]:p==="rtl"}),m=this.renderContentNode({initialFocusRef:o,content:a});return L.createElement("div",{className:h},L.createElement("div",{className:`${f}-content`},m))},this.renderContentNode=i=>{const{initialFocusRef:o,content:a}=i,u={initialFocusRef:o};return Up(a)?a(u):a},this.tooltipRef=L.createRef()}render(){const n=this.props,{children:i,prefixCls:o,showArrow:a,arrowStyle:u={},arrowBounding:f,position:p,style:h,trigger:m}=n,v=sP(n,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:w}=this.props;const C={position:p,className:"",popStyle:h,arrowStyle:u},_=a?L.createElement(eS,Object.assign({},C)):!1;th(w)&&(w=a?gi.SPACING_WITH_ARROW:gi.SPACING);const T=m==="click"||m==="custom"?"dialog":"tooltip";return L.createElement(lr,Object.assign({guardFocus:!0,ref:this.tooltipRef},v,{trigger:m,position:p,style:h,content:this.renderPopCard,prefixCls:o,spacing:w,showArrow:_,arrowBounding:f,role:T}),i)}}Dr.contextType=cr;Dr.propTypes={children:y.node,content:y.oneOfType([y.node,y.func]),visible:y.bool,autoAdjustOverflow:y.bool,motion:y.bool,position:y.oneOf(aP),margin:y.oneOfType([y.number,y.object]),mouseEnterDelay:y.number,mouseLeaveDelay:y.number,trigger:y.oneOf(lP).isRequired,contentClassName:y.oneOfType([y.string,y.array]),onVisibleChange:y.func,onClickOutSide:y.func,style:y.object,spacing:y.oneOfType([y.number,y.object]),zIndex:y.number,showArrow:y.bool,arrowStyle:y.shape({borderColor:y.string,backgroundColor:y.string,borderOpacity:y.oneOfType([y.string,y.number])}),arrowPointAtCenter:y.bool,arrowBounding:y.object,prefixCls:y.string,guardFocus:y.bool,disableArrowKeyDown:y.bool};Dr.__SemiComponentName__="Popover";Dr.defaultProps=za(Dr.__SemiComponentName__,{arrowBounding:gi.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:gi.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:Zw.PREFIX,onClickOutSide:ze,onEscKeyDown:ze,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0});let Me;function fp(r){if(!r)return 0;const n=r.match(/^\d*(\.\d*)?/);return n?Number(n[0]):0}function uP(r){return Array.prototype.slice.apply(r).map(i=>`${i}: ${r.getPropertyValue(i)};`).join("")}const cP=function(r,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,f=arguments.length>6?arguments[6]:void 0,p=arguments.length>7?arguments[7]:void 0;if(i.length===0)return"";Me||(Me=document.createElement("div"),Me.setAttribute("aria-hidden","true"),document.body.appendChild(Me));const h=window.getComputedStyle(r),m=uP(h),v=fp(h.lineHeight),w=Math.round(v*(n+1)+fp(h.paddingTop)+fp(h.paddingBottom));Me.setAttribute("style",m),Me.style.position="fixed",Me.style.left="0",h.getPropertyValue("width")==="auto"&&r.offsetWidth&&(Me.style.width=`${r.offsetWidth}px`),Me.style.height="auto",Me.style.top="-999999px",Me.style.zIndex="-1000",p&&(Me.style.fontWeight="600"),Me.style.textOverflow="clip",Me.style.webkitLineClamp="none",Me.innerHTML="";function C(){const $=Me.scrollWidth<=Me.offsetWidth,F=Me.scrollHeight<w;return n===1?$&&F:F}const _=document.createElement("span"),T=document.createTextNode(i);if(_.appendChild(T),u.length>0){const $=document.createTextNode(u);_.appendChild($)}Me.appendChild(_),Object.values(Fa(o,"expand")).map($=>$&&Me.appendChild($.cloneNode(!0)));function P(){Me.innerHTML="",Me.appendChild(_),Object.values(o).map($=>$&&Me.appendChild($.cloneNode(!0)))}function b($,F){const U=$.length;return F?f==="end"?$.slice(0,F)+a:$.slice(0,F)+a+$.slice(U-F,U):a}function N($,F){let U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F.length,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const W=Math.floor((U+M)/2),K=b(F,W);if($.textContent=K,U>=M-1&&M>0)for(let Z=M;Z>=U;Z-=1){const Q=b(F,Z);if($.textContent=Q,C())return Q}else if(M===0)return a;return C()?N($,F,W,M,W):N($,F,U,W,A)}let I=i;return C()||(P(),I=N(T,i,0,f==="middle"?Math.floor(i.length/2):i.length)),Me.innerHTML="",I},tS=L.createContext("normal");var wa;(function(r){r.Width="width",r.Height="height",r.All="all"})(wa||(wa={}));class sh extends Ei{constructor(n){var i;super(n),i=this,this.formerPropertyValue=new Map,this.getElement=()=>{try{return qa.findDOMNode(this.childNode||this)}catch{return null}},this.handleResizeEventTriggered=o=>{var a,u,f,p;if(this.props.observerProperty===wa.All)(u=(a=this.props).onResize)===null||u===void 0||u.call(a,o);else{const h=[];for(const m of o)this.formerPropertyValue.has(m.target)?m.contentRect[this.props.observerProperty]!==this.formerPropertyValue.get(m.target)&&(this.formerPropertyValue.set(m.target,m.contentRect[this.props.observerProperty]),h.push(m)):(this.formerPropertyValue.set(m.target,m.contentRect[this.props.observerProperty]),h.push(m));h.length>0&&((p=(f=this.props).onResize)===null||p===void 0||p.call(f,h))}},this.observeElement=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const a=i.getElement();if(i.observer||(i.observer=new ResizeObserver(i.handleResizeEventTriggered)),!(a&&a instanceof Element)){i.observer.disconnect();return}a===i.element&&!o||(i.observer.disconnect(),i.element=a,i.observer.observe(a),i.props.observeParent&&a.parentNode&&a.parentNode.ownerDocument&&a.parentNode.ownerDocument.defaultView&&a.parentNode instanceof a.parentNode.ownerDocument.defaultView.HTMLElement&&(i._parentNode=a.parentNode,i.observer.observe(i._parentNode)))},this.mergeRef=(o,a)=>{this.childNode=a,typeof o=="function"?o(a):typeof o=="object"&&o&&"current"in o&&(o.current=a)},globalThis.ResizeObserver&&(this.observer=new ResizeObserver(this.handleResizeEventTriggered))}componentDidMount(){var n;(n=this.observeElement)===null||n===void 0||n.call(this)}componentDidUpdate(n){var i;(i=this.observeElement)===null||i===void 0||i.call(this,this.props.observeParent!==n.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}render(){const n=L.Children.only(this.props.children),{ref:i}=n;return L.cloneElement(n,{ref:o=>this.mergeRef(i,o)})}}sh.propTypes={onResize:y.func,observeParent:y.bool,observerProperty:y.string,delayTick:y.number};sh.defaultProps={onResize:()=>{},observeParent:!1,observerProperty:"all",delayTick:0};var dp=function(r,n,i,o){function a(u){return u instanceof i?u:new i(function(f){f(u)})}return new(i||(i=Promise))(function(u,f){function p(v){try{m(o.next(v))}catch(w){f(w)}}function h(v){try{m(o.throw(v))}catch(w){f(w)}}function m(v){v.done?u(v.value):a(v.value).then(p,h)}m((o=o.apply(r,n||[])).next())})},fP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const tt=ja.PREFIX,dP="...",pP=(r,n)=>{const{mark:i,code:o,underline:a,strong:u,link:f,disabled:p}=r;let h=n;const m=(v,w)=>{let C={};v&&(typeof v=="object"&&(C=Object.assign({},v)),h=L.createElement(w,C,h))};return m(i,"mark"),m(o,"code"),m(a&&!f,"u"),m(u,"strong"),m(r.delete,"del"),m(f,p?"span":"a"),h};class zr extends R.Component{constructor(n){super(n),this.observerTakingEffect=!1,this.onResize=i=>dp(this,void 0,void 0,function*(){return this.rafId&&window.cancelAnimationFrame(this.rafId),new Promise(o=>{this.rafId=window.requestAnimationFrame(()=>dp(this,void 0,void 0,function*(){yield this.getEllipsisState(),o()}))})}),this.canUseCSSEllipsis=()=>{const{copyable:i}=this.props,{expandable:o,expandText:a,pos:u,suffix:f}=this.getEllipsisOpt();return!o&&ra(a)&&!i&&u==="end"&&!f.length},this.shouldTruncated=i=>!i||i<1?!1:i<=1?this.compareSingleRow():this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.compareSingleRow=()=>{if(!(document&&document.createRange))return!1;const i=this.wrapperRef.current,o=i.getBoundingClientRect().width,a=Array.from(i.childNodes),u=document.createRange(),f=a.reduce((p,h)=>{var m;return u.selectNodeContents(h),p+((m=u.getBoundingClientRect().width)!==null&&m!==void 0?m:0)},0);return u.detach(),f>o},this.showTooltip=()=>{var i,o;const{isOverflowed:a,isTruncated:u,expanded:f}=this.state,{showTooltip:p,expandable:h,expandText:m}=this.getEllipsisOpt(),v=this.canUseCSSEllipsis(),w=!f&&(v?a:u),_=!h&&ra(m)&&w&&p;if(!_)return _;const T={type:"tooltip"};return typeof p=="object"?p.type&&p.type.toLowerCase()==="popover"?Nb({opts:{showArrow:!0}},p,{opts:{className:Ne({[`${tt}-ellipsis-popover`]:!0,[(i=p?.opts)===null||i===void 0?void 0:i.className]:!!(!((o=p?.opts)===null||o===void 0)&&o.className)})}}):Object.assign(Object.assign({},T),p):T},this.onHover=()=>{if(this.canUseCSSEllipsis()){const{rows:o,suffix:a,pos:u}=this.getEllipsisOpt(),f=this.shouldTruncated(o);this.setState({isOverflowed:f,isTruncated:!1});return}},this.getEllipsisState=()=>dp(this,void 0,void 0,function*(){const{rows:i,suffix:o,pos:a}=this.getEllipsisOpt(),{children:u,strong:f}=this.props;if(!this.wrapperRef||!this.wrapperRef.current){yield this.onResize();return}const{expanded:p}=this.state;if(this.canUseCSSEllipsis())return;if(tb(u))return new Promise(C=>{this.setState({isTruncated:!1,isOverflowed:!1},C)});if(Cp("children"in this.props&&typeof u!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!i||i<0||p)return;const m={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},v=Array.isArray(u)?u.join(""):String(u),w=cP(this.wrapperRef.current,i,v,m,dP,o,a,f);return new Promise(C=>{this.setState({isOverflowed:!1,ellipsisContent:w,isTruncated:v!==w},C)})}),this.toggleOverflow=i=>{const{onExpand:o,expandable:a,collapsible:u}=this.getEllipsisOpt(),{expanded:f}=this.state;o&&o(!f,i),(a&&!f||u&&f)&&this.setState({expanded:!f})},this.getEllipsisOpt=()=>{const{ellipsis:i}=this.props;return i?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:i.expandable?this.expandStr:void 0,collapseText:i.collapsible?this.collapseStr:void 0},typeof i=="object"?i:null):{}},this.renderExpandable=()=>{const{expanded:i,isTruncated:o}=this.state;if(!o)return null;const{expandText:a,expandable:u,collapseText:f,collapsible:p}=this.getEllipsisOpt(),h=!u&&ra(a),m=!p&&ra(f);let v;return!i&&!h?v=a:i&&!m&&(v=f),!h||!m?L.createElement("a",{role:"button",tabIndex:0,className:`${tt}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":v,onClick:this.toggleOverflow,onKeyPress:w=>Xw(w)&&this.toggleOverflow(w)},v):null},this.getEllipsisStyle=()=>{const{ellipsis:i,component:o}=this.props;if(!i)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:u}=this.state,f=!u&&this.canUseCSSEllipsis(),p=Ne({[`${tt}-ellipsis`]:!0,[`${tt}-ellipsis-single-line`]:a===1,[`${tt}-ellipsis-multiple-line`]:a>1,[`${tt}-ellipsis-multiple-line-text`]:a>1&&o==="span",[`${tt}-ellipsis-overflow-ellipsis`]:a===1&&f,[`${tt}-ellipsis-overflow-ellipsis-text`]:a===1&&f&&o==="span"}),h=f&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:p,ellipsisStyle:h}},this.renderEllipsisText=i=>{const{suffix:o}=i,{children:a}=this.props,{isTruncated:u,expanded:f,ellipsisContent:p}=this.state;return f||!u?L.createElement("span",{onMouseEnter:this.onHover},a,o&&o.length?o:null):L.createElement("span",{onMouseEnter:this.onHover},p,o)},this.state={editable:!1,copied:!1,isOverflowed:!1,ellipsisContent:n.children,expanded:!1,isTruncated:!1,prevChildren:null},this.wrapperRef=L.createRef(),this.expandRef=L.createRef(),this.copyRef=L.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize().then(()=>nh(()=>this.observerTakingEffect=!0,1))}static getDerivedStateFromProps(n,i){const{prevChildren:o}=i,a={};return a.prevChildren=n.children,n.ellipsis&&o!==n.children&&(a.isOverflowed=!1,a.ellipsisContent=n.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(n){this.props.children!==n.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}renderOperations(){return L.createElement(L.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var n;const{copyable:i,children:o}=this.props;if(!i)return null;const a=(n=i?.content)!==null&&n!==void 0?n:o;let u,f=!1;Array.isArray(a)?(u="",a.forEach(h=>{typeof h=="object"&&(f=!0),u+=String(h)})):(typeof a!="object"||(f=!0),u=String(a)),Cp(f,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const p=Object.assign({content:u,duration:3},typeof i=="object"?i:null);return L.createElement(oh,Object.assign({},p,{forwardRef:this.copyRef}))}renderIcon(){const{icon:n,size:i}=this.props,o=i==="inherit"?this.context:i;if(!n)return null;const a=o==="small"?"small":"default";return L.createElement("span",{className:`${tt}-icon`,"x-semi-prop":"icon"},Qw(n)?L.cloneElement(n,{size:a}):n)}renderContent(){const n=this.props,{component:i,children:o,className:a,type:u,spacing:f,disabled:p,style:h,ellipsis:m,icon:v,size:w,link:C,heading:_,weight:T}=n,P=fP(n,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),b=Fa(P,["strong","editable","mark","copyable","underline","code","delete"]),N=w==="inherit"?this.context:w,I=this.renderIcon(),$=this.getEllipsisOpt(),{ellipsisCls:F,ellipsisStyle:U}=this.getEllipsisStyle();let M=m?this.renderEllipsisText($):o;const A=Ne({[`${tt}-link-text`]:C,[`${tt}-link-underline`]:this.props.underline&&C});M=pP(this.props,L.createElement(L.Fragment,null,I,this.props.link?L.createElement("span",{className:A},M):M));const W=/^h[1-6]$/,K=ib(_)&&W.test(_),Z=Ne(a,F,{[`${tt}-${u}`]:u&&!C,[`${tt}-${N}`]:N,[`${tt}-link`]:C,[`${tt}-disabled`]:p,[`${tt}-${f}`]:f,[`${tt}-${_}`]:K,[`${tt}-${_}-weight-${T}`]:K&&T&&isNaN(Number(T))}),Q=Object.assign(Object.assign({},isNaN(Number(T))?{}:{fontWeight:T}),h);return L.createElement(Aa,Object.assign({className:Z,style:Object.assign(Object.assign({},Q),U),component:i,forwardRef:this.wrapperRef},b),M,this.renderOperations())}renderTipWrapper(){const{children:n}=this.props,i=this.showTooltip(),o=this.renderContent();if(i){const{type:a,opts:u,renderTooltip:f}=i;return Up(f)?f(n,o):a.toLowerCase()==="popover"?L.createElement(Dr,Object.assign({content:n,position:"top"},u),o):L.createElement(lr,Object.assign({content:n,position:"top"},u),o)}else return o}render(){var n=this;const{size:i}=this.props,o=i==="inherit"?this.context:i,a=L.createElement(tS.Provider,{value:o},L.createElement(ko,{componentName:"Typography"},u=>(this.expandStr=u.expand,this.collapseStr=u.collapse,this.renderTipWrapper())));return this.props.ellipsis?L.createElement(sh,{onResize:function(){n.observerTakingEffect&&n.onResize(...arguments)},observeParent:!0,observerProperty:wa.Width},a):a}}zr.propTypes={children:y.node,copyable:y.oneOfType([y.shape({text:y.string,onCopy:y.func,successTip:y.node,copyTip:y.node}),y.bool]),delete:y.bool,disabled:y.bool,ellipsis:y.oneOfType([y.shape({rows:y.number,expandable:y.bool,expandText:y.string,onExpand:y.func,suffix:y.string,showTooltip:y.oneOfType([y.shape({type:y.string,opts:y.object}),y.bool]),collapsible:y.bool,collapseText:y.string,pos:y.oneOf(["end","middle"])}),y.bool]),mark:y.bool,underline:y.bool,link:y.oneOfType([y.object,y.bool]),spacing:y.oneOf(mt.SPACING),strong:y.bool,size:y.oneOf(mt.SIZE),type:y.oneOf(mt.TYPE),style:y.object,className:y.string,icon:y.oneOfType([y.node,y.string]),heading:y.string,component:y.string};zr.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};zr.contextType=tS;class ah extends R.PureComponent{render(){return L.createElement(zr,Object.assign({component:"span"},this.props))}}ah.propTypes={copyable:y.oneOfType([y.object,y.bool]),delete:y.bool,disabled:y.bool,icon:y.oneOfType([y.node,y.string]),ellipsis:y.oneOfType([y.object,y.bool]),mark:y.bool,underline:y.bool,link:y.oneOfType([y.object,y.bool]),strong:y.bool,type:y.oneOf(mt.TYPE),size:y.oneOf(mt.SIZE),style:y.object,className:y.string,code:y.bool,component:y.string,weight:y.number};ah.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var hP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};class lh extends R.PureComponent{render(){const n=this.props,{heading:i}=n,o=hP(n,["heading"]),a=mt.HEADING.indexOf(i)!==-1?`h${i}`:"h1";return L.createElement(zr,Object.assign({component:a,heading:a},o))}}lh.propTypes={copyable:y.oneOfType([y.object,y.bool]),delete:y.bool,disabled:y.bool,ellipsis:y.oneOfType([y.object,y.bool]),mark:y.bool,link:y.oneOfType([y.object,y.bool]),underline:y.bool,strong:y.bool,type:y.oneOf(mt.TYPE),heading:y.oneOf(mt.HEADING),style:y.object,className:y.string,component:y.string,weight:y.oneOfType([y.oneOf(mt.WEIGHT),y.number])};lh.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",heading:1,style:{},className:""};const mP=ja.PREFIX;class uh extends R.PureComponent{render(){const{className:n}=this.props,i=Ne(n,`${mP}-paragraph`);return L.createElement(zr,Object.assign({component:"p"},this.props,{className:i}))}}uh.propTypes={copyable:y.oneOfType([y.object,y.bool]),delete:y.bool,disabled:y.bool,ellipsis:y.oneOfType([y.object,y.bool]),mark:y.bool,link:y.oneOfType([y.object,y.bool]),underline:y.bool,strong:y.bool,type:y.oneOf(mt.TYPE),size:y.oneOf(mt.SIZE),spacing:y.oneOf(mt.SPACING),style:y.object,className:y.string,component:y.string};uh.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",size:"normal",spacing:"normal",style:{},className:""};class gP{constructor(n,i,o,a,u){this.ruleMethods={"bytes-decimal":f=>{const p=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let h=0;for(;f>=1e3;)f/=1e3,h++;return`${this.truncatePrecision(f)} ${p[h]}`},"bytes-binary":f=>{const p=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let h=0;for(;f>=1024;)f/=1024,h++;return`${this.truncatePrecision(f)} ${p[h]}`},percentages:f=>`${this.truncatePrecision(f*100)}%`,exponential:f=>{const h=f.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(h[0]))}e${h[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof u<"u",this.content=n,this.rule=i,this.precision=o,this.truncate=a,this.parser=u}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?pp(this.content).map(n=>hp(n)?this.truncatePrecision(n):n).join(""):this.rule==="numbers"?pp(this.content).filter(n=>hp(n)).map(n=>this.truncatePrecision(n)).join(","):pp(this.content).map(n=>hp(n)?this.ruleMethods[this.rule](Number(n)):n).join("")}truncatePrecision(n){const i=this.truncateMethods[this.truncate](Number(n)*Math.pow(10,this.precision))/Math.pow(10,this.precision),o=i.toString().split(".");if(o.length===1)return i.toFixed(this.precision);const a=o[1].length;return a<this.precision?`${o[0]}.${o[1]}${"0".repeat(this.precision-a)}`:i.toString()}}function pp(r){const n=/(-?[0-9]*\.?[0-9]+([eE]-?[0-9]+)?)|([^-\d\.]+)/g;return r.match(n)||[]}function hp(r){return!(isNaN(Number(r))||r.replace(/\s+/g,"")==="")}class ch extends R.PureComponent{formatNodeDFS(n){return Array.isArray(n)||(n=[n]),n=n.map(i=>typeof i=="string"||typeof i=="number"?new gP(String(i),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof i=="function"?this.formatNodeDFS(i()):typeof i=="object"&&"children"in i.props?Object.assign(Object.assign({},i),{props:Object.assign(Object.assign({},i.props),{children:this.formatNodeDFS(i.props.children)})}):i),n.length===1?n[0]:n}render(){const n=Object.assign({},this.props);return delete n.rule,delete n.parser,n.children=this.formatNodeDFS(this.props.children),L.createElement(zr,Object.assign({component:"span"},n))}}ch.propTypes={rule:y.oneOf(mt.RULE),precision:y.number,truncate:y.oneOf(mt.TRUNCATE),parser:y.func,copyable:y.oneOfType([y.object,y.bool]),delete:y.bool,disabled:y.bool,icon:y.oneOfType([y.node,y.string]),mark:y.bool,underline:y.bool,link:y.oneOfType([y.object,y.bool]),strong:y.bool,type:y.oneOf(mt.TYPE),size:y.oneOf(mt.SIZE),style:y.object,className:y.string,code:y.bool,component:y.string};ch.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Fo=Aa;Fo.Text=ah;Fo.Title=lh;Fo.Paragraph=uh;Fo.Numeral=ch;var mp,W0;function vP(){if(W0)return mp;W0=1;var r=ur(),n=cn(),i="[object Number]";function o(a){return typeof a=="number"||n(a)&&r(a)==i}return mp=o,mp}var yP=vP();const wP=it(yP);var SP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let G0=-1;function _P(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{id:n,className:i,customIconCls:o}=r,a=SP(r,["id","className","customIconCls"]),u=ke(ca,"config.overrideDefaultProps.Spin.indicator");if(u&&L.isValidElement(u))return L.cloneElement(u,{className:Ne({[o]:o,[i]:i})});let f=n;th(f)&&(G0++,f=G0);const p=`linearGradient-${f}`;return L.createElement("svg",Object.assign({},a,{className:i,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),L.createElement("defs",null,L.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:p},L.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),L.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),L.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),L.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},L.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),L.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${p})`,strokeWidth:"4",strokeLinecap:"round"})))}const nS={PREFIX:`${Wt}-button`},qo={sizes:["default","small","large"],iconPositions:["left","right"],htmlTypes:["button","reset","submit"],btnTypes:["primary","secondary","tertiary","warning","danger"],themes:["solid","borderless","light","outline"],DEFAULT_ICON_POSITION:"left"},CP={SIZE:["extra-small","small","default","large","extra-large","custom"]};var EP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const bP=qo.sizes,{htmlTypes:xP,btnTypes:OP}=qo;let zo=class extends R.PureComponent{render(){const n=this.props,{children:i,block:o,htmlType:a,loading:u,circle:f,className:p,style:h,disabled:m,size:v,theme:w,type:C,prefixCls:_,iconPosition:T}=n,P=EP(n,["children","block","htmlType","loading","circle","className","style","disabled","size","theme","type","prefixCls","iconPosition"]),b=Object.assign(Object.assign({disabled:m},Fa(P,["x-semi-children-alias"])),{className:Ne(_,{[`${_}-${C}`]:!m&&C,[`${_}-disabled`]:m,[`${_}-size-large`]:v==="large",[`${_}-size-small`]:v==="small",[`${_}-light`]:w==="light",[`${_}-block`]:o,[`${_}-circle`]:f,[`${_}-borderless`]:w==="borderless",[`${_}-outline`]:w==="outline",[`${_}-${C}-disabled`]:m&&C},p),type:a,"aria-disabled":m}),N={};return p&&p.includes("-with-icon")||(N["x-semi-prop"]=this.props["x-semi-children-alias"]||"children"),L.createElement("button",Object.assign({},b,{onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,style:h}),L.createElement("span",Object.assign({className:Ne(`${_}-content`,this.props.contentClassName),onClick:I=>m&&I.stopPropagation()},N),i))}};zo.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:xo,onClick:xo,onMouseEnter:xo,onMouseLeave:xo,prefixCls:nS.PREFIX};zo.propTypes={children:y.node,disabled:y.bool,prefixCls:y.string,style:y.object,size:y.oneOf(bP),type:y.oneOf(OP),block:y.bool,onClick:y.func,onMouseDown:y.func,circle:y.bool,loading:y.bool,htmlType:y.oneOf(xP),theme:y.oneOf(qo.themes),className:y.string,onMouseEnter:y.func,onMouseLeave:y.func,"aria-label":y.string,contentClassName:y.string};var PP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const TP=CP.SIZE;class Oi extends R.PureComponent{render(){const n=this.props,{children:i,iconPosition:o,iconSize:a,iconStyle:u,style:f,icon:p,noHorizontalPadding:h,theme:m,className:v,prefixCls:w,loading:C}=n,_=PP(n,["children","iconPosition","iconSize","iconStyle","style","icon","noHorizontalPadding","theme","className","prefixCls","loading"]),T=Object.assign({},f);Array.isArray(h)?(h.includes("left")&&(T.paddingLeft=0),h.includes("right")&&(T.paddingRight=0)):h===!0?(T.paddingLeft=0,T.paddingRight=0):typeof h=="string"&&(h==="left"&&(T.paddingLeft=0),h==="right"&&(T.paddingRight=0));let P=null,b=null;C&&!_.disabled?b=L.createElement(_P,{customIconCls:`${w}-content-loading-icon`}):L.isValidElement(p)&&(b=p);const N=Ne({[`${w}-content-left`]:o==="right",[`${w}-content-right`]:o==="left"}),I=this.props["x-semi-children-alias"]||"children",$=i!=null?L.createElement("span",{className:N,"x-semi-prop":I},i):null;o==="left"?P=L.createElement(L.Fragment,null,b,$):P=L.createElement(L.Fragment,null,$,b);const F=Ne(v,`${w}-with-icon`,{[`${w}-with-icon-only`]:$==null||$==="",[`${w}-loading`]:C});return L.createElement(zo,Object.assign({},_,{className:F,theme:m,style:T}),P)}}Oi.defaultProps={iconPosition:qo.DEFAULT_ICON_POSITION,prefixCls:nS.PREFIX,loading:!1,noHorizontalPadding:!1,onMouseEnter:ze,onMouseLeave:ze};Oi.elementType="IconButton";Oi.propTypes={iconStyle:y.object,style:y.object,loading:y.bool,prefixCls:y.string,icon:y.oneOfType([y.object,y.string,y.node]),iconSize:y.oneOf(TP),noHorizontalPadding:y.oneOfType([y.bool,y.string,y.array]),children:y.node,theme:y.string,iconPosition:y.oneOf(qo.iconPositions),className:y.string,onMouseEnter:y.func,onMouseLeave:y.func};class Mr extends L.PureComponent{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(n)}render(){const n=Object.assign({},this.props),i=!!n.icon,o=!!n.loading,a=!!n.disabled;return i||o&&!a?L.createElement(Oi,Object.assign({},n)):L.createElement(zo,Object.assign({},n))}}Mr.__SemiComponentName__="Button";Mr.propTypes=Object.assign(Object.assign({},zo.propTypes),Oi.propTypes);Mr.defaultProps=za(Mr.__SemiComponentName__);Mr.elementType="Button";var RP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};cr.Consumer;class fh extends L.Component{constructor(n){super(n)}renderChildren(){const{direction:n,children:i}=this.props;return n==="rtl"?L.createElement("div",{className:`${Wt}-rtl`},i):i}render(){const n=this.props,{children:i,direction:o}=n,a=RP(n,["children","direction"]);return L.createElement(cr.Provider,{value:Object.assign({direction:o},a)},this.renderChildren())}}fh.propTypes={locale:y.object,timeZone:y.oneOfType([y.string,y.number]),getPopupContainer:y.func,direction:y.oneOf(["ltr","rtl"])};fh.defaultProps={locale:xp,direction:"ltr"};const kP={PREFIX:`${Wt}`};var NP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const Nr=kP.PREFIX,IP=r=>{const{layout:n="horizontal",dashed:i,align:o="center",className:a,margin:u,style:f,children:p}=r,h=NP(r,["layout","dashed","align","className","margin","style","children"]),m=Ne(`${Nr}-divider`,a,{[`${Nr}-divider-horizontal`]:n==="horizontal",[`${Nr}-divider-vertical`]:n==="vertical",[`${Nr}-divider-dashed`]:!!i,[`${Nr}-divider-with-text`]:p&&n==="horizontal",[`${Nr}-divider-with-text-${o}`]:p&&n==="horizontal"});let v={};return u!==void 0&&(n==="vertical"?v={marginLeft:u,marginRight:u}:n==="horizontal"&&(v={marginTop:u,marginBottom:u})),L.createElement("div",Object.assign({},h,{className:m,style:Object.assign(Object.assign({},v),f)}),p&&n==="horizontal"?typeof p=="string"?L.createElement("span",{className:`${Nr}-divider_inner-text`,"x-semi-prop":"children"},p):p:null)};class jP extends Lo{addNotice(n){const i=this._adapter.getNotices();this._adapter.updateNotices([n,...i])}has(n){return this._adapter.getNotices().some(i=>i.id===n)}update(n,i){let o=this._adapter.getNotices();o=o.map(u=>u.id===n?Object.assign(Object.assign({},u),i):u);const a=o.filter(u=>u.id===n);this._adapter.updateNotices(o,[],a)}removeNotice(n){let i=this._adapter.getNotices();const o=[];i=i.filter(a=>a.id===n?(o.push(a),!1):!0),this._adapter.updateNotices(i,o)}destroyAll(){const n=this._adapter.getNotices();n.length>0&&this._adapter.updateNotices([],n)}}const To={WRAPPER:`${Wt}-notification-wrapper`,LIST:`${Wt}-notification-list`,NOTICE:`${Wt}-notification-notice`},rS={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},AP={duration:3};class dh extends Lo{constructor(n){super(Object.assign(Object.assign({},dh.defaultAdapter),n)),this._timer=null,this._id=null}init(){this._startCloseTimer(),this._id=this.getProp("id")}destroy(){this._clearCloseTimer()}_startCloseTimer(){const n=this.getProp("duration");n&&wP(n)&&(this._timer=setTimeout(()=>{this.close()},n*1e3))}close(n){n&&n.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}_clearCloseTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this._clearCloseTimer(),this._startCloseTimer()}}var LP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const At=To.NOTICE,{duration:DP}=AP,{types:iS,themes:MP,directions:$P}=rS;class $r extends Ei{get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:n=>{this.props.close(n)},notifyClose:()=>{this.props.onClose(),this.props.onHookClose&&this.props.onHookClose()}})}constructor(n){super(n),this.clearCloseTimer=()=>{this.foundation._clearCloseTimer()},this.startCloseTimer=()=>{this.foundation._startCloseTimer()},this.close=i=>{this.props.onCloseClick(this.props.id),this.foundation.close(i)},this.notifyClick=i=>{this.props.onClick(i)},this.state={visible:!0},this.foundation=new dh(this.adapter)}componentWillUnmount(){this.foundation.destroy()}renderTypeIcon(){const{type:n,icon:i}=this.props;let a={warning:L.createElement(VO,{size:"large"}),success:L.createElement(rP,{size:"large"}),info:L.createElement(JO,{size:"large"}),error:L.createElement(WO,{size:"large"})}[n];const u=Ne({[`${At}-icon`]:!0,[`${At}-${n}`]:!0});return i&&(a=i),a?L.createElement("div",{className:u,"x-semi-prop":"icon"},Qw(a)?L.cloneElement(a,{size:a.props.size||"large"}):a):null}render(){const n=this.props.direction||this.context.direction,i=n==="rtl"?"topLeft":"topRight",o=this.props,{content:a,title:u,theme:f,position:p=i,type:h,id:m,onCloseClick:v,className:w,showClose:C,style:_}=o;LP(o,["content","title","theme","position","type","id","onCloseClick","className","showClose","style"]);const{visible:T}=this.state,P=Ne(At,w,{[`${At}-close`]:!T,[`${At}-icon-show`]:iS.includes(h),[`${At}-${h}`]:!0,[`${At}-${f}`]:f==="light",[`${At}-rtl`]:n==="rtl"}),b=Kw({});return L.createElement("div",{className:P,style:_,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:this.notifyClick,"aria-labelledby":b,role:"alert",onAnimationEnd:this.props.onAnimationEnd,onAnimationStart:this.props.onAnimationStart},L.createElement("div",null,this.renderTypeIcon()),L.createElement("div",{className:`${At}-inner`},L.createElement("div",{className:`${At}-content-wrapper`},u?L.createElement("div",{id:b,className:`${At}-title`,"x-semi-prop":"title"},u):"",a?L.createElement("div",{className:`${At}-content`,"x-semi-prop":"content"},a):""),C&&L.createElement(Oi,{className:`${At}-icon-close`,type:"tertiary",icon:L.createElement(QO,null),theme:"borderless",size:"small",onClick:this.close})))}}$r.contextType=cr;$r.propTypes={duration:y.number,id:y.string,title:y.node,content:y.node,type:y.oneOf(iS),theme:y.oneOf(MP),icon:y.node,onClick:y.func,onClose:y.func,onCloseClick:y.func,showClose:y.bool,close:y.func,direction:y.oneOf($P)};$r.__SemiComponentName__="Notification";$r.defaultProps=za($r.__SemiComponentName__,{duration:DP,id:"",close:ze,onClose:ze,onClick:ze,onCloseClick:ze,content:"",title:"",showClose:!0,theme:"normal"});var FP=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};const qP=(r,n)=>{var{afterClose:i}=r,o=FP(r,["afterClose"]);const[a,u]=R.useState(!0),f=()=>{u(!1)};return L.useImperativeHandle(n,()=>({close:()=>{u(!1)}})),R.useEffect(()=>{a||i(String(o.id))},[a]),a?L.createElement($r,Object.assign({},o,{onHookClose:f})):null},zP=L.forwardRef(qP),yo={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};function BP(){const[r,n]=R.useState([]);function i(a,u){return n(f=>[{element:a,config:u},...f]),f=>{n(p=>p.filter(h=>{let{config:m}=h;return m.id!==f}))}}function o(){const a={top:[],topLeft:[],topRight:[],bottom:[],bottomLeft:[],bottomRight:[]};return r.forEach(u=>{let{element:f,config:p}=u;const{position:h}=p;a[h].push(f)}),Object.entries(a).map(u=>{const f=u[0],p=u[1];return Array.isArray(p)&&p.length?L.createElement("div",{key:f,className:Ne(To.LIST),placement:f},p):null})}return[o(),i]}function UP(){const[r,n]=BP(),i=new Map,o=u=>{const f=Ep("semi_notice_"),p=Object.assign(Object.assign({},u),{id:f});let h;const m=w=>{i.set(f,w)},v=L.createElement(zP,Object.assign({key:f},p,{afterClose:w=>h(w),ref:m}));return h=n(v,Object.assign({},p)),f};return[{success:u=>o(Object.assign(Object.assign(Object.assign({},yo),u),{type:"success"})),info:u=>o(Object.assign(Object.assign(Object.assign({},yo),u),{type:"info"})),error:u=>o(Object.assign(Object.assign(Object.assign({},yo),u),{type:"error"})),warning:u=>o(Object.assign(Object.assign(Object.assign({},yo),u),{type:"warning"})),open:u=>o(Object.assign(Object.assign(Object.assign({},yo),u),{type:"default"})),close:u=>{const f=i.get(u);f&&f.close()}},L.createElement(L.Fragment,null,r)]}let an=null;const di={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};class jn extends Ei{constructor(n){var i;super(n),i=this,this.add=o=>this.foundation.addNotice(o),this.has=o=>this.foundation.has(o),this.remove=o=>{this.foundation.removeNotice(String(o))},this.update=(o,a)=>this.foundation.update(o,a),this.destroyAll=()=>this.foundation.destroyAll(),this.renderNoticeInPosition=function(o,a){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const p=Ne(To.LIST);if(o.length){const h=i.setPosInStyle(o[0]);return L.createElement("div",{placement:a,key:a,className:p,style:h},o.map((m,v)=>{const w=u.find(C=>C.id===m.id)!==void 0;return L.createElement(rh,{key:m.id,animationState:w?"leave":"enter",startClassName:`${To.NOTICE}-animation-${w?"hide":"show"}_${a}`},C=>{let{animationClassName:_,animationEventsNeedBind:T,isAnimating:P}=C;return w&&!P?null:L.createElement($r,Object.assign({},m,{ref:b=>{b&&f.some(N=>N.id===b.props.id)&&b.foundation.restartCloseTimer()},className:Ne({[m.className]:!!m.className,[_]:!0})},T,{style:Object.assign({},m.style),close:i.remove}))})}))}return null},this.state={notices:[],removedItems:[],updatedItems:[]},this.noticeStorage=[],this.removeItemStorage=[],this.foundation=new jP(this.adapter)}get adapter(){var n=this;return Object.assign(Object.assign({},super.adapter),{updateNotices:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];n.noticeStorage=[...i],n.removeItemStorage=[...o],n.setState({notices:i,removedItems:o,updatedItems:a})},getNotices:()=>this.noticeStorage})}static addNotice(n){var i;n=Object.assign(Object.assign({},di),n);const o=(i=n.id)!==null&&i!==void 0?i:Ep("notification");if(an)an.has(`${o}`)?an.update(o,n):an.add(Object.assign(Object.assign({},n),{id:o}));else{const{getPopupContainer:a}=n,u=document.createElement("div");this.wrapperId||(this.wrapperId=Ep("notification-wrapper").slice(0,32)),u.className=To.WRAPPER,u.id=this.wrapperId,u.style.zIndex=String(typeof n.zIndex=="number"?n.zIndex:di.zIndex),a?a().appendChild(u):document.body.appendChild(u),hi.render(L.createElement(jn,{ref:f=>an=f}),u,()=>{an.add(Object.assign(Object.assign({},n),{id:o}))})}return o}static removeNotice(n){return an&&an.remove(n),n}static info(n){return this.addNotice(Object.assign(Object.assign({},n),{type:"info"}))}static success(n){return this.addNotice(Object.assign(Object.assign({},n),{type:"success"}))}static error(n){return this.addNotice(Object.assign(Object.assign({},n),{type:"error"}))}static warning(n){return this.addNotice(Object.assign(Object.assign({},n),{type:"warning"}))}static open(n){return this.addNotice(Object.assign(Object.assign({},n),{type:"default"}))}static close(n){return this.removeNotice(n)}static destroyAll(){if(an){an.destroyAll();const n=document.querySelector(`#${this.wrapperId}`);hi.unmountComponentAtNode(n),n&&n.parentNode.removeChild(n),an=null,this.wrapperId=null}}static config(n){["top","left","bottom","right"].map(i=>{i in n&&(di[i]=n[i])}),typeof n.zIndex=="number"&&(di.zIndex=n.zIndex),typeof n.duration=="number"&&(di.duration=n.duration),typeof n.position=="string"&&(di.position=n.position)}setPosInStyle(n){const i={};return["top","left","bottom","right"].forEach(o=>{if(o in n){const a=n[o];i[o]=typeof a=="number"?`${a}px`:a}}),i}render(){let{notices:n}=this.state;const{removedItems:i,updatedItems:o}=this.state;n=Array.from(new Set([...n,...i]));const a={top:[],topLeft:[],topRight:[],bottom:[],bottomLeft:[],bottomRight:[]};n.forEach(f=>{const h=(f.direction||this.context.direction)==="rtl"?"topLeft":"topRight",m=f.position||h;a[m].push(f)});const u=Object.entries(a).map(f=>{const p=f[0],h=f[1];return this.renderNoticeInPosition(h,p,i,o)});return L.createElement(L.Fragment,null,u)}}jn.contextType=cr;jn.propTypes={style:y.object,className:y.string,direction:y.oneOf(rS.directions)};jn.defaultProps={};jn.useNotification=UP;const ph=R.createContext(void 0),hh=()=>{const r=R.useContext(ph);if(!r)throw new Error("useAppContext must be used within ContextProvider");return r},HP="TTMG DevTool",WP="Connected",GP="Disconnected",VP="Switch Current Debugging Device",KP="Use TikTok Scan QR Code to Debug",QP="Client connection disconnected, please scan the QR code to reconnect",YP="Node service connection disconnected, please restart the debugging service in the terminal",XP="Start Debug",ZP="Welcome to the TikTok Mini Game Debugging Environment. Press F12 or Ctrl+Shift+I to open the browser console to view more debugging information.",JP="Upload Game Package",eT="Uploading game resource...",tT="Uploading game resource, current progress:",nT="Game resource package uploaded successfully, client is loading the game...",rT="Game resource package upload failed, please check the current environment",iT="Initializing game environment...",oT="Game environment initialization failed, please check the current environment",sT="Getting game debugging environment configuration",aT="Game environment configuration obtained successfully",lT="Failed to get game environment configuration",uT="Getting game scripts",cT="Game scripts run successfully",fT="Game environment runtime environment initialization successful, uploading game resources to the client...",dT="Uploading game package to the client...",pT="Upload game package to the client successfully, client is loading the game...",hT="Upload game package to the client failed",mT="Upload content is empty, please select the game file directory to upload",gT="Re-upload mini game",vT="Re-launch mini game",yT="Close debugging",wT="Launching...",ST="Connection to CLI debugging service failed, please check if ttmg dev is running in the game root directory",_T="Connection to local Node debugging service failed",CT="Connecting to local Node debugging service...",ET="Connected to local Node debugging service successfully",bT="Connection to local Node debugging service failed, please check if ttmg dev is running in the game root directory",xT="Node debugging service disconnected",OT="Connected to client debugging service successfully",PT="Connection to client debugging service failed",TT="Client debugging service disconnected",RT="Failed to start client debugging service, please check if ttmg dev is running in the game root directory",kT="Failed to get game scripts",NT="Do you want to refresh the current page or re-upload the game resource to debug?",IT="Game resource updated!",jT="Yes,upload.",AT="No,close.",LT={title:HP,deviceConnected:WP,deviceDisconnected:GP,switchDevice:VP,scanQRCode:KP,clientDisconnected:QP,nodeDisconnected:YP,startDebug:XP,welcome:ZP,uploadBtn:JP,uploadStart:eT,uploadProcess:tT,uploadSuccess:nT,uploadError:rT,setupDevEnv:iT,devEnvSetupError:oT,getDevEnvStart:sT,getDevEnvSuccess:aT,getDevEnvFailed:lT,getDevScriptsStart:uT,getDevScriptsSuccess:cT,devEnvSetupSuccess:fT,uploadGameStart:dT,uploadGameSuccess:pT,uploadGameFailed:hT,uploadEmpty:mT,reUploadGame:gT,relaunchGame:vT,closeGame:yT,loading:wT,localDevServerError:ST,nodeServerConnectedFailed:_T,nodeServerStartConnect:CT,nodeServerConnectedSuccess:ET,nodeServerStartError:bT,nodeServerDisconnect:xT,clientConnectedSuccess:OT,clientServerStartError:PT,clientServerDisconnected:TT,startDebugFailed:RT,getDevScriptsFailed:kT,gameResourceChange:NT,gameResourceUpdated:IT,uploadToClient:jT,notUpload:AT},DT="DevTool",MT="设备已连接",$T="设备未连接",FT="客户端连接已断开,请重新扫码连接",qT="Node 服务连接已断开,请在终端重新启动调试",zT="切换当前调试设备",BT="使用 TikTok 扫码调试",UT="启动调试",HT="欢迎来到 TikTok 小游戏调试环境,按 F12 或 Ctrl+Shift+I 打开浏览器控制台,查看更多调试信息。",WT="重新上传代码包到客户端",GT="游戏资源包上传中...",VT="游戏资源包上传中,当前进度:",KT="游戏资源包上传成功,客户端开始加载游戏...",QT="游戏资源包上传失败,请检查当前环境",YT="正在初始化游戏环境...",XT="当前游戏资源已更新,是否刷新当前页面或重新上传游戏资源进行调试?",ZT="游戏资源已更新!",JT="游戏环境初始化失败,请检查当前环境",eR="获取游戏调试环境配置",tR="获取游戏环境配置成功",nR="获取游戏环境配置失败",rR="获取游戏脚本",iR="游戏脚本运行成功",oR="游戏环境运行环境初始化成功,正在上传游戏资源至客户端",sR="开始上传游戏包至客户端",aR="上传游戏包至客户端成功, 客户端开始加载游戏...",lR="上传游戏包至客户端失败",uR="上传内容为空,请选择要上传的游戏文件目录",cR="重新上传小游戏",fR="重新启动小游戏",dR="关闭调试",pR="启动中...",hR="连接 CLI 调试服务出错,请检查是否在游戏根目录下运行 ttmg dev",mR="连接本地 Node 调试服务失败",gR="正在连接本地 Node 调试服务...",vR="连接本地 Node 调试服务成功",yR="连接本地 Node 调试服务失败,请检查是否在游戏根目录下运行 ttmg dev",wR="Node 调试服务已断开",SR="链接客户端调试服务成功",_R="链接客户端调试服务失败",CR="客户端调试服务已断开",ER="客户端启动调试环境失败,请重新扫码开启调试服务",bR="加载游戏脚本失败",xR="开始上传",OR="暂不上传",PR={title:DT,deviceConnected:MT,deviceDisconnected:$T,clientDisconnected:FT,nodeDisconnected:qT,switchDevice:zT,scanQRCode:BT,startDebug:UT,welcome:HT,uploadBtn:WT,uploadStart:GT,uploadProcess:VT,uploadSuccess:KT,uploadError:QT,setupDevEnv:YT,gameResourceChange:XT,gameResourceUpdated:ZT,devEnvSetupError:JT,getDevEnvStart:eR,getDevEnvSuccess:tR,getDevEnvFailed:nR,getDevScriptsStart:rR,getDevScriptsSuccess:iR,devEnvSetupSuccess:oR,uploadGameStart:sR,uploadGameSuccess:aR,uploadGameFailed:lR,uploadEmpty:uR,reUploadGame:cR,relaunchGame:fR,closeGame:dR,loading:pR,localDevServerError:hR,nodeServerConnectedFailed:mR,nodeServerStartConnect:gR,nodeServerConnectedSuccess:vR,nodeServerStartError:yR,nodeServerDisconnect:wR,clientConnectedSuccess:SR,clientServerStartError:_R,clientServerDisconnected:CR,startDebugFailed:ER,getDevScriptsFailed:bR,uploadToClient:xR,notUpload:OR},oS="en-US",Op={"en-US":LT,"zh-CN":PR};function TR(){const r=navigator.language;return r in Op?r:r.split("-")[0]==="zh"?"zh-CN":oS}const RR=TR(),Ce=r=>Op[RR][r]??Op[oS][r],kR={stage:"loading",isConnected:!1,loading:{visible:!1,text:Ce("loading")},message:{theme:"info",text:"",visible:!1},error:{visible:!1,text:""}};function NR(r,n){switch(n.type){case"SHOW_LOADING":return{...r,loading:{visible:!0,text:n.payload??Ce("loading")}};case"HIDE_LOADING":return{...r,loading:{...r.loading,visible:!1}};case"SHOW_MESSAGE":return{...r,message:{...n.payload,visible:!0}};case"HIDE_MESSAGE":return{...r,message:{...r.message,visible:!1}};case"SET_STAGE":return{...r,stage:n.payload};case"SET_IS_CONNECTED":return{...r,isConnected:n.payload};default:return r}}const IR=({children:r})=>{const[n,i]=R.useReducer(NR,kR),o=R.useCallback(v=>{i({type:"SET_IS_CONNECTED",payload:v})},[]),a=R.useCallback(v=>{i({type:"SHOW_LOADING",payload:v})},[]),u=R.useCallback(()=>{setTimeout(()=>{i({type:"HIDE_LOADING"})},500)},[]),f=R.useCallback(({theme:v,text:w})=>{i({type:"SHOW_MESSAGE",payload:{theme:v,text:w}})},[]),p=R.useCallback(()=>{i({type:"HIDE_MESSAGE"})},[]),h=R.useCallback(v=>{i({type:"SET_STAGE",payload:v})},[]),m=R.useMemo(()=>({state:n,showLoading:a,hideLoading:u,showMessage:f,hideMessage:p,setStage:h,setIsConnected:o}),[n,a,u,f,p,h,o]);return fe.jsx(ph.Provider,{value:m,children:r})};/**
45
+ * react-router v7.8.2
46
+ *
47
+ * Copyright (c) Remix Software Inc.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE.md file in the root directory of this source tree.
51
+ *
52
+ * @license MIT
53
+ */var V0="popstate";function jR(r={}){function n(o,a){let{pathname:u,search:f,hash:p}=o.location;return Pp("",{pathname:u,search:f,hash:p},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function i(o,a){return typeof a=="string"?a:No(a)}return LR(n,i,null,r)}function Be(r,n){if(r===!1||r===null||typeof r>"u")throw new Error(n)}function wn(r,n){if(!r){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function AR(){return Math.random().toString(36).substring(2,10)}function K0(r,n){return{usr:r.state,key:r.key,idx:n}}function Pp(r,n,i=null,o){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof n=="string"?Pi(n):n,state:i,key:n&&n.key||o||AR()}}function No({pathname:r="/",search:n="",hash:i=""}){return n&&n!=="?"&&(r+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(r+=i.charAt(0)==="#"?i:"#"+i),r}function Pi(r){let n={};if(r){let i=r.indexOf("#");i>=0&&(n.hash=r.substring(i),r=r.substring(0,i));let o=r.indexOf("?");o>=0&&(n.search=r.substring(o),r=r.substring(0,o)),r&&(n.pathname=r)}return n}function LR(r,n,i,o={}){let{window:a=document.defaultView,v5Compat:u=!1}=o,f=a.history,p="POP",h=null,m=v();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function v(){return(f.state||{idx:null}).idx}function w(){p="POP";let b=v(),N=b==null?null:b-m;m=b,h&&h({action:p,location:P.location,delta:N})}function C(b,N){p="PUSH";let I=Pp(P.location,b,N);m=v()+1;let $=K0(I,m),F=P.createHref(I);try{f.pushState($,"",F)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;a.location.assign(F)}u&&h&&h({action:p,location:P.location,delta:1})}function _(b,N){p="REPLACE";let I=Pp(P.location,b,N);m=v();let $=K0(I,m),F=P.createHref(I);f.replaceState($,"",F),u&&h&&h({action:p,location:P.location,delta:0})}function T(b){return DR(b)}let P={get action(){return p},get location(){return r(a,f)},listen(b){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(V0,w),h=b,()=>{a.removeEventListener(V0,w),h=null}},createHref(b){return n(a,b)},createURL:T,encodeLocation(b){let N=T(b);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:C,replace:_,go(b){return f.go(b)}};return P}function DR(r,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Be(i,"No window.location.(origin|href) available to create URL");let o=typeof r=="string"?r:No(r);return o=o.replace(/ $/,"%20"),!n&&o.startsWith("//")&&(o=i+o),new URL(o,i)}function sS(r,n,i="/"){return MR(r,n,i,!1)}function MR(r,n,i,o){let a=typeof n=="string"?Pi(n):n,u=Ln(a.pathname||"/",i);if(u==null)return null;let f=aS(r);$R(f);let p=null;for(let h=0;p==null&&h<f.length;++h){let m=QR(u);p=VR(f[h],m,o)}return p}function aS(r,n=[],i=[],o="",a=!1){let u=(f,p,h=a,m)=>{let v={relativePath:m===void 0?f.path||"":m,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(o)&&h)return;Be(v.relativePath.startsWith(o),`Absolute route path "${v.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(o.length)}let w=An([o,v.relativePath]),C=i.concat(v);f.children&&f.children.length>0&&(Be(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${w}".`),aS(f.children,n,C,w,h)),!(f.path==null&&!f.index)&&n.push({path:w,score:WR(w,f.index),routesMeta:C})};return r.forEach((f,p)=>{if(f.path===""||!f.path?.includes("?"))u(f,p);else for(let h of lS(f.path))u(f,p,!0,h)}),n}function lS(r){let n=r.split("/");if(n.length===0)return[];let[i,...o]=n,a=i.endsWith("?"),u=i.replace(/\?$/,"");if(o.length===0)return a?[u,""]:[u];let f=lS(o.join("/")),p=[];return p.push(...f.map(h=>h===""?u:[u,h].join("/"))),a&&p.push(...f),p.map(h=>r.startsWith("/")&&h===""?"/":h)}function $R(r){r.sort((n,i)=>n.score!==i.score?i.score-n.score:GR(n.routesMeta.map(o=>o.childrenIndex),i.routesMeta.map(o=>o.childrenIndex)))}var FR=/^:[\w-]+$/,qR=3,zR=2,BR=1,UR=10,HR=-2,Q0=r=>r==="*";function WR(r,n){let i=r.split("/"),o=i.length;return i.some(Q0)&&(o+=HR),n&&(o+=zR),i.filter(a=>!Q0(a)).reduce((a,u)=>a+(FR.test(u)?qR:u===""?BR:UR),o)}function GR(r,n){return r.length===n.length&&r.slice(0,-1).every((o,a)=>o===n[a])?r[r.length-1]-n[n.length-1]:0}function VR(r,n,i=!1){let{routesMeta:o}=r,a={},u="/",f=[];for(let p=0;p<o.length;++p){let h=o[p],m=p===o.length-1,v=u==="/"?n:n.slice(u.length)||"/",w=Sa({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},v),C=h.route;if(!w&&m&&i&&!o[o.length-1].route.index&&(w=Sa({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},v)),!w)return null;Object.assign(a,w.params),f.push({params:a,pathname:An([u,w.pathname]),pathnameBase:JR(An([u,w.pathnameBase])),route:C}),w.pathnameBase!=="/"&&(u=An([u,w.pathnameBase]))}return f}function Sa(r,n){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[i,o]=KR(r.path,r.caseSensitive,r.end),a=n.match(i);if(!a)return null;let u=a[0],f=u.replace(/(.)\/+$/,"$1"),p=a.slice(1);return{params:o.reduce((m,{paramName:v,isOptional:w},C)=>{if(v==="*"){let T=p[C]||"";f=u.slice(0,u.length-T.length).replace(/(.)\/+$/,"$1")}const _=p[C];return w&&!_?m[v]=void 0:m[v]=(_||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:f,pattern:r}}function KR(r,n=!1,i=!0){wn(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let o=[],a="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,h)=>(o.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(o.push({paramName:"*"}),a+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?a+="\\/*$":r!==""&&r!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,n?void 0:"i"),o]}function QR(r){try{return r.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return wn(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),r}}function Ln(r,n){if(n==="/")return r;if(!r.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,o=r.charAt(i);return o&&o!=="/"?null:r.slice(i)||"/"}function YR(r,n="/"){let{pathname:i,search:o="",hash:a=""}=typeof r=="string"?Pi(r):r;return{pathname:i?i.startsWith("/")?i:XR(i,n):n,search:ek(o),hash:tk(a)}}function XR(r,n){let i=n.replace(/\/+$/,"").split("/");return r.split("/").forEach(a=>{a===".."?i.length>1&&i.pop():a!=="."&&i.push(a)}),i.length>1?i.join("/"):"/"}function gp(r,n,i,o){return`Cannot include a '${r}' character in a manually specified \`to.${n}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ZR(r){return r.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function uS(r){let n=ZR(r);return n.map((i,o)=>o===n.length-1?i.pathname:i.pathnameBase)}function cS(r,n,i,o=!1){let a;typeof r=="string"?a=Pi(r):(a={...r},Be(!a.pathname||!a.pathname.includes("?"),gp("?","pathname","search",a)),Be(!a.pathname||!a.pathname.includes("#"),gp("#","pathname","hash",a)),Be(!a.search||!a.search.includes("#"),gp("#","search","hash",a)));let u=r===""||a.pathname==="",f=u?"/":a.pathname,p;if(f==null)p=i;else{let w=n.length-1;if(!o&&f.startsWith("..")){let C=f.split("/");for(;C[0]==="..";)C.shift(),w-=1;a.pathname=C.join("/")}p=w>=0?n[w]:"/"}let h=YR(a,p),m=f&&f!=="/"&&f.endsWith("/"),v=(u||f===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(m||v)&&(h.pathname+="/"),h}var An=r=>r.join("/").replace(/\/\/+/g,"/"),JR=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),ek=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,tk=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;function nk(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}var fS=["POST","PUT","PATCH","DELETE"];new Set(fS);var rk=["GET",...fS];new Set(rk);var Ti=R.createContext(null);Ti.displayName="DataRouter";var Ua=R.createContext(null);Ua.displayName="DataRouterState";R.createContext(!1);var dS=R.createContext({isTransitioning:!1});dS.displayName="ViewTransition";var ik=R.createContext(new Map);ik.displayName="Fetchers";var ok=R.createContext(null);ok.displayName="Await";var Sn=R.createContext(null);Sn.displayName="Navigation";var Bo=R.createContext(null);Bo.displayName="Location";var Dn=R.createContext({outlet:null,matches:[],isDataRoute:!1});Dn.displayName="Route";var mh=R.createContext(null);mh.displayName="RouteError";function sk(r,{relative:n}={}){Be(Uo(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:o}=R.useContext(Sn),{hash:a,pathname:u,search:f}=Ho(r,{relative:n}),p=u;return i!=="/"&&(p=u==="/"?i:An([i,u])),o.createHref({pathname:p,search:f,hash:a})}function Uo(){return R.useContext(Bo)!=null}function Br(){return Be(Uo(),"useLocation() may be used only in the context of a <Router> component."),R.useContext(Bo).location}var pS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hS(r){R.useContext(Sn).static||R.useLayoutEffect(r)}function ak(){let{isDataRoute:r}=R.useContext(Dn);return r?Sk():lk()}function lk(){Be(Uo(),"useNavigate() may be used only in the context of a <Router> component.");let r=R.useContext(Ti),{basename:n,navigator:i}=R.useContext(Sn),{matches:o}=R.useContext(Dn),{pathname:a}=Br(),u=JSON.stringify(uS(o)),f=R.useRef(!1);return hS(()=>{f.current=!0}),R.useCallback((h,m={})=>{if(wn(f.current,pS),!f.current)return;if(typeof h=="number"){i.go(h);return}let v=cS(h,JSON.parse(u),a,m.relative==="path");r==null&&n!=="/"&&(v.pathname=v.pathname==="/"?n:An([n,v.pathname])),(m.replace?i.replace:i.push)(v,m.state,m)},[n,i,u,a,r])}R.createContext(null);function Ho(r,{relative:n}={}){let{matches:i}=R.useContext(Dn),{pathname:o}=Br(),a=JSON.stringify(uS(i));return R.useMemo(()=>cS(r,JSON.parse(a),o,n==="path"),[r,a,o,n])}function uk(r,n){return mS(r,n)}function mS(r,n,i,o,a){Be(Uo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=R.useContext(Sn),{matches:f}=R.useContext(Dn),p=f[f.length-1],h=p?p.params:{},m=p?p.pathname:"/",v=p?p.pathnameBase:"/",w=p&&p.route;{let I=w&&w.path||"";gS(m,!w||I.endsWith("*")||I.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${I}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
54
+
55
+ Please change the parent <Route path="${I}"> to <Route path="${I==="/"?"*":`${I}/*`}">.`)}let C=Br(),_;if(n){let I=typeof n=="string"?Pi(n):n;Be(v==="/"||I.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${I.pathname}" was given in the \`location\` prop.`),_=I}else _=C;let T=_.pathname||"/",P=T;if(v!=="/"){let I=v.replace(/^\//,"").split("/");P="/"+T.replace(/^\//,"").split("/").slice(I.length).join("/")}let b=sS(r,{pathname:P});wn(w||b!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),wn(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=hk(b&&b.map(I=>Object.assign({},I,{params:Object.assign({},h,I.params),pathname:An([v,u.encodeLocation?u.encodeLocation(I.pathname).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?v:An([v,u.encodeLocation?u.encodeLocation(I.pathnameBase).pathname:I.pathnameBase])})),f,i,o,a);return n&&N?R.createElement(Bo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},N):N}function ck(){let r=wk(),n=nk(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),i=r instanceof Error?r.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o},u={padding:"2px 4px",backgroundColor:o},f=null;return console.error("Error handled by React Router default ErrorBoundary:",r),f=R.createElement(R.Fragment,null,R.createElement("p",null,"💿 Hey developer 👋"),R.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",R.createElement("code",{style:u},"ErrorBoundary")," or"," ",R.createElement("code",{style:u},"errorElement")," prop on your route.")),R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},n),i?R.createElement("pre",{style:a},i):null,f)}var fk=R.createElement(ck,null),dk=class extends R.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,n){return n.location!==r.location||n.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:n.error,location:n.location,revalidation:r.revalidation||n.revalidation}}componentDidCatch(r,n){this.props.unstable_onError?this.props.unstable_onError(r,n):console.error("React Router caught the following error during render",r)}render(){return this.state.error!==void 0?R.createElement(Dn.Provider,{value:this.props.routeContext},R.createElement(mh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function pk({routeContext:r,match:n,children:i}){let o=R.useContext(Ti);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(Dn.Provider,{value:r},i)}function hk(r,n=[],i=null,o=null,a=null){if(r==null){if(!i)return null;if(i.errors)r=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)r=i.matches;else return null}let u=r,f=i?.errors;if(f!=null){let m=u.findIndex(v=>v.route.id&&f?.[v.route.id]!==void 0);Be(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,m+1))}let p=!1,h=-1;if(i)for(let m=0;m<u.length;m++){let v=u[m];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=m),v.route.id){let{loaderData:w,errors:C}=i,_=v.route.loader&&!w.hasOwnProperty(v.route.id)&&(!C||C[v.route.id]===void 0);if(v.route.lazy||_){p=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((m,v,w)=>{let C,_=!1,T=null,P=null;i&&(C=f&&v.route.id?f[v.route.id]:void 0,T=v.route.errorElement||fk,p&&(h<0&&w===0?(gS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,P=null):h===w&&(_=!0,P=v.route.hydrateFallbackElement||null)));let b=n.concat(u.slice(0,w+1)),N=()=>{let I;return C?I=T:_?I=P:v.route.Component?I=R.createElement(v.route.Component,null):v.route.element?I=v.route.element:I=m,R.createElement(pk,{match:v,routeContext:{outlet:m,matches:b,isDataRoute:i!=null},children:I})};return i&&(v.route.ErrorBoundary||v.route.errorElement||w===0)?R.createElement(dk,{location:i.location,revalidation:i.revalidation,component:T,error:C,children:N(),routeContext:{outlet:null,matches:b,isDataRoute:!0},unstable_onError:o}):N()},null)}function gh(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mk(r){let n=R.useContext(Ti);return Be(n,gh(r)),n}function gk(r){let n=R.useContext(Ua);return Be(n,gh(r)),n}function vk(r){let n=R.useContext(Dn);return Be(n,gh(r)),n}function vh(r){let n=vk(r),i=n.matches[n.matches.length-1];return Be(i.route.id,`${r} can only be used on routes that contain a unique "id"`),i.route.id}function yk(){return vh("useRouteId")}function wk(){let r=R.useContext(mh),n=gk("useRouteError"),i=vh("useRouteError");return r!==void 0?r:n.errors?.[i]}function Sk(){let{router:r}=mk("useNavigate"),n=vh("useNavigate"),i=R.useRef(!1);return hS(()=>{i.current=!0}),R.useCallback(async(a,u={})=>{wn(i.current,pS),i.current&&(typeof a=="number"?r.navigate(a):await r.navigate(a,{fromRouteId:n,...u}))},[r,n])}var Y0={};function gS(r,n,i){!n&&!Y0[r]&&(Y0[r]=!0,wn(!1,i))}R.memo(_k);function _k({routes:r,future:n,state:i,unstable_onError:o}){return mS(r,void 0,i,o,n)}function vS(r){Be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ck({basename:r="/",children:n=null,location:i,navigationType:o="POP",navigator:a,static:u=!1}){Be(!Uo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=r.replace(/^\/*/,"/"),p=R.useMemo(()=>({basename:f,navigator:a,static:u,future:{}}),[f,a,u]);typeof i=="string"&&(i=Pi(i));let{pathname:h="/",search:m="",hash:v="",state:w=null,key:C="default"}=i,_=R.useMemo(()=>{let T=Ln(h,f);return T==null?null:{location:{pathname:T,search:m,hash:v,state:w,key:C},navigationType:o}},[f,h,m,v,w,C,o]);return wn(_!=null,`<Router basename="${f}"> is not able to match the URL "${h}${m}${v}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:R.createElement(Sn.Provider,{value:p},R.createElement(Bo.Provider,{children:n,value:_}))}function Ek({children:r,location:n}){return uk(Tp(r),n)}function Tp(r,n=[]){let i=[];return R.Children.forEach(r,(o,a)=>{if(!R.isValidElement(o))return;let u=[...n,a];if(o.type===R.Fragment){i.push.apply(i,Tp(o.props.children,u));return}Be(o.type===vS,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Be(!o.props.index||!o.props.children,"An index route cannot have child routes.");let f={id:o.props.id||u.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(f.children=Tp(o.props.children,u)),i.push(f)}),i}var da="get",pa="application/x-www-form-urlencoded";function Ha(r){return r!=null&&typeof r.tagName=="string"}function bk(r){return Ha(r)&&r.tagName.toLowerCase()==="button"}function xk(r){return Ha(r)&&r.tagName.toLowerCase()==="form"}function Ok(r){return Ha(r)&&r.tagName.toLowerCase()==="input"}function Pk(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function Tk(r,n){return r.button===0&&(!n||n==="_self")&&!Pk(r)}var aa=null;function Rk(){if(aa===null)try{new FormData(document.createElement("form"),0),aa=!1}catch{aa=!0}return aa}var kk=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vp(r){return r!=null&&!kk.has(r)?(wn(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pa}"`),null):r}function Nk(r,n){let i,o,a,u,f;if(xk(r)){let p=r.getAttribute("action");o=p?Ln(p,n):null,i=r.getAttribute("method")||da,a=vp(r.getAttribute("enctype"))||pa,u=new FormData(r)}else if(bk(r)||Ok(r)&&(r.type==="submit"||r.type==="image")){let p=r.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=r.getAttribute("formaction")||p.getAttribute("action");if(o=h?Ln(h,n):null,i=r.getAttribute("formmethod")||p.getAttribute("method")||da,a=vp(r.getAttribute("formenctype"))||vp(p.getAttribute("enctype"))||pa,u=new FormData(p,r),!Rk()){let{name:m,type:v,value:w}=r;if(v==="image"){let C=m?`${m}.`:"";u.append(`${C}x`,"0"),u.append(`${C}y`,"0")}else m&&u.append(m,w)}}else{if(Ha(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=da,o=null,a=pa,f=r}return u&&a==="text/plain"&&(f=u,u=void 0),{action:o,method:i.toLowerCase(),encType:a,formData:u,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function yh(r,n){if(r===!1||r===null||typeof r>"u")throw new Error(n)}function Ik(r,n,i){let o=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return o.pathname==="/"?o.pathname=`_root.${i}`:n&&Ln(o.pathname,n)==="/"?o.pathname=`${n.replace(/\/$/,"")}/_root.${i}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${i}`,o}async function jk(r,n){if(r.id in n)return n[r.id];try{let i=await import(r.module);return n[r.id]=i,i}catch(i){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ak(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function Lk(r,n,i){let o=await Promise.all(r.map(async a=>{let u=n.routes[a.route.id];if(u){let f=await jk(u,i);return f.links?f.links():[]}return[]}));return Fk(o.flat(1).filter(Ak).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function X0(r,n,i,o,a,u){let f=(h,m)=>i[m]?h.route.id!==i[m].route.id:!0,p=(h,m)=>i[m].pathname!==h.pathname||i[m].route.path?.endsWith("*")&&i[m].params["*"]!==h.params["*"];return u==="assets"?n.filter((h,m)=>f(h,m)||p(h,m)):u==="data"?n.filter((h,m)=>{let v=o.routes[h.route.id];if(!v||!v.hasLoader)return!1;if(f(h,m)||p(h,m))return!0;if(h.route.shouldRevalidate){let w=h.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(r,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Dk(r,n,{includeHydrateFallback:i}={}){return Mk(r.map(o=>{let a=n.routes[o.route.id];if(!a)return[];let u=[a.module];return a.clientActionModule&&(u=u.concat(a.clientActionModule)),a.clientLoaderModule&&(u=u.concat(a.clientLoaderModule)),i&&a.hydrateFallbackModule&&(u=u.concat(a.hydrateFallbackModule)),a.imports&&(u=u.concat(a.imports)),u}).flat(1))}function Mk(r){return[...new Set(r)]}function $k(r){let n={},i=Object.keys(r).sort();for(let o of i)n[o]=r[o];return n}function Fk(r,n){let i=new Set;return new Set(n),r.reduce((o,a)=>{let u=JSON.stringify($k(a));return i.has(u)||(i.add(u),o.push({key:u,link:a})),o},[])}function yS(){let r=R.useContext(Ti);return yh(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function qk(){let r=R.useContext(Ua);return yh(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var wh=R.createContext(void 0);wh.displayName="FrameworkContext";function wS(){let r=R.useContext(wh);return yh(r,"You must render this element inside a <HydratedRouter> element"),r}function zk(r,n){let i=R.useContext(wh),[o,a]=R.useState(!1),[u,f]=R.useState(!1),{onFocus:p,onBlur:h,onMouseEnter:m,onMouseLeave:v,onTouchStart:w}=n,C=R.useRef(null);R.useEffect(()=>{if(r==="render"&&f(!0),r==="viewport"){let P=N=>{N.forEach(I=>{f(I.isIntersecting)})},b=new IntersectionObserver(P,{threshold:.5});return C.current&&b.observe(C.current),()=>{b.disconnect()}}},[r]),R.useEffect(()=>{if(o){let P=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(P)}}},[o]);let _=()=>{a(!0)},T=()=>{a(!1),f(!1)};return i?r!=="intent"?[u,C,{}]:[u,C,{onFocus:wo(p,_),onBlur:wo(h,T),onMouseEnter:wo(m,_),onMouseLeave:wo(v,T),onTouchStart:wo(w,_)}]:[!1,C,{}]}function wo(r,n){return i=>{r&&r(i),i.defaultPrevented||n(i)}}function Bk({page:r,...n}){let{router:i}=yS(),o=R.useMemo(()=>sS(i.routes,r,i.basename),[i.routes,r,i.basename]);return o?R.createElement(Hk,{page:r,matches:o,...n}):null}function Uk(r){let{manifest:n,routeModules:i}=wS(),[o,a]=R.useState([]);return R.useEffect(()=>{let u=!1;return Lk(r,n,i).then(f=>{u||a(f)}),()=>{u=!0}},[r,n,i]),o}function Hk({page:r,matches:n,...i}){let o=Br(),{manifest:a,routeModules:u}=wS(),{basename:f}=yS(),{loaderData:p,matches:h}=qk(),m=R.useMemo(()=>X0(r,n,h,a,o,"data"),[r,n,h,a,o]),v=R.useMemo(()=>X0(r,n,h,a,o,"assets"),[r,n,h,a,o]),w=R.useMemo(()=>{if(r===o.pathname+o.search+o.hash)return[];let T=new Set,P=!1;if(n.forEach(N=>{let I=a.routes[N.route.id];!I||!I.hasLoader||(!m.some($=>$.route.id===N.route.id)&&N.route.id in p&&u[N.route.id]?.shouldRevalidate||I.hasClientLoader?P=!0:T.add(N.route.id))}),T.size===0)return[];let b=Ik(r,f,"data");return P&&T.size>0&&b.searchParams.set("_routes",n.filter(N=>T.has(N.route.id)).map(N=>N.route.id).join(",")),[b.pathname+b.search]},[f,p,o,a,m,n,r,u]),C=R.useMemo(()=>Dk(v,a),[v,a]),_=Uk(v);return R.createElement(R.Fragment,null,w.map(T=>R.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...i})),C.map(T=>R.createElement("link",{key:T,rel:"modulepreload",href:T,...i})),_.map(({key:T,link:P})=>R.createElement("link",{key:T,nonce:i.nonce,...P})))}function Wk(...r){return n=>{r.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var SS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{SS&&(window.__reactRouterVersion="7.8.2")}catch{}function Gk({basename:r,children:n,window:i}){let o=R.useRef();o.current==null&&(o.current=jR({window:i,v5Compat:!0}));let a=o.current,[u,f]=R.useState({action:a.action,location:a.location}),p=R.useCallback(h=>{R.startTransition(()=>f(h))},[f]);return R.useLayoutEffect(()=>a.listen(p),[a,p]),R.createElement(Ck,{basename:r,children:n,location:u.location,navigationType:u.action,navigator:a})}var _S=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CS=R.forwardRef(function({onClick:n,discover:i="render",prefetch:o="none",relative:a,reloadDocument:u,replace:f,state:p,target:h,to:m,preventScrollReset:v,viewTransition:w,...C},_){let{basename:T}=R.useContext(Sn),P=typeof m=="string"&&_S.test(m),b,N=!1;if(typeof m=="string"&&P&&(b=m,SS))try{let K=new URL(window.location.href),Z=m.startsWith("//")?new URL(K.protocol+m):new URL(m),Q=Ln(Z.pathname,T);Z.origin===K.origin&&Q!=null?m=Q+Z.search+Z.hash:N=!0}catch{wn(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let I=sk(m,{relative:a}),[$,F,U]=zk(o,C),M=Yk(m,{replace:f,state:p,target:h,preventScrollReset:v,relative:a,viewTransition:w});function A(K){n&&n(K),K.defaultPrevented||M(K)}let W=R.createElement("a",{...C,...U,href:b||I,onClick:N||u?n:A,ref:Wk(_,F),target:h,"data-discover":!P&&i==="render"?"true":void 0});return $&&!P?R.createElement(R.Fragment,null,W,R.createElement(Bk,{page:I})):W});CS.displayName="Link";var Vk=R.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:o="",end:a=!1,style:u,to:f,viewTransition:p,children:h,...m},v){let w=Ho(f,{relative:m.relative}),C=Br(),_=R.useContext(Ua),{navigator:T,basename:P}=R.useContext(Sn),b=_!=null&&tN(w)&&p===!0,N=T.encodeLocation?T.encodeLocation(w).pathname:w.pathname,I=C.pathname,$=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;i||(I=I.toLowerCase(),$=$?$.toLowerCase():null,N=N.toLowerCase()),$&&P&&($=Ln($,P)||$);const F=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let U=I===N||!a&&I.startsWith(N)&&I.charAt(F)==="/",M=$!=null&&($===N||!a&&$.startsWith(N)&&$.charAt(N.length)==="/"),A={isActive:U,isPending:M,isTransitioning:b},W=U?n:void 0,K;typeof o=="function"?K=o(A):K=[o,U?"active":null,M?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let Z=typeof u=="function"?u(A):u;return R.createElement(CS,{...m,"aria-current":W,className:K,ref:v,style:Z,to:f,viewTransition:p},typeof h=="function"?h(A):h)});Vk.displayName="NavLink";var Kk=R.forwardRef(({discover:r="render",fetcherKey:n,navigate:i,reloadDocument:o,replace:a,state:u,method:f=da,action:p,onSubmit:h,relative:m,preventScrollReset:v,viewTransition:w,...C},_)=>{let T=Jk(),P=eN(p,{relative:m}),b=f.toLowerCase()==="get"?"get":"post",N=typeof p=="string"&&_S.test(p),I=$=>{if(h&&h($),$.defaultPrevented)return;$.preventDefault();let F=$.nativeEvent.submitter,U=F?.getAttribute("formmethod")||f;T(F||$.currentTarget,{fetcherKey:n,method:U,navigate:i,replace:a,state:u,relative:m,preventScrollReset:v,viewTransition:w})};return R.createElement("form",{ref:_,method:b,action:P,onSubmit:o?h:I,...C,"data-discover":!N&&r==="render"?"true":void 0})});Kk.displayName="Form";function Qk(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ES(r){let n=R.useContext(Ti);return Be(n,Qk(r)),n}function Yk(r,{target:n,replace:i,state:o,preventScrollReset:a,relative:u,viewTransition:f}={}){let p=ak(),h=Br(),m=Ho(r,{relative:u});return R.useCallback(v=>{if(Tk(v,n)){v.preventDefault();let w=i!==void 0?i:No(h)===No(m);p(r,{replace:w,state:o,preventScrollReset:a,relative:u,viewTransition:f})}},[h,p,m,i,o,n,r,a,u,f])}var Xk=0,Zk=()=>`__${String(++Xk)}__`;function Jk(){let{router:r}=ES("useSubmit"),{basename:n}=R.useContext(Sn),i=yk();return R.useCallback(async(o,a={})=>{let{action:u,method:f,encType:p,formData:h,body:m}=Nk(o,n);if(a.navigate===!1){let v=a.fetcherKey||Zk();await r.fetch(v,i,a.action||u,{preventScrollReset:a.preventScrollReset,formData:h,body:m,formMethod:a.method||f,formEncType:a.encType||p,flushSync:a.flushSync})}else await r.navigate(a.action||u,{preventScrollReset:a.preventScrollReset,formData:h,body:m,formMethod:a.method||f,formEncType:a.encType||p,replace:a.replace,state:a.state,fromRouteId:i,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,n,i])}function eN(r,{relative:n}={}){let{basename:i}=R.useContext(Sn),o=R.useContext(Dn);Be(o,"useFormAction must be used inside a RouteContext");let[a]=o.matches.slice(-1),u={...Ho(r||".",{relative:n})},f=Br();if(r==null){u.search=f.search;let p=new URLSearchParams(u.search),h=p.getAll("index");if(h.some(v=>v==="")){p.delete("index"),h.filter(w=>w).forEach(w=>p.append("index",w));let v=p.toString();u.search=v?`?${v}`:""}}return(!r||r===".")&&a.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(u.pathname=u.pathname==="/"?i:An([i,u.pathname])),No(u)}function tN(r,{relative:n}={}){let i=R.useContext(dS);Be(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=ES("useViewTransitionState"),a=Ho(r,{relative:n});if(!i.isTransitioning)return!1;let u=Ln(i.currentLocation.pathname,o)||i.currentLocation.pathname,f=Ln(i.nextLocation.pathname,o)||i.nextLocation.pathname;return Sa(a.pathname,f)!=null||Sa(a.pathname,u)!=null}var Pt=function(){return Pt=Object.assign||function(n){for(var i,o=1,a=arguments.length;o<a;o++){i=arguments[o];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},Pt.apply(this,arguments)};function Io(r,n,i){if(i||arguments.length===2)for(var o=0,a=n.length,u;o<a;o++)(u||!(o in n))&&(u||(u=Array.prototype.slice.call(n,0,o)),u[o]=n[o]);return r.concat(u||Array.prototype.slice.call(n))}var Le="-ms-",Ro="-moz-",Te="-webkit-",bS="comm",Wa="rule",Sh="decl",nN="@import",xS="@keyframes",rN="@layer",OS=Math.abs,_h=String.fromCharCode,Rp=Object.assign;function iN(r,n){return nt(r,0)^45?(((n<<2^nt(r,0))<<2^nt(r,1))<<2^nt(r,2))<<2^nt(r,3):0}function PS(r){return r.trim()}function In(r,n){return(r=n.exec(r))?r[0]:r}function ge(r,n,i){return r.replace(n,i)}function ha(r,n,i){return r.indexOf(n,i)}function nt(r,n){return r.charCodeAt(n)|0}function vi(r,n,i){return r.slice(n,i)}function yn(r){return r.length}function TS(r){return r.length}function Oo(r,n){return n.push(r),r}function oN(r,n){return r.map(n).join("")}function Z0(r,n){return r.filter(function(i){return!In(i,n)})}var Ga=1,yi=1,RS=0,Gt=0,Qe=0,Ri="";function Va(r,n,i,o,a,u,f,p){return{value:r,root:n,parent:i,type:o,props:a,children:u,line:Ga,column:yi,length:f,return:"",siblings:p}}function sr(r,n){return Rp(Va("",null,null,"",null,null,0,r.siblings),r,{length:-r.length},n)}function pi(r){for(;r.root;)r=sr(r.root,{children:[r]});Oo(r,r.siblings)}function sN(){return Qe}function aN(){return Qe=Gt>0?nt(Ri,--Gt):0,yi--,Qe===10&&(yi=1,Ga--),Qe}function ln(){return Qe=Gt<RS?nt(Ri,Gt++):0,yi++,Qe===10&&(yi=1,Ga++),Qe}function Ar(){return nt(Ri,Gt)}function ma(){return Gt}function Ka(r,n){return vi(Ri,r,n)}function kp(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lN(r){return Ga=yi=1,RS=yn(Ri=r),Gt=0,[]}function uN(r){return Ri="",r}function yp(r){return PS(Ka(Gt-1,Np(r===91?r+2:r===40?r+1:r)))}function cN(r){for(;(Qe=Ar())&&Qe<33;)ln();return kp(r)>2||kp(Qe)>3?"":" "}function fN(r,n){for(;--n&&ln()&&!(Qe<48||Qe>102||Qe>57&&Qe<65||Qe>70&&Qe<97););return Ka(r,ma()+(n<6&&Ar()==32&&ln()==32))}function Np(r){for(;ln();)switch(Qe){case r:return Gt;case 34:case 39:r!==34&&r!==39&&Np(Qe);break;case 40:r===41&&Np(r);break;case 92:ln();break}return Gt}function dN(r,n){for(;ln()&&r+Qe!==57;)if(r+Qe===84&&Ar()===47)break;return"/*"+Ka(n,Gt-1)+"*"+_h(r===47?r:ln())}function pN(r){for(;!kp(Ar());)ln();return Ka(r,Gt)}function hN(r){return uN(ga("",null,null,null,[""],r=lN(r),0,[0],r))}function ga(r,n,i,o,a,u,f,p,h){for(var m=0,v=0,w=f,C=0,_=0,T=0,P=1,b=1,N=1,I=0,$="",F=a,U=u,M=o,A=$;b;)switch(T=I,I=ln()){case 40:if(T!=108&&nt(A,w-1)==58){ha(A+=ge(yp(I),"&","&\f"),"&\f",OS(m?p[m-1]:0))!=-1&&(N=-1);break}case 34:case 39:case 91:A+=yp(I);break;case 9:case 10:case 13:case 32:A+=cN(T);break;case 92:A+=fN(ma()-1,7);continue;case 47:switch(Ar()){case 42:case 47:Oo(mN(dN(ln(),ma()),n,i,h),h);break;default:A+="/"}break;case 123*P:p[m++]=yn(A)*N;case 125*P:case 59:case 0:switch(I){case 0:case 125:b=0;case 59+v:N==-1&&(A=ge(A,/\f/g,"")),_>0&&yn(A)-w&&Oo(_>32?ew(A+";",o,i,w-1,h):ew(ge(A," ","")+";",o,i,w-2,h),h);break;case 59:A+=";";default:if(Oo(M=J0(A,n,i,m,v,a,p,$,F=[],U=[],w,u),u),I===123)if(v===0)ga(A,n,M,M,F,u,w,p,U);else switch(C===99&&nt(A,3)===110?100:C){case 100:case 108:case 109:case 115:ga(r,M,M,o&&Oo(J0(r,M,M,0,0,a,p,$,a,F=[],w,U),U),a,U,w,p,o?F:U);break;default:ga(A,M,M,M,[""],U,0,p,U)}}m=v=_=0,P=N=1,$=A="",w=f;break;case 58:w=1+yn(A),_=T;default:if(P<1){if(I==123)--P;else if(I==125&&P++==0&&aN()==125)continue}switch(A+=_h(I),I*P){case 38:N=v>0?1:(A+="\f",-1);break;case 44:p[m++]=(yn(A)-1)*N,N=1;break;case 64:Ar()===45&&(A+=yp(ln())),C=Ar(),v=w=yn($=A+=pN(ma())),I++;break;case 45:T===45&&yn(A)==2&&(P=0)}}return u}function J0(r,n,i,o,a,u,f,p,h,m,v,w){for(var C=a-1,_=a===0?u:[""],T=TS(_),P=0,b=0,N=0;P<o;++P)for(var I=0,$=vi(r,C+1,C=OS(b=f[P])),F=r;I<T;++I)(F=PS(b>0?_[I]+" "+$:ge($,/&\f/g,_[I])))&&(h[N++]=F);return Va(r,n,i,a===0?Wa:p,h,m,v,w)}function mN(r,n,i,o){return Va(r,n,i,bS,_h(sN()),vi(r,2,-2),0,o)}function ew(r,n,i,o,a){return Va(r,n,i,Sh,vi(r,0,o),vi(r,o+1,-1),o,a)}function kS(r,n,i){switch(iN(r,n)){case 5103:return Te+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Te+r+r;case 4789:return Ro+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return Te+r+Ro+r+Le+r+r;case 5936:switch(nt(r,n+11)){case 114:return Te+r+Le+ge(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return Te+r+Le+ge(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return Te+r+Le+ge(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return Te+r+Le+r+r;case 6165:return Te+r+Le+"flex-"+r+r;case 5187:return Te+r+ge(r,/(\w+).+(:[^]+)/,Te+"box-$1$2"+Le+"flex-$1$2")+r;case 5443:return Te+r+Le+"flex-item-"+ge(r,/flex-|-self/g,"")+(In(r,/flex-|baseline/)?"":Le+"grid-row-"+ge(r,/flex-|-self/g,""))+r;case 4675:return Te+r+Le+"flex-line-pack"+ge(r,/align-content|flex-|-self/g,"")+r;case 5548:return Te+r+Le+ge(r,"shrink","negative")+r;case 5292:return Te+r+Le+ge(r,"basis","preferred-size")+r;case 6060:return Te+"box-"+ge(r,"-grow","")+Te+r+Le+ge(r,"grow","positive")+r;case 4554:return Te+ge(r,/([^-])(transform)/g,"$1"+Te+"$2")+r;case 6187:return ge(ge(ge(r,/(zoom-|grab)/,Te+"$1"),/(image-set)/,Te+"$1"),r,"")+r;case 5495:case 3959:return ge(r,/(image-set\([^]*)/,Te+"$1$`$1");case 4968:return ge(ge(r,/(.+:)(flex-)?(.*)/,Te+"box-pack:$3"+Le+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Te+r+r;case 4200:if(!In(r,/flex-|baseline/))return Le+"grid-column-align"+vi(r,n)+r;break;case 2592:case 3360:return Le+ge(r,"template-","")+r;case 4384:case 3616:return i&&i.some(function(o,a){return n=a,In(o.props,/grid-\w+-end/)})?~ha(r+(i=i[n].value),"span",0)?r:Le+ge(r,"-start","")+r+Le+"grid-row-span:"+(~ha(i,"span",0)?In(i,/\d+/):+In(i,/\d+/)-+In(r,/\d+/))+";":Le+ge(r,"-start","")+r;case 4896:case 4128:return i&&i.some(function(o){return In(o.props,/grid-\w+-start/)})?r:Le+ge(ge(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return ge(r,/(.+)-inline(.+)/,Te+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(yn(r)-1-n>6)switch(nt(r,n+1)){case 109:if(nt(r,n+4)!==45)break;case 102:return ge(r,/(.+:)(.+)-([^]+)/,"$1"+Te+"$2-$3$1"+Ro+(nt(r,n+3)==108?"$3":"$2-$3"))+r;case 115:return~ha(r,"stretch",0)?kS(ge(r,"stretch","fill-available"),n,i)+r:r}break;case 5152:case 5920:return ge(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,a,u,f,p,h,m){return Le+a+":"+u+m+(f?Le+a+"-span:"+(p?h:+h-+u)+m:"")+r});case 4949:if(nt(r,n+6)===121)return ge(r,":",":"+Te)+r;break;case 6444:switch(nt(r,nt(r,14)===45?18:11)){case 120:return ge(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Te+(nt(r,14)===45?"inline-":"")+"box$3$1"+Te+"$2$3$1"+Le+"$2box$3")+r;case 100:return ge(r,":",":"+Le)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ge(r,"scroll-","scroll-snap-")+r}return r}function _a(r,n){for(var i="",o=0;o<r.length;o++)i+=n(r[o],o,r,n)||"";return i}function gN(r,n,i,o){switch(r.type){case rN:if(r.children.length)break;case nN:case Sh:return r.return=r.return||r.value;case bS:return"";case xS:return r.return=r.value+"{"+_a(r.children,o)+"}";case Wa:if(!yn(r.value=r.props.join(",")))return""}return yn(i=_a(r.children,o))?r.return=r.value+"{"+i+"}":""}function vN(r){var n=TS(r);return function(i,o,a,u){for(var f="",p=0;p<n;p++)f+=r[p](i,o,a,u)||"";return f}}function yN(r){return function(n){n.root||(n=n.return)&&r(n)}}function wN(r,n,i,o){if(r.length>-1&&!r.return)switch(r.type){case Sh:r.return=kS(r.value,r.length,i);return;case xS:return _a([sr(r,{value:ge(r.value,"@","@"+Te)})],o);case Wa:if(r.length)return oN(i=r.props,function(a){switch(In(a,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pi(sr(r,{props:[ge(a,/:(read-\w+)/,":"+Ro+"$1")]})),pi(sr(r,{props:[a]})),Rp(r,{props:Z0(i,o)});break;case"::placeholder":pi(sr(r,{props:[ge(a,/:(plac\w+)/,":"+Te+"input-$1")]})),pi(sr(r,{props:[ge(a,/:(plac\w+)/,":"+Ro+"$1")]})),pi(sr(r,{props:[ge(a,/:(plac\w+)/,Le+"input-$1")]})),pi(sr(r,{props:[a]})),Rp(r,{props:Z0(i,o)});break}return""})}}var SN={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Lt={},wi=typeof process<"u"&&Lt!==void 0&&(Lt.REACT_APP_SC_ATTR||Lt.SC_ATTR)||"data-styled",NS="active",IS="data-styled-version",Qa="6.1.19",Ch=`/*!sc*/
56
+ `,Ca=typeof window<"u"&&typeof document<"u",_N=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Lt!==void 0&&Lt.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Lt.REACT_APP_SC_DISABLE_SPEEDY!==""?Lt.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Lt.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Lt!==void 0&&Lt.SC_DISABLE_SPEEDY!==void 0&&Lt.SC_DISABLE_SPEEDY!==""&&Lt.SC_DISABLE_SPEEDY!=="false"&&Lt.SC_DISABLE_SPEEDY),Ya=Object.freeze([]),Si=Object.freeze({});function CN(r,n,i){return i===void 0&&(i=Si),r.theme!==i.theme&&r.theme||n||i.theme}var jS=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),EN=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,bN=/(^-|-$)/g;function tw(r){return r.replace(EN,"-").replace(bN,"")}var xN=/(a)(d)/gi,la=52,nw=function(r){return String.fromCharCode(r+(r>25?39:97))};function Ip(r){var n,i="";for(n=Math.abs(r);n>la;n=n/la|0)i=nw(n%la)+i;return(nw(n%la)+i).replace(xN,"$1-$2")}var wp,AS=5381,mi=function(r,n){for(var i=n.length;i;)r=33*r^n.charCodeAt(--i);return r},LS=function(r){return mi(AS,r)};function DS(r){return Ip(LS(r)>>>0)}function ON(r){return r.displayName||r.name||"Component"}function Sp(r){return typeof r=="string"&&!0}var MS=typeof Symbol=="function"&&Symbol.for,$S=MS?Symbol.for("react.memo"):60115,PN=MS?Symbol.for("react.forward_ref"):60112,TN={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},RN={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kN=((wp={})[PN]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wp[$S]=FS,wp);function rw(r){return("type"in(n=r)&&n.type.$$typeof)===$S?FS:"$$typeof"in r?kN[r.$$typeof]:TN;var n}var NN=Object.defineProperty,IN=Object.getOwnPropertyNames,iw=Object.getOwnPropertySymbols,jN=Object.getOwnPropertyDescriptor,AN=Object.getPrototypeOf,ow=Object.prototype;function qS(r,n,i){if(typeof n!="string"){if(ow){var o=AN(n);o&&o!==ow&&qS(r,o,i)}var a=IN(n);iw&&(a=a.concat(iw(n)));for(var u=rw(r),f=rw(n),p=0;p<a.length;++p){var h=a[p];if(!(h in RN||i&&i[h]||f&&h in f||u&&h in u)){var m=jN(n,h);try{NN(r,h,m)}catch{}}}}return r}function _i(r){return typeof r=="function"}function Eh(r){return typeof r=="object"&&"styledComponentId"in r}function jr(r,n){return r&&n?"".concat(r," ").concat(n):r||n||""}function jp(r,n){if(r.length===0)return"";for(var i=r[0],o=1;o<r.length;o++)i+=r[o];return i}function jo(r){return r!==null&&typeof r=="object"&&r.constructor.name===Object.name&&!("props"in r&&r.$$typeof)}function Ap(r,n,i){if(i===void 0&&(i=!1),!i&&!jo(r)&&!Array.isArray(r))return n;if(Array.isArray(n))for(var o=0;o<n.length;o++)r[o]=Ap(r[o],n[o]);else if(jo(n))for(var o in n)r[o]=Ap(r[o],n[o]);return r}function bh(r,n){Object.defineProperty(r,"toString",{value:n})}function Wo(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(r," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):""))}var LN=(function(){function r(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}return r.prototype.indexOfGroup=function(n){for(var i=0,o=0;o<n;o++)i+=this.groupSizes[o];return i},r.prototype.insertRules=function(n,i){if(n>=this.groupSizes.length){for(var o=this.groupSizes,a=o.length,u=a;n>=u;)if((u<<=1)<0)throw Wo(16,"".concat(n));this.groupSizes=new Uint32Array(u),this.groupSizes.set(o),this.length=u;for(var f=a;f<u;f++)this.groupSizes[f]=0}for(var p=this.indexOfGroup(n+1),h=(f=0,i.length);f<h;f++)this.tag.insertRule(p,i[f])&&(this.groupSizes[n]++,p++)},r.prototype.clearGroup=function(n){if(n<this.length){var i=this.groupSizes[n],o=this.indexOfGroup(n),a=o+i;this.groupSizes[n]=0;for(var u=o;u<a;u++)this.tag.deleteRule(o)}},r.prototype.getGroup=function(n){var i="";if(n>=this.length||this.groupSizes[n]===0)return i;for(var o=this.groupSizes[n],a=this.indexOfGroup(n),u=a+o,f=a;f<u;f++)i+="".concat(this.tag.getRule(f)).concat(Ch);return i},r})(),va=new Map,Ea=new Map,ya=1,ua=function(r){if(va.has(r))return va.get(r);for(;Ea.has(ya);)ya++;var n=ya++;return va.set(r,n),Ea.set(n,r),n},DN=function(r,n){ya=n+1,va.set(r,n),Ea.set(n,r)},MN="style[".concat(wi,"][").concat(IS,'="').concat(Qa,'"]'),$N=new RegExp("^".concat(wi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),FN=function(r,n,i){for(var o,a=i.split(","),u=0,f=a.length;u<f;u++)(o=a[u])&&r.registerName(n,o)},qN=function(r,n){for(var i,o=((i=n.textContent)!==null&&i!==void 0?i:"").split(Ch),a=[],u=0,f=o.length;u<f;u++){var p=o[u].trim();if(p){var h=p.match($N);if(h){var m=0|parseInt(h[1],10),v=h[2];m!==0&&(DN(v,m),FN(r,v,h[3]),r.getTag().insertRules(m,a)),a.length=0}else a.push(p)}}},sw=function(r){for(var n=document.querySelectorAll(MN),i=0,o=n.length;i<o;i++){var a=n[i];a&&a.getAttribute(wi)!==NS&&(qN(r,a),a.parentNode&&a.parentNode.removeChild(a))}};function zN(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var zS=function(r){var n=document.head,i=r||n,o=document.createElement("style"),a=(function(p){var h=Array.from(p.querySelectorAll("style[".concat(wi,"]")));return h[h.length-1]})(i),u=a!==void 0?a.nextSibling:null;o.setAttribute(wi,NS),o.setAttribute(IS,Qa);var f=zN();return f&&o.setAttribute("nonce",f),i.insertBefore(o,u),o},BN=(function(){function r(n){this.element=zS(n),this.element.appendChild(document.createTextNode("")),this.sheet=(function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,a=0,u=o.length;a<u;a++){var f=o[a];if(f.ownerNode===i)return f}throw Wo(17)})(this.element),this.length=0}return r.prototype.insertRule=function(n,i){try{return this.sheet.insertRule(i,n),this.length++,!0}catch{return!1}},r.prototype.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},r.prototype.getRule=function(n){var i=this.sheet.cssRules[n];return i&&i.cssText?i.cssText:""},r})(),UN=(function(){function r(n){this.element=zS(n),this.nodes=this.element.childNodes,this.length=0}return r.prototype.insertRule=function(n,i){if(n<=this.length&&n>=0){var o=document.createTextNode(i);return this.element.insertBefore(o,this.nodes[n]||null),this.length++,!0}return!1},r.prototype.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},r.prototype.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},r})(),HN=(function(){function r(n){this.rules=[],this.length=0}return r.prototype.insertRule=function(n,i){return n<=this.length&&(this.rules.splice(n,0,i),this.length++,!0)},r.prototype.deleteRule=function(n){this.rules.splice(n,1),this.length--},r.prototype.getRule=function(n){return n<this.length?this.rules[n]:""},r})(),aw=Ca,WN={isServer:!Ca,useCSSOMInjection:!_N},BS=(function(){function r(n,i,o){n===void 0&&(n=Si),i===void 0&&(i={});var a=this;this.options=Pt(Pt({},WN),n),this.gs=i,this.names=new Map(o),this.server=!!n.isServer,!this.server&&Ca&&aw&&(aw=!1,sw(this)),bh(this,function(){return(function(u){for(var f=u.getTag(),p=f.length,h="",m=function(w){var C=(function(N){return Ea.get(N)})(w);if(C===void 0)return"continue";var _=u.names.get(C),T=f.getGroup(w);if(_===void 0||!_.size||T.length===0)return"continue";var P="".concat(wi,".g").concat(w,'[id="').concat(C,'"]'),b="";_!==void 0&&_.forEach(function(N){N.length>0&&(b+="".concat(N,","))}),h+="".concat(T).concat(P,'{content:"').concat(b,'"}').concat(Ch)},v=0;v<p;v++)m(v);return h})(a)})}return r.registerId=function(n){return ua(n)},r.prototype.rehydrate=function(){!this.server&&Ca&&sw(this)},r.prototype.reconstructWithOptions=function(n,i){return i===void 0&&(i=!0),new r(Pt(Pt({},this.options),n),this.gs,i&&this.names||void 0)},r.prototype.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},r.prototype.getTag=function(){return this.tag||(this.tag=(n=(function(i){var o=i.useCSSOMInjection,a=i.target;return i.isServer?new HN(a):o?new BN(a):new UN(a)})(this.options),new LN(n)));var n},r.prototype.hasNameForId=function(n,i){return this.names.has(n)&&this.names.get(n).has(i)},r.prototype.registerName=function(n,i){if(ua(n),this.names.has(n))this.names.get(n).add(i);else{var o=new Set;o.add(i),this.names.set(n,o)}},r.prototype.insertRules=function(n,i,o){this.registerName(n,i),this.getTag().insertRules(ua(n),o)},r.prototype.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},r.prototype.clearRules=function(n){this.getTag().clearGroup(ua(n)),this.clearNames(n)},r.prototype.clearTag=function(){this.tag=void 0},r})(),GN=/&/g,VN=/^\s*\/\/.*$/gm;function US(r,n){return r.map(function(i){return i.type==="rule"&&(i.value="".concat(n," ").concat(i.value),i.value=i.value.replaceAll(",",",".concat(n," ")),i.props=i.props.map(function(o){return"".concat(n," ").concat(o)})),Array.isArray(i.children)&&i.type!=="@keyframes"&&(i.children=US(i.children,n)),i})}function KN(r){var n,i,o,a=Si,u=a.options,f=u===void 0?Si:u,p=a.plugins,h=p===void 0?Ya:p,m=function(C,_,T){return T.startsWith(i)&&T.endsWith(i)&&T.replaceAll(i,"").length>0?".".concat(n):C},v=h.slice();v.push(function(C){C.type===Wa&&C.value.includes("&")&&(C.props[0]=C.props[0].replace(GN,i).replace(o,m))}),f.prefix&&v.push(wN),v.push(gN);var w=function(C,_,T,P){_===void 0&&(_=""),T===void 0&&(T=""),P===void 0&&(P="&"),n=P,i=_,o=new RegExp("\\".concat(i,"\\b"),"g");var b=C.replace(VN,""),N=hN(T||_?"".concat(T," ").concat(_," { ").concat(b," }"):b);f.namespace&&(N=US(N,f.namespace));var I=[];return _a(N,vN(v.concat(yN(function($){return I.push($)})))),I};return w.hash=h.length?h.reduce(function(C,_){return _.name||Wo(15),mi(C,_.name)},AS).toString():"",w}var QN=new BS,Lp=KN(),HS=L.createContext({shouldForwardProp:void 0,styleSheet:QN,stylis:Lp});HS.Consumer;L.createContext(void 0);function lw(){return R.useContext(HS)}var WS=(function(){function r(n,i){var o=this;this.inject=function(a,u){u===void 0&&(u=Lp);var f=o.name+u.hash;a.hasNameForId(o.id,f)||a.insertRules(o.id,f,u(o.rules,f,"@keyframes"))},this.name=n,this.id="sc-keyframes-".concat(n),this.rules=i,bh(this,function(){throw Wo(12,String(o.name))})}return r.prototype.getName=function(n){return n===void 0&&(n=Lp),this.name+n.hash},r})(),YN=function(r){return r>="A"&&r<="Z"};function uw(r){for(var n="",i=0;i<r.length;i++){var o=r[i];if(i===1&&o==="-"&&r[0]==="-")return r;YN(o)?n+="-"+o.toLowerCase():n+=o}return n.startsWith("ms-")?"-"+n:n}var GS=function(r){return r==null||r===!1||r===""},VS=function(r){var n,i,o=[];for(var a in r){var u=r[a];r.hasOwnProperty(a)&&!GS(u)&&(Array.isArray(u)&&u.isCss||_i(u)?o.push("".concat(uw(a),":"),u,";"):jo(u)?o.push.apply(o,Io(Io(["".concat(a," {")],VS(u),!1),["}"],!1)):o.push("".concat(uw(a),": ").concat((n=a,(i=u)==null||typeof i=="boolean"||i===""?"":typeof i!="number"||i===0||n in SN||n.startsWith("--")?String(i).trim():"".concat(i,"px")),";")))}return o};function Lr(r,n,i,o){if(GS(r))return[];if(Eh(r))return[".".concat(r.styledComponentId)];if(_i(r)){if(!_i(u=r)||u.prototype&&u.prototype.isReactComponent||!n)return[r];var a=r(n);return Lr(a,n,i,o)}var u;return r instanceof WS?i?(r.inject(i,o),[r.getName(o)]):[r]:jo(r)?VS(r):Array.isArray(r)?Array.prototype.concat.apply(Ya,r.map(function(f){return Lr(f,n,i,o)})):[r.toString()]}function XN(r){for(var n=0;n<r.length;n+=1){var i=r[n];if(_i(i)&&!Eh(i))return!1}return!0}var ZN=LS(Qa),JN=(function(){function r(n,i,o){this.rules=n,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&XN(n),this.componentId=i,this.baseHash=mi(ZN,i),this.baseStyle=o,BS.registerId(i)}return r.prototype.generateAndInjectStyles=function(n,i,o){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(n,i,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&i.hasNameForId(this.componentId,this.staticRulesId))a=jr(a,this.staticRulesId);else{var u=jp(Lr(this.rules,n,i,o)),f=Ip(mi(this.baseHash,u)>>>0);if(!i.hasNameForId(this.componentId,f)){var p=o(u,".".concat(f),void 0,this.componentId);i.insertRules(this.componentId,f,p)}a=jr(a,f),this.staticRulesId=f}else{for(var h=mi(this.baseHash,o.hash),m="",v=0;v<this.rules.length;v++){var w=this.rules[v];if(typeof w=="string")m+=w;else if(w){var C=jp(Lr(w,n,i,o));h=mi(h,C+v),m+=C}}if(m){var _=Ip(h>>>0);i.hasNameForId(this.componentId,_)||i.insertRules(this.componentId,_,o(m,".".concat(_),void 0,this.componentId)),a=jr(a,_)}}return a},r})(),KS=L.createContext(void 0);KS.Consumer;var _p={};function eI(r,n,i){var o=Eh(r),a=r,u=!Sp(r),f=n.attrs,p=f===void 0?Ya:f,h=n.componentId,m=h===void 0?(function(F,U){var M=typeof F!="string"?"sc":tw(F);_p[M]=(_p[M]||0)+1;var A="".concat(M,"-").concat(DS(Qa+M+_p[M]));return U?"".concat(U,"-").concat(A):A})(n.displayName,n.parentComponentId):h,v=n.displayName,w=v===void 0?(function(F){return Sp(F)?"styled.".concat(F):"Styled(".concat(ON(F),")")})(r):v,C=n.displayName&&n.componentId?"".concat(tw(n.displayName),"-").concat(n.componentId):n.componentId||m,_=o&&a.attrs?a.attrs.concat(p).filter(Boolean):p,T=n.shouldForwardProp;if(o&&a.shouldForwardProp){var P=a.shouldForwardProp;if(n.shouldForwardProp){var b=n.shouldForwardProp;T=function(F,U){return P(F,U)&&b(F,U)}}else T=P}var N=new JN(i,C,o?a.componentStyle:void 0);function I(F,U){return(function(M,A,W){var K=M.attrs,Z=M.componentStyle,Q=M.defaultProps,oe=M.foldedComponentIds,te=M.styledComponentId,ve=M.target,Pe=L.useContext(KS),Ee=lw(),ye=M.shouldForwardProp||Ee.shouldForwardProp,G=CN(A,Pe,Q)||Si,Y=(function(me,ue,he){for(var ce,we=Pt(Pt({},ue),{className:void 0,theme:he}),gt=0;gt<me.length;gt+=1){var ot=_i(ce=me[gt])?ce(we):ce;for(var vt in ot)we[vt]=vt==="className"?jr(we[vt],ot[vt]):vt==="style"?Pt(Pt({},we[vt]),ot[vt]):ot[vt]}return ue.className&&(we.className=jr(we.className,ue.className)),we})(K,A,G),E=Y.as||ve,q={};for(var X in Y)Y[X]===void 0||X[0]==="$"||X==="as"||X==="theme"&&Y.theme===G||(X==="forwardedAs"?q.as=Y.forwardedAs:ye&&!ye(X,E)||(q[X]=Y[X]));var pe=(function(me,ue){var he=lw(),ce=me.generateAndInjectStyles(ue,he.styleSheet,he.stylis);return ce})(Z,Y),se=jr(oe,te);return pe&&(se+=" "+pe),Y.className&&(se+=" "+Y.className),q[Sp(E)&&!jS.has(E)?"class":"className"]=se,W&&(q.ref=W),R.createElement(E,q)})($,F,U)}I.displayName=w;var $=L.forwardRef(I);return $.attrs=_,$.componentStyle=N,$.displayName=w,$.shouldForwardProp=T,$.foldedComponentIds=o?jr(a.foldedComponentIds,a.styledComponentId):"",$.styledComponentId=C,$.target=o?a.target:r,Object.defineProperty($,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(F){this._foldedDefaultProps=o?(function(U){for(var M=[],A=1;A<arguments.length;A++)M[A-1]=arguments[A];for(var W=0,K=M;W<K.length;W++)Ap(U,K[W],!0);return U})({},a.defaultProps,F):F}}),bh($,function(){return".".concat($.styledComponentId)}),u&&qS($,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),$}function cw(r,n){for(var i=[r[0]],o=0,a=n.length;o<a;o+=1)i.push(n[o],r[o+1]);return i}var fw=function(r){return Object.assign(r,{isCss:!0})};function xh(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(_i(r)||jo(r))return fw(Lr(cw(Ya,Io([r],n,!0))));var o=r;return n.length===0&&o.length===1&&typeof o[0]=="string"?Lr(o):fw(Lr(cw(o,n)))}function Dp(r,n,i){if(i===void 0&&(i=Si),!n)throw Wo(1,n);var o=function(a){for(var u=[],f=1;f<arguments.length;f++)u[f-1]=arguments[f];return r(n,i,xh.apply(void 0,Io([a],u,!1)))};return o.attrs=function(a){return Dp(r,n,Pt(Pt({},i),{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},o.withConfig=function(a){return Dp(r,n,Pt(Pt({},i),a))},o}var QS=function(r){return Dp(eI,r)},Go=QS;jS.forEach(function(r){Go[r]=QS(r)});function tI(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=jp(xh.apply(void 0,Io([r],n,!1))),a=DS(o);return new WS(a,o)}var YS={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},dw=L.createContext&&L.createContext(YS),nI=["attr","size","title"];function rI(r,n){if(r==null)return{};var i=iI(r,n),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);for(a=0;a<u.length;a++)o=u[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(i[o]=r[o])}return i}function iI(r,n){if(r==null)return{};var i={};for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){if(n.indexOf(o)>=0)continue;i[o]=r[o]}return i}function ba(){return ba=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},ba.apply(this,arguments)}function pw(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),i.push.apply(i,o)}return i}function xa(r){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?pw(Object(i),!0).forEach(function(o){oI(r,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):pw(Object(i)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(i,o))})}return r}function oI(r,n,i){return n=sI(n),n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}function sI(r){var n=aI(r,"string");return typeof n=="symbol"?n:n+""}function aI(r,n){if(typeof r!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var o=i.call(r,n);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(r)}function XS(r){return r&&r.map((n,i)=>L.createElement(n.tag,xa({key:i},n.attr),XS(n.child)))}function Xa(r){return n=>L.createElement(lI,ba({attr:xa({},r.attr)},n),XS(r.child))}function lI(r){var n=i=>{var{attr:o,size:a,title:u}=r,f=rI(r,nI),p=a||i.size||"1em",h;return i.className&&(h=i.className),r.className&&(h=(h?h+" ":"")+r.className),L.createElement("svg",ba({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,o,f,{className:h,style:xa(xa({color:r.color||i.color},i.style),r.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),u&&L.createElement("title",null,u),r.children)};return dw!==void 0?L.createElement(dw.Consumer,null,i=>n(i)):n(YS)}function uI(r){return Xa({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"12",y2:"13"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(r)}function cI(r){return Xa({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},child:[]},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"},child:[]}]})(r)}function fI(r){return Xa({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(r)}function dI(r){return Xa({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"},child:[]}]})(r)}const ZS={success:{color:"#43a047",icon:cI},error:{color:"#e53935",icon:dI},warning:{color:"#f57c00",icon:uI},info:{color:"#1e88e5",icon:fI}},pI=Go.div`
57
+ display: flex;
58
+ align-items: center;
59
+ padding: 12px 20px;
60
+ font-size: 18px;
61
+ font-weight: 500;
62
+ border-radius: 2px;
63
+ margin: 32px 0;
64
+ /* --- 动画效果 --- */
65
+ /* isVisible 属性直接控制透明度和位置 */
66
+ opacity: ${({isVisible:r})=>r?1:0};
67
+ transform: ${({isVisible:r})=>r?"translateY(0)":"translateY(-20px)"};
68
+
69
+ /* 过渡效果应用于多个属性,实现平滑切换 */
70
+ transition:
71
+ opacity 0.3s ease-out,
72
+ transform 0.3s ease-out,
73
+ color 0.3s ease-out,
74
+ background-color 0.3s ease-out,
75
+ border-color 0.3s ease-out;
76
+
77
+ /* --- 根据 theme 设置颜色 --- */
78
+ ${({theme:r})=>{const n=ZS[r];return xh`
79
+ color: ${n.color};
80
+ background-color: ${n.color}1A; /* 使用颜色的 10% 透明度作为背景 */
81
+ border: 1px solid ${n.color}4D; /* 使用颜色的 30% 透明度作为边框 */
82
+ `}}
83
+
84
+ /* --- 图标样式 --- */
85
+ svg {
86
+ margin-right: 10px;
87
+ font-size: 20px;
88
+ flex-shrink: 0; /* 防止图标在 flex 布局中被压缩 */
89
+ }
90
+
91
+ /* --- 宽度和换行处理 --- */
92
+ /* 确保消息框不会过宽,并且长文本能正确换行 */
93
+ max-width: 90%;
94
+ min-width: 50%;
95
+ /* overflow-wrap: break-word; */
96
+ `,hI=()=>{const{state:r}=hh(),n=r.message,i=300,[o,a]=R.useState(!1),[u,f]=R.useState(n),p=R.useRef(null);if(R.useEffect(()=>(p.current&&clearTimeout(p.current),n.text?(f(n),a(!0)):o&&(a(!1),p.current=setTimeout(()=>{f({text:"",theme:"info",visible:!1})},i)),()=>{p.current&&clearTimeout(p.current)}),[n,o]),!u.text)return null;const{text:h,theme:m="info"}=u,v=ZS[m];return v?(v.icon,fe.jsx(pI,{theme:m,isVisible:o,children:fe.jsx("span",{children:h})})):null};class mI{listeners=new Map;on(n,i){return this.listeners.has(n)||this.listeners.set(n,new Set),this.listeners.get(n).add(i),()=>this.off(n,i)}off(n,i){const o=this.listeners.get(n);o&&(o.delete(i),o.size===0&&this.listeners.delete(n))}emit(n,i){const o=this.listeners.get(n);o&&o.forEach(a=>{try{a(i)}catch(u){console.error(`Error in listener for event "${String(n)}":`,u)}})}removeAllListeners(n){this.listeners.delete(n)}clearAll(){this.listeners.clear()}}const $e=new mI;function Oh(r){const{url:n,method:i="GET",data:o=void 0,headers:a={},timeout:u=1e4}=r;let f=n;const p={method:i,headers:{"Content-Type":"application/json",...a}};if(i.toUpperCase()==="GET"&&o){const h=new URLSearchParams(o).toString();f+=(f.includes("?")?"&":"?")+h}else o&&(p.body=JSON.stringify(o));return Promise.race([fetch(f,p).then(async h=>{if(!h.ok)return{isSuccess:!1,msg:h.statusText};const m=h.headers.get("content-type");if(m&&m.includes("application/json"))try{const v=await h.text();return v.trim()?JSON.parse(v):{isSuccess:!0,data:{}}}catch(v){throw new Error(`Failed to parse JSON response: ${v instanceof Error?v.message:"Unknown error"}`)}else return h.text()}),new Promise((h,m)=>setTimeout(()=>m(new Error("Request timeout")),u))])}function gI(r){return new URLSearchParams(window.location.search).get(r)}function Za(r,...n){Number(gI("enableLog"))&&console[r](...n)}const Dt=(...r)=>Za("log",...r);Dt.info=(...r)=>Za("info",...r);Dt.warn=(...r)=>Za("warn",...r);Dt.error=(...r)=>Za("error",...r);const So={isNodeWSConnected:!1,isClientWSConnected:!1,clientHost:null,clientWsPort:null,clientHttpPort:null,clientKey:"",isResourcesReady:!1,isScriptsReady:!1,packages:{}};class vI{data;constructor(n){this.data={...So,...n}}get(n){return this.data[n]}set(n,i){this.data[n]=i,this.logUpdate({[n]:i})}setMultiple(n){this.data={...this.data,...n},this.logUpdate(n)}getMultiple(n){return n.reduce((i,o)=>(i[o]=this.data[o],i),{})}getAll(){return{...this.data}}resetField(n){this.data[n]=So[n],this.logUpdate({[n]:So[n]})}clear(){this.data={...So},this.logUpdate(So,!0)}init(n){this.data=n,this.logUpdate(n,!0)}logUpdate(n,i=!1){i?Dt("Store has been reset/initialized."):Dt("Store updated with batch:",n)}}const rt=new vI,JS=()=>`http://${rt.get("clientHost")}:${rt.get("clientHttpPort")}`,yI={allowed_domains:[],app_version:"",client_key_type:0,description:"TTMG Dev Game",entity:"--",icon_big_url:"https://connect.tiktok-minis.com/assets/icon.png",icon_url:"https://connect.tiktok-minis.com/assets/icon.png",minis_category:"mini_game",minis_status:1,minis_tech_type:0,minis_type:2,name:"TTMG Dev Game",privacy_url:"--",scopes:["user.info.open_id","user.info.basic"],tos_url:"--",update_time:Date.now(),status_code:0,status_msg:""};async function wI(){const r=JS(),n=rt.get("clientKey");if(!n)return;const i={...yI,client_key:n,minis_url:`https://minis-${n}-vdebug-minigame.tiktok-minis.us/`,package_config:JSON.stringify({packages:rt.get("packages")})};return await Oh({url:`${r}/game/meta`,method:"POST",data:i,headers:{"Content-Type":"application/json"}})}async function SI(){const r=document.getElementById("dev-iframe");return new Promise(n=>{r.onload=()=>{r.onload=null,n(r)},r.contentWindow?.location.reload()})}const _I=document.getElementById("dev-iframe"),hw=_I.contentWindow;class CI{ws;init(n){const i=new WebSocket(`ws://${n.clientHost}:${n.clientWsPort||n.clientHttpPort-1}`);i.onclose=()=>{console.error(Ce("clientServerDisconnected")),rt.set("isClientWSConnected",!1),$e.emit("connectionChange",{node:rt.get("isNodeWSConnected"),client:!1,isClientDisconnected:!0})},i.onerror=()=>{const o=Ce("clientServerStartError");console.error(o)},this.ws=i,i.onopen=function(){console.log(Ce("clientConnectedSuccess")),rt.set("isClientWSConnected",!0),$e.emit("connectionChange",{node:rt.get("isNodeWSConnected"),client:!0,isClientDisconnected:!1}),i.send(JSON.stringify({stage:"connecting",status:"success",message:"Browser connected to Client Server Successfully"}))},i.onmessage=function(o){try{const a=JSON.parse(o.data);switch(a?.method){case"subscribeHandler":hw.__DEV__?.subscribeHandler?.(a?.payload?.event,a?.payload?.data);break;case"invokeHandler":hw.__DEV__?.invokeHandler?.(a?.payload?.callbackId,a?.payload?.data);break;default:break}}catch(a){console.error(a)}}}send(n){n.from="browser",this.ws?.send(JSON.stringify(n))}close(){this.ws?.close(),this.ws=void 0}}const Mp=new CI,EI={start:{msgKey:"uploadGameStart"},success:{msgKey:"uploadGameSuccess",handle:r=>{const{packages:n,clientKey:i}=r||{};rt.setMultiple({packages:n,clientKey:i,isResourcesReady:!0}),$e.emit("setupStatusChange",{isScriptsReady:rt.get("isScriptsReady"),isResourcesReady:!0})}},process:{msgKey:"uploadProcess"},error:{msgKey:"uploadError"},restart:{msgKey:"uploadGameRestart"}};function bI(r){const{status:n,payload:i}=r,o=EI[n];if(!o){console.warn(`Unknown upload status: ${n}`);return}const a=Ce(o.msgKey);$e.emit("uploadGame",{status:n,msg:a,progress:i?.progress}),o.handle&&o.handle(i)}class xI{ws;init(){return Oh({url:"/game/config",method:"GET"}).then(n=>{const{nodeWsPort:i}=n;console.log(Ce("nodeServerStartConnect")),this.ws=new WebSocket(`ws://localhost:${i}`),this.ws.onclose=()=>{console.error(Ce("nodeServerDisconnect")),rt.set("isNodeWSConnected",!1),$e.emit("connectionChange",{node:!1,client:rt.get("isClientWSConnected"),isNodeDisconnected:!0})},this.ws.onerror=()=>{const o=Ce("nodeServerStartError");console.error(o)},this.ws.onopen=()=>{console.log(Ce("nodeServerConnectedSuccess")),rt.set("isNodeWSConnected",!0),$e.emit("connectionChange",{node:!0,client:rt.get("isClientWSConnected"),isNodeDisconnected:!1}),this.ws?.send(JSON.stringify({event:"connected",method:"connected",from:"browser"}))},this.ws.onmessage=o=>{if(o.data){const a=JSON.parse(o.data);switch(a.method){case"uploadStatus":{bI(a);break}case"resourceChange":{Dt.info("Node WS resourceChange",a?.payload),$e.emit("resourceChange",{});break}case"clientDebugInfo":{const{clientWsPort:f,clientHost:p,clientHttpPort:h}=a.payload;rt.setMultiple({clientWsPort:f,clientHost:p,clientHttpPort:h}),Mp.init({clientWsPort:f,clientHost:p,clientHttpPort:h});break}case"scanQRCodeSuccess":{const{clientWsPort:f,clientHost:p,clientHttpPort:h}=a.payload;rt.setMultiple({clientHost:p,clientWsPort:f,clientHttpPort:h}),Mp.init({clientWsPort:f,clientHost:p,clientHttpPort:h}),$e.emit("scanQRCode",{status:"success"});break}case"scanQRCodeFailed":{const{msg:f}=a.payload;$e.emit("scanQRCode",{status:"failed",msg:f});break}case"scanQRCodeStart":{$e.emit("scanQRCode",{status:"start"});break}}}}}),!0}send(n){n.from="browser",this.ws?.send(JSON.stringify(n))}close(){this.ws?.close(),this.ws=void 0}}const $p=new xI,OI=["krypton.js","ttmg-core.js"];async function mw(){const r=JS();await SI();try{console.log(Ce("startDebug"));const n=await Oh({url:`${r}/game/cwd`,method:"POST",data:{command:"start"}});Dt.info("客户端启动调试环境成功"),$p.send({method:"startUpload"})}catch(n){throw console.log(Ce("startDebugFailed"),n?.message??n),new Error(Ce("startDebugFailed"))}try{console.log(Ce("getDevEnvStart"));const i=await(await fetch(`${r}/game/env`)).json();Dt.info("获取游戏环境配置成功",i);const a=document.getElementById("dev-iframe").contentWindow;globalThis.__DEV__={isEnable:!0,server:r},a.__DEV__={isEnable:!0,server:r},await PI(a,OI,r),Dt.info("加载游戏脚本成功"),rt.set("isScriptsReady",!0),$e.emit("setupStatusChange",{isScriptsReady:!0,isResourcesReady:rt.get("isResourcesReady")}),console.log(Ce("getDevScriptsSuccess"))}catch(n){throw console.log(Ce("getDevEnvFailed"),n),new Error(Ce("getDevEnvFailed"))}}async function PI(r,n,i){for(const o of n){const u=await(await fetch(`${i}/game/scripts/${o}`)).text(),f=r.document.createElement("script");f.id=o,f.innerHTML=u,r.document.body.appendChild(f)}}function TI(){const r=()=>typeof document<"u"?document.hidden:!1,[n,i]=R.useState(r);return R.useEffect(()=>{const o=()=>{i(document.hidden),Mp.send({method:"sendPageVisibility",payload:{isHidden:document.hidden}})};return document.addEventListener("visibilitychange",o),()=>{document.removeEventListener("visibilitychange",o)}},[]),n}const RI=()=>{const[r,n]=R.useState("");TI();const[i,o]=R.useState({node:!1,client:!1}),{showMessage:a,hideLoading:u,hideMessage:f}=hh(),p=R.useCallback(({status:v,msg:w,progress:C})=>{switch(v){case"success":a({theme:"success",text:Ce("uploadSuccess")});break;case"error":a({theme:"error",text:Ce("uploadError")});break;case"restart":break;case"process":a({theme:"info",text:`${Ce("uploadProcess")} ${(C*100).toFixed(2)}%`});break}},[]),h=R.useCallback(({isScriptsReady:v,isResourcesReady:w})=>{v&&w&&(Dt.info("scripts and resources are ready, send meta"),wI())},[]),m=R.useCallback(()=>{const v=jn.warning({position:"top",duration:1e4,title:Ce("gameResourceUpdated"),id:r,onClose:()=>{n("")},content:fe.jsxs(fe.Fragment,{children:[fe.jsx("p",{children:Ce("gameResourceChange")}),fe.jsxs("div",{className:"banner-footer",children:[fe.jsx(Mr,{type:"tertiary",onClick:()=>{jn.close(v)},children:Ce("notUpload")}),fe.jsx(Mr,{style:{marginLeft:12},type:"warning",onClick:()=>{Dt.info("upload"),Dt.info("upload iframe onload, 开始重新初始化"),mw(),jn.close(v)},children:Ce("uploadToClient")})]})]})});n(v)},[]);return R.useEffect(()=>($e.on("connectionChange",o),()=>{$e.off("connectionChange",o)}),[]),R.useEffect(()=>($e.on("resourceChange",m),$e.on("uploadGame",p),$e.on("setupStatusChange",h),()=>{$e.off("resourceChange",m),$e.off("setupStatusChange",h),$e.off("uploadGame",p)}),[h,p]),R.useEffect(()=>{const v=async()=>{u(),a({theme:"success",text:Ce("setupDevEnv")});try{await mw(),a({theme:"success",text:Ce("devEnvSetupSuccess")})}catch(w){console.error("Setup failed:",w),a({theme:"error",text:Ce("devEnvSetupError")})}};i.client&&i.node&&v()},[i,u,a]),null},kI=Go.div`
97
+ width: 300px;
98
+ height: 300px;
99
+ margin: 0 auto; /* 水平居中 */
100
+
101
+ border-radius: 8px;
102
+ display: flex;
103
+ justify-content: center;
104
+ align-items: center;
105
+ `,NI=tI`
106
+ from {
107
+ opacity: 0;
108
+ }
109
+ to {
110
+ opacity: 1;
111
+ }
112
+ `,II=Go.img`
113
+ width: 100%;
114
+ height: 100%;
115
+ border-radius: 8px; /* 保持圆角一致 */
116
+ animation: ${NI} 0.5s ease-in-out; /* 应用淡入动画 */
117
+ `,gw=Go.p`
118
+ color: #888;
119
+ font-size: 1.5rem;
120
+ `,jI=()=>{const[r,n]=R.useState(!1),[i,o]=R.useState(!1),[a,u]=R.useState(!1),[f,p]=R.useState(""),h=_=>{_.status==="success"&&n(!0),_.status==="failed"&&o(!0),_.status==="start"&&u(!0)};R.useEffect(()=>($e.on("scanQRCode",h),()=>{$e.off("scanQRCode",h)}),[]);const[m,v]=R.useState("loading"),w=`${window.location.origin}/game/qrcode`;R.useEffect(()=>{v("loading");const _=new Image;return _.src=w,_.onload=()=>{v("loaded")},_.onerror=()=>{v("error")},()=>{_.onload=null,_.onerror=null}},[]);const C=()=>{switch(m){case"loading":return fe.jsx(gw,{children:"二维码加载中..."});case"error":return fe.jsx(gw,{children:"无法加载二维码,请检查链接或网络。"});case"loaded":return fe.jsx(II,{src:w,alt:"QR Code"});default:return null}};return fe.jsxs("div",{onClick:()=>{$e.emit("resourceChange",{msg:"start"})},style:{padding:"20px",backgroundColor:"white",borderRadius:"12px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},children:[fe.jsx("p",{style:{color:"gray",fontWeight:"bold",fontSize:"18px",marginBottom:"20px"},children:"使用 TikTok 扫码下方二维码开启调试"}),fe.jsx(kI,{children:C()}),f&&fe.jsx("p",{style:{color:"gray",fontSize:"14px"},children:f})]})},AI=()=>{const{state:{isConnected:r}}=R.useContext(ph);return fe.jsxs("div",{className:"home-container",children:[!r&&fe.jsx(jI,{}),fe.jsx(hI,{}),fe.jsx(RI,{})]})},LI=()=>{const{state:{isConnected:r},setIsConnected:n,showMessage:i}=hh(),o=({client:a,node:u,isClientDisconnected:f,isNodeDisconnected:p})=>{Dt.info("connectionChange",a,u),f&&i({theme:"error",text:Ce("clientDisconnected")}),p&&i({theme:"error",text:Ce("nodeDisconnected")}),n(a&&u)};return R.useEffect(()=>($e.on("connectionChange",o),()=>{$e.off("connectionChange",o)}),[n]),fe.jsxs("div",{className:"header-wrapper",children:[fe.jsxs("div",{className:"header-content",children:[fe.jsx($I,{}),fe.jsx(Dr,{trigger:"hover",showArrow:!0,content:fe.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[fe.jsx(Fo.Text,{children:Ce(r?"switchDevice":"scanQRCode")}),fe.jsx("img",{src:`${window.location.origin}/game/qrcode`,alt:"切换设备图标",style:{width:"150px",height:"150px"}})]}),children:fe.jsx("span",{className:Ne("status-tag",{"status-tag-default":!r,"status-tag-success":r}),children:Ce(r?"deviceConnected":"deviceDisconnected")})})]}),fe.jsx(IP,{})]})},DI=()=>(R.useEffect(()=>($p.init(),()=>{$p.close()}),[]),null),MI=({size:r=24,color:n="#000",style:i,className:o})=>fe.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:fe.jsxs("svg",{fill:"currentColor",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,children:[fe.jsx("path",{d:"M37.86 17.82c.14.24.14.67.14 1.53v9.5c0 1.14 0 1.72-.2 2.26-.16.49-.43.96-.77 1.34-.37.44-.87.73-1.86 1.3l-7.84 4.53c-.74.43-1.11.64-1.4.64a.66.66 0 0 1-.58-.34c-.14-.24-.14-.67-.14-1.53v-9.5c0-1.14 0-1.71.2-2.26.16-.48.43-.95.76-1.34.38-.44.88-.73 1.87-1.3l7.84-4.52c.74-.43 1.11-.65 1.4-.64.25 0 .45.12.58.33Z"}),fe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m27.54 1.99 7 3.93 6.89 4a7.23 7.23 0 0 1 3.59 6.2l.06 7.88-.06 7.88a7.23 7.23 0 0 1-3.6 6.2l-6.88 4-7 3.93a7.23 7.23 0 0 1-7.08 0l-7-3.93-6.9-4a7.23 7.23 0 0 1-3.58-6.2L2.9 24l.07-7.88a7.23 7.23 0 0 1 3.59-6.2l6.89-4 7-3.93a7.23 7.23 0 0 1 7.08 0Zm-2.07 3.67 6.98 3.92 6.86 3.99a3.01 3.01 0 0 1 1.5 2.58l.06 7.85-.07 7.85c0 1.06-.57 2.04-1.5 2.58l-6.85 4-6.98 3.9c-.91.52-2.03.52-2.95 0l-6.97-3.9-6.86-4a3.01 3.01 0 0 1-1.5-2.58L7.13 24l.06-7.85c.01-1.06.58-2.04 1.5-2.58l6.86-4 6.97-3.9a3.01 3.01 0 0 1 2.95 0Z"})]})}),$I=()=>fe.jsxs("div",{className:"logo-container",children:[fe.jsx(MI,{size:48}),fe.jsx("div",{className:"logo-title",children:Ce("title")})]});function FI(){return fe.jsxs(Gk,{children:[fe.jsx(DI,{}),fe.jsxs("div",{className:"main-layout",children:[fe.jsx(LI,{}),fe.jsx("div",{className:"content-wrapper",children:fe.jsx("div",{className:"routes-container",children:fe.jsx(Ek,{children:fe.jsx(vS,{path:"/",element:fe.jsx(AI,{})})})})})]})]})}tE.createRoot(document.getElementById("root")).render(fe.jsx(fh,{children:fe.jsx(IR,{children:fe.jsx(FI,{})})}));