(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function l(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=l(n);fetch(n.href,i)}})();var Eo={exports:{}},Ui={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Rd=Symbol.for("react.transitional.element"),Ud=Symbol.for("react.fragment");function To(t,e,l){var a=null;if(l!==void 0&&(a=""+l),e.key!==void 0&&(a=""+e.key),"key"in e){l={};for(var n in e)n!=="key"&&(l[n]=e[n])}else l=e;return e=l.ref,{$$typeof:Rd,type:t,key:a,ref:e!==void 0?e:null,props:l}}Ui.Fragment=Ud;Ui.jsx=To;Ui.jsxs=To;Eo.exports=Ui;var _=Eo.exports,zo={exports:{}},N={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Hs=Symbol.for("react.transitional.element"),Hd=Symbol.for("react.portal"),jd=Symbol.for("react.fragment"),Bd=Symbol.for("react.strict_mode"),Ld=Symbol.for("react.profiler"),Yd=Symbol.for("react.consumer"),qd=Symbol.for("react.context"),Xd=Symbol.for("react.forward_ref"),Gd=Symbol.for("react.suspense"),Qd=Symbol.for("react.memo"),Ao=Symbol.for("react.lazy"),Zd=Symbol.for("react.activity"),Bc=Symbol.iterator;function wd(t){return t===null||typeof t!="object"?null:(t=Bc&&t[Bc]||t["@@iterator"],typeof t=="function"?t:null)}var Mo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Co=Object.assign,xo={};function oa(t,e,l){this.props=t,this.context=e,this.refs=xo,this.updater=l||Mo}oa.prototype.isReactComponent={};oa.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};oa.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Oo(){}Oo.prototype=oa.prototype;function js(t,e,l){this.props=t,this.context=e,this.refs=xo,this.updater=l||Mo}var Bs=js.prototype=new Oo;Bs.constructor=js;Co(Bs,oa.prototype);Bs.isPureReactComponent=!0;var Lc=Array.isArray;function Yu(){}var I={H:null,A:null,T:null,S:null},_o=Object.prototype.hasOwnProperty;function Ls(t,e,l){var a=l.ref;return{$$typeof:Hs,type:t,key:e,ref:a!==void 0?a:null,props:l}}function Vd(t,e){return Ls(t.type,e,t.props)}function Ys(t){return typeof t=="object"&&t!==null&&t.$$typeof===Hs}function Kd(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(l){return e[l]})}var Yc=/\/+/g;function Ii(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Kd(""+t.key):e.toString(36)}function Jd(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Yu,Yu):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Nl(t,e,l,a,n){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var u=!1;if(t===null)u=!0;else switch(i){case"bigint":case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case Hs:case Hd:u=!0;break;case Ao:return u=t._init,Nl(u(t._payload),e,l,a,n)}}if(u)return n=n(t),u=a===""?"."+Ii(t,0):a,Lc(n)?(l="",u!=null&&(l=u.replace(Yc,"$&/")+"/"),Nl(n,e,l,"",function(f){return f})):n!=null&&(Ys(n)&&(n=Vd(n,l+(n.key==null||t&&t.key===n.key?"":(""+n.key).replace(Yc,"$&/")+"/")+u)),e.push(n)),1;u=0;var s=a===""?".":a+":";if(Lc(t))for(var c=0;c<t.length;c++)a=t[c],i=s+Ii(a,c),u+=Nl(a,e,l,i,n);else if(c=wd(t),typeof c=="function")for(t=c.call(t),c=0;!(a=t.next()).done;)a=a.value,i=s+Ii(a,c++),u+=Nl(a,e,l,i,n);else if(i==="object"){if(typeof t.then=="function")return Nl(Jd(t),e,l,a,n);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return u}function An(t,e,l){if(t==null)return t;var a=[],n=0;return Nl(t,a,"","",function(i){return e.call(l,i,n++)}),a}function Wd(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l)},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var qc=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},kd={map:An,forEach:function(t,e,l){An(t,function(){e.apply(this,arguments)},l)},count:function(t){var e=0;return An(t,function(){e++}),e},toArray:function(t){return An(t,function(e){return e})||[]},only:function(t){if(!Ys(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};N.Activity=Zd;N.Children=kd;N.Component=oa;N.Fragment=jd;N.Profiler=Ld;N.PureComponent=js;N.StrictMode=Bd;N.Suspense=Gd;N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I;N.__COMPILER_RUNTIME={__proto__:null,c:function(t){return I.H.useMemoCache(t)}};N.cache=function(t){return function(){return t.apply(null,arguments)}};N.cacheSignal=function(){return null};N.cloneElement=function(t,e,l){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var a=Co({},t.props),n=t.key;if(e!=null)for(i in e.key!==void 0&&(n=""+e.key),e)!_o.call(e,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&e.ref===void 0||(a[i]=e[i]);var i=arguments.length-2;if(i===1)a.children=l;else if(1<i){for(var u=Array(i),s=0;s<i;s++)u[s]=arguments[s+2];a.children=u}return Ls(t.type,n,a)};N.createContext=function(t){return t={$$typeof:qd,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Yd,_context:t},t};N.createElement=function(t,e,l){var a,n={},i=null;if(e!=null)for(a in e.key!==void 0&&(i=""+e.key),e)_o.call(e,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(n[a]=e[a]);var u=arguments.length-2;if(u===1)n.children=l;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];n.children=s}if(t&&t.defaultProps)for(a in u=t.defaultProps,u)n[a]===void 0&&(n[a]=u[a]);return Ls(t,i,n)};N.createRef=function(){return{current:null}};N.forwardRef=function(t){return{$$typeof:Xd,render:t}};N.isValidElement=Ys;N.lazy=function(t){return{$$typeof:Ao,_payload:{_status:-1,_result:t},_init:Wd}};N.memo=function(t,e){return{$$typeof:Qd,type:t,compare:e===void 0?null:e}};N.startTransition=function(t){var e=I.T,l={};I.T=l;try{var a=t(),n=I.S;n!==null&&n(l,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(Yu,qc)}catch(i){qc(i)}finally{e!==null&&l.types!==null&&(e.types=l.types),I.T=e}};N.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()};N.use=function(t){return I.H.use(t)};N.useActionState=function(t,e,l){return I.H.useActionState(t,e,l)};N.useCallback=function(t,e){return I.H.useCallback(t,e)};N.useContext=function(t){return I.H.useContext(t)};N.useDebugValue=function(){};N.useDeferredValue=function(t,e){return I.H.useDeferredValue(t,e)};N.useEffect=function(t,e){return I.H.useEffect(t,e)};N.useEffectEvent=function(t){return I.H.useEffectEvent(t)};N.useId=function(){return I.H.useId()};N.useImperativeHandle=function(t,e,l){return I.H.useImperativeHandle(t,e,l)};N.useInsertionEffect=function(t,e){return I.H.useInsertionEffect(t,e)};N.useLayoutEffect=function(t,e){return I.H.useLayoutEffect(t,e)};N.useMemo=function(t,e){return I.H.useMemo(t,e)};N.useOptimistic=function(t,e){return I.H.useOptimistic(t,e)};N.useReducer=function(t,e,l){return I.H.useReducer(t,e,l)};N.useRef=function(t){return I.H.useRef(t)};N.useState=function(t){return I.H.useState(t)};N.useSyncExternalStore=function(t,e,l){return I.H.useSyncExternalStore(t,e,l)};N.useTransition=function(){return I.H.useTransition()};N.version="19.2.4";zo.exports=N;var w=zo.exports,Do={exports:{}},Hi={},No={exports:{}},Ro={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(t){function e(x,H){var j=x.length;x.push(H);t:for(;0<j;){var et=j-1>>>1,ct=x[et];if(0<n(ct,H))x[et]=H,x[j]=ct,j=et;else break t}}function l(x){return x.length===0?null:x[0]}function a(x){if(x.length===0)return null;var H=x[0],j=x.pop();if(j!==H){x[0]=j;t:for(var et=0,ct=x.length,En=ct>>>1;et<En;){var Tn=2*(et+1)-1,Pi=x[Tn],nl=Tn+1,zn=x[nl];if(0>n(Pi,j))nl<ct&&0>n(zn,Pi)?(x[et]=zn,x[nl]=j,et=nl):(x[et]=Pi,x[Tn]=j,et=Tn);else if(nl<ct&&0>n(zn,j))x[et]=zn,x[nl]=j,et=nl;else break t}}return H}function n(x,H){var j=x.sortIndex-H.sortIndex;return j!==0?j:x.id-H.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var c=[],f=[],o=1,v=null,h=3,m=!1,p=!1,b=!1,E=!1,d=typeof setTimeout=="function"?setTimeout:null,r=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;function g(x){for(var H=l(f);H!==null;){if(H.callback===null)a(f);else if(H.startTime<=x)a(f),H.sortIndex=H.expirationTime,e(c,H);else break;H=l(f)}}function A(x){if(b=!1,g(x),!p)if(l(c)!==null)p=!0,C||(C=!0,k());else{var H=l(f);H!==null&&At(A,H.startTime-x)}}var C=!1,T=-1,O=5,M=-1;function z(){return E?!0:!(t.unstable_now()-M<O)}function B(){if(E=!1,C){var x=t.unstable_now();M=x;var H=!0;try{t:{p=!1,b&&(b=!1,r(T),T=-1),m=!0;var j=h;try{e:{for(g(x),v=l(c);v!==null&&!(v.expirationTime>x&&z());){var et=v.callback;if(typeof et=="function"){v.callback=null,h=v.priorityLevel;var ct=et(v.expirationTime<=x);if(x=t.unstable_now(),typeof ct=="function"){v.callback=ct,g(x),H=!0;break e}v===l(c)&&a(c),g(x)}else a(c);v=l(c)}if(v!==null)H=!0;else{var En=l(f);En!==null&&At(A,En.startTime-x),H=!1}}break t}finally{v=null,h=j,m=!1}H=void 0}}finally{H?k():C=!1}}}var k;if(typeof y=="function")k=function(){y(B)};else if(typeof MessageChannel<"u"){var pt=new MessageChannel,U=pt.port2;pt.port1.onmessage=B,k=function(){U.postMessage(null)}}else k=function(){d(B,0)};function At(x,H){T=d(function(){x(t.unstable_now())},H)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(x){x.callback=null},t.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<x?Math.floor(1e3/x):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_next=function(x){switch(h){case 1:case 2:case 3:var H=3;break;default:H=h}var j=h;h=H;try{return x()}finally{h=j}},t.unstable_requestPaint=function(){E=!0},t.unstable_runWithPriority=function(x,H){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var j=h;h=x;try{return H()}finally{h=j}},t.unstable_scheduleCallback=function(x,H,j){var et=t.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?et+j:et):j=et,x){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=j+ct,x={id:o++,callback:H,priorityLevel:x,startTime:j,expirationTime:ct,sortIndex:-1},j>et?(x.sortIndex=j,e(f,x),l(c)===null&&x===l(f)&&(b?(r(T),T=-1):b=!0,At(A,j-et))):(x.sortIndex=ct,e(c,x),p||m||(p=!0,C||(C=!0,k()))),x},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(x){var H=h;return function(){var j=h;h=H;try{return x.apply(this,arguments)}finally{h=j}}}})(Ro);No.exports=Ro;var $d=No.exports,Uo={exports:{}},Ot={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Fd=w;function Ho(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function De(){}var xt={d:{f:De,r:function(){throw Error(Ho(522))},D:De,C:De,L:De,m:De,X:De,S:De,M:De},p:0,findDOMNode:null},Pd=Symbol.for("react.portal");function Id(t,e,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pd,key:a==null?null:""+a,children:t,containerInfo:e,implementation:l}}var Na=Fd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ji(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}Ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xt;Ot.createPortal=function(t,e){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Ho(299));return Id(t,e,null,l)};Ot.flushSync=function(t){var e=Na.T,l=xt.p;try{if(Na.T=null,xt.p=2,t)return t()}finally{Na.T=e,xt.p=l,xt.d.f()}};Ot.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,xt.d.C(t,e))};Ot.prefetchDNS=function(t){typeof t=="string"&&xt.d.D(t)};Ot.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var l=e.as,a=ji(l,e.crossOrigin),n=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;l==="style"?xt.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:i}):l==="script"&&xt.d.X(t,{crossOrigin:a,integrity:n,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};Ot.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var l=ji(e.as,e.crossOrigin);xt.d.M(t,{crossOrigin:l,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&xt.d.M(t)};Ot.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var l=e.as,a=ji(l,e.crossOrigin);xt.d.L(t,l,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};Ot.preloadModule=function(t,e){if(typeof t=="string")if(e){var l=ji(e.as,e.crossOrigin);xt.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:l,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else xt.d.m(t)};Ot.requestFormReset=function(t){xt.d.r(t)};Ot.unstable_batchedUpdates=function(t,e){return t(e)};Ot.useFormState=function(t,e,l){return Na.H.useFormState(t,e,l)};Ot.useFormStatus=function(){return Na.H.useHostTransitionStatus()};Ot.version="19.2.4";function jo(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jo)}catch(t){console.error(t)}}jo(),Uo.exports=Ot;var tm=Uo.exports;/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mt=$d,Bo=w,em=tm;function S(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Lo(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function sn(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function Yo(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function qo(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Xc(t){if(sn(t)!==t)throw Error(S(188))}function lm(t){var e=t.alternate;if(!e){if(e=sn(t),e===null)throw Error(S(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return Xc(n),t;if(i===a)return Xc(n),e;i=i.sibling}throw Error(S(188))}if(l.return!==a.return)l=n,a=i;else{for(var u=!1,s=n.child;s;){if(s===l){u=!0,l=n,a=i;break}if(s===a){u=!0,a=n,l=i;break}s=s.sibling}if(!u){for(s=i.child;s;){if(s===l){u=!0,l=i,a=n;break}if(s===a){u=!0,a=i,l=n;break}s=s.sibling}if(!u)throw Error(S(189))}}if(l.alternate!==a)throw Error(S(190))}if(l.tag!==3)throw Error(S(188));return l.stateNode.current===l?t:e}function Xo(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=Xo(t),e!==null)return e;t=t.sibling}return null}var tt=Object.assign,am=Symbol.for("react.element"),Mn=Symbol.for("react.transitional.element"),Ma=Symbol.for("react.portal"),Hl=Symbol.for("react.fragment"),Go=Symbol.for("react.strict_mode"),qu=Symbol.for("react.profiler"),Qo=Symbol.for("react.consumer"),pe=Symbol.for("react.context"),qs=Symbol.for("react.forward_ref"),Xu=Symbol.for("react.suspense"),Gu=Symbol.for("react.suspense_list"),Xs=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),Qu=Symbol.for("react.activity"),nm=Symbol.for("react.memo_cache_sentinel"),Gc=Symbol.iterator;function pa(t){return t===null||typeof t!="object"?null:(t=Gc&&t[Gc]||t["@@iterator"],typeof t=="function"?t:null)}var im=Symbol.for("react.client.reference");function Zu(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===im?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Hl:return"Fragment";case qu:return"Profiler";case Go:return"StrictMode";case Xu:return"Suspense";case Gu:return"SuspenseList";case Qu:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Ma:return"Portal";case pe:return t.displayName||"Context";case Qo:return(t._context.displayName||"Context")+".Consumer";case qs:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Xs:return e=t.displayName||null,e!==null?e:Zu(t.type)||"Memo";case Ne:e=t._payload,t=t._init;try{return Zu(t(e))}catch{}}return null}var Ca=Array.isArray,D=Bo.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=em.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,hl={pending:!1,data:null,method:null,action:null},wu=[],jl=-1;function fe(t){return{current:t}}function gt(t){0>jl||(t.current=wu[jl],wu[jl]=null,jl--)}function $(t,e){jl++,wu[jl]=t.current,t.current=e}var ce=fe(null),Va=fe(null),Ze=fe(null),ni=fe(null);function ii(t,e){switch($(Ze,e),$(Va,t),$(ce,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Wf(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Wf(e),t=cd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}gt(ce),$(ce,t)}function Il(){gt(ce),gt(Va),gt(Ze)}function Vu(t){t.memoizedState!==null&&$(ni,t);var e=ce.current,l=cd(e,t.type);e!==l&&($(Va,t),$(ce,l))}function ui(t){Va.current===t&&(gt(ce),gt(Va)),ni.current===t&&(gt(ni),ln._currentValue=hl)}var tu,Qc;function ul(t){if(tu===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);tu=e&&e[1]||"",Qc=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+tu+t+Qc}var eu=!1;function lu(t,e){if(!t||eu)return"";eu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(m){var h=m}Reflect.construct(t,[],v)}else{try{v.call()}catch(m){h=m}t.call(v.prototype)}}else{try{throw Error()}catch(m){h=m}(v=t())&&typeof v.catch=="function"&&v.catch(function(){})}}catch(m){if(m&&h&&typeof m.stack=="string")return[m.stack,h.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),u=i[0],s=i[1];if(u&&s){var c=u.split(`
`),f=s.split(`
`);for(n=a=0;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;for(;n<f.length&&!f[n].includes("DetermineComponentFrameRoot");)n++;if(a===c.length||n===f.length)for(a=c.length-1,n=f.length-1;1<=a&&0<=n&&c[a]!==f[n];)n--;for(;1<=a&&0<=n;a--,n--)if(c[a]!==f[n]){if(a!==1||n!==1)do if(a--,n--,0>n||c[a]!==f[n]){var o=`
`+c[a].replace(" at new "," at ");return t.displayName&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",t.displayName)),o}while(1<=a&&0<=n);break}}}finally{eu=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ul(l):""}function um(t,e){switch(t.tag){case 26:case 27:case 5:return ul(t.type);case 16:return ul("Lazy");case 13:return t.child!==e&&e!==null?ul("Suspense Fallback"):ul("Suspense");case 19:return ul("SuspenseList");case 0:case 15:return lu(t.type,!1);case 11:return lu(t.type.render,!1);case 1:return lu(t.type,!0);case 31:return ul("Activity");default:return""}}function Zc(t){try{var e="",l=null;do e+=um(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Ku=Object.prototype.hasOwnProperty,Gs=mt.unstable_scheduleCallback,au=mt.unstable_cancelCallback,sm=mt.unstable_shouldYield,cm=mt.unstable_requestPaint,Xt=mt.unstable_now,fm=mt.unstable_getCurrentPriorityLevel,Zo=mt.unstable_ImmediatePriority,wo=mt.unstable_UserBlockingPriority,si=mt.unstable_NormalPriority,om=mt.unstable_LowPriority,Vo=mt.unstable_IdlePriority,rm=mt.log,hm=mt.unstable_setDisableYieldValue,cn=null,Gt=null;function Ye(t){if(typeof rm=="function"&&hm(t),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(cn,t)}catch{}}var Qt=Math.clz32?Math.clz32:vm,dm=Math.log,mm=Math.LN2;function vm(t){return t>>>=0,t===0?32:31-(dm(t)/mm|0)|0}var Cn=256,xn=262144,On=4194304;function sl(t){var e=t&42;if(e!==0)return e;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Bi(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,i=t.suspendedLanes,u=t.pingedLanes;t=t.warmLanes;var s=a&134217727;return s!==0?(a=s&~i,a!==0?n=sl(a):(u&=s,u!==0?n=sl(u):l||(l=s&~t,l!==0&&(n=sl(l))))):(s=a&~i,s!==0?n=sl(s):u!==0?n=sl(u):l||(l=a&~t,l!==0&&(n=sl(l)))),n===0?0:e!==0&&e!==n&&!(e&i)&&(i=n&-n,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:n}function fn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ym(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32: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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ko(){var t=On;return On<<=1,!(On&62914560)&&(On=4194304),t}function nu(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function on(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function gm(t,e,l,a,n,i){var u=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var s=t.entanglements,c=t.expirationTimes,f=t.hiddenUpdates;for(l=u&~l;0<l;){var o=31-Qt(l),v=1<<o;s[o]=0,c[o]=-1;var h=f[o];if(h!==null)for(f[o]=null,o=0;o<h.length;o++){var m=h[o];m!==null&&(m.lane&=-536870913)}l&=~v}a!==0&&Jo(t,a,0),i!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=i&~(u&~e))}function Jo(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Qt(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function Wo(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-Qt(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function ko(t,e){var l=e&-e;return l=l&42?1:Qs(l),l&(t.suspendedLanes|e)?0:l}function Qs(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Zs(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function $o(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:bd(t.type))}function wc(t,e){var l=Q.p;try{return Q.p=t,e()}finally{Q.p=l}}var ll=Math.random().toString(36).slice(2),St="__reactFiber$"+ll,Ht="__reactProps$"+ll,ra="__reactContainer$"+ll,Ju="__reactEvents$"+ll,pm="__reactListeners$"+ll,bm="__reactHandles$"+ll,Vc="__reactResources$"+ll,rn="__reactMarker$"+ll;function ws(t){delete t[St],delete t[Ht],delete t[Ju],delete t[pm],delete t[bm]}function Bl(t){var e=t[St];if(e)return e;for(var l=t.parentNode;l;){if(e=l[ra]||l[St]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=If(t);t!==null;){if(l=t[St])return l;t=If(t)}return e}t=l,l=t.parentNode}return null}function ha(t){if(t=t[St]||t[ra]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function xa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(S(33))}function Kl(t){var e=t[Vc];return e||(e=t[Vc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function yt(t){t[rn]=!0}var Fo=new Set,Po={};function Tl(t,e){ta(t,e),ta(t+"Capture",e)}function ta(t,e){for(Po[t]=e,t=0;t<e.length;t++)Fo.add(e[t])}var Sm=RegExp("^[: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]*$"),Kc={},Jc={};function Em(t){return Ku.call(Jc,t)?!0:Ku.call(Kc,t)?!1:Sm.test(t)?Jc[t]=!0:(Kc[t]=!0,!1)}function Gn(t,e,l){if(Em(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function _n(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function re(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Jt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Io(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Tm(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(u){l=""+u,i.call(this,u)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Wu(t){if(!t._valueTracker){var e=Io(t)?"checked":"value";t._valueTracker=Tm(t,e,""+t[e])}}function tr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Io(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function ci(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var zm=/[\n"\\]/g;function $t(t){return t.replace(zm,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ku(t,e,l,a,n,i,u,s){t.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?t.type=u:t.removeAttribute("type"),e!=null?u==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Jt(e)):t.value!==""+Jt(e)&&(t.value=""+Jt(e)):u!=="submit"&&u!=="reset"||t.removeAttribute("value"),e!=null?$u(t,u,Jt(e)):l!=null?$u(t,u,Jt(l)):a!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+Jt(s):t.removeAttribute("name")}function er(t,e,l,a,n,i,u,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){Wu(t);return}l=l!=null?""+Jt(l):"",e=e!=null?""+Jt(e):l,s||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=s?t.checked:!!a,t.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.name=u),Wu(t)}function $u(t,e,l){e==="number"&&ci(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Jl(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Jt(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function lr(t,e,l){if(e!=null&&(e=""+Jt(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Jt(l):""}function ar(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(S(92));if(Ca(a)){if(1<a.length)throw Error(S(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Jt(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Wu(t)}function ea(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Am=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Wc(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Am.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function nr(t,e,l){if(e!=null&&typeof e!="object")throw Error(S(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&Wc(t,n,a)}else for(var i in e)e.hasOwnProperty(i)&&Wc(t,i,e[i])}function Vs(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Mm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Cm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Qn(t){return Cm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function be(){}var Fu=null;function Ks(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ll=null,Wl=null;function kc(t){var e=ha(t);if(e&&(t=e.stateNode)){var l=t[Ht]||null;t:switch(t=e.stateNode,e.type){case"input":if(ku(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+$t(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[Ht]||null;if(!n)throw Error(S(90));ku(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&tr(a)}break t;case"textarea":lr(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Jl(t,!!l.multiple,e,!1)}}}var iu=!1;function ir(t,e,l){if(iu)return t(e,l);iu=!0;try{var a=t(e);return a}finally{if(iu=!1,(Ll!==null||Wl!==null)&&(Wi(),Ll&&(e=Ll,t=Wl,Wl=Ll=null,kc(e),t)))for(e=0;e<t.length;e++)kc(t[e])}}function Ka(t,e){var l=t.stateNode;if(l===null)return null;var a=l[Ht]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(S(231,e,typeof l));return l}var Ae=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pu=!1;if(Ae)try{var ba={};Object.defineProperty(ba,"passive",{get:function(){Pu=!0}}),window.addEventListener("test",ba,ba),window.removeEventListener("test",ba,ba)}catch{Pu=!1}var qe=null,Js=null,Zn=null;function ur(){if(Zn)return Zn;var t,e=Js,l=e.length,a,n="value"in qe?qe.value:qe.textContent,i=n.length;for(t=0;t<l&&e[t]===n[t];t++);var u=l-t;for(a=1;a<=u&&e[l-a]===n[i-a];a++);return Zn=n.slice(t,1<a?1-a:void 0)}function wn(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Dn(){return!0}function $c(){return!1}function jt(t){function e(l,a,n,i,u){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(l=t[s],this[s]=l?l(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Dn:$c,this.isPropagationStopped=$c,this}return tt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Dn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Dn)},persist:function(){},isPersistent:Dn}),e}var zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Li=jt(zl),hn=tt({},zl,{view:0,detail:0}),xm=jt(hn),uu,su,Sa,Yi=tt({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ws,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Sa&&(Sa&&t.type==="mousemove"?(uu=t.screenX-Sa.screenX,su=t.screenY-Sa.screenY):su=uu=0,Sa=t),uu)},movementY:function(t){return"movementY"in t?t.movementY:su}}),Fc=jt(Yi),Om=tt({},Yi,{dataTransfer:0}),_m=jt(Om),Dm=tt({},hn,{relatedTarget:0}),cu=jt(Dm),Nm=tt({},zl,{animationName:0,elapsedTime:0,pseudoElement:0}),Rm=jt(Nm),Um=tt({},zl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Hm=jt(Um),jm=tt({},zl,{data:0}),Pc=jt(jm),Bm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lm={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"},Ym={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qm(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Ym[t])?!!e[t]:!1}function Ws(){return qm}var Xm=tt({},hn,{key:function(t){if(t.key){var e=Bm[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=wn(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Lm[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ws,charCode:function(t){return t.type==="keypress"?wn(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?wn(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Gm=jt(Xm),Qm=tt({},Yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ic=jt(Qm),Zm=tt({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ws}),wm=jt(Zm),Vm=tt({},zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Km=jt(Vm),Jm=tt({},Yi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Wm=jt(Jm),km=tt({},zl,{newState:0,oldState:0}),$m=jt(km),Fm=[9,13,27,32],ks=Ae&&"CompositionEvent"in window,Ra=null;Ae&&"documentMode"in document&&(Ra=document.documentMode);var Pm=Ae&&"TextEvent"in window&&!Ra,sr=Ae&&(!ks||Ra&&8<Ra&&11>=Ra),tf=" ",ef=!1;function cr(t,e){switch(t){case"keyup":return Fm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Yl=!1;function Im(t,e){switch(t){case"compositionend":return fr(e);case"keypress":return e.which!==32?null:(ef=!0,tf);case"textInput":return t=e.data,t===tf&&ef?null:t;default:return null}}function tv(t,e){if(Yl)return t==="compositionend"||!ks&&cr(t,e)?(t=ur(),Zn=Js=qe=null,Yl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return sr&&e.locale!=="ko"?null:e.data;default:return null}}var ev={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 lf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ev[t.type]:e==="textarea"}function or(t,e,l,a){Ll?Wl?Wl.push(a):Wl=[a]:Ll=a,e=Ci(e,"onChange"),0<e.length&&(l=new Li("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var Ua=null,Ja=null;function lv(t){id(t,0)}function qi(t){var e=xa(t);if(tr(e))return t}function af(t,e){if(t==="change")return e}var rr=!1;if(Ae){var fu;if(Ae){var ou="oninput"in document;if(!ou){var nf=document.createElement("div");nf.setAttribute("oninput","return;"),ou=typeof nf.oninput=="function"}fu=ou}else fu=!1;rr=fu&&(!document.documentMode||9<document.documentMode)}function uf(){Ua&&(Ua.detachEvent("onpropertychange",hr),Ja=Ua=null)}function hr(t){if(t.propertyName==="value"&&qi(Ja)){var e=[];or(e,Ja,t,Ks(t)),ir(lv,e)}}function av(t,e,l){t==="focusin"?(uf(),Ua=e,Ja=l,Ua.attachEvent("onpropertychange",hr)):t==="focusout"&&uf()}function nv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return qi(Ja)}function iv(t,e){if(t==="click")return qi(e)}function uv(t,e){if(t==="input"||t==="change")return qi(e)}function sv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var wt=typeof Object.is=="function"?Object.is:sv;function Wa(t,e){if(wt(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Ku.call(e,n)||!wt(t[n],e[n]))return!1}return!0}function sf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function cf(t,e){var l=sf(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=sf(l)}}function dr(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?dr(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function mr(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ci(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=ci(t.document)}return e}function $s(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var cv=Ae&&"documentMode"in document&&11>=document.documentMode,ql=null,Iu=null,Ha=null,ts=!1;function ff(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ts||ql==null||ql!==ci(a)||(a=ql,"selectionStart"in a&&$s(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ha&&Wa(Ha,a)||(Ha=a,a=Ci(Iu,"onSelect"),0<a.length&&(e=new Li("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=ql)))}function il(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Xl={animationend:il("Animation","AnimationEnd"),animationiteration:il("Animation","AnimationIteration"),animationstart:il("Animation","AnimationStart"),transitionrun:il("Transition","TransitionRun"),transitionstart:il("Transition","TransitionStart"),transitioncancel:il("Transition","TransitionCancel"),transitionend:il("Transition","TransitionEnd")},ru={},vr={};Ae&&(vr=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function Al(t){if(ru[t])return ru[t];if(!Xl[t])return t;var e=Xl[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in vr)return ru[t]=e[l];return t}var yr=Al("animationend"),gr=Al("animationiteration"),pr=Al("animationstart"),fv=Al("transitionrun"),ov=Al("transitionstart"),rv=Al("transitioncancel"),br=Al("transitionend"),Sr=new Map,es="abort auxClick beforeToggle 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(" ");es.push("scrollEnd");function ne(t,e){Sr.set(t,e),Tl(e,[t])}var fi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Kt=[],Gl=0,Fs=0;function Xi(){for(var t=Gl,e=Fs=Gl=0;e<t;){var l=Kt[e];Kt[e++]=null;var a=Kt[e];Kt[e++]=null;var n=Kt[e];Kt[e++]=null;var i=Kt[e];if(Kt[e++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}i!==0&&Er(l,n,i)}}function Gi(t,e,l,a){Kt[Gl++]=t,Kt[Gl++]=e,Kt[Gl++]=l,Kt[Gl++]=a,Fs|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ps(t,e,l,a){return Gi(t,e,l,a),oi(t)}function Ml(t,e){return Gi(t,null,null,e),oi(t)}function Er(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=t.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(n=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,n&&e!==null&&(n=31-Qt(l),t=i.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),i):null}function oi(t){if(50<Za)throw Za=0,Ts=null,Error(S(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ql={};function hv(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(t,e,l,a){return new hv(t,e,l,a)}function Is(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ee(t,e){var l=t.alternate;return l===null?(l=Yt(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Tr(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Vn(t,e,l,a,n,i){var u=0;if(a=t,typeof t=="function")Is(t)&&(u=1);else if(typeof t=="string")u=g0(t,l,ce.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Qu:return t=Yt(31,l,e,n),t.elementType=Qu,t.lanes=i,t;case Hl:return dl(l.children,n,i,e);case Go:u=8,n|=24;break;case qu:return t=Yt(12,l,e,n|2),t.elementType=qu,t.lanes=i,t;case Xu:return t=Yt(13,l,e,n),t.elementType=Xu,t.lanes=i,t;case Gu:return t=Yt(19,l,e,n),t.elementType=Gu,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case pe:u=10;break t;case Qo:u=9;break t;case qs:u=11;break t;case Xs:u=14;break t;case Ne:u=16,a=null;break t}u=29,l=Error(S(130,t===null?"null":typeof t,"")),a=null}return e=Yt(u,l,e,n),e.elementType=t,e.type=a,e.lanes=i,e}function dl(t,e,l,a){return t=Yt(7,t,a,e),t.lanes=l,t}function hu(t,e,l){return t=Yt(6,t,null,e),t.lanes=l,t}function zr(t){var e=Yt(18,null,null,0);return e.stateNode=t,e}function du(t,e,l){return e=Yt(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var of=new WeakMap;function Ft(t,e){if(typeof t=="object"&&t!==null){var l=of.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Zc(e)},of.set(t,e),e)}return{value:t,source:e,stack:Zc(e)}}var Zl=[],wl=0,ri=null,ka=0,Wt=[],kt=0,Pe=null,ie=1,ue="";function ye(t,e){Zl[wl++]=ka,Zl[wl++]=ri,ri=t,ka=e}function Ar(t,e,l){Wt[kt++]=ie,Wt[kt++]=ue,Wt[kt++]=Pe,Pe=t;var a=ie;t=ue;var n=32-Qt(a)-1;a&=~(1<<n),l+=1;var i=32-Qt(e)+n;if(30<i){var u=n-n%5;i=(a&(1<<u)-1).toString(32),a>>=u,n-=u,ie=1<<32-Qt(e)+n|l<<n|a,ue=i+t}else ie=1<<i|l<<n|a,ue=t}function tc(t){t.return!==null&&(ye(t,1),Ar(t,1,0))}function ec(t){for(;t===ri;)ri=Zl[--wl],Zl[wl]=null,ka=Zl[--wl],Zl[wl]=null;for(;t===Pe;)Pe=Wt[--kt],Wt[kt]=null,ue=Wt[--kt],Wt[kt]=null,ie=Wt[--kt],Wt[kt]=null}function Mr(t,e){Wt[kt++]=ie,Wt[kt++]=ue,Wt[kt++]=Pe,ie=e.id,ue=e.overflow,Pe=t}var Et=null,P=null,X=!1,we=null,Pt=!1,ls=Error(S(519));function Ie(t){var e=Error(S(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $a(Ft(e,t)),ls}function rf(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[St]=t,e[Ht]=a,l){case"dialog":L("cancel",e),L("close",e);break;case"iframe":case"object":case"embed":L("load",e);break;case"video":case"audio":for(l=0;l<tn.length;l++)L(tn[l],e);break;case"source":L("error",e);break;case"img":case"image":case"link":L("error",e),L("load",e);break;case"details":L("toggle",e);break;case"input":L("invalid",e),er(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":L("invalid",e);break;case"textarea":L("invalid",e),ar(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||sd(e.textContent,l)?(a.popover!=null&&(L("beforetoggle",e),L("toggle",e)),a.onScroll!=null&&L("scroll",e),a.onScrollEnd!=null&&L("scrollend",e),a.onClick!=null&&(e.onclick=be),e=!0):e=!1,e||Ie(t,!0)}function hf(t){for(Et=t.return;Et;)switch(Et.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:Et=Et.return}}function xl(t){if(t!==Et)return!1;if(!X)return hf(t),X=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||xs(t.type,t.memoizedProps)),l=!l),l&&P&&Ie(t),hf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));P=Pf(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));P=Pf(t)}else e===27?(e=P,al(t.type)?(t=Ns,Ns=null,P=t):P=e):P=Et?te(t.stateNode.nextSibling):null;return!0}function gl(){P=Et=null,X=!1}function mu(){var t=we;return t!==null&&(Rt===null?Rt=t:Rt.push.apply(Rt,t),we=null),t}function $a(t){we===null?we=[t]:we.push(t)}var as=fe(null),Cl=null,Se=null;function He(t,e,l){$(as,e._currentValue),e._currentValue=l}function Te(t){t._currentValue=as.current,gt(as)}function ns(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function is(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){var u=n.child;i=i.firstContext;t:for(;i!==null;){var s=i;i=n;for(var c=0;c<e.length;c++)if(s.context===e[c]){i.lanes|=l,s=i.alternate,s!==null&&(s.lanes|=l),ns(i.return,l,t),a||(u=null);break t}i=s.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(S(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),ns(u,l,t),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===t){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function da(t,e,l,a){t=null;for(var n=e,i=!1;n!==null;){if(!i){if(n.flags&524288)i=!0;else if(n.flags&262144)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(S(387));if(u=u.memoizedProps,u!==null){var s=n.type;wt(n.pendingProps.value,u.value)||(t!==null?t.push(s):t=[s])}}else if(n===ni.current){if(u=n.alternate,u===null)throw Error(S(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(ln):t=[ln])}n=n.return}t!==null&&is(e,t,l,a),e.flags|=262144}function hi(t){for(t=t.firstContext;t!==null;){if(!wt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function pl(t){Cl=t,Se=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Tt(t){return Cr(Cl,t)}function Nn(t,e){return Cl===null&&pl(t),Cr(t,e)}function Cr(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Se===null){if(t===null)throw Error(S(308));Se=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Se=Se.next=e;return l}var dv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},mv=mt.unstable_scheduleCallback,vv=mt.unstable_NormalPriority,rt={$$typeof:pe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new dv,data:new Map,refCount:0}}function dn(t){t.refCount--,t.refCount===0&&mv(vv,function(){t.controller.abort()})}var ja=null,us=0,la=0,kl=null;function yv(t,e){if(ja===null){var l=ja=[];us=0,la=xc(),kl={status:"pending",value:void 0,then:function(a){l.push(a)}}}return us++,e.then(df,df),e}function df(){if(--us===0&&ja!==null){kl!==null&&(kl.status="fulfilled");var t=ja;ja=null,la=0,kl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function gv(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var mf=D.S;D.S=function(t,e){Xh=Xt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&yv(t,e),mf!==null&&mf(t,e)};var ml=fe(null);function ac(){var t=ml.current;return t!==null?t:W.pooledCache}function Kn(t,e){e===null?$(ml,ml.current):$(ml,e.pool)}function xr(){var t=ac();return t===null?null:{parent:rt._currentValue,pool:t}}var ma=Error(S(460)),nc=Error(S(474)),Qi=Error(S(542)),di={then:function(){}};function vf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Or(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(be,be),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,gf(t),t;default:if(typeof e.status=="string")e.then(be,be);else{if(t=W,t!==null&&100<t.shellSuspendCounter)throw Error(S(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,gf(t),t}throw vl=e,ma}}function cl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(vl=l,ma):l}}var vl=null;function yf(){if(vl===null)throw Error(S(459));var t=vl;return vl=null,t}function gf(t){if(t===ma||t===Qi)throw Error(S(483))}var $l=null,Fa=0;function Rn(t){var e=Fa;return Fa+=1,$l===null&&($l=[]),Or($l,t,e)}function Ea(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Un(t,e){throw e.$$typeof===am?Error(S(525)):(t=Object.prototype.toString.call(e),Error(S(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function _r(t){function e(d,r){if(t){var y=d.deletions;y===null?(d.deletions=[r],d.flags|=16):y.push(r)}}function l(d,r){if(!t)return null;for(;r!==null;)e(d,r),r=r.sibling;return null}function a(d){for(var r=new Map;d!==null;)d.key!==null?r.set(d.key,d):r.set(d.index,d),d=d.sibling;return r}function n(d,r){return d=Ee(d,r),d.index=0,d.sibling=null,d}function i(d,r,y){return d.index=y,t?(y=d.alternate,y!==null?(y=y.index,y<r?(d.flags|=67108866,r):y):(d.flags|=67108866,r)):(d.flags|=1048576,r)}function u(d){return t&&d.alternate===null&&(d.flags|=67108866),d}function s(d,r,y,g){return r===null||r.tag!==6?(r=hu(y,d.mode,g),r.return=d,r):(r=n(r,y),r.return=d,r)}function c(d,r,y,g){var A=y.type;return A===Hl?o(d,r,y.props.children,g,y.key):r!==null&&(r.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ne&&cl(A)===r.type)?(r=n(r,y.props),Ea(r,y),r.return=d,r):(r=Vn(y.type,y.key,y.props,null,d.mode,g),Ea(r,y),r.return=d,r)}function f(d,r,y,g){return r===null||r.tag!==4||r.stateNode.containerInfo!==y.containerInfo||r.stateNode.implementation!==y.implementation?(r=du(y,d.mode,g),r.return=d,r):(r=n(r,y.children||[]),r.return=d,r)}function o(d,r,y,g,A){return r===null||r.tag!==7?(r=dl(y,d.mode,g,A),r.return=d,r):(r=n(r,y),r.return=d,r)}function v(d,r,y){if(typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint")return r=hu(""+r,d.mode,y),r.return=d,r;if(typeof r=="object"&&r!==null){switch(r.$$typeof){case Mn:return y=Vn(r.type,r.key,r.props,null,d.mode,y),Ea(y,r),y.return=d,y;case Ma:return r=du(r,d.mode,y),r.return=d,r;case Ne:return r=cl(r),v(d,r,y)}if(Ca(r)||pa(r))return r=dl(r,d.mode,y,null),r.return=d,r;if(typeof r.then=="function")return v(d,Rn(r),y);if(r.$$typeof===pe)return v(d,Nn(d,r),y);Un(d,r)}return null}function h(d,r,y,g){var A=r!==null?r.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return A!==null?null:s(d,r,""+y,g);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Mn:return y.key===A?c(d,r,y,g):null;case Ma:return y.key===A?f(d,r,y,g):null;case Ne:return y=cl(y),h(d,r,y,g)}if(Ca(y)||pa(y))return A!==null?null:o(d,r,y,g,null);if(typeof y.then=="function")return h(d,r,Rn(y),g);if(y.$$typeof===pe)return h(d,r,Nn(d,y),g);Un(d,y)}return null}function m(d,r,y,g,A){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return d=d.get(y)||null,s(r,d,""+g,A);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Mn:return d=d.get(g.key===null?y:g.key)||null,c(r,d,g,A);case Ma:return d=d.get(g.key===null?y:g.key)||null,f(r,d,g,A);case Ne:return g=cl(g),m(d,r,y,g,A)}if(Ca(g)||pa(g))return d=d.get(y)||null,o(r,d,g,A,null);if(typeof g.then=="function")return m(d,r,y,Rn(g),A);if(g.$$typeof===pe)return m(d,r,y,Nn(r,g),A);Un(r,g)}return null}function p(d,r,y,g){for(var A=null,C=null,T=r,O=r=0,M=null;T!==null&&O<y.length;O++){T.index>O?(M=T,T=null):M=T.sibling;var z=h(d,T,y[O],g);if(z===null){T===null&&(T=M);break}t&&T&&z.alternate===null&&e(d,T),r=i(z,r,O),C===null?A=z:C.sibling=z,C=z,T=M}if(O===y.length)return l(d,T),X&&ye(d,O),A;if(T===null){for(;O<y.length;O++)T=v(d,y[O],g),T!==null&&(r=i(T,r,O),C===null?A=T:C.sibling=T,C=T);return X&&ye(d,O),A}for(T=a(T);O<y.length;O++)M=m(T,d,O,y[O],g),M!==null&&(t&&M.alternate!==null&&T.delete(M.key===null?O:M.key),r=i(M,r,O),C===null?A=M:C.sibling=M,C=M);return t&&T.forEach(function(B){return e(d,B)}),X&&ye(d,O),A}function b(d,r,y,g){if(y==null)throw Error(S(151));for(var A=null,C=null,T=r,O=r=0,M=null,z=y.next();T!==null&&!z.done;O++,z=y.next()){T.index>O?(M=T,T=null):M=T.sibling;var B=h(d,T,z.value,g);if(B===null){T===null&&(T=M);break}t&&T&&B.alternate===null&&e(d,T),r=i(B,r,O),C===null?A=B:C.sibling=B,C=B,T=M}if(z.done)return l(d,T),X&&ye(d,O),A;if(T===null){for(;!z.done;O++,z=y.next())z=v(d,z.value,g),z!==null&&(r=i(z,r,O),C===null?A=z:C.sibling=z,C=z);return X&&ye(d,O),A}for(T=a(T);!z.done;O++,z=y.next())z=m(T,d,O,z.value,g),z!==null&&(t&&z.alternate!==null&&T.delete(z.key===null?O:z.key),r=i(z,r,O),C===null?A=z:C.sibling=z,C=z);return t&&T.forEach(function(k){return e(d,k)}),X&&ye(d,O),A}function E(d,r,y,g){if(typeof y=="object"&&y!==null&&y.type===Hl&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Mn:t:{for(var A=y.key;r!==null;){if(r.key===A){if(A=y.type,A===Hl){if(r.tag===7){l(d,r.sibling),g=n(r,y.props.children),g.return=d,d=g;break t}}else if(r.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ne&&cl(A)===r.type){l(d,r.sibling),g=n(r,y.props),Ea(g,y),g.return=d,d=g;break t}l(d,r);break}else e(d,r);r=r.sibling}y.type===Hl?(g=dl(y.props.children,d.mode,g,y.key),g.return=d,d=g):(g=Vn(y.type,y.key,y.props,null,d.mode,g),Ea(g,y),g.return=d,d=g)}return u(d);case Ma:t:{for(A=y.key;r!==null;){if(r.key===A)if(r.tag===4&&r.stateNode.containerInfo===y.containerInfo&&r.stateNode.implementation===y.implementation){l(d,r.sibling),g=n(r,y.children||[]),g.return=d,d=g;break t}else{l(d,r);break}else e(d,r);r=r.sibling}g=du(y,d.mode,g),g.return=d,d=g}return u(d);case Ne:return y=cl(y),E(d,r,y,g)}if(Ca(y))return p(d,r,y,g);if(pa(y)){if(A=pa(y),typeof A!="function")throw Error(S(150));return y=A.call(y),b(d,r,y,g)}if(typeof y.then=="function")return E(d,r,Rn(y),g);if(y.$$typeof===pe)return E(d,r,Nn(d,y),g);Un(d,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,r!==null&&r.tag===6?(l(d,r.sibling),g=n(r,y),g.return=d,d=g):(l(d,r),g=hu(y,d.mode,g),g.return=d,d=g),u(d)):l(d,r)}return function(d,r,y,g){try{Fa=0;var A=E(d,r,y,g);return $l=null,A}catch(T){if(T===ma||T===Qi)throw T;var C=Yt(29,T,null,d.mode);return C.lanes=g,C.return=d,C}finally{}}}var bl=_r(!0),Dr=_r(!1),Re=!1;function ic(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ss(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ve(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ke(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,G&2){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=oi(t),Er(t,null,l),e}return Gi(t,a,e,l),oi(t)}function Ba(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Wo(t,l)}}function vu(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,l=l.next}while(l!==null);i===null?n=i=e:i=i.next=e}else n=i=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var cs=!1;function La(){if(cs){var t=kl;if(t!==null)throw t}}function Ya(t,e,l,a){cs=!1;var n=t.updateQueue;Re=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var c=s,f=c.next;c.next=null,u===null?i=f:u.next=f,u=c;var o=t.alternate;o!==null&&(o=o.updateQueue,s=o.lastBaseUpdate,s!==u&&(s===null?o.firstBaseUpdate=f:s.next=f,o.lastBaseUpdate=c))}if(i!==null){var v=n.baseState;u=0,o=f=c=null,s=i;do{var h=s.lane&-536870913,m=h!==s.lane;if(m?(q&h)===h:(a&h)===h){h!==0&&h===la&&(cs=!0),o!==null&&(o=o.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});t:{var p=t,b=s;h=e;var E=l;switch(b.tag){case 1:if(p=b.payload,typeof p=="function"){v=p.call(E,v,h);break t}v=p;break t;case 3:p.flags=p.flags&-65537|128;case 0:if(p=b.payload,h=typeof p=="function"?p.call(E,v,h):p,h==null)break t;v=tt({},v,h);break t;case 2:Re=!0}}h=s.callback,h!==null&&(t.flags|=64,m&&(t.flags|=8192),m=n.callbacks,m===null?n.callbacks=[h]:m.push(h))}else m={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},o===null?(f=o=m,c=v):o=o.next=m,u|=h;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;m=s,s=m.next,m.next=null,n.lastBaseUpdate=m,n.shared.pending=null}}while(!0);o===null&&(c=v),n.baseState=c,n.firstBaseUpdate=f,n.lastBaseUpdate=o,i===null&&(n.shared.lanes=0),el|=u,t.lanes=u,t.memoizedState=v}}function Nr(t,e){if(typeof t!="function")throw Error(S(191,t));t.call(e)}function Rr(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Nr(l[t],e)}var aa=fe(null),mi=fe(0);function pf(t,e){t=Oe,$(mi,t),$(aa,e),Oe=t|e.baseLanes}function fs(){$(mi,Oe),$(aa,aa.current)}function uc(){Oe=mi.current,gt(aa),gt(mi)}var Vt=fe(null),It=null;function je(t){var e=t.alternate;$(ut,ut.current&1),$(Vt,t),It===null&&(e===null||aa.current!==null||e.memoizedState!==null)&&(It=t)}function os(t){$(ut,ut.current),$(Vt,t),It===null&&(It=t)}function Ur(t){t.tag===22?($(ut,ut.current),$(Vt,t),It===null&&(It=t)):Be()}function Be(){$(ut,ut.current),$(Vt,Vt.current)}function Lt(t){gt(Vt),It===t&&(It=null),gt(ut)}var ut=fe(0);function vi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||_s(l)||Ds(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Me=0,R=null,J=null,ft=null,yi=!1,Fl=!1,Sl=!1,gi=0,Pa=0,Pl=null,pv=0;function at(){throw Error(S(321))}function sc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!wt(t[l],e[l]))return!1;return!0}function cc(t,e,l,a,n,i){return Me=i,R=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?oh:bc,Sl=!1,i=l(a,n),Sl=!1,Fl&&(i=jr(e,l,a,n)),Hr(t),i}function Hr(t){D.H=Ia;var e=J!==null&&J.next!==null;if(Me=0,ft=J=R=null,yi=!1,Pa=0,Pl=null,e)throw Error(S(300));t===null||ht||(t=t.dependencies,t!==null&&hi(t)&&(ht=!0))}function jr(t,e,l,a){R=t;var n=0;do{if(Fl&&(Pl=null),Pa=0,Fl=!1,25<=n)throw Error(S(301));if(n+=1,ft=J=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}D.H=rh,i=e(l,a)}while(Fl);return i}function bv(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?mn(e):e,t=t.useState()[0],(J!==null?J.memoizedState:null)!==t&&(R.flags|=1024),e}function fc(){var t=gi!==0;return gi=0,t}function oc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function rc(t){if(yi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}yi=!1}Me=0,ft=J=R=null,Fl=!1,Pa=gi=0,Pl=null}function Mt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?R.memoizedState=ft=t:ft=ft.next=t,ft}function st(){if(J===null){var t=R.alternate;t=t!==null?t.memoizedState:null}else t=J.next;var e=ft===null?R.memoizedState:ft.next;if(e!==null)ft=e,J=t;else{if(t===null)throw R.alternate===null?Error(S(467)):Error(S(310));J=t,t={memoizedState:J.memoizedState,baseState:J.baseState,baseQueue:J.baseQueue,queue:J.queue,next:null},ft===null?R.memoizedState=ft=t:ft=ft.next=t}return ft}function Zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mn(t){var e=Pa;return Pa+=1,Pl===null&&(Pl=[]),t=Or(Pl,t,e),e=R,(ft===null?e.memoizedState:ft.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?oh:bc),t}function wi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return mn(t);if(t.$$typeof===pe)return Tt(t)}throw Error(S(438,String(t)))}function hc(t){var e=null,l=R.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=R.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Zi(),R.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=nm;return e.index++,l}function Ce(t,e){return typeof e=="function"?e(t):e}function Jn(t){var e=st();return dc(e,J,t)}function dc(t,e,l){var a=t.queue;if(a===null)throw Error(S(311));a.lastRenderedReducer=l;var n=t.baseQueue,i=a.pending;if(i!==null){if(n!==null){var u=n.next;n.next=i.next,i.next=u}e.baseQueue=n=i,a.pending=null}if(i=t.baseState,n===null)t.memoizedState=i;else{e=n.next;var s=u=null,c=null,f=e,o=!1;do{var v=f.lane&-536870913;if(v!==f.lane?(q&v)===v:(Me&v)===v){var h=f.revertLane;if(h===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),v===la&&(o=!0);else if((Me&h)===h){f=f.next,h===la&&(o=!0);continue}else v={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},c===null?(s=c=v,u=i):c=c.next=v,R.lanes|=h,el|=h;v=f.action,Sl&&l(i,v),i=f.hasEagerState?f.eagerState:l(i,v)}else h={lane:v,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},c===null?(s=c=h,u=i):c=c.next=h,R.lanes|=v,el|=v;f=f.next}while(f!==null&&f!==e);if(c===null?u=i:c.next=s,!wt(i,t.memoizedState)&&(ht=!0,o&&(l=kl,l!==null)))throw l;t.memoizedState=i,t.baseState=u,t.baseQueue=c,a.lastRenderedState=i}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function yu(t){var e=st(),l=e.queue;if(l===null)throw Error(S(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,i=e.memoizedState;if(n!==null){l.pending=null;var u=n=n.next;do i=t(i,u.action),u=u.next;while(u!==n);wt(i,e.memoizedState)||(ht=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,a]}function Br(t,e,l){var a=R,n=st(),i=X;if(i){if(l===void 0)throw Error(S(407));l=l()}else l=e();var u=!wt((J||n).memoizedState,l);if(u&&(n.memoizedState=l,ht=!0),n=n.queue,mc(qr.bind(null,a,n,t),[t]),n.getSnapshot!==e||u||ft!==null&&ft.memoizedState.tag&1){if(a.flags|=2048,na(9,{destroy:void 0},Yr.bind(null,a,n,l,e),null),W===null)throw Error(S(349));i||Me&127||Lr(a,e,l)}return l}function Lr(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=R.updateQueue,e===null?(e=Zi(),R.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Yr(t,e,l,a){e.value=l,e.getSnapshot=a,Xr(e)&&Gr(t)}function qr(t,e,l){return l(function(){Xr(e)&&Gr(t)})}function Xr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!wt(t,l)}catch{return!0}}function Gr(t){var e=Ml(t,2);e!==null&&Ut(e,t,2)}function rs(t){var e=Mt();if(typeof t=="function"){var l=t;if(t=l(),Sl){Ye(!0);try{l()}finally{Ye(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ce,lastRenderedState:t},e}function Qr(t,e,l,a){return t.baseState=l,dc(t,J,typeof a=="function"?a:Ce)}function Sv(t,e,l,a,n){if(Ki(t))throw Error(S(485));if(t=e.action,t!==null){var i={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};D.T!==null?l(!0):i.isTransition=!1,a(i),l=e.pending,l===null?(i.next=e.pending=i,Zr(e,i)):(i.next=l.next,e.pending=l.next=i)}}function Zr(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var i=D.T,u={};D.T=u;try{var s=l(n,a),c=D.S;c!==null&&c(u,s),bf(t,e,s)}catch(f){hs(t,e,f)}finally{i!==null&&u.types!==null&&(i.types=u.types),D.T=i}}else try{i=l(n,a),bf(t,e,i)}catch(f){hs(t,e,f)}}function bf(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Sf(t,e,a)},function(a){return hs(t,e,a)}):Sf(t,e,l)}function Sf(t,e,l){e.status="fulfilled",e.value=l,wr(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Zr(t,l)))}function hs(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,wr(e),e=e.next;while(e!==a)}t.action=null}function wr(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Vr(t,e){return e}function Ef(t,e){if(X){var l=W.formState;if(l!==null){t:{var a=R;if(X){if(P){e:{for(var n=P,i=Pt;n.nodeType!==8;){if(!i){n=null;break e}if(n=te(n.nextSibling),n===null){n=null;break e}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){P=te(n.nextSibling),a=n.data==="F!";break t}}Ie(a)}a=!1}a&&(e=l[0])}}return l=Mt(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:e},l.queue=a,l=sh.bind(null,R,a),a.dispatch=l,a=rs(!1),i=pc.bind(null,R,!1,a.queue),a=Mt(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Sv.bind(null,R,n,i,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function Tf(t){var e=st();return Kr(e,J,t)}function Kr(t,e,l){if(e=dc(t,e,Vr)[0],t=Jn(Ce)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=mn(e)}catch(u){throw u===ma?Qi:u}else a=e;e=st();var n=e.queue,i=n.dispatch;return l!==e.memoizedState&&(R.flags|=2048,na(9,{destroy:void 0},Ev.bind(null,n,l),null)),[a,i,t]}function Ev(t,e){t.action=e}function zf(t){var e=st(),l=J;if(l!==null)return Kr(e,l,t);st(),e=e.memoizedState,l=st();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function na(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=R.updateQueue,e===null&&(e=Zi(),R.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Jr(){return st().memoizedState}function Wn(t,e,l,a){var n=Mt();R.flags|=t,n.memoizedState=na(1|e,{destroy:void 0},l,a===void 0?null:a)}function Vi(t,e,l,a){var n=st();a=a===void 0?null:a;var i=n.memoizedState.inst;J!==null&&a!==null&&sc(a,J.memoizedState.deps)?n.memoizedState=na(e,i,l,a):(R.flags|=t,n.memoizedState=na(1|e,i,l,a))}function Af(t,e){Wn(8390656,8,t,e)}function mc(t,e){Vi(2048,8,t,e)}function Tv(t){R.flags|=4;var e=R.updateQueue;if(e===null)e=Zi(),R.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Wr(t){var e=st().memoizedState;return Tv({ref:e,nextImpl:t}),function(){if(G&2)throw Error(S(440));return e.impl.apply(void 0,arguments)}}function kr(t,e){return Vi(4,2,t,e)}function $r(t,e){return Vi(4,4,t,e)}function Fr(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Pr(t,e,l){l=l!=null?l.concat([t]):null,Vi(4,4,Fr.bind(null,e,t),l)}function vc(){}function Ir(t,e){var l=st();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&sc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function th(t,e){var l=st();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&sc(e,a[1]))return a[0];if(a=t(),Sl){Ye(!0);try{t()}finally{Ye(!1)}}return l.memoizedState=[a,e],a}function yc(t,e,l){return l===void 0||Me&1073741824&&!(q&261930)?t.memoizedState=e:(t.memoizedState=l,t=Qh(),R.lanes|=t,el|=t,l)}function eh(t,e,l,a){return wt(l,e)?l:aa.current!==null?(t=yc(t,l,a),wt(t,e)||(ht=!0),t):!(Me&42)||Me&1073741824&&!(q&261930)?(ht=!0,t.memoizedState=l):(t=Qh(),R.lanes|=t,el|=t,e)}function lh(t,e,l,a,n){var i=Q.p;Q.p=i!==0&&8>i?i:8;var u=D.T,s={};D.T=s,pc(t,!1,e,l);try{var c=n(),f=D.S;if(f!==null&&f(s,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var o=gv(c,a);qa(t,e,o,Zt(t))}else qa(t,e,a,Zt(t))}catch(v){qa(t,e,{then:function(){},status:"rejected",reason:v},Zt())}finally{Q.p=i,u!==null&&s.types!==null&&(u.types=s.types),D.T=u}}function zv(){}function ds(t,e,l,a){if(t.tag!==5)throw Error(S(476));var n=ah(t).queue;lh(t,n,e,hl,l===null?zv:function(){return nh(t),l(a)})}function ah(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:hl,baseState:hl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ce,lastRenderedState:hl},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ce,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function nh(t){var e=ah(t);e.next===null&&(e=t.alternate.memoizedState),qa(t,e.next.queue,{},Zt())}function gc(){return Tt(ln)}function ih(){return st().memoizedState}function uh(){return st().memoizedState}function Av(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Zt();t=Ve(l);var a=Ke(e,t,l);a!==null&&(Ut(a,e,l),Ba(a,e,l)),e={cache:lc()},t.payload=e;return}e=e.return}}function Mv(t,e,l){var a=Zt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(t)?ch(e,l):(l=Ps(t,e,l,a),l!==null&&(Ut(l,t,a),fh(l,e,a)))}function sh(t,e,l){var a=Zt();qa(t,e,l,a)}function qa(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ki(t))ch(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var u=e.lastRenderedState,s=i(u,l);if(n.hasEagerState=!0,n.eagerState=s,wt(s,u))return Gi(t,e,n,0),W===null&&Xi(),!1}catch{}finally{}if(l=Ps(t,e,n,a),l!==null)return Ut(l,t,a),fh(l,e,a),!0}return!1}function pc(t,e,l,a){if(a={lane:2,revertLane:xc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(t)){if(e)throw Error(S(479))}else e=Ps(t,l,a,2),e!==null&&Ut(e,t,2)}function Ki(t){var e=t.alternate;return t===R||e!==null&&e===R}function ch(t,e){Fl=yi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function fh(t,e,l){if(l&4194048){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Wo(t,l)}}var Ia={readContext:Tt,use:wi,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};Ia.useEffectEvent=at;var oh={readContext:Tt,use:wi,useCallback:function(t,e){return Mt().memoizedState=[t,e===void 0?null:e],t},useContext:Tt,useEffect:Af,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Wn(4194308,4,Fr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Wn(4194308,4,t,e)},useInsertionEffect:function(t,e){Wn(4,2,t,e)},useMemo:function(t,e){var l=Mt();e=e===void 0?null:e;var a=t();if(Sl){Ye(!0);try{t()}finally{Ye(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=Mt();if(l!==void 0){var n=l(e);if(Sl){Ye(!0);try{l(e)}finally{Ye(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Mv.bind(null,R,t),[a.memoizedState,t]},useRef:function(t){var e=Mt();return t={current:t},e.memoizedState=t},useState:function(t){t=rs(t);var e=t.queue,l=sh.bind(null,R,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:vc,useDeferredValue:function(t,e){var l=Mt();return yc(l,t,e)},useTransition:function(){var t=rs(!1);return t=lh.bind(null,R,t.queue,!0,!1),Mt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=R,n=Mt();if(X){if(l===void 0)throw Error(S(407));l=l()}else{if(l=e(),W===null)throw Error(S(349));q&127||Lr(a,e,l)}n.memoizedState=l;var i={value:l,getSnapshot:e};return n.queue=i,Af(qr.bind(null,a,i,t),[t]),a.flags|=2048,na(9,{destroy:void 0},Yr.bind(null,a,i,l,e),null),l},useId:function(){var t=Mt(),e=W.identifierPrefix;if(X){var l=ue,a=ie;l=(a&~(1<<32-Qt(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=gi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=pv++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:gc,useFormState:Ef,useActionState:Ef,useOptimistic:function(t){var e=Mt();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=pc.bind(null,R,!0,l),l.dispatch=e,[t,e]},useMemoCache:hc,useCacheRefresh:function(){return Mt().memoizedState=Av.bind(null,R)},useEffectEvent:function(t){var e=Mt(),l={impl:t};return e.memoizedState=l,function(){if(G&2)throw Error(S(440));return l.impl.apply(void 0,arguments)}}},bc={readContext:Tt,use:wi,useCallback:Ir,useContext:Tt,useEffect:mc,useImperativeHandle:Pr,useInsertionEffect:kr,useLayoutEffect:$r,useMemo:th,useReducer:Jn,useRef:Jr,useState:function(){return Jn(Ce)},useDebugValue:vc,useDeferredValue:function(t,e){var l=st();return eh(l,J.memoizedState,t,e)},useTransition:function(){var t=Jn(Ce)[0],e=st().memoizedState;return[typeof t=="boolean"?t:mn(t),e]},useSyncExternalStore:Br,useId:ih,useHostTransitionStatus:gc,useFormState:Tf,useActionState:Tf,useOptimistic:function(t,e){var l=st();return Qr(l,J,t,e)},useMemoCache:hc,useCacheRefresh:uh};bc.useEffectEvent=Wr;var rh={readContext:Tt,use:wi,useCallback:Ir,useContext:Tt,useEffect:mc,useImperativeHandle:Pr,useInsertionEffect:kr,useLayoutEffect:$r,useMemo:th,useReducer:yu,useRef:Jr,useState:function(){return yu(Ce)},useDebugValue:vc,useDeferredValue:function(t,e){var l=st();return J===null?yc(l,t,e):eh(l,J.memoizedState,t,e)},useTransition:function(){var t=yu(Ce)[0],e=st().memoizedState;return[typeof t=="boolean"?t:mn(t),e]},useSyncExternalStore:Br,useId:ih,useHostTransitionStatus:gc,useFormState:zf,useActionState:zf,useOptimistic:function(t,e){var l=st();return J!==null?Qr(l,J,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:hc,useCacheRefresh:uh};rh.useEffectEvent=Wr;function gu(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:tt({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var ms={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=Zt(),n=Ve(a);n.payload=e,l!=null&&(n.callback=l),e=Ke(t,n,a),e!==null&&(Ut(e,t,a),Ba(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=Zt(),n=Ve(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=Ke(t,n,a),e!==null&&(Ut(e,t,a),Ba(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Zt(),a=Ve(l);a.tag=2,e!=null&&(a.callback=e),e=Ke(t,a,l),e!==null&&(Ut(e,t,l),Ba(e,t,l))}};function Mf(t,e,l,a,n,i,u){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,u):e.prototype&&e.prototype.isPureReactComponent?!Wa(l,a)||!Wa(n,i):!0}function Cf(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&ms.enqueueReplaceState(e,e.state,null)}function El(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=tt({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function hh(t){fi(t)}function dh(t){console.error(t)}function mh(t){fi(t)}function pi(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function xf(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function vs(t,e,l){return l=Ve(l),l.tag=3,l.payload={element:null},l.callback=function(){pi(t,e)},l}function vh(t){return t=Ve(t),t.tag=3,t}function yh(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;t.payload=function(){return n(i)},t.callback=function(){xf(e,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(t.callback=function(){xf(e,l,a),typeof n!="function"&&(Je===null?Je=new Set([this]):Je.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function Cv(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&da(e,l,n,!0),l=Vt.current,l!==null){switch(l.tag){case 31:case 13:return It===null?zi():l.alternate===null&&nt===0&&(nt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===di?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),Ou(t,a,n)),!1;case 22:return l.flags|=65536,a===di?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),Ou(t,a,n)),!1}throw Error(S(435,l.tag))}return Ou(t,a,n),zi(),!1}if(X)return e=Vt.current,e!==null?(!(e.flags&65536)&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==ls&&(t=Error(S(422),{cause:a}),$a(Ft(t,l)))):(a!==ls&&(e=Error(S(423),{cause:a}),$a(Ft(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=Ft(a,l),n=vs(t.stateNode,a,n),vu(t,n),nt!==4&&(nt=2)),!1;var i=Error(S(520),{cause:a});if(i=Ft(i,l),Qa===null?Qa=[i]:Qa.push(i),nt!==4&&(nt=2),e===null)return!0;a=Ft(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=vs(l.stateNode,a,t),vu(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Je===null||!Je.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=vh(n),yh(n,t,l,a),vu(l,n),!1}l=l.return}while(l!==null);return!1}var Sc=Error(S(461)),ht=!1;function bt(t,e,l,a){e.child=t===null?Dr(e,null,l,a):bl(e,t.child,l,a)}function Of(t,e,l,a,n){l=l.render;var i=e.ref;if("ref"in a){var u={};for(var s in a)s!=="ref"&&(u[s]=a[s])}else u=a;return pl(e),a=cc(t,e,l,u,i,n),s=fc(),t!==null&&!ht?(oc(t,e,n),xe(t,e,n)):(X&&s&&tc(e),e.flags|=1,bt(t,e,a,n),e.child)}function _f(t,e,l,a,n){if(t===null){var i=l.type;return typeof i=="function"&&!Is(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,gh(t,e,i,a,n)):(t=Vn(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Ec(t,n)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:Wa,l(u,a)&&t.ref===e.ref)return xe(t,e,n)}return e.flags|=1,t=Ee(i,a),t.ref=e.ref,t.return=e,e.child=t}function gh(t,e,l,a,n){if(t!==null){var i=t.memoizedProps;if(Wa(i,a)&&t.ref===e.ref)if(ht=!1,e.pendingProps=a=i,Ec(t,n))t.flags&131072&&(ht=!0);else return e.lanes=t.lanes,xe(t,e,n)}return ys(t,e,l,a,n)}function ph(t,e,l,a){var n=a.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(e.flags&128){if(i=i!==null?i.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,e.child=null;return Df(t,e,i,l,a)}if(l&536870912)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Kn(e,i!==null?i.cachePool:null),i!==null?pf(e,i):fs(),Ur(e);else return a=e.lanes=536870912,Df(t,e,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Kn(e,i.cachePool),pf(e,i),Be(),e.memoizedState=null):(t!==null&&Kn(e,null),fs(),Be());return bt(t,e,n,l),e.child}function Oa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Df(t,e,l,a,n){var i=ac();return i=i===null?null:{parent:rt._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&Kn(e,null),fs(),Ur(e),t!==null&&da(t,e,a,!0),e.childLanes=n,null}function kn(t,e){return e=bi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Nf(t,e,l){return bl(e,t.child,null,l),t=kn(e,e.pendingProps),t.flags|=2,Lt(e),e.memoizedState=null,t}function xv(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(X){if(a.mode==="hidden")return t=kn(e,a),e.lanes=536870912,Oa(null,t);if(os(e),(t=P)?(t=od(t,Pt),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Pe!==null?{id:ie,overflow:ue}:null,retryLane:536870912,hydrationErrors:null},l=zr(t),l.return=e,e.child=l,Et=e,P=null)):t=null,t===null)throw Ie(e);return e.lanes=536870912,null}return kn(e,a)}var i=t.memoizedState;if(i!==null){var u=i.dehydrated;if(os(e),n)if(e.flags&256)e.flags&=-257,e=Nf(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(S(558));else if(ht||da(t,e,l,!1),n=(l&t.childLanes)!==0,ht||n){if(a=W,a!==null&&(u=ko(a,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,Ml(t,u),Ut(a,t,u),Sc;zi(),e=Nf(t,e,l)}else t=i.treeContext,P=te(u.nextSibling),Et=e,X=!0,we=null,Pt=!1,t!==null&&Mr(e,t),e=kn(e,a),e.flags|=4096;return e}return t=Ee(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function $n(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(S(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function ys(t,e,l,a,n){return pl(e),l=cc(t,e,l,a,void 0,n),a=fc(),t!==null&&!ht?(oc(t,e,n),xe(t,e,n)):(X&&a&&tc(e),e.flags|=1,bt(t,e,l,n),e.child)}function Rf(t,e,l,a,n,i){return pl(e),e.updateQueue=null,l=jr(e,a,l,n),Hr(t),a=fc(),t!==null&&!ht?(oc(t,e,i),xe(t,e,i)):(X&&a&&tc(e),e.flags|=1,bt(t,e,l,i),e.child)}function Uf(t,e,l,a,n){if(pl(e),e.stateNode===null){var i=Ql,u=l.contextType;typeof u=="object"&&u!==null&&(i=Tt(u)),i=new l(a,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ms,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=a,i.state=e.memoizedState,i.refs={},ic(e),u=l.contextType,i.context=typeof u=="object"&&u!==null?Tt(u):Ql,i.state=e.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(gu(e,l,u,a),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&ms.enqueueReplaceState(i,i.state,null),Ya(e,a,i,n),La(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){i=e.stateNode;var s=e.memoizedProps,c=El(l,s);i.props=c;var f=i.context,o=l.contextType;u=Ql,typeof o=="object"&&o!==null&&(u=Tt(o));var v=l.getDerivedStateFromProps;o=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=e.pendingProps!==s,o||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||f!==u)&&Cf(e,i,a,u),Re=!1;var h=e.memoizedState;i.state=h,Ya(e,a,i,n),La(),f=e.memoizedState,s||h!==f||Re?(typeof v=="function"&&(gu(e,l,v,a),f=e.memoizedState),(c=Re||Mf(e,l,c,a,h,f,u))?(o||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"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=f),i.props=a,i.state=f,i.context=u,a=c):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{i=e.stateNode,ss(t,e),u=e.memoizedProps,o=El(l,u),i.props=o,v=e.pendingProps,h=i.context,f=l.contextType,c=Ql,typeof f=="object"&&f!==null&&(c=Tt(f)),s=l.getDerivedStateFromProps,(f=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==v||h!==c)&&Cf(e,i,a,c),Re=!1,h=e.memoizedState,i.state=h,Ya(e,a,i,n),La();var m=e.memoizedState;u!==v||h!==m||Re||t!==null&&t.dependencies!==null&&hi(t.dependencies)?(typeof s=="function"&&(gu(e,l,s,a),m=e.memoizedState),(o=Re||Mf(e,l,o,a,h,m,c)||t!==null&&t.dependencies!==null&&hi(t.dependencies))?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,m,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,m,c)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=m),i.props=a,i.state=m,i.context=c,a=o):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),a=!1)}return i=a,$n(t,e),a=(e.flags&128)!==0,i||a?(i=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&a?(e.child=bl(e,t.child,null,n),e.child=bl(e,null,l,n)):bt(t,e,l,n),e.memoizedState=i.state,t=e.child):t=xe(t,e,n),t}function Hf(t,e,l,a){return gl(),e.flags|=256,bt(t,e,l,a),e.child}var pu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bu(t){return{baseLanes:t,cachePool:xr()}}function Su(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=qt),t}function bh(t,e,l){var a=e.pendingProps,n=!1,i=(e.flags&128)!==0,u;if((u=i)||(u=t!==null&&t.memoizedState===null?!1:(ut.current&2)!==0),u&&(n=!0,e.flags&=-129),u=(e.flags&32)!==0,e.flags&=-33,t===null){if(X){if(n?je(e):Be(),(t=P)?(t=od(t,Pt),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Pe!==null?{id:ie,overflow:ue}:null,retryLane:536870912,hydrationErrors:null},l=zr(t),l.return=e,e.child=l,Et=e,P=null)):t=null,t===null)throw Ie(e);return Ds(t)?e.lanes=32:e.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(Be(),n=e.mode,s=bi({mode:"hidden",children:s},n),a=dl(a,n,l,null),s.return=e,a.return=e,s.sibling=a,e.child=s,a=e.child,a.memoizedState=bu(l),a.childLanes=Su(t,u,l),e.memoizedState=pu,Oa(null,a)):(je(e),gs(e,s))}var c=t.memoizedState;if(c!==null&&(s=c.dehydrated,s!==null)){if(i)e.flags&256?(je(e),e.flags&=-257,e=Eu(t,e,l)):e.memoizedState!==null?(Be(),e.child=t.child,e.flags|=128,e=null):(Be(),s=a.fallback,n=e.mode,a=bi({mode:"visible",children:a.children},n),s=dl(s,n,l,null),s.flags|=2,a.return=e,s.return=e,a.sibling=s,e.child=a,bl(e,t.child,null,l),a=e.child,a.memoizedState=bu(l),a.childLanes=Su(t,u,l),e.memoizedState=pu,e=Oa(null,a));else if(je(e),Ds(s)){if(u=s.nextSibling&&s.nextSibling.dataset,u)var f=u.dgst;u=f,a=Error(S(419)),a.stack="",a.digest=u,$a({value:a,source:null,stack:null}),e=Eu(t,e,l)}else if(ht||da(t,e,l,!1),u=(l&t.childLanes)!==0,ht||u){if(u=W,u!==null&&(a=ko(u,l),a!==0&&a!==c.retryLane))throw c.retryLane=a,Ml(t,a),Ut(u,t,a),Sc;_s(s)||zi(),e=Eu(t,e,l)}else _s(s)?(e.flags|=192,e.child=t.child,e=null):(t=c.treeContext,P=te(s.nextSibling),Et=e,X=!0,we=null,Pt=!1,t!==null&&Mr(e,t),e=gs(e,a.children),e.flags|=4096);return e}return n?(Be(),s=a.fallback,n=e.mode,c=t.child,f=c.sibling,a=Ee(c,{mode:"hidden",children:a.children}),a.subtreeFlags=c.subtreeFlags&65011712,f!==null?s=Ee(f,s):(s=dl(s,n,l,null),s.flags|=2),s.return=e,a.return=e,a.sibling=s,e.child=a,Oa(null,a),a=e.child,s=t.child.memoizedState,s===null?s=bu(l):(n=s.cachePool,n!==null?(c=rt._currentValue,n=n.parent!==c?{parent:c,pool:c}:n):n=xr(),s={baseLanes:s.baseLanes|l,cachePool:n}),a.memoizedState=s,a.childLanes=Su(t,u,l),e.memoizedState=pu,Oa(t.child,a)):(je(e),l=t.child,t=l.sibling,l=Ee(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(u=e.deletions,u===null?(e.deletions=[t],e.flags|=16):u.push(t)),e.child=l,e.memoizedState=null,l)}function gs(t,e){return e=bi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function bi(t,e){return t=Yt(22,t,null,e),t.lanes=0,t}function Eu(t,e,l){return bl(e,t.child,null,l),t=gs(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function jf(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),ns(t.return,e,l)}function Tu(t,e,l,a,n,i){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=n,u.treeForkCount=i)}function Sh(t,e,l){var a=e.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var u=ut.current,s=(u&2)!==0;if(s?(u=u&1|2,e.flags|=128):u&=1,$(ut,u),bt(t,e,a,l),a=X?ka:0,!s&&t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&jf(t,l,e);else if(t.tag===19)jf(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&vi(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Tu(e,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&vi(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Tu(e,!0,l,null,i,a);break;case"together":Tu(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function xe(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),el|=e.lanes,!(l&e.childLanes))if(t!==null){if(da(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(S(153));if(e.child!==null){for(t=e.child,l=Ee(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Ee(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Ec(t,e){return t.lanes&e?!0:(t=t.dependencies,!!(t!==null&&hi(t)))}function Ov(t,e,l){switch(e.tag){case 3:ii(e,e.stateNode.containerInfo),He(e,rt,t.memoizedState.cache),gl();break;case 27:case 5:Vu(e);break;case 4:ii(e,e.stateNode.containerInfo);break;case 10:He(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,os(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(je(e),e.flags|=128,null):l&e.child.childLanes?bh(t,e,l):(je(e),t=xe(t,e,l),t!==null?t.sibling:null);je(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(da(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return Sh(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),$(ut,ut.current),a)break;return null;case 22:return e.lanes=0,ph(t,e,l,e.pendingProps);case 24:He(e,rt,t.memoizedState.cache)}return xe(t,e,l)}function Eh(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)ht=!0;else{if(!Ec(t,l)&&!(e.flags&128))return ht=!1,Ov(t,e,l);ht=!!(t.flags&131072)}else ht=!1,X&&e.flags&1048576&&Ar(e,ka,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=cl(e.elementType),e.type=t,typeof t=="function")Is(t)?(a=El(t,a),e.tag=1,e=Uf(null,e,t,a,l)):(e.tag=0,e=ys(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===qs){e.tag=11,e=Of(null,e,t,a,l);break t}else if(n===Xs){e.tag=14,e=_f(null,e,t,a,l);break t}}throw e=Zu(t)||t,Error(S(306,e,""))}}return e;case 0:return ys(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=El(a,e.pendingProps),Uf(t,e,a,n,l);case 3:t:{if(ii(e,e.stateNode.containerInfo),t===null)throw Error(S(387));a=e.pendingProps;var i=e.memoizedState;n=i.element,ss(t,e),Ya(e,a,null,l);var u=e.memoizedState;if(a=u.cache,He(e,rt,a),a!==i.cache&&is(e,[rt],l,!0),La(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=Hf(t,e,a,l);break t}else if(a!==n){n=Ft(Error(S(424)),e),$a(n),e=Hf(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(P=te(t.firstChild),Et=e,X=!0,we=null,Pt=!0,l=Dr(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(gl(),a===n){e=xe(t,e,l);break t}bt(t,e,a,l)}e=e.child}return e;case 26:return $n(t,e),t===null?(l=eo(e.type,null,e.pendingProps,null))?e.memoizedState=l:X||(l=e.type,t=e.pendingProps,a=xi(Ze.current).createElement(l),a[St]=e,a[Ht]=t,zt(a,l,t),yt(a),e.stateNode=a):e.memoizedState=eo(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Vu(e),t===null&&X&&(a=e.stateNode=rd(e.type,e.pendingProps,Ze.current),Et=e,Pt=!0,n=P,al(e.type)?(Ns=n,P=te(a.firstChild)):P=n),bt(t,e,e.pendingProps.children,l),$n(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&X&&((n=a=P)&&(a=n0(a,e.type,e.pendingProps,Pt),a!==null?(e.stateNode=a,Et=e,P=te(a.firstChild),Pt=!1,n=!0):n=!1),n||Ie(e)),Vu(e),n=e.type,i=e.pendingProps,u=t!==null?t.memoizedProps:null,a=i.children,xs(n,i)?a=null:u!==null&&xs(n,u)&&(e.flags|=32),e.memoizedState!==null&&(n=cc(t,e,bv,null,null,l),ln._currentValue=n),$n(t,e),bt(t,e,a,l),e.child;case 6:return t===null&&X&&((t=l=P)&&(l=i0(l,e.pendingProps,Pt),l!==null?(e.stateNode=l,Et=e,P=null,t=!0):t=!1),t||Ie(e)),null;case 13:return bh(t,e,l);case 4:return ii(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=bl(e,null,a,l):bt(t,e,a,l),e.child;case 11:return Of(t,e,e.type,e.pendingProps,l);case 7:return bt(t,e,e.pendingProps,l),e.child;case 8:return bt(t,e,e.pendingProps.children,l),e.child;case 12:return bt(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,He(e,e.type,a.value),bt(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,pl(e),n=Tt(n),a=a(n),e.flags|=1,bt(t,e,a,l),e.child;case 14:return _f(t,e,e.type,e.pendingProps,l);case 15:return gh(t,e,e.type,e.pendingProps,l);case 19:return Sh(t,e,l);case 31:return xv(t,e,l);case 22:return ph(t,e,l,e.pendingProps);case 24:return pl(e),a=Tt(rt),t===null?(n=ac(),n===null&&(n=W,i=lc(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),e.memoizedState={parent:a,cache:n},ic(e),He(e,rt,n)):(t.lanes&l&&(ss(t,e),Ya(e,null,null,l),La()),n=t.memoizedState,i=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),He(e,rt,a)):(a=i.cache,He(e,rt,a),a!==n.cache&&is(e,[rt],l,!0))),bt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(S(156,e.tag))}function he(t){t.flags|=4}function zu(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(Vh())t.flags|=8192;else throw vl=di,nc}else t.flags&=-16777217}function Bf(t,e){if(e.type!=="stylesheet"||e.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!md(e))if(Vh())t.flags|=8192;else throw vl=di,nc}function Hn(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ko():536870912,t.lanes|=e,ia|=e)}function Ta(t,e){if(!X)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function F(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function _v(t,e,l){var a=e.pendingProps;switch(ec(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return F(e),null;case 1:return F(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Te(rt),Il(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(xl(e)?he(e):t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,mu())),F(e),null;case 26:var n=e.type,i=e.memoizedState;return t===null?(he(e),i!==null?(F(e),Bf(e,i)):(F(e),zu(e,n,null,a,l))):i?i!==t.memoizedState?(he(e),F(e),Bf(e,i)):(F(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&he(e),F(e),zu(e,n,t,a,l)),null;case 27:if(ui(e),l=Ze.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&he(e);else{if(!a){if(e.stateNode===null)throw Error(S(166));return F(e),null}t=ce.current,xl(e)?rf(e):(t=rd(n,a,l),e.stateNode=t,he(e))}return F(e),null;case 5:if(ui(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&he(e);else{if(!a){if(e.stateNode===null)throw Error(S(166));return F(e),null}if(i=ce.current,xl(e))rf(e);else{var u=xi(Ze.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?u.createElement(n,{is:a.is}):u.createElement(n)}}i[St]=e,i[Ht]=a;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}e.stateNode=i;t:switch(zt(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&he(e)}}return F(e),zu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&he(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(S(166));if(t=Ze.current,xl(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Et,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[St]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||sd(t.nodeValue,l)),t||Ie(e,!0)}else t=xi(t).createTextNode(a),t[St]=e,e.stateNode=t}return F(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=xl(e),l!==null){if(t===null){if(!a)throw Error(S(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(557));t[St]=e}else gl(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;F(e),t=!1}else l=mu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Lt(e),e):(Lt(e),null);if(e.flags&128)throw Error(S(558))}return F(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=xl(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(S(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(S(317));n[St]=e}else gl(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;F(e),n=!1}else n=mu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(Lt(e),e):(Lt(e),null)}return Lt(e),e.flags&128?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Hn(e,e.updateQueue),F(e),null);case 4:return Il(),t===null&&Oc(e.stateNode.containerInfo),F(e),null;case 10:return Te(e.type),F(e),null;case 19:if(gt(ut),a=e.memoizedState,a===null)return F(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)Ta(a,!1);else{if(nt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(i=vi(t),i!==null){for(e.flags|=128,Ta(a,!1),t=i.updateQueue,e.updateQueue=t,Hn(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Tr(l,t),l=l.sibling;return $(ut,ut.current&1|2),X&&ye(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&Xt()>Ei&&(e.flags|=128,n=!0,Ta(a,!1),e.lanes=4194304)}else{if(!n)if(t=vi(i),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Hn(e,t),Ta(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!X)return F(e),null}else 2*Xt()-a.renderingStartTime>Ei&&l!==536870912&&(e.flags|=128,n=!0,Ta(a,!1),e.lanes=4194304);a.isBackwards?(i.sibling=e.child,e.child=i):(t=a.last,t!==null?t.sibling=i:e.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xt(),t.sibling=null,l=ut.current,$(ut,n?l&1|2:l&1),X&&ye(e,a.treeForkCount),t):(F(e),null);case 22:case 23:return Lt(e),uc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?l&536870912&&!(e.flags&128)&&(F(e),e.subtreeFlags&6&&(e.flags|=8192)):F(e),l=e.updateQueue,l!==null&&Hn(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&gt(ml),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Te(rt),F(e),null;case 25:return null;case 30:return null}throw Error(S(156,e.tag))}function Dv(t,e){switch(ec(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Te(rt),Il(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ui(e),null;case 31:if(e.memoizedState!==null){if(Lt(e),e.alternate===null)throw Error(S(340));gl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Lt(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(S(340));gl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return gt(ut),null;case 4:return Il(),null;case 10:return Te(e.type),null;case 22:case 23:return Lt(e),uc(),t!==null&&gt(ml),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Te(rt),null;case 25:return null;default:return null}}function Th(t,e){switch(ec(e),e.tag){case 3:Te(rt),Il();break;case 26:case 27:case 5:ui(e);break;case 4:Il();break;case 31:e.memoizedState!==null&&Lt(e);break;case 13:Lt(e);break;case 19:gt(ut);break;case 10:Te(e.type);break;case 22:case 23:Lt(e),uc(),t!==null&&gt(ml);break;case 24:Te(rt)}}function vn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var i=l.create,u=l.inst;a=i(),u.destroy=a}l=l.next}while(l!==n)}}catch(s){V(e,e.return,s)}}function tl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&t)===t){var u=a.inst,s=u.destroy;if(s!==void 0){u.destroy=void 0,n=e;var c=l,f=s;try{f()}catch(o){V(n,c,o)}}}a=a.next}while(a!==i)}}catch(o){V(e,e.return,o)}}function zh(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Rr(e,l)}catch(a){V(t,t.return,a)}}}function Ah(t,e,l){l.props=El(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){V(t,e,a)}}function Xa(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){V(t,e,n)}}function se(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){V(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){V(t,e,n)}else l.current=null}function Mh(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){V(t,t.return,n)}}function Au(t,e,l){try{var a=t.stateNode;Pv(a,t.type,l,e),a[Ht]=e}catch(n){V(t,t.return,n)}}function Ch(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&al(t.type)||t.tag===4}function Mu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ch(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&al(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ps(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=be));else if(a!==4&&(a===27&&al(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(ps(t,e,l),t=t.sibling;t!==null;)ps(t,e,l),t=t.sibling}function Si(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&al(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Si(t,e,l),t=t.sibling;t!==null;)Si(t,e,l),t=t.sibling}function xh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);zt(e,a,l),e[St]=t,e[Ht]=l}catch(i){V(t,t.return,i)}}var ge=!1,ot=!1,Cu=!1,Lf=typeof WeakSet=="function"?WeakSet:Set,vt=null;function Nv(t,e){if(t=t.containerInfo,Ms=Ni,t=mr(t),$s(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var u=0,s=-1,c=-1,f=0,o=0,v=t,h=null;e:for(;;){for(var m;v!==l||n!==0&&v.nodeType!==3||(s=u+n),v!==i||a!==0&&v.nodeType!==3||(c=u+a),v.nodeType===3&&(u+=v.nodeValue.length),(m=v.firstChild)!==null;)h=v,v=m;for(;;){if(v===t)break e;if(h===l&&++f===n&&(s=u),h===i&&++o===a&&(c=u),(m=v.nextSibling)!==null)break;v=h,h=v.parentNode}v=m}l=s===-1||c===-1?null:{start:s,end:c}}else l=null}l=l||{start:0,end:0}}else l=null;for(Cs={focusedElem:t,selectionRange:l},Ni=!1,vt=e;vt!==null;)if(e=vt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,vt=t;else for(;vt!==null;){switch(e=vt,i=e.alternate,t=e.flags,e.tag){case 0:if(t&4&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if(t&1024&&i!==null){t=void 0,l=e,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var p=El(l.type,n);t=a.getSnapshotBeforeUpdate(p,i),a.__reactInternalSnapshotBeforeUpdate=t}catch(b){V(l,l.return,b)}}break;case 3:if(t&1024){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Os(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Os(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(S(163))}if(t=e.sibling,t!==null){t.return=e.return,vt=t;break}vt=e.return}}function Oh(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:me(t,l),a&4&&vn(5,l);break;case 1:if(me(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(u){V(l,l.return,u)}else{var n=El(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(u){V(l,l.return,u)}}a&64&&zh(l),a&512&&Xa(l,l.return);break;case 3:if(me(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Rr(t,e)}catch(u){V(l,l.return,u)}}break;case 27:e===null&&a&4&&xh(l);case 26:case 5:me(t,l),e===null&&a&4&&Mh(l),a&512&&Xa(l,l.return);break;case 12:me(t,l);break;case 31:me(t,l),a&4&&Nh(t,l);break;case 13:me(t,l),a&4&&Rh(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Xv.bind(null,l),u0(t,l))));break;case 22:if(a=l.memoizedState!==null||ge,!a){e=e!==null&&e.memoizedState!==null||ot,n=ge;var i=ot;ge=a,(ot=e)&&!i?ve(t,l,(l.subtreeFlags&8772)!==0):me(t,l),ge=n,ot=i}break;case 30:break;default:me(t,l)}}function _h(t){var e=t.alternate;e!==null&&(t.alternate=null,_h(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ws(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var lt=null,Nt=!1;function de(t,e,l){for(l=l.child;l!==null;)Dh(t,e,l),l=l.sibling}function Dh(t,e,l){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(cn,l)}catch{}switch(l.tag){case 26:ot||se(l,e),de(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ot||se(l,e);var a=lt,n=Nt;al(l.type)&&(lt=l.stateNode,Nt=!1),de(t,e,l),wa(l.stateNode),lt=a,Nt=n;break;case 5:ot||se(l,e);case 6:if(a=lt,n=Nt,lt=null,de(t,e,l),lt=a,Nt=n,lt!==null)if(Nt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(l.stateNode)}catch(i){V(l,e,i)}else try{lt.removeChild(l.stateNode)}catch(i){V(l,e,i)}break;case 18:lt!==null&&(Nt?(t=lt,$f(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),fa(t)):$f(lt,l.stateNode));break;case 4:a=lt,n=Nt,lt=l.stateNode.containerInfo,Nt=!0,de(t,e,l),lt=a,Nt=n;break;case 0:case 11:case 14:case 15:tl(2,l,e),ot||tl(4,l,e),de(t,e,l);break;case 1:ot||(se(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Ah(l,e,a)),de(t,e,l);break;case 21:de(t,e,l);break;case 22:ot=(a=ot)||l.memoizedState!==null,de(t,e,l),ot=a;break;default:de(t,e,l)}}function Nh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{fa(t)}catch(l){V(e,e.return,l)}}}function Rh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{fa(t)}catch(l){V(e,e.return,l)}}function Rv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Lf),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Lf),e;default:throw Error(S(435,t.tag))}}function jn(t,e){var l=Rv(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=Gv.bind(null,t,a);a.then(n,n)}})}function _t(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=t,u=e,s=u;t:for(;s!==null;){switch(s.tag){case 27:if(al(s.type)){lt=s.stateNode,Nt=!1;break t}break;case 5:lt=s.stateNode,Nt=!1;break t;case 3:case 4:lt=s.stateNode.containerInfo,Nt=!0;break t}s=s.return}if(lt===null)throw Error(S(160));Dh(i,u,n),lt=null,Nt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Uh(e,t),e=e.sibling}var ae=null;function Uh(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:_t(e,t),Dt(t),a&4&&(tl(3,t,t.return),vn(3,t),tl(5,t,t.return));break;case 1:_t(e,t),Dt(t),a&512&&(ot||l===null||se(l,l.return)),a&64&&ge&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=ae;if(_t(e,t),Dt(t),a&512&&(ot||l===null||se(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[rn]||i[St]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),zt(i,a,l),i[St]=t,yt(i),a=i;break t;case"link":var u=ao("link","href",n).get(a+(l.href||""));if(u){for(var s=0;s<u.length;s++)if(i=u[s],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(s,1);break e}}i=n.createElement(a),zt(i,a,l),n.head.appendChild(i);break;case"meta":if(u=ao("meta","content",n).get(a+(l.content||""))){for(s=0;s<u.length;s++)if(i=u[s],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(s,1);break e}}i=n.createElement(a),zt(i,a,l),n.head.appendChild(i);break;default:throw Error(S(468,a))}i[St]=t,yt(i),a=i}t.stateNode=a}else no(n,t.type,t.stateNode);else t.stateNode=lo(n,a,t.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?no(n,t.type,t.stateNode):lo(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Au(t,t.memoizedProps,l.memoizedProps)}break;case 27:_t(e,t),Dt(t),a&512&&(ot||l===null||se(l,l.return)),l!==null&&a&4&&Au(t,t.memoizedProps,l.memoizedProps);break;case 5:if(_t(e,t),Dt(t),a&512&&(ot||l===null||se(l,l.return)),t.flags&32){n=t.stateNode;try{ea(n,"")}catch(p){V(t,t.return,p)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Au(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Cu=!0);break;case 6:if(_t(e,t),Dt(t),a&4){if(t.stateNode===null)throw Error(S(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(p){V(t,t.return,p)}}break;case 3:if(In=null,n=ae,ae=Oi(e.containerInfo),_t(e,t),ae=n,Dt(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{fa(e.containerInfo)}catch(p){V(t,t.return,p)}Cu&&(Cu=!1,Hh(t));break;case 4:a=ae,ae=Oi(t.stateNode.containerInfo),_t(e,t),Dt(t),ae=a;break;case 12:_t(e,t),Dt(t);break;case 31:_t(e,t),Dt(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,jn(t,a)));break;case 13:_t(e,t),Dt(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ji=Xt()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,jn(t,a)));break;case 22:n=t.memoizedState!==null;var c=l!==null&&l.memoizedState!==null,f=ge,o=ot;if(ge=f||n,ot=o||c,_t(e,t),ot=o,ge=f,Dt(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||c||ge||ot||fl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){c=l=e;try{if(i=c.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{s=c.stateNode;var v=c.memoizedProps.style,h=v!=null&&v.hasOwnProperty("display")?v.display:null;s.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(p){V(c,c.return,p)}}}else if(e.tag===6){if(l===null){c=e;try{c.stateNode.nodeValue=n?"":c.memoizedProps}catch(p){V(c,c.return,p)}}}else if(e.tag===18){if(l===null){c=e;try{var m=c.stateNode;n?Ff(m,!0):Ff(c.stateNode,!1)}catch(p){V(c,c.return,p)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,jn(t,l))));break;case 19:_t(e,t),Dt(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,jn(t,a)));break;case 30:break;case 21:break;default:_t(e,t),Dt(t)}}function Dt(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Ch(a)){l=a;break}a=a.return}if(l==null)throw Error(S(160));switch(l.tag){case 27:var n=l.stateNode,i=Mu(t);Si(t,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(ea(u,""),l.flags&=-33);var s=Mu(t);Si(t,s,u);break;case 3:case 4:var c=l.stateNode.containerInfo,f=Mu(t);ps(t,f,c);break;default:throw Error(S(161))}}catch(o){V(t,t.return,o)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Hh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Hh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function me(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Oh(t,e.alternate,e),e=e.sibling}function fl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:tl(4,e,e.return),fl(e);break;case 1:se(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Ah(e,e.return,l),fl(e);break;case 27:wa(e.stateNode);case 26:case 5:se(e,e.return),fl(e);break;case 22:e.memoizedState===null&&fl(e);break;case 30:fl(e);break;default:fl(e)}t=t.sibling}}function ve(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,i=e,u=i.flags;switch(i.tag){case 0:case 11:case 15:ve(n,i,l),vn(4,i);break;case 1:if(ve(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(f){V(a,a.return,f)}if(a=i,n=a.updateQueue,n!==null){var s=a.stateNode;try{var c=n.shared.hiddenCallbacks;if(c!==null)for(n.shared.hiddenCallbacks=null,n=0;n<c.length;n++)Nr(c[n],s)}catch(f){V(a,a.return,f)}}l&&u&64&&zh(i),Xa(i,i.return);break;case 27:xh(i);case 26:case 5:ve(n,i,l),l&&a===null&&u&4&&Mh(i),Xa(i,i.return);break;case 12:ve(n,i,l);break;case 31:ve(n,i,l),l&&u&4&&Nh(n,i);break;case 13:ve(n,i,l),l&&u&4&&Rh(n,i);break;case 22:i.memoizedState===null&&ve(n,i,l),Xa(i,i.return);break;case 30:break;default:ve(n,i,l)}e=e.sibling}}function Tc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&dn(l))}function zc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&dn(t))}function le(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jh(t,e,l,a),e=e.sibling}function jh(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:le(t,e,l,a),n&2048&&vn(9,e);break;case 1:le(t,e,l,a);break;case 3:le(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&dn(t)));break;case 12:if(n&2048){le(t,e,l,a),t=e.stateNode;try{var i=e.memoizedProps,u=i.id,s=i.onPostCommit;typeof s=="function"&&s(u,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(c){V(e,e.return,c)}}else le(t,e,l,a);break;case 31:le(t,e,l,a);break;case 13:le(t,e,l,a);break;case 23:break;case 22:i=e.stateNode,u=e.alternate,e.memoizedState!==null?i._visibility&2?le(t,e,l,a):Ga(t,e):i._visibility&2?le(t,e,l,a):(i._visibility|=2,Rl(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Tc(u,e);break;case 24:le(t,e,l,a),n&2048&&zc(e.alternate,e);break;default:le(t,e,l,a)}}function Rl(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,u=e,s=l,c=a,f=u.flags;switch(u.tag){case 0:case 11:case 15:Rl(i,u,s,c,n),vn(8,u);break;case 23:break;case 22:var o=u.stateNode;u.memoizedState!==null?o._visibility&2?Rl(i,u,s,c,n):Ga(i,u):(o._visibility|=2,Rl(i,u,s,c,n)),n&&f&2048&&Tc(u.alternate,u);break;case 24:Rl(i,u,s,c,n),n&&f&2048&&zc(u.alternate,u);break;default:Rl(i,u,s,c,n)}e=e.sibling}}function Ga(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:Ga(l,a),n&2048&&Tc(a.alternate,a);break;case 24:Ga(l,a),n&2048&&zc(a.alternate,a);break;default:Ga(l,a)}e=e.sibling}}var _a=8192;function Ol(t,e,l){if(t.subtreeFlags&_a)for(t=t.child;t!==null;)Bh(t,e,l),t=t.sibling}function Bh(t,e,l){switch(t.tag){case 26:Ol(t,e,l),t.flags&_a&&t.memoizedState!==null&&p0(l,ae,t.memoizedState,t.memoizedProps);break;case 5:Ol(t,e,l);break;case 3:case 4:var a=ae;ae=Oi(t.stateNode.containerInfo),Ol(t,e,l),ae=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=_a,_a=16777216,Ol(t,e,l),_a=a):Ol(t,e,l));break;default:Ol(t,e,l)}}function Lh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function za(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];vt=a,qh(a,t)}Lh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yh(t),t=t.sibling}function Yh(t){switch(t.tag){case 0:case 11:case 15:za(t),t.flags&2048&&tl(9,t,t.return);break;case 3:za(t);break;case 12:za(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Fn(t)):za(t);break;default:za(t)}}function Fn(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];vt=a,qh(a,t)}Lh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:tl(8,e,e.return),Fn(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Fn(e));break;default:Fn(e)}t=t.sibling}}function qh(t,e){for(;vt!==null;){var l=vt;switch(l.tag){case 0:case 11:case 15:tl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:dn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,vt=a;else t:for(l=t;vt!==null;){a=vt;var n=a.sibling,i=a.return;if(_h(a),a===l){vt=null;break t}if(n!==null){n.return=i,vt=n;break t}vt=i}}}var Uv={getCacheForType:function(t){var e=Tt(rt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Tt(rt).controller.signal}},Hv=typeof WeakMap=="function"?WeakMap:Map,G=0,W=null,Y=null,q=0,Z=0,Bt=null,Xe=!1,va=!1,Ac=!1,Oe=0,nt=0,el=0,yl=0,Mc=0,qt=0,ia=0,Qa=null,Rt=null,bs=!1,Ji=0,Xh=0,Ei=1/0,Ti=null,Je=null,dt=0,We=null,ua=null,ze=0,Ss=0,Es=null,Gh=null,Za=0,Ts=null;function Zt(){return G&2&&q!==0?q&-q:D.T!==null?xc():$o()}function Qh(){if(qt===0)if(!(q&536870912)||X){var t=xn;xn<<=1,!(xn&3932160)&&(xn=262144),qt=t}else qt=536870912;return t=Vt.current,t!==null&&(t.flags|=32),qt}function Ut(t,e,l){(t===W&&(Z===2||Z===9)||t.cancelPendingCommit!==null)&&(sa(t,0),Ge(t,q,qt,!1)),on(t,l),(!(G&2)||t!==W)&&(t===W&&(!(G&2)&&(yl|=l),nt===4&&Ge(t,q,qt,!1)),oe(t))}function Zh(t,e,l){if(G&6)throw Error(S(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||fn(t,e),n=a?Lv(t,e):xu(t,e,!0),i=a;do{if(n===0){va&&!a&&Ge(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!jv(l)){n=xu(t,e,!1),i=!1;continue}if(n===2){if(i=e,t.errorRecoveryDisabledLanes&i)var u=0;else u=t.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){e=u;t:{var s=t;n=Qa;var c=s.current.memoizedState.isDehydrated;if(c&&(sa(s,u).flags|=256),u=xu(s,u,!1),u!==2){if(Ac&&!c){s.errorRecoveryDisabledLanes|=i,yl|=i,n=4;break t}i=Rt,Rt=n,i!==null&&(Rt===null?Rt=i:Rt.push.apply(Rt,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){sa(t,0),Ge(t,e,0,!0);break}t:{switch(a=t,i=n,i){case 0:case 1:throw Error(S(345));case 4:if((e&4194048)!==e)break;case 6:Ge(a,e,qt,!Xe);break t;case 2:Rt=null;break;case 3:case 5:break;default:throw Error(S(329))}if((e&62914560)===e&&(n=Ji+300-Xt(),10<n)){if(Ge(a,e,qt,!Xe),Bi(a,0,!0)!==0)break t;ze=e,a.timeoutHandle=fd(Yf.bind(null,a,l,Rt,Ti,bs,e,qt,yl,ia,Xe,i,"Throttled",-0,0),n);break t}Yf(a,l,Rt,Ti,bs,e,qt,yl,ia,Xe,i,null,-0,0)}}break}while(!0);oe(t)}function Yf(t,e,l,a,n,i,u,s,c,f,o,v,h,m){if(t.timeoutHandle=-1,v=e.subtreeFlags,v&8192||(v&16785408)===16785408){v={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:be},Bh(e,i,v);var p=(i&62914560)===i?Ji-Xt():(i&4194048)===i?Xh-Xt():0;if(p=b0(v,p),p!==null){ze=i,t.cancelPendingCommit=p(Xf.bind(null,t,e,i,l,a,n,u,s,c,o,v,null,h,m)),Ge(t,i,u,!f);return}}Xf(t,e,i,l,a,n,u,s,c)}function jv(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!wt(i(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ge(t,e,l,a){e&=~Mc,e&=~yl,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var i=31-Qt(n),u=1<<i;a[i]=-1,n&=~u}l!==0&&Jo(t,l,e)}function Wi(){return G&6?!0:(yn(0),!1)}function Cc(){if(Y!==null){if(Z===0)var t=Y.return;else t=Y,Se=Cl=null,rc(t),$l=null,Fa=0,t=Y;for(;t!==null;)Th(t.alternate,t),t=t.return;Y=null}}function sa(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,e0(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),ze=0,Cc(),W=t,Y=l=Ee(t.current,null),q=e,Z=0,Bt=null,Xe=!1,va=fn(t,e),Ac=!1,ia=qt=Mc=yl=el=nt=0,Rt=Qa=null,bs=!1,e&8&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-Qt(a),i=1<<n;e|=t[n],a&=~i}return Oe=e,Xi(),l}function wh(t,e){R=null,D.H=Ia,e===ma||e===Qi?(e=yf(),Z=3):e===nc?(e=yf(),Z=4):Z=e===Sc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Bt=e,Y===null&&(nt=1,pi(t,Ft(e,t.current)))}function Vh(){var t=Vt.current;return t===null?!0:(q&4194048)===q?It===null:(q&62914560)===q||q&536870912?t===It:!1}function Kh(){var t=D.H;return D.H=Ia,t===null?Ia:t}function Jh(){var t=D.A;return D.A=Uv,t}function zi(){nt=4,Xe||(q&4194048)!==q&&Vt.current!==null||(va=!0),!(el&134217727)&&!(yl&134217727)||W===null||Ge(W,q,qt,!1)}function xu(t,e,l){var a=G;G|=2;var n=Kh(),i=Jh();(W!==t||q!==e)&&(Ti=null,sa(t,e)),e=!1;var u=nt;t:do try{if(Z!==0&&Y!==null){var s=Y,c=Bt;switch(Z){case 8:Cc(),u=6;break t;case 3:case 2:case 9:case 6:Vt.current===null&&(e=!0);var f=Z;if(Z=0,Bt=null,Vl(t,s,c,f),l&&va){u=0;break t}break;default:f=Z,Z=0,Bt=null,Vl(t,s,c,f)}}Bv(),u=nt;break}catch(o){wh(t,o)}while(!0);return e&&t.shellSuspendCounter++,Se=Cl=null,G=a,D.H=n,D.A=i,Y===null&&(W=null,q=0,Xi()),u}function Bv(){for(;Y!==null;)Wh(Y)}function Lv(t,e){var l=G;G|=2;var a=Kh(),n=Jh();W!==t||q!==e?(Ti=null,Ei=Xt()+500,sa(t,e)):va=fn(t,e);t:do try{if(Z!==0&&Y!==null){e=Y;var i=Bt;e:switch(Z){case 1:Z=0,Bt=null,Vl(t,e,i,1);break;case 2:case 9:if(vf(i)){Z=0,Bt=null,qf(e);break}e=function(){Z!==2&&Z!==9||W!==t||(Z=7),oe(t)},i.then(e,e);break t;case 3:Z=7;break t;case 4:Z=5;break t;case 7:vf(i)?(Z=0,Bt=null,qf(e)):(Z=0,Bt=null,Vl(t,e,i,7));break;case 5:var u=null;switch(Y.tag){case 26:u=Y.memoizedState;case 5:case 27:var s=Y;if(u?md(u):s.stateNode.complete){Z=0,Bt=null;var c=s.sibling;if(c!==null)Y=c;else{var f=s.return;f!==null?(Y=f,ki(f)):Y=null}break e}}Z=0,Bt=null,Vl(t,e,i,5);break;case 6:Z=0,Bt=null,Vl(t,e,i,6);break;case 8:Cc(),nt=6;break t;default:throw Error(S(462))}}Yv();break}catch(o){wh(t,o)}while(!0);return Se=Cl=null,D.H=a,D.A=n,G=l,Y!==null?0:(W=null,q=0,Xi(),nt)}function Yv(){for(;Y!==null&&!sm();)Wh(Y)}function Wh(t){var e=Eh(t.alternate,t,Oe);t.memoizedProps=t.pendingProps,e===null?ki(t):Y=e}function qf(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Rf(l,e,e.pendingProps,e.type,void 0,q);break;case 11:e=Rf(l,e,e.pendingProps,e.type.render,e.ref,q);break;case 5:rc(e);default:Th(l,e),e=Y=Tr(e,Oe),e=Eh(l,e,Oe)}t.memoizedProps=t.pendingProps,e===null?ki(t):Y=e}function Vl(t,e,l,a){Se=Cl=null,rc(e),$l=null,Fa=0;var n=e.return;try{if(Cv(t,n,e,l,q)){nt=1,pi(t,Ft(l,t.current)),Y=null;return}}catch(i){if(n!==null)throw Y=n,i;nt=1,pi(t,Ft(l,t.current)),Y=null;return}e.flags&32768?(X||a===1?t=!0:va||q&536870912?t=!1:(Xe=t=!0,(a===2||a===9||a===3||a===6)&&(a=Vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),kh(e,t)):ki(e)}function ki(t){var e=t;do{if(e.flags&32768){kh(e,Xe);return}t=e.return;var l=_v(e.alternate,e,Oe);if(l!==null){Y=l;return}if(e=e.sibling,e!==null){Y=e;return}Y=e=t}while(e!==null);nt===0&&(nt=5)}function kh(t,e){do{var l=Dv(t.alternate,t);if(l!==null){l.flags&=32767,Y=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){Y=t;return}Y=t=l}while(t!==null);nt=6,Y=null}function Xf(t,e,l,a,n,i,u,s,c){t.cancelPendingCommit=null;do $i();while(dt!==0);if(G&6)throw Error(S(327));if(e!==null){if(e===t.current)throw Error(S(177));if(i=e.lanes|e.childLanes,i|=Fs,gm(t,l,i,u,s,c),t===W&&(Y=W=null,q=0),ua=e,We=t,ze=l,Ss=i,Es=n,Gh=a,e.subtreeFlags&10256||e.flags&10256?(t.callbackNode=null,t.callbackPriority=0,Qv(si,function(){return td(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,e.subtreeFlags&13878||a){a=D.T,D.T=null,n=Q.p,Q.p=2,u=G,G|=4;try{Nv(t,e,l)}finally{G=u,Q.p=n,D.T=a}}dt=1,$h(),Fh(),Ph()}}function $h(){if(dt===1){dt=0;var t=We,e=ua,l=(e.flags&13878)!==0;if(e.subtreeFlags&13878||l){l=D.T,D.T=null;var a=Q.p;Q.p=2;var n=G;G|=4;try{Uh(e,t);var i=Cs,u=mr(t.containerInfo),s=i.focusedElem,c=i.selectionRange;if(u!==s&&s&&s.ownerDocument&&dr(s.ownerDocument.documentElement,s)){if(c!==null&&$s(s)){var f=c.start,o=c.end;if(o===void 0&&(o=f),"selectionStart"in s)s.selectionStart=f,s.selectionEnd=Math.min(o,s.value.length);else{var v=s.ownerDocument||document,h=v&&v.defaultView||window;if(h.getSelection){var m=h.getSelection(),p=s.textContent.length,b=Math.min(c.start,p),E=c.end===void 0?b:Math.min(c.end,p);!m.extend&&b>E&&(u=E,E=b,b=u);var d=cf(s,b),r=cf(s,E);if(d&&r&&(m.rangeCount!==1||m.anchorNode!==d.node||m.anchorOffset!==d.offset||m.focusNode!==r.node||m.focusOffset!==r.offset)){var y=v.createRange();y.setStart(d.node,d.offset),m.removeAllRanges(),b>E?(m.addRange(y),m.extend(r.node,r.offset)):(y.setEnd(r.node,r.offset),m.addRange(y))}}}}for(v=[],m=s;m=m.parentNode;)m.nodeType===1&&v.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<v.length;s++){var g=v[s];g.element.scrollLeft=g.left,g.element.scrollTop=g.top}}Ni=!!Ms,Cs=Ms=null}finally{G=n,Q.p=a,D.T=l}}t.current=e,dt=2}}function Fh(){if(dt===2){dt=0;var t=We,e=ua,l=(e.flags&8772)!==0;if(e.subtreeFlags&8772||l){l=D.T,D.T=null;var a=Q.p;Q.p=2;var n=G;G|=4;try{Oh(t,e.alternate,e)}finally{G=n,Q.p=a,D.T=l}}dt=3}}function Ph(){if(dt===4||dt===3){dt=0,cm();var t=We,e=ua,l=ze,a=Gh;e.subtreeFlags&10256||e.flags&10256?dt=5:(dt=0,ua=We=null,Ih(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Je=null),Zs(l),e=e.stateNode,Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(cn,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=D.T,n=Q.p,Q.p=2,D.T=null;try{for(var i=t.onRecoverableError,u=0;u<a.length;u++){var s=a[u];i(s.value,{componentStack:s.stack})}}finally{D.T=e,Q.p=n}}ze&3&&$i(),oe(t),n=t.pendingLanes,l&261930&&n&42?t===Ts?Za++:(Za=0,Ts=t):Za=0,yn(0)}}function Ih(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,dn(e)))}function $i(){return $h(),Fh(),Ph(),td()}function td(){if(dt!==5)return!1;var t=We,e=Ss;Ss=0;var l=Zs(ze),a=D.T,n=Q.p;try{Q.p=32>l?32:l,D.T=null,l=Es,Es=null;var i=We,u=ze;if(dt=0,ua=We=null,ze=0,G&6)throw Error(S(331));var s=G;if(G|=4,Yh(i.current),jh(i,i.current,u,l),G=s,yn(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(cn,i)}catch{}return!0}finally{Q.p=n,D.T=a,Ih(t,e)}}function Gf(t,e,l){e=Ft(l,e),e=vs(t.stateNode,e,2),t=Ke(t,e,2),t!==null&&(on(t,2),oe(t))}function V(t,e,l){if(t.tag===3)Gf(t,t,l);else for(;e!==null;){if(e.tag===3){Gf(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Je===null||!Je.has(a))){t=Ft(l,t),l=vh(2),a=Ke(e,l,2),a!==null&&(yh(l,a,e,t),on(a,2),oe(a));break}}e=e.return}}function Ou(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Hv;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(Ac=!0,n.add(l),t=qv.bind(null,t,e,l),e.then(t,t))}function qv(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,W===t&&(q&l)===l&&(nt===4||nt===3&&(q&62914560)===q&&300>Xt()-Ji?!(G&2)&&sa(t,0):Mc|=l,ia===q&&(ia=0)),oe(t)}function ed(t,e){e===0&&(e=Ko()),t=Ml(t,e),t!==null&&(on(t,e),oe(t))}function Xv(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),ed(t,l)}function Gv(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(S(314))}a!==null&&a.delete(e),ed(t,l)}function Qv(t,e){return Gs(t,e)}var Ai=null,Ul=null,zs=!1,Mi=!1,_u=!1,Qe=0;function oe(t){t!==Ul&&t.next===null&&(Ul===null?Ai=Ul=t:Ul=Ul.next=t),Mi=!0,zs||(zs=!0,wv())}function yn(t,e){if(!_u&&Mi){_u=!0;do for(var l=!1,a=Ai;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var u=a.suspendedLanes,s=a.pingedLanes;i=(1<<31-Qt(42|t)+1)-1,i&=n&~(u&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Qf(a,i))}else i=q,i=Bi(a,a===W?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(i&3)||fn(a,i)||(l=!0,Qf(a,i));a=a.next}while(l);_u=!1}}function Zv(){ld()}function ld(){Mi=zs=!1;var t=0;Qe!==0&&t0()&&(t=Qe);for(var e=Xt(),l=null,a=Ai;a!==null;){var n=a.next,i=ad(a,e);i===0?(a.next=null,l===null?Ai=n:l.next=n,n===null&&(Ul=l)):(l=a,(t!==0||i&3)&&(Mi=!0)),a=n}dt!==0&&dt!==5||yn(t),Qe!==0&&(Qe=0)}function ad(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var u=31-Qt(i),s=1<<u,c=n[u];c===-1?(!(s&l)||s&a)&&(n[u]=ym(s,e)):c<=e&&(t.expiredLanes|=s),i&=~s}if(e=W,l=q,l=Bi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(Z===2||Z===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&au(a),t.callbackNode=null,t.callbackPriority=0;if(!(l&3)||fn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&au(a),Zs(l)){case 2:case 8:l=wo;break;case 32:l=si;break;case 268435456:l=Vo;break;default:l=si}return a=nd.bind(null,t),l=Gs(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&au(a),t.callbackPriority=2,t.callbackNode=null,2}function nd(t,e){if(dt!==0&&dt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if($i()&&t.callbackNode!==l)return null;var a=q;return a=Bi(t,t===W?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Zh(t,a,e),ad(t,Xt()),t.callbackNode!=null&&t.callbackNode===l?nd.bind(null,t):null)}function Qf(t,e){if($i())return null;Zh(t,e,!0)}function wv(){l0(function(){G&6?Gs(Zo,Zv):ld()})}function xc(){if(Qe===0){var t=la;t===0&&(t=Cn,Cn<<=1,!(Cn&261888)&&(Cn=256)),Qe=t}return Qe}function Zf(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Qn(""+t)}function wf(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Vv(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var i=Zf((n[Ht]||null).action),u=a.submitter;u&&(e=(e=u[Ht]||null)?Zf(e.formAction):u.getAttribute("formAction"),e!==null&&(i=e,u=null));var s=new Li("action","action",null,a,n);t.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Qe!==0){var c=u?wf(n,u):new FormData(n);ds(l,{pending:!0,data:c,method:n.method,action:i},null,c)}}else typeof i=="function"&&(s.preventDefault(),c=u?wf(n,u):new FormData(n),ds(l,{pending:!0,data:c,method:n.method,action:i},i,c))},currentTarget:n}]})}}for(var Du=0;Du<es.length;Du++){var Nu=es[Du],Kv=Nu.toLowerCase(),Jv=Nu[0].toUpperCase()+Nu.slice(1);ne(Kv,"on"+Jv)}ne(yr,"onAnimationEnd");ne(gr,"onAnimationIteration");ne(pr,"onAnimationStart");ne("dblclick","onDoubleClick");ne("focusin","onFocus");ne("focusout","onBlur");ne(fv,"onTransitionRun");ne(ov,"onTransitionStart");ne(rv,"onTransitionCancel");ne(br,"onTransitionEnd");ta("onMouseEnter",["mouseout","mouseover"]);ta("onMouseLeave",["mouseout","mouseover"]);ta("onPointerEnter",["pointerout","pointerover"]);ta("onPointerLeave",["pointerout","pointerover"]);Tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tn="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(" "),Wv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(tn));function id(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var i=void 0;if(e)for(var u=a.length-1;0<=u;u--){var s=a[u],c=s.instance,f=s.currentTarget;if(s=s.listener,c!==i&&n.isPropagationStopped())break t;i=s,n.currentTarget=f;try{i(n)}catch(o){fi(o)}n.currentTarget=null,i=c}else for(u=0;u<a.length;u++){if(s=a[u],c=s.instance,f=s.currentTarget,s=s.listener,c!==i&&n.isPropagationStopped())break t;i=s,n.currentTarget=f;try{i(n)}catch(o){fi(o)}n.currentTarget=null,i=c}}}}function L(t,e){var l=e[Ju];l===void 0&&(l=e[Ju]=new Set);var a=t+"__bubble";l.has(a)||(ud(e,t,2,!1),l.add(a))}function Ru(t,e,l){var a=0;e&&(a|=4),ud(l,t,a,e)}var Bn="_reactListening"+Math.random().toString(36).slice(2);function Oc(t){if(!t[Bn]){t[Bn]=!0,Fo.forEach(function(l){l!=="selectionchange"&&(Wv.has(l)||Ru(l,!1,t),Ru(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Bn]||(e[Bn]=!0,Ru("selectionchange",!1,e))}}function ud(t,e,l,a){switch(bd(e)){case 2:var n=T0;break;case 8:n=z0;break;default:n=Rc}l=n.bind(null,e,l,t),n=void 0,!Pu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function Uu(t,e,l,a,n){var i=a;if(!(e&1)&&!(e&2)&&a!==null)t:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var s=a.stateNode.containerInfo;if(s===n)break;if(u===4)for(u=a.return;u!==null;){var c=u.tag;if((c===3||c===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;s!==null;){if(u=Bl(s),u===null)return;if(c=u.tag,c===5||c===6||c===26||c===27){a=i=u;continue t}s=s.parentNode}}a=a.return}ir(function(){var f=i,o=Ks(l),v=[];t:{var h=Sr.get(t);if(h!==void 0){var m=Li,p=t;switch(t){case"keypress":if(wn(l)===0)break t;case"keydown":case"keyup":m=Gm;break;case"focusin":p="focus",m=cu;break;case"focusout":p="blur",m=cu;break;case"beforeblur":case"afterblur":m=cu;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Fc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=_m;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=wm;break;case yr:case gr:case pr:m=Rm;break;case br:m=Km;break;case"scroll":case"scrollend":m=xm;break;case"wheel":m=Wm;break;case"copy":case"cut":case"paste":m=Hm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Ic;break;case"toggle":case"beforetoggle":m=$m}var b=(e&4)!==0,E=!b&&(t==="scroll"||t==="scrollend"),d=b?h!==null?h+"Capture":null:h;b=[];for(var r=f,y;r!==null;){var g=r;if(y=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||y===null||d===null||(g=Ka(r,d),g!=null&&b.push(en(r,g,y))),E)break;r=r.return}0<b.length&&(h=new m(h,p,null,l,o),v.push({event:h,listeners:b}))}}if(!(e&7)){t:{if(h=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",h&&l!==Fu&&(p=l.relatedTarget||l.fromElement)&&(Bl(p)||p[ra]))break t;if((m||h)&&(h=o.window===o?o:(h=o.ownerDocument)?h.defaultView||h.parentWindow:window,m?(p=l.relatedTarget||l.toElement,m=f,p=p?Bl(p):null,p!==null&&(E=sn(p),b=p.tag,p!==E||b!==5&&b!==27&&b!==6)&&(p=null)):(m=null,p=f),m!==p)){if(b=Fc,g="onMouseLeave",d="onMouseEnter",r="mouse",(t==="pointerout"||t==="pointerover")&&(b=Ic,g="onPointerLeave",d="onPointerEnter",r="pointer"),E=m==null?h:xa(m),y=p==null?h:xa(p),h=new b(g,r+"leave",m,l,o),h.target=E,h.relatedTarget=y,g=null,Bl(o)===f&&(b=new b(d,r+"enter",p,l,o),b.target=y,b.relatedTarget=E,g=b),E=g,m&&p)e:{for(b=kv,d=m,r=p,y=0,g=d;g;g=b(g))y++;g=0;for(var A=r;A;A=b(A))g++;for(;0<y-g;)d=b(d),y--;for(;0<g-y;)r=b(r),g--;for(;y--;){if(d===r||r!==null&&d===r.alternate){b=d;break e}d=b(d),r=b(r)}b=null}else b=null;m!==null&&Vf(v,h,m,b,!1),p!==null&&E!==null&&Vf(v,E,p,b,!0)}}t:{if(h=f?xa(f):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var C=af;else if(lf(h))if(rr)C=uv;else{C=nv;var T=av}else m=h.nodeName,!m||m.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?f&&Vs(f.elementType)&&(C=af):C=iv;if(C&&(C=C(t,f))){or(v,C,l,o);break t}T&&T(t,h,f),t==="focusout"&&f&&h.type==="number"&&f.memoizedProps.value!=null&&$u(h,"number",h.value)}switch(T=f?xa(f):window,t){case"focusin":(lf(T)||T.contentEditable==="true")&&(ql=T,Iu=f,Ha=null);break;case"focusout":Ha=Iu=ql=null;break;case"mousedown":ts=!0;break;case"contextmenu":case"mouseup":case"dragend":ts=!1,ff(v,l,o);break;case"selectionchange":if(cv)break;case"keydown":case"keyup":ff(v,l,o)}var O;if(ks)t:{switch(t){case"compositionstart":var M="onCompositionStart";break t;case"compositionend":M="onCompositionEnd";break t;case"compositionupdate":M="onCompositionUpdate";break t}M=void 0}else Yl?cr(t,l)&&(M="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(M="onCompositionStart");M&&(sr&&l.locale!=="ko"&&(Yl||M!=="onCompositionStart"?M==="onCompositionEnd"&&Yl&&(O=ur()):(qe=o,Js="value"in qe?qe.value:qe.textContent,Yl=!0)),T=Ci(f,M),0<T.length&&(M=new Pc(M,t,null,l,o),v.push({event:M,listeners:T}),O?M.data=O:(O=fr(l),O!==null&&(M.data=O)))),(O=Pm?Im(t,l):tv(t,l))&&(M=Ci(f,"onBeforeInput"),0<M.length&&(T=new Pc("onBeforeInput","beforeinput",null,l,o),v.push({event:T,listeners:M}),T.data=O)),Vv(v,t,f,l,o)}id(v,e)})}function en(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Ci(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Ka(t,l),n!=null&&a.unshift(en(t,n,i)),n=Ka(t,e),n!=null&&a.push(en(t,n,i))),t.tag===3)return a;t=t.return}return[]}function kv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Vf(t,e,l,a,n){for(var i=e._reactName,u=[];l!==null&&l!==a;){var s=l,c=s.alternate,f=s.stateNode;if(s=s.tag,c!==null&&c===a)break;s!==5&&s!==26&&s!==27||f===null||(c=f,n?(f=Ka(l,i),f!=null&&u.unshift(en(l,f,c))):n||(f=Ka(l,i),f!=null&&u.push(en(l,f,c)))),l=l.return}u.length!==0&&t.push({event:e,listeners:u})}var $v=/\r\n?/g,Fv=/\u0000|\uFFFD/g;function Kf(t){return(typeof t=="string"?t:""+t).replace($v,`
`).replace(Fv,"")}function sd(t,e){return e=Kf(e),Kf(t)===e}function K(t,e,l,a,n,i){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||ea(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&ea(t,""+a);break;case"className":_n(t,"class",a);break;case"tabIndex":_n(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":_n(t,l,a);break;case"style":nr(t,a,i);break;case"data":if(e!=="object"){_n(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Qn(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(e!=="input"&&K(t,e,"name",n.name,n,null),K(t,e,"formEncType",n.formEncType,n,null),K(t,e,"formMethod",n.formMethod,n,null),K(t,e,"formTarget",n.formTarget,n,null)):(K(t,e,"encType",n.encType,n,null),K(t,e,"method",n.method,n,null),K(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Qn(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=be);break;case"onScroll":a!=null&&L("scroll",t);break;case"onScrollEnd":a!=null&&L("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(S(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(S(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=Qn(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":L("beforetoggle",t),L("toggle",t),Gn(t,"popover",a);break;case"xlinkActuate":re(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":re(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":re(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":re(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":re(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":re(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":re(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":re(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":re(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Gn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Mm.get(l)||l,Gn(t,l,a))}}function As(t,e,l,a,n,i){switch(l){case"style":nr(t,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(S(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(S(60));t.innerHTML=l}}break;case"children":typeof a=="string"?ea(t,a):(typeof a=="number"||typeof a=="bigint")&&ea(t,""+a);break;case"onScroll":a!=null&&L("scroll",t);break;case"onScrollEnd":a!=null&&L("scrollend",t);break;case"onClick":a!=null&&(t.onclick=be);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Po.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),i=t[Ht]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Gn(t,l,a)}}}function zt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":L("error",t),L("load",t);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(S(137,e));default:K(t,e,i,u,l,null)}}n&&K(t,e,"srcSet",l.srcSet,l,null),a&&K(t,e,"src",l.src,l,null);return;case"input":L("invalid",t);var s=i=u=n=null,c=null,f=null;for(a in l)if(l.hasOwnProperty(a)){var o=l[a];if(o!=null)switch(a){case"name":n=o;break;case"type":u=o;break;case"checked":c=o;break;case"defaultChecked":f=o;break;case"value":i=o;break;case"defaultValue":s=o;break;case"children":case"dangerouslySetInnerHTML":if(o!=null)throw Error(S(137,e));break;default:K(t,e,a,o,l,null)}}er(t,i,s,c,f,u,n,!1);return;case"select":L("invalid",t),a=u=i=null;for(n in l)if(l.hasOwnProperty(n)&&(s=l[n],s!=null))switch(n){case"value":i=s;break;case"defaultValue":u=s;break;case"multiple":a=s;default:K(t,e,n,s,l,null)}e=i,l=u,t.multiple=!!a,e!=null?Jl(t,!!a,e,!1):l!=null&&Jl(t,!!a,l,!0);return;case"textarea":L("invalid",t),i=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(s=l[u],s!=null))switch(u){case"value":a=s;break;case"defaultValue":n=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(S(91));break;default:K(t,e,u,s,l,null)}ar(t,a,n,i);return;case"option":for(c in l)if(l.hasOwnProperty(c)&&(a=l[c],a!=null))switch(c){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:K(t,e,c,a,l,null)}return;case"dialog":L("beforetoggle",t),L("toggle",t),L("cancel",t),L("close",t);break;case"iframe":case"object":L("load",t);break;case"video":case"audio":for(a=0;a<tn.length;a++)L(tn[a],t);break;case"image":L("error",t),L("load",t);break;case"details":L("toggle",t);break;case"embed":case"source":case"link":L("error",t),L("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(f in l)if(l.hasOwnProperty(f)&&(a=l[f],a!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(S(137,e));default:K(t,e,f,a,l,null)}return;default:if(Vs(e)){for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!==void 0&&As(t,e,o,a,l,void 0));return}}for(s in l)l.hasOwnProperty(s)&&(a=l[s],a!=null&&K(t,e,s,a,l,null))}function Pv(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,u=null,s=null,c=null,f=null,o=null;for(m in l){var v=l[m];if(l.hasOwnProperty(m)&&v!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":c=v;default:a.hasOwnProperty(m)||K(t,e,m,null,a,v)}}for(var h in a){var m=a[h];if(v=l[h],a.hasOwnProperty(h)&&(m!=null||v!=null))switch(h){case"type":i=m;break;case"name":n=m;break;case"checked":f=m;break;case"defaultChecked":o=m;break;case"value":u=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(S(137,e));break;default:m!==v&&K(t,e,h,m,a,v)}}ku(t,u,s,c,f,o,i,n);return;case"select":m=u=s=h=null;for(i in l)if(c=l[i],l.hasOwnProperty(i)&&c!=null)switch(i){case"value":break;case"multiple":m=c;default:a.hasOwnProperty(i)||K(t,e,i,null,a,c)}for(n in a)if(i=a[n],c=l[n],a.hasOwnProperty(n)&&(i!=null||c!=null))switch(n){case"value":h=i;break;case"defaultValue":s=i;break;case"multiple":u=i;default:i!==c&&K(t,e,n,i,a,c)}e=s,l=u,a=m,h!=null?Jl(t,!!l,h,!1):!!a!=!!l&&(e!=null?Jl(t,!!l,e,!0):Jl(t,!!l,l?[]:"",!1));return;case"textarea":m=h=null;for(s in l)if(n=l[s],l.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:K(t,e,s,null,a,n)}for(u in a)if(n=a[u],i=l[u],a.hasOwnProperty(u)&&(n!=null||i!=null))switch(u){case"value":h=n;break;case"defaultValue":m=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(S(91));break;default:n!==i&&K(t,e,u,n,a,i)}lr(t,h,m);return;case"option":for(var p in l)if(h=l[p],l.hasOwnProperty(p)&&h!=null&&!a.hasOwnProperty(p))switch(p){case"selected":t.selected=!1;break;default:K(t,e,p,null,a,h)}for(c in a)if(h=a[c],m=l[c],a.hasOwnProperty(c)&&h!==m&&(h!=null||m!=null))switch(c){case"selected":t.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:K(t,e,c,h,a,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in l)h=l[b],l.hasOwnProperty(b)&&h!=null&&!a.hasOwnProperty(b)&&K(t,e,b,null,a,h);for(f in a)if(h=a[f],m=l[f],a.hasOwnProperty(f)&&h!==m&&(h!=null||m!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(S(137,e));break;default:K(t,e,f,h,a,m)}return;default:if(Vs(e)){for(var E in l)h=l[E],l.hasOwnProperty(E)&&h!==void 0&&!a.hasOwnProperty(E)&&As(t,e,E,void 0,a,h);for(o in a)h=a[o],m=l[o],!a.hasOwnProperty(o)||h===m||h===void 0&&m===void 0||As(t,e,o,h,a,m);return}}for(var d in l)h=l[d],l.hasOwnProperty(d)&&h!=null&&!a.hasOwnProperty(d)&&K(t,e,d,null,a,h);for(v in a)h=a[v],m=l[v],!a.hasOwnProperty(v)||h===m||h==null&&m==null||K(t,e,v,h,a,m)}function Jf(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Iv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,u=n.initiatorType,s=n.duration;if(i&&s&&Jf(u)){for(u=0,s=n.responseEnd,a+=1;a<l.length;a++){var c=l[a],f=c.startTime;if(f>s)break;var o=c.transferSize,v=c.initiatorType;o&&Jf(v)&&(c=c.responseEnd,u+=o*(c<s?1:(s-f)/(c-f)))}if(--a,e+=8*(i+u)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ms=null,Cs=null;function xi(t){return t.nodeType===9?t:t.ownerDocument}function Wf(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function xs(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Hu=null;function t0(){var t=window.event;return t&&t.type==="popstate"?t===Hu?!1:(Hu=t,!0):(Hu=null,!1)}var fd=typeof setTimeout=="function"?setTimeout:void 0,e0=typeof clearTimeout=="function"?clearTimeout:void 0,kf=typeof Promise=="function"?Promise:void 0,l0=typeof queueMicrotask=="function"?queueMicrotask:typeof kf<"u"?function(t){return kf.resolve(null).then(t).catch(a0)}:fd;function a0(t){setTimeout(function(){throw t})}function al(t){return t==="head"}function $f(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),fa(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")wa(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,wa(l);for(var i=l.firstChild;i;){var u=i.nextSibling,s=i.nodeName;i[rn]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u}}else l==="body"&&wa(t.ownerDocument.body);l=n}while(l);fa(e)}function Ff(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function Os(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Os(l),ws(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function n0(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[rn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=te(t.nextSibling),t===null)break}return null}function i0(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=te(t.nextSibling),t===null))return null;return t}function od(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=te(t.nextSibling),t===null))return null;return t}function _s(t){return t.data==="$?"||t.data==="$~"}function Ds(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function u0(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function te(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Ns=null;function Pf(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return te(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function If(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function rd(t,e,l){switch(e=xi(l),t){case"html":if(t=e.documentElement,!t)throw Error(S(452));return t;case"head":if(t=e.head,!t)throw Error(S(453));return t;case"body":if(t=e.body,!t)throw Error(S(454));return t;default:throw Error(S(451))}}function wa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ws(t)}var ee=new Map,to=new Set;function Oi(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var _e=Q.d;Q.d={f:s0,r:c0,D:f0,C:o0,L:r0,m:h0,X:m0,S:d0,M:v0};function s0(){var t=_e.f(),e=Wi();return t||e}function c0(t){var e=ha(t);e!==null&&e.tag===5&&e.type==="form"?nh(e):_e.r(t)}var ya=typeof document>"u"?null:document;function hd(t,e,l){var a=ya;if(a&&typeof e=="string"&&e){var n=$t(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),to.has(n)||(to.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),zt(e,"link",t),yt(e),a.head.appendChild(e)))}}function f0(t){_e.D(t),hd("dns-prefetch",t,null)}function o0(t,e){_e.C(t,e),hd("preconnect",t,e)}function r0(t,e,l){_e.L(t,e,l);var a=ya;if(a&&t&&e){var n='link[rel="preload"][as="'+$t(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+$t(l.imageSizes)+'"]')):n+='[href="'+$t(t)+'"]';var i=n;switch(e){case"style":i=ca(t);break;case"script":i=ga(t)}ee.has(i)||(t=tt({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),ee.set(i,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(gn(i))||e==="script"&&a.querySelector(pn(i))||(e=a.createElement("link"),zt(e,"link",t),yt(e),a.head.appendChild(e)))}}function h0(t,e){_e.m(t,e);var l=ya;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(t)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ga(t)}if(!ee.has(i)&&(t=tt({rel:"modulepreload",href:t},e),ee.set(i,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(pn(i)))return}a=l.createElement("link"),zt(a,"link",t),yt(a),l.head.appendChild(a)}}}function d0(t,e,l){_e.S(t,e,l);var a=ya;if(a&&t){var n=Kl(a).hoistableStyles,i=ca(t);e=e||"default";var u=n.get(i);if(!u){var s={loading:0,preload:null};if(u=a.querySelector(gn(i)))s.loading=5;else{t=tt({rel:"stylesheet",href:t,"data-precedence":e},l),(l=ee.get(i))&&_c(t,l);var c=u=a.createElement("link");yt(c),zt(c,"link",t),c._p=new Promise(function(f,o){c.onload=f,c.onerror=o}),c.addEventListener("load",function(){s.loading|=1}),c.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Pn(u,e,a)}u={type:"stylesheet",instance:u,count:1,state:s},n.set(i,u)}}}function m0(t,e){_e.X(t,e);var l=ya;if(l&&t){var a=Kl(l).hoistableScripts,n=ga(t),i=a.get(n);i||(i=l.querySelector(pn(n)),i||(t=tt({src:t,async:!0},e),(e=ee.get(n))&&Dc(t,e),i=l.createElement("script"),yt(i),zt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function v0(t,e){_e.M(t,e);var l=ya;if(l&&t){var a=Kl(l).hoistableScripts,n=ga(t),i=a.get(n);i||(i=l.querySelector(pn(n)),i||(t=tt({src:t,async:!0,type:"module"},e),(e=ee.get(n))&&Dc(t,e),i=l.createElement("script"),yt(i),zt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function eo(t,e,l,a){var n=(n=Ze.current)?Oi(n):null;if(!n)throw Error(S(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=ca(l.href),l=Kl(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=ca(l.href);var i=Kl(n).hoistableStyles,u=i.get(t);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,u),(i=n.querySelector(gn(t)))&&!i._p&&(u.instance=i,u.state.loading=5),ee.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ee.set(t,l),i||y0(n,t,l,u.state))),e&&a===null)throw Error(S(528,""));return u}if(e&&a!==null)throw Error(S(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ga(l),l=Kl(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(S(444,t))}}function ca(t){return'href="'+$t(t)+'"'}function gn(t){return'link[rel="stylesheet"]['+t+"]"}function dd(t){return tt({},t,{"data-precedence":t.precedence,precedence:null})}function y0(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),zt(e,"link",l),yt(e),t.head.appendChild(e))}function ga(t){return'[src="'+$t(t)+'"]'}function pn(t){return"script[async]"+t}function lo(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return e.instance=a,yt(a),a;var n=tt({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),yt(a),zt(a,"style",n),Pn(a,l.precedence,t),e.instance=a;case"stylesheet":n=ca(l.href);var i=t.querySelector(gn(n));if(i)return e.state.loading|=4,e.instance=i,yt(i),i;a=dd(l),(n=ee.get(n))&&_c(a,n),i=(t.ownerDocument||t).createElement("link"),yt(i);var u=i;return u._p=new Promise(function(s,c){u.onload=s,u.onerror=c}),zt(i,"link",a),e.state.loading|=4,Pn(i,l.precedence,t),e.instance=i;case"script":return i=ga(l.src),(n=t.querySelector(pn(i)))?(e.instance=n,yt(n),n):(a=l,(n=ee.get(i))&&(a=tt({},l),Dc(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),yt(n),zt(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(S(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(a=e.instance,e.state.loading|=4,Pn(a,l.precedence,t));return e.instance}function Pn(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,u=0;u<a.length;u++){var s=a[u];if(s.dataset.precedence===e)i=s;else if(i!==n)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function _c(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Dc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var In=null;function ao(t,e,l){if(In===null){var a=new Map,n=In=new Map;n.set(l,a)}else n=In,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var i=l[n];if(!(i[rn]||i[St]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(e)||"";u=t+u;var s=a.get(u);s?s.push(i):a.set(u,[i])}}return a}function no(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function g0(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function md(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}function p0(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(l.state.loading&4)){if(l.instance===null){var n=ca(a.href),i=e.querySelector(gn(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=_i.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,yt(i);return}i=e.ownerDocument||e,a=dd(a),(n=ee.get(n))&&_c(a,n),i=i.createElement("link"),yt(i);var u=i;u._p=new Promise(function(s,c){u.onload=s,u.onerror=c}),zt(i,"link",a),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&!(l.state.loading&3)&&(t.count++,l=_i.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var ju=0;function b0(t,e){return t.stylesheets&&t.count===0&&ti(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&ti(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&ju===0&&(ju=62500*Iv());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ti(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>ju?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function _i(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ti(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Di=null;function ti(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Di=new Map,e.forEach(S0,t),Di=null,_i.call(t))}function S0(t,e){if(!(e.state.loading&4)){var l=Di.get(t);if(l)var a=l.get(null);else{l=new Map,Di.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var u=n[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),a=u)}a&&l.set(null,a)}n=e.instance,u=n.getAttribute("data-precedence"),i=l.get(u)||a,i===a&&l.set(null,n),l.set(u,n),this.count++,a=_i.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var ln={$$typeof:pe,Provider:null,Consumer:null,_currentValue:hl,_currentValue2:hl,_threadCount:0};function E0(t,e,l,a,n,i,u,s,c){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nu(0),this.hiddenUpdates=nu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function vd(t,e,l,a,n,i,u,s,c,f,o,v){return t=new E0(t,e,l,u,c,f,o,v,s),e=1,i===!0&&(e|=24),i=Yt(3,null,null,e),t.current=i,i.stateNode=t,e=lc(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:e},ic(i),t}function yd(t){return t?(t=Ql,t):Ql}function gd(t,e,l,a,n,i){n=yd(n),a.context===null?a.context=n:a.pendingContext=n,a=Ve(e),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Ke(t,a,e),l!==null&&(Ut(l,t,e),Ba(l,t,e))}function io(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Nc(t,e){io(t,e),(t=t.alternate)&&io(t,e)}function pd(t){if(t.tag===13||t.tag===31){var e=Ml(t,67108864);e!==null&&Ut(e,t,67108864),Nc(t,67108864)}}function uo(t){if(t.tag===13||t.tag===31){var e=Zt();e=Qs(e);var l=Ml(t,e);l!==null&&Ut(l,t,e),Nc(t,e)}}var Ni=!0;function T0(t,e,l,a){var n=D.T;D.T=null;var i=Q.p;try{Q.p=2,Rc(t,e,l,a)}finally{Q.p=i,D.T=n}}function z0(t,e,l,a){var n=D.T;D.T=null;var i=Q.p;try{Q.p=8,Rc(t,e,l,a)}finally{Q.p=i,D.T=n}}function Rc(t,e,l,a){if(Ni){var n=Rs(a);if(n===null)Uu(t,e,a,Ri,l),so(t,a);else if(M0(n,t,e,l,a))a.stopPropagation();else if(so(t,a),e&4&&-1<A0.indexOf(t)){for(;n!==null;){var i=ha(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=sl(i.pendingLanes);if(u!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;u;){var c=1<<31-Qt(u);s.entanglements[1]|=c,u&=~c}oe(i),!(G&6)&&(Ei=Xt()+500,yn(0))}}break;case 31:case 13:s=Ml(i,2),s!==null&&Ut(s,i,2),Wi(),Nc(i,2)}if(i=Rs(a),i===null&&Uu(t,e,a,Ri,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Uu(t,e,a,null,l)}}function Rs(t){return t=Ks(t),Uc(t)}var Ri=null;function Uc(t){if(Ri=null,t=Bl(t),t!==null){var e=sn(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=Yo(e),t!==null)return t;t=null}else if(l===31){if(t=qo(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ri=t,null}function bd(t){switch(t){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fm()){case Zo:return 2;case wo:return 8;case si:case om:return 32;case Vo:return 268435456;default:return 32}default:return 32}}var Us=!1,ke=null,$e=null,Fe=null,an=new Map,nn=new Map,Le=[],A0="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".split(" ");function so(t,e){switch(t){case"focusin":case"focusout":ke=null;break;case"dragenter":case"dragleave":$e=null;break;case"mouseover":case"mouseout":Fe=null;break;case"pointerover":case"pointerout":an.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":nn.delete(e.pointerId)}}function Aa(t,e,l,a,n,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},e!==null&&(e=ha(e),e!==null&&pd(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function M0(t,e,l,a,n){switch(e){case"focusin":return ke=Aa(ke,t,e,l,a,n),!0;case"dragenter":return $e=Aa($e,t,e,l,a,n),!0;case"mouseover":return Fe=Aa(Fe,t,e,l,a,n),!0;case"pointerover":var i=n.pointerId;return an.set(i,Aa(an.get(i)||null,t,e,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,nn.set(i,Aa(nn.get(i)||null,t,e,l,a,n)),!0}return!1}function Sd(t){var e=Bl(t.target);if(e!==null){var l=sn(e);if(l!==null){if(e=l.tag,e===13){if(e=Yo(l),e!==null){t.blockedOn=e,wc(t.priority,function(){uo(l)});return}}else if(e===31){if(e=qo(l),e!==null){t.blockedOn=e,wc(t.priority,function(){uo(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ei(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Rs(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Fu=a,l.target.dispatchEvent(a),Fu=null}else return e=ha(l),e!==null&&pd(e),t.blockedOn=l,!1;e.shift()}return!0}function co(t,e,l){ei(t)&&l.delete(e)}function C0(){Us=!1,ke!==null&&ei(ke)&&(ke=null),$e!==null&&ei($e)&&($e=null),Fe!==null&&ei(Fe)&&(Fe=null),an.forEach(co),nn.forEach(co)}function Ln(t,e){t.blockedOn===e&&(t.blockedOn=null,Us||(Us=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,C0)))}var Yn=null;function fo(t){Yn!==t&&(Yn=t,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,function(){Yn===t&&(Yn=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Uc(a||l)===null)continue;break}var i=ha(l);i!==null&&(t.splice(e,3),e-=3,ds(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function fa(t){function e(c){return Ln(c,t)}ke!==null&&Ln(ke,t),$e!==null&&Ln($e,t),Fe!==null&&Ln(Fe,t),an.forEach(e),nn.forEach(e);for(var l=0;l<Le.length;l++){var a=Le[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Le.length&&(l=Le[0],l.blockedOn===null);)Sd(l),l.blockedOn===null&&Le.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],u=n[Ht]||null;if(typeof i=="function")u||fo(l);else if(u){var s=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[Ht]||null)s=u.formAction;else if(Uc(n)!==null)continue}else s=u.action;typeof s=="function"?l[a+1]=s:(l.splice(a,3),a-=3),fo(l)}}}function Ed(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Hc(t){this._internalRoot=t}Fi.prototype.render=Hc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(S(409));var l=e.current,a=Zt();gd(l,a,t,e,null,null)};Fi.prototype.unmount=Hc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;gd(t.current,2,null,t,null,null),Wi(),e[ra]=null}};function Fi(t){this._internalRoot=t}Fi.prototype.unstable_scheduleHydration=function(t){if(t){var e=$o();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Le.length&&e!==0&&e<Le[l].priority;l++);Le.splice(l,0,t),l===0&&Sd(t)}};var oo=Bo.version;if(oo!=="19.2.4")throw Error(S(527,oo,"19.2.4"));Q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(S(188)):(t=Object.keys(t).join(","),Error(S(268,t)));return t=lm(e),t=t!==null?Xo(t):null,t=t===null?null:t.stateNode,t};var x0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qn=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qn.isDisabled&&qn.supportsFiber)try{cn=qn.inject(x0),Gt=qn}catch{}}Hi.createRoot=function(t,e){if(!Lo(t))throw Error(S(299));var l=!1,a="",n=hh,i=dh,u=mh;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(u=e.onRecoverableError)),e=vd(t,1,!1,null,null,l,a,null,n,i,u,Ed),t[ra]=e.current,Oc(t),new Hc(e)};Hi.hydrateRoot=function(t,e,l){if(!Lo(t))throw Error(S(299));var a=!1,n="",i=hh,u=dh,s=mh,c=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(s=l.onRecoverableError),l.formState!==void 0&&(c=l.formState)),e=vd(t,1,!0,e,l??null,a,n,c,i,u,s,Ed),e.context=yd(null),l=e.current,a=Zt(),a=Qs(a),n=Ve(a),n.callback=null,Ke(l,n,a),l=a,e.current.lanes=l,on(e,l),oe(e),t[ra]=e.current,Oc(t),new Fi(e)};Hi.version="19.2.4";function Td(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Td)}catch(t){console.error(t)}}Td(),Do.exports=Hi;var O0=Do.exports;function Ct(t,e,l,a){return new(l||(l=Promise))(function(n,i){function u(f){try{c(a.next(f))}catch(o){i(o)}}function s(f){try{c(a.throw(f))}catch(o){i(o)}}function c(f){var o;f.done?n(f.value):(o=f.value,o instanceof l?o:new l(function(v){v(o)})).then(u,s)}c((a=a.apply(t,e||[])).next())})}let bn=class{constructor(){this.listeners={}}on(e,l,a){if(this.listeners[e]||(this.listeners[e]=new Set),a==null?void 0:a.once){const n=(...i)=>{this.un(e,n),l(...i)};return this.listeners[e].add(n),()=>this.un(e,n)}return this.listeners[e].add(l),()=>this.un(e,l)}un(e,l){var a;(a=this.listeners[e])===null||a===void 0||a.delete(l)}once(e,l){return this.on(e,l,{once:!0})}unAll(){this.listeners={}}emit(e,...l){this.listeners[e]&&this.listeners[e].forEach(a=>a(...l))}};const Xn={decode:function(t,e){return Ct(this,void 0,void 0,function*(){const l=new AudioContext({sampleRate:e});try{return yield l.decodeAudioData(t)}finally{l.close()}})},createBuffer:function(t,e){if(!t||t.length===0)throw new Error("channelData must be a non-empty array");if(e<=0)throw new Error("duration must be greater than 0");if(typeof t[0]=="number"&&(t=[t]),!t[0]||t[0].length===0)throw new Error("channelData must contain non-empty channel arrays");(function(a){const n=a[0];if(n.some(i=>i>1||i<-1)){const i=n.length;let u=0;for(let s=0;s<i;s++){const c=Math.abs(n[s]);c>u&&(u=c)}for(const s of a)for(let c=0;c<i;c++)s[c]/=u}})(t);const l=t.map(a=>a instanceof Float32Array?a:Float32Array.from(a));return{duration:e,length:l[0].length,sampleRate:l[0].length/e,numberOfChannels:l.length,getChannelData:a=>{const n=l[a];if(!n)throw new Error(`Channel ${a} not found`);return n},copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function zd(t,e){const l=e.xmlns?document.createElementNS(e.xmlns,t):document.createElement(t);for(const[a,n]of Object.entries(e))if(a==="children"&&n)for(const[i,u]of Object.entries(n))u instanceof Node?l.appendChild(u):typeof u=="string"?l.appendChild(document.createTextNode(u)):l.appendChild(zd(i,u));else a==="style"?Object.assign(l.style,n):a==="textContent"?l.textContent=n:l.setAttribute(a,n.toString());return l}function ro(t,e,l){const a=zd(t,e||{});return l==null||l.appendChild(a),a}var _0=Object.freeze({__proto__:null,createElement:ro,default:ro});const D0={fetchBlob:function(t,e,l){return Ct(this,void 0,void 0,function*(){const a=yield fetch(t,l);if(a.status>=400)throw new Error(`Failed to fetch ${t}: ${a.status} (${a.statusText})`);return function(n,i){Ct(this,void 0,void 0,function*(){if(!n.body||!n.headers)return;const u=n.body.getReader(),s=Number(n.headers.get("Content-Length"))||0;let c=0;const f=o=>{c+=(o==null?void 0:o.length)||0;const v=Math.round(c/s*100);i(v)};try{for(;;){const o=yield u.read();if(o.done)break;f(o.value)}}catch(o){console.warn("Progress tracking error:",o)}})}(a.clone(),e),a.blob()})}};function it(t){let e=t;const l=new Set;return{get value(){return e},set(a){Object.is(e,a)||(e=a,l.forEach(n=>n(e)))},update(a){this.set(a(e))},subscribe:a=>(l.add(a),()=>l.delete(a))}}function rl(t,e){const l=it(t());return e.forEach(a=>a.subscribe(()=>{const n=t();Object.is(l.value,n)||l.set(n)})),{get value(){return l.value},subscribe:a=>l.subscribe(a)}}function Ue(t,e){let l;const a=()=>{l&&(l(),l=void 0),l=t()},n=e.map(i=>i.subscribe(a));return a(),()=>{l&&(l(),l=void 0),n.forEach(i=>i())}}class N0 extends bn{get isPlayingSignal(){return this._isPlaying}get currentTimeSignal(){return this._currentTime}get durationSignal(){return this._duration}get volumeSignal(){return this._volume}get mutedSignal(){return this._muted}get playbackRateSignal(){return this._playbackRate}get seekingSignal(){return this._seeking}constructor(e){super(),this.isExternalMedia=!1,this.reactiveMediaEventCleanups=[],e.media?(this.media=e.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),this._isPlaying=it(!1),this._currentTime=it(0),this._duration=it(0),this._volume=it(this.media.volume),this._muted=it(this.media.muted),this._playbackRate=it(this.media.playbackRate||1),this._seeking=it(!1),this.setupReactiveMediaEvents(),e.mediaControls&&(this.media.controls=!0),e.autoplay&&(this.media.autoplay=!0),e.playbackRate!=null&&this.onMediaEvent("canplay",()=>{e.playbackRate!=null&&(this.media.playbackRate=e.playbackRate)},{once:!0})}setupReactiveMediaEvents(){this.reactiveMediaEventCleanups.push(this.onMediaEvent("play",()=>{this._isPlaying.set(!0)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("pause",()=>{this._isPlaying.set(!1)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("ended",()=>{this._isPlaying.set(!1)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("timeupdate",()=>{this._currentTime.set(this.media.currentTime)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("durationchange",()=>{this._duration.set(this.media.duration||0)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("loadedmetadata",()=>{this._duration.set(this.media.duration||0)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("seeking",()=>{this._seeking.set(!0)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("seeked",()=>{this._seeking.set(!1)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("volumechange",()=>{this._volume.set(this.media.volume),this._muted.set(this.media.muted)})),this.reactiveMediaEventCleanups.push(this.onMediaEvent("ratechange",()=>{this._playbackRate.set(this.media.playbackRate)}))}onMediaEvent(e,l,a){return this.media.addEventListener(e,l,a),()=>this.media.removeEventListener(e,l,a)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const e=this.getSrc();e.startsWith("blob:")&&URL.revokeObjectURL(e)}canPlayType(e){return this.media.canPlayType(e)!==""}setSrc(e,l){const a=this.getSrc();if(e&&a===e)return;this.revokeSrc();const n=l instanceof Blob&&(this.canPlayType(l.type)||!e)?URL.createObjectURL(l):e;if(a&&this.media.removeAttribute("src"),n||e)try{this.media.src=n}catch{this.media.src=e}}destroy(){this.reactiveMediaEventCleanups.forEach(e=>e()),this.reactiveMediaEventCleanups=[],this.isExternalMedia||(this.media.pause(),this.revokeSrc(),this.media.removeAttribute("src"),this.media.load(),this.media.remove())}setMediaElement(e){this.reactiveMediaEventCleanups.forEach(l=>l()),this.reactiveMediaEventCleanups=[],this.media=e,this.setupReactiveMediaEvents()}play(){return Ct(this,void 0,void 0,function*(){try{return yield this.media.play()}catch(e){if(e instanceof DOMException&&e.name==="AbortError")return;throw e}})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(e){this.media.currentTime=Math.max(0,Math.min(e,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(e){this.media.volume=e}getMuted(){return this.media.muted}setMuted(e){this.media.muted=e}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(e,l){l!=null&&(this.media.preservesPitch=l),this.media.playbackRate=e}getMediaElement(){return this.media}setSinkId(e){return this.media.setSinkId(e)}}function R0({maxTop:t,maxBottom:e,halfHeight:l,vScale:a,barMinHeight:n=0,barAlign:i}){let u=Math.round(t*l*a),s=u+Math.round(e*l*a)||1;return s<n&&(s=n,i||(u=s/2)),{topHeight:u,totalHeight:s}}function U0({barAlign:t,halfHeight:e,topHeight:l,totalHeight:a,canvasHeight:n}){return t==="top"?0:t==="bottom"?n-a:e-l}function ho(t,e,l){const a=e-t.left,n=l-t.top;return[a/t.width,n/t.height]}function Ad(t){return!!(t.barWidth||t.barGap||t.barAlign)}function mo(t,e){if(!Ad(e))return t;const l=e.barWidth||.5,a=l+(e.barGap||l/2);return a===0?t:Math.floor(t/a)*a}function vo({scrollLeft:t,totalWidth:e,numCanvases:l}){if(e===0)return[0];const a=t/e,n=Math.floor(a*l);return[n-1,n,n+1]}function Md(t){const e=t._cleanup;typeof e=="function"&&e()}function H0(t){const e=it({scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth}),l=rl(()=>function(i){const{scrollLeft:u,scrollWidth:s,clientWidth:c}=i;if(s===0)return{startX:0,endX:1};const f=u/s,o=(u+c)/s;return{startX:Math.max(0,Math.min(1,f)),endX:Math.max(0,Math.min(1,o))}}(e.value),[e]),a=rl(()=>function(i){return{left:i.scrollLeft,right:i.scrollLeft+i.clientWidth}}(e.value),[e]),n=()=>{e.set({scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth})};return t.addEventListener("scroll",n,{passive:!0}),{scrollData:e,percentages:l,bounds:a,cleanup:()=>{t.removeEventListener("scroll",n),Md(e)}}}class j0 extends bn{constructor(e,l){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.dragStream=null,this.scrollStream=null,this.subscriptions=[],this.options=e;const a=this.parentFromOptionsContainer(e.container);this.parent=a;const[n,i]=this.initHtml();a.appendChild(n),this.container=n,this.scrollContainer=i.querySelector(".scroll"),this.wrapper=i.querySelector(".wrapper"),this.canvasWrapper=i.querySelector(".canvases"),this.progressWrapper=i.querySelector(".progress"),this.cursor=i.querySelector(".cursor"),l&&i.appendChild(l),this.initEvents()}parentFromOptionsContainer(e){let l;if(typeof e=="string"?l=document.querySelector(e):e instanceof HTMLElement&&(l=e),!l)throw new Error("Container not found");return l}initEvents(){this.wrapper.addEventListener("click",l=>{const a=this.wrapper.getBoundingClientRect(),[n,i]=ho(a,l.clientX,l.clientY);this.emit("click",n,i)}),this.wrapper.addEventListener("dblclick",l=>{const a=this.wrapper.getBoundingClientRect(),[n,i]=ho(a,l.clientX,l.clientY);this.emit("dblclick",n,i)}),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollStream=H0(this.scrollContainer);const e=Ue(()=>{const{startX:l,endX:a}=this.scrollStream.percentages.value,{left:n,right:i}=this.scrollStream.bounds.value;this.emit("scroll",l,a,n,i)},[this.scrollStream.percentages,this.scrollStream.bounds]);if(this.subscriptions.push(e),typeof ResizeObserver=="function"){const l=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{l().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const e=this.parent.clientWidth;e===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=e,this.reRender(),this.emit("resize"))}initDrag(){if(this.dragStream)return;this.dragStream=function(l,a={}){const{threshold:n=3,mouseButton:i=0,touchDelay:u=100}=a,s=it(null),c=new Map,f=matchMedia("(pointer: coarse)").matches;let o=()=>{};const v=h=>{if(h.button!==i||(c.set(h.pointerId,h),c.size>1))return;let m=h.clientX,p=h.clientY,b=!1;const E=Date.now(),d=l.getBoundingClientRect(),{left:r,top:y}=d,g=M=>{if(M.defaultPrevented||c.size>1||f&&Date.now()-E<u)return;const z=M.clientX,B=M.clientY,k=z-m,pt=B-p;(b||Math.abs(k)>n||Math.abs(pt)>n)&&(M.preventDefault(),M.stopPropagation(),b||(s.set({type:"start",x:m-r,y:p-y}),b=!0),s.set({type:"move",x:z-r,y:B-y,deltaX:k,deltaY:pt}),m=z,p=B)},A=M=>{if(c.delete(M.pointerId),b){const z=M.clientX,B=M.clientY;s.set({type:"end",x:z-r,y:B-y})}o()},C=M=>{c.delete(M.pointerId),M.relatedTarget&&M.relatedTarget!==document.documentElement||A(M)},T=M=>{b&&(M.stopPropagation(),M.preventDefault())},O=M=>{M.defaultPrevented||c.size>1||b&&M.preventDefault()};document.addEventListener("pointermove",g),document.addEventListener("pointerup",A),document.addEventListener("pointerout",C),document.addEventListener("pointercancel",C),document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("click",T,{capture:!0}),o=()=>{document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",A),document.removeEventListener("pointerout",C),document.removeEventListener("pointercancel",C),document.removeEventListener("touchmove",O),setTimeout(()=>{document.removeEventListener("click",T,{capture:!0})},10)}};return l.addEventListener("pointerdown",v),{signal:s,cleanup:()=>{o(),l.removeEventListener("pointerdown",v),c.clear(),Md(s)}}}(this.wrapper);const e=Ue(()=>{const l=this.dragStream.signal.value;if(!l)return;const a=this.wrapper.getBoundingClientRect().width,n=(i=l.x/a)<0?0:i>1?1:i;var i;l.type==="start"?(this.isDragging=!0,this.emit("dragstart",n)):l.type==="move"?this.emit("drag",n):l.type==="end"&&(this.isDragging=!1,this.emit("dragend",n))},[this.dragStream.signal]);this.subscriptions.push(e)}initHtml(){const e=document.createElement("div"),l=e.attachShadow({mode:"open"}),a=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return l.innerHTML=`
      <style${a?` nonce="${a}"`:""}>
        :host {
          user-select: none;
          min-width: 1px;
        }
        :host audio {
          display: block;
          width: 100%;
        }
        :host .scroll {
          overflow-x: auto;
          overflow-y: hidden;
          width: 100%;
          position: relative;
        }
        :host .noScrollbar {
          scrollbar-color: transparent;
          scrollbar-width: none;
        }
        :host .noScrollbar::-webkit-scrollbar {
          display: none;
          -webkit-appearance: none;
        }
        :host .wrapper {
          position: relative;
          overflow: visible;
          z-index: 2;
        }
        :host .canvases {
          min-height: ${this.getHeight(this.options.height,this.options.splitChannels)}px;
          pointer-events: none;
        }
        :host .canvases > div {
          position: relative;
        }
        :host canvas {
          display: block;
          position: absolute;
          top: 0;
          image-rendering: pixelated;
        }
        :host .progress {
          pointer-events: none;
          position: absolute;
          z-index: 2;
          top: 0;
          left: 0;
          width: 0;
          height: 100%;
          overflow: hidden;
        }
        :host .progress > div {
          position: relative;
        }
        :host .cursor {
          pointer-events: none;
          position: absolute;
          z-index: 5;
          top: 0;
          left: 0;
          height: 100%;
          border-radius: 2px;
        }
      </style>

      <div class="scroll" part="scroll">
        <div class="wrapper" part="wrapper">
          <div class="canvases" part="canvases"></div>
          <div class="progress" part="progress"></div>
          <div class="cursor" part="cursor"></div>
        </div>
      </div>
    `,[e,l]}setOptions(e){if(this.options.container!==e.container){const l=this.parentFromOptionsContainer(e.container);l.appendChild(this.container),this.parent=l}e.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.options=e,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(e){this.scrollContainer.scrollLeft=e}setScrollPercentage(e){const{scrollWidth:l}=this.scrollContainer,a=l*e;this.setScroll(a)}destroy(){var e;this.subscriptions.forEach(l=>l()),this.container.remove(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),(e=this.unsubscribeOnScroll)===null||e===void 0||e.forEach(l=>l()),this.unsubscribeOnScroll=[],this.dragStream&&(this.dragStream.cleanup(),this.dragStream=null),this.scrollStream&&(this.scrollStream.cleanup(),this.scrollStream=null)}createDelay(e=10){let l,a;const n=()=>{l&&(clearTimeout(l),l=void 0),a&&(a(),a=void 0)};return this.timeouts.push(n),()=>new Promise((i,u)=>{n(),a=u,l=setTimeout(()=>{l=void 0,a=void 0,i()},e)})}getHeight(e,l){var a;const n=((a=this.audioData)===null||a===void 0?void 0:a.numberOfChannels)||1;return function({optionsHeight:i,optionsSplitChannels:u,parentHeight:s,numberOfChannels:c,defaultHeight:f=128}){if(i==null)return f;const o=Number(i);if(!isNaN(o))return o;if(i==="auto"){const v=s||f;return u!=null&&u.every(h=>!h.overlay)?v/c:v}return f}({optionsHeight:e,optionsSplitChannels:l,parentHeight:this.parent.clientHeight,numberOfChannels:n,defaultHeight:128})}convertColorValues(e,l){return function(a,n,i){if(!Array.isArray(a))return a||"";if(a.length===0)return"#999";if(a.length<2)return a[0]||"";const u=document.createElement("canvas"),s=u.getContext("2d"),c=i??u.height*n,f=s.createLinearGradient(0,0,0,c||n),o=1/(a.length-1);return a.forEach((v,h)=>{f.addColorStop(h*o,v)}),f}(e,this.getPixelRatio(),l==null?void 0:l.canvas.height)}getPixelRatio(){return e=window.devicePixelRatio,Math.max(1,e||1);var e}renderBarWaveform(e,l,a,n){const{width:i,height:u}=a.canvas,{halfHeight:s,barWidth:c,barRadius:f,barIndexScale:o,barSpacing:v,barMinHeight:h}=function({width:p,height:b,length:E,options:d,pixelRatio:r}){const y=b/2,g=d.barWidth?d.barWidth*r:1,A=d.barGap?d.barGap*r:d.barWidth?g/2:0,C=g+A||1;return{halfHeight:y,barWidth:g,barGap:A,barRadius:d.barRadius||0,barMinHeight:d.barMinHeight?d.barMinHeight*r:0,barIndexScale:E>0?p/C/E:0,barSpacing:C}}({width:i,height:u,length:(e[0]||[]).length,options:l,pixelRatio:this.getPixelRatio()}),m=function({channelData:p,barIndexScale:b,barSpacing:E,barWidth:d,halfHeight:r,vScale:y,canvasHeight:g,barAlign:A,barMinHeight:C}){const T=p[0]||[],O=p[1]||T,M=T.length,z=[];let B=0,k=0,pt=0;for(let U=0;U<=M;U++){const At=Math.round(U*b);if(At>B){const{topHeight:j,totalHeight:et}=R0({maxTop:k,maxBottom:pt,halfHeight:r,vScale:y,barMinHeight:C,barAlign:A}),ct=U0({barAlign:A,halfHeight:r,topHeight:j,totalHeight:et,canvasHeight:g});z.push({x:B*E,y:ct,width:d,height:et}),B=At,k=0,pt=0}const x=Math.abs(T[U]||0),H=Math.abs(O[U]||0);x>k&&(k=x),H>pt&&(pt=H)}return z}({channelData:e,barIndexScale:o,barSpacing:v,barWidth:c,halfHeight:s,vScale:n,canvasHeight:u,barAlign:l.barAlign,barMinHeight:h});a.beginPath();for(const p of m)f&&"roundRect"in a?a.roundRect(p.x,p.y,p.width,p.height,f):a.rect(p.x,p.y,p.width,p.height);a.fill(),a.closePath()}renderLineWaveform(e,l,a,n){const{width:i,height:u}=a.canvas,s=function({channelData:c,width:f,height:o,vScale:v}){const h=o/2,m=c[0]||[];return[m,c[1]||m].map((p,b)=>{const E=p.length,d=E?f/E:0,r=h,y=b===0?-1:1,g=[{x:0,y:r}];let A=0,C=0;for(let T=0;T<=E;T++){const O=Math.round(T*d);if(O>A){const z=r+(Math.round(C*h*v)||1)*y;g.push({x:A,y:z}),A=O,C=0}const M=Math.abs(p[T]||0);M>C&&(C=M)}return g.push({x:A,y:r}),g})}({channelData:e,width:i,height:u,vScale:n});a.beginPath();for(const c of s)if(c.length){a.moveTo(c[0].x,c[0].y);for(let f=1;f<c.length;f++){const o=c[f];a.lineTo(o.x,o.y)}}a.fill(),a.closePath()}renderWaveform(e,l,a){if(a.fillStyle=this.convertColorValues(l.waveColor,a),l.renderFunction)return void l.renderFunction(e,a);const n=function({channelData:i,barHeight:u,normalize:s,maxPeak:c}){var f;const o=u||1;if(!s)return o;const v=i[0];if(!v||v.length===0)return o;let h=c??0;if(!c)for(let m=0;m<v.length;m++){const p=(f=v[m])!==null&&f!==void 0?f:0,b=Math.abs(p);b>h&&(h=b)}return h?o/h:o}({channelData:e,barHeight:l.barHeight,normalize:l.normalize,maxPeak:l.maxPeak});Ad(l)?this.renderBarWaveform(e,l,a,n):this.renderLineWaveform(e,l,a,n)}renderSingleCanvas(e,l,a,n,i,u,s){const c=this.getPixelRatio(),f=document.createElement("canvas");f.width=Math.round(a*c),f.height=Math.round(n*c),f.style.width=`${a}px`,f.style.height=`${n}px`,f.style.left=`${Math.round(i)}px`,u.appendChild(f);const o=f.getContext("2d");if(l.renderFunction?(o.fillStyle=this.convertColorValues(l.waveColor,o),l.renderFunction(e,o)):this.renderWaveform(e,l,o),f.width>0&&f.height>0){const v=f.cloneNode(),h=v.getContext("2d");h.drawImage(f,0,0),h.globalCompositeOperation="source-in",h.fillStyle=this.convertColorValues(l.progressColor,h),h.fillRect(0,0,f.width,f.height),s.appendChild(v)}}renderMultiCanvas(e,l,a,n,i,u){const s=this.getPixelRatio(),{clientWidth:c}=this.scrollContainer,f=a/s,o=function({clientWidth:p,totalWidth:b,options:E}){return mo(Math.min(8e3,p,b),E)}({clientWidth:c,totalWidth:f,options:l});let v={};if(o===0)return;const h=p=>{if(p<0||p>=m||v[p])return;v[p]=!0;const b=p*o;let E=Math.min(f-b,o);if(E=mo(E,l),E<=0)return;const d=function({channelData:r,offset:y,clampedWidth:g,totalWidth:A}){return r.map(C=>{const T=Math.floor(y/A*C.length),O=Math.floor((y+g)/A*C.length);return C.slice(T,O)})}({channelData:e,offset:b,clampedWidth:E,totalWidth:f});this.renderSingleCanvas(d,l,E,n,b,i,u)},m=Math.ceil(f/o);if(!this.isScrollable){for(let p=0;p<m;p++)h(p);return}if(vo({scrollLeft:this.scrollContainer.scrollLeft,totalWidth:f,numCanvases:m}).forEach(p=>h(p)),m>1){const p=this.on("scroll",()=>{const{scrollLeft:b}=this.scrollContainer;Object.keys(v).length>10&&(i.innerHTML="",u.innerHTML="",v={}),vo({scrollLeft:b,totalWidth:f,numCanvases:m}).forEach(E=>h(E))});this.unsubscribeOnScroll.push(p)}}renderChannel(e,l,a,n){var{overlay:i}=l,u=function(o,v){var h={};for(var m in o)Object.prototype.hasOwnProperty.call(o,m)&&v.indexOf(m)<0&&(h[m]=o[m]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function"){var p=0;for(m=Object.getOwnPropertySymbols(o);p<m.length;p++)v.indexOf(m[p])<0&&Object.prototype.propertyIsEnumerable.call(o,m[p])&&(h[m[p]]=o[m[p]])}return h}(l,["overlay"]);const s=document.createElement("div"),c=this.getHeight(u.height,u.splitChannels);s.style.height=`${c}px`,i&&n>0&&(s.style.marginTop=`-${c}px`),this.canvasWrapper.style.minHeight=`${c}px`,this.canvasWrapper.appendChild(s);const f=s.cloneNode();this.progressWrapper.appendChild(f),this.renderMultiCanvas(e,u,a,c,s,f)}render(e){return Ct(this,void 0,void 0,function*(){var l;this.timeouts.forEach(f=>f()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const a=this.getPixelRatio(),n=this.scrollContainer.clientWidth,{scrollWidth:i,isScrollable:u,useParentWidth:s,width:c}=function({duration:f,minPxPerSec:o=0,parentWidth:v,fillParent:h,pixelRatio:m}){const p=Math.ceil(f*o),b=p>v,E=!!(h&&!b);return{scrollWidth:p,isScrollable:b,useParentWidth:E,width:(E?v:p)*m}}({duration:e.duration,minPxPerSec:this.options.minPxPerSec||0,parentWidth:n,fillParent:this.options.fillParent,pixelRatio:a});if(this.isScrollable=u,this.wrapper.style.width=s?"100%":`${i}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=e,this.emit("render"),this.options.splitChannels)for(let f=0;f<e.numberOfChannels;f++){const o=Object.assign(Object.assign({},this.options),(l=this.options.splitChannels)===null||l===void 0?void 0:l[f]);this.renderChannel([e.getChannelData(f)],o,c,f)}else{const f=[e.getChannelData(0)];e.numberOfChannels>1&&f.push(e.getChannelData(1)),this.renderChannel(f,this.options,c,0)}Promise.resolve().then(()=>this.emit("rendered"))})}reRender(){if(this.unsubscribeOnScroll.forEach(a=>a()),this.unsubscribeOnScroll=[],!this.audioData)return;const{scrollWidth:e}=this.scrollContainer,{right:l}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&e!==this.scrollContainer.scrollWidth){const{right:a}=this.progressWrapper.getBoundingClientRect(),n=function(i){const u=2*i;return(u<0?Math.floor(u):Math.ceil(u))/2}(a-l);this.scrollContainer.scrollLeft+=n}}zoom(e){this.options.minPxPerSec=e,this.reRender()}scrollIntoView(e,l=!1){const{scrollLeft:a,scrollWidth:n,clientWidth:i}=this.scrollContainer,u=e*n,s=a,c=a+i,f=i/2;if(this.isDragging)u+30>c?this.scrollContainer.scrollLeft+=30:u-30<s&&(this.scrollContainer.scrollLeft-=30);else{(u<s||u>c)&&(this.scrollContainer.scrollLeft=u-(this.options.autoCenter?f:0));const o=u-a-f;l&&this.options.autoCenter&&o>0&&(this.scrollContainer.scrollLeft+=o)}}renderProgress(e,l){if(isNaN(e))return;const a=100*e;this.canvasWrapper.style.clipPath=`polygon(${a}% 0%, 100% 0%, 100% 100%, ${a}% 100%)`,this.progressWrapper.style.width=`${a}%`,this.cursor.style.left=`${a}%`,this.cursor.style.transform=this.options.cursorWidth?`translateX(-${e*this.options.cursorWidth}px)`:"",this.isScrollable&&this.options.autoScroll&&this.audioData&&this.audioData.duration>0&&this.scrollIntoView(e,l)}exportImage(e,l,a){return Ct(this,void 0,void 0,function*(){const n=this.canvasWrapper.querySelectorAll("canvas");if(!n.length)throw new Error("No waveform data");if(a==="dataURL"){const i=Array.from(n).map(u=>u.toDataURL(e,l));return Promise.resolve(i)}return Promise.all(Array.from(n).map(i=>new Promise((u,s)=>{i.toBlob(c=>{c?u(c):s(new Error("Could not export image"))},e,l)})))})}}class B0 extends bn{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;const e=()=>{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(e))};e()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}}class Bu extends bn{constructor(e=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=e,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return Ct(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(e){if(this.currentSrc=e,this._duration=void 0,!e)return this.buffer=null,void this.emit("emptied");fetch(e).then(l=>{if(l.status>=400)throw new Error(`Failed to fetch ${e}: ${l.status} (${l.statusText})`);return l.arrayBuffer()}).then(l=>this.currentSrc!==e?null:this.audioContext.decodeAudioData(l)).then(l=>{this.currentSrc===e&&(this.buffer=l,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())}).catch(l=>{console.error("WebAudioPlayer load error:",l)})}_play(){if(!this.paused)return;this.paused=!1,this.bufferNode&&(this.bufferNode.onended=null,this.bufferNode.disconnect()),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let e=this.playedDuration*this._playbackRate;(e>=this.duration||e<0)&&(e=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,e),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){var e;this.paused=!0,(e=this.bufferNode)===null||e===void 0||e.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return Ct(this,void 0,void 0,function*(){this.paused&&(this._play(),this.emit("play"))})}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(e){const l=e-this.currentTime,a=this.bufferNode;a==null||a.stop(this.audioContext.currentTime+l),a==null||a.addEventListener("ended",()=>{a===this.bufferNode&&(this.bufferNode=null,this.pause())},{once:!0})}setSinkId(e){return Ct(this,void 0,void 0,function*(){return this.audioContext.setSinkId(e)})}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e,this.bufferNode&&(this.bufferNode.playbackRate.value=e)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(e){const l=!this.paused;l&&this._pause(),this.playedDuration=e/this._playbackRate,l&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var e,l;return(e=this._duration)!==null&&e!==void 0?e:((l=this.buffer)===null||l===void 0?void 0:l.duration)||0}set duration(e){this._duration=e}get volume(){return this.gainNode.gain.value}set volume(e){this.gainNode.gain.value=e,this.emit("volumechange")}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(e){return/^(audio|video)\//.test(e)}getGainNode(){return this.gainNode}getChannelData(){const e=[];if(!this.buffer)return e;const l=this.buffer.numberOfChannels;for(let a=0;a<l;a++)e.push(this.buffer.getChannelData(a));return e}removeAttribute(e){switch(e){case"src":this.src="";break;case"playbackRate":this.playbackRate=0;break;case"currentTime":this.currentTime=0;break;case"duration":this.duration=0;break;case"volume":this.volume=0;break;case"muted":this.muted=!1}}}const L0={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};class un extends N0{static create(e){return new un(e)}getState(){return this.wavesurferState}getRenderer(){return this.renderer}constructor(e){const l=e.media||(e.backend==="WebAudio"?new Bu:void 0);super({media:l,mediaControls:e.mediaControls,autoplay:e.autoplay,playbackRate:e.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.reactiveCleanups=[],this.options=Object.assign({},L0,e);const{state:a,actions:n}=function(s){var c,f,o,v,h,m;const p=(c=s==null?void 0:s.currentTime)!==null&&c!==void 0?c:it(0),b=(f=s==null?void 0:s.duration)!==null&&f!==void 0?f:it(0),E=(o=s==null?void 0:s.isPlaying)!==null&&o!==void 0?o:it(!1),d=(v=s==null?void 0:s.isSeeking)!==null&&v!==void 0?v:it(!1),r=(h=s==null?void 0:s.volume)!==null&&h!==void 0?h:it(1),y=(m=s==null?void 0:s.playbackRate)!==null&&m!==void 0?m:it(1),g=it(null),A=it(null),C=it(""),T=it(0),O=it(0),M=rl(()=>!E.value,[E]),z=rl(()=>g.value!==null,[g]),B=rl(()=>z.value&&b.value>0,[z,b]),k=rl(()=>p.value,[p]),pt=rl(()=>b.value>0?p.value/b.value:0,[p,b]);return{state:{currentTime:p,duration:b,isPlaying:E,isPaused:M,isSeeking:d,volume:r,playbackRate:y,audioBuffer:g,peaks:A,url:C,zoom:T,scrollPosition:O,canPlay:z,isReady:B,progress:k,progressPercent:pt},actions:{setCurrentTime:U=>{const At=Math.max(0,Math.min(b.value||1/0,U));p.set(At)},setDuration:U=>{b.set(Math.max(0,U))},setPlaying:U=>{E.set(U)},setSeeking:U=>{d.set(U)},setVolume:U=>{const At=Math.max(0,Math.min(1,U));r.set(At)},setPlaybackRate:U=>{const At=Math.max(.1,Math.min(16,U));y.set(At)},setAudioBuffer:U=>{g.set(U),U&&b.set(U.duration)},setPeaks:U=>{A.set(U)},setUrl:U=>{C.set(U)},setZoom:U=>{T.set(Math.max(0,U))},setScrollPosition:U=>{O.set(Math.max(0,U))}}}}({isPlaying:this.isPlayingSignal,currentTime:this.currentTimeSignal,duration:this.durationSignal,volume:this.volumeSignal,playbackRate:this.playbackRateSignal,isSeeking:this.seekingSignal});this.wavesurferState=a,this.wavesurferActions=n,this.timer=new B0;const i=l?void 0:this.getMediaElement();this.renderer=new j0(this.options,i),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initReactiveState(),this.initPlugins();const u=this.options.url||this.getSrc()||"";Promise.resolve().then(()=>{this.emit("init");const{peaks:s,duration:c}=this.options;(u||s&&c)&&this.load(u,s,c).catch(f=>{this.emit("error",f instanceof Error?f:new Error(String(f)))})})}updateProgress(e=this.getCurrentTime()){return this.renderer.renderProgress(e/this.getDuration(),this.isPlaying()),e}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{if(!this.isSeeking()){const e=this.updateProgress();this.emit("timeupdate",e),this.emit("audioprocess",e),this.stopAtPosition!=null&&this.isPlaying()&&e>=this.stopAtPosition&&this.pause()}}))}initReactiveState(){this.reactiveCleanups.push(function(e,l){const a=[];a.push(Ue(()=>{const u=e.isPlaying.value;l.emit(u?"play":"pause")},[e.isPlaying])),a.push(Ue(()=>{const u=e.currentTime.value;l.emit("timeupdate",u),e.isPlaying.value&&l.emit("audioprocess",u)},[e.currentTime,e.isPlaying])),a.push(Ue(()=>{e.isSeeking.value&&l.emit("seeking",e.currentTime.value)},[e.isSeeking,e.currentTime]));let n=!1;a.push(Ue(()=>{e.isReady.value&&!n&&(n=!0,l.emit("ready",e.duration.value))},[e.isReady,e.duration]));let i=!1;return a.push(Ue(()=>{const u=e.isPlaying.value,s=e.currentTime.value,c=e.duration.value,f=c>0&&s>=c;i&&!u&&f&&l.emit("finish"),i=u&&f},[e.isPlaying,e.currentTime,e.duration])),a.push(Ue(()=>{const u=e.zoom.value;u>0&&l.emit("zoom",u)},[e.zoom])),()=>{a.forEach(u=>u())}}(this.wavesurferState,{emit:this.emit.bind(this)}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const e=this.updateProgress();this.emit("timeupdate",e)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("emptied",()=>{this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("ended",()=>{this.emit("timeupdate",this.getDuration()),this.emit("finish"),this.stopAtPosition=null}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}),this.onMediaEvent("error",()=>{var e;this.emit("error",(e=this.getMediaElement().error)!==null&&e!==void 0?e:new Error("Media error")),this.stopAtPosition=null}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(e,l)=>{this.options.interact&&(this.seekTo(e),this.emit("interaction",e*this.getDuration()),this.emit("click",e,l))}),this.renderer.on("dblclick",(e,l)=>{this.emit("dblclick",e,l)}),this.renderer.on("scroll",(e,l,a,n)=>{const i=this.getDuration();this.emit("scroll",e*i,l*i,a,n)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}),this.renderer.on("dragstart",e=>{this.emit("dragstart",e)}),this.renderer.on("dragend",e=>{this.emit("dragend",e)}),this.renderer.on("resize",()=>{this.emit("resize")}));{let e;const l=this.renderer.on("drag",a=>{var n;if(!this.options.interact)return;this.renderer.renderProgress(a),clearTimeout(e);let i=0;const u=this.options.dragToSeek;this.isPlaying()?i=0:u===!0?i=200:u&&typeof u=="object"&&(i=(n=u.debounceTime)!==null&&n!==void 0?n:200),e=setTimeout(()=>{this.seekTo(a)},i),this.emit("interaction",a*this.getDuration()),this.emit("drag",a)});this.subscriptions.push(()=>{clearTimeout(e),l()})}}initPlugins(){var e;!((e=this.options.plugins)===null||e===void 0)&&e.length&&this.options.plugins.forEach(l=>{this.registerPlugin(l)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(e=>e()),this.mediaSubscriptions=[]}setOptions(e){this.options=Object.assign({},this.options,e),e.duration&&!e.peaks&&(this.decodedData=Xn.createBuffer(this.exportPeaks(),e.duration)),e.peaks&&e.duration&&(this.decodedData=Xn.createBuffer(e.peaks,e.duration)),this.renderer.setOptions(this.options),e.audioRate&&this.setPlaybackRate(e.audioRate),e.mediaControls!=null&&(this.getMediaElement().controls=e.mediaControls)}registerPlugin(e){if(this.plugins.includes(e))return e;e._init(this),this.plugins.push(e);const l=e.once("destroy",()=>{this.plugins=this.plugins.filter(a=>a!==e),this.subscriptions=this.subscriptions.filter(a=>a!==l)});return this.subscriptions.push(l),e}unregisterPlugin(e){this.plugins=this.plugins.filter(l=>l!==e),e.destroy()}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(e){return this.renderer.setScroll(e)}setScrollTime(e){const l=e/this.getDuration();this.renderer.setScrollPercentage(l)}getActivePlugins(){return this.plugins}loadAudio(e,l,a,n){return Ct(this,void 0,void 0,function*(){var i;if(this.emit("load",e),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,(i=this.abortController)===null||i===void 0||i.abort(),this.abortController=null,!l&&!a){const s=this.options.fetchParams||{};window.AbortController&&!s.signal&&(this.abortController=new AbortController,s.signal=this.abortController.signal);const c=o=>this.emit("loading",o);l=yield D0.fetchBlob(e,c,s);const f=this.options.blobMimeType;f&&(l=new Blob([l],{type:f}))}this.setSrc(e,l);const u=yield new Promise(s=>{const c=n||this.getDuration();c?s(c):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",()=>s(this.getDuration()),{once:!0}))});if(!e&&!l){const s=this.getMediaElement();s instanceof Bu&&(s.duration=u)}if(a)this.decodedData=Xn.createBuffer(a,u||0);else if(l){const s=yield l.arrayBuffer();this.decodedData=yield Xn.decode(s,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(e,l,a){return Ct(this,void 0,void 0,function*(){try{return yield this.loadAudio(e,void 0,l,a)}catch(n){throw this.emit("error",n),n}})}loadBlob(e,l,a){return Ct(this,void 0,void 0,function*(){try{return yield this.loadAudio("",e,l,a)}catch(n){throw this.emit("error",n),n}})}zoom(e){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(e),this.emit("zoom",e)}getDecodedData(){return this.decodedData}exportPeaks({channels:e=2,maxLength:l=8e3,precision:a=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const n=Math.min(e,this.decodedData.numberOfChannels),i=[];for(let u=0;u<n;u++){const s=this.decodedData.getChannelData(u),c=[],f=s.length/l;for(let o=0;o<l;o++){const v=s.slice(Math.floor(o*f),Math.ceil((o+1)*f));let h=0;for(let m=0;m<v.length;m++){const p=v[m];Math.abs(p)>Math.abs(h)&&(h=p)}c.push(Math.round(h*a)/a)}i.push(c)}return i}getDuration(){let e=super.getDuration()||0;return e!==0&&e!==1/0||!this.decodedData||(e=this.decodedData.duration),e}toggleInteraction(e){this.options.interact=e}setTime(e){this.stopAtPosition=null,super.setTime(e),this.updateProgress(e),this.emit("timeupdate",e)}seekTo(e){const l=this.getDuration()*e;this.setTime(l)}play(e,l){const a=Object.create(null,{play:{get:()=>super.play}});return Ct(this,void 0,void 0,function*(){e!=null&&this.setTime(e);const n=yield a.play.call(this);return l!=null&&(this.media instanceof Bu?this.media.stopAt(l):this.stopAtPosition=l),n})}playPause(){return Ct(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(e){this.setTime(this.getCurrentTime()+e)}empty(){this.load("",[[0]],.001)}setMediaElement(e){this.unsubscribePlayerEvents(),super.setMediaElement(e),this.initPlayerEvents()}exportImage(){return Ct(this,arguments,void 0,function*(e="image/png",l=1,a="dataURL"){return this.renderer.exportImage(e,l,a)})}destroy(){var e;this.emit("destroy"),(e=this.abortController)===null||e===void 0||e.abort(),this.plugins.forEach(l=>l.destroy()),this.subscriptions.forEach(l=>l()),this.unsubscribePlayerEvents(),this.reactiveCleanups.forEach(l=>l()),this.reactiveCleanups=[],this.timer.destroy(),this.renderer.destroy(),super.destroy()}}un.BasePlugin=class extends bn{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(t=>t()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},un.dom=_0;let Y0=class{constructor(){this.listeners={}}on(e,l,a){if(this.listeners[e]||(this.listeners[e]=new Set),a==null?void 0:a.once){const n=(...i)=>{this.un(e,n),l(...i)};return this.listeners[e].add(n),()=>this.un(e,n)}return this.listeners[e].add(l),()=>this.un(e,l)}un(e,l){var a;(a=this.listeners[e])===null||a===void 0||a.delete(l)}once(e,l){return this.on(e,l,{once:!0})}unAll(){this.listeners={}}emit(e,...l){this.listeners[e]&&this.listeners[e].forEach(a=>a(...l))}},q0=class extends Y0{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(e=>e()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}};function Cd(t,e){const l=e.xmlns?document.createElementNS(e.xmlns,t):document.createElement(t);for(const[a,n]of Object.entries(e))if(a==="children"&&n)for(const[i,u]of Object.entries(n))u instanceof Node?l.appendChild(u):typeof u=="string"?l.appendChild(document.createTextNode(u)):l.appendChild(Cd(i,u));else a==="style"?Object.assign(l.style,n):a==="textContent"?l.textContent=n:l.setAttribute(a,n.toString());return l}function Lu(t,e,l){return Cd(t,e||{})}const X0={height:20,timeOffset:0,formatTimeCallback:t=>t/60>1?`${Math.floor(t/60)}:${`${(t=Math.round(t%60))<10?"0":""}${t}`}`:`${Math.round(1e3*t)/1e3}`};let G0=class xd extends q0{constructor(e){super(e||{}),this.notchElements=new Map,this.currentTimeline=null,this.options=Object.assign({},X0,e),this.timelineWrapper=this.initTimelineWrapper()}static create(e){return new xd(e)}onInit(){var e;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let l=this.wavesurfer.getWrapper();if(this.options.container instanceof HTMLElement)l=this.options.container;else if(typeof this.options.container=="string"){const n=document.querySelector(this.options.container);if(!n)throw Error(`No Timeline container found matching ${this.options.container}`);l=n}this.options.insertPosition?(l.firstElementChild||l).insertAdjacentElement(this.options.insertPosition,this.timelineWrapper):l.appendChild(this.timelineWrapper);const a=this.wavesurfer.getState();this.subscriptions.push(function(n,i){let u;const s=()=>{u&&(u(),u=void 0),u=n()},c=i.map(f=>f.subscribe(s));return s(),()=>{u&&(u(),u=void 0),c.forEach(f=>f())}}(()=>{(a.duration.value>0||this.options.duration)&&this.initTimeline()},[a.duration])),this.subscriptions.push(this.wavesurfer.on("redraw",()=>this.initTimeline())),this.subscriptions.push(this.wavesurfer.on("scroll",(n,i,u,s)=>{this.currentTimeline&&this.updateVisibleNotches(u,s,this.currentTimeline)})),(!((e=this.wavesurfer)===null||e===void 0)&&e.getDuration()||this.options.duration)&&this.initTimeline()}destroy(){this.timelineWrapper.remove(),super.destroy()}initTimelineWrapper(){return Lu("div",{part:"timeline-wrapper",style:{pointerEvents:"none"}})}defaultTimeInterval(e){return e>=25?1:5*e>=25?5:15*e>=25?15:60*Math.ceil(.5/e)}defaultPrimaryLabelInterval(e){return e>=25?10:5*e>=25?6:4}defaultSecondaryLabelInterval(e){return e>=25?5:2}virtualAppend(e,l,a){if(this.notchElements.set(a,{start:e,width:a.clientWidth,wasVisible:!1}),!this.wavesurfer)return;const n=this.wavesurfer.getScroll(),i=n+this.wavesurfer.getWidth(),u=this.notchElements.get(a),s=e>=n&&e+u.width<i;u.wasVisible=s,s&&l.appendChild(a)}updateVisibleNotches(e,l,a){this.notchElements.forEach((n,i)=>{const u=n.start>=e&&n.start+n.width<l;u!==n.wasVisible&&(n.wasVisible=u,u?a.appendChild(i):i.remove())})}initTimeline(){var e,l,a,n,i,u,s,c;this.notchElements.clear();const f=(a=(l=(e=this.wavesurfer)===null||e===void 0?void 0:e.getDuration())!==null&&l!==void 0?l:this.options.duration)!==null&&a!==void 0?a:0,o=(((n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper().scrollWidth)||this.timelineWrapper.scrollWidth)/f,v=(i=this.options.timeInterval)!==null&&i!==void 0?i:this.defaultTimeInterval(o),h=(u=this.options.primaryLabelInterval)!==null&&u!==void 0?u:this.defaultPrimaryLabelInterval(o),m=this.options.primaryLabelSpacing,p=(s=this.options.secondaryLabelInterval)!==null&&s!==void 0?s:this.defaultSecondaryLabelInterval(o),b=this.options.secondaryLabelSpacing,E=this.options.insertPosition==="beforebegin",d=Lu("div",{style:Object.assign({height:`${this.options.height}px`,overflow:"hidden",fontSize:this.options.height/2+"px",whiteSpace:"nowrap"},E?{position:"absolute",top:"0",left:"0",right:"0",zIndex:"2"}:{position:"relative"})});d.setAttribute("part","timeline"),typeof this.options.style=="string"?d.setAttribute("style",d.getAttribute("style")+this.options.style):typeof this.options.style=="object"&&Object.assign(d.style,this.options.style);const r=Lu("div",{style:{width:"0",height:"50%",display:"flex",flexDirection:"column",justifyContent:E?"flex-start":"flex-end",top:E?"0":"auto",bottom:E?"auto":"0",overflow:"visible",borderLeft:"1px solid currentColor",opacity:`${(c=this.options.secondaryLabelOpacity)!==null&&c!==void 0?c:.25}`,position:"absolute",zIndex:"1"}});for(let y=0,g=0;y<f;y+=v,g++){const A=r.cloneNode(),C=Math.round(100*y)%Math.round(100*h)==0||m&&g%m==0,T=Math.round(100*y)%Math.round(100*p)==0||b&&g%b==0;(C||T)&&(A.style.height="100%",A.style.textIndent="3px",A.textContent=this.options.formatTimeCallback(y),C&&(A.style.opacity="1"));const O=C?"primary":T?"secondary":"tick";A.setAttribute("part",`timeline-notch timeline-notch-${O}`);const M=Math.round(100*(y+this.options.timeOffset))/100*o;A.style.left=`${M}px`,this.virtualAppend(M,d,A)}this.timelineWrapper.innerHTML="",this.timelineWrapper.appendChild(d),this.currentTimeline=d,this.emit("ready")}};class Od{constructor(){this.listeners={}}on(e,l,a){if(this.listeners[e]||(this.listeners[e]=new Set),a==null?void 0:a.once){const n=(...i)=>{this.un(e,n),l(...i)};return this.listeners[e].add(n),()=>this.un(e,n)}return this.listeners[e].add(l),()=>this.un(e,l)}un(e,l){var a;(a=this.listeners[e])===null||a===void 0||a.delete(l)}once(e,l){return this.on(e,l,{once:!0})}unAll(){this.listeners={}}emit(e,...l){this.listeners[e]&&this.listeners[e].forEach(a=>a(...l))}}class Q0 extends Od{constructor(e){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=e}onInit(){}_init(e){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=e,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(e=>e()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}}function _d(t,e){const l=e.xmlns?document.createElementNS(e.xmlns,t):document.createElement(t);for(const[a,n]of Object.entries(e))if(a==="children"&&n)for(const[i,u]of Object.entries(n))u instanceof Node?l.appendChild(u):typeof u=="string"?l.appendChild(document.createTextNode(u)):l.appendChild(_d(i,u));else a==="style"?Object.assign(l.style,n):a==="textContent"?l.textContent=n:l.setAttribute(a,n.toString());return l}function Da(t,e,l){const a=_d(t,e||{});return l==null||l.appendChild(a),a}function Dd(t){let e=t;const l=new Set;return{get value(){return e},set(a){Object.is(e,a)||(e=a,l.forEach(n=>n(e)))},update(a){this.set(a(e))},subscribe:a=>(l.add(a),()=>l.delete(a))}}function li(t,e){let l;const a=()=>{l&&(l(),l=void 0),l=t()},n=e.map(i=>i.subscribe(a));return a(),()=>{l&&(l(),l=void 0),n.forEach(i=>i())}}function _l(t,e){const l=Dd(null),a=n=>{l.set(n)};return t.addEventListener(e,a),l._cleanup=()=>{t.removeEventListener(e,a)},l}function ol(t){const e=t._cleanup;typeof e=="function"&&e()}function ai(t,e={}){const{threshold:l=3,mouseButton:a=0,touchDelay:n=100}=e,i=Dd(null),u=new Map,s=matchMedia("(pointer: coarse)").matches;let c=()=>{};const f=o=>{if(o.button!==a||(u.set(o.pointerId,o),u.size>1))return;let v=o.clientX,h=o.clientY,m=!1;const p=Date.now(),b=t.getBoundingClientRect(),{left:E,top:d}=b,r=T=>{if(T.defaultPrevented||u.size>1||s&&Date.now()-p<n)return;const O=T.clientX,M=T.clientY,z=O-v,B=M-h;(m||Math.abs(z)>l||Math.abs(B)>l)&&(T.preventDefault(),T.stopPropagation(),m||(i.set({type:"start",x:v-E,y:h-d}),m=!0),i.set({type:"move",x:O-E,y:M-d,deltaX:z,deltaY:B}),v=O,h=M)},y=T=>{if(u.delete(T.pointerId),m){const O=T.clientX,M=T.clientY;i.set({type:"end",x:O-E,y:M-d})}c()},g=T=>{u.delete(T.pointerId),T.relatedTarget&&T.relatedTarget!==document.documentElement||y(T)},A=T=>{m&&(T.stopPropagation(),T.preventDefault())},C=T=>{T.defaultPrevented||u.size>1||m&&T.preventDefault()};document.addEventListener("pointermove",r),document.addEventListener("pointerup",y),document.addEventListener("pointerout",g),document.addEventListener("pointercancel",g),document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("click",A,{capture:!0}),c=()=>{document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",y),document.removeEventListener("pointerout",g),document.removeEventListener("pointercancel",g),document.removeEventListener("touchmove",C),setTimeout(()=>{document.removeEventListener("click",A,{capture:!0})},10)}};return t.addEventListener("pointerdown",f),{signal:i,cleanup:()=>{c(),t.removeEventListener("pointerdown",f),u.clear(),ol(i)}}}class yo extends Od{constructor(e,l,a=0){var n,i,u,s,c,f,o,v,h,m;super(),this.totalDuration=l,this.numberOfChannels=a,this.element=null,this.minLength=0,this.maxLength=1/0,this.contentEditable=!1,this.subscriptions=[],this.updatingSide=void 0,this.isRemoved=!1,this.subscriptions=[],this.id=e.id||`region-${Math.random().toString(32).slice(2)}`,this.start=this.clampPosition(e.start),this.end=this.clampPosition((n=e.end)!==null&&n!==void 0?n:e.start),this.drag=(i=e.drag)===null||i===void 0||i,this.resize=(u=e.resize)===null||u===void 0||u,this.resizeStart=(s=e.resizeStart)===null||s===void 0||s,this.resizeEnd=(c=e.resizeEnd)===null||c===void 0||c,this.color=(f=e.color)!==null&&f!==void 0?f:"rgba(0, 0, 0, 0.1)",this.minLength=(o=e.minLength)!==null&&o!==void 0?o:this.minLength,this.maxLength=(v=e.maxLength)!==null&&v!==void 0?v:this.maxLength,this.channelIdx=(h=e.channelIdx)!==null&&h!==void 0?h:-1,this.contentEditable=(m=e.contentEditable)!==null&&m!==void 0?m:this.contentEditable,this.element=this.initElement(),this.setContent(e.content),this.setPart(),this.renderPosition(),this.initMouseEvents()}clampPosition(e){return Math.max(0,Math.min(this.totalDuration,e))}setPart(){var e;const l=this.start===this.end;(e=this.element)===null||e===void 0||e.setAttribute("part",`${l?"marker":"region"} ${this.id}`)}addResizeHandles(e){const l={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},a=Da("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},l),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},e),n=Da("div",{part:"region-handle region-handle-right",style:Object.assign(Object.assign({},l),{right:"0",borderRight:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"0 2px 2px 0"})},e),i=ai(a,{threshold:1}),u=ai(n,{threshold:1}),s=li(()=>{const f=i.signal.value;f&&(f.type==="move"&&f.deltaX!==void 0?this.onResize(f.deltaX,"start"):f.type==="end"&&this.onEndResizing("start"))},[i.signal]),c=li(()=>{const f=u.signal.value;f&&(f.type==="move"&&f.deltaX!==void 0?this.onResize(f.deltaX,"end"):f.type==="end"&&this.onEndResizing("end"))},[u.signal]);this.subscriptions.push(()=>{s(),c(),i.cleanup(),u.cleanup()})}removeResizeHandles(e){const l=e.querySelector('[part*="region-handle-left"]'),a=e.querySelector('[part*="region-handle-right"]');l&&e.removeChild(l),a&&e.removeChild(a)}initElement(){if(this.isRemoved)return null;const e=this.start===this.end;let l=0,a=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(a=100/this.numberOfChannels,l=a*this.channelIdx);const n=Da("div",{style:{position:"absolute",top:`${l}%`,height:`${a}%`,backgroundColor:e?"none":this.color,borderLeft:e?"2px solid "+this.color:"none",borderRadius:"2px",boxSizing:"border-box",transition:"background-color 0.2s ease",cursor:this.drag?"grab":"default",pointerEvents:"all"}});return!e&&this.resize&&this.addResizeHandles(n),n}renderPosition(){if(!this.element)return;const e=this.start/this.totalDuration,l=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*e+"%",this.element.style.right=100*l+"%"}toggleCursor(e){var l;this.drag&&(!((l=this.element)===null||l===void 0)&&l.style)&&(this.element.style.cursor=e?"grabbing":"grab")}initMouseEvents(){const{element:e}=this;if(!e)return;const l=_l(e,"click"),a=_l(e,"mouseenter"),n=_l(e,"mouseleave"),i=_l(e,"dblclick"),u=_l(e,"pointerdown"),s=_l(e,"pointerup"),c=l.subscribe(E=>E&&this.emit("click",E)),f=a.subscribe(E=>E&&this.emit("over",E)),o=n.subscribe(E=>E&&this.emit("leave",E)),v=i.subscribe(E=>E&&this.emit("dblclick",E)),h=u.subscribe(E=>E&&this.toggleCursor(!0)),m=s.subscribe(E=>E&&this.toggleCursor(!1));this.subscriptions.push(()=>{c(),f(),o(),v(),h(),m(),ol(l),ol(a),ol(n),ol(i),ol(u),ol(s)});const p=ai(e),b=li(()=>{const E=p.signal.value;E&&(E.type==="start"?this.toggleCursor(!0):E.type==="move"&&E.deltaX!==void 0?this.onMove(E.deltaX):E.type==="end"&&(this.toggleCursor(!1),this.drag&&this.emit("update-end")))},[p.signal]);this.subscriptions.push(()=>{b(),p.cleanup()}),this.contentEditable&&this.content&&(this.contentClickListener=E=>this.onContentClick(E),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener))}_onUpdate(e,l,a){var n;if(!(!((n=this.element)===null||n===void 0)&&n.parentElement))return;const{width:i}=this.element.parentElement.getBoundingClientRect(),u=e/i*this.totalDuration;let s=l&&l!=="start"?this.start:this.start+u,c=l&&l!=="end"?this.end:this.end+u;const f=a!==void 0;f&&this.updatingSide&&this.updatingSide!==l&&(this.updatingSide==="start"?s=a:c=a),s=Math.max(0,s),c=Math.min(this.totalDuration,c);const o=c-s;this.updatingSide=l;const v=o>=this.minLength&&o<=this.maxLength;s<=c&&(v||f)&&(this.start=s,this.end=c,this.renderPosition(),this.emit("update",l))}onMove(e){this.drag&&this._onUpdate(e)}onResize(e,l){this.resize&&(this.resizeStart||l!=="start")&&(this.resizeEnd||l!=="end")&&this._onUpdate(e,l)}onEndResizing(e){this.resize&&(this.emit("update-end",e),this.updatingSide=void 0)}onContentClick(e){e.stopPropagation(),e.target.focus(),this.emit("click",e)}onContentBlur(){this.emit("update-end")}_setTotalDuration(e){this.totalDuration=e,this.renderPosition()}play(e){this.emit("play",e&&this.end!==this.start?this.end:void 0)}getContent(e=!1){var l;return e?this.content||void 0:this.element instanceof HTMLElement?((l=this.content)===null||l===void 0?void 0:l.innerHTML)||void 0:""}setContent(e){var l;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(l=this.content)===null||l===void 0||l.remove(),e){if(typeof e=="string"){const a=this.start===this.end;this.content=Da("div",{style:{padding:`0.2em ${a?.2:.4}em`,display:"inline-block"},textContent:e})}else this.content=e;this.contentEditable&&(this.content.contentEditable="true",this.contentClickListener=a=>this.onContentClick(a),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener)),this.content.setAttribute("part","region-content"),this.element.appendChild(this.content),this.emit("content-changed")}else this.content=void 0}setOptions(e){var l,a;if(this.element){if(e.color&&(this.color=e.color,this.element.style.backgroundColor=this.color),e.drag!==void 0&&(this.drag=e.drag,this.element.style.cursor=this.drag?"grab":"default"),e.start!==void 0||e.end!==void 0){const n=this.start===this.end;this.start=this.clampPosition((l=e.start)!==null&&l!==void 0?l:this.start),this.end=this.clampPosition((a=e.end)!==null&&a!==void 0?a:n?this.start:this.end),this.renderPosition(),this.setPart()}if(e.content&&this.setContent(e.content),e.id&&(this.id=e.id,this.setPart()),e.resize!==void 0&&e.resize!==this.resize){const n=this.start===this.end;this.resize=e.resize,this.resize&&!n?this.addResizeHandles(this.element):this.removeResizeHandles(this.element)}e.resizeStart!==void 0&&(this.resizeStart=e.resizeStart),e.resizeEnd!==void 0&&(this.resizeEnd=e.resizeEnd)}}remove(){this.isRemoved=!0,this.emit("remove"),this.subscriptions.forEach(e=>e()),this.subscriptions=[],this.content&&this.contentEditable&&(this.contentClickListener&&(this.content.removeEventListener("click",this.contentClickListener),this.contentClickListener=void 0),this.contentBlurListener&&(this.content.removeEventListener("blur",this.contentBlurListener),this.contentBlurListener=void 0)),this.element&&(this.element.remove(),this.element=null),this.unAll()}}class jc extends Q0{constructor(e){super(e),this.regions=[],this.regionsContainer=this.initRegionsContainer()}static create(e){return new jc(e)}onInit(){if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");this.wavesurfer.getWrapper().appendChild(this.regionsContainer),this.subscriptions.push(this.wavesurfer.on("ready",l=>{this.regions.forEach(a=>a._setTotalDuration(l))}));let e=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",l=>{const a=this.regions.filter(n=>n.start<=l&&(n.end===n.start?n.start+.05:n.end)>=l);a.forEach(n=>{e.includes(n)||this.emit("region-in",n)}),e.forEach(n=>{a.includes(n)||this.emit("region-out",n)}),e=a}))}initRegionsContainer(){return Da("div",{part:"regions-container",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"5",pointerEvents:"none"}})}getRegions(){return this.regions}avoidOverlapping(e){e.content&&setTimeout(()=>{const l=e.content,a=l.getBoundingClientRect(),n=this.regions.map(i=>{if(i===e||!i.content)return 0;const u=i.content.getBoundingClientRect();return a.left<u.left+u.width&&u.left<a.left+a.width?u.height:0}).reduce((i,u)=>i+u,0);l.style.marginTop=`${n}px`},10)}adjustScroll(e){var l,a;if(!e.element)return;const n=(a=(l=this.wavesurfer)===null||l===void 0?void 0:l.getWrapper())===null||a===void 0?void 0:a.parentElement;if(!n)return;const{clientWidth:i,scrollWidth:u}=n;if(u<=i)return;const s=n.getBoundingClientRect(),c=e.element.getBoundingClientRect(),f=c.left-s.left,o=c.right-s.left;f<0?n.scrollLeft+=f:o>i&&(n.scrollLeft+=o-i)}virtualAppend(e,l,a){const n=()=>{if(!this.wavesurfer)return;const i=this.wavesurfer.getWidth(),u=this.wavesurfer.getScroll(),s=l.clientWidth,c=this.wavesurfer.getDuration(),f=Math.round(e.start/c*s),o=f+(Math.round((e.end-e.start)/c*s)||1)>u&&f<u+i;o&&!a.parentElement?l.appendChild(a):!o&&a.parentElement&&a.remove()};setTimeout(()=>{if(!this.wavesurfer||!e.element)return;n();const i=this.wavesurfer.on("scroll",n),u=this.wavesurfer.on("zoom",n),s=this.wavesurfer.on("resize",n);this.subscriptions.push(i,u,s),e.once("remove",()=>{i(),u(),s()})},0)}saveRegion(e){if(!e.element)return;this.virtualAppend(e,this.regionsContainer,e.element),this.avoidOverlapping(e),this.regions.push(e);const l=[e.on("update",a=>{a||this.adjustScroll(e),this.emit("region-update",e,a)}),e.on("update-end",a=>{this.avoidOverlapping(e),this.emit("region-updated",e,a)}),e.on("play",a=>{var n;(n=this.wavesurfer)===null||n===void 0||n.play(e.start,a)}),e.on("click",a=>{this.emit("region-clicked",e,a)}),e.on("dblclick",a=>{this.emit("region-double-clicked",e,a)}),e.on("content-changed",()=>{this.emit("region-content-changed",e)}),e.once("remove",()=>{l.forEach(a=>a()),this.regions=this.regions.filter(a=>a!==e),this.emit("region-removed",e)})];this.subscriptions.push(...l),this.emit("region-created",e)}addRegion(e){var l,a;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");const n=this.wavesurfer.getDuration(),i=(a=(l=this.wavesurfer)===null||l===void 0?void 0:l.getDecodedData())===null||a===void 0?void 0:a.numberOfChannels,u=new yo(e,n,i);return this.emit("region-initialized",u),n?this.saveRegion(u):this.subscriptions.push(this.wavesurfer.once("ready",s=>{u._setTotalDuration(s),this.saveRegion(u)})),u}enableDragSelection(e,l=3){var a;const n=(a=this.wavesurfer)===null||a===void 0?void 0:a.getWrapper();if(!(n&&n instanceof HTMLElement))return()=>{};let i=null,u=0,s=0;const c=ai(n,{threshold:l}),f=li(()=>{var o,v;const h=c.signal.value;if(h)if(h.type==="start"){if(u=h.x,!this.wavesurfer)return;const m=this.wavesurfer.getDuration(),p=(v=(o=this.wavesurfer)===null||o===void 0?void 0:o.getDecodedData())===null||v===void 0?void 0:v.numberOfChannels,{width:b}=this.wavesurfer.getWrapper().getBoundingClientRect();s=u/b*m;const E=h.x/b*m,d=(h.x+5)/b*m;i=new yo(Object.assign(Object.assign({},e),{start:E,end:d}),m,p),this.emit("region-initialized",i),i.element&&this.regionsContainer.appendChild(i.element)}else h.type==="move"&&h.deltaX!==void 0?i&&i._onUpdate(h.deltaX,h.x>u?"end":"start",s):h.type==="end"&&i&&(this.saveRegion(i),i.updatingSide=void 0,i=null)},[c.signal]);return()=>{f(),c.cleanup()}}clearRegions(){this.regions.slice().forEach(e=>e.remove()),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}}const Z0=({audioUrl:t,transcript:e,onReady:l})=>{var T,O,M;const a=w.useRef(null),n=w.useRef(null),i=w.useRef(null),u=w.useRef(null),[s,c]=w.useState(100),[f,o]=w.useState(0),[v,h]=w.useState(0),[m,p]=w.useState(!1),[b,E]=w.useState(!1),[d,r]=w.useState(0);w.useEffect(()=>{if(!a.current||!t)return;const z=un.create({container:a.current,waveColor:"#433be8ff",progressColor:"#818CF8",cursorColor:"#333",barWidth:2,barGap:3,barRadius:3,height:128,minPxPerSec:s,scrollParent:!0,autoScroll:!0,normalize:!0}),B=z.registerPlugin(jc.create());u.current=B,z.registerPlugin(G0.create({container:"#timeline"})),z.on("ready",()=>{E(!0),o(z.getDuration()),l&&l()}),z.on("audioprocess",U=>{h(U)}),z.on("seek",U=>{h(U*z.getDuration())}),z.on("play",()=>p(!0)),z.on("pause",()=>p(!1));const k=()=>{z.renderer&&z.renderer.scrollContainer&&r(z.renderer.scrollContainer.scrollLeft)};return z.renderer&&z.renderer.scrollContainer&&z.renderer.scrollContainer.addEventListener("scroll",k),(async()=>{var U;try{await z.load(t)}catch(At){if(At.name==="AbortError"||(U=At.message)!=null&&U.includes("aborted"))return;console.error("Error loading audio:",At)}})(),i.current=z,()=>{try{z.renderer&&z.renderer.scrollContainer&&z.renderer.scrollContainer.removeEventListener("scroll",k),z.destroy()}catch(U){console.warn("Error destroying wavesurfer instance:",U)}}},[t]),w.useEffect(()=>{i.current&&b&&i.current.zoom(s)},[s,b]),w.useEffect(()=>{!i.current||!e||!u.current||(u.current.clearRegions(),e.forEach((z,B)=>{try{const pt=B%2===0?"rgba(53, 44, 227, 0.2)":"rgba(99, 102, 241, 0.2)";u.current.addRegion({start:z.start_time,end:z.end_time,color:pt,drag:!1,resize:!1,id:`segment-${B}`})}catch(k){console.error("Error creating region for item:",z,k)}}),u.current.on("region-clicked",(z,B)=>{B.stopPropagation(),i.current&&i.current.play(z.start,z.end)}),i.current&&i.current.on("interaction",()=>{i.current.play()}))},[e]);const y=(z,B)=>{i.current&&b&&i.current.play(z,B)},g=((T=a.current)==null?void 0:T.clientWidth)||800,A=b&&f>0?Math.max(s,g/f):s,C=f*A;return _.jsxs("div",{className:"flex flex-col gap-4 w-full",children:[_.jsxs("div",{className:"flex items-center gap-4 p-2 bg-gray-50 rounded border",children:[_.jsx("button",{className:"px-4 py-2 bg-indigo-600 text-white rounded hover:bg-indigo-700 font-medium disabled:bg-gray-400",onClick:()=>{var z;return b&&((z=i.current)==null?void 0:z.playPause())},disabled:!b,children:m?"Pause":"Play"}),_.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[_.jsx("label",{className:"text-sm font-medium text-gray-700",children:"Zoom:"}),_.jsx("input",{type:"range",min:"10",max:"500",value:s,onChange:z=>c(Number(z.target.value)),className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer"})]}),_.jsxs("div",{className:"text-sm font-mono text-gray-600",children:[v.toFixed(2),"s / ",f.toFixed(2),"s"]})]}),_.jsxs("div",{className:"relative border rounded bg-white shadow-sm overflow-hidden",children:[_.jsx("div",{id:"waveform",ref:a,className:"w-full",style:{height:"128px"}}),_.jsx("div",{className:"w-full overflow-hidden",style:{height:"24px"},children:_.jsx("div",{id:"timeline",style:{width:`${Math.max(C,((O=a.current)==null?void 0:O.clientWidth)||800)}px`,height:"24px",transform:`translateX(-${d}px)`}})}),_.jsx("div",{ref:n,className:"absolute top-0 left-0 pointer-events-none",style:{width:`${Math.max(C,((M=a.current)==null?void 0:M.clientWidth)||800)}px`,height:"128px",transform:`translateX(-${d}px)`},children:e&&e.map((z,B)=>{const k=z.start_time*A,pt=(z.end_time-z.start_time)*A;return _.jsx("div",{className:"absolute top-0 flex items-start pointer-events-auto cursor-pointer",style:{left:`${k}px`,width:`${pt}px`,height:"100%",borderLeft:"2px solid rgba(255, 255, 255, 0.9)"},onClick:()=>y(z.start_time,z.end_time),title:z.text,children:_.jsx("span",{className:"text-xs font-semibold px-1 py-0.5 rounded whitespace-nowrap",style:{color:"#1e1b4b",textShadow:"0 0 4px white, 0 0 4px white, 0 0 2px white",backgroundColor:"rgba(255, 255, 255, 0.7)"},children:z.text})},B)})})]})]})};/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nd=(...t)=>t.filter((e,l,a)=>!!e&&e.trim()!==""&&a.indexOf(e)===l).join(" ").trim();/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w0=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V0=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,l,a)=>a?a.toUpperCase():l.toLowerCase());/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const go=t=>{const e=V0(t);return e.charAt(0).toUpperCase()+e.slice(1)};/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var K0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J0=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W0=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:n="",children:i,iconNode:u,...s},c)=>w.createElement("svg",{ref:c,...K0,width:e,height:e,stroke:t,strokeWidth:a?Number(l)*24/Number(e):l,className:Nd("lucide",n),...!i&&!J0(s)&&{"aria-hidden":"true"},...s},[...u.map(([f,o])=>w.createElement(f,o)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sn=(t,e)=>{const l=w.forwardRef(({className:a,...n},i)=>w.createElement(W0,{ref:i,iconNode:e,className:Nd(`lucide-${w0(go(t))}`,`lucide-${t}`,a),...n}));return l.displayName=go(t),l};/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k0=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],po=Sn("activity",k0);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $0=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],F0=Sn("file-text",$0);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P0=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],bo=Sn("folder",P0);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I0=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],ty=Sn("music",I0);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ey=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],So=Sn("upload",ey),Dl="",ly=({onAudioChange:t,onTranscriptChange:e})=>{const[l,a]=w.useState("upload"),[n,i]=w.useState("upload"),[u,s]=w.useState(""),[c,f]=w.useState(""),o=async b=>{const E=b.target.files[0];if(!E)return;const d=new FormData;d.append("file",E);try{const y=await(await fetch(`${Dl}/api/audio/upload`,{method:"POST",body:d})).json();t({url:`${Dl}${y.url}`,name:y.filename})}catch(r){alert("Upload failed: "+r.message)}},v=async()=>{if(u)try{const b=await fetch(`${Dl}/api/audio/local`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:u})});if(!b.ok)throw new Error("Failed to access local file");const E=await b.json();t({url:`${Dl}${E.url}`,name:E.filename})}catch(b){alert("Error: "+b.message)}},h=async b=>{const E=b.target.files[0];if(!E)return;const d=new FormData;d.append("file",E);try{const r=await fetch(`${Dl}/api/transcript/upload`,{method:"POST",body:d});if(!r.ok){const g=await r.json();throw new Error(g.detail||"Upload failed")}const y=await r.json();e({data:y,name:E.name})}catch(r){alert("Upload failed: "+r.message)}},m=async()=>{if(c)try{const b=await fetch(`${Dl}/api/transcript/local`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:c})});if(!b.ok){const d=await b.json();throw new Error(d.detail||"Load failed")}const E=await b.json();e({data:E,name:c})}catch(b){alert("Error: "+b.message)}},p=({active:b,label:E,icon:d,onClick:r})=>_.jsxs("button",{className:`flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-t-lg transition-colors ${b?"bg-white text-indigo-600 border-t border-x border-gray-200":"bg-gray-50 text-gray-500 hover:text-gray-700 hover:bg-gray-100"}`,onClick:r,children:[_.jsx(d,{size:16}),E]});return _.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-gray-200 grid grid-cols-1 md:grid-cols-2 gap-8",children:[_.jsxs("div",{children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-800 mb-4 flex items-center gap-2",children:[_.jsx(ty,{size:20,className:"text-indigo-600"})," Audio Source"]}),_.jsxs("div",{className:"flex border-b border-gray-200 mb-4",children:[_.jsx(p,{active:l==="upload",label:"Upload",icon:So,onClick:()=>a("upload")}),_.jsx(p,{active:l==="local",label:"Local Path",icon:bo,onClick:()=>a("local")})]}),_.jsxs("div",{className:"h-24",children:[l==="upload"&&_.jsxs("div",{className:"flex flex-col gap-2",children:[_.jsx("input",{type:"file",accept:"audio/*",onChange:o,className:"block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100"}),_.jsx("p",{className:"text-xs text-gray-400",children:"Supported formats: mp3, wav, ogg"})]}),l==="local"&&_.jsxs("div",{className:"flex gap-2",children:[_.jsx("input",{type:"text",placeholder:"/absolute/path/to/audio.mp3",className:"flex-1 p-2 border rounded text-sm",value:u,onChange:b=>s(b.target.value)}),_.jsx("button",{className:"px-4 py-2 bg-indigo-600 text-white rounded text-sm hover:bg-indigo-700",onClick:v,children:"Load"})]})]})]}),_.jsxs("div",{children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-800 mb-4 flex items-center gap-2",children:[_.jsx(F0,{size:20,className:"text-indigo-600"})," Transcript Source"]}),_.jsxs("div",{className:"flex border-b border-gray-200 mb-4",children:[_.jsx(p,{active:n==="upload",label:"Upload",icon:So,onClick:()=>i("upload")}),_.jsx(p,{active:n==="local",label:"Local Path",icon:bo,onClick:()=>i("local")})]}),_.jsxs("div",{className:"h-24",children:[n==="upload"&&_.jsxs("div",{className:"flex flex-col gap-2",children:[_.jsx("input",{type:"file",accept:".json,.srt,.vtt,.TextGrid",onChange:h,className:"block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100"}),_.jsx("p",{className:"text-xs text-gray-400",children:"Supported formats: JSON, SRT, VTT, TextGrid"})]}),n==="local"&&_.jsxs("div",{className:"flex gap-2",children:[_.jsx("input",{type:"text",placeholder:"/path/to/transcript.srt",className:"flex-1 p-2 border rounded text-sm",value:c,onChange:b=>f(b.target.value)}),_.jsx("button",{className:"px-4 py-2 bg-indigo-600 text-white rounded text-sm hover:bg-indigo-700",onClick:m,children:"Load"})]})]})]})]})};function ay(){const[t,e]=w.useState(null),[l,a]=w.useState(null),[n,i]=w.useState(null),[u,s]=w.useState(null),c=({url:o,name:v})=>{e(o),a(v),i(null),s(null)},f=({data:o,name:v})=>{i(o),s(v)};return _.jsxs("div",{className:"min-h-screen bg-gray-100 font-sans text-gray-900",children:[_.jsx("header",{className:"bg-white shadow-sm border-b",children:_.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center gap-3",children:[_.jsx("div",{className:"p-2 bg-indigo-600 rounded-lg text-white",children:_.jsx(po,{size:24})}),_.jsx("h1",{className:"text-2xl font-bold tracking-tight text-gray-900",children:"SpeechAlignViz"})]})}),_.jsxs("main",{className:"max-w-7xl mx-auto px-4 py-8 flex flex-col gap-6",children:[_.jsx(ly,{onAudioChange:c,onTranscriptChange:f}),_.jsx("div",{className:"bg-white p-6 rounded-lg shadow-sm border border-gray-200 min-h-[400px]",children:t?_.jsxs("div",{className:"flex flex-col gap-4",children:[_.jsx("div",{className:"flex justify-between items-end border-b pb-2",children:_.jsxs("div",{children:[_.jsx("h2",{className:"text-xl font-semibold text-gray-800",children:"Visualization"}),_.jsxs("p",{className:"text-sm text-gray-500",children:[l&&`Audio: ${l}`,u&&` • Transcript: ${u}`]})]})}),_.jsx(Z0,{audioUrl:t,transcript:n})]}):_.jsxs("div",{className:"flex flex-col items-center justify-center h-64 text-gray-400",children:[_.jsx(po,{size:48,className:"mb-4 text-gray-300"}),_.jsx("p",{className:"text-lg",children:"Please load an audio source to begin"})]})})]})]})}O0.createRoot(document.getElementById("root")).render(_.jsx(w.StrictMode,{children:_.jsx(ay,{})}));
