P||125V?(P.sortIndex=F,t(a,P),n(s)===null&&P===n(a)&&(w?(p(S),S=-1):w=!0,D(E,F-V))):(P.sortIndex=Y,t(s,P),g||v||(g=!0,A(R))),P},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(P){var I=h;return function(){var F=h;h=I;try{return P.apply(this,arguments)}finally{h=F}}}})(uf);lf.exports=uf;var Ym=lf.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 sf=c,Ke=Ym;function j(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"),$i=Object.prototype.hasOwnProperty,Xm=/^[: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]*$/,ra={},oa={};function Zm(e){return $i.call(oa,e)?!0:$i.call(ra,e)?!1:Xm.test(e)?oa[e]=!0:(ra[e]=!0,!1)}function qm(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 Jm(e,t,n,r){if(t===null||typeof t>"u"||qm(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 Le(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Le(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){Ce[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ku=/[\-:]([a-z])/g;function Gu(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(Ku,Gu);Ce[t]=new Le(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(Ku,Gu);Ce[t]=new Le(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(Ku,Gu);Ce[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qu(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[t]:null;(o!==null?o.type!==0:r||!(2u||o[i]!==l[u]){var s=`
+`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{ui=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pr(e):""}function eh(e){switch(e.tag){case 5:return Pr(e.type);case 16:return Pr("Lazy");case 13:return Pr("Suspense");case 19:return Pr("SuspenseList");case 0:case 2:case 15:return e=si(e.type,!1),e;case 11:return e=si(e.type.render,!1),e;case 1:return e=si(e.type,!0),e;default:return""}}function Ui(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 Mn:return"Fragment";case Nn:return"Portal";case Bi:return"Profiler";case Yu:return"StrictMode";case bi:return"Suspense";case Vi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ff:return(e.displayName||"Context")+".Consumer";case cf:return(e._context.displayName||"Context")+".Provider";case Xu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zu:return t=e.displayName||null,t!==null?t:Ui(e.type)||"Memo";case Dt:t=e._payload,e=e._init;try{return Ui(e(t))}catch{}}return null}function th(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 Ui(t);case 8:return t===Yu?"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 Xt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nh(e){var t=pf(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 o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.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 So(e){e._valueTracker||(e._valueTracker=nh(e))}function mf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function nl(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 Hi(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ia(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xt(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 hf(e,t){t=t.checked,t!=null&&Qu(e,"checked",t,!1)}function Wi(e,t){hf(e,t);var n=Xt(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")?Ki(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ki(e,t.type,Xt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ua(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 Ki(e,t,n){(t!=="number"||nl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Tr=Array.isArray;function Un(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=xo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ur(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nr={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},rh=["Webkit","ms","Moz","O"];Object.keys(Nr).forEach(function(e){rh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nr[t]=Nr[e]})});function wf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nr.hasOwnProperty(e)&&Nr[e]?(""+t).trim():t+"px"}function Ef(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=wf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var oh=le({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 Yi(e,t){if(t){if(oh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Xi(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 Zi=null;function qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qi=null,Hn=null,Wn=null;function ca(e){if(e=po(e)){if(typeof qi!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Kl(t),qi(e.stateNode,e.type,t))}}function Sf(e){Hn?Wn?Wn.push(e):Wn=[e]:Hn=e}function xf(){if(Hn){var e=Hn,t=Wn;if(Wn=Hn=null,ca(e),t)for(e=0;e>>=0,e===0?32:31-(hh(e)/vh|0)|0}var ko=64,Co=4194304;function _r(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 il(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~o;u!==0?r=_r(u):(l&=i,l!==0&&(r=_r(l)))}else i=n&~o,i!==0?r=_r(i):l!==0&&(r=_r(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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 co(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-at(t),e[t]=n}function Eh(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=Ir),wa=" ",Ea=!1;function Vf(e,t){switch(e){case"keyup":return Qh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var In=!1;function Xh(e,t){switch(e){case"compositionend":return Uf(t);case"keypress":return t.which!==32?null:(Ea=!0,wa);case"textInput":return e=t.data,e===wa&&Ea?null:e;default:return null}}function Zh(e,t){if(In)return e==="compositionend"||!is&&Vf(e,t)?(e=Bf(),Uo=rs=$t=null,In=!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=Ca(n)}}function Gf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qf(){for(var e=window,t=nl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nl(e.document)}return t}function us(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 iv(e){var t=Qf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Gf(n.ownerDocument.documentElement,n)){if(r!==null&&us(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Ra(n,l);var i=Ra(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>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,Ln=null,ou=null,zr=null,lu=!1;function Pa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lu||Ln==null||Ln!==nl(r)||(r=Ln,"selectionStart"in r&&us(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}),zr&&Yr(zr,r)||(zr=r,r=al(ou,"onSelect"),0An||(e.current=fu[An],fu[An]=null,An--)}function q(e,t){An++,fu[An]=e.current,e.current=t}var Zt={},Oe=nn(Zt),Ae=nn(!1),gn=Zt;function Jn(e,t){var n=e.type.contextTypes;if(!n)return Zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Fe(e){return e=e.childContextTypes,e!=null}function fl(){ee(Ae),ee(Oe)}function La(e,t,n){if(Oe.current!==Zt)throw Error(j(168));q(Oe,t),q(Ae,n)}function rd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,th(e)||"Unknown",o));return le({},n,r)}function dl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,gn=Oe.current,q(Oe,e),q(Ae,Ae.current),!0}function za(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=rd(e,t,gn),r.__reactInternalMemoizedMergedChildContext=e,ee(Ae),ee(Oe),q(Oe,e)):ee(Ae),q(Ae,n)}var Et=null,Gl=!1,xi=!1;function od(e){Et===null?Et=[e]:Et.push(e)}function yv(e){Gl=!0,od(e)}function rn(){if(!xi&&Et!==null){xi=!0;var e=0,t=X;try{var n=Et;for(X=1;e>=i,o-=i,kt=1<<32-at(t)+o|n<S?(L=O,O=null):L=O.sibling;var k=h(p,O,y[S],E);if(k===null){O===null&&(O=L);break}e&&O&&k.alternate===null&&t(p,O),m=l(k,m,S),_===null?R=k:_.sibling=k,_=k,O=L}if(S===y.length)return n(p,O),te&&un(p,S),R;if(O===null){for(;SS?(L=O,O=null):L=O.sibling;var z=h(p,O,k.value,E);if(z===null){O===null&&(O=L);break}e&&O&&z.alternate===null&&t(p,O),m=l(z,m,S),_===null?R=z:_.sibling=z,_=z,O=L}if(k.done)return n(p,O),te&&un(p,S),R;if(O===null){for(;!k.done;S++,k=y.next())k=f(p,k.value,E),k!==null&&(m=l(k,m,S),_===null?R=k:_.sibling=k,_=k);return te&&un(p,S),R}for(O=r(p,O);!k.done;S++,k=y.next())k=v(O,p,S,k.value,E),k!==null&&(e&&k.alternate!==null&&O.delete(k.key===null?S:k.key),m=l(k,m,S),_===null?R=k:_.sibling=k,_=k);return e&&O.forEach(function(T){return t(p,T)}),te&&un(p,S),R}function C(p,m,y,E){if(typeof y=="object"&&y!==null&&y.type===Mn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Eo:e:{for(var R=y.key,_=m;_!==null;){if(_.key===R){if(R=y.type,R===Mn){if(_.tag===7){n(p,_.sibling),m=o(_,y.props.children),m.return=p,p=m;break e}}else if(_.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Dt&&ba(R)===_.type){n(p,_.sibling),m=o(_,y.props),m.ref=Sr(p,_,y),m.return=p,p=m;break e}n(p,_);break}else t(p,_);_=_.sibling}y.type===Mn?(m=vn(y.props.children,p.mode,E,y.key),m.return=p,p=m):(E=Zo(y.type,y.key,y.props,null,p.mode,E),E.ref=Sr(p,m,y),E.return=p,p=E)}return i(p);case Nn:e:{for(_=y.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(p,m.sibling),m=o(m,y.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=Ni(y,p.mode,E),m.return=p,p=m}return i(p);case Dt:return _=y._init,C(p,m,_(y._payload),E)}if(Tr(y))return g(p,m,y,E);if(vr(y))return w(p,m,y,E);Mo(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(p,m.sibling),m=o(m,y),m.return=p,p=m):(n(p,m),m=Oi(y,p.mode,E),m.return=p,p=m),i(p)):n(p,m)}return C}var tr=dd(!0),pd=dd(!1),mo={},vt=nn(mo),Jr=nn(mo),eo=nn(mo);function pn(e){if(e===mo)throw Error(j(174));return e}function vs(e,t){switch(q(eo,t),q(Jr,e),q(vt,mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qi(t,e)}ee(vt),q(vt,t)}function nr(){ee(vt),ee(Jr),ee(eo)}function md(e){pn(eo.current);var t=pn(vt.current),n=Qi(t,e.type);t!==n&&(q(Jr,e),q(vt,n))}function gs(e){Jr.current===e&&(ee(vt),ee(Jr))}var re=nn(0);function yl(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 ki=[];function ys(){for(var e=0;en?n:4,e(!0);var r=Ci.transition;Ci.transition={};try{e(!1),t()}finally{X=n,Ci.transition=r}}function Nd(){return tt().memoizedState}function xv(e,t,n){var r=Gt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Md(e))Id(t,n);else if(n=sd(e,t,n,r),n!==null){var o=Me();ct(n,e,r,o),Ld(n,t,r)}}function kv(e,t,n){var r=Gt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Md(e))Id(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,u=l(i,n);if(o.hasEagerState=!0,o.eagerState=u,ft(u,i)){var s=t.interleaved;s===null?(o.next=o,ms(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=sd(e,t,o,r),n!==null&&(o=Me(),ct(n,e,r,o),Ld(n,t,r))}}function Md(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Id(e,t){Dr=wl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ld(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,es(e,n)}}var El={readContext:et,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},Cv={readContext:et,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:Ua,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Go(4194308,4,Rd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Go(4194308,4,e,t)},useInsertionEffect:function(e,t){return Go(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();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=xv.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:Va,useDebugValue:ks,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=Va(!1),t=e[0];return e=Sv.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,o=pt();if(te){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),ye===null)throw Error(j(349));wn&30||gd(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Ua(wd.bind(null,r,l,e),[e]),r.flags|=2048,ro(9,yd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=pt(),t=ye.identifierPrefix;if(te){var n=Ct,r=kt;n=(r&~(1<<32-at(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=to++,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[mt]=t,e[qr]=r,Vd(e,t,!1,!1),t.stateNode=e;e:{switch(i=Xi(n,r),n){case"dialog":J("cancel",e),J("close",e),o=r;break;case"iframe":case"object":case"embed":J("load",e),o=r;break;case"video":case"audio":for(o=0;oor&&(t.flags|=128,r=!0,xr(l,!1),t.lanes=4194304)}else{if(!r)if(e=yl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!te)return Pe(t),null}else 2*ue()-l.renderingStartTime>or&&n!==1073741824&&(t.flags|=128,r=!0,xr(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ue(),t.sibling=null,n=re.current,q(re,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return Os(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function Iv(e,t){switch(as(t),t.tag){case 1:return Fe(t.type)&&fl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nr(),ee(Ae),ee(Oe),ys(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gs(t),null;case 13:if(ee(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));er()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(re),null;case 4:return nr(),null;case 10:return ps(t.type._context),null;case 22:case 23:return Os(),null;case 24:return null;default:return null}}var Lo=!1,Te=!1,Lv=typeof WeakSet=="function"?WeakSet:Set,$=null;function Bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ie(e,t,r)}else n.current=null}function ku(e,t,n){try{n()}catch(r){ie(e,t,r)}}var qa=!1;function zv(e,t){if(iu=ul,e=Qf(),us(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 o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,d=0,f=e,h=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(u=i+o),f!==l||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)h=f,f=v;for(;;){if(f===e)break t;if(h===n&&++a===o&&(u=i),h===l&&++d===r&&(s=i),(v=f.nextSibling)!==null)break;f=h,h=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(uu={focusedElem:e,selectionRange:n},ul=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;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,C=g.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:lt(t.type,w),C);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(E){ie(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return g=qa,qa=!1,g}function Ar(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&ku(t,n,l)}o=o.next}while(o!==r)}}function Xl(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 Cu(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 Wd(e){var t=e.alternate;t!==null&&(e.alternate=null,Wd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[qr],delete t[cu],delete t[vv],delete t[gv])),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 Kd(e){return e.tag===5||e.tag===3||e.tag===4}function Ja(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kd(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 Ru(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=cl));else if(r!==4&&(e=e.child,e!==null))for(Ru(e,t,n),e=e.sibling;e!==null;)Ru(e,t,n),e=e.sibling}function Pu(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(Pu(e,t,n),e=e.sibling;e!==null;)Pu(e,t,n),e=e.sibling}var Ee=null,it=!1;function zt(e,t,n){for(n=n.child;n!==null;)Gd(e,t,n),n=n.sibling}function Gd(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Vl,n)}catch{}switch(n.tag){case 5:Te||Bn(n,t);case 6:var r=Ee,o=it;Ee=null,zt(e,t,n),Ee=r,it=o,Ee!==null&&(it?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(it?(e=Ee,n=n.stateNode,e.nodeType===8?Si(e.parentNode,n):e.nodeType===1&&Si(e,n),Gr(e)):Si(Ee,n.stateNode));break;case 4:r=Ee,o=it,Ee=n.stateNode.containerInfo,it=!0,zt(e,t,n),Ee=r,it=o;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&ku(n,t,i),o=o.next}while(o!==r)}zt(e,t,n);break;case 1:if(!Te&&(Bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){ie(n,t,u)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,zt(e,t,n),Te=r):zt(e,t,n);break;default:zt(e,t,n)}}function ec(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lv),t.forEach(function(r){var o=Uv.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Av(r/1960))-r,10e?16:e,Bt===null)var r=!1;else{if(e=Bt,Bt=null,kl=0,G&6)throw Error(j(331));var o=G;for(G|=4,$=e.current;$!==null;){var l=$,i=l.child;if($.flags&16){var u=l.deletions;if(u!==null){for(var s=0;sue()-Ts?hn(e,0):Ps|=n),je(e,t)}function tp(e,t){t===0&&(e.mode&1?(t=Co,Co<<=1,!(Co&130023424)&&(Co=4194304)):t=1);var n=Me();e=_t(e,t),e!==null&&(co(e,t,n),je(e,n))}function Vv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tp(e,n)}function Uv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),tp(e,n)}var np;np=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)De=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return De=!1,Nv(e,t,n);De=!!(e.flags&131072)}else De=!1,te&&t.flags&1048576&&ld(t,ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qo(e,t),e=t.pendingProps;var o=Jn(t,Oe.current);Gn(t,n),o=Es(null,t,r,e,o,n);var l=Ss();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(l=!0,dl(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hs(t),o.updater=Ql,t.stateNode=o,o._reactInternals=t,vu(t,r,e,n),t=wu(null,t,r,!0,l,n)):(t.tag=0,te&&l&&ss(t),Ne(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Wv(r),e=lt(r,e),o){case 0:t=yu(null,t,r,e,n);break e;case 1:t=Ya(null,t,r,e,n);break e;case 11:t=Ga(null,t,r,e,n);break e;case 14:t=Qa(null,t,r,lt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),yu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),Ya(e,t,r,o,n);case 3:e:{if($d(t),e===null)throw Error(j(387));r=t.pendingProps,l=t.memoizedState,o=l.element,ad(e,t),gl(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=rr(Error(j(423)),t),t=Xa(e,t,r,n,o);break e}else if(r!==o){o=rr(Error(j(424)),t),t=Xa(e,t,r,n,o);break e}else for(He=Ht(t.stateNode.containerInfo.firstChild),We=t,te=!0,ut=null,n=pd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(er(),r===o){t=Ot(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return md(t),e===null&&pu(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,su(r,o)?i=null:l!==null&&su(r,l)&&(t.flags|=32),jd(e,t),Ne(e,t,i,n),t.child;case 6:return e===null&&pu(t),null;case 13:return Bd(e,t,n);case 4:return vs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tr(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),Ga(e,t,r,o,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,q(hl,r._currentValue),r._currentValue=i,l!==null)if(ft(l.value,i)){if(l.children===o.children&&!Ae.current){t=Ot(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=Rt(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),mu(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(j(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),mu(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Ne(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Gn(t,n),o=et(o),r=r(o),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,o=lt(r,t.pendingProps),o=lt(r.type,o),Qa(e,t,r,o,n);case 15:return Ad(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),Qo(e,t),t.tag=1,Fe(r)?(e=!0,dl(t)):e=!1,Gn(t,n),fd(t,r,o),vu(t,r,o,n),wu(null,t,r,!0,e,n);case 19:return bd(e,t,n);case 22:return Fd(e,t,n)}throw Error(j(156,t.tag))};function rp(e,t){return Of(e,t)}function Hv(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 qe(e,t,n,r){return new Hv(e,t,n,r)}function Ms(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wv(e){if(typeof e=="function")return Ms(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xu)return 11;if(e===Zu)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=qe(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 Zo(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")Ms(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Mn:return vn(n.children,o,l,t);case Yu:i=8,o|=8;break;case Bi:return e=qe(12,n,t,o|2),e.elementType=Bi,e.lanes=l,e;case bi:return e=qe(13,n,t,o),e.elementType=bi,e.lanes=l,e;case Vi:return e=qe(19,n,t,o),e.elementType=Vi,e.lanes=l,e;case df:return ql(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cf:i=10;break e;case ff:i=9;break e;case Xu:i=11;break e;case Zu:i=14;break e;case Dt:i=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=qe(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function vn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function ql(e,t,n,r){return e=qe(22,e,r,t),e.elementType=df,e.lanes=n,e.stateNode={isHidden:!1},e}function Oi(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function Ni(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kv(e,t,n,r,o){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=ci(0),this.expirationTimes=ci(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ci(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Is(e,t,n,r,o,l,i,u,s){return e=new Kv(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=qe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hs(l),e}function Gv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(up)}catch(e){console.error(e)}}up(),of.exports=Qe;var qt=of.exports,sp,sc=qt;sp=sc.createRoot,sc.hydrateRoot;var ap={exports:{}};/*!
+ Copyright (c) 2018 Jed Watson.
+ Licensed under the MIT License (MIT), see
+ http://jedwatson.github.io/classnames
+*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",i=0;itypeof window>"u"?void 0:window,Jv=(...e)=>t=>{for(let n of e)if(n==null||n(t),t!=null&&t.defaultPrevented)return},eg=(e,t,n)=>Math.min(n,Math.max(t,e)),tg=(e=21)=>{let t="_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n="";for(let r=0;rt=>{e.forEach(n=>{typeof n=="function"?n(t):n&&(n.current=t)})},mr=(...e)=>c.useCallback(cp(...e),[...e]),ng=e=>{let t=c.useRef();return[c.useCallback(r=>{var o,l,i,u,s;(o=Mu())!=null&&o.ResizeObserver&&((i=(l=t.current)==null?void 0:l.disconnect)==null||i.call(l),r&&(t.current=new ResizeObserver(a=>{window.requestAnimationFrame(()=>{if(!Array.isArray(a)||!a.length)return;let[{contentRect:d}]=a;return e(d)})}),(s=(u=t.current)==null?void 0:u.observe)==null||s.call(u,r)))},[e]),t.current]},As=c.createContext(void 0);let rg=typeof jest<"u",og=globalThis.Cypress!==void 0,lg=globalThis.beforeEach!==void 0&&`${globalThis.beforeEach}`.replace(/\s/g,"")==="function(name,fn){suites[0].beforeEach(name,fn);}"&&!og,ig=globalThis.__vitest_index__!==void 0,ho=rg||ig||lg;const ug=()=>{let e=c.useContext(As);return sg(e),ag(),e},sg=e=>{c.useEffect(()=>{},[e])};let ag=()=>{c.useEffect(()=>{},[])},cg=Wu;const fp=cg.useSyncExternalStore||fg;function fg(e,t){let n=t(),[{instance:r},o]=c.useState({instance:{value:n,getSnapshot:t}});return c.useLayoutEffect(()=>{r.value=n,r.getSnapshot=t,Object.is(n,t())||o({instance:r})},[e,n,t]),c.useEffect(()=>{let l=()=>{Object.is(r.value,r.getSnapshot())||o({instance:r})};return l(),e(l)},[e]),n}const Iu=e=>{let t=c.useCallback(()=>{var r;return typeof window<"u"?(r=window.matchMedia)==null?void 0:r.call(window,e).matches:void 0},[e]),n=c.useCallback(r=>{var l,i;let o=(l=window.matchMedia)==null?void 0:l.call(window,e);return(i=o==null?void 0:o.addEventListener)==null||i.call(o,"change",r),()=>{var u;return(u=o==null?void 0:o.removeEventListener)==null?void 0:u.call(o,"change",r)}},[e]);return fp(n,t,()=>{})},Fs=e=>{let t=c.useContext(e);if(!t)throw new Error(`${e.displayName||"Context"} is undefined`);return t},Pl=e=>{let t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t};let lr=typeof window<"u"?c.useLayoutEffect:c.useEffect;const js=()=>{let[e,t]=c.useState(!1);return c.useEffect(()=>{t(!0)},[]),e},Tl=()=>{let e=pg();return c.useMemo(()=>`iui-${e}`,[e])};let dg=Wu,pg=dg.useId??(()=>c.useMemo(()=>tg(10),[]));const dp=(e,t,n)=>{let[r,o]=c.useState(e),l=c.useMemo(()=>t!==void 0?t:r,[t,r]),i=c.useCallback(u=>{o(u),n==null||n(u)},[n,o]);return[l,i]},pp="3.16.6",ac=new Proxy({},{get(e,t){if(typeof t=="string"&&t.startsWith("iui-"))return t.replace("iui-",`_iui${pp.replace(/\./g,"")}-`)},has(e,t){return typeof t=="string"&&t.startsWith("iui-")}});let mg=e=>(t,n)=>c.forwardRef(({as:o=e,...l},i)=>{l={...n,...l,className:hg(he(t,n==null?void 0:n.className,l.className))};let u=o||"div";if(u==="button"||u==="a"||u==="input"&&l.type==="checkbox"){var s;(s=l).tabIndex??(s.tabIndex=0)}return ug(),c.createElement(u,{ref:i,...l})});const mp=new Proxy({},{get:(e,t)=>typeof t=="string"?mg(t):Reflect.get(e,t)});let hg=(e="")=>e.split(" ").map(t=>t in ac?ac[t]:t).join(" ")||null;const vg=async e=>{try{return await new Function(`return import("${e}", { with: { type: "css" } })`)()}catch{try{return await new Function(`return import("${e}", { assert: { type: "css" } })`)()}catch{return await fetch(e).then(t=>t.text()).then(t=>{let n=new CSSStyleSheet;return n.replaceSync(t),{default:n}})}}},hp=(e,t)=>{if(!e)return null;if(!c.isValidElement(e))return e;let n=t(e),r=cp(...["ref"in e?e.ref:null,"ref"in n?n.ref:null].filter(Boolean));return c.cloneElement(e,{...n,ref:r})},ke=mp.div("");function yt(e){return vp(e)?(e.nodeName||"").toLowerCase():"#document"}function $e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(vp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vp(e){return e instanceof Node||e instanceof $e(e).Node}function Z(e){return e instanceof Element||e instanceof $e(e).Element}function fe(e){return e instanceof HTMLElement||e instanceof $e(e).HTMLElement}function Lu(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $e(e).ShadowRoot}function vo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function gg(e){return["table","td","th"].includes(yt(e))}function yg(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function $s(e){const t=Bs(),n=Z(e)?Ge(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function wg(e){let t=xn(e);for(;fe(t)&&!ir(t);){if($s(t))return t;if(yg(t))return null;t=xn(t)}return null}function Bs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ir(e){return["html","body","#document"].includes(yt(e))}function Ge(e){return $e(e).getComputedStyle(e)}function ri(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xn(e){if(yt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lu(e)&&e.host||It(e);return Lu(t)?t.host:t}function gp(e){const t=xn(e);return ir(t)?e.ownerDocument?e.ownerDocument.body:e.body:fe(t)&&vo(t)?t:gp(t)}function Yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=gp(e),l=o===((r=e.ownerDocument)==null?void 0:r.body),i=$e(o);if(l){const u=Eg(i);return t.concat(i,i.visualViewport||[],vo(o)?o:[],u&&n?Yt(u):[])}return t.concat(o,Yt(o,[],n))}function Eg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function St(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ce(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Lu(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function yp(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function wp(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Sg(e){return e.mozInputSource===0&&e.isTrusted?!0:zu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ep(e){return kg()?!1:!zu()&&e.width===0&&e.height===0||zu()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Sp(){return/apple/i.test(navigator.vendor)}function zu(){const e=/android/i;return e.test(yp())||e.test(wp())}function xg(){return yp().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function kg(){return wp().includes("jsdom/")}function lo(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Cg(e){return"nativeEvent"in e}function Rg(e){return e.matches("html,body")}function Se(e){return(e==null?void 0:e.ownerDocument)||document}function Mi(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function xt(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Pg="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function bs(e){return fe(e)&&e.matches(Pg)}function mn(e){e.preventDefault(),e.stopPropagation()}function Tg(e){return e?e.getAttribute("role")==="combobox"&&bs(e):!1}const xp=["top","right","bottom","left"],cc=["start","end"],fc=xp.reduce((e,t)=>e.concat(t,t+"-"+cc[0],t+"-"+cc[1]),[]),Nt=Math.min,_e=Math.max,_l=Math.round,Vn=Math.floor,Jt=e=>({x:e,y:e}),_g={left:"right",right:"left",bottom:"top",top:"bottom"},Og={start:"end",end:"start"};function dc(e,t,n){return _e(e,Nt(t,n))}function on(e,t){return typeof e=="function"?e(t):e}function nt(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function kp(e){return e==="x"?"y":"x"}function Cp(e){return e==="y"?"height":"width"}function hr(e){return["top","bottom"].includes(nt(e))?"y":"x"}function Rp(e){return kp(hr(e))}function Pp(e,t,n){n===void 0&&(n=!1);const r=gt(e),o=Rp(e),l=Cp(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=Nl(i)),[i,Nl(i)]}function Ng(e){const t=Nl(e);return[Ol(e),t,Ol(t)]}function Ol(e){return e.replace(/start|end/g,t=>Og[t])}function Mg(e,t,n){const r=["left","right"],o=["right","left"],l=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?l:i;default:return[]}}function Ig(e,t,n,r){const o=gt(e);let l=Mg(nt(e),n==="start",r);return o&&(l=l.map(i=>i+"-"+o),t&&(l=l.concat(l.map(Ol)))),l}function Nl(e){return e.replace(/left|right|bottom|top/g,t=>_g[t])}function Lg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tp(e){return typeof e!="number"?Lg(e):{top:e,right:e,bottom:e,left:e}}function ur(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}/*!
+* tabbable 6.2.0
+* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
+*/var zg=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ml=zg.join(","),_p=typeof Element>"u",sr=_p?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Il=!_p&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Ll=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),l=o===""||o==="true",i=l||n&&t&&e(t.parentNode);return i},Dg=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Ag=function(t,n,r){if(Ll(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Ml));return n&&sr.call(t,Ml)&&o.unshift(t),o=o.filter(r),o},Fg=function e(t,n,r){for(var o=[],l=Array.from(t);l.length;){var i=l.shift();if(!Ll(i,!1))if(i.tagName==="SLOT"){var u=i.assignedElements(),s=u.length?u:i.children,a=e(s,!0,r);r.flatten?o.push.apply(o,a):o.push({scopeParent:i,candidates:a})}else{var d=sr.call(i,Ml);d&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var f=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),h=!Ll(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(f&&h){var v=e(f===!0?i.children:f.children,!0,r);r.flatten?o.push.apply(o,v):o.push({scopeParent:i,candidates:v})}else l.unshift.apply(l,i.children)}}return o},Op=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Np=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Dg(t))&&!Op(t)?0:t.tabIndex},jg=function(t,n){var r=Np(t);return r<0&&n&&!Op(t)?0:r},$g=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Mp=function(t){return t.tagName==="INPUT"},Bg=function(t){return Mp(t)&&t.type==="hidden"},bg=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Vg=function(t,n){for(var r=0;rsummary:first-of-type"),i=l?t.parentElement:t;if(sr.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var s=t.parentElement,a=Il(t);if(s&&!s.shadowRoot&&o(s)===!0)return pc(t);t.assignedSlot?t=t.assignedSlot:!s&&a!==t.ownerDocument?t=a.host:t=s}t=u}if(Kg(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return pc(t);return!1},Qg=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},Zg=function e(t){var n=[],r=[];return t.forEach(function(o,l){var i=!!o.scopeParent,u=i?o.scopeParent:o,s=jg(u,i),a=i?e(o.candidates):u;s===0?i?n.push.apply(n,a):n.push(u):r.push({documentOrder:l,tabIndex:s,item:o,isScope:i,content:a})}),r.sort($g).reduce(function(o,l){return l.isScope?o.push.apply(o,l.content):o.push(l.content),o},[]).concat(n)},io=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Fg([t],n.includeContainer,{filter:Du.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Xg}):r=Ag(t,n.includeContainer,Du.bind(null,n)),Zg(r)},qg=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return sr.call(t,Ml)===!1?!1:Du(n,t)};function mc(e,t,n){let{reference:r,floating:o}=e;const l=hr(t),i=Rp(t),u=Cp(i),s=nt(t),a=l==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[u]/2-o[u]/2;let v;switch(s){case"top":v={x:d,y:r.y-o.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(gt(t)){case"start":v[i]-=h*(n&&a?-1:1);break;case"end":v[i]+=h*(n&&a?-1:1);break}return v}const Jg=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:i}=n,u=l.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=mc(a,r,s),h=r,v={},g=0;for(let w=0;wgt(o)===e),...n.filter(o=>gt(o)!==e)]:n.filter(o=>nt(o)===o)).filter(o=>e?gt(o)===e||(t?Ol(o)!==o:!1):!0)}const t0=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:l,middlewareData:i,placement:u,platform:s,elements:a}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:h=fc,autoAlignment:v=!0,...g}=on(e,t),w=f!==void 0||h===fc?e0(f||null,v,h):h,C=await ar(t,g),p=((n=i.autoPlacement)==null?void 0:n.index)||0,m=w[p];if(m==null)return{};const y=Pp(m,l,await(s.isRTL==null?void 0:s.isRTL(a.floating)));if(u!==m)return{reset:{placement:w[0]}};const E=[C[nt(m)],C[y[0]],C[y[1]]],R=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:m,overflows:E}],_=w[p+1];if(_)return{data:{index:p+1,overflows:R},reset:{placement:_}};const O=R.map(k=>{const z=gt(k.placement);return[k.placement,z&&d?k.overflows.slice(0,2).reduce((T,M)=>T+M,0):k.overflows[0],k.overflows]}).sort((k,z)=>k[1]-z[1]),L=((o=O.filter(k=>k[2].slice(0,gt(k[0])?2:3).every(z=>z<=0))[0])==null?void 0:o[0])||O[0][0];return L!==u?{data:{index:p+1,overflows:R},reset:{placement:L}}:{}}}},n0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:l,rects:i,initialPlacement:u,platform:s,elements:a}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...C}=on(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const p=nt(o),m=nt(u)===u,y=await(s.isRTL==null?void 0:s.isRTL(a.floating)),E=h||(m||!w?[Nl(u)]:Ng(u));!h&&g!=="none"&&E.push(...Ig(u,w,g,y));const R=[u,...E],_=await ar(t,C),O=[];let S=((r=l.flip)==null?void 0:r.overflows)||[];if(d&&O.push(_[p]),f){const T=Pp(o,i,y);O.push(_[T[0]],_[T[1]])}if(S=[...S,{placement:o,overflows:O}],!O.every(T=>T<=0)){var L,k;const T=(((L=l.flip)==null?void 0:L.index)||0)+1,M=R[T];if(M)return{data:{index:T,overflows:S},reset:{placement:M}};let x=(k=S.filter(N=>N.overflows[0]<=0).sort((N,A)=>N.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!x)switch(v){case"bestFit":{var z;const N=(z=S.map(A=>[A.placement,A.overflows.filter(D=>D>0).reduce((D,P)=>D+P,0)]).sort((A,D)=>A[1]-D[1])[0])==null?void 0:z[0];N&&(x=N);break}case"initialPlacement":x=u;break}if(o!==x)return{reset:{placement:x}}}return{}}}};function hc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vc(e){return xp.some(t=>e[t]>=0)}const r0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=on(e,t);switch(r){case"referenceHidden":{const l=await ar(t,{...o,elementContext:"reference"}),i=hc(l,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:vc(i)}}}case"escaped":{const l=await ar(t,{...o,altBoundary:!0}),i=hc(l,n.floating);return{data:{escapedOffsets:i,escaped:vc(i)}}}default:return{}}}}};function Ip(e){const t=Nt(...e.map(l=>l.left)),n=Nt(...e.map(l=>l.top)),r=_e(...e.map(l=>l.right)),o=_e(...e.map(l=>l.bottom));return{x:t,y:n,width:r-t,height:o-n}}function o0(e){const t=e.slice().sort((o,l)=>o.y-l.y),n=[];let r=null;for(let o=0;or.height/2?n.push([l]):n[n.length-1].push(l),r=l}return n.map(o=>ur(Ip(o)))}const l0=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:l,strategy:i}=t,{padding:u=2,x:s,y:a}=on(e,t),d=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(r.reference))||[]),f=o0(d),h=ur(Ip(d)),v=Tp(u);function g(){if(f.length===2&&f[0].left>f[1].right&&s!=null&&a!=null)return f.find(C=>s>C.left-v.left&&sC.top-v.top&&a=2){if(hr(n)==="y"){const k=f[0],z=f[f.length-1],T=nt(n)==="top",M=k.top,x=z.bottom,N=T?k.left:z.left,A=T?k.right:z.right,D=A-N,P=x-M;return{top:M,bottom:x,left:N,right:A,width:D,height:P,x:N,y:M}}const C=nt(n)==="left",p=_e(...f.map(k=>k.right)),m=Nt(...f.map(k=>k.left)),y=f.filter(k=>C?k.left===m:k.right===p),E=y[0].top,R=y[y.length-1].bottom,_=m,O=p,S=O-_,L=R-E;return{top:E,bottom:R,left:_,right:O,width:S,height:L,x:_,y:E}}return h}const w=await l.getElementRects({reference:{getBoundingClientRect:g},floating:r.floating,strategy:i});return o.reference.x!==w.reference.x||o.reference.y!==w.reference.y||o.reference.width!==w.reference.width||o.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}};async function i0(e,t){const{placement:n,platform:r,elements:o}=e,l=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=nt(n),u=gt(n),s=hr(n)==="y",a=["left","top"].includes(i)?-1:1,d=l&&s?-1:1,f=on(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return u&&typeof g=="number"&&(v=u==="end"?g*-1:g),s?{x:v*d,y:h*a}:{x:h*a,y:v*d}}const u0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:l,placement:i,middlewareData:u}=t,s=await i0(t,e);return i===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:l+s.y,data:{...s,placement:i}}}}},s0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:u={fn:C=>{let{x:p,y:m}=C;return{x:p,y:m}}},...s}=on(e,t),a={x:n,y:r},d=await ar(t,s),f=hr(nt(o)),h=kp(f);let v=a[h],g=a[f];if(l){const C=h==="y"?"top":"left",p=h==="y"?"bottom":"right",m=v+d[C],y=v-d[p];v=dc(m,v,y)}if(i){const C=f==="y"?"top":"left",p=f==="y"?"bottom":"right",m=g+d[C],y=g-d[p];g=dc(m,g,y)}const w=u.fn({...t,[h]:v,[f]:g});return{...w,data:{x:w.x-n,y:w.y-r}}}}},a0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:l}=t,{apply:i=()=>{},...u}=on(e,t),s=await ar(t,u),a=nt(n),d=gt(n),f=hr(n)==="y",{width:h,height:v}=r.floating;let g,w;a==="top"||a==="bottom"?(g=a,w=d===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(w=a,g=d==="end"?"top":"bottom");const C=v-s[g],p=h-s[w],m=!t.middlewareData.shift;let y=C,E=p;if(f){const _=h-s.left-s.right;E=d||m?Nt(p,_):_}else{const _=v-s.top-s.bottom;y=d||m?Nt(C,_):_}if(m&&!d){const _=_e(s.left,0),O=_e(s.right,0),S=_e(s.top,0),L=_e(s.bottom,0);f?E=h-2*(_!==0||O!==0?_+O:_e(s.left,s.right)):y=v-2*(S!==0||L!==0?S+L:_e(s.top,s.bottom))}await i({...t,availableWidth:E,availableHeight:y});const R=await o.getDimensions(l.floating);return h!==R.width||v!==R.height?{reset:{rects:!0}}:{}}}};function Lp(e){const t=Ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=fe(e),l=o?e.offsetWidth:n,i=o?e.offsetHeight:r,u=_l(n)!==l||_l(r)!==i;return u&&(n=l,r=i),{width:n,height:r,$:u}}function Vs(e){return Z(e)?e:e.contextElement}function Yn(e){const t=Vs(e);if(!fe(t))return Jt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:l}=Lp(t);let i=(l?_l(n.width):n.width)/r,u=(l?_l(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!u||!Number.isFinite(u))&&(u=1),{x:i,y:u}}const c0=Jt(0);function zp(e){const t=$e(e);return!Bs()||!t.visualViewport?c0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function f0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$e(e)?!1:t}function kn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=Vs(e);let i=Jt(1);t&&(r?Z(r)&&(i=Yn(r)):i=Yn(e));const u=f0(l,n,r)?zp(l):Jt(0);let s=(o.left+u.x)/i.x,a=(o.top+u.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(l){const h=$e(l),v=r&&Z(r)?$e(r):r;let g=h,w=g.frameElement;for(;w&&r&&v!==g;){const C=Yn(w),p=w.getBoundingClientRect(),m=Ge(w),y=p.left+(w.clientLeft+parseFloat(m.paddingLeft))*C.x,E=p.top+(w.clientTop+parseFloat(m.paddingTop))*C.y;s*=C.x,a*=C.y,d*=C.x,f*=C.y,s+=y,a+=E,g=$e(w),w=g.frameElement}}return ur({width:d,height:f,x:s,y:a})}const d0=[":popover-open",":modal"];function Dp(e){return d0.some(t=>{try{return e.matches(t)}catch{return!1}})}function p0(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const l=o==="fixed",i=It(r),u=t?Dp(t.floating):!1;if(r===i||u&&l)return n;let s={scrollLeft:0,scrollTop:0},a=Jt(1);const d=Jt(0),f=fe(r);if((f||!f&&!l)&&((yt(r)!=="body"||vo(i))&&(s=ri(r)),fe(r))){const h=kn(r);a=Yn(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+d.x,y:n.y*a.y-s.scrollTop*a.y+d.y}}function m0(e){return Array.from(e.getClientRects())}function Ap(e){return kn(It(e)).left+ri(e).scrollLeft}function h0(e){const t=It(e),n=ri(e),r=e.ownerDocument.body,o=_e(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=_e(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Ap(e);const u=-n.scrollTop;return Ge(r).direction==="rtl"&&(i+=_e(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:i,y:u}}function v0(e,t){const n=$e(e),r=It(e),o=n.visualViewport;let l=r.clientWidth,i=r.clientHeight,u=0,s=0;if(o){l=o.width,i=o.height;const a=Bs();(!a||a&&t==="fixed")&&(u=o.offsetLeft,s=o.offsetTop)}return{width:l,height:i,x:u,y:s}}function g0(e,t){const n=kn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=fe(e)?Yn(e):Jt(1),i=e.clientWidth*l.x,u=e.clientHeight*l.y,s=o*l.x,a=r*l.y;return{width:i,height:u,x:s,y:a}}function gc(e,t,n){let r;if(t==="viewport")r=v0(e,n);else if(t==="document")r=h0(It(e));else if(Z(t))r=g0(t,n);else{const o=zp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ur(r)}function Fp(e,t){const n=xn(e);return n===t||!Z(n)||ir(n)?!1:Ge(n).position==="fixed"||Fp(n,t)}function y0(e,t){const n=t.get(e);if(n)return n;let r=Yt(e,[],!1).filter(u=>Z(u)&&yt(u)!=="body"),o=null;const l=Ge(e).position==="fixed";let i=l?xn(e):e;for(;Z(i)&&!ir(i);){const u=Ge(i),s=$s(i);!s&&u.position==="fixed"&&(o=null),(l?!s&&!o:!s&&u.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||vo(i)&&!s&&Fp(e,i))?r=r.filter(d=>d!==i):o=u,i=xn(i)}return t.set(e,r),r}function w0(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?y0(t,this._c):[].concat(n),r],u=i[0],s=i.reduce((a,d)=>{const f=gc(t,d,o);return a.top=_e(f.top,a.top),a.right=Nt(f.right,a.right),a.bottom=Nt(f.bottom,a.bottom),a.left=_e(f.left,a.left),a},gc(t,u,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function E0(e){const{width:t,height:n}=Lp(e);return{width:t,height:n}}function S0(e,t,n){const r=fe(t),o=It(t),l=n==="fixed",i=kn(e,!0,l,t);let u={scrollLeft:0,scrollTop:0};const s=Jt(0);if(r||!r&&!l)if((yt(t)!=="body"||vo(o))&&(u=ri(t)),r){const f=kn(t,!0,l,t);s.x=f.x+t.clientLeft,s.y=f.y+t.clientTop}else o&&(s.x=Ap(o));const a=i.left+u.scrollLeft-s.x,d=i.top+u.scrollTop-s.y;return{x:a,y:d,width:i.width,height:i.height}}function yc(e,t){return!fe(e)||Ge(e).position==="fixed"?null:t?t(e):e.offsetParent}function jp(e,t){const n=$e(e);if(!fe(e)||Dp(e))return n;let r=yc(e,t);for(;r&&gg(r)&&Ge(r).position==="static";)r=yc(r,t);return r&&(yt(r)==="html"||yt(r)==="body"&&Ge(r).position==="static"&&!$s(r))?n:r||wg(e)||n}const x0=async function(e){const t=this.getOffsetParent||jp,n=this.getDimensions;return{reference:S0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function k0(e){return Ge(e).direction==="rtl"}const C0={convertOffsetParentRelativeRectToViewportRelativeRect:p0,getDocumentElement:It,getClippingRect:w0,getOffsetParent:jp,getElementRects:x0,getClientRects:m0,getDimensions:E0,getScale:Yn,isElement:Z,isRTL:k0};function R0(e,t){let n=null,r;const o=It(e);function l(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function i(u,s){u===void 0&&(u=!1),s===void 0&&(s=1),l();const{left:a,top:d,width:f,height:h}=e.getBoundingClientRect();if(u||t(),!f||!h)return;const v=Vn(d),g=Vn(o.clientWidth-(a+f)),w=Vn(o.clientHeight-(d+h)),C=Vn(a),m={rootMargin:-v+"px "+-g+"px "+-w+"px "+-C+"px",threshold:_e(0,Nt(1,s))||1};let y=!0;function E(R){const _=R[0].intersectionRatio;if(_!==s){if(!y)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(E,{...m,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,m)}n.observe(e)}return i(!0),l}function $p(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,a=Vs(e),d=o||l?[...a?Yt(a):[],...Yt(t)]:[];d.forEach(p=>{o&&p.addEventListener("scroll",n,{passive:!0}),l&&p.addEventListener("resize",n)});const f=a&&u?R0(a,n):null;let h=-1,v=null;i&&(v=new ResizeObserver(p=>{let[m]=p;m&&m.target===a&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(t)})),n()}),a&&!s&&v.observe(a),v.observe(t));let g,w=s?kn(e):null;s&&C();function C(){const p=kn(e);w&&(p.x!==w.x||p.y!==w.y||p.width!==w.width||p.height!==w.height)&&n(),w=p,g=requestAnimationFrame(C)}return n(),()=>{var p;d.forEach(m=>{o&&m.removeEventListener("scroll",n),l&&m.removeEventListener("resize",n)}),f==null||f(),(p=v)==null||p.disconnect(),v=null,s&&cancelAnimationFrame(g)}}const P0=t0,T0=s0,_0=n0,O0=a0,N0=r0,M0=l0,I0=(e,t,n)=>{const r=new Map,o={platform:C0,...n},l={...o.platform,_c:r};return Jg(e,t,{...o,platform:l})};var qo=typeof document<"u"?c.useLayoutEffect:c.useEffect;function zl(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,o;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(!zl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const l=o[r];if(!(l==="_owner"&&e.$$typeof)&&!zl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Bp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wc(e,t){const n=Bp(e);return Math.round(t*n)/n}function Ec(e){const t=c.useRef(e);return qo(()=>{t.current=e}),t}function L0(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:i}={},transform:u=!0,whileElementsMounted:s,open:a}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=c.useState(r);zl(h,r)||v(r);const[g,w]=c.useState(null),[C,p]=c.useState(null),m=c.useCallback(D=>{D!==_.current&&(_.current=D,w(D))},[]),y=c.useCallback(D=>{D!==O.current&&(O.current=D,p(D))},[]),E=l||g,R=i||C,_=c.useRef(null),O=c.useRef(null),S=c.useRef(d),L=s!=null,k=Ec(s),z=Ec(o),T=c.useCallback(()=>{if(!_.current||!O.current)return;const D={placement:t,strategy:n,middleware:h};z.current&&(D.platform=z.current),I0(_.current,O.current,D).then(P=>{const I={...P,isPositioned:!0};M.current&&!zl(S.current,I)&&(S.current=I,qt.flushSync(()=>{f(I)}))})},[h,t,n,z]);qo(()=>{a===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(D=>({...D,isPositioned:!1})))},[a]);const M=c.useRef(!1);qo(()=>(M.current=!0,()=>{M.current=!1}),[]),qo(()=>{if(E&&(_.current=E),R&&(O.current=R),E&&R){if(k.current)return k.current(E,R,T);T()}},[E,R,T,k,L]);const x=c.useMemo(()=>({reference:_,floating:O,setReference:m,setFloating:y}),[m,y]),N=c.useMemo(()=>({reference:E,floating:R}),[E,R]),A=c.useMemo(()=>{const D={position:n,left:0,top:0};if(!N.floating)return D;const P=wc(N.floating,d.x),I=wc(N.floating,d.y);return u?{...D,transform:"translate("+P+"px, "+I+"px)",...Bp(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:I}},[n,u,N.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:T,refs:x,elements:N,floatingStyles:A}),[d,T,x,N,A])}const Au=(e,t)=>({...u0(e),options:[e,t]}),bp=(e,t)=>({...T0(e),options:[e,t]}),Vp=(e,t)=>({..._0(e),options:[e,t]}),Up=(e,t)=>({...O0(e),options:[e,t]}),Hp=(e,t)=>({...P0(e),options:[e,t]}),Wp=(e,t)=>({...N0(e),options:[e,t]}),Kp=(e,t)=>({...M0(e),options:[e,t]});function z0(e){return c.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const Gp={...Wu},D0=Gp.useInsertionEffect,A0=D0||(e=>e());function st(e){const t=c.useRef(()=>{});return A0(()=>{t.current=e}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o=e.current.length}function F0(e,t){return Be(e,{disabledIndices:t})}function j0(e,t){return Be(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Be(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:l=1}=t===void 0?{}:t;const i=e.current;let u=n;do u+=r?-l:l;while(u>=0&&u<=i.length-1&&el(i,u,o));return u}function $0(e,t){let{event:n,orientation:r,loop:o,cols:l,disabledIndices:i,minIndex:u,maxIndex:s,prevIndex:a,stopEvent:d=!1}=t,f=a;if(n.key===Dl){if(d&&mn(n),a===-1)f=s;else if(f=Be(e,{startingIndex:f,amount:l,decrement:!0,disabledIndices:i}),o&&(a-lh?g:g-l}Jo(e,f)&&(f=a)}if(n.key===$r&&(d&&mn(n),a===-1?f=u:(f=Be(e,{startingIndex:a,amount:l,disabledIndices:i}),o&&a+l>s&&(f=Be(e,{startingIndex:a%l-l,amount:l,disabledIndices:i}))),Jo(e,f)&&(f=a)),r==="both"){const h=Vn(a/l);n.key===Br&&(d&&mn(n),a%l!==l-1?(f=Be(e,{startingIndex:a,disabledIndices:i}),o&&Ao(f,l,h)&&(f=Be(e,{startingIndex:a-a%l-1,disabledIndices:i}))):o&&(f=Be(e,{startingIndex:a-a%l-1,disabledIndices:i})),Ao(f,l,h)&&(f=a)),n.key===uo&&(d&&mn(n),a%l!==0?(f=Be(e,{startingIndex:a,decrement:!0,disabledIndices:i}),o&&Ao(f,l,h)&&(f=Be(e,{startingIndex:a+(l-a%l),decrement:!0,disabledIndices:i}))):o&&(f=Be(e,{startingIndex:a+(l-a%l),decrement:!0,disabledIndices:i})),Ao(f,l,h)&&(f=a));const v=Vn(s/l)===h;Jo(e,f)&&(o&&v?f=n.key===uo?s:Be(e,{startingIndex:a-a%l-1,disabledIndices:i}):f=a)}return f}function B0(e,t,n){const r=[];let o=0;return e.forEach((l,i)=>{let{width:u,height:s}=l,a=!1;for(n&&(o=0);!a;){const d=[];for(let f=0;fr[f]==null)?(d.forEach(f=>{r[f]=i}),a=!0):o++}}),[...r]}function b0(e,t,n,r,o){if(e===-1)return-1;const l=n.indexOf(e),i=t[e];switch(o){case"tl":return l;case"tr":return i?l+i.width-1:l;case"bl":return i?l+(i.height-1)*r:l;case"br":return n.lastIndexOf(e)}}function V0(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function el(e,t,n){if(n)return n.includes(t);const r=e[t];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}let Sc=0;function an(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Sc);const l=()=>e==null?void 0:e.focus({preventScroll:n});o?l():Sc=requestAnimationFrame(l)}var se=typeof document<"u"?c.useLayoutEffect:c.useEffect;function U0(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function H0(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}const Qp=c.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function W0(e){const{children:t,elementsRef:n,labelsRef:r}=e,[o,l]=c.useState(()=>new Map),i=c.useCallback(s=>{l(a=>new Map(a).set(s,null))},[]),u=c.useCallback(s=>{l(a=>{const d=new Map(a);return d.delete(s),d})},[]);return se(()=>{const s=new Map(o);Array.from(s.keys()).sort(U0).forEach((d,f)=>{s.set(d,f)}),H0(o,s)||l(s)},[o]),c.createElement(Qp.Provider,{value:c.useMemo(()=>({register:i,unregister:u,map:o,elementsRef:n,labelsRef:r}),[i,u,o,n,r])},t)}function K0(e){e===void 0&&(e={});const{label:t}=e,{register:n,unregister:r,map:o,elementsRef:l,labelsRef:i}=c.useContext(Qp),[u,s]=c.useState(null),a=c.useRef(null),d=c.useCallback(f=>{if(a.current=f,u!==null&&(l.current[u]=f,i)){var h;const v=t!==void 0;i.current[u]=v?t:(h=f==null?void 0:f.textContent)!=null?h:null}},[u,l,i,t]);return se(()=>{const f=a.current;if(f)return n(f),()=>{r(f)}},[n,r]),se(()=>{const f=a.current?o.get(a.current):null;f!=null&&s(f)},[o]),c.useMemo(()=>({ref:d,index:u??-1}),[u,d])}function Yp(e,t){return typeof e=="function"?e(t):e?c.cloneElement(e,t):c.createElement("div",t)}const Xp=c.createContext({activeIndex:0,onNavigate:()=>{}}),Zp=[uo,Br],qp=[Dl,$r],Ii=[...Zp,...qp],G0=c.forwardRef(function(t,n){const{render:r,orientation:o="both",loop:l=!0,cols:i=1,disabledIndices:u,activeIndex:s,onNavigate:a,itemSizes:d,dense:f=!1,...h}=t,[v,g]=c.useState(0),w=s??v,C=st(a??g),p=c.useRef([]),m=r&&typeof r!="function"?r.props:{},y=c.useMemo(()=>({activeIndex:w,onNavigate:C}),[w,C]),E=i>1;function R(O){if(!Ii.includes(O.key))return;let S=w;const L=F0(p,u),k=j0(p,u);if(E){const x=d||Array.from({length:p.current.length},()=>({width:1,height:1})),N=B0(x,i,f),A=N.findIndex(I=>I!=null&&!el(p.current,I,u)),D=N.reduce((I,F,V)=>F!=null&&!el(p.current,F,u)?V:I,-1),P=N[$0({current:N.map(I=>I?p.current[I]:null)},{event:O,orientation:o,loop:l,cols:i,disabledIndices:V0([...u||p.current.map((I,F)=>el(p.current,F)?F:void 0),void 0],N),minIndex:A,maxIndex:D,prevIndex:b0(w>k?L:w,x,N,i,O.key===$r?"bl":O.key===Br?"tr":"tl")})];P!=null&&(S=P)}const z={horizontal:[Br],vertical:[$r],both:[Br,$r]}[o],T={horizontal:[uo],vertical:[Dl],both:[uo,Dl]}[o],M=E?Ii:{horizontal:Zp,vertical:qp,both:Ii}[o];S===w&&[...z,...T].includes(O.key)&&(l&&S===k&&z.includes(O.key)?S=L:l&&S===L&&T.includes(O.key)?S=k:S=Be(p,{startingIndex:S,decrement:T.includes(O.key),disabledIndices:u})),S!==w&&!Jo(p,S)&&(O.stopPropagation(),M.includes(O.key)&&O.preventDefault(),C(S),queueMicrotask(()=>{an(p.current[S])}))}const _={...h,...m,ref:n,"aria-orientation":o==="both"?void 0:o,onKeyDown(O){h.onKeyDown==null||h.onKeyDown(O),m.onKeyDown==null||m.onKeyDown(O),R(O)}};return c.createElement(Xp.Provider,{value:y},c.createElement(W0,{elementsRef:p},Yp(r,_)))}),Q0=c.forwardRef(function(t,n){const{render:r,...o}=t,l=r&&typeof r!="function"?r.props:{},{activeIndex:i,onNavigate:u}=c.useContext(Xp),{ref:s,index:a}=K0(),d=z0([s,n,l.ref]),f=i===a,h={...o,...l,ref:d,tabIndex:f?0:-1,"data-active":f?"":void 0,onFocus(v){o.onFocus==null||o.onFocus(v),l.onFocus==null||l.onFocus(v),u(a)}};return Yp(r,h)});function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Math.random().toString(36).slice(2,6)+Y0++;function X0(){const[e,t]=c.useState(()=>xc?kc():void 0);return se(()=>{e==null&&t(kc())},[]),c.useEffect(()=>{xc=!0},[]),e}const Z0=Gp.useId,Us=Z0||X0;function q0(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const J0=c.createContext(null),ey=c.createContext(null),Hs=()=>{var e;return((e=c.useContext(J0))==null?void 0:e.id)||null},go=()=>c.useContext(ey);function en(e){return"data-floating-ui-"+e}function Xn(e){const t=c.useRef(e);return se(()=>{t.current=e}),t}const Cc=en("safe-polygon");function tl(e,t,n){return n&&!lo(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Jp(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:l,elements:i}=e,{enabled:u=!0,delay:s=0,handleClose:a=null,mouseOnly:d=!1,restMs:f=0,move:h=!0}=t,v=go(),g=Hs(),w=Xn(a),C=Xn(s),p=Xn(n),m=c.useRef(),y=c.useRef(-1),E=c.useRef(),R=c.useRef(-1),_=c.useRef(!0),O=c.useRef(!1),S=c.useRef(()=>{}),L=c.useCallback(()=>{var N;const A=(N=o.current.openEvent)==null?void 0:N.type;return(A==null?void 0:A.includes("mouse"))&&A!=="mousedown"},[o]);c.useEffect(()=>{if(!u)return;function N(A){let{open:D}=A;D||(clearTimeout(y.current),clearTimeout(R.current),_.current=!0)}return l.on("openchange",N),()=>{l.off("openchange",N)}},[u,l]),c.useEffect(()=>{if(!u||!w.current||!n)return;function N(D){L()&&r(!1,D,"hover")}const A=Se(i.floating).documentElement;return A.addEventListener("mouseleave",N),()=>{A.removeEventListener("mouseleave",N)}},[i.floating,n,r,u,w,L]);const k=c.useCallback(function(N,A,D){A===void 0&&(A=!0),D===void 0&&(D="hover");const P=tl(C.current,"close",m.current);P&&!E.current?(clearTimeout(y.current),y.current=window.setTimeout(()=>r(!1,N,D),P)):A&&(clearTimeout(y.current),r(!1,N,D))},[C,r]),z=st(()=>{S.current(),E.current=void 0}),T=st(()=>{if(O.current){const N=Se(i.floating).body;N.style.pointerEvents="",N.removeAttribute(Cc),O.current=!1}});c.useEffect(()=>{if(!u)return;function N(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function A(F){if(clearTimeout(y.current),_.current=!1,d&&!lo(m.current)||f>0&&!tl(C.current,"open"))return;const V=tl(C.current,"open",m.current);V?y.current=window.setTimeout(()=>{p.current||r(!0,F,"hover")},V):r(!0,F,"hover")}function D(F){if(N())return;S.current();const V=Se(i.floating);if(clearTimeout(R.current),w.current&&o.current.floatingContext){n||clearTimeout(y.current),E.current=w.current({...o.current.floatingContext,tree:v,x:F.clientX,y:F.clientY,onClose(){T(),z(),k(F,!0,"safe-polygon")}});const we=E.current;V.addEventListener("mousemove",we),S.current=()=>{V.removeEventListener("mousemove",we)};return}(m.current==="touch"?!ce(i.floating,F.relatedTarget):!0)&&k(F)}function P(F){N()||o.current.floatingContext&&(w.current==null||w.current({...o.current.floatingContext,tree:v,x:F.clientX,y:F.clientY,onClose(){T(),z(),k(F)}})(F))}if(Z(i.domReference)){var I;const F=i.domReference;return n&&F.addEventListener("mouseleave",P),(I=i.floating)==null||I.addEventListener("mouseleave",P),h&&F.addEventListener("mousemove",A,{once:!0}),F.addEventListener("mouseenter",A),F.addEventListener("mouseleave",D),()=>{var V;n&&F.removeEventListener("mouseleave",P),(V=i.floating)==null||V.removeEventListener("mouseleave",P),h&&F.removeEventListener("mousemove",A),F.removeEventListener("mouseenter",A),F.removeEventListener("mouseleave",D)}}},[i,u,e,d,f,h,k,z,T,r,n,p,v,C,w,o]),se(()=>{var N;if(u&&n&&(N=w.current)!=null&&N.__options.blockPointerEvents&&L()){O.current=!0;const D=i.floating;if(Z(i.domReference)&&D){var A;const P=Se(i.floating).body;P.setAttribute(Cc,"");const I=i.domReference,F=v==null||(A=v.nodesRef.current.find(V=>V.id===g))==null||(A=A.context)==null?void 0:A.elements.floating;return F&&(F.style.pointerEvents=""),P.style.pointerEvents="none",I.style.pointerEvents="auto",D.style.pointerEvents="auto",()=>{P.style.pointerEvents="",I.style.pointerEvents="",D.style.pointerEvents=""}}}},[u,n,g,i,v,w,L]),se(()=>{n||(m.current=void 0,z(),T())},[n,z,T]),c.useEffect(()=>()=>{z(),clearTimeout(y.current),clearTimeout(R.current),T()},[u,i.domReference,z,T]);const M=c.useMemo(()=>{function N(A){m.current=A.pointerType}return{onPointerDown:N,onPointerEnter:N,onMouseMove(A){const{nativeEvent:D}=A;function P(){!_.current&&!p.current&&r(!0,D,"hover")}d&&!lo(m.current)||n||f===0||(clearTimeout(R.current),m.current==="touch"?P():R.current=window.setTimeout(P,f))}}},[d,r,n,p,f]),x=c.useMemo(()=>({onMouseEnter(){clearTimeout(y.current)},onMouseLeave(N){k(N.nativeEvent,!1)}}),[k]);return c.useMemo(()=>u?{reference:M,floating:x}:{},[u,M,x])}const Fu=()=>{},em=c.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Fu,setState:Fu,isInstantPhase:!1}),ty=()=>c.useContext(em);function ny(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,l]=c.useReducer((s,a)=>({...s,...a}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),i=c.useRef(null),u=c.useCallback(s=>{l({currentId:s})},[]);return se(()=>{o.currentId?i.current===null?i.current=o.currentId:o.isInstantPhase||l({isInstantPhase:!0}):(o.isInstantPhase&&l({isInstantPhase:!1}),i.current=null)},[o.currentId,o.isInstantPhase]),c.createElement(em.Provider,{value:c.useMemo(()=>({...o,setState:l,setCurrentId:u}),[o,u])},t)}function ry(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:l}=t,i=l??o,u=ty(),{currentId:s,setCurrentId:a,initialDelay:d,setState:f,timeoutMs:h}=u;return se(()=>{s&&(f({delay:{open:1,close:tl(d,"close")}}),s!==i&&r(!1))},[i,r,f,s,d]),se(()=>{function v(){r(!1),f({delay:d,currentId:null})}if(s&&!n&&s===i){if(h){const g=window.setTimeout(v,h);return()=>{clearTimeout(g)}}v()}},[n,f,s,i,r,d,h]),se(()=>{a===Fu||!n||a(i)},[n,a,i]),u}function oy(e,t){var n;let r=[],o=(n=e.find(l=>l.id===t))==null?void 0:n.parentId;for(;o;){const l=e.find(i=>i.id===o);o=l==null?void 0:l.parentId,l&&(r=r.concat(l))}return r}function Zn(e,t){let n=e.filter(o=>{var l;return o.parentId===t&&((l=o.context)==null?void 0:l.open)}),r=n;for(;r.length;)r=e.filter(o=>{var l;return(l=r)==null?void 0:l.some(i=>{var u;return o.parentId===i.id&&((u=o.context)==null?void 0:u.open)})}),n=n.concat(r);return n}let _n=new WeakMap,Fo=new WeakSet,jo={},Li=0;const ly=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,tm=e=>e&&(e.host||tm(e.parentNode)),iy=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=tm(n);return e.contains(r)?r:null}).filter(n=>n!=null);function uy(e,t,n,r){const o="data-floating-ui-inert",l=r?"inert":n?"aria-hidden":null,i=iy(t,e),u=new Set,s=new Set(i),a=[];jo[o]||(jo[o]=new WeakMap);const d=jo[o];i.forEach(f),h(t),u.clear();function f(v){!v||u.has(v)||(u.add(v),v.parentNode&&f(v.parentNode))}function h(v){!v||s.has(v)||[].forEach.call(v.children,g=>{if(yt(g)!=="script")if(u.has(g))h(g);else{const w=l?g.getAttribute(l):null,C=w!==null&&w!=="false",p=(_n.get(g)||0)+1,m=(d.get(g)||0)+1;_n.set(g,p),d.set(g,m),a.push(g),p===1&&C&&Fo.add(g),m===1&&g.setAttribute(o,""),!C&&l&&g.setAttribute(l,"true")}})}return Li++,()=>{a.forEach(v=>{const g=(_n.get(v)||0)-1,w=(d.get(v)||0)-1;_n.set(v,g),d.set(v,w),g||(!Fo.has(v)&&l&&v.removeAttribute(l),Fo.delete(v)),w||v.removeAttribute(o)}),Li--,Li||(_n=new WeakMap,_n=new WeakMap,Fo=new WeakSet,jo={})}}function Rc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=Se(e[0]).body;return uy(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const cr=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function nm(e,t){const n=io(e,cr());t==="prev"&&n.reverse();const r=n.indexOf(St(Se(e)));return n.slice(r+1)[0]}function rm(){return nm(document.body,"next")}function om(){return nm(document.body,"prev")}function br(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ce(n,r)}function sy(e){io(e,cr()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Pc(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function ay(e,t,n){const r=e.indexOf(t);function o(i){const u=en("focus-guard");let s=r+(i?1:0),a=e[s];for(;a&&(!a.isConnected||a.hasAttribute(u)||ce(n,a));)i?s++:s--,a=e[s];return a}const l=o(!0);return l||o(!1)}const Ws={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let cy;function Tc(e){e.key==="Tab"&&(e.target,clearTimeout(cy))}const Fl=c.forwardRef(function(t,n){const[r,o]=c.useState();se(()=>(Sp()&&o("button"),document.addEventListener("keydown",Tc),()=>{document.removeEventListener("keydown",Tc)}),[]);const l={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[en("focus-guard")]:"",style:Ws};return c.createElement("span",Al({},t,l))}),lm=c.createContext(null),_c=en("portal");function fy(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Us(),o=im(),[l,i]=c.useState(null),u=c.useRef(null);return se(()=>()=>{l==null||l.remove(),queueMicrotask(()=>{u.current=null})},[l]),se(()=>{if(!r||u.current)return;const s=t?document.getElementById(t):null;if(!s)return;const a=document.createElement("div");a.id=r,a.setAttribute(_c,""),s.appendChild(a),u.current=a,i(a)},[t,r]),se(()=>{if(!r||u.current)return;let s=n||(o==null?void 0:o.portalNode);s&&!Z(s)&&(s=s.current),s=s||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,s.appendChild(a));const d=document.createElement("div");d.id=r,d.setAttribute(_c,""),s=a||s,s.appendChild(d),u.current=d,i(d)},[t,n,r,o]),l}function dy(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,l=fy({id:n,root:r}),[i,u]=c.useState(null),s=c.useRef(null),a=c.useRef(null),d=c.useRef(null),f=c.useRef(null),h=i==null?void 0:i.modal,v=i==null?void 0:i.open,g=!!i&&!i.modal&&i.open&&o&&!!(r||l);return c.useEffect(()=>{if(!l||!o||h)return;function w(C){l&&br(C)&&(C.type==="focusin"?Pc:sy)(l)}return l.addEventListener("focusin",w,!0),l.addEventListener("focusout",w,!0),()=>{l.removeEventListener("focusin",w,!0),l.removeEventListener("focusout",w,!0)}},[l,o,h]),c.useEffect(()=>{l&&(v||Pc(l))},[v,l]),c.createElement(lm.Provider,{value:c.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:a,beforeInsideRef:d,afterInsideRef:f,portalNode:l,setFocusManagerState:u}),[o,l])},g&&l&&c.createElement(Fl,{"data-type":"outside",ref:s,onFocus:w=>{if(br(w,l)){var C;(C=d.current)==null||C.focus()}else{const p=om()||(i==null?void 0:i.refs.domReference.current);p==null||p.focus()}}}),g&&l&&c.createElement("span",{"aria-owns":l.id,style:Ws}),l&&qt.createPortal(t,l),g&&l&&c.createElement(Fl,{"data-type":"outside",ref:a,onFocus:w=>{if(br(w,l)){var C;(C=f.current)==null||C.focus()}else{const p=rm()||(i==null?void 0:i.refs.domReference.current);p==null||p.focus(),i!=null&&i.closeOnFocusOut&&(i==null||i.onOpenChange(!1,w.nativeEvent,"focus-out"))}}}))}const im=()=>c.useContext(lm),ju="data-floating-ui-focusable";function py(e){return e?e.hasAttribute(ju)?e:e.querySelector("["+ju+"]")||e:null}const Oc=20;let cn=[];function zi(e){cn=cn.filter(n=>n.isConnected);let t=e;if(!(!t||yt(t)==="body")){if(!qg(t,cr())){const n=io(t,cr())[0];n&&(t=n)}cn.push(t),cn.length>Oc&&(cn=cn.slice(-Oc))}}function Nc(){return cn.slice().reverse().find(e=>e.isConnected)}const my=c.forwardRef(function(t,n){return c.createElement("button",Al({},t,{type:"button",ref:n,tabIndex:-1,style:Ws}))});function hy(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:l=!0,initialFocus:i=0,returnFocus:u=!0,restoreFocus:s=!1,modal:a=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0}=e,{open:h,refs:v,nodeId:g,onOpenChange:w,events:C,dataRef:p,floatingId:m,elements:{domReference:y,floating:E}}=t,R=typeof i=="number"&&i<0,_=Tg(y)&&R,O=ly()?l:!0,S=Xn(o),L=Xn(i),k=Xn(u),z=go(),T=im(),M=c.useRef(null),x=c.useRef(null),N=c.useRef(!1),A=c.useRef(!1),D=c.useRef(-1),P=T!=null,I=py(E),F=st(function(U){return U===void 0&&(U=I),U?io(U,cr()):[]}),V=st(U=>{const b=F(U);return S.current.map(B=>y&&B==="reference"?y:I&&B==="floating"?I:b).filter(Boolean).flat()});c.useEffect(()=>{N.current=!1},[r]),c.useEffect(()=>{if(r||!a)return;function U(B){if(B.key==="Tab"){ce(I,St(Se(I)))&&F().length===0&&!_&&mn(B);const H=V(),W=xt(B);S.current[0]==="reference"&&W===y&&(mn(B),B.shiftKey?an(H[H.length-1]):an(H[1])),S.current[1]==="floating"&&W===I&&B.shiftKey&&(mn(B),an(H[0]))}}const b=Se(I);return b.addEventListener("keydown",U),()=>{b.removeEventListener("keydown",U)}},[r,y,I,a,S,_,F,V]),c.useEffect(()=>{if(r||!E)return;function U(b){const B=xt(b),W=F().indexOf(B);W!==-1&&(D.current=W)}return E.addEventListener("focusin",U),()=>{E.removeEventListener("focusin",U)}},[r,E,F]),c.useEffect(()=>{if(r||!f)return;function U(){A.current=!0,setTimeout(()=>{A.current=!1})}function b(B){const H=B.relatedTarget;queueMicrotask(()=>{const W=!(ce(y,H)||ce(E,H)||ce(H,E)||ce(T==null?void 0:T.portalNode,H)||H!=null&&H.hasAttribute(en("focus-guard"))||z&&(Zn(z.nodesRef.current,g).find(Q=>{var ae,ne;return ce((ae=Q.context)==null?void 0:ae.elements.floating,H)||ce((ne=Q.context)==null?void 0:ne.elements.domReference,H)})||oy(z.nodesRef.current,g).find(Q=>{var ae,ne;return((ae=Q.context)==null?void 0:ae.elements.floating)===H||((ne=Q.context)==null?void 0:ne.elements.domReference)===H})));if(s&&W&&St(Se(I))===Se(I).body){fe(I)&&I.focus();const Q=D.current,ae=F(),ne=ae[Q]||ae[ae.length-1]||I;fe(ne)&&ne.focus()}(_||!a)&&H&&W&&!A.current&&H!==Nc()&&(N.current=!0,w(!1,B,"focus-out"))})}if(E&&fe(y))return y.addEventListener("focusout",b),y.addEventListener("pointerdown",U),E.addEventListener("focusout",b),()=>{y.removeEventListener("focusout",b),y.removeEventListener("pointerdown",U),E.removeEventListener("focusout",b)}},[r,y,E,I,a,g,z,T,w,f,s,F,_]),c.useEffect(()=>{var U;if(r)return;const b=Array.from((T==null||(U=T.portalNode)==null?void 0:U.querySelectorAll("["+en("portal")+"]"))||[]);if(E){const B=[E,...b,M.current,x.current,S.current.includes("reference")||_?y:null].filter(W=>W!=null),H=a||_?Rc(B,O,!O):Rc(B);return()=>{H()}}},[r,y,E,a,S,T,_,O]),se(()=>{if(r||!fe(I))return;const U=Se(I),b=St(U);queueMicrotask(()=>{const B=V(I),H=L.current,W=(typeof H=="number"?B[H]:H.current)||I,Q=ce(I,b);!R&&!Q&&h&&an(W,{preventScroll:W===I})})},[r,h,I,R,V,L]),se(()=>{if(r||!I)return;let U=!1;const b=Se(I),B=St(b);let W=p.current.openEvent;const Q=v.domReference.current;zi(B);function ae(ne){let{open:rt,reason:yo,event:Lt,nested:oi}=ne;rt&&(W=Lt),yo==="escape-key"&&v.domReference.current&&zi(v.domReference.current),yo==="hover"&&Lt.type==="mouseleave"&&(N.current=!0),yo==="outside-press"&&(oi?(N.current=!1,U=!0):N.current=!(Sg(Lt)||Ep(Lt)))}return C.on("openchange",ae),()=>{C.off("openchange",ae);const ne=St(b),rt=ce(E,ne)||z&&Zn(z.nodesRef.current,g).some(ln=>{var Js;return ce((Js=ln.context)==null?void 0:Js.elements.floating,ne)});(rt||W&&["click","mousedown"].includes(W.type))&&v.domReference.current&&zi(v.domReference.current);const Lt=Q||B,oi=io(Se(Lt).body,cr());queueMicrotask(()=>{let ln=Nc();!ln&&fe(Lt)&&E&&(ln=ay(oi,Lt,E)),k.current&&!N.current&&fe(ln)&&(!(ln!==ne&&ne!==b.body)||rt)&&ln.focus({preventScroll:U})})}},[r,E,I,k,p,v,C,z,g]),se(()=>{if(!r&&T)return T.setFocusManagerState({modal:a,closeOnFocusOut:f,open:h,onOpenChange:w,refs:v}),()=>{T.setFocusManagerState(null)}},[r,T,a,h,w,v,f]),se(()=>{if(r||!I||typeof MutationObserver!="function"||R)return;const U=()=>{const B=I.getAttribute("tabindex"),H=F(),W=St(Se(E)),Q=H.indexOf(W);Q!==-1&&(D.current=Q),S.current.includes("floating")||W!==v.domReference.current&&H.length===0?B!=="0"&&I.setAttribute("tabindex","0"):B!=="-1"&&I.setAttribute("tabindex","-1")};U();const b=new MutationObserver(U);return b.observe(I,{childList:!0,subtree:!0,attributes:!0}),()=>{b.disconnect()}},[r,E,I,v,S,F,R]);function Y(U){return r||!d||!a?null:c.createElement(my,{ref:U==="start"?M:x,onClick:b=>w(!1,b.nativeEvent)},typeof d=="string"?d:"Dismiss")}const we=!r&&O&&(a?!_:!0)&&(P||a);return c.createElement(c.Fragment,null,we&&c.createElement(Fl,{"data-type":"inside",ref:T==null?void 0:T.beforeInsideRef,onFocus:U=>{if(a){const B=V();an(o[0]==="reference"?B[0]:B[B.length-1])}else if(T!=null&&T.preserveTabOrder&&T.portalNode)if(N.current=!1,br(U,T.portalNode)){const B=rm()||y;B==null||B.focus()}else{var b;(b=T.beforeOutsideRef.current)==null||b.focus()}}}),!_&&Y("start"),n,Y("end"),we&&c.createElement(Fl,{"data-type":"inside",ref:T==null?void 0:T.afterInsideRef,onFocus:U=>{if(a)an(V()[0]);else if(T!=null&&T.preserveTabOrder&&T.portalNode)if(f&&(N.current=!0),br(U,T.portalNode)){const B=om()||y;B==null||B.focus()}else{var b;(b=T.afterOutsideRef.current)==null||b.focus()}}}))}function Mc(e){return fe(e.target)&&e.target.tagName==="BUTTON"}function Ic(e){return bs(e)}function vy(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:l}}=e,{enabled:i=!0,event:u="click",toggle:s=!0,ignoreMouse:a=!1,keyboardHandlers:d=!0}=t,f=c.useRef(),h=c.useRef(!1),v=c.useMemo(()=>({onPointerDown(g){f.current=g.pointerType},onMouseDown(g){const w=f.current;g.button===0&&u!=="click"&&(lo(w,!0)&&a||(n&&s&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){const w=f.current;if(u==="mousedown"&&f.current){f.current=void 0;return}lo(w,!0)&&a||(n&&s&&(!o.current.openEvent||o.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){f.current=void 0,!(g.defaultPrevented||!d||Mc(g))&&(g.key===" "&&!Ic(l)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&s),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!d||Mc(g)||Ic(l)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&s),g.nativeEvent,"click"))}}),[o,l,u,a,d,r,n,s]);return c.useMemo(()=>i?{reference:v}:{},[i,v])}const gy={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},yy={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Lc=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function um(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:l}=e,{enabled:i=!0,escapeKey:u=!0,outsidePress:s=!0,outsidePressEvent:a="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:h=!1,bubbles:v,capture:g}=t,w=go(),C=st(typeof s=="function"?s:()=>!1),p=typeof s=="function"?C:s,m=c.useRef(!1),y=c.useRef(!1),{escapeKey:E,outsidePress:R}=Lc(v),{escapeKey:_,outsidePress:O}=Lc(g),S=st(x=>{var N;if(!n||!i||!u||x.key!=="Escape")return;const A=(N=l.current.floatingContext)==null?void 0:N.nodeId,D=w?Zn(w.nodesRef.current,A):[];if(!E&&(x.stopPropagation(),D.length>0)){let P=!0;if(D.forEach(I=>{var F;if((F=I.context)!=null&&F.open&&!I.context.dataRef.current.__escapeKeyBubbles){P=!1;return}}),!P)return}r(!1,Cg(x)?x.nativeEvent:x,"escape-key")}),L=st(x=>{var N;const A=()=>{var D;S(x),(D=xt(x))==null||D.removeEventListener("keydown",A)};(N=xt(x))==null||N.addEventListener("keydown",A)}),k=st(x=>{var N;const A=m.current;m.current=!1;const D=y.current;if(y.current=!1,a==="click"&&D||A||typeof p=="function"&&!p(x))return;const P=xt(x),I="["+en("inert")+"]",F=Se(o.floating).querySelectorAll(I);let V=Z(P)?P:null;for(;V&&!ir(V);){const b=xn(V);if(ir(b)||!Z(b))break;V=b}if(F.length&&Z(P)&&!Rg(P)&&!ce(P,o.floating)&&Array.from(F).every(b=>!ce(V,b)))return;if(fe(P)&&M){const b=P.clientWidth>0&&P.scrollWidth>P.clientWidth,B=P.clientHeight>0&&P.scrollHeight>P.clientHeight;let H=B&&x.offsetX>P.clientWidth;if(B&&Ge(P).direction==="rtl"&&(H=x.offsetX<=P.offsetWidth-P.clientWidth),H||b&&x.offsetY>P.clientHeight)return}const Y=(N=l.current.floatingContext)==null?void 0:N.nodeId,we=w&&Zn(w.nodesRef.current,Y).some(b=>{var B;return Mi(x,(B=b.context)==null?void 0:B.elements.floating)});if(Mi(x,o.floating)||Mi(x,o.domReference)||we)return;const U=w?Zn(w.nodesRef.current,Y):[];if(U.length>0){let b=!0;if(U.forEach(B=>{var H;if((H=B.context)!=null&&H.open&&!B.context.dataRef.current.__outsidePressBubbles){b=!1;return}}),!b)return}r(!1,x,"outside-press")}),z=st(x=>{var N;const A=()=>{var D;k(x),(D=xt(x))==null||D.removeEventListener(a,A)};(N=xt(x))==null||N.addEventListener(a,A)});c.useEffect(()=>{if(!n||!i)return;l.current.__escapeKeyBubbles=E,l.current.__outsidePressBubbles=R;function x(D){r(!1,D,"ancestor-scroll")}const N=Se(o.floating);u&&N.addEventListener("keydown",_?L:S,_),p&&N.addEventListener(a,O?z:k,O);let A=[];return h&&(Z(o.domReference)&&(A=Yt(o.domReference)),Z(o.floating)&&(A=A.concat(Yt(o.floating))),!Z(o.reference)&&o.reference&&o.reference.contextElement&&(A=A.concat(Yt(o.reference.contextElement)))),A=A.filter(D=>{var P;return D!==((P=N.defaultView)==null?void 0:P.visualViewport)}),A.forEach(D=>{D.addEventListener("scroll",x,{passive:!0})}),()=>{u&&N.removeEventListener("keydown",_?L:S,_),p&&N.removeEventListener(a,O?z:k,O),A.forEach(D=>{D.removeEventListener("scroll",x)})}},[l,o,u,p,a,n,r,h,i,E,R,S,_,L,k,O,z]),c.useEffect(()=>{m.current=!1},[p,a]);const T=c.useMemo(()=>({onKeyDown:S,[gy[f]]:x=>{d&&r(!1,x.nativeEvent,"reference-press")}}),[S,r,d,f]),M=c.useMemo(()=>({onKeyDown:S,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[yy[a]]:()=>{m.current=!0}}),[S,a]);return c.useMemo(()=>i?{reference:T,floating:M}:{},[i,T,M])}function wy(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Us(),l=c.useRef({}),[i]=c.useState(()=>q0()),u=Hs()!=null,[s,a]=c.useState(r.reference),d=st((v,g,w)=>{l.current.openEvent=v?g:void 0,i.emit("openchange",{open:v,event:g,reason:w,nested:u}),n==null||n(v,g,w)}),f=c.useMemo(()=>({setPositionReference:a}),[]),h=c.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return c.useMemo(()=>({dataRef:l,open:t,onOpenChange:d,elements:h,events:i,floatingId:o,refs:f}),[t,d,h,i,o,f])}function sm(e){e===void 0&&(e={});const{nodeId:t}=e,n=wy({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[l,i]=c.useState(null),[u,s]=c.useState(null),d=(o==null?void 0:o.reference)||l,f=c.useRef(null),h=go();se(()=>{d&&(f.current=d)},[d]);const v=L0({...e,elements:{...o,...u&&{reference:u}}}),g=c.useCallback(y=>{const E=Z(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),contextElement:y}:y;s(E),v.refs.setReference(E)},[v.refs]),w=c.useCallback(y=>{(Z(y)||y===null)&&(f.current=y,i(y)),(Z(v.refs.reference.current)||v.refs.reference.current===null||y!==null&&!Z(y))&&v.refs.setReference(y)},[v.refs]),C=c.useMemo(()=>({...v.refs,setReference:w,setPositionReference:g,domReference:f}),[v.refs,w,g]),p=c.useMemo(()=>({...v.elements,domReference:d}),[v.elements,d]),m=c.useMemo(()=>({...v,...r,refs:C,elements:p,nodeId:t}),[v,C,p,t,r]);return se(()=>{r.dataRef.current.floatingContext=m;const y=h==null?void 0:h.nodesRef.current.find(E=>E.id===t);y&&(y.context=m)}),c.useMemo(()=>({...v,context:m,refs:C,elements:p}),[v,C,p,m])}function am(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:l,elements:i}=e,{enabled:u=!0,visibleOnly:s=!0}=t,a=c.useRef(!1),d=c.useRef(),f=c.useRef(!0);c.useEffect(()=>{if(!u)return;const v=$e(i.domReference);function g(){!n&&fe(i.domReference)&&i.domReference===St(Se(i.domReference))&&(a.current=!0)}function w(){f.current=!0}return v.addEventListener("blur",g),v.addEventListener("keydown",w,!0),()=>{v.removeEventListener("blur",g),v.removeEventListener("keydown",w,!0)}},[i.domReference,n,u]),c.useEffect(()=>{if(!u)return;function v(g){let{reason:w}=g;(w==="reference-press"||w==="escape-key")&&(a.current=!0)}return o.on("openchange",v),()=>{o.off("openchange",v)}},[o,u]),c.useEffect(()=>()=>{clearTimeout(d.current)},[]);const h=c.useMemo(()=>({onPointerDown(v){Ep(v.nativeEvent)||(f.current=!1)},onMouseLeave(){a.current=!1},onFocus(v){if(a.current)return;const g=xt(v.nativeEvent);if(s&&Z(g))try{if(Sp()&&xg())throw Error();if(!g.matches(":focus-visible"))return}catch{if(!f.current&&!bs(g))return}r(!0,v.nativeEvent,"focus")},onBlur(v){a.current=!1;const g=v.relatedTarget,w=v.nativeEvent,C=Z(g)&&g.hasAttribute(en("focus-guard"))&&g.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var p;const m=St(i.domReference?i.domReference.ownerDocument:document);!g&&m===i.domReference||ce((p=l.current.floatingContext)==null?void 0:p.refs.floating.current,m)||ce(i.domReference,m)||C||r(!1,w,"focus")})}}),[l,i.domReference,r,s]);return c.useMemo(()=>u?{reference:h}:{},[u,h])}const zc="active",Dc="selected";function Di(e,t,n){const r=new Map,o=n==="item";let l=e;if(o&&e){const{[zc]:i,[Dc]:u,...s}=e;l=s}return{...n==="floating"&&{tabIndex:-1,[ju]:""},...l,...t.map(i=>{const u=i?i[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((i,u)=>(u&&Object.entries(u).forEach(s=>{let[a,d]=s;if(!(o&&[zc,Dc].includes(a)))if(a.indexOf("on")===0){if(r.has(a)||r.set(a,[]),typeof d=="function"){var f;(f=r.get(a))==null||f.push(d),i[a]=function(){for(var h,v=arguments.length,g=new Array(v),w=0;wC(...g)).find(C=>C!==void 0)}}}else i[a]=d}),i),{})}}function cm(e){e===void 0&&(e=[]);const t=e.map(u=>u==null?void 0:u.reference),n=e.map(u=>u==null?void 0:u.floating),r=e.map(u=>u==null?void 0:u.item),o=c.useCallback(u=>Di(u,e,"reference"),t),l=c.useCallback(u=>Di(u,e,"floating"),n),i=c.useCallback(u=>Di(u,e,"item"),r);return c.useMemo(()=>({getReferenceProps:o,getFloatingProps:l,getItemProps:i}),[o,l,i])}const Ey=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Sy(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:l=!0,role:i="dialog"}=t,u=(n=Ey.get(i))!=null?n:i,s=Us(),d=Hs()!=null,f=c.useMemo(()=>u==="tooltip"||i==="label"?{["aria-"+(i==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":u==="alertdialog"?"dialog":u,"aria-controls":r?o:void 0,...u==="listbox"&&{role:"combobox"},...u==="menu"&&{id:s},...u==="menu"&&d&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[u,o,d,r,s,i]),h=c.useMemo(()=>{const g={id:o,...u&&{role:u}};return u==="tooltip"||i==="label"?g:{...g,...u==="menu"&&{"aria-labelledby":s}}},[u,o,s,i]),v=c.useCallback(g=>{let{active:w,selected:C}=g;const p={role:"option",...w&&{id:o+"-option"}};switch(i){case"select":return{...p,"aria-selected":w&&C};case"combobox":return{...p,...w&&{"aria-selected":!0}}}return{}},[o,i]);return c.useMemo(()=>l?{reference:f,floating:h,item:v}:{},[l,f,h,v])}function Ac(e,t){const[n,r]=e;let o=!1;const l=t.length;for(let i=0,u=l-1;i=r!=f>=r&&n<=(d-s)*(r-a)/(f-a)+s&&(o=!o)}return o}function xy(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function fm(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,l=!1,i=null,u=null,s=performance.now();function a(f,h){const v=performance.now(),g=v-s;if(i===null||u===null||g===0)return i=f,u=h,s=v,null;const w=f-i,C=h-u,m=Math.sqrt(w*w+C*C)/g;return i=f,u=h,s=v,m}const d=f=>{let{x:h,y:v,placement:g,elements:w,onClose:C,nodeId:p,tree:m}=f;return function(E){function R(){clearTimeout(o),C()}if(clearTimeout(o),!w.domReference||!w.floating||g==null||h==null||v==null)return;const{clientX:_,clientY:O}=E,S=[_,O],L=xt(E),k=E.type==="mouseleave",z=ce(w.floating,L),T=ce(w.domReference,L),M=w.domReference.getBoundingClientRect(),x=w.floating.getBoundingClientRect(),N=g.split("-")[0],A=h>x.right-x.width/2,D=v>x.bottom-x.height/2,P=xy(S,M),I=x.width>M.width,F=x.height>M.height,V=(I?M:x).left,Y=(I?M:x).right,we=(F?M:x).top,U=(F?M:x).bottom;if(z&&(l=!0,!k))return;if(T&&(l=!1),T&&!k){l=!0;return}if(k&&Z(E.relatedTarget)&&ce(w.floating,E.relatedTarget)||m&&Zn(m.nodesRef.current,p).some(H=>{let{context:W}=H;return W==null?void 0:W.open}))return;if(N==="top"&&v>=M.bottom-1||N==="bottom"&&v<=M.top+1||N==="left"&&h>=M.right-1||N==="right"&&h<=M.left+1)return R();let b=[];switch(N){case"top":b=[[V,M.top+1],[V,x.bottom-1],[Y,x.bottom-1],[Y,M.top+1]];break;case"bottom":b=[[V,x.top+1],[V,M.bottom-1],[Y,M.bottom-1],[Y,x.top+1]];break;case"left":b=[[x.right-1,U],[x.right-1,we],[M.left+1,we],[M.left+1,U]];break;case"right":b=[[M.right-1,U],[M.right-1,we],[x.left+1,we],[x.left+1,U]];break}function B(H){let[W,Q]=H;switch(N){case"top":{const ae=[I?W+t/2:A?W+t*4:W-t*4,Q+t+1],ne=[I?W-t/2:A?W+t*4:W-t*4,Q+t+1],rt=[[x.left,A||I?x.bottom-t:x.top],[x.right,A?I?x.bottom-t:x.top:x.bottom-t]];return[ae,ne,...rt]}case"bottom":{const ae=[I?W+t/2:A?W+t*4:W-t*4,Q-t],ne=[I?W-t/2:A?W+t*4:W-t*4,Q-t],rt=[[x.left,A||I?x.top+t:x.bottom],[x.right,A?I?x.top+t:x.bottom:x.top+t]];return[ae,ne,...rt]}case"left":{const ae=[W+t+1,F?Q+t/2:D?Q+t*4:Q-t*4],ne=[W+t+1,F?Q-t/2:D?Q+t*4:Q-t*4];return[...[[D||F?x.right-t:x.left,x.top],[D?F?x.right-t:x.left:x.right-t,x.bottom]],ae,ne]}case"right":{const ae=[W-t,F?Q+t/2:D?Q+t*4:Q-t*4],ne=[W-t,F?Q-t/2:D?Q+t*4:Q-t*4],rt=[[D||F?x.left+t:x.right,x.top],[D?F?x.left+t:x.right:x.left+t,x.bottom]];return[ae,ne,...rt]}}}if(!Ac([_,O],b)){if(l&&!P)return R();if(!k&&r){const H=a(E.clientX,E.clientY);if(H!==null&&H<.1)return R()}Ac([_,O],B([h,v]))?!l&&r&&(o=window.setTimeout(R,40)):R()}}};return d.__options={blockPointerEvents:n},d}let ky=(e={})=>{let t=Tl(),{placement:n="top",visible:r,onVisibleChange:o,middleware:l={flip:!0,shift:!0},autoUpdateOptions:i={},reference:u,ariaStrategy:s="description",id:a=t,...d}=e,[f,h]=dp(!1,r,o),v=c.useCallback(E=>{queueMicrotask(()=>{var R;try{(R=E==null?void 0:E.togglePopover)==null||R.call(E,f)}catch{}})},[f]),g=sm({placement:n,open:f,onOpenChange:h,strategy:"fixed",whileElementsMounted:c.useMemo(()=>f?(...E)=>$p(...E,i):void 0,[i,f]),middleware:c.useMemo(()=>[l.offset!==void 0?Au(l.offset):Au(4),l.flip&&Vp({padding:4}),l.shift&&bp({padding:4}),l.size&&Up({padding:4}),l.autoPlacement&&Hp({padding:4}),l.inline&&Kp(),l.hide&&Wp({padding:4})].filter(Boolean),[l]),...u&&{elements:{reference:u}}}),w=c.useMemo(()=>s==="description"?{"aria-describedby":a}:s==="label"?{"aria-labelledby":a}:{},[s,a]),{delay:C}=ry(g.context,{id:Tl()}),p=cm([Jp(g.context,{delay:C!==0?C:{open:50,close:250},handleClose:fm({buffer:-1/0}),move:!1}),am(g.context),um(g.context,{referencePress:!0,referencePressEvent:"click"})]);c.useEffect(()=>{if(!u)return;let E=_=>_.toLowerCase().substring(2),R={};return Object.entries({...w,...p.getReferenceProps()}).forEach(([_,O])=>{if(typeof O=="function"){let S=L=>{O({...L,nativeEvent:L})};u.addEventListener(E(_),S),R[_]=S}else O&&(R[_]=u.getAttribute(_),u.setAttribute(_,O))}),()=>{Object.entries(R).forEach(([_,O])=>{typeof O=="function"?u.removeEventListener(E(_),O):O?u.setAttribute(_,O):u.removeAttribute(_)})}},[w,u,p]);let m=c.useCallback(E=>p.getReferenceProps({...E,...w}),[p,w]),y=c.useMemo(()=>({...p.getFloatingProps({hidden:!f,"aria-hidden":"true",...d,id:a}),popover:"manual"}),[p,d,a,f]);return c.useMemo(()=>({getReferenceProps:m,floatingProps:y,...g,refs:{...g.refs,setFloating:E=>{g.refs.setFloating(E),v(E)}},floatingStyles:g.context.open?g.floatingStyles:{}}),[m,y,g,v])};const Cy=c.forwardRef((e,t)=>{let{content:n,children:r,portal:o=!0,className:l,style:i,...u}=e,s=ky(u),a=mr(s.refs.setFloating,t);return c.createElement(c.Fragment,null,hp(r,d=>({...s.getReferenceProps(d.props),ref:s.refs.setReference})),e.ariaStrategy!=="none"||s.context.open?c.createElement(Uy,{portal:o},c.createElement(ke,{className:he("iui-tooltip",l),ref:a,style:{...s.floatingStyles,...i},...s.floatingProps},n)):null)}),dm=c.forwardRef((e,t)=>{let{as:n="span",className:r,unhideOnFocus:o=!0,children:l,...i}=e,u=Ys()==="hydrated",s=["div","span","p"].includes(n)?c.createElement(c.Fragment,null,c.createElement(Zs,{css:Ry},c.createElement("slot",null)),u&&l):l;return c.createElement(ke,{as:n,className:he("iui-visually-hidden",r),"data-iui-unhide-on-focus":!!o||void 0,ref:t,...i},s)});let Ry=`
+ :host(:where(:not([data-iui-unhide-on-focus]:is(:focus-within, :active)))) {
+ clip-path: inset(50%) !important;
+ overflow: hidden !important;
+ position: absolute !important;
+ white-space: nowrap !important;
+ block-size: 1px !important;
+ inline-size: 1px !important;
+ }
+`;const pm=c.createContext(void 0);c.forwardRef((e,t)=>{let{children:n,overflowButton:r,overflowPlacement:o="end",orientation:l="horizontal",...i}=e,u=c.useMemo(()=>e.role!=="toolbar"?n:c.Children.map(n,(a,d)=>c.isValidElement(a)?c.createElement(Q0,{key:d,render:a}):a),[n,e.role]),s=r?c.createElement(Py,{orientation:l,overflowButton:r,overflowPlacement:o,ref:t,...i},u):c.createElement(mm,{orientation:l,ref:t,...i},u);return c.createElement(ny,{delay:{open:50,close:250}},c.createElement(pm.Provider,{value:l},e.role==="toolbar"?c.createElement(G0,{orientation:l,render:s,disabledIndices:[]}):s))});let mm=c.forwardRef((e,t)=>{let{orientation:n,className:r,...o}=e;return c.createElement(ke,{className:he("iui-button-group",r),"data-iui-orientation":n==="vertical"?n:void 0,ref:t,...o})}),Py=c.forwardRef((e,t)=>{let{children:n,orientation:r,overflowButton:o,overflowPlacement:l,...i}=e,u=c.useMemo(()=>c.Children.toArray(n).filter(Boolean),[n]);return c.createElement(Cm,{as:mm,itemsCount:u.length,overflowOrientation:r,orientation:r,...i,className:he({"iui-button-group-overflow-x":!!o&&r==="horizontal"},e.className),ref:t},c.createElement(Ty,{overflowButton:o,overflowPlacement:l,items:u}))}),Ty=e=>{let{overflowButton:t,overflowPlacement:n,items:r}=e,{visibleCount:o}=Cm.useContext(),l=n==="start"?r.length-o:o-1;return on};return r.init=e,r.read=Oy,r.write=Ny,r}function Oy(e){return e(this)}function Ny(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const Ai=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,Fi=e=>"init"in e,ji=e=>!!e.write,jl=new WeakMap,My=(e,t)=>{jl.set(e,t),e.catch(()=>{}).finally(()=>jl.delete(e))},Fc=(e,t)=>{const n=jl.get(e);n&&(jl.delete(e),n(t))},jc=(e,t)=>{e.status="fulfilled",e.value=t},$c=(e,t)=>{e.status="rejected",e.reason=t},Iy=e=>typeof(e==null?void 0:e.then)=="function",Cr=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),Bc=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),On=e=>!!e&&"v"in e&&e.v instanceof Promise,Ly=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,$o=e=>{if("e"in e)throw e.e;return e.v},vm=()=>{const e=new WeakMap,t=new WeakMap,n=[],r=new WeakMap;let o,l;(ve?"production":void 0)!=="production"&&(o=new Set,l=new Set);const i=S=>e.get(S),u=(S,L)=>{L.d.forEach((k,z)=>{var T;if(!r.has(z)){const M=i(z);(T=n[n.length-1])==null||T.add(z),r.set(z,[M,new Set]),M&&u(z,M)}r.get(z)[1].add(S)})},s=(S,L)=>{var k;(ve?"production":void 0)!=="production"&&Object.freeze(L);const z=i(S);if(e.set(S,L),r.has(S)||((k=n[n.length-1])==null||k.add(S),r.set(S,[z,new Set]),u(S,L)),On(z)){const T="v"in L?L.v instanceof Promise?L.v:Promise.resolve(L.v):Promise.reject(L.e);z.v!==T&&Fc(z.v,T)}},a=(S,L,k,z)=>{const T=new Map(z?L.d:null);let M=!1;k.forEach((x,N)=>{!x&&Ai(S,N)&&(x=L),x?(T.set(N,x),L.d.get(N)!==x&&(M=!0)):(ve?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(M||L.d.size!==T.size)&&(L.d=T)},d=(S,L,k,z)=>{const T=i(S),M={d:(T==null?void 0:T.d)||new Map,v:L};if(k&&a(S,M,k,z),Cr(T,M)&&T.d===M.d)return T;if(On(T)&&On(M)&&Ly(T,M)){if(T.d===M.d)return T;M.v=T.v}return s(S,M),M},f=(S,L,k,z)=>{if(Iy(L)){let T;const M=()=>{const N=i(S);if(!On(N)||N.v!==x)return;const A=d(S,x,k);t.has(S)&&N.d!==A.d&&R(S,A,N.d)},x=new Promise((N,A)=>{let D=!1;L.then(P=>{D||(D=!0,jc(x,P),N(P),M())},P=>{D||(D=!0,$c(x,P),A(P),M())}),T=P=>{D||(D=!0,P.then(I=>jc(x,I),I=>$c(x,I)),N(P))}});return x.orig=L,x.status="pending",My(x,N=>{N&&T(N),z==null||z()}),d(S,x,k,!0)}return d(S,L,k)},h=(S,L,k)=>{const z=i(S),T={d:(z==null?void 0:z.d)||new Map,e:L};return k&&a(S,T,k),Bc(z,T)&&z.d===T.d?z:(s(S,T),T)},v=(S,L)=>{const k=i(S);if(!L&&k&&(t.has(S)||Array.from(k.d).every(([D,P])=>{if(D===S)return!0;const I=v(D);return I===P||Cr(I,P)})))return k;const z=new Map;let T=!0;const M=D=>{if(Ai(S,D)){const I=i(D);if(I)return z.set(D,I),$o(I);if(Fi(D))return z.set(D,void 0),D.init;throw new Error("no atom init")}const P=v(D);return z.set(D,P),$o(P)};let x,N;const A={get signal(){return x||(x=new AbortController),x.signal},get setSelf(){return(ve?"production":void 0)!=="production"&&!ji(S)&&console.warn("setSelf function cannot be used with read-only atom"),!N&&ji(S)&&(N=(...D)=>{if((ve?"production":void 0)!=="production"&&T&&console.warn("setSelf function cannot be called in sync"),!T)return p(S,...D)}),N}};try{const D=S.read(M,A);return f(S,D,z,()=>x==null?void 0:x.abort())}catch(D){return h(S,D,z)}finally{T=!1}},g=S=>$o(v(S)),w=S=>{const L=x=>{var N,A;const D=new Set((N=t.get(x))==null?void 0:N.t);return(A=r.get(x))==null||A[1].forEach(P=>{D.add(P)}),D},k=new Array,z=new Set,T=x=>{if(!z.has(x)){z.add(x);for(const N of L(x))x!==N&&T(N);k.push(x)}};T(S);const M=new Set([S]);for(let x=k.length-1;x>=0;--x){const N=k[x],A=i(N);if(!A)continue;let D=!1;for(const P of A.d.keys())if(P!==N&&M.has(P)){D=!0;break}if(D){const P=v(N,!0);Cr(A,P)||M.add(N)}}},C=(S,...L)=>{const k=M=>$o(v(M)),z=(M,...x)=>{const N=n.length>0;N||n.push(new Set([M]));let A;if(Ai(S,M)){if(!Fi(M))throw new Error("atom not writable");const D=i(M),P=f(M,x[0]);Cr(D,P)||w(M)}else A=C(M,...x);if(!N){const D=_(n.pop());(ve?"production":void 0)!=="production"&&o.forEach(P=>P({type:"async-write",flushed:D}))}return A};return S.write(k,z,...L)},p=(S,...L)=>{n.push(new Set([S]));const k=C(S,...L),z=_(n.pop());return(ve?"production":void 0)!=="production"&&o.forEach(T=>T({type:"write",flushed:z})),k},m=(S,L,k)=>{var z;const T=t.get(S);if(T)return L&&T.t.add(L),T;const M=k||[];(z=i(S))==null||z.d.forEach((N,A)=>{A!==S&&m(A,S,M)}),v(S);const x={t:new Set(L&&[L]),l:new Set};if(t.set(S,x),(ve?"production":void 0)!=="production"&&l.add(S),ji(S)&&S.onMount){const{onMount:N}=S;M.push(()=>{const A=N((...D)=>p(S,...D));A&&(x.u=A)})}return k||M.forEach(N=>N()),x},y=(S,L)=>!L.l.size&&(!L.t.size||L.t.size===1&&L.t.has(S)),E=(S,L)=>{if(!y(S,L))return;const k=L.u;k&&k(),t.delete(S),(ve?"production":void 0)!=="production"&&l.delete(S);const z=i(S);z?(On(z)&&Fc(z.v),z.d.forEach((T,M)=>{if(M!==S){const x=t.get(M);x&&(x.t.delete(S),E(M,x))}})):(ve?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",S)},R=(S,L,k)=>{const z=new Set(L.d.keys()),T=new Set;k==null||k.forEach((M,x)=>{if(z.has(x)){z.delete(x);return}T.add(x);const N=t.get(x);N&&N.t.delete(S)}),z.forEach(M=>{m(M,S)}),T.forEach(M=>{const x=t.get(M);x&&E(M,x)})},_=S=>{let L;(ve?"production":void 0)!=="production"&&(L=new Set);const k=[],z=T=>{var M;if(!r.has(T))return;const[x,N]=r.get(T);r.delete(T),k.push([T,x]),N.forEach(z),(M=i(T))==null||M.d.forEach((A,D)=>z(D))};if(S.forEach(z),k.forEach(([T,M])=>{const x=i(T);if(!x){(ve?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush");return}if(x!==M){const N=t.get(T);N&&x.d!==(M==null?void 0:M.d)&&R(T,x,M==null?void 0:M.d),N&&!(!On(M)&&(Cr(M,x)||Bc(M,x)))&&(N.l.forEach(A=>A()),(ve?"production":void 0)!=="production"&&L.add(T))}}),(ve?"production":void 0)!=="production")return L},O=(S,L)=>{const k=m(S),z=_([S]),T=k.l;return T.add(L),(ve?"production":void 0)!=="production"&&o.forEach(M=>M({type:"sub",flushed:z})),()=>{T.delete(L),E(S,k),(ve?"production":void 0)!=="production"&&o.forEach(M=>M({type:"unsub"}))}};return(ve?"production":void 0)!=="production"?{get:g,set:p,sub:O,dev_subscribe_store:S=>(o.add(S),()=>{o.delete(S)}),dev_get_mounted_atoms:()=>l.values(),dev_get_atom_state:S=>e.get(S),dev_get_mounted:S=>t.get(S),dev_restore_atoms:S=>{n.push(new Set);for(const[k,z]of S)Fi(k)&&(f(k,z),w(k));const L=_(n.pop());o.forEach(k=>k({type:"restore",flushed:L}))}}:{get:g,set:p,sub:O}};let Rr;const zy=()=>(Rr||(Rr=vm(),(ve?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Rr),globalThis.__JOTAI_DEFAULT_STORE__!==Rr&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Rr),gm=vm,Dy=zy,Ay={BASE_URL:"./",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Fy=c.createContext(void 0),ym=e=>{const t=c.useContext(Fy);return(e==null?void 0:e.store)||t||Dy()},jy=e=>typeof(e==null?void 0:e.then)=="function",$y=Ue.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function bc(e,t){const n=ym(t),[[r,o,l],i]=c.useReducer(a=>{const d=n.get(e);return Object.is(a[0],d)&&a[1]===n&&a[2]===e?a:[d,n,e]},void 0,()=>[n.get(e),n,e]);let u=r;(o!==n||l!==e)&&(i(),u=n.get(e));const s=t==null?void 0:t.delay;return c.useEffect(()=>{const a=n.sub(e,()=>{if(typeof s=="number"){setTimeout(i,s);return}i()});return i(),a},[n,e,s]),c.useDebugValue(u),jy(u)?$y(u):u}function By(e,t){const n=ym(t);return c.useCallback((...o)=>{if((Ay?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}let $l=c.createContext({store:gm(),parentStore:null});const by=({children:e})=>{let t=c.useMemo(()=>gm(),[]),n=c.useContext($l).store;return c.createElement($l.Provider,{value:c.useMemo(()=>({store:t,parentStore:n}),[t,n])},e)},so=e=>{let{store:t,parentStore:n}=c.useContext($l),r=Vy(e),o=bc(e,{store:t}),l=bc(e,{store:n||t});return c.useEffect(()=>{o==null&&l!=null&&r(l)}),[o,r]},Vy=e=>{let{store:t}=c.useContext($l);return By(e,{store:t})},Ks=hm(void 0),Uy=e=>{let{portal:t=!0,children:n}=e,r=js(),o=wm(t);return r?o?qt.createPortal(n,o):n:null},wm=e=>{let[t]=so(Ks);return typeof e=="boolean"?e?t:null:(typeof e.to=="function"?e.to():e.to)??t},Hy="modulepreload",Wy=function(e,t){return new URL(e,t).href},Vc={},Ky=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),s=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));o=Promise.allSettled(n.map(a=>{if(a=Wy(a,r),a in Vc)return;Vc[a]=!0;const d=a.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(!!r)for(let g=i.length-1;g>=0;g--){const w=i[g];if(w.href===a&&(!d||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${f}`))return;const v=document.createElement("link");if(v.rel=d?"stylesheet":Hy,d||(v.as="script"),v.crossOrigin="",v.href=a,s&&v.setAttribute("nonce",s),document.head.appendChild(v),d)return new Promise((g,w)=>{v.addEventListener("load",g),v.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${a}`)))})}))}function l(i){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=i,window.dispatchEvent(u),!u.defaultPrevented)throw i}return o.then(i=>{for(const u of i||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})},Gy=e=>{let{content:t,category:n,type:r="temporary",isVisible:o,link:l,duration:i=7e3,hasCloseButton:u,onRemove:s,animateOutTo:a,domProps:d}=e,f=c.useRef(0),{placement:h}=Fs(Bl).settings,v=h.startsWith("top")?"top":"bottom",[g,w]=c.useState(o??!0),C=o??g,[p,m]=c.useState(0),y=c.useRef(null),[E,R]=c.useState(0),_=()=>v==="top"?{marginBlockEnd:E}:{marginBlockStart:E};c.useEffect(()=>(r==="temporary"&&S(i),()=>{L()}),[i,r]),c.useEffect(()=>{!C&&!a&&R(-p)},[C,a,R,p]);let O=()=>{L(),R(-p),w(!1)},S=T=>{let M=Mu();M&&(f.current=M.setTimeout(()=>{O()},T))},L=()=>{var T;(T=Mu())==null||T.clearTimeout(f.current)},k=T=>{if(T){let{height:M}=T.getBoundingClientRect();m(M)}};return Yy(C,{thisElement:y,animateOutTo:a,onRemove:s})?c.createElement(ke,{ref:y,className:"iui-toast-all",style:{height:p,..._()}},c.createElement("div",{ref:k},c.createElement(Qy,{as:"div",category:n,content:t,link:l,type:r,hasCloseButton:u,onClose:O,...d==null?void 0:d.toastProps,contentProps:d==null?void 0:d.contentProps}))):null},Qy=c.forwardRef((e,t)=>{let{content:n,category:r,type:o="temporary",link:l,hasCloseButton:i,onClose:u,className:s,contentProps:a,...d}=e,f=_1[r];return c.createElement(ke,{className:he(`iui-toast iui-${r}`,s),ref:t,...d},c.createElement(ke,{className:"iui-status-area"},c.createElement(f,{className:"iui-icon"})),c.createElement(ke,{as:"div",...a,className:he("iui-message",a==null?void 0:a.className)},n),l&&c.createElement(qs,{...l,className:he("iui-anchor","iui-toast-anchor",l.className),title:void 0,"data-iui-status":r,"data-iui-underline":!0},l.title),(o==="persisting"||i)&&c.createElement(a1,{size:"small",styleType:"borderless",onClick:u,"aria-label":"Close"},c.createElement(O1,null)))});let Yy=(e,t)=>{let{thisElement:n,animateOutTo:r,onRemove:o}=t,[l,i]=c.useState(e),u=Iu("(prefers-reduced-motion: no-preference)"),s=Pl(o),[a,d]=c.useState(void 0);return c.useEffect(()=>{a!==e&&(d(e),e?h():v());function f(C){let p=0,m=0;if(r&&C){let{x:y,y:E}=C.getBoundingClientRect(),{x:R,y:_}=r.getBoundingClientRect();p=R-y,m=_-E}return{translateX:p,translateY:m}}function h(){i(!0),queueMicrotask(()=>{g()})}function v(){var C;if(u){let p=w();p==null||p.addEventListener("finish",()=>{var m;i(!1),(m=s.current)==null||m.call(s)})}else i(!1),(C=s.current)==null||C.call(s)}function g(){var C,p;u&&((p=(C=n.current)==null?void 0:C.animate)==null||p.call(C,[{transform:"translateY(15%)"},{transform:"translateY(0)"}],{duration:240,fill:"forwards"}))}function w(){var E,R;if(n.current==null||!u)return;let{translateX:C,translateY:p}=f(n.current),m=r?400:120;return(R=(E=n.current)==null?void 0:E.animate)==null?void 0:R.call(E,[{transform:r?`scale(0.9) translate(${C}px,${p}px)`:"scale(0.9)",opacity:0,transitionDuration:`${m}ms`,transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"}],{duration:m,iterations:1,fill:"forwards"})}},[e,a,r,u,n,i,s]),l};const Uc=()=>{let{toasts:e,settings:t}=Fs(Bl);return c.createElement(ke,{className:he("iui-toast-wrapper",`iui-placement-${t.placement}`)},e.map(n=>c.createElement(Gy,{key:n.id,...n})))},Xy=({children:e,inherit:t=!1})=>{let[n,r]=c.useReducer(Zy,{toasts:[],settings:{order:"auto",placement:"top"}}),o=c.useContext(Hc),l=c.useContext(Bl),i=l&&t,u=i?o:r,s=i?l:n;return c.createElement(Hc.Provider,{value:u},c.createElement(Bl.Provider,{value:s},e))};let Zy=(e,t)=>{if(t.type==="add"){let n=e.settings.order;return n==="auto"&&(n=e.settings.placement.startsWith("top")?"descending":"ascending"),{...e,toasts:[...n==="ascending"?e.toasts:[],t.toast,...n==="descending"?e.toasts:[]]}}return t.type==="remove"?{...e,toasts:e.toasts.filter(n=>n.id!==t.id)}:t.type==="close-all"?{...e,toasts:e.toasts.map(n=>({...n,isVisible:!1}))}:t.type==="settings"?{...e,settings:{...e.settings,...t.settings}}:e};const Bl=c.createContext(void 0);let Hc=c.createContext(void 0),qy="ESM";const Gs={version:pp,module:qy};let Jy=Gs.version.replace(/\./g,""),Em=hm(void 0);const Sm=c.forwardRef((e,t)=>{var n,r;let{theme:o="inherit",children:l,themeOptions:i={},portalContainer:u,includeCss:s=o==="inherit",...a}=e;l1();let[d,f]=c.useState(null),h=t1(d),v=o==="inherit"?h.theme||"light":o;(n=i).applyBackground??(n.applyBackground=!h.theme),(r=i).highContrast??(r.highContrast=o==="inherit"?h.highContrast:void 0);let[g]=so(Ks),w=c.useMemo(()=>({theme:v,themeOptions:i}),[v,JSON.stringify(i)]);return c.createElement(by,null,c.createElement(w1,null,c.createElement(As.Provider,{value:w},c.createElement(Xy,{inherit:o==="inherit"&&!u},s&&d?c.createElement(r1,{root:d}):null,c.createElement(e1,{theme:v,themeOptions:i,ref:mr(t,f,o1),...a},l,c.createElement(n1,{theme:v,themeOptions:i,portalContainerProp:u,portalContainerFromParent:g,isInheritingTheme:o==="inherit"}))))))});let e1=c.forwardRef((e,t)=>{let[n,r]=so(Em),o=c.useCallback(l=>{l&&l.ownerDocument!==n&&r(l.ownerDocument)},[n,r]);return c.createElement(xm,{...e,ref:mr(o,t)})}),xm=c.forwardRef((e,t)=>{let{theme:n,children:r,themeOptions:o,className:l,...i}=e,u=Iu("(prefers-color-scheme: dark)"),s=Iu("(prefers-contrast: more)"),a=n==="dark"||n==="os"&&u,d=(o==null?void 0:o.highContrast)??s,f=o==null?void 0:o.applyBackground;return c.createElement(ke,{className:he("iui-root",{"iui-root-background":f},l),"data-iui-theme":a?"dark":"light","data-iui-contrast":d?"high":"default",ref:t,...i},r)}),t1=e=>{var u,s;let t=c.useContext(As),[n,r]=c.useState(t==null?void 0:t.theme),[o,l]=c.useState((u=t==null?void 0:t.themeOptions)==null?void 0:u.highContrast),i=Pl(t==null?void 0:t.theme);return lr(()=>{var h;if(i.current)return;let a=(h=e==null?void 0:e.parentElement)==null?void 0:h.closest("[data-iui-theme]");if(!a)return;let d=()=>{r(a==null?void 0:a.getAttribute("data-iui-theme")),l((a==null?void 0:a.getAttribute("data-iui-contrast"))==="high")};d();let f=new MutationObserver(()=>d());return f.observe(a,{attributes:!0,attributeFilter:["data-iui-theme","data-iui-contrast"]}),()=>{f.disconnect()}},[e,i]),{theme:(t==null?void 0:t.theme)??n,highContrast:((s=t==null?void 0:t.themeOptions)==null?void 0:s.highContrast)??o,context:t}},n1=c.memo(({portalContainerProp:e,portalContainerFromParent:t,isInheritingTheme:n,theme:r,themeOptions:o})=>{let[l]=so(Em),[i,u]=so(Ks),s=!e&&(!n||!t||!!l&&t.ownerDocument!==l),a=Tl();return c.useEffect(()=>{if(s)return;let f=e||t;f&&f!==i&&u(f)}),Ys()==="hydrated"?s&&l?qt.createPortal(c.createElement(xm,{theme:r,themeOptions:{...o,applyBackground:!1},"data-iui-portal":!0,style:{display:"contents"},ref:u,id:a},c.createElement(Uc,null)),l.body):e?qt.createPortal(c.createElement(Uc,null),e):null:null}),r1=({root:e})=>(lr(()=>{getComputedStyle(e).getPropertyValue(`--_iui-v${Jy}`)!=="yes"&&(ho||(async()=>{try{await Ky(()=>Promise.resolve().then(()=>j1),void 0,import.meta.url)}catch(t){console.log("Error loading styles.css locally",t);let n=await vg(`https://cdn.jsdelivr.net/npm/@itwin/itwinui-react@${Gs.version}/styles.css`);document.adoptedStyleSheets=[...document.adoptedStyleSheets,n.default]}})())},[e]),c.createElement(c.Fragment,null)),o1=()=>{var e;let t=globalThis;(e=t).__iui||(e.__iui={versions:new Set}),t.__iui.versions.add(JSON.stringify(Gs))},l1=()=>{let e=c.useRef(!1),t="https://cdn.jsdelivr.net/npm/wicg-inert@3.1.2/dist/inert.min.js";c.useEffect(()=>{(async()=>!HTMLElement.prototype.hasOwnProperty("inert")&&!e.current&&!ho&&(await new Function("url","return import(url)")(t),e.current=!0))()},[])};const Qs=c.createContext(void 0),i1=c.createContext(void 0),u1=e=>{var S,L;let{placement:t="bottom-start",visible:n,onVisibleChange:r,closeOnOutsideClick:o,autoUpdateOptions:l,matchWidth:i,interactions:u,role:s,...a}=e,d=c.useMemo(()=>({...u,click:(u==null?void 0:u.click)??!0,dismiss:(u==null?void 0:u.dismiss)??!0,hover:(u==null?void 0:u.hover)??!1,focus:(u==null?void 0:u.focus)??!1}),[u]),f=go(),h=c.useMemo(()=>{var k,z,T,M;return{...e.middleware,flip:((k=e.middleware)==null?void 0:k.flip)??!0,shift:((z=e.middleware)==null?void 0:z.shift)??!0,size:((T=e.middleware)==null?void 0:T.size)??!0,hide:((M=e.middleware)==null?void 0:M.hide)||!ho}},[e.middleware]),v=typeof h.size=="boolean"?"400px":(S=h.size)==null?void 0:S.maxHeight,[g,w]=dp(!1,n,r),C=sm({placement:t,open:g,onOpenChange:w,strategy:"fixed",whileElementsMounted:c.useMemo(()=>g?(...k)=>$p(...k,l):void 0,[l,g]),...a,middleware:c.useMemo(()=>[h.offset!==void 0&&Au(h.offset),h.flip&&Vp({padding:4}),h.shift&&bp({padding:4}),(i||h.size)&&Up({padding:4,apply:({rects:k,availableHeight:z})=>{h.size&&R(Math.round(z)),i&&y(k.reference.width)}}),h.autoPlacement&&Hp({padding:4}),h.inline&&Kp(),h.hide&&Wp({padding:4})].filter(Boolean),[i,h])}),p=cm([vy(C.context,{enabled:!!d.click,...d.click}),um(C.context,{enabled:!!d.dismiss,outsidePress:o,bubbles:f!=null,...d.dismiss}),Jp(C.context,{enabled:!!d.hover,delay:100,handleClose:fm({buffer:1,blockPointerEvents:!0}),move:!1,...d.hover}),am(C.context,{enabled:!!d.focus,...d.focus}),Sy(C.context,{role:"dialog",enabled:!!s})]),[m,y]=c.useState(),[E,R]=c.useState(),_=c.useCallback(k=>{var z;return p.getFloatingProps({...k,style:{...C.floatingStyles,...h.size&&E&&{maxBlockSize:`min(${E}px, ${v})`},zIndex:9999,...i&&m?{minInlineSize:`${m}px`,maxInlineSize:`min(${2*m}px, 90vw)`}:{},...h.hide&&((z=C.middlewareData.hide)==null?void 0:z.referenceHidden)&&{visibility:"hidden"},...k==null?void 0:k.style}})},[p,C.floatingStyles,(L=C.middlewareData.hide)==null?void 0:L.referenceHidden,h.size,h.hide,E,v,i,m]),O=c.useCallback(k=>p.getReferenceProps({...k,onClick:Jv(k==null?void 0:k.onClick,()=>{d.click&&n&&w(!1)})}),[p,d.click,n,w]);return c.useMemo(()=>({open:g,onOpenChange:w,getReferenceProps:O,getFloatingProps:_,...C}),[g,w,_,C,O])};c.forwardRef((e,t)=>{var O;let{portal:n=!0,visible:r,placement:o="bottom-start",onVisibleChange:l,closeOnOutsideClick:i=!0,middleware:u,positionReference:s,className:a,children:d,content:f,applyBackground:h=!1,...v}=e,g=u1({visible:r,placement:o,onVisibleChange:l,closeOnOutsideClick:i,role:"dialog",middleware:u}),[w,C]=c.useState(),p=mr(g.refs.setFloating,t,C),m=`${Tl()}-trigger`,y=!!e["aria-labelledby"]||!!e["aria-label"];lr(()=>{if(s)return g.refs.setPositionReference(s),()=>void g.refs.setPositionReference(null)},[g.refs,s]);let[E,R]=c.useState(),_=c.useMemo(()=>({setInitialFocus:R}),[]);return c.createElement(c.Fragment,null,c.createElement(Qs.Provider,{value:g.open},hp(d,S=>({id:S.props.id||m,...g.getReferenceProps(S.props),ref:g.refs.setReference}))),g.open?c.createElement(i1.Provider,{value:_},c.createElement(s1,{portal:n},c.createElement(Sm,{portalContainer:w},c.createElement(km,null),c.createElement(hy,{context:g.context,modal:!1,initialFocus:E},c.createElement(ke,{className:he({"iui-popover-surface":h},a),"aria-labelledby":y||(O=g.refs.domReference.current)==null?void 0:O.id,...g.getFloatingProps(v),ref:p},f))))):null)});let s1=({children:e,portal:t=!0})=>{let n=wm(t);return c.createElement(dy,{key:n==null?void 0:n.id,root:n},c.createElement(km,null),e)},km=c.memo(()=>c.createElement(Zs,{css:`
+ :host {
+ display: contents;
+ }
+ `},c.createElement("slot",null)));const a1=c.forwardRef((e,t)=>{let{isActive:n,children:r,styleType:o="default",size:l,className:i,title:u,label:s=u,iconProps:a,labelProps:d,...f}=e,h=c.useContext(pm),v=c.useContext(Qs),g=c.createElement(qs,{ref:t,className:he("iui-button","iui-field",i),"data-iui-variant":o!=="default"?o:void 0,"data-iui-size":l,"data-iui-active":n,"data-iui-has-popover":v?"open":void 0,"aria-pressed":n,...f},c.createElement(ke,{as:"span","aria-hidden":!0,...a,className:he("iui-button-icon",a==null?void 0:a.className)},r),s?c.createElement(dm,null,s):null);return s?c.createElement(Cy,{placement:h==="vertical"?"right":"top",...d,content:s,ariaStrategy:"none"},g):g});let c1=Ue.forwardRef((e,t)=>{let{itemsCount:n,children:r,overflowOrientation:o,...l}=e,[i,u]=p1(n,o),s=Ue.useMemo(()=>({visibleCount:u,itemsCount:n}),[n,u]);return Ue.createElement(Rm.Provider,{value:s},Ue.createElement(ke,{ref:mr(t,i),...l},r))}),f1=e=>{let{children:t}=e,{visibleCount:n,itemsCount:r}=Pm();return n{let{itemsCount:n,overflowOrientation:r="horizontal",...o}=e,[l,i]=Ue.useState(null),[u]=ng(i),s=mr(u,t),a=`${n}${r==="vertical"?l==null?void 0:l.height:l==null?void 0:l.width}`;return Ue.createElement(c1,{...o,key:a,ref:s,itemsCount:n,overflowOrientation:r})});const Cm=Object.assign(d1,{OverflowNode:f1,useContext:Pm});let Rm=Ue.createContext(void 0),p1=(e,t="horizontal")=>{let[n,r]=Ue.useReducer(v1,{itemsCount:e},h1),o=Ue.useRef(null),l=Ue.useRef(!1);return lr(()=>{let{minGuess:i,maxGuess:u,isStabilized:s,visibleCount:a}=n;if(s)return;d();function d(){if(!(s||l.current||ho))try{if(l.current=!0,o.current==null)return;let f=t==="horizontal"?"Width":"Height",h=o.current[`offset${f}`],v=o.current[`scroll${f}`],g=h{let t=Math.min(e,m1);return ho?{isStabilized:!0,minGuess:null,maxGuess:null,itemsCount:e,visibleCount:e}:{isStabilized:!1,minGuess:0,maxGuess:t,itemsCount:e,visibleCount:t}},v1=(e,t)=>{let n=({visibleCount:r,itemsCount:o})=>Math.min(o,r);switch(t.type){case"decreaseMaxGuess":case"increaseMinGuess":if(e.isStabilized)return e;let r=e.minGuess,o=e.maxGuess;t.type==="decreaseMaxGuess"?o=t.currentState.visibleCount:r=t.currentState.visibleCount;let l=Math.floor((r+o)/2);return{...e,isStabilized:!1,minGuess:r,maxGuess:o,visibleCount:n({visibleCount:l,itemsCount:e.itemsCount})};case"shiftGuessRangeForward":if(e.isStabilized)return e;let i=2*e.maxGuess;return{...e,isStabilized:!1,minGuess:e.maxGuess,maxGuess:i,visibleCount:n({visibleCount:i,itemsCount:e.itemsCount})};case"stabilize":return{...e,isStabilized:!0,minGuess:null,maxGuess:null};default:return e}};function Pm(){return Fs(Rm)}let $u=c.createContext(!1),g1=()=>()=>{},y1=typeof window>"u";const Ys=()=>{let e=fp(g1,()=>!1,()=>!y1),t=c.useContext($u),n=js();if(t||n)return"hydrated";if(e)return"hydrating"},w1=({children:e})=>{let[t,n]=c.useState(c.useContext($u)),r=c.useCallback(()=>n(!0),[]);return c.createElement($u.Provider,{value:t},t?null:c.createElement(E1,{onHydrate:r}),e)};let E1=({onHydrate:e})=>(c.useEffect(()=>void e(),[e]),null),Xs=typeof document<"u",S1=Xs&&"shadowRootMode"in HTMLTemplateElement.prototype,Bu=Xs&&"adoptedStyleSheets"in Document.prototype;const Zs=({children:e,css:t})=>{let n=Ys()==="hydrating";return Xs?S1&&n?null:c.createElement(x1,{css:t},e):c.createElement("template",{shadowrootmode:"open"},t&&c.createElement("style",null,t),e)};let x1=({children:e,css:t})=>{let n=c.useRef(null),r=k1(n,{css:t}),o=!Bu&&t?c.createElement("style",null,t):null;return r?qt.createPortal(c.createElement(c.Fragment,null,o,e),r):c.createElement("template",{ref:n})};function k1(e,{css:t=""}){let[n,r]=c.useState(null),o=c.useRef(),l=Pl(t),i=Pl(n),u=c.useCallback(s=>{if(s&&Bu){let a=s.ownerDocument.defaultView||globalThis;if(o.current instanceof a.CSSStyleSheet)return;o.current=new a.CSSStyleSheet,s.adoptedStyleSheets.push(o.current),l.current&&o.current.replaceSync(l.current)}},[l]);return lr(()=>{var d;let s=(d=e.current)==null?void 0:d.parentElement;if(!s)return;let a=()=>{s.shadowRoot&&i.current===null&&s.shadowRoot.replaceChildren();let f=s.shadowRoot||s.attachShadow({mode:"open"});u(f),qt.flushSync(()=>r(f))};return queueMicrotask(()=>{a()}),()=>void r(null)},[e,u,i]),lr(()=>{var s;t&&Bu&&((s=o.current)==null||s.replaceSync(t))},[t]),c.useEffect(()=>{let s=()=>u(i.current);return window.addEventListener("appui:reparent",s),()=>{window.removeEventListener("appui:reparent",s)}},[u,i]),n}const qs=c.forwardRef((e,t)=>{let{as:n="button",disabled:r,htmlDisabled:o,...l}=e,i=js(),u=r&&!o&&i&&n==="button",s=a=>d=>{r||a==null||a(d)};return c.createElement(ke,{as:n,type:n==="button"?"button":void 0,ref:t,"aria-disabled":u?"true":void 0,"data-iui-disabled":r?"true":void 0,disabled:!!(o??(!i&&r))||void 0,...l,className:he("iui-button-base",e.className),onClick:s(e.onClick),onPointerDown:s(e.onPointerDown),onPointerUp:s(e.onPointerUp)})}),Pn=mp.svg("",{viewBox:"0 0 16 16",width:16,height:16}),C1=e=>c.createElement(Pn,e,c.createElement("path",{d:"M8 0a8 8 0 1 0 8 8 8 8 0 0 0-8-8zm1.2 3.2a.923.923 0 0 1 .997.843l.003.057a1.31 1.31 0 0 1-1.3 1.2.945.945 0 0 1-1-1 1.228 1.228 0 0 1 1.3-1.1zm-2 9.6c-.5 0-.9-.3-.5-1.7l.6-2.4c.1-.4.1-.5 0-.5-.2-.1-.9.2-1.3.5l-.2-.5a6.497 6.497 0 0 1 3.3-1.6c.5 0 .6.6.3 1.6l-.7 2.6c-.1.5-.1.6.1.6a2.003 2.003 0 0 0 1.1-.6l.3.4a5.769 5.769 0 0 1-3 1.6z"})),R1=e=>c.createElement(Pn,e,c.createElement("path",{d:"M9 12H7v-2h2v2Zm0-3H7V4h2v5Zm2.314-9H4.686L0 4.686v6.628L4.686 16h6.628L16 11.314V4.686L11.314 0Z"})),P1=e=>c.createElement(Pn,e,c.createElement("path",{d:"m8 0a8 8 0 1 0 8 8 8 8 0 0 0 -8-8zm-1.35 12-3.65-3.41 1.4-1.3 2.36 2.2 4.83-4.49 1.41 1.29z"})),T1=e=>c.createElement(Pn,e,c.createElement("path",{d:"m15.86807 13.26721-6.77-11.62a1.15 1.15 0 0 0 -1.1-.67 1.17 1.17 0 0 0 -1.1.69l-6.77 11.59a1.2 1.2 0 0 0 1.1 1.72h13.45a1.19 1.19 0 0 0 1.19-1.71zm-6.87-.29h-2v-2h2zm0-3h-2v-5h2z"})),_1={negative:e=>c.createElement(R1,{"aria-hidden":!0,...e}),positive:e=>c.createElement(P1,{"aria-hidden":!0,...e}),warning:e=>c.createElement(T1,{"aria-hidden":!0,...e}),informational:e=>c.createElement(C1,{"aria-hidden":!0,...e})},O1=e=>c.createElement(Pn,e,c.createElement("path",{d:"m12.5 2-4.5 4.5-4.5-4.5-1.5 1.5 4.5 4.5-4.5 4.5 1.5 1.5 4.5-4.5 4.5 4.5 1.5-1.5-4.5-4.5 4.5-4.5z"})),N1=e=>c.createElement(Pn,e,c.createElement("path",{d:"m6 13.4-4.7-4.7 1.4-1.4 3.3 3.3 7.3-7.3 1.4 1.4z"})),Wc=e=>c.createElement(Pn,e,c.createElement("path",{d:"M6.25 1h3.5v3.19l-.676 6.408H6.91L6.25 4.19zm.12 10.572h3.268V15H6.37z"})),M1=c.forwardRef((e,t)=>{let{value:n,indeterminate:r=n===void 0,status:o,size:l,className:i,style:u,children:s,...a}=e,d={negative:c.createElement(Wc,{"aria-hidden":!0}),positive:c.createElement(N1,{"aria-hidden":!0}),warning:c.createElement(Wc,{"aria-hidden":!0})};return c.createElement(ke,{className:he("iui-progress-indicator-radial",i),"data-iui-size":l,"data-iui-status":o,"data-iui-indeterminate":r?"true":void 0,ref:t,style:{...n!==void 0&&{"--iui-progress-percentage":`${eg(n,0,100)}%`},...u},...a},c.createElement(Zs,null,n!==100&&c.createElement(dm,null,"Loading."),c.createElement("slot",null)),l!=="x-small"?s??(o?d[o]:null):null)}),I1=c.forwardRef((e,t)=>{let{children:n,className:r,size:o,styleType:l="default",startIcon:i,endIcon:u,labelProps:s,startIconProps:a,endIconProps:d,stretched:f,loading:h,disabled:v,...g}=e,w=c.useContext(Qs);return c.createElement(qs,{ref:t,className:he("iui-button","iui-field",r),"data-iui-variant":l!=="default"?l:void 0,"data-iui-size":o,"data-iui-loading":h?"true":void 0,"data-iui-has-popover":w?"open":void 0,disabled:v||h,...g,style:{"--_iui-width":f?"100%":void 0,...e.style}},i&&c.createElement(ke,{as:"span","aria-hidden":!0,...a,className:he("iui-button-icon",a==null?void 0:a.className)},i),n&&c.createElement(ke,{as:"span",...s,className:he("iui-button-label",s==null?void 0:s.className)},n),u&&c.createElement(ke,{as:"span","aria-hidden":!0,...d,className:he("iui-button-icon",d==null?void 0:d.className)},u),h&&c.createElement(M1,{size:o==="small"?"x-small":"small",className:"iui-button-spinner","aria-hidden":!0}))}),L1=()=>be.jsx(be.Fragment,{children:be.jsx(I1,{children:"Hello world"})}),z1=e=>c.createElement("svg",{viewBox:"0 0 16 16",width:"1rem",height:"1rem",fill:"var(--iui-color-icon-muted, currentColor)",...e},c.createElement("path",{d:"M8.406 14.614a6.637 6.637 0 11.339-13.266l.862.046-.47.725a5.39 5.39 0 00-.493.981 5.646 5.646 0 003.226 7.293 5.71 5.71 0 001.75.376l.85.047-.454.72a6.638 6.638 0 01-5.61 3.078zM7.87 2.363a5.64 5.64 0 104.813 9.297A6.645 6.645 0 017.71 2.739a7.26 7.26 0 01.159-.376z"})),D1=e=>c.createElement("svg",{viewBox:"0 0 16 16",width:"1rem",height:"1rem",fill:"var(--iui-color-icon-muted, currentColor)",...e},c.createElement("path",{d:"M8.063 4.899A3.122 3.122 0 114.941 8.02a3.126 3.126 0 013.122-3.122m0-1a4.122 4.122 0 104.122 4.122 4.127 4.127 0 00-4.122-4.122zm0-.896a.52.52 0 00.518-.518V.518A.52.52 0 008.063 0a.52.52 0 00-.518.518v1.966a.519.519 0 00.518.518zM4.51 4.421a.52.52 0 000-.732L3.12 2.3a.519.519 0 00-.732 0 .519.519 0 000 .732l1.39 1.39a.52.52 0 00.732 0zM3.002 7.937a.52.52 0 00-.518-.518H.518A.52.52 0 000 7.937a.52.52 0 00.518.518h1.966a.519.519 0 00.518-.518zm1.419 3.553a.52.52 0 00-.732 0L2.3 12.88a.519.519 0 000 .732.519.519 0 00.732 0l1.39-1.39a.52.52 0 000-.732zm3.516 1.508a.52.52 0 00-.518.518v1.966a.52.52 0 00.518.518.52.52 0 00.518-.518v-1.966a.519.519 0 00-.518-.518zm3.553-1.419a.52.52 0 000 .732l1.39 1.39a.519.519 0 00.732 0 .519.519 0 000-.732l-1.39-1.39a.52.52 0 00-.732 0zm1.508-3.516a.52.52 0 00.518.518h1.966A.52.52 0 0016 8.063a.52.52 0 00-.518-.518h-1.966a.519.519 0 00-.518.518zM11.579 4.51a.52.52 0 00.732 0l1.39-1.39a.519.519 0 000-.732.519.519 0 00-.732 0l-1.39 1.39a.52.52 0 000 .732z"})),A1="_main_1op3q_1",F1="_themeButton_1op3q_7",Kc={main:A1,themeButton:F1},j1=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),$1=()=>{const[e,t]=c.useState(()=>matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");return be.jsx(be.Fragment,{children:be.jsx(Sm,{theme:e,children:be.jsxs("main",{className:Kc.main,children:[be.jsx("button",{className:Kc.themeButton,"aria-label":"Toggle theme",onClick:()=>t(n=>n==="dark"?"light":"dark"),children:e==="dark"?be.jsx(z1,{}):be.jsx(D1,{})}),be.jsx(L1,{})]})})})};sp(document.getElementById("root")).render(be.jsx(c.StrictMode,{children:be.jsx($1,{})}));
diff --git a/2419/vite/index.html b/2419/vite/index.html
new file mode 100644
index 00000000000..758e5193945
--- /dev/null
+++ b/2419/vite/index.html
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+ iTwinUI-react + vite
+
+
+
+
+
+
+
+