react-window 2.0.0-alpha.7 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +29 -2
  2. package/dist/react-window.cjs +1 -1
  3. package/dist/react-window.cjs.map +1 -1
  4. package/dist/react-window.js +0 -2
  5. package/dist/react-window.js.map +1 -1
  6. package/docs/assets/CellComponent.example-e4JJmmZM.js +2 -0
  7. package/docs/assets/CellComponent.example-e4JJmmZM.js.map +1 -0
  8. package/docs/assets/ComponentProps-DMkeake1.js +2 -0
  9. package/docs/assets/ComponentProps-DMkeake1.js.map +1 -0
  10. package/docs/assets/ContinueLink-CbPhCk1k.js +2 -0
  11. package/docs/assets/ContinueLink-CbPhCk1k.js.map +1 -0
  12. package/docs/assets/FixedRowHeightsRoute-D8GuxxOL.js +2 -0
  13. package/docs/assets/FixedRowHeightsRoute-D8GuxxOL.js.map +1 -0
  14. package/docs/assets/FormattedCode-CAmuOSRw.js +2 -0
  15. package/docs/assets/FormattedCode-CAmuOSRw.js.map +1 -0
  16. package/docs/assets/FormattedCode-nwWF-WcI.css +1 -0
  17. package/docs/assets/GettingStartedRoute-zN9jVy3e.js +2 -0
  18. package/docs/assets/GettingStartedRoute-zN9jVy3e.js.map +1 -0
  19. package/docs/assets/Grid-DH-j7ODh.js +2 -0
  20. package/docs/assets/Grid-DH-j7ODh.js.map +1 -0
  21. package/docs/assets/Header-BYp8JKXz.js +2 -0
  22. package/docs/assets/Header-BYp8JKXz.js.map +1 -0
  23. package/docs/assets/HorizontalListsRoute-rNcKbQ1k.js +2 -0
  24. package/docs/assets/HorizontalListsRoute-rNcKbQ1k.js.map +1 -0
  25. package/docs/assets/ImperativeApiRoute-DD9Z7HWg.js +2 -0
  26. package/docs/assets/ImperativeApiRoute-DD9Z7HWg.js.map +1 -0
  27. package/docs/assets/ImperativeApiRoute-DntU9ReR.js +2 -0
  28. package/docs/assets/ImperativeApiRoute-DntU9ReR.js.map +1 -0
  29. package/docs/assets/List-C4KHYcVU.js +2 -0
  30. package/docs/assets/List-C4KHYcVU.js.map +1 -0
  31. package/docs/assets/LoadingSpinner-Z5HQViRD.js +2 -0
  32. package/docs/assets/LoadingSpinner-Z5HQViRD.js.map +1 -0
  33. package/docs/assets/PageNotFound-B0nx-Cz_.js +2 -0
  34. package/docs/assets/PageNotFound-B0nx-Cz_.js.map +1 -0
  35. package/docs/assets/PlatformRequirementsRoute-C00ZSzCF.js +2 -0
  36. package/docs/assets/PlatformRequirementsRoute-C00ZSzCF.js.map +1 -0
  37. package/docs/assets/PropsRoute-D77WXdPD.js +2 -0
  38. package/docs/assets/PropsRoute-D77WXdPD.js.map +1 -0
  39. package/docs/assets/PropsRoute-D9jETWHk.js +2 -0
  40. package/docs/assets/PropsRoute-D9jETWHk.js.map +1 -0
  41. package/docs/assets/RTLGridsRoute-C49T7mLs.js +2 -0
  42. package/docs/assets/RTLGridsRoute-C49T7mLs.js.map +1 -0
  43. package/docs/assets/RenderingGridRoute-pTuxJ89O.js +2 -0
  44. package/docs/assets/RenderingGridRoute-pTuxJ89O.js.map +1 -0
  45. package/docs/assets/ScratchpadRoute-AXfI00Be.js +2 -0
  46. package/docs/assets/ScratchpadRoute-AXfI00Be.js.map +1 -0
  47. package/docs/assets/Select-C5ovWBbK.js +2 -0
  48. package/docs/assets/Select-C5ovWBbK.js.map +1 -0
  49. package/docs/assets/SupportRoute-C1V_AF9b.js +2 -0
  50. package/docs/assets/SupportRoute-C1V_AF9b.js.map +1 -0
  51. package/docs/assets/TabularDataRoute-B79B4UDS.js +2 -0
  52. package/docs/assets/TabularDataRoute-B79B4UDS.js.map +1 -0
  53. package/docs/assets/VariableRowHeightsRoute-Bf7uZQG0.js +2 -0
  54. package/docs/assets/VariableRowHeightsRoute-Bf7uZQG0.js.map +1 -0
  55. package/docs/assets/arePropsEqual-D3jAKwxp.js +2 -0
  56. package/docs/assets/arePropsEqual-D3jAKwxp.js.map +1 -0
  57. package/docs/assets/index-B_YQ7rlN.js +3 -0
  58. package/docs/assets/index-B_YQ7rlN.js.map +1 -0
  59. package/docs/assets/index-CQLn-JKf.css +1 -0
  60. package/docs/assets/useCitiesByState-azL1M3ue.js +2 -0
  61. package/docs/assets/useCitiesByState-azL1M3ue.js.map +1 -0
  62. package/docs/assets/useContacts-BItVOkyi.js +2 -0
  63. package/docs/assets/useContacts-BItVOkyi.js.map +1 -0
  64. package/docs/index.html +10 -4
  65. package/docs/robots.txt +2 -0
  66. package/docs/stats.html +1 -1
  67. package/package.json +4 -1
  68. package/docs/assets/index-BLMZr8Ze.css +0 -1
  69. package/docs/assets/index-Cvqxb3fG.js +0 -68
@@ -1,68 +0,0 @@
1
- function $1(n,r){for(var i=0;i<r.length;i++){const u=r[i];if(typeof u!="string"&&!Array.isArray(u)){for(const s in u)if(s!=="default"&&!(s in n)){const f=Object.getOwnPropertyDescriptor(u,s);f&&Object.defineProperty(n,s,f.get?f:{enumerable:!0,get:()=>u[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function i(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(s){if(s.ep)return;s.ep=!0;const f=i(s);fetch(s.href,f)}})();function U1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Oc={exports:{}},Fr={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Pp;function k1(){if(Pp)return Fr;Pp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(u,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var p in s)p!=="key"&&(f[p]=s[p])}else f=s;return s=f.ref,{$$typeof:n,type:u,key:d,ref:s!==void 0?s:null,props:f}}return Fr.Fragment=r,Fr.jsx=i,Fr.jsxs=i,Fr}var Wp;function B1(){return Wp||(Wp=1,Oc.exports=k1()),Oc.exports}var y=B1(),Ac={exports:{}},ye={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Ip;function q1(){if(Ip)return ye;Ip=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.iterator;function S(O){return O===null||typeof O!="object"?null:(O=E&&O[E]||O["@@iterator"],typeof O=="function"?O:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,R={};function M(O,X,J){this.props=O,this.context=X,this.refs=R,this.updater=J||w}M.prototype.isReactComponent={},M.prototype.setState=function(O,X){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,X,"setState")},M.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}C.prototype=M.prototype;function H(O,X,J){this.props=O,this.context=X,this.refs=R,this.updater=J||w}var D=H.prototype=new C;D.constructor=H,T(D,M.prototype),D.isPureReactComponent=!0;var Y=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},I=Object.prototype.hasOwnProperty;function F(O,X,J,K,ne,be){return J=be.ref,{$$typeof:n,type:O,key:X,ref:J!==void 0?J:null,props:be}}function q(O,X){return F(O.type,X,void 0,void 0,void 0,O.props)}function W(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function P(O){var X={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(J){return X[J]})}var ue=/\/+/g;function oe(O,X){return typeof O=="object"&&O!==null&&O.key!=null?P(""+O.key):X.toString(36)}function ce(){}function fe(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ce,ce):(O.status="pending",O.then(function(X){O.status==="pending"&&(O.status="fulfilled",O.value=X)},function(X){O.status==="pending"&&(O.status="rejected",O.reason=X)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function le(O,X,J,K,ne){var be=typeof O;(be==="undefined"||be==="boolean")&&(O=null);var de=!1;if(O===null)de=!0;else switch(be){case"bigint":case"string":case"number":de=!0;break;case"object":switch(O.$$typeof){case n:case r:de=!0;break;case b:return de=O._init,le(de(O._payload),X,J,K,ne)}}if(de)return ne=ne(O),de=K===""?"."+oe(O,0):K,Y(ne)?(J="",de!=null&&(J=de.replace(ue,"$&/")+"/"),le(ne,X,J,"",function(He){return He})):ne!=null&&(W(ne)&&(ne=q(ne,J+(ne.key==null||O&&O.key===ne.key?"":(""+ne.key).replace(ue,"$&/")+"/")+de)),X.push(ne)),1;de=0;var ee=K===""?".":K+":";if(Y(O))for(var ge=0;ge<O.length;ge++)K=O[ge],be=ee+oe(K,ge),de+=le(K,X,J,be,ne);else if(ge=S(O),typeof ge=="function")for(O=ge.call(O),ge=0;!(K=O.next()).done;)K=K.value,be=ee+oe(K,ge++),de+=le(K,X,J,be,ne);else if(be==="object"){if(typeof O.then=="function")return le(fe(O),X,J,K,ne);throw X=String(O),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return de}function z(O,X,J){if(O==null)return O;var K=[],ne=0;return le(O,K,"","",function(be){return X.call(J,be,ne++)}),K}function Z(O){if(O._status===-1){var X=O._result;X=X(),X.then(function(J){(O._status===0||O._status===-1)&&(O._status=1,O._result=J)},function(J){(O._status===0||O._status===-1)&&(O._status=2,O._result=J)}),O._status===-1&&(O._status=0,O._result=X)}if(O._status===1)return O._result.default;throw O._result}var k=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function te(){}return ye.Children={map:z,forEach:function(O,X,J){z(O,function(){X.apply(this,arguments)},J)},count:function(O){var X=0;return z(O,function(){X++}),X},toArray:function(O){return z(O,function(X){return X})||[]},only:function(O){if(!W(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},ye.Component=M,ye.Fragment=i,ye.Profiler=s,ye.PureComponent=H,ye.StrictMode=u,ye.Suspense=h,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,ye.__COMPILER_RUNTIME={__proto__:null,c:function(O){return B.H.useMemoCache(O)}},ye.cache=function(O){return function(){return O.apply(null,arguments)}},ye.cloneElement=function(O,X,J){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var K=T({},O.props),ne=O.key,be=void 0;if(X!=null)for(de in X.ref!==void 0&&(be=void 0),X.key!==void 0&&(ne=""+X.key),X)!I.call(X,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&X.ref===void 0||(K[de]=X[de]);var de=arguments.length-2;if(de===1)K.children=J;else if(1<de){for(var ee=Array(de),ge=0;ge<de;ge++)ee[ge]=arguments[ge+2];K.children=ee}return F(O.type,ne,void 0,void 0,be,K)},ye.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},ye.createElement=function(O,X,J){var K,ne={},be=null;if(X!=null)for(K in X.key!==void 0&&(be=""+X.key),X)I.call(X,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(ne[K]=X[K]);var de=arguments.length-2;if(de===1)ne.children=J;else if(1<de){for(var ee=Array(de),ge=0;ge<de;ge++)ee[ge]=arguments[ge+2];ne.children=ee}if(O&&O.defaultProps)for(K in de=O.defaultProps,de)ne[K]===void 0&&(ne[K]=de[K]);return F(O,be,void 0,void 0,null,ne)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(O){return{$$typeof:p,render:O}},ye.isValidElement=W,ye.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:Z}},ye.memo=function(O,X){return{$$typeof:m,type:O,compare:X===void 0?null:X}},ye.startTransition=function(O){var X=B.T,J={};B.T=J;try{var K=O(),ne=B.S;ne!==null&&ne(J,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(te,k)}catch(be){k(be)}finally{B.T=X}},ye.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},ye.use=function(O){return B.H.use(O)},ye.useActionState=function(O,X,J){return B.H.useActionState(O,X,J)},ye.useCallback=function(O,X){return B.H.useCallback(O,X)},ye.useContext=function(O){return B.H.useContext(O)},ye.useDebugValue=function(){},ye.useDeferredValue=function(O,X){return B.H.useDeferredValue(O,X)},ye.useEffect=function(O,X,J){var K=B.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return K.useEffect(O,X)},ye.useId=function(){return B.H.useId()},ye.useImperativeHandle=function(O,X,J){return B.H.useImperativeHandle(O,X,J)},ye.useInsertionEffect=function(O,X){return B.H.useInsertionEffect(O,X)},ye.useLayoutEffect=function(O,X){return B.H.useLayoutEffect(O,X)},ye.useMemo=function(O,X){return B.H.useMemo(O,X)},ye.useOptimistic=function(O,X){return B.H.useOptimistic(O,X)},ye.useReducer=function(O,X,J){return B.H.useReducer(O,X,J)},ye.useRef=function(O){return B.H.useRef(O)},ye.useState=function(O){return B.H.useState(O)},ye.useSyncExternalStore=function(O,X,J){return B.H.useSyncExternalStore(O,X,J)},ye.useTransition=function(){return B.H.useTransition()},ye.version="19.1.0",ye}var ev;function Ku(){return ev||(ev=1,Ac.exports=q1()),Ac.exports}var v=Ku();const pe=U1(v),Ic=$1({__proto__:null,default:pe},[v]);var Cc={exports:{}},Jr={},Mc={exports:{}},jc={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var tv;function G1(){return tv||(tv=1,function(n){function r(z,Z){var k=z.length;z.push(Z);e:for(;0<k;){var te=k-1>>>1,O=z[te];if(0<s(O,Z))z[te]=Z,z[k]=O,k=te;else break e}}function i(z){return z.length===0?null:z[0]}function u(z){if(z.length===0)return null;var Z=z[0],k=z.pop();if(k!==Z){z[0]=k;e:for(var te=0,O=z.length,X=O>>>1;te<X;){var J=2*(te+1)-1,K=z[J],ne=J+1,be=z[ne];if(0>s(K,k))ne<O&&0>s(be,K)?(z[te]=be,z[ne]=k,te=ne):(z[te]=K,z[J]=k,te=J);else if(ne<O&&0>s(be,k))z[te]=be,z[ne]=k,te=ne;else break e}}return Z}function s(z,Z){var k=z.sortIndex-Z.sortIndex;return k!==0?k:z.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var h=[],m=[],b=1,E=null,S=3,w=!1,T=!1,R=!1,M=!1,C=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function Y(z){for(var Z=i(m);Z!==null;){if(Z.callback===null)u(m);else if(Z.startTime<=z)u(m),Z.sortIndex=Z.expirationTime,r(h,Z);else break;Z=i(m)}}function B(z){if(R=!1,Y(z),!T)if(i(h)!==null)T=!0,I||(I=!0,oe());else{var Z=i(m);Z!==null&&le(B,Z.startTime-z)}}var I=!1,F=-1,q=5,W=-1;function P(){return M?!0:!(n.unstable_now()-W<q)}function ue(){if(M=!1,I){var z=n.unstable_now();W=z;var Z=!0;try{e:{T=!1,R&&(R=!1,H(F),F=-1),w=!0;var k=S;try{t:{for(Y(z),E=i(h);E!==null&&!(E.expirationTime>z&&P());){var te=E.callback;if(typeof te=="function"){E.callback=null,S=E.priorityLevel;var O=te(E.expirationTime<=z);if(z=n.unstable_now(),typeof O=="function"){E.callback=O,Y(z),Z=!0;break t}E===i(h)&&u(h),Y(z)}else u(h);E=i(h)}if(E!==null)Z=!0;else{var X=i(m);X!==null&&le(B,X.startTime-z),Z=!1}}break e}finally{E=null,S=k,w=!1}Z=void 0}}finally{Z?oe():I=!1}}}var oe;if(typeof D=="function")oe=function(){D(ue)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,fe=ce.port2;ce.port1.onmessage=ue,oe=function(){fe.postMessage(null)}}else oe=function(){C(ue,0)};function le(z,Z){F=C(function(){z(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(z){switch(S){case 1:case 2:case 3:var Z=3;break;default:Z=S}var k=S;S=Z;try{return z()}finally{S=k}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(z,Z){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var k=S;S=z;try{return Z()}finally{S=k}},n.unstable_scheduleCallback=function(z,Z,k){var te=n.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?te+k:te):k=te,z){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=k+O,z={id:b++,callback:Z,priorityLevel:z,startTime:k,expirationTime:O,sortIndex:-1},k>te?(z.sortIndex=k,r(m,z),i(h)===null&&z===i(m)&&(R?(H(F),F=-1):R=!0,le(B,k-te))):(z.sortIndex=O,r(h,z),T||w||(T=!0,I||(I=!0,oe()))),z},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(z){var Z=S;return function(){var k=S;S=Z;try{return z.apply(this,arguments)}finally{S=k}}}}(jc)),jc}var nv;function Y1(){return nv||(nv=1,Mc.exports=G1()),Mc.exports}var Nc={exports:{}},ht={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var lv;function V1(){if(lv)return ht;lv=1;var n=Ku();function r(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(h,m,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:E==null?null:""+E,children:h,containerInfo:m,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,ht.createPortal=function(h,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(r(299));return f(h,m,null,b)},ht.flushSync=function(h){var m=d.T,b=u.p;try{if(d.T=null,u.p=2,h)return h()}finally{d.T=m,u.p=b,u.d.f()}},ht.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(h,m))},ht.prefetchDNS=function(h){typeof h=="string"&&u.d.D(h)},ht.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var b=m.as,E=p(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?u.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:E,integrity:S,fetchPriority:w}):b==="script"&&u.d.X(h,{crossOrigin:E,integrity:S,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ht.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=p(m.as,m.crossOrigin);u.d.M(h,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(h)},ht.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,E=p(b,m.crossOrigin);u.d.L(h,b,{crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ht.preloadModule=function(h,m){if(typeof h=="string")if(m){var b=p(m.as,m.crossOrigin);u.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(h)},ht.requestFormReset=function(h){u.d.r(h)},ht.unstable_batchedUpdates=function(h,m){return h(m)},ht.useFormState=function(h,m,b){return d.H.useFormState(h,m,b)},ht.useFormStatus=function(){return d.H.useHostTransitionStatus()},ht.version="19.1.0",ht}var av;function ig(){if(av)return Nc.exports;av=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Nc.exports=V1(),Nc.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var rv;function X1(){if(rv)return Jr;rv=1;var n=Y1(),r=Ku(),i=ig();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(u(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,a=t;;){var o=l.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){l=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===l)return p(o),e;if(c===a)return p(o),t;c=c.sibling}throw Error(u(188))}if(l.return!==a.return)l=o,a=c;else{for(var g=!1,x=o.child;x;){if(x===l){g=!0,l=o,a=c;break}if(x===a){g=!0,a=o,l=c;break}x=x.sibling}if(!g){for(x=c.child;x;){if(x===l){g=!0,l=c,a=o;break}if(x===a){g=!0,a=c,l=o;break}x=x.sibling}if(!g)throw Error(u(189))}}if(l.alternate!==a)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),H=Symbol.for("react.consumer"),D=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case M:return"Profiler";case R:return"StrictMode";case B:return"Suspense";case I:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case D:return(e.displayName||"Context")+".Provider";case H:return(e._context.displayName||"Context")+".Consumer";case Y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var le=Array.isArray,z=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},te=[],O=-1;function X(e){return{current:e}}function J(e){0>O||(e.current=te[O],te[O]=null,O--)}function K(e,t){O++,te[O]=e.current,e.current=t}var ne=X(null),be=X(null),de=X(null),ee=X(null);function ge(e,t){switch(K(de,t),K(be,e),K(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Rp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Rp(t),e=Op(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}J(ne),K(ne,e)}function He(){J(ne),J(be),J(de)}function $t(e){e.memoizedState!==null&&K(ee,e);var t=ne.current,l=Op(t,e.type);t!==l&&(K(be,e),K(ne,l))}function Bn(e){be.current===e&&(J(ne),J(be)),ee.current===e&&(J(ee),Vr._currentValue=k)}var qn=Object.prototype.hasOwnProperty,ho=n.unstable_scheduleCallback,mo=n.unstable_cancelCallback,pb=n.unstable_shouldYield,vb=n.unstable_requestPaint,nn=n.unstable_now,gb=n.unstable_getCurrentPriorityLevel,rd=n.unstable_ImmediatePriority,id=n.unstable_UserBlockingPriority,bi=n.unstable_NormalPriority,bb=n.unstable_LowPriority,ud=n.unstable_IdlePriority,yb=n.log,xb=n.unstable_setDisableYieldValue,Wa=null,Ot=null;function Gn(e){if(typeof yb=="function"&&xb(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Wa,e)}catch{}}var At=Math.clz32?Math.clz32:Eb,wb=Math.log,Sb=Math.LN2;function Eb(e){return e>>>=0,e===0?32:31-(wb(e)/Sb|0)|0}var yi=256,xi=4194304;function Sl(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function wi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var x=a&134217727;return x!==0?(a=x&~c,a!==0?o=Sl(a):(g&=x,g!==0?o=Sl(g):l||(l=x&~e,l!==0&&(o=Sl(l))))):(x=a&~c,x!==0?o=Sl(x):g!==0?o=Sl(g):l||(l=a&~e,l!==0&&(o=Sl(l)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:o}function Ia(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Tb(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function od(){var e=yi;return yi<<=1,(yi&4194048)===0&&(yi=256),e}function sd(){var e=xi;return xi<<=1,(xi&62914560)===0&&(xi=4194304),e}function po(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function er(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Rb(e,t,l,a,o,c){var g=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var x=e.entanglements,A=e.expirationTimes,L=e.hiddenUpdates;for(l=g&~l;0<l;){var G=31-At(l),Q=1<<G;x[G]=0,A[G]=-1;var $=L[G];if($!==null)for(L[G]=null,G=0;G<$.length;G++){var U=$[G];U!==null&&(U.lane&=-536870913)}l&=~Q}a!==0&&cd(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function cd(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-At(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function fd(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-At(l),o=1<<a;o&t|e[a]&t&&(e[a]|=t),l&=~o}}function vo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function go(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function dd(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Xp(e.type))}function Ob(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var Yn=Math.random().toString(36).slice(2),ft="__reactFiber$"+Yn,wt="__reactProps$"+Yn,Jl="__reactContainer$"+Yn,bo="__reactEvents$"+Yn,Ab="__reactListeners$"+Yn,Cb="__reactHandles$"+Yn,hd="__reactResources$"+Yn,tr="__reactMarker$"+Yn;function yo(e){delete e[ft],delete e[wt],delete e[bo],delete e[Ab],delete e[Cb]}function Pl(e){var t=e[ft];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Jl]||l[ft]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=jp(e);e!==null;){if(l=e[ft])return l;e=jp(e)}return t}e=l,l=e.parentNode}return null}function Wl(e){if(e=e[ft]||e[Jl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function nr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Il(e){var t=e[hd];return t||(t=e[hd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[tr]=!0}var md=new Set,pd={};function El(e,t){ea(e,t),ea(e+"Capture",t)}function ea(e,t){for(pd[e]=t,e=0;e<t.length;e++)md.add(t[e])}var Mb=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),vd={},gd={};function jb(e){return qn.call(gd,e)?!0:qn.call(vd,e)?!1:Mb.test(e)?gd[e]=!0:(vd[e]=!0,!1)}function Si(e,t,l){if(jb(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ei(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function bn(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}var xo,bd;function ta(e){if(xo===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);xo=t&&t[1]||"",bd=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+xo+e+bd}var wo=!1;function So(e,t){if(!e||wo)return"";wo=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(U){var $=U}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(U){$=U}e.call(Q.prototype)}}else{try{throw Error()}catch(U){$=U}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(U){if(U&&$&&typeof U.stack=="string")return[U.stack,$.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),g=c[0],x=c[1];if(g&&x){var A=g.split(`
44
- `),L=x.split(`
45
- `);for(o=a=0;a<A.length&&!A[a].includes("DetermineComponentFrameRoot");)a++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(a===A.length||o===L.length)for(a=A.length-1,o=L.length-1;1<=a&&0<=o&&A[a]!==L[o];)o--;for(;1<=a&&0<=o;a--,o--)if(A[a]!==L[o]){if(a!==1||o!==1)do if(a--,o--,0>o||A[a]!==L[o]){var G=`
46
- `+A[a].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=a&&0<=o);break}}}finally{wo=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ta(l):""}function Nb(e){switch(e.tag){case 26:case 27:case 5:return ta(e.type);case 16:return ta("Lazy");case 13:return ta("Suspense");case 19:return ta("SuspenseList");case 0:case 15:return So(e.type,!1);case 11:return So(e.type.render,!1);case 1:return So(e.type,!0);case 31:return ta("Activity");default:return""}}function yd(e){try{var t="";do t+=Nb(e),e=e.return;while(e);return t}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Db(e){var t=xd(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(g){a=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ti(e){e._valueTracker||(e._valueTracker=Db(e))}function wd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=xd(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ri(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}}var zb=/[\n"\\]/g;function kt(e){return e.replace(zb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Eo(e,t,l,a,o,c,g,x){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?To(e,g,Ut(t)):l!=null?To(e,g,Ut(l)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Ut(x):e.removeAttribute("name")}function Sd(e,t,l,a,o,c,g,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;l=l!=null?""+Ut(l):"",t=t!=null?""+Ut(t):l,x||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=x?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function To(e,t,l){t==="number"&&Ri(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function na(e,t,l,a){if(e=e.options,t){t={};for(var o=0;o<l.length;o++)t["$"+l[o]]=!0;for(l=0;l<e.length;l++)o=t.hasOwnProperty("$"+e[l].value),e[l].selected!==o&&(e[l].selected=o),o&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ut(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ed(e,t,l){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ut(l):""}function Td(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(u(92));if(le(a)){if(1<a.length)throw Error(u(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ut(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function la(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var _b=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Rd(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||_b.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Od(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&l[o]!==a&&Rd(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&Rd(e,c,t[c])}function Ro(e){if(e.indexOf("-")===-1)return!1;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 Lb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Hb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Oi(e){return Hb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Oo=null;function Ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var aa=null,ra=null;function Ad(e){var t=Wl(e);if(t&&(e=t.stateNode)){var l=e[wt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Eo(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+kt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var o=a[wt]||null;if(!o)throw Error(u(90));Eo(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&wd(a)}break e;case"textarea":Ed(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&na(e,!!l.multiple,t,!1)}}}var Co=!1;function Cd(e,t,l){if(Co)return e(t,l);Co=!0;try{var a=e(t);return a}finally{if(Co=!1,(aa!==null||ra!==null)&&(fu(),aa&&(t=aa,e=ra,ra=aa=null,Ad(t),e)))for(t=0;t<e.length;t++)Ad(e[t])}}function lr(e,t){var l=e.stateNode;if(l===null)return null;var a=l[wt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mo=!1;if(yn)try{var ar={};Object.defineProperty(ar,"passive",{get:function(){Mo=!0}}),window.addEventListener("test",ar,ar),window.removeEventListener("test",ar,ar)}catch{Mo=!1}var Vn=null,jo=null,Ai=null;function Md(){if(Ai)return Ai;var e,t=jo,l=t.length,a,o="value"in Vn?Vn.value:Vn.textContent,c=o.length;for(e=0;e<l&&t[e]===o[e];e++);var g=l-e;for(a=1;a<=g&&t[l-a]===o[c-a];a++);return Ai=o.slice(e,1<a?1-a:void 0)}function Ci(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mi(){return!0}function jd(){return!1}function St(e){function t(l,a,o,c,g){this._reactName=l,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(l=e[x],this[x]=l?l(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Mi:jd,this.isPropagationStopped=jd,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Mi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Mi)},persist:function(){},isPersistent:Mi}),t}var Tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ji=St(Tl),rr=b({},Tl,{view:0,detail:0}),$b=St(rr),No,Do,ir,Ni=b({},rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_o,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ir&&(ir&&e.type==="mousemove"?(No=e.screenX-ir.screenX,Do=e.screenY-ir.screenY):Do=No=0,ir=e),No)},movementY:function(e){return"movementY"in e?e.movementY:Do}}),Nd=St(Ni),Ub=b({},Ni,{dataTransfer:0}),kb=St(Ub),Bb=b({},rr,{relatedTarget:0}),zo=St(Bb),qb=b({},Tl,{animationName:0,elapsedTime:0,pseudoElement:0}),Gb=St(qb),Yb=b({},Tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vb=St(Yb),Xb=b({},Tl,{data:0}),Dd=St(Xb),Zb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qb={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kb[e])?!!t[e]:!1}function _o(){return Fb}var Jb=b({},rr,{key:function(e){if(e.key){var t=Zb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_o,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pb=St(Jb),Wb=b({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zd=St(Wb),Ib=b({},rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_o}),ey=St(Ib),ty=b({},Tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ny=St(ty),ly=b({},Ni,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ay=St(ly),ry=b({},Tl,{newState:0,oldState:0}),iy=St(ry),uy=[9,13,27,32],Lo=yn&&"CompositionEvent"in window,ur=null;yn&&"documentMode"in document&&(ur=document.documentMode);var oy=yn&&"TextEvent"in window&&!ur,_d=yn&&(!Lo||ur&&8<ur&&11>=ur),Ld=" ",Hd=!1;function $d(e,t){switch(e){case"keyup":return uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function sy(e,t){switch(e){case"compositionend":return Ud(t);case"keypress":return t.which!==32?null:(Hd=!0,Ld);case"textInput":return e=t.data,e===Ld&&Hd?null:e;default:return null}}function cy(e,t){if(ia)return e==="compositionend"||!Lo&&$d(e,t)?(e=Md(),Ai=jo=Vn=null,ia=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _d&&t.locale!=="ko"?null:t.data;default:return null}}var fy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fy[e.type]:t==="textarea"}function Bd(e,t,l,a){aa?ra?ra.push(a):ra=[a]:aa=a,t=gu(t,"onChange"),0<t.length&&(l=new ji("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var or=null,sr=null;function dy(e){xp(e,0)}function Di(e){var t=nr(e);if(wd(t))return e}function qd(e,t){if(e==="change")return t}var Gd=!1;if(yn){var Ho;if(yn){var $o="oninput"in document;if(!$o){var Yd=document.createElement("div");Yd.setAttribute("oninput","return;"),$o=typeof Yd.oninput=="function"}Ho=$o}else Ho=!1;Gd=Ho&&(!document.documentMode||9<document.documentMode)}function Vd(){or&&(or.detachEvent("onpropertychange",Xd),sr=or=null)}function Xd(e){if(e.propertyName==="value"&&Di(sr)){var t=[];Bd(t,sr,e,Ao(e)),Cd(dy,t)}}function hy(e,t,l){e==="focusin"?(Vd(),or=t,sr=l,or.attachEvent("onpropertychange",Xd)):e==="focusout"&&Vd()}function my(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Di(sr)}function py(e,t){if(e==="click")return Di(t)}function vy(e,t){if(e==="input"||e==="change")return Di(t)}function gy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:gy;function cr(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var o=l[a];if(!qn.call(t,o)||!Ct(e[o],t[o]))return!1}return!0}function Zd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qd(e,t){var l=Zd(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Zd(l)}}function Kd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ri(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ri(e.document)}return t}function Uo(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")}var by=yn&&"documentMode"in document&&11>=document.documentMode,ua=null,ko=null,fr=null,Bo=!1;function Jd(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Bo||ua==null||ua!==Ri(a)||(a=ua,"selectionStart"in a&&Uo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),fr&&cr(fr,a)||(fr=a,a=gu(ko,"onSelect"),0<a.length&&(t=new ji("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ua)))}function Rl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var oa={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionrun:Rl("Transition","TransitionRun"),transitionstart:Rl("Transition","TransitionStart"),transitioncancel:Rl("Transition","TransitionCancel"),transitionend:Rl("Transition","TransitionEnd")},qo={},Pd={};yn&&(Pd=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function Ol(e){if(qo[e])return qo[e];if(!oa[e])return e;var t=oa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Pd)return qo[e]=t[l];return e}var Wd=Ol("animationend"),Id=Ol("animationiteration"),eh=Ol("animationstart"),yy=Ol("transitionrun"),xy=Ol("transitionstart"),wy=Ol("transitioncancel"),th=Ol("transitionend"),nh=new Map,Go="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Go.push("scrollEnd");function Jt(e,t){nh.set(e,t),El(t,[e])}var lh=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var l=lh.get(e);return l!==void 0?l:(t={value:e,source:t,stack:yd(t)},lh.set(e,t),t)}return{value:e,source:t,stack:yd(t)}}var qt=[],sa=0,Yo=0;function zi(){for(var e=sa,t=Yo=sa=0;t<e;){var l=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var o=qt[t];qt[t++]=null;var c=qt[t];if(qt[t++]=null,a!==null&&o!==null){var g=a.pending;g===null?o.next=o:(o.next=g.next,g.next=o),a.pending=o}c!==0&&ah(l,o,c)}}function _i(e,t,l,a){qt[sa++]=e,qt[sa++]=t,qt[sa++]=l,qt[sa++]=a,Yo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Vo(e,t,l,a){return _i(e,t,l,a),Li(e)}function ca(e,t){return _i(e,null,null,t),Li(e)}function ah(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var o=!1,c=e.return;c!==null;)c.childLanes|=l,a=c.alternate,a!==null&&(a.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-At(l),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=l|536870912),c):null}function Li(e){if(50<Hr)throw Hr=0,Js=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fa={};function Sy(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,l,a){return new Sy(e,t,l,a)}function Xo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xn(e,t){var l=e.alternate;return l===null?(l=Mt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function rh(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hi(e,t,l,a,o,c){var g=0;if(a=e,typeof e=="function")Xo(e)&&(g=1);else if(typeof e=="string")g=T1(e,l,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=Mt(31,l,t,o),e.elementType=W,e.lanes=c,e;case T:return Al(l.children,o,c,t);case R:g=8,o|=24;break;case M:return e=Mt(12,l,t,o|2),e.elementType=M,e.lanes=c,e;case B:return e=Mt(13,l,t,o),e.elementType=B,e.lanes=c,e;case I:return e=Mt(19,l,t,o),e.elementType=I,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case C:case D:g=10;break e;case H:g=9;break e;case Y:g=11;break e;case F:g=14;break e;case q:g=16,a=null;break e}g=29,l=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=Mt(g,l,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function Al(e,t,l,a){return e=Mt(7,e,a,t),e.lanes=l,e}function Zo(e,t,l){return e=Mt(6,e,null,t),e.lanes=l,e}function Qo(e,t,l){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var da=[],ha=0,$i=null,Ui=0,Gt=[],Yt=0,Cl=null,wn=1,Sn="";function Ml(e,t){da[ha++]=Ui,da[ha++]=$i,$i=e,Ui=t}function ih(e,t,l){Gt[Yt++]=wn,Gt[Yt++]=Sn,Gt[Yt++]=Cl,Cl=e;var a=wn;e=Sn;var o=32-At(a)-1;a&=~(1<<o),l+=1;var c=32-At(t)+o;if(30<c){var g=o-o%5;c=(a&(1<<g)-1).toString(32),a>>=g,o-=g,wn=1<<32-At(t)+o|l<<o|a,Sn=c+e}else wn=1<<c|l<<o|a,Sn=e}function Ko(e){e.return!==null&&(Ml(e,1),ih(e,1,0))}function Fo(e){for(;e===$i;)$i=da[--ha],da[ha]=null,Ui=da[--ha],da[ha]=null;for(;e===Cl;)Cl=Gt[--Yt],Gt[Yt]=null,Sn=Gt[--Yt],Gt[Yt]=null,wn=Gt[--Yt],Gt[Yt]=null}var pt=null,Ve=null,Ce=!1,jl=null,ln=!1,Jo=Error(u(519));function Nl(e){var t=Error(u(418,""));throw mr(Bt(t,e)),Jo}function uh(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ft]=e,t[wt]=a,l){case"dialog":Re("cancel",t),Re("close",t);break;case"iframe":case"object":case"embed":Re("load",t);break;case"video":case"audio":for(l=0;l<Ur.length;l++)Re(Ur[l],t);break;case"source":Re("error",t);break;case"img":case"image":case"link":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"input":Re("invalid",t),Sd(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Ti(t);break;case"select":Re("invalid",t);break;case"textarea":Re("invalid",t),Td(t,a.value,a.defaultValue,a.children),Ti(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Tp(t.textContent,l)?(a.popover!=null&&(Re("beforetoggle",t),Re("toggle",t)),a.onScroll!=null&&Re("scroll",t),a.onScrollEnd!=null&&Re("scrollend",t),a.onClick!=null&&(t.onclick=bu),t=!0):t=!1,t||Nl(e)}function oh(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:pt=pt.return}}function dr(e){if(e!==pt)return!1;if(!Ce)return oh(e),Ce=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||dc(e.type,e.memoizedProps)),l=!l),l&&Ve&&Nl(e),oh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){Ve=Wt(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Ve=null}}else t===27?(t=Ve,il(e.type)?(e=vc,vc=null,Ve=e):Ve=t):Ve=pt?Wt(e.stateNode.nextSibling):null;return!0}function hr(){Ve=pt=null,Ce=!1}function sh(){var e=jl;return e!==null&&(Rt===null?Rt=e:Rt.push.apply(Rt,e),jl=null),e}function mr(e){jl===null?jl=[e]:jl.push(e)}var Po=X(null),Dl=null,En=null;function Xn(e,t,l){K(Po,t._currentValue),t._currentValue=l}function Tn(e){e._currentValue=Po.current,J(Po)}function Wo(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Io(e,t,l,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=o;for(var A=0;A<t.length;A++)if(x.context===t[A]){c.lanes|=l,x=c.alternate,x!==null&&(x.lanes|=l),Wo(c.return,l,e),a||(g=null);break e}c=x.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(u(341));g.lanes|=l,c=g.alternate,c!==null&&(c.lanes|=l),Wo(g,l,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function pr(e,t,l,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(u(387));if(g=g.memoizedProps,g!==null){var x=o.type;Ct(o.pendingProps.value,g.value)||(e!==null?e.push(x):e=[x])}}else if(o===ee.current){if(g=o.alternate,g===null)throw Error(u(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Vr):e=[Vr])}o=o.return}e!==null&&Io(t,e,l,a),t.flags|=262144}function ki(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function zl(e){Dl=e,En=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return ch(Dl,e)}function Bi(e,t){return Dl===null&&zl(e),ch(e,t)}function ch(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},En===null){if(e===null)throw Error(u(308));En=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else En=En.next=t;return l}var Ey=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ty=n.unstable_scheduleCallback,Ry=n.unstable_NormalPriority,Je={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function es(){return{controller:new Ey,data:new Map,refCount:0}}function vr(e){e.refCount--,e.refCount===0&&Ty(Ry,function(){e.controller.abort()})}var gr=null,ts=0,ma=0,pa=null;function Oy(e,t){if(gr===null){var l=gr=[];ts=0,ma=lc(),pa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ts++,t.then(fh,fh),t}function fh(){if(--ts===0&&gr!==null){pa!==null&&(pa.status="fulfilled");var e=gr;gr=null,ma=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ay(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),a}var dh=z.S;z.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Oy(e,t),dh!==null&&dh(e,t)};var _l=X(null);function ns(){var e=_l.current;return e!==null?e:$e.pooledCache}function qi(e,t){t===null?K(_l,_l.current):K(_l,t.pool)}function hh(){var e=ns();return e===null?null:{parent:Je._currentValue,pool:e}}var br=Error(u(460)),mh=Error(u(474)),Gi=Error(u(542)),ls={then:function(){}};function ph(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yi(){}function vh(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Yi,Yi),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bh(e),e;default:if(typeof t.status=="string")t.then(Yi,Yi);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bh(e),e}throw yr=t,br}}var yr=null;function gh(){if(yr===null)throw Error(u(459));var e=yr;return yr=null,e}function bh(e){if(e===br||e===Gi)throw Error(u(483))}var Zn=!1;function as(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Qn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kn(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Li(e),ah(e,null,l),t}return _i(e,a,t,l),Li(e)}function xr(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,fd(e,l)}}function is(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var o=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,l=l.next}while(l!==null);c===null?o=c=t:c=c.next=t}else o=c=t;l={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var us=!1;function wr(){if(us){var e=pa;if(e!==null)throw e}}function Sr(e,t,l,a){us=!1;var o=e.updateQueue;Zn=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var A=x,L=A.next;A.next=null,g===null?c=L:g.next=L,g=A;var G=e.alternate;G!==null&&(G=G.updateQueue,x=G.lastBaseUpdate,x!==g&&(x===null?G.firstBaseUpdate=L:x.next=L,G.lastBaseUpdate=A))}if(c!==null){var Q=o.baseState;g=0,G=L=A=null,x=c;do{var $=x.lane&-536870913,U=$!==x.lane;if(U?(Oe&$)===$:(a&$)===$){$!==0&&$===ma&&(us=!0),G!==null&&(G=G.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ve=e,he=x;$=t;var _e=l;switch(he.tag){case 1:if(ve=he.payload,typeof ve=="function"){Q=ve.call(_e,Q,$);break e}Q=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=he.payload,$=typeof ve=="function"?ve.call(_e,Q,$):ve,$==null)break e;Q=b({},Q,$);break e;case 2:Zn=!0}}$=x.callback,$!==null&&(e.flags|=64,U&&(e.flags|=8192),U=o.callbacks,U===null?o.callbacks=[$]:U.push($))}else U={lane:$,tag:x.tag,payload:x.payload,callback:x.callback,next:null},G===null?(L=G=U,A=Q):G=G.next=U,g|=$;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;U=x,x=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);G===null&&(A=Q),o.baseState=A,o.firstBaseUpdate=L,o.lastBaseUpdate=G,c===null&&(o.shared.lanes=0),nl|=g,e.lanes=g,e.memoizedState=Q}}function yh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function xh(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)yh(l[e],t)}var va=X(null),Vi=X(0);function wh(e,t){e=Nn,K(Vi,e),K(va,t),Nn=e|t.baseLanes}function os(){K(Vi,Nn),K(va,va.current)}function ss(){Nn=Vi.current,J(va),J(Vi)}var Fn=0,xe=null,De=null,Ke=null,Xi=!1,ga=!1,Ll=!1,Zi=0,Er=0,ba=null,Cy=0;function Ze(){throw Error(u(321))}function cs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ct(e[l],t[l]))return!1;return!0}function fs(e,t,l,a,o,c){return Fn=c,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?am:rm,Ll=!1,c=l(a,o),Ll=!1,ga&&(c=Eh(t,l,a,o)),Sh(e),c}function Sh(e){z.H=Wi;var t=De!==null&&De.next!==null;if(Fn=0,Ke=De=xe=null,Xi=!1,Er=0,ba=null,t)throw Error(u(300));e===null||et||(e=e.dependencies,e!==null&&ki(e)&&(et=!0))}function Eh(e,t,l,a){xe=e;var o=0;do{if(ga&&(ba=null),Er=0,ga=!1,25<=o)throw Error(u(301));if(o+=1,Ke=De=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=Ly,c=t(l,a)}while(ga);return c}function My(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Tr(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(xe.flags|=1024),t}function ds(){var e=Zi!==0;return Zi=0,e}function hs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ms(e){if(Xi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xi=!1}Fn=0,Ke=De=xe=null,ga=!1,Er=Zi=0,ba=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?xe.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Fe(){if(De===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Ke===null?xe.memoizedState:Ke.next;if(t!==null)Ke=t,De=e;else{if(e===null)throw xe.alternate===null?Error(u(467)):Error(u(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Ke===null?xe.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function ps(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tr(e){var t=Er;return Er+=1,ba===null&&(ba=[]),e=vh(ba,e,t),t=xe,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?am:rm),e}function Qi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tr(e);if(e.$$typeof===D)return dt(e)}throw Error(u(438,String(e)))}function vs(e){var t=null,l=xe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=xe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ps(),xe.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=P;return t.index++,l}function Rn(e,t){return typeof t=="function"?t(e):t}function Ki(e){var t=Fe();return gs(t,De,e)}function gs(e,t,l){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=l;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var x=g=null,A=null,L=t,G=!1;do{var Q=L.lane&-536870913;if(Q!==L.lane?(Oe&Q)===Q:(Fn&Q)===Q){var $=L.revertLane;if($===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Q===ma&&(G=!0);else if((Fn&$)===$){L=L.next,$===ma&&(G=!0);continue}else Q={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},A===null?(x=A=Q,g=c):A=A.next=Q,xe.lanes|=$,nl|=$;Q=L.action,Ll&&l(c,Q),c=L.hasEagerState?L.eagerState:l(c,Q)}else $={lane:Q,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},A===null?(x=A=$,g=c):A=A.next=$,xe.lanes|=Q,nl|=Q;L=L.next}while(L!==null&&L!==t);if(A===null?g=c:A.next=x,!Ct(c,e.memoizedState)&&(et=!0,G&&(l=pa,l!==null)))throw l;e.memoizedState=c,e.baseState=g,e.baseQueue=A,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function bs(e){var t=Fe(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var a=l.dispatch,o=l.pending,c=t.memoizedState;if(o!==null){l.pending=null;var g=o=o.next;do c=e(c,g.action),g=g.next;while(g!==o);Ct(c,t.memoizedState)||(et=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,a]}function Th(e,t,l){var a=xe,o=Fe(),c=Ce;if(c){if(l===void 0)throw Error(u(407));l=l()}else l=t();var g=!Ct((De||o).memoizedState,l);g&&(o.memoizedState=l,et=!0),o=o.queue;var x=Ah.bind(null,a,o,e);if(Rr(2048,8,x,[e]),o.getSnapshot!==t||g||Ke!==null&&Ke.memoizedState.tag&1){if(a.flags|=2048,ya(9,Fi(),Oh.bind(null,a,o,l,t),null),$e===null)throw Error(u(349));c||(Fn&124)!==0||Rh(a,t,l)}return l}function Rh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=xe.updateQueue,t===null?(t=ps(),xe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Oh(e,t,l,a){t.value=l,t.getSnapshot=a,Ch(t)&&Mh(e)}function Ah(e,t,l){return l(function(){Ch(t)&&Mh(e)})}function Ch(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ct(e,l)}catch{return!0}}function Mh(e){var t=ca(e,2);t!==null&&_t(t,e,2)}function ys(e){var t=Et();if(typeof e=="function"){var l=e;if(e=l(),Ll){Gn(!0);try{l()}finally{Gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:e},t}function jh(e,t,l,a){return e.baseState=l,gs(e,De,typeof a=="function"?a:Rn)}function jy(e,t,l,a,o){if(Pi(e))throw Error(u(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};z.T!==null?l(!0):c.isTransition=!1,a(c),l=t.pending,l===null?(c.next=t.pending=c,Nh(t,c)):(c.next=l.next,t.pending=l.next=c)}}function Nh(e,t){var l=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=z.T,g={};z.T=g;try{var x=l(o,a),A=z.S;A!==null&&A(g,x),Dh(e,t,x)}catch(L){xs(e,t,L)}finally{z.T=c}}else try{c=l(o,a),Dh(e,t,c)}catch(L){xs(e,t,L)}}function Dh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){zh(e,t,a)},function(a){return xs(e,t,a)}):zh(e,t,l)}function zh(e,t,l){t.status="fulfilled",t.value=l,_h(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Nh(e,l)))}function xs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,_h(t),t=t.next;while(t!==a)}e.action=null}function _h(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lh(e,t){return t}function Hh(e,t){if(Ce){var l=$e.formState;if(l!==null){e:{var a=xe;if(Ce){if(Ve){t:{for(var o=Ve,c=ln;o.nodeType!==8;){if(!c){o=null;break t}if(o=Wt(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Ve=Wt(o.nextSibling),a=o.data==="F!";break e}}Nl(a)}a=!1}a&&(t=l[0])}}return l=Et(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lh,lastRenderedState:t},l.queue=a,l=tm.bind(null,xe,a),a.dispatch=l,a=ys(!1),c=Rs.bind(null,xe,!1,a.queue),a=Et(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,l=jy.bind(null,xe,o,c,l),o.dispatch=l,a.memoizedState=e,[t,l,!1]}function $h(e){var t=Fe();return Uh(t,De,e)}function Uh(e,t,l){if(t=gs(e,t,Lh)[0],e=Ki(Rn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Tr(t)}catch(g){throw g===br?Gi:g}else a=t;t=Fe();var o=t.queue,c=o.dispatch;return l!==t.memoizedState&&(xe.flags|=2048,ya(9,Fi(),Ny.bind(null,o,l),null)),[a,c,e]}function Ny(e,t){e.action=t}function kh(e){var t=Fe(),l=De;if(l!==null)return Uh(t,l,e);Fe(),t=t.memoizedState,l=Fe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function ya(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=xe.updateQueue,t===null&&(t=ps(),xe.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Fi(){return{destroy:void 0,resource:void 0}}function Bh(){return Fe().memoizedState}function Ji(e,t,l,a){var o=Et();a=a===void 0?null:a,xe.flags|=e,o.memoizedState=ya(1|t,Fi(),l,a)}function Rr(e,t,l,a){var o=Fe();a=a===void 0?null:a;var c=o.memoizedState.inst;De!==null&&a!==null&&cs(a,De.memoizedState.deps)?o.memoizedState=ya(t,c,l,a):(xe.flags|=e,o.memoizedState=ya(1|t,c,l,a))}function qh(e,t){Ji(8390656,8,e,t)}function Gh(e,t){Rr(2048,8,e,t)}function Yh(e,t){return Rr(4,2,e,t)}function Vh(e,t){return Rr(4,4,e,t)}function Xh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zh(e,t,l){l=l!=null?l.concat([e]):null,Rr(4,4,Xh.bind(null,t,e),l)}function ws(){}function Qh(e,t){var l=Fe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&cs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Kh(e,t){var l=Fe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&cs(t,a[1]))return a[0];if(a=e(),Ll){Gn(!0);try{e()}finally{Gn(!1)}}return l.memoizedState=[a,t],a}function Ss(e,t,l){return l===void 0||(Fn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=Pm(),xe.lanes|=e,nl|=e,l)}function Fh(e,t,l,a){return Ct(l,t)?l:va.current!==null?(e=Ss(e,l,a),Ct(e,t)||(et=!0),e):(Fn&42)===0?(et=!0,e.memoizedState=l):(e=Pm(),xe.lanes|=e,nl|=e,t)}function Jh(e,t,l,a,o){var c=Z.p;Z.p=c!==0&&8>c?c:8;var g=z.T,x={};z.T=x,Rs(e,!1,t,l);try{var A=o(),L=z.S;if(L!==null&&L(x,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=Ay(A,a);Or(e,t,G,zt(e))}else Or(e,t,a,zt(e))}catch(Q){Or(e,t,{then:function(){},status:"rejected",reason:Q},zt())}finally{Z.p=c,z.T=g}}function Dy(){}function Es(e,t,l,a){if(e.tag!==5)throw Error(u(476));var o=Ph(e).queue;Jh(e,o,t,k,l===null?Dy:function(){return Wh(e),l(a)})}function Ph(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:k},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wh(e){var t=Ph(e).next.queue;Or(e,t,{},zt())}function Ts(){return dt(Vr)}function Ih(){return Fe().memoizedState}function em(){return Fe().memoizedState}function zy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=zt();e=Qn(l);var a=Kn(t,e,l);a!==null&&(_t(a,t,l),xr(a,t,l)),t={cache:es()},e.payload=t;return}t=t.return}}function _y(e,t,l){var a=zt();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Pi(e)?nm(t,l):(l=Vo(e,t,l,a),l!==null&&(_t(l,e,a),lm(l,t,a)))}function tm(e,t,l){var a=zt();Or(e,t,l,a)}function Or(e,t,l,a){var o={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Pi(e))nm(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,x=c(g,l);if(o.hasEagerState=!0,o.eagerState=x,Ct(x,g))return _i(e,t,o,0),$e===null&&zi(),!1}catch{}finally{}if(l=Vo(e,t,o,a),l!==null)return _t(l,e,a),lm(l,t,a),!0}return!1}function Rs(e,t,l,a){if(a={lane:2,revertLane:lc(),action:a,hasEagerState:!1,eagerState:null,next:null},Pi(e)){if(t)throw Error(u(479))}else t=Vo(e,l,a,2),t!==null&&_t(t,e,2)}function Pi(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function nm(e,t){ga=Xi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function lm(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,fd(e,l)}}var Wi={readContext:dt,use:Qi,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze},am={readContext:dt,use:Qi,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:qh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ji(4194308,4,Xh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ji(4194308,4,e,t)},useInsertionEffect:function(e,t){Ji(4,2,e,t)},useMemo:function(e,t){var l=Et();t=t===void 0?null:t;var a=e();if(Ll){Gn(!0);try{e()}finally{Gn(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Et();if(l!==void 0){var o=l(t);if(Ll){Gn(!0);try{l(t)}finally{Gn(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=_y.bind(null,xe,e),[a.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=ys(e);var t=e.queue,l=tm.bind(null,xe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ws,useDeferredValue:function(e,t){var l=Et();return Ss(l,e,t)},useTransition:function(){var e=ys(!1);return e=Jh.bind(null,xe,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=xe,o=Et();if(Ce){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),$e===null)throw Error(u(349));(Oe&124)!==0||Rh(a,t,l)}o.memoizedState=l;var c={value:l,getSnapshot:t};return o.queue=c,qh(Ah.bind(null,a,c,e),[e]),a.flags|=2048,ya(9,Fi(),Oh.bind(null,a,c,l,t),null),l},useId:function(){var e=Et(),t=$e.identifierPrefix;if(Ce){var l=Sn,a=wn;l=(a&~(1<<32-At(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=Zi++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=Cy++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:Hh,useActionState:Hh,useOptimistic:function(e){var t=Et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Rs.bind(null,xe,!0,l),l.dispatch=t,[e,t]},useMemoCache:vs,useCacheRefresh:function(){return Et().memoizedState=zy.bind(null,xe)}},rm={readContext:dt,use:Qi,useCallback:Qh,useContext:dt,useEffect:Gh,useImperativeHandle:Zh,useInsertionEffect:Yh,useLayoutEffect:Vh,useMemo:Kh,useReducer:Ki,useRef:Bh,useState:function(){return Ki(Rn)},useDebugValue:ws,useDeferredValue:function(e,t){var l=Fe();return Fh(l,De.memoizedState,e,t)},useTransition:function(){var e=Ki(Rn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Tr(e),t]},useSyncExternalStore:Th,useId:Ih,useHostTransitionStatus:Ts,useFormState:$h,useActionState:$h,useOptimistic:function(e,t){var l=Fe();return jh(l,De,e,t)},useMemoCache:vs,useCacheRefresh:em},Ly={readContext:dt,use:Qi,useCallback:Qh,useContext:dt,useEffect:Gh,useImperativeHandle:Zh,useInsertionEffect:Yh,useLayoutEffect:Vh,useMemo:Kh,useReducer:bs,useRef:Bh,useState:function(){return bs(Rn)},useDebugValue:ws,useDeferredValue:function(e,t){var l=Fe();return De===null?Ss(l,e,t):Fh(l,De.memoizedState,e,t)},useTransition:function(){var e=bs(Rn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Tr(e),t]},useSyncExternalStore:Th,useId:Ih,useHostTransitionStatus:Ts,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var l=Fe();return De!==null?jh(l,De,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:vs,useCacheRefresh:em},xa=null,Ar=0;function Ii(e){var t=Ar;return Ar+=1,xa===null&&(xa=[]),vh(xa,e,t)}function Cr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function eu(e,t){throw t.$$typeof===E?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function im(e){var t=e._init;return t(e._payload)}function um(e){function t(N,j){if(e){var _=N.deletions;_===null?(N.deletions=[j],N.flags|=16):_.push(j)}}function l(N,j){if(!e)return null;for(;j!==null;)t(N,j),j=j.sibling;return null}function a(N){for(var j=new Map;N!==null;)N.key!==null?j.set(N.key,N):j.set(N.index,N),N=N.sibling;return j}function o(N,j){return N=xn(N,j),N.index=0,N.sibling=null,N}function c(N,j,_){return N.index=_,e?(_=N.alternate,_!==null?(_=_.index,_<j?(N.flags|=67108866,j):_):(N.flags|=67108866,j)):(N.flags|=1048576,j)}function g(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function x(N,j,_,V){return j===null||j.tag!==6?(j=Zo(_,N.mode,V),j.return=N,j):(j=o(j,_),j.return=N,j)}function A(N,j,_,V){var ae=_.type;return ae===T?G(N,j,_.props.children,V,_.key):j!==null&&(j.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===q&&im(ae)===j.type)?(j=o(j,_.props),Cr(j,_),j.return=N,j):(j=Hi(_.type,_.key,_.props,null,N.mode,V),Cr(j,_),j.return=N,j)}function L(N,j,_,V){return j===null||j.tag!==4||j.stateNode.containerInfo!==_.containerInfo||j.stateNode.implementation!==_.implementation?(j=Qo(_,N.mode,V),j.return=N,j):(j=o(j,_.children||[]),j.return=N,j)}function G(N,j,_,V,ae){return j===null||j.tag!==7?(j=Al(_,N.mode,V,ae),j.return=N,j):(j=o(j,_),j.return=N,j)}function Q(N,j,_){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Zo(""+j,N.mode,_),j.return=N,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case S:return _=Hi(j.type,j.key,j.props,null,N.mode,_),Cr(_,j),_.return=N,_;case w:return j=Qo(j,N.mode,_),j.return=N,j;case q:var V=j._init;return j=V(j._payload),Q(N,j,_)}if(le(j)||oe(j))return j=Al(j,N.mode,_,null),j.return=N,j;if(typeof j.then=="function")return Q(N,Ii(j),_);if(j.$$typeof===D)return Q(N,Bi(N,j),_);eu(N,j)}return null}function $(N,j,_,V){var ae=j!==null?j.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return ae!==null?null:x(N,j,""+_,V);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case S:return _.key===ae?A(N,j,_,V):null;case w:return _.key===ae?L(N,j,_,V):null;case q:return ae=_._init,_=ae(_._payload),$(N,j,_,V)}if(le(_)||oe(_))return ae!==null?null:G(N,j,_,V,null);if(typeof _.then=="function")return $(N,j,Ii(_),V);if(_.$$typeof===D)return $(N,j,Bi(N,_),V);eu(N,_)}return null}function U(N,j,_,V,ae){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return N=N.get(_)||null,x(j,N,""+V,ae);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return N=N.get(V.key===null?_:V.key)||null,A(j,N,V,ae);case w:return N=N.get(V.key===null?_:V.key)||null,L(j,N,V,ae);case q:var Ee=V._init;return V=Ee(V._payload),U(N,j,_,V,ae)}if(le(V)||oe(V))return N=N.get(_)||null,G(j,N,V,ae,null);if(typeof V.then=="function")return U(N,j,_,Ii(V),ae);if(V.$$typeof===D)return U(N,j,_,Bi(j,V),ae);eu(j,V)}return null}function ve(N,j,_,V){for(var ae=null,Ee=null,se=j,me=j=0,nt=null;se!==null&&me<_.length;me++){se.index>me?(nt=se,se=null):nt=se.sibling;var Ae=$(N,se,_[me],V);if(Ae===null){se===null&&(se=nt);break}e&&se&&Ae.alternate===null&&t(N,se),j=c(Ae,j,me),Ee===null?ae=Ae:Ee.sibling=Ae,Ee=Ae,se=nt}if(me===_.length)return l(N,se),Ce&&Ml(N,me),ae;if(se===null){for(;me<_.length;me++)se=Q(N,_[me],V),se!==null&&(j=c(se,j,me),Ee===null?ae=se:Ee.sibling=se,Ee=se);return Ce&&Ml(N,me),ae}for(se=a(se);me<_.length;me++)nt=U(se,N,me,_[me],V),nt!==null&&(e&&nt.alternate!==null&&se.delete(nt.key===null?me:nt.key),j=c(nt,j,me),Ee===null?ae=nt:Ee.sibling=nt,Ee=nt);return e&&se.forEach(function(fl){return t(N,fl)}),Ce&&Ml(N,me),ae}function he(N,j,_,V){if(_==null)throw Error(u(151));for(var ae=null,Ee=null,se=j,me=j=0,nt=null,Ae=_.next();se!==null&&!Ae.done;me++,Ae=_.next()){se.index>me?(nt=se,se=null):nt=se.sibling;var fl=$(N,se,Ae.value,V);if(fl===null){se===null&&(se=nt);break}e&&se&&fl.alternate===null&&t(N,se),j=c(fl,j,me),Ee===null?ae=fl:Ee.sibling=fl,Ee=fl,se=nt}if(Ae.done)return l(N,se),Ce&&Ml(N,me),ae;if(se===null){for(;!Ae.done;me++,Ae=_.next())Ae=Q(N,Ae.value,V),Ae!==null&&(j=c(Ae,j,me),Ee===null?ae=Ae:Ee.sibling=Ae,Ee=Ae);return Ce&&Ml(N,me),ae}for(se=a(se);!Ae.done;me++,Ae=_.next())Ae=U(se,N,me,Ae.value,V),Ae!==null&&(e&&Ae.alternate!==null&&se.delete(Ae.key===null?me:Ae.key),j=c(Ae,j,me),Ee===null?ae=Ae:Ee.sibling=Ae,Ee=Ae);return e&&se.forEach(function(H1){return t(N,H1)}),Ce&&Ml(N,me),ae}function _e(N,j,_,V){if(typeof _=="object"&&_!==null&&_.type===T&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case S:e:{for(var ae=_.key;j!==null;){if(j.key===ae){if(ae=_.type,ae===T){if(j.tag===7){l(N,j.sibling),V=o(j,_.props.children),V.return=N,N=V;break e}}else if(j.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===q&&im(ae)===j.type){l(N,j.sibling),V=o(j,_.props),Cr(V,_),V.return=N,N=V;break e}l(N,j);break}else t(N,j);j=j.sibling}_.type===T?(V=Al(_.props.children,N.mode,V,_.key),V.return=N,N=V):(V=Hi(_.type,_.key,_.props,null,N.mode,V),Cr(V,_),V.return=N,N=V)}return g(N);case w:e:{for(ae=_.key;j!==null;){if(j.key===ae)if(j.tag===4&&j.stateNode.containerInfo===_.containerInfo&&j.stateNode.implementation===_.implementation){l(N,j.sibling),V=o(j,_.children||[]),V.return=N,N=V;break e}else{l(N,j);break}else t(N,j);j=j.sibling}V=Qo(_,N.mode,V),V.return=N,N=V}return g(N);case q:return ae=_._init,_=ae(_._payload),_e(N,j,_,V)}if(le(_))return ve(N,j,_,V);if(oe(_)){if(ae=oe(_),typeof ae!="function")throw Error(u(150));return _=ae.call(_),he(N,j,_,V)}if(typeof _.then=="function")return _e(N,j,Ii(_),V);if(_.$$typeof===D)return _e(N,j,Bi(N,_),V);eu(N,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,j!==null&&j.tag===6?(l(N,j.sibling),V=o(j,_),V.return=N,N=V):(l(N,j),V=Zo(_,N.mode,V),V.return=N,N=V),g(N)):l(N,j)}return function(N,j,_,V){try{Ar=0;var ae=_e(N,j,_,V);return xa=null,ae}catch(se){if(se===br||se===Gi)throw se;var Ee=Mt(29,se,null,N.mode);return Ee.lanes=V,Ee.return=N,Ee}finally{}}}var wa=um(!0),om=um(!1),Vt=X(null),an=null;function Jn(e){var t=e.alternate;K(Pe,Pe.current&1),K(Vt,e),an===null&&(t===null||va.current!==null||t.memoizedState!==null)&&(an=e)}function sm(e){if(e.tag===22){if(K(Pe,Pe.current),K(Vt,e),an===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(an=e)}}else Pn()}function Pn(){K(Pe,Pe.current),K(Vt,Vt.current)}function On(e){J(Vt),an===e&&(an=null),J(Pe)}var Pe=X(0);function tu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||pc(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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}function Os(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var As={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=zt(),o=Qn(a);o.payload=t,l!=null&&(o.callback=l),t=Kn(e,o,a),t!==null&&(_t(t,e,a),xr(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=zt(),o=Qn(a);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Kn(e,o,a),t!==null&&(_t(t,e,a),xr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=zt(),a=Qn(l);a.tag=2,t!=null&&(a.callback=t),t=Kn(e,a,l),t!==null&&(_t(t,e,l),xr(t,e,l))}};function cm(e,t,l,a,o,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,g):t.prototype&&t.prototype.isPureReactComponent?!cr(l,a)||!cr(o,c):!0}function fm(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&As.enqueueReplaceState(t,t.state,null)}function Hl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}var nu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function dm(e){nu(e)}function hm(e){console.error(e)}function mm(e){nu(e)}function lu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function pm(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Cs(e,t,l){return l=Qn(l),l.tag=3,l.payload={element:null},l.callback=function(){lu(e,t)},l}function vm(e){return e=Qn(e),e.tag=3,e}function gm(e,t,l,a){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){pm(t,l,a)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){pm(t,l,a),typeof o!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var x=a.stack;this.componentDidCatch(a.value,{componentStack:x!==null?x:""})})}function Hy(e,t,l,a,o){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pr(t,l,o,!0),l=Vt.current,l!==null){switch(l.tag){case 13:return an===null?Ws():l.alternate===null&&Xe===0&&(Xe=3),l.flags&=-257,l.flags|=65536,l.lanes=o,a===ls?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ec(e,a,o)),!1;case 22:return l.flags|=65536,a===ls?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ec(e,a,o)),!1}throw Error(u(435,l.tag))}return ec(e,a,o),Ws(),!1}if(Ce)return t=Vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Jo&&(e=Error(u(422),{cause:a}),mr(Bt(e,l)))):(a!==Jo&&(t=Error(u(423),{cause:a}),mr(Bt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=Bt(a,l),o=Cs(e.stateNode,a,o),is(e,o),Xe!==4&&(Xe=2)),!1;var c=Error(u(520),{cause:a});if(c=Bt(c,l),Lr===null?Lr=[c]:Lr.push(c),Xe!==4&&(Xe=2),t===null)return!0;a=Bt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=Cs(l.stateNode,a,e),is(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ll===null||!ll.has(c))))return l.flags|=65536,o&=-o,l.lanes|=o,o=vm(o),gm(o,e,l,a),is(l,o),!1}l=l.return}while(l!==null);return!1}var bm=Error(u(461)),et=!1;function ut(e,t,l,a){t.child=e===null?om(t,null,l,a):wa(t,e.child,l,a)}function ym(e,t,l,a,o){l=l.render;var c=t.ref;if("ref"in a){var g={};for(var x in a)x!=="ref"&&(g[x]=a[x])}else g=a;return zl(t),a=fs(e,t,l,g,c,o),x=ds(),e!==null&&!et?(hs(e,t,o),An(e,t,o)):(Ce&&x&&Ko(t),t.flags|=1,ut(e,t,a,o),t.child)}function xm(e,t,l,a,o){if(e===null){var c=l.type;return typeof c=="function"&&!Xo(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,wm(e,t,c,a,o)):(e=Hi(l.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Hs(e,o)){var g=c.memoizedProps;if(l=l.compare,l=l!==null?l:cr,l(g,a)&&e.ref===t.ref)return An(e,t,o)}return t.flags|=1,e=xn(c,a),e.ref=t.ref,e.return=t,t.child=e}function wm(e,t,l,a,o){if(e!==null){var c=e.memoizedProps;if(cr(c,a)&&e.ref===t.ref)if(et=!1,t.pendingProps=a=c,Hs(e,o))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,An(e,t,o)}return Ms(e,t,l,a,o)}function Sm(e,t,l){var a=t.pendingProps,o=a.children,c=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=c!==null?c.baseLanes|l:l,e!==null){for(o=t.child=e.child,c=0;o!==null;)c=c|o.lanes|o.childLanes,o=o.sibling;t.childLanes=c&~a}else t.childLanes=0,t.child=null;return Em(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qi(t,c!==null?c.cachePool:null),c!==null?wh(t,c):os(),sm(t);else return t.lanes=t.childLanes=536870912,Em(e,t,c!==null?c.baseLanes|l:l,l)}else c!==null?(qi(t,c.cachePool),wh(t,c),Pn(),t.memoizedState=null):(e!==null&&qi(t,null),os(),Pn());return ut(e,t,o,l),t.child}function Em(e,t,l,a){var o=ns();return o=o===null?null:{parent:Je._currentValue,pool:o},t.memoizedState={baseLanes:l,cachePool:o},e!==null&&qi(t,null),os(),sm(t),e!==null&&pr(e,t,a,!0),null}function au(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ms(e,t,l,a,o){return zl(t),l=fs(e,t,l,a,void 0,o),a=ds(),e!==null&&!et?(hs(e,t,o),An(e,t,o)):(Ce&&a&&Ko(t),t.flags|=1,ut(e,t,l,o),t.child)}function Tm(e,t,l,a,o,c){return zl(t),t.updateQueue=null,l=Eh(t,a,l,o),Sh(e),a=ds(),e!==null&&!et?(hs(e,t,c),An(e,t,c)):(Ce&&a&&Ko(t),t.flags|=1,ut(e,t,l,c),t.child)}function Rm(e,t,l,a,o){if(zl(t),t.stateNode===null){var c=fa,g=l.contextType;typeof g=="object"&&g!==null&&(c=dt(g)),c=new l(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=As,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},as(t),g=l.contextType,c.context=typeof g=="object"&&g!==null?dt(g):fa,c.state=t.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(Os(t,l,g,a),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&As.enqueueReplaceState(c,c.state,null),Sr(t,a,c,o),wr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,A=Hl(l,x);c.props=A;var L=c.context,G=l.contextType;g=fa,typeof G=="object"&&G!==null&&(g=dt(G));var Q=l.getDerivedStateFromProps;G=typeof Q=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,G||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||L!==g)&&fm(t,c,a,g),Zn=!1;var $=t.memoizedState;c.state=$,Sr(t,a,c,o),wr(),L=t.memoizedState,x||$!==L||Zn?(typeof Q=="function"&&(Os(t,l,Q,a),L=t.memoizedState),(A=Zn||cm(t,l,A,a,$,L,g))?(G||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=L),c.props=a,c.state=L,c.context=g,a=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,rs(e,t),g=t.memoizedProps,G=Hl(l,g),c.props=G,Q=t.pendingProps,$=c.context,L=l.contextType,A=fa,typeof L=="object"&&L!==null&&(A=dt(L)),x=l.getDerivedStateFromProps,(L=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==Q||$!==A)&&fm(t,c,a,A),Zn=!1,$=t.memoizedState,c.state=$,Sr(t,a,c,o),wr();var U=t.memoizedState;g!==Q||$!==U||Zn||e!==null&&e.dependencies!==null&&ki(e.dependencies)?(typeof x=="function"&&(Os(t,l,x,a),U=t.memoizedState),(G=Zn||cm(t,l,G,a,$,U,A)||e!==null&&e.dependencies!==null&&ki(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,U,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,U,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=U),c.props=a,c.state=U,c.context=A,a=G):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,au(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=wa(t,e.child,null,o),t.child=wa(t,null,l,o)):ut(e,t,l,o),t.memoizedState=c.state,e=t.child):e=An(e,t,o),e}function Om(e,t,l,a){return hr(),t.flags|=256,ut(e,t,l,a),t.child}var js={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ns(e){return{baseLanes:e,cachePool:hh()}}function Ds(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Xt),e}function Am(e,t,l){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Pe.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(o?Jn(t):Pn(),Ce){var x=Ve,A;if(A=x){e:{for(A=x,x=ln;A.nodeType!==8;){if(!x){x=null;break e}if(A=Wt(A.nextSibling),A===null){x=null;break e}}x=A}x!==null?(t.memoizedState={dehydrated:x,treeContext:Cl!==null?{id:wn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},A=Mt(18,null,null,0),A.stateNode=x,A.return=t,t.child=A,pt=t,Ve=null,A=!0):A=!1}A||Nl(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return pc(x)?t.lanes=32:t.lanes=536870912,null;On(t)}return x=a.children,a=a.fallback,o?(Pn(),o=t.mode,x=ru({mode:"hidden",children:x},o),a=Al(a,o,l,null),x.return=t,a.return=t,x.sibling=a,t.child=x,o=t.child,o.memoizedState=Ns(l),o.childLanes=Ds(e,g,l),t.memoizedState=js,a):(Jn(t),zs(t,x))}if(A=e.memoizedState,A!==null&&(x=A.dehydrated,x!==null)){if(c)t.flags&256?(Jn(t),t.flags&=-257,t=_s(e,t,l)):t.memoizedState!==null?(Pn(),t.child=e.child,t.flags|=128,t=null):(Pn(),o=a.fallback,x=t.mode,a=ru({mode:"visible",children:a.children},x),o=Al(o,x,l,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,wa(t,e.child,null,l),a=t.child,a.memoizedState=Ns(l),a.childLanes=Ds(e,g,l),t.memoizedState=js,t=o);else if(Jn(t),pc(x)){if(g=x.nextSibling&&x.nextSibling.dataset,g)var L=g.dgst;g=L,a=Error(u(419)),a.stack="",a.digest=g,mr({value:a,source:null,stack:null}),t=_s(e,t,l)}else if(et||pr(e,t,l,!1),g=(l&e.childLanes)!==0,et||g){if(g=$e,g!==null&&(a=l&-l,a=(a&42)!==0?1:vo(a),a=(a&(g.suspendedLanes|l))!==0?0:a,a!==0&&a!==A.retryLane))throw A.retryLane=a,ca(e,a),_t(g,e,a),bm;x.data==="$?"||Ws(),t=_s(e,t,l)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Ve=Wt(x.nextSibling),pt=t,Ce=!0,jl=null,ln=!1,e!==null&&(Gt[Yt++]=wn,Gt[Yt++]=Sn,Gt[Yt++]=Cl,wn=e.id,Sn=e.overflow,Cl=t),t=zs(t,a.children),t.flags|=4096);return t}return o?(Pn(),o=a.fallback,x=t.mode,A=e.child,L=A.sibling,a=xn(A,{mode:"hidden",children:a.children}),a.subtreeFlags=A.subtreeFlags&65011712,L!==null?o=xn(L,o):(o=Al(o,x,l,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,x=e.child.memoizedState,x===null?x=Ns(l):(A=x.cachePool,A!==null?(L=Je._currentValue,A=A.parent!==L?{parent:L,pool:L}:A):A=hh(),x={baseLanes:x.baseLanes|l,cachePool:A}),o.memoizedState=x,o.childLanes=Ds(e,g,l),t.memoizedState=js,a):(Jn(t),l=e.child,e=l.sibling,l=xn(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=l,t.memoizedState=null,l)}function zs(e,t){return t=ru({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ru(e,t){return e=Mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function _s(e,t,l){return wa(t,e.child,null,l),e=zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cm(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Wo(e.return,t,l)}function Ls(e,t,l,a,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:o}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=o)}function Mm(e,t,l){var a=t.pendingProps,o=a.revealOrder,c=a.tail;if(ut(e,t,a.children,l),a=Pe.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cm(e,l,t);else if(e.tag===19)Cm(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(K(Pe,a),o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&tu(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Ls(t,!1,o,l,c);break;case"backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&tu(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Ls(t,!0,l,null,c);break;case"together":Ls(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function An(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pr(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=xn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=xn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Hs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ki(e)))}function $y(e,t,l){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),Xn(t,Je,e.memoizedState.cache),hr();break;case 27:case 5:$t(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:Xn(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Jn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Am(e,t,l):(Jn(t),e=An(e,t,l),e!==null?e.sibling:null);Jn(t);break;case 19:var o=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pr(e,t,l,!1),a=(l&t.childLanes)!==0),o){if(a)return Mm(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(Pe,Pe.current),a)break;return null;case 22:case 23:return t.lanes=0,Sm(e,t,l);case 24:Xn(t,Je,e.memoizedState.cache)}return An(e,t,l)}function jm(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!Hs(e,l)&&(t.flags&128)===0)return et=!1,$y(e,t,l);et=(e.flags&131072)!==0}else et=!1,Ce&&(t.flags&1048576)!==0&&ih(t,Ui,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,o=a._init;if(a=o(a._payload),t.type=a,typeof a=="function")Xo(a)?(e=Hl(a,e),t.tag=1,t=Rm(null,t,a,e,l)):(t.tag=0,t=Ms(null,t,a,e,l));else{if(a!=null){if(o=a.$$typeof,o===Y){t.tag=11,t=ym(null,t,a,e,l);break e}else if(o===F){t.tag=14,t=xm(null,t,a,e,l);break e}}throw t=fe(a)||a,Error(u(306,t,""))}}return t;case 0:return Ms(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,o=Hl(a,t.pendingProps),Rm(e,t,a,o,l);case 3:e:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,rs(e,t),Sr(t,a,null,l);var g=t.memoizedState;if(a=g.cache,Xn(t,Je,a),a!==c.cache&&Io(t,[Je],l,!0),wr(),a=g.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Om(e,t,a,l);break e}else if(a!==o){o=Bt(Error(u(424)),t),mr(o),t=Om(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ve=Wt(e.firstChild),pt=t,Ce=!0,jl=null,ln=!0,l=om(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(hr(),a===o){t=An(e,t,l);break e}ut(e,t,a,l)}t=t.child}return t;case 26:return au(e,t),e===null?(l=_p(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ce||(l=t.type,e=t.pendingProps,a=yu(de.current).createElement(l),a[ft]=t,a[wt]=e,st(a,l,e),Ie(a),t.stateNode=a):t.memoizedState=_p(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $t(t),e===null&&Ce&&(a=t.stateNode=Np(t.type,t.pendingProps,de.current),pt=t,ln=!0,o=Ve,il(t.type)?(vc=o,Ve=Wt(a.firstChild)):Ve=o),ut(e,t,t.pendingProps.children,l),au(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((o=a=Ve)&&(a=f1(a,t.type,t.pendingProps,ln),a!==null?(t.stateNode=a,pt=t,Ve=Wt(a.firstChild),ln=!1,o=!0):o=!1),o||Nl(t)),$t(t),o=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,a=c.children,dc(o,c)?a=null:g!==null&&dc(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=fs(e,t,My,null,null,l),Vr._currentValue=o),au(e,t),ut(e,t,a,l),t.child;case 6:return e===null&&Ce&&((e=l=Ve)&&(l=d1(l,t.pendingProps,ln),l!==null?(t.stateNode=l,pt=t,Ve=null,e=!0):e=!1),e||Nl(t)),null;case 13:return Am(e,t,l);case 4:return ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=wa(t,null,a,l):ut(e,t,a,l),t.child;case 11:return ym(e,t,t.type,t.pendingProps,l);case 7:return ut(e,t,t.pendingProps,l),t.child;case 8:return ut(e,t,t.pendingProps.children,l),t.child;case 12:return ut(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Xn(t,t.type,a.value),ut(e,t,a.children,l),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,zl(t),o=dt(o),a=a(o),t.flags|=1,ut(e,t,a,l),t.child;case 14:return xm(e,t,t.type,t.pendingProps,l);case 15:return wm(e,t,t.type,t.pendingProps,l);case 19:return Mm(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=ru(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=xn(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return Sm(e,t,l);case 24:return zl(t),a=dt(Je),e===null?(o=ns(),o===null&&(o=$e,c=es(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=l),o=c),t.memoizedState={parent:a,cache:o},as(t),Xn(t,Je,o)):((e.lanes&l)!==0&&(rs(e,t),Sr(t,null,null,l),wr()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Xn(t,Je,a)):(a=c.cache,Xn(t,Je,a),a!==o.cache&&Io(t,[Je],l,!0))),ut(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Cn(e){e.flags|=4}function Nm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!kp(t)){if(t=Vt.current,t!==null&&((Oe&4194048)===Oe?an!==null:(Oe&62914560)!==Oe&&(Oe&536870912)===0||t!==an))throw yr=ls,mh;e.flags|=8192}}function iu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sd():536870912,e.lanes|=t,Ra|=t)}function Mr(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Uy(e,t,l){var a=t.pendingProps;switch(Fo(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Tn(Je),He(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(dr(t)?Cn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sh())),qe(t),null;case 26:return l=t.memoizedState,e===null?(Cn(t),l!==null?(qe(t),Nm(t,l)):(qe(t),t.flags&=-16777217)):l?l!==e.memoizedState?(Cn(t),qe(t),Nm(t,l)):(qe(t),t.flags&=-16777217):(e.memoizedProps!==a&&Cn(t),qe(t),t.flags&=-16777217),null;case 27:Bn(t),l=de.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Cn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return qe(t),null}e=ne.current,dr(t)?uh(t):(e=Np(o,a,l),t.stateNode=e,Cn(t))}return qe(t),null;case 5:if(Bn(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Cn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return qe(t),null}if(e=ne.current,dr(t))uh(t);else{switch(o=yu(de.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?o.createElement(l,{is:a.is}):o.createElement(l)}}e[ft]=t,e[wt]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(st(e,l,a),l){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Cn(t)}}return qe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Cn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=de.current,dr(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,o=pt,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[ft]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Tp(e.nodeValue,l)),e||Nl(t)}else e=yu(e).createTextNode(a),e[ft]=t,t.stateNode=e}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=dr(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[ft]=t}else hr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),o=!1}else o=sh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(On(t),t):(On(t),null)}if(On(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=a!==null,e=e!==null&&e.memoizedState!==null,l){a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool);var c=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),iu(t,t.updateQueue),qe(t),null;case 4:return He(),e===null&&uc(t.stateNode.containerInfo),qe(t),null;case 10:return Tn(t.type),qe(t),null;case 19:if(J(Pe),o=t.memoizedState,o===null)return qe(t),null;if(a=(t.flags&128)!==0,c=o.rendering,c===null)if(a)Mr(o,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=tu(e),c!==null){for(t.flags|=128,Mr(o,!1),e=c.updateQueue,t.updateQueue=e,iu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)rh(l,e),l=l.sibling;return K(Pe,Pe.current&1|2),t.child}e=e.sibling}o.tail!==null&&nn()>su&&(t.flags|=128,a=!0,Mr(o,!1),t.lanes=4194304)}else{if(!a)if(e=tu(c),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,iu(t,e),Mr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!Ce)return qe(t),null}else 2*nn()-o.renderingStartTime>su&&l!==536870912&&(t.flags|=128,a=!0,Mr(o,!1),t.lanes=4194304);o.isBackwards?(c.sibling=t.child,t.child=c):(e=o.last,e!==null?e.sibling=c:t.child=c,o.last=c)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=nn(),t.sibling=null,e=Pe.current,K(Pe,a?e&1|2:e&1),t):(qe(t),null);case 22:case 23:return On(t),ss(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&iu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&J(_l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Tn(Je),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function ky(e,t){switch(Fo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(Je),He(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Bn(t),null;case 13:if(On(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(Pe),null;case 4:return He(),null;case 10:return Tn(t.type),null;case 22:case 23:return On(t),ss(),e!==null&&J(_l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(Je),null;case 25:return null;default:return null}}function Dm(e,t){switch(Fo(t),t.tag){case 3:Tn(Je),He();break;case 26:case 27:case 5:Bn(t);break;case 4:He();break;case 13:On(t);break;case 19:J(Pe);break;case 10:Tn(t.type);break;case 22:case 23:On(t),ss(),e!==null&&J(_l);break;case 24:Tn(Je)}}function jr(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var o=a.next;l=o;do{if((l.tag&e)===e){a=void 0;var c=l.create,g=l.inst;a=c(),g.destroy=a}l=l.next}while(l!==o)}}catch(x){Le(t,t.return,x)}}function Wn(e,t,l){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var g=a.inst,x=g.destroy;if(x!==void 0){g.destroy=void 0,o=t;var A=l,L=x;try{L()}catch(G){Le(o,A,G)}}}a=a.next}while(a!==c)}}catch(G){Le(t,t.return,G)}}function zm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{xh(t,l)}catch(a){Le(e,e.return,a)}}}function _m(e,t,l){l.props=Hl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Le(e,t,a)}}function Nr(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(o){Le(e,t,o)}}function rn(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(o){Le(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){Le(e,t,o)}else l.current=null}function Lm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(o){Le(e,e.return,o)}}function $s(e,t,l){try{var a=e.stateNode;i1(a,e.type,l,t),a[wt]=t}catch(o){Le(e,e.return,o)}}function Hm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&il(e.type)||e.tag===4}function Us(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hm(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.tag===27&&il(e.type)||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 ks(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=bu));else if(a!==4&&(a===27&&il(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ks(e,t,l),e=e.sibling;e!==null;)ks(e,t,l),e=e.sibling}function uu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&il(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(uu(e,t,l),e=e.sibling;e!==null;)uu(e,t,l),e=e.sibling}function $m(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);st(t,a,l),t[ft]=e,t[wt]=l}catch(c){Le(e,e.return,c)}}var Mn=!1,Qe=!1,Bs=!1,Um=typeof WeakSet=="function"?WeakSet:Set,tt=null;function By(e,t){if(e=e.containerInfo,cc=Ru,e=Fd(e),Uo(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var g=0,x=-1,A=-1,L=0,G=0,Q=e,$=null;t:for(;;){for(var U;Q!==l||o!==0&&Q.nodeType!==3||(x=g+o),Q!==c||a!==0&&Q.nodeType!==3||(A=g+a),Q.nodeType===3&&(g+=Q.nodeValue.length),(U=Q.firstChild)!==null;)$=Q,Q=U;for(;;){if(Q===e)break t;if($===l&&++L===o&&(x=g),$===c&&++G===a&&(A=g),(U=Q.nextSibling)!==null)break;Q=$,$=Q.parentNode}Q=U}l=x===-1||A===-1?null:{start:x,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(fc={focusedElem:e,selectionRange:l},Ru=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,o=c.memoizedProps,c=c.memoizedState,a=l.stateNode;try{var ve=Hl(l.type,o,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(ve,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(he){Le(l,l.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)mc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":mc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function km(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:In(e,l),a&4&&jr(5,l);break;case 1:if(In(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(g){Le(l,l.return,g)}else{var o=Hl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Le(l,l.return,g)}}a&64&&zm(l),a&512&&Nr(l,l.return);break;case 3:if(In(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{xh(e,t)}catch(g){Le(l,l.return,g)}}break;case 27:t===null&&a&4&&$m(l);case 26:case 5:In(e,l),t===null&&a&4&&Lm(l),a&512&&Nr(l,l.return);break;case 12:In(e,l);break;case 13:In(e,l),a&4&&Gm(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Fy.bind(null,l),h1(e,l))));break;case 22:if(a=l.memoizedState!==null||Mn,!a){t=t!==null&&t.memoizedState!==null||Qe,o=Mn;var c=Qe;Mn=a,(Qe=t)&&!c?el(e,l,(l.subtreeFlags&8772)!==0):In(e,l),Mn=o,Qe=c}break;case 30:break;default:In(e,l)}}function Bm(e){var t=e.alternate;t!==null&&(e.alternate=null,Bm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,Tt=!1;function jn(e,t,l){for(l=l.child;l!==null;)qm(e,t,l),l=l.sibling}function qm(e,t,l){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Wa,l)}catch{}switch(l.tag){case 26:Qe||rn(l,t),jn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Qe||rn(l,t);var a=Ue,o=Tt;il(l.type)&&(Ue=l.stateNode,Tt=!1),jn(e,t,l),Br(l.stateNode),Ue=a,Tt=o;break;case 5:Qe||rn(l,t);case 6:if(a=Ue,o=Tt,Ue=null,jn(e,t,l),Ue=a,Tt=o,Ue!==null)if(Tt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(c){Le(l,t,c)}else try{Ue.removeChild(l.stateNode)}catch(c){Le(l,t,c)}break;case 18:Ue!==null&&(Tt?(e=Ue,Mp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Kr(e)):Mp(Ue,l.stateNode));break;case 4:a=Ue,o=Tt,Ue=l.stateNode.containerInfo,Tt=!0,jn(e,t,l),Ue=a,Tt=o;break;case 0:case 11:case 14:case 15:Qe||Wn(2,l,t),Qe||Wn(4,l,t),jn(e,t,l);break;case 1:Qe||(rn(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&_m(l,t,a)),jn(e,t,l);break;case 21:jn(e,t,l);break;case 22:Qe=(a=Qe)||l.memoizedState!==null,jn(e,t,l),Qe=a;break;default:jn(e,t,l)}}function Gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kr(e)}catch(l){Le(t,t.return,l)}}function qy(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Um),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Um),t;default:throw Error(u(435,e.tag))}}function qs(e,t){var l=qy(e);t.forEach(function(a){var o=Jy.bind(null,e,a);l.has(a)||(l.add(a),a.then(o,o))})}function jt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var o=l[a],c=e,g=t,x=g;e:for(;x!==null;){switch(x.tag){case 27:if(il(x.type)){Ue=x.stateNode,Tt=!1;break e}break;case 5:Ue=x.stateNode,Tt=!1;break e;case 3:case 4:Ue=x.stateNode.containerInfo,Tt=!0;break e}x=x.return}if(Ue===null)throw Error(u(160));qm(c,g,o),Ue=null,Tt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Ym(t,e),t=t.sibling}var Pt=null;function Ym(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jt(t,e),Nt(e),a&4&&(Wn(3,e,e.return),jr(3,e),Wn(5,e,e.return));break;case 1:jt(t,e),Nt(e),a&512&&(Qe||l===null||rn(l,l.return)),a&64&&Mn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var o=Pt;if(jt(t,e),Nt(e),a&512&&(Qe||l===null||rn(l,l.return)),a&4){var c=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[tr]||c[ft]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),st(c,a,l),c[ft]=e,Ie(c),a=c;break e;case"link":var g=$p("link","href",o).get(a+(l.href||""));if(g){for(var x=0;x<g.length;x++)if(c=g[x],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(x,1);break t}}c=o.createElement(a),st(c,a,l),o.head.appendChild(c);break;case"meta":if(g=$p("meta","content",o).get(a+(l.content||""))){for(x=0;x<g.length;x++)if(c=g[x],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(x,1);break t}}c=o.createElement(a),st(c,a,l),o.head.appendChild(c);break;default:throw Error(u(468,a))}c[ft]=e,Ie(c),a=c}e.stateNode=a}else Up(o,e.type,e.stateNode);else e.stateNode=Hp(o,a,e.memoizedProps);else c!==a?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,a===null?Up(o,e.type,e.stateNode):Hp(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&$s(e,e.memoizedProps,l.memoizedProps)}break;case 27:jt(t,e),Nt(e),a&512&&(Qe||l===null||rn(l,l.return)),l!==null&&a&4&&$s(e,e.memoizedProps,l.memoizedProps);break;case 5:if(jt(t,e),Nt(e),a&512&&(Qe||l===null||rn(l,l.return)),e.flags&32){o=e.stateNode;try{la(o,"")}catch(U){Le(e,e.return,U)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,$s(e,o,l!==null?l.memoizedProps:o)),a&1024&&(Bs=!0);break;case 6:if(jt(t,e),Nt(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(U){Le(e,e.return,U)}}break;case 3:if(Su=null,o=Pt,Pt=xu(t.containerInfo),jt(t,e),Pt=o,Nt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Kr(t.containerInfo)}catch(U){Le(e,e.return,U)}Bs&&(Bs=!1,Vm(e));break;case 4:a=Pt,Pt=xu(e.stateNode.containerInfo),jt(t,e),Nt(e),Pt=a;break;case 12:jt(t,e),Nt(e);break;case 13:jt(t,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qs=nn()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qs(e,a)));break;case 22:o=e.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,L=Mn,G=Qe;if(Mn=L||o,Qe=G||A,jt(t,e),Qe=G,Mn=L,Nt(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||A||Mn||Qe||$l(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){A=l=t;try{if(c=A.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{x=A.stateNode;var Q=A.memoizedProps.style,$=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;x.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(U){Le(A,A.return,U)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(U){Le(A,A.return,U)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,qs(e,l))));break;case 19:jt(t,e),Nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qs(e,a)));break;case 30:break;case 21:break;default:jt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Hm(a)){l=a;break}a=a.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,c=Us(e);uu(e,c,o);break;case 5:var g=l.stateNode;l.flags&32&&(la(g,""),l.flags&=-33);var x=Us(e);uu(e,x,g);break;case 3:case 4:var A=l.stateNode.containerInfo,L=Us(e);ks(e,L,A);break;default:throw Error(u(161))}}catch(G){Le(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function In(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)km(e,t.alternate,t),t=t.sibling}function $l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wn(4,t,t.return),$l(t);break;case 1:rn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&_m(t,t.return,l),$l(t);break;case 27:Br(t.stateNode);case 26:case 5:rn(t,t.return),$l(t);break;case 22:t.memoizedState===null&&$l(t);break;case 30:$l(t);break;default:$l(t)}e=e.sibling}}function el(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:el(o,c,l),jr(4,c);break;case 1:if(el(o,c,l),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){Le(a,a.return,L)}if(a=c,o=a.updateQueue,o!==null){var x=a.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)yh(A[o],x)}catch(L){Le(a,a.return,L)}}l&&g&64&&zm(c),Nr(c,c.return);break;case 27:$m(c);case 26:case 5:el(o,c,l),l&&a===null&&g&4&&Lm(c),Nr(c,c.return);break;case 12:el(o,c,l);break;case 13:el(o,c,l),l&&g&4&&Gm(o,c);break;case 22:c.memoizedState===null&&el(o,c,l),Nr(c,c.return);break;case 30:break;default:el(o,c,l)}t=t.sibling}}function Gs(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&vr(l))}function Ys(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vr(e))}function un(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Xm(e,t,l,a),t=t.sibling}function Xm(e,t,l,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:un(e,t,l,a),o&2048&&jr(9,t);break;case 1:un(e,t,l,a);break;case 3:un(e,t,l,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vr(e)));break;case 12:if(o&2048){un(e,t,l,a),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,x=c.onPostCommit;typeof x=="function"&&x(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Le(t,t.return,A)}}else un(e,t,l,a);break;case 13:un(e,t,l,a);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?un(e,t,l,a):Dr(e,t):c._visibility&2?un(e,t,l,a):(c._visibility|=2,Sa(e,t,l,a,(t.subtreeFlags&10256)!==0)),o&2048&&Gs(g,t);break;case 24:un(e,t,l,a),o&2048&&Ys(t.alternate,t);break;default:un(e,t,l,a)}}function Sa(e,t,l,a,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,g=t,x=l,A=a,L=g.flags;switch(g.tag){case 0:case 11:case 15:Sa(c,g,x,A,o),jr(8,g);break;case 23:break;case 22:var G=g.stateNode;g.memoizedState!==null?G._visibility&2?Sa(c,g,x,A,o):Dr(c,g):(G._visibility|=2,Sa(c,g,x,A,o)),o&&L&2048&&Gs(g.alternate,g);break;case 24:Sa(c,g,x,A,o),o&&L&2048&&Ys(g.alternate,g);break;default:Sa(c,g,x,A,o)}t=t.sibling}}function Dr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,o=a.flags;switch(a.tag){case 22:Dr(l,a),o&2048&&Gs(a.alternate,a);break;case 24:Dr(l,a),o&2048&&Ys(a.alternate,a);break;default:Dr(l,a)}t=t.sibling}}var zr=8192;function Ea(e){if(e.subtreeFlags&zr)for(e=e.child;e!==null;)Zm(e),e=e.sibling}function Zm(e){switch(e.tag){case 26:Ea(e),e.flags&zr&&e.memoizedState!==null&&O1(Pt,e.memoizedState,e.memoizedProps);break;case 5:Ea(e);break;case 3:case 4:var t=Pt;Pt=xu(e.stateNode.containerInfo),Ea(e),Pt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=zr,zr=16777216,Ea(e),zr=t):Ea(e));break;default:Ea(e)}}function Qm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function _r(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];tt=a,Fm(a,e)}Qm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Km(e),e=e.sibling}function Km(e){switch(e.tag){case 0:case 11:case 15:_r(e),e.flags&2048&&Wn(9,e,e.return);break;case 3:_r(e);break;case 12:_r(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ou(e)):_r(e);break;default:_r(e)}}function ou(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];tt=a,Fm(a,e)}Qm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wn(8,t,t.return),ou(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ou(t));break;default:ou(t)}e=e.sibling}}function Fm(e,t){for(;tt!==null;){var l=tt;switch(l.tag){case 0:case 11:case 15:Wn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:vr(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,tt=a;else e:for(l=e;tt!==null;){a=tt;var o=a.sibling,c=a.return;if(Bm(a),a===l){tt=null;break e}if(o!==null){o.return=c,tt=o;break e}tt=c}}}var Gy={getCacheForType:function(e){var t=dt(Je),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},Yy=typeof WeakMap=="function"?WeakMap:Map,je=0,$e=null,Te=null,Oe=0,Ne=0,Dt=null,tl=!1,Ta=!1,Vs=!1,Nn=0,Xe=0,nl=0,Ul=0,Xs=0,Xt=0,Ra=0,Lr=null,Rt=null,Zs=!1,Qs=0,su=1/0,cu=null,ll=null,ot=0,al=null,Oa=null,Aa=0,Ks=0,Fs=null,Jm=null,Hr=0,Js=null;function zt(){if((je&2)!==0&&Oe!==0)return Oe&-Oe;if(z.T!==null){var e=ma;return e!==0?e:lc()}return dd()}function Pm(){Xt===0&&(Xt=(Oe&536870912)===0||Ce?od():536870912);var e=Vt.current;return e!==null&&(e.flags|=32),Xt}function _t(e,t,l){(e===$e&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(Ca(e,0),rl(e,Oe,Xt,!1)),er(e,l),((je&2)===0||e!==$e)&&(e===$e&&((je&2)===0&&(Ul|=l),Xe===4&&rl(e,Oe,Xt,!1)),on(e))}function Wm(e,t,l){if((je&6)!==0)throw Error(u(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Ia(e,t),o=a?Zy(e,t):Is(e,t,!0),c=a;do{if(o===0){Ta&&!a&&rl(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!Vy(l)){o=Is(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var x=e;o=Lr;var A=x.current.memoizedState.isDehydrated;if(A&&(Ca(x,g).flags|=256),g=Is(x,g,!1),g!==2){if(Vs&&!A){x.errorRecoveryDisabledLanes|=c,Ul|=c,o=4;break e}c=Rt,Rt=o,c!==null&&(Rt===null?Rt=c:Rt.push.apply(Rt,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){Ca(e,0),rl(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:rl(a,t,Xt,!tl);break e;case 2:Rt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Qs+300-nn(),10<o)){if(rl(a,t,Xt,!tl),wi(a,0,!0)!==0)break e;a.timeoutHandle=Ap(Im.bind(null,a,l,Rt,cu,Zs,t,Xt,Ul,Ra,tl,c,2,-0,0),o);break e}Im(a,l,Rt,cu,Zs,t,Xt,Ul,Ra,tl,c,0,-0,0)}}break}while(!0);on(e)}function Im(e,t,l,a,o,c,g,x,A,L,G,Q,$,U){if(e.timeoutHandle=-1,Q=t.subtreeFlags,(Q&8192||(Q&16785408)===16785408)&&(Yr={stylesheets:null,count:0,unsuspend:R1},Zm(t),Q=A1(),Q!==null)){e.cancelPendingCommit=Q(ip.bind(null,e,t,c,l,a,o,g,x,A,G,1,$,U)),rl(e,c,g,!L);return}ip(e,t,c,l,a,o,g,x,A)}function Vy(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var o=l[a],c=o.getSnapshot;o=o.value;try{if(!Ct(c(),o))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rl(e,t,l,a){t&=~Xs,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-At(o),g=1<<c;a[c]=-1,o&=~g}l!==0&&cd(e,l,t)}function fu(){return(je&6)===0?($r(0),!1):!0}function Ps(){if(Te!==null){if(Ne===0)var e=Te.return;else e=Te,En=Dl=null,ms(e),xa=null,Ar=0,e=Te;for(;e!==null;)Dm(e.alternate,e),e=e.return;Te=null}}function Ca(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,o1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ps(),$e=e,Te=l=xn(e.current,null),Oe=t,Ne=0,Dt=null,tl=!1,Ta=Ia(e,t),Vs=!1,Ra=Xt=Xs=Ul=nl=Xe=0,Rt=Lr=null,Zs=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-At(a),c=1<<o;t|=e[o],a&=~c}return Nn=t,zi(),l}function ep(e,t){xe=null,z.H=Wi,t===br||t===Gi?(t=gh(),Ne=3):t===mh?(t=gh(),Ne=4):Ne=t===bm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,Te===null&&(Xe=1,lu(e,Bt(t,e.current)))}function tp(){var e=z.H;return z.H=Wi,e===null?Wi:e}function np(){var e=z.A;return z.A=Gy,e}function Ws(){Xe=4,tl||(Oe&4194048)!==Oe&&Vt.current!==null||(Ta=!0),(nl&134217727)===0&&(Ul&134217727)===0||$e===null||rl($e,Oe,Xt,!1)}function Is(e,t,l){var a=je;je|=2;var o=tp(),c=np();($e!==e||Oe!==t)&&(cu=null,Ca(e,t)),t=!1;var g=Xe;e:do try{if(Ne!==0&&Te!==null){var x=Te,A=Dt;switch(Ne){case 8:Ps(),g=6;break e;case 3:case 2:case 9:case 6:Vt.current===null&&(t=!0);var L=Ne;if(Ne=0,Dt=null,Ma(e,x,A,L),l&&Ta){g=0;break e}break;default:L=Ne,Ne=0,Dt=null,Ma(e,x,A,L)}}Xy(),g=Xe;break}catch(G){ep(e,G)}while(!0);return t&&e.shellSuspendCounter++,En=Dl=null,je=a,z.H=o,z.A=c,Te===null&&($e=null,Oe=0,zi()),g}function Xy(){for(;Te!==null;)lp(Te)}function Zy(e,t){var l=je;je|=2;var a=tp(),o=np();$e!==e||Oe!==t?(cu=null,su=nn()+500,Ca(e,t)):Ta=Ia(e,t);e:do try{if(Ne!==0&&Te!==null){t=Te;var c=Dt;t:switch(Ne){case 1:Ne=0,Dt=null,Ma(e,t,c,1);break;case 2:case 9:if(ph(c)){Ne=0,Dt=null,ap(t);break}t=function(){Ne!==2&&Ne!==9||$e!==e||(Ne=7),on(e)},c.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:ph(c)?(Ne=0,Dt=null,ap(t)):(Ne=0,Dt=null,Ma(e,t,c,7));break;case 5:var g=null;switch(Te.tag){case 26:g=Te.memoizedState;case 5:case 27:var x=Te;if(!g||kp(g)){Ne=0,Dt=null;var A=x.sibling;if(A!==null)Te=A;else{var L=x.return;L!==null?(Te=L,du(L)):Te=null}break t}}Ne=0,Dt=null,Ma(e,t,c,5);break;case 6:Ne=0,Dt=null,Ma(e,t,c,6);break;case 8:Ps(),Xe=6;break e;default:throw Error(u(462))}}Qy();break}catch(G){ep(e,G)}while(!0);return En=Dl=null,z.H=a,z.A=o,je=l,Te!==null?0:($e=null,Oe=0,zi(),Xe)}function Qy(){for(;Te!==null&&!pb();)lp(Te)}function lp(e){var t=jm(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?du(e):Te=t}function ap(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Tm(l,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=Tm(l,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:ms(t);default:Dm(l,t),t=Te=rh(t,Nn),t=jm(l,t,Nn)}e.memoizedProps=e.pendingProps,t===null?du(e):Te=t}function Ma(e,t,l,a){En=Dl=null,ms(t),xa=null,Ar=0;var o=t.return;try{if(Hy(e,o,t,l,Oe)){Xe=1,lu(e,Bt(l,e.current)),Te=null;return}}catch(c){if(o!==null)throw Te=o,c;Xe=1,lu(e,Bt(l,e.current)),Te=null;return}t.flags&32768?(Ce||a===1?e=!0:Ta||(Oe&536870912)!==0?e=!1:(tl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),rp(t,e)):du(t)}function du(e){var t=e;do{if((t.flags&32768)!==0){rp(t,tl);return}e=t.return;var l=Uy(t.alternate,t,Nn);if(l!==null){Te=l;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);Xe===0&&(Xe=5)}function rp(e,t){do{var l=ky(e.alternate,e);if(l!==null){l.flags&=32767,Te=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Te=e;return}Te=e=l}while(e!==null);Xe=6,Te=null}function ip(e,t,l,a,o,c,g,x,A){e.cancelPendingCommit=null;do hu();while(ot!==0);if((je&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Yo,Rb(e,l,c,g,x,A),e===$e&&(Te=$e=null,Oe=0),Oa=t,al=e,Aa=l,Ks=c,Fs=o,Jm=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Py(bi,function(){return fp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,o=Z.p,Z.p=2,g=je,je|=4;try{By(e,t,l)}finally{je=g,Z.p=o,z.T=a}}ot=1,up(),op(),sp()}}function up(){if(ot===1){ot=0;var e=al,t=Oa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var a=Z.p;Z.p=2;var o=je;je|=4;try{Ym(t,e);var c=fc,g=Fd(e.containerInfo),x=c.focusedElem,A=c.selectionRange;if(g!==x&&x&&x.ownerDocument&&Kd(x.ownerDocument.documentElement,x)){if(A!==null&&Uo(x)){var L=A.start,G=A.end;if(G===void 0&&(G=L),"selectionStart"in x)x.selectionStart=L,x.selectionEnd=Math.min(G,x.value.length);else{var Q=x.ownerDocument||document,$=Q&&Q.defaultView||window;if($.getSelection){var U=$.getSelection(),ve=x.textContent.length,he=Math.min(A.start,ve),_e=A.end===void 0?he:Math.min(A.end,ve);!U.extend&&he>_e&&(g=_e,_e=he,he=g);var N=Qd(x,he),j=Qd(x,_e);if(N&&j&&(U.rangeCount!==1||U.anchorNode!==N.node||U.anchorOffset!==N.offset||U.focusNode!==j.node||U.focusOffset!==j.offset)){var _=Q.createRange();_.setStart(N.node,N.offset),U.removeAllRanges(),he>_e?(U.addRange(_),U.extend(j.node,j.offset)):(_.setEnd(j.node,j.offset),U.addRange(_))}}}}for(Q=[],U=x;U=U.parentNode;)U.nodeType===1&&Q.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var V=Q[x];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Ru=!!cc,fc=cc=null}finally{je=o,Z.p=a,z.T=l}}e.current=t,ot=2}}function op(){if(ot===2){ot=0;var e=al,t=Oa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var a=Z.p;Z.p=2;var o=je;je|=4;try{km(e,t.alternate,t)}finally{je=o,Z.p=a,z.T=l}}ot=3}}function sp(){if(ot===4||ot===3){ot=0,vb();var e=al,t=Oa,l=Aa,a=Jm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Oa=al=null,cp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ll=null),go(l),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Wa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=z.T,o=Z.p,Z.p=2,z.T=null;try{for(var c=e.onRecoverableError,g=0;g<a.length;g++){var x=a[g];c(x.value,{componentStack:x.stack})}}finally{z.T=t,Z.p=o}}(Aa&3)!==0&&hu(),on(e),o=e.pendingLanes,(l&4194090)!==0&&(o&42)!==0?e===Js?Hr++:(Hr=0,Js=e):Hr=0,$r(0)}}function cp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vr(t)))}function hu(e){return up(),op(),sp(),fp()}function fp(){if(ot!==5)return!1;var e=al,t=Ks;Ks=0;var l=go(Aa),a=z.T,o=Z.p;try{Z.p=32>l?32:l,z.T=null,l=Fs,Fs=null;var c=al,g=Aa;if(ot=0,Oa=al=null,Aa=0,(je&6)!==0)throw Error(u(331));var x=je;if(je|=4,Km(c.current),Xm(c,c.current,g,l),je=x,$r(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Wa,c)}catch{}return!0}finally{Z.p=o,z.T=a,cp(e,t)}}function dp(e,t,l){t=Bt(l,t),t=Cs(e.stateNode,t,2),e=Kn(e,t,2),e!==null&&(er(e,2),on(e))}function Le(e,t,l){if(e.tag===3)dp(e,e,l);else for(;t!==null;){if(t.tag===3){dp(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ll===null||!ll.has(a))){e=Bt(l,e),l=vm(2),a=Kn(t,l,2),a!==null&&(gm(l,a,t,e),er(a,2),on(a));break}}t=t.return}}function ec(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Yy;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(l)||(Vs=!0,o.add(l),e=Ky.bind(null,e,t,l),t.then(e,e))}function Ky(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,$e===e&&(Oe&l)===l&&(Xe===4||Xe===3&&(Oe&62914560)===Oe&&300>nn()-Qs?(je&2)===0&&Ca(e,0):Xs|=l,Ra===Oe&&(Ra=0)),on(e)}function hp(e,t){t===0&&(t=sd()),e=ca(e,t),e!==null&&(er(e,t),on(e))}function Fy(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),hp(e,l)}function Jy(e,t){var l=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),hp(e,l)}function Py(e,t){return ho(e,t)}var mu=null,ja=null,tc=!1,pu=!1,nc=!1,kl=0;function on(e){e!==ja&&e.next===null&&(ja===null?mu=ja=e:ja=ja.next=e),pu=!0,tc||(tc=!0,Iy())}function $r(e,t){if(!nc&&pu){nc=!0;do for(var l=!1,a=mu;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var g=a.suspendedLanes,x=a.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=o&~(g&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,gp(a,c))}else c=Oe,c=wi(a,a===$e?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Ia(a,c)||(l=!0,gp(a,c));a=a.next}while(l);nc=!1}}function Wy(){mp()}function mp(){pu=tc=!1;var e=0;kl!==0&&(u1()&&(e=kl),kl=0);for(var t=nn(),l=null,a=mu;a!==null;){var o=a.next,c=pp(a,t);c===0?(a.next=null,l===null?mu=o:l.next=o,o===null&&(ja=l)):(l=a,(e!==0||(c&3)!==0)&&(pu=!0)),a=o}$r(e)}function pp(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-At(c),x=1<<g,A=o[g];A===-1?((x&l)===0||(x&a)!==0)&&(o[g]=Tb(x,t)):A<=t&&(e.expiredLanes|=x),c&=~x}if(t=$e,l=Oe,l=wi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&mo(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ia(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&mo(a),go(l)){case 2:case 8:l=id;break;case 32:l=bi;break;case 268435456:l=ud;break;default:l=bi}return a=vp.bind(null,e),l=ho(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&mo(a),e.callbackPriority=2,e.callbackNode=null,2}function vp(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(hu()&&e.callbackNode!==l)return null;var a=Oe;return a=wi(e,e===$e?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Wm(e,a,t),pp(e,nn()),e.callbackNode!=null&&e.callbackNode===l?vp.bind(null,e):null)}function gp(e,t){if(hu())return null;Wm(e,t,!0)}function Iy(){s1(function(){(je&6)!==0?ho(rd,Wy):mp()})}function lc(){return kl===0&&(kl=od()),kl}function bp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Oi(""+e)}function yp(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function e1(e,t,l,a,o){if(t==="submit"&&l&&l.stateNode===o){var c=bp((o[wt]||null).action),g=a.submitter;g&&(t=(t=g[wt]||null)?bp(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var x=new ji("action","action",null,a,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(kl!==0){var A=g?yp(o,g):new FormData(o);Es(l,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(x.preventDefault(),A=g?yp(o,g):new FormData(o),Es(l,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var ac=0;ac<Go.length;ac++){var rc=Go[ac],t1=rc.toLowerCase(),n1=rc[0].toUpperCase()+rc.slice(1);Jt(t1,"on"+n1)}Jt(Wd,"onAnimationEnd"),Jt(Id,"onAnimationIteration"),Jt(eh,"onAnimationStart"),Jt("dblclick","onDoubleClick"),Jt("focusin","onFocus"),Jt("focusout","onBlur"),Jt(yy,"onTransitionRun"),Jt(xy,"onTransitionStart"),Jt(wy,"onTransitionCancel"),Jt(th,"onTransitionEnd"),ea("onMouseEnter",["mouseout","mouseover"]),ea("onMouseLeave",["mouseout","mouseover"]),ea("onPointerEnter",["pointerout","pointerover"]),ea("onPointerLeave",["pointerout","pointerover"]),El("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),El("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),El("onBeforeInput",["compositionend","keypress","textInput","paste"]),El("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),l1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ur));function xp(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var g=a.length-1;0<=g;g--){var x=a[g],A=x.instance,L=x.currentTarget;if(x=x.listener,A!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=L;try{c(o)}catch(G){nu(G)}o.currentTarget=null,c=A}else for(g=0;g<a.length;g++){if(x=a[g],A=x.instance,L=x.currentTarget,x=x.listener,A!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=L;try{c(o)}catch(G){nu(G)}o.currentTarget=null,c=A}}}}function Re(e,t){var l=t[bo];l===void 0&&(l=t[bo]=new Set);var a=e+"__bubble";l.has(a)||(wp(t,e,2,!1),l.add(a))}function ic(e,t,l){var a=0;t&&(a|=4),wp(l,e,a,t)}var vu="_reactListening"+Math.random().toString(36).slice(2);function uc(e){if(!e[vu]){e[vu]=!0,md.forEach(function(l){l!=="selectionchange"&&(l1.has(l)||ic(l,!1,e),ic(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vu]||(t[vu]=!0,ic("selectionchange",!1,t))}}function wp(e,t,l,a){switch(Xp(t)){case 2:var o=j1;break;case 8:o=N1;break;default:o=wc}l=o.bind(null,t,l,e),o=void 0,!Mo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,l,{capture:!0,passive:o}):e.addEventListener(t,l,!0):o!==void 0?e.addEventListener(t,l,{passive:o}):e.addEventListener(t,l,!1)}function oc(e,t,l,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var x=a.stateNode.containerInfo;if(x===o)break;if(g===4)for(g=a.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;x!==null;){if(g=Pl(x),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){a=c=g;continue e}x=x.parentNode}}a=a.return}Cd(function(){var L=c,G=Ao(l),Q=[];e:{var $=nh.get(e);if($!==void 0){var U=ji,ve=e;switch(e){case"keypress":if(Ci(l)===0)break e;case"keydown":case"keyup":U=Pb;break;case"focusin":ve="focus",U=zo;break;case"focusout":ve="blur",U=zo;break;case"beforeblur":case"afterblur":U=zo;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=kb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=ey;break;case Wd:case Id:case eh:U=Gb;break;case th:U=ny;break;case"scroll":case"scrollend":U=$b;break;case"wheel":U=ay;break;case"copy":case"cut":case"paste":U=Vb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=zd;break;case"toggle":case"beforetoggle":U=iy}var he=(t&4)!==0,_e=!he&&(e==="scroll"||e==="scrollend"),N=he?$!==null?$+"Capture":null:$;he=[];for(var j=L,_;j!==null;){var V=j;if(_=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||_===null||N===null||(V=lr(j,N),V!=null&&he.push(kr(j,V,_))),_e)break;j=j.return}0<he.length&&($=new U($,ve,null,l,G),Q.push({event:$,listeners:he}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",$&&l!==Oo&&(ve=l.relatedTarget||l.fromElement)&&(Pl(ve)||ve[Jl]))break e;if((U||$)&&($=G.window===G?G:($=G.ownerDocument)?$.defaultView||$.parentWindow:window,U?(ve=l.relatedTarget||l.toElement,U=L,ve=ve?Pl(ve):null,ve!==null&&(_e=f(ve),he=ve.tag,ve!==_e||he!==5&&he!==27&&he!==6)&&(ve=null)):(U=null,ve=L),U!==ve)){if(he=Nd,V="onMouseLeave",N="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(he=zd,V="onPointerLeave",N="onPointerEnter",j="pointer"),_e=U==null?$:nr(U),_=ve==null?$:nr(ve),$=new he(V,j+"leave",U,l,G),$.target=_e,$.relatedTarget=_,V=null,Pl(G)===L&&(he=new he(N,j+"enter",ve,l,G),he.target=_,he.relatedTarget=_e,V=he),_e=V,U&&ve)t:{for(he=U,N=ve,j=0,_=he;_;_=Na(_))j++;for(_=0,V=N;V;V=Na(V))_++;for(;0<j-_;)he=Na(he),j--;for(;0<_-j;)N=Na(N),_--;for(;j--;){if(he===N||N!==null&&he===N.alternate)break t;he=Na(he),N=Na(N)}he=null}else he=null;U!==null&&Sp(Q,$,U,he,!1),ve!==null&&_e!==null&&Sp(Q,_e,ve,he,!0)}}e:{if($=L?nr(L):window,U=$.nodeName&&$.nodeName.toLowerCase(),U==="select"||U==="input"&&$.type==="file")var ae=qd;else if(kd($))if(Gd)ae=vy;else{ae=my;var Ee=hy}else U=$.nodeName,!U||U.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?L&&Ro(L.elementType)&&(ae=qd):ae=py;if(ae&&(ae=ae(e,L))){Bd(Q,ae,l,G);break e}Ee&&Ee(e,$,L),e==="focusout"&&L&&$.type==="number"&&L.memoizedProps.value!=null&&To($,"number",$.value)}switch(Ee=L?nr(L):window,e){case"focusin":(kd(Ee)||Ee.contentEditable==="true")&&(ua=Ee,ko=L,fr=null);break;case"focusout":fr=ko=ua=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":case"dragend":Bo=!1,Jd(Q,l,G);break;case"selectionchange":if(by)break;case"keydown":case"keyup":Jd(Q,l,G)}var se;if(Lo)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else ia?$d(e,l)&&(me="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(me="onCompositionStart");me&&(_d&&l.locale!=="ko"&&(ia||me!=="onCompositionStart"?me==="onCompositionEnd"&&ia&&(se=Md()):(Vn=G,jo="value"in Vn?Vn.value:Vn.textContent,ia=!0)),Ee=gu(L,me),0<Ee.length&&(me=new Dd(me,e,null,l,G),Q.push({event:me,listeners:Ee}),se?me.data=se:(se=Ud(l),se!==null&&(me.data=se)))),(se=oy?sy(e,l):cy(e,l))&&(me=gu(L,"onBeforeInput"),0<me.length&&(Ee=new Dd("onBeforeInput","beforeinput",null,l,G),Q.push({event:Ee,listeners:me}),Ee.data=se)),e1(Q,e,L,l,G)}xp(Q,t)})}function kr(e,t,l){return{instance:e,listener:t,currentTarget:l}}function gu(e,t){for(var l=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=lr(e,l),o!=null&&a.unshift(kr(e,o,c)),o=lr(e,t),o!=null&&a.push(kr(e,o,c))),e.tag===3)return a;e=e.return}return[]}function Na(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sp(e,t,l,a,o){for(var c=t._reactName,g=[];l!==null&&l!==a;){var x=l,A=x.alternate,L=x.stateNode;if(x=x.tag,A!==null&&A===a)break;x!==5&&x!==26&&x!==27||L===null||(A=L,o?(L=lr(l,c),L!=null&&g.unshift(kr(l,L,A))):o||(L=lr(l,c),L!=null&&g.push(kr(l,L,A)))),l=l.return}g.length!==0&&e.push({event:t,listeners:g})}var a1=/\r\n?/g,r1=/\u0000|\uFFFD/g;function Ep(e){return(typeof e=="string"?e:""+e).replace(a1,`
49
- `).replace(r1,"")}function Tp(e,t){return t=Ep(t),Ep(e)===t}function bu(){}function ze(e,t,l,a,o,c){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||la(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&la(e,""+a);break;case"className":Ei(e,"class",a);break;case"tabIndex":Ei(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ei(e,l,a);break;case"style":Od(e,a,c);break;case"data":if(t!=="object"){Ei(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Oi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="formAction"?(t!=="input"&&ze(e,t,"name",o.name,o,null),ze(e,t,"formEncType",o.formEncType,o,null),ze(e,t,"formMethod",o.formMethod,o,null),ze(e,t,"formTarget",o.formTarget,o,null)):(ze(e,t,"encType",o.encType,o,null),ze(e,t,"method",o.method,o,null),ze(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Oi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=bu);break;case"onScroll":a!=null&&Re("scroll",e);break;case"onScrollEnd":a!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Oi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Re("beforetoggle",e),Re("toggle",e),Si(e,"popover",a);break;case"xlinkActuate":bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":bn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":bn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":bn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":bn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Si(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Lb.get(l)||l,Si(e,l,a))}}function sc(e,t,l,a,o,c){switch(l){case"style":Od(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof a=="string"?la(e,a):(typeof a=="number"||typeof a=="bigint")&&la(e,""+a);break;case"onScroll":a!=null&&Re("scroll",e);break;case"onScrollEnd":a!=null&&Re("scrollend",e);break;case"onClick":a!=null&&(e.onclick=bu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pd.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),t=l.slice(2,o?l.length-7:void 0),c=e[wt]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,o);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Si(e,l,a)}}}function st(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var a=!1,o=!1,c;for(c in l)if(l.hasOwnProperty(c)){var g=l[c];if(g!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:ze(e,t,c,g,l,null)}}o&&ze(e,t,"srcSet",l.srcSet,l,null),a&&ze(e,t,"src",l.src,l,null);return;case"input":Re("invalid",e);var x=c=g=o=null,A=null,L=null;for(a in l)if(l.hasOwnProperty(a)){var G=l[a];if(G!=null)switch(a){case"name":o=G;break;case"type":g=G;break;case"checked":A=G;break;case"defaultChecked":L=G;break;case"value":c=G;break;case"defaultValue":x=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(u(137,t));break;default:ze(e,t,a,G,l,null)}}Sd(e,c,x,A,L,g,o,!1),Ti(e);return;case"select":Re("invalid",e),a=g=c=null;for(o in l)if(l.hasOwnProperty(o)&&(x=l[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":g=x;break;case"multiple":a=x;default:ze(e,t,o,x,l,null)}t=c,l=g,e.multiple=!!a,t!=null?na(e,!!a,t,!1):l!=null&&na(e,!!a,l,!0);return;case"textarea":Re("invalid",e),c=o=a=null;for(g in l)if(l.hasOwnProperty(g)&&(x=l[g],x!=null))switch(g){case"value":a=x;break;case"defaultValue":o=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(u(91));break;default:ze(e,t,g,x,l,null)}Td(e,a,o,c),Ti(e);return;case"option":for(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ze(e,t,A,a,l,null)}return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(a=0;a<Ur.length;a++)Re(Ur[a],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in l)if(l.hasOwnProperty(L)&&(a=l[L],a!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:ze(e,t,L,a,l,null)}return;default:if(Ro(t)){for(G in l)l.hasOwnProperty(G)&&(a=l[G],a!==void 0&&sc(e,t,G,a,l,void 0));return}}for(x in l)l.hasOwnProperty(x)&&(a=l[x],a!=null&&ze(e,t,x,a,l,null))}function i1(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,g=null,x=null,A=null,L=null,G=null;for(U in l){var Q=l[U];if(l.hasOwnProperty(U)&&Q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":A=Q;default:a.hasOwnProperty(U)||ze(e,t,U,null,a,Q)}}for(var $ in a){var U=a[$];if(Q=l[$],a.hasOwnProperty($)&&(U!=null||Q!=null))switch($){case"type":c=U;break;case"name":o=U;break;case"checked":L=U;break;case"defaultChecked":G=U;break;case"value":g=U;break;case"defaultValue":x=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,t));break;default:U!==Q&&ze(e,t,$,U,a,Q)}}Eo(e,g,x,A,L,G,c,o);return;case"select":U=g=x=$=null;for(c in l)if(A=l[c],l.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":U=A;default:a.hasOwnProperty(c)||ze(e,t,c,null,a,A)}for(o in a)if(c=a[o],A=l[o],a.hasOwnProperty(o)&&(c!=null||A!=null))switch(o){case"value":$=c;break;case"defaultValue":x=c;break;case"multiple":g=c;default:c!==A&&ze(e,t,o,c,a,A)}t=x,l=g,a=U,$!=null?na(e,!!l,$,!1):!!a!=!!l&&(t!=null?na(e,!!l,t,!0):na(e,!!l,l?[]:"",!1));return;case"textarea":U=$=null;for(x in l)if(o=l[x],l.hasOwnProperty(x)&&o!=null&&!a.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:ze(e,t,x,null,a,o)}for(g in a)if(o=a[g],c=l[g],a.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":$=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&ze(e,t,g,o,a,c)}Ed(e,$,U);return;case"option":for(var ve in l)if($=l[ve],l.hasOwnProperty(ve)&&$!=null&&!a.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:ze(e,t,ve,null,a,$)}for(A in a)if($=a[A],U=l[A],a.hasOwnProperty(A)&&$!==U&&($!=null||U!=null))switch(A){case"selected":e.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:ze(e,t,A,$,a,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var he in l)$=l[he],l.hasOwnProperty(he)&&$!=null&&!a.hasOwnProperty(he)&&ze(e,t,he,null,a,$);for(L in a)if($=a[L],U=l[L],a.hasOwnProperty(L)&&$!==U&&($!=null||U!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(u(137,t));break;default:ze(e,t,L,$,a,U)}return;default:if(Ro(t)){for(var _e in l)$=l[_e],l.hasOwnProperty(_e)&&$!==void 0&&!a.hasOwnProperty(_e)&&sc(e,t,_e,void 0,a,$);for(G in a)$=a[G],U=l[G],!a.hasOwnProperty(G)||$===U||$===void 0&&U===void 0||sc(e,t,G,$,a,U);return}}for(var N in l)$=l[N],l.hasOwnProperty(N)&&$!=null&&!a.hasOwnProperty(N)&&ze(e,t,N,null,a,$);for(Q in a)$=a[Q],U=l[Q],!a.hasOwnProperty(Q)||$===U||$==null&&U==null||ze(e,t,Q,$,a,U)}var cc=null,fc=null;function yu(e){return e.nodeType===9?e:e.ownerDocument}function Rp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Op(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function dc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hc=null;function u1(){var e=window.event;return e&&e.type==="popstate"?e===hc?!1:(hc=e,!0):(hc=null,!1)}var Ap=typeof setTimeout=="function"?setTimeout:void 0,o1=typeof clearTimeout=="function"?clearTimeout:void 0,Cp=typeof Promise=="function"?Promise:void 0,s1=typeof queueMicrotask=="function"?queueMicrotask:typeof Cp<"u"?function(e){return Cp.resolve(null).then(e).catch(c1)}:Ap;function c1(e){setTimeout(function(){throw e})}function il(e){return e==="head"}function Mp(e,t){var l=t,a=0,o=0;do{var c=l.nextSibling;if(e.removeChild(l),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(0<a&&8>a){l=a;var g=e.ownerDocument;if(l&1&&Br(g.documentElement),l&2&&Br(g.body),l&4)for(l=g.head,Br(l),g=l.firstChild;g;){var x=g.nextSibling,A=g.nodeName;g[tr]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&g.rel.toLowerCase()==="stylesheet"||l.removeChild(g),g=x}}if(o===0){e.removeChild(c),Kr(t);return}o--}else l==="$"||l==="$?"||l==="$!"?o++:a=l.charCodeAt(0)-48;else a=0;l=c}while(l);Kr(t)}function mc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":mc(l),yo(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function f1(e,t,l,a){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[tr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Wt(e.nextSibling),e===null)break}return null}function d1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Wt(e.nextSibling),e===null))return null;return e}function pc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function h1(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Wt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var vc=null;function jp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function Np(e,t,l){switch(t=yu(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Br(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yo(e)}var Zt=new Map,Dp=new Set;function xu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=Z.d;Z.d={f:m1,r:p1,D:v1,C:g1,L:b1,m:y1,X:w1,S:x1,M:S1};function m1(){var e=Dn.f(),t=fu();return e||t}function p1(e){var t=Wl(e);t!==null&&t.tag===5&&t.type==="form"?Wh(t):Dn.r(e)}var Da=typeof document>"u"?null:document;function zp(e,t,l){var a=Da;if(a&&typeof t=="string"&&t){var o=kt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),Dp.has(o)||(Dp.add(o),e={rel:e,crossOrigin:l,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),st(t,"link",e),Ie(t),a.head.appendChild(t)))}}function v1(e){Dn.D(e),zp("dns-prefetch",e,null)}function g1(e,t){Dn.C(e,t),zp("preconnect",e,t)}function b1(e,t,l){Dn.L(e,t,l);var a=Da;if(a&&e&&t){var o='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+kt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+kt(l.imageSizes)+'"]')):o+='[href="'+kt(e)+'"]';var c=o;switch(t){case"style":c=za(e);break;case"script":c=_a(e)}Zt.has(c)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Zt.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(qr(c))||t==="script"&&a.querySelector(Gr(c))||(t=a.createElement("link"),st(t,"link",e),Ie(t),a.head.appendChild(t)))}}function y1(e,t){Dn.m(e,t);var l=Da;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+kt(a)+'"][href="'+kt(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=_a(e)}if(!Zt.has(c)&&(e=b({rel:"modulepreload",href:e},t),Zt.set(c,e),l.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gr(c)))return}a=l.createElement("link"),st(a,"link",e),Ie(a),l.head.appendChild(a)}}}function x1(e,t,l){Dn.S(e,t,l);var a=Da;if(a&&e){var o=Il(a).hoistableStyles,c=za(e);t=t||"default";var g=o.get(c);if(!g){var x={loading:0,preload:null};if(g=a.querySelector(qr(c)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Zt.get(c))&&gc(e,l);var A=g=a.createElement("link");Ie(A),st(A,"link",e),A._p=new Promise(function(L,G){A.onload=L,A.onerror=G}),A.addEventListener("load",function(){x.loading|=1}),A.addEventListener("error",function(){x.loading|=2}),x.loading|=4,wu(g,t,a)}g={type:"stylesheet",instance:g,count:1,state:x},o.set(c,g)}}}function w1(e,t){Dn.X(e,t);var l=Da;if(l&&e){var a=Il(l).hoistableScripts,o=_a(e),c=a.get(o);c||(c=l.querySelector(Gr(o)),c||(e=b({src:e,async:!0},t),(t=Zt.get(o))&&bc(e,t),c=l.createElement("script"),Ie(c),st(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function S1(e,t){Dn.M(e,t);var l=Da;if(l&&e){var a=Il(l).hoistableScripts,o=_a(e),c=a.get(o);c||(c=l.querySelector(Gr(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=Zt.get(o))&&bc(e,t),c=l.createElement("script"),Ie(c),st(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function _p(e,t,l,a){var o=(o=de.current)?xu(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=za(l.href),l=Il(o).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=za(l.href);var c=Il(o).hoistableStyles,g=c.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=o.querySelector(qr(e)))&&!c._p&&(g.instance=c,g.state.loading=5),Zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Zt.set(e,l),c||E1(o,e,l,g.state))),t&&a===null)throw Error(u(528,""));return g}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=_a(l),l=Il(o).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function za(e){return'href="'+kt(e)+'"'}function qr(e){return'link[rel="stylesheet"]['+e+"]"}function Lp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function E1(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),st(t,"link",l),Ie(t),e.head.appendChild(t))}function _a(e){return'[src="'+kt(e)+'"]'}function Gr(e){return"script[async]"+e}function Hp(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+kt(l.href)+'"]');if(a)return t.instance=a,Ie(a),a;var o=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ie(a),st(a,"style",o),wu(a,l.precedence,e),t.instance=a;case"stylesheet":o=za(l.href);var c=e.querySelector(qr(o));if(c)return t.state.loading|=4,t.instance=c,Ie(c),c;a=Lp(l),(o=Zt.get(o))&&gc(a,o),c=(e.ownerDocument||e).createElement("link"),Ie(c);var g=c;return g._p=new Promise(function(x,A){g.onload=x,g.onerror=A}),st(c,"link",a),t.state.loading|=4,wu(c,l.precedence,e),t.instance=c;case"script":return c=_a(l.src),(o=e.querySelector(Gr(c)))?(t.instance=o,Ie(o),o):(a=l,(o=Zt.get(c))&&(a=b({},l),bc(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),Ie(o),st(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,wu(a,l.precedence,e));return t.instance}function wu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,g=0;g<a.length;g++){var x=a[g];if(x.dataset.precedence===t)c=x;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Su=null;function $p(e,t,l){if(Su===null){var a=new Map,o=Su=new Map;o.set(l,a)}else o=Su,a=o.get(l),a||(a=new Map,o.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var c=l[o];if(!(c[tr]||c[ft]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var x=a.get(g);x?x.push(c):a.set(g,[c])}}return a}function Up(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function T1(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function kp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Yr=null;function R1(){}function O1(e,t,l){if(Yr===null)throw Error(u(475));var a=Yr;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=za(l.href),c=e.querySelector(qr(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Eu.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=c,Ie(c);return}c=e.ownerDocument||e,l=Lp(l),(o=Zt.get(o))&&gc(l,o),c=c.createElement("link"),Ie(c);var g=c;g._p=new Promise(function(x,A){g.onload=x,g.onerror=A}),st(c,"link",l),t.instance=c}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=Eu.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function A1(){if(Yr===null)throw Error(u(475));var e=Yr;return e.stylesheets&&e.count===0&&yc(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&yc(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function Eu(){if(this.count--,this.count===0){if(this.stylesheets)yc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tu=null;function yc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tu=new Map,t.forEach(C1,e),Tu=null,Eu.call(e))}function C1(e,t){if(!(t.state.loading&4)){var l=Tu.get(e);if(l)var a=l.get(null);else{l=new Map,Tu.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),a=g)}a&&l.set(null,a)}o=t.instance,g=o.getAttribute("data-precedence"),c=l.get(g)||a,c===a&&l.set(null,o),l.set(g,o),this.count++,a=Eu.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Vr={$$typeof:D,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function M1(e,t,l,a,o,c,g,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.hiddenUpdates=po(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Bp(e,t,l,a,o,c,g,x,A,L,G,Q){return e=new M1(e,t,l,g,x,A,L,Q),t=1,c===!0&&(t|=24),c=Mt(3,null,null,t),e.current=c,c.stateNode=e,t=es(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:l,cache:t},as(c),e}function qp(e){return e?(e=fa,e):fa}function Gp(e,t,l,a,o,c){o=qp(o),a.context===null?a.context=o:a.pendingContext=o,a=Qn(t),a.payload={element:l},c=c===void 0?null:c,c!==null&&(a.callback=c),l=Kn(e,a,t),l!==null&&(_t(l,e,t),xr(l,e,t))}function Yp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function xc(e,t){Yp(e,t),(e=e.alternate)&&Yp(e,t)}function Vp(e){if(e.tag===13){var t=ca(e,67108864);t!==null&&_t(t,e,67108864),xc(e,67108864)}}var Ru=!0;function j1(e,t,l,a){var o=z.T;z.T=null;var c=Z.p;try{Z.p=2,wc(e,t,l,a)}finally{Z.p=c,z.T=o}}function N1(e,t,l,a){var o=z.T;z.T=null;var c=Z.p;try{Z.p=8,wc(e,t,l,a)}finally{Z.p=c,z.T=o}}function wc(e,t,l,a){if(Ru){var o=Sc(a);if(o===null)oc(e,t,a,Ou,l),Zp(e,a);else if(z1(o,e,t,l,a))a.stopPropagation();else if(Zp(e,a),t&4&&-1<D1.indexOf(e)){for(;o!==null;){var c=Wl(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=Sl(c.pendingLanes);if(g!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;g;){var A=1<<31-At(g);x.entanglements[1]|=A,g&=~A}on(c),(je&6)===0&&(su=nn()+500,$r(0))}}break;case 13:x=ca(c,2),x!==null&&_t(x,c,2),fu(),xc(c,2)}if(c=Sc(a),c===null&&oc(e,t,a,Ou,l),c===o)break;o=c}o!==null&&a.stopPropagation()}else oc(e,t,a,null,l)}}function Sc(e){return e=Ao(e),Ec(e)}var Ou=null;function Ec(e){if(Ou=null,e=Pl(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ou=e,null}function Xp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gb()){case rd:return 2;case id:return 8;case bi:case bb:return 32;case ud:return 268435456;default:return 32}default:return 32}}var Tc=!1,ul=null,ol=null,sl=null,Xr=new Map,Zr=new Map,cl=[],D1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Zp(e,t){switch(e){case"focusin":case"focusout":ul=null;break;case"dragenter":case"dragleave":ol=null;break;case"mouseover":case"mouseout":sl=null;break;case"pointerover":case"pointerout":Xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(t.pointerId)}}function Qr(e,t,l,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Wl(t),t!==null&&Vp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function z1(e,t,l,a,o){switch(t){case"focusin":return ul=Qr(ul,e,t,l,a,o),!0;case"dragenter":return ol=Qr(ol,e,t,l,a,o),!0;case"mouseover":return sl=Qr(sl,e,t,l,a,o),!0;case"pointerover":var c=o.pointerId;return Xr.set(c,Qr(Xr.get(c)||null,e,t,l,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Zr.set(c,Qr(Zr.get(c)||null,e,t,l,a,o)),!0}return!1}function Qp(e){var t=Pl(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,Ob(e.priority,function(){if(l.tag===13){var a=zt();a=vo(a);var o=ca(l,a);o!==null&&_t(o,l,a),xc(l,a)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Au(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Sc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Oo=a,l.target.dispatchEvent(a),Oo=null}else return t=Wl(l),t!==null&&Vp(t),e.blockedOn=l,!1;t.shift()}return!0}function Kp(e,t,l){Au(e)&&l.delete(t)}function _1(){Tc=!1,ul!==null&&Au(ul)&&(ul=null),ol!==null&&Au(ol)&&(ol=null),sl!==null&&Au(sl)&&(sl=null),Xr.forEach(Kp),Zr.forEach(Kp)}function Cu(e,t){e.blockedOn===t&&(e.blockedOn=null,Tc||(Tc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,_1)))}var Mu=null;function Fp(e){Mu!==e&&(Mu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Mu===e&&(Mu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Ec(a||l)===null)continue;break}var c=Wl(l);c!==null&&(e.splice(t,3),t-=3,Es(c,{pending:!0,data:o,method:l.method,action:a},a,o))}}))}function Kr(e){function t(A){return Cu(A,e)}ul!==null&&Cu(ul,e),ol!==null&&Cu(ol,e),sl!==null&&Cu(sl,e),Xr.forEach(t),Zr.forEach(t);for(var l=0;l<cl.length;l++){var a=cl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<cl.length&&(l=cl[0],l.blockedOn===null);)Qp(l),l.blockedOn===null&&cl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var o=l[a],c=l[a+1],g=o[wt]||null;if(typeof c=="function")g||Fp(l);else if(g){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[wt]||null)x=g.formAction;else if(Ec(o)!==null)continue}else x=g.action;typeof x=="function"?l[a+1]=x:(l.splice(a,3),a-=3),Fp(l)}}}function Rc(e){this._internalRoot=e}ju.prototype.render=Rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,a=zt();Gp(l,a,e,t,null,null)},ju.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gp(e.current,2,null,e,null,null),fu(),t[Jl]=null}};function ju(e){this._internalRoot=e}ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=dd();e={blockedOn:null,target:e,priority:t};for(var l=0;l<cl.length&&t!==0&&t<cl[l].priority;l++);cl.splice(l,0,e),l===0&&Qp(e)}};var Jp=r.version;if(Jp!=="19.1.0")throw Error(u(527,Jp,"19.1.0"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=h(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var L1={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{Wa=Nu.inject(L1),Ot=Nu}catch{}}return Jr.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,a="",o=dm,c=hm,g=mm,x=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(x=t.unstable_transitionCallbacks)),t=Bp(e,1,!1,null,null,l,a,o,c,g,x,null),e[Jl]=t.current,uc(e),new Rc(t)},Jr.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var a=!1,o="",c=dm,g=hm,x=mm,A=null,L=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(x=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(A=l.unstable_transitionCallbacks),l.formState!==void 0&&(L=l.formState)),t=Bp(e,1,!0,t,l??null,a,o,c,g,x,A,L),t.context=qp(null),l=t.current,a=zt(),a=vo(a),o=Qn(a),o.callback=null,Kn(l,o,a),l=a,t.current.lanes=l,er(t,l),on(t),e[Jl]=t.current,uc(e),new ju(t)},Jr.version="19.1.0",Jr}var iv;function Z1(){if(iv)return Cc.exports;iv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Cc.exports=X1(),Cc.exports}var Q1=Z1();function K1({title:n,titleId:r,...i},u){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:u,"aria-labelledby":r},i),n?v.createElement("title",{id:r},n):null,v.createElement("path",{fillRule:"evenodd",d:"M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.433a.75.75 0 0 0 0-1.5H3.989a.75.75 0 0 0-.75.75v4.242a.75.75 0 0 0 1.5 0v-2.43l.31.31a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm1.23-3.723a.75.75 0 0 0 .219-.53V2.929a.75.75 0 0 0-1.5 0V5.36l-.31-.31A7 7 0 0 0 3.239 8.188a.75.75 0 1 0 1.448.389A5.5 5.5 0 0 1 13.89 6.11l.311.31h-2.432a.75.75 0 0 0 0 1.5h4.243a.75.75 0 0 0 .53-.219Z",clipRule:"evenodd"}))}const F1=v.forwardRef(K1);function J1({title:n,titleId:r,...i},u){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:u,"aria-labelledby":r},i),n?v.createElement("title",{id:r},n):null,v.createElement("path",{fillRule:"evenodd",d:"M4.25 5.5a.75.75 0 0 0-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-4a.75.75 0 0 1 1.5 0v4A2.25 2.25 0 0 1 12.75 17h-8.5A2.25 2.25 0 0 1 2 14.75v-8.5A2.25 2.25 0 0 1 4.25 4h5a.75.75 0 0 1 0 1.5h-5Z",clipRule:"evenodd"}),v.createElement("path",{fillRule:"evenodd",d:"M6.194 12.753a.75.75 0 0 0 1.06.053L16.5 4.44v2.81a.75.75 0 0 0 1.5 0v-4.5a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0 0 1.5h2.553l-9.056 8.194a.75.75 0 0 0-.053 1.06Z",clipRule:"evenodd"}))}const P1=v.forwardRef(J1);function W1({title:n,titleId:r,...i},u){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:u,"aria-labelledby":r},i),n?v.createElement("title",{id:r},n):null,v.createElement("path",{fillRule:"evenodd",d:"M2 3.75A.75.75 0 0 1 2.75 3h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 3.75Zm0 4.167a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Zm0 4.166a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Zm0 4.167a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))}const I1=v.forwardRef(W1);function ex({title:n,titleId:r,...i},u){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:u,"aria-labelledby":r},i),n?v.createElement("title",{id:r},n):null,v.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const tx=v.forwardRef(ex);function nx({title:n,titleId:r,...i},u){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:u,"aria-labelledby":r},i),n?v.createElement("title",{id:r},n):null,v.createElement("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const ug=v.forwardRef(nx);function lx({title:n,titleId:r,...i},u){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:u,"aria-labelledby":r},i),n?v.createElement("title",{id:r},n):null,v.createElement("path",{fillRule:"evenodd",d:"M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z",clipRule:"evenodd"}))}const ax=v.forwardRef(lx);function rx({title:n,titleId:r,...i},u){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:u,"aria-labelledby":r},i),n?v.createElement("title",{id:r},n):null,v.createElement("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const ix=v.forwardRef(rx);function ux({title:n,titleId:r,...i},u){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:u,"aria-labelledby":r},i),n?v.createElement("title",{id:r},n):null,v.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z",clipRule:"evenodd"}))}const ox=v.forwardRef(ux);function sx({title:n,titleId:r,...i},u){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:u,"aria-labelledby":r},i),n?v.createElement("title",{id:r},n):null,v.createElement("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"}))}const cx=v.forwardRef(sx);var Pr={},uv;function fx(){if(uv)return Pr;uv=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.parse=d,Pr.serialize=m;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,r=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,u=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,f=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function d(S,w){const T=new f,R=S.length;if(R<2)return T;const M=w?.decode||b;let C=0;do{const H=S.indexOf("=",C);if(H===-1)break;const D=S.indexOf(";",C),Y=D===-1?R:D;if(H>Y){C=S.lastIndexOf(";",H-1)+1;continue}const B=p(S,C,H),I=h(S,H,B),F=S.slice(B,I);if(T[F]===void 0){let q=p(S,H+1,Y),W=h(S,Y,q);const P=M(S.slice(q,W));T[F]=P}C=Y+1}while(C<R);return T}function p(S,w,T){do{const R=S.charCodeAt(w);if(R!==32&&R!==9)return w}while(++w<T);return T}function h(S,w,T){for(;w>T;){const R=S.charCodeAt(--w);if(R!==32&&R!==9)return w+1}return T}function m(S,w,T){const R=T?.encode||encodeURIComponent;if(!n.test(S))throw new TypeError(`argument name is invalid: ${S}`);const M=R(w);if(!r.test(M))throw new TypeError(`argument val is invalid: ${w}`);let C=S+"="+M;if(!T)return C;if(T.maxAge!==void 0){if(!Number.isInteger(T.maxAge))throw new TypeError(`option maxAge is invalid: ${T.maxAge}`);C+="; Max-Age="+T.maxAge}if(T.domain){if(!i.test(T.domain))throw new TypeError(`option domain is invalid: ${T.domain}`);C+="; Domain="+T.domain}if(T.path){if(!u.test(T.path))throw new TypeError(`option path is invalid: ${T.path}`);C+="; Path="+T.path}if(T.expires){if(!E(T.expires)||!Number.isFinite(T.expires.valueOf()))throw new TypeError(`option expires is invalid: ${T.expires}`);C+="; Expires="+T.expires.toUTCString()}if(T.httpOnly&&(C+="; HttpOnly"),T.secure&&(C+="; Secure"),T.partitioned&&(C+="; Partitioned"),T.priority)switch(typeof T.priority=="string"?T.priority.toLowerCase():void 0){case"low":C+="; Priority=Low";break;case"medium":C+="; Priority=Medium";break;case"high":C+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${T.priority}`)}if(T.sameSite)switch(typeof T.sameSite=="string"?T.sameSite.toLowerCase():T.sameSite){case!0:case"strict":C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"none":C+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${T.sameSite}`)}return C}function b(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function E(S){return s.call(S)==="[object Date]"}return Pr}fx();var ov="popstate";function dx(n={}){function r(u,s){let{pathname:f,search:d,hash:p}=u.location;return ef("",{pathname:f,search:d,hash:p},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function i(u,s){return typeof s=="string"?s:ri(s)}return mx(r,i,null,n)}function Ye(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function dn(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function hx(){return Math.random().toString(36).substring(2,10)}function sv(n,r){return{usr:n.state,key:n.key,idx:r}}function ef(n,r,i=null,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Ya(r):r,state:i,key:r&&r.key||u||hx()}}function ri({pathname:n="/",search:r="",hash:i=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function Ya(n){let r={};if(n){let i=n.indexOf("#");i>=0&&(r.hash=n.substring(i),n=n.substring(0,i));let u=n.indexOf("?");u>=0&&(r.search=n.substring(u),n=n.substring(0,u)),n&&(r.pathname=n)}return r}function mx(n,r,i,u={}){let{window:s=document.defaultView,v5Compat:f=!1}=u,d=s.history,p="POP",h=null,m=b();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function b(){return(d.state||{idx:null}).idx}function E(){p="POP";let M=b(),C=M==null?null:M-m;m=M,h&&h({action:p,location:R.location,delta:C})}function S(M,C){p="PUSH";let H=ef(R.location,M,C);m=b()+1;let D=sv(H,m),Y=R.createHref(H);try{d.pushState(D,"",Y)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;s.location.assign(Y)}f&&h&&h({action:p,location:R.location,delta:1})}function w(M,C){p="REPLACE";let H=ef(R.location,M,C);m=b();let D=sv(H,m),Y=R.createHref(H);d.replaceState(D,"",Y),f&&h&&h({action:p,location:R.location,delta:0})}function T(M){return px(M)}let R={get action(){return p},get location(){return n(s,d)},listen(M){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(ov,E),h=M,()=>{s.removeEventListener(ov,E),h=null}},createHref(M){return r(s,M)},createURL:T,encodeLocation(M){let C=T(M);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:S,replace:w,go(M){return d.go(M)}};return R}function px(n,r=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Ye(i,"No window.location.(origin|href) available to create URL");let u=typeof n=="string"?n:ri(n);return u=u.replace(/ $/,"%20"),!r&&u.startsWith("//")&&(u=i+u),new URL(u,i)}function og(n,r,i="/"){return vx(n,r,i,!1)}function vx(n,r,i,u){let s=typeof r=="string"?Ya(r):r,f=Hn(s.pathname||"/",i);if(f==null)return null;let d=sg(n);gx(d);let p=null;for(let h=0;p==null&&h<d.length;++h){let m=Cx(f);p=Ox(d[h],m,u)}return p}function sg(n,r=[],i=[],u=""){let s=(f,d,p)=>{let h={relativePath:p===void 0?f.path||"":p,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};h.relativePath.startsWith("/")&&(Ye(h.relativePath.startsWith(u),`Absolute route path "${h.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(u.length));let m=Ln([u,h.relativePath]),b=i.concat(h);f.children&&f.children.length>0&&(Ye(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),sg(f.children,r,b,m)),!(f.path==null&&!f.index)&&r.push({path:m,score:Tx(m,f.index),routesMeta:b})};return n.forEach((f,d)=>{if(f.path===""||!f.path?.includes("?"))s(f,d);else for(let p of cg(f.path))s(f,d,p)}),r}function cg(n){let r=n.split("/");if(r.length===0)return[];let[i,...u]=r,s=i.endsWith("?"),f=i.replace(/\?$/,"");if(u.length===0)return s?[f,""]:[f];let d=cg(u.join("/")),p=[];return p.push(...d.map(h=>h===""?f:[f,h].join("/"))),s&&p.push(...d),p.map(h=>n.startsWith("/")&&h===""?"/":h)}function gx(n){n.sort((r,i)=>r.score!==i.score?i.score-r.score:Rx(r.routesMeta.map(u=>u.childrenIndex),i.routesMeta.map(u=>u.childrenIndex)))}var bx=/^:[\w-]+$/,yx=3,xx=2,wx=1,Sx=10,Ex=-2,cv=n=>n==="*";function Tx(n,r){let i=n.split("/"),u=i.length;return i.some(cv)&&(u+=Ex),r&&(u+=xx),i.filter(s=>!cv(s)).reduce((s,f)=>s+(bx.test(f)?yx:f===""?wx:Sx),u)}function Rx(n,r){return n.length===r.length&&n.slice(0,-1).every((u,s)=>u===r[s])?n[n.length-1]-r[r.length-1]:0}function Ox(n,r,i=!1){let{routesMeta:u}=n,s={},f="/",d=[];for(let p=0;p<u.length;++p){let h=u[p],m=p===u.length-1,b=f==="/"?r:r.slice(f.length)||"/",E=Gu({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},b),S=h.route;if(!E&&m&&i&&!u[u.length-1].route.index&&(E=Gu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},b)),!E)return null;Object.assign(s,E.params),d.push({params:s,pathname:Ln([f,E.pathname]),pathnameBase:Dx(Ln([f,E.pathnameBase])),route:S}),E.pathnameBase!=="/"&&(f=Ln([f,E.pathnameBase]))}return d}function Gu(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,u]=Ax(n.path,n.caseSensitive,n.end),s=r.match(i);if(!s)return null;let f=s[0],d=f.replace(/(.)\/+$/,"$1"),p=s.slice(1);return{params:u.reduce((m,{paramName:b,isOptional:E},S)=>{if(b==="*"){let T=p[S]||"";d=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const w=p[S];return E&&!w?m[b]=void 0:m[b]=(w||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:d,pattern:n}}function Ax(n,r=!1,i=!0){dn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let u=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,h)=>(u.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(u.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,r?void 0:"i"),u]}function Cx(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return dn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function Hn(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,u=n.charAt(i);return u&&u!=="/"?null:n.slice(i)||"/"}function Mx(n,r="/"){let{pathname:i,search:u="",hash:s=""}=typeof n=="string"?Ya(n):n;return{pathname:i?i.startsWith("/")?i:jx(i,r):r,search:zx(u),hash:_x(s)}}function jx(n,r){let i=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?i.length>1&&i.pop():s!=="."&&i.push(s)}),i.length>1?i.join("/"):"/"}function Dc(n,r,i,u){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Nx(n){return n.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function fg(n){let r=Nx(n);return r.map((i,u)=>u===r.length-1?i.pathname:i.pathnameBase)}function dg(n,r,i,u=!1){let s;typeof n=="string"?s=Ya(n):(s={...n},Ye(!s.pathname||!s.pathname.includes("?"),Dc("?","pathname","search",s)),Ye(!s.pathname||!s.pathname.includes("#"),Dc("#","pathname","hash",s)),Ye(!s.search||!s.search.includes("#"),Dc("#","search","hash",s)));let f=n===""||s.pathname==="",d=f?"/":s.pathname,p;if(d==null)p=i;else{let E=r.length-1;if(!u&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),E-=1;s.pathname=S.join("/")}p=E>=0?r[E]:"/"}let h=Mx(s,p),m=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(m||b)&&(h.pathname+="/"),h}var Ln=n=>n.join("/").replace(/\/\/+/g,"/"),Dx=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),zx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,_x=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Lx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var hg=["POST","PUT","PATCH","DELETE"];new Set(hg);var Hx=["GET",...hg];new Set(Hx);var Va=v.createContext(null);Va.displayName="DataRouter";var Fu=v.createContext(null);Fu.displayName="DataRouterState";var mg=v.createContext({isTransitioning:!1});mg.displayName="ViewTransition";var $x=v.createContext(new Map);$x.displayName="Fetchers";var Ux=v.createContext(null);Ux.displayName="Await";var mn=v.createContext(null);mn.displayName="Navigation";var ci=v.createContext(null);ci.displayName="Location";var $n=v.createContext({outlet:null,matches:[],isDataRoute:!1});$n.displayName="Route";var Sf=v.createContext(null);Sf.displayName="RouteError";function kx(n,{relative:r}={}){Ye(fi(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:u}=v.useContext(mn),{hash:s,pathname:f,search:d}=di(n,{relative:r}),p=f;return i!=="/"&&(p=f==="/"?i:Ln([i,f])),u.createHref({pathname:p,search:d,hash:s})}function fi(){return v.useContext(ci)!=null}function xl(){return Ye(fi(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(ci).location}var pg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vg(n){v.useContext(mn).static||v.useLayoutEffect(n)}function Bx(){let{isDataRoute:n}=v.useContext($n);return n?Ix():qx()}function qx(){Ye(fi(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(Va),{basename:r,navigator:i}=v.useContext(mn),{matches:u}=v.useContext($n),{pathname:s}=xl(),f=JSON.stringify(fg(u)),d=v.useRef(!1);return vg(()=>{d.current=!0}),v.useCallback((h,m={})=>{if(dn(d.current,pg),!d.current)return;if(typeof h=="number"){i.go(h);return}let b=dg(h,JSON.parse(f),s,m.relative==="path");n==null&&r!=="/"&&(b.pathname=b.pathname==="/"?r:Ln([r,b.pathname])),(m.replace?i.replace:i.push)(b,m.state,m)},[r,i,f,s,n])}v.createContext(null);function di(n,{relative:r}={}){let{matches:i}=v.useContext($n),{pathname:u}=xl(),s=JSON.stringify(fg(i));return v.useMemo(()=>dg(n,JSON.parse(s),u,r==="path"),[n,s,u,r])}function Gx(n,r){return gg(n,r)}function gg(n,r,i,u){Ye(fi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(mn),{matches:f}=v.useContext($n),d=f[f.length-1],p=d?d.params:{},h=d?d.pathname:"/",m=d?d.pathnameBase:"/",b=d&&d.route;{let C=b&&b.path||"";bg(h,!b||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
-
51
- Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let E=xl(),S;if(r){let C=typeof r=="string"?Ya(r):r;Ye(m==="/"||C.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${C.pathname}" was given in the \`location\` prop.`),S=C}else S=E;let w=S.pathname||"/",T=w;if(m!=="/"){let C=m.replace(/^\//,"").split("/");T="/"+w.replace(/^\//,"").split("/").slice(C.length).join("/")}let R=og(n,{pathname:T});dn(b||R!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),dn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let M=Qx(R&&R.map(C=>Object.assign({},C,{params:Object.assign({},p,C.params),pathname:Ln([m,s.encodeLocation?s.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?m:Ln([m,s.encodeLocation?s.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),f,i,u);return r&&M?v.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},M):M}function Yx(){let n=Wx(),r=Lx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,u="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:u},f={padding:"2px 4px",backgroundColor:u},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:f},"ErrorBoundary")," or"," ",v.createElement("code",{style:f},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},r),i?v.createElement("pre",{style:s},i):null,d)}var Vx=v.createElement(Yx,null),Xx=class extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){console.error("React Router caught the following error during render",n,r)}render(){return this.state.error!==void 0?v.createElement($n.Provider,{value:this.props.routeContext},v.createElement(Sf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Zx({routeContext:n,match:r,children:i}){let u=v.useContext(Va);return u&&u.static&&u.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement($n.Provider,{value:n},i)}function Qx(n,r=[],i=null,u=null){if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let s=n,f=i?.errors;if(f!=null){let h=s.findIndex(m=>m.route.id&&f?.[m.route.id]!==void 0);Ye(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let d=!1,p=-1;if(i)for(let h=0;h<s.length;h++){let m=s[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(p=h),m.route.id){let{loaderData:b,errors:E}=i,S=m.route.loader&&!b.hasOwnProperty(m.route.id)&&(!E||E[m.route.id]===void 0);if(m.route.lazy||S){d=!0,p>=0?s=s.slice(0,p+1):s=[s[0]];break}}}return s.reduceRight((h,m,b)=>{let E,S=!1,w=null,T=null;i&&(E=f&&m.route.id?f[m.route.id]:void 0,w=m.route.errorElement||Vx,d&&(p<0&&b===0?(bg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,T=null):p===b&&(S=!0,T=m.route.hydrateFallbackElement||null)));let R=r.concat(s.slice(0,b+1)),M=()=>{let C;return E?C=w:S?C=T:m.route.Component?C=v.createElement(m.route.Component,null):m.route.element?C=m.route.element:C=h,v.createElement(Zx,{match:m,routeContext:{outlet:h,matches:R,isDataRoute:i!=null},children:C})};return i&&(m.route.ErrorBoundary||m.route.errorElement||b===0)?v.createElement(Xx,{location:i.location,revalidation:i.revalidation,component:w,error:E,children:M(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):M()},null)}function Ef(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kx(n){let r=v.useContext(Va);return Ye(r,Ef(n)),r}function Fx(n){let r=v.useContext(Fu);return Ye(r,Ef(n)),r}function Jx(n){let r=v.useContext($n);return Ye(r,Ef(n)),r}function Tf(n){let r=Jx(n),i=r.matches[r.matches.length-1];return Ye(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function Px(){return Tf("useRouteId")}function Wx(){let n=v.useContext(Sf),r=Fx("useRouteError"),i=Tf("useRouteError");return n!==void 0?n:r.errors?.[i]}function Ix(){let{router:n}=Kx("useNavigate"),r=Tf("useNavigate"),i=v.useRef(!1);return vg(()=>{i.current=!0}),v.useCallback(async(s,f={})=>{dn(i.current,pg),i.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:r,...f}))},[n,r])}var fv={};function bg(n,r,i){!r&&!fv[n]&&(fv[n]=!0,dn(!1,i))}v.memo(ew);function ew({routes:n,future:r,state:i}){return gg(n,void 0,i,r)}function yg(n){Ye(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function tw({basename:n="/",children:r=null,location:i,navigationType:u="POP",navigator:s,static:f=!1}){Ye(!fi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),p=v.useMemo(()=>({basename:d,navigator:s,static:f,future:{}}),[d,s,f]);typeof i=="string"&&(i=Ya(i));let{pathname:h="/",search:m="",hash:b="",state:E=null,key:S="default"}=i,w=v.useMemo(()=>{let T=Hn(h,d);return T==null?null:{location:{pathname:T,search:m,hash:b,state:E,key:S},navigationType:u}},[d,h,m,b,E,S,u]);return dn(w!=null,`<Router basename="${d}"> is not able to match the URL "${h}${m}${b}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:v.createElement(mn.Provider,{value:p},v.createElement(ci.Provider,{children:r,value:w}))}function nw({children:n,location:r}){return Gx(tf(n),r)}function tf(n,r=[]){let i=[];return v.Children.forEach(n,(u,s)=>{if(!v.isValidElement(u))return;let f=[...r,s];if(u.type===v.Fragment){i.push.apply(i,tf(u.props.children,f));return}Ye(u.type===yg,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ye(!u.props.index||!u.props.children,"An index route cannot have child routes.");let d={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(d.children=tf(u.props.children,f)),i.push(d)}),i}var ku="get",Bu="application/x-www-form-urlencoded";function Ju(n){return n!=null&&typeof n.tagName=="string"}function lw(n){return Ju(n)&&n.tagName.toLowerCase()==="button"}function aw(n){return Ju(n)&&n.tagName.toLowerCase()==="form"}function rw(n){return Ju(n)&&n.tagName.toLowerCase()==="input"}function iw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function uw(n,r){return n.button===0&&(!r||r==="_self")&&!iw(n)}var Du=null;function ow(){if(Du===null)try{new FormData(document.createElement("form"),0),Du=!1}catch{Du=!0}return Du}var sw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zc(n){return n!=null&&!sw.has(n)?(dn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bu}"`),null):n}function cw(n,r){let i,u,s,f,d;if(aw(n)){let p=n.getAttribute("action");u=p?Hn(p,r):null,i=n.getAttribute("method")||ku,s=zc(n.getAttribute("enctype"))||Bu,f=new FormData(n)}else if(lw(n)||rw(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=n.getAttribute("formaction")||p.getAttribute("action");if(u=h?Hn(h,r):null,i=n.getAttribute("formmethod")||p.getAttribute("method")||ku,s=zc(n.getAttribute("formenctype"))||zc(p.getAttribute("enctype"))||Bu,f=new FormData(p,n),!ow()){let{name:m,type:b,value:E}=n;if(b==="image"){let S=m?`${m}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else m&&f.append(m,E)}}else{if(Ju(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=ku,u=null,s=Bu,d=n}return f&&s==="text/plain"&&(d=f,f=void 0),{action:u,method:i.toLowerCase(),encType:s,formData:f,body:d}}function Rf(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}async function fw(n,r){if(n.id in r)return r[n.id];try{let i=await import(n.module);return r[n.id]=i,i}catch(i){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function dw(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function hw(n,r,i){let u=await Promise.all(n.map(async s=>{let f=r.routes[s.route.id];if(f){let d=await fw(f,i);return d.links?d.links():[]}return[]}));return gw(u.flat(1).filter(dw).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function dv(n,r,i,u,s,f){let d=(h,m)=>i[m]?h.route.id!==i[m].route.id:!0,p=(h,m)=>i[m].pathname!==h.pathname||i[m].route.path?.endsWith("*")&&i[m].params["*"]!==h.params["*"];return f==="assets"?r.filter((h,m)=>d(h,m)||p(h,m)):f==="data"?r.filter((h,m)=>{let b=u.routes[h.route.id];if(!b||!b.hasLoader)return!1;if(d(h,m)||p(h,m))return!0;if(h.route.shouldRevalidate){let E=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function mw(n,r,{includeHydrateFallback:i}={}){return pw(n.map(u=>{let s=r.routes[u.route.id];if(!s)return[];let f=[s.module];return s.clientActionModule&&(f=f.concat(s.clientActionModule)),s.clientLoaderModule&&(f=f.concat(s.clientLoaderModule)),i&&s.hydrateFallbackModule&&(f=f.concat(s.hydrateFallbackModule)),s.imports&&(f=f.concat(s.imports)),f}).flat(1))}function pw(n){return[...new Set(n)]}function vw(n){let r={},i=Object.keys(n).sort();for(let u of i)r[u]=n[u];return r}function gw(n,r){let i=new Set;return new Set(r),n.reduce((u,s)=>{let f=JSON.stringify(vw(s));return i.has(f)||(i.add(f),u.push({key:f,link:s})),u},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var bw=new Set([100,101,204,205]);function yw(n,r){let i=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return i.pathname==="/"?i.pathname="_root.data":r&&Hn(i.pathname,r)==="/"?i.pathname=`${r.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function xg(){let n=v.useContext(Va);return Rf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function xw(){let n=v.useContext(Fu);return Rf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Of=v.createContext(void 0);Of.displayName="FrameworkContext";function wg(){let n=v.useContext(Of);return Rf(n,"You must render this element inside a <HydratedRouter> element"),n}function ww(n,r){let i=v.useContext(Of),[u,s]=v.useState(!1),[f,d]=v.useState(!1),{onFocus:p,onBlur:h,onMouseEnter:m,onMouseLeave:b,onTouchStart:E}=r,S=v.useRef(null);v.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let R=C=>{C.forEach(H=>{d(H.isIntersecting)})},M=new IntersectionObserver(R,{threshold:.5});return S.current&&M.observe(S.current),()=>{M.disconnect()}}},[n]),v.useEffect(()=>{if(u){let R=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(R)}}},[u]);let w=()=>{s(!0)},T=()=>{s(!1),d(!1)};return i?n!=="intent"?[f,S,{}]:[f,S,{onFocus:Wr(p,w),onBlur:Wr(h,T),onMouseEnter:Wr(m,w),onMouseLeave:Wr(b,T),onTouchStart:Wr(E,w)}]:[!1,S,{}]}function Wr(n,r){return i=>{n&&n(i),i.defaultPrevented||r(i)}}function Sw({page:n,...r}){let{router:i}=xg(),u=v.useMemo(()=>og(i.routes,n,i.basename),[i.routes,n,i.basename]);return u?v.createElement(Tw,{page:n,matches:u,...r}):null}function Ew(n){let{manifest:r,routeModules:i}=wg(),[u,s]=v.useState([]);return v.useEffect(()=>{let f=!1;return hw(n,r,i).then(d=>{f||s(d)}),()=>{f=!0}},[n,r,i]),u}function Tw({page:n,matches:r,...i}){let u=xl(),{manifest:s,routeModules:f}=wg(),{basename:d}=xg(),{loaderData:p,matches:h}=xw(),m=v.useMemo(()=>dv(n,r,h,s,u,"data"),[n,r,h,s,u]),b=v.useMemo(()=>dv(n,r,h,s,u,"assets"),[n,r,h,s,u]),E=v.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let T=new Set,R=!1;if(r.forEach(C=>{let H=s.routes[C.route.id];!H||!H.hasLoader||(!m.some(D=>D.route.id===C.route.id)&&C.route.id in p&&f[C.route.id]?.shouldRevalidate||H.hasClientLoader?R=!0:T.add(C.route.id))}),T.size===0)return[];let M=yw(n,d);return R&&T.size>0&&M.searchParams.set("_routes",r.filter(C=>T.has(C.route.id)).map(C=>C.route.id).join(",")),[M.pathname+M.search]},[d,p,u,s,m,r,n,f]),S=v.useMemo(()=>mw(b,s),[b,s]),w=Ew(b);return v.createElement(v.Fragment,null,E.map(T=>v.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...i})),S.map(T=>v.createElement("link",{key:T,rel:"modulepreload",href:T,...i})),w.map(({key:T,link:R})=>v.createElement("link",{key:T,...R})))}function Rw(...n){return r=>{n.forEach(i=>{typeof i=="function"?i(r):i!=null&&(i.current=r)})}}var Sg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Sg&&(window.__reactRouterVersion="7.6.3")}catch{}function Ow({basename:n,children:r,window:i}){let u=v.useRef();u.current==null&&(u.current=dx({window:i,v5Compat:!0}));let s=u.current,[f,d]=v.useState({action:s.action,location:s.location}),p=v.useCallback(h=>{v.startTransition(()=>d(h))},[d]);return v.useLayoutEffect(()=>s.listen(p),[s,p]),v.createElement(tw,{basename:n,children:r,location:f.location,navigationType:f.action,navigator:s})}var Eg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Af=v.forwardRef(function({onClick:r,discover:i="render",prefetch:u="none",relative:s,reloadDocument:f,replace:d,state:p,target:h,to:m,preventScrollReset:b,viewTransition:E,...S},w){let{basename:T}=v.useContext(mn),R=typeof m=="string"&&Eg.test(m),M,C=!1;if(typeof m=="string"&&R&&(M=m,Sg))try{let W=new URL(window.location.href),P=m.startsWith("//")?new URL(W.protocol+m):new URL(m),ue=Hn(P.pathname,T);P.origin===W.origin&&ue!=null?m=ue+P.search+P.hash:C=!0}catch{dn(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let H=kx(m,{relative:s}),[D,Y,B]=ww(u,S),I=Mw(m,{replace:d,state:p,target:h,preventScrollReset:b,relative:s,viewTransition:E});function F(W){r&&r(W),W.defaultPrevented||I(W)}let q=v.createElement("a",{...S,...B,href:M||H,onClick:C||f?r:F,ref:Rw(w,Y),target:h,"data-discover":!R&&i==="render"?"true":void 0});return D&&!R?v.createElement(v.Fragment,null,q,v.createElement(Sw,{page:H})):q});Af.displayName="Link";var Tg=v.forwardRef(function({"aria-current":r="page",caseSensitive:i=!1,className:u="",end:s=!1,style:f,to:d,viewTransition:p,children:h,...m},b){let E=di(d,{relative:m.relative}),S=xl(),w=v.useContext(Fu),{navigator:T,basename:R}=v.useContext(mn),M=w!=null&&_w(E)&&p===!0,C=T.encodeLocation?T.encodeLocation(E).pathname:E.pathname,H=S.pathname,D=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;i||(H=H.toLowerCase(),D=D?D.toLowerCase():null,C=C.toLowerCase()),D&&R&&(D=Hn(D,R)||D);const Y=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let B=H===C||!s&&H.startsWith(C)&&H.charAt(Y)==="/",I=D!=null&&(D===C||!s&&D.startsWith(C)&&D.charAt(C.length)==="/"),F={isActive:B,isPending:I,isTransitioning:M},q=B?r:void 0,W;typeof u=="function"?W=u(F):W=[u,B?"active":null,I?"pending":null,M?"transitioning":null].filter(Boolean).join(" ");let P=typeof f=="function"?f(F):f;return v.createElement(Af,{...m,"aria-current":q,className:W,ref:b,style:P,to:d,viewTransition:p},typeof h=="function"?h(F):h)});Tg.displayName="NavLink";var Aw=v.forwardRef(({discover:n="render",fetcherKey:r,navigate:i,reloadDocument:u,replace:s,state:f,method:d=ku,action:p,onSubmit:h,relative:m,preventScrollReset:b,viewTransition:E,...S},w)=>{let T=Dw(),R=zw(p,{relative:m}),M=d.toLowerCase()==="get"?"get":"post",C=typeof p=="string"&&Eg.test(p),H=D=>{if(h&&h(D),D.defaultPrevented)return;D.preventDefault();let Y=D.nativeEvent.submitter,B=Y?.getAttribute("formmethod")||d;T(Y||D.currentTarget,{fetcherKey:r,method:B,navigate:i,replace:s,state:f,relative:m,preventScrollReset:b,viewTransition:E})};return v.createElement("form",{ref:w,method:M,action:R,onSubmit:u?h:H,...S,"data-discover":!C&&n==="render"?"true":void 0})});Aw.displayName="Form";function Cw(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rg(n){let r=v.useContext(Va);return Ye(r,Cw(n)),r}function Mw(n,{target:r,replace:i,state:u,preventScrollReset:s,relative:f,viewTransition:d}={}){let p=Bx(),h=xl(),m=di(n,{relative:f});return v.useCallback(b=>{if(uw(b,r)){b.preventDefault();let E=i!==void 0?i:ri(h)===ri(m);p(n,{replace:E,state:u,preventScrollReset:s,relative:f,viewTransition:d})}},[h,p,m,i,u,r,n,s,f,d])}var jw=0,Nw=()=>`__${String(++jw)}__`;function Dw(){let{router:n}=Rg("useSubmit"),{basename:r}=v.useContext(mn),i=Px();return v.useCallback(async(u,s={})=>{let{action:f,method:d,encType:p,formData:h,body:m}=cw(u,r);if(s.navigate===!1){let b=s.fetcherKey||Nw();await n.fetch(b,i,s.action||f,{preventScrollReset:s.preventScrollReset,formData:h,body:m,formMethod:s.method||d,formEncType:s.encType||p,flushSync:s.flushSync})}else await n.navigate(s.action||f,{preventScrollReset:s.preventScrollReset,formData:h,body:m,formMethod:s.method||d,formEncType:s.encType||p,replace:s.replace,state:s.state,fromRouteId:i,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,r,i])}function zw(n,{relative:r}={}){let{basename:i}=v.useContext(mn),u=v.useContext($n);Ye(u,"useFormAction must be used inside a RouteContext");let[s]=u.matches.slice(-1),f={...di(n||".",{relative:r})},d=xl();if(n==null){f.search=d.search;let p=new URLSearchParams(f.search),h=p.getAll("index");if(h.some(b=>b==="")){p.delete("index"),h.filter(E=>E).forEach(E=>p.append("index",E));let b=p.toString();f.search=b?`?${b}`:""}}return(!n||n===".")&&s.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:Ln([i,f.pathname])),ri(f)}function _w(n,r={}){let i=v.useContext(mg);Ye(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=Rg("useViewTransitionState"),s=di(n,{relative:r.relative});if(!i.isTransitioning)return!1;let f=Hn(i.currentLocation.pathname,u)||i.currentLocation.pathname,d=Hn(i.nextLocation.pathname,u)||i.nextLocation.pathname;return Gu(s.pathname,d)!=null||Gu(s.pathname,f)!=null}[...bw];var It=ig();const Lw=n=>v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",className:"bi bi-github",viewBox:"0 0 16 16",...n},v.createElement("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8"})),Hw=n=>v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...n},v.createElement("path",{fill:"currentColor",d:"M2 38.5h124v43.71H64v7.29H36.44v-7.29H2zm6.89 36.43h13.78V53.07h6.89v21.86h6.89V45.79H8.89zm34.44-29.14v36.42h13.78v-7.28h13.78V45.79zm13.78 7.29H64v14.56h-6.89zm20.67-7.29v29.14h13.78V53.07h6.89v21.86h6.89V53.07h6.89v21.86h6.89V45.79z"}));function Og(n){var r,i,u="";if(typeof n=="string"||typeof n=="number")u+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(r=0;r<s;r++)n[r]&&(i=Og(n[r]))&&(u&&(u+=" "),u+=i)}else for(i in n)n[i]&&(u&&(u+=" "),u+=i);return u}function $w(){for(var n,r,i=0,u="",s=arguments.length;i<s;i++)(n=arguments[i])&&(r=Og(n))&&(u&&(u+=" "),u+=r);return u}const Cf="-",Uw=n=>{const r=Bw(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:u}=n;return{getClassGroupId:d=>{const p=d.split(Cf);return p[0]===""&&p.length!==1&&p.shift(),Ag(p,r)||kw(d)},getConflictingClassGroupIds:(d,p)=>{const h=i[d]||[];return p&&u[d]?[...h,...u[d]]:h}}},Ag=(n,r)=>{if(n.length===0)return r.classGroupId;const i=n[0],u=r.nextPart.get(i),s=u?Ag(n.slice(1),u):void 0;if(s)return s;if(r.validators.length===0)return;const f=n.join(Cf);return r.validators.find(({validator:d})=>d(f))?.classGroupId},hv=/^\[(.+)\]$/,kw=n=>{if(hv.test(n)){const r=hv.exec(n)[1],i=r?.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},Bw=n=>{const{theme:r,classGroups:i}=n,u={nextPart:new Map,validators:[]};for(const s in i)nf(i[s],u,s,r);return u},nf=(n,r,i,u)=>{n.forEach(s=>{if(typeof s=="string"){const f=s===""?r:mv(r,s);f.classGroupId=i;return}if(typeof s=="function"){if(qw(s)){nf(s(u),r,i,u);return}r.validators.push({validator:s,classGroupId:i});return}Object.entries(s).forEach(([f,d])=>{nf(d,mv(r,f),i,u)})})},mv=(n,r)=>{let i=n;return r.split(Cf).forEach(u=>{i.nextPart.has(u)||i.nextPart.set(u,{nextPart:new Map,validators:[]}),i=i.nextPart.get(u)}),i},qw=n=>n.isThemeGetter,Gw=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,u=new Map;const s=(f,d)=>{i.set(f,d),r++,r>n&&(r=0,u=i,i=new Map)};return{get(f){let d=i.get(f);if(d!==void 0)return d;if((d=u.get(f))!==void 0)return s(f,d),d},set(f,d){i.has(f)?i.set(f,d):s(f,d)}}},lf="!",af=":",Yw=af.length,Vw=n=>{const{prefix:r,experimentalParseClassName:i}=n;let u=s=>{const f=[];let d=0,p=0,h=0,m;for(let T=0;T<s.length;T++){let R=s[T];if(d===0&&p===0){if(R===af){f.push(s.slice(h,T)),h=T+Yw;continue}if(R==="/"){m=T;continue}}R==="["?d++:R==="]"?d--:R==="("?p++:R===")"&&p--}const b=f.length===0?s:s.substring(h),E=Xw(b),S=E!==b,w=m&&m>h?m-h:void 0;return{modifiers:f,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:w}};if(r){const s=r+af,f=u;u=d=>d.startsWith(s)?f(d.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(i){const s=u;u=f=>i({className:f,parseClassName:s})}return u},Xw=n=>n.endsWith(lf)?n.substring(0,n.length-1):n.startsWith(lf)?n.substring(1):n,Zw=n=>{const r=Object.fromEntries(n.orderSensitiveModifiers.map(u=>[u,!0]));return u=>{if(u.length<=1)return u;const s=[];let f=[];return u.forEach(d=>{d[0]==="["||r[d]?(s.push(...f.sort(),d),f=[]):f.push(d)}),s.push(...f.sort()),s}},Qw=n=>({cache:Gw(n.cacheSize),parseClassName:Vw(n),sortModifiers:Zw(n),...Uw(n)}),Kw=/\s+/,Fw=(n,r)=>{const{parseClassName:i,getClassGroupId:u,getConflictingClassGroupIds:s,sortModifiers:f}=r,d=[],p=n.trim().split(Kw);let h="";for(let m=p.length-1;m>=0;m-=1){const b=p[m],{isExternal:E,modifiers:S,hasImportantModifier:w,baseClassName:T,maybePostfixModifierPosition:R}=i(b);if(E){h=b+(h.length>0?" "+h:h);continue}let M=!!R,C=u(M?T.substring(0,R):T);if(!C){if(!M){h=b+(h.length>0?" "+h:h);continue}if(C=u(T),!C){h=b+(h.length>0?" "+h:h);continue}M=!1}const H=f(S).join(":"),D=w?H+lf:H,Y=D+C;if(d.includes(Y))continue;d.push(Y);const B=s(C,M);for(let I=0;I<B.length;++I){const F=B[I];d.push(D+F)}h=b+(h.length>0?" "+h:h)}return h};function Jw(){let n=0,r,i,u="";for(;n<arguments.length;)(r=arguments[n++])&&(i=Cg(r))&&(u&&(u+=" "),u+=i);return u}const Cg=n=>{if(typeof n=="string")return n;let r,i="";for(let u=0;u<n.length;u++)n[u]&&(r=Cg(n[u]))&&(i&&(i+=" "),i+=r);return i};function Pw(n,...r){let i,u,s,f=d;function d(h){const m=r.reduce((b,E)=>E(b),n());return i=Qw(m),u=i.cache.get,s=i.cache.set,f=p,p(h)}function p(h){const m=u(h);if(m)return m;const b=Fw(h,i);return s(h,b),b}return function(){return f(Jw.apply(null,arguments))}}const We=n=>{const r=i=>i[n]||[];return r.isThemeGetter=!0,r},Mg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ww=/^\d+\/\d+$/,Iw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,La=n=>Ww.test(n),we=n=>!!n&&!Number.isNaN(Number(n)),dl=n=>!!n&&Number.isInteger(Number(n)),_c=n=>n.endsWith("%")&&we(n.slice(0,-1)),zn=n=>Iw.test(n),aS=()=>!0,rS=n=>eS.test(n)&&!tS.test(n),Ng=()=>!1,iS=n=>nS.test(n),uS=n=>lS.test(n),oS=n=>!re(n)&&!ie(n),sS=n=>Xa(n,_g,Ng),re=n=>Mg.test(n),Bl=n=>Xa(n,Lg,rS),Lc=n=>Xa(n,mS,we),pv=n=>Xa(n,Dg,Ng),cS=n=>Xa(n,zg,uS),zu=n=>Xa(n,Hg,iS),ie=n=>jg.test(n),Ir=n=>Za(n,Lg),fS=n=>Za(n,pS),vv=n=>Za(n,Dg),dS=n=>Za(n,_g),hS=n=>Za(n,zg),_u=n=>Za(n,Hg,!0),Xa=(n,r,i)=>{const u=Mg.exec(n);return u?u[1]?r(u[1]):i(u[2]):!1},Za=(n,r,i=!1)=>{const u=jg.exec(n);return u?u[1]?r(u[1]):i:!1},Dg=n=>n==="position"||n==="percentage",zg=n=>n==="image"||n==="url",_g=n=>n==="length"||n==="size"||n==="bg-size",Lg=n=>n==="length",mS=n=>n==="number",pS=n=>n==="family-name",Hg=n=>n==="shadow",vS=()=>{const n=We("color"),r=We("font"),i=We("text"),u=We("font-weight"),s=We("tracking"),f=We("leading"),d=We("breakpoint"),p=We("container"),h=We("spacing"),m=We("radius"),b=We("shadow"),E=We("inset-shadow"),S=We("text-shadow"),w=We("drop-shadow"),T=We("blur"),R=We("perspective"),M=We("aspect"),C=We("ease"),H=We("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...Y(),ie,re],I=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],q=()=>[ie,re,h],W=()=>[La,"full","auto",...q()],P=()=>[dl,"none","subgrid",ie,re],ue=()=>["auto",{span:["full",dl,ie,re]},dl,ie,re],oe=()=>[dl,"auto",ie,re],ce=()=>["auto","min","max","fr",ie,re],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...q()],Z=()=>[La,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],k=()=>[n,ie,re],te=()=>[...Y(),vv,pv,{position:[ie,re]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",dS,sS,{size:[ie,re]}],J=()=>[_c,Ir,Bl],K=()=>["","none","full",m,ie,re],ne=()=>["",we,Ir,Bl],be=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[we,_c,vv,pv],ge=()=>["","none",T,ie,re],He=()=>["none",we,ie,re],$t=()=>["none",we,ie,re],Bn=()=>[we,ie,re],qn=()=>[La,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zn],breakpoint:[zn],color:[aS],container:[zn],"drop-shadow":[zn],ease:["in","out","in-out"],font:[oS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zn],shadow:[zn],spacing:["px",we],text:[zn],"text-shadow":[zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",La,re,ie,M]}],container:["container"],columns:[{columns:[we,re,ie,p]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[dl,"auto",ie,re]}],basis:[{basis:[La,"full","auto",p,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,La,"auto","initial","none",re]}],grow:[{grow:["",we,ie,re]}],shrink:[{shrink:["",we,ie,re]}],order:[{order:[dl,"first","last","none",ie,re]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[p,"screen",...Z()]}],"min-w":[{"min-w":[p,"screen","none",...Z()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",i,Ir,Bl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,ie,Lc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_c,re]}],"font-family":[{font:[fS,re,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ie,re]}],"line-clamp":[{"line-clamp":[we,"none",ie,Lc]}],leading:[{leading:[f,...q()]}],"list-image":[{"list-image":["none",ie,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",ie,Bl]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[we,"auto",ie,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},dl,ie,re],radial:["",ie,re],conic:[dl,ie,re]},hS,cS]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,ie,re]}],"outline-w":[{outline:["",we,Ir,Bl]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",b,_u,zu]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",E,_u,zu]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[we,Bl]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",S,_u,zu]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[we,ie,re]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[ie,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Y()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,re]}],filter:[{filter:["","none",ie,re]}],blur:[{blur:ge()}],brightness:[{brightness:[we,ie,re]}],contrast:[{contrast:[we,ie,re]}],"drop-shadow":[{"drop-shadow":["","none",w,_u,zu]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",we,ie,re]}],"hue-rotate":[{"hue-rotate":[we,ie,re]}],invert:[{invert:["",we,ie,re]}],saturate:[{saturate:[we,ie,re]}],sepia:[{sepia:["",we,ie,re]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,re]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[we,ie,re]}],"backdrop-contrast":[{"backdrop-contrast":[we,ie,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,ie,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,ie,re]}],"backdrop-invert":[{"backdrop-invert":["",we,ie,re]}],"backdrop-opacity":[{"backdrop-opacity":[we,ie,re]}],"backdrop-saturate":[{"backdrop-saturate":[we,ie,re]}],"backdrop-sepia":[{"backdrop-sepia":["",we,ie,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",ie,re]}],ease:[{ease:["linear","initial",C,ie,re]}],delay:[{delay:[we,ie,re]}],animate:[{animate:["none",H,ie,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,ie,re]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:He()}],"rotate-x":[{"rotate-x":He()}],"rotate-y":[{"rotate-y":He()}],"rotate-z":[{"rotate-z":He()}],scale:[{scale:$t()}],"scale-x":[{"scale-x":$t()}],"scale-y":[{"scale-y":$t()}],"scale-z":[{"scale-z":$t()}],"scale-3d":["scale-3d"],skew:[{skew:Bn()}],"skew-x":[{"skew-x":Bn()}],"skew-y":[{"skew-y":Bn()}],transform:[{transform:[ie,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qn()}],"translate-x":[{"translate-x":qn()}],"translate-y":[{"translate-y":qn()}],"translate-z":[{"translate-z":qn()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie,re]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[we,Ir,Bl,Lc]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gS=Pw(vS);function at(...n){return gS($w(n))}function Me({align:n,children:r,className:i,direction:u,gap:s=0,grow:f,justify:d,shrink:p,style:h,wrap:m,...b}){return y.jsx("div",{className:at("flex",{"items-center":n==="center","items-end":n==="end","items-start":n==="start","items-stretch":n==="stretch","flex-col":u==="column","flex-row":u==="row","gap-1":s===1,"gap-2":s===2,"gap-3":s===3,"gap-4":s===4,"grow-0":f===0,"grow-1":f===1,"justify-around":d==="around","justify-between":d==="between","justify-center":d==="center","justify-end":d==="end","justify-start":d==="start","justify-stretch":d==="stretch","shrink-0":p===0,"shrink-1":p===1,"flex-wrap":m},i),style:h,...b,children:r})}const bS=v.createContext(null),Hc={didCatch:!1,error:null};let yS=class extends v.Component{constructor(r){super(r),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Hc}static getDerivedStateFromError(r){return{didCatch:!0,error:r}}resetErrorBoundary(){const{error:r}=this.state;if(r!==null){for(var i,u,s=arguments.length,f=new Array(s),d=0;d<s;d++)f[d]=arguments[d];(i=(u=this.props).onReset)===null||i===void 0||i.call(u,{args:f,reason:"imperative-api"}),this.setState(Hc)}}componentDidCatch(r,i){var u,s;(u=(s=this.props).onError)===null||u===void 0||u.call(s,r,i)}componentDidUpdate(r,i){const{didCatch:u}=this.state,{resetKeys:s}=this.props;if(u&&i.error!==null&&xS(r.resetKeys,s)){var f,d;(f=(d=this.props).onReset)===null||f===void 0||f.call(d,{next:s,prev:r.resetKeys,reason:"keys"}),this.setState(Hc)}}render(){const{children:r,fallbackRender:i,FallbackComponent:u,fallback:s}=this.props,{didCatch:f,error:d}=this.state;let p=r;if(f){const h={error:d,resetErrorBoundary:this.resetErrorBoundary};if(typeof i=="function")p=i(h);else if(u)p=v.createElement(u,h);else if(s!==void 0)p=s;else throw d}return v.createElement(bS.Provider,{value:{didCatch:f,error:d,resetErrorBoundary:this.resetErrorBoundary}},p)}};function xS(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return n.length!==r.length||n.some((i,u)=>!Object.is(i,r[u]))}function pn({children:n,className:r,intent:i="none",...u}){let s=ix;switch(i){case"none":case"primary":{s=ox;break}case"success":{s=tx;break}}return y.jsx("div",{className:`w-fit rounded-md p-2 px-3 ${wS(i)} ${r}`,role:"alert",...u,children:y.jsxs("div",{className:"flex flex-row gap-2",children:[y.jsx(s,{className:"w-6 h-6 shrink-0"}),y.jsx("div",{children:n})]})})}function wS(n){switch(n){case"danger":return"bg-black/10 bg-border border-2 border-red-400 text-white [&_svg]:text-red-400";case"none":return"bg-black/10 bg-border border-2 border-white/40 text-white [&_svg]:text-white/60";case"primary":return"bg-black/10 bg-border border-2 border-sky-400 text-white [&_svg]:text-sky-400";case"success":return"bg-black/10 bg-border border-2 border-emerald-400 text-white [&_svg]:text-emerald-400";case"warning":return"bg-black/10 bg-border border-2 border-amber-400 text-white [&_svg]:text-amber-400"}}const $g=typeof document<"u"?pe.useLayoutEffect:()=>{};function SS(n){const r=v.useRef(null);return $g(()=>{r.current=n},[n]),v.useCallback((...i)=>{const u=r.current;return u?.(...i)},[])}const wl=n=>{var r;return(r=n?.ownerDocument)!==null&&r!==void 0?r:document},ql=n=>n&&"window"in n&&n.window===n?n:wl(n).defaultView||window;function ES(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function TS(n){return ES(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let RS=!1;function Mf(){return RS}function Ug(n,r){if(!Mf())return r&&n?n.contains(r):!1;if(!n||!r)return!1;let i=r;for(;i!==null;){if(i===n)return!0;i.tagName==="SLOT"&&i.assignedSlot?i=i.assignedSlot.parentNode:TS(i)?i=i.host:i=i.parentNode}return!1}const rf=(n=document)=>{var r;if(!Mf())return n.activeElement;let i=n.activeElement;for(;i&&"shadowRoot"in i&&(!((r=i.shadowRoot)===null||r===void 0)&&r.activeElement);)i=i.shadowRoot.activeElement;return i};function kg(n){return Mf()&&n.target.shadowRoot&&n.composedPath?n.composedPath()[0]:n.target}function OS(n){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(i=>n.test(i.brand)))||n.test(window.navigator.userAgent)}function AS(n){var r;return typeof window<"u"&&window.navigator!=null?n.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function Bg(n){let r=null;return()=>(r==null&&(r=n()),r)}const CS=Bg(function(){return AS(/^Mac/i)}),MS=Bg(function(){return OS(/Android/i)});function qg(){let n=v.useRef(new Map),r=v.useCallback((s,f,d,p)=>{let h=p?.once?(...m)=>{n.current.delete(d),d(...m)}:d;n.current.set(d,{type:f,eventTarget:s,fn:h,options:p}),s.addEventListener(f,h,p)},[]),i=v.useCallback((s,f,d,p)=>{var h;let m=((h=n.current.get(d))===null||h===void 0?void 0:h.fn)||d;s.removeEventListener(f,m,p),n.current.delete(d)},[]),u=v.useCallback(()=>{n.current.forEach((s,f)=>{i(s.eventTarget,s.type,f,s.options)})},[i]);return v.useEffect(()=>u,[u]),{addGlobalListener:r,removeGlobalListener:i,removeAllGlobalListeners:u}}function jS(n){return n.mozInputSource===0&&n.isTrusted?!0:MS()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function Gg(n){let r=n;return r.nativeEvent=n,r.isDefaultPrevented=()=>r.defaultPrevented,r.isPropagationStopped=()=>r.cancelBubble,r.persist=()=>{},r}function NS(n,r){Object.defineProperty(n,"target",{value:r}),Object.defineProperty(n,"currentTarget",{value:r})}function Yg(n){let r=v.useRef({isFocused:!1,observer:null});$g(()=>{const u=r.current;return()=>{u.observer&&(u.observer.disconnect(),u.observer=null)}},[]);let i=SS(u=>{n?.(u)});return v.useCallback(u=>{if(u.target instanceof HTMLButtonElement||u.target instanceof HTMLInputElement||u.target instanceof HTMLTextAreaElement||u.target instanceof HTMLSelectElement){r.current.isFocused=!0;let s=u.target,f=d=>{if(r.current.isFocused=!1,s.disabled){let p=Gg(d);i(p)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};s.addEventListener("focusout",f,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&s.disabled){var d;(d=r.current.observer)===null||d===void 0||d.disconnect();let p=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),r.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[i])}let DS=!1,hi=null,uf=new Set,ni=new Map,Vl=!1,of=!1;const zS={Tab:!0,Escape:!0};function jf(n,r){for(let i of uf)i(n,r)}function _S(n){return!(n.metaKey||!CS()&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function Yu(n){Vl=!0,_S(n)&&(hi="keyboard",jf("keyboard",n))}function Ua(n){hi="pointer",(n.type==="mousedown"||n.type==="pointerdown")&&(Vl=!0,jf("pointer",n))}function Vg(n){jS(n)&&(Vl=!0,hi="virtual")}function Xg(n){n.target===window||n.target===document||DS||!n.isTrusted||(!Vl&&!of&&(hi="virtual",jf("virtual",n)),Vl=!1,of=!1)}function Zg(){Vl=!1,of=!0}function sf(n){if(typeof window>"u"||typeof document>"u"||ni.get(ql(n)))return;const r=ql(n),i=wl(n);let u=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){Vl=!0,u.apply(this,arguments)},i.addEventListener("keydown",Yu,!0),i.addEventListener("keyup",Yu,!0),i.addEventListener("click",Vg,!0),r.addEventListener("focus",Xg,!0),r.addEventListener("blur",Zg,!1),typeof PointerEvent<"u"&&(i.addEventListener("pointerdown",Ua,!0),i.addEventListener("pointermove",Ua,!0),i.addEventListener("pointerup",Ua,!0)),r.addEventListener("beforeunload",()=>{Qg(n)},{once:!0}),ni.set(r,{focus:u})}const Qg=(n,r)=>{const i=ql(n),u=wl(n);r&&u.removeEventListener("DOMContentLoaded",r),ni.has(i)&&(i.HTMLElement.prototype.focus=ni.get(i).focus,u.removeEventListener("keydown",Yu,!0),u.removeEventListener("keyup",Yu,!0),u.removeEventListener("click",Vg,!0),i.removeEventListener("focus",Xg,!0),i.removeEventListener("blur",Zg,!1),typeof PointerEvent<"u"&&(u.removeEventListener("pointerdown",Ua,!0),u.removeEventListener("pointermove",Ua,!0),u.removeEventListener("pointerup",Ua,!0)),ni.delete(i))};function LS(n){const r=wl(n);let i;return r.readyState!=="loading"?sf(n):(i=()=>{sf(n)},r.addEventListener("DOMContentLoaded",i)),()=>Qg(n,i)}typeof document<"u"&&LS();function Kg(){return hi!=="pointer"}const HS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $S(n,r,i){let u=wl(i?.target);const s=typeof window<"u"?ql(i?.target).HTMLInputElement:HTMLInputElement,f=typeof window<"u"?ql(i?.target).HTMLTextAreaElement:HTMLTextAreaElement,d=typeof window<"u"?ql(i?.target).HTMLElement:HTMLElement,p=typeof window<"u"?ql(i?.target).KeyboardEvent:KeyboardEvent;return n=n||u.activeElement instanceof s&&!HS.has(u.activeElement.type)||u.activeElement instanceof f||u.activeElement instanceof d&&u.activeElement.isContentEditable,!(n&&r==="keyboard"&&i instanceof p&&!zS[i.key])}function US(n,r,i){sf(),v.useEffect(()=>{let u=(s,f)=>{$S(!!i?.isTextInput,s,f)&&n(Kg())};return uf.add(u),()=>{uf.delete(u)}},r)}function kS(n){let{isDisabled:r,onFocus:i,onBlur:u,onFocusChange:s}=n;const f=v.useCallback(h=>{if(h.target===h.currentTarget)return u&&u(h),s&&s(!1),!0},[u,s]),d=Yg(f),p=v.useCallback(h=>{const m=wl(h.target),b=m?rf(m):rf();h.target===h.currentTarget&&b===kg(h.nativeEvent)&&(i&&i(h),s&&s(!0),d(h))},[s,i,d]);return{focusProps:{onFocus:!r&&(i||s||u)?p:void 0,onBlur:!r&&(u||s)?f:void 0}}}function BS(n){let{isDisabled:r,onBlurWithin:i,onFocusWithin:u,onFocusWithinChange:s}=n,f=v.useRef({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:p}=qg(),h=v.useCallback(E=>{E.currentTarget.contains(E.target)&&f.current.isFocusWithin&&!E.currentTarget.contains(E.relatedTarget)&&(f.current.isFocusWithin=!1,p(),i&&i(E),s&&s(!1))},[i,s,f,p]),m=Yg(h),b=v.useCallback(E=>{if(!E.currentTarget.contains(E.target))return;const S=wl(E.target),w=rf(S);if(!f.current.isFocusWithin&&w===kg(E.nativeEvent)){u&&u(E),s&&s(!0),f.current.isFocusWithin=!0,m(E);let T=E.currentTarget;d(S,"focus",R=>{if(f.current.isFocusWithin&&!Ug(T,R.target)){let M=new S.defaultView.FocusEvent("blur",{relatedTarget:R.target});NS(M,T);let C=Gg(M);h(C)}},{capture:!0})}},[u,s,m,d,h]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:b,onBlur:h}}}let cf=!1,$c=0;function qS(){cf=!0,setTimeout(()=>{cf=!1},50)}function gv(n){n.pointerType==="touch"&&qS()}function GS(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",gv),$c++,()=>{$c--,!($c>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",gv)}}function Nf(n){let{onHoverStart:r,onHoverChange:i,onHoverEnd:u,isDisabled:s}=n,[f,d]=v.useState(!1),p=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(GS,[]);let{addGlobalListener:h,removeAllGlobalListeners:m}=qg(),{hoverProps:b,triggerHoverEnd:E}=v.useMemo(()=>{let S=(R,M)=>{if(p.pointerType=M,s||M==="touch"||p.isHovered||!R.currentTarget.contains(R.target))return;p.isHovered=!0;let C=R.currentTarget;p.target=C,h(wl(R.target),"pointerover",H=>{p.isHovered&&p.target&&!Ug(p.target,H.target)&&w(H,H.pointerType)},{capture:!0}),r&&r({type:"hoverstart",target:C,pointerType:M}),i&&i(!0),d(!0)},w=(R,M)=>{let C=p.target;p.pointerType="",p.target=null,!(M==="touch"||!p.isHovered||!C)&&(p.isHovered=!1,m(),u&&u({type:"hoverend",target:C,pointerType:M}),i&&i(!1),d(!1))},T={};return typeof PointerEvent<"u"&&(T.onPointerEnter=R=>{cf&&R.pointerType==="mouse"||S(R,R.pointerType)},T.onPointerLeave=R=>{!s&&R.currentTarget.contains(R.target)&&w(R,R.pointerType)}),{hoverProps:T,triggerHoverEnd:w}},[r,i,u,s,p,h,m]);return v.useEffect(()=>{s&&E({currentTarget:p.target},p.pointerType)},[s]),{hoverProps:b,isHovered:f}}function Df(n={}){let{autoFocus:r=!1,isTextInput:i,within:u}=n,s=v.useRef({isFocused:!1,isFocusVisible:r||Kg()}),[f,d]=v.useState(!1),[p,h]=v.useState(()=>s.current.isFocused&&s.current.isFocusVisible),m=v.useCallback(()=>h(s.current.isFocused&&s.current.isFocusVisible),[]),b=v.useCallback(w=>{s.current.isFocused=w,d(w),m()},[m]);US(w=>{s.current.isFocusVisible=w,m()},[],{isTextInput:i});let{focusProps:E}=kS({isDisabled:u,onFocusChange:b}),{focusWithinProps:S}=BS({isDisabled:!u,onFocusWithinChange:b});return{isFocused:f,isFocusVisible:p,focusProps:u?S:E}}var YS=Object.defineProperty,VS=(n,r,i)=>r in n?YS(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i,Uc=(n,r,i)=>(VS(n,typeof r!="symbol"?r+"":r,i),i);let XS=class{constructor(){Uc(this,"current",this.detect()),Uc(this,"handoffState","pending"),Uc(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Yl=new XS;function Qa(n){var r,i;return Yl.isServer?null:n?"ownerDocument"in n?n.ownerDocument:"current"in n?(i=(r=n.current)==null?void 0:r.ownerDocument)!=null?i:document:null:document}function Fg(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(r=>setTimeout(()=>{throw r}))}function tn(){let n=[],r={addEventListener(i,u,s,f){return i.addEventListener(u,s,f),r.add(()=>i.removeEventListener(u,s,f))},requestAnimationFrame(...i){let u=requestAnimationFrame(...i);return r.add(()=>cancelAnimationFrame(u))},nextFrame(...i){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...i))},setTimeout(...i){let u=setTimeout(...i);return r.add(()=>clearTimeout(u))},microTask(...i){let u={current:!0};return Fg(()=>{u.current&&i[0]()}),r.add(()=>{u.current=!1})},style(i,u,s){let f=i.style.getPropertyValue(u);return Object.assign(i.style,{[u]:s}),this.add(()=>{Object.assign(i.style,{[u]:f})})},group(i){let u=tn();return i(u),this.add(()=>u.dispose())},add(i){return n.includes(i)||n.push(i),()=>{let u=n.indexOf(i);if(u>=0)for(let s of n.splice(u,1))s()}},dispose(){for(let i of n.splice(0))i()}};return r}function Ka(){let[n]=v.useState(tn);return v.useEffect(()=>()=>n.dispose(),[n]),n}let Be=(n,r)=>{Yl.isServer?v.useEffect(n,r):v.useLayoutEffect(n,r)};function Ql(n){let r=v.useRef(n);return Be(()=>{r.current=n},[n]),r}let Se=function(n){let r=Ql(n);return pe.useCallback((...i)=>r.current(...i),[r])};function ZS(n){let r=n.width/2,i=n.height/2;return{top:n.clientY-i,right:n.clientX+r,bottom:n.clientY+i,left:n.clientX-r}}function QS(n,r){return!(!n||!r||n.right<r.left||n.left>r.right||n.bottom<r.top||n.top>r.bottom)}function zf({disabled:n=!1}={}){let r=v.useRef(null),[i,u]=v.useState(!1),s=Ka(),f=Se(()=>{r.current=null,u(!1),s.dispose()}),d=Se(p=>{if(s.dispose(),r.current===null){r.current=p.currentTarget,u(!0);{let h=Qa(p.currentTarget);s.addEventListener(h,"pointerup",f,!1),s.addEventListener(h,"pointermove",m=>{if(r.current){let b=ZS(m);u(QS(b,r.current.getBoundingClientRect()))}},!1),s.addEventListener(h,"pointercancel",f,!1)}}});return{pressed:i,pressProps:n?{}:{onPointerDown:d,onPointerUp:f,onClick:f}}}let KS=v.createContext(void 0);function Pu(){return v.useContext(KS)}function ff(...n){return Array.from(new Set(n.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}function yt(n,r,...i){if(n in r){let s=r[n];return typeof s=="function"?s(...i):s}let u=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,yt),u}var qa=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(qa||{}),ml=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(ml||{});function ct(){let n=JS();return v.useCallback(r=>FS({mergeRefs:n,...r}),[n])}function FS({ourProps:n,theirProps:r,slot:i,defaultTag:u,features:s,visible:f=!0,name:d,mergeRefs:p}){p=p??PS;let h=Jg(r,n);if(f)return Lu(h,i,u,d,p);let m=s??0;if(m&2){let{static:b=!1,...E}=h;if(b)return Lu(E,i,u,d,p)}if(m&1){let{unmount:b=!0,...E}=h;return yt(b?0:1,{0(){return null},1(){return Lu({...E,hidden:!0,style:{display:"none"}},i,u,d,p)}})}return Lu(h,i,u,d,p)}function Lu(n,r={},i,u,s){let{as:f=i,children:d,refName:p="ref",...h}=kc(n,["unmount","static"]),m=n.ref!==void 0?{[p]:n.ref}:{},b=typeof d=="function"?d(r):d;"className"in h&&h.className&&typeof h.className=="function"&&(h.className=h.className(r)),h["aria-labelledby"]&&h["aria-labelledby"]===h.id&&(h["aria-labelledby"]=void 0);let E={};if(r){let S=!1,w=[];for(let[T,R]of Object.entries(r))typeof R=="boolean"&&(S=!0),R===!0&&w.push(T.replace(/([A-Z])/g,M=>`-${M.toLowerCase()}`));if(S){E["data-headlessui-state"]=w.join(" ");for(let T of w)E[`data-${T}`]=""}}if(f===v.Fragment&&(Object.keys(hl(h)).length>0||Object.keys(hl(E)).length>0))if(!v.isValidElement(b)||Array.isArray(b)&&b.length>1){if(Object.keys(hl(h)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${u} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(hl(h)).concat(Object.keys(hl(E))).map(S=>` - ${S}`).join(`
52
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(`
53
- `)].join(`
54
- `))}else{let S=b.props,w=S?.className,T=typeof w=="function"?(...C)=>ff(w(...C),h.className):ff(w,h.className),R=T?{className:T}:{},M=Jg(b.props,hl(kc(h,["ref"])));for(let C in E)C in M&&delete E[C];return v.cloneElement(b,Object.assign({},M,E,m,{ref:s(WS(b),m.ref)},R))}return v.createElement(f,Object.assign({},kc(h,["ref"]),f!==v.Fragment&&m,f!==v.Fragment&&E),b)}function JS(){let n=v.useRef([]),r=v.useCallback(i=>{for(let u of n.current)u!=null&&(typeof u=="function"?u(i):u.current=i)},[]);return(...i)=>{if(!i.every(u=>u==null))return n.current=i,r}}function PS(...n){return n.every(r=>r==null)?void 0:r=>{for(let i of n)i!=null&&(typeof i=="function"?i(r):i.current=r)}}function Jg(...n){if(n.length===0)return{};if(n.length===1)return n[0];let r={},i={};for(let u of n)for(let s in u)s.startsWith("on")&&typeof u[s]=="function"?(i[s]!=null||(i[s]=[]),i[s].push(u[s])):r[s]=u[s];if(r.disabled||r["aria-disabled"])for(let u in i)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(u)&&(i[u]=[s=>{var f;return(f=s?.preventDefault)==null?void 0:f.call(s)}]);for(let u in i)Object.assign(r,{[u](s,...f){let d=i[u];for(let p of d){if((s instanceof Event||s?.nativeEvent instanceof Event)&&s.defaultPrevented)return;p(s,...f)}}});return r}function ii(...n){if(n.length===0)return{};if(n.length===1)return n[0];let r={},i={};for(let u of n)for(let s in u)s.startsWith("on")&&typeof u[s]=="function"?(i[s]!=null||(i[s]=[]),i[s].push(u[s])):r[s]=u[s];for(let u in i)Object.assign(r,{[u](...s){let f=i[u];for(let d of f)d?.(...s)}});return r}function it(n){var r;return Object.assign(v.forwardRef(n),{displayName:(r=n.displayName)!=null?r:n.name})}function hl(n){let r=Object.assign({},n);for(let i in r)r[i]===void 0&&delete r[i];return r}function kc(n,r=[]){let i=Object.assign({},n);for(let u of r)u in i&&delete i[u];return i}function WS(n){return pe.version.split(".")[0]>="19"?n.props.ref:n.ref}let IS="button";function eE(n,r){var i;let u=Pu(),{disabled:s=u||!1,autoFocus:f=!1,...d}=n,{isFocusVisible:p,focusProps:h}=Df({autoFocus:f}),{isHovered:m,hoverProps:b}=Nf({isDisabled:s}),{pressed:E,pressProps:S}=zf({disabled:s}),w=ii({ref:r,type:(i=d.type)!=null?i:"button",disabled:s||void 0,autoFocus:f},h,b,S),T=v.useMemo(()=>({disabled:s,hover:m,focus:p,active:E,autofocus:f}),[s,m,p,E,f]);return ct()({ourProps:w,theirProps:d,slot:T,defaultTag:IS,name:"Button"})}let tE=it(eE);function nE(n,r,i){let[u,s]=v.useState(i),f=n!==void 0,d=v.useRef(f),p=v.useRef(!1),h=v.useRef(!1);return f&&!d.current&&!p.current?(p.current=!0,d.current=f,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!f&&d.current&&!h.current&&(h.current=!0,d.current=f,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[f?n:u,Se(m=>(f||s(m),r?.(m)))]}function lE(n){let[r]=v.useState(n);return r}function Pg(n={},r=null,i=[]){for(let[u,s]of Object.entries(n))Ig(i,Wg(r,u),s);return i}function Wg(n,r){return n?n+"["+r+"]":r}function Ig(n,r,i){if(Array.isArray(i))for(let[u,s]of i.entries())Ig(n,Wg(r,u.toString()),s);else i instanceof Date?n.push([r,i.toISOString()]):typeof i=="boolean"?n.push([r,i?"1":"0"]):typeof i=="string"?n.push([r,i]):typeof i=="number"?n.push([r,`${i}`]):i==null?n.push([r,""]):Pg(i,r,n)}function aE(n){var r,i;let u=(r=n?.form)!=null?r:n.closest("form");if(u){for(let s of u.elements)if(s!==n&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(i=u.requestSubmit)==null||i.call(u)}}let rE="span";var _f=(n=>(n[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n))(_f||{});function iE(n,r){var i;let{features:u=1,...s}=n,f={ref:r,"aria-hidden":(u&2)===2?!0:(i=s["aria-hidden"])!=null?i:void 0,hidden:(u&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(u&4)===4&&(u&2)!==2&&{display:"none"}}};return ct()({ourProps:f,theirProps:s,slot:{},defaultTag:rE,name:"Hidden"})}let e0=it(iE),uE=v.createContext(null);function oE({children:n}){let r=v.useContext(uE);if(!r)return pe.createElement(pe.Fragment,null,n);let{target:i}=r;return i?It.createPortal(pe.createElement(pe.Fragment,null,n),i):null}function sE({data:n,form:r,disabled:i,onReset:u,overrides:s}){let[f,d]=v.useState(null),p=Ka();return v.useEffect(()=>{if(u&&f)return p.addEventListener(f,"reset",u)},[f,r,u]),pe.createElement(oE,null,pe.createElement(cE,{setForm:d,formId:r}),Pg(n).map(([h,m])=>pe.createElement(e0,{features:_f.Hidden,...hl({key:h,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,disabled:i,name:h,value:m,...s})})))}function cE({setForm:n,formId:r}){return v.useEffect(()=>{if(r){let i=document.getElementById(r);i&&n(i)}},[n,r]),r?null:pe.createElement(e0,{features:_f.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:i=>{if(!i)return;let u=i.closest("form");u&&n(u)}})}let fE=v.createContext(void 0);function t0(){return v.useContext(fE)}function Lf(n){return typeof n!="object"||n===null?!1:"nodeType"in n}function Wu(n){return Lf(n)&&"tagName"in n}function Un(n){return Wu(n)&&"accessKey"in n}function pl(n){return Wu(n)&&"tabIndex"in n}function dE(n){return Wu(n)&&"style"in n}function hE(n){return Un(n)&&n.nodeName==="IFRAME"}function n0(n){return Un(n)&&n.nodeName==="INPUT"}function bv(n){return Un(n)&&n.nodeName==="LABEL"}function mE(n){return Un(n)&&n.nodeName==="FIELDSET"}function l0(n){return Un(n)&&n.nodeName==="LEGEND"}function pE(n){return Wu(n)?n.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function a0(n){let r=n.parentElement,i=null;for(;r&&!mE(r);)l0(r)&&(i=r),r=r.parentElement;let u=r?.getAttribute("disabled")==="";return u&&vE(i)?!1:u}function vE(n){if(!n)return!1;let r=n.previousElementSibling;for(;r!==null;){if(l0(r))return!1;r=r.previousElementSibling}return!0}let r0=Symbol();function i0(n,r=!0){return Object.assign(n,{[r0]:r})}function xt(...n){let r=v.useRef(n);v.useEffect(()=>{r.current=n},[n]);let i=Se(u=>{for(let s of r.current)s!=null&&(typeof s=="function"?s(u):s.current=u)});return n.every(u=>u==null||u?.[r0])?void 0:i}let Hf=v.createContext(null);Hf.displayName="DescriptionContext";function u0(){let n=v.useContext(Hf);if(n===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,u0),r}return n}function gE(){var n,r;return(r=(n=v.useContext(Hf))==null?void 0:n.value)!=null?r:void 0}let bE="p";function yE(n,r){let i=v.useId(),u=Pu(),{id:s=`headlessui-description-${i}`,...f}=n,d=u0(),p=xt(r);Be(()=>d.register(s),[s,d.register]);let h=u||!1,m=v.useMemo(()=>({...d.slot,disabled:h}),[d.slot,h]),b={ref:p,...d.props,id:s};return ct()({ourProps:b,theirProps:f,slot:m,defaultTag:bE,name:d.name||"Description"})}let xE=it(yE);Object.assign(xE,{});var Ge=(n=>(n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n))(Ge||{});let Iu=v.createContext(null);Iu.displayName="LabelContext";function o0(){let n=v.useContext(Iu);if(n===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,o0),r}return n}function s0(n){var r,i,u;let s=(i=(r=v.useContext(Iu))==null?void 0:r.value)!=null?i:void 0;return((u=n?.length)!=null?u:0)>0?[s,...n].filter(Boolean).join(" "):s}function wE({inherit:n=!1}={}){let r=s0(),[i,u]=v.useState([]),s=n?[r,...i].filter(Boolean):i;return[s.length>0?s.join(" "):void 0,v.useMemo(()=>function(f){let d=Se(h=>(u(m=>[...m,h]),()=>u(m=>{let b=m.slice(),E=b.indexOf(h);return E!==-1&&b.splice(E,1),b}))),p=v.useMemo(()=>({register:d,slot:f.slot,name:f.name,props:f.props,value:f.value}),[d,f.slot,f.name,f.props,f.value]);return pe.createElement(Iu.Provider,{value:p},f.children)},[u])]}let SE="label";function EE(n,r){var i;let u=v.useId(),s=o0(),f=t0(),d=Pu(),{id:p=`headlessui-label-${u}`,htmlFor:h=f??((i=s.props)==null?void 0:i.htmlFor),passive:m=!1,...b}=n,E=xt(r);Be(()=>s.register(p),[p,s.register]);let S=Se(M=>{let C=M.currentTarget;if(!(M.target!==M.currentTarget&&pE(M.target))&&(bv(C)&&M.preventDefault(),s.props&&"onClick"in s.props&&typeof s.props.onClick=="function"&&s.props.onClick(M),bv(C))){let H=document.getElementById(C.htmlFor);if(H){let D=H.getAttribute("disabled");if(D==="true"||D==="")return;let Y=H.getAttribute("aria-disabled");if(Y==="true"||Y==="")return;(n0(H)&&(H.type==="file"||H.type==="radio"||H.type==="checkbox")||H.role==="radio"||H.role==="checkbox"||H.role==="switch")&&H.click(),H.focus({preventScroll:!0})}}}),w=d||!1,T=v.useMemo(()=>({...s.slot,disabled:w}),[s.slot,w]),R={ref:E,...s.props,id:p,htmlFor:h,onClick:S};return m&&("onClick"in R&&(delete R.htmlFor,delete R.onClick),"onClick"in b&&delete b.onClick),ct()({ourProps:R,theirProps:b,slot:T,defaultTag:h?SE:"div",name:s.name||"Label"})}let TE=it(EE),RE=Object.assign(TE,{}),OE=v.createContext(()=>{});function AE({value:n,children:r}){return pe.createElement(OE.Provider,{value:n},r)}function CE(n,r){return n!==null&&r!==null&&typeof n=="object"&&typeof r=="object"&&"id"in n&&"id"in r?n.id===r.id:n===r}function ME(n=CE){return v.useCallback((r,i)=>{if(typeof n=="string"){let u=n;return r?.[u]===i?.[u]}return n(r,i)},[n])}function jE(n){if(n===null)return{width:0,height:0};let{width:r,height:i}=n.getBoundingClientRect();return{width:r,height:i}}function NE(n,r=!1){let[i,u]=v.useReducer(()=>({}),{}),s=v.useMemo(()=>jE(n),[n,i]);return Be(()=>{if(!n)return;let f=new ResizeObserver(u);return f.observe(n),()=>{f.disconnect()}},[n]),r?{width:`${s.width}px`,height:`${s.height}px`}:s}let c0=class extends Map{constructor(r){super(),this.factory=r}get(r){let i=super.get(r);return i===void 0&&(i=this.factory(r),this.set(r,i)),i}};var DE=Object.defineProperty,zE=(n,r,i)=>r in n?DE(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i,_E=(n,r,i)=>(zE(n,r+"",i),i),f0=(n,r,i)=>{if(!r.has(n))throw TypeError("Cannot "+i)},Qt=(n,r,i)=>(f0(n,r,"read from private field"),i?i.call(n):r.get(n)),Bc=(n,r,i)=>{if(r.has(n))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(n):r.set(n,i)},yv=(n,r,i,u)=>(f0(n,r,"write to private field"),r.set(n,i),i),sn,ei,ti;let d0=class{constructor(r){Bc(this,sn,{}),Bc(this,ei,new c0(()=>new Set)),Bc(this,ti,new Set),_E(this,"disposables",tn()),yv(this,sn,r)}dispose(){this.disposables.dispose()}get state(){return Qt(this,sn)}subscribe(r,i){let u={selector:r,callback:i,current:r(Qt(this,sn))};return Qt(this,ti).add(u),this.disposables.add(()=>{Qt(this,ti).delete(u)})}on(r,i){return Qt(this,ei).get(r).add(i),this.disposables.add(()=>{Qt(this,ei).get(r).delete(i)})}send(r){let i=this.reduce(Qt(this,sn),r);if(i!==Qt(this,sn)){yv(this,sn,i);for(let u of Qt(this,ti)){let s=u.selector(Qt(this,sn));h0(u.current,s)||(u.current=s,u.callback(s))}for(let u of Qt(this,ei).get(r.type))u(Qt(this,sn),r)}}};sn=new WeakMap,ei=new WeakMap,ti=new WeakMap;function h0(n,r){return Object.is(n,r)?!0:typeof n!="object"||n===null||typeof r!="object"||r===null?!1:Array.isArray(n)&&Array.isArray(r)?n.length!==r.length?!1:qc(n[Symbol.iterator](),r[Symbol.iterator]()):n instanceof Map&&r instanceof Map||n instanceof Set&&r instanceof Set?n.size!==r.size?!1:qc(n.entries(),r.entries()):xv(n)&&xv(r)?qc(Object.entries(n)[Symbol.iterator](),Object.entries(r)[Symbol.iterator]()):!1}function qc(n,r){do{let i=n.next(),u=r.next();if(i.done&&u.done)return!0;if(i.done||u.done||!Object.is(i.value,u.value))return!1}while(!0)}function xv(n){if(Object.prototype.toString.call(n)!=="[object Object]")return!1;let r=Object.getPrototypeOf(n);return r===null||Object.getPrototypeOf(r)===null}function Gc(n){let[r,i]=n(),u=tn();return(...s)=>{r(...s),u.dispose(),u.microTask(i)}}var LE=Object.defineProperty,HE=(n,r,i)=>r in n?LE(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i,wv=(n,r,i)=>(HE(n,typeof r!="symbol"?r+"":r,i),i),m0=(n=>(n[n.Push=0]="Push",n[n.Pop=1]="Pop",n))(m0||{});let $E={0(n,r){let i=r.id,u=n.stack,s=n.stack.indexOf(i);if(s!==-1){let f=n.stack.slice();return f.splice(s,1),f.push(i),u=f,{...n,stack:u}}return{...n,stack:[...n.stack,i]}},1(n,r){let i=r.id,u=n.stack.indexOf(i);if(u===-1)return n;let s=n.stack.slice();return s.splice(u,1),{...n,stack:s}}},UE=class p0 extends d0{constructor(){super(...arguments),wv(this,"actions",{push:r=>this.send({type:0,id:r}),pop:r=>this.send({type:1,id:r})}),wv(this,"selectors",{isTop:(r,i)=>r.stack[r.stack.length-1]===i,inStack:(r,i)=>r.stack.includes(i)})}static new(){return new p0({stack:[]})}reduce(r,i){return yt(i.type,$E,r,i)}};const $f=new c0(()=>UE.new());var Yc={exports:{}},Vc={};/**
55
- * @license React
56
- * use-sync-external-store-with-selector.production.js
57
- *
58
- * Copyright (c) Meta Platforms, Inc. and affiliates.
59
- *
60
- * This source code is licensed under the MIT license found in the
61
- * LICENSE file in the root directory of this source tree.
62
- */var Sv;function kE(){if(Sv)return Vc;Sv=1;var n=Ku();function r(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var i=typeof Object.is=="function"?Object.is:r,u=n.useSyncExternalStore,s=n.useRef,f=n.useEffect,d=n.useMemo,p=n.useDebugValue;return Vc.useSyncExternalStoreWithSelector=function(h,m,b,E,S){var w=s(null);if(w.current===null){var T={hasValue:!1,value:null};w.current=T}else T=w.current;w=d(function(){function M(B){if(!C){if(C=!0,H=B,B=E(B),S!==void 0&&T.hasValue){var I=T.value;if(S(I,B))return D=I}return D=B}if(I=D,i(H,B))return I;var F=E(B);return S!==void 0&&S(I,F)?(H=B,I):(H=B,D=F)}var C=!1,H,D,Y=b===void 0?null:b;return[function(){return M(m())},Y===null?void 0:function(){return M(Y())}]},[m,b,E,S]);var R=u(h,w[0],w[1]);return f(function(){T.hasValue=!0,T.value=R},[R]),p(R),R},Vc}var Ev;function BE(){return Ev||(Ev=1,Yc.exports=kE()),Yc.exports}var qE=BE();function Kt(n,r,i=h0){return qE.useSyncExternalStoreWithSelector(Se(u=>n.subscribe(GE,u)),Se(()=>n.state),Se(()=>n.state),Se(r),i)}function GE(n){return n}function v0(n,r){let i=v.useId(),u=$f.get(r),[s,f]=Kt(u,v.useCallback(d=>[u.selectors.isTop(d,i),u.selectors.inStack(d,i)],[u,i]));return Be(()=>{if(n)return u.actions.push(i),()=>u.actions.pop(i)},[u,n,i]),n?f?s:!0:!1}let df=new Map,li=new Map;function Tv(n){var r;let i=(r=li.get(n))!=null?r:0;return li.set(n,i+1),i!==0?()=>Rv(n):(df.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0,()=>Rv(n))}function Rv(n){var r;let i=(r=li.get(n))!=null?r:1;if(i===1?li.delete(n):li.set(n,i-1),i!==1)return;let u=df.get(n);u&&(u["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",u["aria-hidden"]),n.inert=u.inert,df.delete(n))}function YE(n,{allowed:r,disallowed:i}={}){let u=v0(n,"inert-others");Be(()=>{var s,f;if(!u)return;let d=tn();for(let h of(s=i?.())!=null?s:[])h&&d.add(Tv(h));let p=(f=r?.())!=null?f:[];for(let h of p){if(!h)continue;let m=Qa(h);if(!m)continue;let b=h.parentElement;for(;b&&b!==m.body;){for(let E of b.children)p.some(S=>E.contains(S))||d.add(Tv(E));b=b.parentElement}}return d.dispose},[u,r,i])}function VE(n,r,i){let u=Ql(s=>{let f=s.getBoundingClientRect();f.x===0&&f.y===0&&f.width===0&&f.height===0&&i()});v.useEffect(()=>{if(!n)return;let s=r===null?null:Un(r)?r:r.current;if(!s)return;let f=tn();if(typeof ResizeObserver<"u"){let d=new ResizeObserver(()=>u.current(s));d.observe(s),f.add(()=>d.disconnect())}if(typeof IntersectionObserver<"u"){let d=new IntersectionObserver(()=>u.current(s));d.observe(s),f.add(()=>d.disconnect())}return()=>f.dispose()},[r,u,n])}let hf=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(n=>`${n}:not([tabindex='-1'])`).join(","),XE=["[data-autofocus]"].map(n=>`${n}:not([tabindex='-1'])`).join(",");var mf=(n=>(n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n[n.AutoFocus=64]="AutoFocus",n))(mf||{}),ZE=(n=>(n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n))(ZE||{}),QE=(n=>(n[n.Previous=-1]="Previous",n[n.Next=1]="Next",n))(QE||{});function g0(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(hf)).sort((r,i)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(i.tabIndex||Number.MAX_SAFE_INTEGER)))}function KE(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(XE)).sort((r,i)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(i.tabIndex||Number.MAX_SAFE_INTEGER)))}var Uf=(n=>(n[n.Strict=0]="Strict",n[n.Loose=1]="Loose",n))(Uf||{});function b0(n,r=0){var i;return n===((i=Qa(n))==null?void 0:i.body)?!1:yt(r,{0(){return n.matches(hf)},1(){let u=n;for(;u!==null;){if(u.matches(hf))return!0;u=u.parentElement}return!1}})}var FE=(n=>(n[n.Keyboard=0]="Keyboard",n[n.Mouse=1]="Mouse",n))(FE||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",n=>{n.metaKey||n.altKey||n.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",n=>{n.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:n.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let JE=["textarea","input"].join(",");function PE(n){var r,i;return(i=(r=n?.matches)==null?void 0:r.call(n,JE))!=null?i:!1}function y0(n,r=i=>i){return n.slice().sort((i,u)=>{let s=r(i),f=r(u);if(s===null||f===null)return 0;let d=s.compareDocumentPosition(f);return d&Node.DOCUMENT_POSITION_FOLLOWING?-1:d&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function WE(n,r){return IE(g0(),r,{relativeTo:n})}function IE(n,r,{sorted:i=!0,relativeTo:u=null,skipElements:s=[]}={}){let f=Array.isArray(n)?n.length>0?n[0].ownerDocument:document:n.ownerDocument,d=Array.isArray(n)?i?y0(n):n:r&64?KE(n):g0(n);s.length>0&&d.length>1&&(d=d.filter(w=>!s.some(T=>T!=null&&"current"in T?T?.current===w:T===w))),u=u??f.activeElement;let p=(()=>{if(r&5)return 1;if(r&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=(()=>{if(r&1)return 0;if(r&2)return Math.max(0,d.indexOf(u))-1;if(r&4)return Math.max(0,d.indexOf(u))+1;if(r&8)return d.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),m=r&32?{preventScroll:!0}:{},b=0,E=d.length,S;do{if(b>=E||b+E<=0)return 0;let w=h+b;if(r&16)w=(w+E)%E;else{if(w<0)return 3;if(w>=E)return 1}S=d[w],S?.focus(m),b+=p}while(S!==f.activeElement);return r&6&&PE(S)&&S.select(),2}function x0(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function e2(){return/Android/gi.test(window.navigator.userAgent)}function Ov(){return x0()||e2()}function $a(n,r,i,u){let s=Ql(i);v.useEffect(()=>{if(!n)return;function f(d){s.current(d)}return document.addEventListener(r,f,u),()=>document.removeEventListener(r,f,u)},[n,r,u])}function t2(n,r,i,u){let s=Ql(i);v.useEffect(()=>{if(!n)return;function f(d){s.current(d)}return window.addEventListener(r,f,u),()=>window.removeEventListener(r,f,u)},[n,r,u])}const Av=30;function n2(n,r,i){let u=Ql(i),s=v.useCallback(function(p,h){if(p.defaultPrevented)return;let m=h(p);if(m===null||!m.getRootNode().contains(m)||!m.isConnected)return;let b=function E(S){return typeof S=="function"?E(S()):Array.isArray(S)||S instanceof Set?S:[S]}(r);for(let E of b)if(E!==null&&(E.contains(m)||p.composed&&p.composedPath().includes(E)))return;return!b0(m,Uf.Loose)&&m.tabIndex!==-1&&p.preventDefault(),u.current(p,m)},[u,r]),f=v.useRef(null);$a(n,"pointerdown",p=>{var h,m;Ov()||(f.current=((m=(h=p.composedPath)==null?void 0:h.call(p))==null?void 0:m[0])||p.target)},!0),$a(n,"pointerup",p=>{if(Ov()||!f.current)return;let h=f.current;return f.current=null,s(p,()=>h)},!0);let d=v.useRef({x:0,y:0});$a(n,"touchstart",p=>{d.current.x=p.touches[0].clientX,d.current.y=p.touches[0].clientY},!0),$a(n,"touchend",p=>{let h={x:p.changedTouches[0].clientX,y:p.changedTouches[0].clientY};if(!(Math.abs(h.x-d.current.x)>=Av||Math.abs(h.y-d.current.y)>=Av))return s(p,()=>pl(p.target)?p.target:null)},!0),t2(n,"blur",p=>s(p,()=>hE(window.document.activeElement)?window.document.activeElement:null),!0)}function pf(...n){return v.useMemo(()=>Qa(...n),[...n])}var l2=(n=>(n[n.Ignore=0]="Ignore",n[n.Select=1]="Select",n[n.Close=2]="Close",n))(l2||{});const Hu={Ignore:{kind:0},Select:n=>({kind:1,target:n}),Close:{kind:2}},a2=200;function r2(n,{trigger:r,action:i,close:u,select:s}){let f=v.useRef(null);$a(n&&r!==null,"pointerdown",d=>{Lf(d?.target)&&r!=null&&r.contains(d.target)&&(f.current=new Date)}),$a(n&&r!==null,"pointerup",d=>{if(f.current===null||!pl(d.target))return;let p=i(d),h=new Date().getTime()-f.current.getTime();switch(f.current=null,p.kind){case 0:return;case 1:{h>a2&&(s(p.target),u());break}case 2:{u();break}}},{capture:!0})}function w0(n,r){return v.useMemo(()=>{var i;if(n.type)return n.type;let u=(i=n.as)!=null?i:"button";if(typeof u=="string"&&u.toLowerCase()==="button"||r?.tagName==="BUTTON"&&!r.hasAttribute("type"))return"button"},[n.type,n.as,r])}function i2(n){return v.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot)}function u2(n,r){let i=n(),u=new Set;return{getSnapshot(){return i},subscribe(s){return u.add(s),()=>u.delete(s)},dispatch(s,...f){let d=r[s].call(i,...f);d&&(i=d,u.forEach(p=>p()))}}}function o2(){let n;return{before({doc:r}){var i;let u=r.documentElement,s=(i=r.defaultView)!=null?i:window;n=Math.max(0,s.innerWidth-u.clientWidth)},after({doc:r,d:i}){let u=r.documentElement,s=Math.max(0,u.clientWidth-u.offsetWidth),f=Math.max(0,n-s);i.style(u,"paddingRight",`${f}px`)}}}function s2(){return x0()?{before({doc:n,d:r,meta:i}){function u(s){return i.containers.flatMap(f=>f()).some(f=>f.contains(s))}r.microTask(()=>{var s;if(window.getComputedStyle(n.documentElement).scrollBehavior!=="auto"){let p=tn();p.style(n.documentElement,"scrollBehavior","auto"),r.add(()=>r.microTask(()=>p.dispose()))}let f=(s=window.scrollY)!=null?s:window.pageYOffset,d=null;r.addEventListener(n,"click",p=>{if(pl(p.target))try{let h=p.target.closest("a");if(!h)return;let{hash:m}=new URL(h.href),b=n.querySelector(m);pl(b)&&!u(b)&&(d=b)}catch{}},!0),r.addEventListener(n,"touchstart",p=>{if(pl(p.target)&&dE(p.target))if(u(p.target)){let h=p.target;for(;h.parentElement&&u(h.parentElement);)h=h.parentElement;r.style(h,"overscrollBehavior","contain")}else r.style(p.target,"touchAction","none")}),r.addEventListener(n,"touchmove",p=>{if(pl(p.target)){if(n0(p.target))return;if(u(p.target)){let h=p.target;for(;h.parentElement&&h.dataset.headlessuiPortal!==""&&!(h.scrollHeight>h.clientHeight||h.scrollWidth>h.clientWidth);)h=h.parentElement;h.dataset.headlessuiPortal===""&&p.preventDefault()}else p.preventDefault()}},{passive:!1}),r.add(()=>{var p;let h=(p=window.scrollY)!=null?p:window.pageYOffset;f!==h&&window.scrollTo(0,f),d&&d.isConnected&&(d.scrollIntoView({block:"nearest"}),d=null)})})}}:{}}function c2(){return{before({doc:n,d:r}){r.style(n.documentElement,"overflow","hidden")}}}function f2(n){let r={};for(let i of n)Object.assign(r,i(r));return r}let Gl=u2(()=>new Map,{PUSH(n,r){var i;let u=(i=this.get(n))!=null?i:{doc:n,count:0,d:tn(),meta:new Set};return u.count++,u.meta.add(r),this.set(n,u),this},POP(n,r){let i=this.get(n);return i&&(i.count--,i.meta.delete(r)),this},SCROLL_PREVENT({doc:n,d:r,meta:i}){let u={doc:n,d:r,meta:f2(i)},s=[s2(),o2(),c2()];s.forEach(({before:f})=>f?.(u)),s.forEach(({after:f})=>f?.(u))},SCROLL_ALLOW({d:n}){n.dispose()},TEARDOWN({doc:n}){this.delete(n)}});Gl.subscribe(()=>{let n=Gl.getSnapshot(),r=new Map;for(let[i]of n)r.set(i,i.documentElement.style.overflow);for(let i of n.values()){let u=r.get(i.doc)==="hidden",s=i.count!==0;(s&&!u||!s&&u)&&Gl.dispatch(i.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",i),i.count===0&&Gl.dispatch("TEARDOWN",i)}});function d2(n,r,i=()=>({containers:[]})){let u=i2(Gl),s=r?u.get(r):void 0,f=s?s.count>0:!1;return Be(()=>{if(!(!r||!n))return Gl.dispatch("PUSH",r,i),()=>Gl.dispatch("POP",r,i)},[n,r]),f}function h2(n,r,i=()=>[document.body]){let u=v0(n,"scroll-lock");d2(u,r,s=>{var f;return{containers:[...(f=s.containers)!=null?f:[],i]}})}function Cv(n){return[n.screenX,n.screenY]}function m2(){let n=v.useRef([-1,-1]);return{wasMoved(r){let i=Cv(r);return n.current[0]===i[0]&&n.current[1]===i[1]?!1:(n.current=i,!0)},update(r){n.current=Cv(r)}}}function p2(n=0){let[r,i]=v.useState(n),u=v.useCallback(h=>i(h),[r]),s=v.useCallback(h=>i(m=>m|h),[r]),f=v.useCallback(h=>(r&h)===h,[r]),d=v.useCallback(h=>i(m=>m&~h),[i]),p=v.useCallback(h=>i(m=>m^h),[i]);return{flags:r,setFlag:u,addFlag:s,hasFlag:f,removeFlag:d,toggleFlag:p}}var v2={},Mv,jv;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Mv=process==null?void 0:v2)==null?void 0:Mv.NODE_ENV)==="test"&&typeof((jv=Element?.prototype)==null?void 0:jv.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
63
- `)),[]});var g2=(n=>(n[n.None=0]="None",n[n.Closed=1]="Closed",n[n.Enter=2]="Enter",n[n.Leave=4]="Leave",n))(g2||{});function kf(n){let r={};for(let i in n)n[i]===!0&&(r[`data-${i}`]="");return r}function Bf(n,r,i,u){let[s,f]=v.useState(i),{hasFlag:d,addFlag:p,removeFlag:h}=p2(n&&s?3:0),m=v.useRef(!1),b=v.useRef(!1),E=Ka();return Be(()=>{var S;if(n){if(i&&f(!0),!r){i&&p(3);return}return(S=u?.start)==null||S.call(u,i),b2(r,{inFlight:m,prepare(){b.current?b.current=!1:b.current=m.current,m.current=!0,!b.current&&(i?(p(3),h(4)):(p(4),h(2)))},run(){b.current?i?(h(3),p(4)):(h(4),p(3)):i?h(1):p(1)},done(){var w;b.current&&typeof r.getAnimations=="function"&&r.getAnimations().length>0||(m.current=!1,h(7),i||f(!1),(w=u?.end)==null||w.call(u,i))}})}},[n,i,r,E]),n?[s,{closed:d(1),enter:d(2),leave:d(4),transition:d(2)||d(4)}]:[i,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function b2(n,{prepare:r,run:i,done:u,inFlight:s}){let f=tn();return x2(n,{prepare:r,inFlight:s}),f.nextFrame(()=>{i(),f.requestAnimationFrame(()=>{f.add(y2(n,u))})}),f.dispose}function y2(n,r){var i,u;let s=tn();if(!n)return s.dispose;let f=!1;s.add(()=>{f=!0});let d=(u=(i=n.getAnimations)==null?void 0:i.call(n).filter(p=>p instanceof CSSTransition))!=null?u:[];return d.length===0?(r(),s.dispose):(Promise.allSettled(d.map(p=>p.finished)).then(()=>{f||r()}),s.dispose)}function x2(n,{inFlight:r,prepare:i}){if(r!=null&&r.current){i();return}let u=n.style.transition;n.style.transition="none",i(),n.offsetHeight,n.style.transition=u}function eo(){return typeof window<"u"}function Fa(n){return S0(n)?(n.nodeName||"").toLowerCase():"#document"}function Ht(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function vn(n){var r;return(r=(S0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function S0(n){return eo()?n instanceof Node||n instanceof Ht(n).Node:!1}function vt(n){return eo()?n instanceof Element||n instanceof Ht(n).Element:!1}function hn(n){return eo()?n instanceof HTMLElement||n instanceof Ht(n).HTMLElement:!1}function Nv(n){return!eo()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Ht(n).ShadowRoot}const w2=new Set(["inline","contents"]);function mi(n){const{overflow:r,overflowX:i,overflowY:u,display:s}=en(n);return/auto|scroll|overlay|hidden|clip/.test(r+u+i)&&!w2.has(s)}const S2=new Set(["table","td","th"]);function E2(n){return S2.has(Fa(n))}const T2=[":popover-open",":modal"];function to(n){return T2.some(r=>{try{return n.matches(r)}catch{return!1}})}const R2=["transform","translate","scale","rotate","perspective"],O2=["transform","translate","scale","rotate","perspective","filter"],A2=["paint","layout","strict","content"];function qf(n){const r=Gf(),i=vt(n)?en(n):n;return R2.some(u=>i[u]?i[u]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!r&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!r&&(i.filter?i.filter!=="none":!1)||O2.some(u=>(i.willChange||"").includes(u))||A2.some(u=>(i.contain||"").includes(u))}function C2(n){let r=bl(n);for(;hn(r)&&!Ga(r);){if(qf(r))return r;if(to(r))return null;r=bl(r)}return null}function Gf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const M2=new Set(["html","body","#document"]);function Ga(n){return M2.has(Fa(n))}function en(n){return Ht(n).getComputedStyle(n)}function no(n){return vt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function bl(n){if(Fa(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Nv(n)&&n.host||vn(n);return Nv(r)?r.host:r}function E0(n){const r=bl(n);return Ga(r)?n.ownerDocument?n.ownerDocument.body:n.body:hn(r)&&mi(r)?r:E0(r)}function ui(n,r,i){var u;r===void 0&&(r=[]),i===void 0&&(i=!0);const s=E0(n),f=s===((u=n.ownerDocument)==null?void 0:u.body),d=Ht(s);if(f){const p=vf(d);return r.concat(d,d.visualViewport||[],mi(s)?s:[],p&&i?ui(p):[])}return r.concat(s,ui(s,[],i))}function vf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function j2(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(r=>{let{brand:i,version:u}=r;return i+"/"+u}).join(" "):navigator.userAgent}const Xl=Math.min,mt=Math.max,oi=Math.round,$u=Math.floor,fn=n=>({x:n,y:n}),N2={left:"right",right:"left",bottom:"top",top:"bottom"},D2={start:"end",end:"start"};function Dv(n,r,i){return mt(n,Xl(r,i))}function Ja(n,r){return typeof n=="function"?n(r):n}function yl(n){return n.split("-")[0]}function pi(n){return n.split("-")[1]}function T0(n){return n==="x"?"y":"x"}function R0(n){return n==="y"?"height":"width"}const z2=new Set(["top","bottom"]);function _n(n){return z2.has(yl(n))?"y":"x"}function O0(n){return T0(_n(n))}function _2(n,r,i){i===void 0&&(i=!1);const u=pi(n),s=O0(n),f=R0(s);let d=s==="x"?u===(i?"end":"start")?"right":"left":u==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(d=Vu(d)),[d,Vu(d)]}function L2(n){const r=Vu(n);return[gf(n),r,gf(r)]}function gf(n){return n.replace(/start|end/g,r=>D2[r])}const zv=["left","right"],_v=["right","left"],H2=["top","bottom"],$2=["bottom","top"];function U2(n,r,i){switch(n){case"top":case"bottom":return i?r?_v:zv:r?zv:_v;case"left":case"right":return r?H2:$2;default:return[]}}function k2(n,r,i,u){const s=pi(n);let f=U2(yl(n),i==="start",u);return s&&(f=f.map(d=>d+"-"+s),r&&(f=f.concat(f.map(gf)))),f}function Vu(n){return n.replace(/left|right|bottom|top/g,r=>N2[r])}function B2(n){return{top:0,right:0,bottom:0,left:0,...n}}function q2(n){return typeof n!="number"?B2(n):{top:n,right:n,bottom:n,left:n}}function Xu(n){const{x:r,y:i,width:u,height:s}=n;return{width:u,height:s,top:i,left:r,right:r+u,bottom:i+s,x:r,y:i}}function Lv(n,r,i){let{reference:u,floating:s}=n;const f=_n(r),d=O0(r),p=R0(d),h=yl(r),m=f==="y",b=u.x+u.width/2-s.width/2,E=u.y+u.height/2-s.height/2,S=u[p]/2-s[p]/2;let w;switch(h){case"top":w={x:b,y:u.y-s.height};break;case"bottom":w={x:b,y:u.y+u.height};break;case"right":w={x:u.x+u.width,y:E};break;case"left":w={x:u.x-s.width,y:E};break;default:w={x:u.x,y:u.y}}switch(pi(r)){case"start":w[d]-=S*(i&&m?-1:1);break;case"end":w[d]+=S*(i&&m?-1:1);break}return w}const G2=async(n,r,i)=>{const{placement:u="bottom",strategy:s="absolute",middleware:f=[],platform:d}=i,p=f.filter(Boolean),h=await(d.isRTL==null?void 0:d.isRTL(r));let m=await d.getElementRects({reference:n,floating:r,strategy:s}),{x:b,y:E}=Lv(m,u,h),S=u,w={},T=0;for(let R=0;R<p.length;R++){const{name:M,fn:C}=p[R],{x:H,y:D,data:Y,reset:B}=await C({x:b,y:E,initialPlacement:u,placement:S,strategy:s,middlewareData:w,rects:m,platform:d,elements:{reference:n,floating:r}});b=H??b,E=D??E,w={...w,[M]:{...w[M],...Y}},B&&T<=50&&(T++,typeof B=="object"&&(B.placement&&(S=B.placement),B.rects&&(m=B.rects===!0?await d.getElementRects({reference:n,floating:r,strategy:s}):B.rects),{x:b,y:E}=Lv(m,S,h)),R=-1)}return{x:b,y:E,placement:S,strategy:s,middlewareData:w}};async function lo(n,r){var i;r===void 0&&(r={});const{x:u,y:s,platform:f,rects:d,elements:p,strategy:h}=n,{boundary:m="clippingAncestors",rootBoundary:b="viewport",elementContext:E="floating",altBoundary:S=!1,padding:w=0}=Ja(r,n),T=q2(w),M=p[S?E==="floating"?"reference":"floating":E],C=Xu(await f.getClippingRect({element:(i=await(f.isElement==null?void 0:f.isElement(M)))==null||i?M:M.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(p.floating)),boundary:m,rootBoundary:b,strategy:h})),H=E==="floating"?{x:u,y:s,width:d.floating.width,height:d.floating.height}:d.reference,D=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p.floating)),Y=await(f.isElement==null?void 0:f.isElement(D))?await(f.getScale==null?void 0:f.getScale(D))||{x:1,y:1}:{x:1,y:1},B=Xu(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:H,offsetParent:D,strategy:h}):H);return{top:(C.top-B.top+T.top)/Y.y,bottom:(B.bottom-C.bottom+T.bottom)/Y.y,left:(C.left-B.left+T.left)/Y.x,right:(B.right-C.right+T.right)/Y.x}}const Y2=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var i,u;const{placement:s,middlewareData:f,rects:d,initialPlacement:p,platform:h,elements:m}=r,{mainAxis:b=!0,crossAxis:E=!0,fallbackPlacements:S,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:R=!0,...M}=Ja(n,r);if((i=f.arrow)!=null&&i.alignmentOffset)return{};const C=yl(s),H=_n(p),D=yl(p)===p,Y=await(h.isRTL==null?void 0:h.isRTL(m.floating)),B=S||(D||!R?[Vu(p)]:L2(p)),I=T!=="none";!S&&I&&B.push(...k2(p,R,T,Y));const F=[p,...B],q=await lo(r,M),W=[];let P=((u=f.flip)==null?void 0:u.overflows)||[];if(b&&W.push(q[C]),E){const fe=_2(s,d,Y);W.push(q[fe[0]],q[fe[1]])}if(P=[...P,{placement:s,overflows:W}],!W.every(fe=>fe<=0)){var ue,oe;const fe=(((ue=f.flip)==null?void 0:ue.index)||0)+1,le=F[fe];if(le&&(!(E==="alignment"?H!==_n(le):!1)||P.every(k=>k.overflows[0]>0&&_n(k.placement)===H)))return{data:{index:fe,overflows:P},reset:{placement:le}};let z=(oe=P.filter(Z=>Z.overflows[0]<=0).sort((Z,k)=>Z.overflows[1]-k.overflows[1])[0])==null?void 0:oe.placement;if(!z)switch(w){case"bestFit":{var ce;const Z=(ce=P.filter(k=>{if(I){const te=_n(k.placement);return te===H||te==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(te=>te>0).reduce((te,O)=>te+O,0)]).sort((k,te)=>k[1]-te[1])[0])==null?void 0:ce[0];Z&&(z=Z);break}case"initialPlacement":z=p;break}if(s!==z)return{reset:{placement:z}}}return{}}}},V2=new Set(["left","top"]);async function X2(n,r){const{placement:i,platform:u,elements:s}=n,f=await(u.isRTL==null?void 0:u.isRTL(s.floating)),d=yl(i),p=pi(i),h=_n(i)==="y",m=V2.has(d)?-1:1,b=f&&h?-1:1,E=Ja(r,n);let{mainAxis:S,crossAxis:w,alignmentAxis:T}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return p&&typeof T=="number"&&(w=p==="end"?T*-1:T),h?{x:w*b,y:S*m}:{x:S*m,y:w*b}}const Z2=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var i,u;const{x:s,y:f,placement:d,middlewareData:p}=r,h=await X2(r,n);return d===((i=p.offset)==null?void 0:i.placement)&&(u=p.arrow)!=null&&u.alignmentOffset?{}:{x:s+h.x,y:f+h.y,data:{...h,placement:d}}}}},Q2=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:i,y:u,placement:s}=r,{mainAxis:f=!0,crossAxis:d=!1,limiter:p={fn:M=>{let{x:C,y:H}=M;return{x:C,y:H}}},...h}=Ja(n,r),m={x:i,y:u},b=await lo(r,h),E=_n(yl(s)),S=T0(E);let w=m[S],T=m[E];if(f){const M=S==="y"?"top":"left",C=S==="y"?"bottom":"right",H=w+b[M],D=w-b[C];w=Dv(H,w,D)}if(d){const M=E==="y"?"top":"left",C=E==="y"?"bottom":"right",H=T+b[M],D=T-b[C];T=Dv(H,T,D)}const R=p.fn({...r,[S]:w,[E]:T});return{...R,data:{x:R.x-i,y:R.y-u,enabled:{[S]:f,[E]:d}}}}}},K2=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var i,u;const{placement:s,rects:f,platform:d,elements:p}=r,{apply:h=()=>{},...m}=Ja(n,r),b=await lo(r,m),E=yl(s),S=pi(s),w=_n(s)==="y",{width:T,height:R}=f.floating;let M,C;E==="top"||E==="bottom"?(M=E,C=S===(await(d.isRTL==null?void 0:d.isRTL(p.floating))?"start":"end")?"left":"right"):(C=E,M=S==="end"?"top":"bottom");const H=R-b.top-b.bottom,D=T-b.left-b.right,Y=Xl(R-b[M],H),B=Xl(T-b[C],D),I=!r.middlewareData.shift;let F=Y,q=B;if((i=r.middlewareData.shift)!=null&&i.enabled.x&&(q=D),(u=r.middlewareData.shift)!=null&&u.enabled.y&&(F=H),I&&!S){const P=mt(b.left,0),ue=mt(b.right,0),oe=mt(b.top,0),ce=mt(b.bottom,0);w?q=T-2*(P!==0||ue!==0?P+ue:mt(b.left,b.right)):F=R-2*(oe!==0||ce!==0?oe+ce:mt(b.top,b.bottom))}await h({...r,availableWidth:q,availableHeight:F});const W=await d.getDimensions(p.floating);return T!==W.width||R!==W.height?{reset:{rects:!0}}:{}}}};function A0(n){const r=en(n);let i=parseFloat(r.width)||0,u=parseFloat(r.height)||0;const s=hn(n),f=s?n.offsetWidth:i,d=s?n.offsetHeight:u,p=oi(i)!==f||oi(u)!==d;return p&&(i=f,u=d),{width:i,height:u,$:p}}function Yf(n){return vt(n)?n:n.contextElement}function ka(n){const r=Yf(n);if(!hn(r))return fn(1);const i=r.getBoundingClientRect(),{width:u,height:s,$:f}=A0(r);let d=(f?oi(i.width):i.width)/u,p=(f?oi(i.height):i.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!p||!Number.isFinite(p))&&(p=1),{x:d,y:p}}const F2=fn(0);function C0(n){const r=Ht(n);return!Gf()||!r.visualViewport?F2:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function J2(n,r,i){return r===void 0&&(r=!1),!i||r&&i!==Ht(n)?!1:r}function Zl(n,r,i,u){r===void 0&&(r=!1),i===void 0&&(i=!1);const s=n.getBoundingClientRect(),f=Yf(n);let d=fn(1);r&&(u?vt(u)&&(d=ka(u)):d=ka(n));const p=J2(f,i,u)?C0(f):fn(0);let h=(s.left+p.x)/d.x,m=(s.top+p.y)/d.y,b=s.width/d.x,E=s.height/d.y;if(f){const S=Ht(f),w=u&&vt(u)?Ht(u):u;let T=S,R=vf(T);for(;R&&u&&w!==T;){const M=ka(R),C=R.getBoundingClientRect(),H=en(R),D=C.left+(R.clientLeft+parseFloat(H.paddingLeft))*M.x,Y=C.top+(R.clientTop+parseFloat(H.paddingTop))*M.y;h*=M.x,m*=M.y,b*=M.x,E*=M.y,h+=D,m+=Y,T=Ht(R),R=vf(T)}}return Xu({width:b,height:E,x:h,y:m})}function Vf(n,r){const i=no(n).scrollLeft;return r?r.left+i:Zl(vn(n)).left+i}function M0(n,r,i){i===void 0&&(i=!1);const u=n.getBoundingClientRect(),s=u.left+r.scrollLeft-(i?0:Vf(n,u)),f=u.top+r.scrollTop;return{x:s,y:f}}function P2(n){let{elements:r,rect:i,offsetParent:u,strategy:s}=n;const f=s==="fixed",d=vn(u),p=r?to(r.floating):!1;if(u===d||p&&f)return i;let h={scrollLeft:0,scrollTop:0},m=fn(1);const b=fn(0),E=hn(u);if((E||!E&&!f)&&((Fa(u)!=="body"||mi(d))&&(h=no(u)),hn(u))){const w=Zl(u);m=ka(u),b.x=w.x+u.clientLeft,b.y=w.y+u.clientTop}const S=d&&!E&&!f?M0(d,h,!0):fn(0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-h.scrollLeft*m.x+b.x+S.x,y:i.y*m.y-h.scrollTop*m.y+b.y+S.y}}function W2(n){return Array.from(n.getClientRects())}function I2(n){const r=vn(n),i=no(n),u=n.ownerDocument.body,s=mt(r.scrollWidth,r.clientWidth,u.scrollWidth,u.clientWidth),f=mt(r.scrollHeight,r.clientHeight,u.scrollHeight,u.clientHeight);let d=-i.scrollLeft+Vf(n);const p=-i.scrollTop;return en(u).direction==="rtl"&&(d+=mt(r.clientWidth,u.clientWidth)-s),{width:s,height:f,x:d,y:p}}function eT(n,r){const i=Ht(n),u=vn(n),s=i.visualViewport;let f=u.clientWidth,d=u.clientHeight,p=0,h=0;if(s){f=s.width,d=s.height;const m=Gf();(!m||m&&r==="fixed")&&(p=s.offsetLeft,h=s.offsetTop)}return{width:f,height:d,x:p,y:h}}const tT=new Set(["absolute","fixed"]);function nT(n,r){const i=Zl(n,!0,r==="fixed"),u=i.top+n.clientTop,s=i.left+n.clientLeft,f=hn(n)?ka(n):fn(1),d=n.clientWidth*f.x,p=n.clientHeight*f.y,h=s*f.x,m=u*f.y;return{width:d,height:p,x:h,y:m}}function Hv(n,r,i){let u;if(r==="viewport")u=eT(n,i);else if(r==="document")u=I2(vn(n));else if(vt(r))u=nT(r,i);else{const s=C0(n);u={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Xu(u)}function j0(n,r){const i=bl(n);return i===r||!vt(i)||Ga(i)?!1:en(i).position==="fixed"||j0(i,r)}function lT(n,r){const i=r.get(n);if(i)return i;let u=ui(n,[],!1).filter(p=>vt(p)&&Fa(p)!=="body"),s=null;const f=en(n).position==="fixed";let d=f?bl(n):n;for(;vt(d)&&!Ga(d);){const p=en(d),h=qf(d);!h&&p.position==="fixed"&&(s=null),(f?!h&&!s:!h&&p.position==="static"&&!!s&&tT.has(s.position)||mi(d)&&!h&&j0(n,d))?u=u.filter(b=>b!==d):s=p,d=bl(d)}return r.set(n,u),u}function aT(n){let{element:r,boundary:i,rootBoundary:u,strategy:s}=n;const d=[...i==="clippingAncestors"?to(r)?[]:lT(r,this._c):[].concat(i),u],p=d[0],h=d.reduce((m,b)=>{const E=Hv(r,b,s);return m.top=mt(E.top,m.top),m.right=Xl(E.right,m.right),m.bottom=Xl(E.bottom,m.bottom),m.left=mt(E.left,m.left),m},Hv(r,p,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function rT(n){const{width:r,height:i}=A0(n);return{width:r,height:i}}function iT(n,r,i){const u=hn(r),s=vn(r),f=i==="fixed",d=Zl(n,!0,f,r);let p={scrollLeft:0,scrollTop:0};const h=fn(0);function m(){h.x=Vf(s)}if(u||!u&&!f)if((Fa(r)!=="body"||mi(s))&&(p=no(r)),u){const w=Zl(r,!0,f,r);h.x=w.x+r.clientLeft,h.y=w.y+r.clientTop}else s&&m();f&&!u&&s&&m();const b=s&&!u&&!f?M0(s,p):fn(0),E=d.left+p.scrollLeft-h.x-b.x,S=d.top+p.scrollTop-h.y-b.y;return{x:E,y:S,width:d.width,height:d.height}}function Xc(n){return en(n).position==="static"}function $v(n,r){if(!hn(n)||en(n).position==="fixed")return null;if(r)return r(n);let i=n.offsetParent;return vn(n)===i&&(i=i.ownerDocument.body),i}function N0(n,r){const i=Ht(n);if(to(n))return i;if(!hn(n)){let s=bl(n);for(;s&&!Ga(s);){if(vt(s)&&!Xc(s))return s;s=bl(s)}return i}let u=$v(n,r);for(;u&&E2(u)&&Xc(u);)u=$v(u,r);return u&&Ga(u)&&Xc(u)&&!qf(u)?i:u||C2(n)||i}const uT=async function(n){const r=this.getOffsetParent||N0,i=this.getDimensions,u=await i(n.floating);return{reference:iT(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:u.width,height:u.height}}};function oT(n){return en(n).direction==="rtl"}const sT={convertOffsetParentRelativeRectToViewportRelativeRect:P2,getDocumentElement:vn,getClippingRect:aT,getOffsetParent:N0,getElementRects:uT,getClientRects:W2,getDimensions:rT,getScale:ka,isElement:vt,isRTL:oT};function D0(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function cT(n,r){let i=null,u;const s=vn(n);function f(){var p;clearTimeout(u),(p=i)==null||p.disconnect(),i=null}function d(p,h){p===void 0&&(p=!1),h===void 0&&(h=1),f();const m=n.getBoundingClientRect(),{left:b,top:E,width:S,height:w}=m;if(p||r(),!S||!w)return;const T=$u(E),R=$u(s.clientWidth-(b+S)),M=$u(s.clientHeight-(E+w)),C=$u(b),D={rootMargin:-T+"px "+-R+"px "+-M+"px "+-C+"px",threshold:mt(0,Xl(1,h))||1};let Y=!0;function B(I){const F=I[0].intersectionRatio;if(F!==h){if(!Y)return d();F?d(!1,F):u=setTimeout(()=>{d(!1,1e-7)},1e3)}F===1&&!D0(m,n.getBoundingClientRect())&&d(),Y=!1}try{i=new IntersectionObserver(B,{...D,root:s.ownerDocument})}catch{i=new IntersectionObserver(B,D)}i.observe(n)}return d(!0),f}function fT(n,r,i,u){u===void 0&&(u={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=u,m=Yf(n),b=s||f?[...m?ui(m):[],...ui(r)]:[];b.forEach(C=>{s&&C.addEventListener("scroll",i,{passive:!0}),f&&C.addEventListener("resize",i)});const E=m&&p?cT(m,i):null;let S=-1,w=null;d&&(w=new ResizeObserver(C=>{let[H]=C;H&&H.target===m&&w&&(w.unobserve(r),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var D;(D=w)==null||D.observe(r)})),i()}),m&&!h&&w.observe(m),w.observe(r));let T,R=h?Zl(n):null;h&&M();function M(){const C=Zl(n);R&&!D0(R,C)&&i(),R=C,T=requestAnimationFrame(M)}return i(),()=>{var C;b.forEach(H=>{s&&H.removeEventListener("scroll",i),f&&H.removeEventListener("resize",i)}),E?.(),(C=w)==null||C.disconnect(),w=null,h&&cancelAnimationFrame(T)}}const Zc=lo,dT=Z2,hT=Q2,mT=Y2,pT=K2,vT=(n,r,i)=>{const u=new Map,s={platform:sT,...i},f={...s.platform,_c:u};return G2(n,r,{...s,platform:f})};var gT=typeof document<"u",bT=function(){},qu=gT?v.useLayoutEffect:bT;function Zu(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let i,u,s;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==r.length)return!1;for(u=i;u--!==0;)if(!Zu(n[u],r[u]))return!1;return!0}if(s=Object.keys(n),i=s.length,i!==Object.keys(r).length)return!1;for(u=i;u--!==0;)if(!{}.hasOwnProperty.call(r,s[u]))return!1;for(u=i;u--!==0;){const f=s[u];if(!(f==="_owner"&&n.$$typeof)&&!Zu(n[f],r[f]))return!1}return!0}return n!==n&&r!==r}function z0(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Uv(n,r){const i=z0(n);return Math.round(r*i)/i}function Qc(n){const r=v.useRef(n);return qu(()=>{r.current=n}),r}function yT(n){n===void 0&&(n={});const{placement:r="bottom",strategy:i="absolute",middleware:u=[],platform:s,elements:{reference:f,floating:d}={},transform:p=!0,whileElementsMounted:h,open:m}=n,[b,E]=v.useState({x:0,y:0,strategy:i,placement:r,middlewareData:{},isPositioned:!1}),[S,w]=v.useState(u);Zu(S,u)||w(u);const[T,R]=v.useState(null),[M,C]=v.useState(null),H=v.useCallback(k=>{k!==I.current&&(I.current=k,R(k))},[]),D=v.useCallback(k=>{k!==F.current&&(F.current=k,C(k))},[]),Y=f||T,B=d||M,I=v.useRef(null),F=v.useRef(null),q=v.useRef(b),W=h!=null,P=Qc(h),ue=Qc(s),oe=Qc(m),ce=v.useCallback(()=>{if(!I.current||!F.current)return;const k={placement:r,strategy:i,middleware:S};ue.current&&(k.platform=ue.current),vT(I.current,F.current,k).then(te=>{const O={...te,isPositioned:oe.current!==!1};fe.current&&!Zu(q.current,O)&&(q.current=O,It.flushSync(()=>{E(O)}))})},[S,r,i,ue,oe]);qu(()=>{m===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,E(k=>({...k,isPositioned:!1})))},[m]);const fe=v.useRef(!1);qu(()=>(fe.current=!0,()=>{fe.current=!1}),[]),qu(()=>{if(Y&&(I.current=Y),B&&(F.current=B),Y&&B){if(P.current)return P.current(Y,B,ce);ce()}},[Y,B,ce,P,W]);const le=v.useMemo(()=>({reference:I,floating:F,setReference:H,setFloating:D}),[H,D]),z=v.useMemo(()=>({reference:Y,floating:B}),[Y,B]),Z=v.useMemo(()=>{const k={position:i,left:0,top:0};if(!z.floating)return k;const te=Uv(z.floating,b.x),O=Uv(z.floating,b.y);return p?{...k,transform:"translate("+te+"px, "+O+"px)",...z0(z.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:te,top:O}},[i,p,z.floating,b.x,b.y]);return v.useMemo(()=>({...b,update:ce,refs:le,elements:z,floatingStyles:Z}),[b,ce,le,z,Z])}const _0=(n,r)=>({...dT(n),options:[n,r]}),xT=(n,r)=>({...hT(n),options:[n,r]}),wT=(n,r)=>({...mT(n),options:[n,r]}),ST=(n,r)=>({...pT(n),options:[n,r]}),L0={...Ic},ET=L0.useInsertionEffect,TT=ET||(n=>n());function H0(n){const r=v.useRef(()=>{});return TT(()=>{r.current=n}),v.useCallback(function(){for(var i=arguments.length,u=new Array(i),s=0;s<i;s++)u[s]=arguments[s];return r.current==null?void 0:r.current(...u)},[])}var bf=typeof document<"u"?v.useLayoutEffect:v.useEffect;let kv=!1,RT=0;const Bv=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+RT++;function OT(){const[n,r]=v.useState(()=>kv?Bv():void 0);return bf(()=>{n==null&&r(Bv())},[]),v.useEffect(()=>{kv=!0},[]),n}const AT=L0.useId,CT=AT||OT;function MT(){const n=new Map;return{emit(r,i){var u;(u=n.get(r))==null||u.forEach(s=>s(i))},on(r,i){n.set(r,[...n.get(r)||[],i])},off(r,i){var u;n.set(r,((u=n.get(r))==null?void 0:u.filter(s=>s!==i))||[])}}}const jT=v.createContext(null),NT=v.createContext(null),DT=()=>{var n;return((n=v.useContext(jT))==null?void 0:n.id)||null},zT=()=>v.useContext(NT),_T="data-floating-ui-focusable";function LT(n){const{open:r=!1,onOpenChange:i,elements:u}=n,s=CT(),f=v.useRef({}),[d]=v.useState(()=>MT()),p=DT()!=null,[h,m]=v.useState(u.reference),b=H0((w,T,R)=>{f.current.openEvent=w?T:void 0,d.emit("openchange",{open:w,event:T,reason:R,nested:p}),i?.(w,T,R)}),E=v.useMemo(()=>({setPositionReference:m}),[]),S=v.useMemo(()=>({reference:h||u.reference||null,floating:u.floating||null,domReference:u.reference}),[h,u.reference,u.floating]);return v.useMemo(()=>({dataRef:f,open:r,onOpenChange:b,elements:S,events:d,floatingId:s,refs:E}),[r,b,S,d,s,E])}function HT(n){n===void 0&&(n={});const{nodeId:r}=n,i=LT({...n,elements:{reference:null,floating:null,...n.elements}}),u=n.rootContext||i,s=u.elements,[f,d]=v.useState(null),[p,h]=v.useState(null),b=s?.domReference||f,E=v.useRef(null),S=zT();bf(()=>{b&&(E.current=b)},[b]);const w=yT({...n,elements:{...s,...p&&{reference:p}}}),T=v.useCallback(D=>{const Y=vt(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),contextElement:D}:D;h(Y),w.refs.setReference(Y)},[w.refs]),R=v.useCallback(D=>{(vt(D)||D===null)&&(E.current=D,d(D)),(vt(w.refs.reference.current)||w.refs.reference.current===null||D!==null&&!vt(D))&&w.refs.setReference(D)},[w.refs]),M=v.useMemo(()=>({...w.refs,setReference:R,setPositionReference:T,domReference:E}),[w.refs,R,T]),C=v.useMemo(()=>({...w.elements,domReference:b}),[w.elements,b]),H=v.useMemo(()=>({...w,...u,refs:M,elements:C,nodeId:r}),[w,M,C,r,u]);return bf(()=>{u.dataRef.current.floatingContext=H;const D=S?.nodesRef.current.find(Y=>Y.id===r);D&&(D.context=H)}),v.useMemo(()=>({...w,context:H,refs:M,elements:C}),[w,M,C,H])}const qv="active",Gv="selected";function Kc(n,r,i){const u=new Map,s=i==="item";let f=n;if(s&&n){const{[qv]:d,[Gv]:p,...h}=n;f=h}return{...i==="floating"&&{tabIndex:-1,[_T]:""},...f,...r.map(d=>{const p=d?d[i]:null;return typeof p=="function"?n?p(n):null:p}).concat(n).reduce((d,p)=>(p&&Object.entries(p).forEach(h=>{let[m,b]=h;if(!(s&&[qv,Gv].includes(m)))if(m.indexOf("on")===0){if(u.has(m)||u.set(m,[]),typeof b=="function"){var E;(E=u.get(m))==null||E.push(b),d[m]=function(){for(var S,w=arguments.length,T=new Array(w),R=0;R<w;R++)T[R]=arguments[R];return(S=u.get(m))==null?void 0:S.map(M=>M(...T)).find(M=>M!==void 0)}}}else d[m]=b}),d),{})}}function $T(n){n===void 0&&(n=[]);const r=n.map(p=>p?.reference),i=n.map(p=>p?.floating),u=n.map(p=>p?.item),s=v.useCallback(p=>Kc(p,n,"reference"),r),f=v.useCallback(p=>Kc(p,n,"floating"),i),d=v.useCallback(p=>Kc(p,n,"item"),u);return v.useMemo(()=>({getReferenceProps:s,getFloatingProps:f,getItemProps:d}),[s,f,d])}function Yv(n,r){return{...n,rects:{...n.rects,floating:{...n.rects.floating,height:r}}}}const UT=n=>({name:"inner",options:n,async fn(r){const{listRef:i,overflowRef:u,onFallbackChange:s,offset:f=0,index:d=0,minItemsVisible:p=4,referenceOverflowThreshold:h=0,scrollRef:m,...b}=Ja(n,r),{rects:E,elements:{floating:S}}=r,w=i.current[d],T=m?.current||S,R=S.clientTop||T.clientTop,M=S.clientTop!==0,C=T.clientTop!==0,H=S===T;if(!w)return{};const D={...r,...await _0(-w.offsetTop-S.clientTop-E.reference.height/2-w.offsetHeight/2-f).fn(r)},Y=await Zc(Yv(D,T.scrollHeight+R+S.clientTop),b),B=await Zc(D,{...b,elementContext:"reference"}),I=mt(0,Y.top),F=D.y+I,P=(T.scrollHeight>T.clientHeight?ue=>ue:oi)(mt(0,T.scrollHeight+(M&&H||C?R*2:0)-I-mt(0,Y.bottom)));if(T.style.maxHeight=P+"px",T.scrollTop=I,s){const ue=T.offsetHeight<w.offsetHeight*Xl(p,i.current.length)-1||B.top>=-h||B.bottom>=-h;It.flushSync(()=>s(ue))}return u&&(u.current=await Zc(Yv({...D,y:F},T.offsetHeight+R+S.clientTop),b)),{y:F}}});function kT(n,r){const{open:i,elements:u}=n,{enabled:s=!0,overflowRef:f,scrollRef:d,onChange:p}=r,h=H0(p),m=v.useRef(!1),b=v.useRef(null),E=v.useRef(null);v.useEffect(()=>{if(!s)return;function w(R){if(R.ctrlKey||!T||f.current==null)return;const M=R.deltaY,C=f.current.top>=-.5,H=f.current.bottom>=-.5,D=T.scrollHeight-T.clientHeight,Y=M<0?-1:1,B=M<0?"max":"min";T.scrollHeight<=T.clientHeight||(!C&&M>0||!H&&M<0?(R.preventDefault(),It.flushSync(()=>{h(I=>I+Math[B](M,D*Y))})):/firefox/i.test(j2())&&(T.scrollTop+=M))}const T=d?.current||u.floating;if(i&&T)return T.addEventListener("wheel",w),requestAnimationFrame(()=>{b.current=T.scrollTop,f.current!=null&&(E.current={...f.current})}),()=>{b.current=null,E.current=null,T.removeEventListener("wheel",w)}},[s,i,u.floating,f,d,h]);const S=v.useMemo(()=>({onKeyDown(){m.current=!0},onWheel(){m.current=!1},onPointerMove(){m.current=!1},onScroll(){const w=d?.current||u.floating;if(!(!f.current||!w||!m.current)){if(b.current!==null){const T=w.scrollTop-b.current;(f.current.bottom<-.5&&T<-1||f.current.top<-.5&&T>1)&&It.flushSync(()=>h(R=>R+T))}requestAnimationFrame(()=>{b.current=w.scrollTop})}}}),[u.floating,h,f,d]);return v.useMemo(()=>s?{floating:S}:{},[s,S])}let Pa=v.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Pa.displayName="FloatingContext";let Xf=v.createContext(null);Xf.displayName="PlacementContext";function BT(n){return v.useMemo(()=>n?typeof n=="string"?{to:n}:n:null,[n])}function qT(){return v.useContext(Pa).setReference}function GT(){return v.useContext(Pa).getReferenceProps}function YT(){let{getFloatingProps:n,slot:r}=v.useContext(Pa);return v.useCallback((...i)=>Object.assign({},n(...i),{"data-anchor":r.anchor}),[n,r])}function VT(n=null){n===!1&&(n=null),typeof n=="string"&&(n={to:n});let r=v.useContext(Xf),i=v.useMemo(()=>n,[JSON.stringify(n,(s,f)=>{var d;return(d=f?.outerHTML)!=null?d:f})]);Be(()=>{r?.(i??null)},[r,i]);let u=v.useContext(Pa);return v.useMemo(()=>[u.setFloating,n?u.styles:{}],[u.setFloating,n,u.styles])}let Vv=4;function XT({children:n,enabled:r=!0}){let[i,u]=v.useState(null),[s,f]=v.useState(0),d=v.useRef(null),[p,h]=v.useState(null);ZT(p);let m=r&&i!==null&&p!==null,{to:b="bottom",gap:E=0,offset:S=0,padding:w=0,inner:T}=QT(i,p),[R,M="center"]=b.split(" ");Be(()=>{m&&f(0)},[m]);let{refs:C,floatingStyles:H,context:D}=HT({open:m,placement:R==="selection"?M==="center"?"bottom":`bottom-${M}`:M==="center"?`${R}`:`${R}-${M}`,strategy:"absolute",transform:!1,middleware:[_0({mainAxis:R==="selection"?0:E,crossAxis:S}),xT({padding:w}),R!=="selection"&&wT({padding:w}),R==="selection"&&T?UT({...T,padding:w,overflowRef:d,offset:s,minItemsVisible:Vv,referenceOverflowThreshold:w,onFallbackChange(ue){var oe,ce;if(!ue)return;let fe=D.elements.floating;if(!fe)return;let le=parseFloat(getComputedStyle(fe).scrollPaddingBottom)||0,z=Math.min(Vv,fe.childElementCount),Z=0,k=0;for(let te of(ce=(oe=D.elements.floating)==null?void 0:oe.childNodes)!=null?ce:[])if(Un(te)){let O=te.offsetTop,X=O+te.clientHeight+le,J=fe.scrollTop,K=J+fe.clientHeight;if(O>=J&&X<=K)z--;else{k=Math.max(0,Math.min(X,K)-Math.max(O,J)),Z=te.clientHeight;break}}z>=1&&f(te=>{let O=Z*z-k+le;return te>=O?te:O})}}):null,ST({padding:w,apply({availableWidth:ue,availableHeight:oe,elements:ce}){Object.assign(ce.floating.style,{overflow:"auto",maxWidth:`${ue}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${oe}px)`})}})].filter(Boolean),whileElementsMounted:fT}),[Y=R,B=M]=D.placement.split("-");R==="selection"&&(Y="selection");let I=v.useMemo(()=>({anchor:[Y,B].filter(Boolean).join(" ")}),[Y,B]),F=kT(D,{overflowRef:d,onChange:f}),{getReferenceProps:q,getFloatingProps:W}=$T([F]),P=Se(ue=>{h(ue),C.setFloating(ue)});return v.createElement(Xf.Provider,{value:u},v.createElement(Pa.Provider,{value:{setFloating:P,setReference:C.setReference,styles:H,getReferenceProps:q,getFloatingProps:W,slot:I}},n))}function ZT(n){Be(()=>{if(!n)return;let r=new MutationObserver(()=>{let i=window.getComputedStyle(n).maxHeight,u=parseFloat(i);if(isNaN(u))return;let s=parseInt(i);isNaN(s)||u!==s&&(n.style.maxHeight=`${Math.ceil(u)}px`)});return r.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>{r.disconnect()}},[n])}function QT(n,r){var i,u,s;let f=Fc((i=n?.gap)!=null?i:"var(--anchor-gap, 0)",r),d=Fc((u=n?.offset)!=null?u:"var(--anchor-offset, 0)",r),p=Fc((s=n?.padding)!=null?s:"var(--anchor-padding, 0)",r);return{...n,gap:f,offset:d,padding:p}}function Fc(n,r,i=void 0){let u=Ka(),s=Se((h,m)=>{if(h==null)return[i,null];if(typeof h=="number")return[h,null];if(typeof h=="string"){if(!m)return[i,null];let b=Xv(h,m);return[b,E=>{let S=$0(h);{let w=S.map(T=>window.getComputedStyle(m).getPropertyValue(T));u.requestAnimationFrame(function T(){u.nextFrame(T);let R=!1;for(let[C,H]of S.entries()){let D=window.getComputedStyle(m).getPropertyValue(H);if(w[C]!==D){w[C]=D,R=!0;break}}if(!R)return;let M=Xv(h,m);b!==M&&(E(M),b=M)})}return u.dispose}]}return[i,null]}),f=v.useMemo(()=>s(n,r)[0],[n,r]),[d=f,p]=v.useState();return Be(()=>{let[h,m]=s(n,r);if(p(h),!!m)return m(p)},[n,r]),d}function $0(n){let r=/var\((.*)\)/.exec(n);if(r){let i=r[1].indexOf(",");if(i===-1)return[r[1]];let u=r[1].slice(0,i).trim(),s=r[1].slice(i+1).trim();return s?[u,...$0(s)]:[u]}return[]}function Xv(n,r){let i=document.createElement("div");r.appendChild(i),i.style.setProperty("margin-top","0px","important"),i.style.setProperty("margin-top",n,"important");let u=parseFloat(window.getComputedStyle(i).marginTop)||0;return r.removeChild(i),u}function KT(n,r){let[i,u]=v.useState(r);return!n&&i!==r&&u(r),n?i:r}let ao=v.createContext(null);ao.displayName="OpenClosedContext";var gt=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(gt||{});function ro(){return v.useContext(ao)}function Zf({value:n,children:r}){return pe.createElement(ao.Provider,{value:n},r)}function FT({children:n}){return pe.createElement(ao.Provider,{value:null},n)}function JT(n){throw new Error("Unexpected object: "+n)}var ke=(n=>(n[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n))(ke||{});function Uu(n,r){let i=r.resolveItems();if(i.length<=0)return null;let u=r.resolveActiveIndex(),s=u??-1;switch(n.focus){case 0:{for(let f=0;f<i.length;++f)if(!r.resolveDisabled(i[f],f,i))return f;return u}case 1:{s===-1&&(s=i.length);for(let f=s-1;f>=0;--f)if(!r.resolveDisabled(i[f],f,i))return f;return u}case 2:{for(let f=s+1;f<i.length;++f)if(!r.resolveDisabled(i[f],f,i))return f;return u}case 3:{for(let f=i.length-1;f>=0;--f)if(!r.resolveDisabled(i[f],f,i))return f;return u}case 4:{for(let f=0;f<i.length;++f)if(r.resolveId(i[f],f,i)===n.id)return f;return u}case 5:return null;default:JT(n)}}function U0(n){let r=Se(n),i=v.useRef(!1);v.useEffect(()=>(i.current=!1,()=>{i.current=!0,Fg(()=>{i.current&&r()})}),[r])}function PT(){let n=typeof document>"u";return"useSyncExternalStore"in Ic?(r=>r.useSyncExternalStore)(Ic)(()=>()=>{},()=>!1,()=>!n):!1}function Qf(){let n=PT(),[r,i]=v.useState(Yl.isHandoffComplete);return r&&Yl.isHandoffComplete===!1&&i(!1),v.useEffect(()=>{r!==!0&&i(!0)},[r]),v.useEffect(()=>Yl.handoff(),[]),n?!1:r}let WT=v.createContext(!1);function IT(){return v.useContext(WT)}function eR(n){let r=IT(),i=v.useContext(B0),[u,s]=v.useState(()=>{var f;if(!r&&i!==null)return(f=i.current)!=null?f:null;if(Yl.isServer)return null;let d=n?.getElementById("headlessui-portal-root");if(d)return d;if(n===null)return null;let p=n.createElement("div");return p.setAttribute("id","headlessui-portal-root"),n.body.appendChild(p)});return v.useEffect(()=>{u!==null&&(n!=null&&n.body.contains(u)||n==null||n.body.appendChild(u))},[u,n]),v.useEffect(()=>{r||i!==null&&s(i.current)},[i,s,r]),u}let k0=v.Fragment,tR=it(function(n,r){let{ownerDocument:i=null,...u}=n,s=v.useRef(null),f=xt(i0(w=>{s.current=w}),r),d=pf(s),p=i??d,h=eR(p),[m]=v.useState(()=>{var w;return Yl.isServer?null:(w=p?.createElement("div"))!=null?w:null}),b=v.useContext(rR),E=Qf();Be(()=>{!h||!m||h.contains(m)||(m.setAttribute("data-headlessui-portal",""),h.appendChild(m))},[h,m]),Be(()=>{if(m&&b)return b.register(m)},[b,m]),U0(()=>{var w;!h||!m||(Lf(m)&&h.contains(m)&&h.removeChild(m),h.childNodes.length<=0&&((w=h.parentElement)==null||w.removeChild(h)))});let S=ct();return E?!h||!m?null:It.createPortal(S({ourProps:{ref:f},theirProps:u,slot:{},defaultTag:k0,name:"Portal"}),m):null});function nR(n,r){let i=xt(r),{enabled:u=!0,ownerDocument:s,...f}=n,d=ct();return u?pe.createElement(tR,{...f,ownerDocument:s,ref:i}):d({ourProps:{ref:i},theirProps:f,slot:{},defaultTag:k0,name:"Portal"})}let lR=v.Fragment,B0=v.createContext(null);function aR(n,r){let{target:i,...u}=n,s={ref:xt(r)},f=ct();return pe.createElement(B0.Provider,{value:i},f({ourProps:s,theirProps:u,defaultTag:lR,name:"Popover.Group"}))}let rR=v.createContext(null),iR=it(nR),uR=it(aR),oR=Object.assign(iR,{Group:uR});function sR(){let n=v.useRef(!1);return Be(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function q0(n){var r;return!!(n.enter||n.enterFrom||n.enterTo||n.leave||n.leaveFrom||n.leaveTo)||((r=n.as)!=null?r:Y0)!==v.Fragment||pe.Children.count(n.children)===1}let io=v.createContext(null);io.displayName="TransitionContext";var cR=(n=>(n.Visible="visible",n.Hidden="hidden",n))(cR||{});function fR(){let n=v.useContext(io);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}function dR(){let n=v.useContext(uo);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}let uo=v.createContext(null);uo.displayName="NestingContext";function oo(n){return"children"in n?oo(n.children):n.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function G0(n,r){let i=Ql(n),u=v.useRef([]),s=sR(),f=Ka(),d=Se((w,T=ml.Hidden)=>{let R=u.current.findIndex(({el:M})=>M===w);R!==-1&&(yt(T,{[ml.Unmount](){u.current.splice(R,1)},[ml.Hidden](){u.current[R].state="hidden"}}),f.microTask(()=>{var M;!oo(u)&&s.current&&((M=i.current)==null||M.call(i))}))}),p=Se(w=>{let T=u.current.find(({el:R})=>R===w);return T?T.state!=="visible"&&(T.state="visible"):u.current.push({el:w,state:"visible"}),()=>d(w,ml.Unmount)}),h=v.useRef([]),m=v.useRef(Promise.resolve()),b=v.useRef({enter:[],leave:[]}),E=Se((w,T,R)=>{h.current.splice(0),r&&(r.chains.current[T]=r.chains.current[T].filter(([M])=>M!==w)),r?.chains.current[T].push([w,new Promise(M=>{h.current.push(M)})]),r?.chains.current[T].push([w,new Promise(M=>{Promise.all(b.current[T].map(([C,H])=>H)).then(()=>M())})]),T==="enter"?m.current=m.current.then(()=>r?.wait.current).then(()=>R(T)):R(T)}),S=Se((w,T,R)=>{Promise.all(b.current[T].splice(0).map(([M,C])=>C)).then(()=>{var M;(M=h.current.shift())==null||M()}).then(()=>R(T))});return v.useMemo(()=>({children:u,register:p,unregister:d,onStart:E,onStop:S,wait:m,chains:b}),[p,d,u,E,S,b,m])}let Y0=v.Fragment,V0=qa.RenderStrategy;function hR(n,r){var i,u;let{transition:s=!0,beforeEnter:f,afterEnter:d,beforeLeave:p,afterLeave:h,enter:m,enterFrom:b,enterTo:E,entered:S,leave:w,leaveFrom:T,leaveTo:R,...M}=n,[C,H]=v.useState(null),D=v.useRef(null),Y=q0(n),B=xt(...Y?[D,r,H]:r===null?[]:[r]),I=(i=M.unmount)==null||i?ml.Unmount:ml.Hidden,{show:F,appear:q,initial:W}=fR(),[P,ue]=v.useState(F?"visible":"hidden"),oe=dR(),{register:ce,unregister:fe}=oe;Be(()=>ce(D),[ce,D]),Be(()=>{if(I===ml.Hidden&&D.current){if(F&&P!=="visible"){ue("visible");return}return yt(P,{hidden:()=>fe(D),visible:()=>ce(D)})}},[P,D,ce,fe,F,I]);let le=Qf();Be(()=>{if(Y&&le&&P==="visible"&&D.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[D,P,le,Y]);let z=W&&!q,Z=q&&F&&W,k=v.useRef(!1),te=G0(()=>{k.current||(ue("hidden"),fe(D))},oe),O=Se(ee=>{k.current=!0;let ge=ee?"enter":"leave";te.onStart(D,ge,He=>{He==="enter"?f?.():He==="leave"&&p?.()})}),X=Se(ee=>{let ge=ee?"enter":"leave";k.current=!1,te.onStop(D,ge,He=>{He==="enter"?d?.():He==="leave"&&h?.()}),ge==="leave"&&!oo(te)&&(ue("hidden"),fe(D))});v.useEffect(()=>{Y&&s||(O(F),X(F))},[F,Y,s]);let J=!(!s||!Y||!le||z),[,K]=Bf(J,C,F,{start:O,end:X}),ne=hl({ref:B,className:((u=ff(M.className,Z&&m,Z&&b,K.enter&&m,K.enter&&K.closed&&b,K.enter&&!K.closed&&E,K.leave&&w,K.leave&&!K.closed&&T,K.leave&&K.closed&&R,!K.transition&&F&&S))==null?void 0:u.trim())||void 0,...kf(K)}),be=0;P==="visible"&&(be|=gt.Open),P==="hidden"&&(be|=gt.Closed),F&&P==="hidden"&&(be|=gt.Opening),!F&&P==="visible"&&(be|=gt.Closing);let de=ct();return pe.createElement(uo.Provider,{value:te},pe.createElement(Zf,{value:be},de({ourProps:ne,theirProps:M,defaultTag:Y0,features:V0,visible:P==="visible",name:"Transition.Child"})))}function mR(n,r){let{show:i,appear:u=!1,unmount:s=!0,...f}=n,d=v.useRef(null),p=q0(n),h=xt(...p?[d,r]:r===null?[]:[r]);Qf();let m=ro();if(i===void 0&&m!==null&&(i=(m&gt.Open)===gt.Open),i===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[b,E]=v.useState(i?"visible":"hidden"),S=G0(()=>{i||E("hidden")}),[w,T]=v.useState(!0),R=v.useRef([i]);Be(()=>{w!==!1&&R.current[R.current.length-1]!==i&&(R.current.push(i),T(!1))},[R,i]);let M=v.useMemo(()=>({show:i,appear:u,initial:w}),[i,u,w]);Be(()=>{i?E("visible"):!oo(S)&&d.current!==null&&E("hidden")},[i,S]);let C={unmount:s},H=Se(()=>{var B;w&&T(!1),(B=n.beforeEnter)==null||B.call(n)}),D=Se(()=>{var B;w&&T(!1),(B=n.beforeLeave)==null||B.call(n)}),Y=ct();return pe.createElement(uo.Provider,{value:S},pe.createElement(io.Provider,{value:M},Y({ourProps:{...C,as:v.Fragment,children:pe.createElement(X0,{ref:h,...C,...f,beforeEnter:H,beforeLeave:D})},theirProps:{},defaultTag:v.Fragment,features:V0,visible:b==="visible",name:"Transition"})))}function pR(n,r){let i=v.useContext(io)!==null,u=ro()!==null;return pe.createElement(pe.Fragment,null,!i&&u?pe.createElement(yf,{ref:r,...n}):pe.createElement(X0,{ref:r,...n}))}let yf=it(mR),X0=it(hR),vR=it(pR),gR=Object.assign(yf,{Child:vR,Root:yf});var Zv;let bR=(Zv=pe.startTransition)!=null?Zv:function(n){n()};var yR=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(yR||{}),xR=(n=>(n[n.ToggleDisclosure=0]="ToggleDisclosure",n[n.CloseDisclosure=1]="CloseDisclosure",n[n.SetButtonId=2]="SetButtonId",n[n.SetPanelId=3]="SetPanelId",n[n.SetButtonElement=4]="SetButtonElement",n[n.SetPanelElement=5]="SetPanelElement",n))(xR||{});let wR={0:n=>({...n,disclosureState:yt(n.disclosureState,{0:1,1:0})}),1:n=>n.disclosureState===1?n:{...n,disclosureState:1},2(n,r){return n.buttonId===r.buttonId?n:{...n,buttonId:r.buttonId}},3(n,r){return n.panelId===r.panelId?n:{...n,panelId:r.panelId}},4(n,r){return n.buttonElement===r.element?n:{...n,buttonElement:r.element}},5(n,r){return n.panelElement===r.element?n:{...n,panelElement:r.element}}},Kf=v.createContext(null);Kf.displayName="DisclosureContext";function Ff(n){let r=v.useContext(Kf);if(r===null){let i=new Error(`<${n} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Ff),i}return r}let Jf=v.createContext(null);Jf.displayName="DisclosureAPIContext";function Z0(n){let r=v.useContext(Jf);if(r===null){let i=new Error(`<${n} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Z0),i}return r}let Pf=v.createContext(null);Pf.displayName="DisclosurePanelContext";function SR(){return v.useContext(Pf)}function ER(n,r){return yt(r.type,wR,n,r)}let TR=v.Fragment;function RR(n,r){let{defaultOpen:i=!1,...u}=n,s=v.useRef(null),f=xt(r,i0(R=>{s.current=R},n.as===void 0||n.as===v.Fragment)),d=v.useReducer(ER,{disclosureState:i?0:1,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:p,buttonId:h},m]=d,b=Se(R=>{m({type:1});let M=Qa(s);if(!M||!h)return;let C=R?pl(R)?R:"current"in R&&pl(R.current)?R.current:M.getElementById(h):M.getElementById(h);C?.focus()}),E=v.useMemo(()=>({close:b}),[b]),S=v.useMemo(()=>({open:p===0,close:b}),[p,b]),w={ref:f},T=ct();return pe.createElement(Kf.Provider,{value:d},pe.createElement(Jf.Provider,{value:E},pe.createElement(AE,{value:b},pe.createElement(Zf,{value:yt(p,{0:gt.Open,1:gt.Closed})},T({ourProps:w,theirProps:u,slot:S,defaultTag:TR,name:"Disclosure"})))))}let OR="button";function AR(n,r){let i=v.useId(),{id:u=`headlessui-disclosure-button-${i}`,disabled:s=!1,autoFocus:f=!1,...d}=n,[p,h]=Ff("Disclosure.Button"),m=SR(),b=m===null?!1:m===p.panelId,E=v.useRef(null),S=xt(E,r,Se(W=>{if(!b)return h({type:4,element:W})}));v.useEffect(()=>{if(!b)return h({type:2,buttonId:u}),()=>{h({type:2,buttonId:null})}},[u,h,b]);let w=Se(W=>{var P;if(b){if(p.disclosureState===1)return;switch(W.key){case Ge.Space:case Ge.Enter:W.preventDefault(),W.stopPropagation(),h({type:0}),(P=p.buttonElement)==null||P.focus();break}}else switch(W.key){case Ge.Space:case Ge.Enter:W.preventDefault(),W.stopPropagation(),h({type:0});break}}),T=Se(W=>{switch(W.key){case Ge.Space:W.preventDefault();break}}),R=Se(W=>{var P;a0(W.currentTarget)||s||(b?(h({type:0}),(P=p.buttonElement)==null||P.focus()):h({type:0}))}),{isFocusVisible:M,focusProps:C}=Df({autoFocus:f}),{isHovered:H,hoverProps:D}=Nf({isDisabled:s}),{pressed:Y,pressProps:B}=zf({disabled:s}),I=v.useMemo(()=>({open:p.disclosureState===0,hover:H,active:Y,disabled:s,focus:M,autofocus:f}),[p,H,Y,M,s,f]),F=w0(n,p.buttonElement),q=ii(b?{ref:S,type:F,disabled:s||void 0,autoFocus:f,onKeyDown:w,onClick:R}:{ref:S,id:u,type:F,"aria-expanded":p.disclosureState===0,"aria-controls":p.panelElement?p.panelId:void 0,disabled:s||void 0,autoFocus:f,onKeyDown:w,onKeyUp:T,onClick:R},C,D,B);return ct()({ourProps:q,theirProps:d,slot:I,defaultTag:OR,name:"Disclosure.Button"})}let CR="div",MR=qa.RenderStrategy|qa.Static;function jR(n,r){let i=v.useId(),{id:u=`headlessui-disclosure-panel-${i}`,transition:s=!1,...f}=n,[d,p]=Ff("Disclosure.Panel"),{close:h}=Z0("Disclosure.Panel"),[m,b]=v.useState(null),E=xt(r,Se(H=>{bR(()=>p({type:5,element:H}))}),b);v.useEffect(()=>(p({type:3,panelId:u}),()=>{p({type:3,panelId:null})}),[u,p]);let S=ro(),[w,T]=Bf(s,m,S!==null?(S&gt.Open)===gt.Open:d.disclosureState===0),R=v.useMemo(()=>({open:d.disclosureState===0,close:h}),[d.disclosureState,h]),M={ref:E,id:u,...kf(T)},C=ct();return pe.createElement(FT,null,pe.createElement(Pf.Provider,{value:d.panelId},C({ourProps:M,theirProps:f,slot:R,defaultTag:CR,features:MR,visible:w,name:"Disclosure.Panel"})))}let NR=it(RR),Q0=it(AR),K0=it(jR),DR=Object.assign(NR,{Button:Q0,Panel:K0});function zR(n,r){let i=v.useRef({left:0,top:0});if(Be(()=>{if(!r)return;let s=r.getBoundingClientRect();s&&(i.current=s)},[n,r]),r==null||!n||r===document.activeElement)return!1;let u=r.getBoundingClientRect();return u.top!==i.current.top||u.left!==i.current.left}let Qv=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Kv(n){var r,i;let u=(r=n.innerText)!=null?r:"",s=n.cloneNode(!0);if(!Un(s))return u;let f=!1;for(let p of s.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))p.remove(),f=!0;let d=f?(i=s.innerText)!=null?i:"":u;return Qv.test(d)&&(d=d.replace(Qv,"")),d}function _R(n){let r=n.getAttribute("aria-label");if(typeof r=="string")return r.trim();let i=n.getAttribute("aria-labelledby");if(i){let u=i.split(" ").map(s=>{let f=document.getElementById(s);if(f){let d=f.getAttribute("aria-label");return typeof d=="string"?d.trim():Kv(f).trim()}return null}).filter(Boolean);if(u.length>0)return u.join(", ")}return Kv(n).trim()}function LR(n){let r=v.useRef(""),i=v.useRef("");return Se(()=>{let u=n.current;if(!u)return"";let s=u.innerText;if(r.current===s)return i.current;let f=_R(u).trim().toLowerCase();return r.current=s,i.current=f,f})}var HR=Object.defineProperty,$R=(n,r,i)=>r in n?HR(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i,Fv=(n,r,i)=>($R(n,typeof r!="symbol"?r+"":r,i),i),lt=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(lt||{}),cn=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(cn||{}),xf=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(xf||{}),F0=(n=>(n[n.OpenListbox=0]="OpenListbox",n[n.CloseListbox=1]="CloseListbox",n[n.GoToOption=2]="GoToOption",n[n.Search=3]="Search",n[n.ClearSearch=4]="ClearSearch",n[n.RegisterOptions=5]="RegisterOptions",n[n.UnregisterOptions=6]="UnregisterOptions",n[n.SetButtonElement=7]="SetButtonElement",n[n.SetOptionsElement=8]="SetOptionsElement",n[n.SortOptions=9]="SortOptions",n))(F0||{});function Jv(n,r=i=>i){let i=n.activeOptionIndex!==null?n.options[n.activeOptionIndex]:null,u=y0(r(n.options.slice()),f=>f.dataRef.current.domRef.current),s=i?u.indexOf(i):null;return s===-1&&(s=null),{options:u,activeOptionIndex:s}}let UR={1(n){return n.dataRef.current.disabled||n.listboxState===1?n:{...n,activeOptionIndex:null,pendingFocus:{focus:ke.Nothing},listboxState:1,__demoMode:!1}},0(n,r){if(n.dataRef.current.disabled||n.listboxState===0)return n;let i=n.activeOptionIndex,{isSelected:u}=n.dataRef.current,s=n.options.findIndex(f=>u(f.dataRef.current.value));return s!==-1&&(i=s),{...n,pendingFocus:r.focus,listboxState:0,activeOptionIndex:i,__demoMode:!1}},2(n,r){var i,u,s,f,d;if(n.dataRef.current.disabled||n.listboxState===1)return n;let p={...n,searchQuery:"",activationTrigger:(i=r.trigger)!=null?i:1,__demoMode:!1};if(r.focus===ke.Nothing)return{...p,activeOptionIndex:null};if(r.focus===ke.Specific)return{...p,activeOptionIndex:n.options.findIndex(b=>b.id===r.id)};if(r.focus===ke.Previous){let b=n.activeOptionIndex;if(b!==null){let E=n.options[b].dataRef.current.domRef,S=Uu(r,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:w=>w.id,resolveDisabled:w=>w.dataRef.current.disabled});if(S!==null){let w=n.options[S].dataRef.current.domRef;if(((u=E.current)==null?void 0:u.previousElementSibling)===w.current||((s=w.current)==null?void 0:s.previousElementSibling)===null)return{...p,activeOptionIndex:S}}}}else if(r.focus===ke.Next){let b=n.activeOptionIndex;if(b!==null){let E=n.options[b].dataRef.current.domRef,S=Uu(r,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:w=>w.id,resolveDisabled:w=>w.dataRef.current.disabled});if(S!==null){let w=n.options[S].dataRef.current.domRef;if(((f=E.current)==null?void 0:f.nextElementSibling)===w.current||((d=w.current)==null?void 0:d.nextElementSibling)===null)return{...p,activeOptionIndex:S}}}}let h=Jv(n),m=Uu(r,{resolveItems:()=>h.options,resolveActiveIndex:()=>h.activeOptionIndex,resolveId:b=>b.id,resolveDisabled:b=>b.dataRef.current.disabled});return{...p,...h,activeOptionIndex:m}},3:(n,r)=>{if(n.dataRef.current.disabled||n.listboxState===1)return n;let i=n.searchQuery!==""?0:1,u=n.searchQuery+r.value.toLowerCase(),s=(n.activeOptionIndex!==null?n.options.slice(n.activeOptionIndex+i).concat(n.options.slice(0,n.activeOptionIndex+i)):n.options).find(d=>{var p;return!d.dataRef.current.disabled&&((p=d.dataRef.current.textValue)==null?void 0:p.startsWith(u))}),f=s?n.options.indexOf(s):-1;return f===-1||f===n.activeOptionIndex?{...n,searchQuery:u}:{...n,searchQuery:u,activeOptionIndex:f,activationTrigger:1}},4(n){return n.dataRef.current.disabled||n.listboxState===1||n.searchQuery===""?n:{...n,searchQuery:""}},5:(n,r)=>{let i=n.options.concat(r.options),u=n.activeOptionIndex;if(n.pendingFocus.focus!==ke.Nothing&&(u=Uu(n.pendingFocus,{resolveItems:()=>i,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:s=>s.id,resolveDisabled:s=>s.dataRef.current.disabled})),n.activeOptionIndex===null){let{isSelected:s}=n.dataRef.current;if(s){let f=i.findIndex(d=>s?.(d.dataRef.current.value));f!==-1&&(u=f)}}return{...n,options:i,activeOptionIndex:u,pendingFocus:{focus:ke.Nothing},pendingShouldSort:!0}},6:(n,r)=>{let i=n.options,u=[],s=new Set(r.options);for(let[f,d]of i.entries())if(s.has(d.id)&&(u.push(f),s.delete(d.id),s.size===0))break;if(u.length>0){i=i.slice();for(let f of u.reverse())i.splice(f,1)}return{...n,options:i,activationTrigger:1}},7:(n,r)=>n.buttonElement===r.element?n:{...n,buttonElement:r.element},8:(n,r)=>n.optionsElement===r.element?n:{...n,optionsElement:r.element},9:n=>n.pendingShouldSort?{...n,...Jv(n),pendingShouldSort:!1}:n};class Wf extends d0{constructor(r){super(r),Fv(this,"actions",{onChange:i=>{let{onChange:u,compare:s,mode:f,value:d}=this.state.dataRef.current;return yt(f,{0:()=>u?.(i),1:()=>{let p=d.slice(),h=p.findIndex(m=>s(m,i));return h===-1?p.push(i):p.splice(h,1),u?.(p)}})},registerOption:Gc(()=>{let i=[],u=new Set;return[(s,f)=>{u.has(f)||(u.add(f),i.push({id:s,dataRef:f}))},()=>(u.clear(),this.send({type:5,options:i.splice(0)}))]}),unregisterOption:Gc(()=>{let i=[];return[u=>i.push(u),()=>{this.send({type:6,options:i.splice(0)})}]}),goToOption:Gc(()=>{let i=null;return[(u,s)=>{i={type:2,...u,trigger:s}},()=>i&&this.send(i)]}),closeListbox:()=>{this.send({type:1})},openListbox:i=>{this.send({type:0,focus:i})},selectActiveOption:()=>{if(this.state.activeOptionIndex!==null){let{dataRef:i,id:u}=this.state.options[this.state.activeOptionIndex];this.actions.onChange(i.current.value),this.send({type:2,focus:ke.Specific,id:u})}},selectOption:i=>{let u=this.state.options.find(s=>s.id===i);u&&this.actions.onChange(u.dataRef.current.value)},search:i=>{this.send({type:3,value:i})},clearSearch:()=>{this.send({type:4})},setButtonElement:i=>{this.send({type:7,element:i})},setOptionsElement:i=>{this.send({type:8,element:i})}}),Fv(this,"selectors",{activeDescendantId(i){var u;let s=i.activeOptionIndex,f=i.options;return s===null||(u=f[s])==null?void 0:u.id},isActive(i,u){var s;let f=i.activeOptionIndex,d=i.options;return f!==null?((s=d[f])==null?void 0:s.id)===u:!1},shouldScrollIntoView(i,u){return i.__demoMode||i.listboxState!==0||i.activationTrigger===0?!1:this.isActive(i,u)}}),this.on(5,()=>{requestAnimationFrame(()=>{this.send({type:9})})});{let i=this.state.id,u=$f.get(null);this.disposables.add(u.on(m0.Push,s=>{!u.selectors.isTop(s,i)&&this.state.listboxState===0&&this.actions.closeListbox()})),this.on(0,()=>u.actions.push(i)),this.on(1,()=>u.actions.pop(i))}}static new({id:r,__demoMode:i=!1}){return new Wf({id:r,dataRef:{current:{}},listboxState:i?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:ke.Nothing},__demoMode:i})}reduce(r,i){return yt(i.type,UR,r,i)}}const J0=v.createContext(null);function If(n){let r=v.useContext(J0);if(r===null){let i=new Error(`<${n} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,P0),i}return r}function P0({id:n,__demoMode:r=!1}){let i=v.useMemo(()=>Wf.new({id:n,__demoMode:r}),[]);return U0(()=>i.dispose()),i}let so=v.createContext(null);so.displayName="ListboxDataContext";function vi(n){let r=v.useContext(so);if(r===null){let i=new Error(`<${n} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,vi),i}return r}let kR=v.Fragment;function BR(n,r){let i=v.useId(),u=Pu(),{value:s,defaultValue:f,form:d,name:p,onChange:h,by:m,invalid:b=!1,disabled:E=u||!1,horizontal:S=!1,multiple:w=!1,__demoMode:T=!1,...R}=n;const M=S?"horizontal":"vertical";let C=xt(r),H=lE(f),[D=w?[]:void 0,Y]=nE(s,h,H),B=P0({id:i,__demoMode:T}),I=v.useRef({static:!1,hold:!1}),F=v.useRef(new Map),q=ME(m),W=v.useCallback(J=>yt(P.mode,{[cn.Multi]:()=>D.some(K=>q(K,J)),[cn.Single]:()=>q(D,J)}),[D]),P=v.useMemo(()=>({value:D,disabled:E,invalid:b,mode:w?cn.Multi:cn.Single,orientation:M,onChange:Y,compare:q,isSelected:W,optionsPropsRef:I,listRef:F}),[D,E,b,w,M,Y,q,W,I,F]);Be(()=>{B.state.dataRef.current=P},[P]);let ue=Kt(B,J=>J.listboxState),oe=$f.get(null),ce=Kt(oe,v.useCallback(J=>oe.selectors.isTop(J,i),[oe,i])),[fe,le]=Kt(B,J=>[J.buttonElement,J.optionsElement]);n2(ce,[fe,le],(J,K)=>{B.send({type:F0.CloseListbox}),b0(K,Uf.Loose)||(J.preventDefault(),fe?.focus())});let z=v.useMemo(()=>({open:ue===lt.Open,disabled:E,invalid:b,value:D}),[ue,E,b,D]),[Z,k]=wE({inherit:!0}),te={ref:C},O=v.useCallback(()=>{if(H!==void 0)return Y?.(H)},[Y,H]),X=ct();return pe.createElement(k,{value:Z,props:{htmlFor:fe?.id},slot:{open:ue===lt.Open,disabled:E}},pe.createElement(XT,null,pe.createElement(J0.Provider,{value:B},pe.createElement(so.Provider,{value:P},pe.createElement(Zf,{value:yt(ue,{[lt.Open]:gt.Open,[lt.Closed]:gt.Closed})},p!=null&&D!=null&&pe.createElement(sE,{disabled:E,data:{[p]:D},form:d,onReset:O}),X({ourProps:te,theirProps:R,slot:z,defaultTag:kR,name:"Listbox"}))))))}let qR="button";function GR(n,r){let i=v.useId(),u=t0(),s=vi("Listbox.Button"),f=If("Listbox.Button"),{id:d=u||`headlessui-listbox-button-${i}`,disabled:p=s.disabled||!1,autoFocus:h=!1,...m}=n,b=xt(r,qT(),f.actions.setButtonElement),E=GT(),[S,w,T]=Kt(f,le=>[le.listboxState,le.buttonElement,le.optionsElement]),R=S===lt.Open;r2(R,{trigger:w,action:v.useCallback(le=>{if(w!=null&&w.contains(le.target))return Hu.Ignore;let z=le.target.closest('[role="option"]:not([data-disabled])');return Un(z)?Hu.Select(z):T!=null&&T.contains(le.target)?Hu.Ignore:Hu.Close},[w,T]),close:f.actions.closeListbox,select:f.actions.selectActiveOption});let M=Se(le=>{switch(le.key){case Ge.Enter:aE(le.currentTarget);break;case Ge.Space:case Ge.ArrowDown:le.preventDefault(),f.actions.openListbox({focus:s.value?ke.Nothing:ke.First});break;case Ge.ArrowUp:le.preventDefault(),f.actions.openListbox({focus:s.value?ke.Nothing:ke.Last});break}}),C=Se(le=>{switch(le.key){case Ge.Space:le.preventDefault();break}}),H=Se(le=>{var z;if(le.button===0){if(a0(le.currentTarget))return le.preventDefault();f.state.listboxState===lt.Open?(It.flushSync(()=>f.actions.closeListbox()),(z=f.state.buttonElement)==null||z.focus({preventScroll:!0})):(le.preventDefault(),f.actions.openListbox({focus:ke.Nothing}))}}),D=Se(le=>le.preventDefault()),Y=s0([d]),B=gE(),{isFocusVisible:I,focusProps:F}=Df({autoFocus:h}),{isHovered:q,hoverProps:W}=Nf({isDisabled:p}),{pressed:P,pressProps:ue}=zf({disabled:p}),oe=v.useMemo(()=>({open:S===lt.Open,active:P||S===lt.Open,disabled:p,invalid:s.invalid,value:s.value,hover:q,focus:I,autofocus:h}),[S,s.value,p,q,I,P,s.invalid,h]),ce=Kt(f,le=>le.listboxState===lt.Open),fe=ii(E(),{ref:b,id:d,type:w0(n,w),"aria-haspopup":"listbox","aria-controls":T?.id,"aria-expanded":ce,"aria-labelledby":Y,"aria-describedby":B,disabled:p||void 0,autoFocus:h,onKeyDown:M,onKeyUp:C,onKeyPress:D,onPointerDown:H},F,W,ue);return ct()({ourProps:fe,theirProps:m,slot:oe,defaultTag:qR,name:"Listbox.Button"})}let W0=v.createContext(!1),YR="div",VR=qa.RenderStrategy|qa.Static;function XR(n,r){let i=v.useId(),{id:u=`headlessui-listbox-options-${i}`,anchor:s,portal:f=!1,modal:d=!0,transition:p=!1,...h}=n,m=BT(s),[b,E]=v.useState(null);m&&(f=!0);let S=vi("Listbox.Options"),w=If("Listbox.Options"),[T,R,M,C]=Kt(w,ee=>[ee.listboxState,ee.buttonElement,ee.optionsElement,ee.__demoMode]),H=pf(R),D=pf(M),Y=ro(),[B,I]=Bf(p,b,Y!==null?(Y&gt.Open)===gt.Open:T===lt.Open);VE(B,R,w.actions.closeListbox);let F=C?!1:d&&T===lt.Open;h2(F,D);let q=C?!1:d&&T===lt.Open;YE(q,{allowed:v.useCallback(()=>[R,M],[R,M])});let W=T!==lt.Open,P=zR(W,R)?!1:B,ue=B&&T===lt.Closed,oe=KT(ue,S.value),ce=Se(ee=>S.compare(oe,ee)),fe=Kt(w,ee=>{var ge;if(m==null||!((ge=m?.to)!=null&&ge.includes("selection")))return null;let He=ee.options.findIndex($t=>ce($t.dataRef.current.value));return He===-1&&(He=0),He}),le=(()=>{if(m==null)return;if(fe===null)return{...m,inner:void 0};let ee=Array.from(S.listRef.current.values());return{...m,inner:{listRef:{current:ee},index:fe}}})(),[z,Z]=VT(le),k=YT(),te=xt(r,m?z:null,w.actions.setOptionsElement,E),O=Ka();v.useEffect(()=>{var ee;let ge=M;ge&&T===lt.Open&&ge!==((ee=Qa(ge))==null?void 0:ee.activeElement)&&ge?.focus({preventScroll:!0})},[T,M]);let X=Se(ee=>{var ge,He;switch(O.dispose(),ee.key){case Ge.Space:if(w.state.searchQuery!=="")return ee.preventDefault(),ee.stopPropagation(),w.actions.search(ee.key);case Ge.Enter:if(ee.preventDefault(),ee.stopPropagation(),w.state.activeOptionIndex!==null){let{dataRef:$t}=w.state.options[w.state.activeOptionIndex];w.actions.onChange($t.current.value)}S.mode===cn.Single&&(It.flushSync(()=>w.actions.closeListbox()),(ge=w.state.buttonElement)==null||ge.focus({preventScroll:!0}));break;case yt(S.orientation,{vertical:Ge.ArrowDown,horizontal:Ge.ArrowRight}):return ee.preventDefault(),ee.stopPropagation(),w.actions.goToOption({focus:ke.Next});case yt(S.orientation,{vertical:Ge.ArrowUp,horizontal:Ge.ArrowLeft}):return ee.preventDefault(),ee.stopPropagation(),w.actions.goToOption({focus:ke.Previous});case Ge.Home:case Ge.PageUp:return ee.preventDefault(),ee.stopPropagation(),w.actions.goToOption({focus:ke.First});case Ge.End:case Ge.PageDown:return ee.preventDefault(),ee.stopPropagation(),w.actions.goToOption({focus:ke.Last});case Ge.Escape:ee.preventDefault(),ee.stopPropagation(),It.flushSync(()=>w.actions.closeListbox()),(He=w.state.buttonElement)==null||He.focus({preventScroll:!0});return;case Ge.Tab:ee.preventDefault(),ee.stopPropagation(),It.flushSync(()=>w.actions.closeListbox()),WE(w.state.buttonElement,ee.shiftKey?mf.Previous:mf.Next);break;default:ee.key.length===1&&(w.actions.search(ee.key),O.setTimeout(()=>w.actions.clearSearch(),350));break}}),J=Kt(w,ee=>{var ge;return(ge=ee.buttonElement)==null?void 0:ge.id}),K=v.useMemo(()=>({open:T===lt.Open}),[T]),ne=ii(m?k():{},{id:u,ref:te,"aria-activedescendant":Kt(w,w.selectors.activeDescendantId),"aria-multiselectable":S.mode===cn.Multi?!0:void 0,"aria-labelledby":J,"aria-orientation":S.orientation,onKeyDown:X,role:"listbox",tabIndex:T===lt.Open?0:void 0,style:{...h.style,...Z,"--button-width":NE(R,!0).width},...kf(I)}),be=ct(),de=v.useMemo(()=>S.mode===cn.Multi?S:{...S,isSelected:ce},[S,ce]);return pe.createElement(oR,{enabled:f?n.static||B:!1,ownerDocument:H},pe.createElement(so.Provider,{value:de},be({ourProps:ne,theirProps:h,slot:K,defaultTag:YR,features:VR,visible:P,name:"Listbox.Options"})))}let ZR="div";function QR(n,r){let i=v.useId(),{id:u=`headlessui-listbox-option-${i}`,disabled:s=!1,value:f,...d}=n,p=v.useContext(W0)===!0,h=vi("Listbox.Option"),m=If("Listbox.Option"),b=Kt(m,P=>m.selectors.isActive(P,u)),E=h.isSelected(f),S=v.useRef(null),w=LR(S),T=Ql({disabled:s,value:f,domRef:S,get textValue(){return w()}}),R=xt(r,S,P=>{P?h.listRef.current.set(u,P):h.listRef.current.delete(u)}),M=Kt(m,P=>m.selectors.shouldScrollIntoView(P,u));Be(()=>{if(M)return tn().requestAnimationFrame(()=>{var P,ue;(ue=(P=S.current)==null?void 0:P.scrollIntoView)==null||ue.call(P,{block:"nearest"})})},[M,S]),Be(()=>{if(!p)return m.actions.registerOption(u,T),()=>m.actions.unregisterOption(u)},[T,u,p]);let C=Se(P=>{var ue;if(s)return P.preventDefault();m.actions.onChange(f),h.mode===cn.Single&&(It.flushSync(()=>m.actions.closeListbox()),(ue=m.state.buttonElement)==null||ue.focus({preventScroll:!0}))}),H=Se(()=>{if(s)return m.actions.goToOption({focus:ke.Nothing});m.actions.goToOption({focus:ke.Specific,id:u})}),D=m2(),Y=Se(P=>{D.update(P),!s&&(b||m.actions.goToOption({focus:ke.Specific,id:u},xf.Pointer))}),B=Se(P=>{D.wasMoved(P)&&(s||b||m.actions.goToOption({focus:ke.Specific,id:u},xf.Pointer))}),I=Se(P=>{D.wasMoved(P)&&(s||b&&m.actions.goToOption({focus:ke.Nothing}))}),F=v.useMemo(()=>({active:b,focus:b,selected:E,disabled:s,selectedOption:E&&p}),[b,E,s,p]),q=p?{}:{id:u,ref:R,role:"option",tabIndex:s===!0?void 0:-1,"aria-disabled":s===!0?!0:void 0,"aria-selected":E,disabled:void 0,onClick:C,onFocus:H,onPointerEnter:Y,onMouseEnter:Y,onPointerMove:B,onMouseMove:B,onPointerLeave:I,onMouseLeave:I},W=ct();return!E&&p?null:W({ourProps:q,theirProps:d,slot:F,defaultTag:ZR,name:"Listbox.Option"})}let KR=v.Fragment;function FR(n,r){let{options:i,placeholder:u,...s}=n,f={ref:xt(r)},d=vi("ListboxSelectedOption"),p=v.useMemo(()=>({}),[]),h=d.value===void 0||d.value===null||d.mode===cn.Multi&&Array.isArray(d.value)&&d.value.length===0,m=ct();return pe.createElement(W0.Provider,{value:!0},m({ourProps:f,theirProps:{...s,children:pe.createElement(pe.Fragment,null,u&&h?u:i)},slot:p,defaultTag:KR,name:"ListboxSelectedOption"}))}let JR=it(BR),I0=it(GR),PR=RE,eb=it(XR),tb=it(QR),WR=it(FR),IR=Object.assign(JR,{Button:I0,Label:PR,Options:eb,Option:tb,SelectedOption:WR});function ed({children:n,className:r,disabled:i,intent:u="none",...s}){return y.jsx(tE,{className:at("rounded-md font-bold cursor-pointer px-2",e3(u,!!i),{"opacity-50 cursor-default":i},r),"data-focus":!0,disabled:i,...s,children:n})}function e3(n,r){switch(n){case"danger":return at("bg-red-400 text-red-800 focus:text-black",{"hover:bg-red-500 hover:text-red-950 focus:text-black":!r});case"none":return at("bg-emerald-400 text-emerald-800 focus:text-black",{"hover:bg-emerald-500 hover:text-emerald-950 focus:text-black":!r});case"success":case"primary":return at("bg-sky-400 text-sky-800 focus:text-black",{"hover:bg-sky-500 hover:text-sky-950 focus:text-black":!r});case"warning":return at("bg-amber-400 text-amber-800 focus:text-black",{"hover:bg-amber-500 hover:text-amber-950 focus:text-black":!r})}}function co({children:n}){return y.jsx(yS,{FallbackComponent:t3,children:n})}function t3({error:n,resetErrorBoundary:r}){return y.jsx(pn,{intent:"danger",children:y.jsxs(Me,{align:"start",direction:"column",gap:2,children:[y.jsx("div",{className:"font-bold",children:"Something went wrong!"}),y.jsx("pre",{className:"text-sm font-monospace text-red-300",children:n.message}),y.jsx(ed,{intent:"danger",onClick:r,children:"Retry"})]})})}function bt({children:n,className:r,href:i,target:u="_blank"}){return y.jsx("a",{className:r,href:i,target:u,rel:"noopener noreferrer",children:n})}function Ba({to:n,...r}){return y.jsx(Af,{to:n,...r})}const si=typeof window<"u"?v.useLayoutEffect:v.useEffect,Pv=n=>{let r;const i=new Set,u=(m,b)=>{const E=typeof m=="function"?m(r):m;if(!Object.is(E,r)){const S=r;r=b??(typeof E!="object"||E===null)?E:Object.assign({},r,E),i.forEach(w=>w(r,S))}},s=()=>r,p={setState:u,getState:s,getInitialState:()=>h,subscribe:m=>(i.add(m),()=>i.delete(m))},h=r=n(u,s,p);return p},n3=n=>n?Pv(n):Pv,l3=n=>n;function a3(n,r=l3){const i=pe.useSyncExternalStore(n.subscribe,pe.useCallback(()=>r(n.getState()),[n,r]),pe.useCallback(()=>r(n.getInitialState()),[n,r]));return pe.useDebugValue(i),i}const Wv=n=>{const r=n3(n),i=u=>a3(r,u);return Object.assign(i,r),i},r3=n=>n?Wv(n):Wv,nb=r3(n=>({visible:!1,hide:()=>n({visible:!1}),show:()=>n({visible:!0}),toggle:()=>n(r=>({visible:!r.visible}))}));function i3(){const{hide:n}=nb(),{pathname:r}=xl();return si(()=>{n();const i=document.body.querySelector("[data-main-scrollable]");if(i){const u=setTimeout(()=>{i.scrollTo(0,0)},1);return()=>{clearTimeout(u)}}},[r]),null}function lb({children:n,className:r,disabled:i}){return y.jsx(Me,{align:"center",className:at("px-4 h-8 cursor-pointer text-white/90 hover:text-white focus:bg-white/10 focus-within:bg-white/10",{"pointer-events-none text-white/50":i},r),direction:"row",gap:1,children:n})}function Lt({children:n,className:r,to:i}){return y.jsx(Tg,{to:i,children:({isActive:u})=>y.jsx(lb,{className:at("px-4 cursor-pointer",{"font-bold text-emerald-200 hover:text-white":u},r),children:y.jsx(Me,{align:"center",direction:"row",gap:2,children:n})})})}function Jc({children:n,label:r}){return y.jsxs(DR,{as:"section",defaultOpen:!0,children:[y.jsx(Q0,{className:"w-full group border-none! data-focus:bg-white/10",children:y.jsxs(lb,{children:[y.jsx("div",{className:"uppercase text-sm font-bold text-white/50",children:r}),y.jsx("div",{className:"grow"}),y.jsx(ug,{className:"size-4 fill-white/60 group-data-hover:fill-white/50 group-data-open:rotate-90"})]})}),y.jsx(K0,{className:"pl-4",children:n})]})}function u3(){return y.jsxs("div",{className:"w-full shrink-0 flex flex-col gap-4 py-4 overflow-y-auto",children:[y.jsx(Lt,{to:"/",children:"Getting started"}),y.jsxs(Jc,{label:"Lists",children:[y.jsx(Lt,{to:"/list/fixed-row-height",children:"Fixed row heights"}),y.jsx(Lt,{to:"/list/variable-row-height",children:"Variable row heights"}),y.jsx(Lt,{to:"/list/props",children:"Component props"}),y.jsx(Lt,{to:"/list/imperative-api",children:"Imperative API"})]}),y.jsx(Jc,{label:"Tables",children:y.jsx(Lt,{to:"/list/tabular-data",children:"Rendering tabular data"})}),y.jsxs(Jc,{label:"Grids",children:[y.jsx(Lt,{to:"/grid/grid",children:"Rendering a grid"}),y.jsx(Lt,{to:"/grid/rtl-grids",children:"RTL grids"}),y.jsx(Lt,{to:"/grid/horizontal-lists",children:"Horizontal lists"}),y.jsx(Lt,{to:"/grid/props",children:"Component props"}),y.jsx(Lt,{to:"/grid/imperative-api",children:"Imperative API"})]}),y.jsxs("div",{children:[y.jsx(Lt,{to:"/platform-requirements",children:"Requirements"}),y.jsx(Lt,{to:"/support",children:"Support"})]})]})}function Ft({section:n,title:r}){return v.useEffect(()=>{const i=document.title;return document.title=`react-window: ${n?`${n}: ${r}`:r}`,()=>{document.title=i}}),y.jsxs(Me,{align:"center",direction:"row",gap:2,children:[n&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"text-xl",children:n}),y.jsx(ug,{className:"size-4 text-slate-400"})]}),y.jsx("div",{className:"text-xl",children:r})]})}function o3(){return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(Ft,{title:"Getting started"}),y.jsxs("div",{children:[y.jsx("strong",{children:"react-window"})," is a component library that helps render large lists of data quickly and without the performance problems that often go along with rendering a lot of data. It's used in a lot of places, from"," ",y.jsx(bt,{href:"https://chromewebstore.google.com/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en",children:"React DevTools"})," ","to the"," ",y.jsx(bt,{href:"https://github.com/replayio/devtools",children:"Replay browser"}),"."]}),y.jsx("div",{className:"text-xl",children:"Installation"}),y.jsx("div",{children:"Begin by installing the library from NPM:"}),y.jsxs("code",{className:"grow text-xs md:text-sm block text-left whitespace-pre-wrap rounded-md p-3 bg-black text-white!",children:["npm install ",y.jsx("span",{className:"tok-keyword",children:"react-window"})]}),y.jsxs(pn,{intent:"primary",children:["TypeScript definitions are included within the published"," ",y.jsx("code",{children:"dist"})," folder and documentation is included within the"," ",y.jsx("code",{children:"docs"})," folder."]}),y.jsx("div",{children:"This library provides two basic types of components; choose one below to learn more:"}),y.jsxs("ul",{className:"pl-8",children:[y.jsxs("li",{className:"list-disc",children:[y.jsx(Ba,{to:"/list/fixed-row-height",children:"Lists"})," (vertical scrolling)"]}),y.jsxs("li",{className:"list-disc",children:[y.jsx(Ba,{to:"/grid/grid",children:"Grids"})," (horizontal and vertical scrolling)"]})]}),y.jsxs("div",{children:["Check out the ",y.jsx(Ba,{to:"/support",children:"support page"})," if you need help."]})]})}function kn({children:n,className:r,...i}){return y.jsx(co,{children:y.jsx("div",{className:`border-lg bg-black/30 text-slate-300 rounded-lg p-2 ${r}`,...i,children:n})})}function Kl(n){const[r,i]=v.useState(),[u,s]=v.useState(null);if(u)throw u;return v.useEffect(()=>{const f=new AbortController;return(async()=>{try{const d=await fetch(n,{signal:f.signal});if(!f.signal.aborted){const p=await d.json();f.signal.aborted||i(p)}}catch(d){if(d instanceof Error&&d?.name==="AbortError")return;console.error(`Error thrown for URL: %o
64
-
65
- %o`,n,d),s(d)}})(),()=>{const d=new Error;d.name="AbortError",f.abort(d)}},[n]),r}function s3(n,r){const[i,u]=v.useState(()=>{const f=localStorage.getItem(n);return f!=null?JSON.parse(f):r}),s=v.useRef({prevValue:null,value:JSON.stringify(i)});return v.useLayoutEffect(()=>{s.current.prevValue=s.current.value,s.current.value=JSON.stringify(i)}),v.useLayoutEffect(()=>{const f=d=>{n===d.key&&d.newValue&&d.newValue!==JSON.stringify(i)&&u(JSON.parse(d.newValue))};return window.addEventListener("storage",f),()=>{window.removeEventListener("storage",f)}},[n,i]),v.useLayoutEffect(()=>{window.dispatchEvent(new StorageEvent("storage",{key:n,newValue:s.current.value||"",oldValue:s.current.prevValue||""})),localStorage.setItem(n,s.current.value)},[n,i]),[i,u]}function gn(){return y.jsxs(Me,{align:"center",className:"text-slate-300",direction:"row",gap:2,children:[y.jsx(F1,{className:"size-4 animate-spin"}),"Loading..."]})}function c3({className:n="",html:r}){return y.jsx("code",{className:at("text-xs md:text-sm block text-left whitespace-pre-wrap text-white! rounded-md p-3 bg-black","flex flex-col",n),dangerouslySetInnerHTML:{__html:r}})}function rt({url:n}){return y.jsx(co,{children:y.jsx(f3,{url:n})})}function f3({url:n}){const[r,i]=s3("CodeTabs::tab",!0),u=Kl(n);if(u===void 0)return y.jsx(gn,{});const s=y.jsx(c3,{html:r?u.typeScript??u.javaScript:u.javaScript});return u.typeScript?y.jsxs("div",{className:"relative",children:[s,y.jsxs("button",{className:at("absolute top-2 right-2 p-1 rounded-sm bg-white/10 cursor-pointer hover:text-sky-300 hover:bg-sky-950 text-xs flex flex-row items-center gap-1",{"text-white/50":!r,"text-sky-300 bg-sky-950/50":r}),onClick:()=>i(!r),children:[r?"TS":"JS",y.jsx("div",{className:at("w-2 h-2 rounded",{"bg-green-400":r,"bg-orange-400":!r})})]})]}):s}function Fl({title:n,to:r}){return y.jsxs("div",{children:["Continue to ",y.jsx(Ba,{to:r,children:n}),"…"]})}function d3(n){let r=n;for(;r;){if(r.dir)return r.dir==="rtl";r=r.parentElement}return!1}function h3(n,r){const[i,u]=v.useState(r==="rtl");return v.useLayoutEffect(()=>{n&&(r||u(d3(n)))},[r,n]),i}function Iv(n){if(n!==void 0)switch(typeof n){case"number":return n;case"string":{if(n.endsWith("px"))return parseFloat(n);break}}}function m3({box:n,defaultHeight:r,defaultWidth:i,disabled:u,element:s,mode:f,style:d}){const{styleHeight:p,styleWidth:h}=v.useMemo(()=>({styleHeight:Iv(d?.height),styleWidth:Iv(d?.width)}),[d?.height,d?.width]),[m,b]=v.useState({height:r,width:i}),E=u||f==="only-height"&&p!==void 0||f==="only-width"&&h!==void 0||p!==void 0&&h!==void 0;return si(()=>{if(s===null||E)return;const S=new ResizeObserver(w=>{for(const T of w){const{contentRect:R,target:M}=T;s===M&&b(C=>C.height===R.height&&C.width===R.width?C:{height:R.height,width:R.width})}});return S.observe(s,{box:n}),()=>{S?.unobserve(s)}},[n,E,s,p,h]),v.useMemo(()=>({height:p??m.height,width:h??m.width}),[m,p,h])}function p3(n){const r=v.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return si(()=>{r.current=n},[n]),v.useCallback(i=>r.current?.(i),[r])}let Ha=null;function v3(n=!1){if(Ha===null||n){const r=document.createElement("div"),i=r.style;i.width="50px",i.height="50px",i.overflow="scroll",i.direction="rtl";const u=document.createElement("div"),s=u.style;return s.width="100px",s.height="100px",r.appendChild(u),document.body.appendChild(r),r.scrollLeft>0?Ha="positive-descending":(r.scrollLeft=1,r.scrollLeft===0?Ha="negative":Ha="positive-ascending"),document.body.removeChild(r),Ha}return Ha}function Pc({containerElement:n,direction:r,isRtl:i,scrollOffset:u}){if(r==="horizontal"&&i)switch(v3()){case"negative":return-u;case"positive-descending":{if(n){const{clientWidth:s,scrollLeft:f,scrollWidth:d}=n;return d-s-f}break}}return u}function gl(n,r="Assertion error"){if(!n)throw console.error(r),Error(r)}function ab({cachedBounds:n,itemCount:r,itemSize:i}){if(r===0)return 0;if(typeof i=="number")return r*i;{const u=n.get(n.size===0?0:n.size-1);gl(u!==void 0,"Unexpected bounds cache miss");const s=(u.scrollOffset+u.size)/n.size;return r*s}}function g3({align:n,cachedBounds:r,index:i,itemCount:u,itemSize:s,containerScrollOffset:f,containerSize:d}){const p=ab({cachedBounds:r,itemCount:u,itemSize:s}),h=r.get(i),m=Math.max(0,Math.min(p-d,h.scrollOffset)),b=Math.max(0,h.scrollOffset-d+h.size);switch(n==="smart"&&(f>=b&&f<=m?n="auto":n="center"),n){case"start":return m;case"end":return b;case"center":return h.scrollOffset<=d/2?0:h.scrollOffset+h.size/2>=p-d/2?p-d:h.scrollOffset+h.size/2-d/2;case"auto":default:return f>=b&&f<=m?f:f<b?b:m}}function eg({cachedBounds:n,containerScrollOffset:r,containerSize:i,itemCount:u,overscanCount:s}){const f=u-1;let d=0,p=-1,h=0;for(;h<f;){const m=n.get(h);if(m.scrollOffset+m.size>r)break;h++}for(d=h,d=Math.max(0,d-s);h<f;){const m=n.get(h);if(m.scrollOffset+m.size>=r+i)break;h++}return p=Math.min(f,h),p=Math.min(u-1,p+s),d<0?[0,-1]:[d,p]}function b3({itemCount:n,itemProps:r,itemSize:i}){const u=new Map;return{get(s){for(gl(s<n,`Invalid index ${s}`);u.size-1<s;){const d=u.size;let p;switch(typeof i){case"function":{p=i(d,r);break}case"number":{p=i;break}}if(d===0)u.set(d,{size:p,scrollOffset:0});else{const h=u.get(d-1);gl(h!==void 0,`Unexpected bounds cache miss for index ${s}`),u.set(d,{scrollOffset:h.scrollOffset+h.size,size:p})}}const f=u.get(s);return gl(f!==void 0,`Unexpected bounds cache miss for index ${s}`),f},set(s,f){u.set(s,f)},get size(){return u.size}}}function y3({itemCount:n,itemProps:r,itemSize:i}){return v.useMemo(()=>b3({itemCount:n,itemProps:r,itemSize:i}),[n,r,i])}function x3({containerSize:n,itemSize:r}){let i;switch(typeof r){case"string":{gl(r.endsWith("%"),`Invalid item size: "${r}"; string values must be percentages (e.g. "100%")`),gl(n!==void 0,"Container size must be defined if a percentage item size is specified"),i=n*parseInt(r)/100;break}default:{i=r;break}}return i}function wf({containerElement:n,containerStyle:r,defaultContainerSize:i=0,direction:u,isRtl:s=!1,itemCount:f,itemProps:d,itemSize:p,onResize:h,overscanCount:m}){const[b,E]=v.useState([0,-1]),[S,w]=[Math.min(f-1,b[0]),Math.min(f-1,b[1])],{height:T=i,width:R=i}=m3({defaultHeight:u==="vertical"?i:void 0,defaultWidth:u==="horizontal"?i:void 0,element:n,mode:u==="vertical"?"only-height":"only-width",style:r}),M=v.useRef({height:0,width:0}),C=u==="vertical"?T:R,H=x3({containerSize:C,itemSize:p});v.useLayoutEffect(()=>{if(typeof h=="function"){const q=M.current;(q.height!==T||q.width!==R)&&(h({height:T,width:R},{...q}),q.height=T,q.width=R)}},[T,h,R]);const D=y3({itemCount:f,itemProps:d,itemSize:H}),Y=v.useCallback(q=>D.get(q),[D]),B=v.useCallback(()=>ab({cachedBounds:D,itemCount:f,itemSize:H}),[D,f,H]),I=v.useCallback(q=>{const W=Pc({containerElement:n,direction:u,isRtl:s,scrollOffset:q});return eg({cachedBounds:D,containerScrollOffset:W,containerSize:C,itemCount:f,overscanCount:m})},[D,n,C,u,s,f,m]);si(()=>{const q=(u==="vertical"?n?.scrollTop:n?.scrollLeft)??0;E(I(q))},[n,u,I]),si(()=>{if(!n)return;const q=()=>{E(W=>{const{scrollLeft:P,scrollTop:ue}=n,oe=Pc({containerElement:n,direction:u,isRtl:s,scrollOffset:u==="vertical"?ue:P}),ce=eg({cachedBounds:D,containerScrollOffset:oe,containerSize:C,itemCount:f,overscanCount:m});return ce[0]===W[0]&&ce[1]===W[1]?W:ce})};return n.addEventListener("scroll",q),()=>{n.removeEventListener("scroll",q)}},[D,n,C,u,f,m]);const F=p3(({align:q="auto",behavior:W="auto",containerScrollOffset:P,index:ue})=>{let oe=g3({align:q,cachedBounds:D,containerScrollOffset:P,containerSize:C,index:ue,itemCount:f,itemSize:H});if(n)if(oe=Pc({containerElement:n,direction:u,isRtl:s,scrollOffset:oe}),typeof n.scrollTo=="function")u==="horizontal"?n.scrollTo({left:oe,behavior:W||void 0}):n.scrollTo({behavior:W||void 0,top:oe});else{const ce=I(oe);(ce[0]!==S||ce[1]!==w)&&E(ce)}});return{getCellBounds:Y,getEstimatedSize:B,scrollToIndex:F,startIndex:S,stopIndex:w}}function rb(n){return v.useMemo(()=>n,Object.values(n))}function tg(n,r){if(n===r)return!0;if(!!n!=!!r||(gl(n!==void 0),gl(r!==void 0),Object.keys(n).length!==Object.keys(r).length))return!1;for(const i in n)if(!Object.is(r[i],n[i]))return!1;return!0}function ib(n,r){const{style:i,...u}=n,{style:s,...f}=r;return tg(i,s)&&tg(u,f)}function gi({cellComponent:n,cellProps:r,className:i,columnCount:u,columnWidth:s,defaultHeight:f=0,defaultWidth:d=0,dir:p,gridRef:h,onCellsRendered:m,onResize:b,overscanCount:E=3,rowCount:S,rowHeight:w,style:T,...R}){const M=rb(r),C=v.useMemo(()=>v.memo(n,ib),[n]),[H,D]=v.useState(null),Y=h3(H,p),{getCellBounds:B,getEstimatedSize:I,startIndex:F,scrollToIndex:q,stopIndex:W}=wf({containerElement:H,defaultContainerSize:d,direction:"horizontal",isRtl:Y,itemCount:u,itemProps:M,itemSize:s,onResize:b,overscanCount:E}),{getCellBounds:P,getEstimatedSize:ue,startIndex:oe,scrollToIndex:ce,stopIndex:fe}=wf({containerElement:H,defaultContainerSize:f,direction:"vertical",itemCount:S,itemProps:M,itemSize:w,onResize:b,overscanCount:E});v.useImperativeHandle(h,()=>({get element(){return H},scrollToCell({behavior:z="auto",columnAlign:Z="auto",columnIndex:k,rowAlign:te="auto",rowIndex:O}){ce({align:te,behavior:z,containerScrollOffset:H?.scrollTop??0,index:O}),q({align:Z,behavior:z,containerScrollOffset:H?.scrollLeft??0,index:k})},scrollToColumn({align:z="auto",behavior:Z="auto",index:k}){q({align:z,behavior:Z,containerScrollOffset:H?.scrollLeft??0,index:k})},scrollToRow({align:z="auto",behavior:Z="auto",index:k}){ce({align:z,behavior:Z,containerScrollOffset:H?.scrollTop??0,index:k})}}),[H,q,ce]),v.useEffect(()=>{F>=0&&W>=0&&oe>=0&&fe>=0&&m&&m({columnStartIndex:F,columnStopIndex:W,rowStartIndex:oe,rowStopIndex:fe})},[m,F,W,oe,fe]);const le=v.useMemo(()=>{const z=[];if(u>0&&S>0)for(let Z=oe;Z<=fe;Z++){const k=P(Z);for(let te=F;te<=W;te++){const O=B(te);z.push(v.createElement(C,{...M,columnIndex:te,key:`${Z}-${te}`,rowIndex:Z,style:{position:"absolute",left:Y?void 0:0,right:Y?0:void 0,transform:`translate(${Y?-O.scrollOffset:O.scrollOffset}px, ${k.scrollOffset}px)`,height:S>1?k.size:"100%",width:O.size}}))}}return z},[C,M,u,F,W,B,P,Y,S,oe,fe]);return y.jsx("div",{role:"grid",...R,className:i,dir:p,ref:D,style:{width:"100%",height:"100%",...T,maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto"},children:y.jsx("div",{className:i,style:{position:"relative",height:ue(),width:I()},children:le})})}const w3=v.useState,S3=v.useRef;function fo({className:n,defaultHeight:r=0,listRef:i,onResize:u,onRowsRendered:s,overscanCount:f=3,rowComponent:d,rowCount:p,rowHeight:h,rowProps:m,style:b,...E}){const S=rb(m),w=v.useMemo(()=>v.memo(d,ib),[d]),[T,R]=v.useState(null),{getCellBounds:M,getEstimatedSize:C,scrollToIndex:H,startIndex:D,stopIndex:Y}=wf({containerElement:T,defaultContainerSize:r,direction:"vertical",itemCount:p,itemProps:S,itemSize:h,onResize:u,overscanCount:f});v.useImperativeHandle(i,()=>({get element(){return T},scrollToRow({align:I="auto",behavior:F="auto",index:q}){H({align:I,behavior:F,containerScrollOffset:T?.scrollTop??0,index:q})}}),[T,H]),v.useEffect(()=>{D>=0&&Y>=0&&s&&s({startIndex:D,stopIndex:Y})},[s,D,Y]);const B=v.useMemo(()=>{const I=[];if(p>0)for(let F=D;F<=Y;F++){const q=M(F);I.push(v.createElement(w,{...S,key:F,index:F,style:{position:"absolute",left:0,transform:`translateY(${q.scrollOffset}px)`,height:q.size,width:"100%"}}))}return I},[w,M,p,S,D,Y]);return y.jsx("div",{role:"list",...E,className:n,ref:R,style:{...b,maxHeight:"100%",flexGrow:1,overflowY:"auto"},children:y.jsx("div",{className:n,style:{height:C(),position:"relative",width:"100%"},children:B})})}const E3=v.useRef;let Wc=-1;function T3(n=!1){if(Wc===-1||n){const r=document.createElement("div"),i=r.style;i.width="50px",i.height="50px",i.overflow="scroll",document.body.appendChild(r),Wc=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Wc}function R3({columnIndex:n,emails:r,style:i}){return y.jsx("div",{className:at("px-2 truncate text-center leading-[2.5]",{"bg-white/10 rounded":n%2===0}),style:i,children:r[n]})}function O3({emails:n}){return y.jsx(gi,{cellComponent:R3,cellProps:{emails:n},columnCount:n.length,columnWidth:150,rowCount:1,rowHeight:"100%"})}function A3(){const n=Kl("/data/contacts.json");return v.useMemo(()=>n?n.map(r=>r.email).sort((r,i)=>r.localeCompare(i)):[],[n])}function C3(){const n=A3();return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx("div",{children:"A horizontal list is just a grid with only one row."}),y.jsx("div",{children:"Here's an example horizontal list (grid) of emails:"}),y.jsxs(kn,{className:"h-20","data-focus-within":"bold",children:[!n.length&&y.jsx(gn,{}),y.jsx(O3,{emails:n})]}),y.jsx("div",{children:"Here's what the configuration for the grid above looks like:"}),y.jsx(rt,{url:"/generated/code-snippets/HorizontalList.json"}),y.jsx("div",{children:"And here's the cell renderer:"}),y.jsx(rt,{url:"/generated/code-snippets/HorizontalListCellRenderer.json"}),y.jsx(Fl,{to:"/grid/props",title:"component props"})]})}function vl({className:n,defaultValue:r,onChange:i,options:u,placeholder:s="",value:f}){return y.jsx(IR,{value:f??r,onChange:i,children:y.jsxs("div",{className:`relative ${n}`,children:[y.jsxs(I0,{className:"w-full h-9 text-left rounded-md bg-black/30 border border-2 border-transparent py-1 px-2 outline-none focus:border-teal-300","data-focus":!0,children:[f?.label?y.jsx("span",{className:"block truncate",children:f.label}):y.jsx("span",{className:"block truncate text-slate-500",children:s}),y.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:y.jsx(ax,{className:"h-4 w-4 text-gray-400","aria-hidden":"true"})})]}),y.jsx(gR,{as:v.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:y.jsx(eb,{className:"absolute z-10 mt-1 max-h-50 w-full overflow-auto rounded-md py-1 bg-black/90","data-focus":!0,children:u.map((d,p)=>y.jsx(tb,{className:at("relative cursor-pointer select-none h-7 py-1 px-2 text-slate-300 border-none!","data-focus:text-teal-300 data-focus:bg-black","data-active:text-teal-300 data-active:bg-black","data-selected:text-teal-300 data-selected:font-bold"),value:d,children:d.label},p))})})]})})}const td=["title","first_name","last_name","email","gender","address","city","state","zip","timezone","company","job_title"];function nd(n){return td[n]}function ub({contacts:n,columnIndex:r,rowIndex:i,style:u}){const f=n[i][nd(r)];return y.jsx("div",{className:"truncate",style:u,children:f})}function ld(n){switch(nd(n)){case"address":return 250;case"email":return 300;case"job_title":return 150;case"timezone":return 200;case"zip":return 75;default:return 100}}function ad(){const n=Kl("/data/contacts.json");return v.useMemo(()=>n?n.sort((r,i)=>r.title!==i.title?r.title.localeCompare(i.title):r.first_name!==i.first_name?r.first_name.localeCompare(i.first_name):r.last_name.localeCompare(i.last_name)):[],[n])}const ai={label:"",value:""},ob=["auto","center","end","smart","start"].map(n=>({label:`align: ${n}`,value:n}));ob.unshift(ai);const sb=["auto","instant","smooth"].map(n=>({label:`behavior: ${n}`,value:n}));sb.unshift(ai);const ng=td.map(n=>({label:n,value:n})).sort((n,r)=>n.label.localeCompare(r.label));function M3(){const n=ad(),r=v.useMemo(()=>{const S=[];return n&&(n.reduce((w,T)=>(w.includes(T.title)||w.push(T.title),w),new Array).sort().forEach(w=>{S.push({label:w,value:w})}),S.unshift(ai)),S},[n]),[i,u]=v.useState(),[s,f]=v.useState(),[d,p]=v.useState(ai),[h,m]=v.useState(ai),b=S3(null),E=()=>{const S=b.current;if(S){const w=d?.value?td.indexOf(d.value):void 0,T=h?.value?n.findIndex(R=>R.title===h.value):void 0;w!==void 0&&T!==void 0?S.scrollToCell({behavior:s?.value,columnAlign:i?.value,columnIndex:w,rowAlign:i?.value,rowIndex:T}):w!==void 0?S.scrollToColumn({align:i?.value,behavior:s?.value,index:w}):T!==void 0&&S.scrollToRow({align:i?.value,behavior:s?.value,index:T})}};return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(Ft,{section:"Grids",title:"Imperative API"}),y.jsx("div",{children:"Grid provides an imperative API for responding to events. The recommended way to access this API is to use the exported ref hook:"}),y.jsx(rt,{url:"/generated/code-snippets/useGridRefImport.json"}),y.jsx("div",{children:"Attach the ref during render:"}),y.jsx(rt,{url:"/generated/code-snippets/useGridRef.json"}),y.jsx("div",{children:"And call API methods in an event handler:"}),y.jsx(rt,{url:"/generated/code-snippets/gridRefClickEventHandler.json"}),y.jsx("div",{children:"The form below uses the imperative API to scroll the list:"}),y.jsxs(Me,{direction:"row",gap:4,children:[y.jsx(vl,{className:"flex-1",onChange:u,options:ob,placeholder:"Align",value:i}),y.jsx(vl,{className:"flex-1",onChange:f,options:sb,placeholder:"Scroll behavior",value:s})]}),y.jsxs(Me,{direction:"row",gap:4,children:[y.jsx(vl,{className:"flex-1",onChange:m,options:r,placeholder:"Job title",value:h}),y.jsx(vl,{className:"flex-1",onChange:p,options:ng,placeholder:"Column",value:d}),y.jsx(ed,{className:"shrink-0",disabled:!d.value&&!h.value,onClick:E,children:"Scroll"})]}),y.jsxs(kn,{className:"h-50","data-focus-within":"bold",children:[!n.length&&y.jsx(gn,{}),y.jsx(gi,{cellComponent:ub,cellProps:{contacts:n},columnCount:ng.length,columnWidth:ld,gridRef:b,rowCount:n.length,rowHeight:25})]}),y.jsxs("div",{children:["The Grid API also provides ",y.jsx("code",{children:"scrollToColumn"})," and"," ",y.jsx("code",{children:"scrollToRow"})," methods for single-axis scrolling."]}),y.jsxs(pn,{intent:"primary",children:[y.jsx("strong",{className:"text-sky-300",children:"Note"})," If you are passing the ref to another component or hook, use the ref callback function instead."]}),y.jsx(rt,{url:"/generated/code-snippets/useGridCallbackRef.json"})]})}const j3={url:"https://github.com/bvaughn/react-window.git"};function N3(n){const r=[],i=[];return Object.values(n.props).forEach(u=>{u.required?i.push(u):r.push(u)}),r.sort((u,s)=>u.name.localeCompare(s.name)),i.sort((u,s)=>u.name.localeCompare(s.name)),{optionalProps:r,requiredProps:i}}function D3({json:n}){const{optionalProps:r,requiredProps:i}=v.useMemo(()=>N3(n),[n]);return y.jsxs(y.Fragment,{children:[y.jsx(lg,{header:"Required props",props:i}),y.jsx(lg,{header:"Optional props",props:r})]})}function lg({header:n,props:r}){return r.length===0?null:y.jsxs("div",{children:[y.jsx("div",{className:"text-lg font-bold mt-2",children:n}),y.jsx("dl",{children:r.map(i=>y.jsxs("div",{children:[y.jsx("dt",{className:"mt-2 pl-4 indent-[-1rem]",children:y.jsxs("code",{className:"tok-operator",children:[y.jsx("span",{className:"tok-propertyName",children:i.name}),i.required||"?",":"," ","raw"in i.type?i.type.raw:i.type.name,i.defaultValue&&y.jsxs(y.Fragment,{children:[" = ",y.jsx("span",{className:"text-white",children:i.defaultValue.value})]})]})}),y.jsx("dd",{className:"ml-4 [&_code]:text-sky-300",dangerouslySetInnerHTML:{__html:i.description.replaceAll(`
66
- - `,"<br/>• ").replaceAll(`
67
-
68
- `,"<br/><br/>").replaceAll(/`([^`]+)`/g,"<code>$1</code>")}})]},i.name))})]})}function cb({section:n,url:r}){return y.jsx(co,{children:y.jsx(z3,{section:n,url:r})})}function z3({section:n,url:r}){const i=Kl(r);return i?y.jsxs(y.Fragment,{children:[y.jsxs(Me,{align:"center",direction:"row",gap:2,wrap:!0,children:[y.jsx(Ft,{section:n,title:"Component props"}),y.jsx(bt,{className:"text-sm text-emerald-300 hover:text-white",href:`${j3.url.replace(".git","")}/blob/master/${i.filePath}`,children:y.jsx(P1,{className:"inline-block size-4 fill-current"})})]}),y.jsx(D3,{json:i})]}):y.jsxs(y.Fragment,{children:[y.jsx(Ft,{section:n,title:"Component props"}),y.jsx(gn,{})]})}function _3(){return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(cb,{section:"Grids",url:"/generated/js-docs/Grid.json"}),y.jsx(Fl,{to:"/grid/imperative-api",title:"imperative api"})]})}function L3({contacts:n}){return y.jsx(gi,{cellComponent:ub,cellProps:{contacts:n},columnCount:10,columnWidth:ld,rowCount:n.length,rowHeight:25})}function H3(){const n=ad();return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(Ft,{section:"Grids",title:"Rendering a grid"}),y.jsxs("div",{children:["Use the ",y.jsx("code",{children:"Grid"})," component to render data with many rows and columns:"]}),y.jsxs(kn,{className:"h-50 overflow-auto","data-focus-within":"bold",children:[!n.length&&y.jsx(gn,{}),y.jsx(L3,{contacts:n})]}),y.jsx("div",{children:"Grids require you to specify the number of rows and columns as well as the width and height of each:"}),y.jsx(rt,{url:"/generated/code-snippets/Grid.json"}),y.jsx("div",{children:"Column widths and row heights can be either numbers or functions. In the example above, row height is fixed and column width is variable."}),y.jsx(rt,{url:"/generated/code-snippets/columnWidth.json"}),y.jsxs("div",{children:["Lastly grids require a component to render cell, given a column and row index. As with lists, this component receives additional props specified as part of ",y.jsx("code",{children:"cellProps"}),":"]}),y.jsx(rt,{url:"/generated/code-snippets/CellComponent.json"}),y.jsx(pn,{intent:"warning",children:y.jsxs(Me,{direction:"column",gap:4,children:[y.jsxs("div",{children:["Grids require space to render cells. Typically the"," ",y.jsx(bt,{href:"https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver",children:"ResizeObserver"})," ","API is used to determine how much space there is available within the parent DOM element."]}),y.jsxs("div",{children:["If an explicit width and height are specified (in pixels) using the"," ",y.jsx("code",{children:"style"})," prop, ",y.jsx("code",{children:"ResizeObserver"})," will not be used."]})]})}),y.jsx(Fl,{to:"/grid/rtl-grids",title:"RTL grids"})]})}function $3({contacts:n}){return y.jsx(gi,{cellComponent:U3,cellProps:{contacts:n},columnCount:10,columnWidth:ld,dir:"rtl",rowCount:n.length,rowHeight:35})}function U3({contacts:n,columnIndex:r,rowIndex:i,style:u}){const f=n[i][nd(r)];return y.jsxs("div",{className:"truncate leading-none",style:u,children:[y.jsx("div",{children:f}),y.jsxs("small",{className:"text-slate-400",children:["row ",i,", col ",r]})]})}function k3(){const n=ad();return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx("div",{children:"As with any grids, this type of list can also be display RTL scripts."}),y.jsxs("div",{children:["Using the same data as from the previous example, here is a grid rendered with ",y.jsx("code",{children:"dir"}),' attribute "rtl" .']}),y.jsxs(kn,{className:"h-50 overflow-auto","data-focus-within":"bold",children:[!n.length&&y.jsx(gn,{}),y.jsx($3,{contacts:n})]}),y.jsx(rt,{url:"/generated/code-snippets/RtlGrid.json"}),y.jsxs(pn,{intent:"primary",children:[y.jsx("strong",{className:"text-sky-300",children:"Note"})," the ",y.jsx("code",{children:"dir"})," ","attribute may be set on the root HTML element or passed as an explicit prop."," ",y.jsx(bt,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/dir",children:"Learn more"}),"…"]}),y.jsx(Fl,{to:"/grid/horizontal-lists",title:"horizontal lists"})]})}function B3({index:n,names:r,style:i}){return y.jsxs("div",{className:"flex items-center justify-between",style:i,children:[r[n],y.jsx("div",{className:"text-slate-500 text-xs",children:`${n+1} of ${r.length}`})]})}function q3({names:n}){return y.jsx(fo,{rowComponent:B3,rowCount:n.length,rowHeight:25,rowProps:{names:n}})}const G3=[];function Y3(){return Kl("/data/names.json")??G3}function V3(){const n=Y3();return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(Ft,{section:"Lists",title:"Fixed row heights"}),y.jsx("div",{children:"The simplest type of list to render is one with fixed row heights."}),y.jsxs(kn,{className:"h-50","data-focus-within":"bold",children:[!n.length&&y.jsx(gn,{}),y.jsx(q3,{names:n})]}),y.jsxs("div",{children:["To render this type of list, you need to specify how many rows it contains (",y.jsx("code",{children:"rowCount"}),"), which component should render rows (",y.jsx("code",{children:"rowComponent"}),"), and the height of each row (",y.jsx("code",{children:"rowHeight"}),"):"]}),y.jsx(rt,{url:"/generated/code-snippets/FixedHeightList.json"}),y.jsxs("div",{children:["The ",y.jsx("code",{children:"rowProps"})," object can also be used to share between components. Values passed in ",y.jsx("code",{children:"rowProps"})," will also be passed as props to the row component:"]}),y.jsx(rt,{url:"/generated/code-snippets/FixedHeightRowComponent.json"}),y.jsx(pn,{intent:"warning",children:y.jsxs(Me,{direction:"column",gap:4,children:[y.jsxs("div",{children:["Lists require vertical space to render rows. Typically the"," ",y.jsx(bt,{href:"https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver",children:"ResizeObserver"})," ","API is used to determine how much space there is available within the parent DOM element."]}),y.jsxs("div",{children:["If an explicit height is specified (in pixels) using the"," ",y.jsx("code",{children:"style"})," prop, ",y.jsx("code",{children:"ResizeObserver"})," will not be used."]})]})}),y.jsx(Fl,{to:"/list/variable-row-height",title:"variable row heights"})]})}function X3({items:n}){return y.jsx(fo,{rowComponent:fb,rowCount:n.length,rowHeight:Z3,rowProps:{items:n}})}function Z3(n,{items:r}){switch(r[n].type){case"state":return 30;case"zip":return 25}}function fb({index:n,items:r,style:i}){const u=r[n],s=Q3(u);return y.jsxs("div",{className:s,style:i,children:[u.type==="state"?y.jsx("span",{children:u.state}):y.jsxs("span",{children:[u.city,", ",u.zip]}),y.jsx("div",{className:"text-slate-500 text-xs",children:`${n+1} of ${r.length}`})]})}function Q3(n){return at("flex items-center justify-between gap-2",{"text-3xl text-sky-300":n.type==="state"})}function K3(n,{items:r}){return r[n].type==="state"?30:25}function db(){const n=Kl("/data/addresses.json");return v.useMemo(()=>{const r=[];if(n){let i="";n.sort((u,s)=>u.state!==s.state?u.state.localeCompare(s.state):u.city!==s.city?u.city.localeCompare(s.city):u.zip.localeCompare(s.zip)).forEach(u=>{u.state!==i&&(i=u.state,r.push({type:"state",state:u.state})),r.push({type:"zip",city:u.city,zip:u.zip})})}return r},[n])}const Qu={label:"",value:""},hb=["auto","center","end","smart","start"].map(n=>({label:`align: ${n}`,value:n}));hb.unshift(Qu);const mb=["auto","instant","smooth"].map(n=>({label:`behavior: ${n}`,value:n}));mb.unshift(Qu);function F3(){const[n,r]=v.useState(),[i,u]=v.useState(),[s,f]=v.useState(Qu),d=db(),p=v.useMemo(()=>{const b=d.filter(E=>E.type==="state").map(E=>({label:E.state,value:E.state}));return b.unshift(Qu),b},[d]),h=E3(null),m=()=>{const b=d.findIndex(E=>E.type==="state"&&E.state===s.value);h.current?.scrollToRow({align:n?.value,behavior:i?.value,index:b})};return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(Ft,{section:"Lists",title:"Imperative API"}),y.jsx("div",{children:"List provides an imperative API for responding to events. The recommended way to access this API is to use the exported ref hook:"}),y.jsx(rt,{url:"/generated/code-snippets/useListRefImport.json"}),y.jsx("div",{children:"Attach the ref during render:"}),y.jsx(rt,{url:"/generated/code-snippets/useListRef.json"}),y.jsx("div",{children:"And call API methods in an event handler:"}),y.jsx(rt,{url:"/generated/code-snippets/listRefClickEventHandler.json"}),y.jsx("div",{children:"The form below uses the imperative API to scroll the list:"}),y.jsxs(Me,{direction:"row",gap:4,children:[y.jsx(vl,{className:"flex-1",onChange:r,options:hb,placeholder:"Align",value:n}),y.jsx(vl,{className:"flex-1",onChange:u,options:mb,placeholder:"Scroll behavior",value:i})]}),y.jsxs(Me,{direction:"row",gap:4,children:[y.jsx(vl,{className:"flex-1",onChange:f,options:p,placeholder:"State",value:s}),y.jsx(ed,{className:"shrink-0",disabled:!s.value,onClick:m,children:"Scroll"})]}),y.jsxs(kn,{className:"h-50","data-focus-within":"bold",children:[!d.length&&y.jsx(gn,{}),y.jsx(fo,{listRef:h,rowComponent:fb,rowCount:d.length,rowHeight:K3,rowProps:{items:d}})]}),y.jsxs(pn,{intent:"primary",children:[y.jsx("strong",{className:"text-sky-300",children:"Note"})," If you are passing the ref to another component or hook, use the ref callback function instead."]}),y.jsx(rt,{url:"/generated/code-snippets/useListCallbackRef.json"})]})}function J3(){return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(cb,{section:"Lists",url:"/generated/js-docs/List.json"}),y.jsx(Fl,{to:"/list/imperative-api",title:"imperative api"})]})}function P3(){const n=db();return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(Ft,{section:"Lists",title:"Variable row heights"}),y.jsx("div",{children:"Lists with rows of different types may require different heights to render."}),y.jsx("div",{children:'Here is an example the most populous US postal codes, grouped by state. State rows "headers" are taller and are styled differently.'}),y.jsxs(kn,{className:"h-50","data-focus-within":"bold",children:[!n.length&&y.jsx(gn,{}),y.jsx(X3,{items:n})]}),y.jsxs("div",{children:["This list requires a ",y.jsx("code",{children:"rowHeight"})," function that tells it what height a row should be based on the type of data it contains."]}),y.jsx(rt,{url:"/generated/code-snippets/ListVariableRowHeights.json"}),y.jsx(Fl,{to:"/list/props",title:"component props"})]})}function W3(){return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(Ft,{title:"Page not found"}),y.jsxs(pn,{intent:"danger",children:["The URL you requested can't be found. If you think this is an error,"," ",y.jsx(bt,{href:"https://github.com/bvaughn/react-window/issues/new",children:"please file a GitHub issue"}),"."]})]})}function I3(){return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(Ft,{title:"Requirements"}),y.jsxs("div",{children:["This library requires React"," ",y.jsx(bt,{href:"https://react.dev/blog/2022/03/29/react-v18",children:"version 18"})," ","or newer."]}),y.jsxs("div",{children:["It also uses the"," ",y.jsx(bt,{href:"https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver",children:"ResizeObserver"})," ","(or a polyfill) to calculate the available space for ",y.jsx("code",{children:"List"})," ","and ",y.jsx("code",{children:"Grid"})," components."]}),y.jsxs(pn,{intent:"primary",children:[y.jsx("code",{children:"ResizeObserver"})," usage can be avoided if explicit pixel dimensions are specified using the ",y.jsx("code",{children:"style"})," prop. (Percentage or EM/REM based dimensions do not count.)"]})]})}const e5=n=>v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e3e3e3",...n},v.createElement("path",{d:"m424-424-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-424ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z"})),t5=n=>v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e3e3e3",...n},v.createElement("path",{d:"M320-440h320q17 0 28.5-11.5T680-480q0-17-11.5-28.5T640-520H320q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z"})),n5=n=>v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e3e3e3",...n},v.createElement("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z"}));function l5({checked:n,children:r,className:i,indeterminate:u,onChange:s,...f}){let d,p;return u?(d=t5,p="fill-white"):n?(d=e5,p="fill-blue-600"):(d=n5,p="fill-slate-600"),y.jsxs("label",{className:`cursor-pointer rounded-lg flex flex-row items-center outline-none group ${i}`,"data-focus-within":!0,...f,children:[y.jsx("input",{checked:n,className:"w-0 h-0",onChange:h=>{s(h.currentTarget.checked)},type:"checkbox"}),y.jsx(d,{className:p}),r&&y.jsxs(y.Fragment,{children:[" ",r]})]})}function ag({children:n,className:r,onChange:i,value:u,...s}){return y.jsx("input",{className:`rounded-md bg-black/30 border border-2 border-transparent py-1 px-2 outline-none focus:border-emerald-300 ${r}`,"data-focus":!0,onChange:f=>{i(f.currentTarget.value)},value:u,...s,children:n})}const rg=["auto","center","end","smart","start"].map(n=>({label:`align: ${n}`,value:n}));function a5(){const[n,r]=v.useState(!1),[i,u]=v.useState(),[s,f]=v.useState(),[d,p]=w3(null),[h,m]=v.useState(rg[0]);return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsxs(Me,{align:"center",direction:"row",gap:4,onKeyDown:b=>{switch(b.key){case"Enter":{i!==void 0&&s!==void 0?d?.scrollToCell({columnAlign:h.value,columnIndex:i,rowAlign:h.value,rowIndex:s}):i!==void 0?d?.scrollToColumn({align:h.value,index:i}):s!==void 0&&d?.scrollToRow({align:h.value,index:s});break}}},children:[y.jsx(vl,{className:"flex-1",onChange:m,options:rg,placeholder:"Align",value:h}),y.jsx(l5,{checked:n,onChange:r}),y.jsx(ag,{autoFocus:!0,className:"grow",min:0,max:99,onChange:b=>{const E=parseInt(b);u(isNaN(E)?void 0:E)},placeholder:"Column",step:1,type:"number",value:i===void 0?"":""+i}),y.jsx(ag,{autoFocus:!0,className:"grow",min:0,max:99,onChange:b=>{const E=parseInt(b);f(isNaN(E)?void 0:E)},placeholder:"Row",step:1,type:"number",value:s===void 0?"":""+s})]}),y.jsx(kn,{className:"w-full h-100","data-focus-within":"bold",children:y.jsx(gi,{cellComponent:r5,cellProps:{focusedColumnIndex:i,focusedRowIndex:s},columnCount:100,columnWidth:75,dir:n?"rtl":void 0,gridRef:p,rowCount:100,rowHeight:35},n?"rtl":"ltr")})]})}function r5({columnIndex:n,focusedColumnIndex:r,focusedRowIndex:i,rowIndex:u,style:s}){return y.jsxs("div",{className:at("flex items-center justify-center text-xs",{"bg-slate-800":n===r||u===i}),style:s,children:["row ",u,", col ",n]})}function i5(){return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(Ft,{title:"Support"}),y.jsxs("div",{children:[y.jsx(bt,{href:"https://github.com/bvaughn/react-window",children:"GitHub"})," ","is the easiest place to look for help, but it's probably not the fastest. This project is maintained by a single developer so there is limited bandwidth for answering questions."]}),y.jsxs("div",{children:["I recommend asking questions on"," ",y.jsx(bt,{href:"https://stackoverflow.com/questions/tagged/react-window",children:"Stack Overflow"})," ","or"," ",y.jsx(bt,{href:"https://reddit.com/r/reactjs",children:"Reddit"})," ","to start with. Both sites have active communities who often respond quickly. If you don't find an answer there you can try opening a GitHub issue- but please take a moment first to see if your question has"," ",y.jsx(bt,{href:"https://github.com/bvaughn/react-window/issues?q=is%3Aissue%20state%3Aclosed",children:"has already been answered"})," ","before opening a new one."]})]})}function u5({addresses:n}){const[r]=v.useState(T3);return y.jsxs("div",{className:"h-55 flex flex-col",children:[y.jsxs("div",{className:"flex flex-row bg-teal-600 p-1 px-2",children:[y.jsxs("div",{className:"grow flex flex-row items-center gap-2 font-bold",children:[y.jsx("div",{className:"flex-1",children:"City"}),y.jsx("div",{className:"flex-1",children:"State"}),y.jsx("div",{className:"w-10",children:"Zip"})]}),y.jsx("div",{className:"shrink",style:{width:r}})]}),y.jsx("div",{className:"overflow-hidden",children:y.jsx(fo,{rowComponent:o5,rowCount:n.length,rowHeight:25,rowProps:{addresses:n}})})]})}function o5({index:n,addresses:r,style:i}){const u=r[n];return y.jsxs("div",{className:"flex flex-row items-center gap-2 px-2",style:i,children:[y.jsx("div",{className:"flex-1",children:u.city}),y.jsx("div",{className:"flex-1",children:u.state}),y.jsx("div",{className:"w-10 text-xs",children:u.zip})]})}function s5(){const n=Kl("/data/addresses.json");return v.useMemo(()=>n?n.sort((r,i)=>r.city.localeCompare(i.city)):[],[n])}function c5(){const n=s5();return y.jsxs(Me,{direction:"column",gap:4,children:[y.jsx(Ft,{section:"Tables",title:"Rendering tabular data"}),y.jsx("div",{children:"Many types of tabular data can be rendered using the list component."}),y.jsx(kn,{className:"p-0!","data-focus-within":"bold",children:n.length?y.jsx(u5,{addresses:n}):y.jsx("div",{className:"p-2",children:y.jsx(gn,{})})}),y.jsx("div",{children:"The example above uses Flexbox layout to position columns and headers."}),y.jsx(rt,{url:"/generated/code-snippets/FlexboxLayout.json"}),y.jsxs(pn,{intent:"primary",children:["It may be more efficient to render data with many columns using the"," ",y.jsx(Ba,{to:"/grid/grid",children:"Grid"})," component."]})]})}const f5={"*":W3,"/":o3,"/list/fixed-row-height":V3,"/list/variable-row-height":P3,"/list/imperative-api":F3,"/list/props":J3,"/list/tabular-data":c5,"/grid/grid":H3,"/grid/horizontal-lists":C3,"/grid/rtl-grids":k3,"/grid/props":_3,"/grid/imperative-api":M3,"/platform-requirements":I3,"/support":i5,"/test":a5};function d5(){const{toggle:n,visible:r}=nb();return y.jsxs(Ow,{children:[y.jsx(i3,{}),y.jsxs("div",{className:"h-full w-full max-w-350 mx-auto flex flex-col",children:[y.jsxs(Me,{align:"center",className:"h-12 w-full p-4",direction:"row",justify:"between",gap:4,children:[y.jsxs(Me,{align:"center",direction:"row",gap:4,children:[y.jsx(Ba,{children:"react-window",className:"text-xl text-white! text-shadow-black/20 text-shadow-sm font-bold",to:"/"}),y.jsx("div",{className:"hidden md:block text-black text-shadow-white/50 text-shadow-xs",children:"render everything"})]}),y.jsxs(Me,{align:"center",direction:"row",gap:4,children:[y.jsx(bt,{className:"text-white! drop-shadow-black/20 drop-shadow-sm",href:"https://www.npmjs.com/package/react-window",children:y.jsx(Hw,{className:"w-8 h-8"})}),y.jsx(bt,{className:"text-white! drop-shadow-black/20 drop-shadow-sm",href:"https://github.com/bvaughn/react-window",children:y.jsx(Lw,{className:"w-6 h-6"})}),y.jsx("button",{className:at("block md:hidden cursor-pointer rounded-lg p-1",{"bg-black/40":!r,"bg-black/50 text-white":r}),onClick:n,children:r?y.jsx(cx,{className:"w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs"}):y.jsx(I1,{className:"w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs"})})]})]}),y.jsxs("div",{className:"grow shrink flex flex-row shadow-lg mx-2 rounded-t-3xl overflow-hidden",children:[y.jsx("section",{className:at("w-full bg-black/90 md:block md:w-80 md:bg-black/80 overflow-auto",{hidden:!r}),children:y.jsx(u3,{})}),y.jsx("main",{className:at("w-full bg-black/90 relative overflow-auto",{hidden:r}),children:y.jsx("div",{className:"h-full p-4 py-4 overflow-auto [mask-image:linear-gradient(to_bottom,transparent,black_1.5rem)]","data-main-scrollable":!0,children:y.jsx(co,{children:y.jsx(nw,{children:Object.entries(f5).map(([i,u])=>y.jsx(yg,{Component:u,path:i},i))})})})})]})]})]})}Q1.createRoot(document.getElementById("root")).render(y.jsx(v.StrictMode,{children:y.jsx(d5,{})}));