function bd(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Jd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Za={exports:{}},lo={},ec={exports:{}},$={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var jr=Symbol.for("react.element"),Zd=Symbol.for("react.portal"),ep=Symbol.for("react.fragment"),tp=Symbol.for("react.strict_mode"),np=Symbol.for("react.profiler"),rp=Symbol.for("react.provider"),lp=Symbol.for("react.context"),op=Symbol.for("react.forward_ref"),ip=Symbol.for("react.suspense"),up=Symbol.for("react.memo"),sp=Symbol.for("react.lazy"),Ls=Symbol.iterator;function ap(e){return e===null||typeof e!="object"?null:(e=Ls&&e[Ls]||e["@@iterator"],typeof e=="function"?e:null)}var tc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nc=Object.assign,rc={};function Hn(e,t,n){this.props=e,this.context=t,this.refs=rc,this.updater=n||tc}Hn.prototype.isReactComponent={};Hn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Hn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lc(){}lc.prototype=Hn.prototype;function ku(e,t,n){this.props=e,this.context=t,this.refs=rc,this.updater=n||tc}var xu=ku.prototype=new lc;xu.constructor=ku;nc(xu,Hn.prototype);xu.isPureReactComponent=!0;var _s=Array.isArray,oc=Object.prototype.hasOwnProperty,Cu={current:null},ic={key:!0,ref:!0,__self:!0,__source:!0};function uc(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)oc.call(t,r)&&!ic.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,ee=N[j];if(0>>1;jl(K,A))tel(Y,K)?(N[j]=Y,N[te]=A,j=te):(N[j]=K,N[st]=A,j=st);else if(tel(Y,A))N[j]=Y,N[te]=A,j=te;else break e}}return F}function l(N,F){var A=N.sortIndex-F.sortIndex;return A!==0?A:N.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],c=1,d=null,h=3,y=!1,m=!1,v=!1,P=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var F=n(a);F!==null;){if(F.callback===null)r(a);else if(F.startTime<=N)r(a),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(a)}}function E(N){if(v=!1,g(N),!m)if(n(s)!==null)m=!0,ut(C);else{var F=n(a);F!==null&&Kt(E,F.startTime-N)}}function C(N,F){m=!1,v&&(v=!1,p(_),_=-1),y=!0;var A=h;try{for(g(F),d=n(s);d!==null&&(!(d.expirationTime>F)||N&&!V());){var j=d.callback;if(typeof j=="function"){d.callback=null,h=d.priorityLevel;var ee=j(d.expirationTime<=F);F=e.unstable_now(),typeof ee=="function"?d.callback=ee:d===n(s)&&r(s),g(F)}else r(s);d=n(s)}if(d!==null)var Gt=!0;else{var st=n(a);st!==null&&Kt(E,st.startTime-F),Gt=!1}return Gt}finally{d=null,h=A,y=!1}}var L=!1,T=null,_=-1,U=5,O=-1;function V(){return!(e.unstable_now()-ON||125j?(N.sortIndex=A,t(a,N),n(s)===null&&N===n(a)&&(v?(p(_),_=-1):v=!0,Kt(E,A-j))):(N.sortIndex=ee,t(s,N),m||y||(m=!0,ut(C))),N},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(N){var F=h;return function(){var A=h;h=F;try{return N.apply(this,arguments)}finally{h=A}}}})(fc);cc.exports=fc;var Sp=cc.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var dc=w,Re=Sp;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wi=Object.prototype.hasOwnProperty,Ep=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Os={},Fs={};function kp(e){return wi.call(Fs,e)?!0:wi.call(Os,e)?!1:Ep.test(e)?Fs[e]=!0:(Os[e]=!0,!1)}function xp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Cp(e,t,n,r){if(t===null||typeof t>"u"||xp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Se(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new Se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new Se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fe[e]=new Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pu=/[\-:]([a-z])/g;function Lu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Pu,Lu);fe[t]=new Se(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Pu,Lu);fe[t]=new Se(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Pu,Lu);fe[t]=new Se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!0,!0)});function _u(e,t,n,r){var l=fe.hasOwnProperty(t)?fe[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` `+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Ao=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ir(e):""}function Tp(e){switch(e.tag){case 5:return ir(e.type);case 16:return ir("Lazy");case 13:return ir("Suspense");case 19:return ir("SuspenseList");case 0:case 2:case 15:return e=$o(e.type,!1),e;case 11:return e=$o(e.type.render,!1),e;case 1:return e=$o(e.type,!0),e;default:return""}}function xi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vn:return"Fragment";case gn:return"Portal";case Si:return"Profiler";case Ru:return"StrictMode";case Ei:return"Suspense";case ki:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hc:return(e.displayName||"Context")+".Consumer";case mc:return(e._context.displayName||"Context")+".Provider";case Ou:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fu:return t=e.displayName||null,t!==null?t:xi(e.type)||"Memo";case Tt:t=e._payload,e=e._init;try{return xi(e(t))}catch{}}return null}function Np(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xi(t);case 8:return t===Ru?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pp(e){var t=vc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function br(e){e._valueTracker||(e._valueTracker=Pp(e))}function yc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ci(e,t){var n=t.checked;return b({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $s(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wc(e,t){t=t.checked,t!=null&&_u(e,"checked",t,!1)}function Ti(e,t){wc(e,t);var n=Bt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ni(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ni(e,t.type,Bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ds(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ni(e,t,n){(t!=="number"||Rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ur=Array.isArray;function Ln(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Jr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Er(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Lp=["Webkit","ms","Moz","O"];Object.keys(fr).forEach(function(e){Lp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fr[t]=fr[e]})});function xc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fr.hasOwnProperty(e)&&fr[e]?(""+t).trim():t+"px"}function Cc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=xc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var _p=b({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _i(e,t){if(t){if(_p[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Ri(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oi=null;function Au(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fi=null,_n=null,Rn=null;function js(e){if(e=Br(e)){if(typeof Fi!="function")throw Error(k(280));var t=e.stateNode;t&&(t=ao(t),Fi(e.stateNode,e.type,t))}}function Tc(e){_n?Rn?Rn.push(e):Rn=[e]:_n=e}function Nc(){if(_n){var e=_n,t=Rn;if(Rn=_n=null,js(e),t)for(e=0;e>>=0,e===0?32:31-(Ip(e)/Bp|0)|0}var Zr=64,el=4194304;function sr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $l(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=sr(u):(o&=i,o!==0&&(r=sr(o)))}else i=n&~l,i!==0?r=sr(i):o!==0&&(r=sr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ye(t),e[t]=n}function Qp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pr),Gs=String.fromCharCode(32),Ys=!1;function Kc(e,t){switch(e){case"keyup":return wm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yn=!1;function Em(e,t){switch(e){case"compositionend":return Gc(t);case"keypress":return t.which!==32?null:(Ys=!0,Gs);case"textInput":return e=t.data,e===Gs&&Ys?null:e;default:return null}}function km(e,t){if(yn)return e==="compositionend"||!Bu&&Kc(e,t)?(e=Wc(),gl=ju=Ot=null,yn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Js(n)}}function bc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jc(){for(var e=window,t=Rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rl(e.document)}return t}function Hu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Om(e){var t=Jc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bc(n.ownerDocument.documentElement,n)){if(r!==null&&Hu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Zs(n,o);var i=Zs(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wn=null,ji=null,hr=null,Ui=!1;function ea(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ui||wn==null||wn!==Rl(r)||(r=wn,"selectionStart"in r&&Hu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hr&&Pr(hr,r)||(hr=r,r=zl(ji,"onSelect"),0kn||(e.current=Qi[kn],Qi[kn]=null,kn--)}function H(e,t){kn++,Qi[kn]=e.current,e.current=t}var Ht={},ge=Wt(Ht),xe=Wt(!1),un=Ht;function Dn(e,t){var n=e.type.contextTypes;if(!n)return Ht;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ce(e){return e=e.childContextTypes,e!=null}function Ul(){Q(xe),Q(ge)}function ua(e,t,n){if(ge.current!==Ht)throw Error(k(168));H(ge,t),H(xe,n)}function sf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,Np(e)||"Unknown",l));return b({},n,r)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ht,un=ge.current,H(ge,e),H(xe,xe.current),!0}function sa(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=sf(e,t,un),r.__reactInternalMemoizedMergedChildContext=e,Q(xe),Q(ge),H(ge,e)):Q(xe),H(xe,n)}var ct=null,co=!1,Yo=!1;function af(e){ct===null?ct=[e]:ct.push(e)}function Vm(e){co=!0,af(e)}function Qt(){if(!Yo&&ct!==null){Yo=!0;var e=0,t=I;try{var n=ct;for(I=1;e>=i,l-=i,ft=1<<32-Ye(t)+l|n<_?(U=T,T=null):U=T.sibling;var O=h(p,T,g[_],E);if(O===null){T===null&&(T=U);break}e&&T&&O.alternate===null&&t(p,T),f=o(O,f,_),L===null?C=O:L.sibling=O,L=O,T=U}if(_===g.length)return n(p,T),G&&Xt(p,_),C;if(T===null){for(;__?(U=T,T=null):U=T.sibling;var V=h(p,T,O.value,E);if(V===null){T===null&&(T=U);break}e&&T&&V.alternate===null&&t(p,T),f=o(V,f,_),L===null?C=V:L.sibling=V,L=V,T=U}if(O.done)return n(p,T),G&&Xt(p,_),C;if(T===null){for(;!O.done;_++,O=g.next())O=d(p,O.value,E),O!==null&&(f=o(O,f,_),L===null?C=O:L.sibling=O,L=O);return G&&Xt(p,_),C}for(T=r(p,T);!O.done;_++,O=g.next())O=y(T,p,_,O.value,E),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?_:O.key),f=o(O,f,_),L===null?C=O:L.sibling=O,L=O);return e&&T.forEach(function(He){return t(p,He)}),G&&Xt(p,_),C}function P(p,f,g,E){if(typeof g=="object"&&g!==null&&g.type===vn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case qr:e:{for(var C=g.key,L=f;L!==null;){if(L.key===C){if(C=g.type,C===vn){if(L.tag===7){n(p,L.sibling),f=l(L,g.props.children),f.return=p,p=f;break e}}else if(L.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Tt&&ha(C)===L.type){n(p,L.sibling),f=l(L,g.props),f.ref=er(p,L,g),f.return=p,p=f;break e}n(p,L);break}else t(p,L);L=L.sibling}g.type===vn?(f=rn(g.props.children,p.mode,E,g.key),f.return=p,p=f):(E=Cl(g.type,g.key,g.props,null,p.mode,E),E.ref=er(p,f,g),E.return=p,p=E)}return i(p);case gn:e:{for(L=g.key;f!==null;){if(f.key===L)if(f.tag===4&&f.stateNode.containerInfo===g.containerInfo&&f.stateNode.implementation===g.implementation){n(p,f.sibling),f=l(f,g.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=ni(g,p.mode,E),f.return=p,p=f}return i(p);case Tt:return L=g._init,P(p,f,L(g._payload),E)}if(ur(g))return m(p,f,g,E);if(Xn(g))return v(p,f,g,E);ul(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,f!==null&&f.tag===6?(n(p,f.sibling),f=l(f,g),f.return=p,p=f):(n(p,f),f=ti(g,p.mode,E),f.return=p,p=f),i(p)):n(p,f)}return P}var zn=vf(!0),yf=vf(!1),Hr={},rt=Wt(Hr),Or=Wt(Hr),Fr=Wt(Hr);function en(e){if(e===Hr)throw Error(k(174));return e}function bu(e,t){switch(H(Fr,t),H(Or,e),H(rt,Hr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Li(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Li(t,e)}Q(rt),H(rt,t)}function jn(){Q(rt),Q(Or),Q(Fr)}function wf(e){en(Fr.current);var t=en(rt.current),n=Li(t,e.type);t!==n&&(H(Or,e),H(rt,n))}function Ju(e){Or.current===e&&(Q(rt),Q(Or))}var X=Wt(0);function Kl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xo=[];function Zu(){for(var e=0;en?n:4,e(!0);var r=qo.transition;qo.transition={};try{e(!1),t()}finally{I=n,qo.transition=r}}function Df(){return Ie().memoizedState}function Gm(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mf(e))zf(t,n);else if(n=pf(e,t,n,r),n!==null){var l=ye();Xe(n,e,r,l),jf(n,t,r)}}function Ym(e,t,n){var r=Ut(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mf(e))zf(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,qe(u,i)){var s=t.interleaved;s===null?(l.next=l,Xu(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=pf(e,t,l,r),n!==null&&(l=ye(),Xe(n,e,r,l),jf(n,t,r))}}function Mf(e){var t=e.alternate;return e===q||t!==null&&t===q}function zf(e,t){gr=Gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}var Yl={readContext:Ue,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},Xm={readContext:Ue,useCallback:function(e,t){return Ze().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:va,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sl(4194308,4,Rf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sl(4,2,e,t)},useMemo:function(e,t){var n=Ze();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ze();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gm.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=Ze();return e={current:e},t.memoizedState=e},useState:ga,useDebugValue:ls,useDeferredValue:function(e){return Ze().memoizedState=e},useTransition:function(){var e=ga(!1),t=e[0];return e=Km.bind(null,e[1]),Ze().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,l=Ze();if(G){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),se===null)throw Error(k(349));an&30||kf(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,va(Cf.bind(null,r,o,e),[e]),r.flags|=2048,Dr(9,xf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ze(),t=se.identifierPrefix;if(G){var n=dt,r=ft;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ar++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[et]=t,e[Rr]=r,Gf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ri(n,r),n){case"dialog":W("cancel",e),W("close",e),l=r;break;case"iframe":case"object":case"embed":W("load",e),l=r;break;case"video":case"audio":for(l=0;lIn&&(t.flags|=128,r=!0,tr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Kl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),tr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!G)return pe(t),null}else 2*Z()-o.renderingStartTime>In&&n!==1073741824&&(t.flags|=128,r=!0,tr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Z(),t.sibling=null,n=X.current,H(X,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return cs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ne&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function rh(e,t){switch(Wu(t),t.tag){case 1:return Ce(t.type)&&Ul(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jn(),Q(xe),Q(ge),Zu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ju(t),null;case 13:if(Q(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(X),null;case 4:return jn(),null;case 10:return Yu(t.type._context),null;case 22:case 23:return cs(),null;case 24:return null;default:return null}}var al=!1,me=!1,lh=typeof WeakSet=="function"?WeakSet:Set,R=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function ru(e,t,n){try{n()}catch(r){J(e,t,r)}}var Na=!1;function oh(e,t){if(Ii=Dl,e=Jc(),Hu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,c=0,d=e,h=null;t:for(;;){for(var y;d!==n||l!==0&&d.nodeType!==3||(u=i+l),d!==o||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)h=d,d=y;for(;;){if(d===e)break t;if(h===n&&++a===l&&(u=i),h===o&&++c===r&&(s=i),(y=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=y}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bi={focusedElem:e,selectionRange:n},Dl=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,P=m.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:Qe(t.type,v),P);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(E){J(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return m=Na,Na=!1,m}function vr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&ru(t,n,o)}l=l.next}while(l!==r)}}function mo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function lu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qf(e){var t=e.alternate;t!==null&&(e.alternate=null,qf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[et],delete t[Rr],delete t[Wi],delete t[Bm],delete t[Hm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bf(e){return e.tag===5||e.tag===3||e.tag===4}function Pa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ou(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jl));else if(r!==4&&(e=e.child,e!==null))for(ou(e,t,n),e=e.sibling;e!==null;)ou(e,t,n),e=e.sibling}function iu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(iu(e,t,n),e=e.sibling;e!==null;)iu(e,t,n),e=e.sibling}var ae=null,Ke=!1;function xt(e,t,n){for(n=n.child;n!==null;)Jf(e,t,n),n=n.sibling}function Jf(e,t,n){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(oo,n)}catch{}switch(n.tag){case 5:me||Nn(n,t);case 6:var r=ae,l=Ke;ae=null,xt(e,t,n),ae=r,Ke=l,ae!==null&&(Ke?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(Ke?(e=ae,n=n.stateNode,e.nodeType===8?Go(e.parentNode,n):e.nodeType===1&&Go(e,n),Tr(e)):Go(ae,n.stateNode));break;case 4:r=ae,l=Ke,ae=n.stateNode.containerInfo,Ke=!0,xt(e,t,n),ae=r,Ke=l;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ru(n,t,i),l=l.next}while(l!==r)}xt(e,t,n);break;case 1:if(!me&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){J(n,t,u)}xt(e,t,n);break;case 21:xt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,xt(e,t,n),me=r):xt(e,t,n);break;default:xt(e,t,n)}}function La(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lh),t.forEach(function(r){var l=mh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uh(r/1960))-r,10e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,bl=0,z&6)throw Error(k(331));var l=z;for(z|=4,R=e.current;R!==null;){var o=R,i=o.child;if(R.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sZ()-ss?nn(e,0):us|=n),Te(e,t)}function id(e,t){t===0&&(e.mode&1?(t=el,el<<=1,!(el&130023424)&&(el=4194304)):t=1);var n=ye();e=St(e,t),e!==null&&(Ur(e,t,n),Te(e,n))}function ph(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),id(e,n)}function mh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),id(e,n)}var ud;ud=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xe.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,th(e,t,n);ke=!!(e.flags&131072)}else ke=!1,G&&t.flags&1048576&&cf(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;El(e,t),e=t.pendingProps;var l=Dn(t,ge.current);Fn(t,n),l=ts(null,t,r,e,l,n);var o=ns();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ce(r)?(o=!0,Il(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,qu(t),l.updater=fo,t.stateNode=l,l._reactInternals=t,qi(t,r,e,n),t=Zi(null,t,r,!0,o,n)):(t.tag=0,G&&o&&Vu(t),ve(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(El(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=gh(r),e=Qe(r,e),l){case 0:t=Ji(null,t,r,e,n);break e;case 1:t=xa(null,t,r,e,n);break e;case 11:t=Ea(null,t,r,e,n);break e;case 14:t=ka(null,t,r,Qe(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),Ji(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),xa(e,t,r,l,n);case 3:e:{if(Wf(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,mf(e,t),Ql(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Un(Error(k(423)),t),t=Ca(e,t,r,n,l);break e}else if(r!==l){l=Un(Error(k(424)),t),t=Ca(e,t,r,n,l);break e}else for(Le=Mt(t.stateNode.containerInfo.firstChild),_e=t,G=!0,Ge=null,n=yf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mn(),r===l){t=Et(e,t,n);break e}ve(e,t,r,n)}t=t.child}return t;case 5:return wf(t),e===null&&Gi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Hi(r,l)?i=null:o!==null&&Hi(r,o)&&(t.flags|=32),Vf(e,t),ve(e,t,i,n),t.child;case 6:return e===null&&Gi(t),null;case 13:return Qf(e,t,n);case 4:return bu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zn(t,null,r,n):ve(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),Ea(e,t,r,l,n);case 7:return ve(e,t,t.pendingProps,n),t.child;case 8:return ve(e,t,t.pendingProps.children,n),t.child;case 12:return ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,H(Vl,r._currentValue),r._currentValue=i,o!==null)if(qe(o.value,i)){if(o.children===l.children&&!xe.current){t=Et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=mt(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Yi(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Yi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ve(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Fn(t,n),l=Ue(l),r=r(l),t.flags|=1,ve(e,t,r,n),t.child;case 14:return r=t.type,l=Qe(r,t.pendingProps),l=Qe(r.type,l),ka(e,t,r,l,n);case 15:return Bf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),El(e,t),t.tag=1,Ce(r)?(e=!0,Il(t)):e=!1,Fn(t,n),gf(t,r,l),qi(t,r,l,n),Zi(null,t,r,!0,e,n);case 19:return Kf(e,t,n);case 22:return Hf(e,t,n)}throw Error(k(156,t.tag))};function sd(e,t){return Ac(e,t)}function hh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Me(e,t,n,r){return new hh(e,t,n,r)}function ds(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gh(e){if(typeof e=="function")return ds(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ou)return 11;if(e===Fu)return 14}return 2}function It(e,t){var n=e.alternate;return n===null?(n=Me(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")ds(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case vn:return rn(n.children,l,o,t);case Ru:i=8,l|=8;break;case Si:return e=Me(12,n,t,l|2),e.elementType=Si,e.lanes=o,e;case Ei:return e=Me(13,n,t,l),e.elementType=Ei,e.lanes=o,e;case ki:return e=Me(19,n,t,l),e.elementType=ki,e.lanes=o,e;case gc:return go(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mc:i=10;break e;case hc:i=9;break e;case Ou:i=11;break e;case Fu:i=14;break e;case Tt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Me(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function rn(e,t,n,r){return e=Me(7,e,r,t),e.lanes=n,e}function go(e,t,n,r){return e=Me(22,e,r,t),e.elementType=gc,e.lanes=n,e.stateNode={isHidden:!1},e}function ti(e,t,n){return e=Me(6,e,null,t),e.lanes=n,e}function ni(e,t,n){return t=Me(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mo(0),this.expirationTimes=Mo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ps(e,t,n,r,l,o,i,u,s){return e=new vh(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Me(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qu(o),e}function yh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dd)}catch(e){console.error(e)}}dd(),ac.exports=Oe;var pd=ac.exports,Ma=pd;yi.createRoot=Ma.createRoot,yi.hydrateRoot=Ma.hydrateRoot;function md(e,t){return function(){return e.apply(t,arguments)}}const{toString:xh}=Object.prototype,{getPrototypeOf:vs}=Object,Eo=(e=>t=>{const n=xh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Eo(t)===e),ko=e=>t=>typeof t===e,{isArray:Qn}=Array,zr=ko("undefined");function Ch(e){return e!==null&&!zr(e)&&e.constructor!==null&&!zr(e.constructor)&&je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hd=lt("ArrayBuffer");function Th(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hd(e.buffer),t}const Nh=ko("string"),je=ko("function"),gd=ko("number"),xo=e=>e!==null&&typeof e=="object",Ph=e=>e===!0||e===!1,Tl=e=>{if(Eo(e)!=="object")return!1;const t=vs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Lh=lt("Date"),_h=lt("File"),Rh=lt("Blob"),Oh=lt("FileList"),Fh=e=>xo(e)&&je(e.pipe),Ah=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||je(e.append)&&((t=Eo(e))==="formdata"||t==="object"&&je(e.toString)&&e.toString()==="[object FormData]"))},$h=lt("URLSearchParams"),Dh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Qn(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const yd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),wd=e=>!zr(e)&&e!==yd;function fu(){const{caseless:e}=wd(this)&&this||{},t={},n=(r,l)=>{const o=e&&vd(t,l)||l;Tl(t[o])&&Tl(r)?t[o]=fu(t[o],r):Tl(r)?t[o]=fu({},r):Qn(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r(Vr(t,(l,o)=>{n&&je(l)?e[o]=md(l,n):e[o]=l},{allOwnKeys:r}),e),zh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jh=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Uh=(e,t,n,r)=>{let l,o,i;const u={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&vs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ih=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Bh=e=>{if(!e)return null;if(Qn(e))return e;let t=e.length;if(!gd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vs(Uint8Array)),Vh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},Wh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qh=lt("HTMLFormElement"),Kh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),za=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gh=lt("RegExp"),Sd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vr(n,(l,o)=>{t(l,o,e)!==!1&&(r[o]=l)}),Object.defineProperties(e,r)},Yh=e=>{Sd(e,(t,n)=>{if(je(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(je(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xh=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return Qn(e)?r(e):r(String(e).split(t)),n},qh=()=>{},bh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ri="abcdefghijklmnopqrstuvwxyz",ja="0123456789",Ed={DIGIT:ja,ALPHA:ri,ALPHA_DIGIT:ri+ri.toUpperCase()+ja},Jh=(e=16,t=Ed.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Zh(e){return!!(e&&je(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const e0=e=>{const t=new Array(10),n=(r,l)=>{if(xo(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=Qn(r)?[]:{};return Vr(r,(i,u)=>{const s=n(i,l+1);!zr(s)&&(o[u]=s)}),t[l]=void 0,o}}return r};return n(e,0)},t0=lt("AsyncFunction"),n0=e=>e&&(xo(e)||je(e))&&je(e.then)&&je(e.catch),S={isArray:Qn,isArrayBuffer:hd,isBuffer:Ch,isFormData:Ah,isArrayBufferView:Th,isString:Nh,isNumber:gd,isBoolean:Ph,isObject:xo,isPlainObject:Tl,isUndefined:zr,isDate:Lh,isFile:_h,isBlob:Rh,isRegExp:Gh,isFunction:je,isStream:Fh,isURLSearchParams:$h,isTypedArray:Hh,isFileList:Oh,forEach:Vr,merge:fu,extend:Mh,trim:Dh,stripBOM:zh,inherits:jh,toFlatObject:Uh,kindOf:Eo,kindOfTest:lt,endsWith:Ih,toArray:Bh,forEachEntry:Vh,matchAll:Wh,isHTMLForm:Qh,hasOwnProperty:za,hasOwnProp:za,reduceDescriptors:Sd,freezeMethods:Yh,toObjectSet:Xh,toCamelCase:Kh,noop:qh,toFiniteNumber:bh,findKey:vd,global:yd,isContextDefined:wd,ALPHABET:Ed,generateString:Jh,isSpecCompliantForm:Zh,toJSONObject:e0,isAsyncFn:t0,isThenable:n0};function M(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l)}S.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const kd=M.prototype,xd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xd[e]={value:e}});Object.defineProperties(M,xd);Object.defineProperty(kd,"isAxiosError",{value:!0});M.from=(e,t,n,r,l,o)=>{const i=Object.create(kd);return S.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),M.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const r0=null;function du(e){return S.isPlainObject(e)||S.isArray(e)}function Cd(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Ua(e,t,n){return e?e.concat(t).map(function(l,o){return l=Cd(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function l0(e){return S.isArray(e)&&!e.some(du)}const o0=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Co(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,P){return!S.isUndefined(P[v])});const r=n.metaTokens,l=n.visitor||c,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(l))throw new TypeError("visitor must be a function");function a(m){if(m===null)return"";if(S.isDate(m))return m.toISOString();if(!s&&S.isBlob(m))throw new M("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(m)||S.isTypedArray(m)?s&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,v,P){let p=m;if(m&&!P&&typeof m=="object"){if(S.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(S.isArray(m)&&l0(m)||(S.isFileList(m)||S.endsWith(v,"[]"))&&(p=S.toArray(m)))return v=Cd(v),p.forEach(function(g,E){!(S.isUndefined(g)||g===null)&&t.append(i===!0?Ua([v],E,o):i===null?v:v+"[]",a(g))}),!1}return du(m)?!0:(t.append(Ua(P,v,o),a(m)),!1)}const d=[],h=Object.assign(o0,{defaultVisitor:c,convertValue:a,isVisitable:du});function y(m,v){if(!S.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),S.forEach(m,function(p,f){(!(S.isUndefined(p)||p===null)&&l.call(t,p,S.isString(f)?f.trim():f,v,h))===!0&&y(p,v?v.concat(f):[f])}),d.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Ia(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ys(e,t){this._pairs=[],e&&Co(e,this,t)}const Td=ys.prototype;Td.append=function(t,n){this._pairs.push([t,n])};Td.toString=function(t){const n=t?function(r){return t.call(this,r,Ia)}:Ia;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function i0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nd(e,t,n){if(!t)return e;const r=n&&n.encode||i0,l=n&&n.serialize;let o;if(l?o=l(t,n):o=S.isURLSearchParams(t)?t.toString():new ys(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class u0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ba=u0,Pd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},s0=typeof URLSearchParams<"u"?URLSearchParams:ys,a0=typeof FormData<"u"?FormData:null,c0=typeof Blob<"u"?Blob:null,f0=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),d0=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),tt={isBrowser:!0,classes:{URLSearchParams:s0,FormData:a0,Blob:c0},isStandardBrowserEnv:f0,isStandardBrowserWebWorkerEnv:d0,protocols:["http","https","file","blob","url","data"]};function p0(e,t){return Co(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return tt.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function m0(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h0(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&S.isArray(l)?l.length:i,s?(S.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!u):((!l[i]||!S.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&S.isArray(l[i])&&(l[i]=h0(l[i])),!u)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,l)=>{t(m0(r),l,n,0)}),n}return null}const g0={"Content-Type":void 0};function v0(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const To={transitional:Pd,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=S.isObject(t);if(o&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return l&&l?JSON.stringify(Ld(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return p0(t,this.formSerializer).toString();if((u=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Co(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),v0(t)):t}],transformResponse:[function(t){const n=this.transitional||To.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&S.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?M.from(u,M.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};S.forEach(["delete","get","head"],function(t){To.headers[t]={}});S.forEach(["post","put","patch"],function(t){To.headers[t]=S.merge(g0)});const ws=To,y0=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),w0=e=>{const t={};let n,r,l;return e&&e.split(` `).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&y0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ha=Symbol("internals");function rr(e){return e&&String(e).trim().toLowerCase()}function Nl(e){return e===!1||e==null?e:S.isArray(e)?e.map(Nl):String(e)}function S0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const E0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function li(e,t,n,r,l){if(S.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function k0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function x0(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class No{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(u,s,a){const c=rr(s);if(!c)throw new Error("header name must be a non-empty string");const d=S.findKey(l,c);(!d||l[d]===void 0||a===!0||a===void 0&&l[d]!==!1)&&(l[d||s]=Nl(u))}const i=(u,s)=>S.forEach(u,(a,c)=>o(a,c,s));return S.isPlainObject(t)||t instanceof this.constructor?i(t,n):S.isString(t)&&(t=t.trim())&&!E0(t)?i(w0(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=rr(t),t){const r=S.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return S0(l);if(S.isFunction(n))return n.call(this,l,r);if(S.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=rr(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||li(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=rr(i),i){const u=S.findKey(r,i);u&&(!n||li(r,r[u],u,n))&&(delete r[u],l=!0)}}return S.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||li(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return S.forEach(this,(l,o)=>{const i=S.findKey(r,o);if(i){n[i]=Nl(l),delete n[o];return}const u=t?k0(o):String(o).trim();u!==o&&delete n[o],n[u]=Nl(l),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[Ha]=this[Ha]={accessors:{}}).accessors,l=this.prototype;function o(i){const u=rr(i);r[u]||(x0(l,i),r[u]=!0)}return S.isArray(t)?t.forEach(o):o(t),this}}No.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.freezeMethods(No.prototype);S.freezeMethods(No);const ht=No;function oi(e,t){const n=this||ws,r=t||n,l=ht.from(r.headers);let o=r.data;return S.forEach(e,function(u){o=u.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function _d(e){return!!(e&&e.__CANCEL__)}function Wr(e,t,n){M.call(this,e??"canceled",M.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(Wr,M,{__CANCEL__:!0});function C0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const T0=tt.isStandardBrowserEnv?function(){return{write:function(n,r,l,o,i,u){const s=[];s.push(n+"="+encodeURIComponent(r)),S.isNumber(l)&&s.push("expires="+new Date(l).toGMTString()),S.isString(o)&&s.push("path="+o),S.isString(i)&&s.push("domain="+i),u===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function N0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P0(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Rd(e,t){return e&&!N0(t)?P0(e,t):t}const L0=tt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=l(window.location.href),function(i){const u=S.isString(i)?l(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function _0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function R0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const a=Date.now(),c=r[o];i||(i=a),n[l]=s,r[l]=a;let d=o,h=0;for(;d!==l;)h+=n[d++],d=d%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-i{const o=l.loaded,i=l.lengthComputable?l.total:void 0,u=o-n,s=r(u),a=o<=i;n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:u,rate:s||void 0,estimated:s&&i&&a?(i-o)/s:void 0,event:l};c[t?"download":"upload"]=!0,e(c)}}const O0=typeof XMLHttpRequest<"u",F0=O0&&function(e){return new Promise(function(n,r){let l=e.data;const o=ht.from(e.headers).normalize(),i=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}S.isFormData(l)&&(tt.isStandardBrowserEnv||tt.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let a=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+m))}const c=Rd(e.baseURL,e.url);a.open(e.method.toUpperCase(),Nd(c,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function d(){if(!a)return;const y=ht.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),v={data:!i||i==="text"||i==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:y,config:e,request:a};C0(function(p){n(p),s()},function(p){r(p),s()},v),a=null}if("onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(r(new M("Request aborted",M.ECONNABORTED,e,a)),a=null)},a.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Pd;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new M(m,v.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,a)),a=null},tt.isStandardBrowserEnv){const y=(e.withCredentials||L0(c))&&e.xsrfCookieName&&T0.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}l===void 0&&o.setContentType(null),"setRequestHeader"in a&&S.forEach(o.toJSON(),function(m,v){a.setRequestHeader(v,m)}),S.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&i!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Va(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Va(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{a&&(r(!y||y.type?new Wr(null,e,a):y),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const h=_0(c);if(h&&tt.protocols.indexOf(h)===-1){r(new M("Unsupported protocol "+h+":",M.ERR_BAD_REQUEST,e));return}a.send(l||null)})},Pl={http:r0,xhr:F0};S.forEach(Pl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const A0={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let l=0;le instanceof ht?e.toJSON():e;function Bn(e,t){t=t||{};const n={};function r(a,c,d){return S.isPlainObject(a)&&S.isPlainObject(c)?S.merge.call({caseless:d},a,c):S.isPlainObject(c)?S.merge({},c):S.isArray(c)?c.slice():c}function l(a,c,d){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a,d)}else return r(a,c,d)}function o(a,c){if(!S.isUndefined(c))return r(void 0,c)}function i(a,c){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function u(a,c,d){if(d in t)return r(a,c);if(d in e)return r(void 0,a)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(a,c)=>l(Qa(a),Qa(c),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||l,h=d(e[c],t[c],c);S.isUndefined(h)&&d!==u||(n[c]=h)}),n}const Od="1.4.0",Ss={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ss[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ka={};Ss.transitional=function(t,n,r){function l(o,i){return"[Axios v"+Od+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new M(l(i," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Ka[i]&&(Ka[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function $0(e,t,n){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const u=e[o],s=u===void 0||i(u,o,e);if(s!==!0)throw new M("option "+o+" must be "+s,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+o,M.ERR_BAD_OPTION)}}const pu={assertOptions:$0,validators:Ss},Ct=pu.validators;class eo{constructor(t){this.defaults=t,this.interceptors={request:new Ba,response:new Ba}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bn(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&pu.assertOptions(r,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),l!=null&&(S.isFunction(l)?n.paramsSerializer={serialize:l}:pu.assertOptions(l,{encode:Ct.function,serialize:Ct.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&S.merge(o.common,o[n.method]),i&&S.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ht.concat(i,o);const u=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(s=s&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let c,d=0,h;if(!s){const m=[Wa.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,a),h=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new Wr(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Es(function(l){t=l}),cancel:t}}}const D0=Es;function M0(e){return function(n){return e.apply(null,n)}}function z0(e){return S.isObject(e)&&e.isAxiosError===!0}const mu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mu).forEach(([e,t])=>{mu[t]=e});const j0=mu;function Fd(e){const t=new Ll(e),n=md(Ll.prototype.request,t);return S.extend(n,Ll.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Fd(Bn(e,l))},n}const oe=Fd(ws);oe.Axios=Ll;oe.CanceledError=Wr;oe.CancelToken=D0;oe.isCancel=_d;oe.VERSION=Od;oe.toFormData=Co;oe.AxiosError=M;oe.Cancel=oe.CanceledError;oe.all=function(t){return Promise.all(t)};oe.spread=M0;oe.isAxiosError=z0;oe.mergeConfig=Bn;oe.AxiosHeaders=ht;oe.formToJSON=e=>Ld(S.isHTMLForm(e)?new FormData(e):e);oe.HttpStatusCode=j0;oe.default=oe;const U0=oe;var I0=Object.defineProperty,B0=(e,t,n)=>t in e?I0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ui=(e,t,n)=>(B0(e,typeof t!="symbol"?t+"":t,n),n);let H0=class{constructor(){ui(this,"current",this.detect()),ui(this,"handoffState","pending"),ui(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},gt=new H0,ot=(e,t)=>{gt.isServer?w.useEffect(e,t):w.useLayoutEffect(e,t)};function vt(e){let t=w.useRef(e);return ot(()=>{t.current=e},[e]),t}function Qr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Kn(){let e=[],t={addEventListener(n,r,l,o){return n.addEventListener(r,l,o),t.add(()=>n.removeEventListener(r,l,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Qr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,l){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:l}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=Kn();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let l of e.splice(r,1))l()}},dispose(){for(let n of e.splice(0))n()}};return t}function ks(){let[e]=w.useState(Kn);return w.useEffect(()=>()=>e.dispose(),[e]),e}let ue=function(e){let t=vt(e);return D.useCallback((...n)=>t.current(...n),[t])};function Gn(){let[e,t]=w.useState(gt.isHandoffComplete);return e&>.isHandoffComplete===!1&&t(!1),w.useEffect(()=>{e!==!0&&t(!0)},[e]),w.useEffect(()=>gt.handoff(),[]),e}var Ga;let Yn=(Ga=D.useId)!=null?Ga:function(){let e=Gn(),[t,n]=D.useState(e?()=>gt.nextId():null);return ot(()=>{t===null&&n(gt.nextId())},[t]),t!=null?""+t:void 0};function he(e,t,...n){if(e in t){let l=t[e];return typeof l=="function"?l(...n):l}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(l=>`"${l}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,he),r}function Ad(e){return gt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let hu=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var bt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(bt||{}),$d=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))($d||{}),V0=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(V0||{});function W0(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(hu)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Dd=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Dd||{});function Q0(e,t=0){var n;return e===((n=Ad(e))==null?void 0:n.body)?!1:he(t,{[0](){return e.matches(hu)},[1](){let r=e;for(;r!==null;){if(r.matches(hu))return!0;r=r.parentElement}return!1}})}var K0=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(K0||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ln(e){e==null||e.focus({preventScroll:!0})}let G0=["textarea","input"].join(",");function Y0(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,G0))!=null?n:!1}function X0(e,t=n=>n){return e.slice().sort((n,r)=>{let l=t(n),o=t(r);if(l===null||o===null)return 0;let i=l.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _l(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:l=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?n?X0(e):e:W0(e);l.length>0&&i.length>1&&(i=i.filter(y=>!l.includes(y))),r=r??o.activeElement;let u=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(r))-1;if(t&4)return Math.max(0,i.indexOf(r))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=t&32?{preventScroll:!0}:{},c=0,d=i.length,h;do{if(c>=d||c+d<=0)return 0;let y=s+c;if(t&16)y=(y+d)%d;else{if(y<0)return 3;if(y>=d)return 1}h=i[y],h==null||h.focus(a),c+=u}while(h!==o.activeElement);return t&6&&Y0(h)&&h.select(),2}function si(e,t,n){let r=vt(t);w.useEffect(()=>{function l(o){r.current(o)}return document.addEventListener(e,l,n),()=>document.removeEventListener(e,l,n)},[e,n])}function q0(e,t,n=!0){let r=w.useRef(!1);w.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function l(i,u){if(!r.current||i.defaultPrevented)return;let s=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e),a=u(i);if(a!==null&&a.getRootNode().contains(a)){for(let c of s){if(c===null)continue;let d=c instanceof HTMLElement?c:c.current;if(d!=null&&d.contains(a)||i.composed&&i.composedPath().includes(d))return}return!Q0(a,Dd.Loose)&&a.tabIndex!==-1&&i.preventDefault(),t(i,a)}}let o=w.useRef(null);si("mousedown",i=>{var u,s;r.current&&(o.current=((s=(u=i.composedPath)==null?void 0:u.call(i))==null?void 0:s[0])||i.target)},!0),si("click",i=>{o.current&&(l(i,()=>o.current),o.current=null)},!0),si("blur",i=>l(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}let Md=Symbol();function b0(e,t=!0){return Object.assign(e,{[Md]:t})}function be(...e){let t=w.useRef(e);w.useEffect(()=>{t.current=e},[e]);let n=ue(r=>{for(let l of t.current)l!=null&&(typeof l=="function"?l(r):l.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Md]))?void 0:n}function gu(...e){return e.filter(Boolean).join(" ")}var to=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(to||{}),pt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pt||{});function Be({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:l,visible:o=!0,name:i}){let u=zd(t,e);if(o)return dl(u,n,r,i);let s=l??0;if(s&2){let{static:a=!1,...c}=u;if(a)return dl(c,n,r,i)}if(s&1){let{unmount:a=!0,...c}=u;return he(a?0:1,{[0](){return null},[1](){return dl({...c,hidden:!0,style:{display:"none"}},n,r,i)}})}return dl(u,n,r,i)}function dl(e,t={},n,r){let{as:l=n,children:o,refName:i="ref",...u}=ai(e,["unmount","static"]),s=e.ref!==void 0?{[i]:e.ref}:{},a=typeof o=="function"?o(t):o;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let c={};if(t){let d=!1,h=[];for(let[y,m]of Object.entries(t))typeof m=="boolean"&&(d=!0),m===!0&&h.push(y);d&&(c["data-headlessui-state"]=h.join(" "))}if(l===w.Fragment&&Object.keys(Ya(u)).length>0){if(!w.isValidElement(a)||Array.isArray(a)&&a.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(m=>` - ${m}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(` `)].join(` `));let d=a.props,h=typeof(d==null?void 0:d.className)=="function"?(...m)=>gu(d==null?void 0:d.className(...m),u.className):gu(d==null?void 0:d.className,u.className),y=h?{className:h}:{};return w.cloneElement(a,Object.assign({},zd(a.props,Ya(ai(u,["ref"]))),c,s,J0(a.ref,s.ref),y))}return w.createElement(l,Object.assign({},ai(u,["ref"]),l!==w.Fragment&&s,l!==w.Fragment&&c),a)}function J0(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function zd(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let l in r)l.startsWith("on")&&typeof r[l]=="function"?(n[l]!=null||(n[l]=[]),n[l].push(r[l])):t[l]=r[l];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](l,...o){let i=n[r];for(let u of i){if((l instanceof Event||(l==null?void 0:l.nativeEvent)instanceof Event)&&l.defaultPrevented)return;u(l,...o)}}});return t}function Ae(e){var t;return Object.assign(w.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Ya(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ai(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Z0(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&e1(n)?!1:r}function e1(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let t1="div";var no=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(no||{});function n1(e,t){let{features:n=1,...r}=e,l={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Be({ourProps:l,theirProps:r,slot:{},defaultTag:t1,name:"Hidden"})}let vu=Ae(n1),xs=w.createContext(null);xs.displayName="OpenClosedContext";var Pe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pe||{});function Cs(){return w.useContext(xs)}function r1({value:e,children:t}){return D.createElement(xs.Provider,{value:e},t)}var jd=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(jd||{});function Ts(e,t){let n=w.useRef([]),r=ue(e);w.useEffect(()=>{let l=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let u=r(t,l);return n.current=t,u}},[r,...t])}function l1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o1(e,t,n){let r=vt(t);w.useEffect(()=>{function l(o){r.current(o)}return window.addEventListener(e,l,n),()=>window.removeEventListener(e,l,n)},[e,n])}var cr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(cr||{});function i1(){let e=w.useRef(0);return o1("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Kr(){let e=w.useRef(!1);return ot(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Po(...e){return w.useMemo(()=>Ad(...e),[...e])}function Ud(e,t,n,r){let l=vt(n);w.useEffect(()=>{e=e??window;function o(i){l.current(i)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function u1(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function Id(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let s1="div";var Bd=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Bd||{});function a1(e,t){let n=w.useRef(null),r=be(n,t),{initialFocus:l,containers:o,features:i=30,...u}=e;Gn()||(i=1);let s=Po(n);d1({ownerDocument:s},!!(i&16));let a=p1({ownerDocument:s,container:n,initialFocus:l},!!(i&2));m1({ownerDocument:s,container:n,containers:o,previousActiveElement:a},!!(i&8));let c=i1(),d=ue(v=>{let P=n.current;P&&(p=>p())(()=>{he(c.current,{[cr.Forwards]:()=>{_l(P,bt.First,{skipElements:[v.relatedTarget]})},[cr.Backwards]:()=>{_l(P,bt.Last,{skipElements:[v.relatedTarget]})}})})}),h=ks(),y=w.useRef(!1),m={ref:r,onKeyDown(v){v.key=="Tab"&&(y.current=!0,h.requestAnimationFrame(()=>{y.current=!1}))},onBlur(v){let P=Id(o);n.current instanceof HTMLElement&&P.add(n.current);let p=v.relatedTarget;p instanceof HTMLElement&&p.dataset.headlessuiFocusGuard!=="true"&&(Hd(P,p)||(y.current?_l(n.current,he(c.current,{[cr.Forwards]:()=>bt.Next,[cr.Backwards]:()=>bt.Previous})|bt.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&ln(v.target)))}};return D.createElement(D.Fragment,null,!!(i&4)&&D.createElement(vu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:no.Focusable}),Be({ourProps:m,theirProps:u,defaultTag:s1,name:"FocusTrap"}),!!(i&4)&&D.createElement(vu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:no.Focusable}))}let c1=Ae(a1),lr=Object.assign(c1,{features:Bd}),_t=[];u1(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&_t[0]!==t.target&&(_t.unshift(t.target),_t=_t.filter(n=>n!=null&&n.isConnected),_t.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function f1(e=!0){let t=w.useRef(_t.slice());return Ts(([n],[r])=>{r===!0&&n===!1&&Qr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=_t.slice())},[e,_t,t]),ue(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function d1({ownerDocument:e},t){let n=f1(t);Ts(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&ln(n())},[t]);let r=w.useRef(!1);w.useEffect(()=>(r.current=!1,()=>{r.current=!0,Qr(()=>{r.current&&ln(n())})}),[])}function p1({ownerDocument:e,container:t,initialFocus:n},r){let l=w.useRef(null),o=Kr();return Ts(()=>{if(!r)return;let i=t.current;i&&Qr(()=>{if(!o.current)return;let u=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===u){l.current=u;return}}else if(i.contains(u)){l.current=u;return}n!=null&&n.current?ln(n.current):_l(i,bt.First)===$d.Error&&console.warn("There are no focusable elements inside the "),l.current=e==null?void 0:e.activeElement})},[r]),l}function m1({ownerDocument:e,container:t,containers:n,previousActiveElement:r},l){let o=Kr();Ud(e==null?void 0:e.defaultView,"focus",i=>{if(!l||!o.current)return;let u=Id(n);t.current instanceof HTMLElement&&u.add(t.current);let s=r.current;if(!s)return;let a=i.target;a&&a instanceof HTMLElement?Hd(u,a)?(r.current=a,ln(a)):(i.preventDefault(),i.stopPropagation(),ln(s)):ln(r.current)},!0)}function Hd(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Vd=w.createContext(!1);function h1(){return w.useContext(Vd)}function yu(e){return D.createElement(Vd.Provider,{value:e.force},e.children)}function g1(e){let t=h1(),n=w.useContext(Wd),r=Po(e),[l,o]=w.useState(()=>{if(!t&&n!==null||gt.isServer)return null;let i=r==null?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(r===null)return null;let u=r.createElement("div");return u.setAttribute("id","headlessui-portal-root"),r.body.appendChild(u)});return w.useEffect(()=>{l!==null&&(r!=null&&r.body.contains(l)||r==null||r.body.appendChild(l))},[l,r]),w.useEffect(()=>{t||n!==null&&o(n.current)},[n,o,t]),l}let v1=w.Fragment;function y1(e,t){let n=e,r=w.useRef(null),l=be(b0(c=>{r.current=c}),t),o=Po(r),i=g1(r),[u]=w.useState(()=>{var c;return gt.isServer?null:(c=o==null?void 0:o.createElement("div"))!=null?c:null}),s=Gn(),a=w.useRef(!1);return ot(()=>{if(a.current=!1,!(!i||!u))return i.contains(u)||(u.setAttribute("data-headlessui-portal",""),i.appendChild(u)),()=>{a.current=!0,Qr(()=>{var c;a.current&&(!i||!u||(u instanceof Node&&i.contains(u)&&i.removeChild(u),i.childNodes.length<=0&&((c=i.parentElement)==null||c.removeChild(i))))})}},[i,u]),s?!i||!u?null:pd.createPortal(Be({ourProps:{ref:l},theirProps:n,defaultTag:v1,name:"Portal"}),u):null}let w1=w.Fragment,Wd=w.createContext(null);function S1(e,t){let{target:n,...r}=e,l={ref:be(t)};return D.createElement(Wd.Provider,{value:n},Be({ourProps:l,theirProps:r,defaultTag:w1,name:"Popover.Group"}))}let E1=Ae(y1),k1=Ae(S1),wu=Object.assign(E1,{Group:k1}),Qd=w.createContext(null);function Kd(){let e=w.useContext(Qd);if(e===null){let t=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Kd),t}return e}function x1(){let[e,t]=w.useState([]);return[e.length>0?e.join(" "):void 0,w.useMemo(()=>function(n){let r=ue(o=>(t(i=>[...i,o]),()=>t(i=>{let u=i.slice(),s=u.indexOf(o);return s!==-1&&u.splice(s,1),u}))),l=w.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return D.createElement(Qd.Provider,{value:l},n.children)},[t])]}let C1="p";function T1(e,t){let n=Yn(),{id:r=`headlessui-description-${n}`,...l}=e,o=Kd(),i=be(t);ot(()=>o.register(r),[r,o.register]);let u={ref:i,...o.props,id:r};return Be({ourProps:u,theirProps:l,slot:o.slot||{},defaultTag:C1,name:o.name||"Description"})}let N1=Ae(T1),P1=Object.assign(N1,{}),Ns=w.createContext(()=>{});Ns.displayName="StackContext";var Su=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Su||{});function L1(){return w.useContext(Ns)}function _1({children:e,onUpdate:t,type:n,element:r,enabled:l}){let o=L1(),i=ue((...u)=>{t==null||t(...u),o(...u)});return ot(()=>{let u=l===void 0||l===!0;return u&&i(0,n,r),()=>{u&&i(1,n,r)}},[i,n,r,l]),D.createElement(Ns.Provider,{value:i},e)}function R1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const O1=typeof Object.is=="function"?Object.is:R1,{useState:F1,useEffect:A1,useLayoutEffect:$1,useDebugValue:D1}=vi;function M1(e,t,n){const r=t(),[{inst:l},o]=F1({inst:{value:r,getSnapshot:t}});return $1(()=>{l.value=r,l.getSnapshot=t,ci(l)&&o({inst:l})},[e,r,t]),A1(()=>(ci(l)&&o({inst:l}),e(()=>{ci(l)&&o({inst:l})})),[e]),D1(r),r}function ci(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!O1(n,r)}catch{return!0}}function z1(e,t,n){return t()}const j1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",U1=!j1,I1=U1?z1:M1,B1="useSyncExternalStore"in vi?(e=>e.useSyncExternalStore)(vi):I1;function H1(e){return B1(e.subscribe,e.getSnapshot,e.getSnapshot)}function V1(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(l){return r.add(l),()=>r.delete(l)},dispatch(l,...o){let i=t[l].call(n,...o);i&&(n=i,r.forEach(u=>u()))}}}function W1(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,l=r.clientWidth-r.offsetWidth,o=e-l;n.style(r,"paddingRight",`${o}px`)}}}function Q1(){if(!l1())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function l(i){return r.containers.flatMap(u=>u()).some(u=>u.contains(i))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let o=null;n.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{let u=i.target.closest("a");if(!u)return;let{hash:s}=new URL(u.href),a=t.querySelector(s);a&&!l(a)&&(o=a)}catch{}},!0),n.addEventListener(t,"touchmove",i=>{i.target instanceof HTMLElement&&!l(i.target)&&i.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})}}}function K1(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function G1(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let tn=V1(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Kn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:G1(n)},l=[Q1(),W1(),K1()];l.forEach(({before:o})=>o==null?void 0:o(r)),l.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});tn.subscribe(()=>{let e=tn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",l=n.count!==0;(l&&!r||!l&&r)&&tn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&tn.dispatch("TEARDOWN",n)}});function Y1(e,t,n){let r=H1(tn),l=e?r.get(e):void 0,o=l?l.count>0:!1;return ot(()=>{if(!(!e||!t))return tn.dispatch("PUSH",e,n),()=>tn.dispatch("POP",e,n)},[t,e]),o}let fi=new Map,or=new Map;function Xa(e,t=!0){ot(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function l(){var i;if(!r)return;let u=(i=or.get(r))!=null?i:1;if(u===1?or.delete(r):or.set(r,u-1),u!==1)return;let s=fi.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,fi.delete(r))}let o=(n=or.get(r))!=null?n:0;return or.set(r,o+1),o!==0||(fi.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),l},[e,t])}var X1=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X1||{}),q1=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(q1||{});let b1={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ro=w.createContext(null);ro.displayName="DialogContext";function Gr(e){let t=w.useContext(ro);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gr),n}return t}function J1(e,t,n=()=>[document.body]){Y1(e,t,r=>{var l;return{containers:[...(l=r.containers)!=null?l:[],n]}})}function Z1(e,t){return he(t.type,b1,e,t)}let eg="div",tg=to.RenderStrategy|to.Static;function ng(e,t){let n=Yn(),{id:r=`headlessui-dialog-${n}`,open:l,onClose:o,initialFocus:i,__demoMode:u=!1,...s}=e,[a,c]=w.useState(0),d=Cs();l===void 0&&d!==null&&(l=(d&Pe.Open)===Pe.Open);let h=w.useRef(null),y=be(h,t),m=w.useRef(null),v=Po(h),P=e.hasOwnProperty("open")||d!==null,p=e.hasOwnProperty("onClose");if(!P&&!p)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!P)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!p)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof l!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l}`);if(typeof o!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let f=l?0:1,[g,E]=w.useReducer(Z1,{titleId:null,descriptionId:null,panelRef:w.createRef()}),C=ue(()=>o(!1)),L=ue(K=>E({type:0,id:K})),T=Gn()?u?!1:f===0:!1,_=a>1,U=w.useContext(ro)!==null,O=_?"parent":"leaf",V=d!==null?(d&Pe.Closing)===Pe.Closing:!1,He=(()=>U||V?!1:T)(),Ve=w.useCallback(()=>{var K,te;return(te=Array.from((K=v==null?void 0:v.querySelectorAll("body > *"))!=null?K:[]).find(Y=>Y.id==="headlessui-portal-root"?!1:Y.contains(m.current)&&Y instanceof HTMLElement))!=null?te:null},[m]);Xa(Ve,He);let mn=(()=>_?!0:T)(),it=w.useCallback(()=>{var K,te;return(te=Array.from((K=v==null?void 0:v.querySelectorAll("[data-headlessui-portal]"))!=null?K:[]).find(Y=>Y.contains(m.current)&&Y instanceof HTMLElement))!=null?te:null},[m]);Xa(it,mn);let ut=ue(()=>{var K,te;return[...Array.from((K=v==null?void 0:v.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))!=null?K:[]).filter(Y=>!(Y===document.body||Y===document.head||!(Y instanceof HTMLElement)||Y.contains(m.current)||g.panelRef.current&&Y.contains(g.panelRef.current))),(te=g.panelRef.current)!=null?te:h.current]}),Kt=(()=>!(!T||_))();q0(()=>ut(),C,Kt);let N=(()=>!(_||f!==0))();Ud(v==null?void 0:v.defaultView,"keydown",K=>{N&&(K.defaultPrevented||K.key===jd.Escape&&(K.preventDefault(),K.stopPropagation(),C()))});let F=(()=>!(V||f!==0||U))();J1(v,F,ut),w.useEffect(()=>{if(f!==0||!h.current)return;let K=new ResizeObserver(te=>{for(let Y of te){let Yr=Y.target.getBoundingClientRect();Yr.x===0&&Yr.y===0&&Yr.width===0&&Yr.height===0&&C()}});return K.observe(h.current),()=>K.disconnect()},[f,h,C]);let[A,j]=x1(),ee=w.useMemo(()=>[{dialogState:f,close:C,setTitleId:L},g],[f,g,C,L]),Gt=w.useMemo(()=>({open:f===0}),[f]),st={ref:y,id:r,role:"dialog","aria-modal":f===0?!0:void 0,"aria-labelledby":g.titleId,"aria-describedby":A};return D.createElement(_1,{type:"Dialog",enabled:f===0,element:h,onUpdate:ue((K,te)=>{te==="Dialog"&&he(K,{[Su.Add]:()=>c(Y=>Y+1),[Su.Remove]:()=>c(Y=>Y-1)})})},D.createElement(yu,{force:!0},D.createElement(wu,null,D.createElement(ro.Provider,{value:ee},D.createElement(wu.Group,{target:h},D.createElement(yu,{force:!1},D.createElement(j,{slot:Gt,name:"Dialog.Description"},D.createElement(lr,{initialFocus:i,containers:ut,features:T?he(O,{parent:lr.features.RestoreFocus,leaf:lr.features.All&~lr.features.FocusLock}):lr.features.None},Be({ourProps:st,theirProps:s,slot:Gt,defaultTag:eg,features:tg,visible:f===0,name:"Dialog"})))))))),D.createElement(vu,{features:no.Hidden,ref:m}))}let rg="div";function lg(e,t){let n=Yn(),{id:r=`headlessui-dialog-overlay-${n}`,...l}=e,[{dialogState:o,close:i}]=Gr("Dialog.Overlay"),u=be(t),s=ue(c=>{if(c.target===c.currentTarget){if(Z0(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),i()}}),a=w.useMemo(()=>({open:o===0}),[o]);return Be({ourProps:{ref:u,id:r,"aria-hidden":!0,onClick:s},theirProps:l,slot:a,defaultTag:rg,name:"Dialog.Overlay"})}let og="div";function ig(e,t){let n=Yn(),{id:r=`headlessui-dialog-backdrop-${n}`,...l}=e,[{dialogState:o},i]=Gr("Dialog.Backdrop"),u=be(t);w.useEffect(()=>{if(i.panelRef.current===null)throw new Error("A component is being used, but a component is missing.")},[i.panelRef]);let s=w.useMemo(()=>({open:o===0}),[o]);return D.createElement(yu,{force:!0},D.createElement(wu,null,Be({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:l,slot:s,defaultTag:og,name:"Dialog.Backdrop"})))}let ug="div";function sg(e,t){let n=Yn(),{id:r=`headlessui-dialog-panel-${n}`,...l}=e,[{dialogState:o},i]=Gr("Dialog.Panel"),u=be(t,i.panelRef),s=w.useMemo(()=>({open:o===0}),[o]),a=ue(c=>{c.stopPropagation()});return Be({ourProps:{ref:u,id:r,onClick:a},theirProps:l,slot:s,defaultTag:ug,name:"Dialog.Panel"})}let ag="h2";function cg(e,t){let n=Yn(),{id:r=`headlessui-dialog-title-${n}`,...l}=e,[{dialogState:o,setTitleId:i}]=Gr("Dialog.Title"),u=be(t);w.useEffect(()=>(i(r),()=>i(null)),[r,i]);let s=w.useMemo(()=>({open:o===0}),[o]);return Be({ourProps:{ref:u,id:r},theirProps:l,slot:s,defaultTag:ag,name:"Dialog.Title"})}let fg=Ae(ng),dg=Ae(ig),pg=Ae(sg),mg=Ae(lg),hg=Ae(cg),di=Object.assign(fg,{Backdrop:dg,Panel:pg,Overlay:mg,Title:hg,Description:P1});function gg(e=0){let[t,n]=w.useState(e),r=Kr(),l=w.useCallback(s=>{r.current&&n(a=>a|s)},[t,r]),o=w.useCallback(s=>!!(t&s),[t]),i=w.useCallback(s=>{r.current&&n(a=>a&~s)},[n,r]),u=w.useCallback(s=>{r.current&&n(a=>a^s)},[n]);return{flags:t,addFlag:l,hasFlag:o,removeFlag:i,toggleFlag:u}}function vg(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function pi(e,...t){e&&t.length>0&&e.classList.add(...t)}function mi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function yg(e,t){let n=Kn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:l}=getComputedStyle(e),[o,i]=[r,l].map(s=>{let[a=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return a}),u=o+i;if(u!==0){n.group(a=>{a.setTimeout(()=>{t(),a.dispose()},u),a.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&a.dispose()})});let s=n.addEventListener(e,"transitionend",a=>{a.target===a.currentTarget&&(t(),s())})}else t();return n.add(()=>t()),n.dispose}function wg(e,t,n,r){let l=n?"enter":"leave",o=Kn(),i=r!==void 0?vg(r):()=>{};l==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let u=he(l,{enter:()=>t.enter,leave:()=>t.leave}),s=he(l,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),a=he(l,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return mi(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),pi(e,...u,...a),o.nextFrame(()=>{mi(e,...a),pi(e,...s),yg(e,()=>(mi(e,...u),pi(e,...t.entered),i()))}),o.dispose}function Sg({container:e,direction:t,classes:n,onStart:r,onStop:l}){let o=Kr(),i=ks(),u=vt(t);ot(()=>{let s=Kn();i.add(s.dispose);let a=e.current;if(a&&u.current!=="idle"&&o.current)return s.dispose(),r.current(u.current),s.add(wg(a,n.current,u.current==="enter",()=>{s.dispose(),l.current(u.current)})),s.dispose},[t])}function Yt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Lo=w.createContext(null);Lo.displayName="TransitionContext";var Eg=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Eg||{});function kg(){let e=w.useContext(Lo);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function xg(){let e=w.useContext(_o);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let _o=w.createContext(null);_o.displayName="NestingContext";function Ro(e){return"children"in e?Ro(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Gd(e,t){let n=vt(e),r=w.useRef([]),l=Kr(),o=ks(),i=ue((y,m=pt.Hidden)=>{let v=r.current.findIndex(({el:P})=>P===y);v!==-1&&(he(m,{[pt.Unmount](){r.current.splice(v,1)},[pt.Hidden](){r.current[v].state="hidden"}}),o.microTask(()=>{var P;!Ro(r)&&l.current&&((P=n.current)==null||P.call(n))}))}),u=ue(y=>{let m=r.current.find(({el:v})=>v===y);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:y,state:"visible"}),()=>i(y,pt.Unmount)}),s=w.useRef([]),a=w.useRef(Promise.resolve()),c=w.useRef({enter:[],leave:[],idle:[]}),d=ue((y,m,v)=>{s.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([P])=>P!==y)),t==null||t.chains.current[m].push([y,new Promise(P=>{s.current.push(P)})]),t==null||t.chains.current[m].push([y,new Promise(P=>{Promise.all(c.current[m].map(([p,f])=>f)).then(()=>P())})]),m==="enter"?a.current=a.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(m)):v(m)}),h=ue((y,m,v)=>{Promise.all(c.current[m].splice(0).map(([P,p])=>p)).then(()=>{var P;(P=s.current.shift())==null||P()}).then(()=>v(m))});return w.useMemo(()=>({children:r,register:u,unregister:i,onStart:d,onStop:h,wait:a,chains:c}),[u,i,r,d,h,c,a])}function Cg(){}let Tg=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function qa(e){var t;let n={};for(let r of Tg)n[r]=(t=e[r])!=null?t:Cg;return n}function Ng(e){let t=w.useRef(qa(e));return w.useEffect(()=>{t.current=qa(e)},[e]),t}let Pg="div",Yd=to.RenderStrategy;function Lg(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:l,afterLeave:o,enter:i,enterFrom:u,enterTo:s,entered:a,leave:c,leaveFrom:d,leaveTo:h,...y}=e,m=w.useRef(null),v=be(m,t),P=y.unmount?pt.Unmount:pt.Hidden,{show:p,appear:f,initial:g}=kg(),[E,C]=w.useState(p?"visible":"hidden"),L=xg(),{register:T,unregister:_}=L,U=w.useRef(null);w.useEffect(()=>T(m),[T,m]),w.useEffect(()=>{if(P===pt.Hidden&&m.current){if(p&&E!=="visible"){C("visible");return}return he(E,{hidden:()=>_(m),visible:()=>T(m)})}},[E,m,T,_,p,P]);let O=vt({enter:Yt(i),enterFrom:Yt(u),enterTo:Yt(s),entered:Yt(a),leave:Yt(c),leaveFrom:Yt(d),leaveTo:Yt(h)}),V=Ng({beforeEnter:n,afterEnter:r,beforeLeave:l,afterLeave:o}),He=Gn();w.useEffect(()=>{if(He&&E==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,E,He]);let Ve=g&&!f,mn=(()=>!He||Ve||U.current===p?"idle":p?"enter":"leave")(),it=gg(0),ut=ue(j=>he(j,{enter:()=>{it.addFlag(Pe.Opening),V.current.beforeEnter()},leave:()=>{it.addFlag(Pe.Closing),V.current.beforeLeave()},idle:()=>{}})),Kt=ue(j=>he(j,{enter:()=>{it.removeFlag(Pe.Opening),V.current.afterEnter()},leave:()=>{it.removeFlag(Pe.Closing),V.current.afterLeave()},idle:()=>{}})),N=Gd(()=>{C("hidden"),_(m)},L);Sg({container:m,classes:O,direction:mn,onStart:vt(j=>{N.onStart(m,j,ut)}),onStop:vt(j=>{N.onStop(m,j,Kt),j==="leave"&&!Ro(N)&&(C("hidden"),_(m))})}),w.useEffect(()=>{Ve&&(P===pt.Hidden?U.current=null:U.current=p)},[p,Ve,E]);let F=y,A={ref:v};return f&&p&&(F={...F,className:gu(y.className,...O.current.enter,...O.current.enterFrom)}),D.createElement(_o.Provider,{value:N},D.createElement(r1,{value:he(E,{visible:Pe.Open,hidden:Pe.Closed})|it.flags},Be({ourProps:A,theirProps:F,defaultTag:Pg,features:Yd,visible:E==="visible",name:"Transition.Child"})))}function _g(e,t){let{show:n,appear:r=!1,unmount:l,...o}=e,i=w.useRef(null),u=be(i,t);Gn();let s=Cs();if(n===void 0&&s!==null&&(n=(s&Pe.Open)===Pe.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[a,c]=w.useState(n?"visible":"hidden"),d=Gd(()=>{c("hidden")}),[h,y]=w.useState(!0),m=w.useRef([n]);ot(()=>{h!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),y(!1))},[m,n]);let v=w.useMemo(()=>({show:n,appear:r,initial:h}),[n,r,h]);w.useEffect(()=>{if(n)c("visible");else if(!Ro(d))c("hidden");else{let p=i.current;if(!p)return;let f=p.getBoundingClientRect();f.x===0&&f.y===0&&f.width===0&&f.height===0&&c("hidden")}},[n,d]);let P={unmount:l};return D.createElement(_o.Provider,{value:d},D.createElement(Lo.Provider,{value:v},Be({ourProps:{...P,as:w.Fragment,children:D.createElement(Xd,{ref:u,...P,...o})},theirProps:{},defaultTag:w.Fragment,features:Yd,visible:a==="visible",name:"Transition"})))}function Rg(e,t){let n=w.useContext(Lo)!==null,r=Cs()!==null;return D.createElement(D.Fragment,null,!n&&r?D.createElement(Eu,{ref:t,...e}):D.createElement(Xd,{ref:t,...e}))}let Eu=Ae(_g),Xd=Ae(Lg),Og=Ae(Rg),hi=Object.assign(Eu,{Child:Og,Root:Eu});function qd({show:e,onClose:t,onSubmit:n,title:r,content:l,submitText:o}){return x(hi,{appear:!0,show:e,as:w.Fragment,children:B(di,{as:"div",className:"relative z-10",onClose:t,children:[x(hi.Child,{as:w.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:x("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),x("div",{className:"fixed inset-0 overflow-y-auto",children:x("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:x(hi.Child,{as:w.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:B(di.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all",children:[x(di.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900",children:r}),x("div",{className:"mt-3 text-sm text-gray-500",children:l}),B("div",{className:"mt-4 flex flex-row-reverse",children:[o&&x("button",{type:"button",className:"inline-flex ml-4 justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-indigo-100 hover:bg-indigo-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-300",onClick:n,children:o}),x("button",{type:"button",className:"inline-flex justify-center rounded-md border border-transparent bg-indigo-100 px-4 py-2 text-sm font-medium text-indigo-900 hover:bg-indigo-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-300",onClick:t,children:"Close"})]})]})})})})]})})}function Fg(e){return x("div",{children:x("input",{...e,type:"url",className:"my-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"www.example.com",required:!0})})}function Ag(e){const t=w.useRef(null),n=w.useRef(null);return w.useEffect(()=>{t.current&&n.current&&(n.current.src=e.audioUrl,t.current.load())},[e.audioUrl]),x("div",{className:"flex relative z-10 p-4 w-full",children:x("audio",{ref:t,controls:!0,className:"w-full h-14 rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:x("source",{ref:n,type:"audio/wav"})})})}function $g(e){const{isModelLoading:t,isTranscribing:n,onClick:r,...l}=e;return x("button",{...l,onClick:o=>{r&&!n&&!t&&r(o)},disabled:n,className:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 inline-flex items-center",children:t?x(ba,{text:"Loading model..."}):n?x(ba,{text:"Transcribing..."}):"Transcribe Audio"})}function ba(e){return B("div",{role:"status",children:[B("svg",{"aria-hidden":"true",role:"status",className:"inline w-4 h-4 mr-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),x("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),e.text]})}const Rt={SAMPLING_RATE:16e3,DEFAULT_AUDIO_URL:"https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/ted_60.wav",DEFAULT_MODEL:"tiny",DEFAULT_SUBTASK:"transcribe",DEFAULT_LANGUAGE:"auto",DEFAULT_QUANTIZED:!1,DEFAULT_MULTILINGUAL:!1};function Dg({text:e,percentage:t}){return t=t??0,x("div",{className:"mt-0.5 w-full relative text-sm text-white background-bg-cyan-400 bg-gray-200 border-1 border-gray-400 rounded-lg text-left overflow-hidden",children:B("div",{className:"top-0 h-full bg-blue-500 whitespace-nowrap px-2",style:{width:`${t}%`},children:[e," (",`${t.toFixed(2)}%`,")"]})})}function Mg(e){return e=e.toLowerCase(),(e.match(/\w+.?/g)||[]).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}const Ja={en:"english",zh:"chinese",de:"german",es:"spanish/castilian",ru:"russian",ko:"korean",fr:"french",ja:"japanese",pt:"portuguese",tr:"turkish",pl:"polish",ca:"catalan/valencian",nl:"dutch/flemish",ar:"arabic",sv:"swedish",it:"italian",id:"indonesian",hi:"hindi",fi:"finnish",vi:"vietnamese",he:"hebrew",uk:"ukrainian",el:"greek",ms:"malay",cs:"czech",ro:"romanian/moldavian/moldovan",da:"danish",hu:"hungarian",ta:"tamil",no:"norwegian",th:"thai",ur:"urdu",hr:"croatian",bg:"bulgarian",lt:"lithuanian",la:"latin",mi:"maori",ml:"malayalam",cy:"welsh",sk:"slovak",te:"telugu",fa:"persian",lv:"latvian",bn:"bengali",sr:"serbian",az:"azerbaijani",sl:"slovenian",kn:"kannada",et:"estonian",mk:"macedonian",br:"breton",eu:"basque",is:"icelandic",hy:"armenian",ne:"nepali",mn:"mongolian",bs:"bosnian",kk:"kazakh",sq:"albanian",sw:"swahili",gl:"galician",mr:"marathi",pa:"punjabi/panjabi",si:"sinhala/sinhalese",km:"khmer",sn:"shona",yo:"yoruba",so:"somali",af:"afrikaans",oc:"occitan",ka:"georgian",be:"belarusian",tg:"tajik",sd:"sindhi",gu:"gujarati",am:"amharic",yi:"yiddish",lo:"lao",uz:"uzbek",fo:"faroese",ht:"haitian creole/haitian",ps:"pashto/pushto",tk:"turkmen",nn:"nynorsk",mt:"maltese",sa:"sanskrit",lb:"luxembourgish/letzeburgesch",my:"myanmar/burmese",bo:"tibetan",tl:"tagalog",mg:"malagasy",as:"assamese",tt:"tatar",haw:"hawaiian",ln:"lingala",ha:"hausa",ba:"bashkir",jw:"javanese",su:"sundanese"};function zg(e){const[t,n]=w.useState(void 0),[r,l]=w.useState(void 0),[o,i]=w.useState(void 0),u=t!==void 0,s=async c=>{const d=new AudioContext({sampleRate:Rt.SAMPLING_RATE}),h=URL.createObjectURL(new Blob([c],{type:"audio/*"})),y=await d.decodeAudioData(c);l({buffer:y,url:h,source:"URL"})},a=async c=>{if(o)try{l(void 0),n(0);const{data:d}=await U0.get(o,{signal:c.signal,responseType:"arraybuffer",onDownloadProgress(h){n(h.progress||0)}});s(d)}catch(d){console.log("Request failed or aborted",d)}finally{n(void 0)}};return w.useEffect(()=>{if(o){const c=new AbortController;return a(c),()=>{c.abort()}}},[o]),B(on,{children:[B("div",{className:"flex flex-col justify-center items-center rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:[B("div",{className:"flex flex-row space-x-2 py-2 w-full px-2",children:[x(Vg,{icon:x(Kg,{}),text:"From URL",onUrlUpdate:c=>{e.transcriber.onInputChange(),i(c)}}),x(Ig,{}),x(Qg,{icon:x(Gg,{}),text:"From file",onFileUpdate:(c,d)=>{e.transcriber.onInputChange(),l({buffer:c,url:d,source:"FILE"})}})]}),x(Bg,{progress:u?t:+!!r})]}),r&&B(on,{children:[x(Ag,{audioUrl:r.url}),B("div",{className:"relative w-full flex justify-center items-center",children:[x($g,{onClick:()=>{e.transcriber.start(r.buffer)},isModelLoading:e.transcriber.isModelLoading,isTranscribing:e.transcriber.isBusy}),x(jg,{className:"absolute right-4",transcriber:e.transcriber,icon:x(Yg,{})})]}),e.transcriber.progressItems.length>0&&B("div",{className:"relative z-10 p-4 w-full",children:[x("label",{children:"Loading model files... (only run once)"}),e.transcriber.progressItems.map(c=>x("div",{children:x(Dg,{text:c.file,percentage:c.progress})},c.file))]})]})]})}function jg(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},l=()=>{n(!1)},o=i=>{l()};return B("div",{className:e.className,children:[x(Ps,{icon:e.icon,onClick:r}),x(Ug,{show:t,onSubmit:o,onClose:l,transcriber:e.transcriber})]})}function Ug(e){const t=Object.values(Ja).map(Mg),n={tiny:[61,231],base:[103,398],small:[290],medium:[833]};return x(qd,{show:e.show,title:"Settings",content:B(on,{children:[x("label",{children:"Select the model to use."}),x("select",{className:"mt-1 mb-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.model,onChange:r=>{e.transcriber.setModel(r.target.value)},children:Object.keys(n).filter(r=>e.transcriber.quantized||n[r].length==2).map(r=>x("option",{value:r,children:`whisper-${r}${e.transcriber.multilingual?"":".en"} (${n[r][e.transcriber.quantized?0:1]}MB)`},r))}),B("div",{className:"flex justify-between items-center mb-3 px-1",children:[B("div",{className:"flex",children:[x("input",{id:"multilingual",type:"checkbox",checked:e.transcriber.multilingual,onChange:r=>{e.transcriber.setMultilingual(r.target.checked)}}),x("label",{htmlFor:"multilingual",className:"ms-1",children:"Multilingual"})]}),B("div",{className:"flex",children:[x("input",{id:"quantize",type:"checkbox",checked:e.transcriber.quantized,onChange:r=>{e.transcriber.setQuantized(r.target.checked)}}),x("label",{htmlFor:"quantize",className:"ms-1",children:"Quantized"})]})]}),e.transcriber.multilingual&&B(on,{children:[x("label",{children:"Select the source language."}),B("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.language,onChange:r=>{e.transcriber.setLanguage(r.target.value)},children:[x("option",{value:"auto",children:"Auto-detect"},-1),Object.keys(Ja).map((r,l)=>x("option",{value:r,children:t[l]},r))]}),x("label",{children:"Select the task to perform."}),B("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.subtask,onChange:r=>{e.transcriber.setSubtask(r.target.value)},children:[x("option",{value:"transcribe",children:"Transcribe"}),x("option",{value:"translate",children:"Translate (to English)"})]})]})]}),onClose:e.onClose,onSubmit:()=>{}})}function Ig(){return x("div",{className:"w-[1px] bg-slate-200"})}function Bg(e){return x(Hg,{progress:`${Math.round(e.progress*100)}%`})}function Hg(e){return x("div",{className:"w-full bg-gray-200 rounded-full h-1 dark:bg-gray-700",children:x("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-100",style:{width:e.progress}})})}function Vg(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},l=()=>{n(!1)},o=i=>{e.onUrlUpdate(i),l()};return B(on,{children:[x(Ps,{icon:e.icon,text:e.text,onClick:r}),x(Wg,{show:t,onSubmit:o,onClose:l})]})}function Wg(e){const[t,n]=w.useState(Rt.DEFAULT_AUDIO_URL),r=o=>{n(o.target.value)},l=()=>{e.onSubmit(t)};return x(qd,{show:e.show,title:"From URL",content:B(on,{children:["Enter the URL of the audio file you want to load.",x(Fg,{onChange:r,value:t})]}),onClose:e.onClose,submitText:"Load",onSubmit:l})}function Qg(e){let t=document.createElement("input");return t.type="file",t.oninput=n=>{let r=n.target.files;if(!r)return;const l=URL.createObjectURL(r[0]),o=new FileReader;o.addEventListener("load",async i=>{var c;const u=(c=i.target)==null?void 0:c.result;if(!u)return;const a=await new AudioContext({sampleRate:Rt.SAMPLING_RATE}).decodeAudioData(u);e.onFileUpdate(a,l)}),o.readAsArrayBuffer(r[0]),t.value=""},x(on,{children:x(Ps,{icon:e.icon,text:e.text,onClick:()=>t.click()})})}function Ps(e){return B("button",{onClick:e.onClick,className:"flex items-center justify-center rounded-lg p-2 bg-blue text-slate-500 hover:text-indigo-600 hover:bg-indigo-50 transition-all duration-200",children:[x("div",{className:"w-7 h-7",children:e.icon}),e.text&&x("div",{className:"ml-2 break-text text-center text-md w-30",children:e.text})]})}function Kg(){return x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})})}function Gg(){return x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 00-1.883 2.542l.857 6a2.25 2.25 0 002.227 1.932H19.05a2.25 2.25 0 002.227-1.932l.857-6a2.25 2.25 0 00-1.883-2.542m-16.5 0V6A2.25 2.25 0 016 3.75h3.879a1.5 1.5 0 011.06.44l2.122 2.12a1.5 1.5 0 001.06.44H18A2.25 2.25 0 0120.25 9v.776"})})}function Yg(){return B("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.25",stroke:"currentColor",children:[x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}function gi(e){return String(e).padStart(2,"0")}function Xg(e){const t=e/3600|0;e-=t*(60*60);const n=e/60|0;e-=n*60;const r=e|0;return`${t?gi(t)+":":""}${gi(n)}:${gi(r)}`}function qg({transcribedData:e}){const t=w.useRef(null),n=()=>{let r=JSON.stringify((e==null?void 0:e.chunks)??{},null,2);const l=/( "timestamp": )\[\s+(\S+)\s+(\S+)\s+\]/gm;r=r.replace(l,"$1[$2 $3]");const o=new Blob([r],{type:"application/json"}),i=URL.createObjectURL(o),u=document.createElement("a");u.href=i,u.download="transcript.json",u.click(),URL.revokeObjectURL(i)};return w.useEffect(()=>{t.current&&Math.abs(t.current.offsetHeight+t.current.scrollTop-t.current.scrollHeight)<=64&&(t.current.scrollTop=t.current.scrollHeight)}),B("div",{ref:t,className:"w-full flex flex-col my-2 p-4 max-h-[20rem] overflow-y-auto",children:[e&&e.chunks.map((r,l)=>B("div",{className:"w-full flex flex-row mb-2 bg-white rounded-lg p-4 shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:[x("div",{className:"mr-5",children:Xg(r.timestamp[0])}),r.text]},`${l}-${r.text}`)),e&&!e.isBusy&&x("div",{className:"w-full text-right",children:x("button",{onClick:n,className:"text-white bg-green-500 hover:bg-green-600 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-4 py-2 text-center mr-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800 inline-flex items-center",children:"Export JSON"})})]})}function bg(e){const[t]=w.useState(()=>Jg(e));return t}function Jg(e){const t=new Worker(new URL("/assets/worker-c82d7cb9.js",self.location),{type:"module"});return t.addEventListener("message",e),t}function Zg(){const[e,t]=w.useState(void 0),[n,r]=w.useState(!1),[l,o]=w.useState(!1),[i,u]=w.useState([]),s=bg(L=>{const T=L.data;switch(T.status){case"progress":u(O=>O.map(V=>V.file===T.file?{...V,progress:T.progress}:V));break;case"update":const _=T;t({isBusy:!0,text:_.data[0],chunks:_.data[1].chunks});break;case"complete":const U=T;t({isBusy:!1,text:U.data.text,chunks:U.data.chunks}),r(!1);break;case"initiate":o(!0),u(O=>[...O,T]);break;case"ready":o(!1);break;case"error":r(!1),alert(`${T.data.message} This is most likely because you are using Safari on an M1/M2 Mac. Please try again from Chrome, Firefox, or Edge. If this is not the case, please file a bug report.`);break;case"done":u(O=>O.filter(V=>V.file!==T.file));break}}),[a,c]=w.useState(Rt.DEFAULT_MODEL),[d,h]=w.useState(Rt.DEFAULT_SUBTASK),[y,m]=w.useState(Rt.DEFAULT_QUANTIZED),[v,P]=w.useState(Rt.DEFAULT_MULTILINGUAL),[p,f]=w.useState(Rt.DEFAULT_LANGUAGE),g=w.useCallback(()=>{t(void 0)},[]),E=w.useCallback(async L=>{L&&(t(void 0),r(!0),s.postMessage({audio:L.getChannelData(0),model:a,multilingual:v,quantized:y,subtask:v?d:null,language:v&&p!=="auto"?p:null}))},[s,a,v,y,d,p]);return w.useMemo(()=>({onInputChange:g,isBusy:n,isModelLoading:l,progressItems:i,start:E,output:e,model:a,setModel:c,multilingual:v,setMultilingual:P,quantized:y,setQuantized:m,subtask:d,setSubtask:h,language:p,setLanguage:f}),[n,l,i,E,e,a,v,y,d,p])}function ev(){const e=Zg();return x("div",{className:"flex justify-center items-center min-h-screen",children:B("div",{className:"container flex flex-col justify-center items-center",children:[x("h1",{className:"text-5xl font-extrabold tracking-tight text-slate-900 sm:text-7xl text-center",children:"Whisper Web"}),x("h2",{className:"mt-3 mb-5 px-4 text-center text-1xl font-semibold tracking-tight text-slate-900 sm:text-2xl",children:"ML-powered speech recognition directly in your browser"}),x(zg,{transcriber:e}),x(qg,{transcribedData:e.output})]})})}yi.createRoot(document.getElementById("root")).render(x(D.StrictMode,{children:x(ev,{})}));