function rd(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ya(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wa={exports:{}},$l={},Sa={exports:{}},z={};/** * @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 Cr=Symbol.for("react.element"),ld=Symbol.for("react.portal"),od=Symbol.for("react.fragment"),id=Symbol.for("react.strict_mode"),ud=Symbol.for("react.profiler"),sd=Symbol.for("react.provider"),ad=Symbol.for("react.context"),cd=Symbol.for("react.forward_ref"),fd=Symbol.for("react.suspense"),dd=Symbol.for("react.memo"),pd=Symbol.for("react.lazy"),Wu=Symbol.iterator;function hd(e){return e===null||typeof e!="object"?null:(e=Wu&&e[Wu]||e["@@iterator"],typeof e=="function"?e:null)}var xa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ka=Object.assign,Ea={};function Tn(e,t,n){this.props=e,this.context=t,this.refs=Ea,this.updater=n||xa}Tn.prototype.isReactComponent={};Tn.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")};Tn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ca(){}Ca.prototype=Tn.prototype;function ji(e,t,n){this.props=e,this.context=t,this.refs=Ea,this.updater=n||xa}var Ui=ji.prototype=new Ca;Ui.constructor=ji;ka(Ui,Tn.prototype);Ui.isPureReactComponent=!0;var Vu=Array.isArray,Pa=Object.prototype.hasOwnProperty,$i={current:null},_a={key:!0,ref:!0,__self:!0,__source:!0};function Ra(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)Pa.call(t,r)&&!_a.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,ne=E[X];if(0>>1;Xl(uo,T))jtl(Mr,uo)?(E[X]=Mr,E[jt]=T,X=jt):(E[X]=uo,E[It]=T,X=It);else if(jtl(Mr,T))E[X]=Mr,E[jt]=T,X=jt;else break e}}return N}function l(E,N){var T=E.sortIndex-N.sortIndex;return T!==0?T:E.id-N.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=[],p=1,f=null,m=3,v=!1,g=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(E){for(var N=n(a);N!==null;){if(N.callback===null)r(a);else if(N.startTime<=E)r(a),N.sortIndex=N.expirationTime,t(s,N);else break;N=n(a)}}function y(E){if(w=!1,h(E),!g)if(n(s)!==null)g=!0,K(x);else{var N=n(a);N!==null&&te(y,N.startTime-E)}}function x(E,N){g=!1,w&&(w=!1,d(R),R=-1),v=!0;var T=m;try{for(h(N),f=n(s);f!==null&&(!(f.expirationTime>N)||E&&!U());){var X=f.callback;if(typeof X=="function"){f.callback=null,m=f.priorityLevel;var ne=X(f.expirationTime<=N);N=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(s)&&r(s),h(N)}else r(s);f=n(s)}if(f!==null)var zr=!0;else{var It=n(a);It!==null&&te(y,It.startTime-N),zr=!1}return zr}finally{f=null,m=T,v=!1}}var P=!1,_=null,R=-1,M=5,O=-1;function U(){return!(e.unstable_now()-OE||125X?(E.sortIndex=T,t(a,E),n(s)===null&&E===n(a)&&(w?(d(R),R=-1):w=!0,te(y,T-X))):(E.sortIndex=ne,t(s,E),g||v||(g=!0,K(x))),E},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(E){var N=m;return function(){var T=m;m=N;try{return E.apply(this,arguments)}finally{m=T}}}})(za);Ta.exports=za;var Rd=Ta.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 Ld=C,_e=Rd;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"),Uo=Object.prototype.hasOwnProperty,Nd=/^[: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]*$/,Ku={},Xu={};function Od(e){return Uo.call(Xu,e)?!0:Uo.call(Ku,e)?!1:Nd.test(e)?Xu[e]=!0:(Ku[e]=!0,!1)}function Td(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 zd(e,t,n,r){if(t===null||typeof t>"u"||Td(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 me(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 ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new me(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){ue[e]=new me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ue[e]=new me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ue[e]=new me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ue[e]=new me(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wi=/[\-:]([a-z])/g;function Vi(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(Wi,Vi);ue[t]=new me(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(Wi,Vi);ue[t]=new me(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(Wi,Vi);ue[t]=new me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new me(e,1,!1,e.toLowerCase(),null,!1,!1)});ue.xlinkHref=new me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ue[e]=new me(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hi(e,t,n,r){var l=ue.hasOwnProperty(t)?ue[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{co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qn(e):""}function Md(e){switch(e.tag){case 5:return Qn(e.type);case 16:return Qn("Lazy");case 13:return Qn("Suspense");case 19:return Qn("SuspenseList");case 0:case 2:case 15:return e=fo(e.type,!1),e;case 11:return e=fo(e.type.render,!1),e;case 1:return e=fo(e.type,!0),e;default:return""}}function Vo(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 ln:return"Fragment";case rn:return"Portal";case $o:return"Profiler";case Qi:return"StrictMode";case Bo:return"Suspense";case Wo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fa:return(e.displayName||"Context")+".Consumer";case Da:return(e._context.displayName||"Context")+".Provider";case Ki:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xi:return t=e.displayName||null,t!==null?t:Vo(e.type)||"Memo";case ht:t=e._payload,e=e._init;try{return Vo(e(t))}catch{}}return null}function Dd(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 Vo(t);case 8:return t===Qi?"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 Ot(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ia(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fd(e){var t=Ia(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 Ar(e){e._valueTracker||(e._valueTracker=Fd(e))}function ja(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ia(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(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 Ho(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ot(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 Ua(e,t){t=t.checked,t!=null&&Hi(e,"checked",t,!1)}function Qo(e,t){Ua(e,t);var n=Ot(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")?Ko(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ko(e,t.type,Ot(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zu(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 Ko(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kn=Array.isArray;function vn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gn={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},Ad=["Webkit","ms","Moz","O"];Object.keys(Gn).forEach(function(e){Ad.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gn[t]=Gn[e]})});function Va(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gn.hasOwnProperty(e)&&Gn[e]?(""+t).trim():t+"px"}function Ha(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Va(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Id=V({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 Go(e,t){if(t){if(Id[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 Zo(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 Jo=null;function Yi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qo=null,gn=null,yn=null;function bu(e){if(e=Rr(e)){if(typeof qo!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Ql(t),qo(e.stateNode,e.type,t))}}function Qa(e){gn?yn?yn.push(e):yn=[e]:gn=e}function Ka(){if(gn){var e=gn,t=yn;if(yn=gn=null,bu(e),t)for(e=0;e>>=0,e===0?32:31-(Yd(e)/Gd|0)|0}var jr=64,Ur=4194304;function Xn(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 ml(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=Xn(u):(o&=i,o!==0&&(r=Xn(o)))}else i=n&~l,i!==0?r=Xn(i):o!==0&&(r=Xn(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 Pr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$e(t),e[t]=n}function bd(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=Jn),ss=" ",as=!1;function dc(e,t){switch(e){case"keyup":return Rp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var on=!1;function Np(e,t){switch(e){case"compositionend":return pc(t);case"keypress":return t.which!==32?null:(as=!0,ss);case"textInput":return e=t.data,e===ss&&as?null:e;default:return null}}function Op(e,t){if(on)return e==="compositionend"||!nu&&dc(e,t)?(e=cc(),tl=bi=yt=null,on=!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=ps(n)}}function gc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yc(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function ru(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 Up(e){var t=yc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gc(n.ownerDocument.documentElement,n)){if(r!==null&&ru(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=hs(n,o);var i=hs(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,un=null,li=null,bn=null,oi=!1;function ms(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oi||un==null||un!==fl(r)||(r=un,"selectionStart"in r&&ru(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}),bn&&fr(bn,r)||(bn=r,r=yl(li,"onSelect"),0cn||(e.current=fi[cn],fi[cn]=null,cn--)}function A(e,t){cn++,fi[cn]=e.current,e.current=t}var Tt={},fe=Ft(Tt),ye=Ft(!1),Xt=Tt;function Cn(e,t){var n=e.type.contextTypes;if(!n)return Tt;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 we(e){return e=e.childContextTypes,e!=null}function Sl(){j(ye),j(fe)}function ks(e,t,n){if(fe.current!==Tt)throw Error(k(168));A(fe,t),A(ye,n)}function Rc(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,Dd(e)||"Unknown",l));return V({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tt,Xt=fe.current,A(fe,e),A(ye,ye.current),!0}function Es(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Rc(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,j(ye),j(fe),A(fe,e)):j(ye),A(ye,n)}var et=null,Kl=!1,_o=!1;function Lc(e){et===null?et=[e]:et.push(e)}function Jp(e){Kl=!0,Lc(e)}function At(){if(!_o&&et!==null){_o=!0;var e=0,t=F;try{var n=et;for(F=1;e>=i,l-=i,tt=1<<32-$e(t)+l|n<R?(M=_,_=null):M=_.sibling;var O=m(d,_,h[R],y);if(O===null){_===null&&(_=M);break}e&&_&&O.alternate===null&&t(d,_),c=o(O,c,R),P===null?x=O:P.sibling=O,P=O,_=M}if(R===h.length)return n(d,_),$&&$t(d,R),x;if(_===null){for(;RR?(M=_,_=null):M=_.sibling;var U=m(d,_,O.value,y);if(U===null){_===null&&(_=M);break}e&&_&&U.alternate===null&&t(d,_),c=o(U,c,R),P===null?x=U:P.sibling=U,P=U,_=M}if(O.done)return n(d,_),$&&$t(d,R),x;if(_===null){for(;!O.done;R++,O=h.next())O=f(d,O.value,y),O!==null&&(c=o(O,c,R),P===null?x=O:P.sibling=O,P=O);return $&&$t(d,R),x}for(_=r(d,_);!O.done;R++,O=h.next())O=v(_,d,R,O.value,y),O!==null&&(e&&O.alternate!==null&&_.delete(O.key===null?R:O.key),c=o(O,c,R),P===null?x=O:P.sibling=O,P=O);return e&&_.forEach(function(q){return t(d,q)}),$&&$t(d,R),x}function S(d,c,h,y){if(typeof h=="object"&&h!==null&&h.type===ln&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Fr:e:{for(var x=h.key,P=c;P!==null;){if(P.key===x){if(x=h.type,x===ln){if(P.tag===7){n(d,P.sibling),c=l(P,h.props.children),c.return=d,d=c;break e}}else if(P.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ht&&_s(x)===P.type){n(d,P.sibling),c=l(P,h.props),c.ref=Wn(d,P,h),c.return=d,d=c;break e}n(d,P);break}else t(d,P);P=P.sibling}h.type===ln?(c=Kt(h.props.children,d.mode,y,h.key),c.return=d,d=c):(y=al(h.type,h.key,h.props,null,d.mode,y),y.ref=Wn(d,c,h),y.return=d,d=y)}return i(d);case rn:e:{for(P=h.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(d,c.sibling),c=l(c,h.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=Do(h,d.mode,y),c.return=d,d=c}return i(d);case ht:return P=h._init,S(d,c,P(h._payload),y)}if(Kn(h))return g(d,c,h,y);if(In(h))return w(d,c,h,y);Kr(d,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,h),c.return=d,d=c):(n(d,c),c=Mo(h,d.mode,y),c.return=d,d=c),i(d)):n(d,c)}return S}var _n=zc(!0),Mc=zc(!1),Cl=Ft(null),Pl=null,pn=null,uu=null;function su(){uu=pn=Pl=null}function au(e){var t=Cl.current;j(Cl),e._currentValue=t}function hi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sn(e,t){Pl=e,uu=pn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ge=!0),e.firstContext=null)}function De(e){var t=e._currentValue;if(uu!==e)if(e={context:e,memoizedValue:t,next:null},pn===null){if(Pl===null)throw Error(k(308));pn=e,Pl.dependencies={lanes:0,firstContext:e}}else pn=pn.next=e;return t}var Vt=null;function cu(e){Vt===null?Vt=[e]:Vt.push(e)}function Dc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,cu(t)):(n.next=l.next,l.next=n),t.interleaved=n,it(e,r)}function it(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var mt=!1;function fu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,it(e,n)}return l=r.interleaved,l===null?(t.next=t,cu(r)):(t.next=l.next,l.next=t),r.interleaved=t,it(e,n)}function rl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zi(e,n)}}function Rs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _l(e,t,n,r){var l=e.updateQueue;mt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==i&&(u===null?p.firstBaseUpdate=a:u.next=a,p.lastBaseUpdate=s))}if(o!==null){var f=l.baseState;i=0,p=a=s=null,u=o;do{var m=u.lane,v=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,w=u;switch(m=t,v=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){f=g.call(v,f,m);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,m=typeof g=="function"?g.call(v,f,m):g,m==null)break e;f=V({},f,m);break e;case 2:mt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else v={eventTime:v,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(a=p=v,s=f):p=p.next=v,i|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(p===null&&(s=f),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=p,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Zt|=i,e.lanes=i,e.memoizedState=f}}function Ls(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Lo.transition;Lo.transition={};try{e(!1),t()}finally{F=n,Lo.transition=r}}function qc(){return Fe().memoizedState}function th(e,t,n){var r=Rt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bc(e))ef(t,n);else if(n=Dc(e,t,n,r),n!==null){var l=pe();Be(n,e,r,l),tf(n,t,r)}}function nh(e,t,n){var r=Rt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bc(e))ef(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,We(u,i)){var s=t.interleaved;s===null?(l.next=l,cu(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Dc(e,t,l,r),n!==null&&(l=pe(),Be(n,e,r,l),tf(n,t,r))}}function bc(e){var t=e.alternate;return e===W||t!==null&&t===W}function ef(e,t){er=Ll=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zi(e,n)}}var Nl={readContext:De,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},rh={readContext:De,useCallback:function(e,t){return Ke().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:Os,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ol(4194308,4,Xc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return ol(4,2,e,t)},useMemo:function(e,t){var n=Ke();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ke();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=th.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Ke();return e={current:e},t.memoizedState=e},useState:Ns,useDebugValue:wu,useDeferredValue:function(e){return Ke().memoizedState=e},useTransition:function(){var e=Ns(!1),t=e[0];return e=eh.bind(null,e[1]),Ke().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,l=Ke();if($){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),le===null)throw Error(k(349));Gt&30||Uc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Os(Bc.bind(null,r,o,e),[e]),r.flags|=2048,wr(9,$c.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ke(),t=le.identifierPrefix;if($){var n=nt,r=tt;n=(r&~(1<<32-$e(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gr++,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[Xe]=t,e[hr]=r,df(e,t,!1,!1),t.stateNode=e;e:{switch(i=Zo(n,r),n){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;lNn&&(t.flags|=128,r=!0,Vn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Rl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return ae(t),null}else 2*Y()-o.renderingStartTime>Nn&&n!==1073741824&&(t.flags|=128,r=!0,Vn(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=Y(),t.sibling=null,n=B.current,A(B,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return Pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xe&1073741824&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function fh(e,t){switch(ou(t),t.tag){case 1:return we(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rn(),j(ye),j(fe),hu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pu(t),null;case 13:if(j(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(B),null;case 4:return Rn(),null;case 10:return au(t.type._context),null;case 22:case 23:return Pu(),null;case 24:return null;default:return null}}var Yr=!1,ce=!1,dh=typeof WeakSet=="function"?WeakSet:Set,L=null;function hn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function Ei(e,t,n){try{n()}catch(r){Q(e,t,r)}}var Bs=!1;function ph(e,t){if(ii=vl,e=yc(),ru(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,p=0,f=e,m=null;t:for(;;){for(var v;f!==n||l!==0&&f.nodeType!==3||(u=i+l),f!==o||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)m=f,f=v;for(;;){if(f===e)break t;if(m===n&&++a===l&&(u=i),m===o&&++p===r&&(s=i),(v=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=v}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ui={focusedElem:e,selectionRange:n},vl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,S=g.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ie(t.type,w),S);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(y){Q(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=Bs,Bs=!1,g}function tr(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&&Ei(t,n,o)}l=l.next}while(l!==r)}}function Gl(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 Ci(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 mf(e){var t=e.alternate;t!==null&&(e.alternate=null,mf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xe],delete t[hr],delete t[ci],delete t[Gp],delete t[Zp])),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 vf(e){return e.tag===5||e.tag===3||e.tag===4}function Ws(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vf(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 Pi(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=wl));else if(r!==4&&(e=e.child,e!==null))for(Pi(e,t,n),e=e.sibling;e!==null;)Pi(e,t,n),e=e.sibling}function _i(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(_i(e,t,n),e=e.sibling;e!==null;)_i(e,t,n),e=e.sibling}var oe=null,je=!1;function pt(e,t,n){for(n=n.child;n!==null;)gf(e,t,n),n=n.sibling}function gf(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount=="function")try{Ge.onCommitFiberUnmount(Bl,n)}catch{}switch(n.tag){case 5:ce||hn(n,t);case 6:var r=oe,l=je;oe=null,pt(e,t,n),oe=r,je=l,oe!==null&&(je?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(je?(e=oe,n=n.stateNode,e.nodeType===8?Po(e.parentNode,n):e.nodeType===1&&Po(e,n),ar(e)):Po(oe,n.stateNode));break;case 4:r=oe,l=je,oe=n.stateNode.containerInfo,je=!0,pt(e,t,n),oe=r,je=l;break;case 0:case 11:case 14:case 15:if(!ce&&(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)&&Ei(n,t,i),l=l.next}while(l!==r)}pt(e,t,n);break;case 1:if(!ce&&(hn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Q(n,t,u)}pt(e,t,n);break;case 21:pt(e,t,n);break;case 22:n.mode&1?(ce=(r=ce)||n.memoizedState!==null,pt(e,t,n),ce=r):pt(e,t,n);break;default:pt(e,t,n)}}function Vs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dh),t.forEach(function(r){var l=kh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ae(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mh(r/1960))-r,10e?16:e,wt===null)var r=!1;else{if(e=wt,wt=null,zl=0,D&6)throw Error(k(331));var l=D;for(D|=4,L=e.current;L!==null;){var o=L,i=o.child;if(L.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sY()-Eu?Qt(e,0):ku|=n),Se(e,t)}function Pf(e,t){t===0&&(e.mode&1?(t=Ur,Ur<<=1,!(Ur&130023424)&&(Ur=4194304)):t=1);var n=pe();e=it(e,t),e!==null&&(Pr(e,t,n),Se(e,n))}function xh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pf(e,n)}function kh(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),Pf(e,n)}var _f;_f=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ge=!1,ah(e,t,n);ge=!!(e.flags&131072)}else ge=!1,$&&t.flags&1048576&&Nc(t,El,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;il(e,t),e=t.pendingProps;var l=Cn(t,fe.current);Sn(t,n),l=vu(null,t,r,e,l,n);var o=gu();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,we(r)?(o=!0,xl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,fu(t),l.updater=Yl,t.stateNode=l,l._reactInternals=t,vi(t,r,e,n),t=wi(null,t,r,!0,o,n)):(t.tag=0,$&&o&&lu(t),de(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(il(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ch(r),e=Ie(r,e),l){case 0:t=yi(null,t,r,e,n);break e;case 1:t=js(null,t,r,e,n);break e;case 11:t=As(null,t,r,e,n);break e;case 14:t=Is(null,t,r,Ie(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:Ie(r,l),yi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),js(e,t,r,l,n);case 3:e:{if(af(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Fc(e,t),_l(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=Ln(Error(k(423)),t),t=Us(e,t,r,n,l);break e}else if(r!==l){l=Ln(Error(k(424)),t),t=Us(e,t,r,n,l);break e}else for(Ee=Ct(t.stateNode.containerInfo.firstChild),Ce=t,$=!0,Ue=null,n=Mc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pn(),r===l){t=ut(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return Ac(t),e===null&&pi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,si(r,l)?i=null:o!==null&&si(r,o)&&(t.flags|=32),sf(e,t),de(e,t,i,n),t.child;case 6:return e===null&&pi(t),null;case 13:return cf(e,t,n);case 4:return du(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_n(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),As(e,t,r,l,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(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,A(Cl,r._currentValue),r._currentValue=i,o!==null)if(We(o.value,i)){if(o.children===l.children&&!ye.current){t=ut(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=rt(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var p=a.pending;p===null?s.next=s:(s.next=p.next,p.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),hi(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),hi(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}de(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Sn(t,n),l=De(l),r=r(l),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,l=Ie(r,t.pendingProps),l=Ie(r.type,l),Is(e,t,r,l,n);case 15:return of(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),il(e,t),t.tag=1,we(r)?(e=!0,xl(t)):e=!1,Sn(t,n),nf(t,r,l),vi(t,r,l,n),wi(null,t,r,!0,e,n);case 19:return ff(e,t,n);case 22:return uf(e,t,n)}throw Error(k(156,t.tag))};function Rf(e,t){return ba(e,t)}function Eh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(e,t,n,r){return new Eh(e,t,n,r)}function Ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ch(e){if(typeof e=="function")return Ru(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ki)return 11;if(e===Xi)return 14}return 2}function Lt(e,t){var n=e.alternate;return n===null?(n=ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function al(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ru(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ln:return Kt(n.children,l,o,t);case Qi:i=8,l|=8;break;case $o:return e=ze(12,n,t,l|2),e.elementType=$o,e.lanes=o,e;case Bo:return e=ze(13,n,t,l),e.elementType=Bo,e.lanes=o,e;case Wo:return e=ze(19,n,t,l),e.elementType=Wo,e.lanes=o,e;case Aa:return Jl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Da:i=10;break e;case Fa:i=9;break e;case Ki:i=11;break e;case Xi:i=14;break e;case ht:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=ze(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Kt(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function Jl(e,t,n,r){return e=ze(22,e,r,t),e.elementType=Aa,e.lanes=n,e.stateNode={isHidden:!1},e}function Mo(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function Do(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ph(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=ho(0),this.expirationTimes=ho(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ho(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,l,o,i,u,s){return e=new Ph(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fu(o),e}function _h(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tf)}catch(e){console.error(e)}}Tf(),Oa.exports=Re;var zu=Oa.exports;const Ov=ya(zu);var Js=zu;Qu.createRoot=Js.createRoot,Qu.hydrateRoot=Js.hydrateRoot;/** * @remix-run/router v1.23.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Mu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zh(){return Math.random().toString(36).substr(2,8)}function bs(e,t){return{usr:e.state,key:e.key,idx:t}}function Ti(e,t,n,r){return n===void 0&&(n=null),xr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Dn(t):t,{state:n,key:t&&t.key||r||zh()})}function Fl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Dn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Mh(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u=St.Pop,s=null,a=p();a==null&&(a=0,i.replaceState(xr({},i.state,{idx:a}),""));function p(){return(i.state||{idx:null}).idx}function f(){u=St.Pop;let S=p(),d=S==null?null:S-a;a=S,s&&s({action:u,location:w.location,delta:d})}function m(S,d){u=St.Push;let c=Ti(w.location,S,d);a=p()+1;let h=bs(c,a),y=w.createHref(c);try{i.pushState(h,"",y)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;l.location.assign(y)}o&&s&&s({action:u,location:w.location,delta:1})}function v(S,d){u=St.Replace;let c=Ti(w.location,S,d);a=p();let h=bs(c,a),y=w.createHref(c);i.replaceState(h,"",y),o&&s&&s({action:u,location:w.location,delta:0})}function g(S){let d=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof S=="string"?S:Fl(S);return c=c.replace(/ $/,"%20"),J(d,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,d)}let w={get action(){return u},get location(){return e(l,i)},listen(S){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(qs,f),s=S,()=>{l.removeEventListener(qs,f),s=null}},createHref(S){return t(l,S)},createURL:g,encodeLocation(S){let d=g(S);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:v,go(S){return i.go(S)}};return w}var ea;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ea||(ea={}));function Dh(e,t,n){return n===void 0&&(n="/"),Fh(e,t,n)}function Fh(e,t,n,r){let l=typeof t=="string"?Dn(t):t,o=Du(l.pathname||"/",n);if(o==null)return null;let i=zf(e);Ah(i);let u=null,s=Yh(o);for(let a=0;u==null&&a{let s={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(J(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=Nt([r,s.relativePath]),p=n.concat(s);o.children&&o.children.length>0&&(J(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),zf(o.children,t,p,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Vh(a,o.index),routesMeta:p})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))l(o,i);else for(let s of Mf(o.path))l(o,i,s)}),t}function Mf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Mf(r.join("/")),u=[];return u.push(...i.map(s=>s===""?o:[o,s].join("/"))),l&&u.push(...i),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Ah(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Hh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ih=/^:[\w-]+$/,jh=3,Uh=2,$h=1,Bh=10,Wh=-2,ta=e=>e==="*";function Vh(e,t){let n=e.split("/"),r=n.length;return n.some(ta)&&(r+=Wh),t&&(r+=Uh),n.filter(l=>!ta(l)).reduce((l,o)=>l+(Ih.test(o)?jh:o===""?$h:Bh),r)}function Hh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Qh(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let u=0;u{let{paramName:m,isOptional:v}=p;if(m==="*"){let w=u[f]||"";i=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const g=u[f];return v&&!g?a[m]=void 0:a[m]=(g||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function Xh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Yh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Du(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Gh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zh=e=>Gh.test(e);function Jh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Dn(e):e,o;if(n)if(Zh(n))o=n;else{if(n.includes("//")){let i=n;n=Af(n),Mu(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?o=na(n.substring(1),"/"):o=na(n,t)}else o=t;return{pathname:o,search:em(r),hash:tm(l)}}function na(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Fo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function qh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Df(e,t){let n=qh(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ff(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Dn(e):(l=xr({},e),J(!l.pathname||!l.pathname.includes("?"),Fo("?","pathname","search",l)),J(!l.pathname||!l.pathname.includes("#"),Fo("#","pathname","hash",l)),J(!l.search||!l.search.includes("#"),Fo("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,u;if(i==null)u=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;l.pathname=m.join("/")}u=f>=0?t[f]:"/"}let s=Jh(l,u),a=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||p)&&(s.pathname+="/"),s}const Af=e=>e.replace(/\/\/+/g,"/"),Nt=e=>Af(e.join("/")),bh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),em=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const If=["post","put","patch","delete"];new Set(If);const rm=["get",...If];new Set(rm);/** * React Router v6.30.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function kr(){return kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),C.useCallback(function(a,p){if(p===void 0&&(p={}),!u.current)return;if(typeof a=="number"){r.go(a);return}let f=Ff(a,JSON.parse(i),o,p.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Nt([t,f.pathname])),(p.replace?r.replace:r.push)(f,p.state,p)},[t,r,i,o,e])}const Bf=C.createContext(null);function Tv(){return C.useContext(Bf)}function um(e){let t=C.useContext(ft).outlet;return t&&C.createElement(Bf.Provider,{value:e},t)}function zv(){let{matches:e}=C.useContext(ft),t=e[e.length-1];return t?t.params:{}}function Wf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(tn),{matches:l}=C.useContext(ft),{pathname:o}=Or(),i=JSON.stringify(Df(l,r.v7_relativeSplatPath));return C.useMemo(()=>Ff(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function sm(e,t){return am(e,t)}function am(e,t,n,r){Nr()||J(!1);let{navigator:l}=C.useContext(tn),{matches:o}=C.useContext(ft),i=o[o.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=Or(),p;if(t){var f;let S=typeof t=="string"?Dn(t):t;s==="/"||(f=S.pathname)!=null&&f.startsWith(s)||J(!1),p=S}else p=a;let m=p.pathname||"/",v=m;if(s!=="/"){let S=s.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=Dh(e,{pathname:v}),w=hm(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},u,S.params),pathname:Nt([s,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?s:Nt([s,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,n,r);return t&&w?C.createElement(no.Provider,{value:{location:kr({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:St.Pop}},w):w}function cm(){let e=ym(),t=nm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:l},n):null,null)}const fm=C.createElement(cm,null);class dm extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(ft.Provider,{value:this.props.routeContext},C.createElement(jf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pm(e){let{routeContext:t,match:n,children:r}=e,l=C.useContext(Fu);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(ft.Provider,{value:t},r)}function hm(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let p=i.findIndex(f=>f.route.id&&(u==null?void 0:u[f.route.id])!==void 0);p>=0||J(!1),i=i.slice(0,Math.min(i.length,p+1))}let s=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((p,f,m)=>{let v,g=!1,w=null,S=null;n&&(v=u&&f.route.id?u[f.route.id]:void 0,w=f.route.errorElement||fm,s&&(a<0&&m===0?(Sm("route-fallback"),g=!0,S=null):a===m&&(g=!0,S=f.route.hydrateFallbackElement||null)));let d=t.concat(i.slice(0,m+1)),c=()=>{let h;return v?h=w:g?h=S:f.route.Component?h=C.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=p,C.createElement(pm,{match:f,routeContext:{outlet:p,matches:d,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?C.createElement(dm,{location:n.location,revalidation:n.revalidation,component:w,error:v,children:c(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):c()},null)}var Vf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vf||{}),Hf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Hf||{});function mm(e){let t=C.useContext(Fu);return t||J(!1),t}function vm(e){let t=C.useContext(lm);return t||J(!1),t}function gm(e){let t=C.useContext(ft);return t||J(!1),t}function Qf(e){let t=gm(),n=t.matches[t.matches.length-1];return n.route.id||J(!1),n.route.id}function ym(){var e;let t=C.useContext(jf),n=vm(),r=Qf();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wm(){let{router:e}=mm(Vf.UseNavigateStable),t=Qf(Hf.UseNavigateStable),n=C.useRef(!1);return Uf(()=>{n.current=!0}),C.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,kr({fromRouteId:t},o)))},[e,t])}const ra={};function Sm(e,t,n){ra[e]||(ra[e]=!0)}function xm(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Mv(e){return um(e.context)}function km(e){J(!1)}function Em(e){let{basename:t="/",children:n=null,location:r,navigationType:l=St.Pop,navigator:o,static:i=!1,future:u}=e;Nr()&&J(!1);let s=t.replace(/^\/*/,"/"),a=C.useMemo(()=>({basename:s,navigator:o,static:i,future:kr({v7_relativeSplatPath:!1},u)}),[s,u,o,i]);typeof r=="string"&&(r=Dn(r));let{pathname:p="/",search:f="",hash:m="",state:v=null,key:g="default"}=r,w=C.useMemo(()=>{let S=Du(p,s);return S==null?null:{location:{pathname:S,search:f,hash:m,state:v,key:g},navigationType:l}},[s,p,f,m,v,g,l]);return w==null?null:C.createElement(tn.Provider,{value:a},C.createElement(no.Provider,{children:n,value:w}))}function Dv(e){let{children:t,location:n}=e;return sm(zi(t),n)}new Promise(()=>{});function zi(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,l)=>{if(!C.isValidElement(r))return;let o=[...t,l];if(r.type===C.Fragment){n.push.apply(n,zi(r.props.children,o));return}r.type!==km&&J(!1),!r.props.index||!r.props.children||J(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=zi(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.30.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(l=>[n,l]):[[n,r]])},[]))}function Rm(e,t){let n=Di(e);return t&&t.forEach((r,l)=>{n.has(l)||t.getAll(l).forEach(o=>{n.append(l,o)})}),n}const Lm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Nm="6";try{window.__reactRouterVersion=Nm}catch{}const Om="startTransition",la=Sd[Om];function Fv(e){let{basename:t,children:n,future:r,window:l}=e,o=C.useRef();o.current==null&&(o.current=Th({window:l,v5Compat:!0}));let i=o.current,[u,s]=C.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},p=C.useCallback(f=>{a&&la?la(()=>s(f)):s(f)},[s,a]);return C.useLayoutEffect(()=>i.listen(p),[i,p]),C.useEffect(()=>xm(r),[r]),C.createElement(Em,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}const Tm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Av=C.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:s,to:a,preventScrollReset:p,viewTransition:f}=t,m=Cm(t,Lm),{basename:v}=C.useContext(tn),g,w=!1;if(typeof a=="string"&&zm.test(a)&&(g=a,Tm))try{let h=new URL(window.location.href),y=a.startsWith("//")?new URL(h.protocol+a):new URL(a),x=Du(y.pathname,v);y.origin===h.origin&&x!=null?a=x+y.search+y.hash:w=!0}catch{}let S=om(a,{relative:l}),d=Mm(a,{replace:i,state:u,target:s,preventScrollReset:p,relative:l,viewTransition:f});function c(h){r&&r(h),h.defaultPrevented||d(h)}return C.createElement("a",Mi({},m,{href:g||S,onClick:w||o?r:c,ref:n,target:s}))});var oa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(oa||(oa={}));var ia;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ia||(ia={}));function Mm(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,viewTransition:u}=t===void 0?{}:t,s=$f(),a=Or(),p=Wf(e,{relative:i});return C.useCallback(f=>{if(_m(f,n)){f.preventDefault();let m=r!==void 0?r:Fl(a)===Fl(p);s(e,{replace:m,state:l,preventScrollReset:o,relative:i,viewTransition:u})}},[a,s,p,r,l,n,e,o,i,u])}function Iv(e){let t=C.useRef(Di(e)),n=C.useRef(!1),r=Or(),l=C.useMemo(()=>Rm(r.search,n.current?null:t.current),[r.search]),o=$f(),i=C.useCallback((u,s)=>{const a=Di(typeof u=="function"?u(l):u);n.current=!0,o("?"+a,s)},[o,l]);return[l,i]}const Dm=["top","right","bottom","left"],zt=Math.min,ke=Math.max,Al=Math.round,Jr=Math.floor,Je=e=>({x:e,y:e}),Fm={left:"right",right:"left",bottom:"top",top:"bottom"};function Fi(e,t,n){return ke(e,zt(t,n))}function st(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function Fn(e){return e.split("-")[1]}function Au(e){return e==="x"?"y":"x"}function Iu(e){return e==="y"?"height":"width"}function Ye(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ju(e){return Au(Ye(e))}function Am(e,t,n){n===void 0&&(n=!1);const r=Fn(e),l=ju(e),o=Iu(l);let i=l==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Il(i)),[i,Il(i)]}function Im(e){const t=Il(e);return[Ai(e),t,Ai(t)]}function Ai(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ua=["left","right"],sa=["right","left"],jm=["top","bottom"],Um=["bottom","top"];function $m(e,t,n){switch(e){case"top":case"bottom":return n?t?sa:ua:t?ua:sa;case"left":case"right":return t?jm:Um;default:return[]}}function Bm(e,t,n,r){const l=Fn(e);let o=$m(at(e),n==="start",r);return l&&(o=o.map(i=>i+"-"+l),t&&(o=o.concat(o.map(Ai)))),o}function Il(e){const t=at(e);return Fm[t]+e.slice(t.length)}function Wm(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kf(e){return typeof e!="number"?Wm(e):{top:e,right:e,bottom:e,left:e}}function jl(e){const{x:t,y:n,width:r,height:l}=e;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function aa(e,t,n){let{reference:r,floating:l}=e;const o=Ye(t),i=ju(t),u=Iu(i),s=at(t),a=o==="y",p=r.x+r.width/2-l.width/2,f=r.y+r.height/2-l.height/2,m=r[u]/2-l[u]/2;let v;switch(s){case"top":v={x:p,y:r.y-l.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-l.width,y:f};break;default:v={x:r.x,y:r.y}}switch(Fn(t)){case"start":v[i]-=m*(n&&a?-1:1);break;case"end":v[i]+=m*(n&&a?-1:1);break}return v}async function Vm(e,t){var n;t===void 0&&(t={});const{x:r,y:l,platform:o,rects:i,elements:u,strategy:s}=e,{boundary:a="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=st(t,e),g=Kf(v),S=u[m?f==="floating"?"reference":"floating":f],d=jl(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(S)))==null||n?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:a,rootBoundary:p,strategy:s})),c=f==="floating"?{x:r,y:l,width:i.floating.width,height:i.floating.height}:i.reference,h=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),y=await(o.isElement==null?void 0:o.isElement(h))?await(o.getScale==null?void 0:o.getScale(h))||{x:1,y:1}:{x:1,y:1},x=jl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:c,offsetParent:h,strategy:s}):c);return{top:(d.top-x.top+g.top)/y.y,bottom:(x.bottom-d.bottom+g.bottom)/y.y,left:(d.left-x.left+g.left)/y.x,right:(x.right-d.right+g.right)/y.x}}const Hm=50,Qm=async(e,t,n)=>{const{placement:r="bottom",strategy:l="absolute",middleware:o=[],platform:i}=n,u=i.detectOverflow?i:{...i,detectOverflow:Vm},s=await(i.isRTL==null?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:l}),{x:p,y:f}=aa(a,r,s),m=r,v=0;const g={};for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:l,rects:o,platform:i,elements:u,middlewareData:s}=t,{element:a,padding:p=0}=st(e,t)||{};if(a==null)return{};const f=Kf(p),m={x:n,y:r},v=ju(l),g=Iu(v),w=await i.getDimensions(a),S=v==="y",d=S?"top":"left",c=S?"bottom":"right",h=S?"clientHeight":"clientWidth",y=o.reference[g]+o.reference[v]-m[v]-o.floating[g],x=m[v]-o.reference[v],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a));let _=P?P[h]:0;(!_||!await(i.isElement==null?void 0:i.isElement(P)))&&(_=u.floating[h]||o.floating[g]);const R=y/2-x/2,M=_/2-w[g]/2-1,O=zt(f[d],M),U=zt(f[c],M),q=O,G=_-w[g]-U,H=_/2-w[g]/2+R,Ne=Fi(q,H,G),K=!s.arrow&&Fn(l)!=null&&H!==Ne&&o.reference[g]/2-(HH<=0)){var U,q;const H=(((U=o.flip)==null?void 0:U.index)||0)+1,Ne=_[H];if(Ne&&(!(f==="alignment"?c!==Ye(Ne):!1)||O.every(E=>Ye(E.placement)===c?E.overflows[0]>0:!0)))return{data:{index:H,overflows:O},reset:{placement:Ne}};let K=(q=O.filter(te=>te.overflows[0]<=0).sort((te,E)=>te.overflows[1]-E.overflows[1])[0])==null?void 0:q.placement;if(!K)switch(v){case"bestFit":{var G;const te=(G=O.filter(E=>{if(P){const N=Ye(E.placement);return N===c||N==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(N=>N>0).reduce((N,T)=>N+T,0)]).sort((E,N)=>E[1]-N[1])[0])==null?void 0:G[0];te&&(K=te);break}case"initialPlacement":K=u;break}if(l!==K)return{reset:{placement:K}}}return{}}}};function ca(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fa(e){return Dm.some(t=>e[t]>=0)}const Ym=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:l="referenceHidden",...o}=st(e,t);switch(l){case"referenceHidden":{const i=await r.detectOverflow(t,{...o,elementContext:"reference"}),u=ca(i,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:fa(u)}}}case"escaped":{const i=await r.detectOverflow(t,{...o,altBoundary:!0}),u=ca(i,n.floating);return{data:{escapedOffsets:u,escaped:fa(u)}}}default:return{}}}}},Xf=new Set(["left","top"]);async function Gm(e,t){const{placement:n,platform:r,elements:l}=e,o=await(r.isRTL==null?void 0:r.isRTL(l.floating)),i=at(n),u=Fn(n),s=Ye(n)==="y",a=Xf.has(i)?-1:1,p=o&&s?-1:1,f=st(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&typeof g=="number"&&(v=u==="end"?g*-1:g),s?{x:v*p,y:m*a}:{x:m*a,y:v*p}}const Zm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:l,y:o,placement:i,middlewareData:u}=t,s=await Gm(t,e);return i===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:l+s.x,y:o+s.y,data:{...s,placement:i}}}}},Jm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:l,platform:o}=t,{mainAxis:i=!0,crossAxis:u=!1,limiter:s={fn:d=>{let{x:c,y:h}=d;return{x:c,y:h}}},...a}=st(e,t),p={x:n,y:r},f=await o.detectOverflow(t,a),m=Ye(at(l)),v=Au(m);let g=p[v],w=p[m];if(i){const d=v==="y"?"top":"left",c=v==="y"?"bottom":"right",h=g+f[d],y=g-f[c];g=Fi(h,g,y)}if(u){const d=m==="y"?"top":"left",c=m==="y"?"bottom":"right",h=w+f[d],y=w-f[c];w=Fi(h,w,y)}const S=s.fn({...t,[v]:g,[m]:w});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[v]:i,[m]:u}}}}}},qm=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:l,rects:o,middlewareData:i}=t,{offset:u=0,mainAxis:s=!0,crossAxis:a=!0}=st(e,t),p={x:n,y:r},f=Ye(l),m=Au(f);let v=p[m],g=p[f];const w=st(u,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(s){const h=m==="y"?"height":"width",y=o.reference[m]-o.floating[h]+S.mainAxis,x=o.reference[m]+o.reference[h]-S.mainAxis;vx&&(v=x)}if(a){var d,c;const h=m==="y"?"width":"height",y=Xf.has(at(l)),x=o.reference[f]-o.floating[h]+(y&&((d=i.offset)==null?void 0:d[f])||0)+(y?0:S.crossAxis),P=o.reference[f]+o.reference[h]+(y?0:((c=i.offset)==null?void 0:c[f])||0)-(y?S.crossAxis:0);gP&&(g=P)}return{[m]:v,[f]:g}}}},bm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:l,rects:o,platform:i,elements:u}=t,{apply:s=()=>{},...a}=st(e,t),p=await i.detectOverflow(t,a),f=at(l),m=Fn(l),v=Ye(l)==="y",{width:g,height:w}=o.floating;let S,d;f==="top"||f==="bottom"?(S=f,d=m===(await(i.isRTL==null?void 0:i.isRTL(u.floating))?"start":"end")?"left":"right"):(d=f,S=m==="end"?"top":"bottom");const c=w-p.top-p.bottom,h=g-p.left-p.right,y=zt(w-p[S],c),x=zt(g-p[d],h),P=!t.middlewareData.shift;let _=y,R=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=h),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=c),P&&!m){const O=ke(p.left,0),U=ke(p.right,0),q=ke(p.top,0),G=ke(p.bottom,0);v?R=g-2*(O!==0||U!==0?O+U:ke(p.left,p.right)):_=w-2*(q!==0||G!==0?q+G:ke(p.top,p.bottom))}await s({...t,availableWidth:R,availableHeight:_});const M=await i.getDimensions(u.floating);return g!==M.width||w!==M.height?{reset:{rects:!0}}:{}}}};function ro(){return typeof window<"u"}function An(e){return Yf(e)?(e.nodeName||"").toLowerCase():"#document"}function Pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qe(e){var t;return(t=(Yf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yf(e){return ro()?e instanceof Node||e instanceof Pe(e).Node:!1}function Ve(e){return ro()?e instanceof Element||e instanceof Pe(e).Element:!1}function dt(e){return ro()?e instanceof HTMLElement||e instanceof Pe(e).HTMLElement:!1}function da(e){return!ro()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pe(e).ShadowRoot}function Tr(e){const{overflow:t,overflowX:n,overflowY:r,display:l}=He(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&l!=="inline"&&l!=="contents"}function ev(e){return/^(table|td|th)$/.test(An(e))}function lo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const tv=/transform|translate|scale|rotate|perspective|filter/,nv=/paint|layout|strict|content/,Ut=e=>!!e&&e!=="none";let Ao;function Uu(e){const t=Ve(e)?He(e):e;return Ut(t.transform)||Ut(t.translate)||Ut(t.scale)||Ut(t.rotate)||Ut(t.perspective)||!$u()&&(Ut(t.backdropFilter)||Ut(t.filter))||tv.test(t.willChange||"")||nv.test(t.contain||"")}function rv(e){let t=Mt(e);for(;dt(t)&&!On(t);){if(Uu(t))return t;if(lo(t))return null;t=Mt(t)}return null}function $u(){return Ao==null&&(Ao=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ao}function On(e){return/^(html|body|#document)$/.test(An(e))}function He(e){return Pe(e).getComputedStyle(e)}function oo(e){return Ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mt(e){if(An(e)==="html")return e;const t=e.assignedSlot||e.parentNode||da(e)&&e.host||qe(e);return da(t)?t.host:t}function Gf(e){const t=Mt(e);return On(t)?e.ownerDocument?e.ownerDocument.body:e.body:dt(t)&&Tr(t)?t:Gf(t)}function Er(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=Gf(e),o=l===((r=e.ownerDocument)==null?void 0:r.body),i=Pe(l);if(o){const u=Ii(i);return t.concat(i,i.visualViewport||[],Tr(l)?l:[],u&&n?Er(u):[])}else return t.concat(l,Er(l,[],n))}function Ii(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zf(e){const t=He(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const l=dt(e),o=l?e.offsetWidth:n,i=l?e.offsetHeight:r,u=Al(n)!==o||Al(r)!==i;return u&&(n=o,r=i),{width:n,height:r,$:u}}function Bu(e){return Ve(e)?e:e.contextElement}function kn(e){const t=Bu(e);if(!dt(t))return Je(1);const n=t.getBoundingClientRect(),{width:r,height:l,$:o}=Zf(t);let i=(o?Al(n.width):n.width)/r,u=(o?Al(n.height):n.height)/l;return(!i||!Number.isFinite(i))&&(i=1),(!u||!Number.isFinite(u))&&(u=1),{x:i,y:u}}const lv=Je(0);function Jf(e){const t=Pe(e);return!$u()||!t.visualViewport?lv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ov(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pe(e)?!1:t}function qt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),o=Bu(e);let i=Je(1);t&&(r?Ve(r)&&(i=kn(r)):i=kn(e));const u=ov(o,n,r)?Jf(o):Je(0);let s=(l.left+u.x)/i.x,a=(l.top+u.y)/i.y,p=l.width/i.x,f=l.height/i.y;if(o){const m=Pe(o),v=r&&Ve(r)?Pe(r):r;let g=m,w=Ii(g);for(;w&&r&&v!==g;){const S=kn(w),d=w.getBoundingClientRect(),c=He(w),h=d.left+(w.clientLeft+parseFloat(c.paddingLeft))*S.x,y=d.top+(w.clientTop+parseFloat(c.paddingTop))*S.y;s*=S.x,a*=S.y,p*=S.x,f*=S.y,s+=h,a+=y,g=Pe(w),w=Ii(g)}}return jl({width:p,height:f,x:s,y:a})}function io(e,t){const n=oo(e).scrollLeft;return t?t.left+n:qt(qe(e)).left+n}function qf(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-io(e,n),l=n.top+t.scrollTop;return{x:r,y:l}}function iv(e){let{elements:t,rect:n,offsetParent:r,strategy:l}=e;const o=l==="fixed",i=qe(r),u=t?lo(t.floating):!1;if(r===i||u&&o)return n;let s={scrollLeft:0,scrollTop:0},a=Je(1);const p=Je(0),f=dt(r);if((f||!f&&!o)&&((An(r)!=="body"||Tr(i))&&(s=oo(r)),f)){const v=qt(r);a=kn(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const m=i&&!f&&!o?qf(i,s):Je(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+p.x+m.x,y:n.y*a.y-s.scrollTop*a.y+p.y+m.y}}function uv(e){return Array.from(e.getClientRects())}function sv(e){const t=qe(e),n=oo(e),r=e.ownerDocument.body,l=ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+io(e);const u=-n.scrollTop;return He(r).direction==="rtl"&&(i+=ke(t.clientWidth,r.clientWidth)-l),{width:l,height:o,x:i,y:u}}const pa=25;function av(e,t){const n=Pe(e),r=qe(e),l=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,u=0,s=0;if(l){o=l.width,i=l.height;const p=$u();(!p||p&&t==="fixed")&&(u=l.offsetLeft,s=l.offsetTop)}const a=io(r);if(a<=0){const p=r.ownerDocument,f=p.body,m=getComputedStyle(f),v=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-v);g<=pa&&(o-=g)}else a<=pa&&(o+=a);return{width:o,height:i,x:u,y:s}}function cv(e,t){const n=qt(e,!0,t==="fixed"),r=n.top+e.clientTop,l=n.left+e.clientLeft,o=dt(e)?kn(e):Je(1),i=e.clientWidth*o.x,u=e.clientHeight*o.y,s=l*o.x,a=r*o.y;return{width:i,height:u,x:s,y:a}}function ha(e,t,n){let r;if(t==="viewport")r=av(e,n);else if(t==="document")r=sv(qe(e));else if(Ve(t))r=cv(t,n);else{const l=Jf(e);r={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return jl(r)}function bf(e,t){const n=Mt(e);return n===t||!Ve(n)||On(n)?!1:He(n).position==="fixed"||bf(n,t)}function fv(e,t){const n=t.get(e);if(n)return n;let r=Er(e,[],!1).filter(u=>Ve(u)&&An(u)!=="body"),l=null;const o=He(e).position==="fixed";let i=o?Mt(e):e;for(;Ve(i)&&!On(i);){const u=He(i),s=Uu(i);!s&&u.position==="fixed"&&(l=null),(o?!s&&!l:!s&&u.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||Tr(i)&&!s&&bf(e,i))?r=r.filter(p=>p!==i):l=u,i=Mt(i)}return t.set(e,r),r}function dv(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e;const i=[...n==="clippingAncestors"?lo(t)?[]:fv(t,this._c):[].concat(n),r],u=ha(t,i[0],l);let s=u.top,a=u.right,p=u.bottom,f=u.left;for(let m=1;m{i(!1,1e-7)},1e3)}_===1&&!td(a,e.getBoundingClientRect())&&i(),y=!1}try{n=new IntersectionObserver(x,{...h,root:l.ownerDocument})}catch{n=new IntersectionObserver(x,h)}n.observe(e)}return i(!0),o}function jv(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,a=Bu(e),p=l||o?[...a?Er(a):[],...t?Er(t):[]]:[];p.forEach(d=>{l&&d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});const f=a&&u?yv(a,n):null;let m=-1,v=null;i&&(v=new ResizeObserver(d=>{let[c]=d;c&&c.target===a&&v&&t&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var h;(h=v)==null||h.observe(t)})),n()}),a&&!s&&v.observe(a),t&&v.observe(t));let g,w=s?qt(e):null;s&&S();function S(){const d=qt(e);w&&!td(w,d)&&n(),w=d,g=requestAnimationFrame(S)}return n(),()=>{var d;p.forEach(c=>{l&&c.removeEventListener("scroll",n),o&&c.removeEventListener("resize",n)}),f==null||f(),(d=v)==null||d.disconnect(),v=null,s&&cancelAnimationFrame(g)}}const wv=Zm,Sv=Jm,xv=Xm,kv=bm,Ev=Ym,va=Km,Cv=qm,Pv=(e,t,n)=>{const r=new Map,l={platform:gv,...n},o={...l.platform,_c:r};return Qm(e,t,{...l,platform:o})};var _v=typeof document<"u",Rv=function(){},cl=_v?C.useLayoutEffect:Rv;function Ul(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,l;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ul(e[r],t[r]))return!1;return!0}if(l=Object.keys(e),n=l.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,l[r]))return!1;for(r=n;r--!==0;){const o=l[r];if(!(o==="_owner"&&e.$$typeof)&&!Ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function nd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ga(e,t){const n=nd(e);return Math.round(t*n)/n}function jo(e){const t=C.useRef(e);return cl(()=>{t.current=e}),t}function Uv(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:o,floating:i}={},transform:u=!0,whileElementsMounted:s,open:a}=e,[p,f]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=C.useState(r);Ul(m,r)||v(r);const[g,w]=C.useState(null),[S,d]=C.useState(null),c=C.useCallback(E=>{E!==P.current&&(P.current=E,w(E))},[]),h=C.useCallback(E=>{E!==_.current&&(_.current=E,d(E))},[]),y=o||g,x=i||S,P=C.useRef(null),_=C.useRef(null),R=C.useRef(p),M=s!=null,O=jo(s),U=jo(l),q=jo(a),G=C.useCallback(()=>{if(!P.current||!_.current)return;const E={placement:t,strategy:n,middleware:m};U.current&&(E.platform=U.current),Pv(P.current,_.current,E).then(N=>{const T={...N,isPositioned:q.current!==!1};H.current&&!Ul(R.current,T)&&(R.current=T,zu.flushSync(()=>{f(T)}))})},[m,t,n,U,q]);cl(()=>{a===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(E=>({...E,isPositioned:!1})))},[a]);const H=C.useRef(!1);cl(()=>(H.current=!0,()=>{H.current=!1}),[]),cl(()=>{if(y&&(P.current=y),x&&(_.current=x),y&&x){if(O.current)return O.current(y,x,G);G()}},[y,x,G,O,M]);const Ne=C.useMemo(()=>({reference:P,floating:_,setReference:c,setFloating:h}),[c,h]),K=C.useMemo(()=>({reference:y,floating:x}),[y,x]),te=C.useMemo(()=>{const E={position:n,left:0,top:0};if(!K.floating)return E;const N=ga(K.floating,p.x),T=ga(K.floating,p.y);return u?{...E,transform:"translate("+N+"px, "+T+"px)",...nd(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:T}},[n,u,K.floating,p.x,p.y]);return C.useMemo(()=>({...p,update:G,refs:Ne,elements:K,floatingStyles:te}),[p,G,Ne,K,te])}const Lv=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:l}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?va({element:r.current,padding:l}).fn(n):{}:r?va({element:r,padding:l}).fn(n):{}}}},$v=(e,t)=>{const n=wv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bv=(e,t)=>{const n=Sv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wv=(e,t)=>({fn:Cv(e).fn,options:[e,t]}),Vv=(e,t)=>{const n=xv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hv=(e,t)=>{const n=kv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qv=(e,t)=>{const n=Ev(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kv=(e,t)=>{const n=Lv(e);return{name:n.name,fn:n.fn,options:[e,t]}};export{Fv as B,Av as L,Mv as O,Sd as R,zu as a,Hv as b,Kv as c,jv as d,$f as e,Vv as f,Or as g,Qv as h,Iv as i,Nv as j,wd as k,Wv as l,Ov as m,Dv as n,$v as o,km as p,Qu as q,C as r,Bv as s,Tv as t,Uv as u,zv as v};