xiaozhi-client 1.9.2 → 1.9.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/apps/frontend/dist/assets/form-utils-h64o2Nyg.js +2 -0
- package/apps/frontend/dist/assets/form-utils-h64o2Nyg.js.map +1 -0
- package/apps/frontend/dist/assets/index-88NfCOo9.js +50 -0
- package/apps/frontend/dist/assets/index-88NfCOo9.js.map +1 -0
- package/apps/frontend/dist/assets/index-P6Zq3MZF.css +1 -0
- package/apps/frontend/dist/assets/radix-ui-BA32w1ww.js.map +1 -1
- package/apps/frontend/dist/assets/react-vendor-DrjkXih1.js +319 -0
- package/apps/frontend/dist/assets/react-vendor-DrjkXih1.js.map +1 -0
- package/apps/frontend/dist/assets/utils-CiPelQLP.js +2 -0
- package/apps/frontend/dist/assets/utils-CiPelQLP.js.map +1 -0
- package/apps/frontend/dist/assets/{vendor-DvFnRBMT.js → vendor-DK9yaMt3.js} +2 -2
- package/apps/frontend/dist/assets/vendor-DK9yaMt3.js.map +1 -0
- package/apps/frontend/dist/index.html +6 -6
- package/dist/WebServerStandalone.js +16 -21
- package/dist/WebServerStandalone.js.map +1 -1
- package/dist/cli.js +17 -25
- package/dist/cli.js.map +1 -1
- package/dist/mcpServerProxy.d.ts +1 -1
- package/dist/mcpServerProxy.js +13 -13
- package/dist/mcpServerProxy.js.map +1 -1
- package/dist/package.json +25 -18
- package/docs/arch/{cache.md → cache.mdx} +62 -95
- package/docs/changelog.mdx +617 -0
- package/docs/development/docker-build.mdx +256 -0
- package/docs/development/todo__release-guide.md +5 -5
- package/docs/docs.json +6 -1
- package/docs/python-dependencies.md +2 -2
- package/docs/usage/docker.mdx +4 -4
- package/package.json +25 -18
- package/apps/frontend/dist/assets/form-utils-wyhL6gg0.js +0 -24
- package/apps/frontend/dist/assets/form-utils-wyhL6gg0.js.map +0 -1
- package/apps/frontend/dist/assets/index-COfJftUA.css +0 -1
- package/apps/frontend/dist/assets/index-ukaaLbQN.js +0 -50
- package/apps/frontend/dist/assets/index-ukaaLbQN.js.map +0 -1
- package/apps/frontend/dist/assets/react-vendor-B6Uf_8Kw.js +0 -319
- package/apps/frontend/dist/assets/react-vendor-B6Uf_8Kw.js.map +0 -1
- package/apps/frontend/dist/assets/utils-D0kRQKVW.js +0 -2
- package/apps/frontend/dist/assets/utils-D0kRQKVW.js.map +0 -1
- package/apps/frontend/dist/assets/vendor-DvFnRBMT.js.map +0 -1
- package/dist/templates/docker/mcpServers/calculator.js +0 -106
- package/dist/templates/docker/mcpServers/datetime.js +0 -390
- package/dist/templates/docker/package.json +0 -13
- package/dist/templates/docker/requirements.txt +0 -16
- package/dist/templates/docker/xiaozhi.config.json +0 -21
- package/templates/docker/mcpServers/calculator.js +0 -106
- package/templates/docker/mcpServers/datetime.js +0 -390
- package/templates/docker/package.json +0 -13
- package/templates/docker/requirements.txt +0 -16
- package/templates/docker/xiaozhi.config.json +0 -21
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
import{c as Q,a as zc}from"./radix-ui-BA32w1ww.js";import{s as Gy,_ as Rn,a as zf,g as Qy,b as Xy,h as Bf,c as Zy,o as qy,d as Jy,f as eg,e as tg,i as ng,l as rg,j as Bc,k as og}from"./vendor-DvFnRBMT.js";import{p as ig,a as sg,$ as lg}from"./form-utils-wyhL6gg0.js";function ag(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 Uf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hf={exports:{}},Is={},Wf={exports:{}},te={};/**
|
|
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"),ug=Symbol.for("react.portal"),cg=Symbol.for("react.fragment"),dg=Symbol.for("react.strict_mode"),fg=Symbol.for("react.profiler"),pg=Symbol.for("react.provider"),hg=Symbol.for("react.context"),mg=Symbol.for("react.forward_ref"),vg=Symbol.for("react.suspense"),yg=Symbol.for("react.memo"),gg=Symbol.for("react.lazy"),Uc=Symbol.iterator;function wg(e){return e===null||typeof e!="object"?null:(e=Uc&&e[Uc]||e["@@iterator"],typeof e=="function"?e:null)}var Kf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yf=Object.assign,Gf={};function qr(e,t,n){this.props=e,this.context=t,this.refs=Gf,this.updater=n||Kf}qr.prototype.isReactComponent={};qr.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")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qf(){}Qf.prototype=qr.prototype;function vu(e,t,n){this.props=e,this.context=t,this.refs=Gf,this.updater=n||Kf}var yu=vu.prototype=new Qf;yu.constructor=vu;Yf(yu,qr.prototype);yu.isPureReactComponent=!0;var Hc=Array.isArray,Xf=Object.prototype.hasOwnProperty,gu={current:null},Zf={key:!0,ref:!0,__self:!0,__source:!0};function qf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Xf.call(t,r)&&!Zf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:ni,type:e,key:i,ref:s,props:o,_owner:gu.current}}function xg(e,t){return{$$typeof:ni,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function wu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ni}function Sg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wc=/\/+/g;function pl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Sg(""+e.key):t.toString(36)}function Fi(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ni:case ug:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+pl(s,0):r,Hc(o)?(n="",e!=null&&(n=e.replace(Wc,"$&/")+"/"),Fi(o,t,n,"",function(u){return u})):o!=null&&(wu(o)&&(o=xg(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Wc,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Hc(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+pl(i,l);s+=Fi(i,t,n,a,o)}else if(a=wg(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+pl(i,l++),s+=Fi(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 s}function hi(e,t,n){if(e==null)return e;var r=[],o=0;return Fi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Eg(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 tt={current:null},ji={transition:null},Cg={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:ji,ReactCurrentOwner:gu};function Jf(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:hi,forEach:function(e,t,n){hi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hi(e,function(){t++}),t},toArray:function(e){return hi(e,function(t){return t})||[]},only:function(e){if(!wu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=qr;te.Fragment=cg;te.Profiler=fg;te.PureComponent=vu;te.StrictMode=dg;te.Suspense=vg;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cg;te.act=Jf;te.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=Yf({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=gu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Xf.call(t,a)&&!Zf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:ni,type:e.type,key:o,ref:i,props:r,_owner:s}};te.createContext=function(e){return e={$$typeof:hg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pg,_context:e},e.Consumer=e};te.createElement=qf;te.createFactory=function(e){var t=qf.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:mg,render:e}};te.isValidElement=wu;te.lazy=function(e){return{$$typeof:gg,_payload:{_status:-1,_result:e},_init:Eg}};te.memo=function(e,t){return{$$typeof:yg,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=ji.transition;ji.transition={};try{e()}finally{ji.transition=t}};te.unstable_act=Jf;te.useCallback=function(e,t){return tt.current.useCallback(e,t)};te.useContext=function(e){return tt.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};te.useEffect=function(e,t){return tt.current.useEffect(e,t)};te.useId=function(){return tt.current.useId()};te.useImperativeHandle=function(e,t,n){return tt.current.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return tt.current.useMemo(e,t)};te.useReducer=function(e,t,n){return tt.current.useReducer(e,t,n)};te.useRef=function(e){return tt.current.useRef(e)};te.useState=function(e){return tt.current.useState(e)};te.useSyncExternalStore=function(e,t,n){return tt.current.useSyncExternalStore(e,t,n)};te.useTransition=function(){return tt.current.useTransition()};te.version="18.3.1";Wf.exports=te;var f=Wf.exports;const T=Uf(f),xu=ag({__proto__:null,default:T},[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 kg=f,_g=Symbol.for("react.element"),Rg=Symbol.for("react.fragment"),Pg=Object.prototype.hasOwnProperty,Tg=kg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ng={key:!0,ref:!0,__self:!0,__source:!0};function ep(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Pg.call(t,r)&&!Ng.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:_g,type:e,key:i,ref:s,props:o,_owner:Tg.current}}Is.Fragment=Rg;Is.jsx=ep;Is.jsxs=ep;Hf.exports=Is;var R=Hf.exports,Kc={},tp={exports:{}},wt={};/**
|
|
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 Ag=f,gt=Gy;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 np=new Set,Oo={};function pr(e,t){Hr(e,t),Hr(e+"Capture",t)}function Hr(e,t){for(Oo[e]=t,e=0;e<t.length;e++)np.add(t[e])}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ia=Object.prototype.hasOwnProperty,Dg=/^[: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]*$/,Yc={},Gc={};function Ig(e){return ia.call(Gc,e)?!0:ia.call(Yc,e)?!1:Dg.test(e)?Gc[e]=!0:(Yc[e]=!0,!1)}function bg(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 Mg(e,t,n,r){if(t===null||typeof t>"u"||bg(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 nt(e,t,n,r,o,i,s){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=s}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new nt(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 nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new nt(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 nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Su=/[\-:]([a-z])/g;function Eu(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(Su,Eu);He[t]=new nt(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(Su,Eu);He[t]=new nt(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(Su,Eu);He[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cu(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")&&(Mg(t,n,o,r)&&(n=null),r||o===null?Ig(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 vn=Ag.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,mi=Symbol.for("react.element"),Er=Symbol.for("react.portal"),Cr=Symbol.for("react.fragment"),ku=Symbol.for("react.strict_mode"),sa=Symbol.for("react.profiler"),rp=Symbol.for("react.provider"),op=Symbol.for("react.context"),_u=Symbol.for("react.forward_ref"),la=Symbol.for("react.suspense"),aa=Symbol.for("react.suspense_list"),Ru=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),ip=Symbol.for("react.offscreen"),Qc=Symbol.iterator;function co(e){return e===null||typeof e!="object"?null:(e=Qc&&e[Qc]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Object.assign,hl;function So(e){if(hl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);hl=t&&t[1]||""}return`
|
|
26
|
-
`+hl+e}var ml=!1;function vl(e,t){if(!e||ml)return"";ml=!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
|
-
`),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=`
|
|
29
|
-
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?So(e):""}function Og(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=vl(e.type,!1),e;case 11:return e=vl(e.type.render,!1),e;case 1:return e=vl(e.type,!0),e;default:return""}}function ua(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 Cr:return"Fragment";case Er:return"Portal";case sa:return"Profiler";case ku:return"StrictMode";case la:return"Suspense";case aa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case op:return(e.displayName||"Context")+".Consumer";case rp:return(e._context.displayName||"Context")+".Provider";case _u:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ru:return t=e.displayName||null,t!==null?t:ua(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return ua(e(t))}catch{}}return null}function Lg(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 ua(t);case 8:return t===ku?"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 Vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fg(e){var t=sp(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(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vi(e){e._valueTracker||(e._valueTracker=Fg(e))}function lp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function es(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 ca(e,t){var n=t.checked;return _e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vn(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 ap(e,t){t=t.checked,t!=null&&Cu(e,"checked",t,!1)}function da(e,t){ap(e,t);var n=Vn(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")?fa(e,t.type,n):t.hasOwnProperty("defaultValue")&&fa(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zc(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 fa(e,t,n){(t!=="number"||es(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Eo=Array.isArray;function Or(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=""+Vn(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 pa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return _e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qc(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:Vn(n)}}function up(e,t){var n=Vn(t.value),r=Vn(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 Jc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function cp(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 ha(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yi,dp=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(yi=yi||document.createElement("div"),yi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lo(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},jg=["Webkit","ms","Moz","O"];Object.keys(Ro).forEach(function(e){jg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ro[t]=Ro[e]})});function fp(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 pp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=fp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var $g=_e({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 ma(e,t){if(t){if($g[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 va(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 ya=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ga=null,Lr=null,Fr=null;function ed(e){if(e=ii(e)){if(typeof ga!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Fs(t),ga(e.stateNode,e.type,t))}}function hp(e){Lr?Fr?Fr.push(e):Fr=[e]:Lr=e}function mp(){if(Lr){var e=Lr,t=Fr;if(Fr=Lr=null,ed(e),t)for(e=0;e<t.length;e++)ed(t[e])}}function vp(e,t){return e(t)}function yp(){}var yl=!1;function gp(e,t,n){if(yl)return e(t,n);yl=!0;try{return vp(e,t,n)}finally{yl=!1,(Lr!==null||Fr!==null)&&(yp(),mp())}}function Fo(e,t){var n=e.stateNode;if(n===null)return null;var r=Fs(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 wa=!1;if(dn)try{var fo={};Object.defineProperty(fo,"passive",{get:function(){wa=!0}}),window.addEventListener("test",fo,fo),window.removeEventListener("test",fo,fo)}catch{wa=!1}function Vg(e,t,n,r,o,i,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Po=!1,ts=null,ns=!1,xa=null,zg={onError:function(e){Po=!0,ts=e}};function Bg(e,t,n,r,o,i,s,l,a){Po=!1,ts=null,Vg.apply(zg,arguments)}function Ug(e,t,n,r,o,i,s,l,a){if(Bg.apply(this,arguments),Po){if(Po){var u=ts;Po=!1,ts=null}else throw Error(D(198));ns||(ns=!0,xa=u)}}function hr(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 wp(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 td(e){if(hr(e)!==e)throw Error(D(188))}function Hg(e){var t=e.alternate;if(!t){if(t=hr(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 td(o),e;if(i===r)return td(o),t;i=i.sibling}throw Error(D(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)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 xp(e){return e=Hg(e),e!==null?Sp(e):null}function Sp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Sp(e);if(t!==null)return t;e=e.sibling}return null}var Ep=gt.unstable_scheduleCallback,nd=gt.unstable_cancelCallback,Wg=gt.unstable_shouldYield,Kg=gt.unstable_requestPaint,Ne=gt.unstable_now,Yg=gt.unstable_getCurrentPriorityLevel,Tu=gt.unstable_ImmediatePriority,Cp=gt.unstable_UserBlockingPriority,rs=gt.unstable_NormalPriority,Gg=gt.unstable_LowPriority,kp=gt.unstable_IdlePriority,bs=null,Jt=null;function Qg(e){if(Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(bs,e,void 0,(e.current.flags&128)===128)}catch{}}var zt=Math.clz32?Math.clz32:qg,Xg=Math.log,Zg=Math.LN2;function qg(e){return e>>>=0,e===0?32:31-(Xg(e)/Zg|0)|0}var gi=64,wi=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 os(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Co(l):(i&=s,i!==0&&(r=Co(i)))}else s=n&~o,s!==0?r=Co(s):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-zt(t),o=1<<n,r|=e[n],t&=~o;return r}function Jg(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 e0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-zt(i),l=1<<s,a=o[s];a===-1?(!(l&n)||l&r)&&(o[s]=Jg(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function Sa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _p(){var e=gi;return gi<<=1,!(gi&4194240)&&(gi=64),e}function gl(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-zt(t),e[t]=n}function t0(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-zt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Nu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-zt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pe=0;function Rp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Pp,Au,Tp,Np,Ap,Ea=!1,xi=[],Dn=null,In=null,bn=null,jo=new Map,$o=new Map,Pn=[],n0="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 rd(e,t){switch(e){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":bn=null;break;case"pointerover":case"pointerout":jo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$o.delete(t.pointerId)}}function po(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&&Au(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function r0(e,t,n,r,o){switch(t){case"focusin":return Dn=po(Dn,e,t,n,r,o),!0;case"dragenter":return In=po(In,e,t,n,r,o),!0;case"mouseover":return bn=po(bn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jo.set(i,po(jo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,$o.set(i,po($o.get(i)||null,e,t,n,r,o)),!0}return!1}function Dp(e){var t=qn(e.target);if(t!==null){var n=hr(t);if(n!==null){if(t=n.tag,t===13){if(t=wp(n),t!==null){e.blockedOn=t,Ap(e.priority,function(){Tp(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 $i(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ca(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ya=r,n.target.dispatchEvent(r),ya=null}else return t=ii(n),t!==null&&Au(t),e.blockedOn=n,!1;t.shift()}return!0}function od(e,t,n){$i(e)&&n.delete(t)}function o0(){Ea=!1,Dn!==null&&$i(Dn)&&(Dn=null),In!==null&&$i(In)&&(In=null),bn!==null&&$i(bn)&&(bn=null),jo.forEach(od),$o.forEach(od)}function ho(e,t){e.blockedOn===t&&(e.blockedOn=null,Ea||(Ea=!0,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,o0)))}function Vo(e){function t(o){return ho(o,e)}if(0<xi.length){ho(xi[0],e);for(var n=1;n<xi.length;n++){var r=xi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Dn!==null&&ho(Dn,e),In!==null&&ho(In,e),bn!==null&&ho(bn,e),jo.forEach(t),$o.forEach(t),n=0;n<Pn.length;n++)r=Pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Pn.length&&(n=Pn[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Pn.shift()}var jr=vn.ReactCurrentBatchConfig,is=!0;function i0(e,t,n,r){var o=pe,i=jr.transition;jr.transition=null;try{pe=1,Du(e,t,n,r)}finally{pe=o,jr.transition=i}}function s0(e,t,n,r){var o=pe,i=jr.transition;jr.transition=null;try{pe=4,Du(e,t,n,r)}finally{pe=o,jr.transition=i}}function Du(e,t,n,r){if(is){var o=Ca(e,t,n,r);if(o===null)Tl(e,t,r,ss,n),rd(e,r);else if(r0(o,e,t,n,r))r.stopPropagation();else if(rd(e,r),t&4&&-1<n0.indexOf(e)){for(;o!==null;){var i=ii(o);if(i!==null&&Pp(i),i=Ca(e,t,n,r),i===null&&Tl(e,t,r,ss,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Tl(e,t,r,null,n)}}var ss=null;function Ca(e,t,n,r){if(ss=null,e=Pu(r),e=qn(e),e!==null)if(t=hr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=wp(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 ss=e,null}function Ip(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(Yg()){case Tu:return 1;case Cp:return 4;case rs:case Gg:return 16;case kp:return 536870912;default:return 16}default:return 16}}var Nn=null,Iu=null,Vi=null;function bp(){if(Vi)return Vi;var e,t=Iu,n=t.length,r,o="value"in Nn?Nn.value:Nn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Vi=o.slice(e,1<r?1-r:void 0)}function zi(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 Si(){return!0}function id(){return!1}function xt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Si:id,this.isPropagationStopped=id,this}return _e(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=Si)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Si)},persist:function(){},isPersistent:Si}),t}var Jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bu=xt(Jr),oi=_e({},Jr,{view:0,detail:0}),l0=xt(oi),wl,xl,mo,Ms=_e({},oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mu,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!==mo&&(mo&&e.type==="mousemove"?(wl=e.screenX-mo.screenX,xl=e.screenY-mo.screenY):xl=wl=0,mo=e),wl)},movementY:function(e){return"movementY"in e?e.movementY:xl}}),sd=xt(Ms),a0=_e({},Ms,{dataTransfer:0}),u0=xt(a0),c0=_e({},oi,{relatedTarget:0}),Sl=xt(c0),d0=_e({},Jr,{animationName:0,elapsedTime:0,pseudoElement:0}),f0=xt(d0),p0=_e({},Jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),h0=xt(p0),m0=_e({},Jr,{data:0}),ld=xt(m0),v0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},y0={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"},g0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=g0[e])?!!t[e]:!1}function Mu(){return w0}var x0=_e({},oi,{key:function(e){if(e.key){var t=v0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?y0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mu,charCode:function(e){return e.type==="keypress"?zi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),S0=xt(x0),E0=_e({},Ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ad=xt(E0),C0=_e({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mu}),k0=xt(C0),_0=_e({},Jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),R0=xt(_0),P0=_e({},Ms,{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}),T0=xt(P0),N0=[9,13,27,32],Ou=dn&&"CompositionEvent"in window,To=null;dn&&"documentMode"in document&&(To=document.documentMode);var A0=dn&&"TextEvent"in window&&!To,Mp=dn&&(!Ou||To&&8<To&&11>=To),ud=" ",cd=!1;function Op(e,t){switch(e){case"keyup":return N0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kr=!1;function D0(e,t){switch(e){case"compositionend":return Lp(t);case"keypress":return t.which!==32?null:(cd=!0,ud);case"textInput":return e=t.data,e===ud&&cd?null:e;default:return null}}function I0(e,t){if(kr)return e==="compositionend"||!Ou&&Op(e,t)?(e=bp(),Vi=Iu=Nn=null,kr=!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 Mp&&t.locale!=="ko"?null:t.data;default:return null}}var b0={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 dd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!b0[e.type]:t==="textarea"}function Fp(e,t,n,r){hp(r),t=ls(t,"onChange"),0<t.length&&(n=new bu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var No=null,zo=null;function M0(e){Gp(e,0)}function Os(e){var t=Pr(e);if(lp(t))return e}function O0(e,t){if(e==="change")return t}var jp=!1;if(dn){var El;if(dn){var Cl="oninput"in document;if(!Cl){var fd=document.createElement("div");fd.setAttribute("oninput","return;"),Cl=typeof fd.oninput=="function"}El=Cl}else El=!1;jp=El&&(!document.documentMode||9<document.documentMode)}function pd(){No&&(No.detachEvent("onpropertychange",$p),zo=No=null)}function $p(e){if(e.propertyName==="value"&&Os(zo)){var t=[];Fp(t,zo,e,Pu(e)),gp(M0,t)}}function L0(e,t,n){e==="focusin"?(pd(),No=t,zo=n,No.attachEvent("onpropertychange",$p)):e==="focusout"&&pd()}function F0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Os(zo)}function j0(e,t){if(e==="click")return Os(t)}function $0(e,t){if(e==="input"||e==="change")return Os(t)}function V0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:V0;function Bo(e,t){if(Ut(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(!ia.call(t,o)||!Ut(e[o],t[o]))return!1}return!0}function hd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function md(e,t){var n=hd(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=hd(n)}}function Vp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zp(){for(var e=window,t=es();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=es(e.document)}return t}function Lu(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 z0(e){var t=zp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Vp(n.ownerDocument.documentElement,n)){if(r!==null&&Lu(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=md(n,i);var s=md(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 B0=dn&&"documentMode"in document&&11>=document.documentMode,_r=null,ka=null,Ao=null,_a=!1;function vd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_a||_r==null||_r!==es(r)||(r=_r,"selectionStart"in r&&Lu(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=ls(ka,"onSelect"),0<r.length&&(t=new bu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_r)))}function Ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rr={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionend:Ei("Transition","TransitionEnd")},kl={},Bp={};dn&&(Bp=document.createElement("div").style,"AnimationEvent"in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),"TransitionEvent"in window||delete Rr.transitionend.transition);function Ls(e){if(kl[e])return kl[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bp)return kl[e]=t[n];return e}var Up=Ls("animationend"),Hp=Ls("animationiteration"),Wp=Ls("animationstart"),Kp=Ls("transitionend"),Yp=new Map,yd="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 Un(e,t){Yp.set(e,t),pr(t,[e])}for(var _l=0;_l<yd.length;_l++){var Rl=yd[_l],U0=Rl.toLowerCase(),H0=Rl[0].toUpperCase()+Rl.slice(1);Un(U0,"on"+H0)}Un(Up,"onAnimationEnd");Un(Hp,"onAnimationIteration");Un(Wp,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(Kp,"onTransitionEnd");Hr("onMouseEnter",["mouseout","mouseover"]);Hr("onMouseLeave",["mouseout","mouseover"]);Hr("onPointerEnter",["pointerout","pointerover"]);Hr("onPointerLeave",["pointerout","pointerover"]);pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pr("onBeforeInput",["compositionend","keypress","textInput","paste"]);pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pr("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 gd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ug(r,t,void 0,e),e.currentTarget=null}function Gp(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 s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;gd(o,l,u),i=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;gd(o,l,u),i=a}}}if(ns)throw e=xa,ns=!1,xa=null,e}function ge(e,t){var n=t[Aa];n===void 0&&(n=t[Aa]=new Set);var r=e+"__bubble";n.has(r)||(Qp(t,e,2,!1),n.add(r))}function Pl(e,t,n){var r=0;t&&(r|=4),Qp(n,e,r,t)}var Ci="_reactListening"+Math.random().toString(36).slice(2);function Uo(e){if(!e[Ci]){e[Ci]=!0,np.forEach(function(n){n!=="selectionchange"&&(W0.has(n)||Pl(n,!1,e),Pl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ci]||(t[Ci]=!0,Pl("selectionchange",!1,t))}}function Qp(e,t,n,r){switch(Ip(t)){case 1:var o=i0;break;case 4:o=s0;break;default:o=Du}n=o.bind(null,t,n,e),o=void 0,!wa||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 Tl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;l!==null;){if(s=qn(l),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}l=l.parentNode}}r=r.return}gp(function(){var u=i,d=Pu(n),c=[];e:{var v=Yp.get(e);if(v!==void 0){var w=bu,S=e;switch(e){case"keypress":if(zi(n)===0)break e;case"keydown":case"keyup":w=S0;break;case"focusin":S="focus",w=Sl;break;case"focusout":S="blur",w=Sl;break;case"beforeblur":case"afterblur":w=Sl;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":w=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=u0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=k0;break;case Up:case Hp:case Wp:w=f0;break;case Kp:w=R0;break;case"scroll":w=l0;break;case"wheel":w=T0;break;case"copy":case"cut":case"paste":w=h0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=ad}var y=(t&4)!==0,x=!y&&e==="scroll",h=y?v!==null?v+"Capture":null:v;y=[];for(var p=u,m;p!==null;){m=p;var g=m.stateNode;if(m.tag===5&&g!==null&&(m=g,h!==null&&(g=Fo(p,h),g!=null&&y.push(Ho(p,g,m)))),x)break;p=p.return}0<y.length&&(v=new w(v,S,null,n,d),c.push({event:v,listeners:y}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",v&&n!==ya&&(S=n.relatedTarget||n.fromElement)&&(qn(S)||S[fn]))break e;if((w||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.parentWindow:window,w?(S=n.relatedTarget||n.toElement,w=u,S=S?qn(S):null,S!==null&&(x=hr(S),S!==x||S.tag!==5&&S.tag!==6)&&(S=null)):(w=null,S=u),w!==S)){if(y=sd,g="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=ad,g="onPointerLeave",h="onPointerEnter",p="pointer"),x=w==null?v:Pr(w),m=S==null?v:Pr(S),v=new y(g,p+"leave",w,n,d),v.target=x,v.relatedTarget=m,g=null,qn(d)===u&&(y=new y(h,p+"enter",S,n,d),y.target=m,y.relatedTarget=x,g=y),x=g,w&&S)t:{for(y=w,h=S,p=0,m=y;m;m=yr(m))p++;for(m=0,g=h;g;g=yr(g))m++;for(;0<p-m;)y=yr(y),p--;for(;0<m-p;)h=yr(h),m--;for(;p--;){if(y===h||h!==null&&y===h.alternate)break t;y=yr(y),h=yr(h)}y=null}else y=null;w!==null&&wd(c,v,w,y,!1),S!==null&&x!==null&&wd(c,x,S,y,!0)}}e:{if(v=u?Pr(u):window,w=v.nodeName&&v.nodeName.toLowerCase(),w==="select"||w==="input"&&v.type==="file")var E=O0;else if(dd(v))if(jp)E=$0;else{E=F0;var _=L0}else(w=v.nodeName)&&w.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(E=j0);if(E&&(E=E(e,u))){Fp(c,E,n,d);break e}_&&_(e,v,u),e==="focusout"&&(_=v._wrapperState)&&_.controlled&&v.type==="number"&&fa(v,"number",v.value)}switch(_=u?Pr(u):window,e){case"focusin":(dd(_)||_.contentEditable==="true")&&(_r=_,ka=u,Ao=null);break;case"focusout":Ao=ka=_r=null;break;case"mousedown":_a=!0;break;case"contextmenu":case"mouseup":case"dragend":_a=!1,vd(c,n,d);break;case"selectionchange":if(B0)break;case"keydown":case"keyup":vd(c,n,d)}var k;if(Ou)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 kr?Op(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(Mp&&n.locale!=="ko"&&(kr||A!=="onCompositionStart"?A==="onCompositionEnd"&&kr&&(k=bp()):(Nn=d,Iu="value"in Nn?Nn.value:Nn.textContent,kr=!0)),_=ls(u,A),0<_.length&&(A=new ld(A,e,null,n,d),c.push({event:A,listeners:_}),k?A.data=k:(k=Lp(n),k!==null&&(A.data=k)))),(k=A0?D0(e,n):I0(e,n))&&(u=ls(u,"onBeforeInput"),0<u.length&&(d=new ld("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=k))}Gp(c,t)})}function Ho(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ls(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 yr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wd(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,o?(a=Fo(n,i),a!=null&&s.unshift(Ho(n,a,l))):o||(a=Fo(n,i),a!=null&&s.push(Ho(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var K0=/\r\n?/g,Y0=/\u0000|\uFFFD/g;function xd(e){return(typeof e=="string"?e:""+e).replace(K0,`
|
|
30
|
-
`).replace(Y0,"")}function ki(e,t,n){if(t=xd(t),xd(e)!==t&&n)throw Error(D(425))}function as(){}var Ra=null,Pa=null;function Ta(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 Na=typeof setTimeout=="function"?setTimeout:void 0,G0=typeof clearTimeout=="function"?clearTimeout:void 0,Sd=typeof Promise=="function"?Promise:void 0,Q0=typeof queueMicrotask=="function"?queueMicrotask:typeof Sd<"u"?function(e){return Sd.resolve(null).then(e).catch(X0)}:Na;function X0(e){setTimeout(function(){throw e})}function Nl(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),Vo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Vo(t)}function Mn(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 Ed(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 eo=Math.random().toString(36).slice(2),qt="__reactFiber$"+eo,Wo="__reactProps$"+eo,fn="__reactContainer$"+eo,Aa="__reactEvents$"+eo,Z0="__reactListeners$"+eo,q0="__reactHandles$"+eo;function qn(e){var t=e[qt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fn]||n[qt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ed(e);e!==null;){if(n=e[qt])return n;e=Ed(e)}return t}e=n,n=e.parentNode}return null}function ii(e){return e=e[qt]||e[fn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Fs(e){return e[Wo]||null}var Da=[],Tr=-1;function Hn(e){return{current:e}}function xe(e){0>Tr||(e.current=Da[Tr],Da[Tr]=null,Tr--)}function ye(e,t){Tr++,Da[Tr]=e.current,e.current=t}var zn={},Ze=Hn(zn),at=Hn(!1),or=zn;function Wr(e,t){var n=e.type.contextTypes;if(!n)return zn;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 us(){xe(at),xe(Ze)}function Cd(e,t,n){if(Ze.current!==zn)throw Error(D(168));ye(Ze,t),ye(at,n)}function Xp(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,Lg(e)||"Unknown",o));return _e({},n,r)}function cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,or=Ze.current,ye(Ze,e),ye(at,at.current),!0}function kd(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Xp(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,xe(at),xe(Ze),ye(Ze,e)):xe(at),ye(at,n)}var on=null,js=!1,Al=!1;function Zp(e){on===null?on=[e]:on.push(e)}function J0(e){js=!0,Zp(e)}function Wn(){if(!Al&&on!==null){Al=!0;var e=0,t=pe;try{var n=on;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}on=null,js=!1}catch(o){throw on!==null&&(on=on.slice(e+1)),Ep(Tu,Wn),o}finally{pe=t,Al=!1}}return null}var Nr=[],Ar=0,ds=null,fs=0,Ct=[],kt=0,ir=null,sn=1,ln="";function Xn(e,t){Nr[Ar++]=fs,Nr[Ar++]=ds,ds=e,fs=t}function qp(e,t,n){Ct[kt++]=sn,Ct[kt++]=ln,Ct[kt++]=ir,ir=e;var r=sn;e=ln;var o=32-zt(r)-1;r&=~(1<<o),n+=1;var i=32-zt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,sn=1<<32-zt(t)+o|n<<o|r,ln=i+e}else sn=1<<i|n<<o|r,ln=e}function Fu(e){e.return!==null&&(Xn(e,1),qp(e,1,0))}function ju(e){for(;e===ds;)ds=Nr[--Ar],Nr[Ar]=null,fs=Nr[--Ar],Nr[Ar]=null;for(;e===ir;)ir=Ct[--kt],Ct[kt]=null,ln=Ct[--kt],Ct[kt]=null,sn=Ct[--kt],Ct[kt]=null}var yt=null,vt=null,Se=!1,jt=null;function Jp(e,t){var n=Rt(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 _d(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,yt=e,vt=Mn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,yt=e,vt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ir!==null?{id:sn,overflow:ln}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,yt=e,vt=null,!0):!1;default:return!1}}function Ia(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ba(e){if(Se){var t=vt;if(t){var n=t;if(!_d(e,t)){if(Ia(e))throw Error(D(418));t=Mn(n.nextSibling);var r=yt;t&&_d(e,t)?Jp(r,n):(e.flags=e.flags&-4097|2,Se=!1,yt=e)}}else{if(Ia(e))throw Error(D(418));e.flags=e.flags&-4097|2,Se=!1,yt=e}}}function Rd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;yt=e}function _i(e){if(e!==yt)return!1;if(!Se)return Rd(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ta(e.type,e.memoizedProps)),t&&(t=vt)){if(Ia(e))throw eh(),Error(D(418));for(;t;)Jp(e,t),t=Mn(t.nextSibling)}if(Rd(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){vt=Mn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}vt=null}}else vt=yt?Mn(e.stateNode.nextSibling):null;return!0}function eh(){for(var e=vt;e;)e=Mn(e.nextSibling)}function Kr(){vt=yt=null,Se=!1}function $u(e){jt===null?jt=[e]:jt.push(e)}var e1=vn.ReactCurrentBatchConfig;function vo(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(s){var l=o.refs;s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Ri(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Pd(e){var t=e._init;return t(e._payload)}function th(e){function t(h,p){if(e){var m=h.deletions;m===null?(h.deletions=[p],h.flags|=16):m.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=jn(h,p),h.index=0,h.sibling=null,h}function i(h,p,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<p?(h.flags|=2,p):m):(h.flags|=2,p)):(h.flags|=1048576,p)}function s(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,p,m,g){return p===null||p.tag!==6?(p=Fl(m,h.mode,g),p.return=h,p):(p=o(p,m),p.return=h,p)}function a(h,p,m,g){var E=m.type;return E===Cr?d(h,p,m.props.children,g,m.key):p!==null&&(p.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===kn&&Pd(E)===p.type)?(g=o(p,m.props),g.ref=vo(h,p,m),g.return=h,g):(g=Gi(m.type,m.key,m.props,null,h.mode,g),g.ref=vo(h,p,m),g.return=h,g)}function u(h,p,m,g){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=jl(m,h.mode,g),p.return=h,p):(p=o(p,m.children||[]),p.return=h,p)}function d(h,p,m,g,E){return p===null||p.tag!==7?(p=rr(m,h.mode,g,E),p.return=h,p):(p=o(p,m),p.return=h,p)}function c(h,p,m){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Fl(""+p,h.mode,m),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case mi:return m=Gi(p.type,p.key,p.props,null,h.mode,m),m.ref=vo(h,null,p),m.return=h,m;case Er:return p=jl(p,h.mode,m),p.return=h,p;case kn:var g=p._init;return c(h,g(p._payload),m)}if(Eo(p)||co(p))return p=rr(p,h.mode,m,null),p.return=h,p;Ri(h,p)}return null}function v(h,p,m,g){var E=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return E!==null?null:l(h,p,""+m,g);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case mi:return m.key===E?a(h,p,m,g):null;case Er:return m.key===E?u(h,p,m,g):null;case kn:return E=m._init,v(h,p,E(m._payload),g)}if(Eo(m)||co(m))return E!==null?null:d(h,p,m,g,null);Ri(h,m)}return null}function w(h,p,m,g,E){if(typeof g=="string"&&g!==""||typeof g=="number")return h=h.get(m)||null,l(p,h,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case mi:return h=h.get(g.key===null?m:g.key)||null,a(p,h,g,E);case Er:return h=h.get(g.key===null?m:g.key)||null,u(p,h,g,E);case kn:var _=g._init;return w(h,p,m,_(g._payload),E)}if(Eo(g)||co(g))return h=h.get(m)||null,d(p,h,g,E,null);Ri(p,g)}return null}function S(h,p,m,g){for(var E=null,_=null,k=p,A=p=0,j=null;k!==null&&A<m.length;A++){k.index>A?(j=k,k=null):j=k.sibling;var F=v(h,k,m[A],g);if(F===null){k===null&&(k=j);break}e&&k&&F.alternate===null&&t(h,k),p=i(F,p,A),_===null?E=F:_.sibling=F,_=F,k=j}if(A===m.length)return n(h,k),Se&&Xn(h,A),E;if(k===null){for(;A<m.length;A++)k=c(h,m[A],g),k!==null&&(p=i(k,p,A),_===null?E=k:_.sibling=k,_=k);return Se&&Xn(h,A),E}for(k=r(h,k);A<m.length;A++)j=w(k,h,A,m[A],g),j!==null&&(e&&j.alternate!==null&&k.delete(j.key===null?A:j.key),p=i(j,p,A),_===null?E=j:_.sibling=j,_=j);return e&&k.forEach(function(W){return t(h,W)}),Se&&Xn(h,A),E}function y(h,p,m,g){var E=co(m);if(typeof E!="function")throw Error(D(150));if(m=E.call(m),m==null)throw Error(D(151));for(var _=E=null,k=p,A=p=0,j=null,F=m.next();k!==null&&!F.done;A++,F=m.next()){k.index>A?(j=k,k=null):j=k.sibling;var W=v(h,k,F.value,g);if(W===null){k===null&&(k=j);break}e&&k&&W.alternate===null&&t(h,k),p=i(W,p,A),_===null?E=W:_.sibling=W,_=W,k=j}if(F.done)return n(h,k),Se&&Xn(h,A),E;if(k===null){for(;!F.done;A++,F=m.next())F=c(h,F.value,g),F!==null&&(p=i(F,p,A),_===null?E=F:_.sibling=F,_=F);return Se&&Xn(h,A),E}for(k=r(h,k);!F.done;A++,F=m.next())F=w(k,h,A,F.value,g),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(B){return t(h,B)}),Se&&Xn(h,A),E}function x(h,p,m,g){if(typeof m=="object"&&m!==null&&m.type===Cr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case mi:e:{for(var E=m.key,_=p;_!==null;){if(_.key===E){if(E=m.type,E===Cr){if(_.tag===7){n(h,_.sibling),p=o(_,m.props.children),p.return=h,h=p;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===kn&&Pd(E)===_.type){n(h,_.sibling),p=o(_,m.props),p.ref=vo(h,_,m),p.return=h,h=p;break e}n(h,_);break}else t(h,_);_=_.sibling}m.type===Cr?(p=rr(m.props.children,h.mode,g,m.key),p.return=h,h=p):(g=Gi(m.type,m.key,m.props,null,h.mode,g),g.ref=vo(h,p,m),g.return=h,h=g)}return s(h);case Er:e:{for(_=m.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=o(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=jl(m,h.mode,g),p.return=h,h=p}return s(h);case kn:return _=m._init,x(h,p,_(m._payload),g)}if(Eo(m))return S(h,p,m,g);if(co(m))return y(h,p,m,g);Ri(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,m),p.return=h,h=p):(n(h,p),p=Fl(m,h.mode,g),p.return=h,h=p),s(h)):n(h,p)}return x}var Yr=th(!0),nh=th(!1),ps=Hn(null),hs=null,Dr=null,Vu=null;function zu(){Vu=Dr=hs=null}function Bu(e){var t=ps.current;xe(ps),e._currentValue=t}function Ma(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 $r(e,t){hs=e,Vu=Dr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Tt(e){var t=e._currentValue;if(Vu!==e)if(e={context:e,memoizedValue:t,next:null},Dr===null){if(hs===null)throw Error(D(308));Dr=e,hs.dependencies={lanes:0,firstContext:e}}else Dr=Dr.next=e;return t}var Jn=null;function Uu(e){Jn===null?Jn=[e]:Jn.push(e)}function rh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Uu(t)):(n.next=o.next,o.next=n),t.interleaved=n,pn(e,r)}function pn(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 _n=!1;function Hu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oh(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,ie&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,pn(e,n)}return o=r.interleaved,o===null?(t.next=t,Uu(r)):(t.next=o.next,o.next=t),r.interleaved=t,pn(e,n)}function Bi(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,Nu(e,n)}}function Td(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,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 ms(e,t,n,r){var o=e.updateQueue;_n=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;s=0,d=u=a=null,l=i;do{var v=l.lane,w=l.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,y=l;switch(v=t,w=n,y.tag){case 1:if(S=y.payload,typeof S=="function"){c=S.call(w,c,v);break e}c=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=y.payload,v=typeof S=="function"?S.call(w,c,v):S,v==null)break e;c=_e({},c,v);break e;case 2:_n=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[l]:v.push(l))}else w={eventTime:w,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=w,a=c):d=d.next=w,s|=v;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;v=l,l=v.next,v.next=null,o.lastBaseUpdate=v,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 s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);lr|=s,e.lanes=s,e.memoizedState=c}}function Nd(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 si={},en=Hn(si),Ko=Hn(si),Yo=Hn(si);function er(e){if(e===si)throw Error(D(174));return e}function Wu(e,t){switch(ye(Yo,t),ye(Ko,e),ye(en,si),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ha(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ha(t,e)}xe(en),ye(en,t)}function Gr(){xe(en),xe(Ko),xe(Yo)}function ih(e){er(Yo.current);var t=er(en.current),n=ha(t,e.type);t!==n&&(ye(Ko,e),ye(en,n))}function Ku(e){Ko.current===e&&(xe(en),xe(Ko))}var Ce=Hn(0);function vs(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 Dl=[];function Yu(){for(var e=0;e<Dl.length;e++)Dl[e]._workInProgressVersionPrimary=null;Dl.length=0}var Ui=vn.ReactCurrentDispatcher,Il=vn.ReactCurrentBatchConfig,sr=0,ke=null,be=null,Le=null,ys=!1,Do=!1,Go=0,t1=0;function Ye(){throw Error(D(321))}function Gu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ut(e[n],t[n]))return!1;return!0}function Qu(e,t,n,r,o,i){if(sr=i,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ui.current=e===null||e.memoizedState===null?i1:s1,e=n(r,o),Do){i=0;do{if(Do=!1,Go=0,25<=i)throw Error(D(301));i+=1,Le=be=null,t.updateQueue=null,Ui.current=l1,e=n(r,o)}while(Do)}if(Ui.current=gs,t=be!==null&&be.next!==null,sr=0,Le=be=ke=null,ys=!1,t)throw Error(D(300));return e}function Xu(){var e=Go!==0;return Go=0,e}function Zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?ke.memoizedState=Le=e:Le=Le.next=e,Le}function Nt(){if(be===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Le===null?ke.memoizedState:Le.next;if(t!==null)Le=t,be=e;else{if(e===null)throw Error(D(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Le===null?ke.memoizedState=Le=e:Le=Le.next=e}return Le}function Qo(e,t){return typeof t=="function"?t(e):t}function bl(e){var t=Nt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=be,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=s=null,a=null,u=i;do{var d=u.lane;if((sr&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?(l=a=c,s=r):a=a.next=c,ke.lanes|=d,lr|=d}u=u.next}while(u!==null&&u!==i);a===null?s=r:a.next=l,Ut(r,t.memoizedState)||(st=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ke.lanes|=i,lr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ml(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 s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Ut(i,t.memoizedState)||(st=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function sh(){}function lh(e,t){var n=ke,r=Nt(),o=t(),i=!Ut(r.memoizedState,o);if(i&&(r.memoizedState=o,st=!0),r=r.queue,Zu(ch.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,Xo(9,uh.bind(null,n,r,o,t),void 0,null),Fe===null)throw Error(D(349));sr&30||ah(n,t,o)}return o}function ah(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function uh(e,t,n,r){t.value=n,t.getSnapshot=r,dh(t)&&fh(e)}function ch(e,t,n){return n(function(){dh(t)&&fh(e)})}function dh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ut(e,n)}catch{return!0}}function fh(e){var t=pn(e,1);t!==null&&Bt(t,e,1,-1)}function Ad(e){var t=Zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qo,lastRenderedState:e},t.queue=e,e=e.dispatch=o1.bind(null,ke,e),[t.memoizedState,e]}function Xo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.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 ph(){return Nt().memoizedState}function Hi(e,t,n,r){var o=Zt();ke.flags|=e,o.memoizedState=Xo(1|t,n,void 0,r===void 0?null:r)}function $s(e,t,n,r){var o=Nt();r=r===void 0?null:r;var i=void 0;if(be!==null){var s=be.memoizedState;if(i=s.destroy,r!==null&&Gu(r,s.deps)){o.memoizedState=Xo(t,n,i,r);return}}ke.flags|=e,o.memoizedState=Xo(1|t,n,i,r)}function Dd(e,t){return Hi(8390656,8,e,t)}function Zu(e,t){return $s(2048,8,e,t)}function hh(e,t){return $s(4,2,e,t)}function mh(e,t){return $s(4,4,e,t)}function vh(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 yh(e,t,n){return n=n!=null?n.concat([e]):null,$s(4,4,vh.bind(null,t,e),n)}function qu(){}function gh(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Gu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function wh(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Gu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xh(e,t,n){return sr&21?(Ut(n,t)||(n=_p(),ke.lanes|=n,lr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n)}function n1(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Il.transition;Il.transition={};try{e(!1),t()}finally{pe=n,Il.transition=r}}function Sh(){return Nt().memoizedState}function r1(e,t,n){var r=Fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Eh(e))Ch(t,n);else if(n=rh(e,t,n,r),n!==null){var o=et();Bt(n,e,r,o),kh(n,t,r)}}function o1(e,t,n){var r=Fn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Eh(e))Ch(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,Ut(l,s)){var a=t.interleaved;a===null?(o.next=o,Uu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=rh(e,t,o,r),n!==null&&(o=et(),Bt(n,e,r,o),kh(n,t,r))}}function Eh(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Ch(e,t){Do=ys=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Nu(e,n)}}var gs={readContext:Tt,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},i1={readContext:Tt,useCallback:function(e,t){return Zt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:Dd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hi(4194308,4,vh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hi(4,2,e,t)},useMemo:function(e,t){var n=Zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zt();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=r1.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Zt();return e={current:e},t.memoizedState=e},useState:Ad,useDebugValue:qu,useDeferredValue:function(e){return Zt().memoizedState=e},useTransition:function(){var e=Ad(!1),t=e[0];return e=n1.bind(null,e[1]),Zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=Zt();if(Se){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Fe===null)throw Error(D(349));sr&30||ah(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Dd(ch.bind(null,r,i,e),[e]),r.flags|=2048,Xo(9,uh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Zt(),t=Fe.identifierPrefix;if(Se){var n=ln,r=sn;n=(r&~(1<<32-zt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Go++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=t1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},s1={readContext:Tt,useCallback:gh,useContext:Tt,useEffect:Zu,useImperativeHandle:yh,useInsertionEffect:hh,useLayoutEffect:mh,useMemo:wh,useReducer:bl,useRef:ph,useState:function(){return bl(Qo)},useDebugValue:qu,useDeferredValue:function(e){var t=Nt();return xh(t,be.memoizedState,e)},useTransition:function(){var e=bl(Qo)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:sh,useSyncExternalStore:lh,useId:Sh,unstable_isNewReconciler:!1},l1={readContext:Tt,useCallback:gh,useContext:Tt,useEffect:Zu,useImperativeHandle:yh,useInsertionEffect:hh,useLayoutEffect:mh,useMemo:wh,useReducer:Ml,useRef:ph,useState:function(){return Ml(Qo)},useDebugValue:qu,useDeferredValue:function(e){var t=Nt();return be===null?t.memoizedState=e:xh(t,be.memoizedState,e)},useTransition:function(){var e=Ml(Qo)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:sh,useSyncExternalStore:lh,useId:Sh,unstable_isNewReconciler:!1};function Lt(e,t){if(e&&e.defaultProps){t=_e({},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:_e({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={isMounted:function(e){return(e=e._reactInternals)?hr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=et(),o=Fn(e),i=an(r,o);i.payload=t,n!=null&&(i.callback=n),t=On(e,i,o),t!==null&&(Bt(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=et(),o=Fn(e),i=an(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=On(e,i,o),t!==null&&(Bt(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=et(),r=Fn(e),o=an(n,r);o.tag=2,t!=null&&(o.callback=t),t=On(e,o,r),t!==null&&(Bt(t,e,r,n),Bi(t,e,r))}};function Id(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Bo(n,r)||!Bo(o,i):!0}function _h(e,t,n){var r=!1,o=zn,i=t.contextType;return typeof i=="object"&&i!==null?i=Tt(i):(o=ut(t)?or:Ze.current,r=t.contextTypes,i=(r=r!=null)?Wr(e,o):zn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function bd(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&&Vs.enqueueReplaceState(t,t.state,null)}function La(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Hu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Tt(i):(i=ut(t)?or:Ze.current,o.context=Wr(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&&Vs.enqueueReplaceState(o,o.state,null),ms(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Qr(e,t){try{var n="",r=t;do n+=Og(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 Ol(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var a1=typeof WeakMap=="function"?WeakMap:Map;function Rh(e,t,n){n=an(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xs||(xs=!0,Ya=r),Fa(e,t)},n}function Ph(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(){Fa(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Fa(e,t),typeof r!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Md(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new a1;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=E1.bind(null,e,t,n),t.then(e,e))}function Od(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 Ld(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 u1=vn.ReactCurrentOwner,st=!1;function Je(e,t,n,r){t.child=e===null?nh(t,null,n,r):Yr(t,e.child,n,r)}function Fd(e,t,n,r,o){n=n.render;var i=t.ref;return $r(t,o),r=Qu(e,t,n,r,i,o),n=Xu(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hn(e,t,o)):(Se&&n&&Fu(t),t.flags|=1,Je(e,t,r,o),t.child)}function jd(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!sc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Th(e,t,i,r,o)):(e=Gi(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 s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Bo,n(s,r)&&e.ref===t.ref)return hn(e,t,o)}return t.flags|=1,e=jn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Th(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Bo(i,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(st=!0);else return t.lanes=e.lanes,hn(e,t,o)}return ja(e,t,n,r,o)}function Nh(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},ye(br,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,ye(br,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ye(br,pt),pt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ye(br,pt),pt|=r;return Je(e,t,o,n),t.child}function Ah(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ja(e,t,n,r,o){var i=ut(n)?or:Ze.current;return i=Wr(t,i),$r(t,o),n=Qu(e,t,n,r,i,o),r=Xu(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hn(e,t,o)):(Se&&r&&Fu(t),t.flags|=1,Je(e,t,n,o),t.child)}function $d(e,t,n,r,o){if(ut(n)){var i=!0;cs(t)}else i=!1;if($r(t,o),t.stateNode===null)Wi(e,t),_h(t,n,r),La(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Tt(u):(u=ut(n)?or:Ze.current,u=Wr(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&bd(t,s,r,u),_n=!1;var v=t.memoizedState;s.state=v,ms(t,r,s,o),a=t.memoizedState,l!==r||v!==a||at.current||_n?(typeof d=="function"&&(Oa(t,n,d,r),a=t.memoizedState),(l=_n||Id(t,n,l,r,v,a,u))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,oh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Lt(t.type,l),s.props=u,c=t.pendingProps,v=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Tt(a):(a=ut(n)?or:Ze.current,a=Wr(t,a));var w=n.getDerivedStateFromProps;(d=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==c||v!==a)&&bd(t,s,r,a),_n=!1,v=t.memoizedState,s.state=v,ms(t,r,s,o);var S=t.memoizedState;l!==c||v!==S||at.current||_n?(typeof w=="function"&&(Oa(t,n,w,r),S=t.memoizedState),(u=_n||Id(t,n,u,r,v,S,a)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,S,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,S,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),s.props=r,s.state=S,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return $a(e,t,n,r,i,o)}function $a(e,t,n,r,o,i){Ah(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&kd(t,n,!1),hn(e,t,i);r=t.stateNode,u1.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Yr(t,e.child,null,i),t.child=Yr(t,null,l,i)):Je(e,t,l,i),t.memoizedState=r.state,o&&kd(t,n,!0),t.child}function Dh(e){var t=e.stateNode;t.pendingContext?Cd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cd(e,t.context,!1),Wu(e,t.containerInfo)}function Vd(e,t,n,r,o){return Kr(),$u(o),t.flags|=256,Je(e,t,n,r),t.child}var Va={dehydrated:null,treeContext:null,retryLane:0};function za(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ih(e,t,n){var r=t.pendingProps,o=Ce.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ye(Ce,o&1),e===null)return ba(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):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Us(s,r,0,null),e=rr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=za(n),t.memoizedState=Va,e):Ju(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return c1(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=jn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=jn(l,i):(i=rr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?za(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Va,r}return i=e.child,e=i.sibling,r=jn(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 Ju(e,t){return t=Us({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pi(e,t,n,r){return r!==null&&$u(r),Yr(t,e.child,null,n),e=Ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function c1(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Ol(Error(D(422))),Pi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Us({mode:"visible",children:r.children},o,0,null),i=rr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Yr(t,e.child,null,s),t.child.memoizedState=za(s),t.memoizedState=Va,i);if(!(t.mode&1))return Pi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(D(419)),r=Ol(i,r,void 0),Pi(e,t,s,r)}if(l=(s&e.childLanes)!==0,st||l){if(r=Fe,r!==null){switch(s&-s){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|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,pn(e,o),Bt(r,e,o,-1))}return ic(),r=Ol(Error(D(421))),Pi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=C1.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,vt=Mn(o.nextSibling),yt=t,Se=!0,jt=null,e!==null&&(Ct[kt++]=sn,Ct[kt++]=ln,Ct[kt++]=ir,sn=e.id,ln=e.overflow,ir=t),t=Ju(t,r.children),t.flags|=4096,t)}function zd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ma(e.return,t,n)}function Ll(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 bh(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Je(e,t,r.children,n),r=Ce.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&&zd(e,n,t);else if(e.tag===19)zd(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(ye(Ce,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&&vs(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ll(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&&vs(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ll(t,!0,n,null,i);break;case"together":Ll(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),lr|=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=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function d1(e,t,n){switch(t.tag){case 3:Dh(t),Kr();break;case 5:ih(t);break;case 1:ut(t.type)&&cs(t);break;case 4:Wu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ye(ps,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(Ce,Ce.current&1),t.flags|=128,null):n&t.child.childLanes?Ih(e,t,n):(ye(Ce,Ce.current&1),e=hn(e,t,n),e!==null?e.sibling:null);ye(Ce,Ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(Ce,Ce.current),r)break;return null;case 22:case 23:return t.lanes=0,Nh(e,t,n)}return hn(e,t,n)}var Mh,Ba,Oh,Lh;Mh=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}};Ba=function(){};Oh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,er(en.current);var i=null;switch(n){case"input":o=ca(e,o),r=ca(e,r),i=[];break;case"select":o=_e({},o,{value:void 0}),r=_e({},r,{value:void 0}),i=[];break;case"textarea":o=pa(e,o),r=pa(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=as)}ma(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Oo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Oo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ge("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Lh=function(e,t,n,r){n!==r&&(t.flags|=4)};function yo(e,t){if(!Se)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 Ge(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 f1(e,t,n){var r=t.pendingProps;switch(ju(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return ut(t.type)&&us(),Ge(t),null;case 3:return r=t.stateNode,Gr(),xe(at),xe(Ze),Yu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(_i(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(Xa(jt),jt=null))),Ba(e,t),Ge(t),null;case 5:Ku(t);var o=er(Yo.current);if(n=t.type,e!==null&&t.stateNode!=null)Oh(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 Ge(t),null}if(e=er(en.current),_i(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[qt]=t,r[Wo]=i,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(o=0;o<ko.length;o++)ge(ko[o],r);break;case"source":ge("error",r);break;case"img":case"image":case"link":ge("error",r),ge("load",r);break;case"details":ge("toggle",r);break;case"input":Xc(r,i),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ge("invalid",r);break;case"textarea":qc(r,i),ge("invalid",r)}ma(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&ki(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&ki(r.textContent,l,e),o=["children",""+l]):Oo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&ge("scroll",r)}switch(n){case"input":vi(r),Zc(r,i,!0);break;case"textarea":vi(r),Jc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=as)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=cp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[qt]=t,e[Wo]=r,Mh(e,t,!1,!1),t.stateNode=e;e:{switch(s=va(n,r),n){case"dialog":ge("cancel",e),ge("close",e),o=r;break;case"iframe":case"object":case"embed":ge("load",e),o=r;break;case"video":case"audio":for(o=0;o<ko.length;o++)ge(ko[o],e);o=r;break;case"source":ge("error",e),o=r;break;case"img":case"image":case"link":ge("error",e),ge("load",e),o=r;break;case"details":ge("toggle",e),o=r;break;case"input":Xc(e,r),o=ca(e,r),ge("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=_e({},r,{value:void 0}),ge("invalid",e);break;case"textarea":qc(e,r),o=pa(e,r),ge("invalid",e);break;default:o=r}ma(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?pp(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&dp(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Lo(e,a):typeof a=="number"&&Lo(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Oo.hasOwnProperty(i)?a!=null&&i==="onScroll"&&ge("scroll",e):a!=null&&Cu(e,i,a,s))}switch(n){case"input":vi(e),Zc(e,r,!1);break;case"textarea":vi(e),Jc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Or(e,!!r.multiple,i,!1):r.defaultValue!=null&&Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=as)}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 Ge(t),null;case 6:if(e&&t.stateNode!=null)Lh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=er(Yo.current),er(en.current),_i(t)){if(r=t.stateNode,n=t.memoizedProps,r[qt]=t,(i=r.nodeValue!==n)&&(e=yt,e!==null))switch(e.tag){case 3:ki(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ki(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[qt]=t,t.stateNode=r}return Ge(t),null;case 13:if(xe(Ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&vt!==null&&t.mode&1&&!(t.flags&128))eh(),Kr(),t.flags|=98560,i=!1;else if(i=_i(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[qt]=t}else Kr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else jt!==null&&(Xa(jt),jt=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||Ce.current&1?Me===0&&(Me=3):ic())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return Gr(),Ba(e,t),e===null&&Uo(t.stateNode.containerInfo),Ge(t),null;case 10:return Bu(t.type._context),Ge(t),null;case 17:return ut(t.type)&&us(),Ge(t),null;case 19:if(xe(Ce),i=t.memoizedState,i===null)return Ge(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)yo(i,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=vs(e),s!==null){for(t.flags|=128,yo(i,!1),r=s.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,s=i.alternate,s===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=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ye(Ce,Ce.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ne()>Xr&&(t.flags|=128,r=!0,yo(i,!1),t.lanes=4194304)}else{if(!r)if(e=vs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Se)return Ge(t),null}else 2*Ne()-i.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,yo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ne(),t.sibling=null,n=Ce.current,ye(Ce,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return oc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pt&1073741824&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function p1(e,t){switch(ju(t),t.tag){case 1:return ut(t.type)&&us(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),xe(at),xe(Ze),Yu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ku(t),null;case 13:if(xe(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(Ce),null;case 4:return Gr(),null;case 10:return Bu(t.type._context),null;case 22:case 23:return oc(),null;case 24:return null;default:return null}}var Ti=!1,Xe=!1,h1=typeof WeakSet=="function"?WeakSet:Set,$=null;function Ir(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 Ua(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Bd=!1;function m1(e,t){if(Ra=is,e=zp(),Lu(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 s=0,l=-1,a=-1,u=0,d=0,c=e,v=null;t:for(;;){for(var w;c!==n||o!==0&&c.nodeType!==3||(l=s+o),c!==i||r!==0&&c.nodeType!==3||(a=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(w=c.firstChild)!==null;)v=c,c=w;for(;;){if(c===e)break t;if(v===n&&++u===o&&(l=s),v===i&&++d===r&&(a=s),(w=c.nextSibling)!==null)break;c=v,v=c.parentNode}c=w}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pa={focusedElem:e,selectionRange:n},is=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var y=S.memoizedProps,x=S.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Lt(t.type,y),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(g){Pe(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return S=Bd,Bd=!1,S}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&&Ua(t,n,i)}o=o.next}while(o!==r)}}function zs(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 Ha(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 Fh(e){var t=e.alternate;t!==null&&(e.alternate=null,Fh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qt],delete t[Wo],delete t[Aa],delete t[Z0],delete t[q0])),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 jh(e){return e.tag===5||e.tag===3||e.tag===4}function Ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jh(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 Wa(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=as));else if(r!==4&&(e=e.child,e!==null))for(Wa(e,t,n),e=e.sibling;e!==null;)Wa(e,t,n),e=e.sibling}function Ka(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(Ka(e,t,n),e=e.sibling;e!==null;)Ka(e,t,n),e=e.sibling}var Be=null,Ft=!1;function Sn(e,t,n){for(n=n.child;n!==null;)$h(e,t,n),n=n.sibling}function $h(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(bs,n)}catch{}switch(n.tag){case 5:Xe||Ir(n,t);case 6:var r=Be,o=Ft;Be=null,Sn(e,t,n),Be=r,Ft=o,Be!==null&&(Ft?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(Ft?(e=Be,n=n.stateNode,e.nodeType===8?Nl(e.parentNode,n):e.nodeType===1&&Nl(e,n),Vo(e)):Nl(Be,n.stateNode));break;case 4:r=Be,o=Ft,Be=n.stateNode.containerInfo,Ft=!0,Sn(e,t,n),Be=r,Ft=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,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Ua(n,t,s),o=o.next}while(o!==r)}Sn(e,t,n);break;case 1:if(!Xe&&(Ir(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pe(n,t,l)}Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Sn(e,t,n),Xe=r):Sn(e,t,n);break;default:Sn(e,t,n)}}function Hd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h1),t.forEach(function(r){var o=k1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Mt(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,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Be=l.stateNode,Ft=!1;break e;case 3:Be=l.stateNode.containerInfo,Ft=!0;break e;case 4:Be=l.stateNode.containerInfo,Ft=!0;break e}l=l.return}if(Be===null)throw Error(D(160));$h(i,s,o),Be=null,Ft=!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;)Vh(t,e),t=t.sibling}function Vh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),Qt(e),r&4){try{Io(3,e,e.return),zs(3,e)}catch(y){Pe(e,e.return,y)}try{Io(5,e,e.return)}catch(y){Pe(e,e.return,y)}}break;case 1:Mt(t,e),Qt(e),r&512&&n!==null&&Ir(n,n.return);break;case 5:if(Mt(t,e),Qt(e),r&512&&n!==null&&Ir(n,n.return),e.flags&32){var o=e.stateNode;try{Lo(o,"")}catch(y){Pe(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&ap(o,i),va(l,s);var u=va(l,i);for(s=0;s<a.length;s+=2){var d=a[s],c=a[s+1];d==="style"?pp(o,c):d==="dangerouslySetInnerHTML"?dp(o,c):d==="children"?Lo(o,c):Cu(o,d,c,u)}switch(l){case"input":da(o,i);break;case"textarea":up(o,i);break;case"select":var v=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var w=i.value;w!=null?Or(o,!!i.multiple,w,!1):v!==!!i.multiple&&(i.defaultValue!=null?Or(o,!!i.multiple,i.defaultValue,!0):Or(o,!!i.multiple,i.multiple?[]:"",!1))}o[Wo]=i}catch(y){Pe(e,e.return,y)}}break;case 6:if(Mt(t,e),Qt(e),r&4){if(e.stateNode===null)throw Error(D(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){Pe(e,e.return,y)}}break;case 3:if(Mt(t,e),Qt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vo(t.containerInfo)}catch(y){Pe(e,e.return,y)}break;case 4:Mt(t,e),Qt(e);break;case 13:Mt(t,e),Qt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(nc=Ne())),r&4&&Hd(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(u=Xe)||d,Mt(t,e),Xe=u):Mt(t,e),Qt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for($=e,d=e.child;d!==null;){for(c=$=d;$!==null;){switch(v=$,w=v.child,v.tag){case 0:case 11:case 14:case 15:Io(4,v,v.return);break;case 1:Ir(v,v.return);var S=v.stateNode;if(typeof S.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(y){Pe(r,n,y)}}break;case 5:Ir(v,v.return);break;case 22:if(v.memoizedState!==null){Kd(c);continue}}w!==null?(w.return=v,$=w):Kd(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"):(l=c.stateNode,a=c.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=fp("display",s))}catch(y){Pe(e,e.return,y)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){Pe(e,e.return,y)}}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:Mt(t,e),Qt(e),r&4&&Hd(e);break;case 21:break;default:Mt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jh(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&&(Lo(o,""),r.flags&=-33);var i=Ud(e);Ka(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Ud(e);Wa(e,l,s);break;default:throw Error(D(161))}}catch(a){Pe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function v1(e,t,n){$=e,zh(e)}function zh(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var o=$,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ti;if(!s){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Xe;l=Ti;var u=Xe;if(Ti=s,(Xe=a)&&!u)for($=o;$!==null;)s=$,a=s.child,s.tag===22&&s.memoizedState!==null?Yd(o):a!==null?(a.return=s,$=a):Yd(o);for(;i!==null;)$=i,zh(i),i=i.sibling;$=o,Ti=l,Xe=u}Wd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,$=i):Wd(e)}}function Wd(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xe||zs(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&&Nd(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Nd(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;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&&Vo(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Xe||t.flags&512&&Ha(t)}catch(v){Pe(t,t.return,v)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Kd(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function Yd(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{zs(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{Ha(t)}catch(a){Pe(t,i,a)}break;case 5:var s=t.return;try{Ha(t)}catch(a){Pe(t,s,a)}}}catch(a){Pe(t,t.return,a)}if(t===e){$=null;break}var l=t.sibling;if(l!==null){l.return=t.return,$=l;break}$=t.return}}var y1=Math.ceil,ws=vn.ReactCurrentDispatcher,ec=vn.ReactCurrentOwner,Pt=vn.ReactCurrentBatchConfig,ie=0,Fe=null,De=null,Ue=0,pt=0,br=Hn(0),Me=0,Zo=null,lr=0,Bs=0,tc=0,bo=null,it=null,nc=0,Xr=1/0,rn=null,xs=!1,Ya=null,Ln=null,Ni=!1,An=null,Ss=0,Mo=0,Ga=null,Ki=-1,Yi=0;function et(){return ie&6?Ne():Ki!==-1?Ki:Ki=Ne()}function Fn(e){return e.mode&1?ie&2&&Ue!==0?Ue&-Ue:e1.transition!==null?(Yi===0&&(Yi=_p()),Yi):(e=pe,e!==0||(e=window.event,e=e===void 0?16:Ip(e.type)),e):1}function Bt(e,t,n,r){if(50<Mo)throw Mo=0,Ga=null,Error(D(185));ri(e,n,r),(!(ie&2)||e!==Fe)&&(e===Fe&&(!(ie&2)&&(Bs|=n),Me===4&&Tn(e,Ue)),ct(e,r),n===1&&ie===0&&!(t.mode&1)&&(Xr=Ne()+500,js&&Wn()))}function ct(e,t){var n=e.callbackNode;e0(e,t);var r=os(e,e===Fe?Ue:0);if(r===0)n!==null&&nd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nd(n),t===1)e.tag===0?J0(Gd.bind(null,e)):Zp(Gd.bind(null,e)),Q0(function(){!(ie&6)&&Wn()}),n=null;else{switch(Rp(r)){case 1:n=Tu;break;case 4:n=Cp;break;case 16:n=rs;break;case 536870912:n=kp;break;default:n=rs}n=Qh(n,Bh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Bh(e,t){if(Ki=-1,Yi=0,ie&6)throw Error(D(327));var n=e.callbackNode;if(Vr()&&e.callbackNode!==n)return null;var r=os(e,e===Fe?Ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Es(e,r);else{t=r;var o=ie;ie|=2;var i=Hh();(Fe!==e||Ue!==t)&&(rn=null,Xr=Ne()+500,nr(e,t));do try{x1();break}catch(l){Uh(e,l)}while(!0);zu(),ws.current=i,ie=o,De!==null?t=0:(Fe=null,Ue=0,t=Me)}if(t!==0){if(t===2&&(o=Sa(e),o!==0&&(r=o,t=Qa(e,o))),t===1)throw n=Zo,nr(e,0),Tn(e,r),ct(e,Ne()),n;if(t===6)Tn(e,r);else{if(o=e.current.alternate,!(r&30)&&!g1(o)&&(t=Es(e,r),t===2&&(i=Sa(e),i!==0&&(r=i,t=Qa(e,i))),t===1))throw n=Zo,nr(e,0),Tn(e,r),ct(e,Ne()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Zn(e,it,rn);break;case 3:if(Tn(e,r),(r&130023424)===r&&(t=nc+500-Ne(),10<t)){if(os(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){et(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Na(Zn.bind(null,e,it,rn),t);break}Zn(e,it,rn);break;case 4:if(Tn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-zt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*y1(r/1960))-r,10<r){e.timeoutHandle=Na(Zn.bind(null,e,it,rn),r);break}Zn(e,it,rn);break;case 5:Zn(e,it,rn);break;default:throw Error(D(329))}}}return ct(e,Ne()),e.callbackNode===n?Bh.bind(null,e):null}function Qa(e,t){var n=bo;return e.current.memoizedState.isDehydrated&&(nr(e,t).flags|=256),e=Es(e,t),e!==2&&(t=it,it=n,t!==null&&Xa(t)),e}function Xa(e){it===null?it=e:it.push.apply(it,e)}function g1(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(!Ut(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 Tn(e,t){for(t&=~tc,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-zt(t),r=1<<n;e[n]=-1,t&=~r}}function Gd(e){if(ie&6)throw Error(D(327));Vr();var t=os(e,0);if(!(t&1))return ct(e,Ne()),null;var n=Es(e,t);if(e.tag!==0&&n===2){var r=Sa(e);r!==0&&(t=r,n=Qa(e,r))}if(n===1)throw n=Zo,nr(e,0),Tn(e,t),ct(e,Ne()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zn(e,it,rn),ct(e,Ne()),null}function rc(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(Xr=Ne()+500,js&&Wn())}}function ar(e){An!==null&&An.tag===0&&!(ie&6)&&Vr();var t=ie;ie|=1;var n=Pt.transition,r=pe;try{if(Pt.transition=null,pe=1,e)return e()}finally{pe=r,Pt.transition=n,ie=t,!(ie&6)&&Wn()}}function oc(){pt=br.current,xe(br)}function nr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,G0(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(ju(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&us();break;case 3:Gr(),xe(at),xe(Ze),Yu();break;case 5:Ku(r);break;case 4:Gr();break;case 13:xe(Ce);break;case 19:xe(Ce);break;case 10:Bu(r.type._context);break;case 22:case 23:oc()}n=n.return}if(Fe=e,De=e=jn(e.current,null),Ue=pt=t,Me=0,Zo=null,tc=Bs=lr=0,it=bo=null,Jn!==null){for(t=0;t<Jn.length;t++)if(n=Jn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Jn=null}return e}function Uh(e,t){do{var n=De;try{if(zu(),Ui.current=gs,ys){for(var r=ke.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ys=!1}if(sr=0,Le=be=ke=null,Do=!1,Go=0,ec.current=null,n===null||n.return===null){Me=1,Zo=t,De=null;break}e:{var i=e,s=n.return,l=n,a=t;if(t=Ue,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=l,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var v=d.alternate;v?(d.updateQueue=v.updateQueue,d.memoizedState=v.memoizedState,d.lanes=v.lanes):(d.updateQueue=null,d.memoizedState=null)}var w=Od(s);if(w!==null){w.flags&=-257,Ld(w,s,l,i,t),w.mode&1&&Md(i,u,t),t=w,a=u;var S=t.updateQueue;if(S===null){var y=new Set;y.add(a),t.updateQueue=y}else S.add(a);break e}else{if(!(t&1)){Md(i,u,t),ic();break e}a=Error(D(426))}}else if(Se&&l.mode&1){var x=Od(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Ld(x,s,l,i,t),$u(Qr(a,l));break e}}i=a=Qr(a,l),Me!==4&&(Me=2),bo===null?bo=[i]:bo.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var h=Rh(i,a,t);Td(i,h);break e;case 1:l=a;var p=i.type,m=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ln===null||!Ln.has(m)))){i.flags|=65536,t&=-t,i.lanes|=t;var g=Ph(i,l,t);Td(i,g);break e}}i=i.return}while(i!==null)}Kh(n)}catch(E){t=E,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function Hh(){var e=ws.current;return ws.current=gs,e===null?gs:e}function ic(){(Me===0||Me===3||Me===2)&&(Me=4),Fe===null||!(lr&268435455)&&!(Bs&268435455)||Tn(Fe,Ue)}function Es(e,t){var n=ie;ie|=2;var r=Hh();(Fe!==e||Ue!==t)&&(rn=null,nr(e,t));do try{w1();break}catch(o){Uh(e,o)}while(!0);if(zu(),ie=n,ws.current=r,De!==null)throw Error(D(261));return Fe=null,Ue=0,Me}function w1(){for(;De!==null;)Wh(De)}function x1(){for(;De!==null&&!Wg();)Wh(De)}function Wh(e){var t=Gh(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?Kh(e):De=t,ec.current=null}function Kh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=p1(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,De=null;return}}else if(n=f1(n,t,pt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Me===0&&(Me=5)}function Zn(e,t,n){var r=pe,o=Pt.transition;try{Pt.transition=null,pe=1,S1(e,t,n,r)}finally{Pt.transition=o,pe=r}return null}function S1(e,t,n,r){do Vr();while(An!==null);if(ie&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(t0(e,i),e===Fe&&(De=Fe=null,Ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ni||(Ni=!0,Qh(rs,function(){return Vr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Pt.transition,Pt.transition=null;var s=pe;pe=1;var l=ie;ie|=4,ec.current=null,m1(e,n),Vh(n,e),z0(Pa),is=!!Ra,Pa=Ra=null,e.current=n,v1(n),Kg(),ie=l,pe=s,Pt.transition=i}else e.current=n;if(Ni&&(Ni=!1,An=e,Ss=o),i=e.pendingLanes,i===0&&(Ln=null),Qg(n.stateNode),ct(e,Ne()),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(xs)throw xs=!1,e=Ya,Ya=null,e;return Ss&1&&e.tag!==0&&Vr(),i=e.pendingLanes,i&1?e===Ga?Mo++:(Mo=0,Ga=e):Mo=0,Wn(),null}function Vr(){if(An!==null){var e=Rp(Ss),t=Pt.transition,n=pe;try{if(Pt.transition=null,pe=16>e?16:e,An===null)var r=!1;else{if(e=An,An=null,Ss=0,ie&6)throw Error(D(331));var o=ie;for(ie|=4,$=e.current;$!==null;){var i=$,s=i.child;if($.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for($=u;$!==null;){var d=$;switch(d.tag){case 0:case 11:case 15:Io(8,d,i)}var c=d.child;if(c!==null)c.return=d,$=c;else for(;$!==null;){d=$;var v=d.sibling,w=d.return;if(Fh(d),d===u){$=null;break}if(v!==null){v.return=w,$=v;break}$=w}}}var S=i.alternate;if(S!==null){var y=S.child;if(y!==null){S.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}$=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,$=s;else e:for(;$!==null;){if(i=$,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,$=h;break e}$=i.return}}var p=e.current;for($=p;$!==null;){s=$;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,$=m;else e:for(s=p;$!==null;){if(l=$,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:zs(9,l)}}catch(E){Pe(l,l.return,E)}if(l===s){$=null;break e}var g=l.sibling;if(g!==null){g.return=l.return,$=g;break e}$=l.return}}if(ie=o,Wn(),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(bs,e)}catch{}r=!0}return r}finally{pe=n,Pt.transition=t}}return!1}function Qd(e,t,n){t=Qr(n,t),t=Rh(e,t,1),e=On(e,t,1),t=et(),e!==null&&(ri(e,1,t),ct(e,t))}function Pe(e,t,n){if(e.tag===3)Qd(e,e,n);else for(;t!==null;){if(t.tag===3){Qd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ln===null||!Ln.has(r))){e=Qr(n,e),e=Ph(t,e,1),t=On(t,e,1),e=et(),t!==null&&(ri(t,1,e),ct(t,e));break}}t=t.return}}function E1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=et(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&(Ue&n)===n&&(Me===4||Me===3&&(Ue&130023424)===Ue&&500>Ne()-nc?nr(e,0):tc|=n),ct(e,t)}function Yh(e,t){t===0&&(e.mode&1?(t=wi,wi<<=1,!(wi&130023424)&&(wi=4194304)):t=1);var n=et();e=pn(e,t),e!==null&&(ri(e,t,n),ct(e,n))}function C1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yh(e,n)}function k1(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),Yh(e,n)}var Gh;Gh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,d1(e,t,n);st=!!(e.flags&131072)}else st=!1,Se&&t.flags&1048576&&qp(t,fs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wi(e,t),e=t.pendingProps;var o=Wr(t,Ze.current);$r(t,n),o=Qu(null,t,r,e,o,n);var i=Xu();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,cs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Hu(t),o.updater=Vs,t.stateNode=o,o._reactInternals=t,La(t,r,e,n),t=$a(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&Fu(t),Je(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=R1(r),e=Lt(r,e),o){case 0:t=ja(null,t,r,e,n);break e;case 1:t=$d(null,t,r,e,n);break e;case 11:t=Fd(null,t,r,e,n);break e;case 14:t=jd(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),ja(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),$d(e,t,r,o,n);case 3:e:{if(Dh(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,oh(e,t),ms(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Qr(Error(D(423)),t),t=Vd(e,t,r,n,o);break e}else if(r!==o){o=Qr(Error(D(424)),t),t=Vd(e,t,r,n,o);break e}else for(vt=Mn(t.stateNode.containerInfo.firstChild),yt=t,Se=!0,jt=null,n=nh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kr(),r===o){t=hn(e,t,n);break e}Je(e,t,r,n)}t=t.child}return t;case 5:return ih(t),e===null&&ba(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ta(r,o)?s=null:i!==null&&Ta(r,i)&&(t.flags|=32),Ah(e,t),Je(e,t,s,n),t.child;case 6:return e===null&&ba(t),null;case 13:return Ih(e,t,n);case 4:return Wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,n):Je(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),Fd(e,t,r,o,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ye(ps,r._currentValue),r._currentValue=s,i!==null)if(Ut(i.value,s)){if(i.children===o.children&&!at.current){t=hn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.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),Ma(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(D(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ma(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Je(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$r(t,n),o=Tt(o),r=r(o),t.flags|=1,Je(e,t,r,n),t.child;case 14:return r=t.type,o=Lt(r,t.pendingProps),o=Lt(r.type,o),jd(e,t,r,o,n);case 15:return Th(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),Wi(e,t),t.tag=1,ut(r)?(e=!0,cs(t)):e=!1,$r(t,n),_h(t,r,o),La(t,r,o,n),$a(null,t,r,!0,e,n);case 19:return bh(e,t,n);case 22:return Nh(e,t,n)}throw Error(D(156,t.tag))};function Qh(e,t){return Ep(e,t)}function _1(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 Rt(e,t,n,r){return new _1(e,t,n,r)}function sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function R1(e){if(typeof e=="function")return sc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_u)return 11;if(e===Ru)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=Rt(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 Gi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")sc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Cr:return rr(n.children,o,i,t);case ku:s=8,o|=8;break;case sa:return e=Rt(12,n,t,o|2),e.elementType=sa,e.lanes=i,e;case la:return e=Rt(13,n,t,o),e.elementType=la,e.lanes=i,e;case aa:return e=Rt(19,n,t,o),e.elementType=aa,e.lanes=i,e;case ip:return Us(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rp:s=10;break e;case op:s=9;break e;case _u:s=11;break e;case Ru:s=14;break e;case kn:s=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Rt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function rr(e,t,n,r){return e=Rt(7,e,r,t),e.lanes=n,e}function Us(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=ip,e.lanes=n,e.stateNode={isHidden:!1},e}function Fl(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function jl(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function P1(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=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function lc(e,t,n,r,o,i,s,l,a){return e=new P1(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hu(i),e}function T1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Er,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Xh(e){if(!e)return zn;e=e._reactInternals;e:{if(hr(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 Xp(e,n,t)}return t}function Zh(e,t,n,r,o,i,s,l,a){return e=lc(n,r,!0,e,o,i,s,l,a),e.context=Xh(null),n=e.current,r=et(),o=Fn(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 Hs(e,t,n,r){var o=t.current,i=et(),s=Fn(o);return n=Xh(n),t.context===null?t.context=n:t.pendingContext=n,t=an(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=On(o,t,s),e!==null&&(Bt(e,o,s,i),Bi(e,o,s)),s}function Cs(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 Xd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ac(e,t){Xd(e,t),(e=e.alternate)&&Xd(e,t)}function N1(){return null}var qh=typeof reportError=="function"?reportError:function(e){console.error(e)};function uc(e){this._internalRoot=e}Ws.prototype.render=uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));Hs(e,t,null,null)};Ws.prototype.unmount=uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ar(function(){Hs(null,e,null,null)}),t[fn]=null}};function Ws(e){this._internalRoot=e}Ws.prototype.unstable_scheduleHydration=function(e){if(e){var t=Np();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pn.length&&t!==0&&t<Pn[n].priority;n++);Pn.splice(n,0,e),n===0&&Dp(e)}};function cc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Zd(){}function A1(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Cs(s);i.call(u)}}var s=Zh(t,r,e,0,null,!1,!1,"",Zd);return e._reactRootContainer=s,e[fn]=s.current,Uo(e.nodeType===8?e.parentNode:e),ar(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Cs(a);l.call(u)}}var a=lc(e,0,!1,null,null,!1,!1,"",Zd);return e._reactRootContainer=a,e[fn]=a.current,Uo(e.nodeType===8?e.parentNode:e),ar(function(){Hs(t,a,n,r)}),a}function Ys(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var l=o;o=function(){var a=Cs(s);l.call(a)}}Hs(t,s,e,o)}else s=A1(n,t,e,o,r);return Cs(s)}Pp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Co(t.pendingLanes);n!==0&&(Nu(t,n|1),ct(t,Ne()),!(ie&6)&&(Xr=Ne()+500,Wn()))}break;case 13:ar(function(){var r=pn(e,1);if(r!==null){var o=et();Bt(r,e,1,o)}}),ac(e,1)}};Au=function(e){if(e.tag===13){var t=pn(e,134217728);if(t!==null){var n=et();Bt(t,e,134217728,n)}ac(e,134217728)}};Tp=function(e){if(e.tag===13){var t=Fn(e),n=pn(e,t);if(n!==null){var r=et();Bt(n,e,t,r)}ac(e,t)}};Np=function(){return pe};Ap=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};ga=function(e,t,n){switch(t){case"input":if(da(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=Fs(r);if(!o)throw Error(D(90));lp(r),da(r,o)}}}break;case"textarea":up(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};vp=rc;yp=ar;var D1={usingClientEntryPoint:!1,Events:[ii,Pr,Fs,hp,mp,rc]},go={findFiberByHostInstance:qn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},I1={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:vn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xp(e),e===null?null:e.stateNode},findFiberByHostInstance:go.findFiberByHostInstance||N1,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 Ai=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ai.isDisabled&&Ai.supportsFiber)try{bs=Ai.inject(I1),Jt=Ai}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D1;wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cc(t))throw Error(D(200));return T1(e,t,null,n)};wt.createRoot=function(e,t){if(!cc(e))throw Error(D(299));var n=!1,r="",o=qh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=lc(e,1,!1,null,null,n,!1,r,o),e[fn]=t.current,Uo(e.nodeType===8?e.parentNode:e),new uc(t)};wt.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=xp(t),e=e===null?null:e.stateNode,e};wt.flushSync=function(e){return ar(e)};wt.hydrate=function(e,t,n){if(!Ks(t))throw Error(D(200));return Ys(null,e,t,!0,n)};wt.hydrateRoot=function(e,t,n){if(!cc(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=qh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Zh(t,null,e,1,n??null,o,!1,i,s),e[fn]=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 Ws(t)};wt.render=function(e,t,n){if(!Ks(t))throw Error(D(200));return Ys(null,e,t,!1,n)};wt.unmountComponentAtNode=function(e){if(!Ks(e))throw Error(D(40));return e._reactRootContainer?(ar(function(){Ys(null,null,e,!1,function(){e._reactRootContainer=null,e[fn]=null})}),!0):!1};wt.unstable_batchedUpdates=rc;wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ks(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return Ys(e,t,n,!1,r)};wt.version="18.3.1-next-f1338f8080-20240426";function Jh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jh)}catch(e){console.error(e)}}Jh(),tp.exports=wt;var to=tp.exports;const em=Uf(to);var qd=to;Kc.createRoot=qd.createRoot,Kc.hydrateRoot=qd.hydrateRoot;/**
|
|
33
|
-
* react-router v7.9.5
|
|
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 Jd="popstate";function b1(e={}){function t(r,o){let{pathname:i,search:s,hash:l}=r.location;return Za("",{pathname:i,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:qo(o)}return O1(t,n,null,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ht(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function M1(){return Math.random().toString(36).substring(2,10)}function ef(e,t){return{usr:e.state,key:e.key,idx:t}}function Za(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?no(t):t,state:n,key:t&&t.key||r||M1()}}function qo({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 no(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 O1(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l="POP",a=null,u=d();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function d(){return(s.state||{idx:null}).idx}function c(){l="POP";let x=d(),h=x==null?null:x-u;u=x,a&&a({action:l,location:y.location,delta:h})}function v(x,h){l="PUSH";let p=Za(y.location,x,h);u=d()+1;let m=ef(p,u),g=y.createHref(p);try{s.pushState(m,"",g)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(g)}i&&a&&a({action:l,location:y.location,delta:1})}function w(x,h){l="REPLACE";let p=Za(y.location,x,h);u=d();let m=ef(p,u),g=y.createHref(p);s.replaceState(m,"",g),i&&a&&a({action:l,location:y.location,delta:0})}function S(x){return L1(x)}let y={get action(){return l},get location(){return e(o,s)},listen(x){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Jd,c),a=x,()=>{o.removeEventListener(Jd,c),a=null}},createHref(x){return t(o,x)},createURL:S,encodeLocation(x){let h=S(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:v,replace:w,go(x){return s.go(x)}};return y}function L1(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ee(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:qo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function tm(e,t,n="/"){return F1(e,t,n,!1)}function F1(e,t,n,r){let o=typeof t=="string"?no(t):t,i=mn(o.pathname||"/",n);if(i==null)return null;let s=nm(e);j1(s);let l=null;for(let a=0;l==null&&a<s.length;++a){let u=Q1(i);l=Y1(s[a],u,r)}return l}function nm(e,t=[],n=[],r="",o=!1){let i=(s,l,a=o,u)=>{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&a)return;Ee(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]),v=n.concat(d);s.children&&s.children.length>0&&(Ee(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),nm(s.children,t,v,c,a)),!(s.path==null&&!s.index)&&t.push({path:c,score:W1(c,s.index),routesMeta:v})};return e.forEach((s,l)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,l);else for(let u of rm(s.path))i(s,l,!0,u)}),t}function rm(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 s=rm(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function j1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:K1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var $1=/^:[\w-]+$/,V1=3,z1=2,B1=1,U1=10,H1=-2,tf=e=>e==="*";function W1(e,t){let n=e.split("/"),r=n.length;return n.some(tf)&&(r+=H1),t&&(r+=z1),n.filter(o=>!tf(o)).reduce((o,i)=>o+($1.test(i)?V1:i===""?B1:U1),r)}function K1(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 Y1(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",c=ks({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},d),v=a.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=ks({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},d)),!c)return null;Object.assign(o,c.params),s.push({params:o,pathname:un([i,c.pathname]),pathnameBase:J1(un([i,c.pathnameBase])),route:v}),c.pathnameBase!=="/"&&(i=un([i,c.pathnameBase]))}return s}function ks(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=G1(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:c},v)=>{if(d==="*"){let S=l[v]||"";s=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const w=l[v];return c&&!w?u[d]=void 0:u[d]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function G1(e,t=!1,n=!0){Ht(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,(s,l,a)=>(r.push({paramName:l,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 Q1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ht(!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 mn(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 X1(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?no(e):e;return{pathname:n?n.startsWith("/")?n:Z1(n,t):t,search:ew(r),hash:tw(o)}}function Z1(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 $l(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 q1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dc(e){let t=q1(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function fc(e,t,n,r=!1){let o;typeof e=="string"?o=no(e):(o={...e},Ee(!o.pathname||!o.pathname.includes("?"),$l("?","pathname","search",o)),Ee(!o.pathname||!o.pathname.includes("#"),$l("#","pathname","hash",o)),Ee(!o.search||!o.search.includes("#"),$l("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else{let c=t.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),c-=1;o.pathname=v.join("/")}l=c>=0?t[c]:"/"}let a=X1(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}var un=e=>e.join("/").replace(/\/\/+/g,"/"),J1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ew=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var om=["POST","PUT","PATCH","DELETE"];new Set(om);var rw=["GET",...om];new Set(rw);var ro=f.createContext(null);ro.displayName="DataRouter";var Gs=f.createContext(null);Gs.displayName="DataRouterState";f.createContext(!1);var im=f.createContext({isTransitioning:!1});im.displayName="ViewTransition";var ow=f.createContext(new Map);ow.displayName="Fetchers";var iw=f.createContext(null);iw.displayName="Await";var Wt=f.createContext(null);Wt.displayName="Navigation";var li=f.createContext(null);li.displayName="Location";var tn=f.createContext({outlet:null,matches:[],isDataRoute:!1});tn.displayName="Route";var pc=f.createContext(null);pc.displayName="RouteError";function sw(e,{relative:t}={}){Ee(oo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(Wt),{hash:o,pathname:i,search:s}=ai(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:un([n,i])),r.createHref({pathname:l,search:s,hash:o})}function oo(){return f.useContext(li)!=null}function Kn(){return Ee(oo(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(li).location}var sm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lm(e){f.useContext(Wt).static||f.useLayoutEffect(e)}function am(){let{isDataRoute:e}=f.useContext(tn);return e?ww():lw()}function lw(){Ee(oo(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(ro),{basename:t,navigator:n}=f.useContext(Wt),{matches:r}=f.useContext(tn),{pathname:o}=Kn(),i=JSON.stringify(dc(r)),s=f.useRef(!1);return lm(()=>{s.current=!0}),f.useCallback((a,u={})=>{if(Ht(s.current,sm),!s.current)return;if(typeof a=="number"){n.go(a);return}let d=fc(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(tn),{pathname:r}=Kn(),o=JSON.stringify(dc(n));return f.useMemo(()=>fc(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function aw(e,t){return um(e,t)}function um(e,t,n,r,o){var p;Ee(oo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=f.useContext(Wt),{matches:s}=f.useContext(tn),l=s[s.length-1],a=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",c=l&&l.route;{let m=c&&c.path||"";cm(u,!c||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${m}">) 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="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let v=Kn(),w;if(t){let m=typeof t=="string"?no(t):t;Ee(d==="/"||((p=m.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 "${m.pathname}" was given in the \`location\` prop.`),w=m}else w=v;let S=w.pathname||"/",y=S;if(d!=="/"){let m=d.replace(/^\//,"").split("/");y="/"+S.replace(/^\//,"").split("/").slice(m.length).join("/")}let x=tm(e,{pathname:y});Ht(c||x!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Ht(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 "${w.pathname}${w.search}${w.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=pw(x&&x.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:un([d,i.encodeLocation?i.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?d:un([d,i.encodeLocation?i.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),s,n,r,o);return t&&h?f.createElement(li.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},h):h}function uw(){let e=gw(),t=nw(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},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=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,s)}var cw=f.createElement(uw,null),dw=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(tn.Provider,{value:this.props.routeContext},f.createElement(pc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function fw({routeContext:e,match:t,children:n}){let r=f.useContext(ro);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(tn.Provider,{value:e},n)}function pw(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,s=n==null?void 0:n.errors;if(s!=null){let u=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);Ee(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let l=!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:v}=n,w=d.route.loader&&!c.hasOwnProperty(d.route.id)&&(!v||v[d.route.id]===void 0);if(d.route.lazy||w){l=!0,a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((u,d,c)=>{let v,w=!1,S=null,y=null;n&&(v=s&&d.route.id?s[d.route.id]:void 0,S=d.route.errorElement||cw,l&&(a<0&&c===0?(cm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,y=null):a===c&&(w=!0,y=d.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,c+1)),h=()=>{let p;return v?p=S:w?p=y:d.route.Component?p=f.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=u,f.createElement(fw,{match:d,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||c===0)?f.createElement(dw,{location:n.location,revalidation:n.revalidation,component:S,error:v,children:h(),routeContext:{outlet:null,matches:x,isDataRoute:!0},unstable_onError:r}):h()},null)}function hc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hw(e){let t=f.useContext(ro);return Ee(t,hc(e)),t}function mw(e){let t=f.useContext(Gs);return Ee(t,hc(e)),t}function vw(e){let t=f.useContext(tn);return Ee(t,hc(e)),t}function mc(e){let t=vw(e),n=t.matches[t.matches.length-1];return Ee(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function yw(){return mc("useRouteId")}function gw(){var r;let e=f.useContext(pc),t=mw("useRouteError"),n=mc("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function ww(){let{router:e}=hw("useNavigate"),t=mc("useNavigate"),n=f.useRef(!1);return lm(()=>{n.current=!0}),f.useCallback(async(o,i={})=>{Ht(n.current,sm),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var nf={};function cm(e,t,n){!t&&!nf[e]&&(nf[e]=!0,Ht(!1,n))}f.memo(xw);function xw({routes:e,future:t,state:n,unstable_onError:r}){return um(e,void 0,n,r,t)}function C_({to:e,replace:t,state:n,relative:r}){Ee(oo(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=f.useContext(Wt);Ht(!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(tn),{pathname:s}=Kn(),l=am(),a=fc(e,dc(i),s,r==="path"),u=JSON.stringify(a);return f.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function Sw(e){Ee(!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 Ew({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){Ee(!oo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:s,navigator:o,static:i,future:{}}),[s,o,i]);typeof n=="string"&&(n=no(n));let{pathname:a="/",search:u="",hash:d="",state:c=null,key:v="default"}=n,w=f.useMemo(()=>{let S=mn(a,s);return S==null?null:{location:{pathname:S,search:u,hash:d,state:c,key:v},navigationType:r}},[s,a,u,d,c,v,r]);return Ht(w!=null,`<Router basename="${s}"> 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.`),w==null?null:f.createElement(Wt.Provider,{value:l},f.createElement(li.Provider,{children:t,value:w}))}function k_({children:e,location:t}){return aw(qa(e),t)}function qa(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,qa(r.props.children,i));return}Ee(r.type===Sw,`[${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>`),Ee(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={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,middleware:r.props.middleware,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&&(s.children=qa(r.props.children,i)),n.push(s)}),n}var Qi="get",Xi="application/x-www-form-urlencoded";function Qs(e){return e!=null&&typeof e.tagName=="string"}function Cw(e){return Qs(e)&&e.tagName.toLowerCase()==="button"}function kw(e){return Qs(e)&&e.tagName.toLowerCase()==="form"}function _w(e){return Qs(e)&&e.tagName.toLowerCase()==="input"}function Rw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pw(e,t){return e.button===0&&(!t||t==="_self")&&!Rw(e)}var Di=null;function Tw(){if(Di===null)try{new FormData(document.createElement("form"),0),Di=!1}catch{Di=!0}return Di}var Nw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vl(e){return e!=null&&!Nw.has(e)?(Ht(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xi}"`),null):e}function Aw(e,t){let n,r,o,i,s;if(kw(e)){let l=e.getAttribute("action");r=l?mn(l,t):null,n=e.getAttribute("method")||Qi,o=Vl(e.getAttribute("enctype"))||Xi,i=new FormData(e)}else if(Cw(e)||_w(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||l.getAttribute("action");if(r=a?mn(a,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Qi,o=Vl(e.getAttribute("formenctype"))||Vl(l.getAttribute("enctype"))||Xi,i=new FormData(l,e),!Tw()){let{name:u,type:d,value:c}=e;if(d==="image"){let v=u?`${u}.`:"";i.append(`${v}x`,"0"),i.append(`${v}y`,"0")}else u&&i.append(u,c)}}else{if(Qs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qi,r=null,o=Xi,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dw(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&&mn(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Iw(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 bw(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 Mw(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let s=await Iw(i,n);return s.links?s.links():[]}return[]}));return jw(r.flat(1).filter(bw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function rf(e,t,n,r,o,i){let s=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,l=(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)=>s(a,u)||l(a,u)):i==="data"?t.filter((a,u)=>{var c;let d=r.routes[a.route.id];if(!d||!d.hasLoader)return!1;if(s(a,u)||l(a,u))return!0;if(a.route.shouldRevalidate){let v=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 v=="boolean")return v}return!0}):[]}function Ow(e,t,{includeHydrateFallback:n}={}){return Lw(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 Lw(e){return[...new Set(e)]}function Fw(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function jw(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(Fw(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function dm(){let e=f.useContext(ro);return vc(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function $w(){let e=f.useContext(Gs);return vc(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var yc=f.createContext(void 0);yc.displayName="FrameworkContext";function fm(){let e=f.useContext(yc);return vc(e,"You must render this element inside a <HydratedRouter> element"),e}function Vw(e,t){let n=f.useContext(yc),[r,o]=f.useState(!1),[i,s]=f.useState(!1),{onFocus:l,onBlur:a,onMouseEnter:u,onMouseLeave:d,onTouchStart:c}=t,v=f.useRef(null);f.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=h=>{h.forEach(p=>{s(p.isIntersecting)})},x=new IntersectionObserver(y,{threshold:.5});return v.current&&x.observe(v.current),()=>{x.disconnect()}}},[e]),f.useEffect(()=>{if(r){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[r]);let w=()=>{o(!0)},S=()=>{o(!1),s(!1)};return n?e!=="intent"?[i,v,{}]:[i,v,{onFocus:wo(l,w),onBlur:wo(a,S),onMouseEnter:wo(u,w),onMouseLeave:wo(d,S),onTouchStart:wo(c,w)}]:[!1,v,{}]}function wo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function zw({page:e,...t}){let{router:n}=dm(),r=f.useMemo(()=>tm(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(Uw,{page:e,matches:r,...t}):null}function Bw(e){let{manifest:t,routeModules:n}=fm(),[r,o]=f.useState([]);return f.useEffect(()=>{let i=!1;return Mw(e,t,n).then(s=>{i||o(s)}),()=>{i=!0}},[e,t,n]),r}function Uw({page:e,matches:t,...n}){let r=Kn(),{manifest:o,routeModules:i}=fm(),{basename:s}=dm(),{loaderData:l,matches:a}=$w(),u=f.useMemo(()=>rf(e,t,a,o,r,"data"),[e,t,a,o,r]),d=f.useMemo(()=>rf(e,t,a,o,r,"assets"),[e,t,a,o,r]),c=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,y=!1;if(t.forEach(h=>{var m;let p=o.routes[h.route.id];!p||!p.hasLoader||(!u.some(g=>g.route.id===h.route.id)&&h.route.id in l&&((m=i[h.route.id])!=null&&m.shouldRevalidate)||p.hasClientLoader?y=!0:S.add(h.route.id))}),S.size===0)return[];let x=Dw(e,s,"data");return y&&S.size>0&&x.searchParams.set("_routes",t.filter(h=>S.has(h.route.id)).map(h=>h.route.id).join(",")),[x.pathname+x.search]},[s,l,r,o,u,t,e,i]),v=f.useMemo(()=>Ow(d,o),[d,o]),w=Bw(d);return f.createElement(f.Fragment,null,c.map(S=>f.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),v.map(S=>f.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),w.map(({key:S,link:y})=>f.createElement("link",{key:S,nonce:n.nonce,...y})))}function Hw(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var pm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{pm&&(window.__reactRouterVersion="7.9.5")}catch{}function __({basename:e,children:t,window:n}){let r=f.useRef();r.current==null&&(r.current=b1({window:n,v5Compat:!0}));let o=r.current,[i,s]=f.useState({action:o.action,location:o.location}),l=f.useCallback(a=>{f.startTransition(()=>s(a))},[s]);return f.useLayoutEffect(()=>o.listen(l),[o,l]),f.createElement(Ew,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var hm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mm=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:s,state:l,target:a,to:u,preventScrollReset:d,viewTransition:c,...v},w){let{basename:S}=f.useContext(Wt),y=typeof u=="string"&&hm.test(u),x,h=!1;if(typeof u=="string"&&y&&(x=u,pm))try{let j=new URL(window.location.href),F=u.startsWith("//")?new URL(j.protocol+u):new URL(u),W=mn(F.pathname,S);F.origin===j.origin&&W!=null?u=W+F.search+F.hash:h=!0}catch{Ht(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let p=sw(u,{relative:o}),[m,g,E]=Vw(r,v),_=Gw(u,{replace:s,state:l,target:a,preventScrollReset:d,relative:o,viewTransition:c});function k(j){t&&t(j),j.defaultPrevented||_(j)}let A=f.createElement("a",{...v,...E,href:x||p,onClick:h||i?t:k,ref:Hw(w,g),target:a,"data-discover":!y&&n==="render"?"true":void 0});return m&&!y?f.createElement(f.Fragment,null,A,f.createElement(zw,{page:p})):A});mm.displayName="Link";var Ww=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:s,viewTransition:l,children:a,...u},d){let c=ai(s,{relative:u.relative}),v=Kn(),w=f.useContext(Gs),{navigator:S,basename:y}=f.useContext(Wt),x=w!=null&&Jw(c)&&l===!0,h=S.encodeLocation?S.encodeLocation(c).pathname:c.pathname,p=v.pathname,m=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(p=p.toLowerCase(),m=m?m.toLowerCase():null,h=h.toLowerCase()),m&&y&&(m=mn(m,y)||m);const g=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=p===h||!o&&p.startsWith(h)&&p.charAt(g)==="/",_=m!=null&&(m===h||!o&&m.startsWith(h)&&m.charAt(h.length)==="/"),k={isActive:E,isPending:_,isTransitioning:x},A=E?t:void 0,j;typeof r=="function"?j=r(k):j=[r,E?"active":null,_?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let F=typeof i=="function"?i(k):i;return f.createElement(mm,{...u,"aria-current":A,className:j,ref:d,style:F,to:s,viewTransition:l},typeof a=="function"?a(k):a)});Ww.displayName="NavLink";var Kw=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=Qi,action:l,onSubmit:a,relative:u,preventScrollReset:d,viewTransition:c,...v},w)=>{let S=Zw(),y=qw(l,{relative:u}),x=s.toLowerCase()==="get"?"get":"post",h=typeof l=="string"&&hm.test(l),p=m=>{if(a&&a(m),m.defaultPrevented)return;m.preventDefault();let g=m.nativeEvent.submitter,E=(g==null?void 0:g.getAttribute("formmethod"))||s;S(g||m.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:c})};return f.createElement("form",{ref:w,method:x,action:y,onSubmit:r?a:p,...v,"data-discover":!h&&e==="render"?"true":void 0})});Kw.displayName="Form";function Yw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vm(e){let t=f.useContext(ro);return Ee(t,Yw(e)),t}function Gw(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:s}={}){let l=am(),a=Kn(),u=ai(e,{relative:i});return f.useCallback(d=>{if(Pw(d,t)){d.preventDefault();let c=n!==void 0?n:qo(a)===qo(u);l(e,{replace:c,state:r,preventScrollReset:o,relative:i,viewTransition:s})}},[a,l,u,n,r,t,e,o,i,s])}var Qw=0,Xw=()=>`__${String(++Qw)}__`;function Zw(){let{router:e}=vm("useSubmit"),{basename:t}=f.useContext(Wt),n=yw();return f.useCallback(async(r,o={})=>{let{action:i,method:s,encType:l,formData:a,body:u}=Aw(r,t);if(o.navigate===!1){let d=o.fetcherKey||Xw();await e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function qw(e,{relative:t}={}){let{basename:n}=f.useContext(Wt),r=f.useContext(tn);Ee(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ai(e||".",{relative:t})},s=Kn();if(e==null){i.search=s.search;let l=new URLSearchParams(i.search),a=l.getAll("index");if(a.some(d=>d==="")){l.delete("index"),a.filter(c=>c).forEach(c=>l.append("index",c));let d=l.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])),qo(i)}function Jw(e,{relative:t}={}){let n=f.useContext(im);Ee(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vm("useViewTransitionState"),o=ai(e,{relative:t});if(!n.isTransitioning)return!1;let i=mn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=mn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ks(o.pathname,s)!=null||ks(o.pathname,i)!=null}var ex=(e,t,n,r,o,i,s,l)=>{let a=document.documentElement,u=["light","dark"];function d(w){(Array.isArray(e)?e:[e]).forEach(S=>{let y=S==="class",x=y&&i?o.map(h=>i[h]||h):o;y?(a.classList.remove(...x),a.classList.add(i&&i[w]?i[w]:w)):a.setAttribute(S,w)}),c(w)}function c(w){l&&u.includes(w)&&(a.style.colorScheme=w)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let w=localStorage.getItem(t)||n,S=s&&w==="system"?v():w;d(S)}catch{}},tx=f.createContext(void 0),nx={setTheme:e=>{},themes:[]},R_=()=>{var e;return(e=f.useContext(tx))!=null?e:nx};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,themes:l,nonce:a,scriptProps:u})=>{let d=JSON.stringify([n,t,i,e,l,s,r,o]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${ex.toString()})(${d})`}})});function rx(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 ox=e=>{switch(e){case"success":return lx;case"info":return ux;case"warning":return ax;case"error":return cx;default:return null}},ix=Array(12).fill(0),sx=({visible:e,className:t})=>T.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},T.createElement("div",{className:"sonner-spinner"},ix.map((n,r)=>T.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),lx=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.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"})),ax=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},T.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"})),ux=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.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"})),cx=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.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"})),dx=T.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"},T.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),T.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),fx=()=>{const[e,t]=T.useState(document.hidden);return T.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ja=1;class px{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:Ja++,s=this.toasts.find(a=>a.id===i),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...t,id:i,title:r}),{...a,...t,id:i,dismissible:l,title:r}):a):this.addToast({title:r,...o,dismissible:l,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,s;const l=o.then(async u=>{if(s=["resolve",u],T.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(mx(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:v,...S})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,v=typeof n.description=="function"?await n.description(u):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:v,...S})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,v=typeof n.description=="function"?await n.description(u):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:v,...S})}}).catch(async u=>{if(s=["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,w=typeof d=="object"&&!T.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...w})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),a=()=>new Promise((u,d)=>l.then(()=>s[0]==="reject"?d(s[1]):u(s[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)||Ja++;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 rt=new px,hx=(e,t)=>{const n=(t==null?void 0:t.id)||Ja++;return rt.addToast({title:e,...t,id:n}),n},mx=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",vx=hx,yx=()=>rt.toasts,gx=()=>rt.getActiveToasts(),P_=Object.assign(vx,{success:rt.success,info:rt.info,warning:rt.warning,error:rt.error,custom:rt.custom,message:rt.message,promise:rt.promise,dismiss:rt.dismiss,loading:rt.loading},{getHistory:yx,getToasts:gx});rx("[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 Ii(e){return e.label!==void 0}const wx=3,xx="24px",Sx="16px",of=4e3,Ex=356,Cx=14,kx=45,_x=200;function Xt(...e){return e.filter(Boolean).join(" ")}function Rx(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Px=e=>{var t,n,r,o,i,s,l,a,u;const{invert:d,toast:c,unstyled:v,interacting:w,setHeights:S,visibleToasts:y,heights:x,index:h,toasts:p,expanded:m,removeToast:g,defaultRichColors:E,closeButton:_,style:k,cancelButtonStyle:A,actionButtonStyle:j,className:F="",descriptionClassName:W="",duration:B,position:V,gap:G,expandByDefault:J,classNames:L,icons:K,closeButtonAriaLabel:Y="Close toast"}=e,[ae,de]=T.useState(null),[Ae,St]=T.useState(null),[X,se]=T.useState(!1),[le,Re]=T.useState(!1),[U,H]=T.useState(!1),[me,re]=T.useState(!1),[oe,ee]=T.useState(!1),[je,$e]=T.useState(0),[Yt,Gt]=T.useState(0),dt=T.useRef(c.duration||B||of),so=T.useRef(null),Ve=T.useRef(null),C=h===0,P=h+1<=y,N=c.type,O=c.dismissible!==!1,M=c.className||"",I=c.descriptionClassName||"",z=T.useMemo(()=>x.findIndex(Z=>Z.toastId===c.id)||0,[x,c.id]),ue=T.useMemo(()=>{var Z;return(Z=c.closeButton)!=null?Z:_},[c.closeButton,_]),fe=T.useMemo(()=>c.duration||B||of,[c.duration,B]),We=T.useRef(0),At=T.useRef(0),Dt=T.useRef(0),wn=T.useRef(null),[lo,ao]=V.split("-"),di=T.useMemo(()=>x.reduce((Z,Oe,Ke)=>Ke>=z?Z:Z+Oe.height,0),[x,z]),uo=fx(),fl=c.invert||d,vr=N==="loading";At.current=T.useMemo(()=>z*G+di,[z,di]),T.useEffect(()=>{dt.current=fe},[fe]),T.useEffect(()=>{se(!0)},[]),T.useEffect(()=>{const Z=Ve.current;if(Z){const Oe=Z.getBoundingClientRect().height;return Gt(Oe),S(Ke=>[{toastId:c.id,height:Oe,position:c.position},...Ke]),()=>S(Ke=>Ke.filter(ft=>ft.toastId!==c.id))}},[S,c.id]),T.useLayoutEffect(()=>{if(!X)return;const Z=Ve.current,Oe=Z.style.height;Z.style.height="auto";const Ke=Z.getBoundingClientRect().height;Z.style.height=Oe,Gt(Ke),S(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,S,c.id,c.jsx,c.action,c.cancel]);const xn=T.useCallback(()=>{Re(!0),$e(At.current),S(Z=>Z.filter(Oe=>Oe.toastId!==c.id)),setTimeout(()=>{g(c)},_x)},[c,g,S,At]);T.useEffect(()=>{if(c.promise&&N==="loading"||c.duration===1/0||c.type==="loading")return;let Z;return m||w||uo?(()=>{if(Dt.current<We.current){const ft=new Date().getTime()-We.current;dt.current=dt.current-ft}Dt.current=new Date().getTime()})():(()=>{dt.current!==1/0&&(We.current=new Date().getTime(),Z=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),xn()},dt.current))})(),()=>clearTimeout(Z)},[m,w,c,N,uo,xn]),T.useEffect(()=>{c.delete&&(xn(),c.onDismiss==null||c.onDismiss.call(c,c))},[xn,c.delete]);function Ky(){var Z;if(K!=null&&K.loading){var Oe;return T.createElement("div",{className:Xt(L==null?void 0:L.loader,c==null||(Oe=c.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":N==="loading"},K.loading)}return T.createElement(sx,{className:Xt(L==null?void 0:L.loader,c==null||(Z=c.classNames)==null?void 0:Z.loader),visible:N==="loading"})}const Yy=c.icon||(K==null?void 0:K[N])||ox(N);var jc,$c;return T.createElement("li",{tabIndex:0,ref:Ve,className:Xt(F,M,L==null?void 0:L.toast,c==null||(t=c.classNames)==null?void 0:t.toast,L==null?void 0:L.default,L==null?void 0:L[N],c==null||(n=c.classNames)==null?void 0:n[N]),"data-sonner-toast":"","data-rich-colors":(jc=c.richColors)!=null?jc:E,"data-styled":!(c.jsx||c.unstyled||v),"data-mounted":X,"data-promise":!!c.promise,"data-swiped":oe,"data-removed":le,"data-visible":P,"data-y-position":lo,"data-x-position":ao,"data-index":h,"data-front":C,"data-swiping":U,"data-dismissible":O,"data-type":N,"data-invert":fl,"data-swipe-out":me,"data-swipe-direction":Ae,"data-expanded":!!(m||J&&X),"data-testid":c.testId,style:{"--index":h,"--toasts-before":h,"--z-index":p.length-h,"--offset":`${le?je:At.current}px`,"--initial-height":J?"auto":`${Yt}px`,...k,...c.style},onDragEnd:()=>{H(!1),de(null),wn.current=null},onPointerDown:Z=>{Z.button!==2&&(vr||!O||(so.current=new Date,$e(At.current),Z.target.setPointerCapture(Z.pointerId),Z.target.tagName!=="BUTTON"&&(H(!0),wn.current={x:Z.clientX,y:Z.clientY})))},onPointerUp:()=>{var Z,Oe,Ke;if(me||!O)return;wn.current=null;const ft=Number(((Z=Ve.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),fi=Number(((Oe=Ve.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ze=new Date().getTime()-((Ke=so.current)==null?void 0:Ke.getTime()),Et=ae==="x"?ft:fi,pi=Math.abs(Et)/ze;if(Math.abs(Et)>=kx||pi>.11){$e(At.current),c.onDismiss==null||c.onDismiss.call(c,c),St(ae==="x"?ft>0?"right":"left":fi>0?"down":"up"),xn(),re(!0);return}else{var It,bt;(It=Ve.current)==null||It.style.setProperty("--swipe-amount-x","0px"),(bt=Ve.current)==null||bt.style.setProperty("--swipe-amount-y","0px")}ee(!1),H(!1),de(null)},onPointerMove:Z=>{var Oe,Ke,ft;if(!wn.current||!O||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;const ze=Z.clientY-wn.current.y,Et=Z.clientX-wn.current.x;var pi;const It=(pi=e.swipeDirections)!=null?pi:Rx(V);!ae&&(Math.abs(Et)>1||Math.abs(ze)>1)&&de(Math.abs(Et)>Math.abs(ze)?"x":"y");let bt={x:0,y:0};const Vc=Qn=>1/(1.5+Math.abs(Qn)/20);if(ae==="y"){if(It.includes("top")||It.includes("bottom"))if(It.includes("top")&&ze<0||It.includes("bottom")&&ze>0)bt.y=ze;else{const Qn=ze*Vc(ze);bt.y=Math.abs(Qn)<Math.abs(ze)?Qn:ze}}else if(ae==="x"&&(It.includes("left")||It.includes("right")))if(It.includes("left")&&Et<0||It.includes("right")&&Et>0)bt.x=Et;else{const Qn=Et*Vc(Et);bt.x=Math.abs(Qn)<Math.abs(Et)?Qn:Et}(Math.abs(bt.x)>0||Math.abs(bt.y)>0)&&ee(!0),(Ke=Ve.current)==null||Ke.style.setProperty("--swipe-amount-x",`${bt.x}px`),(ft=Ve.current)==null||ft.style.setProperty("--swipe-amount-y",`${bt.y}px`)}},ue&&!c.jsx&&N!=="loading"?T.createElement("button",{"aria-label":Y,"data-disabled":vr,"data-close-button":!0,onClick:vr||!O?()=>{}:()=>{xn(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Xt(L==null?void 0:L.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},($c=K==null?void 0:K.close)!=null?$c:dx):null,(N||c.icon||c.promise)&&c.icon!==null&&((K==null?void 0:K[N])!==null||c.icon)?T.createElement("div",{"data-icon":"",className:Xt(L==null?void 0:L.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Ky():null,c.type!=="loading"?Yy:null):null,T.createElement("div",{"data-content":"",className:Xt(L==null?void 0:L.content,c==null||(i=c.classNames)==null?void 0:i.content)},T.createElement("div",{"data-title":"",className:Xt(L==null?void 0:L.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?T.createElement("div",{"data-description":"",className:Xt(W,I,L==null?void 0:L.description,c==null||(l=c.classNames)==null?void 0:l.description)},typeof c.description=="function"?c.description():c.description):null),T.isValidElement(c.cancel)?c.cancel:c.cancel&&Ii(c.cancel)?T.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||A,onClick:Z=>{Ii(c.cancel)&&O&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,Z),xn())},className:Xt(L==null?void 0:L.cancelButton,c==null||(a=c.classNames)==null?void 0:a.cancelButton)},c.cancel.label):null,T.isValidElement(c.action)?c.action:c.action&&Ii(c.action)?T.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||j,onClick:Z=>{Ii(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Z),!Z.defaultPrevented&&xn())},className:Xt(L==null?void 0:L.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function sf(){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 Tx(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",l=i?Sx:xx;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${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[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}const T_=T.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:a,className:u,offset:d,mobileOffset:c,theme:v="light",richColors:w,duration:S,style:y,visibleToasts:x=wx,toastOptions:h,dir:p=sf(),gap:m=Cx,icons:g,containerAriaLabel:E="Notifications"}=t,[_,k]=T.useState([]),A=T.useMemo(()=>r?_.filter(X=>X.toasterId===r):_.filter(X=>!X.toasterId),[_,r]),j=T.useMemo(()=>Array.from(new Set([i].concat(A.filter(X=>X.position).map(X=>X.position)))),[A,i]),[F,W]=T.useState([]),[B,V]=T.useState(!1),[G,J]=T.useState(!1),[L,K]=T.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=T.useRef(null),ae=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),de=T.useRef(null),Ae=T.useRef(!1),St=T.useCallback(X=>{k(se=>{var le;return(le=se.find(Re=>Re.id===X.id))!=null&&le.delete||rt.dismiss(X.id),se.filter(({id:Re})=>Re!==X.id)})},[]);return T.useEffect(()=>rt.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{k(se=>se.map(le=>le.id===X.id?{...le,delete:!0}:le))});return}setTimeout(()=>{em.flushSync(()=>{k(se=>{const le=se.findIndex(Re=>Re.id===X.id);return le!==-1?[...se.slice(0,le),{...se[le],...X},...se.slice(le+1)]:[X,...se]})})})}),[_]),T.useEffect(()=>{if(v!=="system"){K(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:se})=>{K(se?"dark":"light")})}catch{X.addListener(({matches:le})=>{try{K(le?"dark":"light")}catch(Re){console.error(Re)}})}},[v]),T.useEffect(()=>{_.length<=1&&V(!1)},[_]),T.useEffect(()=>{const X=se=>{var le;if(s.every(H=>se[H]||se.code===H)){var U;V(!0),(U=Y.current)==null||U.focus()}se.code==="Escape"&&(document.activeElement===Y.current||(le=Y.current)!=null&&le.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[s]),T.useEffect(()=>{if(Y.current)return()=>{de.current&&(de.current.focus({preventScroll:!0}),de.current=null,Ae.current=!1)}},[Y.current]),T.createElement("section",{ref:n,"aria-label":`${E} ${ae}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((X,se)=>{var le;const[Re,U]=X.split("-");return A.length?T.createElement("ol",{key:X,dir:p==="auto"?sf():p,tabIndex:-1,ref:Y,className:u,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":Re,"data-x-position":U,style:{"--front-toast-height":`${((le=F[0])==null?void 0:le.height)||0}px`,"--width":`${Ex}px`,"--gap":`${m}px`,...y,...Tx(d,c)},onBlur:H=>{Ae.current&&!H.currentTarget.contains(H.relatedTarget)&&(Ae.current=!1,de.current&&(de.current.focus({preventScroll:!0}),de.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||Ae.current||(Ae.current=!0,de.current=H.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{G||V(!1)},onDragEnd:()=>V(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},A.filter(H=>!H.position&&se===0||H.position===X).map((H,me)=>{var re,oe;return T.createElement(Px,{key:H.id,icons:g,index:me,toast:H,defaultRichColors:w,duration:(re=h==null?void 0:h.duration)!=null?re:S,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:o,visibleToasts:x,closeButton:(oe=h==null?void 0:h.closeButton)!=null?oe:a,interacting:G,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:St,toasts:A.filter(ee=>ee.position==H.position),heights:F.filter(ee=>ee.position==H.position),setHeights:W,expandByDefault:l,gap:m,expanded:B,swipeDirections:t.swipeDirections})})):null}))}),lf=e=>{let t;const n=new Set,r=(u,d)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const v=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(w=>w(t,v))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=t=e(r,o,l);return l},Nx=e=>e?lf(e):lf,Ax=e=>e;function Dx(e,t=Ax){const n=T.useSyncExternalStore(e.subscribe,T.useCallback(()=>t(e.getState()),[e,t]),T.useCallback(()=>t(e.getInitialState()),[e,t]));return T.useDebugValue(n),n}const Ix=e=>{const t=Nx(e),n=r=>Dx(t,r);return Object.assign(n,t),n},N_=e=>Ix,af={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Jo=new Map,bi=e=>{const t=Jo.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},bx=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Jo.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return Jo.set(n.name,o),{type:"tracked",store:e,...o}},Mx=(e,t)=>{if(t===void 0)return;const n=Jo.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&Jo.delete(e))},Ox=e=>{var t,n;if(!e)return;const r=e.split(`
|
|
44
|
-
`),o=r.findIndex(s=>s.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]},Lx=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:l,...a}=t;let u;try{u=(i??(af?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,o);const{connection:d,...c}=bx(l,u,a);let v=!0;o.setState=(y,x,h)=>{const p=n(y,x);if(!v)return p;const m=h===void 0?{type:s||Ox(new Error().stack)||"anonymous"}:typeof h=="string"?{type:h}:h;return l===void 0?(d==null||d.send(m,r()),p):(d==null||d.send({...m,type:`${l}/${m.type}`},{...bi(a.name),[l]:o.getState()}),p)},o.devtools={cleanup:()=>{d&&typeof d.unsubscribe=="function"&&d.unsubscribe(),Mx(a.name,l)}};const w=(...y)=>{const x=v;v=!1,n(...y),v=x},S=e(o.setState,r,o);if(c.type==="untracked"?d==null||d.init(S):(c.stores[c.store]=o,d==null||d.init(Object.fromEntries(Object.entries(c.stores).map(([y,x])=>[y,y===c.store?S:x.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let y=!1;const x=o.dispatch;o.dispatch=(...h)=>{(af?"production":void 0)!=="production"&&h[0].type==="__setState"&&!y&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),y=!0),x(...h)}}return d.subscribe(y=>{var x;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return zl(y.payload,h=>{if(h.type==="__setState"){if(l===void 0){w(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[l];if(p==null)return;JSON.stringify(o.getState())!==JSON.stringify(p)&&w(p);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(h)});case"DISPATCH":switch(y.payload.type){case"RESET":return w(S),l===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(bi(a.name));case"COMMIT":if(l===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(bi(a.name));case"ROLLBACK":return zl(y.state,h=>{if(l===void 0){w(h),d==null||d.init(o.getState());return}w(h[l]),d==null||d.init(bi(a.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return zl(y.state,h=>{if(l===void 0){w(h);return}JSON.stringify(o.getState())!==JSON.stringify(h[l])&&w(h[l])});case"IMPORT_STATE":{const{nextLiftedState:h}=y.payload,p=(x=h.computedStates.slice(-1)[0])==null?void 0:x.state;if(!p)return;w(l===void 0?p:p[l]),d==null||d.send(null,h);return}case"PAUSE_RECORDING":return v=!v}return}}),S},A_=Lx,zl=(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)},uf=e=>Symbol.iterator in e,cf=e=>"entries"in e,df=(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},Fx=(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 jx(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:uf(e)&&uf(t)?cf(e)&&cf(t)?df(e,t):Fx(e,t):df({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function D_(e){const t=T.useRef(void 0);return n=>{const r=e(n);return jx(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 $x=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ff=e=>{const t=Vx(e);return t.charAt(0).toUpperCase()+t.slice(1)},ym=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),zx=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 Bx={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 Ux=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>f.createElement("svg",{ref:a,...Bx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ym("lucide",o),...!i&&!zx(l)&&{"aria-hidden":"true"},...l},[...s.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 q=(e,t)=>{const n=f.forwardRef(({className:r,...o},i)=>f.createElement(Ux,{ref:i,iconNode:t,className:ym(`lucide-${$x(ff(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ff(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 Hx=[["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"}]],I_=q("badge-info",Hx);/**
|
|
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:"m16 22-1-4",key:"1ow2iv"}],["path",{d:"M19 13.99a1 1 0 0 0 1-1V12a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v.99a1 1 0 0 0 1 1",key:"iw8jdu"}],["path",{d:"M5 14h14l1.973 6.767A1 1 0 0 1 20 22H4a1 1 0 0 1-.973-1.233z",key:"1soew8"}],["path",{d:"m8 22 1-4",key:"s3unb"}]],b_=q("brush-cleaning",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 Kx=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],M_=q("calendar",Kx);/**
|
|
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 Yx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],O_=q("check",Yx);/**
|
|
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 Gx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],L_=q("chevron-down",Gx);/**
|
|
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 Qx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],F_=q("chevron-left",Qx);/**
|
|
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 Xx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],j_=q("chevron-right",Xx);/**
|
|
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 Zx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],$_=q("chevron-up",Zx);/**
|
|
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 qx=[["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"}]],V_=q("circle-alert",qx);/**
|
|
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 Jx=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],z_=q("circle-check-big",Jx);/**
|
|
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 eS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],B_=q("circle-x",eS);/**
|
|
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 tS=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],U_=q("code",tS);/**
|
|
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 nS=[["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"}]],H_=q("coffee",nS);/**
|
|
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 rS=[["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"}]],W_=q("copy",rS);/**
|
|
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 oS=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],K_=q("download",oS);/**
|
|
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 iS=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Y_=q("external-link",iS);/**
|
|
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 sS=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],G_=q("file-text",sS);/**
|
|
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 lS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Q_=q("info",lS);/**
|
|
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 aS=[["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"}]],X_=q("layout-dashboard",aS);/**
|
|
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 uS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Z_=q("loader-circle",uS);/**
|
|
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 cS=[["path",{d:"M5 12h14",key:"1ays0h"}]],q_=q("minus",cS);/**
|
|
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 dS=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],J_=q("package",dS);/**
|
|
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 fS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],e2=q("panel-left",fS);/**
|
|
184
|
-
* @license lucide-react v0.523.0 - ISC
|
|
185
|
-
*
|
|
186
|
-
* This source code is licensed under the ISC license.
|
|
187
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
-
*/const pS=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],t2=q("play",pS);/**
|
|
189
|
-
* @license lucide-react v0.523.0 - ISC
|
|
190
|
-
*
|
|
191
|
-
* This source code is licensed under the ISC license.
|
|
192
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/const hS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],n2=q("plus",hS);/**
|
|
194
|
-
* @license lucide-react v0.523.0 - ISC
|
|
195
|
-
*
|
|
196
|
-
* This source code is licensed under the ISC license.
|
|
197
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/const mS=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],r2=q("power",mS);/**
|
|
199
|
-
* @license lucide-react v0.523.0 - ISC
|
|
200
|
-
*
|
|
201
|
-
* This source code is licensed under the ISC license.
|
|
202
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
-
*/const vS=[["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"}]],o2=q("refresh-cw",vS);/**
|
|
204
|
-
* @license lucide-react v0.523.0 - ISC
|
|
205
|
-
*
|
|
206
|
-
* This source code is licensed under the ISC license.
|
|
207
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
-
*/const yS=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],i2=q("rocket",yS);/**
|
|
209
|
-
* @license lucide-react v0.523.0 - ISC
|
|
210
|
-
*
|
|
211
|
-
* This source code is licensed under the ISC license.
|
|
212
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
-
*/const gS=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],s2=q("rotate-cw",gS);/**
|
|
214
|
-
* @license lucide-react v0.523.0 - ISC
|
|
215
|
-
*
|
|
216
|
-
* This source code is licensed under the ISC license.
|
|
217
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
-
*/const wS=[["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"}]],l2=q("settings",wS);/**
|
|
219
|
-
* @license lucide-react v0.523.0 - ISC
|
|
220
|
-
*
|
|
221
|
-
* This source code is licensed under the ISC license.
|
|
222
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/const xS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],a2=q("shield-alert",xS);/**
|
|
224
|
-
* @license lucide-react v0.523.0 - ISC
|
|
225
|
-
*
|
|
226
|
-
* This source code is licensed under the ISC license.
|
|
227
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/const SS=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],u2=q("terminal",SS);/**
|
|
229
|
-
* @license lucide-react v0.523.0 - ISC
|
|
230
|
-
*
|
|
231
|
-
* This source code is licensed under the ISC license.
|
|
232
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
-
*/const ES=[["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"}]],c2=q("trash-2",ES);/**
|
|
234
|
-
* @license lucide-react v0.523.0 - ISC
|
|
235
|
-
*
|
|
236
|
-
* This source code is licensed under the ISC license.
|
|
237
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/const CS=[["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"}]],d2=q("trash",CS);/**
|
|
239
|
-
* @license lucide-react v0.523.0 - ISC
|
|
240
|
-
*
|
|
241
|
-
* This source code is licensed under the ISC license.
|
|
242
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
-
*/const kS=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],f2=q("wifi-off",kS);/**
|
|
244
|
-
* @license lucide-react v0.523.0 - ISC
|
|
245
|
-
*
|
|
246
|
-
* This source code is licensed under the ISC license.
|
|
247
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
-
*/const _S=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],p2=q("wifi",_S);/**
|
|
249
|
-
* @license lucide-react v0.523.0 - ISC
|
|
250
|
-
*
|
|
251
|
-
* This source code is licensed under the ISC license.
|
|
252
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/const RS=[["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"}]],h2=q("workflow",RS);/**
|
|
254
|
-
* @license lucide-react v0.523.0 - ISC
|
|
255
|
-
*
|
|
256
|
-
* This source code is licensed under the ISC license.
|
|
257
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
-
*/const PS=[["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"}]],m2=q("wrench",PS);/**
|
|
259
|
-
* @license lucide-react v0.523.0 - ISC
|
|
260
|
-
*
|
|
261
|
-
* This source code is licensed under the ISC license.
|
|
262
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
-
*/const TS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],v2=q("x",TS);/**
|
|
264
|
-
* @license lucide-react v0.523.0 - ISC
|
|
265
|
-
*
|
|
266
|
-
* This source code is licensed under the ISC license.
|
|
267
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
-
*/const NS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],y2=q("zap",NS);function pf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gc(...e){return t=>{let n=!1;const r=e.map(o=>{const i=pf(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():pf(e[o],null)}}}}function he(...e){return f.useCallback(gc(...e),e)}var AS=Symbol.for("react.lazy"),_s=xu[" use ".trim().toString()];function DS(e){return typeof e=="object"&&e!==null&&"then"in e}function gm(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===AS&&"_payload"in e&&DS(e._payload)}function wm(e){const t=IS(e),n=f.forwardRef((r,o)=>{let{children:i,...s}=r;gm(i)&&typeof _s=="function"&&(i=_s(i._payload));const l=f.Children.toArray(i),a=l.find(MS);if(a){const u=a.props.children,d=l.map(c=>c===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return R.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return R.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var g2=wm("Slot");function IS(e){const t=f.forwardRef((n,r)=>{let{children:o,...i}=n;if(gm(o)&&typeof _s=="function"&&(o=_s(o._payload)),f.isValidElement(o)){const s=LS(o),l=OS(i,o.props);return o.type!==f.Fragment&&(l.ref=r?gc(r,s):s),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bS=Symbol("radix.slottable");function MS(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bS}function OS(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]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function LS(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 FS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xm=FS.reduce((e,t)=>{const n=wm(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),jS="Separator",hf="horizontal",$S=["horizontal","vertical"],Sm=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=hf,...o}=e,i=VS(r)?r:hf,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return R.jsx(xm.div,{"data-orientation":i,...l,...o,ref:t})});Sm.displayName=jS;function VS(e){return $S.includes(e)}var w2=Sm;function zS(e,t){const n=f.createContext(t),r=i=>{const{children:s,...l}=i,a=f.useMemo(()=>l,Object.values(l));return R.jsx(n.Provider,{value:a,children:s})};r.displayName=e+"Provider";function o(i){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function yn(e,t=[]){let n=[];function r(i,s){const l=f.createContext(s),a=n.length;n=[...n,s];const u=c=>{var h;const{scope:v,children:w,...S}=c,y=((h=v==null?void 0:v[e])==null?void 0:h[a])||l,x=f.useMemo(()=>S,Object.values(S));return R.jsx(y.Provider,{value:x,children:w})};u.displayName=i+"Provider";function d(c,v){var y;const w=((y=v==null?void 0:v[e])==null?void 0:y[a])||l,S=f.useContext(w);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,BS(o,...t)]}function BS(...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 s=r.reduce((l,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...l,...c}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var qe=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},US=xu[" useId ".trim().toString()]||(()=>{}),HS=0;function cn(e){const[t,n]=f.useState(US());return qe(()=>{n(r=>r??String(HS++))},[e]),e||(t?`radix-${t}`:"")}var WS=xu[" useInsertionEffect ".trim().toString()]||qe;function ur({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=KS({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const c=d.current;c!==l&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${l?"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=l},[l,r])}const u=f.useCallback(d=>{var c;if(l){const v=YS(d)?d(e):d;v!==e&&((c=s.current)==null||c.call(s,v))}else i(d)},[l,e,i,s]);return[a,u]}function KS({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return WS(()=>{i.current=t},[t]),f.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function YS(e){return typeof e=="function"}function ei(e){const t=GS(e),n=f.forwardRef((r,o)=>{const{children:i,...s}=r,l=f.Children.toArray(i),a=l.find(QS);if(a){const u=a.props.children,d=l.map(c=>c===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return R.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return R.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function GS(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const s=ZS(o),l=XS(i,o.props);return o.type!==f.Fragment&&(l.ref=r?gc(r,s):s),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Em=Symbol("radix.slottable");function Cm(e){const t=({children:n})=>R.jsx(R.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Em,t}function QS(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Em}function XS(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]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ZS(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 qS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=qS.reduce((e,t)=>{const n=ei(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function JS(e,t){e&&to.flushSync(()=>e.dispatchEvent(t))}function Bn(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 eE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(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 tE="DismissableLayer",eu="dismissableLayer.update",nE="dismissableLayer.pointerDownOutside",rE="dismissableLayer.focusOutside",mf,km=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=f.useContext(km),[d,c]=f.useState(null),v=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=f.useState({}),S=he(t,k=>c(k)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(x),p=d?y.indexOf(d):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,g=p>=h,E=sE(k=>{const A=k.target,j=[...u.branches].some(F=>F.contains(A));!g||j||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},v),_=lE(k=>{const A=k.target;[...u.branches].some(F=>F.contains(A))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},v);return eE(k=>{p===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},v),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(mf=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),vf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=mf)}},[d,v,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),vf())},[d,u]),f.useEffect(()=>{const k=()=>w({});return document.addEventListener(eu,k),()=>document.removeEventListener(eu,k)},[]),R.jsx(ne.div,{...a,ref:S,style:{pointerEvents:m?g?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,E.onPointerDownCapture)})});Xs.displayName=tE;var oE="DismissableLayerBranch",iE=f.forwardRef((e,t)=>{const n=f.useContext(km),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]),R.jsx(ne.div,{...e,ref:o})});iE.displayName=oE;function sE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){_m(nE,n,u,{discrete:!0})};const u={originalEvent:l};l.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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function lE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&_m(rE,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 vf(){const e=new CustomEvent(eu);document.dispatchEvent(e)}function _m(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?JS(o,i):o.dispatchEvent(i)}var Bl="focusScope.autoFocusOnMount",Ul="focusScope.autoFocusOnUnmount",yf={bubbles:!1,cancelable:!0},aE="FocusScope",wc=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,a]=f.useState(null),u=Bn(o),d=Bn(i),c=f.useRef(null),v=he(t,y=>a(y)),w=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let y=function(m){if(w.paused||!l)return;const g=m.target;l.contains(g)?c.current=g:Cn(c.current,{select:!0})},x=function(m){if(w.paused||!l)return;const g=m.relatedTarget;g!==null&&(l.contains(g)||Cn(c.current,{select:!0}))},h=function(m){if(document.activeElement===document.body)for(const E of m)E.removedNodes.length>0&&Cn(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const p=new MutationObserver(h);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),p.disconnect()}}},[r,l,w.paused]),f.useEffect(()=>{if(l){wf.add(w);const y=document.activeElement;if(!l.contains(y)){const h=new CustomEvent(Bl,yf);l.addEventListener(Bl,u),l.dispatchEvent(h),h.defaultPrevented||(uE(hE(Rm(l)),{select:!0}),document.activeElement===y&&Cn(l))}return()=>{l.removeEventListener(Bl,u),setTimeout(()=>{const h=new CustomEvent(Ul,yf);l.addEventListener(Ul,d),l.dispatchEvent(h),h.defaultPrevented||Cn(y??document.body,{select:!0}),l.removeEventListener(Ul,d),wf.remove(w)},0)}}},[l,u,d,w]);const S=f.useCallback(y=>{if(!n&&!r||w.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,h=document.activeElement;if(x&&h){const p=y.currentTarget,[m,g]=cE(p);m&&g?!y.shiftKey&&h===g?(y.preventDefault(),n&&Cn(m,{select:!0})):y.shiftKey&&h===m&&(y.preventDefault(),n&&Cn(g,{select:!0})):h===p&&y.preventDefault()}},[n,r,w.paused]);return R.jsx(ne.div,{tabIndex:-1,...s,ref:v,onKeyDown:S})});wc.displayName=aE;function uE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cn(r,{select:t}),document.activeElement!==n)return}function cE(e){const t=Rm(e),n=gf(t,e),r=gf(t.reverse(),e);return[n,r]}function Rm(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 gf(e,t){for(const n of e)if(!dE(n,{upTo:t}))return n}function dE(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 fE(e){return e instanceof HTMLInputElement&&"select"in e}function Cn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fE(e)&&t&&e.select()}}var wf=pE();function pE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=xf(e,t),e.unshift(t)},remove(t){var n;e=xf(e,t),(n=e[0])==null||n.resume()}}}function xf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hE(e){return e.filter(t=>t.tagName!=="A")}var mE="Portal",xc=f.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=f.useState(!1);qe(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?em.createPortal(R.jsx(ne.div,{...r,ref:t}),s):null});xc.displayName=mE;function vE(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var mr=e=>{const{present:t,children:n}=e,r=yE(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=he(r.ref,gE(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};mr.displayName="Presence";function yE(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[l,a]=vE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=Mi(r.current);i.current=l==="mounted"?u:"none"},[l]),qe(()=>{const u=r.current,d=o.current;if(d!==e){const v=i.current,w=Mi(u);e?a("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&v!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),qe(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=w=>{const y=Mi(r.current).includes(CSS.escape(w.animationName));if(w.target===t&&y&&(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)})}},v=w=>{w.target===t&&(i.current=Mi(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Mi(e){return(e==null?void 0:e.animationName)||"none"}function gE(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 Hl=0;function Pm(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Sf()),document.body.insertAdjacentElement("beforeend",e[1]??Sf()),Hl++,()=>{Hl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hl--}},[])}function Sf(){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 Zi="right-scroll-bar-position",qi="width-before-scroll-bar",wE="with-scroll-bars-hidden",xE="--removed-body-scroll-bar-size";function Wl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function SE(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 EE=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ef=new WeakMap;function CE(e,t){var n=SE(null,function(r){return e.forEach(function(o){return Wl(o,r)})});return EE(function(){var r=Ef.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(l){i.has(l)||Wl(l,null)}),i.forEach(function(l){o.has(l)||Wl(l,s)})}Ef.set(n,e)},[e]),n}function kE(e){return e}function _E(e,t){t===void 0&&(t=kE);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 s=t(i,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(i),s=n}var a=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function RE(e){e===void 0&&(e={});var t=_E(null);return t.options=Rn({async:!0,ssr:!1},e),t}var Tm=function(e){var t=e.sideCar,n=zf(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,Rn({},n))};Tm.isSideCarExport=!0;function PE(e,t){return e.useMedium(t),Tm}var Nm=RE(),Kl=function(){},Zs=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Kl,onWheelCapture:Kl,onTouchMoveCapture:Kl}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,a=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,v=e.sideCar,w=e.noRelative,S=e.noIsolation,y=e.inert,x=e.allowPinchZoom,h=e.as,p=h===void 0?"div":h,m=e.gapMode,g=zf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,_=CE([n,t]),k=Rn(Rn({},g),o);return f.createElement(f.Fragment,null,d&&f.createElement(E,{sideCar:Nm,removeScrollBar:u,shards:c,noRelative:w,noIsolation:S,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:m}),s?f.cloneElement(f.Children.only(l),Rn(Rn({},k),{ref:_})):f.createElement(p,Rn({},k,{className:a,ref:_}),l))});Zs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zs.classNames={fullWidth:qi,zeroRight:Zi};function TE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qy();return t&&e.setAttribute("nonce",t),e}function NE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function AE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var DE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=TE())&&(NE(t,n),AE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},IE=function(){var e=DE();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Am=function(){var e=IE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},bE={left:0,top:0,right:0,gap:0},Yl=function(e){return parseInt(e||"",10)||0},ME=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[Yl(n),Yl(r),Yl(o)]},OE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bE;var t=ME(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])}},LE=Am(),zr="data-scroll-locked",FE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
269
|
-
.`.concat(wE,` {
|
|
270
|
-
overflow: hidden `).concat(r,`;
|
|
271
|
-
padding-right: `).concat(l,"px ").concat(r,`;
|
|
272
|
-
}
|
|
273
|
-
body[`).concat(zr,`] {
|
|
274
|
-
overflow: hidden `).concat(r,`;
|
|
275
|
-
overscroll-behavior: contain;
|
|
276
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
277
|
-
padding-left: `.concat(o,`px;
|
|
278
|
-
padding-top: `).concat(i,`px;
|
|
279
|
-
padding-right: `).concat(s,`px;
|
|
280
|
-
margin-left:0;
|
|
281
|
-
margin-top:0;
|
|
282
|
-
margin-right: `).concat(l,"px ").concat(r,`;
|
|
283
|
-
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.`).concat(Zi,` {
|
|
287
|
-
right: `).concat(l,"px ").concat(r,`;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.`).concat(qi,` {
|
|
291
|
-
margin-right: `).concat(l,"px ").concat(r,`;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.`).concat(Zi," .").concat(Zi,` {
|
|
295
|
-
right: 0 `).concat(r,`;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.`).concat(qi," .").concat(qi,` {
|
|
299
|
-
margin-right: 0 `).concat(r,`;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
body[`).concat(zr,`] {
|
|
303
|
-
`).concat(xE,": ").concat(l,`px;
|
|
304
|
-
}
|
|
305
|
-
`)},Cf=function(){var e=parseInt(document.body.getAttribute(zr)||"0",10);return isFinite(e)?e:0},jE=function(){f.useEffect(function(){return document.body.setAttribute(zr,(Cf()+1).toString()),function(){var e=Cf()-1;e<=0?document.body.removeAttribute(zr):document.body.setAttribute(zr,e.toString())}},[])},$E=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;jE();var i=f.useMemo(function(){return OE(o)},[o]);return f.createElement(LE,{styles:FE(i,!t,o,n?"":"!important")})},tu=!1;if(typeof window<"u")try{var Oi=Object.defineProperty({},"passive",{get:function(){return tu=!0,!0}});window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{tu=!1}var gr=tu?{passive:!1}:!1,VE=function(e){return e.tagName==="TEXTAREA"},Dm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!VE(e)&&n[t]==="visible")},zE=function(e){return Dm(e,"overflowY")},BE=function(e){return Dm(e,"overflowX")},kf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Im(e,r);if(o){var i=bm(e,r),s=i[1],l=i[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},UE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},HE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Im=function(e,t){return e==="v"?zE(t):BE(t)},bm=function(e,t){return e==="v"?UE(t):HE(t)},WE=function(e,t){return e==="h"&&t==="rtl"?-1:1},KE=function(e,t,n,r,o){var i=WE(e,window.getComputedStyle(t).direction),s=i*r,l=n.target,a=t.contains(l),u=!1,d=s>0,c=0,v=0;do{if(!l)break;var w=bm(e,l),S=w[0],y=w[1],x=w[2],h=y-x-i*S;(S||h)&&Im(e,l)&&(c+=h,v+=S);var p=l.parentNode;l=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!a&&l!==document.body||a&&(t.contains(l)||t===l));return(d&&Math.abs(c)<1||!d&&Math.abs(v)<1)&&(u=!0),u},Li=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_f=function(e){return[e.deltaX,e.deltaY]},Rf=function(e){return e&&"current"in e?e.current:e},YE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GE=function(e){return`
|
|
306
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
307
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
308
|
-
`)},QE=0,wr=[];function XE(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(QE++)[0],i=f.useState(Am)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=Xy([e.lockRef.current],(e.shards||[]).map(Rf),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=f.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!s.current.allowPinchZoom;var h=Li(y),p=n.current,m="deltaX"in y?y.deltaX:p[0]-h[0],g="deltaY"in y?y.deltaY:p[1]-h[1],E,_=y.target,k=Math.abs(m)>Math.abs(g)?"h":"v";if("touches"in y&&k==="h"&&_.type==="range")return!1;var A=kf(k,_);if(!A)return!0;if(A?E=k:(E=k==="v"?"h":"v",A=kf(k,_)),!A)return!1;if(!r.current&&"changedTouches"in y&&(m||g)&&(r.current=E),!E)return!0;var j=r.current||E;return KE(j,x,y,j==="h"?m:g)},[]),a=f.useCallback(function(y){var x=y;if(!(!wr.length||wr[wr.length-1]!==i)){var h="deltaY"in x?_f(x):Li(x),p=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&YE(E.delta,h)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var m=(s.current.shards||[]).map(Rf).filter(Boolean).filter(function(E){return E.contains(x.target)}),g=m.length>0?l(x,m[0]):!s.current.noIsolation;g&&x.cancelable&&x.preventDefault()}}},[]),u=f.useCallback(function(y,x,h,p){var m={name:y,delta:x,target:h,should:p,shadowParent:ZE(h)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(g){return g!==m})},1)},[]),d=f.useCallback(function(y){n.current=Li(y),r.current=void 0},[]),c=f.useCallback(function(y){u(y.type,_f(y),y.target,l(y,e.lockRef.current))},[]),v=f.useCallback(function(y){u(y.type,Li(y),y.target,l(y,e.lockRef.current))},[]);f.useEffect(function(){return wr.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:v}),document.addEventListener("wheel",a,gr),document.addEventListener("touchmove",a,gr),document.addEventListener("touchstart",d,gr),function(){wr=wr.filter(function(y){return y!==i}),document.removeEventListener("wheel",a,gr),document.removeEventListener("touchmove",a,gr),document.removeEventListener("touchstart",d,gr)}},[]);var w=e.removeScrollBar,S=e.inert;return f.createElement(f.Fragment,null,S?f.createElement(i,{styles:GE(o)}):null,w?f.createElement($E,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qE=PE(Nm,XE);var Sc=f.forwardRef(function(e,t){return f.createElement(Zs,Rn({},e,{ref:t,sideCar:qE}))});Sc.classNames=Zs.classNames;var qs="Dialog",[Mm,Om]=yn(qs),[JE,Kt]=Mm(qs),Lm=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=f.useRef(null),a=f.useRef(null),[u,d]=ur({prop:r,defaultProp:o??!1,onChange:i,caller:qs});return R.jsx(JE,{scope:t,triggerRef:l,contentRef:a,contentId:cn(),titleId:cn(),descriptionId:cn(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(c=>!c),[d]),modal:s,children:n})};Lm.displayName=qs;var Fm="DialogTrigger",jm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Fm,n),i=he(t,o.triggerRef);return R.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":kc(o.open),...r,ref:i,onClick:Q(e.onClick,o.onOpenToggle)})});jm.displayName=Fm;var Ec="DialogPortal",[eC,$m]=Mm(Ec,{forceMount:void 0}),Vm=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Kt(Ec,t);return R.jsx(eC,{scope:t,forceMount:n,children:f.Children.map(r,s=>R.jsx(mr,{present:n||i.open,children:R.jsx(xc,{asChild:!0,container:o,children:s})}))})};Vm.displayName=Ec;var Rs="DialogOverlay",zm=f.forwardRef((e,t)=>{const n=$m(Rs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Kt(Rs,e.__scopeDialog);return i.modal?R.jsx(mr,{present:r||i.open,children:R.jsx(nC,{...o,ref:t})}):null});zm.displayName=Rs;var tC=ei("DialogOverlay.RemoveScroll"),nC=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Rs,n);return R.jsx(Sc,{as:tC,allowPinchZoom:!0,shards:[o.contentRef],children:R.jsx(ne.div,{"data-state":kc(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),cr="DialogContent",Bm=f.forwardRef((e,t)=>{const n=$m(cr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Kt(cr,e.__scopeDialog);return R.jsx(mr,{present:r||i.open,children:i.modal?R.jsx(rC,{...o,ref:t}):R.jsx(oC,{...o,ref:t})})});Bm.displayName=cr;var rC=f.forwardRef((e,t)=>{const n=Kt(cr,e.__scopeDialog),r=f.useRef(null),o=he(t,n.contentRef,r);return f.useEffect(()=>{const i=r.current;if(i)return Bf(i)},[]),R.jsx(Um,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&i.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault())})}),oC=f.forwardRef((e,t)=>{const n=Kt(cr,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return R.jsx(Um,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.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 s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Um=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=Kt(cr,n),a=f.useRef(null),u=he(t,a);return Pm(),R.jsxs(R.Fragment,{children:[R.jsx(wc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:R.jsx(Xs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":kc(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),R.jsxs(R.Fragment,{children:[R.jsx(sC,{titleId:l.titleId}),R.jsx(aC,{contentRef:a,descriptionId:l.descriptionId})]})]})}),Cc="DialogTitle",Hm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Cc,n);return R.jsx(ne.h2,{id:o.titleId,...r,ref:t})});Hm.displayName=Cc;var Wm="DialogDescription",Km=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Wm,n);return R.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});Km.displayName=Wm;var Ym="DialogClose",Gm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Ym,n);return R.jsx(ne.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});Gm.displayName=Ym;function kc(e){return e?"open":"closed"}var Qm="DialogTitleWarning",[iC,Xm]=zS(Qm,{contentName:cr,titleName:Cc,docsSlug:"dialog"}),sC=({titleId:e})=>{const t=Xm(Qm),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
309
|
-
|
|
310
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
311
|
-
|
|
312
|
-
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},lC="DialogDescriptionWarning",aC=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xm(lC).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},uC=Lm,cC=jm,dC=Vm,fC=zm,pC=Bm,hC=Hm,mC=Km,Zm=Gm,vC=typeof document<"u",yC=function(){},Ji=vC?f.useLayoutEffect:yC;function Ps(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(!Ps(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)&&!Ps(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function qm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pf(e,t){const n=qm(e);return Math.round(t*n)/n}function Gl(e){const t=f.useRef(e);return Ji(()=>{t.current=e}),t}function gC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,c]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,w]=f.useState(r);Ps(v,r)||w(r);const[S,y]=f.useState(null),[x,h]=f.useState(null),p=f.useCallback(Y=>{Y!==_.current&&(_.current=Y,y(Y))},[]),m=f.useCallback(Y=>{Y!==k.current&&(k.current=Y,h(Y))},[]),g=i||S,E=s||x,_=f.useRef(null),k=f.useRef(null),A=f.useRef(d),j=a!=null,F=Gl(a),W=Gl(o),B=Gl(u),V=f.useCallback(()=>{if(!_.current||!k.current)return;const Y={placement:t,strategy:n,middleware:v};W.current&&(Y.platform=W.current),Zy(_.current,k.current,Y).then(ae=>{const de={...ae,isPositioned:B.current!==!1};G.current&&!Ps(A.current,de)&&(A.current=de,to.flushSync(()=>{c(de)}))})},[v,t,n,W,B]);Ji(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,c(Y=>({...Y,isPositioned:!1})))},[u]);const G=f.useRef(!1);Ji(()=>(G.current=!0,()=>{G.current=!1}),[]),Ji(()=>{if(g&&(_.current=g),E&&(k.current=E),g&&E){if(F.current)return F.current(g,E,V);V()}},[g,E,V,F,j]);const J=f.useMemo(()=>({reference:_,floating:k,setReference:p,setFloating:m}),[p,m]),L=f.useMemo(()=>({reference:g,floating:E}),[g,E]),K=f.useMemo(()=>{const Y={position:n,left:0,top:0};if(!L.floating)return Y;const ae=Pf(L.floating,d.x),de=Pf(L.floating,d.y);return l?{...Y,transform:"translate("+ae+"px, "+de+"px)",...qm(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ae,top:de}},[n,l,L.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:V,refs:J,elements:L,floatingStyles:K}),[d,V,J,L,K])}const wC=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?Bc({element:r.current,padding:o}).fn(n):{}:r?Bc({element:r,padding:o}).fn(n):{}}}},xC=(e,t)=>({...qy(e),options:[e,t]}),SC=(e,t)=>({...Jy(e),options:[e,t]}),EC=(e,t)=>({...rg(e),options:[e,t]}),CC=(e,t)=>({...eg(e),options:[e,t]}),kC=(e,t)=>({...tg(e),options:[e,t]}),_C=(e,t)=>({...ng(e),options:[e,t]}),RC=(e,t)=>({...wC(e),options:[e,t]});var PC="Arrow",Jm=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return R.jsx(ne.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:R.jsx("polygon",{points:"0,0 30,0 15,10"})})});Jm.displayName=PC;var TC=Jm;function ev(e){const[t,n]=f.useState(void 0);return qe(()=>{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 s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var _c="Popper",[tv,Js]=yn(_c),[NC,nv]=tv(_c),rv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return R.jsx(NC,{scope:t,anchor:r,onAnchorChange:o,children:n})};rv.displayName=_c;var ov="PopperAnchor",iv=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=nv(ov,n),s=f.useRef(null),l=he(t,s),a=f.useRef(null);return f.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||s.current,u!==a.current&&i.onAnchorChange(a.current)}),r?null:R.jsx(ne.div,{...o,ref:l})});iv.displayName=ov;var Rc="PopperContent",[AC,DC]=tv(Rc),sv=f.forwardRef((e,t)=>{var U,H,me,re,oe,ee;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:v=!1,updatePositionStrategy:w="optimized",onPlaced:S,...y}=e,x=nv(Rc,n),[h,p]=f.useState(null),m=he(t,je=>p(je)),[g,E]=f.useState(null),_=ev(g),k=(_==null?void 0:_.width)??0,A=(_==null?void 0:_.height)??0,j=r+(i!=="center"?"-"+i:""),F=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(u)?u:[u],B=W.length>0,V={padding:F,boundary:W.filter(bC),altBoundary:B},{refs:G,floatingStyles:J,placement:L,isPositioned:K,middlewareData:Y}=gC({strategy:"fixed",placement:j,whileElementsMounted:(...je)=>og(...je,{animationFrame:w==="always"}),elements:{reference:x.anchor},middleware:[xC({mainAxis:o+A,alignmentAxis:s}),a&&SC({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?EC():void 0,...V}),a&&CC({...V}),kC({...V,apply:({elements:je,rects:$e,availableWidth:Yt,availableHeight:Gt})=>{const{width:dt,height:so}=$e.reference,Ve=je.floating.style;Ve.setProperty("--radix-popper-available-width",`${Yt}px`),Ve.setProperty("--radix-popper-available-height",`${Gt}px`),Ve.setProperty("--radix-popper-anchor-width",`${dt}px`),Ve.setProperty("--radix-popper-anchor-height",`${so}px`)}}),g&&RC({element:g,padding:l}),MC({arrowWidth:k,arrowHeight:A}),v&&_C({strategy:"referenceHidden",...V})]}),[ae,de]=uv(L),Ae=Bn(S);qe(()=>{K&&(Ae==null||Ae())},[K,Ae]);const St=(U=Y.arrow)==null?void 0:U.x,X=(H=Y.arrow)==null?void 0:H.y,se=((me=Y.arrow)==null?void 0:me.centerOffset)!==0,[le,Re]=f.useState();return qe(()=>{h&&Re(window.getComputedStyle(h).zIndex)},[h]),R.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(re=Y.transformOrigin)==null?void 0:re.x,(oe=Y.transformOrigin)==null?void 0:oe.y].join(" "),...((ee=Y.hide)==null?void 0:ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:R.jsx(AC,{scope:n,placedSide:ae,onArrowChange:E,arrowX:St,arrowY:X,shouldHideArrow:se,children:R.jsx(ne.div,{"data-side":ae,"data-align":de,...y,ref:m,style:{...y.style,animation:K?void 0:"none"}})})})});sv.displayName=Rc;var lv="PopperArrow",IC={top:"bottom",right:"left",bottom:"top",left:"right"},av=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=DC(lv,r),s=IC[i.placedSide];return R.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]: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:R.jsx(TC,{...o,ref:n,style:{...o.style,display:"block"}})})});av.displayName=lv;function bC(e){return e!==null}var MC=e=>({name:"transformOrigin",options:e,fn(t){var x,h,p;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,d]=uv(n),c={start:"0%",center:"50%",end:"100%"}[d],v=(((h=o.arrow)==null?void 0:h.x)??0)+l/2,w=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let S="",y="";return u==="bottom"?(S=s?c:`${v}px`,y=`${-a}px`):u==="top"?(S=s?c:`${v}px`,y=`${r.floating.height+a}px`):u==="right"?(S=`${-a}px`,y=s?c:`${w}px`):u==="left"&&(S=`${r.floating.width+a}px`,y=s?c:`${w}px`),{data:{x:S,y}}}});function uv(e){const[t,n="center"]=e.split("-");return[t,n]}var cv=rv,dv=iv,fv=sv,pv=av,hv=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"}),OC="VisuallyHidden",mv=f.forwardRef((e,t)=>R.jsx(ne.span,{...e,ref:t,style:{...hv,...e.style}}));mv.displayName=OC;var LC=mv,[el]=yn("Tooltip",[Js]),tl=Js(),vv="TooltipProvider",FC=700,nu="tooltip.open",[jC,Pc]=el(vv),yv=e=>{const{__scopeTooltip:t,delayDuration:n=FC,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=f.useRef(!0),l=f.useRef(!1),a=f.useRef(0);return f.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),R.jsx(jC,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};yv.displayName=vv;var ti="Tooltip",[$C,nl]=el(ti),gv=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,a=Pc(ti,e.__scopeTooltip),u=tl(t),[d,c]=f.useState(null),v=cn(),w=f.useRef(0),S=s??a.disableHoverableContent,y=l??a.delayDuration,x=f.useRef(!1),[h,p]=ur({prop:r,defaultProp:o??!1,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(nu))):a.onClose(),i==null||i(k)},caller:ti}),m=f.useMemo(()=>h?x.current?"delayed-open":"instant-open":"closed",[h]),g=f.useCallback(()=>{window.clearTimeout(w.current),w.current=0,x.current=!1,p(!0)},[p]),E=f.useCallback(()=>{window.clearTimeout(w.current),w.current=0,p(!1)},[p]),_=f.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{x.current=!0,p(!0),w.current=0},y)},[y,p]);return f.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),R.jsx(cv,{...u,children:R.jsx($C,{scope:t,contentId:v,open:h,stateAttribute:m,trigger:d,onTriggerChange:c,onTriggerEnter:f.useCallback(()=>{a.isOpenDelayedRef.current?_():g()},[a.isOpenDelayedRef,_,g]),onTriggerLeave:f.useCallback(()=>{S?E():(window.clearTimeout(w.current),w.current=0)},[E,S]),onOpen:g,onClose:E,disableHoverableContent:S,children:n})})};gv.displayName=ti;var ru="TooltipTrigger",wv=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nl(ru,n),i=Pc(ru,n),s=tl(n),l=f.useRef(null),a=he(t,l,o.onTriggerChange),u=f.useRef(!1),d=f.useRef(!1),c=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),R.jsx(dv,{asChild:!0,...s,children:R.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Q(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Q(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Q(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Q(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Q(e.onBlur,o.onClose),onClick:Q(e.onClick,o.onClose)})})});wv.displayName=ru;var VC="TooltipPortal",[x2,zC]=el(VC,{forceMount:void 0}),Zr="TooltipContent",xv=f.forwardRef((e,t)=>{const n=zC(Zr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=nl(Zr,e.__scopeTooltip);return R.jsx(mr,{present:r||s.open,children:s.disableHoverableContent?R.jsx(Sv,{side:o,...i,ref:t}):R.jsx(BC,{side:o,...i,ref:t})})}),BC=f.forwardRef((e,t)=>{const n=nl(Zr,e.__scopeTooltip),r=Pc(Zr,e.__scopeTooltip),o=f.useRef(null),i=he(t,o),[s,l]=f.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:c}=r,v=f.useCallback(()=>{l(null),c(!1)},[c]),w=f.useCallback((S,y)=>{const x=S.currentTarget,h={x:S.clientX,y:S.clientY},p=YC(h,x.getBoundingClientRect()),m=GC(h,p),g=QC(y.getBoundingClientRect()),E=ZC([...m,...g]);l(E),c(!0)},[c]);return f.useEffect(()=>()=>v(),[v]),f.useEffect(()=>{if(a&&d){const S=x=>w(x,d),y=x=>w(x,a);return a.addEventListener("pointerleave",S),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",y)}}},[a,d,w,v]),f.useEffect(()=>{if(s){const S=y=>{const x=y.target,h={x:y.clientX,y:y.clientY},p=(a==null?void 0:a.contains(x))||(d==null?void 0:d.contains(x)),m=!XC(h,s);p?v():m&&(v(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,d,s,u,v]),R.jsx(Sv,{...e,ref:i})}),[UC,HC]=el(ti,{isInside:!1}),WC=Cm("TooltipContent"),Sv=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=nl(Zr,n),u=tl(n),{onClose:d}=a;return f.useEffect(()=>(document.addEventListener(nu,d),()=>document.removeEventListener(nu,d)),[d]),f.useEffect(()=>{if(a.trigger){const c=v=>{const w=v.target;w!=null&&w.contains(a.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,d]),R.jsx(Xs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:R.jsxs(fv,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.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:[R.jsx(WC,{children:r}),R.jsx(UC,{scope:n,isInside:!0,children:R.jsx(LC,{id:a.contentId,role:"tooltip",children:o||r})})]})})});xv.displayName=Zr;var Ev="TooltipArrow",KC=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tl(n);return HC(Ev,n).isInside?null:R.jsx(pv,{...o,...r,ref:t})});KC.displayName=Ev;function YC(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 GC(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 QC(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 XC(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],a=t[s],u=l.x,d=l.y,c=a.x,v=a.y;d>r!=v>r&&n<(c-u)*(r-d)/(v-d)+u&&(o=!o)}return o}function ZC(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),qC(t)}function qC(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],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 S2=yv,E2=gv,C2=wv,k2=xv,Cv="AlertDialog",[JC]=yn(Cv,[Om]),gn=Om(),kv=e=>{const{__scopeAlertDialog:t,...n}=e,r=gn(t);return R.jsx(uC,{...r,...n,modal:!0})};kv.displayName=Cv;var ek="AlertDialogTrigger",_v=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(cC,{...o,...r,ref:t})});_v.displayName=ek;var tk="AlertDialogPortal",Rv=e=>{const{__scopeAlertDialog:t,...n}=e,r=gn(t);return R.jsx(dC,{...r,...n})};Rv.displayName=tk;var nk="AlertDialogOverlay",Pv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(fC,{...o,...r,ref:t})});Pv.displayName=nk;var Br="AlertDialogContent",[rk,ok]=JC(Br),ik=Cm("AlertDialogContent"),Tv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=gn(n),s=f.useRef(null),l=he(t,s),a=f.useRef(null);return R.jsx(iC,{contentName:Br,titleName:Nv,docsSlug:"alert-dialog",children:R.jsx(rk,{scope:n,cancelRef:a,children:R.jsxs(pC,{role:"alertdialog",...i,...o,ref:l,onOpenAutoFocus:Q(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=a.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[R.jsx(ik,{children:r}),R.jsx(lk,{contentRef:s})]})})})});Tv.displayName=Br;var Nv="AlertDialogTitle",Av=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(hC,{...o,...r,ref:t})});Av.displayName=Nv;var Dv="AlertDialogDescription",Iv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(mC,{...o,...r,ref:t})});Iv.displayName=Dv;var sk="AlertDialogAction",bv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(Zm,{...o,...r,ref:t})});bv.displayName=sk;var Mv="AlertDialogCancel",Ov=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=ok(Mv,n),i=gn(n),s=he(t,o);return R.jsx(Zm,{...i,...r,ref:s})});Ov.displayName=Mv;var lk=({contentRef:e})=>{const t=`\`${Br}\` requires a description for the component to be accessible for screen reader users.
|
|
313
|
-
|
|
314
|
-
You can add a description to the \`${Br}\` by passing a \`${Dv}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
315
|
-
|
|
316
|
-
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 \`${Br}\`. 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.
|
|
317
|
-
|
|
318
|
-
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},_2=kv,R2=_v,P2=Rv,T2=Pv,N2=Tv,A2=bv,D2=Ov,I2=Av,b2=Iv;function Lv(e){const t=e+"CollectionProvider",[n,r]=yn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:x,children:h}=y,p=T.useRef(null),m=T.useRef(new Map).current;return R.jsx(o,{scope:x,itemMap:m,collectionRef:p,children:h})};s.displayName=t;const l=e+"CollectionSlot",a=ei(l),u=T.forwardRef((y,x)=>{const{scope:h,children:p}=y,m=i(l,h),g=he(x,m.collectionRef);return R.jsx(a,{ref:g,children:p})});u.displayName=l;const d=e+"CollectionItemSlot",c="data-radix-collection-item",v=ei(d),w=T.forwardRef((y,x)=>{const{scope:h,children:p,...m}=y,g=T.useRef(null),E=he(x,g),_=i(d,h);return T.useEffect(()=>(_.itemMap.set(g,{ref:g,...m}),()=>void _.itemMap.delete(g))),R.jsx(v,{[c]:"",ref:E,children:p})});w.displayName=d;function S(y){const x=i(e+"CollectionConsumer",y);return T.useCallback(()=>{const p=x.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${c}]`));return Array.from(x.itemMap.values()).sort((_,k)=>m.indexOf(_.ref.current)-m.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:w},S,r]}var ak=f.createContext(void 0);function Tc(e){const t=f.useContext(ak);return e||t||"ltr"}var Ql="rovingFocusGroup.onEntryFocus",uk={bubbles:!1,cancelable:!0},ui="RovingFocusGroup",[ou,Fv,ck]=Lv(ui),[dk,jv]=yn(ui,[ck]),[fk,pk]=dk(ui),$v=f.forwardRef((e,t)=>R.jsx(ou.Provider,{scope:e.__scopeRovingFocusGroup,children:R.jsx(ou.Slot,{scope:e.__scopeRovingFocusGroup,children:R.jsx(hk,{...e,ref:t})})}));$v.displayName=ui;var hk=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:a,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...c}=e,v=f.useRef(null),w=he(t,v),S=Tc(i),[y,x]=ur({prop:s,defaultProp:l??null,onChange:a,caller:ui}),[h,p]=f.useState(!1),m=Bn(u),g=Fv(n),E=f.useRef(!1),[_,k]=f.useState(0);return f.useEffect(()=>{const A=v.current;if(A)return A.addEventListener(Ql,m),()=>A.removeEventListener(Ql,m)},[m]),R.jsx(fk,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:y,onItemFocus:f.useCallback(A=>x(A),[x]),onItemShiftTab:f.useCallback(()=>p(!0),[]),onFocusableItemAdd:f.useCallback(()=>k(A=>A+1),[]),onFocusableItemRemove:f.useCallback(()=>k(A=>A-1),[]),children:R.jsx(ne.div,{tabIndex:h||_===0?-1:0,"data-orientation":r,...c,ref:w,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{E.current=!0}),onFocus:Q(e.onFocus,A=>{const j=!E.current;if(A.target===A.currentTarget&&j&&!h){const F=new CustomEvent(Ql,uk);if(A.currentTarget.dispatchEvent(F),!F.defaultPrevented){const W=g().filter(L=>L.focusable),B=W.find(L=>L.active),V=W.find(L=>L.id===y),J=[B,V,...W].filter(Boolean).map(L=>L.ref.current);Bv(J,d)}}E.current=!1}),onBlur:Q(e.onBlur,()=>p(!1))})})}),Vv="RovingFocusGroupItem",zv=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...l}=e,a=cn(),u=i||a,d=pk(Vv,n),c=d.currentTabStopId===u,v=Fv(n),{onFocusableItemAdd:w,onFocusableItemRemove:S,currentTabStopId:y}=d;return f.useEffect(()=>{if(r)return w(),()=>S()},[r,w,S]),R.jsx(ou.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:R.jsx(ne.span,{tabIndex:c?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:Q(e.onMouseDown,x=>{r?d.onItemFocus(u):x.preventDefault()}),onFocus:Q(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:Q(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const h=yk(x,d.orientation,d.dir);if(h!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let m=v().filter(g=>g.focusable).map(g=>g.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const g=m.indexOf(x.currentTarget);m=d.loop?gk(m,g+1):m.slice(g+1)}setTimeout(()=>Bv(m))}}),children:typeof s=="function"?s({isCurrentTabStop:c,hasTabStop:y!=null}):s})})});zv.displayName=Vv;var mk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yk(e,t,n){const r=vk(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return mk[r]}function Bv(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function gk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wk=$v,xk=zv,rl="Tabs",[Sk]=yn(rl,[jv]),Uv=jv(),[Ek,Nc]=Sk(rl),Hv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:s="horizontal",dir:l,activationMode:a="automatic",...u}=e,d=Tc(l),[c,v]=ur({prop:r,onChange:o,defaultProp:i??"",caller:rl});return R.jsx(Ek,{scope:n,baseId:cn(),value:c,onValueChange:v,orientation:s,dir:d,activationMode:a,children:R.jsx(ne.div,{dir:d,"data-orientation":s,...u,ref:t})})});Hv.displayName=rl;var Wv="TabsList",Kv=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Nc(Wv,n),s=Uv(n);return R.jsx(wk,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:r,children:R.jsx(ne.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Kv.displayName=Wv;var Yv="TabsTrigger",Gv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,s=Nc(Yv,n),l=Uv(n),a=Zv(s.baseId,r),u=qv(s.baseId,r),d=r===s.value;return R.jsx(xk,{asChild:!0,...l,focusable:!o,active:d,children:R.jsx(ne.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:a,...i,ref:t,onMouseDown:Q(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?s.onValueChange(r):c.preventDefault()}),onKeyDown:Q(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(r)}),onFocus:Q(e.onFocus,()=>{const c=s.activationMode!=="manual";!d&&!o&&c&&s.onValueChange(r)})})})});Gv.displayName=Yv;var Qv="TabsContent",Xv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,l=Nc(Qv,n),a=Zv(l.baseId,r),u=qv(l.baseId,r),d=r===l.value,c=f.useRef(d);return f.useEffect(()=>{const v=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(v)},[]),R.jsx(mr,{present:o||d,children:({present:v})=>R.jsx(ne.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":a,hidden:!v,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:v&&i})})});Xv.displayName=Qv;function Zv(e,t){return`${e}-trigger-${t}`}function qv(e,t){return`${e}-content-${t}`}var M2=Hv,O2=Kv,L2=Gv,F2=Xv,ci=e=>e.type==="checkbox",tr=e=>e instanceof Date,ot=e=>e==null;const Jv=e=>typeof e=="object";var Ie=e=>!ot(e)&&!Array.isArray(e)&&Jv(e)&&!tr(e),ey=e=>Ie(e)&&e.target?ci(e.target)?e.target.checked:e.target.value:e,Ck=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ty=(e,t)=>e.has(Ck(t)),kk=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},Ac=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function we(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(!(Ac&&(e instanceof Blob||r))&&(n||Ie(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!kk(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=we(e[o]));else return e;return t}var ol=e=>/^\w*$/.test(e),ve=e=>e===void 0,il=e=>Array.isArray(e)?e.filter(Boolean):[],Dc=e=>il(e.replace(/["|']|\]/g,"").split(/\.|\[/)),b=(e,t,n)=>{if(!t||!Ie(e))return n;const r=(ol(t)?[t]:Dc(t)).reduce((o,i)=>ot(o)?o:o[i],e);return ve(r)||r===e?ve(e[t])?n:e[t]:r},ht=e=>typeof e=="boolean",ce=(e,t,n)=>{let r=-1;const o=ol(t)?[t]:Dc(t),i=o.length,s=i-1;for(;++r<i;){const l=o[r];let a=n;if(r!==s){const u=e[l];a=Ie(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=a,e=e[l]}};const Ts={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_t={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},nn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ic=T.createContext(null);Ic.displayName="HookFormContext";const sl=()=>T.useContext(Ic),j2=e=>{const{children:t,...n}=e;return T.createElement(Ic.Provider,{value:n},t)};var ny=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==_t.all&&(t._proxyFormState[s]=!r||_t.all),n&&(n[s]=!0),e[s]}});return o};const ll=typeof window<"u"?T.useLayoutEffect:T.useEffect;function _k(e){const t=sl(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,l]=T.useState(n._formState),a=T.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ll(()=>n._subscribe({name:o,formState:a.current,exact:i,callback:u=>{!r&&l({...n._formState,...u})}}),[o,r,i]),T.useEffect(()=>{a.current.isValid&&n._setValid(!0)},[n]),T.useMemo(()=>ny(s,n,a.current,!1),[s,n])}var mt=e=>typeof e=="string",iu=(e,t,n,r,o)=>mt(e)?(r&&t.watch.add(e),b(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),b(n,i))):(r&&(t.watchAll=!0),n),su=e=>ot(e)||!Jv(e);function $t(e,t,n=new WeakSet){if(su(e)||su(t))return e===t;if(tr(e)&&tr(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 s=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const l=t[i];if(tr(s)&&tr(l)||Ie(s)&&Ie(l)||Array.isArray(s)&&Array.isArray(l)?!$t(s,l,n):s!==l)return!1}}return!0}function Rk(e){const t=sl(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s,compute:l}=e||{},a=T.useRef(o),u=T.useRef(l),d=T.useRef(void 0),c=T.useRef(n),v=T.useRef(r);u.current=l;const[w,S]=T.useState(()=>{const g=n._getWatch(r,a.current);return u.current?u.current(g):g}),y=T.useCallback(g=>{const E=iu(r,n._names,g||n._formValues,!1,a.current);return u.current?u.current(E):E},[n._formValues,n._names,r]),x=T.useCallback(g=>{if(!i){const E=iu(r,n._names,g||n._formValues,!1,a.current);if(u.current){const _=u.current(E);$t(_,d.current)||(S(_),d.current=_)}else S(E)}},[n._formValues,n._names,i,r]);ll(()=>((c.current!==n||!$t(v.current,r))&&(c.current=n,v.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:g=>{x(g.values)}})),[n,s,r,x]),T.useEffect(()=>n._removeUnmounted());const h=c.current!==n,p=v.current,m=T.useMemo(()=>{if(i)return null;const g=!h&&!$t(p,r);return h||g?y():null},[i,h,r,p,y]);return m!==null?m:w}function Pk(e){const t=sl(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:s}=e,l=ty(o._names.array,n),a=T.useMemo(()=>b(o._formValues,n,b(o._defaultValues,n,s)),[o,n,s]),u=Rk({control:o,name:n,defaultValue:a,exact:!0}),d=_k({control:o,name:n,exact:!0}),c=T.useRef(e),v=T.useRef(void 0),w=T.useRef(o.register(n,{...e.rules,value:u,...ht(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const S=T.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!b(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!b(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!b(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!b(d.validatingFields,n)},error:{enumerable:!0,get:()=>b(d.errors,n)}}),[d,n]),y=T.useCallback(m=>w.current.onChange({target:{value:ey(m),name:n},type:Ts.CHANGE}),[n]),x=T.useCallback(()=>w.current.onBlur({target:{value:b(o._formValues,n),name:n},type:Ts.BLUR}),[n,o._formValues]),h=T.useCallback(m=>{const g=b(o._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:E=>m.setCustomValidity(E),reportValidity:()=>m.reportValidity()})},[o._fields,n]),p=T.useMemo(()=>({name:n,value:u,...ht(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:y,onBlur:x,ref:h}),[n,r,d.disabled,y,x,h,u]);return T.useEffect(()=>{const m=o._options.shouldUnregister||i,g=v.current;g&&g!==n&&!l&&o.unregister(g),o.register(n,{...c.current.rules,...ht(c.current.disabled)?{disabled:c.current.disabled}:{}});const E=(_,k)=>{const A=b(o._fields,_);A&&A._f&&(A._f.mount=k)};if(E(n,!0),m){const _=we(b(o._options.defaultValues,n,c.current.defaultValue));ce(o._defaultValues,n,_),ve(b(o._formValues,n))&&ce(o._formValues,n,_)}return!l&&o.register(n),v.current=n,()=>{(l?m&&!o._state.action:m)?o.unregister(n):E(n,!1)}},[n,o,l,i]),T.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),T.useMemo(()=>({field:p,formState:d,fieldState:S}),[p,d,S])}const $2=e=>e.render(Pk(e));var bc=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},lt=e=>Array.isArray(e)?e:[e],Tf=()=>{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=[]}}};function ry(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t[r];if(o&&Ie(o)&&i){const s=ry(o,i);Ie(s)&&(n[r]=s)}else e[r]&&(n[r]=i)}return n}var Qe=e=>Ie(e)&&!Object.keys(e).length,Mc=e=>e.type==="file",Vt=e=>typeof e=="function",Ns=e=>{if(!Ac)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},oy=e=>e.type==="select-multiple",Oc=e=>e.type==="radio",Tk=e=>Oc(e)||ci(e),Xl=e=>Ns(e)&&e.isConnected;function Nk(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ve(e)?r++:e[t[r++]];return e}function Ak(e){for(const t in e)if(e.hasOwnProperty(t)&&!ve(e[t]))return!1;return!0}function Te(e,t){const n=Array.isArray(t)?t:ol(t)?[t]:Dc(t),r=n.length===1?e:Nk(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(Ie(r)&&Qe(r)||Array.isArray(r)&&Ak(r))&&Te(e,n.slice(0,-1)),e}var Dk=e=>{for(const t in e)if(Vt(e[t]))return!0;return!1};function iy(e){return Array.isArray(e)||Ie(e)&&!Dk(e)}function lu(e,t={}){for(const n in e)iy(e[n])?(t[n]=Array.isArray(e[n])?[]:{},lu(e[n],t[n])):ve(e[n])||(t[n]=!0);return t}function Sr(e,t,n){n||(n=lu(t));for(const r in e)iy(e[r])?ve(t)||su(n[r])?n[r]=lu(e[r],Array.isArray(e[r])?[]:{}):Sr(e[r],ot(t)?{}:t[r],n[r]):n[r]=!$t(e[r],t[r]);return n}const Nf={value:!1,isValid:!1},Af={value:!0,isValid:!0};var sy=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&&!ve(e[0].attributes.value)?ve(e[0].value)||e[0].value===""?Af:{value:e[0].value,isValid:!0}:Af:Nf}return Nf},ly=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ve(e)?e:t?e===""?NaN:e&&+e:n&&mt(e)?new Date(e):r?r(e):e;const Df={isValid:!1,value:null};var ay=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Df):Df;function If(e){const t=e.ref;return Mc(t)?t.files:Oc(t)?ay(e.refs).value:oy(t)?[...t.selectedOptions].map(({value:n})=>n):ci(t)?sy(e.refs).value:ly(ve(t.value)?e.ref.value:t.value,e)}var Ik=(e,t,n,r)=>{const o={};for(const i of e){const s=b(t,i);s&&ce(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},As=e=>e instanceof RegExp,xo=e=>ve(e)?e:As(e)?e.source:Ie(e)?As(e.value)?e.value.source:e.value:e,Mr=e=>({isOnSubmit:!e||e===_t.onSubmit,isOnBlur:e===_t.onBlur,isOnChange:e===_t.onChange,isOnAll:e===_t.all,isOnTouch:e===_t.onTouched});const bf="AsyncFunction";var bk=e=>!!e&&!!e.validate&&!!(Vt(e.validate)&&e.validate.constructor.name===bf||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===bf)),Mk=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),au=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ur=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=b(e,o);if(i){const{_f:s,...l}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Ur(l,t))break}else if(Ie(l)&&Ur(l,t))break}}};function Mf(e,t,n){const r=b(e,n);if(r||ol(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=b(t,i),l=b(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};o.pop()}return{name:n}}var Ok=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Qe(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!r||_t.all))},Lk=(e,t,n)=>!e||!t||e===t||lt(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Fk=(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,jk=(e,t)=>!il(b(e,t)).length&&Te(e,t),uy=(e,t,n)=>{const r=lt(b(e,n));return ce(r,"root",t[n]),ce(e,n,r),e};function Of(e,t,n="validate"){if(mt(e)||Array.isArray(e)&&e.every(mt)||ht(e)&&!e)return{type:n,message:mt(e)?e:"",ref:t}}var xr=e=>Ie(e)&&!As(e)?e:{value:e,message:""},uu=async(e,t,n,r,o,i)=>{const{ref:s,refs:l,required:a,maxLength:u,minLength:d,min:c,max:v,pattern:w,validate:S,name:y,valueAsNumber:x,mount:h}=e._f,p=b(n,y);if(!h||t.has(y))return{};const m=l?l[0]:s,g=B=>{o&&m.reportValidity&&(m.setCustomValidity(ht(B)?"":B||""),m.reportValidity())},E={},_=Oc(s),k=ci(s),A=_||k,j=(x||Mc(s))&&ve(s.value)&&ve(p)||Ns(s)&&s.value===""||p===""||Array.isArray(p)&&!p.length,F=bc.bind(null,y,r,E),W=(B,V,G,J=nn.maxLength,L=nn.minLength)=>{const K=B?V:G;E[y]={type:B?J:L,message:K,ref:s,...F(B?J:L,K)}};if(i?!Array.isArray(p)||!p.length:a&&(!A&&(j||ot(p))||ht(p)&&!p||k&&!sy(l).isValid||_&&!ay(l).isValid)){const{value:B,message:V}=mt(a)?{value:!!a,message:a}:xr(a);if(B&&(E[y]={type:nn.required,message:V,ref:m,...F(nn.required,V)},!r))return g(V),E}if(!j&&(!ot(c)||!ot(v))){let B,V;const G=xr(v),J=xr(c);if(!ot(p)&&!isNaN(p)){const L=s.valueAsNumber||p&&+p;ot(G.value)||(B=L>G.value),ot(J.value)||(V=L<J.value)}else{const L=s.valueAsDate||new Date(p),K=de=>new Date(new Date().toDateString()+" "+de),Y=s.type=="time",ae=s.type=="week";mt(G.value)&&p&&(B=Y?K(p)>K(G.value):ae?p>G.value:L>new Date(G.value)),mt(J.value)&&p&&(V=Y?K(p)<K(J.value):ae?p<J.value:L<new Date(J.value))}if((B||V)&&(W(!!B,G.message,J.message,nn.max,nn.min),!r))return g(E[y].message),E}if((u||d)&&!j&&(mt(p)||i&&Array.isArray(p))){const B=xr(u),V=xr(d),G=!ot(B.value)&&p.length>+B.value,J=!ot(V.value)&&p.length<+V.value;if((G||J)&&(W(G,B.message,V.message),!r))return g(E[y].message),E}if(w&&!j&&mt(p)){const{value:B,message:V}=xr(w);if(As(B)&&!p.match(B)&&(E[y]={type:nn.pattern,message:V,ref:s,...F(nn.pattern,V)},!r))return g(V),E}if(S){if(Vt(S)){const B=await S(p,n),V=Of(B,m);if(V&&(E[y]={...V,...F(nn.validate,V.message)},!r))return g(V.message),E}else if(Ie(S)){let B={};for(const V in S){if(!Qe(B)&&!r)break;const G=Of(await S[V](p,n),m,V);G&&(B={...G,...F(V,G.message)},g(G.message),r&&(E[y]=B))}if(!Qe(B)&&(E[y]={ref:m,...B},!r))return E}}return g(!0),E};const $k={mode:_t.onSubmit,reValidateMode:_t.onChange,shouldFocusError:!0};function Vk(e={}){let t={...$k,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Vt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Ie(t.defaultValues)||Ie(t.values)?we(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:we(o),s={action:!1,mount:!1,watch:!1},l={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 v={array:Tf(),state:Tf()},w=t.criteriaMode===_t.all,S=C=>P=>{clearTimeout(u),u=setTimeout(C,P)},y=async C=>{if(!t.disabled&&(d.isValid||c.isValid||C)){const P=t.resolver?Qe((await k()).errors):await j(r,!0);P!==n.isValid&&v.state.next({isValid:P})}},x=(C,P)=>{!t.disabled&&(d.isValidating||d.validatingFields||c.isValidating||c.validatingFields)&&((C||Array.from(l.mount)).forEach(N=>{N&&(P?ce(n.validatingFields,N,P):Te(n.validatingFields,N))}),v.state.next({validatingFields:n.validatingFields,isValidating:!Qe(n.validatingFields)}))},h=(C,P=[],N,O,M=!0,I=!0)=>{if(O&&N&&!t.disabled){if(s.action=!0,I&&Array.isArray(b(r,C))){const z=N(b(r,C),O.argA,O.argB);M&&ce(r,C,z)}if(I&&Array.isArray(b(n.errors,C))){const z=N(b(n.errors,C),O.argA,O.argB);M&&ce(n.errors,C,z),jk(n.errors,C)}if((d.touchedFields||c.touchedFields)&&I&&Array.isArray(b(n.touchedFields,C))){const z=N(b(n.touchedFields,C),O.argA,O.argB);M&&ce(n.touchedFields,C,z)}(d.dirtyFields||c.dirtyFields)&&(n.dirtyFields=Sr(o,i)),v.state.next({name:C,isDirty:W(C,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ce(i,C,P)},p=(C,P)=>{ce(n.errors,C,P),v.state.next({errors:n.errors})},m=C=>{n.errors=C,v.state.next({errors:n.errors,isValid:!1})},g=(C,P,N,O)=>{const M=b(r,C);if(M){const I=b(i,C,ve(N)?b(o,C):N);ve(I)||O&&O.defaultChecked||P?ce(i,C,P?I:If(M._f)):G(C,I),s.mount&&y()}},E=(C,P,N,O,M)=>{let I=!1,z=!1;const ue={name:C};if(!t.disabled){if(!N||O){(d.isDirty||c.isDirty)&&(z=n.isDirty,n.isDirty=ue.isDirty=W(),I=z!==ue.isDirty);const fe=$t(b(o,C),P);z=!!b(n.dirtyFields,C),fe?Te(n.dirtyFields,C):ce(n.dirtyFields,C,!0),ue.dirtyFields=n.dirtyFields,I=I||(d.dirtyFields||c.dirtyFields)&&z!==!fe}if(N){const fe=b(n.touchedFields,C);fe||(ce(n.touchedFields,C,N),ue.touchedFields=n.touchedFields,I=I||(d.touchedFields||c.touchedFields)&&fe!==N)}I&&M&&v.state.next(ue)}return I?ue:{}},_=(C,P,N,O)=>{const M=b(n.errors,C),I=(d.isValid||c.isValid)&&ht(P)&&n.isValid!==P;if(t.delayError&&N?(a=S(()=>p(C,N)),a(t.delayError)):(clearTimeout(u),a=null,N?ce(n.errors,C,N):Te(n.errors,C)),(N?!$t(M,N):M)||!Qe(O)||I){const z={...O,...I&&ht(P)?{isValid:P}:{},errors:n.errors,name:C};n={...n,...z},v.state.next(z)}},k=async C=>{x(C,!0);const P=await t.resolver(i,t.context,Ik(C||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(C),P},A=async C=>{const{errors:P}=await k(C);if(C)for(const N of C){const O=b(P,N);O?ce(n.errors,N,O):Te(n.errors,N)}else n.errors=P;return P},j=async(C,P,N={valid:!0})=>{for(const O in C){const M=C[O];if(M){const{_f:I,...z}=M;if(I){const ue=l.array.has(I.name),fe=M._f&&bk(M._f);fe&&d.validatingFields&&x([I.name],!0);const We=await uu(M,l.disabled,i,w,t.shouldUseNativeValidation&&!P,ue);if(fe&&d.validatingFields&&x([I.name]),We[I.name]&&(N.valid=!1,P))break;!P&&(b(We,I.name)?ue?uy(n.errors,We,I.name):ce(n.errors,I.name,We[I.name]):Te(n.errors,I.name))}!Qe(z)&&await j(z,P,N)}}return N.valid},F=()=>{for(const C of l.unMount){const P=b(r,C);P&&(P._f.refs?P._f.refs.every(N=>!Xl(N)):!Xl(P._f.ref))&&U(C)}l.unMount=new Set},W=(C,P)=>!t.disabled&&(C&&P&&ce(i,C,P),!$t(de(),o)),B=(C,P,N)=>iu(C,l,{...s.mount?i:ve(P)?o:mt(C)?{[C]:P}:P},N,P),V=C=>il(b(s.mount?i:o,C,t.shouldUnregister?b(o,C,[]):[])),G=(C,P,N={})=>{const O=b(r,C);let M=P;if(O){const I=O._f;I&&(!I.disabled&&ce(i,C,ly(P,I)),M=Ns(I.ref)&&ot(P)?"":P,oy(I.ref)?[...I.ref.options].forEach(z=>z.selected=M.includes(z.value)):I.refs?ci(I.ref)?I.refs.forEach(z=>{(!z.defaultChecked||!z.disabled)&&(Array.isArray(M)?z.checked=!!M.find(ue=>ue===z.value):z.checked=M===z.value||!!M)}):I.refs.forEach(z=>z.checked=z.value===M):Mc(I.ref)?I.ref.value="":(I.ref.value=M,I.ref.type||v.state.next({name:C,values:we(i)})))}(N.shouldDirty||N.shouldTouch)&&E(C,M,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&ae(C)},J=(C,P,N)=>{for(const O in P){if(!P.hasOwnProperty(O))return;const M=P[O],I=C+"."+O,z=b(r,I);(l.array.has(C)||Ie(M)||z&&!z._f)&&!tr(M)?J(I,M,N):G(I,M,N)}},L=(C,P,N={})=>{const O=b(r,C),M=l.array.has(C),I=we(P);ce(i,C,I),M?(v.array.next({name:C,values:we(i)}),(d.isDirty||d.dirtyFields||c.isDirty||c.dirtyFields)&&N.shouldDirty&&v.state.next({name:C,dirtyFields:Sr(o,i),isDirty:W(C,I)})):O&&!O._f&&!ot(I)?J(C,I,N):G(C,I,N),au(C,l)&&v.state.next({...n,name:C}),v.state.next({name:s.mount?C:void 0,values:we(i)})},K=async C=>{s.mount=!0;const P=C.target;let N=P.name,O=!0;const M=b(r,N),I=fe=>{O=Number.isNaN(fe)||tr(fe)&&isNaN(fe.getTime())||$t(fe,b(i,N,fe))},z=Mr(t.mode),ue=Mr(t.reValidateMode);if(M){let fe,We;const At=P.type?If(M._f):ey(C),Dt=C.type===Ts.BLUR||C.type===Ts.FOCUS_OUT,wn=!Mk(M._f)&&!t.resolver&&!b(n.errors,N)&&!M._f.deps||Fk(Dt,b(n.touchedFields,N),n.isSubmitted,ue,z),lo=au(N,l,Dt);ce(i,N,At),Dt?(!P||!P.readOnly)&&(M._f.onBlur&&M._f.onBlur(C),a&&a(0)):M._f.onChange&&M._f.onChange(C);const ao=E(N,At,Dt),di=!Qe(ao)||lo;if(!Dt&&v.state.next({name:N,type:C.type,values:we(i)}),wn)return(d.isValid||c.isValid)&&(t.mode==="onBlur"?Dt&&y():Dt||y()),di&&v.state.next({name:N,...lo?{}:ao});if(!Dt&&lo&&v.state.next({...n}),t.resolver){const{errors:uo}=await k([N]);if(I(At),O){const fl=Mf(n.errors,r,N),vr=Mf(uo,r,fl.name||N);fe=vr.error,N=vr.name,We=Qe(uo)}}else x([N],!0),fe=(await uu(M,l.disabled,i,w,t.shouldUseNativeValidation))[N],x([N]),I(At),O&&(fe?We=!1:(d.isValid||c.isValid)&&(We=await j(r,!0)));O&&(M._f.deps&&(!Array.isArray(M._f.deps)||M._f.deps.length>0)&&ae(M._f.deps),_(N,We,fe,ao))}},Y=(C,P)=>{if(b(n.errors,P)&&C.focus)return C.focus(),1},ae=async(C,P={})=>{let N,O;const M=lt(C);if(t.resolver){const I=await A(ve(C)?C:M);N=Qe(I),O=C?!M.some(z=>b(I,z)):N}else C?(O=(await Promise.all(M.map(async I=>{const z=b(r,I);return await j(z&&z._f?{[I]:z}:z)}))).every(Boolean),!(!O&&!n.isValid)&&y()):O=N=await j(r);return v.state.next({...!mt(C)||(d.isValid||c.isValid)&&N!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:N}:{},errors:n.errors}),P.shouldFocus&&!O&&Ur(r,Y,C?M:l.mount),O},de=(C,P)=>{let N={...s.mount?i:o};return P&&(N=ry(P.dirtyFields?n.dirtyFields:n.touchedFields,N)),ve(C)?N:mt(C)?b(N,C):C.map(O=>b(N,O))},Ae=(C,P)=>({invalid:!!b((P||n).errors,C),isDirty:!!b((P||n).dirtyFields,C),error:b((P||n).errors,C),isValidating:!!b(n.validatingFields,C),isTouched:!!b((P||n).touchedFields,C)}),St=C=>{C&<(C).forEach(P=>Te(n.errors,P)),v.state.next({errors:C?n.errors:{}})},X=(C,P,N)=>{const O=(b(r,C,{_f:{}})._f||{}).ref,M=b(n.errors,C)||{},{ref:I,message:z,type:ue,...fe}=M;ce(n.errors,C,{...fe,...P,ref:O}),v.state.next({name:C,errors:n.errors,isValid:!1}),N&&N.shouldFocus&&O&&O.focus&&O.focus()},se=(C,P)=>Vt(C)?v.state.subscribe({next:N=>"values"in N&&C(B(void 0,P),N)}):B(C,P,!0),le=C=>v.state.subscribe({next:P=>{Lk(C.name,P.name,C.exact)&&Ok(P,C.formState||d,dt,C.reRenderRoot)&&C.callback({values:{...i},...n,...P,defaultValues:o})}}).unsubscribe,Re=C=>(s.mount=!0,c={...c,...C.formState},le({...C,formState:c})),U=(C,P={})=>{for(const N of C?lt(C):l.mount)l.mount.delete(N),l.array.delete(N),P.keepValue||(Te(r,N),Te(i,N)),!P.keepError&&Te(n.errors,N),!P.keepDirty&&Te(n.dirtyFields,N),!P.keepTouched&&Te(n.touchedFields,N),!P.keepIsValidating&&Te(n.validatingFields,N),!t.shouldUnregister&&!P.keepDefaultValue&&Te(o,N);v.state.next({values:we(i)}),v.state.next({...n,...P.keepDirty?{isDirty:W()}:{}}),!P.keepIsValid&&y()},H=({disabled:C,name:P})=>{(ht(C)&&s.mount||C||l.disabled.has(P))&&(C?l.disabled.add(P):l.disabled.delete(P))},me=(C,P={})=>{let N=b(r,C);const O=ht(P.disabled)||ht(t.disabled);return ce(r,C,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:C}},name:C,mount:!0,...P}}),l.mount.add(C),N?H({disabled:ht(P.disabled)?P.disabled:t.disabled,name:C}):g(C,!0,P.value),{...O?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:xo(P.min),max:xo(P.max),minLength:xo(P.minLength),maxLength:xo(P.maxLength),pattern:xo(P.pattern)}:{},name:C,onChange:K,onBlur:K,ref:M=>{if(M){me(C,P),N=b(r,C);const I=ve(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,z=Tk(I),ue=N._f.refs||[];if(z?ue.find(fe=>fe===I):I===N._f.ref)return;ce(r,C,{_f:{...N._f,...z?{refs:[...ue.filter(Xl),I,...Array.isArray(b(o,C))?[{}]:[]],ref:{type:I.type,name:C}}:{ref:I}}}),g(C,!1,void 0,I)}else N=b(r,C,{}),N._f&&(N._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(ty(l.array,C)&&s.action)&&l.unMount.add(C)}}},re=()=>t.shouldFocusError&&Ur(r,Y,l.mount),oe=C=>{ht(C)&&(v.state.next({disabled:C}),Ur(r,(P,N)=>{const O=b(r,N);O&&(P.disabled=O._f.disabled||C,Array.isArray(O._f.refs)&&O._f.refs.forEach(M=>{M.disabled=O._f.disabled||C}))},0,!1))},ee=(C,P)=>async N=>{let O;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let M=we(i);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:I,values:z}=await k();n.errors=I,M=we(z)}else await j(r);if(l.disabled.size)for(const I of l.disabled)Te(M,I);if(Te(n.errors,"root"),Qe(n.errors)){v.state.next({errors:{}});try{await C(M,N)}catch(I){O=I}}else P&&await P({...n.errors},N),re(),setTimeout(re);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(n.errors)&&!O,submitCount:n.submitCount+1,errors:n.errors}),O)throw O},je=(C,P={})=>{b(r,C)&&(ve(P.defaultValue)?L(C,we(b(o,C))):(L(C,P.defaultValue),ce(o,C,we(P.defaultValue))),P.keepTouched||Te(n.touchedFields,C),P.keepDirty||(Te(n.dirtyFields,C),n.isDirty=P.defaultValue?W(C,we(b(o,C))):W()),P.keepError||(Te(n.errors,C),d.isValid&&y()),v.state.next({...n}))},$e=(C,P={})=>{const N=C?we(C):o,O=we(N),M=Qe(C),I=M?o:O;if(P.keepDefaultValues||(o=N),!P.keepValues){if(P.keepDirtyValues){const z=new Set([...l.mount,...Object.keys(Sr(o,i))]);for(const ue of Array.from(z))b(n.dirtyFields,ue)?ce(I,ue,b(i,ue)):L(ue,b(I,ue))}else{if(Ac&&ve(C))for(const z of l.mount){const ue=b(r,z);if(ue&&ue._f){const fe=Array.isArray(ue._f.refs)?ue._f.refs[0]:ue._f.ref;if(Ns(fe)){const We=fe.closest("form");if(We){We.reset();break}}}}if(P.keepFieldsRef)for(const z of l.mount)L(z,b(I,z));else r={}}i=t.shouldUnregister?P.keepDefaultValues?we(o):{}:we(I),v.array.next({values:{...I}}),v.state.next({values:{...I}})}l={mount:P.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!P.keepIsValid||!!P.keepDirtyValues||!t.shouldUnregister&&!Qe(I),s.watch=!!t.shouldUnregister,v.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:M?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!$t(C,o)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?{}:P.keepDirtyValues?P.keepDefaultValues&&i?Sr(o,i):n.dirtyFields:P.keepDefaultValues&&C?Sr(o,C):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Yt=(C,P)=>$e(Vt(C)?C(i):C,P),Gt=(C,P={})=>{const N=b(r,C),O=N&&N._f;if(O){const M=O.refs?O.refs[0]:O.ref;M.focus&&(M.focus(),P.shouldSelect&&Vt(M.select)&&M.select())}},dt=C=>{n={...n,...C}},Ve={control:{register:me,unregister:U,getFieldState:Ae,handleSubmit:ee,setError:X,_subscribe:le,_runSchema:k,_focusError:re,_getWatch:B,_getDirty:W,_setValid:y,_setFieldArray:h,_setDisabledField:H,_setErrors:m,_getFieldArray:V,_reset:$e,_resetDefaultValues:()=>Vt(t.defaultValues)&&t.defaultValues().then(C=>{Yt(C,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:F,_disableForm:oe,_subjects:v,_proxyFormState:d,get _fields(){return r},get _formValues(){return i},get _state(){return s},set _state(C){s=C},get _defaultValues(){return o},get _names(){return l},set _names(C){l=C},get _formState(){return n},get _options(){return t},set _options(C){t={...t,...C}}},subscribe:Re,trigger:ae,register:me,handleSubmit:ee,watch:se,setValue:L,getValues:de,reset:Yt,resetField:je,clearErrors:St,unregister:U,setError:X,setFocus:Gt,getFieldState:Ae};return{...Ve,formControl:Ve}}var En=()=>{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)})},Zl=(e,t,n={})=>n.shouldFocus||ve(n.shouldFocus)?n.focusName||`${e}.${ve(n.focusIndex)?t:n.focusIndex}.`:"",ql=(e,t)=>[...e,...lt(t)],Jl=e=>Array.isArray(e)?e.map(()=>{}):void 0;function ea(e,t,n){return[...e.slice(0,t),...lt(n),...e.slice(t)]}var ta=(e,t,n)=>Array.isArray(e)?(ve(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],na=(e,t)=>[...lt(t),...lt(e)];function zk(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return il(r).length?r:[]}var ra=(e,t)=>ve(t)?[]:zk(e,lt(t).sort((n,r)=>n-r)),oa=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},Lf=(e,t,n)=>(e[t]=n,e);function V2(e){const t=sl(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:i,rules:s}=e,[l,a]=T.useState(n._getFieldArray(r)),u=T.useRef(n._getFieldArray(r).map(En)),d=T.useRef(!1);n._names.array.add(r),T.useMemo(()=>s&&l.length>=0&&n.register(r,s),[n,r,l.length,s]),ll(()=>n._subjects.array.subscribe({next:({values:g,name:E})=>{if(E===r||!E){const _=b(g,r);Array.isArray(_)&&(a(_),u.current=_.map(En))}}}).unsubscribe,[n,r]);const c=T.useCallback(g=>{d.current=!0,n._setFieldArray(r,g)},[n,r]),v=(g,E)=>{const _=lt(we(g)),k=ql(n._getFieldArray(r),_);n._names.focus=Zl(r,k.length-1,E),u.current=ql(u.current,_.map(En)),c(k),a(k),n._setFieldArray(r,k,ql,{argA:Jl(g)})},w=(g,E)=>{const _=lt(we(g)),k=na(n._getFieldArray(r),_);n._names.focus=Zl(r,0,E),u.current=na(u.current,_.map(En)),c(k),a(k),n._setFieldArray(r,k,na,{argA:Jl(g)})},S=g=>{const E=ra(n._getFieldArray(r),g);u.current=ra(u.current,g),c(E),a(E),!Array.isArray(b(n._fields,r))&&ce(n._fields,r,void 0),n._setFieldArray(r,E,ra,{argA:g})},y=(g,E,_)=>{const k=lt(we(E)),A=ea(n._getFieldArray(r),g,k);n._names.focus=Zl(r,g,_),u.current=ea(u.current,g,k.map(En)),c(A),a(A),n._setFieldArray(r,A,ea,{argA:g,argB:Jl(E)})},x=(g,E)=>{const _=n._getFieldArray(r);oa(_,g,E),oa(u.current,g,E),c(_),a(_),n._setFieldArray(r,_,oa,{argA:g,argB:E},!1)},h=(g,E)=>{const _=n._getFieldArray(r);ta(_,g,E),ta(u.current,g,E),c(_),a(_),n._setFieldArray(r,_,ta,{argA:g,argB:E},!1)},p=(g,E)=>{const _=we(E),k=Lf(n._getFieldArray(r),g,_);u.current=[...k].map((A,j)=>!A||j===g?En():u.current[j]),c(k),a([...k]),n._setFieldArray(r,k,Lf,{argA:g,argB:_},!0,!1)},m=g=>{const E=lt(we(g));u.current=E.map(En),c([...E]),a([...E]),n._setFieldArray(r,[...E],_=>_,{},!0,!1)};return T.useEffect(()=>{if(n._state.action=!1,au(r,n._names)&&n._subjects.state.next({...n._formState}),d.current&&(!Mr(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Mr(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(g=>{const E=b(g.errors,r),_=b(n._formState.errors,r);(_?!E&&_.type||E&&(_.type!==E.type||_.message!==E.message):E&&E.type)&&(E?ce(n._formState.errors,r,E):Te(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const g=b(n._fields,r);g&&g._f&&!(Mr(n._options.reValidateMode).isOnSubmit&&Mr(n._options.mode).isOnSubmit)&&uu(g,n._names.disabled,n._formValues,n._options.criteriaMode===_t.all,n._options.shouldUseNativeValidation,!0).then(E=>!Qe(E)&&n._subjects.state.next({errors:uy(n._formState.errors,E,r)}))}n._subjects.state.next({name:r,values:we(n._formValues)}),n._names.focus&&Ur(n._fields,(g,E)=>{if(n._names.focus&&E.startsWith(n._names.focus)&&g.focus)return g.focus(),1}),n._names.focus="",n._setValid(),d.current=!1},[l,r,n]),T.useEffect(()=>(!b(n._formValues,r)&&n._setFieldArray(r),()=>{const g=(E,_)=>{const k=b(n._fields,E);k&&k._f&&(k._f.mount=_)};n._options.shouldUnregister||i?n.unregister(r):g(r,!1)}),[r,n,o,i]),{swap:T.useCallback(x,[c,r,n]),move:T.useCallback(h,[c,r,n]),prepend:T.useCallback(w,[c,r,n]),append:T.useCallback(v,[c,r,n]),remove:T.useCallback(S,[c,r,n]),insert:T.useCallback(y,[c,r,n]),update:T.useCallback(p,[c,r,n]),replace:T.useCallback(m,[c,r,n]),fields:T.useMemo(()=>l.map((g,E)=>({...g,[o]:u.current[E]||En()})),[l,o])}}function z2(e={}){const t=T.useRef(void 0),n=T.useRef(void 0),[r,o]=T.useState({isDirty:!1,isValidating:!1,isLoading:Vt(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:Vt(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Vt(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...l}=Vk(e);t.current={...l,formState:r}}const i=t.current.control;return i._options=e,ll(()=>{const s=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(l=>({...l,isReady:!0})),i._formState.isReady=!0,s},[i]),T.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),T.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),T.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),T.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),T.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),T.useEffect(()=>{e.values&&!$t(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[i,e.values]),T.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=ny(r,i),t.current}var Bk="Label",cy=f.forwardRef((e,t)=>R.jsx(xm.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())}}));cy.displayName=Bk;var B2=cy;const Ff=(e,t,n)=>{if(e&&"reportValidity"in e){const r=b(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},cu=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ff(r.ref,n,e):r&&r.refs&&r.refs.forEach(o=>Ff(o,n,e))}},jf=(e,t)=>{t.shouldUseNativeValidation&&cu(e,t);const n={};for(const r in e){const o=b(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(Uk(t.names||Object.keys(e),r)){const s=Object.assign({},b(n,r));ce(s,"root",i),ce(n,r,s)}else ce(n,r,i)}return n},Uk=(e,t)=>{const n=$f(t);return e.some(r=>$f(r).match(`^${n}\\.\\d+`))};function $f(e){return e.replace(/\]|\[/g,"")}function Vf(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function Hk(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,s=r.path.join(".");if(!n[s])if("unionErrors"in r){var l=r.unionErrors[0].errors[0];n[s]={message:l.message,type:l.code}}else n[s]={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[s].types,u=a&&a[r.code];n[s]=bc(s,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function Wk(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,s=r.path.join(".");if(!n[s])if(r.code==="invalid_union"&&r.errors.length>0){var l=r.errors[0][0];n[s]={message:l.message,type:l.code}}else n[s]={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[s].types,u=a&&a[r.code];n[s]=bc(s,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function U2(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(Vf(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(s){return i.shouldUseNativeValidation&&cu({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if(function(l){return Array.isArray(l==null?void 0:l.issues)}(s))return{values:{},errors:jf(Hk(s.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,o,i){try{return Promise.resolve(Vf(function(){return Promise.resolve((n.mode==="sync"?ig:sg)(e,r,t)).then(function(s){return i.shouldUseNativeValidation&&cu({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if(function(l){return l instanceof lg}(s))return{values:{},errors:jf(Wk(s.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};throw new Error("Invalid input: not a Zod schema")}function dy(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 al="Checkbox",[Kk]=yn(al),[Yk,Lc]=Kk(al);function Gk(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:s,name:l,onCheckedChange:a,required:u,value:d="on",internal_do_not_use_render:c}=e,[v,w]=ur({prop:n,defaultProp:o??!1,onChange:a,caller:al}),[S,y]=f.useState(null),[x,h]=f.useState(null),p=f.useRef(!1),m=S?!!s||!!S.closest("form"):!0,g={checked:v,disabled:i,setChecked:w,control:S,setControl:y,name:l,form:s,value:d,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:$n(o)?!1:o,isFormControl:m,bubbleInput:x,setBubbleInput:h};return R.jsx(Yk,{scope:t,...g,children:Zk(c)?c(g):r})}var fy="CheckboxTrigger",py=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:s,disabled:l,checked:a,required:u,setControl:d,setChecked:c,hasConsumerStoppedPropagationRef:v,isFormControl:w,bubbleInput:S}=Lc(fy,e),y=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]),R.jsx(ne.button,{type:"button",role:"checkbox","aria-checked":$n(a)?"mixed":a,"aria-required":u,"data-state":yy(a),"data-disabled":l?"":void 0,disabled:l,value:s,...r,ref:y,onKeyDown:Q(t,h=>{h.key==="Enter"&&h.preventDefault()}),onClick:Q(n,h=>{c(p=>$n(p)?!0:!p),S&&w&&(v.current=h.isPropagationStopped(),v.current||h.stopPropagation())})})});py.displayName=fy;var Qk=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:l,value:a,onCheckedChange:u,form:d,...c}=e;return R.jsx(Gk,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:l,required:s,onCheckedChange:u,name:r,form:d,value:a,internal_do_not_use_render:({isFormControl:v})=>R.jsxs(R.Fragment,{children:[R.jsx(py,{...c,ref:t,__scopeCheckbox:n}),v&&R.jsx(vy,{__scopeCheckbox:n})]})})});Qk.displayName=al;var hy="CheckboxIndicator",Xk=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Lc(hy,n);return R.jsx(mr,{present:r||$n(i.checked)||i.checked===!0,children:R.jsx(ne.span,{"data-state":yy(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Xk.displayName=hy;var my="CheckboxBubbleInput",vy=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:s,required:l,disabled:a,name:u,value:d,form:c,bubbleInput:v,setBubbleInput:w}=Lc(my,e),S=he(n,w),y=dy(i),x=ev(r);f.useEffect(()=>{const p=v;if(!p)return;const m=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(m,"checked").set,_=!o.current;if(y!==i&&E){const k=new Event("click",{bubbles:_});p.indeterminate=$n(i),E.call(p,$n(i)?!1:i),p.dispatchEvent(k)}},[v,y,i,o]);const h=f.useRef($n(i)?!1:i);return R.jsx(ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??h.current,required:l,disabled:a,name:u,value:d,form:c,...t,tabIndex:-1,ref:S,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});vy.displayName=my;function Zk(e){return typeof e=="function"}function $n(e){return e==="indeterminate"}function yy(e){return $n(e)?"indeterminate":e?"checked":"unchecked"}var qk=[" ","Enter","ArrowUp","ArrowDown"],Jk=[" ","Enter"],dr="Select",[ul,cl,e_]=Lv(dr),[io]=yn(dr,[e_,Js]),dl=Js(),[t_,Yn]=io(dr),[n_,r_]=io(dr),gy=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:l,onValueChange:a,dir:u,name:d,autoComplete:c,disabled:v,required:w,form:S}=e,y=dl(t),[x,h]=f.useState(null),[p,m]=f.useState(null),[g,E]=f.useState(!1),_=Tc(u),[k,A]=ur({prop:r,defaultProp:o??!1,onChange:i,caller:dr}),[j,F]=ur({prop:s,defaultProp:l,onChange:a,caller:dr}),W=f.useRef(null),B=x?S||!!x.closest("form"):!0,[V,G]=f.useState(new Set),J=Array.from(V).map(L=>L.props.value).join(";");return R.jsx(cv,{...y,children:R.jsxs(t_,{required:w,scope:t,trigger:x,onTriggerChange:h,valueNode:p,onValueNodeChange:m,valueNodeHasChildren:g,onValueNodeHasChildrenChange:E,contentId:cn(),value:j,onValueChange:F,open:k,onOpenChange:A,dir:_,triggerPointerDownPosRef:W,disabled:v,children:[R.jsx(ul.Provider,{scope:t,children:R.jsx(n_,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(L=>{G(K=>new Set(K).add(L))},[]),onNativeOptionRemove:f.useCallback(L=>{G(K=>{const Y=new Set(K);return Y.delete(L),Y})},[]),children:n})}),B?R.jsxs(By,{"aria-hidden":!0,required:w,tabIndex:-1,name:d,autoComplete:c,value:j,onChange:L=>F(L.target.value),disabled:v,form:S,children:[j===void 0?R.jsx("option",{value:""}):null,Array.from(V)]},J):null]})})};gy.displayName=dr;var wy="SelectTrigger",xy=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=dl(n),s=Yn(wy,n),l=s.disabled||r,a=he(t,s.onTriggerChange),u=cl(n),d=f.useRef("touch"),[c,v,w]=Hy(y=>{const x=u().filter(m=>!m.disabled),h=x.find(m=>m.value===s.value),p=Wy(x,y,h);p!==void 0&&s.onValueChange(p.value)}),S=y=>{l||(s.onOpenChange(!0),w()),y&&(s.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return R.jsx(dv,{asChild:!0,...i,children:R.jsx(ne.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Uy(s.value)?"":void 0,...o,ref:a,onClick:Q(o.onClick,y=>{y.currentTarget.focus(),d.current!=="mouse"&&S(y)}),onPointerDown:Q(o.onPointerDown,y=>{d.current=y.pointerType;const x=y.target;x.hasPointerCapture(y.pointerId)&&x.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(S(y),y.preventDefault())}),onKeyDown:Q(o.onKeyDown,y=>{const x=c.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&v(y.key),!(x&&y.key===" ")&&qk.includes(y.key)&&(S(),y.preventDefault())})})})});xy.displayName=wy;var Sy="SelectValue",Ey=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...l}=e,a=Yn(Sy,n),{onValueNodeHasChildrenChange:u}=a,d=i!==void 0,c=he(t,a.onValueNodeChange);return qe(()=>{u(d)},[u,d]),R.jsx(ne.span,{...l,ref:c,style:{pointerEvents:"none"},children:Uy(a.value)?R.jsx(R.Fragment,{children:s}):i})});Ey.displayName=Sy;var o_="SelectIcon",Cy=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return R.jsx(ne.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Cy.displayName=o_;var i_="SelectPortal",ky=e=>R.jsx(xc,{asChild:!0,...e});ky.displayName=i_;var fr="SelectContent",_y=f.forwardRef((e,t)=>{const n=Yn(fr,e.__scopeSelect),[r,o]=f.useState();if(qe(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?to.createPortal(R.jsx(Ry,{scope:e.__scopeSelect,children:R.jsx(ul.Slot,{scope:e.__scopeSelect,children:R.jsx("div",{children:e.children})})}),i):null}return R.jsx(Py,{...e,ref:t})});_y.displayName=fr;var Ot=10,[Ry,Gn]=io(fr),s_="SelectContentImpl",l_=ei("SelectContent.RemoveScroll"),Py=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:v,collisionPadding:w,sticky:S,hideWhenDetached:y,avoidCollisions:x,...h}=e,p=Yn(fr,n),[m,g]=f.useState(null),[E,_]=f.useState(null),k=he(t,U=>g(U)),[A,j]=f.useState(null),[F,W]=f.useState(null),B=cl(n),[V,G]=f.useState(!1),J=f.useRef(!1);f.useEffect(()=>{if(m)return Bf(m)},[m]),Pm();const L=f.useCallback(U=>{const[H,...me]=B().map(ee=>ee.ref.current),[re]=me.slice(-1),oe=document.activeElement;for(const ee of U)if(ee===oe||(ee==null||ee.scrollIntoView({block:"nearest"}),ee===H&&E&&(E.scrollTop=0),ee===re&&E&&(E.scrollTop=E.scrollHeight),ee==null||ee.focus(),document.activeElement!==oe))return},[B,E]),K=f.useCallback(()=>L([A,m]),[L,A,m]);f.useEffect(()=>{V&&K()},[V,K]);const{onOpenChange:Y,triggerPointerDownPosRef:ae}=p;f.useEffect(()=>{if(m){let U={x:0,y:0};const H=re=>{var oe,ee;U={x:Math.abs(Math.round(re.pageX)-(((oe=ae.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(re.pageY)-(((ee=ae.current)==null?void 0:ee.y)??0))}},me=re=>{U.x<=10&&U.y<=10?re.preventDefault():m.contains(re.target)||Y(!1),document.removeEventListener("pointermove",H),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",me,{capture:!0})}}},[m,Y,ae]),f.useEffect(()=>{const U=()=>Y(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[Y]);const[de,Ae]=Hy(U=>{const H=B().filter(oe=>!oe.disabled),me=H.find(oe=>oe.ref.current===document.activeElement),re=Wy(H,U,me);re&&setTimeout(()=>re.ref.current.focus())}),St=f.useCallback((U,H,me)=>{const re=!J.current&&!me;(p.value!==void 0&&p.value===H||re)&&(j(U),re&&(J.current=!0))},[p.value]),X=f.useCallback(()=>m==null?void 0:m.focus(),[m]),se=f.useCallback((U,H,me)=>{const re=!J.current&&!me;(p.value!==void 0&&p.value===H||re)&&W(U)},[p.value]),le=r==="popper"?du:Ty,Re=le===du?{side:l,sideOffset:a,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:v,collisionPadding:w,sticky:S,hideWhenDetached:y,avoidCollisions:x}:{};return R.jsx(Ry,{scope:n,content:m,viewport:E,onViewportChange:_,itemRefCallback:St,selectedItem:A,onItemLeave:X,itemTextRefCallback:se,focusSelectedItem:K,selectedItemText:F,position:r,isPositioned:V,searchRef:de,children:R.jsx(Sc,{as:l_,allowPinchZoom:!0,children:R.jsx(wc,{asChild:!0,trapped:p.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:Q(o,U=>{var H;(H=p.trigger)==null||H.focus({preventScroll:!0}),U.preventDefault()}),children:R.jsx(Xs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:R.jsx(le,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:U=>U.preventDefault(),...h,...Re,onPlaced:()=>G(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:Q(h.onKeyDown,U=>{const H=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!H&&U.key.length===1&&Ae(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let re=B().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(U.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const oe=U.target,ee=re.indexOf(oe);re=re.slice(ee+1)}setTimeout(()=>L(re)),U.preventDefault()}})})})})})})});Py.displayName=s_;var a_="SelectItemAlignedPosition",Ty=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Yn(fr,n),s=Gn(fr,n),[l,a]=f.useState(null),[u,d]=f.useState(null),c=he(t,k=>d(k)),v=cl(n),w=f.useRef(!1),S=f.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:h,focusSelectedItem:p}=s,m=f.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&y&&x&&h){const k=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),j=i.valueNode.getBoundingClientRect(),F=h.getBoundingClientRect();if(i.dir!=="rtl"){const oe=F.left-A.left,ee=j.left-oe,je=k.left-ee,$e=k.width+je,Yt=Math.max($e,A.width),Gt=window.innerWidth-Ot,dt=zc(ee,[Ot,Math.max(Ot,Gt-Yt)]);l.style.minWidth=$e+"px",l.style.left=dt+"px"}else{const oe=A.right-F.right,ee=window.innerWidth-j.right-oe,je=window.innerWidth-k.right-ee,$e=k.width+je,Yt=Math.max($e,A.width),Gt=window.innerWidth-Ot,dt=zc(ee,[Ot,Math.max(Ot,Gt-Yt)]);l.style.minWidth=$e+"px",l.style.right=dt+"px"}const W=v(),B=window.innerHeight-Ot*2,V=y.scrollHeight,G=window.getComputedStyle(u),J=parseInt(G.borderTopWidth,10),L=parseInt(G.paddingTop,10),K=parseInt(G.borderBottomWidth,10),Y=parseInt(G.paddingBottom,10),ae=J+L+V+Y+K,de=Math.min(x.offsetHeight*5,ae),Ae=window.getComputedStyle(y),St=parseInt(Ae.paddingTop,10),X=parseInt(Ae.paddingBottom,10),se=k.top+k.height/2-Ot,le=B-se,Re=x.offsetHeight/2,U=x.offsetTop+Re,H=J+L+U,me=ae-H;if(H<=se){const oe=W.length>0&&x===W[W.length-1].ref.current;l.style.bottom="0px";const ee=u.clientHeight-y.offsetTop-y.offsetHeight,je=Math.max(le,Re+(oe?X:0)+ee+K),$e=H+je;l.style.height=$e+"px"}else{const oe=W.length>0&&x===W[0].ref.current;l.style.top="0px";const je=Math.max(se,J+y.offsetTop+(oe?St:0)+Re)+me;l.style.height=je+"px",y.scrollTop=H-se+y.offsetTop}l.style.margin=`${Ot}px 0`,l.style.minHeight=de+"px",l.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[v,i.trigger,i.valueNode,l,u,y,x,h,i.dir,r]);qe(()=>m(),[m]);const[g,E]=f.useState();qe(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const _=f.useCallback(k=>{k&&S.current===!0&&(m(),p==null||p(),S.current=!1)},[m,p]);return R.jsx(c_,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:_,children:R.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:g},children:R.jsx(ne.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ty.displayName=a_;var u_="SelectPopperPosition",du=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ot,...i}=e,s=dl(n);return R.jsx(fv,{...s,...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)"}})});du.displayName=u_;var[c_,Fc]=io(fr,{}),fu="SelectViewport",Ny=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Gn(fu,n),s=Fc(fu,n),l=he(t,i.onViewportChange),a=f.useRef(0);return R.jsxs(R.Fragment,{children:[R.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}),R.jsx(ul.Slot,{scope:n,children:R.jsx(ne.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Q(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:v}=s;if(v!=null&&v.current&&c){const w=Math.abs(a.current-d.scrollTop);if(w>0){const S=window.innerHeight-Ot*2,y=parseFloat(c.style.minHeight),x=parseFloat(c.style.height),h=Math.max(y,x);if(h<S){const p=h+w,m=Math.min(S,p),g=p-m;c.style.height=m+"px",c.style.bottom==="0px"&&(d.scrollTop=g>0?g:0,c.style.justifyContent="flex-end")}}}a.current=d.scrollTop})})})]})});Ny.displayName=fu;var Ay="SelectGroup",[d_,f_]=io(Ay),p_=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cn();return R.jsx(d_,{scope:n,id:o,children:R.jsx(ne.div,{role:"group","aria-labelledby":o,...r,ref:t})})});p_.displayName=Ay;var Dy="SelectLabel",Iy=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=f_(Dy,n);return R.jsx(ne.div,{id:o.id,...r,ref:t})});Iy.displayName=Dy;var Ds="SelectItem",[h_,by]=io(Ds),My=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,l=Yn(Ds,n),a=Gn(Ds,n),u=l.value===r,[d,c]=f.useState(i??""),[v,w]=f.useState(!1),S=he(t,p=>{var m;return(m=a.itemRefCallback)==null?void 0:m.call(a,p,r,o)}),y=cn(),x=f.useRef("touch"),h=()=>{o||(l.onValueChange(r),l.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 R.jsx(h_,{scope:n,value:r,disabled:o,textId:y,isSelected:u,onItemTextChange:f.useCallback(p=>{c(m=>m||((p==null?void 0:p.textContent)??"").trim())},[]),children:R.jsx(ul.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:R.jsx(ne.div,{role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:S,onFocus:Q(s.onFocus,()=>w(!0)),onBlur:Q(s.onBlur,()=>w(!1)),onClick:Q(s.onClick,()=>{x.current!=="mouse"&&h()}),onPointerUp:Q(s.onPointerUp,()=>{x.current==="mouse"&&h()}),onPointerDown:Q(s.onPointerDown,p=>{x.current=p.pointerType}),onPointerMove:Q(s.onPointerMove,p=>{var m;x.current=p.pointerType,o?(m=a.onItemLeave)==null||m.call(a):x.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Q(s.onPointerLeave,p=>{var m;p.currentTarget===document.activeElement&&((m=a.onItemLeave)==null||m.call(a))}),onKeyDown:Q(s.onKeyDown,p=>{var g;((g=a.searchRef)==null?void 0:g.current)!==""&&p.key===" "||(Jk.includes(p.key)&&h(),p.key===" "&&p.preventDefault())})})})})});My.displayName=Ds;var _o="SelectItemText",Oy=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Yn(_o,n),l=Gn(_o,n),a=by(_o,n),u=r_(_o,n),[d,c]=f.useState(null),v=he(t,h=>c(h),a.onItemTextChange,h=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,h,a.value,a.disabled)}),w=d==null?void 0:d.textContent,S=f.useMemo(()=>R.jsx("option",{value:a.value,disabled:a.disabled,children:w},a.value),[a.disabled,a.value,w]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=u;return qe(()=>(y(S),()=>x(S)),[y,x,S]),R.jsxs(R.Fragment,{children:[R.jsx(ne.span,{id:a.textId,...i,ref:v}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?to.createPortal(i.children,s.valueNode):null]})});Oy.displayName=_o;var Ly="SelectItemIndicator",Fy=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return by(Ly,n).isSelected?R.jsx(ne.span,{"aria-hidden":!0,...r,ref:t}):null});Fy.displayName=Ly;var pu="SelectScrollUpButton",jy=f.forwardRef((e,t)=>{const n=Gn(pu,e.__scopeSelect),r=Fc(pu,e.__scopeSelect),[o,i]=f.useState(!1),s=he(t,r.onScrollButtonChange);return qe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollTop>0;i(u)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?R.jsx(Vy,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});jy.displayName=pu;var hu="SelectScrollDownButton",$y=f.forwardRef((e,t)=>{const n=Gn(hu,e.__scopeSelect),r=Fc(hu,e.__scopeSelect),[o,i]=f.useState(!1),s=he(t,r.onScrollButtonChange);return qe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,d=Math.ceil(a.scrollTop)<u;i(d)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?R.jsx(Vy,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});$y.displayName=hu;var Vy=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Gn("SelectScrollButton",n),s=f.useRef(null),l=cl(n),a=f.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return f.useEffect(()=>()=>a(),[a]),qe(()=>{var d;const u=l().find(c=>c.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),R.jsx(ne.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Q(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Q(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Q(o.onPointerLeave,()=>{a()})})}),m_="SelectSeparator",zy=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return R.jsx(ne.div,{"aria-hidden":!0,...r,ref:t})});zy.displayName=m_;var mu="SelectArrow",v_=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dl(n),i=Yn(mu,n),s=Gn(mu,n);return i.open&&s.position==="popper"?R.jsx(pv,{...o,...r,ref:t}):null});v_.displayName=mu;var y_="SelectBubbleInput",By=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),i=he(r,o),s=dy(t);return f.useEffect(()=>{const l=o.current;if(!l)return;const a=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==t&&d){const c=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(c)}},[s,t]),R.jsx(ne.select,{...n,style:{...hv,...n.style},ref:i,defaultValue:t})});By.displayName=y_;function Uy(e){return e===""||e===void 0}function Hy(e){const t=Bn(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(s=>{const l=n.current+s;t(l),function a(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(l)},[t]),i=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Wy(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 s=g_(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const a=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function g_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var H2=gy,W2=xy,K2=Ey,Y2=Cy,G2=ky,Q2=_y,X2=Ny,Z2=Iy,q2=My,J2=Oy,eR=Fy,tR=jy,nR=$y,rR=zy;export{U_ as $,A2 as A,R2 as B,pC as C,mC as D,cC as E,Z_ as F,f2 as G,W_ as H,d2 as I,I_ as J,n2 as K,mm as L,O2 as M,L2 as N,fC as O,dC as P,F2 as Q,w2 as R,g2 as S,T_ as T,M2 as U,G_ as V,p2 as W,v2 as X,s2 as Y,B_ as Z,o2 as _,Zm as a,z_ as a0,O_ as a1,B2 as a2,sl as a3,j2 as a4,$2 as a5,z2 as a6,U2 as a7,Qk as a8,Xk as a9,t2 as aA,H_ as aB,m2 as aC,q_ as aD,u2 as aE,K_ as aF,a2 as aG,i2 as aH,J_ as aI,M_ as aJ,Y_ as aK,k_ as aL,Sw as aM,C_ as aN,Kc as aO,T as aP,__ as aQ,W2 as aa,Y2 as ab,L_ as ac,tR as ad,$_ as ae,nR as af,G2 as ag,Q2 as ah,X2 as ai,Z2 as aj,q2 as ak,eR as al,J2 as am,rR as an,H2 as ao,K2 as ap,V2 as aq,c2 as ar,h2 as as,F_ as at,j_ as au,V_ as av,r2 as aw,Q_ as ax,y2 as ay,b_ as az,hC as b,N_ as c,A_ as d,uC as e,k2 as f,Uf as g,S2 as h,E2 as i,R as j,C2 as k,e2 as l,Kn as m,X_ as n,l2 as o,T2 as p,P2 as q,f as r,N2 as s,P_ as t,D_ as u,I2 as v,b2 as w,D2 as x,_2 as y,R_ as z};
|
|
319
|
-
//# sourceMappingURL=react-vendor-B6Uf_8Kw.js.map
|