xiaozhi-client 1.7.4 → 1.7.5

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 (55) hide show
  1. package/README.md +6 -285
  2. package/dist/WebServerStandalone.js +14 -14
  3. package/dist/WebServerStandalone.js.map +1 -1
  4. package/dist/cli.js +14 -14
  5. package/dist/cli.js.map +1 -1
  6. package/dist/mcpServerProxy.js +6 -6
  7. package/dist/mcpServerProxy.js.map +1 -1
  8. package/dist/package.json +3 -2
  9. package/docs/docs.json +4 -0
  10. package/docs/getting-started/install.mdx +2 -2
  11. package/docs/getting-started/quickstart.mdx +3 -3
  12. package/docs/images/add-to-cherry-studio/step-1.png +0 -0
  13. package/docs/images/add-to-cherry-studio/step-2.png +0 -0
  14. package/docs/images/add-to-cherry-studio/step-3.png +0 -0
  15. package/docs/images/add-to-cherry-studio/step-4.png +0 -0
  16. package/docs/images/add-to-cherry-studio/step-5.png +0 -0
  17. package/docs/images/add-to-cursor/step-1.png +0 -0
  18. package/docs/images/add-to-cursor/step-2.png +0 -0
  19. package/docs/images/add-to-cursor/step-3.png +0 -0
  20. package/docs/images/coze-workflow/config-workflow-step-1.png +0 -0
  21. package/docs/images/coze-workflow/config-workflow-step-2.png +0 -0
  22. package/docs/images/coze-workflow/config-workflow-step-3.png +0 -0
  23. package/docs/images/coze-workflow/get-parameter.png +0 -0
  24. package/docs/images/modelscope/step-1.png +0 -0
  25. package/docs/images/modelscope/step-2.png +0 -0
  26. package/docs/images/modelscope/step-3.png +0 -0
  27. package/docs/images/modelscope/step-4.png +0 -0
  28. package/docs/images/use-multi-xiaozhi-mcp-endpoints/step-1.png +0 -0
  29. package/docs/images/use-multi-xiaozhi-mcp-endpoints/step-2.png +0 -0
  30. package/docs/images/use-multi-xiaozhi-mcp-endpoints/step-3.png +0 -0
  31. package/docs/images/use-multi-xiaozhi-mcp-endpoints/step-4.png +0 -0
  32. package/docs/images/use-multi-xiaozhi-mcp-endpoints/step-5.png +0 -0
  33. package/docs/usage/as-a-mcp-server.mdx +73 -3
  34. package/docs/usage/coze-workflow.mdx +73 -0
  35. package/docs/usage/docker.mdx +6 -6
  36. package/docs/usage/modelscope.mdx +69 -1
  37. package/docs/usage/use-multi-xiaozhi-mcp-endpoints.mdx +77 -0
  38. package/package.json +3 -2
  39. package/web/dist/assets/form-utils-D6Zwv25A.js +24 -0
  40. package/web/dist/assets/form-utils-D6Zwv25A.js.map +1 -0
  41. package/web/dist/assets/index-C9KBrMbo.css +1 -0
  42. package/web/dist/assets/index-D0fujP5T.js +31 -0
  43. package/web/dist/assets/index-D0fujP5T.js.map +1 -0
  44. package/web/dist/assets/react-vendor-SSuibrMc.js +239 -0
  45. package/web/dist/assets/react-vendor-SSuibrMc.js.map +1 -0
  46. package/web/dist/assets/{utils-N_0RTAPv.js → utils-CF9sajHy.js} +2 -2
  47. package/web/dist/assets/{utils-N_0RTAPv.js.map → utils-CF9sajHy.js.map} +1 -1
  48. package/web/dist/index.html +5 -5
  49. package/web/dist/assets/form-utils-RpkiEEz8.js +0 -22
  50. package/web/dist/assets/form-utils-RpkiEEz8.js.map +0 -1
  51. package/web/dist/assets/index-D70jFb6Z.js +0 -31
  52. package/web/dist/assets/index-D70jFb6Z.js.map +0 -1
  53. package/web/dist/assets/index-DRxfSpqh.css +0 -1
  54. package/web/dist/assets/react-vendor-CoesXubw.js +0 -234
  55. package/web/dist/assets/react-vendor-CoesXubw.js.map +0 -1
