fast-whisper-web-browser / assets /index-811cc480.js
Xenova's picture
Xenova HF staff
Upload 5 files
7042010
raw
history blame
226 kB
function bd(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const o=Object.getOwnPropertyDescriptor(r,l);o&&Object.defineProperty(e,l,o.get?o:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Jd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Za={exports:{}},lo={},ec={exports:{}},$={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var jr=Symbol.for("react.element"),Zd=Symbol.for("react.portal"),ep=Symbol.for("react.fragment"),tp=Symbol.for("react.strict_mode"),np=Symbol.for("react.profiler"),rp=Symbol.for("react.provider"),lp=Symbol.for("react.context"),op=Symbol.for("react.forward_ref"),ip=Symbol.for("react.suspense"),up=Symbol.for("react.memo"),sp=Symbol.for("react.lazy"),Ls=Symbol.iterator;function ap(e){return e===null||typeof e!="object"?null:(e=Ls&&e[Ls]||e["@@iterator"],typeof e=="function"?e:null)}var tc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nc=Object.assign,rc={};function Hn(e,t,n){this.props=e,this.context=t,this.refs=rc,this.updater=n||tc}Hn.prototype.isReactComponent={};Hn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Hn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lc(){}lc.prototype=Hn.prototype;function ku(e,t,n){this.props=e,this.context=t,this.refs=rc,this.updater=n||tc}var xu=ku.prototype=new lc;xu.constructor=ku;nc(xu,Hn.prototype);xu.isPureReactComponent=!0;var _s=Array.isArray,oc=Object.prototype.hasOwnProperty,Cu={current:null},ic={key:!0,ref:!0,__self:!0,__source:!0};function uc(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)oc.call(t,r)&&!ic.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];l.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:jr,type:e,key:o,ref:i,props:l,_owner:Cu.current}}function cp(e,t){return{$$typeof:jr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Tu(e){return typeof e=="object"&&e!==null&&e.$$typeof===jr}function fp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rs=/\/+/g;function Oo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fp(""+e.key):t.toString(36)}function pl(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case jr:case Zd:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+Oo(i,0):r,_s(l)?(n="",e!=null&&(n=e.replace(Rs,"$&/")+"/"),pl(l,t,n,"",function(a){return a})):l!=null&&(Tu(l)&&(l=cp(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(Rs,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",_s(e))for(var u=0;u<e.length;u++){o=e[u];var s=r+Oo(o,u);i+=pl(o,t,n,s,l)}else if(s=ap(e),typeof s=="function")for(e=s.call(e),u=0;!(o=e.next()).done;)o=o.value,s=r+Oo(o,u++),i+=pl(o,t,n,s,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Xr(e,t,n){if(e==null)return e;var r=[],l=0;return pl(e,r,"","",function(o){return t.call(n,o,l++)}),r}function dp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var we={current:null},ml={transition:null},pp={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:ml,ReactCurrentOwner:Cu};$.Children={map:Xr,forEach:function(e,t,n){Xr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xr(e,function(){t++}),t},toArray:function(e){return Xr(e,function(t){return t})||[]},only:function(e){if(!Tu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Component=Hn;$.Fragment=ep;$.Profiler=np;$.PureComponent=ku;$.StrictMode=tp;$.Suspense=ip;$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pp;$.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=nc({},e.props),l=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Cu.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)oc.call(t,s)&&!ic.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&u!==void 0?u[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){u=Array(s);for(var a=0;a<s;a++)u[a]=arguments[a+2];r.children=u}return{$$typeof:jr,type:e.type,key:l,ref:o,props:r,_owner:i}};$.createContext=function(e){return e={$$typeof:lp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:rp,_context:e},e.Consumer=e};$.createElement=uc;$.createFactory=function(e){var t=uc.bind(null,e);return t.type=e,t};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:op,render:e}};$.isValidElement=Tu;$.lazy=function(e){return{$$typeof:sp,_payload:{_status:-1,_result:e},_init:dp}};$.memo=function(e,t){return{$$typeof:up,type:e,compare:t===void 0?null:t}};$.startTransition=function(e){var t=ml.transition;ml.transition={};try{e()}finally{ml.transition=t}};$.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};$.useCallback=function(e,t){return we.current.useCallback(e,t)};$.useContext=function(e){return we.current.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e){return we.current.useDeferredValue(e)};$.useEffect=function(e,t){return we.current.useEffect(e,t)};$.useId=function(){return we.current.useId()};$.useImperativeHandle=function(e,t,n){return we.current.useImperativeHandle(e,t,n)};$.useInsertionEffect=function(e,t){return we.current.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return we.current.useLayoutEffect(e,t)};$.useMemo=function(e,t){return we.current.useMemo(e,t)};$.useReducer=function(e,t,n){return we.current.useReducer(e,t,n)};$.useRef=function(e){return we.current.useRef(e)};$.useState=function(e){return we.current.useState(e)};$.useSyncExternalStore=function(e,t,n){return we.current.useSyncExternalStore(e,t,n)};$.useTransition=function(){return we.current.useTransition()};$.version="18.2.0";ec.exports=$;var w=ec.exports;const D=Jd(w),vi=bd({__proto__:null,default:D},[w]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var mp=w,hp=Symbol.for("react.element"),gp=Symbol.for("react.fragment"),vp=Object.prototype.hasOwnProperty,yp=mp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wp={key:!0,ref:!0,__self:!0,__source:!0};function sc(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)vp.call(t,r)&&!wp.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:hp,type:e,key:o,ref:i,props:l,_owner:yp.current}}lo.Fragment=gp;lo.jsx=sc;lo.jsxs=sc;Za.exports=lo;var Nu=Za.exports;const on=Nu.Fragment,x=Nu.jsx,B=Nu.jsxs;var yi={},ac={exports:{}},Oe={},cc={exports:{}},fc={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(N,F){var A=N.length;N.push(F);e:for(;0<A;){var j=A-1>>>1,ee=N[j];if(0<l(ee,F))N[j]=F,N[A]=ee,A=j;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var F=N[0],A=N.pop();if(A!==F){N[0]=A;e:for(var j=0,ee=N.length,Gt=ee>>>1;j<Gt;){var st=2*(j+1)-1,K=N[st],te=st+1,Y=N[te];if(0>l(K,A))te<ee&&0>l(Y,K)?(N[j]=Y,N[te]=A,j=te):(N[j]=K,N[st]=A,j=st);else if(te<ee&&0>l(Y,A))N[j]=Y,N[te]=A,j=te;else break e}}return F}function l(N,F){var A=N.sortIndex-F.sortIndex;return A!==0?A:N.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],c=1,d=null,h=3,y=!1,m=!1,v=!1,P=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=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(N){for(var F=n(a);F!==null;){if(F.callback===null)r(a);else if(F.startTime<=N)r(a),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(a)}}function E(N){if(v=!1,g(N),!m)if(n(s)!==null)m=!0,ut(C);else{var F=n(a);F!==null&&Kt(E,F.startTime-N)}}function C(N,F){m=!1,v&&(v=!1,p(_),_=-1),y=!0;var A=h;try{for(g(F),d=n(s);d!==null&&(!(d.expirationTime>F)||N&&!V());){var j=d.callback;if(typeof j=="function"){d.callback=null,h=d.priorityLevel;var ee=j(d.expirationTime<=F);F=e.unstable_now(),typeof ee=="function"?d.callback=ee:d===n(s)&&r(s),g(F)}else r(s);d=n(s)}if(d!==null)var Gt=!0;else{var st=n(a);st!==null&&Kt(E,st.startTime-F),Gt=!1}return Gt}finally{d=null,h=A,y=!1}}var L=!1,T=null,_=-1,U=5,O=-1;function V(){return!(e.unstable_now()-O<U)}function He(){if(T!==null){var N=e.unstable_now();O=N;var F=!0;try{F=T(!0,N)}finally{F?Ve():(L=!1,T=null)}}else L=!1}var Ve;if(typeof f=="function")Ve=function(){f(He)};else if(typeof MessageChannel<"u"){var mn=new MessageChannel,it=mn.port2;mn.port1.onmessage=He,Ve=function(){it.postMessage(null)}}else Ve=function(){P(He,0)};function ut(N){T=N,L||(L=!0,Ve())}function Kt(N,F){_=P(function(){N(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){m||y||(m=!0,ut(C))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var F=3;break;default:F=h}var A=h;h=F;try{return N()}finally{h=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,F){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var A=h;h=N;try{return F()}finally{h=A}},e.unstable_scheduleCallback=function(N,F,A){var j=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?j+A:j):A=j,N){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=A+ee,N={id:c++,callback:F,priorityLevel:N,startTime:A,expirationTime:ee,sortIndex:-1},A>j?(N.sortIndex=A,t(a,N),n(s)===null&&N===n(a)&&(v?(p(_),_=-1):v=!0,Kt(E,A-j))):(N.sortIndex=ee,t(s,N),m||y||(m=!0,ut(C))),N},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(N){var F=h;return function(){var A=h;h=F;try{return N.apply(this,arguments)}finally{h=A}}}})(fc);cc.exports=fc;var Sp=cc.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var dc=w,Re=Sp;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var pc=new Set,Sr={};function dn(e,t){$n(e,t),$n(e+"Capture",t)}function $n(e,t){for(Sr[e]=t,e=0;e<t.length;e++)pc.add(t[e])}var yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wi=Object.prototype.hasOwnProperty,Ep=/^[: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]*$/,Os={},Fs={};function kp(e){return wi.call(Fs,e)?!0:wi.call(Os,e)?!1:Ep.test(e)?Fs[e]=!0:(Os[e]=!0,!1)}function xp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Cp(e,t,n,r){if(t===null||typeof t>"u"||xp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Se(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new Se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new Se(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){fe[e]=new Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pu=/[\-:]([a-z])/g;function Lu(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(Pu,Lu);fe[t]=new Se(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(Pu,Lu);fe[t]=new Se(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(Pu,Lu);fe[t]=new Se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!0,!0)});function _u(e,t,n,r){var l=fe.hasOwnProperty(t)?fe[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Cp(t,n,l,r)&&(n=null),r||l===null?kp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var kt=dc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qr=Symbol.for("react.element"),gn=Symbol.for("react.portal"),vn=Symbol.for("react.fragment"),Ru=Symbol.for("react.strict_mode"),Si=Symbol.for("react.profiler"),mc=Symbol.for("react.provider"),hc=Symbol.for("react.context"),Ou=Symbol.for("react.forward_ref"),Ei=Symbol.for("react.suspense"),ki=Symbol.for("react.suspense_list"),Fu=Symbol.for("react.memo"),Tt=Symbol.for("react.lazy"),gc=Symbol.for("react.offscreen"),As=Symbol.iterator;function Xn(e){return e===null||typeof e!="object"?null:(e=As&&e[As]||e["@@iterator"],typeof e=="function"?e:null)}var b=Object.assign,Fo;function ir(e){if(Fo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fo=t&&t[1]||""}return`
`+Fo+e}var Ao=!1;function $o(e,t){if(!e||Ao)return"";Ao=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var l=a.stack.split(`
`),o=r.stack.split(`
`),i=l.length-1,u=o.length-1;1<=i&&0<=u&&l[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(l[i]!==o[u]){if(i!==1||u!==1)do if(i--,u--,0>u||l[i]!==o[u]){var s=`
`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Ao=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ir(e):""}function Tp(e){switch(e.tag){case 5:return ir(e.type);case 16:return ir("Lazy");case 13:return ir("Suspense");case 19:return ir("SuspenseList");case 0:case 2:case 15:return e=$o(e.type,!1),e;case 11:return e=$o(e.type.render,!1),e;case 1:return e=$o(e.type,!0),e;default:return""}}function xi(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 vn:return"Fragment";case gn:return"Portal";case Si:return"Profiler";case Ru:return"StrictMode";case Ei:return"Suspense";case ki:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hc:return(e.displayName||"Context")+".Consumer";case mc:return(e._context.displayName||"Context")+".Provider";case Ou:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fu:return t=e.displayName||null,t!==null?t:xi(e.type)||"Memo";case Tt:t=e._payload,e=e._init;try{return xi(e(t))}catch{}}return null}function Np(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 xi(t);case 8:return t===Ru?"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 Bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pp(e){var t=vc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function br(e){e._valueTracker||(e._valueTracker=Pp(e))}function yc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rl(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 Ci(e,t){var n=t.checked;return b({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $s(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wc(e,t){t=t.checked,t!=null&&_u(e,"checked",t,!1)}function Ti(e,t){wc(e,t);var n=Bt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ni(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ni(e,t.type,Bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ds(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ni(e,t,n){(t!=="number"||Rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ur=Array.isArray;function Ln(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Bt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Pi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return b({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ms(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(ur(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Bt(n)}}function Sc(e,t){var n=Bt(t.value),r=Bt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function zs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ec(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 Li(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ec(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Jr,kc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Jr=Jr||document.createElement("div"),Jr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Jr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Er(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fr={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},Lp=["Webkit","ms","Moz","O"];Object.keys(fr).forEach(function(e){Lp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fr[t]=fr[e]})});function xc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fr.hasOwnProperty(e)&&fr[e]?(""+t).trim():t+"px"}function Cc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=xc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var _p=b({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 _i(e,t){if(t){if(_p[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Ri(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 Oi=null;function Au(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fi=null,_n=null,Rn=null;function js(e){if(e=Br(e)){if(typeof Fi!="function")throw Error(k(280));var t=e.stateNode;t&&(t=ao(t),Fi(e.stateNode,e.type,t))}}function Tc(e){_n?Rn?Rn.push(e):Rn=[e]:_n=e}function Nc(){if(_n){var e=_n,t=Rn;if(Rn=_n=null,js(e),t)for(e=0;e<t.length;e++)js(t[e])}}function Pc(e,t){return e(t)}function Lc(){}var Do=!1;function _c(e,t,n){if(Do)return e(t,n);Do=!0;try{return Pc(e,t,n)}finally{Do=!1,(_n!==null||Rn!==null)&&(Lc(),Nc())}}function kr(e,t){var n=e.stateNode;if(n===null)return null;var r=ao(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(k(231,t,typeof n));return n}var Ai=!1;if(yt)try{var qn={};Object.defineProperty(qn,"passive",{get:function(){Ai=!0}}),window.addEventListener("test",qn,qn),window.removeEventListener("test",qn,qn)}catch{Ai=!1}function Rp(e,t,n,r,l,o,i,u,s){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(c){this.onError(c)}}var dr=!1,Ol=null,Fl=!1,$i=null,Op={onError:function(e){dr=!0,Ol=e}};function Fp(e,t,n,r,l,o,i,u,s){dr=!1,Ol=null,Rp.apply(Op,arguments)}function Ap(e,t,n,r,l,o,i,u,s){if(Fp.apply(this,arguments),dr){if(dr){var a=Ol;dr=!1,Ol=null}else throw Error(k(198));Fl||(Fl=!0,$i=a)}}function pn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Rc(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 Us(e){if(pn(e)!==e)throw Error(k(188))}function $p(e){var t=e.alternate;if(!t){if(t=pn(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return Us(l),e;if(o===r)return Us(l),t;o=o.sibling}throw Error(k(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,u=l.child;u;){if(u===n){i=!0,n=l,r=o;break}if(u===r){i=!0,r=l,n=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===n){i=!0,n=o,r=l;break}if(u===r){i=!0,r=o,n=l;break}u=u.sibling}if(!i)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function Oc(e){return e=$p(e),e!==null?Fc(e):null}function Fc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fc(e);if(t!==null)return t;e=e.sibling}return null}var Ac=Re.unstable_scheduleCallback,Is=Re.unstable_cancelCallback,Dp=Re.unstable_shouldYield,Mp=Re.unstable_requestPaint,Z=Re.unstable_now,zp=Re.unstable_getCurrentPriorityLevel,$u=Re.unstable_ImmediatePriority,$c=Re.unstable_UserBlockingPriority,Al=Re.unstable_NormalPriority,jp=Re.unstable_LowPriority,Dc=Re.unstable_IdlePriority,oo=null,nt=null;function Up(e){if(nt&&typeof nt.onCommitFiberRoot=="function")try{nt.onCommitFiberRoot(oo,e,void 0,(e.current.flags&128)===128)}catch{}}var Ye=Math.clz32?Math.clz32:Hp,Ip=Math.log,Bp=Math.LN2;function Hp(e){return e>>>=0,e===0?32:31-(Ip(e)/Bp|0)|0}var Zr=64,el=4194304;function sr(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 $l(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=sr(u):(o&=i,o!==0&&(r=sr(o)))}else i=n&~l,i!==0?r=sr(i):o!==0&&(r=sr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ye(t),l=1<<n,r|=e[n],t&=~l;return r}function Vp(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 Wp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Ye(o),u=1<<i,s=l[i];s===-1?(!(u&n)||u&r)&&(l[i]=Vp(u,t)):s<=t&&(e.expiredLanes|=u),o&=~u}}function Di(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mc(){var e=Zr;return Zr<<=1,!(Zr&4194240)&&(Zr=64),e}function Mo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ye(t),e[t]=n}function Qp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ye(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function Du(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ye(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var I=0;function zc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var jc,Mu,Uc,Ic,Bc,Mi=!1,tl=[],At=null,$t=null,Dt=null,xr=new Map,Cr=new Map,Pt=[],Kp="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 Bs(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":$t=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cr.delete(t.pointerId)}}function bn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=Br(t),t!==null&&Mu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Gp(e,t,n,r,l){switch(t){case"focusin":return At=bn(At,e,t,n,r,l),!0;case"dragenter":return $t=bn($t,e,t,n,r,l),!0;case"mouseover":return Dt=bn(Dt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return xr.set(o,bn(xr.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Cr.set(o,bn(Cr.get(o)||null,e,t,n,r,l)),!0}return!1}function Hc(e){var t=Jt(e.target);if(t!==null){var n=pn(t);if(n!==null){if(t=n.tag,t===13){if(t=Rc(n),t!==null){e.blockedOn=t,Bc(e.priority,function(){Uc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Oi=r,n.target.dispatchEvent(r),Oi=null}else return t=Br(n),t!==null&&Mu(t),e.blockedOn=n,!1;t.shift()}return!0}function Hs(e,t,n){hl(e)&&n.delete(t)}function Yp(){Mi=!1,At!==null&&hl(At)&&(At=null),$t!==null&&hl($t)&&($t=null),Dt!==null&&hl(Dt)&&(Dt=null),xr.forEach(Hs),Cr.forEach(Hs)}function Jn(e,t){e.blockedOn===t&&(e.blockedOn=null,Mi||(Mi=!0,Re.unstable_scheduleCallback(Re.unstable_NormalPriority,Yp)))}function Tr(e){function t(l){return Jn(l,e)}if(0<tl.length){Jn(tl[0],e);for(var n=1;n<tl.length;n++){var r=tl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(At!==null&&Jn(At,e),$t!==null&&Jn($t,e),Dt!==null&&Jn(Dt,e),xr.forEach(t),Cr.forEach(t),n=0;n<Pt.length;n++)r=Pt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Pt.length&&(n=Pt[0],n.blockedOn===null);)Hc(n),n.blockedOn===null&&Pt.shift()}var On=kt.ReactCurrentBatchConfig,Dl=!0;function Xp(e,t,n,r){var l=I,o=On.transition;On.transition=null;try{I=1,zu(e,t,n,r)}finally{I=l,On.transition=o}}function qp(e,t,n,r){var l=I,o=On.transition;On.transition=null;try{I=4,zu(e,t,n,r)}finally{I=l,On.transition=o}}function zu(e,t,n,r){if(Dl){var l=zi(e,t,n,r);if(l===null)Ko(e,t,r,Ml,n),Bs(e,r);else if(Gp(l,e,t,n,r))r.stopPropagation();else if(Bs(e,r),t&4&&-1<Kp.indexOf(e)){for(;l!==null;){var o=Br(l);if(o!==null&&jc(o),o=zi(e,t,n,r),o===null&&Ko(e,t,r,Ml,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Ko(e,t,r,null,n)}}var Ml=null;function zi(e,t,n,r){if(Ml=null,e=Au(r),e=Jt(e),e!==null)if(t=pn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Rc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ml=e,null}function Vc(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(zp()){case $u:return 1;case $c:return 4;case Al:case jp:return 16;case Dc:return 536870912;default:return 16}default:return 16}}var Ot=null,ju=null,gl=null;function Wc(){if(gl)return gl;var e,t=ju,n=t.length,r,l="value"in Ot?Ot.value:Ot.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return gl=l.slice(e,1<r?1-r:void 0)}function vl(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 nl(){return!0}function Vs(){return!1}function Fe(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?nl:Vs,this.isPropagationStopped=Vs,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nl)},persist:function(){},isPersistent:nl}),t}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uu=Fe(Vn),Ir=b({},Vn,{view:0,detail:0}),bp=Fe(Ir),zo,jo,Zn,io=b({},Ir,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iu,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!==Zn&&(Zn&&e.type==="mousemove"?(zo=e.screenX-Zn.screenX,jo=e.screenY-Zn.screenY):jo=zo=0,Zn=e),zo)},movementY:function(e){return"movementY"in e?e.movementY:jo}}),Ws=Fe(io),Jp=b({},io,{dataTransfer:0}),Zp=Fe(Jp),em=b({},Ir,{relatedTarget:0}),Uo=Fe(em),tm=b({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),nm=Fe(tm),rm=b({},Vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lm=Fe(rm),om=b({},Vn,{data:0}),Qs=Fe(om),im={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},um={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"},sm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function am(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sm[e])?!!t[e]:!1}function Iu(){return am}var cm=b({},Ir,{key:function(e){if(e.key){var t=im[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?um[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iu,charCode:function(e){return e.type==="keypress"?vl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fm=Fe(cm),dm=b({},io,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ks=Fe(dm),pm=b({},Ir,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iu}),mm=Fe(pm),hm=b({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),gm=Fe(hm),vm=b({},io,{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}),ym=Fe(vm),wm=[9,13,27,32],Bu=yt&&"CompositionEvent"in window,pr=null;yt&&"documentMode"in document&&(pr=document.documentMode);var Sm=yt&&"TextEvent"in window&&!pr,Qc=yt&&(!Bu||pr&&8<pr&&11>=pr),Gs=String.fromCharCode(32),Ys=!1;function Kc(e,t){switch(e){case"keyup":return wm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yn=!1;function Em(e,t){switch(e){case"compositionend":return Gc(t);case"keypress":return t.which!==32?null:(Ys=!0,Gs);case"textInput":return e=t.data,e===Gs&&Ys?null:e;default:return null}}function km(e,t){if(yn)return e==="compositionend"||!Bu&&Kc(e,t)?(e=Wc(),gl=ju=Ot=null,yn=!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 Qc&&t.locale!=="ko"?null:t.data;default:return null}}var xm={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 Xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xm[e.type]:t==="textarea"}function Yc(e,t,n,r){Tc(r),t=zl(t,"onChange"),0<t.length&&(n=new Uu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var mr=null,Nr=null;function Cm(e){of(e,0)}function uo(e){var t=En(e);if(yc(t))return e}function Tm(e,t){if(e==="change")return t}var Xc=!1;if(yt){var Io;if(yt){var Bo="oninput"in document;if(!Bo){var qs=document.createElement("div");qs.setAttribute("oninput","return;"),Bo=typeof qs.oninput=="function"}Io=Bo}else Io=!1;Xc=Io&&(!document.documentMode||9<document.documentMode)}function bs(){mr&&(mr.detachEvent("onpropertychange",qc),Nr=mr=null)}function qc(e){if(e.propertyName==="value"&&uo(Nr)){var t=[];Yc(t,Nr,e,Au(e)),_c(Cm,t)}}function Nm(e,t,n){e==="focusin"?(bs(),mr=t,Nr=n,mr.attachEvent("onpropertychange",qc)):e==="focusout"&&bs()}function Pm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return uo(Nr)}function Lm(e,t){if(e==="click")return uo(t)}function _m(e,t){if(e==="input"||e==="change")return uo(t)}function Rm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qe=typeof Object.is=="function"?Object.is:Rm;function Pr(e,t){if(qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!wi.call(t,l)||!qe(e[l],t[l]))return!1}return!0}function Js(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zs(e,t){var n=Js(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Js(n)}}function bc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jc(){for(var e=window,t=Rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rl(e.document)}return t}function Hu(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 Om(e){var t=Jc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bc(n.ownerDocument.documentElement,n)){if(r!==null&&Hu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Zs(n,o);var i=Zs(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Fm=yt&&"documentMode"in document&&11>=document.documentMode,wn=null,ji=null,hr=null,Ui=!1;function ea(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ui||wn==null||wn!==Rl(r)||(r=wn,"selectionStart"in r&&Hu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hr&&Pr(hr,r)||(hr=r,r=zl(ji,"onSelect"),0<r.length&&(t=new Uu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wn)))}function rl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sn={animationend:rl("Animation","AnimationEnd"),animationiteration:rl("Animation","AnimationIteration"),animationstart:rl("Animation","AnimationStart"),transitionend:rl("Transition","TransitionEnd")},Ho={},Zc={};yt&&(Zc=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);function so(e){if(Ho[e])return Ho[e];if(!Sn[e])return e;var t=Sn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zc)return Ho[e]=t[n];return e}var ef=so("animationend"),tf=so("animationiteration"),nf=so("animationstart"),rf=so("transitionend"),lf=new Map,ta="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 Vt(e,t){lf.set(e,t),dn(t,[e])}for(var Vo=0;Vo<ta.length;Vo++){var Wo=ta[Vo],Am=Wo.toLowerCase(),$m=Wo[0].toUpperCase()+Wo.slice(1);Vt(Am,"on"+$m)}Vt(ef,"onAnimationEnd");Vt(tf,"onAnimationIteration");Vt(nf,"onAnimationStart");Vt("dblclick","onDoubleClick");Vt("focusin","onFocus");Vt("focusout","onBlur");Vt(rf,"onTransitionEnd");$n("onMouseEnter",["mouseout","mouseover"]);$n("onMouseLeave",["mouseout","mouseover"]);$n("onPointerEnter",["pointerout","pointerover"]);$n("onPointerLeave",["pointerout","pointerover"]);dn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));dn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));dn("onBeforeInput",["compositionend","keypress","textInput","paste"]);dn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));dn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));dn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ar="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(" "),Dm=new Set("cancel close invalid load scroll toggle".split(" ").concat(ar));function na(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ap(r,t,void 0,e),e.currentTarget=null}function of(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var u=r[i],s=u.instance,a=u.currentTarget;if(u=u.listener,s!==o&&l.isPropagationStopped())break e;na(l,u,a),o=s}else for(i=0;i<r.length;i++){if(u=r[i],s=u.instance,a=u.currentTarget,u=u.listener,s!==o&&l.isPropagationStopped())break e;na(l,u,a),o=s}}}if(Fl)throw e=$i,Fl=!1,$i=null,e}function W(e,t){var n=t[Wi];n===void 0&&(n=t[Wi]=new Set);var r=e+"__bubble";n.has(r)||(uf(t,e,2,!1),n.add(r))}function Qo(e,t,n){var r=0;t&&(r|=4),uf(n,e,r,t)}var ll="_reactListening"+Math.random().toString(36).slice(2);function Lr(e){if(!e[ll]){e[ll]=!0,pc.forEach(function(n){n!=="selectionchange"&&(Dm.has(n)||Qo(n,!1,e),Qo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ll]||(t[ll]=!0,Qo("selectionchange",!1,t))}}function uf(e,t,n,r){switch(Vc(t)){case 1:var l=Xp;break;case 4:l=qp;break;default:l=zu}n=l.bind(null,t,n,e),l=void 0,!Ai||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ko(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===l||s.nodeType===8&&s.parentNode===l))return;i=i.return}for(;u!==null;){if(i=Jt(u),i===null)return;if(s=i.tag,s===5||s===6){r=o=i;continue e}u=u.parentNode}}r=r.return}_c(function(){var a=o,c=Au(n),d=[];e:{var h=lf.get(e);if(h!==void 0){var y=Uu,m=e;switch(e){case"keypress":if(vl(n)===0)break e;case"keydown":case"keyup":y=fm;break;case"focusin":m="focus",y=Uo;break;case"focusout":m="blur",y=Uo;break;case"beforeblur":case"afterblur":y=Uo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Ws;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Zp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=mm;break;case ef:case tf:case nf:y=nm;break;case rf:y=gm;break;case"scroll":y=bp;break;case"wheel":y=ym;break;case"copy":case"cut":case"paste":y=lm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Ks}var v=(t&4)!==0,P=!v&&e==="scroll",p=v?h!==null?h+"Capture":null:h;v=[];for(var f=a,g;f!==null;){g=f;var E=g.stateNode;if(g.tag===5&&E!==null&&(g=E,p!==null&&(E=kr(f,p),E!=null&&v.push(_r(f,E,g)))),P)break;f=f.return}0<v.length&&(h=new y(h,m,null,n,c),d.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==Oi&&(m=n.relatedTarget||n.fromElement)&&(Jt(m)||m[wt]))break e;if((y||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=a,m=m?Jt(m):null,m!==null&&(P=pn(m),m!==P||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=a),y!==m)){if(v=Ws,E="onMouseLeave",p="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(v=Ks,E="onPointerLeave",p="onPointerEnter",f="pointer"),P=y==null?h:En(y),g=m==null?h:En(m),h=new v(E,f+"leave",y,n,c),h.target=P,h.relatedTarget=g,E=null,Jt(c)===a&&(v=new v(p,f+"enter",m,n,c),v.target=g,v.relatedTarget=P,E=v),P=E,y&&m)t:{for(v=y,p=m,f=0,g=v;g;g=hn(g))f++;for(g=0,E=p;E;E=hn(E))g++;for(;0<f-g;)v=hn(v),f--;for(;0<g-f;)p=hn(p),g--;for(;f--;){if(v===p||p!==null&&v===p.alternate)break t;v=hn(v),p=hn(p)}v=null}else v=null;y!==null&&ra(d,h,y,v,!1),m!==null&&P!==null&&ra(d,P,m,v,!0)}}e:{if(h=a?En(a):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var C=Tm;else if(Xs(h))if(Xc)C=_m;else{C=Pm;var L=Nm}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=Lm);if(C&&(C=C(e,a))){Yc(d,C,n,c);break e}L&&L(e,h,a),e==="focusout"&&(L=h._wrapperState)&&L.controlled&&h.type==="number"&&Ni(h,"number",h.value)}switch(L=a?En(a):window,e){case"focusin":(Xs(L)||L.contentEditable==="true")&&(wn=L,ji=a,hr=null);break;case"focusout":hr=ji=wn=null;break;case"mousedown":Ui=!0;break;case"contextmenu":case"mouseup":case"dragend":Ui=!1,ea(d,n,c);break;case"selectionchange":if(Fm)break;case"keydown":case"keyup":ea(d,n,c)}var T;if(Bu)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else yn?Kc(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(Qc&&n.locale!=="ko"&&(yn||_!=="onCompositionStart"?_==="onCompositionEnd"&&yn&&(T=Wc()):(Ot=c,ju="value"in Ot?Ot.value:Ot.textContent,yn=!0)),L=zl(a,_),0<L.length&&(_=new Qs(_,e,null,n,c),d.push({event:_,listeners:L}),T?_.data=T:(T=Gc(n),T!==null&&(_.data=T)))),(T=Sm?Em(e,n):km(e,n))&&(a=zl(a,"onBeforeInput"),0<a.length&&(c=new Qs("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:a}),c.data=T))}of(d,t)})}function _r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=kr(e,n),o!=null&&r.unshift(_r(e,o,l)),o=kr(e,t),o!=null&&r.push(_r(e,o,l))),e=e.return}return r}function hn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ra(e,t,n,r,l){for(var o=t._reactName,i=[];n!==null&&n!==r;){var u=n,s=u.alternate,a=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&a!==null&&(u=a,l?(s=kr(n,o),s!=null&&i.unshift(_r(n,s,u))):l||(s=kr(n,o),s!=null&&i.push(_r(n,s,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Mm=/\r\n?/g,zm=/\u0000|\uFFFD/g;function la(e){return(typeof e=="string"?e:""+e).replace(Mm,`
`).replace(zm,"")}function ol(e,t,n){if(t=la(t),la(e)!==t&&n)throw Error(k(425))}function jl(){}var Ii=null,Bi=null;function Hi(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 Vi=typeof setTimeout=="function"?setTimeout:void 0,jm=typeof clearTimeout=="function"?clearTimeout:void 0,oa=typeof Promise=="function"?Promise:void 0,Um=typeof queueMicrotask=="function"?queueMicrotask:typeof oa<"u"?function(e){return oa.resolve(null).then(e).catch(Im)}:Vi;function Im(e){setTimeout(function(){throw e})}function Go(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Tr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Tr(t)}function Mt(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 ia(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Wn=Math.random().toString(36).slice(2),et="__reactFiber$"+Wn,Rr="__reactProps$"+Wn,wt="__reactContainer$"+Wn,Wi="__reactEvents$"+Wn,Bm="__reactListeners$"+Wn,Hm="__reactHandles$"+Wn;function Jt(e){var t=e[et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wt]||n[et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ia(e);e!==null;){if(n=e[et])return n;e=ia(e)}return t}e=n,n=e.parentNode}return null}function Br(e){return e=e[et]||e[wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function En(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function ao(e){return e[Rr]||null}var Qi=[],kn=-1;function Wt(e){return{current:e}}function Q(e){0>kn||(e.current=Qi[kn],Qi[kn]=null,kn--)}function H(e,t){kn++,Qi[kn]=e.current,e.current=t}var Ht={},ge=Wt(Ht),xe=Wt(!1),un=Ht;function Dn(e,t){var n=e.type.contextTypes;if(!n)return Ht;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ce(e){return e=e.childContextTypes,e!=null}function Ul(){Q(xe),Q(ge)}function ua(e,t,n){if(ge.current!==Ht)throw Error(k(168));H(ge,t),H(xe,n)}function sf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,Np(e)||"Unknown",l));return b({},n,r)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ht,un=ge.current,H(ge,e),H(xe,xe.current),!0}function sa(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=sf(e,t,un),r.__reactInternalMemoizedMergedChildContext=e,Q(xe),Q(ge),H(ge,e)):Q(xe),H(xe,n)}var ct=null,co=!1,Yo=!1;function af(e){ct===null?ct=[e]:ct.push(e)}function Vm(e){co=!0,af(e)}function Qt(){if(!Yo&&ct!==null){Yo=!0;var e=0,t=I;try{var n=ct;for(I=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ct=null,co=!1}catch(l){throw ct!==null&&(ct=ct.slice(e+1)),Ac($u,Qt),l}finally{I=t,Yo=!1}}return null}var xn=[],Cn=0,Bl=null,Hl=0,$e=[],De=0,sn=null,ft=1,dt="";function Xt(e,t){xn[Cn++]=Hl,xn[Cn++]=Bl,Bl=e,Hl=t}function cf(e,t,n){$e[De++]=ft,$e[De++]=dt,$e[De++]=sn,sn=e;var r=ft;e=dt;var l=32-Ye(r)-1;r&=~(1<<l),n+=1;var o=32-Ye(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,ft=1<<32-Ye(t)+l|n<<l|r,dt=o+e}else ft=1<<o|n<<l|r,dt=e}function Vu(e){e.return!==null&&(Xt(e,1),cf(e,1,0))}function Wu(e){for(;e===Bl;)Bl=xn[--Cn],xn[Cn]=null,Hl=xn[--Cn],xn[Cn]=null;for(;e===sn;)sn=$e[--De],$e[De]=null,dt=$e[--De],$e[De]=null,ft=$e[--De],$e[De]=null}var _e=null,Le=null,G=!1,Ge=null;function ff(e,t){var n=Me(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function aa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_e=e,Le=Mt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_e=e,Le=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sn!==null?{id:ft,overflow:dt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Me(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,_e=e,Le=null,!0):!1;default:return!1}}function Ki(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Gi(e){if(G){var t=Le;if(t){var n=t;if(!aa(e,t)){if(Ki(e))throw Error(k(418));t=Mt(n.nextSibling);var r=_e;t&&aa(e,t)?ff(r,n):(e.flags=e.flags&-4097|2,G=!1,_e=e)}}else{if(Ki(e))throw Error(k(418));e.flags=e.flags&-4097|2,G=!1,_e=e}}}function ca(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_e=e}function il(e){if(e!==_e)return!1;if(!G)return ca(e),G=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hi(e.type,e.memoizedProps)),t&&(t=Le)){if(Ki(e))throw df(),Error(k(418));for(;t;)ff(e,t),t=Mt(t.nextSibling)}if(ca(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Le=Mt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Le=null}}else Le=_e?Mt(e.stateNode.nextSibling):null;return!0}function df(){for(var e=Le;e;)e=Mt(e.nextSibling)}function Mn(){Le=_e=null,G=!1}function Qu(e){Ge===null?Ge=[e]:Ge.push(e)}var Wm=kt.ReactCurrentBatchConfig;function Qe(e,t){if(e&&e.defaultProps){t=b({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Vl=Wt(null),Wl=null,Tn=null,Ku=null;function Gu(){Ku=Tn=Wl=null}function Yu(e){var t=Vl.current;Q(Vl),e._currentValue=t}function Yi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fn(e,t){Wl=e,Ku=Tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ke=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(Ku!==e)if(e={context:e,memoizedValue:t,next:null},Tn===null){if(Wl===null)throw Error(k(308));Tn=e,Wl.dependencies={lanes:0,firstContext:e}}else Tn=Tn.next=e;return t}var Zt=null;function Xu(e){Zt===null?Zt=[e]:Zt.push(e)}function pf(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Xu(t)):(n.next=l.next,l.next=n),t.interleaved=n,St(e,r)}function St(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Nt=!1;function qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mf(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 mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,St(e,n)}return l=r.interleaved,l===null?(t.next=t,Xu(r)):(t.next=l.next,l.next=t),r.interleaved=t,St(e,n)}function yl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}function fa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ql(e,t,n,r){var l=e.updateQueue;Nt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var c=e.alternate;c!==null&&(c=c.updateQueue,u=c.lastBaseUpdate,u!==i&&(u===null?c.firstBaseUpdate=a:u.next=a,c.lastBaseUpdate=s))}if(o!==null){var d=l.baseState;i=0,c=a=s=null,u=o;do{var h=u.lane,y=u.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:y,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var m=e,v=u;switch(h=t,y=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){d=m.call(y,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,h=typeof m=="function"?m.call(y,d,h):m,h==null)break e;d=b({},d,h);break e;case 2:Nt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else y={eventTime:y,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},c===null?(a=c=y,s=d):c=c.next=y,i|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(1);if(c===null&&(s=d),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=c,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);cn|=i,e.lanes=i,e.memoizedState=d}}function da(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(k(191,l));l.call(r)}}}var hf=new dc.Component().refs;function Xi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fo={isMounted:function(e){return(e=e._reactInternals)?pn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ye(),l=Ut(e),o=mt(r,l);o.payload=t,n!=null&&(o.callback=n),t=zt(e,o,l),t!==null&&(Xe(t,e,l,r),yl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ye(),l=Ut(e),o=mt(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=zt(e,o,l),t!==null&&(Xe(t,e,l,r),yl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ye(),r=Ut(e),l=mt(n,r);l.tag=2,t!=null&&(l.callback=t),t=zt(e,l,r),t!==null&&(Xe(t,e,r,n),yl(t,e,r))}};function pa(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!Pr(n,r)||!Pr(l,o):!0}function gf(e,t,n){var r=!1,l=Ht,o=t.contextType;return typeof o=="object"&&o!==null?o=Ue(o):(l=Ce(t)?un:ge.current,r=t.contextTypes,o=(r=r!=null)?Dn(e,l):Ht),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function ma(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&fo.enqueueReplaceState(t,t.state,null)}function qi(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=hf,qu(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Ue(o):(o=Ce(t)?un:ge.current,l.context=Dn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Xi(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&fo.enqueueReplaceState(l,l.state,null),Ql(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function er(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var u=l.refs;u===hf&&(u=l.refs={}),i===null?delete u[o]:u[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function ul(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ha(e){var t=e._init;return t(e._payload)}function vf(e){function t(p,f){if(e){var g=p.deletions;g===null?(p.deletions=[f],p.flags|=16):g.push(f)}}function n(p,f){if(!e)return null;for(;f!==null;)t(p,f),f=f.sibling;return null}function r(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function l(p,f){return p=It(p,f),p.index=0,p.sibling=null,p}function o(p,f,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<f?(p.flags|=2,f):g):(p.flags|=2,f)):(p.flags|=1048576,f)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function u(p,f,g,E){return f===null||f.tag!==6?(f=ti(g,p.mode,E),f.return=p,f):(f=l(f,g),f.return=p,f)}function s(p,f,g,E){var C=g.type;return C===vn?c(p,f,g.props.children,E,g.key):f!==null&&(f.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Tt&&ha(C)===f.type)?(E=l(f,g.props),E.ref=er(p,f,g),E.return=p,E):(E=Cl(g.type,g.key,g.props,null,p.mode,E),E.ref=er(p,f,g),E.return=p,E)}function a(p,f,g,E){return f===null||f.tag!==4||f.stateNode.containerInfo!==g.containerInfo||f.stateNode.implementation!==g.implementation?(f=ni(g,p.mode,E),f.return=p,f):(f=l(f,g.children||[]),f.return=p,f)}function c(p,f,g,E,C){return f===null||f.tag!==7?(f=rn(g,p.mode,E,C),f.return=p,f):(f=l(f,g),f.return=p,f)}function d(p,f,g){if(typeof f=="string"&&f!==""||typeof f=="number")return f=ti(""+f,p.mode,g),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case qr:return g=Cl(f.type,f.key,f.props,null,p.mode,g),g.ref=er(p,null,f),g.return=p,g;case gn:return f=ni(f,p.mode,g),f.return=p,f;case Tt:var E=f._init;return d(p,E(f._payload),g)}if(ur(f)||Xn(f))return f=rn(f,p.mode,g,null),f.return=p,f;ul(p,f)}return null}function h(p,f,g,E){var C=f!==null?f.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return C!==null?null:u(p,f,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case qr:return g.key===C?s(p,f,g,E):null;case gn:return g.key===C?a(p,f,g,E):null;case Tt:return C=g._init,h(p,f,C(g._payload),E)}if(ur(g)||Xn(g))return C!==null?null:c(p,f,g,E,null);ul(p,g)}return null}function y(p,f,g,E,C){if(typeof E=="string"&&E!==""||typeof E=="number")return p=p.get(g)||null,u(f,p,""+E,C);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case qr:return p=p.get(E.key===null?g:E.key)||null,s(f,p,E,C);case gn:return p=p.get(E.key===null?g:E.key)||null,a(f,p,E,C);case Tt:var L=E._init;return y(p,f,g,L(E._payload),C)}if(ur(E)||Xn(E))return p=p.get(g)||null,c(f,p,E,C,null);ul(f,E)}return null}function m(p,f,g,E){for(var C=null,L=null,T=f,_=f=0,U=null;T!==null&&_<g.length;_++){T.index>_?(U=T,T=null):U=T.sibling;var O=h(p,T,g[_],E);if(O===null){T===null&&(T=U);break}e&&T&&O.alternate===null&&t(p,T),f=o(O,f,_),L===null?C=O:L.sibling=O,L=O,T=U}if(_===g.length)return n(p,T),G&&Xt(p,_),C;if(T===null){for(;_<g.length;_++)T=d(p,g[_],E),T!==null&&(f=o(T,f,_),L===null?C=T:L.sibling=T,L=T);return G&&Xt(p,_),C}for(T=r(p,T);_<g.length;_++)U=y(T,p,_,g[_],E),U!==null&&(e&&U.alternate!==null&&T.delete(U.key===null?_:U.key),f=o(U,f,_),L===null?C=U:L.sibling=U,L=U);return e&&T.forEach(function(V){return t(p,V)}),G&&Xt(p,_),C}function v(p,f,g,E){var C=Xn(g);if(typeof C!="function")throw Error(k(150));if(g=C.call(g),g==null)throw Error(k(151));for(var L=C=null,T=f,_=f=0,U=null,O=g.next();T!==null&&!O.done;_++,O=g.next()){T.index>_?(U=T,T=null):U=T.sibling;var V=h(p,T,O.value,E);if(V===null){T===null&&(T=U);break}e&&T&&V.alternate===null&&t(p,T),f=o(V,f,_),L===null?C=V:L.sibling=V,L=V,T=U}if(O.done)return n(p,T),G&&Xt(p,_),C;if(T===null){for(;!O.done;_++,O=g.next())O=d(p,O.value,E),O!==null&&(f=o(O,f,_),L===null?C=O:L.sibling=O,L=O);return G&&Xt(p,_),C}for(T=r(p,T);!O.done;_++,O=g.next())O=y(T,p,_,O.value,E),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?_:O.key),f=o(O,f,_),L===null?C=O:L.sibling=O,L=O);return e&&T.forEach(function(He){return t(p,He)}),G&&Xt(p,_),C}function P(p,f,g,E){if(typeof g=="object"&&g!==null&&g.type===vn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case qr:e:{for(var C=g.key,L=f;L!==null;){if(L.key===C){if(C=g.type,C===vn){if(L.tag===7){n(p,L.sibling),f=l(L,g.props.children),f.return=p,p=f;break e}}else if(L.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Tt&&ha(C)===L.type){n(p,L.sibling),f=l(L,g.props),f.ref=er(p,L,g),f.return=p,p=f;break e}n(p,L);break}else t(p,L);L=L.sibling}g.type===vn?(f=rn(g.props.children,p.mode,E,g.key),f.return=p,p=f):(E=Cl(g.type,g.key,g.props,null,p.mode,E),E.ref=er(p,f,g),E.return=p,p=E)}return i(p);case gn:e:{for(L=g.key;f!==null;){if(f.key===L)if(f.tag===4&&f.stateNode.containerInfo===g.containerInfo&&f.stateNode.implementation===g.implementation){n(p,f.sibling),f=l(f,g.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=ni(g,p.mode,E),f.return=p,p=f}return i(p);case Tt:return L=g._init,P(p,f,L(g._payload),E)}if(ur(g))return m(p,f,g,E);if(Xn(g))return v(p,f,g,E);ul(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,f!==null&&f.tag===6?(n(p,f.sibling),f=l(f,g),f.return=p,p=f):(n(p,f),f=ti(g,p.mode,E),f.return=p,p=f),i(p)):n(p,f)}return P}var zn=vf(!0),yf=vf(!1),Hr={},rt=Wt(Hr),Or=Wt(Hr),Fr=Wt(Hr);function en(e){if(e===Hr)throw Error(k(174));return e}function bu(e,t){switch(H(Fr,t),H(Or,e),H(rt,Hr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Li(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Li(t,e)}Q(rt),H(rt,t)}function jn(){Q(rt),Q(Or),Q(Fr)}function wf(e){en(Fr.current);var t=en(rt.current),n=Li(t,e.type);t!==n&&(H(Or,e),H(rt,n))}function Ju(e){Or.current===e&&(Q(rt),Q(Or))}var X=Wt(0);function Kl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xo=[];function Zu(){for(var e=0;e<Xo.length;e++)Xo[e]._workInProgressVersionPrimary=null;Xo.length=0}var wl=kt.ReactCurrentDispatcher,qo=kt.ReactCurrentBatchConfig,an=0,q=null,re=null,ie=null,Gl=!1,gr=!1,Ar=0,Qm=0;function de(){throw Error(k(321))}function es(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qe(e[n],t[n]))return!1;return!0}function ts(e,t,n,r,l,o){if(an=o,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wl.current=e===null||e.memoizedState===null?Xm:qm,e=n(r,l),gr){o=0;do{if(gr=!1,Ar=0,25<=o)throw Error(k(301));o+=1,ie=re=null,t.updateQueue=null,wl.current=bm,e=n(r,l)}while(gr)}if(wl.current=Yl,t=re!==null&&re.next!==null,an=0,ie=re=q=null,Gl=!1,t)throw Error(k(300));return e}function ns(){var e=Ar!==0;return Ar=0,e}function Ze(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ie===null?q.memoizedState=ie=e:ie=ie.next=e,ie}function Ie(){if(re===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=re.next;var t=ie===null?q.memoizedState:ie.next;if(t!==null)ie=t,re=e;else{if(e===null)throw Error(k(310));re=e,e={memoizedState:re.memoizedState,baseState:re.baseState,baseQueue:re.baseQueue,queue:re.queue,next:null},ie===null?q.memoizedState=ie=e:ie=ie.next=e}return ie}function $r(e,t){return typeof t=="function"?t(e):t}function bo(e){var t=Ie(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=re,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var u=i=null,s=null,a=o;do{var c=a.lane;if((an&c)===c)s!==null&&(s=s.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var d={lane:c,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};s===null?(u=s=d,i=r):s=s.next=d,q.lanes|=c,cn|=c}a=a.next}while(a!==null&&a!==o);s===null?i=r:s.next=u,qe(r,t.memoizedState)||(ke=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,q.lanes|=o,cn|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Jo(e){var t=Ie(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);qe(o,t.memoizedState)||(ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Sf(){}function Ef(e,t){var n=q,r=Ie(),l=t(),o=!qe(r.memoizedState,l);if(o&&(r.memoizedState=l,ke=!0),r=r.queue,rs(Cf.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ie!==null&&ie.memoizedState.tag&1){if(n.flags|=2048,Dr(9,xf.bind(null,n,r,l,t),void 0,null),se===null)throw Error(k(349));an&30||kf(n,t,l)}return l}function kf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function xf(e,t,n,r){t.value=n,t.getSnapshot=r,Tf(t)&&Nf(e)}function Cf(e,t,n){return n(function(){Tf(t)&&Nf(e)})}function Tf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qe(e,n)}catch{return!0}}function Nf(e){var t=St(e,1);t!==null&&Xe(t,e,1,-1)}function ga(e){var t=Ze();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$r,lastRenderedState:e},t.queue=e,e=e.dispatch=Ym.bind(null,q,e),[t.memoizedState,e]}function Dr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Pf(){return Ie().memoizedState}function Sl(e,t,n,r){var l=Ze();q.flags|=e,l.memoizedState=Dr(1|t,n,void 0,r===void 0?null:r)}function po(e,t,n,r){var l=Ie();r=r===void 0?null:r;var o=void 0;if(re!==null){var i=re.memoizedState;if(o=i.destroy,r!==null&&es(r,i.deps)){l.memoizedState=Dr(t,n,o,r);return}}q.flags|=e,l.memoizedState=Dr(1|t,n,o,r)}function va(e,t){return Sl(8390656,8,e,t)}function rs(e,t){return po(2048,8,e,t)}function Lf(e,t){return po(4,2,e,t)}function _f(e,t){return po(4,4,e,t)}function Rf(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 Of(e,t,n){return n=n!=null?n.concat([e]):null,po(4,4,Rf.bind(null,t,e),n)}function ls(){}function Ff(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&es(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Af(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&es(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $f(e,t,n){return an&21?(qe(n,t)||(n=Mc(),q.lanes|=n,cn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ke=!0),e.memoizedState=n)}function Km(e,t){var n=I;I=n!==0&&4>n?n:4,e(!0);var r=qo.transition;qo.transition={};try{e(!1),t()}finally{I=n,qo.transition=r}}function Df(){return Ie().memoizedState}function Gm(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mf(e))zf(t,n);else if(n=pf(e,t,n,r),n!==null){var l=ye();Xe(n,e,r,l),jf(n,t,r)}}function Ym(e,t,n){var r=Ut(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mf(e))zf(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,qe(u,i)){var s=t.interleaved;s===null?(l.next=l,Xu(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=pf(e,t,l,r),n!==null&&(l=ye(),Xe(n,e,r,l),jf(n,t,r))}}function Mf(e){var t=e.alternate;return e===q||t!==null&&t===q}function zf(e,t){gr=Gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}var Yl={readContext:Ue,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},Xm={readContext:Ue,useCallback:function(e,t){return Ze().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:va,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sl(4194308,4,Rf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sl(4,2,e,t)},useMemo:function(e,t){var n=Ze();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ze();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gm.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=Ze();return e={current:e},t.memoizedState=e},useState:ga,useDebugValue:ls,useDeferredValue:function(e){return Ze().memoizedState=e},useTransition:function(){var e=ga(!1),t=e[0];return e=Km.bind(null,e[1]),Ze().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,l=Ze();if(G){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),se===null)throw Error(k(349));an&30||kf(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,va(Cf.bind(null,r,o,e),[e]),r.flags|=2048,Dr(9,xf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ze(),t=se.identifierPrefix;if(G){var n=dt,r=ft;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ar++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Qm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qm={readContext:Ue,useCallback:Ff,useContext:Ue,useEffect:rs,useImperativeHandle:Of,useInsertionEffect:Lf,useLayoutEffect:_f,useMemo:Af,useReducer:bo,useRef:Pf,useState:function(){return bo($r)},useDebugValue:ls,useDeferredValue:function(e){var t=Ie();return $f(t,re.memoizedState,e)},useTransition:function(){var e=bo($r)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:Sf,useSyncExternalStore:Ef,useId:Df,unstable_isNewReconciler:!1},bm={readContext:Ue,useCallback:Ff,useContext:Ue,useEffect:rs,useImperativeHandle:Of,useInsertionEffect:Lf,useLayoutEffect:_f,useMemo:Af,useReducer:Jo,useRef:Pf,useState:function(){return Jo($r)},useDebugValue:ls,useDeferredValue:function(e){var t=Ie();return re===null?t.memoizedState=e:$f(t,re.memoizedState,e)},useTransition:function(){var e=Jo($r)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:Sf,useSyncExternalStore:Ef,useId:Df,unstable_isNewReconciler:!1};function Un(e,t){try{var n="",r=t;do n+=Tp(r),r=r.return;while(r);var l=n}catch(o){l=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Zo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jm=typeof WeakMap=="function"?WeakMap:Map;function Uf(e,t,n){n=mt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,uu=r),bi(e,t)},n}function If(e,t,n){n=mt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){bi(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bi(e,t),typeof r!="function"&&(jt===null?jt=new Set([this]):jt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function ya(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jm;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=dh.bind(null,e,t,n),t.then(e,e))}function wa(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 Sa(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mt(-1,1),t.tag=2,zt(n,t,1))),n.lanes|=1),e)}var Zm=kt.ReactCurrentOwner,ke=!1;function ve(e,t,n,r){t.child=e===null?yf(t,null,n,r):zn(t,e.child,n,r)}function Ea(e,t,n,r,l){n=n.render;var o=t.ref;return Fn(t,l),r=ts(e,t,n,r,o,l),n=ns(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Et(e,t,l)):(G&&n&&Vu(t),t.flags|=1,ve(e,t,r,l),t.child)}function ka(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!ds(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Bf(e,t,o,r,l)):(e=Cl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Pr,n(i,r)&&e.ref===t.ref)return Et(e,t,l)}return t.flags|=1,e=It(o,r),e.ref=t.ref,e.return=t,t.child=e}function Bf(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Pr(o,r)&&e.ref===t.ref)if(ke=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(ke=!0);else return t.lanes=e.lanes,Et(e,t,l)}return Ji(e,t,n,r,l)}function Hf(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},H(Pn,Ne),Ne|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,H(Pn,Ne),Ne|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,H(Pn,Ne),Ne|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,H(Pn,Ne),Ne|=r;return ve(e,t,l,n),t.child}function Vf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ji(e,t,n,r,l){var o=Ce(n)?un:ge.current;return o=Dn(t,o),Fn(t,l),n=ts(e,t,n,r,o,l),r=ns(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Et(e,t,l)):(G&&r&&Vu(t),t.flags|=1,ve(e,t,n,l),t.child)}function xa(e,t,n,r,l){if(Ce(n)){var o=!0;Il(t)}else o=!1;if(Fn(t,l),t.stateNode===null)El(e,t),gf(t,n,r),qi(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=Ue(a):(a=Ce(n)?un:ge.current,a=Dn(t,a));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==a)&&ma(t,i,r,a),Nt=!1;var h=t.memoizedState;i.state=h,Ql(t,r,i,l),s=t.memoizedState,u!==r||h!==s||xe.current||Nt?(typeof c=="function"&&(Xi(t,n,c,r),s=t.memoizedState),(u=Nt||pa(t,n,u,r,h,s,a))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=a,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,mf(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:Qe(t.type,u),i.props=a,d=t.pendingProps,h=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ue(s):(s=Ce(n)?un:ge.current,s=Dn(t,s));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==d||h!==s)&&ma(t,i,r,s),Nt=!1,h=t.memoizedState,i.state=h,Ql(t,r,i,l);var m=t.memoizedState;u!==d||h!==m||xe.current||Nt?(typeof y=="function"&&(Xi(t,n,y,r),m=t.memoizedState),(a=Nt||pa(t,n,a,r,h,m,s)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=s,r=a):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Zi(e,t,n,r,o,l)}function Zi(e,t,n,r,l,o){Vf(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&sa(t,n,!1),Et(e,t,o);r=t.stateNode,Zm.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=zn(t,e.child,null,o),t.child=zn(t,null,u,o)):ve(e,t,u,o),t.memoizedState=r.state,l&&sa(t,n,!0),t.child}function Wf(e){var t=e.stateNode;t.pendingContext?ua(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ua(e,t.context,!1),bu(e,t.containerInfo)}function Ca(e,t,n,r,l){return Mn(),Qu(l),t.flags|=256,ve(e,t,n,r),t.child}var eu={dehydrated:null,treeContext:null,retryLane:0};function tu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qf(e,t,n){var r=t.pendingProps,l=X.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),H(X,l&1),e===null)return Gi(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=go(i,r,0,null),e=rn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=tu(n),t.memoizedState=eu,e):os(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return eh(e,t,i,r,u,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=It(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=It(u,o):(o=rn(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?tu(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=eu,r}return o=e.child,e=o.sibling,r=It(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function os(e,t){return t=go({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sl(e,t,n,r){return r!==null&&Qu(r),zn(t,e.child,null,n),e=os(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function eh(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Zo(Error(k(422))),sl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=go({mode:"visible",children:r.children},l,0,null),o=rn(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&zn(t,e.child,null,i),t.child.memoizedState=tu(i),t.memoizedState=eu,o);if(!(t.mode&1))return sl(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(k(419)),r=Zo(o,r,void 0),sl(e,t,i,r)}if(u=(i&e.childLanes)!==0,ke||u){if(r=se,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,St(e,l),Xe(r,e,l,-1))}return fs(),r=Zo(Error(k(421))),sl(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=ph.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Le=Mt(l.nextSibling),_e=t,G=!0,Ge=null,e!==null&&($e[De++]=ft,$e[De++]=dt,$e[De++]=sn,ft=e.id,dt=e.overflow,sn=t),t=os(t,r.children),t.flags|=4096,t)}function Ta(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yi(e.return,t,n)}function ei(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Kf(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ve(e,t,r.children,n),r=X.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ta(e,n,t);else if(e.tag===19)Ta(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(H(X,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Kl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ei(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Kl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ei(t,!0,n,null,o);break;case"together":ei(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function El(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=It(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=It(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function th(e,t,n){switch(t.tag){case 3:Wf(t),Mn();break;case 5:wf(t);break;case 1:Ce(t.type)&&Il(t);break;case 4:bu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;H(Vl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(H(X,X.current&1),t.flags|=128,null):n&t.child.childLanes?Qf(e,t,n):(H(X,X.current&1),e=Et(e,t,n),e!==null?e.sibling:null);H(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Kf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),H(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,Hf(e,t,n)}return Et(e,t,n)}var Gf,nu,Yf,Xf;Gf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};nu=function(){};Yf=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,en(rt.current);var o=null;switch(n){case"input":l=Ci(e,l),r=Ci(e,r),o=[];break;case"select":l=b({},l,{value:void 0}),r=b({},r,{value:void 0}),o=[];break;case"textarea":l=Pi(e,l),r=Pi(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jl)}_i(n,r);var i;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var u=l[a];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Sr.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var s=r[a];if(u=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Sr.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&W("scroll",e),o||u===s||(o=[])):(o=o||[]).push(a,s))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Xf=function(e,t,n,r){n!==r&&(t.flags|=4)};function tr(e,t){if(!G)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function nh(e,t,n){var r=t.pendingProps;switch(Wu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pe(t),null;case 1:return Ce(t.type)&&Ul(),pe(t),null;case 3:return r=t.stateNode,jn(),Q(xe),Q(ge),Zu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(il(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ge!==null&&(cu(Ge),Ge=null))),nu(e,t),pe(t),null;case 5:Ju(t);var l=en(Fr.current);if(n=t.type,e!==null&&t.stateNode!=null)Yf(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return pe(t),null}if(e=en(rt.current),il(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[et]=t,r[Rr]=o,e=(t.mode&1)!==0,n){case"dialog":W("cancel",r),W("close",r);break;case"iframe":case"object":case"embed":W("load",r);break;case"video":case"audio":for(l=0;l<ar.length;l++)W(ar[l],r);break;case"source":W("error",r);break;case"img":case"image":case"link":W("error",r),W("load",r);break;case"details":W("toggle",r);break;case"input":$s(r,o),W("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},W("invalid",r);break;case"textarea":Ms(r,o),W("invalid",r)}_i(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];i==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&ol(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&ol(r.textContent,u,e),l=["children",""+u]):Sr.hasOwnProperty(i)&&u!=null&&i==="onScroll"&&W("scroll",r)}switch(n){case"input":br(r),Ds(r,o,!0);break;case"textarea":br(r),zs(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=jl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ec(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[et]=t,e[Rr]=r,Gf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ri(n,r),n){case"dialog":W("cancel",e),W("close",e),l=r;break;case"iframe":case"object":case"embed":W("load",e),l=r;break;case"video":case"audio":for(l=0;l<ar.length;l++)W(ar[l],e);l=r;break;case"source":W("error",e),l=r;break;case"img":case"image":case"link":W("error",e),W("load",e),l=r;break;case"details":W("toggle",e),l=r;break;case"input":$s(e,r),l=Ci(e,r),W("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=b({},r,{value:void 0}),W("invalid",e);break;case"textarea":Ms(e,r),l=Pi(e,r),W("invalid",e);break;default:l=r}_i(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var s=u[o];o==="style"?Cc(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&kc(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Er(e,s):typeof s=="number"&&Er(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Sr.hasOwnProperty(o)?s!=null&&o==="onScroll"&&W("scroll",e):s!=null&&_u(e,o,s,i))}switch(n){case"input":br(e),Ds(e,r,!1);break;case"textarea":br(e),zs(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Bt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ln(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ln(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=jl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pe(t),null;case 6:if(e&&t.stateNode!=null)Xf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=en(Fr.current),en(rt.current),il(t)){if(r=t.stateNode,n=t.memoizedProps,r[et]=t,(o=r.nodeValue!==n)&&(e=_e,e!==null))switch(e.tag){case 3:ol(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ol(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[et]=t,t.stateNode=r}return pe(t),null;case 13:if(Q(X),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(G&&Le!==null&&t.mode&1&&!(t.flags&128))df(),Mn(),t.flags|=98560,o=!1;else if(o=il(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(k(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(k(317));o[et]=t}else Mn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pe(t),o=!1}else Ge!==null&&(cu(Ge),Ge=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||X.current&1?le===0&&(le=3):fs())),t.updateQueue!==null&&(t.flags|=4),pe(t),null);case 4:return jn(),nu(e,t),e===null&&Lr(t.stateNode.containerInfo),pe(t),null;case 10:return Yu(t.type._context),pe(t),null;case 17:return Ce(t.type)&&Ul(),pe(t),null;case 19:if(Q(X),o=t.memoizedState,o===null)return pe(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)tr(o,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Kl(e),i!==null){for(t.flags|=128,tr(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return H(X,X.current&1|2),t.child}e=e.sibling}o.tail!==null&&Z()>In&&(t.flags|=128,r=!0,tr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Kl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),tr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!G)return pe(t),null}else 2*Z()-o.renderingStartTime>In&&n!==1073741824&&(t.flags|=128,r=!0,tr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Z(),t.sibling=null,n=X.current,H(X,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return cs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ne&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function rh(e,t){switch(Wu(t),t.tag){case 1:return Ce(t.type)&&Ul(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jn(),Q(xe),Q(ge),Zu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ju(t),null;case 13:if(Q(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(X),null;case 4:return jn(),null;case 10:return Yu(t.type._context),null;case 22:case 23:return cs(),null;case 24:return null;default:return null}}var al=!1,me=!1,lh=typeof WeakSet=="function"?WeakSet:Set,R=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function ru(e,t,n){try{n()}catch(r){J(e,t,r)}}var Na=!1;function oh(e,t){if(Ii=Dl,e=Jc(),Hu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,c=0,d=e,h=null;t:for(;;){for(var y;d!==n||l!==0&&d.nodeType!==3||(u=i+l),d!==o||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)h=d,d=y;for(;;){if(d===e)break t;if(h===n&&++a===l&&(u=i),h===o&&++c===r&&(s=i),(y=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=y}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bi={focusedElem:e,selectionRange:n},Dl=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,P=m.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:Qe(t.type,v),P);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(E){J(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return m=Na,Na=!1,m}function vr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&ru(t,n,o)}l=l.next}while(l!==r)}}function mo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function lu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qf(e){var t=e.alternate;t!==null&&(e.alternate=null,qf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[et],delete t[Rr],delete t[Wi],delete t[Bm],delete t[Hm])),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 bf(e){return e.tag===5||e.tag===3||e.tag===4}function Pa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bf(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 ou(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jl));else if(r!==4&&(e=e.child,e!==null))for(ou(e,t,n),e=e.sibling;e!==null;)ou(e,t,n),e=e.sibling}function iu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(iu(e,t,n),e=e.sibling;e!==null;)iu(e,t,n),e=e.sibling}var ae=null,Ke=!1;function xt(e,t,n){for(n=n.child;n!==null;)Jf(e,t,n),n=n.sibling}function Jf(e,t,n){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(oo,n)}catch{}switch(n.tag){case 5:me||Nn(n,t);case 6:var r=ae,l=Ke;ae=null,xt(e,t,n),ae=r,Ke=l,ae!==null&&(Ke?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(Ke?(e=ae,n=n.stateNode,e.nodeType===8?Go(e.parentNode,n):e.nodeType===1&&Go(e,n),Tr(e)):Go(ae,n.stateNode));break;case 4:r=ae,l=Ke,ae=n.stateNode.containerInfo,Ke=!0,xt(e,t,n),ae=r,Ke=l;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ru(n,t,i),l=l.next}while(l!==r)}xt(e,t,n);break;case 1:if(!me&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){J(n,t,u)}xt(e,t,n);break;case 21:xt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,xt(e,t,n),me=r):xt(e,t,n);break;default:xt(e,t,n)}}function La(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lh),t.forEach(function(r){var l=mh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,u=i;e:for(;u!==null;){switch(u.tag){case 5:ae=u.stateNode,Ke=!1;break e;case 3:ae=u.stateNode.containerInfo,Ke=!0;break e;case 4:ae=u.stateNode.containerInfo,Ke=!0;break e}u=u.return}if(ae===null)throw Error(k(160));Jf(o,i,l),ae=null,Ke=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(a){J(l,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zf(t,e),t=t.sibling}function Zf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(We(t,e),Je(e),r&4){try{vr(3,e,e.return),mo(3,e)}catch(v){J(e,e.return,v)}try{vr(5,e,e.return)}catch(v){J(e,e.return,v)}}break;case 1:We(t,e),Je(e),r&512&&n!==null&&Nn(n,n.return);break;case 5:if(We(t,e),Je(e),r&512&&n!==null&&Nn(n,n.return),e.flags&32){var l=e.stateNode;try{Er(l,"")}catch(v){J(e,e.return,v)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&wc(l,o),Ri(u,i);var a=Ri(u,o);for(i=0;i<s.length;i+=2){var c=s[i],d=s[i+1];c==="style"?Cc(l,d):c==="dangerouslySetInnerHTML"?kc(l,d):c==="children"?Er(l,d):_u(l,c,d,a)}switch(u){case"input":Ti(l,o);break;case"textarea":Sc(l,o);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Ln(l,!!o.multiple,y,!1):h!==!!o.multiple&&(o.defaultValue!=null?Ln(l,!!o.multiple,o.defaultValue,!0):Ln(l,!!o.multiple,o.multiple?[]:"",!1))}l[Rr]=o}catch(v){J(e,e.return,v)}}break;case 6:if(We(t,e),Je(e),r&4){if(e.stateNode===null)throw Error(k(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(v){J(e,e.return,v)}}break;case 3:if(We(t,e),Je(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Tr(t.containerInfo)}catch(v){J(e,e.return,v)}break;case 4:We(t,e),Je(e);break;case 13:We(t,e),Je(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(ss=Z())),r&4&&La(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(me=(a=me)||c,We(t,e),me=a):We(t,e),Je(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!c&&e.mode&1)for(R=e,c=e.child;c!==null;){for(d=R=c;R!==null;){switch(h=R,y=h.child,h.tag){case 0:case 11:case 14:case 15:vr(4,h,h.return);break;case 1:Nn(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){J(r,n,v)}}break;case 5:Nn(h,h.return);break;case 22:if(h.memoizedState!==null){Ra(d);continue}}y!==null?(y.return=h,R=y):Ra(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{l=d.stateNode,a?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=d.stateNode,s=d.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=xc("display",i))}catch(v){J(e,e.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=a?"":d.memoizedProps}catch(v){J(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:We(t,e),Je(e),r&4&&La(e);break;case 21:break;default:We(t,e),Je(e)}}function Je(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bf(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Er(l,""),r.flags&=-33);var o=Pa(e);iu(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,u=Pa(e);ou(e,u,i);break;default:throw Error(k(161))}}catch(s){J(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ih(e,t,n){R=e,ed(e)}function ed(e,t,n){for(var r=(e.mode&1)!==0;R!==null;){var l=R,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||al;if(!i){var u=l.alternate,s=u!==null&&u.memoizedState!==null||me;u=al;var a=me;if(al=i,(me=s)&&!a)for(R=l;R!==null;)i=R,s=i.child,i.tag===22&&i.memoizedState!==null?Oa(l):s!==null?(s.return=i,R=s):Oa(l);for(;o!==null;)R=o,ed(o),o=o.sibling;R=l,al=u,me=a}_a(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,R=o):_a(e)}}function _a(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:me||mo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!me)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Qe(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&da(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}da(t,i,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var c=a.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Tr(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}me||t.flags&512&&lu(t)}catch(h){J(t,t.return,h)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function Ra(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function Oa(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{mo(4,t)}catch(s){J(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){J(t,l,s)}}var o=t.return;try{lu(t)}catch(s){J(t,o,s)}break;case 5:var i=t.return;try{lu(t)}catch(s){J(t,i,s)}}}catch(s){J(t,t.return,s)}if(t===e){R=null;break}var u=t.sibling;if(u!==null){u.return=t.return,R=u;break}R=t.return}}var uh=Math.ceil,Xl=kt.ReactCurrentDispatcher,is=kt.ReactCurrentOwner,ze=kt.ReactCurrentBatchConfig,z=0,se=null,ne=null,ce=0,Ne=0,Pn=Wt(0),le=0,Mr=null,cn=0,ho=0,us=0,yr=null,Ee=null,ss=0,In=1/0,at=null,ql=!1,uu=null,jt=null,cl=!1,Ft=null,bl=0,wr=0,su=null,kl=-1,xl=0;function ye(){return z&6?Z():kl!==-1?kl:kl=Z()}function Ut(e){return e.mode&1?z&2&&ce!==0?ce&-ce:Wm.transition!==null?(xl===0&&(xl=Mc()),xl):(e=I,e!==0||(e=window.event,e=e===void 0?16:Vc(e.type)),e):1}function Xe(e,t,n,r){if(50<wr)throw wr=0,su=null,Error(k(185));Ur(e,n,r),(!(z&2)||e!==se)&&(e===se&&(!(z&2)&&(ho|=n),le===4&&Lt(e,ce)),Te(e,r),n===1&&z===0&&!(t.mode&1)&&(In=Z()+500,co&&Qt()))}function Te(e,t){var n=e.callbackNode;Wp(e,t);var r=$l(e,e===se?ce:0);if(r===0)n!==null&&Is(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Is(n),t===1)e.tag===0?Vm(Fa.bind(null,e)):af(Fa.bind(null,e)),Um(function(){!(z&6)&&Qt()}),n=null;else{switch(zc(r)){case 1:n=$u;break;case 4:n=$c;break;case 16:n=Al;break;case 536870912:n=Dc;break;default:n=Al}n=sd(n,td.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function td(e,t){if(kl=-1,xl=0,z&6)throw Error(k(327));var n=e.callbackNode;if(An()&&e.callbackNode!==n)return null;var r=$l(e,e===se?ce:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Jl(e,r);else{t=r;var l=z;z|=2;var o=rd();(se!==e||ce!==t)&&(at=null,In=Z()+500,nn(e,t));do try{ch();break}catch(u){nd(e,u)}while(1);Gu(),Xl.current=o,z=l,ne!==null?t=0:(se=null,ce=0,t=le)}if(t!==0){if(t===2&&(l=Di(e),l!==0&&(r=l,t=au(e,l))),t===1)throw n=Mr,nn(e,0),Lt(e,r),Te(e,Z()),n;if(t===6)Lt(e,r);else{if(l=e.current.alternate,!(r&30)&&!sh(l)&&(t=Jl(e,r),t===2&&(o=Di(e),o!==0&&(r=o,t=au(e,o))),t===1))throw n=Mr,nn(e,0),Lt(e,r),Te(e,Z()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:qt(e,Ee,at);break;case 3:if(Lt(e,r),(r&130023424)===r&&(t=ss+500-Z(),10<t)){if($l(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ye(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Vi(qt.bind(null,e,Ee,at),t);break}qt(e,Ee,at);break;case 4:if(Lt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-Ye(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uh(r/1960))-r,10<r){e.timeoutHandle=Vi(qt.bind(null,e,Ee,at),r);break}qt(e,Ee,at);break;case 5:qt(e,Ee,at);break;default:throw Error(k(329))}}}return Te(e,Z()),e.callbackNode===n?td.bind(null,e):null}function au(e,t){var n=yr;return e.current.memoizedState.isDehydrated&&(nn(e,t).flags|=256),e=Jl(e,t),e!==2&&(t=Ee,Ee=n,t!==null&&cu(t)),e}function cu(e){Ee===null?Ee=e:Ee.push.apply(Ee,e)}function sh(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!qe(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Lt(e,t){for(t&=~us,t&=~ho,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ye(t),r=1<<n;e[n]=-1,t&=~r}}function Fa(e){if(z&6)throw Error(k(327));An();var t=$l(e,0);if(!(t&1))return Te(e,Z()),null;var n=Jl(e,t);if(e.tag!==0&&n===2){var r=Di(e);r!==0&&(t=r,n=au(e,r))}if(n===1)throw n=Mr,nn(e,0),Lt(e,t),Te(e,Z()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,qt(e,Ee,at),Te(e,Z()),null}function as(e,t){var n=z;z|=1;try{return e(t)}finally{z=n,z===0&&(In=Z()+500,co&&Qt())}}function fn(e){Ft!==null&&Ft.tag===0&&!(z&6)&&An();var t=z;z|=1;var n=ze.transition,r=I;try{if(ze.transition=null,I=1,e)return e()}finally{I=r,ze.transition=n,z=t,!(z&6)&&Qt()}}function cs(){Ne=Pn.current,Q(Pn)}function nn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,jm(n)),ne!==null)for(n=ne.return;n!==null;){var r=n;switch(Wu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ul();break;case 3:jn(),Q(xe),Q(ge),Zu();break;case 5:Ju(r);break;case 4:jn();break;case 13:Q(X);break;case 19:Q(X);break;case 10:Yu(r.type._context);break;case 22:case 23:cs()}n=n.return}if(se=e,ne=e=It(e.current,null),ce=Ne=t,le=0,Mr=null,us=ho=cn=0,Ee=yr=null,Zt!==null){for(t=0;t<Zt.length;t++)if(n=Zt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}Zt=null}return e}function nd(e,t){do{var n=ne;try{if(Gu(),wl.current=Yl,Gl){for(var r=q.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Gl=!1}if(an=0,ie=re=q=null,gr=!1,Ar=0,is.current=null,n===null||n.return===null){le=1,Mr=t,ne=null;break}e:{var o=e,i=n.return,u=n,s=t;if(t=ce,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var a=s,c=u,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=wa(i);if(y!==null){y.flags&=-257,Sa(y,i,u,o,t),y.mode&1&&ya(o,a,t),t=y,s=a;var m=t.updateQueue;if(m===null){var v=new Set;v.add(s),t.updateQueue=v}else m.add(s);break e}else{if(!(t&1)){ya(o,a,t),fs();break e}s=Error(k(426))}}else if(G&&u.mode&1){var P=wa(i);if(P!==null){!(P.flags&65536)&&(P.flags|=256),Sa(P,i,u,o,t),Qu(Un(s,u));break e}}o=s=Un(s,u),le!==4&&(le=2),yr===null?yr=[o]:yr.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=Uf(o,s,t);fa(o,p);break e;case 1:u=s;var f=o.type,g=o.stateNode;if(!(o.flags&128)&&(typeof f.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(jt===null||!jt.has(g)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=If(o,u,t);fa(o,E);break e}}o=o.return}while(o!==null)}od(n)}catch(C){t=C,ne===n&&n!==null&&(ne=n=n.return);continue}break}while(1)}function rd(){var e=Xl.current;return Xl.current=Yl,e===null?Yl:e}function fs(){(le===0||le===3||le===2)&&(le=4),se===null||!(cn&268435455)&&!(ho&268435455)||Lt(se,ce)}function Jl(e,t){var n=z;z|=2;var r=rd();(se!==e||ce!==t)&&(at=null,nn(e,t));do try{ah();break}catch(l){nd(e,l)}while(1);if(Gu(),z=n,Xl.current=r,ne!==null)throw Error(k(261));return se=null,ce=0,le}function ah(){for(;ne!==null;)ld(ne)}function ch(){for(;ne!==null&&!Dp();)ld(ne)}function ld(e){var t=ud(e.alternate,e,Ne);e.memoizedProps=e.pendingProps,t===null?od(e):ne=t,is.current=null}function od(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=rh(n,t),n!==null){n.flags&=32767,ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,ne=null;return}}else if(n=nh(n,t,Ne),n!==null){ne=n;return}if(t=t.sibling,t!==null){ne=t;return}ne=t=e}while(t!==null);le===0&&(le=5)}function qt(e,t,n){var r=I,l=ze.transition;try{ze.transition=null,I=1,fh(e,t,n,r)}finally{ze.transition=l,I=r}return null}function fh(e,t,n,r){do An();while(Ft!==null);if(z&6)throw Error(k(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Qp(e,o),e===se&&(ne=se=null,ce=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||cl||(cl=!0,sd(Al,function(){return An(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ze.transition,ze.transition=null;var i=I;I=1;var u=z;z|=4,is.current=null,oh(e,n),Zf(n,e),Om(Bi),Dl=!!Ii,Bi=Ii=null,e.current=n,ih(n),Mp(),z=u,I=i,ze.transition=o}else e.current=n;if(cl&&(cl=!1,Ft=e,bl=l),o=e.pendingLanes,o===0&&(jt=null),Up(n.stateNode),Te(e,Z()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(ql)throw ql=!1,e=uu,uu=null,e;return bl&1&&e.tag!==0&&An(),o=e.pendingLanes,o&1?e===su?wr++:(wr=0,su=e):wr=0,Qt(),null}function An(){if(Ft!==null){var e=zc(bl),t=ze.transition,n=I;try{if(ze.transition=null,I=16>e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,bl=0,z&6)throw Error(k(331));var l=z;for(z|=4,R=e.current;R!==null;){var o=R,i=o.child;if(R.flags&16){var u=o.deletions;if(u!==null){for(var s=0;s<u.length;s++){var a=u[s];for(R=a;R!==null;){var c=R;switch(c.tag){case 0:case 11:case 15:vr(8,c,o)}var d=c.child;if(d!==null)d.return=c,R=d;else for(;R!==null;){c=R;var h=c.sibling,y=c.return;if(qf(c),c===a){R=null;break}if(h!==null){h.return=y,R=h;break}R=y}}}var m=o.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var P=v.sibling;v.sibling=null,v=P}while(v!==null)}}R=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,R=i;else e:for(;R!==null;){if(o=R,o.flags&2048)switch(o.tag){case 0:case 11:case 15:vr(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,R=p;break e}R=o.return}}var f=e.current;for(R=f;R!==null;){i=R;var g=i.child;if(i.subtreeFlags&2064&&g!==null)g.return=i,R=g;else e:for(i=f;R!==null;){if(u=R,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:mo(9,u)}}catch(C){J(u,u.return,C)}if(u===i){R=null;break e}var E=u.sibling;if(E!==null){E.return=u.return,R=E;break e}R=u.return}}if(z=l,Qt(),nt&&typeof nt.onPostCommitFiberRoot=="function")try{nt.onPostCommitFiberRoot(oo,e)}catch{}r=!0}return r}finally{I=n,ze.transition=t}}return!1}function Aa(e,t,n){t=Un(n,t),t=Uf(e,t,1),e=zt(e,t,1),t=ye(),e!==null&&(Ur(e,1,t),Te(e,t))}function J(e,t,n){if(e.tag===3)Aa(e,e,n);else for(;t!==null;){if(t.tag===3){Aa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jt===null||!jt.has(r))){e=Un(n,e),e=If(t,e,1),t=zt(t,e,1),e=ye(),t!==null&&(Ur(t,1,e),Te(t,e));break}}t=t.return}}function dh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ye(),e.pingedLanes|=e.suspendedLanes&n,se===e&&(ce&n)===n&&(le===4||le===3&&(ce&130023424)===ce&&500>Z()-ss?nn(e,0):us|=n),Te(e,t)}function id(e,t){t===0&&(e.mode&1?(t=el,el<<=1,!(el&130023424)&&(el=4194304)):t=1);var n=ye();e=St(e,t),e!==null&&(Ur(e,t,n),Te(e,n))}function ph(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),id(e,n)}function mh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),id(e,n)}var ud;ud=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xe.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,th(e,t,n);ke=!!(e.flags&131072)}else ke=!1,G&&t.flags&1048576&&cf(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;El(e,t),e=t.pendingProps;var l=Dn(t,ge.current);Fn(t,n),l=ts(null,t,r,e,l,n);var o=ns();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ce(r)?(o=!0,Il(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,qu(t),l.updater=fo,t.stateNode=l,l._reactInternals=t,qi(t,r,e,n),t=Zi(null,t,r,!0,o,n)):(t.tag=0,G&&o&&Vu(t),ve(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(El(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=gh(r),e=Qe(r,e),l){case 0:t=Ji(null,t,r,e,n);break e;case 1:t=xa(null,t,r,e,n);break e;case 11:t=Ea(null,t,r,e,n);break e;case 14:t=ka(null,t,r,Qe(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),Ji(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),xa(e,t,r,l,n);case 3:e:{if(Wf(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,mf(e,t),Ql(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Un(Error(k(423)),t),t=Ca(e,t,r,n,l);break e}else if(r!==l){l=Un(Error(k(424)),t),t=Ca(e,t,r,n,l);break e}else for(Le=Mt(t.stateNode.containerInfo.firstChild),_e=t,G=!0,Ge=null,n=yf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mn(),r===l){t=Et(e,t,n);break e}ve(e,t,r,n)}t=t.child}return t;case 5:return wf(t),e===null&&Gi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Hi(r,l)?i=null:o!==null&&Hi(r,o)&&(t.flags|=32),Vf(e,t),ve(e,t,i,n),t.child;case 6:return e===null&&Gi(t),null;case 13:return Qf(e,t,n);case 4:return bu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zn(t,null,r,n):ve(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),Ea(e,t,r,l,n);case 7:return ve(e,t,t.pendingProps,n),t.child;case 8:return ve(e,t,t.pendingProps.children,n),t.child;case 12:return ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,H(Vl,r._currentValue),r._currentValue=i,o!==null)if(qe(o.value,i)){if(o.children===l.children&&!xe.current){t=Et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=mt(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Yi(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Yi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ve(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Fn(t,n),l=Ue(l),r=r(l),t.flags|=1,ve(e,t,r,n),t.child;case 14:return r=t.type,l=Qe(r,t.pendingProps),l=Qe(r.type,l),ka(e,t,r,l,n);case 15:return Bf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),El(e,t),t.tag=1,Ce(r)?(e=!0,Il(t)):e=!1,Fn(t,n),gf(t,r,l),qi(t,r,l,n),Zi(null,t,r,!0,e,n);case 19:return Kf(e,t,n);case 22:return Hf(e,t,n)}throw Error(k(156,t.tag))};function sd(e,t){return Ac(e,t)}function hh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Me(e,t,n,r){return new hh(e,t,n,r)}function ds(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gh(e){if(typeof e=="function")return ds(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ou)return 11;if(e===Fu)return 14}return 2}function It(e,t){var n=e.alternate;return n===null?(n=Me(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")ds(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case vn:return rn(n.children,l,o,t);case Ru:i=8,l|=8;break;case Si:return e=Me(12,n,t,l|2),e.elementType=Si,e.lanes=o,e;case Ei:return e=Me(13,n,t,l),e.elementType=Ei,e.lanes=o,e;case ki:return e=Me(19,n,t,l),e.elementType=ki,e.lanes=o,e;case gc:return go(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mc:i=10;break e;case hc:i=9;break e;case Ou:i=11;break e;case Fu:i=14;break e;case Tt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Me(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function rn(e,t,n,r){return e=Me(7,e,r,t),e.lanes=n,e}function go(e,t,n,r){return e=Me(22,e,r,t),e.elementType=gc,e.lanes=n,e.stateNode={isHidden:!1},e}function ti(e,t,n){return e=Me(6,e,null,t),e.lanes=n,e}function ni(e,t,n){return t=Me(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mo(0),this.expirationTimes=Mo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ps(e,t,n,r,l,o,i,u,s){return e=new vh(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Me(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qu(o),e}function yh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ad(e){if(!e)return Ht;e=e._reactInternals;e:{if(pn(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ce(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(Ce(n))return sf(e,n,t)}return t}function cd(e,t,n,r,l,o,i,u,s){return e=ps(n,r,!0,e,l,o,i,u,s),e.context=ad(null),n=e.current,r=ye(),l=Ut(n),o=mt(r,l),o.callback=t??null,zt(n,o,l),e.current.lanes=l,Ur(e,l,r),Te(e,r),e}function vo(e,t,n,r){var l=t.current,o=ye(),i=Ut(l);return n=ad(n),t.context===null?t.context=n:t.pendingContext=n,t=mt(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zt(l,t,i),e!==null&&(Xe(e,l,i,o),yl(e,l,i)),i}function Zl(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 $a(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ms(e,t){$a(e,t),(e=e.alternate)&&$a(e,t)}function wh(){return null}var fd=typeof reportError=="function"?reportError:function(e){console.error(e)};function hs(e){this._internalRoot=e}yo.prototype.render=hs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));vo(e,t,null,null)};yo.prototype.unmount=hs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fn(function(){vo(null,e,null,null)}),t[wt]=null}};function yo(e){this._internalRoot=e}yo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ic();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pt.length&&t!==0&&t<Pt[n].priority;n++);Pt.splice(n,0,e),n===0&&Hc(e)}};function gs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Da(){}function Sh(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var a=Zl(i);o.call(a)}}var i=cd(t,r,e,0,null,!1,!1,"",Da);return e._reactRootContainer=i,e[wt]=i.current,Lr(e.nodeType===8?e.parentNode:e),fn(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var a=Zl(s);u.call(a)}}var s=ps(e,0,!1,null,null,!1,!1,"",Da);return e._reactRootContainer=s,e[wt]=s.current,Lr(e.nodeType===8?e.parentNode:e),fn(function(){vo(t,s,n,r)}),s}function So(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var u=l;l=function(){var s=Zl(i);u.call(s)}}vo(t,i,e,l)}else i=Sh(n,t,e,l,r);return Zl(i)}jc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=sr(t.pendingLanes);n!==0&&(Du(t,n|1),Te(t,Z()),!(z&6)&&(In=Z()+500,Qt()))}break;case 13:fn(function(){var r=St(e,1);if(r!==null){var l=ye();Xe(r,e,1,l)}}),ms(e,1)}};Mu=function(e){if(e.tag===13){var t=St(e,134217728);if(t!==null){var n=ye();Xe(t,e,134217728,n)}ms(e,134217728)}};Uc=function(e){if(e.tag===13){var t=Ut(e),n=St(e,t);if(n!==null){var r=ye();Xe(n,e,t,r)}ms(e,t)}};Ic=function(){return I};Bc=function(e,t){var n=I;try{return I=e,t()}finally{I=n}};Fi=function(e,t,n){switch(t){case"input":if(Ti(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=ao(r);if(!l)throw Error(k(90));yc(r),Ti(r,l)}}}break;case"textarea":Sc(e,n);break;case"select":t=n.value,t!=null&&Ln(e,!!n.multiple,t,!1)}};Pc=as;Lc=fn;var Eh={usingClientEntryPoint:!1,Events:[Br,En,ao,Tc,Nc,as]},nr={findFiberByHostInstance:Jt,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},kh={bundleType:nr.bundleType,version:nr.version,rendererPackageName:nr.rendererPackageName,rendererConfig:nr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Oc(e),e===null?null:e.stateNode},findFiberByHostInstance:nr.findFiberByHostInstance||wh,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 fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fl.isDisabled&&fl.supportsFiber)try{oo=fl.inject(kh),nt=fl}catch{}}Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Eh;Oe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gs(t))throw Error(k(200));return yh(e,t,null,n)};Oe.createRoot=function(e,t){if(!gs(e))throw Error(k(299));var n=!1,r="",l=fd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=ps(e,1,!1,null,null,n,!1,r,l),e[wt]=t.current,Lr(e.nodeType===8?e.parentNode:e),new hs(t)};Oe.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=Oc(t),e=e===null?null:e.stateNode,e};Oe.flushSync=function(e){return fn(e)};Oe.hydrate=function(e,t,n){if(!wo(t))throw Error(k(200));return So(null,e,t,!0,n)};Oe.hydrateRoot=function(e,t,n){if(!gs(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=fd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=cd(t,null,e,1,n??null,l,!1,o,i),e[wt]=t.current,Lr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new yo(t)};Oe.render=function(e,t,n){if(!wo(t))throw Error(k(200));return So(null,e,t,!1,n)};Oe.unmountComponentAtNode=function(e){if(!wo(e))throw Error(k(40));return e._reactRootContainer?(fn(function(){So(null,null,e,!1,function(){e._reactRootContainer=null,e[wt]=null})}),!0):!1};Oe.unstable_batchedUpdates=as;Oe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wo(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return So(e,t,n,!1,r)};Oe.version="18.2.0-next-9e3b772b8-20220608";function dd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dd)}catch(e){console.error(e)}}dd(),ac.exports=Oe;var pd=ac.exports,Ma=pd;yi.createRoot=Ma.createRoot,yi.hydrateRoot=Ma.hydrateRoot;function md(e,t){return function(){return e.apply(t,arguments)}}const{toString:xh}=Object.prototype,{getPrototypeOf:vs}=Object,Eo=(e=>t=>{const n=xh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Eo(t)===e),ko=e=>t=>typeof t===e,{isArray:Qn}=Array,zr=ko("undefined");function Ch(e){return e!==null&&!zr(e)&&e.constructor!==null&&!zr(e.constructor)&&je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hd=lt("ArrayBuffer");function Th(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hd(e.buffer),t}const Nh=ko("string"),je=ko("function"),gd=ko("number"),xo=e=>e!==null&&typeof e=="object",Ph=e=>e===!0||e===!1,Tl=e=>{if(Eo(e)!=="object")return!1;const t=vs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Lh=lt("Date"),_h=lt("File"),Rh=lt("Blob"),Oh=lt("FileList"),Fh=e=>xo(e)&&je(e.pipe),Ah=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||je(e.append)&&((t=Eo(e))==="formdata"||t==="object"&&je(e.toString)&&e.toString()==="[object FormData]"))},$h=lt("URLSearchParams"),Dh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Qn(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let u;for(r=0;r<i;r++)u=o[r],t.call(null,e[u],u,e)}}function vd(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,l;for(;r-- >0;)if(l=n[r],t===l.toLowerCase())return l;return null}const yd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),wd=e=>!zr(e)&&e!==yd;function fu(){const{caseless:e}=wd(this)&&this||{},t={},n=(r,l)=>{const o=e&&vd(t,l)||l;Tl(t[o])&&Tl(r)?t[o]=fu(t[o],r):Tl(r)?t[o]=fu({},r):Qn(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r<l;r++)arguments[r]&&Vr(arguments[r],n);return t}const Mh=(e,t,n,{allOwnKeys:r}={})=>(Vr(t,(l,o)=>{n&&je(l)?e[o]=md(l,n):e[o]=l},{allOwnKeys:r}),e),zh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jh=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Uh=(e,t,n,r)=>{let l,o,i;const u={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&vs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ih=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Bh=e=>{if(!e)return null;if(Qn(e))return e;let t=e.length;if(!gd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vs(Uint8Array)),Vh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},Wh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qh=lt("HTMLFormElement"),Kh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),za=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gh=lt("RegExp"),Sd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vr(n,(l,o)=>{t(l,o,e)!==!1&&(r[o]=l)}),Object.defineProperties(e,r)},Yh=e=>{Sd(e,(t,n)=>{if(je(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(je(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xh=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return Qn(e)?r(e):r(String(e).split(t)),n},qh=()=>{},bh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ri="abcdefghijklmnopqrstuvwxyz",ja="0123456789",Ed={DIGIT:ja,ALPHA:ri,ALPHA_DIGIT:ri+ri.toUpperCase()+ja},Jh=(e=16,t=Ed.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Zh(e){return!!(e&&je(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const e0=e=>{const t=new Array(10),n=(r,l)=>{if(xo(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=Qn(r)?[]:{};return Vr(r,(i,u)=>{const s=n(i,l+1);!zr(s)&&(o[u]=s)}),t[l]=void 0,o}}return r};return n(e,0)},t0=lt("AsyncFunction"),n0=e=>e&&(xo(e)||je(e))&&je(e.then)&&je(e.catch),S={isArray:Qn,isArrayBuffer:hd,isBuffer:Ch,isFormData:Ah,isArrayBufferView:Th,isString:Nh,isNumber:gd,isBoolean:Ph,isObject:xo,isPlainObject:Tl,isUndefined:zr,isDate:Lh,isFile:_h,isBlob:Rh,isRegExp:Gh,isFunction:je,isStream:Fh,isURLSearchParams:$h,isTypedArray:Hh,isFileList:Oh,forEach:Vr,merge:fu,extend:Mh,trim:Dh,stripBOM:zh,inherits:jh,toFlatObject:Uh,kindOf:Eo,kindOfTest:lt,endsWith:Ih,toArray:Bh,forEachEntry:Vh,matchAll:Wh,isHTMLForm:Qh,hasOwnProperty:za,hasOwnProp:za,reduceDescriptors:Sd,freezeMethods:Yh,toObjectSet:Xh,toCamelCase:Kh,noop:qh,toFiniteNumber:bh,findKey:vd,global:yd,isContextDefined:wd,ALPHABET:Ed,generateString:Jh,isSpecCompliantForm:Zh,toJSONObject:e0,isAsyncFn:t0,isThenable:n0};function M(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l)}S.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const kd=M.prototype,xd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xd[e]={value:e}});Object.defineProperties(M,xd);Object.defineProperty(kd,"isAxiosError",{value:!0});M.from=(e,t,n,r,l,o)=>{const i=Object.create(kd);return S.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),M.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const r0=null;function du(e){return S.isPlainObject(e)||S.isArray(e)}function Cd(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Ua(e,t,n){return e?e.concat(t).map(function(l,o){return l=Cd(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function l0(e){return S.isArray(e)&&!e.some(du)}const o0=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Co(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,P){return!S.isUndefined(P[v])});const r=n.metaTokens,l=n.visitor||c,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(l))throw new TypeError("visitor must be a function");function a(m){if(m===null)return"";if(S.isDate(m))return m.toISOString();if(!s&&S.isBlob(m))throw new M("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(m)||S.isTypedArray(m)?s&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,v,P){let p=m;if(m&&!P&&typeof m=="object"){if(S.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(S.isArray(m)&&l0(m)||(S.isFileList(m)||S.endsWith(v,"[]"))&&(p=S.toArray(m)))return v=Cd(v),p.forEach(function(g,E){!(S.isUndefined(g)||g===null)&&t.append(i===!0?Ua([v],E,o):i===null?v:v+"[]",a(g))}),!1}return du(m)?!0:(t.append(Ua(P,v,o),a(m)),!1)}const d=[],h=Object.assign(o0,{defaultVisitor:c,convertValue:a,isVisitable:du});function y(m,v){if(!S.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),S.forEach(m,function(p,f){(!(S.isUndefined(p)||p===null)&&l.call(t,p,S.isString(f)?f.trim():f,v,h))===!0&&y(p,v?v.concat(f):[f])}),d.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Ia(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ys(e,t){this._pairs=[],e&&Co(e,this,t)}const Td=ys.prototype;Td.append=function(t,n){this._pairs.push([t,n])};Td.toString=function(t){const n=t?function(r){return t.call(this,r,Ia)}:Ia;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function i0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nd(e,t,n){if(!t)return e;const r=n&&n.encode||i0,l=n&&n.serialize;let o;if(l?o=l(t,n):o=S.isURLSearchParams(t)?t.toString():new ys(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class u0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ba=u0,Pd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},s0=typeof URLSearchParams<"u"?URLSearchParams:ys,a0=typeof FormData<"u"?FormData:null,c0=typeof Blob<"u"?Blob:null,f0=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),d0=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),tt={isBrowser:!0,classes:{URLSearchParams:s0,FormData:a0,Blob:c0},isStandardBrowserEnv:f0,isStandardBrowserWebWorkerEnv:d0,protocols:["http","https","file","blob","url","data"]};function p0(e,t){return Co(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return tt.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function m0(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h0(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r<l;r++)o=n[r],t[o]=e[o];return t}function Ld(e){function t(n,r,l,o){let i=n[o++];const u=Number.isFinite(+i),s=o>=n.length;return i=!i&&S.isArray(l)?l.length:i,s?(S.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!u):((!l[i]||!S.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&S.isArray(l[i])&&(l[i]=h0(l[i])),!u)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,l)=>{t(m0(r),l,n,0)}),n}return null}const g0={"Content-Type":void 0};function v0(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const To={transitional:Pd,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=S.isObject(t);if(o&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return l&&l?JSON.stringify(Ld(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return p0(t,this.formSerializer).toString();if((u=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Co(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),v0(t)):t}],transformResponse:[function(t){const n=this.transitional||To.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&S.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?M.from(u,M.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};S.forEach(["delete","get","head"],function(t){To.headers[t]={}});S.forEach(["post","put","patch"],function(t){To.headers[t]=S.merge(g0)});const ws=To,y0=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),w0=e=>{const t={};let n,r,l;return e&&e.split(`
`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&y0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ha=Symbol("internals");function rr(e){return e&&String(e).trim().toLowerCase()}function Nl(e){return e===!1||e==null?e:S.isArray(e)?e.map(Nl):String(e)}function S0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const E0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function li(e,t,n,r,l){if(S.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function k0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function x0(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class No{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(u,s,a){const c=rr(s);if(!c)throw new Error("header name must be a non-empty string");const d=S.findKey(l,c);(!d||l[d]===void 0||a===!0||a===void 0&&l[d]!==!1)&&(l[d||s]=Nl(u))}const i=(u,s)=>S.forEach(u,(a,c)=>o(a,c,s));return S.isPlainObject(t)||t instanceof this.constructor?i(t,n):S.isString(t)&&(t=t.trim())&&!E0(t)?i(w0(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=rr(t),t){const r=S.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return S0(l);if(S.isFunction(n))return n.call(this,l,r);if(S.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=rr(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||li(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=rr(i),i){const u=S.findKey(r,i);u&&(!n||li(r,r[u],u,n))&&(delete r[u],l=!0)}}return S.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||li(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return S.forEach(this,(l,o)=>{const i=S.findKey(r,o);if(i){n[i]=Nl(l),delete n[o];return}const u=t?k0(o):String(o).trim();u!==o&&delete n[o],n[u]=Nl(l),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[Ha]=this[Ha]={accessors:{}}).accessors,l=this.prototype;function o(i){const u=rr(i);r[u]||(x0(l,i),r[u]=!0)}return S.isArray(t)?t.forEach(o):o(t),this}}No.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.freezeMethods(No.prototype);S.freezeMethods(No);const ht=No;function oi(e,t){const n=this||ws,r=t||n,l=ht.from(r.headers);let o=r.data;return S.forEach(e,function(u){o=u.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function _d(e){return!!(e&&e.__CANCEL__)}function Wr(e,t,n){M.call(this,e??"canceled",M.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(Wr,M,{__CANCEL__:!0});function C0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const T0=tt.isStandardBrowserEnv?function(){return{write:function(n,r,l,o,i,u){const s=[];s.push(n+"="+encodeURIComponent(r)),S.isNumber(l)&&s.push("expires="+new Date(l).toGMTString()),S.isString(o)&&s.push("path="+o),S.isString(i)&&s.push("domain="+i),u===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function N0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P0(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Rd(e,t){return e&&!N0(t)?P0(e,t):t}const L0=tt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=l(window.location.href),function(i){const u=S.isString(i)?l(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function _0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function R0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const a=Date.now(),c=r[o];i||(i=a),n[l]=s,r[l]=a;let d=o,h=0;for(;d!==l;)h+=n[d++],d=d%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-i<t)return;const y=c&&a-c;return y?Math.round(h*1e3/y):void 0}}function Va(e,t){let n=0;const r=R0(50,250);return l=>{const o=l.loaded,i=l.lengthComputable?l.total:void 0,u=o-n,s=r(u),a=o<=i;n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:u,rate:s||void 0,estimated:s&&i&&a?(i-o)/s:void 0,event:l};c[t?"download":"upload"]=!0,e(c)}}const O0=typeof XMLHttpRequest<"u",F0=O0&&function(e){return new Promise(function(n,r){let l=e.data;const o=ht.from(e.headers).normalize(),i=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}S.isFormData(l)&&(tt.isStandardBrowserEnv||tt.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let a=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+m))}const c=Rd(e.baseURL,e.url);a.open(e.method.toUpperCase(),Nd(c,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function d(){if(!a)return;const y=ht.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),v={data:!i||i==="text"||i==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:y,config:e,request:a};C0(function(p){n(p),s()},function(p){r(p),s()},v),a=null}if("onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(r(new M("Request aborted",M.ECONNABORTED,e,a)),a=null)},a.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Pd;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new M(m,v.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,a)),a=null},tt.isStandardBrowserEnv){const y=(e.withCredentials||L0(c))&&e.xsrfCookieName&&T0.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}l===void 0&&o.setContentType(null),"setRequestHeader"in a&&S.forEach(o.toJSON(),function(m,v){a.setRequestHeader(v,m)}),S.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&i!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Va(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Va(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{a&&(r(!y||y.type?new Wr(null,e,a):y),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const h=_0(c);if(h&&tt.protocols.indexOf(h)===-1){r(new M("Unsupported protocol "+h+":",M.ERR_BAD_REQUEST,e));return}a.send(l||null)})},Pl={http:r0,xhr:F0};S.forEach(Pl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const A0={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let l=0;l<t&&(n=e[l],!(r=S.isString(n)?Pl[n.toLowerCase()]:n));l++);if(!r)throw r===!1?new M(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(S.hasOwnProp(Pl,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!S.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Pl};function ii(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wr(null,e)}function Wa(e){return ii(e),e.headers=ht.from(e.headers),e.data=oi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),A0.getAdapter(e.adapter||ws.adapter)(e).then(function(r){return ii(e),r.data=oi.call(e,e.transformResponse,r),r.headers=ht.from(r.headers),r},function(r){return _d(r)||(ii(e),r&&r.response&&(r.response.data=oi.call(e,e.transformResponse,r.response),r.response.headers=ht.from(r.response.headers))),Promise.reject(r)})}const Qa=e=>e instanceof ht?e.toJSON():e;function Bn(e,t){t=t||{};const n={};function r(a,c,d){return S.isPlainObject(a)&&S.isPlainObject(c)?S.merge.call({caseless:d},a,c):S.isPlainObject(c)?S.merge({},c):S.isArray(c)?c.slice():c}function l(a,c,d){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a,d)}else return r(a,c,d)}function o(a,c){if(!S.isUndefined(c))return r(void 0,c)}function i(a,c){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function u(a,c,d){if(d in t)return r(a,c);if(d in e)return r(void 0,a)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(a,c)=>l(Qa(a),Qa(c),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||l,h=d(e[c],t[c],c);S.isUndefined(h)&&d!==u||(n[c]=h)}),n}const Od="1.4.0",Ss={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ss[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ka={};Ss.transitional=function(t,n,r){function l(o,i){return"[Axios v"+Od+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new M(l(i," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Ka[i]&&(Ka[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function $0(e,t,n){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const u=e[o],s=u===void 0||i(u,o,e);if(s!==!0)throw new M("option "+o+" must be "+s,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+o,M.ERR_BAD_OPTION)}}const pu={assertOptions:$0,validators:Ss},Ct=pu.validators;class eo{constructor(t){this.defaults=t,this.interceptors={request:new Ba,response:new Ba}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bn(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&pu.assertOptions(r,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),l!=null&&(S.isFunction(l)?n.paramsSerializer={serialize:l}:pu.assertOptions(l,{encode:Ct.function,serialize:Ct.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&S.merge(o.common,o[n.method]),i&&S.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ht.concat(i,o);const u=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(s=s&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let c,d=0,h;if(!s){const m=[Wa.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,a),h=m.length,c=Promise.resolve(n);d<h;)c=c.then(m[d++],m[d++]);return c}h=u.length;let y=n;for(d=0;d<h;){const m=u[d++],v=u[d++];try{y=m(y)}catch(P){v.call(this,P);break}}try{c=Wa.call(this,y)}catch(m){return Promise.reject(m)}for(d=0,h=a.length;d<h;)c=c.then(a[d++],a[d++]);return c}getUri(t){t=Bn(this.defaults,t);const n=Rd(t.baseURL,t.url);return Nd(n,t.params,t.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(t){eo.prototype[t]=function(n,r){return this.request(Bn(r||{},{method:t,url:n,data:(r||{}).data}))}});S.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,u){return this.request(Bn(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}eo.prototype[t]=n(),eo.prototype[t+"Form"]=n(!0)});const Ll=eo;class Es{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(l=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new Wr(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Es(function(l){t=l}),cancel:t}}}const D0=Es;function M0(e){return function(n){return e.apply(null,n)}}function z0(e){return S.isObject(e)&&e.isAxiosError===!0}const mu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mu).forEach(([e,t])=>{mu[t]=e});const j0=mu;function Fd(e){const t=new Ll(e),n=md(Ll.prototype.request,t);return S.extend(n,Ll.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Fd(Bn(e,l))},n}const oe=Fd(ws);oe.Axios=Ll;oe.CanceledError=Wr;oe.CancelToken=D0;oe.isCancel=_d;oe.VERSION=Od;oe.toFormData=Co;oe.AxiosError=M;oe.Cancel=oe.CanceledError;oe.all=function(t){return Promise.all(t)};oe.spread=M0;oe.isAxiosError=z0;oe.mergeConfig=Bn;oe.AxiosHeaders=ht;oe.formToJSON=e=>Ld(S.isHTMLForm(e)?new FormData(e):e);oe.HttpStatusCode=j0;oe.default=oe;const U0=oe;var I0=Object.defineProperty,B0=(e,t,n)=>t in e?I0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ui=(e,t,n)=>(B0(e,typeof t!="symbol"?t+"":t,n),n);let H0=class{constructor(){ui(this,"current",this.detect()),ui(this,"handoffState","pending"),ui(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},gt=new H0,ot=(e,t)=>{gt.isServer?w.useEffect(e,t):w.useLayoutEffect(e,t)};function vt(e){let t=w.useRef(e);return ot(()=>{t.current=e},[e]),t}function Qr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Kn(){let e=[],t={addEventListener(n,r,l,o){return n.addEventListener(r,l,o),t.add(()=>n.removeEventListener(r,l,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Qr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,l){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:l}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=Kn();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let l of e.splice(r,1))l()}},dispose(){for(let n of e.splice(0))n()}};return t}function ks(){let[e]=w.useState(Kn);return w.useEffect(()=>()=>e.dispose(),[e]),e}let ue=function(e){let t=vt(e);return D.useCallback((...n)=>t.current(...n),[t])};function Gn(){let[e,t]=w.useState(gt.isHandoffComplete);return e&&gt.isHandoffComplete===!1&&t(!1),w.useEffect(()=>{e!==!0&&t(!0)},[e]),w.useEffect(()=>gt.handoff(),[]),e}var Ga;let Yn=(Ga=D.useId)!=null?Ga:function(){let e=Gn(),[t,n]=D.useState(e?()=>gt.nextId():null);return ot(()=>{t===null&&n(gt.nextId())},[t]),t!=null?""+t:void 0};function he(e,t,...n){if(e in t){let l=t[e];return typeof l=="function"?l(...n):l}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(l=>`"${l}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,he),r}function Ad(e){return gt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let hu=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var bt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(bt||{}),$d=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))($d||{}),V0=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(V0||{});function W0(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(hu)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Dd=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Dd||{});function Q0(e,t=0){var n;return e===((n=Ad(e))==null?void 0:n.body)?!1:he(t,{[0](){return e.matches(hu)},[1](){let r=e;for(;r!==null;){if(r.matches(hu))return!0;r=r.parentElement}return!1}})}var K0=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(K0||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ln(e){e==null||e.focus({preventScroll:!0})}let G0=["textarea","input"].join(",");function Y0(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,G0))!=null?n:!1}function X0(e,t=n=>n){return e.slice().sort((n,r)=>{let l=t(n),o=t(r);if(l===null||o===null)return 0;let i=l.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _l(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:l=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?n?X0(e):e:W0(e);l.length>0&&i.length>1&&(i=i.filter(y=>!l.includes(y))),r=r??o.activeElement;let u=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(r))-1;if(t&4)return Math.max(0,i.indexOf(r))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=t&32?{preventScroll:!0}:{},c=0,d=i.length,h;do{if(c>=d||c+d<=0)return 0;let y=s+c;if(t&16)y=(y+d)%d;else{if(y<0)return 3;if(y>=d)return 1}h=i[y],h==null||h.focus(a),c+=u}while(h!==o.activeElement);return t&6&&Y0(h)&&h.select(),2}function si(e,t,n){let r=vt(t);w.useEffect(()=>{function l(o){r.current(o)}return document.addEventListener(e,l,n),()=>document.removeEventListener(e,l,n)},[e,n])}function q0(e,t,n=!0){let r=w.useRef(!1);w.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function l(i,u){if(!r.current||i.defaultPrevented)return;let s=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e),a=u(i);if(a!==null&&a.getRootNode().contains(a)){for(let c of s){if(c===null)continue;let d=c instanceof HTMLElement?c:c.current;if(d!=null&&d.contains(a)||i.composed&&i.composedPath().includes(d))return}return!Q0(a,Dd.Loose)&&a.tabIndex!==-1&&i.preventDefault(),t(i,a)}}let o=w.useRef(null);si("mousedown",i=>{var u,s;r.current&&(o.current=((s=(u=i.composedPath)==null?void 0:u.call(i))==null?void 0:s[0])||i.target)},!0),si("click",i=>{o.current&&(l(i,()=>o.current),o.current=null)},!0),si("blur",i=>l(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}let Md=Symbol();function b0(e,t=!0){return Object.assign(e,{[Md]:t})}function be(...e){let t=w.useRef(e);w.useEffect(()=>{t.current=e},[e]);let n=ue(r=>{for(let l of t.current)l!=null&&(typeof l=="function"?l(r):l.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Md]))?void 0:n}function gu(...e){return e.filter(Boolean).join(" ")}var to=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(to||{}),pt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pt||{});function Be({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:l,visible:o=!0,name:i}){let u=zd(t,e);if(o)return dl(u,n,r,i);let s=l??0;if(s&2){let{static:a=!1,...c}=u;if(a)return dl(c,n,r,i)}if(s&1){let{unmount:a=!0,...c}=u;return he(a?0:1,{[0](){return null},[1](){return dl({...c,hidden:!0,style:{display:"none"}},n,r,i)}})}return dl(u,n,r,i)}function dl(e,t={},n,r){let{as:l=n,children:o,refName:i="ref",...u}=ai(e,["unmount","static"]),s=e.ref!==void 0?{[i]:e.ref}:{},a=typeof o=="function"?o(t):o;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let c={};if(t){let d=!1,h=[];for(let[y,m]of Object.entries(t))typeof m=="boolean"&&(d=!0),m===!0&&h.push(y);d&&(c["data-headlessui-state"]=h.join(" "))}if(l===w.Fragment&&Object.keys(Ya(u)).length>0){if(!w.isValidElement(a)||Array.isArray(a)&&a.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(m=>` - ${m}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(`
`)].join(`
`));let d=a.props,h=typeof(d==null?void 0:d.className)=="function"?(...m)=>gu(d==null?void 0:d.className(...m),u.className):gu(d==null?void 0:d.className,u.className),y=h?{className:h}:{};return w.cloneElement(a,Object.assign({},zd(a.props,Ya(ai(u,["ref"]))),c,s,J0(a.ref,s.ref),y))}return w.createElement(l,Object.assign({},ai(u,["ref"]),l!==w.Fragment&&s,l!==w.Fragment&&c),a)}function J0(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function zd(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let l in r)l.startsWith("on")&&typeof r[l]=="function"?(n[l]!=null||(n[l]=[]),n[l].push(r[l])):t[l]=r[l];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](l,...o){let i=n[r];for(let u of i){if((l instanceof Event||(l==null?void 0:l.nativeEvent)instanceof Event)&&l.defaultPrevented)return;u(l,...o)}}});return t}function Ae(e){var t;return Object.assign(w.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Ya(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ai(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Z0(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&e1(n)?!1:r}function e1(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let t1="div";var no=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(no||{});function n1(e,t){let{features:n=1,...r}=e,l={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Be({ourProps:l,theirProps:r,slot:{},defaultTag:t1,name:"Hidden"})}let vu=Ae(n1),xs=w.createContext(null);xs.displayName="OpenClosedContext";var Pe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pe||{});function Cs(){return w.useContext(xs)}function r1({value:e,children:t}){return D.createElement(xs.Provider,{value:e},t)}var jd=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(jd||{});function Ts(e,t){let n=w.useRef([]),r=ue(e);w.useEffect(()=>{let l=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let u=r(t,l);return n.current=t,u}},[r,...t])}function l1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o1(e,t,n){let r=vt(t);w.useEffect(()=>{function l(o){r.current(o)}return window.addEventListener(e,l,n),()=>window.removeEventListener(e,l,n)},[e,n])}var cr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(cr||{});function i1(){let e=w.useRef(0);return o1("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Kr(){let e=w.useRef(!1);return ot(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Po(...e){return w.useMemo(()=>Ad(...e),[...e])}function Ud(e,t,n,r){let l=vt(n);w.useEffect(()=>{e=e??window;function o(i){l.current(i)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function u1(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function Id(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let s1="div";var Bd=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Bd||{});function a1(e,t){let n=w.useRef(null),r=be(n,t),{initialFocus:l,containers:o,features:i=30,...u}=e;Gn()||(i=1);let s=Po(n);d1({ownerDocument:s},!!(i&16));let a=p1({ownerDocument:s,container:n,initialFocus:l},!!(i&2));m1({ownerDocument:s,container:n,containers:o,previousActiveElement:a},!!(i&8));let c=i1(),d=ue(v=>{let P=n.current;P&&(p=>p())(()=>{he(c.current,{[cr.Forwards]:()=>{_l(P,bt.First,{skipElements:[v.relatedTarget]})},[cr.Backwards]:()=>{_l(P,bt.Last,{skipElements:[v.relatedTarget]})}})})}),h=ks(),y=w.useRef(!1),m={ref:r,onKeyDown(v){v.key=="Tab"&&(y.current=!0,h.requestAnimationFrame(()=>{y.current=!1}))},onBlur(v){let P=Id(o);n.current instanceof HTMLElement&&P.add(n.current);let p=v.relatedTarget;p instanceof HTMLElement&&p.dataset.headlessuiFocusGuard!=="true"&&(Hd(P,p)||(y.current?_l(n.current,he(c.current,{[cr.Forwards]:()=>bt.Next,[cr.Backwards]:()=>bt.Previous})|bt.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&ln(v.target)))}};return D.createElement(D.Fragment,null,!!(i&4)&&D.createElement(vu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:no.Focusable}),Be({ourProps:m,theirProps:u,defaultTag:s1,name:"FocusTrap"}),!!(i&4)&&D.createElement(vu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:no.Focusable}))}let c1=Ae(a1),lr=Object.assign(c1,{features:Bd}),_t=[];u1(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&_t[0]!==t.target&&(_t.unshift(t.target),_t=_t.filter(n=>n!=null&&n.isConnected),_t.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function f1(e=!0){let t=w.useRef(_t.slice());return Ts(([n],[r])=>{r===!0&&n===!1&&Qr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=_t.slice())},[e,_t,t]),ue(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function d1({ownerDocument:e},t){let n=f1(t);Ts(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&ln(n())},[t]);let r=w.useRef(!1);w.useEffect(()=>(r.current=!1,()=>{r.current=!0,Qr(()=>{r.current&&ln(n())})}),[])}function p1({ownerDocument:e,container:t,initialFocus:n},r){let l=w.useRef(null),o=Kr();return Ts(()=>{if(!r)return;let i=t.current;i&&Qr(()=>{if(!o.current)return;let u=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===u){l.current=u;return}}else if(i.contains(u)){l.current=u;return}n!=null&&n.current?ln(n.current):_l(i,bt.First)===$d.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.current=e==null?void 0:e.activeElement})},[r]),l}function m1({ownerDocument:e,container:t,containers:n,previousActiveElement:r},l){let o=Kr();Ud(e==null?void 0:e.defaultView,"focus",i=>{if(!l||!o.current)return;let u=Id(n);t.current instanceof HTMLElement&&u.add(t.current);let s=r.current;if(!s)return;let a=i.target;a&&a instanceof HTMLElement?Hd(u,a)?(r.current=a,ln(a)):(i.preventDefault(),i.stopPropagation(),ln(s)):ln(r.current)},!0)}function Hd(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Vd=w.createContext(!1);function h1(){return w.useContext(Vd)}function yu(e){return D.createElement(Vd.Provider,{value:e.force},e.children)}function g1(e){let t=h1(),n=w.useContext(Wd),r=Po(e),[l,o]=w.useState(()=>{if(!t&&n!==null||gt.isServer)return null;let i=r==null?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(r===null)return null;let u=r.createElement("div");return u.setAttribute("id","headlessui-portal-root"),r.body.appendChild(u)});return w.useEffect(()=>{l!==null&&(r!=null&&r.body.contains(l)||r==null||r.body.appendChild(l))},[l,r]),w.useEffect(()=>{t||n!==null&&o(n.current)},[n,o,t]),l}let v1=w.Fragment;function y1(e,t){let n=e,r=w.useRef(null),l=be(b0(c=>{r.current=c}),t),o=Po(r),i=g1(r),[u]=w.useState(()=>{var c;return gt.isServer?null:(c=o==null?void 0:o.createElement("div"))!=null?c:null}),s=Gn(),a=w.useRef(!1);return ot(()=>{if(a.current=!1,!(!i||!u))return i.contains(u)||(u.setAttribute("data-headlessui-portal",""),i.appendChild(u)),()=>{a.current=!0,Qr(()=>{var c;a.current&&(!i||!u||(u instanceof Node&&i.contains(u)&&i.removeChild(u),i.childNodes.length<=0&&((c=i.parentElement)==null||c.removeChild(i))))})}},[i,u]),s?!i||!u?null:pd.createPortal(Be({ourProps:{ref:l},theirProps:n,defaultTag:v1,name:"Portal"}),u):null}let w1=w.Fragment,Wd=w.createContext(null);function S1(e,t){let{target:n,...r}=e,l={ref:be(t)};return D.createElement(Wd.Provider,{value:n},Be({ourProps:l,theirProps:r,defaultTag:w1,name:"Popover.Group"}))}let E1=Ae(y1),k1=Ae(S1),wu=Object.assign(E1,{Group:k1}),Qd=w.createContext(null);function Kd(){let e=w.useContext(Qd);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Kd),t}return e}function x1(){let[e,t]=w.useState([]);return[e.length>0?e.join(" "):void 0,w.useMemo(()=>function(n){let r=ue(o=>(t(i=>[...i,o]),()=>t(i=>{let u=i.slice(),s=u.indexOf(o);return s!==-1&&u.splice(s,1),u}))),l=w.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return D.createElement(Qd.Provider,{value:l},n.children)},[t])]}let C1="p";function T1(e,t){let n=Yn(),{id:r=`headlessui-description-${n}`,...l}=e,o=Kd(),i=be(t);ot(()=>o.register(r),[r,o.register]);let u={ref:i,...o.props,id:r};return Be({ourProps:u,theirProps:l,slot:o.slot||{},defaultTag:C1,name:o.name||"Description"})}let N1=Ae(T1),P1=Object.assign(N1,{}),Ns=w.createContext(()=>{});Ns.displayName="StackContext";var Su=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Su||{});function L1(){return w.useContext(Ns)}function _1({children:e,onUpdate:t,type:n,element:r,enabled:l}){let o=L1(),i=ue((...u)=>{t==null||t(...u),o(...u)});return ot(()=>{let u=l===void 0||l===!0;return u&&i(0,n,r),()=>{u&&i(1,n,r)}},[i,n,r,l]),D.createElement(Ns.Provider,{value:i},e)}function R1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const O1=typeof Object.is=="function"?Object.is:R1,{useState:F1,useEffect:A1,useLayoutEffect:$1,useDebugValue:D1}=vi;function M1(e,t,n){const r=t(),[{inst:l},o]=F1({inst:{value:r,getSnapshot:t}});return $1(()=>{l.value=r,l.getSnapshot=t,ci(l)&&o({inst:l})},[e,r,t]),A1(()=>(ci(l)&&o({inst:l}),e(()=>{ci(l)&&o({inst:l})})),[e]),D1(r),r}function ci(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!O1(n,r)}catch{return!0}}function z1(e,t,n){return t()}const j1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",U1=!j1,I1=U1?z1:M1,B1="useSyncExternalStore"in vi?(e=>e.useSyncExternalStore)(vi):I1;function H1(e){return B1(e.subscribe,e.getSnapshot,e.getSnapshot)}function V1(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(l){return r.add(l),()=>r.delete(l)},dispatch(l,...o){let i=t[l].call(n,...o);i&&(n=i,r.forEach(u=>u()))}}}function W1(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,l=r.clientWidth-r.offsetWidth,o=e-l;n.style(r,"paddingRight",`${o}px`)}}}function Q1(){if(!l1())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function l(i){return r.containers.flatMap(u=>u()).some(u=>u.contains(i))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let o=null;n.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{let u=i.target.closest("a");if(!u)return;let{hash:s}=new URL(u.href),a=t.querySelector(s);a&&!l(a)&&(o=a)}catch{}},!0),n.addEventListener(t,"touchmove",i=>{i.target instanceof HTMLElement&&!l(i.target)&&i.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})}}}function K1(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function G1(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let tn=V1(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Kn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:G1(n)},l=[Q1(),W1(),K1()];l.forEach(({before:o})=>o==null?void 0:o(r)),l.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});tn.subscribe(()=>{let e=tn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",l=n.count!==0;(l&&!r||!l&&r)&&tn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&tn.dispatch("TEARDOWN",n)}});function Y1(e,t,n){let r=H1(tn),l=e?r.get(e):void 0,o=l?l.count>0:!1;return ot(()=>{if(!(!e||!t))return tn.dispatch("PUSH",e,n),()=>tn.dispatch("POP",e,n)},[t,e]),o}let fi=new Map,or=new Map;function Xa(e,t=!0){ot(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function l(){var i;if(!r)return;let u=(i=or.get(r))!=null?i:1;if(u===1?or.delete(r):or.set(r,u-1),u!==1)return;let s=fi.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,fi.delete(r))}let o=(n=or.get(r))!=null?n:0;return or.set(r,o+1),o!==0||(fi.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),l},[e,t])}var X1=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X1||{}),q1=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(q1||{});let b1={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ro=w.createContext(null);ro.displayName="DialogContext";function Gr(e){let t=w.useContext(ro);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gr),n}return t}function J1(e,t,n=()=>[document.body]){Y1(e,t,r=>{var l;return{containers:[...(l=r.containers)!=null?l:[],n]}})}function Z1(e,t){return he(t.type,b1,e,t)}let eg="div",tg=to.RenderStrategy|to.Static;function ng(e,t){let n=Yn(),{id:r=`headlessui-dialog-${n}`,open:l,onClose:o,initialFocus:i,__demoMode:u=!1,...s}=e,[a,c]=w.useState(0),d=Cs();l===void 0&&d!==null&&(l=(d&Pe.Open)===Pe.Open);let h=w.useRef(null),y=be(h,t),m=w.useRef(null),v=Po(h),P=e.hasOwnProperty("open")||d!==null,p=e.hasOwnProperty("onClose");if(!P&&!p)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!P)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!p)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof l!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l}`);if(typeof o!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let f=l?0:1,[g,E]=w.useReducer(Z1,{titleId:null,descriptionId:null,panelRef:w.createRef()}),C=ue(()=>o(!1)),L=ue(K=>E({type:0,id:K})),T=Gn()?u?!1:f===0:!1,_=a>1,U=w.useContext(ro)!==null,O=_?"parent":"leaf",V=d!==null?(d&Pe.Closing)===Pe.Closing:!1,He=(()=>U||V?!1:T)(),Ve=w.useCallback(()=>{var K,te;return(te=Array.from((K=v==null?void 0:v.querySelectorAll("body > *"))!=null?K:[]).find(Y=>Y.id==="headlessui-portal-root"?!1:Y.contains(m.current)&&Y instanceof HTMLElement))!=null?te:null},[m]);Xa(Ve,He);let mn=(()=>_?!0:T)(),it=w.useCallback(()=>{var K,te;return(te=Array.from((K=v==null?void 0:v.querySelectorAll("[data-headlessui-portal]"))!=null?K:[]).find(Y=>Y.contains(m.current)&&Y instanceof HTMLElement))!=null?te:null},[m]);Xa(it,mn);let ut=ue(()=>{var K,te;return[...Array.from((K=v==null?void 0:v.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))!=null?K:[]).filter(Y=>!(Y===document.body||Y===document.head||!(Y instanceof HTMLElement)||Y.contains(m.current)||g.panelRef.current&&Y.contains(g.panelRef.current))),(te=g.panelRef.current)!=null?te:h.current]}),Kt=(()=>!(!T||_))();q0(()=>ut(),C,Kt);let N=(()=>!(_||f!==0))();Ud(v==null?void 0:v.defaultView,"keydown",K=>{N&&(K.defaultPrevented||K.key===jd.Escape&&(K.preventDefault(),K.stopPropagation(),C()))});let F=(()=>!(V||f!==0||U))();J1(v,F,ut),w.useEffect(()=>{if(f!==0||!h.current)return;let K=new ResizeObserver(te=>{for(let Y of te){let Yr=Y.target.getBoundingClientRect();Yr.x===0&&Yr.y===0&&Yr.width===0&&Yr.height===0&&C()}});return K.observe(h.current),()=>K.disconnect()},[f,h,C]);let[A,j]=x1(),ee=w.useMemo(()=>[{dialogState:f,close:C,setTitleId:L},g],[f,g,C,L]),Gt=w.useMemo(()=>({open:f===0}),[f]),st={ref:y,id:r,role:"dialog","aria-modal":f===0?!0:void 0,"aria-labelledby":g.titleId,"aria-describedby":A};return D.createElement(_1,{type:"Dialog",enabled:f===0,element:h,onUpdate:ue((K,te)=>{te==="Dialog"&&he(K,{[Su.Add]:()=>c(Y=>Y+1),[Su.Remove]:()=>c(Y=>Y-1)})})},D.createElement(yu,{force:!0},D.createElement(wu,null,D.createElement(ro.Provider,{value:ee},D.createElement(wu.Group,{target:h},D.createElement(yu,{force:!1},D.createElement(j,{slot:Gt,name:"Dialog.Description"},D.createElement(lr,{initialFocus:i,containers:ut,features:T?he(O,{parent:lr.features.RestoreFocus,leaf:lr.features.All&~lr.features.FocusLock}):lr.features.None},Be({ourProps:st,theirProps:s,slot:Gt,defaultTag:eg,features:tg,visible:f===0,name:"Dialog"})))))))),D.createElement(vu,{features:no.Hidden,ref:m}))}let rg="div";function lg(e,t){let n=Yn(),{id:r=`headlessui-dialog-overlay-${n}`,...l}=e,[{dialogState:o,close:i}]=Gr("Dialog.Overlay"),u=be(t),s=ue(c=>{if(c.target===c.currentTarget){if(Z0(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),i()}}),a=w.useMemo(()=>({open:o===0}),[o]);return Be({ourProps:{ref:u,id:r,"aria-hidden":!0,onClick:s},theirProps:l,slot:a,defaultTag:rg,name:"Dialog.Overlay"})}let og="div";function ig(e,t){let n=Yn(),{id:r=`headlessui-dialog-backdrop-${n}`,...l}=e,[{dialogState:o},i]=Gr("Dialog.Backdrop"),u=be(t);w.useEffect(()=>{if(i.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[i.panelRef]);let s=w.useMemo(()=>({open:o===0}),[o]);return D.createElement(yu,{force:!0},D.createElement(wu,null,Be({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:l,slot:s,defaultTag:og,name:"Dialog.Backdrop"})))}let ug="div";function sg(e,t){let n=Yn(),{id:r=`headlessui-dialog-panel-${n}`,...l}=e,[{dialogState:o},i]=Gr("Dialog.Panel"),u=be(t,i.panelRef),s=w.useMemo(()=>({open:o===0}),[o]),a=ue(c=>{c.stopPropagation()});return Be({ourProps:{ref:u,id:r,onClick:a},theirProps:l,slot:s,defaultTag:ug,name:"Dialog.Panel"})}let ag="h2";function cg(e,t){let n=Yn(),{id:r=`headlessui-dialog-title-${n}`,...l}=e,[{dialogState:o,setTitleId:i}]=Gr("Dialog.Title"),u=be(t);w.useEffect(()=>(i(r),()=>i(null)),[r,i]);let s=w.useMemo(()=>({open:o===0}),[o]);return Be({ourProps:{ref:u,id:r},theirProps:l,slot:s,defaultTag:ag,name:"Dialog.Title"})}let fg=Ae(ng),dg=Ae(ig),pg=Ae(sg),mg=Ae(lg),hg=Ae(cg),di=Object.assign(fg,{Backdrop:dg,Panel:pg,Overlay:mg,Title:hg,Description:P1});function gg(e=0){let[t,n]=w.useState(e),r=Kr(),l=w.useCallback(s=>{r.current&&n(a=>a|s)},[t,r]),o=w.useCallback(s=>!!(t&s),[t]),i=w.useCallback(s=>{r.current&&n(a=>a&~s)},[n,r]),u=w.useCallback(s=>{r.current&&n(a=>a^s)},[n]);return{flags:t,addFlag:l,hasFlag:o,removeFlag:i,toggleFlag:u}}function vg(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function pi(e,...t){e&&t.length>0&&e.classList.add(...t)}function mi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function yg(e,t){let n=Kn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:l}=getComputedStyle(e),[o,i]=[r,l].map(s=>{let[a=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return a}),u=o+i;if(u!==0){n.group(a=>{a.setTimeout(()=>{t(),a.dispose()},u),a.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&a.dispose()})});let s=n.addEventListener(e,"transitionend",a=>{a.target===a.currentTarget&&(t(),s())})}else t();return n.add(()=>t()),n.dispose}function wg(e,t,n,r){let l=n?"enter":"leave",o=Kn(),i=r!==void 0?vg(r):()=>{};l==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let u=he(l,{enter:()=>t.enter,leave:()=>t.leave}),s=he(l,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),a=he(l,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return mi(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),pi(e,...u,...a),o.nextFrame(()=>{mi(e,...a),pi(e,...s),yg(e,()=>(mi(e,...u),pi(e,...t.entered),i()))}),o.dispose}function Sg({container:e,direction:t,classes:n,onStart:r,onStop:l}){let o=Kr(),i=ks(),u=vt(t);ot(()=>{let s=Kn();i.add(s.dispose);let a=e.current;if(a&&u.current!=="idle"&&o.current)return s.dispose(),r.current(u.current),s.add(wg(a,n.current,u.current==="enter",()=>{s.dispose(),l.current(u.current)})),s.dispose},[t])}function Yt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Lo=w.createContext(null);Lo.displayName="TransitionContext";var Eg=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Eg||{});function kg(){let e=w.useContext(Lo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function xg(){let e=w.useContext(_o);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let _o=w.createContext(null);_o.displayName="NestingContext";function Ro(e){return"children"in e?Ro(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Gd(e,t){let n=vt(e),r=w.useRef([]),l=Kr(),o=ks(),i=ue((y,m=pt.Hidden)=>{let v=r.current.findIndex(({el:P})=>P===y);v!==-1&&(he(m,{[pt.Unmount](){r.current.splice(v,1)},[pt.Hidden](){r.current[v].state="hidden"}}),o.microTask(()=>{var P;!Ro(r)&&l.current&&((P=n.current)==null||P.call(n))}))}),u=ue(y=>{let m=r.current.find(({el:v})=>v===y);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:y,state:"visible"}),()=>i(y,pt.Unmount)}),s=w.useRef([]),a=w.useRef(Promise.resolve()),c=w.useRef({enter:[],leave:[],idle:[]}),d=ue((y,m,v)=>{s.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([P])=>P!==y)),t==null||t.chains.current[m].push([y,new Promise(P=>{s.current.push(P)})]),t==null||t.chains.current[m].push([y,new Promise(P=>{Promise.all(c.current[m].map(([p,f])=>f)).then(()=>P())})]),m==="enter"?a.current=a.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(m)):v(m)}),h=ue((y,m,v)=>{Promise.all(c.current[m].splice(0).map(([P,p])=>p)).then(()=>{var P;(P=s.current.shift())==null||P()}).then(()=>v(m))});return w.useMemo(()=>({children:r,register:u,unregister:i,onStart:d,onStop:h,wait:a,chains:c}),[u,i,r,d,h,c,a])}function Cg(){}let Tg=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function qa(e){var t;let n={};for(let r of Tg)n[r]=(t=e[r])!=null?t:Cg;return n}function Ng(e){let t=w.useRef(qa(e));return w.useEffect(()=>{t.current=qa(e)},[e]),t}let Pg="div",Yd=to.RenderStrategy;function Lg(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:l,afterLeave:o,enter:i,enterFrom:u,enterTo:s,entered:a,leave:c,leaveFrom:d,leaveTo:h,...y}=e,m=w.useRef(null),v=be(m,t),P=y.unmount?pt.Unmount:pt.Hidden,{show:p,appear:f,initial:g}=kg(),[E,C]=w.useState(p?"visible":"hidden"),L=xg(),{register:T,unregister:_}=L,U=w.useRef(null);w.useEffect(()=>T(m),[T,m]),w.useEffect(()=>{if(P===pt.Hidden&&m.current){if(p&&E!=="visible"){C("visible");return}return he(E,{hidden:()=>_(m),visible:()=>T(m)})}},[E,m,T,_,p,P]);let O=vt({enter:Yt(i),enterFrom:Yt(u),enterTo:Yt(s),entered:Yt(a),leave:Yt(c),leaveFrom:Yt(d),leaveTo:Yt(h)}),V=Ng({beforeEnter:n,afterEnter:r,beforeLeave:l,afterLeave:o}),He=Gn();w.useEffect(()=>{if(He&&E==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,E,He]);let Ve=g&&!f,mn=(()=>!He||Ve||U.current===p?"idle":p?"enter":"leave")(),it=gg(0),ut=ue(j=>he(j,{enter:()=>{it.addFlag(Pe.Opening),V.current.beforeEnter()},leave:()=>{it.addFlag(Pe.Closing),V.current.beforeLeave()},idle:()=>{}})),Kt=ue(j=>he(j,{enter:()=>{it.removeFlag(Pe.Opening),V.current.afterEnter()},leave:()=>{it.removeFlag(Pe.Closing),V.current.afterLeave()},idle:()=>{}})),N=Gd(()=>{C("hidden"),_(m)},L);Sg({container:m,classes:O,direction:mn,onStart:vt(j=>{N.onStart(m,j,ut)}),onStop:vt(j=>{N.onStop(m,j,Kt),j==="leave"&&!Ro(N)&&(C("hidden"),_(m))})}),w.useEffect(()=>{Ve&&(P===pt.Hidden?U.current=null:U.current=p)},[p,Ve,E]);let F=y,A={ref:v};return f&&p&&(F={...F,className:gu(y.className,...O.current.enter,...O.current.enterFrom)}),D.createElement(_o.Provider,{value:N},D.createElement(r1,{value:he(E,{visible:Pe.Open,hidden:Pe.Closed})|it.flags},Be({ourProps:A,theirProps:F,defaultTag:Pg,features:Yd,visible:E==="visible",name:"Transition.Child"})))}function _g(e,t){let{show:n,appear:r=!1,unmount:l,...o}=e,i=w.useRef(null),u=be(i,t);Gn();let s=Cs();if(n===void 0&&s!==null&&(n=(s&Pe.Open)===Pe.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[a,c]=w.useState(n?"visible":"hidden"),d=Gd(()=>{c("hidden")}),[h,y]=w.useState(!0),m=w.useRef([n]);ot(()=>{h!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),y(!1))},[m,n]);let v=w.useMemo(()=>({show:n,appear:r,initial:h}),[n,r,h]);w.useEffect(()=>{if(n)c("visible");else if(!Ro(d))c("hidden");else{let p=i.current;if(!p)return;let f=p.getBoundingClientRect();f.x===0&&f.y===0&&f.width===0&&f.height===0&&c("hidden")}},[n,d]);let P={unmount:l};return D.createElement(_o.Provider,{value:d},D.createElement(Lo.Provider,{value:v},Be({ourProps:{...P,as:w.Fragment,children:D.createElement(Xd,{ref:u,...P,...o})},theirProps:{},defaultTag:w.Fragment,features:Yd,visible:a==="visible",name:"Transition"})))}function Rg(e,t){let n=w.useContext(Lo)!==null,r=Cs()!==null;return D.createElement(D.Fragment,null,!n&&r?D.createElement(Eu,{ref:t,...e}):D.createElement(Xd,{ref:t,...e}))}let Eu=Ae(_g),Xd=Ae(Lg),Og=Ae(Rg),hi=Object.assign(Eu,{Child:Og,Root:Eu});function qd({show:e,onClose:t,onSubmit:n,title:r,content:l,submitText:o}){return x(hi,{appear:!0,show:e,as:w.Fragment,children:B(di,{as:"div",className:"relative z-10",onClose:t,children:[x(hi.Child,{as:w.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:x("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),x("div",{className:"fixed inset-0 overflow-y-auto",children:x("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:x(hi.Child,{as:w.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:B(di.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all",children:[x(di.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900",children:r}),x("div",{className:"mt-3 text-sm text-gray-500",children:l}),B("div",{className:"mt-4 flex flex-row-reverse",children:[o&&x("button",{type:"button",className:"inline-flex ml-4 justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-indigo-100 hover:bg-indigo-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-300",onClick:n,children:o}),x("button",{type:"button",className:"inline-flex justify-center rounded-md border border-transparent bg-indigo-100 px-4 py-2 text-sm font-medium text-indigo-900 hover:bg-indigo-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-300",onClick:t,children:"Close"})]})]})})})})]})})}function Fg(e){return x("div",{children:x("input",{...e,type:"url",className:"my-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"www.example.com",required:!0})})}function Ag(e){const t=w.useRef(null),n=w.useRef(null);return w.useEffect(()=>{t.current&&n.current&&(n.current.src=e.audioUrl,t.current.load())},[e.audioUrl]),x("div",{className:"flex relative z-10 p-4 w-full",children:x("audio",{ref:t,controls:!0,className:"w-full h-14 rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:x("source",{ref:n,type:"audio/wav"})})})}function $g(e){const{isModelLoading:t,isTranscribing:n,onClick:r,...l}=e;return x("button",{...l,onClick:o=>{r&&!n&&!t&&r(o)},disabled:n,className:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 inline-flex items-center",children:t?x(ba,{text:"Loading model..."}):n?x(ba,{text:"Transcribing..."}):"Transcribe Audio"})}function ba(e){return B("div",{role:"status",children:[B("svg",{"aria-hidden":"true",role:"status",className:"inline w-4 h-4 mr-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),x("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),e.text]})}const Rt={SAMPLING_RATE:16e3,DEFAULT_AUDIO_URL:"https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/ted_60.wav",DEFAULT_MODEL:"tiny",DEFAULT_SUBTASK:"transcribe",DEFAULT_LANGUAGE:"auto",DEFAULT_QUANTIZED:!1,DEFAULT_MULTILINGUAL:!1};function Dg({text:e,percentage:t}){return t=t??0,x("div",{className:"mt-0.5 w-full relative text-sm text-white background-bg-cyan-400 bg-gray-200 border-1 border-gray-400 rounded-lg text-left overflow-hidden",children:B("div",{className:"top-0 h-full bg-blue-500 whitespace-nowrap px-2",style:{width:`${t}%`},children:[e," (",`${t.toFixed(2)}%`,")"]})})}function Mg(e){return e=e.toLowerCase(),(e.match(/\w+.?/g)||[]).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}const Ja={en:"english",zh:"chinese",de:"german",es:"spanish/castilian",ru:"russian",ko:"korean",fr:"french",ja:"japanese",pt:"portuguese",tr:"turkish",pl:"polish",ca:"catalan/valencian",nl:"dutch/flemish",ar:"arabic",sv:"swedish",it:"italian",id:"indonesian",hi:"hindi",fi:"finnish",vi:"vietnamese",he:"hebrew",uk:"ukrainian",el:"greek",ms:"malay",cs:"czech",ro:"romanian/moldavian/moldovan",da:"danish",hu:"hungarian",ta:"tamil",no:"norwegian",th:"thai",ur:"urdu",hr:"croatian",bg:"bulgarian",lt:"lithuanian",la:"latin",mi:"maori",ml:"malayalam",cy:"welsh",sk:"slovak",te:"telugu",fa:"persian",lv:"latvian",bn:"bengali",sr:"serbian",az:"azerbaijani",sl:"slovenian",kn:"kannada",et:"estonian",mk:"macedonian",br:"breton",eu:"basque",is:"icelandic",hy:"armenian",ne:"nepali",mn:"mongolian",bs:"bosnian",kk:"kazakh",sq:"albanian",sw:"swahili",gl:"galician",mr:"marathi",pa:"punjabi/panjabi",si:"sinhala/sinhalese",km:"khmer",sn:"shona",yo:"yoruba",so:"somali",af:"afrikaans",oc:"occitan",ka:"georgian",be:"belarusian",tg:"tajik",sd:"sindhi",gu:"gujarati",am:"amharic",yi:"yiddish",lo:"lao",uz:"uzbek",fo:"faroese",ht:"haitian creole/haitian",ps:"pashto/pushto",tk:"turkmen",nn:"nynorsk",mt:"maltese",sa:"sanskrit",lb:"luxembourgish/letzeburgesch",my:"myanmar/burmese",bo:"tibetan",tl:"tagalog",mg:"malagasy",as:"assamese",tt:"tatar",haw:"hawaiian",ln:"lingala",ha:"hausa",ba:"bashkir",jw:"javanese",su:"sundanese"};function zg(e){const[t,n]=w.useState(void 0),[r,l]=w.useState(void 0),[o,i]=w.useState(void 0),u=t!==void 0,s=async c=>{const d=new AudioContext({sampleRate:Rt.SAMPLING_RATE}),h=URL.createObjectURL(new Blob([c],{type:"audio/*"})),y=await d.decodeAudioData(c);l({buffer:y,url:h,source:"URL"})},a=async c=>{if(o)try{l(void 0),n(0);const{data:d}=await U0.get(o,{signal:c.signal,responseType:"arraybuffer",onDownloadProgress(h){n(h.progress||0)}});s(d)}catch(d){console.log("Request failed or aborted",d)}finally{n(void 0)}};return w.useEffect(()=>{if(o){const c=new AbortController;return a(c),()=>{c.abort()}}},[o]),B(on,{children:[B("div",{className:"flex flex-col justify-center items-center rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:[B("div",{className:"flex flex-row space-x-2 py-2 w-full px-2",children:[x(Vg,{icon:x(Kg,{}),text:"From URL",onUrlUpdate:c=>{e.transcriber.onInputChange(),i(c)}}),x(Ig,{}),x(Qg,{icon:x(Gg,{}),text:"From file",onFileUpdate:(c,d)=>{e.transcriber.onInputChange(),l({buffer:c,url:d,source:"FILE"})}})]}),x(Bg,{progress:u?t:+!!r})]}),r&&B(on,{children:[x(Ag,{audioUrl:r.url}),B("div",{className:"relative w-full flex justify-center items-center",children:[x($g,{onClick:()=>{e.transcriber.start(r.buffer)},isModelLoading:e.transcriber.isModelLoading,isTranscribing:e.transcriber.isBusy}),x(jg,{className:"absolute right-4",transcriber:e.transcriber,icon:x(Yg,{})})]}),e.transcriber.progressItems.length>0&&B("div",{className:"relative z-10 p-4 w-full",children:[x("label",{children:"Loading model files... (only run once)"}),e.transcriber.progressItems.map(c=>x("div",{children:x(Dg,{text:c.file,percentage:c.progress})},c.file))]})]})]})}function jg(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},l=()=>{n(!1)},o=i=>{l()};return B("div",{className:e.className,children:[x(Ps,{icon:e.icon,onClick:r}),x(Ug,{show:t,onSubmit:o,onClose:l,transcriber:e.transcriber})]})}function Ug(e){const t=Object.values(Ja).map(Mg),n={tiny:[61,231],base:[103,398],small:[290],medium:[833]};return x(qd,{show:e.show,title:"Settings",content:B(on,{children:[x("label",{children:"Select the model to use."}),x("select",{className:"mt-1 mb-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.model,onChange:r=>{e.transcriber.setModel(r.target.value)},children:Object.keys(n).filter(r=>e.transcriber.quantized||n[r].length==2).map(r=>x("option",{value:r,children:`whisper-${r}${e.transcriber.multilingual?"":".en"} (${n[r][e.transcriber.quantized?0:1]}MB)`},r))}),B("div",{className:"flex justify-between items-center mb-3 px-1",children:[B("div",{className:"flex",children:[x("input",{id:"multilingual",type:"checkbox",checked:e.transcriber.multilingual,onChange:r=>{e.transcriber.setMultilingual(r.target.checked)}}),x("label",{htmlFor:"multilingual",className:"ms-1",children:"Multilingual"})]}),B("div",{className:"flex",children:[x("input",{id:"quantize",type:"checkbox",checked:e.transcriber.quantized,onChange:r=>{e.transcriber.setQuantized(r.target.checked)}}),x("label",{htmlFor:"quantize",className:"ms-1",children:"Quantized"})]})]}),e.transcriber.multilingual&&B(on,{children:[x("label",{children:"Select the source language."}),B("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.language,onChange:r=>{e.transcriber.setLanguage(r.target.value)},children:[x("option",{value:"auto",children:"Auto-detect"},-1),Object.keys(Ja).map((r,l)=>x("option",{value:r,children:t[l]},r))]}),x("label",{children:"Select the task to perform."}),B("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.subtask,onChange:r=>{e.transcriber.setSubtask(r.target.value)},children:[x("option",{value:"transcribe",children:"Transcribe"}),x("option",{value:"translate",children:"Translate (to English)"})]})]})]}),onClose:e.onClose,onSubmit:()=>{}})}function Ig(){return x("div",{className:"w-[1px] bg-slate-200"})}function Bg(e){return x(Hg,{progress:`${Math.round(e.progress*100)}%`})}function Hg(e){return x("div",{className:"w-full bg-gray-200 rounded-full h-1 dark:bg-gray-700",children:x("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-100",style:{width:e.progress}})})}function Vg(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},l=()=>{n(!1)},o=i=>{e.onUrlUpdate(i),l()};return B(on,{children:[x(Ps,{icon:e.icon,text:e.text,onClick:r}),x(Wg,{show:t,onSubmit:o,onClose:l})]})}function Wg(e){const[t,n]=w.useState(Rt.DEFAULT_AUDIO_URL),r=o=>{n(o.target.value)},l=()=>{e.onSubmit(t)};return x(qd,{show:e.show,title:"From URL",content:B(on,{children:["Enter the URL of the audio file you want to load.",x(Fg,{onChange:r,value:t})]}),onClose:e.onClose,submitText:"Load",onSubmit:l})}function Qg(e){let t=document.createElement("input");return t.type="file",t.oninput=n=>{let r=n.target.files;if(!r)return;const l=URL.createObjectURL(r[0]),o=new FileReader;o.addEventListener("load",async i=>{var c;const u=(c=i.target)==null?void 0:c.result;if(!u)return;const a=await new AudioContext({sampleRate:Rt.SAMPLING_RATE}).decodeAudioData(u);e.onFileUpdate(a,l)}),o.readAsArrayBuffer(r[0]),t.value=""},x(on,{children:x(Ps,{icon:e.icon,text:e.text,onClick:()=>t.click()})})}function Ps(e){return B("button",{onClick:e.onClick,className:"flex items-center justify-center rounded-lg p-2 bg-blue text-slate-500 hover:text-indigo-600 hover:bg-indigo-50 transition-all duration-200",children:[x("div",{className:"w-7 h-7",children:e.icon}),e.text&&x("div",{className:"ml-2 break-text text-center text-md w-30",children:e.text})]})}function Kg(){return x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})})}function Gg(){return x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 00-1.883 2.542l.857 6a2.25 2.25 0 002.227 1.932H19.05a2.25 2.25 0 002.227-1.932l.857-6a2.25 2.25 0 00-1.883-2.542m-16.5 0V6A2.25 2.25 0 016 3.75h3.879a1.5 1.5 0 011.06.44l2.122 2.12a1.5 1.5 0 001.06.44H18A2.25 2.25 0 0120.25 9v.776"})})}function Yg(){return B("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.25",stroke:"currentColor",children:[x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}function gi(e){return String(e).padStart(2,"0")}function Xg(e){const t=e/3600|0;e-=t*(60*60);const n=e/60|0;e-=n*60;const r=e|0;return`${t?gi(t)+":":""}${gi(n)}:${gi(r)}`}function qg({transcribedData:e}){const t=w.useRef(null),n=()=>{let r=JSON.stringify((e==null?void 0:e.chunks)??{},null,2);const l=/( "timestamp": )\[\s+(\S+)\s+(\S+)\s+\]/gm;r=r.replace(l,"$1[$2 $3]");const o=new Blob([r],{type:"application/json"}),i=URL.createObjectURL(o),u=document.createElement("a");u.href=i,u.download="transcript.json",u.click(),URL.revokeObjectURL(i)};return w.useEffect(()=>{t.current&&Math.abs(t.current.offsetHeight+t.current.scrollTop-t.current.scrollHeight)<=64&&(t.current.scrollTop=t.current.scrollHeight)}),B("div",{ref:t,className:"w-full flex flex-col my-2 p-4 max-h-[20rem] overflow-y-auto",children:[e&&e.chunks.map((r,l)=>B("div",{className:"w-full flex flex-row mb-2 bg-white rounded-lg p-4 shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:[x("div",{className:"mr-5",children:Xg(r.timestamp[0])}),r.text]},`${l}-${r.text}`)),e&&!e.isBusy&&x("div",{className:"w-full text-right",children:x("button",{onClick:n,className:"text-white bg-green-500 hover:bg-green-600 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-4 py-2 text-center mr-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800 inline-flex items-center",children:"Export JSON"})})]})}function bg(e){const[t]=w.useState(()=>Jg(e));return t}function Jg(e){const t=new Worker(new URL("/assets/worker-c82d7cb9.js",self.location),{type:"module"});return t.addEventListener("message",e),t}function Zg(){const[e,t]=w.useState(void 0),[n,r]=w.useState(!1),[l,o]=w.useState(!1),[i,u]=w.useState([]),s=bg(L=>{const T=L.data;switch(T.status){case"progress":u(O=>O.map(V=>V.file===T.file?{...V,progress:T.progress}:V));break;case"update":const _=T;t({isBusy:!0,text:_.data[0],chunks:_.data[1].chunks});break;case"complete":const U=T;t({isBusy:!1,text:U.data.text,chunks:U.data.chunks}),r(!1);break;case"initiate":o(!0),u(O=>[...O,T]);break;case"ready":o(!1);break;case"error":r(!1),alert(`${T.data.message} This is most likely because you are using Safari on an M1/M2 Mac. Please try again from Chrome, Firefox, or Edge.
If this is not the case, please file a bug report.`);break;case"done":u(O=>O.filter(V=>V.file!==T.file));break}}),[a,c]=w.useState(Rt.DEFAULT_MODEL),[d,h]=w.useState(Rt.DEFAULT_SUBTASK),[y,m]=w.useState(Rt.DEFAULT_QUANTIZED),[v,P]=w.useState(Rt.DEFAULT_MULTILINGUAL),[p,f]=w.useState(Rt.DEFAULT_LANGUAGE),g=w.useCallback(()=>{t(void 0)},[]),E=w.useCallback(async L=>{L&&(t(void 0),r(!0),s.postMessage({audio:L.getChannelData(0),model:a,multilingual:v,quantized:y,subtask:v?d:null,language:v&&p!=="auto"?p:null}))},[s,a,v,y,d,p]);return w.useMemo(()=>({onInputChange:g,isBusy:n,isModelLoading:l,progressItems:i,start:E,output:e,model:a,setModel:c,multilingual:v,setMultilingual:P,quantized:y,setQuantized:m,subtask:d,setSubtask:h,language:p,setLanguage:f}),[n,l,i,E,e,a,v,y,d,p])}function ev(){const e=Zg();return x("div",{className:"flex justify-center items-center min-h-screen",children:B("div",{className:"container flex flex-col justify-center items-center",children:[x("h1",{className:"text-5xl font-extrabold tracking-tight text-slate-900 sm:text-7xl text-center",children:"Whisper Web"}),x("h2",{className:"mt-3 mb-5 px-4 text-center text-1xl font-semibold tracking-tight text-slate-900 sm:text-2xl",children:"ML-powered speech recognition directly in your browser"}),x(zg,{transcriber:e}),x(qg,{transcribedData:e.output})]})})}yi.createRoot(document.getElementById("root")).render(x(D.StrictMode,{children:x(ev,{})}));