@@ -1,234 +0,0 @@
1
- import{c as ne,a as Ic}from"./radix-ui-BA32w1ww.js";import{s as Eg,_ as kn,a as If,g as Cg,b as kg,h as Of,c as _g,o as Rg,d as Pg,f as Ng,e as Tg,i as Ag,l as Dg,j as Oc,k as Ig}from"./vendor-DCIxzvIG.js";import{p as Og,a as Mg,$ as Lg}from"./form-utils-RpkiEEz8.js";function bg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Mf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lf={exports:{}},Il={},bf={exports:{}},q={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its 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 ni=Symbol.for("react.element"),Fg=Symbol.for("react.portal"),jg=Symbol.for("react.fragment"),Vg=Symbol.for("react.strict_mode"),$g=Symbol.for("react.profiler"),zg=Symbol.for("react.provider"),Bg=Symbol.for("react.context"),Ug=Symbol.for("react.forward_ref"),Hg=Symbol.for("react.suspense"),Wg=Symbol.for("react.memo"),Kg=Symbol.for("react.lazy"),Mc=Symbol.iterator;function Yg(e){return e===null||typeof e!="object"?null:(e=Mc&&e[Mc]||e["@@iterator"],typeof e=="function"?e:null)}var Ff={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jf=Object.assign,Vf={};function Gr(e,t,n){this.props=e,this.context=t,this.refs=Vf,this.updater=n||Ff}Gr.prototype.isReactComponent={};Gr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Gr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $f(){}$f.prototype=Gr.prototype;function du(e,t,n){this.props=e,this.context=t,this.refs=Vf,this.updater=n||Ff}var fu=du.prototype=new $f;fu.constructor=du;jf(fu,Gr.prototype);fu.isPureReactComponent=!0;var Lc=Array.isArray,zf=Object.prototype.hasOwnProperty,pu={current:null},Bf={key:!0,ref:!0,__self:!0,__source:!0};function Uf(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)zf.call(t,r)&&!Bf.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:ni,type:e,key:i,ref:l,props:o,_owner:pu.current}}function Qg(e,t){return{$$typeof:ni,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ni}function Xg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var bc=/\/+/g;function fs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xg(""+e.key):t.toString(36)}function bi(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ni:case Fg:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+fs(l,0):r,Lc(o)?(n="",e!=null&&(n=e.replace(bc,"$&/")+"/"),bi(o,t,n,"",function(u){return u})):o!=null&&(hu(o)&&(o=Qg(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(bc,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Lc(e))for(var s=0;s<e.length;s++){i=e[s];var a=r+fs(i,s);l+=bi(i,t,n,a,o)}else if(a=Yg(e),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=r+fs(i,s++),l+=bi(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function pi(e,t,n){if(e==null)return e;var r=[],o=0;return bi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Gg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var nt={current:null},Fi={transition:null},Zg={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:Fi,ReactCurrentOwner:pu};function Hf(){throw Error("act(...) is not supported in production builds of React.")}q.Children={map:pi,forEach:function(e,t,n){pi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return pi(e,function(){t++}),t},toArray:function(e){return pi(e,function(t){return t})||[]},only:function(e){if(!hu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Component=Gr;q.Fragment=jg;q.Profiler=$g;q.PureComponent=du;q.StrictMode=Vg;q.Suspense=Hg;q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zg;q.act=Hf;q.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=jf({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=pu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)zf.call(t,a)&&!Bf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:ni,type:e.type,key:o,ref:i,props:r,_owner:l}};q.createContext=function(e){return e={$$typeof:Bg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zg,_context:e},e.Consumer=e};q.createElement=Uf;q.createFactory=function(e){var t=Uf.bind(null,e);return t.type=e,t};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:Ug,render:e}};q.isValidElement=hu;q.lazy=function(e){return{$$typeof:Kg,_payload:{_status:-1,_result:e},_init:Gg}};q.memo=function(e,t){return{$$typeof:Wg,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=Fi.transition;Fi.transition={};try{e()}finally{Fi.transition=t}};q.unstable_act=Hf;q.useCallback=function(e,t){return nt.current.useCallback(e,t)};q.useContext=function(e){return nt.current.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e){return nt.current.useDeferredValue(e)};q.useEffect=function(e,t){return nt.current.useEffect(e,t)};q.useId=function(){return nt.current.useId()};q.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)};q.useMemo=function(e,t){return nt.current.useMemo(e,t)};q.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)};q.useRef=function(e){return nt.current.useRef(e)};q.useState=function(e){return nt.current.useState(e)};q.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)};q.useTransition=function(){return nt.current.useTransition()};q.version="18.3.1";bf.exports=q;var f=bf.exports;const P=Mf(f),Wf=bg({__proto__:null,default:P},[f]);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its 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 Jg=f,qg=Symbol.for("react.element"),ey=Symbol.for("react.fragment"),ty=Object.prototype.hasOwnProperty,ny=Jg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ry={key:!0,ref:!0,__self:!0,__source:!0};function Kf(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)ty.call(t,r)&&!ry.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:qg,type:e,key:i,ref:l,props:o,_owner:ny.current}}Il.Fragment=ey;Il.jsx=Kf;Il.jsxs=Kf;Lf.exports=Il;var N=Lf.exports,Fc={},Yf={exports:{}},yt={};/**
18
- * @license React
19
- * react-dom.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its 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 oy=f,gt=Eg;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var Qf=new Set,Lo={};function dr(e,t){zr(e,t),zr(e+"Capture",t)}function zr(e,t){for(Lo[e]=t,e=0;e<t.length;e++)Qf.add(t[e])}var cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ra=Object.prototype.hasOwnProperty,iy=/^[: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]*$/,jc={},Vc={};function ly(e){return ra.call(Vc,e)?!0:ra.call(jc,e)?!1:iy.test(e)?Vc[e]=!0:(jc[e]=!0,!1)}function sy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ay(e,t,n,r){if(t===null||typeof t>"u"||sy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rt(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new rt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var mu=/[\-:]([a-z])/g;function vu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(mu,vu);He[t]=new rt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mu,vu);He[t]=new rt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mu,vu);He[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function gu(e,t,n,r){var o=He.hasOwnProperty(t)?He[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ay(t,n,o,r)&&(n=null),r||o===null?ly(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var mn=oy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hi=Symbol.for("react.element"),wr=Symbol.for("react.portal"),xr=Symbol.for("react.fragment"),yu=Symbol.for("react.strict_mode"),oa=Symbol.for("react.profiler"),Xf=Symbol.for("react.provider"),Gf=Symbol.for("react.context"),wu=Symbol.for("react.forward_ref"),ia=Symbol.for("react.suspense"),la=Symbol.for("react.suspense_list"),xu=Symbol.for("react.memo"),En=Symbol.for("react.lazy"),Zf=Symbol.for("react.offscreen"),$c=Symbol.iterator;function uo(e){return e===null||typeof e!="object"?null:(e=$c&&e[$c]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Object.assign,ps;function So(e){if(ps===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ps=t&&t[1]||""}return`
26
- `+ps+e}var hs=!1;function ms(e,t){if(!e||hs)return"";hs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
27
- `),i=r.stack.split(`
28
- `),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s]){var a=`
29
- `+o[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{hs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?So(e):""}function uy(e){switch(e.tag){case 5:return So(e.type);case 16:return So("Lazy");case 13:return So("Suspense");case 19:return So("SuspenseList");case 0:case 2:case 15:return e=ms(e.type,!1),e;case 11:return e=ms(e.type.render,!1),e;case 1:return e=ms(e.type,!0),e;default:return""}}function sa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xr:return"Fragment";case wr:return"Portal";case oa:return"Profiler";case yu:return"StrictMode";case ia:return"Suspense";case la:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gf:return(e.displayName||"Context")+".Consumer";case Xf:return(e._context.displayName||"Context")+".Provider";case wu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xu:return t=e.displayName||null,t!==null?t:sa(e.type)||"Memo";case En:t=e._payload,e=e._init;try{return sa(e(t))}catch{}}return null}function cy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sa(t);case 8:return t===yu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dy(e){var t=Jf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mi(e){e._valueTracker||(e._valueTracker=dy(e))}function qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function el(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function aa(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ep(e,t){t=t.checked,t!=null&&gu(e,"checked",t,!1)}function ua(e,t){ep(e,t);var n=jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ca(e,t.type,n):t.hasOwnProperty("defaultValue")&&ca(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ca(e,t,n){(t!=="number"||el(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Eo=Array.isArray;function Ir(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+jn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function da(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Uc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(Eo(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jn(n)}}function tp(e,t){var n=jn(t.value),r=jn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Hc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function np(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?np(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var vi,rp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(vi=vi||document.createElement("div"),vi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=vi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ro={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fy=["Webkit","ms","Moz","O"];Object.keys(Ro).forEach(function(e){fy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ro[t]=Ro[e]})});function op(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ro.hasOwnProperty(e)&&Ro[e]?(""+t).trim():t+"px"}function ip(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=op(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var py=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pa(e,t){if(t){if(py[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function ha(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ma=null;function Su(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var va=null,Or=null,Mr=null;function Wc(e){if(e=ii(e)){if(typeof va!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Fl(t),va(e.stateNode,e.type,t))}}function lp(e){Or?Mr?Mr.push(e):Mr=[e]:Or=e}function sp(){if(Or){var e=Or,t=Mr;if(Mr=Or=null,Wc(e),t)for(e=0;e<t.length;e++)Wc(t[e])}}function ap(e,t){return e(t)}function up(){}var vs=!1;function cp(e,t,n){if(vs)return e(t,n);vs=!0;try{return ap(e,t,n)}finally{vs=!1,(Or!==null||Mr!==null)&&(up(),sp())}}function Fo(e,t){var n=e.stateNode;if(n===null)return null;var r=Fl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var ga=!1;if(cn)try{var co={};Object.defineProperty(co,"passive",{get:function(){ga=!0}}),window.addEventListener("test",co,co),window.removeEventListener("test",co,co)}catch{ga=!1}function hy(e,t,n,r,o,i,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Po=!1,tl=null,nl=!1,ya=null,my={onError:function(e){Po=!0,tl=e}};function vy(e,t,n,r,o,i,l,s,a){Po=!1,tl=null,hy.apply(my,arguments)}function gy(e,t,n,r,o,i,l,s,a){if(vy.apply(this,arguments),Po){if(Po){var u=tl;Po=!1,tl=null}else throw Error(D(198));nl||(nl=!0,ya=u)}}function fr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dp(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 Kc(e){if(fr(e)!==e)throw Error(D(188))}function yy(e){var t=e.alternate;if(!t){if(t=fr(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Kc(o),e;if(i===r)return Kc(o),t;i=i.sibling}throw Error(D(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function fp(e){return e=yy(e),e!==null?pp(e):null}function pp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pp(e);if(t!==null)return t;e=e.sibling}return null}var hp=gt.unstable_scheduleCallback,Yc=gt.unstable_cancelCallback,wy=gt.unstable_shouldYield,xy=gt.unstable_requestPaint,Te=gt.unstable_now,Sy=gt.unstable_getCurrentPriorityLevel,Eu=gt.unstable_ImmediatePriority,mp=gt.unstable_UserBlockingPriority,rl=gt.unstable_NormalPriority,Ey=gt.unstable_LowPriority,vp=gt.unstable_IdlePriority,Ol=null,Jt=null;function Cy(e){if(Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(Ol,e,void 0,(e.current.flags&128)===128)}catch{}}var Vt=Math.clz32?Math.clz32:Ry,ky=Math.log,_y=Math.LN2;function Ry(e){return e>>>=0,e===0?32:31-(ky(e)/_y|0)|0}var gi=64,yi=4194304;function Co(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Co(s):(i&=l,i!==0&&(r=Co(i)))}else l=n&~o,l!==0?r=Co(l):i!==0&&(r=Co(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Vt(t),o=1<<n,r|=e[n],t&=~o;return r}function Py(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ny(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Vt(i),s=1<<l,a=o[l];a===-1?(!(s&n)||s&r)&&(o[l]=Py(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function wa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gp(){var e=gi;return gi<<=1,!(gi&4194240)&&(gi=64),e}function gs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ri(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function Ty(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Vt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Cu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Vt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var fe=0;function yp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var wp,ku,xp,Sp,Ep,xa=!1,wi=[],Tn=null,An=null,Dn=null,jo=new Map,Vo=new Map,_n=[],Ay="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 submit".split(" ");function Qc(e,t){switch(e){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":jo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vo.delete(t.pointerId)}}function fo(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=ii(t),t!==null&&ku(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Dy(e,t,n,r,o){switch(t){case"focusin":return Tn=fo(Tn,e,t,n,r,o),!0;case"dragenter":return An=fo(An,e,t,n,r,o),!0;case"mouseover":return Dn=fo(Dn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jo.set(i,fo(jo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Vo.set(i,fo(Vo.get(i)||null,e,t,n,r,o)),!0}return!1}function Cp(e){var t=Xn(e.target);if(t!==null){var n=fr(t);if(n!==null){if(t=n.tag,t===13){if(t=dp(n),t!==null){e.blockedOn=t,Ep(e.priority,function(){xp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ji(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ma=r,n.target.dispatchEvent(r),ma=null}else return t=ii(n),t!==null&&ku(t),e.blockedOn=n,!1;t.shift()}return!0}function Xc(e,t,n){ji(e)&&n.delete(t)}function Iy(){xa=!1,Tn!==null&&ji(Tn)&&(Tn=null),An!==null&&ji(An)&&(An=null),Dn!==null&&ji(Dn)&&(Dn=null),jo.forEach(Xc),Vo.forEach(Xc)}function po(e,t){e.blockedOn===t&&(e.blockedOn=null,xa||(xa=!0,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,Iy)))}function $o(e){function t(o){return po(o,e)}if(0<wi.length){po(wi[0],e);for(var n=1;n<wi.length;n++){var r=wi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Tn!==null&&po(Tn,e),An!==null&&po(An,e),Dn!==null&&po(Dn,e),jo.forEach(t),Vo.forEach(t),n=0;n<_n.length;n++)r=_n[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<_n.length&&(n=_n[0],n.blockedOn===null);)Cp(n),n.blockedOn===null&&_n.shift()}var Lr=mn.ReactCurrentBatchConfig,il=!0;function Oy(e,t,n,r){var o=fe,i=Lr.transition;Lr.transition=null;try{fe=1,_u(e,t,n,r)}finally{fe=o,Lr.transition=i}}function My(e,t,n,r){var o=fe,i=Lr.transition;Lr.transition=null;try{fe=4,_u(e,t,n,r)}finally{fe=o,Lr.transition=i}}function _u(e,t,n,r){if(il){var o=Sa(e,t,n,r);if(o===null)Ps(e,t,r,ll,n),Qc(e,r);else if(Dy(o,e,t,n,r))r.stopPropagation();else if(Qc(e,r),t&4&&-1<Ay.indexOf(e)){for(;o!==null;){var i=ii(o);if(i!==null&&wp(i),i=Sa(e,t,n,r),i===null&&Ps(e,t,r,ll,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Ps(e,t,r,null,n)}}var ll=null;function Sa(e,t,n,r){if(ll=null,e=Su(r),e=Xn(e),e!==null)if(t=fr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ll=e,null}function kp(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Sy()){case Eu:return 1;case mp:return 4;case rl:case Ey:return 16;case vp:return 536870912;default:return 16}default:return 16}}var Pn=null,Ru=null,Vi=null;function _p(){if(Vi)return Vi;var e,t=Ru,n=t.length,r,o="value"in Pn?Pn.value:Pn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return Vi=o.slice(e,1<r?1-r:void 0)}function $i(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 xi(){return!0}function Gc(){return!1}function wt(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?xi:Gc,this.isPropagationStopped=Gc,this}return ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xi)},persist:function(){},isPersistent:xi}),t}var Zr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=wt(Zr),oi=ke({},Zr,{view:0,detail:0}),Ly=wt(oi),ys,ws,ho,Ml=ke({},oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nu,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!==ho&&(ho&&e.type==="mousemove"?(ys=e.screenX-ho.screenX,ws=e.screenY-ho.screenY):ws=ys=0,ho=e),ys)},movementY:function(e){return"movementY"in e?e.movementY:ws}}),Zc=wt(Ml),by=ke({},Ml,{dataTransfer:0}),Fy=wt(by),jy=ke({},oi,{relatedTarget:0}),xs=wt(jy),Vy=ke({},Zr,{animationName:0,elapsedTime:0,pseudoElement:0}),$y=wt(Vy),zy=ke({},Zr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),By=wt(zy),Uy=ke({},Zr,{data:0}),Jc=wt(Uy),Hy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wy={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"},Ky={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ky[e])?!!t[e]:!1}function Nu(){return Yy}var Qy=ke({},oi,{key:function(e){if(e.key){var t=Hy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nu,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xy=wt(Qy),Gy=ke({},Ml,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qc=wt(Gy),Zy=ke({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nu}),Jy=wt(Zy),qy=ke({},Zr,{propertyName:0,elapsedTime:0,pseudoElement:0}),e0=wt(qy),t0=ke({},Ml,{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}),n0=wt(t0),r0=[9,13,27,32],Tu=cn&&"CompositionEvent"in window,No=null;cn&&"documentMode"in document&&(No=document.documentMode);var o0=cn&&"TextEvent"in window&&!No,Rp=cn&&(!Tu||No&&8<No&&11>=No),ed=" ",td=!1;function Pp(e,t){switch(e){case"keyup":return r0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Np(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function i0(e,t){switch(e){case"compositionend":return Np(t);case"keypress":return t.which!==32?null:(td=!0,ed);case"textInput":return e=t.data,e===ed&&td?null:e;default:return null}}function l0(e,t){if(Sr)return e==="compositionend"||!Tu&&Pp(e,t)?(e=_p(),Vi=Ru=Pn=null,Sr=!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 Rp&&t.locale!=="ko"?null:t.data;default:return null}}var s0={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 nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!s0[e.type]:t==="textarea"}function Tp(e,t,n,r){lp(r),t=sl(t,"onChange"),0<t.length&&(n=new Pu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var To=null,zo=null;function a0(e){$p(e,0)}function Ll(e){var t=kr(e);if(qf(t))return e}function u0(e,t){if(e==="change")return t}var Ap=!1;if(cn){var Ss;if(cn){var Es="oninput"in document;if(!Es){var rd=document.createElement("div");rd.setAttribute("oninput","return;"),Es=typeof rd.oninput=="function"}Ss=Es}else Ss=!1;Ap=Ss&&(!document.documentMode||9<document.documentMode)}function od(){To&&(To.detachEvent("onpropertychange",Dp),zo=To=null)}function Dp(e){if(e.propertyName==="value"&&Ll(zo)){var t=[];Tp(t,zo,e,Su(e)),cp(a0,t)}}function c0(e,t,n){e==="focusin"?(od(),To=t,zo=n,To.attachEvent("onpropertychange",Dp)):e==="focusout"&&od()}function d0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ll(zo)}function f0(e,t){if(e==="click")return Ll(t)}function p0(e,t){if(e==="input"||e==="change")return Ll(t)}function h0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:h0;function Bo(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ra.call(t,o)||!zt(e[o],t[o]))return!1}return!0}function id(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ld(e,t){var n=id(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=id(n)}}function Ip(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ip(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Op(){for(var e=window,t=el();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=el(e.document)}return t}function Au(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function m0(e){var t=Op(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ip(n.ownerDocument.documentElement,n)){if(r!==null&&Au(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ld(n,i);var l=ld(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var v0=cn&&"documentMode"in document&&11>=document.documentMode,Er=null,Ea=null,Ao=null,Ca=!1;function sd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ca||Er==null||Er!==el(r)||(r=Er,"selectionStart"in r&&Au(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ao&&Bo(Ao,r)||(Ao=r,r=sl(Ea,"onSelect"),0<r.length&&(t=new Pu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function Si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:Si("Animation","AnimationEnd"),animationiteration:Si("Animation","AnimationIteration"),animationstart:Si("Animation","AnimationStart"),transitionend:Si("Transition","TransitionEnd")},Cs={},Mp={};cn&&(Mp=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);function bl(e){if(Cs[e])return Cs[e];if(!Cr[e])return e;var t=Cr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mp)return Cs[e]=t[n];return e}var Lp=bl("animationend"),bp=bl("animationiteration"),Fp=bl("animationstart"),jp=bl("transitionend"),Vp=new Map,ad="abort auxClick 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(" ");function $n(e,t){Vp.set(e,t),dr(t,[e])}for(var ks=0;ks<ad.length;ks++){var _s=ad[ks],g0=_s.toLowerCase(),y0=_s[0].toUpperCase()+_s.slice(1);$n(g0,"on"+y0)}$n(Lp,"onAnimationEnd");$n(bp,"onAnimationIteration");$n(Fp,"onAnimationStart");$n("dblclick","onDoubleClick");$n("focusin","onFocus");$n("focusout","onBlur");$n(jp,"onTransitionEnd");zr("onMouseEnter",["mouseout","mouseover"]);zr("onMouseLeave",["mouseout","mouseover"]);zr("onPointerEnter",["pointerout","pointerover"]);zr("onPointerLeave",["pointerout","pointerover"]);dr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));dr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));dr("onBeforeInput",["compositionend","keypress","textInput","paste"]);dr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));dr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));dr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ko="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(" "),w0=new Set("cancel close invalid load scroll toggle".split(" ").concat(ko));function ud(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,gy(r,t,void 0,e),e.currentTarget=null}function $p(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==i&&o.isPropagationStopped())break e;ud(o,s,u),i=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==i&&o.isPropagationStopped())break e;ud(o,s,u),i=a}}}if(nl)throw e=ya,nl=!1,ya=null,e}function ve(e,t){var n=t[Na];n===void 0&&(n=t[Na]=new Set);var r=e+"__bubble";n.has(r)||(zp(t,e,2,!1),n.add(r))}function Rs(e,t,n){var r=0;t&&(r|=4),zp(n,e,r,t)}var Ei="_reactListening"+Math.random().toString(36).slice(2);function Uo(e){if(!e[Ei]){e[Ei]=!0,Qf.forEach(function(n){n!=="selectionchange"&&(w0.has(n)||Rs(n,!1,e),Rs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ei]||(t[Ei]=!0,Rs("selectionchange",!1,t))}}function zp(e,t,n,r){switch(kp(t)){case 1:var o=Oy;break;case 4:o=My;break;default:o=_u}n=o.bind(null,t,n,e),o=void 0,!ga||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ps(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;l=l.return}for(;s!==null;){if(l=Xn(s),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}s=s.parentNode}}r=r.return}cp(function(){var u=i,d=Su(n),c=[];e:{var m=Vp.get(e);if(m!==void 0){var y=Pu,w=e;switch(e){case"keypress":if($i(n)===0)break e;case"keydown":case"keyup":y=Xy;break;case"focusin":w="focus",y=xs;break;case"focusout":w="blur",y=xs;break;case"beforeblur":case"afterblur":y=xs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Zc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Fy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Jy;break;case Lp:case bp:case Fp:y=$y;break;case jp:y=e0;break;case"scroll":y=Ly;break;case"wheel":y=n0;break;case"copy":case"cut":case"paste":y=By;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=qc}var g=(t&4)!==0,x=!g&&e==="scroll",h=g?m!==null?m+"Capture":null:m;g=[];for(var p=u,v;p!==null;){v=p;var C=v.stateNode;if(v.tag===5&&C!==null&&(v=C,h!==null&&(C=Fo(p,h),C!=null&&g.push(Ho(p,C,v)))),x)break;p=p.return}0<g.length&&(m=new y(m,w,null,n,d),c.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",m&&n!==ma&&(w=n.relatedTarget||n.fromElement)&&(Xn(w)||w[dn]))break e;if((y||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=u,w=w?Xn(w):null,w!==null&&(x=fr(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=u),y!==w)){if(g=Zc,C="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=qc,C="onPointerLeave",h="onPointerEnter",p="pointer"),x=y==null?m:kr(y),v=w==null?m:kr(w),m=new g(C,p+"leave",y,n,d),m.target=x,m.relatedTarget=v,C=null,Xn(d)===u&&(g=new g(h,p+"enter",w,n,d),g.target=v,g.relatedTarget=x,C=g),x=C,y&&w)t:{for(g=y,h=w,p=0,v=g;v;v=mr(v))p++;for(v=0,C=h;C;C=mr(C))v++;for(;0<p-v;)g=mr(g),p--;for(;0<v-p;)h=mr(h),v--;for(;p--;){if(g===h||h!==null&&g===h.alternate)break t;g=mr(g),h=mr(h)}g=null}else g=null;y!==null&&cd(c,m,y,g,!1),w!==null&&x!==null&&cd(c,x,w,g,!0)}}e:{if(m=u?kr(u):window,y=m.nodeName&&m.nodeName.toLowerCase(),y==="select"||y==="input"&&m.type==="file")var E=u0;else if(nd(m))if(Ap)E=p0;else{E=d0;var _=c0}else(y=m.nodeName)&&y.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=f0);if(E&&(E=E(e,u))){Tp(c,E,n,d);break e}_&&_(e,m,u),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&ca(m,"number",m.value)}switch(_=u?kr(u):window,e){case"focusin":(nd(_)||_.contentEditable==="true")&&(Er=_,Ea=u,Ao=null);break;case"focusout":Ao=Ea=Er=null;break;case"mousedown":Ca=!0;break;case"contextmenu":case"mouseup":case"dragend":Ca=!1,sd(c,n,d);break;case"selectionchange":if(v0)break;case"keydown":case"keyup":sd(c,n,d)}var k;if(Tu)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Sr?Pp(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(Rp&&n.locale!=="ko"&&(Sr||A!=="onCompositionStart"?A==="onCompositionEnd"&&Sr&&(k=_p()):(Pn=d,Ru="value"in Pn?Pn.value:Pn.textContent,Sr=!0)),_=sl(u,A),0<_.length&&(A=new Jc(A,e,null,n,d),c.push({event:A,listeners:_}),k?A.data=k:(k=Np(n),k!==null&&(A.data=k)))),(k=o0?i0(e,n):l0(e,n))&&(u=sl(u,"onBeforeInput"),0<u.length&&(d=new Jc("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=k))}$p(c,t)})}function Ho(e,t,n){return{instance:e,listener:t,currentTarget:n}}function sl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Fo(e,n),i!=null&&r.unshift(Ho(e,i,o)),i=Fo(e,t),i!=null&&r.push(Ho(e,i,o))),e=e.return}return r}function mr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cd(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=Fo(n,i),a!=null&&l.unshift(Ho(n,a,s))):o||(a=Fo(n,i),a!=null&&l.push(Ho(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var x0=/\r\n?/g,S0=/\u0000|\uFFFD/g;function dd(e){return(typeof e=="string"?e:""+e).replace(x0,`
30
- `).replace(S0,"")}function Ci(e,t,n){if(t=dd(t),dd(e)!==t&&n)throw Error(D(425))}function al(){}var ka=null,_a=null;function Ra(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pa=typeof setTimeout=="function"?setTimeout:void 0,E0=typeof clearTimeout=="function"?clearTimeout:void 0,fd=typeof Promise=="function"?Promise:void 0,C0=typeof queueMicrotask=="function"?queueMicrotask:typeof fd<"u"?function(e){return fd.resolve(null).then(e).catch(k0)}:Pa;function k0(e){setTimeout(function(){throw e})}function Ns(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),$o(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);$o(t)}function In(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==="$?")break;if(t==="/$")return null}}return e}function pd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Jr=Math.random().toString(36).slice(2),Gt="__reactFiber$"+Jr,Wo="__reactProps$"+Jr,dn="__reactContainer$"+Jr,Na="__reactEvents$"+Jr,_0="__reactListeners$"+Jr,R0="__reactHandles$"+Jr;function Xn(e){var t=e[Gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dn]||n[Gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pd(e);e!==null;){if(n=e[Gt])return n;e=pd(e)}return t}e=n,n=e.parentNode}return null}function ii(e){return e=e[Gt]||e[dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function kr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Fl(e){return e[Wo]||null}var Ta=[],_r=-1;function zn(e){return{current:e}}function we(e){0>_r||(e.current=Ta[_r],Ta[_r]=null,_r--)}function me(e,t){_r++,Ta[_r]=e.current,e.current=t}var Vn={},Ge=zn(Vn),at=zn(!1),nr=Vn;function Br(e,t){var n=e.type.contextTypes;if(!n)return Vn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ut(e){return e=e.childContextTypes,e!=null}function ul(){we(at),we(Ge)}function hd(e,t,n){if(Ge.current!==Vn)throw Error(D(168));me(Ge,t),me(at,n)}function Bp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,cy(e)||"Unknown",o));return ke({},n,r)}function cl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vn,nr=Ge.current,me(Ge,e),me(at,at.current),!0}function md(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Bp(e,t,nr),r.__reactInternalMemoizedMergedChildContext=e,we(at),we(Ge),me(Ge,e)):we(at),me(at,n)}var rn=null,jl=!1,Ts=!1;function Up(e){rn===null?rn=[e]:rn.push(e)}function P0(e){jl=!0,Up(e)}function Bn(){if(!Ts&&rn!==null){Ts=!0;var e=0,t=fe;try{var n=rn;for(fe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rn=null,jl=!1}catch(o){throw rn!==null&&(rn=rn.slice(e+1)),hp(Eu,Bn),o}finally{fe=t,Ts=!1}}return null}var Rr=[],Pr=0,dl=null,fl=0,Et=[],Ct=0,rr=null,ln=1,sn="";function Yn(e,t){Rr[Pr++]=fl,Rr[Pr++]=dl,dl=e,fl=t}function Hp(e,t,n){Et[Ct++]=ln,Et[Ct++]=sn,Et[Ct++]=rr,rr=e;var r=ln;e=sn;var o=32-Vt(r)-1;r&=~(1<<o),n+=1;var i=32-Vt(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,ln=1<<32-Vt(t)+o|n<<o|r,sn=i+e}else ln=1<<i|n<<o|r,sn=e}function Du(e){e.return!==null&&(Yn(e,1),Hp(e,1,0))}function Iu(e){for(;e===dl;)dl=Rr[--Pr],Rr[Pr]=null,fl=Rr[--Pr],Rr[Pr]=null;for(;e===rr;)rr=Et[--Ct],Et[Ct]=null,sn=Et[--Ct],Et[Ct]=null,ln=Et[--Ct],Et[Ct]=null}var vt=null,mt=null,xe=!1,Ft=null;function Wp(e,t){var n=_t(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function vd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,vt=e,mt=In(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vt=e,mt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=rr!==null?{id:ln,overflow:sn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_t(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vt=e,mt=null,!0):!1;default:return!1}}function Aa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Da(e){if(xe){var t=mt;if(t){var n=t;if(!vd(e,t)){if(Aa(e))throw Error(D(418));t=In(n.nextSibling);var r=vt;t&&vd(e,t)?Wp(r,n):(e.flags=e.flags&-4097|2,xe=!1,vt=e)}}else{if(Aa(e))throw Error(D(418));e.flags=e.flags&-4097|2,xe=!1,vt=e}}}function gd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vt=e}function ki(e){if(e!==vt)return!1;if(!xe)return gd(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ra(e.type,e.memoizedProps)),t&&(t=mt)){if(Aa(e))throw Kp(),Error(D(418));for(;t;)Wp(e,t),t=In(t.nextSibling)}if(gd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){mt=In(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}mt=null}}else mt=vt?In(e.stateNode.nextSibling):null;return!0}function Kp(){for(var e=mt;e;)e=In(e.nextSibling)}function Ur(){mt=vt=null,xe=!1}function Ou(e){Ft===null?Ft=[e]:Ft.push(e)}var N0=mn.ReactCurrentBatchConfig;function mo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function _i(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yd(e){var t=e._init;return t(e._payload)}function Yp(e){function t(h,p){if(e){var v=h.deletions;v===null?(h.deletions=[p],h.flags|=16):v.push(p)}}function n(h,p){if(!e)return null;for(;p!==null;)t(h,p),p=p.sibling;return null}function r(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function o(h,p){return h=bn(h,p),h.index=0,h.sibling=null,h}function i(h,p,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<p?(h.flags|=2,p):v):(h.flags|=2,p)):(h.flags|=1048576,p)}function l(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,p,v,C){return p===null||p.tag!==6?(p=bs(v,h.mode,C),p.return=h,p):(p=o(p,v),p.return=h,p)}function a(h,p,v,C){var E=v.type;return E===xr?d(h,p,v.props.children,C,v.key):p!==null&&(p.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===En&&yd(E)===p.type)?(C=o(p,v.props),C.ref=mo(h,p,v),C.return=h,C):(C=Yi(v.type,v.key,v.props,null,h.mode,C),C.ref=mo(h,p,v),C.return=h,C)}function u(h,p,v,C){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=Fs(v,h.mode,C),p.return=h,p):(p=o(p,v.children||[]),p.return=h,p)}function d(h,p,v,C,E){return p===null||p.tag!==7?(p=er(v,h.mode,C,E),p.return=h,p):(p=o(p,v),p.return=h,p)}function c(h,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=bs(""+p,h.mode,v),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case hi:return v=Yi(p.type,p.key,p.props,null,h.mode,v),v.ref=mo(h,null,p),v.return=h,v;case wr:return p=Fs(p,h.mode,v),p.return=h,p;case En:var C=p._init;return c(h,C(p._payload),v)}if(Eo(p)||uo(p))return p=er(p,h.mode,v,null),p.return=h,p;_i(h,p)}return null}function m(h,p,v,C){var E=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:s(h,p,""+v,C);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case hi:return v.key===E?a(h,p,v,C):null;case wr:return v.key===E?u(h,p,v,C):null;case En:return E=v._init,m(h,p,E(v._payload),C)}if(Eo(v)||uo(v))return E!==null?null:d(h,p,v,C,null);_i(h,v)}return null}function y(h,p,v,C,E){if(typeof C=="string"&&C!==""||typeof C=="number")return h=h.get(v)||null,s(p,h,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case hi:return h=h.get(C.key===null?v:C.key)||null,a(p,h,C,E);case wr:return h=h.get(C.key===null?v:C.key)||null,u(p,h,C,E);case En:var _=C._init;return y(h,p,v,_(C._payload),E)}if(Eo(C)||uo(C))return h=h.get(v)||null,d(p,h,C,E,null);_i(p,C)}return null}function w(h,p,v,C){for(var E=null,_=null,k=p,A=p=0,F=null;k!==null&&A<v.length;A++){k.index>A?(F=k,k=null):F=k.sibling;var b=m(h,k,v[A],C);if(b===null){k===null&&(k=F);break}e&&k&&b.alternate===null&&t(h,k),p=i(b,p,A),_===null?E=b:_.sibling=b,_=b,k=F}if(A===v.length)return n(h,k),xe&&Yn(h,A),E;if(k===null){for(;A<v.length;A++)k=c(h,v[A],C),k!==null&&(p=i(k,p,A),_===null?E=k:_.sibling=k,_=k);return xe&&Yn(h,A),E}for(k=r(h,k);A<v.length;A++)F=y(k,h,A,v[A],C),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?A:F.key),p=i(F,p,A),_===null?E=F:_.sibling=F,_=F);return e&&k.forEach(function(Y){return t(h,Y)}),xe&&Yn(h,A),E}function g(h,p,v,C){var E=uo(v);if(typeof E!="function")throw Error(D(150));if(v=E.call(v),v==null)throw Error(D(151));for(var _=E=null,k=p,A=p=0,F=null,b=v.next();k!==null&&!b.done;A++,b=v.next()){k.index>A?(F=k,k=null):F=k.sibling;var Y=m(h,k,b.value,C);if(Y===null){k===null&&(k=F);break}e&&k&&Y.alternate===null&&t(h,k),p=i(Y,p,A),_===null?E=Y:_.sibling=Y,_=Y,k=F}if(b.done)return n(h,k),xe&&Yn(h,A),E;if(k===null){for(;!b.done;A++,b=v.next())b=c(h,b.value,C),b!==null&&(p=i(b,p,A),_===null?E=b:_.sibling=b,_=b);return xe&&Yn(h,A),E}for(k=r(h,k);!b.done;A++,b=v.next())b=y(k,h,A,b.value,C),b!==null&&(e&&b.alternate!==null&&k.delete(b.key===null?A:b.key),p=i(b,p,A),_===null?E=b:_.sibling=b,_=b);return e&&k.forEach(function(B){return t(h,B)}),xe&&Yn(h,A),E}function x(h,p,v,C){if(typeof v=="object"&&v!==null&&v.type===xr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case hi:e:{for(var E=v.key,_=p;_!==null;){if(_.key===E){if(E=v.type,E===xr){if(_.tag===7){n(h,_.sibling),p=o(_,v.props.children),p.return=h,h=p;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===En&&yd(E)===_.type){n(h,_.sibling),p=o(_,v.props),p.ref=mo(h,_,v),p.return=h,h=p;break e}n(h,_);break}else t(h,_);_=_.sibling}v.type===xr?(p=er(v.props.children,h.mode,C,v.key),p.return=h,h=p):(C=Yi(v.type,v.key,v.props,null,h.mode,C),C.ref=mo(h,p,v),C.return=h,h=C)}return l(h);case wr:e:{for(_=v.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=o(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Fs(v,h.mode,C),p.return=h,h=p}return l(h);case En:return _=v._init,x(h,p,_(v._payload),C)}if(Eo(v))return w(h,p,v,C);if(uo(v))return g(h,p,v,C);_i(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,v),p.return=h,h=p):(n(h,p),p=bs(v,h.mode,C),p.return=h,h=p),l(h)):n(h,p)}return x}var Hr=Yp(!0),Qp=Yp(!1),pl=zn(null),hl=null,Nr=null,Mu=null;function Lu(){Mu=Nr=hl=null}function bu(e){var t=pl.current;we(pl),e._currentValue=t}function Ia(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function br(e,t){hl=e,Mu=Nr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lt=!0),e.firstContext=null)}function Pt(e){var t=e._currentValue;if(Mu!==e)if(e={context:e,memoizedValue:t,next:null},Nr===null){if(hl===null)throw Error(D(308));Nr=e,hl.dependencies={lanes:0,firstContext:e}}else Nr=Nr.next=e;return t}var Gn=null;function Fu(e){Gn===null?Gn=[e]:Gn.push(e)}function Xp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Fu(t)):(n.next=o.next,o.next=n),t.interleaved=n,fn(e,r)}function fn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Cn=!1;function ju(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function an(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function On(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,fn(e,n)}return o=r.interleaved,o===null?(t.next=t,Fu(r)):(t.next=o.next,o.next=t),r.interleaved=t,fn(e,n)}function zi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cu(e,n)}}function wd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ml(e,t,n,r){var o=e.updateQueue;Cn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==l&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;l=0,d=u=a=null,s=i;do{var m=s.lane,y=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,g=s;switch(m=t,y=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){c=w.call(y,c,m);break e}c=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,m=typeof w=="function"?w.call(y,c,m):w,m==null)break e;c=ke({},c,m);break e;case 2:Cn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else y={eventTime:y,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=y,a=c):d=d.next=y,l|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(a=c),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ir|=l,e.lanes=l,e.memoizedState=c}}function xd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(D(191,o));o.call(r)}}}var li={},qt=zn(li),Ko=zn(li),Yo=zn(li);function Zn(e){if(e===li)throw Error(D(174));return e}function Vu(e,t){switch(me(Yo,t),me(Ko,e),me(qt,li),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fa(t,e)}we(qt),me(qt,t)}function Wr(){we(qt),we(Ko),we(Yo)}function Zp(e){Zn(Yo.current);var t=Zn(qt.current),n=fa(t,e.type);t!==n&&(me(Ko,e),me(qt,n))}function $u(e){Ko.current===e&&(we(qt),we(Ko))}var Ee=zn(0);function vl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var As=[];function zu(){for(var e=0;e<As.length;e++)As[e]._workInProgressVersionPrimary=null;As.length=0}var Bi=mn.ReactCurrentDispatcher,Ds=mn.ReactCurrentBatchConfig,or=0,Ce=null,Oe=null,be=null,gl=!1,Do=!1,Qo=0,T0=0;function Ye(){throw Error(D(321))}function Bu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function Uu(e,t,n,r,o,i){if(or=i,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Bi.current=e===null||e.memoizedState===null?O0:M0,e=n(r,o),Do){i=0;do{if(Do=!1,Qo=0,25<=i)throw Error(D(301));i+=1,be=Oe=null,t.updateQueue=null,Bi.current=L0,e=n(r,o)}while(Do)}if(Bi.current=yl,t=Oe!==null&&Oe.next!==null,or=0,be=Oe=Ce=null,gl=!1,t)throw Error(D(300));return e}function Hu(){var e=Qo!==0;return Qo=0,e}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return be===null?Ce.memoizedState=be=e:be=be.next=e,be}function Nt(){if(Oe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=be===null?Ce.memoizedState:be.next;if(t!==null)be=t,Oe=e;else{if(e===null)throw Error(D(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},be===null?Ce.memoizedState=be=e:be=be.next=e}return be}function Xo(e,t){return typeof t=="function"?t(e):t}function Is(e){var t=Nt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Oe,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,a=null,u=i;do{var d=u.lane;if((or&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=c,l=r):a=a.next=c,Ce.lanes|=d,ir|=d}u=u.next}while(u!==null&&u!==i);a===null?l=r:a.next=s,zt(r,t.memoizedState)||(lt=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Ce.lanes|=i,ir|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Os(e){var t=Nt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);zt(i,t.memoizedState)||(lt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Jp(){}function qp(e,t){var n=Ce,r=Nt(),o=t(),i=!zt(r.memoizedState,o);if(i&&(r.memoizedState=o,lt=!0),r=r.queue,Wu(nh.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||be!==null&&be.memoizedState.tag&1){if(n.flags|=2048,Go(9,th.bind(null,n,r,o,t),void 0,null),Fe===null)throw Error(D(349));or&30||eh(n,t,o)}return o}function eh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function th(e,t,n,r){t.value=n,t.getSnapshot=r,rh(t)&&oh(e)}function nh(e,t,n){return n(function(){rh(t)&&oh(e)})}function rh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function oh(e){var t=fn(e,1);t!==null&&$t(t,e,1,-1)}function Sd(e){var t=Xt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:e},t.queue=e,e=e.dispatch=I0.bind(null,Ce,e),[t.memoizedState,e]}function Go(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ih(){return Nt().memoizedState}function Ui(e,t,n,r){var o=Xt();Ce.flags|=e,o.memoizedState=Go(1|t,n,void 0,r===void 0?null:r)}function Vl(e,t,n,r){var o=Nt();r=r===void 0?null:r;var i=void 0;if(Oe!==null){var l=Oe.memoizedState;if(i=l.destroy,r!==null&&Bu(r,l.deps)){o.memoizedState=Go(t,n,i,r);return}}Ce.flags|=e,o.memoizedState=Go(1|t,n,i,r)}function Ed(e,t){return Ui(8390656,8,e,t)}function Wu(e,t){return Vl(2048,8,e,t)}function lh(e,t){return Vl(4,2,e,t)}function sh(e,t){return Vl(4,4,e,t)}function ah(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uh(e,t,n){return n=n!=null?n.concat([e]):null,Vl(4,4,ah.bind(null,t,e),n)}function Ku(){}function ch(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dh(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fh(e,t,n){return or&21?(zt(n,t)||(n=gp(),Ce.lanes|=n,ir|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lt=!0),e.memoizedState=n)}function A0(e,t){var n=fe;fe=n!==0&&4>n?n:4,e(!0);var r=Ds.transition;Ds.transition={};try{e(!1),t()}finally{fe=n,Ds.transition=r}}function ph(){return Nt().memoizedState}function D0(e,t,n){var r=Ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hh(e))mh(t,n);else if(n=Xp(e,t,n,r),n!==null){var o=tt();$t(n,e,r,o),vh(n,t,r)}}function I0(e,t,n){var r=Ln(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hh(e))mh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,zt(s,l)){var a=t.interleaved;a===null?(o.next=o,Fu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Xp(e,t,o,r),n!==null&&(o=tt(),$t(n,e,r,o),vh(n,t,r))}}function hh(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function mh(e,t){Do=gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cu(e,n)}}var yl={readContext:Pt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},O0={readContext:Pt,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Pt,useEffect:Ed,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4194308,4,ah.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=D0.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:Sd,useDebugValue:Ku,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=Sd(!1),t=e[0];return e=A0.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,o=Xt();if(xe){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Fe===null)throw Error(D(349));or&30||eh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ed(nh.bind(null,r,i,e),[e]),r.flags|=2048,Go(9,th.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=Fe.identifierPrefix;if(xe){var n=sn,r=ln;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=T0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},M0={readContext:Pt,useCallback:ch,useContext:Pt,useEffect:Wu,useImperativeHandle:uh,useInsertionEffect:lh,useLayoutEffect:sh,useMemo:dh,useReducer:Is,useRef:ih,useState:function(){return Is(Xo)},useDebugValue:Ku,useDeferredValue:function(e){var t=Nt();return fh(t,Oe.memoizedState,e)},useTransition:function(){var e=Is(Xo)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Jp,useSyncExternalStore:qp,useId:ph,unstable_isNewReconciler:!1},L0={readContext:Pt,useCallback:ch,useContext:Pt,useEffect:Wu,useImperativeHandle:uh,useInsertionEffect:lh,useLayoutEffect:sh,useMemo:dh,useReducer:Os,useRef:ih,useState:function(){return Os(Xo)},useDebugValue:Ku,useDeferredValue:function(e){var t=Nt();return Oe===null?t.memoizedState=e:fh(t,Oe.memoizedState,e)},useTransition:function(){var e=Os(Xo)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Jp,useSyncExternalStore:qp,useId:ph,unstable_isNewReconciler:!1};function Lt(e,t){if(e&&e.defaultProps){t=ke({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Oa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ke({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $l={isMounted:function(e){return(e=e._reactInternals)?fr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),o=Ln(e),i=an(r,o);i.payload=t,n!=null&&(i.callback=n),t=On(e,i,o),t!==null&&($t(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),o=Ln(e),i=an(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=On(e,i,o),t!==null&&($t(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=Ln(e),o=an(n,r);o.tag=2,t!=null&&(o.callback=t),t=On(e,o,r),t!==null&&($t(t,e,r,n),zi(t,e,r))}};function Cd(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!Bo(n,r)||!Bo(o,i):!0}function gh(e,t,n){var r=!1,o=Vn,i=t.contextType;return typeof i=="object"&&i!==null?i=Pt(i):(o=ut(t)?nr:Ge.current,r=t.contextTypes,i=(r=r!=null)?Br(e,o):Vn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$l,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function kd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$l.enqueueReplaceState(t,t.state,null)}function Ma(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ju(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Pt(i):(i=ut(t)?nr:Ge.current,o.context=Br(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Oa(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&$l.enqueueReplaceState(o,o.state,null),ml(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Kr(e,t){try{var n="",r=t;do n+=uy(r),r=r.return;while(r);var o=n}catch(i){o=`
31
- Error generating stack: `+i.message+`
32
- `+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ms(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function La(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var b0=typeof WeakMap=="function"?WeakMap:Map;function yh(e,t,n){n=an(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xl||(xl=!0,Wa=r),La(e,t)},n}function wh(e,t,n){n=an(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){La(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){La(e,t),typeof r!="function"&&(Mn===null?Mn=new Set([this]):Mn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function _d(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new b0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=G0.bind(null,e,t,n),t.then(e,e))}function Rd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Pd(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=an(-1,1),t.tag=2,On(n,t,1))),n.lanes|=1),e)}var F0=mn.ReactCurrentOwner,lt=!1;function qe(e,t,n,r){t.child=e===null?Qp(t,null,n,r):Hr(t,e.child,n,r)}function Nd(e,t,n,r,o){n=n.render;var i=t.ref;return br(t,o),r=Uu(e,t,n,r,i,o),n=Hu(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,pn(e,t,o)):(xe&&n&&Du(t),t.flags|=1,qe(e,t,r,o),t.child)}function Td(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!ec(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,xh(e,t,i,r,o)):(e=Yi(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Bo,n(l,r)&&e.ref===t.ref)return pn(e,t,o)}return t.flags|=1,e=bn(i,r),e.ref=t.ref,e.return=t,t.child=e}function xh(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Bo(i,r)&&e.ref===t.ref)if(lt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(lt=!0);else return t.lanes=e.lanes,pn(e,t,o)}return ba(e,t,n,r,o)}function Sh(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(Ar,pt),pt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(Ar,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,me(Ar,pt),pt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,me(Ar,pt),pt|=r;return qe(e,t,o,n),t.child}function Eh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ba(e,t,n,r,o){var i=ut(n)?nr:Ge.current;return i=Br(t,i),br(t,o),n=Uu(e,t,n,r,i,o),r=Hu(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,pn(e,t,o)):(xe&&r&&Du(t),t.flags|=1,qe(e,t,n,o),t.child)}function Ad(e,t,n,r,o){if(ut(n)){var i=!0;cl(t)}else i=!1;if(br(t,o),t.stateNode===null)Hi(e,t),gh(t,n,r),Ma(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=Pt(u):(u=ut(n)?nr:Ge.current,u=Br(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function";c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&kd(t,l,r,u),Cn=!1;var m=t.memoizedState;l.state=m,ml(t,r,l,o),a=t.memoizedState,s!==r||m!==a||at.current||Cn?(typeof d=="function"&&(Oa(t,n,d,r),a=t.memoizedState),(s=Cn||Cd(t,n,s,r,m,a,u))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Gp(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Lt(t.type,s),l.props=u,c=t.pendingProps,m=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Pt(a):(a=ut(n)?nr:Ge.current,a=Br(t,a));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==c||m!==a)&&kd(t,l,r,a),Cn=!1,m=t.memoizedState,l.state=m,ml(t,r,l,o);var w=t.memoizedState;s!==c||m!==w||at.current||Cn?(typeof y=="function"&&(Oa(t,n,y,r),w=t.memoizedState),(u=Cn||Cd(t,n,u,r,m,w,a)||!1)?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,w,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,w,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),l.props=r,l.state=w,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Fa(e,t,n,r,i,o)}function Fa(e,t,n,r,o,i){Eh(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&md(t,n,!1),pn(e,t,i);r=t.stateNode,F0.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Hr(t,e.child,null,i),t.child=Hr(t,null,s,i)):qe(e,t,s,i),t.memoizedState=r.state,o&&md(t,n,!0),t.child}function Ch(e){var t=e.stateNode;t.pendingContext?hd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hd(e,t.context,!1),Vu(e,t.containerInfo)}function Dd(e,t,n,r,o){return Ur(),Ou(o),t.flags|=256,qe(e,t,n,r),t.child}var ja={dehydrated:null,treeContext:null,retryLane:0};function Va(e){return{baseLanes:e,cachePool:null,transitions:null}}function kh(e,t,n){var r=t.pendingProps,o=Ee.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),me(Ee,o&1),e===null)return Da(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Ul(l,r,0,null),e=er(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Va(n),t.memoizedState=ja,e):Yu(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return j0(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=bn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=bn(s,i):(i=er(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Va(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=ja,r}return i=e.child,e=i.sibling,r=bn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Yu(e,t){return t=Ul({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ri(e,t,n,r){return r!==null&&Ou(r),Hr(t,e.child,null,n),e=Yu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function j0(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Ms(Error(D(422))),Ri(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ul({mode:"visible",children:r.children},o,0,null),i=er(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Hr(t,e.child,null,l),t.child.memoizedState=Va(l),t.memoizedState=ja,i);if(!(t.mode&1))return Ri(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(D(419)),r=Ms(i,r,void 0),Ri(e,t,l,r)}if(s=(l&e.childLanes)!==0,lt||s){if(r=Fe,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,fn(e,o),$t(r,e,o,-1))}return qu(),r=Ms(Error(D(421))),Ri(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Z0.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,mt=In(o.nextSibling),vt=t,xe=!0,Ft=null,e!==null&&(Et[Ct++]=ln,Et[Ct++]=sn,Et[Ct++]=rr,ln=e.id,sn=e.overflow,rr=t),t=Yu(t,r.children),t.flags|=4096,t)}function Id(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ia(e.return,t,n)}function Ls(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function _h(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(qe(e,t,r.children,n),r=Ee.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Id(e,n,t);else if(e.tag===19)Id(e,n,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}r&=1}if(me(Ee,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&vl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ls(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&vl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ls(t,!0,n,null,i);break;case"together":Ls(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ir|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function V0(e,t,n){switch(t.tag){case 3:Ch(t),Ur();break;case 5:Zp(t);break;case 1:ut(t.type)&&cl(t);break;case 4:Vu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;me(pl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(Ee,Ee.current&1),t.flags|=128,null):n&t.child.childLanes?kh(e,t,n):(me(Ee,Ee.current&1),e=pn(e,t,n),e!==null?e.sibling:null);me(Ee,Ee.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return _h(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),me(Ee,Ee.current),r)break;return null;case 22:case 23:return t.lanes=0,Sh(e,t,n)}return pn(e,t,n)}var Rh,$a,Ph,Nh;Rh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};$a=function(){};Ph=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zn(qt.current);var i=null;switch(n){case"input":o=aa(e,o),r=aa(e,r),i=[];break;case"select":o=ke({},o,{value:void 0}),r=ke({},r,{value:void 0}),i=[];break;case"textarea":o=da(e,o),r=da(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=al)}pa(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Lo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Lo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ve("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Nh=function(e,t,n,r){n!==r&&(t.flags|=4)};function vo(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $0(e,t,n){var r=t.pendingProps;switch(Iu(t),t.tag){case 2: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 ut(t.type)&&ul(),Qe(t),null;case 3:return r=t.stateNode,Wr(),we(at),we(Ge),zu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ki(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ft!==null&&(Qa(Ft),Ft=null))),$a(e,t),Qe(t),null;case 5:$u(t);var o=Zn(Yo.current);if(n=t.type,e!==null&&t.stateNode!=null)Ph(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Qe(t),null}if(e=Zn(qt.current),ki(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Gt]=t,r[Wo]=i,e=(t.mode&1)!==0,n){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(o=0;o<ko.length;o++)ve(ko[o],r);break;case"source":ve("error",r);break;case"img":case"image":case"link":ve("error",r),ve("load",r);break;case"details":ve("toggle",r);break;case"input":zc(r,i),ve("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ve("invalid",r);break;case"textarea":Uc(r,i),ve("invalid",r)}pa(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Ci(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Ci(r.textContent,s,e),o=["children",""+s]):Lo.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&ve("scroll",r)}switch(n){case"input":mi(r),Bc(r,i,!0);break;case"textarea":mi(r),Hc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=al)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=np(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Gt]=t,e[Wo]=r,Rh(e,t,!1,!1),t.stateNode=e;e:{switch(l=ha(n,r),n){case"dialog":ve("cancel",e),ve("close",e),o=r;break;case"iframe":case"object":case"embed":ve("load",e),o=r;break;case"video":case"audio":for(o=0;o<ko.length;o++)ve(ko[o],e);o=r;break;case"source":ve("error",e),o=r;break;case"img":case"image":case"link":ve("error",e),ve("load",e),o=r;break;case"details":ve("toggle",e),o=r;break;case"input":zc(e,r),o=aa(e,r),ve("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ke({},r,{value:void 0}),ve("invalid",e);break;case"textarea":Uc(e,r),o=da(e,r),ve("invalid",e);break;default:o=r}pa(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?ip(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&rp(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&bo(e,a):typeof a=="number"&&bo(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Lo.hasOwnProperty(i)?a!=null&&i==="onScroll"&&ve("scroll",e):a!=null&&gu(e,i,a,l))}switch(n){case"input":mi(e),Bc(e,r,!1);break;case"textarea":mi(e),Hc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Ir(e,!!r.multiple,i,!1):r.defaultValue!=null&&Ir(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=al)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Qe(t),null;case 6:if(e&&t.stateNode!=null)Nh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Zn(Yo.current),Zn(qt.current),ki(t)){if(r=t.stateNode,n=t.memoizedProps,r[Gt]=t,(i=r.nodeValue!==n)&&(e=vt,e!==null))switch(e.tag){case 3:Ci(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ci(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Gt]=t,t.stateNode=r}return Qe(t),null;case 13:if(we(Ee),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&mt!==null&&t.mode&1&&!(t.flags&128))Kp(),Ur(),t.flags|=98560,i=!1;else if(i=ki(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(D(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(D(317));i[Gt]=t}else Ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qe(t),i=!1}else Ft!==null&&(Qa(Ft),Ft=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ee.current&1?Me===0&&(Me=3):qu())),t.updateQueue!==null&&(t.flags|=4),Qe(t),null);case 4:return Wr(),$a(e,t),e===null&&Uo(t.stateNode.containerInfo),Qe(t),null;case 10:return bu(t.type._context),Qe(t),null;case 17:return ut(t.type)&&ul(),Qe(t),null;case 19:if(we(Ee),i=t.memoizedState,i===null)return Qe(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)vo(i,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=vl(e),l!==null){for(t.flags|=128,vo(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return me(Ee,Ee.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>Yr&&(t.flags|=128,r=!0,vo(i,!1),t.lanes=4194304)}else{if(!r)if(e=vl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!xe)return Qe(t),null}else 2*Te()-i.renderingStartTime>Yr&&n!==1073741824&&(t.flags|=128,r=!0,vo(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=Ee.current,me(Ee,r?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return Ju(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pt&1073741824&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function z0(e,t){switch(Iu(t),t.tag){case 1:return ut(t.type)&&ul(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wr(),we(at),we(Ge),zu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $u(t),null;case 13:if(we(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Ee),null;case 4:return Wr(),null;case 10:return bu(t.type._context),null;case 22:case 23:return Ju(),null;case 24:return null;default:return null}}var Pi=!1,Xe=!1,B0=typeof WeakSet=="function"?WeakSet:Set,V=null;function Tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function za(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Od=!1;function U0(e,t){if(ka=il,e=Op(),Au(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,d=0,c=e,m=null;t:for(;;){for(var y;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(a=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(y=c.firstChild)!==null;)m=c,c=y;for(;;){if(c===e)break t;if(m===n&&++u===o&&(s=l),m===i&&++d===r&&(a=l),(y=c.nextSibling)!==null)break;c=m,m=c.parentNode}c=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(_a={focusedElem:e,selectionRange:n},il=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,x=w.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:Lt(t.type,g),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(C){Pe(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return w=Od,Od=!1,w}function Io(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&za(t,n,i)}o=o.next}while(o!==r)}}function zl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ba(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Th(e){var t=e.alternate;t!==null&&(e.alternate=null,Th(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gt],delete t[Wo],delete t[Na],delete t[_0],delete t[R0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ah(e){return e.tag===5||e.tag===3||e.tag===4}function Md(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ah(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ua(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=al));else if(r!==4&&(e=e.child,e!==null))for(Ua(e,t,n),e=e.sibling;e!==null;)Ua(e,t,n),e=e.sibling}function Ha(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ha(e,t,n),e=e.sibling;e!==null;)Ha(e,t,n),e=e.sibling}var Be=null,bt=!1;function wn(e,t,n){for(n=n.child;n!==null;)Dh(e,t,n),n=n.sibling}function Dh(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Ol,n)}catch{}switch(n.tag){case 5:Xe||Tr(n,t);case 6:var r=Be,o=bt;Be=null,wn(e,t,n),Be=r,bt=o,Be!==null&&(bt?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(bt?(e=Be,n=n.stateNode,e.nodeType===8?Ns(e.parentNode,n):e.nodeType===1&&Ns(e,n),$o(e)):Ns(Be,n.stateNode));break;case 4:r=Be,o=bt,Be=n.stateNode.containerInfo,bt=!0,wn(e,t,n),Be=r,bt=o;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&za(n,t,l),o=o.next}while(o!==r)}wn(e,t,n);break;case 1:if(!Xe&&(Tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pe(n,t,s)}wn(e,t,n);break;case 21:wn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,wn(e,t,n),Xe=r):wn(e,t,n);break;default:wn(e,t,n)}}function Ld(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new B0),t.forEach(function(r){var o=J0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:Be=s.stateNode,bt=!1;break e;case 3:Be=s.stateNode.containerInfo,bt=!0;break e;case 4:Be=s.stateNode.containerInfo,bt=!0;break e}s=s.return}if(Be===null)throw Error(D(160));Dh(i,l,o),Be=null,bt=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){Pe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ih(t,e),t=t.sibling}function Ih(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ot(t,e),Yt(e),r&4){try{Io(3,e,e.return),zl(3,e)}catch(g){Pe(e,e.return,g)}try{Io(5,e,e.return)}catch(g){Pe(e,e.return,g)}}break;case 1:Ot(t,e),Yt(e),r&512&&n!==null&&Tr(n,n.return);break;case 5:if(Ot(t,e),Yt(e),r&512&&n!==null&&Tr(n,n.return),e.flags&32){var o=e.stateNode;try{bo(o,"")}catch(g){Pe(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&ep(o,i),ha(s,l);var u=ha(s,i);for(l=0;l<a.length;l+=2){var d=a[l],c=a[l+1];d==="style"?ip(o,c):d==="dangerouslySetInnerHTML"?rp(o,c):d==="children"?bo(o,c):gu(o,d,c,u)}switch(s){case"input":ua(o,i);break;case"textarea":tp(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Ir(o,!!i.multiple,y,!1):m!==!!i.multiple&&(i.defaultValue!=null?Ir(o,!!i.multiple,i.defaultValue,!0):Ir(o,!!i.multiple,i.multiple?[]:"",!1))}o[Wo]=i}catch(g){Pe(e,e.return,g)}}break;case 6:if(Ot(t,e),Yt(e),r&4){if(e.stateNode===null)throw Error(D(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Pe(e,e.return,g)}}break;case 3:if(Ot(t,e),Yt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{$o(t.containerInfo)}catch(g){Pe(e,e.return,g)}break;case 4:Ot(t,e),Yt(e);break;case 13:Ot(t,e),Yt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Gu=Te())),r&4&&Ld(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(u=Xe)||d,Ot(t,e),Xe=u):Ot(t,e),Yt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(V=e,d=e.child;d!==null;){for(c=V=d;V!==null;){switch(m=V,y=m.child,m.tag){case 0:case 11:case 14:case 15:Io(4,m,m.return);break;case 1:Tr(m,m.return);var w=m.stateNode;if(typeof w.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(g){Pe(r,n,g)}}break;case 5:Tr(m,m.return);break;case 22:if(m.memoizedState!==null){Fd(c);continue}}y!==null?(y.return=m,V=y):Fd(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{o=c.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=c.stateNode,a=c.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=op("display",l))}catch(g){Pe(e,e.return,g)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(g){Pe(e,e.return,g)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Ot(t,e),Yt(e),r&4&&Ld(e);break;case 21:break;default:Ot(t,e),Yt(e)}}function Yt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ah(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(bo(o,""),r.flags&=-33);var i=Md(e);Ha(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=Md(e);Ua(e,s,l);break;default:throw Error(D(161))}}catch(a){Pe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function H0(e,t,n){V=e,Oh(e)}function Oh(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var o=V,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Pi;if(!l){var s=o.alternate,a=s!==null&&s.memoizedState!==null||Xe;s=Pi;var u=Xe;if(Pi=l,(Xe=a)&&!u)for(V=o;V!==null;)l=V,a=l.child,l.tag===22&&l.memoizedState!==null?jd(o):a!==null?(a.return=l,V=a):jd(o);for(;i!==null;)V=i,Oh(i),i=i.sibling;V=o,Pi=s,Xe=u}bd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,V=i):bd(e)}}function bd(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xe||zl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Lt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&xd(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}xd(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&$o(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Xe||t.flags&512&&Ba(t)}catch(m){Pe(t,t.return,m)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function Fd(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function jd(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{zl(4,t)}catch(a){Pe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Pe(t,o,a)}}var i=t.return;try{Ba(t)}catch(a){Pe(t,i,a)}break;case 5:var l=t.return;try{Ba(t)}catch(a){Pe(t,l,a)}}}catch(a){Pe(t,t.return,a)}if(t===e){V=null;break}var s=t.sibling;if(s!==null){s.return=t.return,V=s;break}V=t.return}}var W0=Math.ceil,wl=mn.ReactCurrentDispatcher,Qu=mn.ReactCurrentOwner,Rt=mn.ReactCurrentBatchConfig,re=0,Fe=null,Ie=null,Ue=0,pt=0,Ar=zn(0),Me=0,Zo=null,ir=0,Bl=0,Xu=0,Oo=null,it=null,Gu=0,Yr=1/0,nn=null,xl=!1,Wa=null,Mn=null,Ni=!1,Nn=null,Sl=0,Mo=0,Ka=null,Wi=-1,Ki=0;function tt(){return re&6?Te():Wi!==-1?Wi:Wi=Te()}function Ln(e){return e.mode&1?re&2&&Ue!==0?Ue&-Ue:N0.transition!==null?(Ki===0&&(Ki=gp()),Ki):(e=fe,e!==0||(e=window.event,e=e===void 0?16:kp(e.type)),e):1}function $t(e,t,n,r){if(50<Mo)throw Mo=0,Ka=null,Error(D(185));ri(e,n,r),(!(re&2)||e!==Fe)&&(e===Fe&&(!(re&2)&&(Bl|=n),Me===4&&Rn(e,Ue)),ct(e,r),n===1&&re===0&&!(t.mode&1)&&(Yr=Te()+500,jl&&Bn()))}function ct(e,t){var n=e.callbackNode;Ny(e,t);var r=ol(e,e===Fe?Ue:0);if(r===0)n!==null&&Yc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Yc(n),t===1)e.tag===0?P0(Vd.bind(null,e)):Up(Vd.bind(null,e)),C0(function(){!(re&6)&&Bn()}),n=null;else{switch(yp(r)){case 1:n=Eu;break;case 4:n=mp;break;case 16:n=rl;break;case 536870912:n=vp;break;default:n=rl}n=zh(n,Mh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Mh(e,t){if(Wi=-1,Ki=0,re&6)throw Error(D(327));var n=e.callbackNode;if(Fr()&&e.callbackNode!==n)return null;var r=ol(e,e===Fe?Ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=El(e,r);else{t=r;var o=re;re|=2;var i=bh();(Fe!==e||Ue!==t)&&(nn=null,Yr=Te()+500,qn(e,t));do try{Q0();break}catch(s){Lh(e,s)}while(!0);Lu(),wl.current=i,re=o,Ie!==null?t=0:(Fe=null,Ue=0,t=Me)}if(t!==0){if(t===2&&(o=wa(e),o!==0&&(r=o,t=Ya(e,o))),t===1)throw n=Zo,qn(e,0),Rn(e,r),ct(e,Te()),n;if(t===6)Rn(e,r);else{if(o=e.current.alternate,!(r&30)&&!K0(o)&&(t=El(e,r),t===2&&(i=wa(e),i!==0&&(r=i,t=Ya(e,i))),t===1))throw n=Zo,qn(e,0),Rn(e,r),ct(e,Te()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Qn(e,it,nn);break;case 3:if(Rn(e,r),(r&130023424)===r&&(t=Gu+500-Te(),10<t)){if(ol(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Pa(Qn.bind(null,e,it,nn),t);break}Qn(e,it,nn);break;case 4:if(Rn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Vt(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*W0(r/1960))-r,10<r){e.timeoutHandle=Pa(Qn.bind(null,e,it,nn),r);break}Qn(e,it,nn);break;case 5:Qn(e,it,nn);break;default:throw Error(D(329))}}}return ct(e,Te()),e.callbackNode===n?Mh.bind(null,e):null}function Ya(e,t){var n=Oo;return e.current.memoizedState.isDehydrated&&(qn(e,t).flags|=256),e=El(e,t),e!==2&&(t=it,it=n,t!==null&&Qa(t)),e}function Qa(e){it===null?it=e:it.push.apply(it,e)}function K0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!zt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Rn(e,t){for(t&=~Xu,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function Vd(e){if(re&6)throw Error(D(327));Fr();var t=ol(e,0);if(!(t&1))return ct(e,Te()),null;var n=El(e,t);if(e.tag!==0&&n===2){var r=wa(e);r!==0&&(t=r,n=Ya(e,r))}if(n===1)throw n=Zo,qn(e,0),Rn(e,t),ct(e,Te()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qn(e,it,nn),ct(e,Te()),null}function Zu(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(Yr=Te()+500,jl&&Bn())}}function lr(e){Nn!==null&&Nn.tag===0&&!(re&6)&&Fr();var t=re;re|=1;var n=Rt.transition,r=fe;try{if(Rt.transition=null,fe=1,e)return e()}finally{fe=r,Rt.transition=n,re=t,!(re&6)&&Bn()}}function Ju(){pt=Ar.current,we(Ar)}function qn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,E0(n)),Ie!==null)for(n=Ie.return;n!==null;){var r=n;switch(Iu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ul();break;case 3:Wr(),we(at),we(Ge),zu();break;case 5:$u(r);break;case 4:Wr();break;case 13:we(Ee);break;case 19:we(Ee);break;case 10:bu(r.type._context);break;case 22:case 23:Ju()}n=n.return}if(Fe=e,Ie=e=bn(e.current,null),Ue=pt=t,Me=0,Zo=null,Xu=Bl=ir=0,it=Oo=null,Gn!==null){for(t=0;t<Gn.length;t++)if(n=Gn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}Gn=null}return e}function Lh(e,t){do{var n=Ie;try{if(Lu(),Bi.current=yl,gl){for(var r=Ce.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}gl=!1}if(or=0,be=Oe=Ce=null,Do=!1,Qo=0,Qu.current=null,n===null||n.return===null){Me=1,Zo=t,Ie=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=Ue,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=s,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var y=Rd(l);if(y!==null){y.flags&=-257,Pd(y,l,s,i,t),y.mode&1&&_d(i,u,t),t=y,a=u;var w=t.updateQueue;if(w===null){var g=new Set;g.add(a),t.updateQueue=g}else w.add(a);break e}else{if(!(t&1)){_d(i,u,t),qu();break e}a=Error(D(426))}}else if(xe&&s.mode&1){var x=Rd(l);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Pd(x,l,s,i,t),Ou(Kr(a,s));break e}}i=a=Kr(a,s),Me!==4&&(Me=2),Oo===null?Oo=[i]:Oo.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var h=yh(i,a,t);wd(i,h);break e;case 1:s=a;var p=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Mn===null||!Mn.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=wh(i,s,t);wd(i,C);break e}}i=i.return}while(i!==null)}jh(n)}catch(E){t=E,Ie===n&&n!==null&&(Ie=n=n.return);continue}break}while(!0)}function bh(){var e=wl.current;return wl.current=yl,e===null?yl:e}function qu(){(Me===0||Me===3||Me===2)&&(Me=4),Fe===null||!(ir&268435455)&&!(Bl&268435455)||Rn(Fe,Ue)}function El(e,t){var n=re;re|=2;var r=bh();(Fe!==e||Ue!==t)&&(nn=null,qn(e,t));do try{Y0();break}catch(o){Lh(e,o)}while(!0);if(Lu(),re=n,wl.current=r,Ie!==null)throw Error(D(261));return Fe=null,Ue=0,Me}function Y0(){for(;Ie!==null;)Fh(Ie)}function Q0(){for(;Ie!==null&&!wy();)Fh(Ie)}function Fh(e){var t=$h(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?jh(e):Ie=t,Qu.current=null}function jh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=z0(n,t),n!==null){n.flags&=32767,Ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,Ie=null;return}}else if(n=$0(n,t,pt),n!==null){Ie=n;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);Me===0&&(Me=5)}function Qn(e,t,n){var r=fe,o=Rt.transition;try{Rt.transition=null,fe=1,X0(e,t,n,r)}finally{Rt.transition=o,fe=r}return null}function X0(e,t,n,r){do Fr();while(Nn!==null);if(re&6)throw Error(D(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Ty(e,i),e===Fe&&(Ie=Fe=null,Ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ni||(Ni=!0,zh(rl,function(){return Fr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Rt.transition,Rt.transition=null;var l=fe;fe=1;var s=re;re|=4,Qu.current=null,U0(e,n),Ih(n,e),m0(_a),il=!!ka,_a=ka=null,e.current=n,H0(n),xy(),re=s,fe=l,Rt.transition=i}else e.current=n;if(Ni&&(Ni=!1,Nn=e,Sl=o),i=e.pendingLanes,i===0&&(Mn=null),Cy(n.stateNode),ct(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(xl)throw xl=!1,e=Wa,Wa=null,e;return Sl&1&&e.tag!==0&&Fr(),i=e.pendingLanes,i&1?e===Ka?Mo++:(Mo=0,Ka=e):Mo=0,Bn(),null}function Fr(){if(Nn!==null){var e=yp(Sl),t=Rt.transition,n=fe;try{if(Rt.transition=null,fe=16>e?16:e,Nn===null)var r=!1;else{if(e=Nn,Nn=null,Sl=0,re&6)throw Error(D(331));var o=re;for(re|=4,V=e.current;V!==null;){var i=V,l=i.child;if(V.flags&16){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(V=u;V!==null;){var d=V;switch(d.tag){case 0:case 11:case 15:Io(8,d,i)}var c=d.child;if(c!==null)c.return=d,V=c;else for(;V!==null;){d=V;var m=d.sibling,y=d.return;if(Th(d),d===u){V=null;break}if(m!==null){m.return=y,V=m;break}V=y}}}var w=i.alternate;if(w!==null){var g=w.child;if(g!==null){w.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}V=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,V=l;else e:for(;V!==null;){if(i=V,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Io(9,i,i.return)}var h=i.sibling;if(h!==null){h.return=i.return,V=h;break e}V=i.return}}var p=e.current;for(V=p;V!==null;){l=V;var v=l.child;if(l.subtreeFlags&2064&&v!==null)v.return=l,V=v;else e:for(l=p;V!==null;){if(s=V,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:zl(9,s)}}catch(E){Pe(s,s.return,E)}if(s===l){V=null;break e}var C=s.sibling;if(C!==null){C.return=s.return,V=C;break e}V=s.return}}if(re=o,Bn(),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(Ol,e)}catch{}r=!0}return r}finally{fe=n,Rt.transition=t}}return!1}function $d(e,t,n){t=Kr(n,t),t=yh(e,t,1),e=On(e,t,1),t=tt(),e!==null&&(ri(e,1,t),ct(e,t))}function Pe(e,t,n){if(e.tag===3)$d(e,e,n);else for(;t!==null;){if(t.tag===3){$d(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mn===null||!Mn.has(r))){e=Kr(n,e),e=wh(t,e,1),t=On(t,e,1),e=tt(),t!==null&&(ri(t,1,e),ct(t,e));break}}t=t.return}}function G0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&(Ue&n)===n&&(Me===4||Me===3&&(Ue&130023424)===Ue&&500>Te()-Gu?qn(e,0):Xu|=n),ct(e,t)}function Vh(e,t){t===0&&(e.mode&1?(t=yi,yi<<=1,!(yi&130023424)&&(yi=4194304)):t=1);var n=tt();e=fn(e,t),e!==null&&(ri(e,t,n),ct(e,n))}function Z0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vh(e,n)}function J0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),Vh(e,n)}var $h;$h=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lt=!1,V0(e,t,n);lt=!!(e.flags&131072)}else lt=!1,xe&&t.flags&1048576&&Hp(t,fl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var o=Br(t,Ge.current);br(t,n),o=Uu(null,t,r,e,o,n);var i=Hu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ut(r)?(i=!0,cl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ju(t),o.updater=$l,t.stateNode=o,o._reactInternals=t,Ma(t,r,e,n),t=Fa(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Du(t),qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ew(r),e=Lt(r,e),o){case 0:t=ba(null,t,r,e,n);break e;case 1:t=Ad(null,t,r,e,n);break e;case 11:t=Nd(null,t,r,e,n);break e;case 14:t=Td(null,t,r,Lt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),ba(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),Ad(e,t,r,o,n);case 3:e:{if(Ch(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Gp(e,t),ml(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Kr(Error(D(423)),t),t=Dd(e,t,r,n,o);break e}else if(r!==o){o=Kr(Error(D(424)),t),t=Dd(e,t,r,n,o);break e}else for(mt=In(t.stateNode.containerInfo.firstChild),vt=t,xe=!0,Ft=null,n=Qp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===o){t=pn(e,t,n);break e}qe(e,t,r,n)}t=t.child}return t;case 5:return Zp(t),e===null&&Da(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ra(r,o)?l=null:i!==null&&Ra(r,i)&&(t.flags|=32),Eh(e,t),qe(e,t,l,n),t.child;case 6:return e===null&&Da(t),null;case 13:return kh(e,t,n);case 4:return Vu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hr(t,null,r,n):qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),Nd(e,t,r,o,n);case 7:return qe(e,t,t.pendingProps,n),t.child;case 8:return qe(e,t,t.pendingProps.children,n),t.child;case 12:return qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,me(pl,r._currentValue),r._currentValue=l,i!==null)if(zt(i.value,l)){if(i.children===o.children&&!at.current){t=pn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=an(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ia(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(D(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ia(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,br(t,n),o=Pt(o),r=r(o),t.flags|=1,qe(e,t,r,n),t.child;case 14:return r=t.type,o=Lt(r,t.pendingProps),o=Lt(r.type,o),Td(e,t,r,o,n);case 15:return xh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),Hi(e,t),t.tag=1,ut(r)?(e=!0,cl(t)):e=!1,br(t,n),gh(t,r,o),Ma(t,r,o,n),Fa(null,t,r,!0,e,n);case 19:return _h(e,t,n);case 22:return Sh(e,t,n)}throw Error(D(156,t.tag))};function zh(e,t){return hp(e,t)}function q0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,r){return new q0(e,t,n,r)}function ec(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ew(e){if(typeof e=="function")return ec(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wu)return 11;if(e===xu)return 14}return 2}function bn(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yi(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")ec(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case xr:return er(n.children,o,i,t);case yu:l=8,o|=8;break;case oa:return e=_t(12,n,t,o|2),e.elementType=oa,e.lanes=i,e;case ia:return e=_t(13,n,t,o),e.elementType=ia,e.lanes=i,e;case la:return e=_t(19,n,t,o),e.elementType=la,e.lanes=i,e;case Zf:return Ul(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xf:l=10;break e;case Gf:l=9;break e;case wu:l=11;break e;case xu:l=14;break e;case En:l=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=_t(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function er(e,t,n,r){return e=_t(7,e,r,t),e.lanes=n,e}function Ul(e,t,n,r){return e=_t(22,e,r,t),e.elementType=Zf,e.lanes=n,e.stateNode={isHidden:!1},e}function bs(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Fs(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gs(0),this.expirationTimes=gs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function tc(e,t,n,r,o,i,l,s,a){return e=new tw(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=_t(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ju(i),e}function nw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Bh(e){if(!e)return Vn;e=e._reactInternals;e:{if(fr(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ut(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(ut(n))return Bp(e,n,t)}return t}function Uh(e,t,n,r,o,i,l,s,a){return e=tc(n,r,!0,e,o,i,l,s,a),e.context=Bh(null),n=e.current,r=tt(),o=Ln(n),i=an(r,o),i.callback=t??null,On(n,i,o),e.current.lanes=o,ri(e,o,r),ct(e,r),e}function Hl(e,t,n,r){var o=t.current,i=tt(),l=Ln(o);return n=Bh(n),t.context===null?t.context=n:t.pendingContext=n,t=an(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=On(o,t,l),e!==null&&($t(e,o,l,i),zi(e,o,l)),l}function Cl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function zd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function nc(e,t){zd(e,t),(e=e.alternate)&&zd(e,t)}function rw(){return null}var Hh=typeof reportError=="function"?reportError:function(e){console.error(e)};function rc(e){this._internalRoot=e}Wl.prototype.render=rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));Hl(e,t,null,null)};Wl.prototype.unmount=rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lr(function(){Hl(null,e,null,null)}),t[dn]=null}};function Wl(e){this._internalRoot=e}Wl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_n.length&&t!==0&&t<_n[n].priority;n++);_n.splice(n,0,e),n===0&&Cp(e)}};function oc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Bd(){}function ow(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Cl(l);i.call(u)}}var l=Uh(t,r,e,0,null,!1,!1,"",Bd);return e._reactRootContainer=l,e[dn]=l.current,Uo(e.nodeType===8?e.parentNode:e),lr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Cl(a);s.call(u)}}var a=tc(e,0,!1,null,null,!1,!1,"",Bd);return e._reactRootContainer=a,e[dn]=a.current,Uo(e.nodeType===8?e.parentNode:e),lr(function(){Hl(t,a,n,r)}),a}function Yl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var a=Cl(l);s.call(a)}}Hl(t,l,e,o)}else l=ow(n,t,e,o,r);return Cl(l)}wp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Co(t.pendingLanes);n!==0&&(Cu(t,n|1),ct(t,Te()),!(re&6)&&(Yr=Te()+500,Bn()))}break;case 13:lr(function(){var r=fn(e,1);if(r!==null){var o=tt();$t(r,e,1,o)}}),nc(e,1)}};ku=function(e){if(e.tag===13){var t=fn(e,134217728);if(t!==null){var n=tt();$t(t,e,134217728,n)}nc(e,134217728)}};xp=function(e){if(e.tag===13){var t=Ln(e),n=fn(e,t);if(n!==null){var r=tt();$t(n,e,t,r)}nc(e,t)}};Sp=function(){return fe};Ep=function(e,t){var n=fe;try{return fe=e,t()}finally{fe=n}};va=function(e,t,n){switch(t){case"input":if(ua(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Fl(r);if(!o)throw Error(D(90));qf(r),ua(r,o)}}}break;case"textarea":tp(e,n);break;case"select":t=n.value,t!=null&&Ir(e,!!n.multiple,t,!1)}};ap=Zu;up=lr;var iw={usingClientEntryPoint:!1,Events:[ii,kr,Fl,lp,sp,Zu]},go={findFiberByHostInstance:Xn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lw={bundleType:go.bundleType,version:go.version,rendererPackageName:go.rendererPackageName,rendererConfig:go.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=fp(e),e===null?null:e.stateNode},findFiberByHostInstance:go.findFiberByHostInstance||rw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ti=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ti.isDisabled&&Ti.supportsFiber)try{Ol=Ti.inject(lw),Jt=Ti}catch{}}yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iw;yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!oc(t))throw Error(D(200));return nw(e,t,null,n)};yt.createRoot=function(e,t){if(!oc(e))throw Error(D(299));var n=!1,r="",o=Hh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=tc(e,1,!1,null,null,n,!1,r,o),e[dn]=t.current,Uo(e.nodeType===8?e.parentNode:e),new rc(t)};yt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=fp(t),e=e===null?null:e.stateNode,e};yt.flushSync=function(e){return lr(e)};yt.hydrate=function(e,t,n){if(!Kl(t))throw Error(D(200));return Yl(null,e,t,!0,n)};yt.hydrateRoot=function(e,t,n){if(!oc(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=Hh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Uh(t,null,e,1,n??null,o,!1,i,l),e[dn]=t.current,Uo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Wl(t)};yt.render=function(e,t,n){if(!Kl(t))throw Error(D(200));return Yl(null,e,t,!1,n)};yt.unmountComponentAtNode=function(e){if(!Kl(e))throw Error(D(40));return e._reactRootContainer?(lr(function(){Yl(null,null,e,!1,function(){e._reactRootContainer=null,e[dn]=null})}),!0):!1};yt.unstable_batchedUpdates=Zu;yt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Kl(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return Yl(e,t,n,!1,r)};yt.version="18.3.1-next-f1338f8080-20240426";function Wh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wh)}catch(e){console.error(e)}}Wh(),Yf.exports=yt;var qr=Yf.exports;const Kh=Mf(qr);var Ud=qr;Fc.createRoot=Ud.createRoot,Fc.hydrateRoot=Ud.hydrateRoot;/**
33
- * react-router v7.8.2
34
- *
35
- * Copyright (c) Remix Software Inc.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE.md file in the root directory of this source tree.
39
- *
40
- * @license MIT
41
- */var Hd="popstate";function sw(e={}){function t(r,o){let{pathname:i,search:l,hash:s}=r.location;return Xa("",{pathname:i,search:l,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Jo(o)}return uw(t,n,null,e)}function Se(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Bt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aw(){return Math.random().toString(36).substring(2,10)}function Wd(e,t){return{usr:e.state,key:e.key,idx:t}}function Xa(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?eo(t):t,state:n,key:t&&t.key||r||aw()}}function Jo({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function eo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function uw(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s="POP",a=null,u=d();u==null&&(u=0,l.replaceState({...l.state,idx:u},""));function d(){return(l.state||{idx:null}).idx}function c(){s="POP";let x=d(),h=x==null?null:x-u;u=x,a&&a({action:s,location:g.location,delta:h})}function m(x,h){s="PUSH";let p=Xa(g.location,x,h);u=d()+1;let v=Wd(p,u),C=g.createHref(p);try{l.pushState(v,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}i&&a&&a({action:s,location:g.location,delta:1})}function y(x,h){s="REPLACE";let p=Xa(g.location,x,h);u=d();let v=Wd(p,u),C=g.createHref(p);l.replaceState(v,"",C),i&&a&&a({action:s,location:g.location,delta:0})}function w(x){return cw(x)}let g={get action(){return s},get location(){return e(o,l)},listen(x){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Hd,c),a=x,()=>{o.removeEventListener(Hd,c),a=null}},createHref(x){return t(o,x)},createURL:w,encodeLocation(x){let h=w(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:y,go(x){return l.go(x)}};return g}function cw(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Se(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Jo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Yh(e,t,n="/"){return dw(e,t,n,!1)}function dw(e,t,n,r){let o=typeof t=="string"?eo(t):t,i=hn(o.pathname||"/",n);if(i==null)return null;let l=Qh(e);fw(l);let s=null;for(let a=0;s==null&&a<l.length;++a){let u=Cw(i);s=Sw(l[a],u,r)}return s}function Qh(e,t=[],n=[],r="",o=!1){let i=(l,s,a=o,u)=>{let d={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&a)return;Se(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let c=un([r,d.relativePath]),m=n.concat(d);l.children&&l.children.length>0&&(Se(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Qh(l.children,t,m,c,a)),!(l.path==null&&!l.index)&&t.push({path:c,score:ww(c,l.index),routesMeta:m})};return e.forEach((l,s)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))i(l,s);else for(let u of Xh(l.path))i(l,s,!0,u)}),t}function Xh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=Xh(r.join("/")),s=[];return s.push(...l.map(a=>a===""?i:[i,a].join("/"))),o&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function fw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var pw=/^:[\w-]+$/,hw=3,mw=2,vw=1,gw=10,yw=-2,Kd=e=>e==="*";function ww(e,t){let n=e.split("/"),r=n.length;return n.some(Kd)&&(r+=yw),t&&(r+=mw),n.filter(o=>!Kd(o)).reduce((o,i)=>o+(pw.test(i)?hw:i===""?vw:gw),r)}function xw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Sw(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",l=[];for(let s=0;s<r.length;++s){let a=r[s],u=s===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",c=kl({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},d),m=a.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=kl({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},d)),!c)return null;Object.assign(o,c.params),l.push({params:o,pathname:un([i,c.pathname]),pathnameBase:Pw(un([i,c.pathnameBase])),route:m}),c.pathnameBase!=="/"&&(i=un([i,c.pathnameBase]))}return l}function kl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ew(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],l=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:c},m)=>{if(d==="*"){let w=s[m]||"";l=i.slice(0,i.length-w.length).replace(/(.)\/+$/,"$1")}const y=s[m];return c&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function Ew(e,t=!1,n=!0){Bt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Cw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Bt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function hn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function kw(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?eo(e):e;return{pathname:n?n.startsWith("/")?n:_w(n,t):t,search:Nw(r),hash:Tw(o)}}function _w(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function js(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Rw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ic(e){let t=Rw(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function lc(e,t,n,r=!1){let o;typeof e=="string"?o=eo(e):(o={...e},Se(!o.pathname||!o.pathname.includes("?"),js("?","pathname","search",o)),Se(!o.pathname||!o.pathname.includes("#"),js("#","pathname","hash",o)),Se(!o.search||!o.search.includes("#"),js("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),c-=1;o.pathname=m.join("/")}s=c>=0?t[c]:"/"}let a=kw(o,s),u=l&&l!=="/"&&l.endsWith("/"),d=(i||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}var un=e=>e.join("/").replace(/\/\/+/g,"/"),Pw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Nw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Tw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Aw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Gh=["POST","PUT","PATCH","DELETE"];new Set(Gh);var Dw=["GET",...Gh];new Set(Dw);var to=f.createContext(null);to.displayName="DataRouter";var Ql=f.createContext(null);Ql.displayName="DataRouterState";f.createContext(!1);var Zh=f.createContext({isTransitioning:!1});Zh.displayName="ViewTransition";var Iw=f.createContext(new Map);Iw.displayName="Fetchers";var Ow=f.createContext(null);Ow.displayName="Await";var Ut=f.createContext(null);Ut.displayName="Navigation";var si=f.createContext(null);si.displayName="Location";var en=f.createContext({outlet:null,matches:[],isDataRoute:!1});en.displayName="Route";var sc=f.createContext(null);sc.displayName="RouteError";function Mw(e,{relative:t}={}){Se(no(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(Ut),{hash:o,pathname:i,search:l}=ai(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:un([n,i])),r.createHref({pathname:s,search:l,hash:o})}function no(){return f.useContext(si)!=null}function Un(){return Se(no(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(si).location}var Jh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function qh(e){f.useContext(Ut).static||f.useLayoutEffect(e)}function em(){let{isDataRoute:e}=f.useContext(en);return e?Yw():Lw()}function Lw(){Se(no(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(to),{basename:t,navigator:n}=f.useContext(Ut),{matches:r}=f.useContext(en),{pathname:o}=Un(),i=JSON.stringify(ic(r)),l=f.useRef(!1);return qh(()=>{l.current=!0}),f.useCallback((a,u={})=>{if(Bt(l.current,Jh),!l.current)return;if(typeof a=="number"){n.go(a);return}let d=lc(a,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:un([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,o,e])}f.createContext(null);function ai(e,{relative:t}={}){let{matches:n}=f.useContext(en),{pathname:r}=Un(),o=JSON.stringify(ic(n));return f.useMemo(()=>lc(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function bw(e,t){return tm(e,t)}function tm(e,t,n,r,o){var p;Se(no(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=f.useContext(Ut),{matches:l}=f.useContext(en),s=l[l.length-1],a=s?s.params:{},u=s?s.pathname:"/",d=s?s.pathnameBase:"/",c=s&&s.route;{let v=c&&c.path||"";nm(u,!c||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${v}">) 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.
42
-
43
- Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let m=Un(),y;if(t){let v=typeof t=="string"?eo(t):t;Se(d==="/"||((p=v.pathname)==null?void 0:p.startsWith(d)),`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 "${d}" but pathname "${v.pathname}" was given in the \`location\` prop.`),y=v}else y=m;let w=y.pathname||"/",g=w;if(d!=="/"){let v=d.replace(/^\//,"").split("/");g="/"+w.replace(/^\//,"").split("/").slice(v.length).join("/")}let x=Yh(e,{pathname:g});Bt(c||x!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Bt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 h=zw(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:un([d,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?d:un([d,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),l,n,r,o);return t&&h?f.createElement(si.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},h):h}function Fw(){let e=Kw(),t=Aw(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:i},"ErrorBoundary")," or"," ",f.createElement("code",{style:i},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:o},n):null,l)}var jw=f.createElement(Fw,null),Vw=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?f.createElement(en.Provider,{value:this.props.routeContext},f.createElement(sc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $w({routeContext:e,match:t,children:n}){let r=f.useContext(to);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(en.Provider,{value:e},n)}function zw(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=n==null?void 0:n.errors;if(l!=null){let u=i.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);Se(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let s=!1,a=-1;if(n)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=u),d.route.id){let{loaderData:c,errors:m}=n,y=d.route.loader&&!c.hasOwnProperty(d.route.id)&&(!m||m[d.route.id]===void 0);if(d.route.lazy||y){s=!0,a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((u,d,c)=>{let m,y=!1,w=null,g=null;n&&(m=l&&d.route.id?l[d.route.id]:void 0,w=d.route.errorElement||jw,s&&(a<0&&c===0?(nm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,g=null):a===c&&(y=!0,g=d.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,c+1)),h=()=>{let p;return m?p=w:y?p=g:d.route.Component?p=f.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=u,f.createElement($w,{match:d,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||c===0)?f.createElement(Vw,{location:n.location,revalidation:n.revalidation,component:w,error:m,children:h(),routeContext:{outlet:null,matches:x,isDataRoute:!0},unstable_onError:r}):h()},null)}function ac(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bw(e){let t=f.useContext(to);return Se(t,ac(e)),t}function Uw(e){let t=f.useContext(Ql);return Se(t,ac(e)),t}function Hw(e){let t=f.useContext(en);return Se(t,ac(e)),t}function uc(e){let t=Hw(e),n=t.matches[t.matches.length-1];return Se(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ww(){return uc("useRouteId")}function Kw(){var r;let e=f.useContext(sc),t=Uw("useRouteError"),n=uc("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Yw(){let{router:e}=Bw("useNavigate"),t=uc("useNavigate"),n=f.useRef(!1);return qh(()=>{n.current=!0}),f.useCallback(async(o,i={})=>{Bt(n.current,Jh),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var Yd={};function nm(e,t,n){!t&&!Yd[e]&&(Yd[e]=!0,Bt(!1,n))}f.memo(Qw);function Qw({routes:e,future:t,state:n,unstable_onError:r}){return tm(e,void 0,n,r,t)}function pk({to:e,replace:t,state:n,relative:r}){Se(no(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=f.useContext(Ut);Bt(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=f.useContext(en),{pathname:l}=Un(),s=em(),a=lc(e,ic(i),l,r==="path"),u=JSON.stringify(a);return f.useEffect(()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})},[s,u,r,t,n]),null}function Xw(e){Se(!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 Gw({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){Se(!no(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=f.useMemo(()=>({basename:l,navigator:o,static:i,future:{}}),[l,o,i]);typeof n=="string"&&(n=eo(n));let{pathname:a="/",search:u="",hash:d="",state:c=null,key:m="default"}=n,y=f.useMemo(()=>{let w=hn(a,l);return w==null?null:{location:{pathname:w,search:u,hash:d,state:c,key:m},navigationType:r}},[l,a,u,d,c,m,r]);return Bt(y!=null,`<Router basename="${l}"> is not able to match the URL "${a}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:f.createElement(Ut.Provider,{value:s},f.createElement(si.Provider,{children:t,value:y}))}function hk({children:e,location:t}){return bw(Ga(e),t)}function Ga(e,t=[]){let n=[];return f.Children.forEach(e,(r,o)=>{if(!f.isValidElement(r))return;let i=[...t,o];if(r.type===f.Fragment){n.push.apply(n,Ga(r.props.children,i));return}Se(r.type===Xw,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Se(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Ga(r.props.children,i)),n.push(l)}),n}var Qi="get",Xi="application/x-www-form-urlencoded";function Xl(e){return e!=null&&typeof e.tagName=="string"}function Zw(e){return Xl(e)&&e.tagName.toLowerCase()==="button"}function Jw(e){return Xl(e)&&e.tagName.toLowerCase()==="form"}function qw(e){return Xl(e)&&e.tagName.toLowerCase()==="input"}function e1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function t1(e,t){return e.button===0&&(!t||t==="_self")&&!e1(e)}var Ai=null;function n1(){if(Ai===null)try{new FormData(document.createElement("form"),0),Ai=!1}catch{Ai=!0}return Ai}var r1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vs(e){return e!=null&&!r1.has(e)?(Bt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xi}"`),null):e}function o1(e,t){let n,r,o,i,l;if(Jw(e)){let s=e.getAttribute("action");r=s?hn(s,t):null,n=e.getAttribute("method")||Qi,o=Vs(e.getAttribute("enctype"))||Xi,i=new FormData(e)}else if(Zw(e)||qw(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?hn(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Qi,o=Vs(e.getAttribute("formenctype"))||Vs(s.getAttribute("enctype"))||Xi,i=new FormData(s,e),!n1()){let{name:u,type:d,value:c}=e;if(d==="image"){let m=u?`${u}.`:"";i.append(`${m}x`,"0"),i.append(`${m}y`,"0")}else u&&i.append(u,c)}}else{if(Xl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qi,r=null,o=Xi,l=e}return i&&o==="text/plain"&&(l=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function cc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function i1(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&hn(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function l1(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function s1(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function a1(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let l=await l1(i,n);return l.links?l.links():[]}return[]}));return f1(r.flat(1).filter(s1).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Qd(e,t,n,r,o,i){let l=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,s=(a,u)=>{var d;return n[u].pathname!==a.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return i==="assets"?t.filter((a,u)=>l(a,u)||s(a,u)):i==="data"?t.filter((a,u)=>{var c;let d=r.routes[a.route.id];if(!d||!d.hasLoader)return!1;if(l(a,u)||s(a,u))return!0;if(a.route.shouldRevalidate){let m=a.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function u1(e,t,{includeHydrateFallback:n}={}){return c1(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function c1(e){return[...new Set(e)]}function d1(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function f1(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(d1(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function rm(){let e=f.useContext(to);return cc(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function p1(){let e=f.useContext(Ql);return cc(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var dc=f.createContext(void 0);dc.displayName="FrameworkContext";function om(){let e=f.useContext(dc);return cc(e,"You must render this element inside a <HydratedRouter> element"),e}function h1(e,t){let n=f.useContext(dc),[r,o]=f.useState(!1),[i,l]=f.useState(!1),{onFocus:s,onBlur:a,onMouseEnter:u,onMouseLeave:d,onTouchStart:c}=t,m=f.useRef(null);f.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let g=h=>{h.forEach(p=>{l(p.isIntersecting)})},x=new IntersectionObserver(g,{threshold:.5});return m.current&&x.observe(m.current),()=>{x.disconnect()}}},[e]),f.useEffect(()=>{if(r){let g=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(g)}}},[r]);let y=()=>{o(!0)},w=()=>{o(!1),l(!1)};return n?e!=="intent"?[i,m,{}]:[i,m,{onFocus:yo(s,y),onBlur:yo(a,w),onMouseEnter:yo(u,y),onMouseLeave:yo(d,w),onTouchStart:yo(c,y)}]:[!1,m,{}]}function yo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function m1({page:e,...t}){let{router:n}=rm(),r=f.useMemo(()=>Yh(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(g1,{page:e,matches:r,...t}):null}function v1(e){let{manifest:t,routeModules:n}=om(),[r,o]=f.useState([]);return f.useEffect(()=>{let i=!1;return a1(e,t,n).then(l=>{i||o(l)}),()=>{i=!0}},[e,t,n]),r}function g1({page:e,matches:t,...n}){let r=Un(),{manifest:o,routeModules:i}=om(),{basename:l}=rm(),{loaderData:s,matches:a}=p1(),u=f.useMemo(()=>Qd(e,t,a,o,r,"data"),[e,t,a,o,r]),d=f.useMemo(()=>Qd(e,t,a,o,r,"assets"),[e,t,a,o,r]),c=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,g=!1;if(t.forEach(h=>{var v;let p=o.routes[h.route.id];!p||!p.hasLoader||(!u.some(C=>C.route.id===h.route.id)&&h.route.id in s&&((v=i[h.route.id])!=null&&v.shouldRevalidate)||p.hasClientLoader?g=!0:w.add(h.route.id))}),w.size===0)return[];let x=i1(e,l,"data");return g&&w.size>0&&x.searchParams.set("_routes",t.filter(h=>w.has(h.route.id)).map(h=>h.route.id).join(",")),[x.pathname+x.search]},[l,s,r,o,u,t,e,i]),m=f.useMemo(()=>u1(d,o),[d,o]),y=v1(d);return f.createElement(f.Fragment,null,c.map(w=>f.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),m.map(w=>f.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),y.map(({key:w,link:g})=>f.createElement("link",{key:w,nonce:n.nonce,...g})))}function y1(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var im=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{im&&(window.__reactRouterVersion="7.8.2")}catch{}function mk({basename:e,children:t,window:n}){let r=f.useRef();r.current==null&&(r.current=sw({window:n,v5Compat:!0}));let o=r.current,[i,l]=f.useState({action:o.action,location:o.location}),s=f.useCallback(a=>{f.startTransition(()=>l(a))},[l]);return f.useLayoutEffect(()=>o.listen(s),[o,s]),f.createElement(Gw,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sm=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:l,state:s,target:a,to:u,preventScrollReset:d,viewTransition:c,...m},y){let{basename:w}=f.useContext(Ut),g=typeof u=="string"&&lm.test(u),x,h=!1;if(typeof u=="string"&&g&&(x=u,im))try{let F=new URL(window.location.href),b=u.startsWith("//")?new URL(F.protocol+u):new URL(u),Y=hn(b.pathname,w);b.origin===F.origin&&Y!=null?u=Y+b.search+b.hash:h=!0}catch{Bt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let p=Mw(u,{relative:o}),[v,C,E]=h1(r,m),_=E1(u,{replace:l,state:s,target:a,preventScrollReset:d,relative:o,viewTransition:c});function k(F){t&&t(F),F.defaultPrevented||_(F)}let A=f.createElement("a",{...m,...E,href:x||p,onClick:h||i?t:k,ref:y1(y,C),target:a,"data-discover":!g&&n==="render"?"true":void 0});return v&&!g?f.createElement(f.Fragment,null,A,f.createElement(m1,{page:p})):A});sm.displayName="Link";var w1=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:l,viewTransition:s,children:a,...u},d){let c=ai(l,{relative:u.relative}),m=Un(),y=f.useContext(Ql),{navigator:w,basename:g}=f.useContext(Ut),x=y!=null&&P1(c)&&s===!0,h=w.encodeLocation?w.encodeLocation(c).pathname:c.pathname,p=m.pathname,v=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(p=p.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase()),v&&g&&(v=hn(v,g)||v);const C=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=p===h||!o&&p.startsWith(h)&&p.charAt(C)==="/",_=v!=null&&(v===h||!o&&v.startsWith(h)&&v.charAt(h.length)==="/"),k={isActive:E,isPending:_,isTransitioning:x},A=E?t:void 0,F;typeof r=="function"?F=r(k):F=[r,E?"active":null,_?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let b=typeof i=="function"?i(k):i;return f.createElement(sm,{...u,"aria-current":A,className:F,ref:d,style:b,to:l,viewTransition:s},typeof a=="function"?a(k):a)});w1.displayName="NavLink";var x1=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:l=Qi,action:s,onSubmit:a,relative:u,preventScrollReset:d,viewTransition:c,...m},y)=>{let w=_1(),g=R1(s,{relative:u}),x=l.toLowerCase()==="get"?"get":"post",h=typeof s=="string"&&lm.test(s),p=v=>{if(a&&a(v),v.defaultPrevented)return;v.preventDefault();let C=v.nativeEvent.submitter,E=(C==null?void 0:C.getAttribute("formmethod"))||l;w(C||v.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:c})};return f.createElement("form",{ref:y,method:x,action:g,onSubmit:r?a:p,...m,"data-discover":!h&&e==="render"?"true":void 0})});x1.displayName="Form";function S1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function am(e){let t=f.useContext(to);return Se(t,S1(e)),t}function E1(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:l}={}){let s=em(),a=Un(),u=ai(e,{relative:i});return f.useCallback(d=>{if(t1(d,t)){d.preventDefault();let c=n!==void 0?n:Jo(a)===Jo(u);s(e,{replace:c,state:r,preventScrollReset:o,relative:i,viewTransition:l})}},[a,s,u,n,r,t,e,o,i,l])}var C1=0,k1=()=>`__${String(++C1)}__`;function _1(){let{router:e}=am("useSubmit"),{basename:t}=f.useContext(Ut),n=Ww();return f.useCallback(async(r,o={})=>{let{action:i,method:l,encType:s,formData:a,body:u}=o1(r,t);if(o.navigate===!1){let d=o.fetcherKey||k1();await e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||l,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||l,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function R1(e,{relative:t}={}){let{basename:n}=f.useContext(Ut),r=f.useContext(en);Se(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ai(e||".",{relative:t})},l=Un();if(e==null){i.search=l.search;let s=new URLSearchParams(i.search),a=s.getAll("index");if(a.some(d=>d==="")){s.delete("index"),a.filter(c=>c).forEach(c=>s.append("index",c));let d=s.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:un([n,i.pathname])),Jo(i)}function P1(e,{relative:t}={}){let n=f.useContext(Zh);Se(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=am("useViewTransitionState"),o=ai(e,{relative:t});if(!n.isTransitioning)return!1;let i=hn(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=hn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return kl(o.pathname,l)!=null||kl(o.pathname,i)!=null}var N1=(e,t,n,r,o,i,l,s)=>{let a=document.documentElement,u=["light","dark"];function d(y){(Array.isArray(e)?e:[e]).forEach(w=>{let g=w==="class",x=g&&i?o.map(h=>i[h]||h):o;g?(a.classList.remove(...x),a.classList.add(i&&i[y]?i[y]:y)):a.setAttribute(w,y)}),c(y)}function c(y){s&&u.includes(y)&&(a.style.colorScheme=y)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let y=localStorage.getItem(t)||n,w=l&&y==="system"?m():y;d(w)}catch{}},T1=f.createContext(void 0),A1={setTheme:e=>{},themes:[]},vk=()=>{var e;return(e=f.useContext(T1))!=null?e:A1};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:l,themes:s,nonce:a,scriptProps:u})=>{let d=JSON.stringify([n,t,i,e,s,l,r,o]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${N1.toString()})(${d})`}})});function D1(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const I1=e=>{switch(e){case"success":return L1;case"info":return F1;case"warning":return b1;case"error":return j1;default:return null}},O1=Array(12).fill(0),M1=({visible:e,className:t})=>P.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},P.createElement("div",{className:"sonner-spinner"},O1.map((n,r)=>P.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),L1=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),b1=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),F1=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),j1=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),V1=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},P.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),P.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),$1=()=>{const[e,t]=P.useState(document.hidden);return P.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Za=1;class z1{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Za++,l=this.toasts.find(a=>a.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...t,id:i,title:r}),{...a,...t,id:i,dismissible:s,title:r}):a):this.addToast({title:r,...o,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,l;const s=o.then(async u=>{if(l=["resolve",u],P.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(U1(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,w=typeof c=="object"&&!P.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:m,...w})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,m=typeof n.description=="function"?await n.description(u):n.description,w=typeof c=="object"&&!P.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:m,...w})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,m=typeof n.description=="function"?await n.description(u):n.description,w=typeof c=="object"&&!P.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:m,...w})}}).catch(async u=>{if(l=["reject",u],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,y=typeof d=="object"&&!P.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...y})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),a=()=>new Promise((u,d)=>s.then(()=>l[0]==="reject"?d(l[1]):u(l[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Za++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ot=new z1,B1=(e,t)=>{const n=(t==null?void 0:t.id)||Za++;return ot.addToast({title:e,...t,id:n}),n},U1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",H1=B1,W1=()=>ot.toasts,K1=()=>ot.getActiveToasts(),gk=Object.assign(H1,{success:ot.success,info:ot.info,warning:ot.warning,error:ot.error,custom:ot.custom,message:ot.message,promise:ot.promise,dismiss:ot.dismiss,loading:ot.loading},{getHistory:W1,getToasts:K1});D1("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Di(e){return e.label!==void 0}const Y1=3,Q1="24px",X1="16px",Xd=4e3,G1=356,Z1=14,J1=45,q1=200;function Qt(...e){return e.filter(Boolean).join(" ")}function ex(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const tx=e=>{var t,n,r,o,i,l,s,a,u;const{invert:d,toast:c,unstyled:m,interacting:y,setHeights:w,visibleToasts:g,heights:x,index:h,toasts:p,expanded:v,removeToast:C,defaultRichColors:E,closeButton:_,style:k,cancelButtonStyle:A,actionButtonStyle:F,className:b="",descriptionClassName:Y="",duration:B,position:$,gap:Q,expandByDefault:J,classNames:j,icons:W,closeButtonAriaLabel:K="Close toast"}=e,[se,ce]=P.useState(null),[De,xt]=P.useState(null),[X,oe]=P.useState(!1),[ie,Re]=P.useState(!1),[U,H]=P.useState(!1),[pe,ee]=P.useState(!1),[te,Z]=P.useState(!1),[je,Ve]=P.useState(0),[Wt,Kt]=P.useState(0),dt=P.useRef(c.duration||B||Xd),io=P.useRef(null),$e=P.useRef(null),S=h===0,R=h+1<=g,T=c.type,L=c.dismissible!==!1,M=c.className||"",I=c.descriptionClassName||"",z=P.useMemo(()=>x.findIndex(G=>G.toastId===c.id)||0,[x,c.id]),ae=P.useMemo(()=>{var G;return(G=c.closeButton)!=null?G:_},[c.closeButton,_]),de=P.useMemo(()=>c.duration||B||Xd,[c.duration,B]),We=P.useRef(0),Tt=P.useRef(0),At=P.useRef(0),gn=P.useRef(null),[lo,so]=$.split("-"),ci=P.useMemo(()=>x.reduce((G,Le,Ke)=>Ke>=z?G:G+Le.height,0),[x,z]),ao=$1(),ds=c.invert||d,hr=T==="loading";Tt.current=P.useMemo(()=>z*Q+ci,[z,ci]),P.useEffect(()=>{dt.current=de},[de]),P.useEffect(()=>{oe(!0)},[]),P.useEffect(()=>{const G=$e.current;if(G){const Le=G.getBoundingClientRect().height;return Kt(Le),w(Ke=>[{toastId:c.id,height:Le,position:c.position},...Ke]),()=>w(Ke=>Ke.filter(ft=>ft.toastId!==c.id))}},[w,c.id]),P.useLayoutEffect(()=>{if(!X)return;const G=$e.current,Le=G.style.height;G.style.height="auto";const Ke=G.getBoundingClientRect().height;G.style.height=Le,Kt(Ke),w(ft=>ft.find(ze=>ze.toastId===c.id)?ft.map(ze=>ze.toastId===c.id?{...ze,height:Ke}:ze):[{toastId:c.id,height:Ke,position:c.position},...ft])},[X,c.title,c.description,w,c.id,c.jsx,c.action,c.cancel]);const yn=P.useCallback(()=>{Re(!0),Ve(Tt.current),w(G=>G.filter(Le=>Le.toastId!==c.id)),setTimeout(()=>{C(c)},q1)},[c,C,w,Tt]);P.useEffect(()=>{if(c.promise&&T==="loading"||c.duration===1/0||c.type==="loading")return;let G;return v||y||ao?(()=>{if(At.current<We.current){const ft=new Date().getTime()-We.current;dt.current=dt.current-ft}At.current=new Date().getTime()})():(()=>{dt.current!==1/0&&(We.current=new Date().getTime(),G=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),yn()},dt.current))})(),()=>clearTimeout(G)},[v,y,c,T,ao,yn]),P.useEffect(()=>{c.delete&&(yn(),c.onDismiss==null||c.onDismiss.call(c,c))},[yn,c.delete]);function xg(){var G;if(W!=null&&W.loading){var Le;return P.createElement("div",{className:Qt(j==null?void 0:j.loader,c==null||(Le=c.classNames)==null?void 0:Le.loader,"sonner-loader"),"data-visible":T==="loading"},W.loading)}return P.createElement(M1,{className:Qt(j==null?void 0:j.loader,c==null||(G=c.classNames)==null?void 0:G.loader),visible:T==="loading"})}const Sg=c.icon||(W==null?void 0:W[T])||I1(T);var Tc,Ac;return P.createElement("li",{tabIndex:0,ref:$e,className:Qt(b,M,j==null?void 0:j.toast,c==null||(t=c.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[T],c==null||(n=c.classNames)==null?void 0:n[T]),"data-sonner-toast":"","data-rich-colors":(Tc=c.richColors)!=null?Tc:E,"data-styled":!(c.jsx||c.unstyled||m),"data-mounted":X,"data-promise":!!c.promise,"data-swiped":te,"data-removed":ie,"data-visible":R,"data-y-position":lo,"data-x-position":so,"data-index":h,"data-front":S,"data-swiping":U,"data-dismissible":L,"data-type":T,"data-invert":ds,"data-swipe-out":pe,"data-swipe-direction":De,"data-expanded":!!(v||J&&X),"data-testid":c.testId,style:{"--index":h,"--toasts-before":h,"--z-index":p.length-h,"--offset":`${ie?je:Tt.current}px`,"--initial-height":J?"auto":`${Wt}px`,...k,...c.style},onDragEnd:()=>{H(!1),ce(null),gn.current=null},onPointerDown:G=>{G.button!==2&&(hr||!L||(io.current=new Date,Ve(Tt.current),G.target.setPointerCapture(G.pointerId),G.target.tagName!=="BUTTON"&&(H(!0),gn.current={x:G.clientX,y:G.clientY})))},onPointerUp:()=>{var G,Le,Ke;if(pe||!L)return;gn.current=null;const ft=Number(((G=$e.current)==null?void 0:G.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),di=Number(((Le=$e.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ze=new Date().getTime()-((Ke=io.current)==null?void 0:Ke.getTime()),St=se==="x"?ft:di,fi=Math.abs(St)/ze;if(Math.abs(St)>=J1||fi>.11){Ve(Tt.current),c.onDismiss==null||c.onDismiss.call(c,c),xt(se==="x"?ft>0?"right":"left":di>0?"down":"up"),yn(),ee(!0);return}else{var Dt,It;(Dt=$e.current)==null||Dt.style.setProperty("--swipe-amount-x","0px"),(It=$e.current)==null||It.style.setProperty("--swipe-amount-y","0px")}Z(!1),H(!1),ce(null)},onPointerMove:G=>{var Le,Ke,ft;if(!gn.current||!L||((Le=window.getSelection())==null?void 0:Le.toString().length)>0)return;const ze=G.clientY-gn.current.y,St=G.clientX-gn.current.x;var fi;const Dt=(fi=e.swipeDirections)!=null?fi:ex($);!se&&(Math.abs(St)>1||Math.abs(ze)>1)&&ce(Math.abs(St)>Math.abs(ze)?"x":"y");let It={x:0,y:0};const Dc=Kn=>1/(1.5+Math.abs(Kn)/20);if(se==="y"){if(Dt.includes("top")||Dt.includes("bottom"))if(Dt.includes("top")&&ze<0||Dt.includes("bottom")&&ze>0)It.y=ze;else{const Kn=ze*Dc(ze);It.y=Math.abs(Kn)<Math.abs(ze)?Kn:ze}}else if(se==="x"&&(Dt.includes("left")||Dt.includes("right")))if(Dt.includes("left")&&St<0||Dt.includes("right")&&St>0)It.x=St;else{const Kn=St*Dc(St);It.x=Math.abs(Kn)<Math.abs(St)?Kn:St}(Math.abs(It.x)>0||Math.abs(It.y)>0)&&Z(!0),(Ke=$e.current)==null||Ke.style.setProperty("--swipe-amount-x",`${It.x}px`),(ft=$e.current)==null||ft.style.setProperty("--swipe-amount-y",`${It.y}px`)}},ae&&!c.jsx&&T!=="loading"?P.createElement("button",{"aria-label":K,"data-disabled":hr,"data-close-button":!0,onClick:hr||!L?()=>{}:()=>{yn(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Qt(j==null?void 0:j.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Ac=W==null?void 0:W.close)!=null?Ac:V1):null,(T||c.icon||c.promise)&&c.icon!==null&&((W==null?void 0:W[T])!==null||c.icon)?P.createElement("div",{"data-icon":"",className:Qt(j==null?void 0:j.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||xg():null,c.type!=="loading"?Sg:null):null,P.createElement("div",{"data-content":"",className:Qt(j==null?void 0:j.content,c==null||(i=c.classNames)==null?void 0:i.content)},P.createElement("div",{"data-title":"",className:Qt(j==null?void 0:j.title,c==null||(l=c.classNames)==null?void 0:l.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?P.createElement("div",{"data-description":"",className:Qt(Y,I,j==null?void 0:j.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),P.isValidElement(c.cancel)?c.cancel:c.cancel&&Di(c.cancel)?P.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||A,onClick:G=>{Di(c.cancel)&&L&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,G),yn())},className:Qt(j==null?void 0:j.cancelButton,c==null||(a=c.classNames)==null?void 0:a.cancelButton)},c.cancel.label):null,P.isValidElement(c.action)?c.action:c.action&&Di(c.action)?P.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||F,onClick:G=>{Di(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,G),!G.defaultPrevented&&yn())},className:Qt(j==null?void 0:j.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Gd(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function nx(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,l=i?"--mobile-offset":"--offset",s=i?X1:Q1;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${l}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${l}-${u}`]=s:n[`${l}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(s)}),n}const yk=P.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:l=["altKey","KeyT"],expand:s,closeButton:a,className:u,offset:d,mobileOffset:c,theme:m="light",richColors:y,duration:w,style:g,visibleToasts:x=Y1,toastOptions:h,dir:p=Gd(),gap:v=Z1,icons:C,containerAriaLabel:E="Notifications"}=t,[_,k]=P.useState([]),A=P.useMemo(()=>r?_.filter(X=>X.toasterId===r):_.filter(X=>!X.toasterId),[_,r]),F=P.useMemo(()=>Array.from(new Set([i].concat(A.filter(X=>X.position).map(X=>X.position)))),[A,i]),[b,Y]=P.useState([]),[B,$]=P.useState(!1),[Q,J]=P.useState(!1),[j,W]=P.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=P.useRef(null),se=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),ce=P.useRef(null),De=P.useRef(!1),xt=P.useCallback(X=>{k(oe=>{var ie;return(ie=oe.find(Re=>Re.id===X.id))!=null&&ie.delete||ot.dismiss(X.id),oe.filter(({id:Re})=>Re!==X.id)})},[]);return P.useEffect(()=>ot.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{k(oe=>oe.map(ie=>ie.id===X.id?{...ie,delete:!0}:ie))});return}setTimeout(()=>{Kh.flushSync(()=>{k(oe=>{const ie=oe.findIndex(Re=>Re.id===X.id);return ie!==-1?[...oe.slice(0,ie),{...oe[ie],...X},...oe.slice(ie+1)]:[X,...oe]})})})}),[_]),P.useEffect(()=>{if(m!=="system"){W(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:oe})=>{W(oe?"dark":"light")})}catch{X.addListener(({matches:ie})=>{try{W(ie?"dark":"light")}catch(Re){console.error(Re)}})}},[m]),P.useEffect(()=>{_.length<=1&&$(!1)},[_]),P.useEffect(()=>{const X=oe=>{var ie;if(l.every(H=>oe[H]||oe.code===H)){var U;$(!0),(U=K.current)==null||U.focus()}oe.code==="Escape"&&(document.activeElement===K.current||(ie=K.current)!=null&&ie.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[l]),P.useEffect(()=>{if(K.current)return()=>{ce.current&&(ce.current.focus({preventScroll:!0}),ce.current=null,De.current=!1)}},[K.current]),P.createElement("section",{ref:n,"aria-label":`${E} ${se}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},F.map((X,oe)=>{var ie;const[Re,U]=X.split("-");return A.length?P.createElement("ol",{key:X,dir:p==="auto"?Gd():p,tabIndex:-1,ref:K,className:u,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":Re,"data-x-position":U,style:{"--front-toast-height":`${((ie=b[0])==null?void 0:ie.height)||0}px`,"--width":`${G1}px`,"--gap":`${v}px`,...g,...nx(d,c)},onBlur:H=>{De.current&&!H.currentTarget.contains(H.relatedTarget)&&(De.current=!1,ce.current&&(ce.current.focus({preventScroll:!0}),ce.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||De.current||(De.current=!0,ce.current=H.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{Q||$(!1)},onDragEnd:()=>$(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},A.filter(H=>!H.position&&oe===0||H.position===X).map((H,pe)=>{var ee,te;return P.createElement(tx,{key:H.id,icons:C,index:pe,toast:H,defaultRichColors:y,duration:(ee=h==null?void 0:h.duration)!=null?ee:w,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:o,visibleToasts:x,closeButton:(te=h==null?void 0:h.closeButton)!=null?te:a,interacting:Q,position:X,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,closeButtonAriaLabel:h==null?void 0:h.closeButtonAriaLabel,removeToast:xt,toasts:A.filter(Z=>Z.position==H.position),heights:b.filter(Z=>Z.position==H.position),setHeights:Y,expandByDefault:s,gap:v,expanded:B,swipeDirections:t.swipeDirections})})):null}))}),Zd=e=>{let t;const n=new Set,r=(u,d)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const m=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(y=>y(t,m))}},o=()=>t,s={setState:r,getState:o,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=t=e(r,o,s);return s},rx=e=>e?Zd(e):Zd,ox=e=>e;function ix(e,t=ox){const n=P.useSyncExternalStore(e.subscribe,P.useCallback(()=>t(e.getState()),[e,t]),P.useCallback(()=>t(e.getInitialState()),[e,t]));return P.useDebugValue(n),n}const lx=e=>{const t=rx(e),n=r=>ix(t,r);return Object.assign(n,t),n},wk=e=>lx,Jd={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},qo=new Map,Ii=e=>{const t=qo.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},sx=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=qo.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return qo.set(n.name,o),{type:"tracked",store:e,...o}},ax=(e,t)=>{if(t===void 0)return;const n=qo.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&qo.delete(e))},ux=e=>{var t,n;if(!e)return;const r=e.split(`
44
- `),o=r.findIndex(l=>l.includes("api.setState"));if(o<0)return;const i=((t=r[o+1])==null?void 0:t.trim())||"";return(n=/.+ (.+) .+/.exec(i))==null?void 0:n[1]},cx=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:l,store:s,...a}=t;let u;try{u=(i??(Jd?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,o);const{connection:d,...c}=sx(s,u,a);let m=!0;o.setState=(g,x,h)=>{const p=n(g,x);if(!m)return p;const v=h===void 0?{type:l||ux(new Error().stack)||"anonymous"}:typeof h=="string"?{type:h}:h;return s===void 0?(d==null||d.send(v,r()),p):(d==null||d.send({...v,type:`${s}/${v.type}`},{...Ii(a.name),[s]:o.getState()}),p)},o.devtools={cleanup:()=>{d&&typeof d.unsubscribe=="function"&&d.unsubscribe(),ax(a.name,s)}};const y=(...g)=>{const x=m;m=!1,n(...g),m=x},w=e(o.setState,r,o);if(c.type==="untracked"?d==null||d.init(w):(c.stores[c.store]=o,d==null||d.init(Object.fromEntries(Object.entries(c.stores).map(([g,x])=>[g,g===c.store?w:x.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let g=!1;const x=o.dispatch;o.dispatch=(...h)=>{(Jd?"production":void 0)!=="production"&&h[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),x(...h)}}return d.subscribe(g=>{var x;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return $s(g.payload,h=>{if(h.type==="__setState"){if(s===void 0){y(h.state);return}Object.keys(h.state).length!==1&&console.error(`
45
- [zustand devtools middleware] Unsupported __setState action format.
46
- When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
47
- and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
48
- `);const p=h.state[s];if(p==null)return;JSON.stringify(o.getState())!==JSON.stringify(p)&&y(p);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(h)});case"DISPATCH":switch(g.payload.type){case"RESET":return y(w),s===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(Ii(a.name));case"COMMIT":if(s===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(Ii(a.name));case"ROLLBACK":return $s(g.state,h=>{if(s===void 0){y(h),d==null||d.init(o.getState());return}y(h[s]),d==null||d.init(Ii(a.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return $s(g.state,h=>{if(s===void 0){y(h);return}JSON.stringify(o.getState())!==JSON.stringify(h[s])&&y(h[s])});case"IMPORT_STATE":{const{nextLiftedState:h}=g.payload,p=(x=h.computedStates.slice(-1)[0])==null?void 0:x.state;if(!p)return;y(s===void 0?p:p[s]),d==null||d.send(null,h);return}case"PAUSE_RECORDING":return m=!m}return}}),w},xk=cx,$s=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},qd=e=>Symbol.iterator in e,ef=e=>"entries"in e,tf=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[o,i]of n)if(!r.has(o)||!Object.is(i,r.get(o)))return!1;return!0},dx=(e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let o=n.next(),i=r.next();for(;!o.done&&!i.done;){if(!Object.is(o.value,i.value))return!1;o=n.next(),i=r.next()}return!!o.done&&!!i.done};function fx(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:qd(e)&&qd(t)?ef(e)&&ef(t)?tf(e,t):dx(e,t):tf({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Sk(e){const t=P.useRef(void 0);return n=>{const r=e(n);return fx(t.current,r)?t.current:t.current=r}}/**
49
- * @license lucide-react v0.523.0 - ISC
50
- *
51
- * This source code is licensed under the ISC license.
52
- * See the LICENSE file in the root directory of this source tree.
53
- */const px=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),nf=e=>{const t=hx(e);return t.charAt(0).toUpperCase()+t.slice(1)},um=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),mx=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
54
- * @license lucide-react v0.523.0 - ISC
55
- *
56
- * This source code is licensed under the ISC license.
57
- * See the LICENSE file in the root directory of this source tree.
58
- */var vx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
59
- * @license lucide-react v0.523.0 - ISC
60
- *
61
- * This source code is licensed under the ISC license.
62
- * See the LICENSE file in the root directory of this source tree.
63
- */const gx=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...s},a)=>f.createElement("svg",{ref:a,...vx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:um("lucide",o),...!i&&!mx(s)&&{"aria-hidden":"true"},...s},[...l.map(([u,d])=>f.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
64
- * @license lucide-react v0.523.0 - ISC
65
- *
66
- * This source code is licensed under the ISC license.
67
- * See the LICENSE file in the root directory of this source tree.
68
- */const _e=(e,t)=>{const n=f.forwardRef(({className:r,...o},i)=>f.createElement(gx,{ref:i,iconNode:t,className:um(`lucide-${px(nf(e))}`,`lucide-${e}`,r),...o}));return n.displayName=nf(e),n};/**
69
- * @license lucide-react v0.523.0 - ISC
70
- *
71
- * This source code is licensed under the ISC license.
72
- * See the LICENSE file in the root directory of this source tree.
73
- */const yx=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"16",y2:"12",key:"1y1yb1"}],["line",{x1:"12",x2:"12.01",y1:"8",y2:"8",key:"110wyk"}]],Ek=_e("badge-info",yx);/**
74
- * @license lucide-react v0.523.0 - ISC
75
- *
76
- * This source code is licensed under the ISC license.
77
- * See the LICENSE file in the root directory of this source tree.
78
- */const wx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ck=_e("check",wx);/**
79
- * @license lucide-react v0.523.0 - ISC
80
- *
81
- * This source code is licensed under the ISC license.
82
- * See the LICENSE file in the root directory of this source tree.
83
- */const xx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],kk=_e("chevron-down",xx);/**
84
- * @license lucide-react v0.523.0 - ISC
85
- *
86
- * This source code is licensed under the ISC license.
87
- * See the LICENSE file in the root directory of this source tree.
88
- */const Sx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_k=_e("chevron-left",Sx);/**
89
- * @license lucide-react v0.523.0 - ISC
90
- *
91
- * This source code is licensed under the ISC license.
92
- * See the LICENSE file in the root directory of this source tree.
93
- */const Ex=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Rk=_e("chevron-right",Ex);/**
94
- * @license lucide-react v0.523.0 - ISC
95
- *
96
- * This source code is licensed under the ISC license.
97
- * See the LICENSE file in the root directory of this source tree.
98
- */const Cx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Pk=_e("chevron-up",Cx);/**
99
- * @license lucide-react v0.523.0 - ISC
100
- *
101
- * This source code is licensed under the ISC license.
102
- * See the LICENSE file in the root directory of this source tree.
103
- */const kx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Nk=_e("circle-alert",kx);/**
104
- * @license lucide-react v0.523.0 - ISC
105
- *
106
- * This source code is licensed under the ISC license.
107
- * See the LICENSE file in the root directory of this source tree.
108
- */const _x=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],Tk=_e("coffee",_x);/**
109
- * @license lucide-react v0.523.0 - ISC
110
- *
111
- * This source code is licensed under the ISC license.
112
- * See the LICENSE file in the root directory of this source tree.
113
- */const Rx=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ak=_e("copy",Rx);/**
114
- * @license lucide-react v0.523.0 - ISC
115
- *
116
- * This source code is licensed under the ISC license.
117
- * See the LICENSE file in the root directory of this source tree.
118
- */const Px=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Dk=_e("github",Px);/**
119
- * @license lucide-react v0.523.0 - ISC
120
- *
121
- * This source code is licensed under the ISC license.
122
- * See the LICENSE file in the root directory of this source tree.
123
- */const Nx=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Ik=_e("layout-dashboard",Nx);/**
124
- * @license lucide-react v0.523.0 - ISC
125
- *
126
- * This source code is licensed under the ISC license.
127
- * See the LICENSE file in the root directory of this source tree.
128
- */const Tx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ok=_e("loader-circle",Tx);/**
129
- * @license lucide-react v0.523.0 - ISC
130
- *
131
- * This source code is licensed under the ISC license.
132
- * See the LICENSE file in the root directory of this source tree.
133
- */const Ax=[["path",{d:"M5 12h14",key:"1ays0h"}]],Mk=_e("minus",Ax);/**
134
- * @license lucide-react v0.523.0 - ISC
135
- *
136
- * This source code is licensed under the ISC license.
137
- * See the LICENSE file in the root directory of this source tree.
138
- */const Dx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Lk=_e("panel-left",Dx);/**
139
- * @license lucide-react v0.523.0 - ISC
140
- *
141
- * This source code is licensed under the ISC license.
142
- * See the LICENSE file in the root directory of this source tree.
143
- */const Ix=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],bk=_e("plus",Ix);/**
144
- * @license lucide-react v0.523.0 - ISC
145
- *
146
- * This source code is licensed under the ISC license.
147
- * See the LICENSE file in the root directory of this source tree.
148
- */const Ox=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Fk=_e("power",Ox);/**
149
- * @license lucide-react v0.523.0 - ISC
150
- *
151
- * This source code is licensed under the ISC license.
152
- * See the LICENSE file in the root directory of this source tree.
153
- */const Mx=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],jk=_e("refresh-cw",Mx);/**
154
- * @license lucide-react v0.523.0 - ISC
155
- *
156
- * This source code is licensed under the ISC license.
157
- * See the LICENSE file in the root directory of this source tree.
158
- */const Lx=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Vk=_e("settings",Lx);/**
159
- * @license lucide-react v0.523.0 - ISC
160
- *
161
- * This source code is licensed under the ISC license.
162
- * See the LICENSE file in the root directory of this source tree.
163
- */const bx=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],$k=_e("trash-2",bx);/**
164
- * @license lucide-react v0.523.0 - ISC
165
- *
166
- * This source code is licensed under the ISC license.
167
- * See the LICENSE file in the root directory of this source tree.
168
- */const Fx=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],zk=_e("trash",Fx);/**
169
- * @license lucide-react v0.523.0 - ISC
170
- *
171
- * This source code is licensed under the ISC license.
172
- * See the LICENSE file in the root directory of this source tree.
173
- */const jx=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],Bk=_e("workflow",jx);/**
174
- * @license lucide-react v0.523.0 - ISC
175
- *
176
- * This source code is licensed under the ISC license.
177
- * See the LICENSE file in the root directory of this source tree.
178
- */const Vx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],Uk=_e("wrench",Vx);/**
179
- * @license lucide-react v0.523.0 - ISC
180
- *
181
- * This source code is licensed under the ISC license.
182
- * See the LICENSE file in the root directory of this source tree.
183
- */const $x=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Hk=_e("x",$x);function rf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cm(...e){return t=>{let n=!1;const r=e.map(o=>{const i=rf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():rf(e[o],null)}}}}function he(...e){return f.useCallback(cm(...e),e)}function Qr(e){const t=zx(e),n=f.forwardRef((r,o)=>{const{children:i,...l}=r,s=f.Children.toArray(i),a=s.find(Bx);if(a){const u=a.props.children,d=s.map(c=>c===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return N.jsx(t,{...l,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return N.jsx(t,{...l,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Wk=Qr("Slot");function zx(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const l=Hx(o),s=Ux(i,o.props);return o.type!==f.Fragment&&(s.ref=r?cm(r,l):l),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dm=Symbol("radix.slottable");function fm(e){const t=({children:n})=>N.jsx(N.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=dm,t}function Bx(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dm}function Ux(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const a=i(...s);return o(...s),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Hx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=Wx.reduce((e,t)=>{const n=Qr(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:l,...s}=o,a=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),N.jsx(a,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Kx(e,t){e&&qr.flushSync(()=>e.dispatchEvent(t))}var Yx="Separator",of="horizontal",Qx=["horizontal","vertical"],pm=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=of,...o}=e,i=Xx(r)?r:of,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return N.jsx(le.div,{"data-orientation":i,...s,...o,ref:t})});pm.displayName=Yx;function Xx(e){return Qx.includes(e)}var Kk=pm;function Gx(e,t){const n=f.createContext(t),r=i=>{const{children:l,...s}=i,a=f.useMemo(()=>s,Object.values(s));return N.jsx(n.Provider,{value:a,children:l})};r.displayName=e+"Provider";function o(i){const l=f.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function pr(e,t=[]){let n=[];function r(i,l){const s=f.createContext(l),a=n.length;n=[...n,l];const u=c=>{var h;const{scope:m,children:y,...w}=c,g=((h=m==null?void 0:m[e])==null?void 0:h[a])||s,x=f.useMemo(()=>w,Object.values(w));return N.jsx(g.Provider,{value:x,children:y})};u.displayName=i+"Provider";function d(c,m){var g;const y=((g=m==null?void 0:m[e])==null?void 0:g[a])||s,w=f.useContext(y);if(w)return w;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(l=>f.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Zx(o,...t)]}function Zx(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Ze=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Jx=Wf[" useId ".trim().toString()]||(()=>{}),qx=0;function tr(e){const[t,n]=f.useState(Jx());return Ze(()=>{n(r=>r??String(qx++))},[e]),e||(t?`radix-${t}`:"")}var eS=Wf[" useInsertionEffect ".trim().toString()]||Ze;function ei({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,l]=tS({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const c=d.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const u=f.useCallback(d=>{var c;if(s){const m=nS(d)?d(e):d;m!==e&&((c=l.current)==null||c.call(l,m))}else i(d)},[s,e,i,l]);return[a,u]}function tS({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return eS(()=>{i.current=t},[t]),f.useEffect(()=>{var l;o.current!==n&&((l=i.current)==null||l.call(i,n),o.current=n)},[n,o]),[n,r,i]}function nS(e){return typeof e=="function"}function sr(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function rS(e,t=globalThis==null?void 0:globalThis.document){const n=sr(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var oS="DismissableLayer",Ja="dismissableLayer.update",iS="dismissableLayer.pointerDownOutside",lS="dismissableLayer.focusOutside",lf,hm=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gl=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...a}=e,u=f.useContext(hm),[d,c]=f.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=f.useState({}),w=he(t,k=>c(k)),g=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=g.indexOf(x),p=d?g.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,C=p>=h,E=uS(k=>{const A=k.target,F=[...u.branches].some(b=>b.contains(A));!C||F||(o==null||o(k),l==null||l(k),k.defaultPrevented||s==null||s())},m),_=cS(k=>{const A=k.target;[...u.branches].some(b=>b.contains(A))||(i==null||i(k),l==null||l(k),k.defaultPrevented||s==null||s())},m);return rS(k=>{p===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&s&&(k.preventDefault(),s()))},m),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(lf=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),sf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=lf)}},[d,m,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),sf())},[d,u]),f.useEffect(()=>{const k=()=>y({});return document.addEventListener(Ja,k),()=>document.removeEventListener(Ja,k)},[]),N.jsx(le.div,{...a,ref:w,style:{pointerEvents:v?C?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,_.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,E.onPointerDownCapture)})});Gl.displayName=oS;var sS="DismissableLayerBranch",aS=f.forwardRef((e,t)=>{const n=f.useContext(hm),r=f.useRef(null),o=he(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),N.jsx(le.div,{...e,ref:o})});aS.displayName=sS;function uS(e,t=globalThis==null?void 0:globalThis.document){const n=sr(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let a=function(){mm(iS,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cS(e,t=globalThis==null?void 0:globalThis.document){const n=sr(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&mm(lS,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sf(){const e=new CustomEvent(Ja);document.dispatchEvent(e)}function mm(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kx(o,i):o.dispatchEvent(i)}var zs="focusScope.autoFocusOnMount",Bs="focusScope.autoFocusOnUnmount",af={bubbles:!1,cancelable:!0},dS="FocusScope",fc=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[s,a]=f.useState(null),u=sr(o),d=sr(i),c=f.useRef(null),m=he(t,g=>a(g)),y=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let g=function(v){if(y.paused||!s)return;const C=v.target;s.contains(C)?c.current=C:Sn(c.current,{select:!0})},x=function(v){if(y.paused||!s)return;const C=v.relatedTarget;C!==null&&(s.contains(C)||Sn(c.current,{select:!0}))},h=function(v){if(document.activeElement===document.body)for(const E of v)E.removedNodes.length>0&&Sn(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",x);const p=new MutationObserver(h);return s&&p.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x),p.disconnect()}}},[r,s,y.paused]),f.useEffect(()=>{if(s){cf.add(y);const g=document.activeElement;if(!s.contains(g)){const h=new CustomEvent(zs,af);s.addEventListener(zs,u),s.dispatchEvent(h),h.defaultPrevented||(fS(gS(vm(s)),{select:!0}),document.activeElement===g&&Sn(s))}return()=>{s.removeEventListener(zs,u),setTimeout(()=>{const h=new CustomEvent(Bs,af);s.addEventListener(Bs,d),s.dispatchEvent(h),h.defaultPrevented||Sn(g??document.body,{select:!0}),s.removeEventListener(Bs,d),cf.remove(y)},0)}}},[s,u,d,y]);const w=f.useCallback(g=>{if(!n&&!r||y.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,h=document.activeElement;if(x&&h){const p=g.currentTarget,[v,C]=pS(p);v&&C?!g.shiftKey&&h===C?(g.preventDefault(),n&&Sn(v,{select:!0})):g.shiftKey&&h===v&&(g.preventDefault(),n&&Sn(C,{select:!0})):h===p&&g.preventDefault()}},[n,r,y.paused]);return N.jsx(le.div,{tabIndex:-1,...l,ref:m,onKeyDown:w})});fc.displayName=dS;function fS(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Sn(r,{select:t}),document.activeElement!==n)return}function pS(e){const t=vm(e),n=uf(t,e),r=uf(t.reverse(),e);return[n,r]}function vm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function uf(e,t){for(const n of e)if(!hS(n,{upTo:t}))return n}function hS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mS(e){return e instanceof HTMLInputElement&&"select"in e}function Sn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mS(e)&&t&&e.select()}}var cf=vS();function vS(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=df(e,t),e.unshift(t)},remove(t){var n;e=df(e,t),(n=e[0])==null||n.resume()}}}function df(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function gS(e){return e.filter(t=>t.tagName!=="A")}var yS="Portal",pc=f.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=f.useState(!1);Ze(()=>i(!0),[]);const l=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return l?Kh.createPortal(N.jsx(le.div,{...r,ref:t}),l):null});pc.displayName=yS;function wS(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var ro=e=>{const{present:t,children:n}=e,r=xS(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=he(r.ref,SS(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};ro.displayName="Presence";function xS(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),l=e?"mounted":"unmounted",[s,a]=wS(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=Oi(r.current);i.current=s==="mounted"?u:"none"},[s]),Ze(()=>{const u=r.current,d=o.current;if(d!==e){const m=i.current,y=Oi(u);e?a("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&m!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Ze(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=y=>{const g=Oi(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&g&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=y=>{y.target===t&&(i.current=Oi(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Oi(e){return(e==null?void 0:e.animationName)||"none"}function SS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Us=0;function gm(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ff()),document.body.insertAdjacentElement("beforeend",e[1]??ff()),Us++,()=>{Us===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Us--}},[])}function ff(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Gi="right-scroll-bar-position",Zi="width-before-scroll-bar",ES="with-scroll-bars-hidden",CS="--removed-body-scroll-bar-size";function Hs(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kS(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var _S=typeof window<"u"?f.useLayoutEffect:f.useEffect,pf=new WeakMap;function RS(e,t){var n=kS(null,function(r){return e.forEach(function(o){return Hs(o,r)})});return _S(function(){var r=pf.get(n);if(r){var o=new Set(r),i=new Set(e),l=n.current;o.forEach(function(s){i.has(s)||Hs(s,null)}),i.forEach(function(s){o.has(s)||Hs(s,l)})}pf.set(n,e)},[e]),n}function PS(e){return e}function NS(e,t){t===void 0&&(t=PS);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(s){return s!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var s=n;n=[],s.forEach(i),l=n}var a=function(){var d=l;l=[],d.forEach(i)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return o}function TS(e){e===void 0&&(e={});var t=NS(null);return t.options=kn({async:!0,ssr:!1},e),t}var ym=function(e){var t=e.sideCar,n=If(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,kn({},n))};ym.isSideCarExport=!0;function AS(e,t){return e.useMedium(t),ym}var wm=TS(),Ws=function(){},Zl=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Ws,onWheelCapture:Ws,onTouchMoveCapture:Ws}),o=r[0],i=r[1],l=e.forwardProps,s=e.children,a=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,m=e.sideCar,y=e.noRelative,w=e.noIsolation,g=e.inert,x=e.allowPinchZoom,h=e.as,p=h===void 0?"div":h,v=e.gapMode,C=If(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,_=RS([n,t]),k=kn(kn({},C),o);return f.createElement(f.Fragment,null,d&&f.createElement(E,{sideCar:wm,removeScrollBar:u,shards:c,noRelative:y,noIsolation:w,inert:g,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:v}),l?f.cloneElement(f.Children.only(s),kn(kn({},k),{ref:_})):f.createElement(p,kn({},k,{className:a,ref:_}),s))});Zl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zl.classNames={fullWidth:Zi,zeroRight:Gi};function DS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Cg();return t&&e.setAttribute("nonce",t),e}function IS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function OS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var MS=function(){var e=0,t=null;return{add:function(n){e==0&&(t=DS())&&(IS(t,n),OS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},LS=function(){var e=MS();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xm=function(){var e=LS(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},bS={left:0,top:0,right:0,gap:0},Ks=function(e){return parseInt(e||"",10)||0},FS=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ks(n),Ks(r),Ks(o)]},jS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bS;var t=FS(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},VS=xm(),jr="data-scroll-locked",$S=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),`
184
- .`.concat(ES,` {
185
- overflow: hidden `).concat(r,`;
186
- padding-right: `).concat(s,"px ").concat(r,`;
187
- }
188
- body[`).concat(jr,`] {
189
- overflow: hidden `).concat(r,`;
190
- overscroll-behavior: contain;
191
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
192
- padding-left: `.concat(o,`px;
193
- padding-top: `).concat(i,`px;
194
- padding-right: `).concat(l,`px;
195
- margin-left:0;
196
- margin-top:0;
197
- margin-right: `).concat(s,"px ").concat(r,`;
198
- `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
199
- }
200
-
201
- .`).concat(Gi,` {
202
- right: `).concat(s,"px ").concat(r,`;
203
- }
204
-
205
- .`).concat(Zi,` {
206
- margin-right: `).concat(s,"px ").concat(r,`;
207
- }
208
-
209
- .`).concat(Gi," .").concat(Gi,` {
210
- right: 0 `).concat(r,`;
211
- }
212
-
213
- .`).concat(Zi," .").concat(Zi,` {
214
- margin-right: 0 `).concat(r,`;
215
- }
216
-
217
- body[`).concat(jr,`] {
218
- `).concat(CS,": ").concat(s,`px;
219
- }
220
- `)},hf=function(){var e=parseInt(document.body.getAttribute(jr)||"0",10);return isFinite(e)?e:0},zS=function(){f.useEffect(function(){return document.body.setAttribute(jr,(hf()+1).toString()),function(){var e=hf()-1;e<=0?document.body.removeAttribute(jr):document.body.setAttribute(jr,e.toString())}},[])},BS=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;zS();var i=f.useMemo(function(){return jS(o)},[o]);return f.createElement(VS,{styles:$S(i,!t,o,n?"":"!important")})},qa=!1;if(typeof window<"u")try{var Mi=Object.defineProperty({},"passive",{get:function(){return qa=!0,!0}});window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch{qa=!1}var vr=qa?{passive:!1}:!1,US=function(e){return e.tagName==="TEXTAREA"},Sm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!US(e)&&n[t]==="visible")},HS=function(e){return Sm(e,"overflowY")},WS=function(e){return Sm(e,"overflowX")},mf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Em(e,r);if(o){var i=Cm(e,r),l=i[1],s=i[2];if(l>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},KS=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},YS=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Em=function(e,t){return e==="v"?HS(t):WS(t)},Cm=function(e,t){return e==="v"?KS(t):YS(t)},QS=function(e,t){return e==="h"&&t==="rtl"?-1:1},XS=function(e,t,n,r,o){var i=QS(e,window.getComputedStyle(t).direction),l=i*r,s=n.target,a=t.contains(s),u=!1,d=l>0,c=0,m=0;do{if(!s)break;var y=Cm(e,s),w=y[0],g=y[1],x=y[2],h=g-x-i*w;(w||h)&&Em(e,s)&&(c+=h,m+=w);var p=s.parentNode;s=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(d&&Math.abs(c)<1||!d&&Math.abs(m)<1)&&(u=!0),u},Li=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vf=function(e){return[e.deltaX,e.deltaY]},gf=function(e){return e&&"current"in e?e.current:e},GS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ZS=function(e){return`
221
- .block-interactivity-`.concat(e,` {pointer-events: none;}
222
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
223
- `)},JS=0,gr=[];function qS(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(JS++)[0],i=f.useState(xm)[0],l=f.useRef(e);f.useEffect(function(){l.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=kg([e.lockRef.current],(e.shards||[]).map(gf),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!l.current.allowPinchZoom;var h=Li(g),p=n.current,v="deltaX"in g?g.deltaX:p[0]-h[0],C="deltaY"in g?g.deltaY:p[1]-h[1],E,_=g.target,k=Math.abs(v)>Math.abs(C)?"h":"v";if("touches"in g&&k==="h"&&_.type==="range")return!1;var A=mf(k,_);if(!A)return!0;if(A?E=k:(E=k==="v"?"h":"v",A=mf(k,_)),!A)return!1;if(!r.current&&"changedTouches"in g&&(v||C)&&(r.current=E),!E)return!0;var F=r.current||E;return XS(F,x,g,F==="h"?v:C)},[]),a=f.useCallback(function(g){var x=g;if(!(!gr.length||gr[gr.length-1]!==i)){var h="deltaY"in x?vf(x):Li(x),p=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&GS(E.delta,h)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var v=(l.current.shards||[]).map(gf).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=v.length>0?s(x,v[0]):!l.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=f.useCallback(function(g,x,h,p){var v={name:g,delta:x,target:h,should:p,shadowParent:eE(h)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(C){return C!==v})},1)},[]),d=f.useCallback(function(g){n.current=Li(g),r.current=void 0},[]),c=f.useCallback(function(g){u(g.type,vf(g),g.target,s(g,e.lockRef.current))},[]),m=f.useCallback(function(g){u(g.type,Li(g),g.target,s(g,e.lockRef.current))},[]);f.useEffect(function(){return gr.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:m}),document.addEventListener("wheel",a,vr),document.addEventListener("touchmove",a,vr),document.addEventListener("touchstart",d,vr),function(){gr=gr.filter(function(g){return g!==i}),document.removeEventListener("wheel",a,vr),document.removeEventListener("touchmove",a,vr),document.removeEventListener("touchstart",d,vr)}},[]);var y=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(i,{styles:ZS(o)}):null,y?f.createElement(BS,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function eE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const tE=AS(wm,qS);var hc=f.forwardRef(function(e,t){return f.createElement(Zl,kn({},e,{ref:t,sideCar:tE}))});hc.classNames=Zl.classNames;var Jl="Dialog",[km,_m]=pr(Jl),[nE,Ht]=km(Jl),Rm=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,s=f.useRef(null),a=f.useRef(null),[u,d]=ei({prop:r,defaultProp:o??!1,onChange:i,caller:Jl});return N.jsx(nE,{scope:t,triggerRef:s,contentRef:a,contentId:tr(),titleId:tr(),descriptionId:tr(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(c=>!c),[d]),modal:l,children:n})};Rm.displayName=Jl;var Pm="DialogTrigger",Nm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ht(Pm,n),i=he(t,o.triggerRef);return N.jsx(le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":gc(o.open),...r,ref:i,onClick:ne(e.onClick,o.onOpenToggle)})});Nm.displayName=Pm;var mc="DialogPortal",[rE,Tm]=km(mc,{forceMount:void 0}),Am=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Ht(mc,t);return N.jsx(rE,{scope:t,forceMount:n,children:f.Children.map(r,l=>N.jsx(ro,{present:n||i.open,children:N.jsx(pc,{asChild:!0,container:o,children:l})}))})};Am.displayName=mc;var _l="DialogOverlay",Dm=f.forwardRef((e,t)=>{const n=Tm(_l,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ht(_l,e.__scopeDialog);return i.modal?N.jsx(ro,{present:r||i.open,children:N.jsx(iE,{...o,ref:t})}):null});Dm.displayName=_l;var oE=Qr("DialogOverlay.RemoveScroll"),iE=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ht(_l,n);return N.jsx(hc,{as:oE,allowPinchZoom:!0,shards:[o.contentRef],children:N.jsx(le.div,{"data-state":gc(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ar="DialogContent",Im=f.forwardRef((e,t)=>{const n=Tm(ar,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ht(ar,e.__scopeDialog);return N.jsx(ro,{present:r||i.open,children:i.modal?N.jsx(lE,{...o,ref:t}):N.jsx(sE,{...o,ref:t})})});Im.displayName=ar;var lE=f.forwardRef((e,t)=>{const n=Ht(ar,e.__scopeDialog),r=f.useRef(null),o=he(t,n.contentRef,r);return f.useEffect(()=>{const i=r.current;if(i)return Of(i)},[]),N.jsx(Om,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ne(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0;(l.button===2||s)&&i.preventDefault()}),onFocusOutside:ne(e.onFocusOutside,i=>i.preventDefault())})}),sE=f.forwardRef((e,t)=>{const n=Ht(ar,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return N.jsx(Om,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,s;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var a,u;(a=e.onInteractOutside)==null||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Om=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,s=Ht(ar,n),a=f.useRef(null),u=he(t,a);return gm(),N.jsxs(N.Fragment,{children:[N.jsx(fc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:N.jsx(Gl,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":gc(s.open),...l,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),N.jsxs(N.Fragment,{children:[N.jsx(uE,{titleId:s.titleId}),N.jsx(dE,{contentRef:a,descriptionId:s.descriptionId})]})]})}),vc="DialogTitle",Mm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ht(vc,n);return N.jsx(le.h2,{id:o.titleId,...r,ref:t})});Mm.displayName=vc;var Lm="DialogDescription",bm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ht(Lm,n);return N.jsx(le.p,{id:o.descriptionId,...r,ref:t})});bm.displayName=Lm;var Fm="DialogClose",jm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ht(Fm,n);return N.jsx(le.button,{type:"button",...r,ref:t,onClick:ne(e.onClick,()=>o.onOpenChange(!1))})});jm.displayName=Fm;function gc(e){return e?"open":"closed"}var Vm="DialogTitleWarning",[aE,$m]=Gx(Vm,{contentName:ar,titleName:vc,docsSlug:"dialog"}),uE=({titleId:e})=>{const t=$m(Vm),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
224
-
225
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
226
-
227
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},cE="DialogDescriptionWarning",dE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$m(cE).contentName}}.`;return f.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},fE=Rm,pE=Nm,hE=Am,mE=Dm,vE=Im,gE=Mm,yE=bm,zm=jm,wE=typeof document<"u",xE=function(){},Ji=wE?f.useLayoutEffect:xE;function Rl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Rl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Rl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Bm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yf(e,t){const n=Bm(e);return Math.round(t*n)/n}function Ys(e){const t=f.useRef(e);return Ji(()=>{t.current=e}),t}function SE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[d,c]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=f.useState(r);Rl(m,r)||y(r);const[w,g]=f.useState(null),[x,h]=f.useState(null),p=f.useCallback(K=>{K!==_.current&&(_.current=K,g(K))},[]),v=f.useCallback(K=>{K!==k.current&&(k.current=K,h(K))},[]),C=i||w,E=l||x,_=f.useRef(null),k=f.useRef(null),A=f.useRef(d),F=a!=null,b=Ys(a),Y=Ys(o),B=Ys(u),$=f.useCallback(()=>{if(!_.current||!k.current)return;const K={placement:t,strategy:n,middleware:m};Y.current&&(K.platform=Y.current),_g(_.current,k.current,K).then(se=>{const ce={...se,isPositioned:B.current!==!1};Q.current&&!Rl(A.current,ce)&&(A.current=ce,qr.flushSync(()=>{c(ce)}))})},[m,t,n,Y,B]);Ji(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,c(K=>({...K,isPositioned:!1})))},[u]);const Q=f.useRef(!1);Ji(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Ji(()=>{if(C&&(_.current=C),E&&(k.current=E),C&&E){if(b.current)return b.current(C,E,$);$()}},[C,E,$,b,F]);const J=f.useMemo(()=>({reference:_,floating:k,setReference:p,setFloating:v}),[p,v]),j=f.useMemo(()=>({reference:C,floating:E}),[C,E]),W=f.useMemo(()=>{const K={position:n,left:0,top:0};if(!j.floating)return K;const se=yf(j.floating,d.x),ce=yf(j.floating,d.y);return s?{...K,transform:"translate("+se+"px, "+ce+"px)",...Bm(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:ce}},[n,s,j.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:$,refs:J,elements:j,floatingStyles:W}),[d,$,J,j,W])}const EE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Oc({element:r.current,padding:o}).fn(n):{}:r?Oc({element:r,padding:o}).fn(n):{}}}},CE=(e,t)=>({...Rg(e),options:[e,t]}),kE=(e,t)=>({...Pg(e),options:[e,t]}),_E=(e,t)=>({...Dg(e),options:[e,t]}),RE=(e,t)=>({...Ng(e),options:[e,t]}),PE=(e,t)=>({...Tg(e),options:[e,t]}),NE=(e,t)=>({...Ag(e),options:[e,t]}),TE=(e,t)=>({...EE(e),options:[e,t]});var AE="Arrow",Um=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return N.jsx(le.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:N.jsx("polygon",{points:"0,0 30,0 15,10"})})});Um.displayName=AE;var DE=Um;function Hm(e){const[t,n]=f.useState(void 0);return Ze(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var yc="Popper",[Wm,ql]=pr(yc),[IE,Km]=Wm(yc),Ym=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return N.jsx(IE,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ym.displayName=yc;var Qm="PopperAnchor",Xm=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Km(Qm,n),l=f.useRef(null),s=he(t,l),a=f.useRef(null);return f.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||l.current,u!==a.current&&i.onAnchorChange(a.current)}),r?null:N.jsx(le.div,{...o,ref:s})});Xm.displayName=Qm;var wc="PopperContent",[OE,ME]=Wm(wc),Gm=f.forwardRef((e,t)=>{var U,H,pe,ee,te,Z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:w,...g}=e,x=Km(wc,n),[h,p]=f.useState(null),v=he(t,je=>p(je)),[C,E]=f.useState(null),_=Hm(C),k=(_==null?void 0:_.width)??0,A=(_==null?void 0:_.height)??0,F=r+(i!=="center"?"-"+i:""),b=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Y=Array.isArray(u)?u:[u],B=Y.length>0,$={padding:b,boundary:Y.filter(bE),altBoundary:B},{refs:Q,floatingStyles:J,placement:j,isPositioned:W,middlewareData:K}=SE({strategy:"fixed",placement:F,whileElementsMounted:(...je)=>Ig(...je,{animationFrame:y==="always"}),elements:{reference:x.anchor},middleware:[CE({mainAxis:o+A,alignmentAxis:l}),a&&kE({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?_E():void 0,...$}),a&&RE({...$}),PE({...$,apply:({elements:je,rects:Ve,availableWidth:Wt,availableHeight:Kt})=>{const{width:dt,height:io}=Ve.reference,$e=je.floating.style;$e.setProperty("--radix-popper-available-width",`${Wt}px`),$e.setProperty("--radix-popper-available-height",`${Kt}px`),$e.setProperty("--radix-popper-anchor-width",`${dt}px`),$e.setProperty("--radix-popper-anchor-height",`${io}px`)}}),C&&TE({element:C,padding:s}),FE({arrowWidth:k,arrowHeight:A}),m&&NE({strategy:"referenceHidden",...$})]}),[se,ce]=qm(j),De=sr(w);Ze(()=>{W&&(De==null||De())},[W,De]);const xt=(U=K.arrow)==null?void 0:U.x,X=(H=K.arrow)==null?void 0:H.y,oe=((pe=K.arrow)==null?void 0:pe.centerOffset)!==0,[ie,Re]=f.useState();return Ze(()=>{h&&Re(window.getComputedStyle(h).zIndex)},[h]),N.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:W?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[(ee=K.transformOrigin)==null?void 0:ee.x,(te=K.transformOrigin)==null?void 0:te.y].join(" "),...((Z=K.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:N.jsx(OE,{scope:n,placedSide:se,onArrowChange:E,arrowX:xt,arrowY:X,shouldHideArrow:oe,children:N.jsx(le.div,{"data-side":se,"data-align":ce,...g,ref:v,style:{...g.style,animation:W?void 0:"none"}})})})});Gm.displayName=wc;var Zm="PopperArrow",LE={top:"bottom",right:"left",bottom:"top",left:"right"},Jm=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=ME(Zm,r),l=LE[i.placedSide];return N.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:N.jsx(DE,{...o,ref:n,style:{...o.style,display:"block"}})})});Jm.displayName=Zm;function bE(e){return e!==null}var FE=e=>({name:"transformOrigin",options:e,fn(t){var x,h,p;const{placement:n,rects:r,middlewareData:o}=t,l=((x=o.arrow)==null?void 0:x.centerOffset)!==0,s=l?0:e.arrowWidth,a=l?0:e.arrowHeight,[u,d]=qm(n),c={start:"0%",center:"50%",end:"100%"}[d],m=(((h=o.arrow)==null?void 0:h.x)??0)+s/2,y=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let w="",g="";return u==="bottom"?(w=l?c:`${m}px`,g=`${-a}px`):u==="top"?(w=l?c:`${m}px`,g=`${r.floating.height+a}px`):u==="right"?(w=`${-a}px`,g=l?c:`${y}px`):u==="left"&&(w=`${r.floating.width+a}px`,g=l?c:`${y}px`),{data:{x:w,y:g}}}});function qm(e){const[t,n="center"]=e.split("-");return[t,n]}var ev=Ym,tv=Xm,nv=Gm,rv=Jm,ov=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),jE="VisuallyHidden",iv=f.forwardRef((e,t)=>N.jsx(le.span,{...e,ref:t,style:{...ov,...e.style}}));iv.displayName=jE;var VE=iv,[es,Yk]=pr("Tooltip",[ql]),ts=ql(),lv="TooltipProvider",$E=700,eu="tooltip.open",[zE,xc]=es(lv),sv=e=>{const{__scopeTooltip:t,delayDuration:n=$E,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,l=f.useRef(!0),s=f.useRef(!1),a=f.useRef(0);return f.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),N.jsx(zE,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:f.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:i})};sv.displayName=lv;var ti="Tooltip",[BE,ns]=es(ti),av=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:l,delayDuration:s}=e,a=xc(ti,e.__scopeTooltip),u=ts(t),[d,c]=f.useState(null),m=tr(),y=f.useRef(0),w=l??a.disableHoverableContent,g=s??a.delayDuration,x=f.useRef(!1),[h,p]=ei({prop:r,defaultProp:o??!1,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(eu))):a.onClose(),i==null||i(k)},caller:ti}),v=f.useMemo(()=>h?x.current?"delayed-open":"instant-open":"closed",[h]),C=f.useCallback(()=>{window.clearTimeout(y.current),y.current=0,x.current=!1,p(!0)},[p]),E=f.useCallback(()=>{window.clearTimeout(y.current),y.current=0,p(!1)},[p]),_=f.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{x.current=!0,p(!0),y.current=0},g)},[g,p]);return f.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),N.jsx(ev,{...u,children:N.jsx(BE,{scope:t,contentId:m,open:h,stateAttribute:v,trigger:d,onTriggerChange:c,onTriggerEnter:f.useCallback(()=>{a.isOpenDelayedRef.current?_():C()},[a.isOpenDelayedRef,_,C]),onTriggerLeave:f.useCallback(()=>{w?E():(window.clearTimeout(y.current),y.current=0)},[E,w]),onOpen:C,onClose:E,disableHoverableContent:w,children:n})})};av.displayName=ti;var tu="TooltipTrigger",uv=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ns(tu,n),i=xc(tu,n),l=ts(n),s=f.useRef(null),a=he(t,s,o.onTriggerChange),u=f.useRef(!1),d=f.useRef(!1),c=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),N.jsx(tv,{asChild:!0,...l,children:N.jsx(le.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ne(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:ne(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ne(e.onBlur,o.onClose),onClick:ne(e.onClick,o.onClose)})})});uv.displayName=tu;var UE="TooltipPortal",[Qk,HE]=es(UE,{forceMount:void 0}),Xr="TooltipContent",cv=f.forwardRef((e,t)=>{const n=HE(Xr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=ns(Xr,e.__scopeTooltip);return N.jsx(ro,{present:r||l.open,children:l.disableHoverableContent?N.jsx(dv,{side:o,...i,ref:t}):N.jsx(WE,{side:o,...i,ref:t})})}),WE=f.forwardRef((e,t)=>{const n=ns(Xr,e.__scopeTooltip),r=xc(Xr,e.__scopeTooltip),o=f.useRef(null),i=he(t,o),[l,s]=f.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:c}=r,m=f.useCallback(()=>{s(null),c(!1)},[c]),y=f.useCallback((w,g)=>{const x=w.currentTarget,h={x:w.clientX,y:w.clientY},p=GE(h,x.getBoundingClientRect()),v=ZE(h,p),C=JE(g.getBoundingClientRect()),E=eC([...v,...C]);s(E),c(!0)},[c]);return f.useEffect(()=>()=>m(),[m]),f.useEffect(()=>{if(a&&d){const w=x=>y(x,d),g=x=>y(x,a);return a.addEventListener("pointerleave",w),d.addEventListener("pointerleave",g),()=>{a.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",g)}}},[a,d,y,m]),f.useEffect(()=>{if(l){const w=g=>{const x=g.target,h={x:g.clientX,y:g.clientY},p=(a==null?void 0:a.contains(x))||(d==null?void 0:d.contains(x)),v=!qE(h,l);p?m():v&&(m(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[a,d,l,u,m]),N.jsx(dv,{...e,ref:i})}),[KE,YE]=es(ti,{isInside:!1}),QE=fm("TooltipContent"),dv=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...s}=e,a=ns(Xr,n),u=ts(n),{onClose:d}=a;return f.useEffect(()=>(document.addEventListener(eu,d),()=>document.removeEventListener(eu,d)),[d]),f.useEffect(()=>{if(a.trigger){const c=m=>{const y=m.target;y!=null&&y.contains(a.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,d]),N.jsx(Gl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:N.jsxs(nv,{"data-state":a.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[N.jsx(QE,{children:r}),N.jsx(KE,{scope:n,isInside:!0,children:N.jsx(VE,{id:a.contentId,role:"tooltip",children:o||r})})]})})});cv.displayName=Xr;var fv="TooltipArrow",XE=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ts(n);return YE(fv,n).isInside?null:N.jsx(rv,{...o,...r,ref:t})});XE.displayName=fv;function GE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ZE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function JE(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function qE(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const s=t[i],a=t[l],u=s.x,d=s.y,c=a.x,m=a.y;d>r!=m>r&&n<(c-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function eC(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),tC(t)}function tC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Xk=sv,Gk=av,Zk=uv,Jk=cv,pv="AlertDialog",[nC,qk]=pr(pv,[_m]),vn=_m(),hv=e=>{const{__scopeAlertDialog:t,...n}=e,r=vn(t);return N.jsx(fE,{...r,...n,modal:!0})};hv.displayName=pv;var rC="AlertDialogTrigger",mv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=vn(n);return N.jsx(pE,{...o,...r,ref:t})});mv.displayName=rC;var oC="AlertDialogPortal",vv=e=>{const{__scopeAlertDialog:t,...n}=e,r=vn(t);return N.jsx(hE,{...r,...n})};vv.displayName=oC;var iC="AlertDialogOverlay",gv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=vn(n);return N.jsx(mE,{...o,...r,ref:t})});gv.displayName=iC;var Vr="AlertDialogContent",[lC,sC]=nC(Vr),aC=fm("AlertDialogContent"),yv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=vn(n),l=f.useRef(null),s=he(t,l),a=f.useRef(null);return N.jsx(aE,{contentName:Vr,titleName:wv,docsSlug:"alert-dialog",children:N.jsx(lC,{scope:n,cancelRef:a,children:N.jsxs(vE,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:ne(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=a.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[N.jsx(aC,{children:r}),N.jsx(cC,{contentRef:l})]})})})});yv.displayName=Vr;var wv="AlertDialogTitle",xv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=vn(n);return N.jsx(gE,{...o,...r,ref:t})});xv.displayName=wv;var Sv="AlertDialogDescription",Ev=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=vn(n);return N.jsx(yE,{...o,...r,ref:t})});Ev.displayName=Sv;var uC="AlertDialogAction",Cv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=vn(n);return N.jsx(zm,{...o,...r,ref:t})});Cv.displayName=uC;var kv="AlertDialogCancel",_v=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=sC(kv,n),i=vn(n),l=he(t,o);return N.jsx(zm,{...i,...r,ref:l})});_v.displayName=kv;var cC=({contentRef:e})=>{const t=`\`${Vr}\` requires a description for the component to be accessible for screen reader users.
228
-
229
- You can add a description to the \`${Vr}\` by passing a \`${Sv}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
230
-
231
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Vr}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
232
-
233
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},e_=hv,t_=mv,n_=vv,r_=gv,o_=yv,i_=Cv,l_=_v,s_=xv,a_=Ev,ui=e=>e.type==="checkbox",Jn=e=>e instanceof Date,et=e=>e==null;const Rv=e=>typeof e=="object";var Ae=e=>!et(e)&&!Array.isArray(e)&&Rv(e)&&!Jn(e),Pv=e=>Ae(e)&&e.target?ui(e.target)?e.target.checked:e.target.value:e,dC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Nv=(e,t)=>e.has(dC(t)),fC=e=>{const t=e.constructor&&e.constructor.prototype;return Ae(t)&&t.hasOwnProperty("isPrototypeOf")},Sc=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ge(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Sc&&(e instanceof Blob||r))&&(n||Ae(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!fC(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=ge(e[o]));else return e;return t}var rs=e=>/^\w*$/.test(e),ye=e=>e===void 0,os=e=>Array.isArray(e)?e.filter(Boolean):[],Ec=e=>os(e.replace(/["|']|\]/g,"").split(/\.|\[/)),O=(e,t,n)=>{if(!t||!Ae(e))return n;const r=(rs(t)?[t]:Ec(t)).reduce((o,i)=>et(o)?o:o[i],e);return ye(r)||r===e?ye(e[t])?n:e[t]:r},ht=e=>typeof e=="boolean",ue=(e,t,n)=>{let r=-1;const o=rs(t)?[t]:Ec(t),i=o.length,l=i-1;for(;++r<i;){const s=o[r];let a=n;if(r!==l){const u=e[s];a=Ae(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=a,e=e[s]}};const Pl={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},kt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},tn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Cc=P.createContext(null);Cc.displayName="HookFormContext";const is=()=>P.useContext(Cc),u_=e=>{const{children:t,...n}=e;return P.createElement(Cc.Provider,{value:n},t)};var Tv=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const l=i;return t._proxyFormState[l]!==kt.all&&(t._proxyFormState[l]=!r||kt.all),n&&(n[l]=!0),e[l]}});return o};const ls=typeof window<"u"?P.useLayoutEffect:P.useEffect;function pC(e){const t=is(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[l,s]=P.useState(n._formState),a=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ls(()=>n._subscribe({name:o,formState:a.current,exact:i,callback:u=>{!r&&s({...n._formState,...u})}}),[o,r,i]),P.useEffect(()=>{a.current.isValid&&n._setValid(!0)},[n]),P.useMemo(()=>Tv(l,n,a.current,!1),[l,n])}var Zt=e=>typeof e=="string",Av=(e,t,n,r,o)=>Zt(e)?(r&&t.watch.add(e),O(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),O(n,i))):(r&&(t.watchAll=!0),n),nu=e=>et(e)||!Rv(e);function on(e,t,n=new WeakSet){if(nu(e)||nu(t))return e===t;if(Jn(e)&&Jn(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const l=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Jn(l)&&Jn(s)||Ae(l)&&Ae(s)||Array.isArray(l)&&Array.isArray(s)?!on(l,s,n):l!==s)return!1}}return!0}function hC(e){const t=is(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:l,compute:s}=e||{},a=P.useRef(o),u=P.useRef(s),d=P.useRef(void 0);u.current=s;const c=P.useMemo(()=>n._getWatch(r,a.current),[n,r]),[m,y]=P.useState(u.current?u.current(c):c);return ls(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:w=>{if(!i){const g=Av(r,n._names,w.values||n._formValues,!1,a.current);if(u.current){const x=u.current(g);on(x,d.current)||(y(x),d.current=x)}else y(g)}}}),[n,i,r,l]),P.useEffect(()=>n._removeUnmounted()),m}function mC(e){const t=is(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:l}=e,s=Nv(o._names.array,n),a=P.useMemo(()=>O(o._formValues,n,O(o._defaultValues,n,l)),[o,n,l]),u=hC({control:o,name:n,defaultValue:a,exact:!0}),d=pC({control:o,name:n,exact:!0}),c=P.useRef(e),m=P.useRef(o.register(n,{...e.rules,value:u,...ht(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const y=P.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!O(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!O(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!O(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!O(d.validatingFields,n)},error:{enumerable:!0,get:()=>O(d.errors,n)}}),[d,n]),w=P.useCallback(p=>m.current.onChange({target:{value:Pv(p),name:n},type:Pl.CHANGE}),[n]),g=P.useCallback(()=>m.current.onBlur({target:{value:O(o._formValues,n),name:n},type:Pl.BLUR}),[n,o._formValues]),x=P.useCallback(p=>{const v=O(o._fields,n);v&&p&&(v._f.ref={focus:()=>p.focus&&p.focus(),select:()=>p.select&&p.select(),setCustomValidity:C=>p.setCustomValidity(C),reportValidity:()=>p.reportValidity()})},[o._fields,n]),h=P.useMemo(()=>({name:n,value:u,...ht(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:w,onBlur:g,ref:x}),[n,r,d.disabled,w,g,x,u]);return P.useEffect(()=>{const p=o._options.shouldUnregister||i;o.register(n,{...c.current.rules,...ht(c.current.disabled)?{disabled:c.current.disabled}:{}});const v=(C,E)=>{const _=O(o._fields,C);_&&_._f&&(_._f.mount=E)};if(v(n,!0),p){const C=ge(O(o._options.defaultValues,n));ue(o._defaultValues,n,C),ye(O(o._formValues,n))&&ue(o._formValues,n,C)}return!s&&o.register(n),()=>{(s?p&&!o._state.action:p)?o.unregister(n):v(n,!1)}},[n,o,s,i]),P.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),P.useMemo(()=>({field:h,formState:d,fieldState:y}),[h,d,y])}const c_=e=>e.render(mC(e));var kc=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},st=e=>Array.isArray(e)?e:[e],wf=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},Je=e=>Ae(e)&&!Object.keys(e).length,_c=e=>e.type==="file",jt=e=>typeof e=="function",Nl=e=>{if(!Sc)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Dv=e=>e.type==="select-multiple",Rc=e=>e.type==="radio",vC=e=>Rc(e)||ui(e),Qs=e=>Nl(e)&&e.isConnected;function gC(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ye(e)?r++:e[t[r++]];return e}function yC(e){for(const t in e)if(e.hasOwnProperty(t)&&!ye(e[t]))return!1;return!0}function Ne(e,t){const n=Array.isArray(t)?t:rs(t)?[t]:Ec(t),r=n.length===1?e:gC(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(Ae(r)&&Je(r)||Array.isArray(r)&&yC(r))&&Ne(e,n.slice(0,-1)),e}var Iv=e=>{for(const t in e)if(jt(e[t]))return!0;return!1};function Tl(e,t={}){const n=Array.isArray(e);if(Ae(e)||n)for(const r in e)Array.isArray(e[r])||Ae(e[r])&&!Iv(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Tl(e[r],t[r])):et(e[r])||(t[r]=!0);return t}function Ov(e,t,n){const r=Array.isArray(e);if(Ae(e)||r)for(const o in e)Array.isArray(e[o])||Ae(e[o])&&!Iv(e[o])?ye(t)||nu(n[o])?n[o]=Array.isArray(e[o])?Tl(e[o],[]):{...Tl(e[o])}:Ov(e[o],et(t)?{}:t[o],n[o]):n[o]=!on(e[o],t[o]);return n}var wo=(e,t)=>Ov(e,t,Tl(t));const xf={value:!1,isValid:!1},Sf={value:!0,isValid:!0};var Mv=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ye(e[0].attributes.value)?ye(e[0].value)||e[0].value===""?Sf:{value:e[0].value,isValid:!0}:Sf:xf}return xf},Lv=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ye(e)?e:t?e===""?NaN:e&&+e:n&&Zt(e)?new Date(e):r?r(e):e;const Ef={isValid:!1,value:null};var bv=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Ef):Ef;function Cf(e){const t=e.ref;return _c(t)?t.files:Rc(t)?bv(e.refs).value:Dv(t)?[...t.selectedOptions].map(({value:n})=>n):ui(t)?Mv(e.refs).value:Lv(ye(t.value)?e.ref.value:t.value,e)}var wC=(e,t,n,r)=>{const o={};for(const i of e){const l=O(t,i);l&&ue(o,i,l._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Al=e=>e instanceof RegExp,xo=e=>ye(e)?e:Al(e)?e.source:Ae(e)?Al(e.value)?e.value.source:e.value:e,Dr=e=>({isOnSubmit:!e||e===kt.onSubmit,isOnBlur:e===kt.onBlur,isOnChange:e===kt.onChange,isOnAll:e===kt.all,isOnTouch:e===kt.onTouched});const kf="AsyncFunction";var xC=e=>!!e&&!!e.validate&&!!(jt(e.validate)&&e.validate.constructor.name===kf||Ae(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===kf)),SC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ru=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const $r=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=O(e,o);if(i){const{_f:l,...s}=i;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],o)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if($r(s,t))break}else if(Ae(s)&&$r(s,t))break}}};function _f(e,t,n){const r=O(e,n);if(r||rs(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),l=O(t,i),s=O(e,i);if(l&&!Array.isArray(l)&&n!==i)return{name:n};if(s&&s.type)return{name:i,error:s};if(s&&s.root&&s.root.type)return{name:`${i}.root`,error:s.root};o.pop()}return{name:n}}var EC=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Je(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(l=>t[l]===(!r||kt.all))},CC=(e,t,n)=>!e||!t||e===t||st(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),kC=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,_C=(e,t)=>!os(O(e,t)).length&&Ne(e,t),Fv=(e,t,n)=>{const r=st(O(e,n));return ue(r,"root",t[n]),ue(e,n,r),e},qi=e=>Zt(e);function Rf(e,t,n="validate"){if(qi(e)||Array.isArray(e)&&e.every(qi)||ht(e)&&!e)return{type:n,message:qi(e)?e:"",ref:t}}var yr=e=>Ae(e)&&!Al(e)?e:{value:e,message:""},ou=async(e,t,n,r,o,i)=>{const{ref:l,refs:s,required:a,maxLength:u,minLength:d,min:c,max:m,pattern:y,validate:w,name:g,valueAsNumber:x,mount:h}=e._f,p=O(n,g);if(!h||t.has(g))return{};const v=s?s[0]:l,C=B=>{o&&v.reportValidity&&(v.setCustomValidity(ht(B)?"":B||""),v.reportValidity())},E={},_=Rc(l),k=ui(l),A=_||k,F=(x||_c(l))&&ye(l.value)&&ye(p)||Nl(l)&&l.value===""||p===""||Array.isArray(p)&&!p.length,b=kc.bind(null,g,r,E),Y=(B,$,Q,J=tn.maxLength,j=tn.minLength)=>{const W=B?$:Q;E[g]={type:B?J:j,message:W,ref:l,...b(B?J:j,W)}};if(i?!Array.isArray(p)||!p.length:a&&(!A&&(F||et(p))||ht(p)&&!p||k&&!Mv(s).isValid||_&&!bv(s).isValid)){const{value:B,message:$}=qi(a)?{value:!!a,message:a}:yr(a);if(B&&(E[g]={type:tn.required,message:$,ref:v,...b(tn.required,$)},!r))return C($),E}if(!F&&(!et(c)||!et(m))){let B,$;const Q=yr(m),J=yr(c);if(!et(p)&&!isNaN(p)){const j=l.valueAsNumber||p&&+p;et(Q.value)||(B=j>Q.value),et(J.value)||($=j<J.value)}else{const j=l.valueAsDate||new Date(p),W=ce=>new Date(new Date().toDateString()+" "+ce),K=l.type=="time",se=l.type=="week";Zt(Q.value)&&p&&(B=K?W(p)>W(Q.value):se?p>Q.value:j>new Date(Q.value)),Zt(J.value)&&p&&($=K?W(p)<W(J.value):se?p<J.value:j<new Date(J.value))}if((B||$)&&(Y(!!B,Q.message,J.message,tn.max,tn.min),!r))return C(E[g].message),E}if((u||d)&&!F&&(Zt(p)||i&&Array.isArray(p))){const B=yr(u),$=yr(d),Q=!et(B.value)&&p.length>+B.value,J=!et($.value)&&p.length<+$.value;if((Q||J)&&(Y(Q,B.message,$.message),!r))return C(E[g].message),E}if(y&&!F&&Zt(p)){const{value:B,message:$}=yr(y);if(Al(B)&&!p.match(B)&&(E[g]={type:tn.pattern,message:$,ref:l,...b(tn.pattern,$)},!r))return C($),E}if(w){if(jt(w)){const B=await w(p,n),$=Rf(B,v);if($&&(E[g]={...$,...b(tn.validate,$.message)},!r))return C($.message),E}else if(Ae(w)){let B={};for(const $ in w){if(!Je(B)&&!r)break;const Q=Rf(await w[$](p,n),v,$);Q&&(B={...Q,...b($,Q.message)},C(Q.message),r&&(E[g]=B))}if(!Je(B)&&(E[g]={ref:v,...B},!r))return E}}return C(!0),E};const RC={mode:kt.onSubmit,reValidateMode:kt.onChange,shouldFocusError:!0};function PC(e={}){let t={...RC,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:jt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Ae(t.defaultValues)||Ae(t.values)?ge(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:ge(o),l={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},a,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let c={...d};const m={array:wf(),state:wf()},y=t.criteriaMode===kt.all,w=S=>R=>{clearTimeout(u),u=setTimeout(S,R)},g=async S=>{if(!t.disabled&&(d.isValid||c.isValid||S)){const R=t.resolver?Je((await k()).errors):await F(r,!0);R!==n.isValid&&m.state.next({isValid:R})}},x=(S,R)=>{!t.disabled&&(d.isValidating||d.validatingFields||c.isValidating||c.validatingFields)&&((S||Array.from(s.mount)).forEach(T=>{T&&(R?ue(n.validatingFields,T,R):Ne(n.validatingFields,T))}),m.state.next({validatingFields:n.validatingFields,isValidating:!Je(n.validatingFields)}))},h=(S,R=[],T,L,M=!0,I=!0)=>{if(L&&T&&!t.disabled){if(l.action=!0,I&&Array.isArray(O(r,S))){const z=T(O(r,S),L.argA,L.argB);M&&ue(r,S,z)}if(I&&Array.isArray(O(n.errors,S))){const z=T(O(n.errors,S),L.argA,L.argB);M&&ue(n.errors,S,z),_C(n.errors,S)}if((d.touchedFields||c.touchedFields)&&I&&Array.isArray(O(n.touchedFields,S))){const z=T(O(n.touchedFields,S),L.argA,L.argB);M&&ue(n.touchedFields,S,z)}(d.dirtyFields||c.dirtyFields)&&(n.dirtyFields=wo(o,i)),m.state.next({name:S,isDirty:Y(S,R),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ue(i,S,R)},p=(S,R)=>{ue(n.errors,S,R),m.state.next({errors:n.errors})},v=S=>{n.errors=S,m.state.next({errors:n.errors,isValid:!1})},C=(S,R,T,L)=>{const M=O(r,S);if(M){const I=O(i,S,ye(T)?O(o,S):T);ye(I)||L&&L.defaultChecked||R?ue(i,S,R?I:Cf(M._f)):Q(S,I),l.mount&&g()}},E=(S,R,T,L,M)=>{let I=!1,z=!1;const ae={name:S};if(!t.disabled){if(!T||L){(d.isDirty||c.isDirty)&&(z=n.isDirty,n.isDirty=ae.isDirty=Y(),I=z!==ae.isDirty);const de=on(O(o,S),R);z=!!O(n.dirtyFields,S),de?Ne(n.dirtyFields,S):ue(n.dirtyFields,S,!0),ae.dirtyFields=n.dirtyFields,I=I||(d.dirtyFields||c.dirtyFields)&&z!==!de}if(T){const de=O(n.touchedFields,S);de||(ue(n.touchedFields,S,T),ae.touchedFields=n.touchedFields,I=I||(d.touchedFields||c.touchedFields)&&de!==T)}I&&M&&m.state.next(ae)}return I?ae:{}},_=(S,R,T,L)=>{const M=O(n.errors,S),I=(d.isValid||c.isValid)&&ht(R)&&n.isValid!==R;if(t.delayError&&T?(a=w(()=>p(S,T)),a(t.delayError)):(clearTimeout(u),a=null,T?ue(n.errors,S,T):Ne(n.errors,S)),(T?!on(M,T):M)||!Je(L)||I){const z={...L,...I&&ht(R)?{isValid:R}:{},errors:n.errors,name:S};n={...n,...z},m.state.next(z)}},k=async S=>{x(S,!0);const R=await t.resolver(i,t.context,wC(S||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(S),R},A=async S=>{const{errors:R}=await k(S);if(S)for(const T of S){const L=O(R,T);L?ue(n.errors,T,L):Ne(n.errors,T)}else n.errors=R;return R},F=async(S,R,T={valid:!0})=>{for(const L in S){const M=S[L];if(M){const{_f:I,...z}=M;if(I){const ae=s.array.has(I.name),de=M._f&&xC(M._f);de&&d.validatingFields&&x([L],!0);const We=await ou(M,s.disabled,i,y,t.shouldUseNativeValidation&&!R,ae);if(de&&d.validatingFields&&x([L]),We[I.name]&&(T.valid=!1,R))break;!R&&(O(We,I.name)?ae?Fv(n.errors,We,I.name):ue(n.errors,I.name,We[I.name]):Ne(n.errors,I.name))}!Je(z)&&await F(z,R,T)}}return T.valid},b=()=>{for(const S of s.unMount){const R=O(r,S);R&&(R._f.refs?R._f.refs.every(T=>!Qs(T)):!Qs(R._f.ref))&&U(S)}s.unMount=new Set},Y=(S,R)=>!t.disabled&&(S&&R&&ue(i,S,R),!on(ce(),o)),B=(S,R,T)=>Av(S,s,{...l.mount?i:ye(R)?o:Zt(S)?{[S]:R}:R},T,R),$=S=>os(O(l.mount?i:o,S,t.shouldUnregister?O(o,S,[]):[])),Q=(S,R,T={})=>{const L=O(r,S);let M=R;if(L){const I=L._f;I&&(!I.disabled&&ue(i,S,Lv(R,I)),M=Nl(I.ref)&&et(R)?"":R,Dv(I.ref)?[...I.ref.options].forEach(z=>z.selected=M.includes(z.value)):I.refs?ui(I.ref)?I.refs.forEach(z=>{(!z.defaultChecked||!z.disabled)&&(Array.isArray(M)?z.checked=!!M.find(ae=>ae===z.value):z.checked=M===z.value||!!M)}):I.refs.forEach(z=>z.checked=z.value===M):_c(I.ref)?I.ref.value="":(I.ref.value=M,I.ref.type||m.state.next({name:S,values:ge(i)})))}(T.shouldDirty||T.shouldTouch)&&E(S,M,T.shouldTouch,T.shouldDirty,!0),T.shouldValidate&&se(S)},J=(S,R,T)=>{for(const L in R){if(!R.hasOwnProperty(L))return;const M=R[L],I=S+"."+L,z=O(r,I);(s.array.has(S)||Ae(M)||z&&!z._f)&&!Jn(M)?J(I,M,T):Q(I,M,T)}},j=(S,R,T={})=>{const L=O(r,S),M=s.array.has(S),I=ge(R);ue(i,S,I),M?(m.array.next({name:S,values:ge(i)}),(d.isDirty||d.dirtyFields||c.isDirty||c.dirtyFields)&&T.shouldDirty&&m.state.next({name:S,dirtyFields:wo(o,i),isDirty:Y(S,I)})):L&&!L._f&&!et(I)?J(S,I,T):Q(S,I,T),ru(S,s)&&m.state.next({...n,name:S}),m.state.next({name:l.mount?S:void 0,values:ge(i)})},W=async S=>{l.mount=!0;const R=S.target;let T=R.name,L=!0;const M=O(r,T),I=de=>{L=Number.isNaN(de)||Jn(de)&&isNaN(de.getTime())||on(de,O(i,T,de))},z=Dr(t.mode),ae=Dr(t.reValidateMode);if(M){let de,We;const Tt=R.type?Cf(M._f):Pv(S),At=S.type===Pl.BLUR||S.type===Pl.FOCUS_OUT,gn=!SC(M._f)&&!t.resolver&&!O(n.errors,T)&&!M._f.deps||kC(At,O(n.touchedFields,T),n.isSubmitted,ae,z),lo=ru(T,s,At);ue(i,T,Tt),At?(!R||!R.readOnly)&&(M._f.onBlur&&M._f.onBlur(S),a&&a(0)):M._f.onChange&&M._f.onChange(S);const so=E(T,Tt,At),ci=!Je(so)||lo;if(!At&&m.state.next({name:T,type:S.type,values:ge(i)}),gn)return(d.isValid||c.isValid)&&(t.mode==="onBlur"?At&&g():At||g()),ci&&m.state.next({name:T,...lo?{}:so});if(!At&&lo&&m.state.next({...n}),t.resolver){const{errors:ao}=await k([T]);if(I(Tt),L){const ds=_f(n.errors,r,T),hr=_f(ao,r,ds.name||T);de=hr.error,T=hr.name,We=Je(ao)}}else x([T],!0),de=(await ou(M,s.disabled,i,y,t.shouldUseNativeValidation))[T],x([T]),I(Tt),L&&(de?We=!1:(d.isValid||c.isValid)&&(We=await F(r,!0)));L&&(M._f.deps&&se(M._f.deps),_(T,We,de,so))}},K=(S,R)=>{if(O(n.errors,R)&&S.focus)return S.focus(),1},se=async(S,R={})=>{let T,L;const M=st(S);if(t.resolver){const I=await A(ye(S)?S:M);T=Je(I),L=S?!M.some(z=>O(I,z)):T}else S?(L=(await Promise.all(M.map(async I=>{const z=O(r,I);return await F(z&&z._f?{[I]:z}:z)}))).every(Boolean),!(!L&&!n.isValid)&&g()):L=T=await F(r);return m.state.next({...!Zt(S)||(d.isValid||c.isValid)&&T!==n.isValid?{}:{name:S},...t.resolver||!S?{isValid:T}:{},errors:n.errors}),R.shouldFocus&&!L&&$r(r,K,S?M:s.mount),L},ce=S=>{const R={...l.mount?i:o};return ye(S)?R:Zt(S)?O(R,S):S.map(T=>O(R,T))},De=(S,R)=>({invalid:!!O((R||n).errors,S),isDirty:!!O((R||n).dirtyFields,S),error:O((R||n).errors,S),isValidating:!!O(n.validatingFields,S),isTouched:!!O((R||n).touchedFields,S)}),xt=S=>{S&&st(S).forEach(R=>Ne(n.errors,R)),m.state.next({errors:S?n.errors:{}})},X=(S,R,T)=>{const L=(O(r,S,{_f:{}})._f||{}).ref,M=O(n.errors,S)||{},{ref:I,message:z,type:ae,...de}=M;ue(n.errors,S,{...de,...R,ref:L}),m.state.next({name:S,errors:n.errors,isValid:!1}),T&&T.shouldFocus&&L&&L.focus&&L.focus()},oe=(S,R)=>jt(S)?m.state.subscribe({next:T=>"values"in T&&S(B(void 0,R),T)}):B(S,R,!0),ie=S=>m.state.subscribe({next:R=>{CC(S.name,R.name,S.exact)&&EC(R,S.formState||d,dt,S.reRenderRoot)&&S.callback({values:{...i},...n,...R,defaultValues:o})}}).unsubscribe,Re=S=>(l.mount=!0,c={...c,...S.formState},ie({...S,formState:c})),U=(S,R={})=>{for(const T of S?st(S):s.mount)s.mount.delete(T),s.array.delete(T),R.keepValue||(Ne(r,T),Ne(i,T)),!R.keepError&&Ne(n.errors,T),!R.keepDirty&&Ne(n.dirtyFields,T),!R.keepTouched&&Ne(n.touchedFields,T),!R.keepIsValidating&&Ne(n.validatingFields,T),!t.shouldUnregister&&!R.keepDefaultValue&&Ne(o,T);m.state.next({values:ge(i)}),m.state.next({...n,...R.keepDirty?{isDirty:Y()}:{}}),!R.keepIsValid&&g()},H=({disabled:S,name:R})=>{(ht(S)&&l.mount||S||s.disabled.has(R))&&(S?s.disabled.add(R):s.disabled.delete(R))},pe=(S,R={})=>{let T=O(r,S);const L=ht(R.disabled)||ht(t.disabled);return ue(r,S,{...T||{},_f:{...T&&T._f?T._f:{ref:{name:S}},name:S,mount:!0,...R}}),s.mount.add(S),T?H({disabled:ht(R.disabled)?R.disabled:t.disabled,name:S}):C(S,!0,R.value),{...L?{disabled:R.disabled||t.disabled}:{},...t.progressive?{required:!!R.required,min:xo(R.min),max:xo(R.max),minLength:xo(R.minLength),maxLength:xo(R.maxLength),pattern:xo(R.pattern)}:{},name:S,onChange:W,onBlur:W,ref:M=>{if(M){pe(S,R),T=O(r,S);const I=ye(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,z=vC(I),ae=T._f.refs||[];if(z?ae.find(de=>de===I):I===T._f.ref)return;ue(r,S,{_f:{...T._f,...z?{refs:[...ae.filter(Qs),I,...Array.isArray(O(o,S))?[{}]:[]],ref:{type:I.type,name:S}}:{ref:I}}}),C(S,!1,void 0,I)}else T=O(r,S,{}),T._f&&(T._f.mount=!1),(t.shouldUnregister||R.shouldUnregister)&&!(Nv(s.array,S)&&l.action)&&s.unMount.add(S)}}},ee=()=>t.shouldFocusError&&$r(r,K,s.mount),te=S=>{ht(S)&&(m.state.next({disabled:S}),$r(r,(R,T)=>{const L=O(r,T);L&&(R.disabled=L._f.disabled||S,Array.isArray(L._f.refs)&&L._f.refs.forEach(M=>{M.disabled=L._f.disabled||S}))},0,!1))},Z=(S,R)=>async T=>{let L;T&&(T.preventDefault&&T.preventDefault(),T.persist&&T.persist());let M=ge(i);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:I,values:z}=await k();n.errors=I,M=ge(z)}else await F(r);if(s.disabled.size)for(const I of s.disabled)Ne(M,I);if(Ne(n.errors,"root"),Je(n.errors)){m.state.next({errors:{}});try{await S(M,T)}catch(I){L=I}}else R&&await R({...n.errors},T),ee(),setTimeout(ee);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Je(n.errors)&&!L,submitCount:n.submitCount+1,errors:n.errors}),L)throw L},je=(S,R={})=>{O(r,S)&&(ye(R.defaultValue)?j(S,ge(O(o,S))):(j(S,R.defaultValue),ue(o,S,ge(R.defaultValue))),R.keepTouched||Ne(n.touchedFields,S),R.keepDirty||(Ne(n.dirtyFields,S),n.isDirty=R.defaultValue?Y(S,ge(O(o,S))):Y()),R.keepError||(Ne(n.errors,S),d.isValid&&g()),m.state.next({...n}))},Ve=(S,R={})=>{const T=S?ge(S):o,L=ge(T),M=Je(S),I=M?o:L;if(R.keepDefaultValues||(o=T),!R.keepValues){if(R.keepDirtyValues){const z=new Set([...s.mount,...Object.keys(wo(o,i))]);for(const ae of Array.from(z))O(n.dirtyFields,ae)?ue(I,ae,O(i,ae)):j(ae,O(I,ae))}else{if(Sc&&ye(S))for(const z of s.mount){const ae=O(r,z);if(ae&&ae._f){const de=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Nl(de)){const We=de.closest("form");if(We){We.reset();break}}}}if(R.keepFieldsRef)for(const z of s.mount)j(z,O(I,z));else r={}}i=t.shouldUnregister?R.keepDefaultValues?ge(o):{}:ge(I),m.array.next({values:{...I}}),m.state.next({values:{...I}})}s={mount:R.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!d.isValid||!!R.keepIsValid||!!R.keepDirtyValues,l.watch=!!t.shouldUnregister,m.state.next({submitCount:R.keepSubmitCount?n.submitCount:0,isDirty:M?!1:R.keepDirty?n.isDirty:!!(R.keepDefaultValues&&!on(S,o)),isSubmitted:R.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?{}:R.keepDirtyValues?R.keepDefaultValues&&i?wo(o,i):n.dirtyFields:R.keepDefaultValues&&S?wo(o,S):R.keepDirty?n.dirtyFields:{},touchedFields:R.keepTouched?n.touchedFields:{},errors:R.keepErrors?n.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Wt=(S,R)=>Ve(jt(S)?S(i):S,R),Kt=(S,R={})=>{const T=O(r,S),L=T&&T._f;if(L){const M=L.refs?L.refs[0]:L.ref;M.focus&&(M.focus(),R.shouldSelect&&jt(M.select)&&M.select())}},dt=S=>{n={...n,...S}},$e={control:{register:pe,unregister:U,getFieldState:De,handleSubmit:Z,setError:X,_subscribe:ie,_runSchema:k,_focusError:ee,_getWatch:B,_getDirty:Y,_setValid:g,_setFieldArray:h,_setDisabledField:H,_setErrors:v,_getFieldArray:$,_reset:Ve,_resetDefaultValues:()=>jt(t.defaultValues)&&t.defaultValues().then(S=>{Wt(S,t.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:b,_disableForm:te,_subjects:m,_proxyFormState:d,get _fields(){return r},get _formValues(){return i},get _state(){return l},set _state(S){l=S},get _defaultValues(){return o},get _names(){return s},set _names(S){s=S},get _formState(){return n},get _options(){return t},set _options(S){t={...t,...S}}},subscribe:Re,trigger:se,register:pe,handleSubmit:Z,watch:oe,setValue:j,getValues:ce,reset:Wt,resetField:je,clearErrors:xt,unregister:U,setError:X,setFocus:Kt,getFieldState:De};return{...$e,formControl:$e}}var xn=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},Xs=(e,t,n={})=>n.shouldFocus||ye(n.shouldFocus)?n.focusName||`${e}.${ye(n.focusIndex)?t:n.focusIndex}.`:"",Gs=(e,t)=>[...e,...st(t)],Zs=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Js(e,t,n){return[...e.slice(0,t),...st(n),...e.slice(t)]}var qs=(e,t,n)=>Array.isArray(e)?(ye(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],ea=(e,t)=>[...st(t),...st(e)];function NC(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return os(r).length?r:[]}var ta=(e,t)=>ye(t)?[]:NC(e,st(t).sort((n,r)=>n-r)),na=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},Pf=(e,t,n)=>(e[t]=n,e);function d_(e){const t=is(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:i,rules:l}=e,[s,a]=P.useState(n._getFieldArray(r)),u=P.useRef(n._getFieldArray(r).map(xn)),d=P.useRef(s),c=P.useRef(!1);d.current=s,n._names.array.add(r),P.useMemo(()=>l&&n.register(r,l),[n,l,r]),ls(()=>n._subjects.array.subscribe({next:({values:E,name:_})=>{if(_===r||!_){const k=O(E,r);Array.isArray(k)&&(a(k),u.current=k.map(xn))}}}).unsubscribe,[n,r]);const m=P.useCallback(E=>{c.current=!0,n._setFieldArray(r,E)},[n,r]),y=(E,_)=>{const k=st(ge(E)),A=Gs(n._getFieldArray(r),k);n._names.focus=Xs(r,A.length-1,_),u.current=Gs(u.current,k.map(xn)),m(A),a(A),n._setFieldArray(r,A,Gs,{argA:Zs(E)})},w=(E,_)=>{const k=st(ge(E)),A=ea(n._getFieldArray(r),k);n._names.focus=Xs(r,0,_),u.current=ea(u.current,k.map(xn)),m(A),a(A),n._setFieldArray(r,A,ea,{argA:Zs(E)})},g=E=>{const _=ta(n._getFieldArray(r),E);u.current=ta(u.current,E),m(_),a(_),!Array.isArray(O(n._fields,r))&&ue(n._fields,r,void 0),n._setFieldArray(r,_,ta,{argA:E})},x=(E,_,k)=>{const A=st(ge(_)),F=Js(n._getFieldArray(r),E,A);n._names.focus=Xs(r,E,k),u.current=Js(u.current,E,A.map(xn)),m(F),a(F),n._setFieldArray(r,F,Js,{argA:E,argB:Zs(_)})},h=(E,_)=>{const k=n._getFieldArray(r);na(k,E,_),na(u.current,E,_),m(k),a(k),n._setFieldArray(r,k,na,{argA:E,argB:_},!1)},p=(E,_)=>{const k=n._getFieldArray(r);qs(k,E,_),qs(u.current,E,_),m(k),a(k),n._setFieldArray(r,k,qs,{argA:E,argB:_},!1)},v=(E,_)=>{const k=ge(_),A=Pf(n._getFieldArray(r),E,k);u.current=[...A].map((F,b)=>!F||b===E?xn():u.current[b]),m(A),a([...A]),n._setFieldArray(r,A,Pf,{argA:E,argB:k},!0,!1)},C=E=>{const _=st(ge(E));u.current=_.map(xn),m([..._]),a([..._]),n._setFieldArray(r,[..._],k=>k,{},!0,!1)};return P.useEffect(()=>{if(n._state.action=!1,ru(r,n._names)&&n._subjects.state.next({...n._formState}),c.current&&(!Dr(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Dr(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(E=>{const _=O(E.errors,r),k=O(n._formState.errors,r);(k?!_&&k.type||_&&(k.type!==_.type||k.message!==_.message):_&&_.type)&&(_?ue(n._formState.errors,r,_):Ne(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const E=O(n._fields,r);E&&E._f&&!(Dr(n._options.reValidateMode).isOnSubmit&&Dr(n._options.mode).isOnSubmit)&&ou(E,n._names.disabled,n._formValues,n._options.criteriaMode===kt.all,n._options.shouldUseNativeValidation,!0).then(_=>!Je(_)&&n._subjects.state.next({errors:Fv(n._formState.errors,_,r)}))}n._subjects.state.next({name:r,values:ge(n._formValues)}),n._names.focus&&$r(n._fields,(E,_)=>{if(n._names.focus&&_.startsWith(n._names.focus)&&E.focus)return E.focus(),1}),n._names.focus="",n._setValid(),c.current=!1},[s,r,n]),P.useEffect(()=>(!O(n._formValues,r)&&n._setFieldArray(r),()=>{const E=(_,k)=>{const A=O(n._fields,_);A&&A._f&&(A._f.mount=k)};n._options.shouldUnregister||i?n.unregister(r):E(r,!1)}),[r,n,o,i]),{swap:P.useCallback(h,[m,r,n]),move:P.useCallback(p,[m,r,n]),prepend:P.useCallback(w,[m,r,n]),append:P.useCallback(y,[m,r,n]),remove:P.useCallback(g,[m,r,n]),insert:P.useCallback(x,[m,r,n]),update:P.useCallback(v,[m,r,n]),replace:P.useCallback(C,[m,r,n]),fields:P.useMemo(()=>s.map((E,_)=>({...E,[o]:u.current[_]||xn()})),[s,o])}}function f_(e={}){const t=P.useRef(void 0),n=P.useRef(void 0),[r,o]=P.useState({isDirty:!1,isValidating:!1,isLoading:jt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:jt(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!jt(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...s}=PC(e);t.current={...s,formState:r}}const i=t.current.control;return i._options=e,ls(()=>{const l=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(s=>({...s,isReady:!0})),i._formState.isReady=!0,l},[i]),P.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),P.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),P.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),P.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),P.useEffect(()=>{if(i._proxyFormState.isDirty){const l=i._getDirty();l!==r.isDirty&&i._subjects.state.next({isDirty:l})}},[i,r.isDirty]),P.useEffect(()=>{e.values&&!on(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,o(l=>({...l}))):i._resetDefaultValues()},[i,e.values]),P.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=Tv(r,i),t.current}var TC="Label",jv=f.forwardRef((e,t)=>N.jsx(le.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));jv.displayName=TC;var p_=jv;const Nf=(e,t,n)=>{if(e&&"reportValidity"in e){const r=O(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},iu=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Nf(r.ref,n,e):r&&r.refs&&r.refs.forEach(o=>Nf(o,n,e))}},Tf=(e,t)=>{t.shouldUseNativeValidation&&iu(e,t);const n={};for(const r in e){const o=O(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(AC(t.names||Object.keys(e),r)){const l=Object.assign({},O(n,r));ue(l,"root",i),ue(n,r,l)}else ue(n,r,i)}return n},AC=(e,t)=>{const n=Af(t);return e.some(r=>Af(r).match(`^${n}\\.\\d+`))};function Af(e){return e.replace(/\]|\[/g,"")}function Df(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function DC(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[l]={message:s.message,type:s.code}}else n[l]={message:i,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(c){return e.push(c)})}),t){var a=n[l].types,u=a&&a[r.code];n[l]=kc(l,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function IC(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,l=r.path.join(".");if(!n[l])if(r.code==="invalid_union"&&r.errors.length>0){var s=r.errors[0][0];n[l]={message:s.message,type:s.code}}else n[l]={message:i,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(d){return d.forEach(function(c){return e.push(c)})}),t){var a=n[l].types,u=a&&a[r.code];n[l]=kc(l,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function h_(e,t,n){if(n===void 0&&(n={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,o,i){try{return Promise.resolve(Df(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return i.shouldUseNativeValidation&&iu({},i),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if(function(s){return Array.isArray(s==null?void 0:s.issues)}(l))return{values:{},errors:Tf(DC(l.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw l}))}catch(l){return Promise.reject(l)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,o,i){try{return Promise.resolve(Df(function(){return Promise.resolve((n.mode==="sync"?Og:Mg)(e,r,t)).then(function(l){return i.shouldUseNativeValidation&&iu({},i),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if(function(s){return s instanceof Lg}(l))return{values:{},errors:Tf(IC(l.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}function Vv(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ss="Checkbox",[OC,m_]=pr(ss),[MC,Pc]=OC(ss);function LC(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:l,name:s,onCheckedChange:a,required:u,value:d="on",internal_do_not_use_render:c}=e,[m,y]=ei({prop:n,defaultProp:o??!1,onChange:a,caller:ss}),[w,g]=f.useState(null),[x,h]=f.useState(null),p=f.useRef(!1),v=w?!!l||!!w.closest("form"):!0,C={checked:m,disabled:i,setChecked:y,control:w,setControl:g,name:s,form:l,value:d,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:Fn(o)?!1:o,isFormControl:v,bubbleInput:x,setBubbleInput:h};return N.jsx(MC,{scope:t,...C,children:jC(c)?c(C):r})}var $v="CheckboxTrigger",zv=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:l,disabled:s,checked:a,required:u,setControl:d,setChecked:c,hasConsumerStoppedPropagationRef:m,isFormControl:y,bubbleInput:w}=Pc($v,e),g=he(o,d),x=f.useRef(a);return f.useEffect(()=>{const h=i==null?void 0:i.form;if(h){const p=()=>c(x.current);return h.addEventListener("reset",p),()=>h.removeEventListener("reset",p)}},[i,c]),N.jsx(le.button,{type:"button",role:"checkbox","aria-checked":Fn(a)?"mixed":a,"aria-required":u,"data-state":Wv(a),"data-disabled":s?"":void 0,disabled:s,value:l,...r,ref:g,onKeyDown:ne(t,h=>{h.key==="Enter"&&h.preventDefault()}),onClick:ne(n,h=>{c(p=>Fn(p)?!0:!p),w&&y&&(m.current=h.isPropagationStopped(),m.current||h.stopPropagation())})})});zv.displayName=$v;var bC=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:l,disabled:s,value:a,onCheckedChange:u,form:d,...c}=e;return N.jsx(LC,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:s,required:l,onCheckedChange:u,name:r,form:d,value:a,internal_do_not_use_render:({isFormControl:m})=>N.jsxs(N.Fragment,{children:[N.jsx(zv,{...c,ref:t,__scopeCheckbox:n}),m&&N.jsx(Hv,{__scopeCheckbox:n})]})})});bC.displayName=ss;var Bv="CheckboxIndicator",FC=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Pc(Bv,n);return N.jsx(ro,{present:r||Fn(i.checked)||i.checked===!0,children:N.jsx(le.span,{"data-state":Wv(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});FC.displayName=Bv;var Uv="CheckboxBubbleInput",Hv=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:l,required:s,disabled:a,name:u,value:d,form:c,bubbleInput:m,setBubbleInput:y}=Pc(Uv,e),w=he(n,y),g=Vv(i),x=Hm(r);f.useEffect(()=>{const p=m;if(!p)return;const v=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(v,"checked").set,_=!o.current;if(g!==i&&E){const k=new Event("click",{bubbles:_});p.indeterminate=Fn(i),E.call(p,Fn(i)?!1:i),p.dispatchEvent(k)}},[m,g,i,o]);const h=f.useRef(Fn(i)?!1:i);return N.jsx(le.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??h.current,required:s,disabled:a,name:u,value:d,form:c,...t,tabIndex:-1,ref:w,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Hv.displayName=Uv;function jC(e){return typeof e=="function"}function Fn(e){return e==="indeterminate"}function Wv(e){return Fn(e)?"indeterminate":e?"checked":"unchecked"}function VC(e){const t=e+"CollectionProvider",[n,r]=pr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=g=>{const{scope:x,children:h}=g,p=P.useRef(null),v=P.useRef(new Map).current;return N.jsx(o,{scope:x,itemMap:v,collectionRef:p,children:h})};l.displayName=t;const s=e+"CollectionSlot",a=Qr(s),u=P.forwardRef((g,x)=>{const{scope:h,children:p}=g,v=i(s,h),C=he(x,v.collectionRef);return N.jsx(a,{ref:C,children:p})});u.displayName=s;const d=e+"CollectionItemSlot",c="data-radix-collection-item",m=Qr(d),y=P.forwardRef((g,x)=>{const{scope:h,children:p,...v}=g,C=P.useRef(null),E=he(x,C),_=i(d,h);return P.useEffect(()=>(_.itemMap.set(C,{ref:C,...v}),()=>void _.itemMap.delete(C))),N.jsx(m,{[c]:"",ref:E,children:p})});y.displayName=d;function w(g){const x=i(e+"CollectionConsumer",g);return P.useCallback(()=>{const p=x.collectionRef.current;if(!p)return[];const v=Array.from(p.querySelectorAll(`[${c}]`));return Array.from(x.itemMap.values()).sort((_,k)=>v.indexOf(_.ref.current)-v.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:l,Slot:u,ItemSlot:y},w,r]}var $C=f.createContext(void 0);function zC(e){const t=f.useContext($C);return e||t||"ltr"}var BC=[" ","Enter","ArrowUp","ArrowDown"],UC=[" ","Enter"],ur="Select",[as,us,HC]=VC(ur),[oo,v_]=pr(ur,[HC,ql]),cs=ql(),[WC,Hn]=oo(ur),[KC,YC]=oo(ur),Kv=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:s,onValueChange:a,dir:u,name:d,autoComplete:c,disabled:m,required:y,form:w}=e,g=cs(t),[x,h]=f.useState(null),[p,v]=f.useState(null),[C,E]=f.useState(!1),_=zC(u),[k,A]=ei({prop:r,defaultProp:o??!1,onChange:i,caller:ur}),[F,b]=ei({prop:l,defaultProp:s,onChange:a,caller:ur}),Y=f.useRef(null),B=x?w||!!x.closest("form"):!0,[$,Q]=f.useState(new Set),J=Array.from($).map(j=>j.props.value).join(";");return N.jsx(ev,{...g,children:N.jsxs(WC,{required:y,scope:t,trigger:x,onTriggerChange:h,valueNode:p,onValueNodeChange:v,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:tr(),value:F,onValueChange:b,open:k,onOpenChange:A,dir:_,triggerPointerDownPosRef:Y,disabled:m,children:[N.jsx(as.Provider,{scope:t,children:N.jsx(KC,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(j=>{Q(W=>new Set(W).add(j))},[]),onNativeOptionRemove:f.useCallback(j=>{Q(W=>{const K=new Set(W);return K.delete(j),K})},[]),children:n})}),B?N.jsxs(vg,{"aria-hidden":!0,required:y,tabIndex:-1,name:d,autoComplete:c,value:F,onChange:j=>b(j.target.value),disabled:m,form:w,children:[F===void 0?N.jsx("option",{value:""}):null,Array.from($)]},J):null]})})};Kv.displayName=ur;var Yv="SelectTrigger",Qv=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=cs(n),l=Hn(Yv,n),s=l.disabled||r,a=he(t,l.onTriggerChange),u=us(n),d=f.useRef("touch"),[c,m,y]=yg(g=>{const x=u().filter(v=>!v.disabled),h=x.find(v=>v.value===l.value),p=wg(x,g,h);p!==void 0&&l.onValueChange(p.value)}),w=g=>{s||(l.onOpenChange(!0),y()),g&&(l.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return N.jsx(tv,{asChild:!0,...i,children:N.jsx(le.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":gg(l.value)?"":void 0,...o,ref:a,onClick:ne(o.onClick,g=>{g.currentTarget.focus(),d.current!=="mouse"&&w(g)}),onPointerDown:ne(o.onPointerDown,g=>{d.current=g.pointerType;const x=g.target;x.hasPointerCapture(g.pointerId)&&x.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(w(g),g.preventDefault())}),onKeyDown:ne(o.onKeyDown,g=>{const x=c.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&m(g.key),!(x&&g.key===" ")&&BC.includes(g.key)&&(w(),g.preventDefault())})})})});Qv.displayName=Yv;var Xv="SelectValue",Gv=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...s}=e,a=Hn(Xv,n),{onValueNodeHasChildrenChange:u}=a,d=i!==void 0,c=he(t,a.onValueNodeChange);return Ze(()=>{u(d)},[u,d]),N.jsx(le.span,{...s,ref:c,style:{pointerEvents:"none"},children:gg(a.value)?N.jsx(N.Fragment,{children:l}):i})});Gv.displayName=Xv;var QC="SelectIcon",Zv=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return N.jsx(le.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Zv.displayName=QC;var XC="SelectPortal",Jv=e=>N.jsx(pc,{asChild:!0,...e});Jv.displayName=XC;var cr="SelectContent",qv=f.forwardRef((e,t)=>{const n=Hn(cr,e.__scopeSelect),[r,o]=f.useState();if(Ze(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?qr.createPortal(N.jsx(eg,{scope:e.__scopeSelect,children:N.jsx(as.Slot,{scope:e.__scopeSelect,children:N.jsx("div",{children:e.children})})}),i):null}return N.jsx(tg,{...e,ref:t})});qv.displayName=cr;var Mt=10,[eg,Wn]=oo(cr),GC="SelectContentImpl",ZC=Qr("SelectContent.RemoveScroll"),tg=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:s,sideOffset:a,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:m,collisionPadding:y,sticky:w,hideWhenDetached:g,avoidCollisions:x,...h}=e,p=Hn(cr,n),[v,C]=f.useState(null),[E,_]=f.useState(null),k=he(t,U=>C(U)),[A,F]=f.useState(null),[b,Y]=f.useState(null),B=us(n),[$,Q]=f.useState(!1),J=f.useRef(!1);f.useEffect(()=>{if(v)return Of(v)},[v]),gm();const j=f.useCallback(U=>{const[H,...pe]=B().map(Z=>Z.ref.current),[ee]=pe.slice(-1),te=document.activeElement;for(const Z of U)if(Z===te||(Z==null||Z.scrollIntoView({block:"nearest"}),Z===H&&E&&(E.scrollTop=0),Z===ee&&E&&(E.scrollTop=E.scrollHeight),Z==null||Z.focus(),document.activeElement!==te))return},[B,E]),W=f.useCallback(()=>j([A,v]),[j,A,v]);f.useEffect(()=>{$&&W()},[$,W]);const{onOpenChange:K,triggerPointerDownPosRef:se}=p;f.useEffect(()=>{if(v){let U={x:0,y:0};const H=ee=>{var te,Z;U={x:Math.abs(Math.round(ee.pageX)-(((te=se.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((Z=se.current)==null?void 0:Z.y)??0))}},pe=ee=>{U.x<=10&&U.y<=10?ee.preventDefault():v.contains(ee.target)||K(!1),document.removeEventListener("pointermove",H),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",pe,{capture:!0})}}},[v,K,se]),f.useEffect(()=>{const U=()=>K(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[K]);const[ce,De]=yg(U=>{const H=B().filter(te=>!te.disabled),pe=H.find(te=>te.ref.current===document.activeElement),ee=wg(H,U,pe);ee&&setTimeout(()=>ee.ref.current.focus())}),xt=f.useCallback((U,H,pe)=>{const ee=!J.current&&!pe;(p.value!==void 0&&p.value===H||ee)&&(F(U),ee&&(J.current=!0))},[p.value]),X=f.useCallback(()=>v==null?void 0:v.focus(),[v]),oe=f.useCallback((U,H,pe)=>{const ee=!J.current&&!pe;(p.value!==void 0&&p.value===H||ee)&&Y(U)},[p.value]),ie=r==="popper"?lu:ng,Re=ie===lu?{side:s,sideOffset:a,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:m,collisionPadding:y,sticky:w,hideWhenDetached:g,avoidCollisions:x}:{};return N.jsx(eg,{scope:n,content:v,viewport:E,onViewportChange:_,itemRefCallback:xt,selectedItem:A,onItemLeave:X,itemTextRefCallback:oe,focusSelectedItem:W,selectedItemText:b,position:r,isPositioned:$,searchRef:ce,children:N.jsx(hc,{as:ZC,allowPinchZoom:!0,children:N.jsx(fc,{asChild:!0,trapped:p.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:ne(o,U=>{var H;(H=p.trigger)==null||H.focus({preventScroll:!0}),U.preventDefault()}),children:N.jsx(Gl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:N.jsx(ie,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:U=>U.preventDefault(),...h,...Re,onPlaced:()=>Q(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:ne(h.onKeyDown,U=>{const H=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!H&&U.key.length===1&&De(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let ee=B().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(U.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const te=U.target,Z=ee.indexOf(te);ee=ee.slice(Z+1)}setTimeout(()=>j(ee)),U.preventDefault()}})})})})})})});tg.displayName=GC;var JC="SelectItemAlignedPosition",ng=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Hn(cr,n),l=Wn(cr,n),[s,a]=f.useState(null),[u,d]=f.useState(null),c=he(t,k=>d(k)),m=us(n),y=f.useRef(!1),w=f.useRef(!0),{viewport:g,selectedItem:x,selectedItemText:h,focusSelectedItem:p}=l,v=f.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&g&&x&&h){const k=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),F=i.valueNode.getBoundingClientRect(),b=h.getBoundingClientRect();if(i.dir!=="rtl"){const te=b.left-A.left,Z=F.left-te,je=k.left-Z,Ve=k.width+je,Wt=Math.max(Ve,A.width),Kt=window.innerWidth-Mt,dt=Ic(Z,[Mt,Math.max(Mt,Kt-Wt)]);s.style.minWidth=Ve+"px",s.style.left=dt+"px"}else{const te=A.right-b.right,Z=window.innerWidth-F.right-te,je=window.innerWidth-k.right-Z,Ve=k.width+je,Wt=Math.max(Ve,A.width),Kt=window.innerWidth-Mt,dt=Ic(Z,[Mt,Math.max(Mt,Kt-Wt)]);s.style.minWidth=Ve+"px",s.style.right=dt+"px"}const Y=m(),B=window.innerHeight-Mt*2,$=g.scrollHeight,Q=window.getComputedStyle(u),J=parseInt(Q.borderTopWidth,10),j=parseInt(Q.paddingTop,10),W=parseInt(Q.borderBottomWidth,10),K=parseInt(Q.paddingBottom,10),se=J+j+$+K+W,ce=Math.min(x.offsetHeight*5,se),De=window.getComputedStyle(g),xt=parseInt(De.paddingTop,10),X=parseInt(De.paddingBottom,10),oe=k.top+k.height/2-Mt,ie=B-oe,Re=x.offsetHeight/2,U=x.offsetTop+Re,H=J+j+U,pe=se-H;if(H<=oe){const te=Y.length>0&&x===Y[Y.length-1].ref.current;s.style.bottom="0px";const Z=u.clientHeight-g.offsetTop-g.offsetHeight,je=Math.max(ie,Re+(te?X:0)+Z+W),Ve=H+je;s.style.height=Ve+"px"}else{const te=Y.length>0&&x===Y[0].ref.current;s.style.top="0px";const je=Math.max(oe,J+g.offsetTop+(te?xt:0)+Re)+pe;s.style.height=je+"px",g.scrollTop=H-oe+g.offsetTop}s.style.margin=`${Mt}px 0`,s.style.minHeight=ce+"px",s.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>y.current=!0)}},[m,i.trigger,i.valueNode,s,u,g,x,h,i.dir,r]);Ze(()=>v(),[v]);const[C,E]=f.useState();Ze(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const _=f.useCallback(k=>{k&&w.current===!0&&(v(),p==null||p(),w.current=!1)},[v,p]);return N.jsx(ek,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:y,onScrollButtonChange:_,children:N.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:N.jsx(le.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ng.displayName=JC;var qC="SelectPopperPosition",lu=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Mt,...i}=e,l=cs(n);return N.jsx(nv,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});lu.displayName=qC;var[ek,Nc]=oo(cr,{}),su="SelectViewport",rg=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Wn(su,n),l=Nc(su,n),s=he(t,i.onViewportChange),a=f.useRef(0);return N.jsxs(N.Fragment,{children:[N.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),N.jsx(as.Slot,{scope:n,children:N.jsx(le.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ne(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:m}=l;if(m!=null&&m.current&&c){const y=Math.abs(a.current-d.scrollTop);if(y>0){const w=window.innerHeight-Mt*2,g=parseFloat(c.style.minHeight),x=parseFloat(c.style.height),h=Math.max(g,x);if(h<w){const p=h+y,v=Math.min(w,p),C=p-v;c.style.height=v+"px",c.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,c.style.justifyContent="flex-end")}}}a.current=d.scrollTop})})})]})});rg.displayName=su;var og="SelectGroup",[tk,nk]=oo(og),rk=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=tr();return N.jsx(tk,{scope:n,id:o,children:N.jsx(le.div,{role:"group","aria-labelledby":o,...r,ref:t})})});rk.displayName=og;var ig="SelectLabel",lg=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=nk(ig,n);return N.jsx(le.div,{id:o.id,...r,ref:t})});lg.displayName=ig;var Dl="SelectItem",[ok,sg]=oo(Dl),ag=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,s=Hn(Dl,n),a=Wn(Dl,n),u=s.value===r,[d,c]=f.useState(i??""),[m,y]=f.useState(!1),w=he(t,p=>{var v;return(v=a.itemRefCallback)==null?void 0:v.call(a,p,r,o)}),g=tr(),x=f.useRef("touch"),h=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return N.jsx(ok,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:f.useCallback(p=>{c(v=>v||((p==null?void 0:p.textContent)??"").trim())},[]),children:N.jsx(as.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:N.jsx(le.div,{role:"option","aria-labelledby":g,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:w,onFocus:ne(l.onFocus,()=>y(!0)),onBlur:ne(l.onBlur,()=>y(!1)),onClick:ne(l.onClick,()=>{x.current!=="mouse"&&h()}),onPointerUp:ne(l.onPointerUp,()=>{x.current==="mouse"&&h()}),onPointerDown:ne(l.onPointerDown,p=>{x.current=p.pointerType}),onPointerMove:ne(l.onPointerMove,p=>{var v;x.current=p.pointerType,o?(v=a.onItemLeave)==null||v.call(a):x.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ne(l.onPointerLeave,p=>{var v;p.currentTarget===document.activeElement&&((v=a.onItemLeave)==null||v.call(a))}),onKeyDown:ne(l.onKeyDown,p=>{var C;((C=a.searchRef)==null?void 0:C.current)!==""&&p.key===" "||(UC.includes(p.key)&&h(),p.key===" "&&p.preventDefault())})})})})});ag.displayName=Dl;var _o="SelectItemText",ug=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=Hn(_o,n),s=Wn(_o,n),a=sg(_o,n),u=YC(_o,n),[d,c]=f.useState(null),m=he(t,h=>c(h),a.onItemTextChange,h=>{var p;return(p=s.itemTextRefCallback)==null?void 0:p.call(s,h,a.value,a.disabled)}),y=d==null?void 0:d.textContent,w=f.useMemo(()=>N.jsx("option",{value:a.value,disabled:a.disabled,children:y},a.value),[a.disabled,a.value,y]),{onNativeOptionAdd:g,onNativeOptionRemove:x}=u;return Ze(()=>(g(w),()=>x(w)),[g,x,w]),N.jsxs(N.Fragment,{children:[N.jsx(le.span,{id:a.textId,...i,ref:m}),a.isSelected&&l.valueNode&&!l.valueNodeHasChildren?qr.createPortal(i.children,l.valueNode):null]})});ug.displayName=_o;var cg="SelectItemIndicator",dg=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return sg(cg,n).isSelected?N.jsx(le.span,{"aria-hidden":!0,...r,ref:t}):null});dg.displayName=cg;var au="SelectScrollUpButton",fg=f.forwardRef((e,t)=>{const n=Wn(au,e.__scopeSelect),r=Nc(au,e.__scopeSelect),[o,i]=f.useState(!1),l=he(t,r.onScrollButtonChange);return Ze(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=a.scrollTop>0;i(u)};const a=n.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?N.jsx(hg,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop-a.offsetHeight)}}):null});fg.displayName=au;var uu="SelectScrollDownButton",pg=f.forwardRef((e,t)=>{const n=Wn(uu,e.__scopeSelect),r=Nc(uu,e.__scopeSelect),[o,i]=f.useState(!1),l=he(t,r.onScrollButtonChange);return Ze(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=a.scrollHeight-a.clientHeight,d=Math.ceil(a.scrollTop)<u;i(d)};const a=n.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?N.jsx(hg,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop+a.offsetHeight)}}):null});pg.displayName=uu;var hg=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Wn("SelectScrollButton",n),l=f.useRef(null),s=us(n),a=f.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return f.useEffect(()=>()=>a(),[a]),Ze(()=>{var d;const u=s().find(c=>c.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[s]),N.jsx(le.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ne(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:ne(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:ne(o.onPointerLeave,()=>{a()})})}),ik="SelectSeparator",mg=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return N.jsx(le.div,{"aria-hidden":!0,...r,ref:t})});mg.displayName=ik;var cu="SelectArrow",lk=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cs(n),i=Hn(cu,n),l=Wn(cu,n);return i.open&&l.position==="popper"?N.jsx(rv,{...o,...r,ref:t}):null});lk.displayName=cu;var sk="SelectBubbleInput",vg=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),i=he(r,o),l=Vv(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const a=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(a,"value").set;if(l!==t&&d){const c=new Event("change",{bubbles:!0});d.call(s,t),s.dispatchEvent(c)}},[l,t]),N.jsx(le.select,{...n,style:{...ov,...n.style},ref:i,defaultValue:t})});vg.displayName=sk;function gg(e){return e===""||e===void 0}function yg(e){const t=sr(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(l=>{const s=n.current+l;t(s),function a(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(s)},[t]),i=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function wg(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=ak(e,Math.max(i,0));o.length===1&&(l=l.filter(u=>u!==n));const a=l.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function ak(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var g_=Kv,y_=Qv,w_=Gv,x_=Zv,S_=Jv,E_=qv,C_=rg,k_=lg,__=ag,R_=ug,P_=dg,N_=fg,T_=pg,A_=mg;export{N_ as $,i_ as A,pE as B,vE as C,yE as D,Ak as E,zk as F,Ek as G,bk as H,p_ as I,is as J,u_ as K,sm as L,c_ as M,f_ as N,mE as O,hE as P,h_ as Q,Kk as R,Wk as S,yk as T,bC as U,FC as V,Ck as W,Hk as X,y_ as Y,x_ as Z,kk as _,zm as a,Pk as a0,T_ as a1,S_ as a2,E_ as a3,C_ as a4,k_ as a5,__ as a6,P_ as a7,R_ as a8,A_ as a9,g_ as aa,w_ as ab,d_ as ac,$k as ad,Bk as ae,_k as af,Rk as ag,Nk as ah,jk as ai,Ok as aj,Fk as ak,Tk as al,Uk as am,Mk as an,Dk as ao,hk as ap,Xw as aq,pk as ar,Fc as as,P as at,mk as au,gE as b,wk as c,xk as d,fE as e,Jk as f,Xk as g,Gk as h,Zk as i,N as j,Lk as k,Un as l,Ik as m,Vk as n,r_ as o,n_ as p,o_ as q,f as r,s_ as s,gk as t,Sk as u,a_ as v,l_ as w,e_ as x,t_ as y,vk as z};
234
- //# sourceMappingURL=react-vendor-CoesXubw.js.map