@nextclaw/ui 0.2.3 → 0.2.4

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.
@@ -0,0 +1,240 @@
1
+ var Hf=r=>{throw TypeError(r)};var uu=(r,s,i)=>s.has(r)||Hf("Cannot "+i);var x=(r,s,i)=>(uu(r,s,"read from private field"),i?i.call(r):s.get(r)),oe=(r,s,i)=>s.has(r)?Hf("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,i),G=(r,s,i,l)=>(uu(r,s,"write to private field"),l?l.call(r,i):s.set(r,i),i),ve=(r,s,i)=>(uu(r,s,"access private method"),i);var ua=(r,s,i,l)=>({set _(c){G(r,s,c,i)},get _(){return x(r,s,l)}});function lg(r,s){for(var i=0;i<s.length;i++){const l=s[i];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in r)){const f=Object.getOwnPropertyDescriptor(l,c);f&&Object.defineProperty(r,c,f.get?f:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&l(m)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function Yh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var cu={exports:{}},Do={},du={exports:{}},xe={};/**
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 Qf;function ug(){if(Qf)return xe;Qf=1;var r=Symbol.for("react.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),w=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),j=Symbol.iterator;function M(C){return C===null||typeof C!="object"?null:(C=j&&C[j]||C["@@iterator"],typeof C=="function"?C:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,E={};function N(C,O,X){this.props=C,this.context=O,this.refs=E,this.updater=X||g}N.prototype.isReactComponent={},N.prototype.setState=function(C,O){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,O,"setState")},N.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function z(){}z.prototype=N.prototype;function $(C,O,X){this.props=C,this.context=O,this.refs=E,this.updater=X||g}var K=$.prototype=new z;K.constructor=$,B(K,N.prototype),K.isPureReactComponent=!0;var D=Array.isArray,ee=Object.prototype.hasOwnProperty,se={current:null},ne={key:!0,ref:!0,__self:!0,__source:!0};function ie(C,O,X){var te,de={},ye=null,ce=null;if(O!=null)for(te in O.ref!==void 0&&(ce=O.ref),O.key!==void 0&&(ye=""+O.key),O)ee.call(O,te)&&!ne.hasOwnProperty(te)&&(de[te]=O[te]);var be=arguments.length-2;if(be===1)de.children=X;else if(1<be){for(var Pe=Array(be),Je=0;Je<be;Je++)Pe[Je]=arguments[Je+2];de.children=Pe}if(C&&C.defaultProps)for(te in be=C.defaultProps,be)de[te]===void 0&&(de[te]=be[te]);return{$$typeof:r,type:C,key:ye,ref:ce,props:de,_owner:se.current}}function pe(C,O){return{$$typeof:r,type:C.type,key:O,ref:C.ref,props:C.props,_owner:C._owner}}function ge(C){return typeof C=="object"&&C!==null&&C.$$typeof===r}function Ne(C){var O={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(X){return O[X]})}var ae=/\/+/g;function Ae(C,O){return typeof C=="object"&&C!==null&&C.key!=null?Ne(""+C.key):O.toString(36)}function Te(C,O,X,te,de){var ye=typeof C;(ye==="undefined"||ye==="boolean")&&(C=null);var ce=!1;if(C===null)ce=!0;else switch(ye){case"string":case"number":ce=!0;break;case"object":switch(C.$$typeof){case r:case s:ce=!0}}if(ce)return ce=C,de=de(ce),C=te===""?"."+Ae(ce,0):te,D(de)?(X="",C!=null&&(X=C.replace(ae,"$&/")+"/"),Te(de,O,X,"",function(Je){return Je})):de!=null&&(ge(de)&&(de=pe(de,X+(!de.key||ce&&ce.key===de.key?"":(""+de.key).replace(ae,"$&/")+"/")+C)),O.push(de)),1;if(ce=0,te=te===""?".":te+":",D(C))for(var be=0;be<C.length;be++){ye=C[be];var Pe=te+Ae(ye,be);ce+=Te(ye,O,X,Pe,de)}else if(Pe=M(C),typeof Pe=="function")for(C=Pe.call(C),be=0;!(ye=C.next()).done;)ye=ye.value,Pe=te+Ae(ye,be++),ce+=Te(ye,O,X,Pe,de);else if(ye==="object")throw O=String(C),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.");return ce}function Be(C,O,X){if(C==null)return C;var te=[],de=0;return Te(C,te,"","",function(ye){return O.call(X,ye,de++)}),te}function _e(C){if(C._status===-1){var O=C._result;O=O(),O.then(function(X){(C._status===0||C._status===-1)&&(C._status=1,C._result=X)},function(X){(C._status===0||C._status===-1)&&(C._status=2,C._result=X)}),C._status===-1&&(C._status=0,C._result=O)}if(C._status===1)return C._result.default;throw C._result}var we={current:null},V={transition:null},A={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:V,ReactCurrentOwner:se};function W(){throw Error("act(...) is not supported in production builds of React.")}return xe.Children={map:Be,forEach:function(C,O,X){Be(C,function(){O.apply(this,arguments)},X)},count:function(C){var O=0;return Be(C,function(){O++}),O},toArray:function(C){return Be(C,function(O){return O})||[]},only:function(C){if(!ge(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},xe.Component=N,xe.Fragment=i,xe.Profiler=c,xe.PureComponent=$,xe.StrictMode=l,xe.Suspense=y,xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,xe.act=W,xe.cloneElement=function(C,O,X){if(C==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var te=B({},C.props),de=C.key,ye=C.ref,ce=C._owner;if(O!=null){if(O.ref!==void 0&&(ye=O.ref,ce=se.current),O.key!==void 0&&(de=""+O.key),C.type&&C.type.defaultProps)var be=C.type.defaultProps;for(Pe in O)ee.call(O,Pe)&&!ne.hasOwnProperty(Pe)&&(te[Pe]=O[Pe]===void 0&&be!==void 0?be[Pe]:O[Pe])}var Pe=arguments.length-2;if(Pe===1)te.children=X;else if(1<Pe){be=Array(Pe);for(var Je=0;Je<Pe;Je++)be[Je]=arguments[Je+2];te.children=be}return{$$typeof:r,type:C.type,key:de,ref:ye,props:te,_owner:ce}},xe.createContext=function(C){return C={$$typeof:m,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},C.Provider={$$typeof:f,_context:C},C.Consumer=C},xe.createElement=ie,xe.createFactory=function(C){var O=ie.bind(null,C);return O.type=C,O},xe.createRef=function(){return{current:null}},xe.forwardRef=function(C){return{$$typeof:p,render:C}},xe.isValidElement=ge,xe.lazy=function(C){return{$$typeof:P,_payload:{_status:-1,_result:C},_init:_e}},xe.memo=function(C,O){return{$$typeof:w,type:C,compare:O===void 0?null:O}},xe.startTransition=function(C){var O=V.transition;V.transition={};try{C()}finally{V.transition=O}},xe.unstable_act=W,xe.useCallback=function(C,O){return we.current.useCallback(C,O)},xe.useContext=function(C){return we.current.useContext(C)},xe.useDebugValue=function(){},xe.useDeferredValue=function(C){return we.current.useDeferredValue(C)},xe.useEffect=function(C,O){return we.current.useEffect(C,O)},xe.useId=function(){return we.current.useId()},xe.useImperativeHandle=function(C,O,X){return we.current.useImperativeHandle(C,O,X)},xe.useInsertionEffect=function(C,O){return we.current.useInsertionEffect(C,O)},xe.useLayoutEffect=function(C,O){return we.current.useLayoutEffect(C,O)},xe.useMemo=function(C,O){return we.current.useMemo(C,O)},xe.useReducer=function(C,O,X){return we.current.useReducer(C,O,X)},xe.useRef=function(C){return we.current.useRef(C)},xe.useState=function(C){return we.current.useState(C)},xe.useSyncExternalStore=function(C,O,X){return we.current.useSyncExternalStore(C,O,X)},xe.useTransition=function(){return we.current.useTransition()},xe.version="18.3.1",xe}var $f;function Gu(){return $f||($f=1,du.exports=ug()),du.exports}/**
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 Kf;function cg(){if(Kf)return Do;Kf=1;var r=Gu(),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function m(p,y,w){var P,j={},M=null,g=null;w!==void 0&&(M=""+w),y.key!==void 0&&(M=""+y.key),y.ref!==void 0&&(g=y.ref);for(P in y)l.call(y,P)&&!f.hasOwnProperty(P)&&(j[P]=y[P]);if(p&&p.defaultProps)for(P in y=p.defaultProps,y)j[P]===void 0&&(j[P]=y[P]);return{$$typeof:s,type:p,key:M,ref:g,props:j,_owner:c.current}}return Do.Fragment=i,Do.jsx=m,Do.jsxs=m,Do}var Gf;function dg(){return Gf||(Gf=1,cu.exports=cg()),cu.exports}var h=dg(),b=Gu();const H=Yh(b),Xh=lg({__proto__:null,default:H},[b]);var ca={},fu={exports:{}},Et={},hu={exports:{}},pu={};/**
18
+ * @license React
19
+ * scheduler.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 qf;function fg(){return qf||(qf=1,(function(r){function s(V,A){var W=V.length;V.push(A);e:for(;0<W;){var C=W-1>>>1,O=V[C];if(0<c(O,A))V[C]=A,V[W]=O,W=C;else break e}}function i(V){return V.length===0?null:V[0]}function l(V){if(V.length===0)return null;var A=V[0],W=V.pop();if(W!==A){V[0]=W;e:for(var C=0,O=V.length,X=O>>>1;C<X;){var te=2*(C+1)-1,de=V[te],ye=te+1,ce=V[ye];if(0>c(de,W))ye<O&&0>c(ce,de)?(V[C]=ce,V[ye]=W,C=ye):(V[C]=de,V[te]=W,C=te);else if(ye<O&&0>c(ce,W))V[C]=ce,V[ye]=W,C=ye;else break e}}return A}function c(V,A){var W=V.sortIndex-A.sortIndex;return W!==0?W:V.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var m=Date,p=m.now();r.unstable_now=function(){return m.now()-p}}var y=[],w=[],P=1,j=null,M=3,g=!1,B=!1,E=!1,N=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function K(V){for(var A=i(w);A!==null;){if(A.callback===null)l(w);else if(A.startTime<=V)l(w),A.sortIndex=A.expirationTime,s(y,A);else break;A=i(w)}}function D(V){if(E=!1,K(V),!B)if(i(y)!==null)B=!0,_e(ee);else{var A=i(w);A!==null&&we(D,A.startTime-V)}}function ee(V,A){B=!1,E&&(E=!1,z(ie),ie=-1),g=!0;var W=M;try{for(K(A),j=i(y);j!==null&&(!(j.expirationTime>A)||V&&!Ne());){var C=j.callback;if(typeof C=="function"){j.callback=null,M=j.priorityLevel;var O=C(j.expirationTime<=A);A=r.unstable_now(),typeof O=="function"?j.callback=O:j===i(y)&&l(y),K(A)}else l(y);j=i(y)}if(j!==null)var X=!0;else{var te=i(w);te!==null&&we(D,te.startTime-A),X=!1}return X}finally{j=null,M=W,g=!1}}var se=!1,ne=null,ie=-1,pe=5,ge=-1;function Ne(){return!(r.unstable_now()-ge<pe)}function ae(){if(ne!==null){var V=r.unstable_now();ge=V;var A=!0;try{A=ne(!0,V)}finally{A?Ae():(se=!1,ne=null)}}else se=!1}var Ae;if(typeof $=="function")Ae=function(){$(ae)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Be=Te.port2;Te.port1.onmessage=ae,Ae=function(){Be.postMessage(null)}}else Ae=function(){N(ae,0)};function _e(V){ne=V,se||(se=!0,Ae())}function we(V,A){ie=N(function(){V(r.unstable_now())},A)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(V){V.callback=null},r.unstable_continueExecution=function(){B||g||(B=!0,_e(ee))},r.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pe=0<V?Math.floor(1e3/V):5},r.unstable_getCurrentPriorityLevel=function(){return M},r.unstable_getFirstCallbackNode=function(){return i(y)},r.unstable_next=function(V){switch(M){case 1:case 2:case 3:var A=3;break;default:A=M}var W=M;M=A;try{return V()}finally{M=W}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(V,A){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var W=M;M=V;try{return A()}finally{M=W}},r.unstable_scheduleCallback=function(V,A,W){var C=r.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?C+W:C):W=C,V){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=W+O,V={id:P++,callback:A,priorityLevel:V,startTime:W,expirationTime:O,sortIndex:-1},W>C?(V.sortIndex=W,s(w,V),i(y)===null&&V===i(w)&&(E?(z(ie),ie=-1):E=!0,we(D,W-C))):(V.sortIndex=O,s(y,V),B||g||(B=!0,_e(ee))),V},r.unstable_shouldYield=Ne,r.unstable_wrapCallback=function(V){var A=M;return function(){var W=M;M=A;try{return V.apply(this,arguments)}finally{M=W}}}})(pu)),pu}var Yf;function hg(){return Yf||(Yf=1,hu.exports=fg()),hu.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Xf;function pg(){if(Xf)return Et;Xf=1;var r=Gu(),s=hg();function i(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 l=new Set,c={};function f(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,w=/^[: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]*$/,P={},j={};function M(e){return y.call(j,e)?!0:y.call(P,e)?!1:w.test(e)?j[e]=!0:(P[e]=!0,!1)}function g(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function B(e,t,n,o){if(t===null||typeof t>"u"||g(e,t,n,o))return!0;if(o)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 E(e,t,n,o,a,u,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=d}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];N[t]=new E(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new E(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){N[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function $(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(z,$);N[t]=new E(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(z,$);N[t]=new E(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(z,$);N[t]=new E(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function K(e,t,n,o){var a=N.hasOwnProperty(t)?N[t]:null;(a!==null?a.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(B(t,n,a,o)&&(n=null),o||a===null?M(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,o=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var D=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ee=Symbol.for("react.element"),se=Symbol.for("react.portal"),ne=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),Ne=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),Ae=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),we=Symbol.for("react.offscreen"),V=Symbol.iterator;function A(e){return e===null||typeof e!="object"?null:(e=V&&e[V]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,C;function O(e){if(C===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);C=t&&t[1]||""}return`
34
+ `+C+e}var X=!1;function te(e,t){if(!e||X)return"";X=!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(_){var o=_}Reflect.construct(e,[],t)}else{try{t.call()}catch(_){o=_}e.call(t.prototype)}else{try{throw Error()}catch(_){o=_}e()}}catch(_){if(_&&o&&typeof _.stack=="string"){for(var a=_.stack.split(`
35
+ `),u=o.stack.split(`
36
+ `),d=a.length-1,v=u.length-1;1<=d&&0<=v&&a[d]!==u[v];)v--;for(;1<=d&&0<=v;d--,v--)if(a[d]!==u[v]){if(d!==1||v!==1)do if(d--,v--,0>v||a[d]!==u[v]){var S=`
37
+ `+a[d].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=d&&0<=v);break}}}finally{X=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?O(e):""}function de(e){switch(e.tag){case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 2:case 15:return e=te(e.type,!1),e;case 11:return e=te(e.type.render,!1),e;case 1:return e=te(e.type,!0),e;default:return""}}function ye(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 ne:return"Fragment";case se:return"Portal";case pe:return"Profiler";case ie:return"StrictMode";case Ae:return"Suspense";case Te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ne:return(e.displayName||"Context")+".Consumer";case ge:return(e._context.displayName||"Context")+".Provider";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Be:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function ce(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 ye(t);case 8:return t===ie?"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 be(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=Pe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(d){o=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(d){o=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function on(e){e._valueTracker||(e._valueTracker=Je(e))}function Zr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Pe(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function br(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 qs(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qo(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=be(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ys(e,t){t=t.checked,t!=null&&K(e,"checked",t,!1)}function Xs(e,t){Ys(e,t);var n=be(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zs(e,t.type,be(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jr(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="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 Zs(e,t,n){(t!=="number"||br(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var An=Array.isArray;function zt(e,t,n,o){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&o&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,o&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function es(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function an(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(An(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:be(n)}}function Yo(e,t){var n=be(t.value),o=be(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function Xo(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ft(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 ln(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ft(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ts,Zo=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ts=ts||document.createElement("div"),ts.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ts.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={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},Jo=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){Jo.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function ns(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function bn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,a=ns(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,a):e[n]=a}}var ei=W({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 cn(e,t){if(t){if(ei[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Js(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 eo=null;function rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ss=null,Un=null,dn=null;function Qt(e){if(e=So(e)){if(typeof ss!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Ci(t),ss(e.stateNode,e.type,t))}}function ti(e){Un?dn?dn.push(e):dn=[e]:Un=e}function he(){if(Un){var e=Un,t=dn;if(dn=Un=null,Qt(e),t)for(e=0;e<t.length;e++)Qt(t[e])}}function Ee(e,t){return e(t)}function Oe(){}var ht=!1;function yt(e,t,n){if(ht)return e(t,n);ht=!0;try{return Ee(e,t,n)}finally{ht=!1,(Un!==null||dn!==null)&&(Oe(),he())}}function xt(e,t){var n=e.stateNode;if(n===null)return null;var o=Ci(n);if(o===null)return null;n=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var $t=!1;if(p)try{var st={};Object.defineProperty(st,"passive",{get:function(){$t=!0}}),window.addEventListener("test",st,st),window.removeEventListener("test",st,st)}catch{$t=!1}function fn(e,t,n,o,a,u,d,v,S){var _=Array.prototype.slice.call(arguments,3);try{t.apply(n,_)}catch(L){this.onError(L)}}var to=!1,ni=null,ri=!1,ja=null,mm={onError:function(e){to=!0,ni=e}};function vm(e,t,n,o,a,u,d,v,S){to=!1,ni=null,fn.apply(mm,arguments)}function gm(e,t,n,o,a,u,d,v,S){if(vm.apply(this,arguments),to){if(to){var _=ni;to=!1,ni=null}else throw Error(i(198));ri||(ri=!0,ja=_)}}function Cr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function fc(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 hc(e){if(Cr(e)!==e)throw Error(i(188))}function ym(e){var t=e.alternate;if(!t){if(t=Cr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(o=a.return,o!==null){n=o;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return hc(a),e;if(u===o)return hc(a),t;u=u.sibling}throw Error(i(188))}if(n.return!==o.return)n=a,o=u;else{for(var d=!1,v=a.child;v;){if(v===n){d=!0,n=a,o=u;break}if(v===o){d=!0,o=a,n=u;break}v=v.sibling}if(!d){for(v=u.child;v;){if(v===n){d=!0,n=u,o=a;break}if(v===o){d=!0,o=u,n=a;break}v=v.sibling}if(!d)throw Error(i(189))}}if(n.alternate!==o)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function pc(e){return e=ym(e),e!==null?mc(e):null}function mc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mc(e);if(t!==null)return t;e=e.sibling}return null}var vc=s.unstable_scheduleCallback,gc=s.unstable_cancelCallback,xm=s.unstable_shouldYield,wm=s.unstable_requestPaint,Ke=s.unstable_now,Sm=s.unstable_getCurrentPriorityLevel,Ma=s.unstable_ImmediatePriority,yc=s.unstable_UserBlockingPriority,si=s.unstable_NormalPriority,bm=s.unstable_LowPriority,xc=s.unstable_IdlePriority,oi=null,hn=null;function km(e){if(hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(oi,e,void 0,(e.current.flags&128)===128)}catch{}}var Kt=Math.clz32?Math.clz32:Nm,Cm=Math.log,Em=Math.LN2;function Nm(e){return e>>>=0,e===0?32:31-(Cm(e)/Em|0)|0}var ii=64,ai=4194304;function no(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 li(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,a=e.suspendedLanes,u=e.pingedLanes,d=n&268435455;if(d!==0){var v=d&~a;v!==0?o=no(v):(u&=d,u!==0&&(o=no(u)))}else d=n&~a,d!==0?o=no(d):u!==0&&(o=no(u));if(o===0)return 0;if(t!==0&&t!==o&&(t&a)===0&&(a=o&-o,u=t&-t,a>=u||a===16&&(u&4194240)!==0))return t;if((o&4)!==0&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-Kt(t),a=1<<n,o|=e[n],t&=~a;return o}function Pm(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 jm(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var d=31-Kt(u),v=1<<d,S=a[d];S===-1?((v&n)===0||(v&o)!==0)&&(a[d]=Pm(v,t)):S<=t&&(e.expiredLanes|=v),u&=~v}}function Ra(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wc(){var e=ii;return ii<<=1,(ii&4194240)===0&&(ii=64),e}function Ta(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ro(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function Mm(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 o=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-Kt(n),u=1<<a;t[a]=0,o[a]=-1,e[a]=-1,n&=~u}}function _a(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-Kt(n),a=1<<o;a&t|e[o]&t&&(e[o]|=t),n&=~a}}var Me=0;function Sc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var bc,Oa,kc,Cc,Ec,za=!1,ui=[],Bn=null,Wn=null,Vn=null,so=new Map,oo=new Map,Hn=[],Rm="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 Nc(e,t){switch(e){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":so.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":oo.delete(t.pointerId)}}function io(e,t,n,o,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:u,targetContainers:[a]},t!==null&&(t=So(t),t!==null&&Oa(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Tm(e,t,n,o,a){switch(t){case"focusin":return Bn=io(Bn,e,t,n,o,a),!0;case"dragenter":return Wn=io(Wn,e,t,n,o,a),!0;case"mouseover":return Vn=io(Vn,e,t,n,o,a),!0;case"pointerover":var u=a.pointerId;return so.set(u,io(so.get(u)||null,e,t,n,o,a)),!0;case"gotpointercapture":return u=a.pointerId,oo.set(u,io(oo.get(u)||null,e,t,n,o,a)),!0}return!1}function Pc(e){var t=Er(e.target);if(t!==null){var n=Cr(t);if(n!==null){if(t=n.tag,t===13){if(t=fc(n),t!==null){e.blockedOn=t,Ec(e.priority,function(){kc(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 ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Da(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);eo=o,n.target.dispatchEvent(o),eo=null}else return t=So(n),t!==null&&Oa(t),e.blockedOn=n,!1;t.shift()}return!0}function jc(e,t,n){ci(e)&&n.delete(t)}function _m(){za=!1,Bn!==null&&ci(Bn)&&(Bn=null),Wn!==null&&ci(Wn)&&(Wn=null),Vn!==null&&ci(Vn)&&(Vn=null),so.forEach(jc),oo.forEach(jc)}function ao(e,t){e.blockedOn===t&&(e.blockedOn=null,za||(za=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,_m)))}function lo(e){function t(a){return ao(a,e)}if(0<ui.length){ao(ui[0],e);for(var n=1;n<ui.length;n++){var o=ui[n];o.blockedOn===e&&(o.blockedOn=null)}}for(Bn!==null&&ao(Bn,e),Wn!==null&&ao(Wn,e),Vn!==null&&ao(Vn,e),so.forEach(t),oo.forEach(t),n=0;n<Hn.length;n++)o=Hn[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<Hn.length&&(n=Hn[0],n.blockedOn===null);)Pc(n),n.blockedOn===null&&Hn.shift()}var os=D.ReactCurrentBatchConfig,di=!0;function Om(e,t,n,o){var a=Me,u=os.transition;os.transition=null;try{Me=1,Ia(e,t,n,o)}finally{Me=a,os.transition=u}}function zm(e,t,n,o){var a=Me,u=os.transition;os.transition=null;try{Me=4,Ia(e,t,n,o)}finally{Me=a,os.transition=u}}function Ia(e,t,n,o){if(di){var a=Da(e,t,n,o);if(a===null)Ja(e,t,o,fi,n),Nc(e,o);else if(Tm(a,e,t,n,o))o.stopPropagation();else if(Nc(e,o),t&4&&-1<Rm.indexOf(e)){for(;a!==null;){var u=So(a);if(u!==null&&bc(u),u=Da(e,t,n,o),u===null&&Ja(e,t,o,fi,n),u===a)break;a=u}a!==null&&o.stopPropagation()}else Ja(e,t,o,null,n)}}var fi=null;function Da(e,t,n,o){if(fi=null,e=rs(o),e=Er(e),e!==null)if(t=Cr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=fc(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 fi=e,null}function Mc(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(Sm()){case Ma:return 1;case yc:return 4;case si:case bm:return 16;case xc:return 536870912;default:return 16}default:return 16}}var Qn=null,La=null,hi=null;function Rc(){if(hi)return hi;var e,t=La,n=t.length,o,a="value"in Qn?Qn.value:Qn.textContent,u=a.length;for(e=0;e<n&&t[e]===a[e];e++);var d=n-e;for(o=1;o<=d&&t[n-o]===a[u-o];o++);return hi=a.slice(e,1<o?1-o:void 0)}function pi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mi(){return!0}function Tc(){return!1}function Mt(e){function t(n,o,a,u,d){this._reactName=n,this._targetInst=a,this.type=o,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?mi:Tc,this.isPropagationStopped=Tc,this}return W(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=mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=Mt(is),uo=W({},is,{view:0,detail:0}),Im=Mt(uo),Aa,Ua,co,vi=W({},uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wa,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!==co&&(co&&e.type==="mousemove"?(Aa=e.screenX-co.screenX,Ua=e.screenY-co.screenY):Ua=Aa=0,co=e),Aa)},movementY:function(e){return"movementY"in e?e.movementY:Ua}}),_c=Mt(vi),Dm=W({},vi,{dataTransfer:0}),Lm=Mt(Dm),Fm=W({},uo,{relatedTarget:0}),Ba=Mt(Fm),Am=W({},is,{animationName:0,elapsedTime:0,pseudoElement:0}),Um=Mt(Am),Bm=W({},is,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wm=Mt(Bm),Vm=W({},is,{data:0}),Oc=Mt(Vm),Hm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qm={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"},$m={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Km(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$m[e])?!!t[e]:!1}function Wa(){return Km}var Gm=W({},uo,{key:function(e){if(e.key){var t=Hm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wa,charCode:function(e){return e.type==="keypress"?pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qm=Mt(Gm),Ym=W({},vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zc=Mt(Ym),Xm=W({},uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa}),Zm=Mt(Xm),Jm=W({},is,{propertyName:0,elapsedTime:0,pseudoElement:0}),ev=Mt(Jm),tv=W({},vi,{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}),nv=Mt(tv),rv=[9,13,27,32],Va=p&&"CompositionEvent"in window,fo=null;p&&"documentMode"in document&&(fo=document.documentMode);var sv=p&&"TextEvent"in window&&!fo,Ic=p&&(!Va||fo&&8<fo&&11>=fo),Dc=" ",Lc=!1;function Fc(e,t){switch(e){case"keyup":return rv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ac(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var as=!1;function ov(e,t){switch(e){case"compositionend":return Ac(t);case"keypress":return t.which!==32?null:(Lc=!0,Dc);case"textInput":return e=t.data,e===Dc&&Lc?null:e;default:return null}}function iv(e,t){if(as)return e==="compositionend"||!Va&&Fc(e,t)?(e=Rc(),hi=La=Qn=null,as=!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 Ic&&t.locale!=="ko"?null:t.data;default:return null}}var av={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 Uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!av[e.type]:t==="textarea"}function Bc(e,t,n,o){ti(o),t=Si(t,"onChange"),0<t.length&&(n=new Fa("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var ho=null,po=null;function lv(e){od(e,0)}function gi(e){var t=fs(e);if(Zr(t))return e}function uv(e,t){if(e==="change")return t}var Wc=!1;if(p){var Ha;if(p){var Qa="oninput"in document;if(!Qa){var Vc=document.createElement("div");Vc.setAttribute("oninput","return;"),Qa=typeof Vc.oninput=="function"}Ha=Qa}else Ha=!1;Wc=Ha&&(!document.documentMode||9<document.documentMode)}function Hc(){ho&&(ho.detachEvent("onpropertychange",Qc),po=ho=null)}function Qc(e){if(e.propertyName==="value"&&gi(po)){var t=[];Bc(t,po,e,rs(e)),yt(lv,t)}}function cv(e,t,n){e==="focusin"?(Hc(),ho=t,po=n,ho.attachEvent("onpropertychange",Qc)):e==="focusout"&&Hc()}function dv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gi(po)}function fv(e,t){if(e==="click")return gi(t)}function hv(e,t){if(e==="input"||e==="change")return gi(t)}function pv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:pv;function mo(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var a=n[o];if(!y.call(t,a)||!Gt(e[a],t[a]))return!1}return!0}function $c(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kc(e,t){var n=$c(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$c(n)}}function Gc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qc(){for(var e=window,t=br();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=br(e.document)}return t}function $a(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 mv(e){var t=qc(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Gc(n.ownerDocument.documentElement,n)){if(o!==null&&$a(n)){if(t=o.start,e=o.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 a=n.textContent.length,u=Math.min(o.start,a);o=o.end===void 0?u:Math.min(o.end,a),!e.extend&&u>o&&(a=o,o=u,u=a),a=Kc(n,u);var d=Kc(n,o);a&&d&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),u>o?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.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 vv=p&&"documentMode"in document&&11>=document.documentMode,ls=null,Ka=null,vo=null,Ga=!1;function Yc(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ga||ls==null||ls!==br(o)||(o=ls,"selectionStart"in o&&$a(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),vo&&mo(vo,o)||(vo=o,o=Si(Ka,"onSelect"),0<o.length&&(t=new Fa("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=ls)))}function yi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var us={animationend:yi("Animation","AnimationEnd"),animationiteration:yi("Animation","AnimationIteration"),animationstart:yi("Animation","AnimationStart"),transitionend:yi("Transition","TransitionEnd")},qa={},Xc={};p&&(Xc=document.createElement("div").style,"AnimationEvent"in window||(delete us.animationend.animation,delete us.animationiteration.animation,delete us.animationstart.animation),"TransitionEvent"in window||delete us.transitionend.transition);function xi(e){if(qa[e])return qa[e];if(!us[e])return e;var t=us[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xc)return qa[e]=t[n];return e}var Zc=xi("animationend"),Jc=xi("animationiteration"),ed=xi("animationstart"),td=xi("transitionend"),nd=new Map,rd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function $n(e,t){nd.set(e,t),f(t,[e])}for(var Ya=0;Ya<rd.length;Ya++){var Xa=rd[Ya],gv=Xa.toLowerCase(),yv=Xa[0].toUpperCase()+Xa.slice(1);$n(gv,"on"+yv)}$n(Zc,"onAnimationEnd"),$n(Jc,"onAnimationIteration"),$n(ed,"onAnimationStart"),$n("dblclick","onDoubleClick"),$n("focusin","onFocus"),$n("focusout","onBlur"),$n(td,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var go="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(" "),xv=new Set("cancel close invalid load scroll toggle".split(" ").concat(go));function sd(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,gm(o,t,void 0,e),e.currentTarget=null}function od(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],a=o.event;o=o.listeners;e:{var u=void 0;if(t)for(var d=o.length-1;0<=d;d--){var v=o[d],S=v.instance,_=v.currentTarget;if(v=v.listener,S!==u&&a.isPropagationStopped())break e;sd(a,v,_),u=S}else for(d=0;d<o.length;d++){if(v=o[d],S=v.instance,_=v.currentTarget,v=v.listener,S!==u&&a.isPropagationStopped())break e;sd(a,v,_),u=S}}}if(ri)throw e=ja,ri=!1,ja=null,e}function De(e,t){var n=t[ol];n===void 0&&(n=t[ol]=new Set);var o=e+"__bubble";n.has(o)||(id(t,e,2,!1),n.add(o))}function Za(e,t,n){var o=0;t&&(o|=4),id(n,e,o,t)}var wi="_reactListening"+Math.random().toString(36).slice(2);function yo(e){if(!e[wi]){e[wi]=!0,l.forEach(function(n){n!=="selectionchange"&&(xv.has(n)||Za(n,!1,e),Za(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wi]||(t[wi]=!0,Za("selectionchange",!1,t))}}function id(e,t,n,o){switch(Mc(t)){case 1:var a=Om;break;case 4:a=zm;break;default:a=Ia}n=a.bind(null,t,n,e),a=void 0,!$t||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),o?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Ja(e,t,n,o,a){var u=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var d=o.tag;if(d===3||d===4){var v=o.stateNode.containerInfo;if(v===a||v.nodeType===8&&v.parentNode===a)break;if(d===4)for(d=o.return;d!==null;){var S=d.tag;if((S===3||S===4)&&(S=d.stateNode.containerInfo,S===a||S.nodeType===8&&S.parentNode===a))return;d=d.return}for(;v!==null;){if(d=Er(v),d===null)return;if(S=d.tag,S===5||S===6){o=u=d;continue e}v=v.parentNode}}o=o.return}yt(function(){var _=u,L=rs(n),F=[];e:{var I=nd.get(e);if(I!==void 0){var q=Fa,Z=e;switch(e){case"keypress":if(pi(n)===0)break e;case"keydown":case"keyup":q=qm;break;case"focusin":Z="focus",q=Ba;break;case"focusout":Z="blur",q=Ba;break;case"beforeblur":case"afterblur":q=Ba;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":q=_c;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Lm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Zm;break;case Zc:case Jc:case ed:q=Um;break;case td:q=ev;break;case"scroll":q=Im;break;case"wheel":q=nv;break;case"copy":case"cut":case"paste":q=Wm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=zc}var J=(t&4)!==0,Ge=!J&&e==="scroll",R=J?I!==null?I+"Capture":null:I;J=[];for(var k=_,T;k!==null;){T=k;var U=T.stateNode;if(T.tag===5&&U!==null&&(T=U,R!==null&&(U=xt(k,R),U!=null&&J.push(xo(k,U,T)))),Ge)break;k=k.return}0<J.length&&(I=new q(I,Z,null,n,L),F.push({event:I,listeners:J}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",I&&n!==eo&&(Z=n.relatedTarget||n.fromElement)&&(Er(Z)||Z[kn]))break e;if((q||I)&&(I=L.window===L?L:(I=L.ownerDocument)?I.defaultView||I.parentWindow:window,q?(Z=n.relatedTarget||n.toElement,q=_,Z=Z?Er(Z):null,Z!==null&&(Ge=Cr(Z),Z!==Ge||Z.tag!==5&&Z.tag!==6)&&(Z=null)):(q=null,Z=_),q!==Z)){if(J=_c,U="onMouseLeave",R="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(J=zc,U="onPointerLeave",R="onPointerEnter",k="pointer"),Ge=q==null?I:fs(q),T=Z==null?I:fs(Z),I=new J(U,k+"leave",q,n,L),I.target=Ge,I.relatedTarget=T,U=null,Er(L)===_&&(J=new J(R,k+"enter",Z,n,L),J.target=T,J.relatedTarget=Ge,U=J),Ge=U,q&&Z)t:{for(J=q,R=Z,k=0,T=J;T;T=cs(T))k++;for(T=0,U=R;U;U=cs(U))T++;for(;0<k-T;)J=cs(J),k--;for(;0<T-k;)R=cs(R),T--;for(;k--;){if(J===R||R!==null&&J===R.alternate)break t;J=cs(J),R=cs(R)}J=null}else J=null;q!==null&&ad(F,I,q,J,!1),Z!==null&&Ge!==null&&ad(F,Ge,Z,J,!0)}}e:{if(I=_?fs(_):window,q=I.nodeName&&I.nodeName.toLowerCase(),q==="select"||q==="input"&&I.type==="file")var re=uv;else if(Uc(I))if(Wc)re=hv;else{re=dv;var le=cv}else(q=I.nodeName)&&q.toLowerCase()==="input"&&(I.type==="checkbox"||I.type==="radio")&&(re=fv);if(re&&(re=re(e,_))){Bc(F,re,n,L);break e}le&&le(e,I,_),e==="focusout"&&(le=I._wrapperState)&&le.controlled&&I.type==="number"&&Zs(I,"number",I.value)}switch(le=_?fs(_):window,e){case"focusin":(Uc(le)||le.contentEditable==="true")&&(ls=le,Ka=_,vo=null);break;case"focusout":vo=Ka=ls=null;break;case"mousedown":Ga=!0;break;case"contextmenu":case"mouseup":case"dragend":Ga=!1,Yc(F,n,L);break;case"selectionchange":if(vv)break;case"keydown":case"keyup":Yc(F,n,L)}var ue;if(Va)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else as?Fc(e,n)&&(fe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(fe="onCompositionStart");fe&&(Ic&&n.locale!=="ko"&&(as||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&as&&(ue=Rc()):(Qn=L,La="value"in Qn?Qn.value:Qn.textContent,as=!0)),le=Si(_,fe),0<le.length&&(fe=new Oc(fe,e,null,n,L),F.push({event:fe,listeners:le}),ue?fe.data=ue:(ue=Ac(n),ue!==null&&(fe.data=ue)))),(ue=sv?ov(e,n):iv(e,n))&&(_=Si(_,"onBeforeInput"),0<_.length&&(L=new Oc("onBeforeInput","beforeinput",null,n,L),F.push({event:L,listeners:_}),L.data=ue))}od(F,t)})}function xo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Si(e,t){for(var n=t+"Capture",o=[];e!==null;){var a=e,u=a.stateNode;a.tag===5&&u!==null&&(a=u,u=xt(e,n),u!=null&&o.unshift(xo(e,u,a)),u=xt(e,t),u!=null&&o.push(xo(e,u,a))),e=e.return}return o}function cs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ad(e,t,n,o,a){for(var u=t._reactName,d=[];n!==null&&n!==o;){var v=n,S=v.alternate,_=v.stateNode;if(S!==null&&S===o)break;v.tag===5&&_!==null&&(v=_,a?(S=xt(n,u),S!=null&&d.unshift(xo(n,S,v))):a||(S=xt(n,u),S!=null&&d.push(xo(n,S,v)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var wv=/\r\n?/g,Sv=/\u0000|\uFFFD/g;function ld(e){return(typeof e=="string"?e:""+e).replace(wv,`
38
+ `).replace(Sv,"")}function bi(e,t,n){if(t=ld(t),ld(e)!==t&&n)throw Error(i(425))}function ki(){}var el=null,tl=null;function nl(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 rl=typeof setTimeout=="function"?setTimeout:void 0,bv=typeof clearTimeout=="function"?clearTimeout:void 0,ud=typeof Promise=="function"?Promise:void 0,kv=typeof queueMicrotask=="function"?queueMicrotask:typeof ud<"u"?function(e){return ud.resolve(null).then(e).catch(Cv)}:rl;function Cv(e){setTimeout(function(){throw e})}function sl(e,t){var n=t,o=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(o===0){e.removeChild(a),lo(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=a}while(n);lo(t)}function Kn(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 cd(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 ds=Math.random().toString(36).slice(2),pn="__reactFiber$"+ds,wo="__reactProps$"+ds,kn="__reactContainer$"+ds,ol="__reactEvents$"+ds,Ev="__reactListeners$"+ds,Nv="__reactHandles$"+ds;function Er(e){var t=e[pn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kn]||n[pn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cd(e);e!==null;){if(n=e[pn])return n;e=cd(e)}return t}e=n,n=e.parentNode}return null}function So(e){return e=e[pn]||e[kn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Ci(e){return e[wo]||null}var il=[],hs=-1;function Gn(e){return{current:e}}function Le(e){0>hs||(e.current=il[hs],il[hs]=null,hs--)}function Ie(e,t){hs++,il[hs]=e.current,e.current=t}var qn={},at=Gn(qn),wt=Gn(!1),Nr=qn;function ps(e,t){var n=e.type.contextTypes;if(!n)return qn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var a={},u;for(u in n)a[u]=t[u];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function St(e){return e=e.childContextTypes,e!=null}function Ei(){Le(wt),Le(at)}function dd(e,t,n){if(at.current!==qn)throw Error(i(168));Ie(at,t),Ie(wt,n)}function fd(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var a in o)if(!(a in t))throw Error(i(108,ce(e)||"Unknown",a));return W({},n,o)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qn,Nr=at.current,Ie(at,e),Ie(wt,wt.current),!0}function hd(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=fd(e,t,Nr),o.__reactInternalMemoizedMergedChildContext=e,Le(wt),Le(at),Ie(at,e)):Le(wt),Ie(wt,n)}var Cn=null,Pi=!1,al=!1;function pd(e){Cn===null?Cn=[e]:Cn.push(e)}function Pv(e){Pi=!0,pd(e)}function Yn(){if(!al&&Cn!==null){al=!0;var e=0,t=Me;try{var n=Cn;for(Me=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}Cn=null,Pi=!1}catch(a){throw Cn!==null&&(Cn=Cn.slice(e+1)),vc(Ma,Yn),a}finally{Me=t,al=!1}}return null}var ms=[],vs=0,ji=null,Mi=0,It=[],Dt=0,Pr=null,En=1,Nn="";function jr(e,t){ms[vs++]=Mi,ms[vs++]=ji,ji=e,Mi=t}function md(e,t,n){It[Dt++]=En,It[Dt++]=Nn,It[Dt++]=Pr,Pr=e;var o=En;e=Nn;var a=32-Kt(o)-1;o&=~(1<<a),n+=1;var u=32-Kt(t)+a;if(30<u){var d=a-a%5;u=(o&(1<<d)-1).toString(32),o>>=d,a-=d,En=1<<32-Kt(t)+a|n<<a|o,Nn=u+e}else En=1<<u|n<<a|o,Nn=e}function ll(e){e.return!==null&&(jr(e,1),md(e,1,0))}function ul(e){for(;e===ji;)ji=ms[--vs],ms[vs]=null,Mi=ms[--vs],ms[vs]=null;for(;e===Pr;)Pr=It[--Dt],It[Dt]=null,Nn=It[--Dt],It[Dt]=null,En=It[--Dt],It[Dt]=null}var Rt=null,Tt=null,Ue=!1,qt=null;function vd(e,t){var n=Ut(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 gd(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,Rt=e,Tt=Kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,Tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pr!==null?{id:En,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Tt=null,!0):!1;default:return!1}}function cl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function dl(e){if(Ue){var t=Tt;if(t){var n=t;if(!gd(e,t)){if(cl(e))throw Error(i(418));t=Kn(n.nextSibling);var o=Rt;t&&gd(e,t)?vd(o,n):(e.flags=e.flags&-4097|2,Ue=!1,Rt=e)}}else{if(cl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ue=!1,Rt=e}}}function yd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function Ri(e){if(e!==Rt)return!1;if(!Ue)return yd(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!nl(e.type,e.memoizedProps)),t&&(t=Tt)){if(cl(e))throw xd(),Error(i(418));for(;t;)vd(e,t),t=Kn(t.nextSibling)}if(yd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Tt=Kn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Tt=null}}else Tt=Rt?Kn(e.stateNode.nextSibling):null;return!0}function xd(){for(var e=Tt;e;)e=Kn(e.nextSibling)}function gs(){Tt=Rt=null,Ue=!1}function fl(e){qt===null?qt=[e]:qt.push(e)}var jv=D.ReactCurrentBatchConfig;function bo(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(i(309));var o=n.stateNode}if(!o)throw Error(i(147,e));var a=o,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(d){var v=a.refs;d===null?delete v[u]:v[u]=d},t._stringRef=u,t)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ti(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wd(e){var t=e._init;return t(e._payload)}function Sd(e){function t(R,k){if(e){var T=R.deletions;T===null?(R.deletions=[k],R.flags|=16):T.push(k)}}function n(R,k){if(!e)return null;for(;k!==null;)t(R,k),k=k.sibling;return null}function o(R,k){for(R=new Map;k!==null;)k.key!==null?R.set(k.key,k):R.set(k.index,k),k=k.sibling;return R}function a(R,k){return R=sr(R,k),R.index=0,R.sibling=null,R}function u(R,k,T){return R.index=T,e?(T=R.alternate,T!==null?(T=T.index,T<k?(R.flags|=2,k):T):(R.flags|=2,k)):(R.flags|=1048576,k)}function d(R){return e&&R.alternate===null&&(R.flags|=2),R}function v(R,k,T,U){return k===null||k.tag!==6?(k=ru(T,R.mode,U),k.return=R,k):(k=a(k,T),k.return=R,k)}function S(R,k,T,U){var re=T.type;return re===ne?L(R,k,T.props.children,U,T.key):k!==null&&(k.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===_e&&wd(re)===k.type)?(U=a(k,T.props),U.ref=bo(R,k,T),U.return=R,U):(U=ta(T.type,T.key,T.props,null,R.mode,U),U.ref=bo(R,k,T),U.return=R,U)}function _(R,k,T,U){return k===null||k.tag!==4||k.stateNode.containerInfo!==T.containerInfo||k.stateNode.implementation!==T.implementation?(k=su(T,R.mode,U),k.return=R,k):(k=a(k,T.children||[]),k.return=R,k)}function L(R,k,T,U,re){return k===null||k.tag!==7?(k=Dr(T,R.mode,U,re),k.return=R,k):(k=a(k,T),k.return=R,k)}function F(R,k,T){if(typeof k=="string"&&k!==""||typeof k=="number")return k=ru(""+k,R.mode,T),k.return=R,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ee:return T=ta(k.type,k.key,k.props,null,R.mode,T),T.ref=bo(R,null,k),T.return=R,T;case se:return k=su(k,R.mode,T),k.return=R,k;case _e:var U=k._init;return F(R,U(k._payload),T)}if(An(k)||A(k))return k=Dr(k,R.mode,T,null),k.return=R,k;Ti(R,k)}return null}function I(R,k,T,U){var re=k!==null?k.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return re!==null?null:v(R,k,""+T,U);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case ee:return T.key===re?S(R,k,T,U):null;case se:return T.key===re?_(R,k,T,U):null;case _e:return re=T._init,I(R,k,re(T._payload),U)}if(An(T)||A(T))return re!==null?null:L(R,k,T,U,null);Ti(R,T)}return null}function q(R,k,T,U,re){if(typeof U=="string"&&U!==""||typeof U=="number")return R=R.get(T)||null,v(k,R,""+U,re);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case ee:return R=R.get(U.key===null?T:U.key)||null,S(k,R,U,re);case se:return R=R.get(U.key===null?T:U.key)||null,_(k,R,U,re);case _e:var le=U._init;return q(R,k,T,le(U._payload),re)}if(An(U)||A(U))return R=R.get(T)||null,L(k,R,U,re,null);Ti(k,U)}return null}function Z(R,k,T,U){for(var re=null,le=null,ue=k,fe=k=0,nt=null;ue!==null&&fe<T.length;fe++){ue.index>fe?(nt=ue,ue=null):nt=ue.sibling;var Ce=I(R,ue,T[fe],U);if(Ce===null){ue===null&&(ue=nt);break}e&&ue&&Ce.alternate===null&&t(R,ue),k=u(Ce,k,fe),le===null?re=Ce:le.sibling=Ce,le=Ce,ue=nt}if(fe===T.length)return n(R,ue),Ue&&jr(R,fe),re;if(ue===null){for(;fe<T.length;fe++)ue=F(R,T[fe],U),ue!==null&&(k=u(ue,k,fe),le===null?re=ue:le.sibling=ue,le=ue);return Ue&&jr(R,fe),re}for(ue=o(R,ue);fe<T.length;fe++)nt=q(ue,R,fe,T[fe],U),nt!==null&&(e&&nt.alternate!==null&&ue.delete(nt.key===null?fe:nt.key),k=u(nt,k,fe),le===null?re=nt:le.sibling=nt,le=nt);return e&&ue.forEach(function(or){return t(R,or)}),Ue&&jr(R,fe),re}function J(R,k,T,U){var re=A(T);if(typeof re!="function")throw Error(i(150));if(T=re.call(T),T==null)throw Error(i(151));for(var le=re=null,ue=k,fe=k=0,nt=null,Ce=T.next();ue!==null&&!Ce.done;fe++,Ce=T.next()){ue.index>fe?(nt=ue,ue=null):nt=ue.sibling;var or=I(R,ue,Ce.value,U);if(or===null){ue===null&&(ue=nt);break}e&&ue&&or.alternate===null&&t(R,ue),k=u(or,k,fe),le===null?re=or:le.sibling=or,le=or,ue=nt}if(Ce.done)return n(R,ue),Ue&&jr(R,fe),re;if(ue===null){for(;!Ce.done;fe++,Ce=T.next())Ce=F(R,Ce.value,U),Ce!==null&&(k=u(Ce,k,fe),le===null?re=Ce:le.sibling=Ce,le=Ce);return Ue&&jr(R,fe),re}for(ue=o(R,ue);!Ce.done;fe++,Ce=T.next())Ce=q(ue,R,fe,Ce.value,U),Ce!==null&&(e&&Ce.alternate!==null&&ue.delete(Ce.key===null?fe:Ce.key),k=u(Ce,k,fe),le===null?re=Ce:le.sibling=Ce,le=Ce);return e&&ue.forEach(function(ag){return t(R,ag)}),Ue&&jr(R,fe),re}function Ge(R,k,T,U){if(typeof T=="object"&&T!==null&&T.type===ne&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case ee:e:{for(var re=T.key,le=k;le!==null;){if(le.key===re){if(re=T.type,re===ne){if(le.tag===7){n(R,le.sibling),k=a(le,T.props.children),k.return=R,R=k;break e}}else if(le.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===_e&&wd(re)===le.type){n(R,le.sibling),k=a(le,T.props),k.ref=bo(R,le,T),k.return=R,R=k;break e}n(R,le);break}else t(R,le);le=le.sibling}T.type===ne?(k=Dr(T.props.children,R.mode,U,T.key),k.return=R,R=k):(U=ta(T.type,T.key,T.props,null,R.mode,U),U.ref=bo(R,k,T),U.return=R,R=U)}return d(R);case se:e:{for(le=T.key;k!==null;){if(k.key===le)if(k.tag===4&&k.stateNode.containerInfo===T.containerInfo&&k.stateNode.implementation===T.implementation){n(R,k.sibling),k=a(k,T.children||[]),k.return=R,R=k;break e}else{n(R,k);break}else t(R,k);k=k.sibling}k=su(T,R.mode,U),k.return=R,R=k}return d(R);case _e:return le=T._init,Ge(R,k,le(T._payload),U)}if(An(T))return Z(R,k,T,U);if(A(T))return J(R,k,T,U);Ti(R,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,k!==null&&k.tag===6?(n(R,k.sibling),k=a(k,T),k.return=R,R=k):(n(R,k),k=ru(T,R.mode,U),k.return=R,R=k),d(R)):n(R,k)}return Ge}var ys=Sd(!0),bd=Sd(!1),_i=Gn(null),Oi=null,xs=null,hl=null;function pl(){hl=xs=Oi=null}function ml(e){var t=_i.current;Le(_i),e._currentValue=t}function vl(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function ws(e,t){Oi=e,hl=xs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(bt=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(hl!==e)if(e={context:e,memoizedValue:t,next:null},xs===null){if(Oi===null)throw Error(i(308));xs=e,Oi.dependencies={lanes:0,firstContext:e}}else xs=xs.next=e;return t}var Mr=null;function gl(e){Mr===null?Mr=[e]:Mr.push(e)}function kd(e,t,n,o){var a=t.interleaved;return a===null?(n.next=n,gl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Pn(e,o)}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 Xn=!1;function yl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cd(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 jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ke&2)!==0){var a=o.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),o.pending=t,Pn(e,n)}return a=o.interleaved,a===null?(t.next=t,gl(o)):(t.next=a.next,a.next=t),o.interleaved=t,Pn(e,n)}function zi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,_a(e,n)}}function Ed(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?a=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?a=u=t:u=u.next=t}else a=u=t;n={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ii(e,t,n,o){var a=e.updateQueue;Xn=!1;var u=a.firstBaseUpdate,d=a.lastBaseUpdate,v=a.shared.pending;if(v!==null){a.shared.pending=null;var S=v,_=S.next;S.next=null,d===null?u=_:d.next=_,d=S;var L=e.alternate;L!==null&&(L=L.updateQueue,v=L.lastBaseUpdate,v!==d&&(v===null?L.firstBaseUpdate=_:v.next=_,L.lastBaseUpdate=S))}if(u!==null){var F=a.baseState;d=0,L=_=S=null,v=u;do{var I=v.lane,q=v.eventTime;if((o&I)===I){L!==null&&(L=L.next={eventTime:q,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});e:{var Z=e,J=v;switch(I=t,q=n,J.tag){case 1:if(Z=J.payload,typeof Z=="function"){F=Z.call(q,F,I);break e}F=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=J.payload,I=typeof Z=="function"?Z.call(q,F,I):Z,I==null)break e;F=W({},F,I);break e;case 2:Xn=!0}}v.callback!==null&&v.lane!==0&&(e.flags|=64,I=a.effects,I===null?a.effects=[v]:I.push(v))}else q={eventTime:q,lane:I,tag:v.tag,payload:v.payload,callback:v.callback,next:null},L===null?(_=L=q,S=F):L=L.next=q,d|=I;if(v=v.next,v===null){if(v=a.shared.pending,v===null)break;I=v,v=I.next,I.next=null,a.lastBaseUpdate=I,a.shared.pending=null}}while(!0);if(L===null&&(S=F),a.baseState=S,a.firstBaseUpdate=_,a.lastBaseUpdate=L,t=a.shared.interleaved,t!==null){a=t;do d|=a.lane,a=a.next;while(a!==t)}else u===null&&(a.shared.lanes=0);_r|=d,e.lanes=d,e.memoizedState=F}}function Nd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(a!==null){if(o.callback=null,o=n,typeof a!="function")throw Error(i(191,a));a.call(o)}}}var ko={},mn=Gn(ko),Co=Gn(ko),Eo=Gn(ko);function Rr(e){if(e===ko)throw Error(i(174));return e}function xl(e,t){switch(Ie(Eo,t),Ie(Co,e),Ie(mn,ko),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ln(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ln(t,e)}Le(mn),Ie(mn,t)}function Ss(){Le(mn),Le(Co),Le(Eo)}function Pd(e){Rr(Eo.current);var t=Rr(mn.current),n=ln(t,e.type);t!==n&&(Ie(Co,e),Ie(mn,n))}function wl(e){Co.current===e&&(Le(mn),Le(Co))}var We=Gn(0);function Di(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)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Sl=[];function bl(){for(var e=0;e<Sl.length;e++)Sl[e]._workInProgressVersionPrimary=null;Sl.length=0}var Li=D.ReactCurrentDispatcher,kl=D.ReactCurrentBatchConfig,Tr=0,Ve=null,Ye=null,et=null,Fi=!1,No=!1,Po=0,Mv=0;function lt(){throw Error(i(321))}function Cl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function El(e,t,n,o,a,u){if(Tr=u,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Li.current=e===null||e.memoizedState===null?Ov:zv,e=n(o,a),No){u=0;do{if(No=!1,Po=0,25<=u)throw Error(i(301));u+=1,et=Ye=null,t.updateQueue=null,Li.current=Iv,e=n(o,a)}while(No)}if(Li.current=Bi,t=Ye!==null&&Ye.next!==null,Tr=0,et=Ye=Ve=null,Fi=!1,t)throw Error(i(300));return e}function Nl(){var e=Po!==0;return Po=0,e}function vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Ve.memoizedState=et=e:et=et.next=e,et}function Ft(){if(Ye===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=et===null?Ve.memoizedState:et.next;if(t!==null)et=t,Ye=e;else{if(e===null)throw Error(i(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},et===null?Ve.memoizedState=et=e:et=et.next=e}return et}function jo(e,t){return typeof t=="function"?t(e):t}function Pl(e){var t=Ft(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var o=Ye,a=o.baseQueue,u=n.pending;if(u!==null){if(a!==null){var d=a.next;a.next=u.next,u.next=d}o.baseQueue=a=u,n.pending=null}if(a!==null){u=a.next,o=o.baseState;var v=d=null,S=null,_=u;do{var L=_.lane;if((Tr&L)===L)S!==null&&(S=S.next={lane:0,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),o=_.hasEagerState?_.eagerState:e(o,_.action);else{var F={lane:L,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null};S===null?(v=S=F,d=o):S=S.next=F,Ve.lanes|=L,_r|=L}_=_.next}while(_!==null&&_!==u);S===null?d=o:S.next=v,Gt(o,t.memoizedState)||(bt=!0),t.memoizedState=o,t.baseState=d,t.baseQueue=S,n.lastRenderedState=o}if(e=n.interleaved,e!==null){a=e;do u=a.lane,Ve.lanes|=u,_r|=u,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function jl(e){var t=Ft(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,u=t.memoizedState;if(a!==null){n.pending=null;var d=a=a.next;do u=e(u,d.action),d=d.next;while(d!==a);Gt(u,t.memoizedState)||(bt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,o]}function jd(){}function Md(e,t){var n=Ve,o=Ft(),a=t(),u=!Gt(o.memoizedState,a);if(u&&(o.memoizedState=a,bt=!0),o=o.queue,Ml(_d.bind(null,n,o,e),[e]),o.getSnapshot!==t||u||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,Mo(9,Td.bind(null,n,o,a,t),void 0,null),tt===null)throw Error(i(349));(Tr&30)!==0||Rd(n,t,a)}return a}function Rd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Td(e,t,n,o){t.value=n,t.getSnapshot=o,Od(t)&&zd(e)}function _d(e,t,n){return n(function(){Od(t)&&zd(e)})}function Od(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function zd(e){var t=Pn(e,1);t!==null&&Jt(t,e,1,-1)}function Id(e){var t=vn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:e},t.queue=e,e=e.dispatch=_v.bind(null,Ve,e),[t.memoizedState,e]}function Mo(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function Dd(){return Ft().memoizedState}function Ai(e,t,n,o){var a=vn();Ve.flags|=e,a.memoizedState=Mo(1|t,n,void 0,o===void 0?null:o)}function Ui(e,t,n,o){var a=Ft();o=o===void 0?null:o;var u=void 0;if(Ye!==null){var d=Ye.memoizedState;if(u=d.destroy,o!==null&&Cl(o,d.deps)){a.memoizedState=Mo(t,n,u,o);return}}Ve.flags|=e,a.memoizedState=Mo(1|t,n,u,o)}function Ld(e,t){return Ai(8390656,8,e,t)}function Ml(e,t){return Ui(2048,8,e,t)}function Fd(e,t){return Ui(4,2,e,t)}function Ad(e,t){return Ui(4,4,e,t)}function Ud(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 Bd(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4,4,Ud.bind(null,t,e),n)}function Rl(){}function Wd(e,t){var n=Ft();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Cl(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Vd(e,t){var n=Ft();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Cl(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Hd(e,t,n){return(Tr&21)===0?(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=n):(Gt(n,t)||(n=wc(),Ve.lanes|=n,_r|=n,e.baseState=!0),t)}function Rv(e,t){var n=Me;Me=n!==0&&4>n?n:4,e(!0);var o=kl.transition;kl.transition={};try{e(!1),t()}finally{Me=n,kl.transition=o}}function Qd(){return Ft().memoizedState}function Tv(e,t,n){var o=nr(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},$d(e))Kd(t,n);else if(n=kd(e,t,n,o),n!==null){var a=mt();Jt(n,e,o,a),Gd(n,t,o)}}function _v(e,t,n){var o=nr(e),a={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if($d(e))Kd(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,v=u(d,n);if(a.hasEagerState=!0,a.eagerState=v,Gt(v,d)){var S=t.interleaved;S===null?(a.next=a,gl(t)):(a.next=S.next,S.next=a),t.interleaved=a;return}}catch{}finally{}n=kd(e,t,a,o),n!==null&&(a=mt(),Jt(n,e,o,a),Gd(n,t,o))}}function $d(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Kd(e,t){No=Fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gd(e,t,n){if((n&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,_a(e,n)}}var Bi={readContext:Lt,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},Ov={readContext:Lt,useCallback:function(e,t){return vn().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:Ld,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4194308,4,Ud.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ai(4,2,e,t)},useMemo:function(e,t){var n=vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=vn();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Tv.bind(null,Ve,e),[o.memoizedState,e]},useRef:function(e){var t=vn();return e={current:e},t.memoizedState=e},useState:Id,useDebugValue:Rl,useDeferredValue:function(e){return vn().memoizedState=e},useTransition:function(){var e=Id(!1),t=e[0];return e=Rv.bind(null,e[1]),vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Ve,a=vn();if(Ue){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),tt===null)throw Error(i(349));(Tr&30)!==0||Rd(o,t,n)}a.memoizedState=n;var u={value:n,getSnapshot:t};return a.queue=u,Ld(_d.bind(null,o,u,e),[e]),o.flags|=2048,Mo(9,Td.bind(null,o,u,n,t),void 0,null),n},useId:function(){var e=vn(),t=tt.identifierPrefix;if(Ue){var n=Nn,o=En;n=(o&~(1<<32-Kt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Po++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Mv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zv={readContext:Lt,useCallback:Wd,useContext:Lt,useEffect:Ml,useImperativeHandle:Bd,useInsertionEffect:Fd,useLayoutEffect:Ad,useMemo:Vd,useReducer:Pl,useRef:Dd,useState:function(){return Pl(jo)},useDebugValue:Rl,useDeferredValue:function(e){var t=Ft();return Hd(t,Ye.memoizedState,e)},useTransition:function(){var e=Pl(jo)[0],t=Ft().memoizedState;return[e,t]},useMutableSource:jd,useSyncExternalStore:Md,useId:Qd,unstable_isNewReconciler:!1},Iv={readContext:Lt,useCallback:Wd,useContext:Lt,useEffect:Ml,useImperativeHandle:Bd,useInsertionEffect:Fd,useLayoutEffect:Ad,useMemo:Vd,useReducer:jl,useRef:Dd,useState:function(){return jl(jo)},useDebugValue:Rl,useDeferredValue:function(e){var t=Ft();return Ye===null?t.memoizedState=e:Hd(t,Ye.memoizedState,e)},useTransition:function(){var e=jl(jo)[0],t=Ft().memoizedState;return[e,t]},useMutableSource:jd,useSyncExternalStore:Md,useId:Qd,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Tl(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return(e=e._reactInternals)?Cr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=mt(),a=nr(e),u=jn(o,a);u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,a),t!==null&&(Jt(t,e,a,o),zi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=mt(),a=nr(e),u=jn(o,a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,a),t!==null&&(Jt(t,e,a,o),zi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mt(),o=nr(e),a=jn(n,o);a.tag=2,t!=null&&(a.callback=t),t=Zn(e,a,o),t!==null&&(Jt(t,e,o,n),zi(t,e,o))}};function qd(e,t,n,o,a,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,u,d):t.prototype&&t.prototype.isPureReactComponent?!mo(n,o)||!mo(a,u):!0}function Yd(e,t,n){var o=!1,a=qn,u=t.contextType;return typeof u=="object"&&u!==null?u=Lt(u):(a=St(t)?Nr:at.current,o=t.contextTypes,u=(o=o!=null)?ps(e,a):qn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=u),t}function Xd(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Wi.enqueueReplaceState(t,t.state,null)}function _l(e,t,n,o){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},yl(e);var u=t.contextType;typeof u=="object"&&u!==null?a.context=Lt(u):(u=St(t)?Nr:at.current,a.context=ps(e,u)),a.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Tl(e,t,u,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Wi.enqueueReplaceState(a,a.state,null),Ii(e,n,a,o),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function bs(e,t){try{var n="",o=t;do n+=de(o),o=o.return;while(o);var a=n}catch(u){a=`
39
+ Error generating stack: `+u.message+`
40
+ `+u.stack}return{value:e,source:t,stack:a,digest:null}}function Ol(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Dv=typeof WeakMap=="function"?WeakMap:Map;function Zd(e,t,n){n=jn(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){qi||(qi=!0,ql=o),zl(e,t)},n}function Jd(e,t,n){n=jn(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var a=t.value;n.payload=function(){return o(a)},n.callback=function(){zl(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){zl(e,t),typeof o!="function"&&(er===null?er=new Set([this]):er.add(this));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),n}function ef(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new Dv;var a=new Set;o.set(t,a)}else a=o.get(t),a===void 0&&(a=new Set,o.set(t,a));a.has(n)||(a.add(n),e=Yv.bind(null,e,t,n),t.then(e,e))}function tf(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 nf(e,t,n,o,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=jn(-1,1),t.tag=2,Zn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Lv=D.ReactCurrentOwner,bt=!1;function pt(e,t,n,o){t.child=e===null?bd(t,null,n,o):ys(t,e.child,n,o)}function rf(e,t,n,o,a){n=n.render;var u=t.ref;return ws(t,a),o=El(e,t,n,o,u,a),n=Nl(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Mn(e,t,a)):(Ue&&n&&ll(t),t.flags|=1,pt(e,t,o,a),t.child)}function sf(e,t,n,o,a){if(e===null){var u=n.type;return typeof u=="function"&&!nu(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,of(e,t,u,o,a)):(e=ta(n.type,null,o,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&a)===0){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:mo,n(d,o)&&e.ref===t.ref)return Mn(e,t,a)}return t.flags|=1,e=sr(u,o),e.ref=t.ref,e.return=t,t.child=e}function of(e,t,n,o,a){if(e!==null){var u=e.memoizedProps;if(mo(u,o)&&e.ref===t.ref)if(bt=!1,t.pendingProps=o=u,(e.lanes&a)!==0)(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,Mn(e,t,a)}return Il(e,t,n,o,a)}function af(e,t,n){var o=t.pendingProps,a=o.children,u=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ie(Cs,_t),_t|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ie(Cs,_t),_t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=u!==null?u.baseLanes:n,Ie(Cs,_t),_t|=o}else u!==null?(o=u.baseLanes|n,t.memoizedState=null):o=n,Ie(Cs,_t),_t|=o;return pt(e,t,a,n),t.child}function lf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Il(e,t,n,o,a){var u=St(n)?Nr:at.current;return u=ps(t,u),ws(t,a),n=El(e,t,n,o,u,a),o=Nl(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Mn(e,t,a)):(Ue&&o&&ll(t),t.flags|=1,pt(e,t,n,a),t.child)}function uf(e,t,n,o,a){if(St(n)){var u=!0;Ni(t)}else u=!1;if(ws(t,a),t.stateNode===null)Hi(e,t),Yd(t,n,o),_l(t,n,o,a),o=!0;else if(e===null){var d=t.stateNode,v=t.memoizedProps;d.props=v;var S=d.context,_=n.contextType;typeof _=="object"&&_!==null?_=Lt(_):(_=St(n)?Nr:at.current,_=ps(t,_));var L=n.getDerivedStateFromProps,F=typeof L=="function"||typeof d.getSnapshotBeforeUpdate=="function";F||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==o||S!==_)&&Xd(t,d,o,_),Xn=!1;var I=t.memoizedState;d.state=I,Ii(t,o,d,a),S=t.memoizedState,v!==o||I!==S||wt.current||Xn?(typeof L=="function"&&(Tl(t,n,L,o),S=t.memoizedState),(v=Xn||qd(t,n,v,o,I,S,_))?(F||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=S),d.props=o,d.state=S,d.context=_,o=v):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{d=t.stateNode,Cd(e,t),v=t.memoizedProps,_=t.type===t.elementType?v:Yt(t.type,v),d.props=_,F=t.pendingProps,I=d.context,S=n.contextType,typeof S=="object"&&S!==null?S=Lt(S):(S=St(n)?Nr:at.current,S=ps(t,S));var q=n.getDerivedStateFromProps;(L=typeof q=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==F||I!==S)&&Xd(t,d,o,S),Xn=!1,I=t.memoizedState,d.state=I,Ii(t,o,d,a);var Z=t.memoizedState;v!==F||I!==Z||wt.current||Xn?(typeof q=="function"&&(Tl(t,n,q,o),Z=t.memoizedState),(_=Xn||qd(t,n,_,o,I,Z,S)||!1)?(L||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,Z,S),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,Z,S)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=Z),d.props=o,d.state=Z,d.context=S,o=_):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),o=!1)}return Dl(e,t,n,o,u,a)}function Dl(e,t,n,o,a,u){lf(e,t);var d=(t.flags&128)!==0;if(!o&&!d)return a&&hd(t,n,!1),Mn(e,t,u);o=t.stateNode,Lv.current=t;var v=d&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&d?(t.child=ys(t,e.child,null,u),t.child=ys(t,null,v,u)):pt(e,t,v,u),t.memoizedState=o.state,a&&hd(t,n,!0),t.child}function cf(e){var t=e.stateNode;t.pendingContext?dd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&dd(e,t.context,!1),xl(e,t.containerInfo)}function df(e,t,n,o,a){return gs(),fl(a),t.flags|=256,pt(e,t,n,o),t.child}var Ll={dehydrated:null,treeContext:null,retryLane:0};function Fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function ff(e,t,n){var o=t.pendingProps,a=We.current,u=!1,d=(t.flags&128)!==0,v;if((v=d)||(v=e!==null&&e.memoizedState===null?!1:(a&2)!==0),v?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ie(We,a&1),e===null)return dl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(d=o.children,e=o.fallback,u?(o=t.mode,u=t.child,d={mode:"hidden",children:d},(o&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=d):u=na(d,o,0,null),e=Dr(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Fl(n),t.memoizedState=Ll,e):Al(t,d));if(a=e.memoizedState,a!==null&&(v=a.dehydrated,v!==null))return Fv(e,t,d,o,v,a,n);if(u){u=o.fallback,d=t.mode,a=e.child,v=a.sibling;var S={mode:"hidden",children:o.children};return(d&1)===0&&t.child!==a?(o=t.child,o.childLanes=0,o.pendingProps=S,t.deletions=null):(o=sr(a,S),o.subtreeFlags=a.subtreeFlags&14680064),v!==null?u=sr(v,u):(u=Dr(u,d,n,null),u.flags|=2),u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,d=e.child.memoizedState,d=d===null?Fl(n):{baseLanes:d.baseLanes|n,cachePool:null,transitions:d.transitions},u.memoizedState=d,u.childLanes=e.childLanes&~n,t.memoizedState=Ll,o}return u=e.child,e=u.sibling,o=sr(u,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Al(e,t){return t=na({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,n,o){return o!==null&&fl(o),ys(t,e.child,null,n),e=Al(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fv(e,t,n,o,a,u,d){if(n)return t.flags&256?(t.flags&=-257,o=Ol(Error(i(422))),Vi(e,t,d,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=o.fallback,a=t.mode,o=na({mode:"visible",children:o.children},a,0,null),u=Dr(u,a,d,null),u.flags|=2,o.return=t,u.return=t,o.sibling=u,t.child=o,(t.mode&1)!==0&&ys(t,e.child,null,d),t.child.memoizedState=Fl(d),t.memoizedState=Ll,u);if((t.mode&1)===0)return Vi(e,t,d,null);if(a.data==="$!"){if(o=a.nextSibling&&a.nextSibling.dataset,o)var v=o.dgst;return o=v,u=Error(i(419)),o=Ol(u,o,void 0),Vi(e,t,d,o)}if(v=(d&e.childLanes)!==0,bt||v){if(o=tt,o!==null){switch(d&-d){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(o.suspendedLanes|d))!==0?0:a,a!==0&&a!==u.retryLane&&(u.retryLane=a,Pn(e,a),Jt(o,e,a,-1))}return tu(),o=Ol(Error(i(421))),Vi(e,t,d,o)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Xv.bind(null,e),a._reactRetry=t,null):(e=u.treeContext,Tt=Kn(a.nextSibling),Rt=t,Ue=!0,qt=null,e!==null&&(It[Dt++]=En,It[Dt++]=Nn,It[Dt++]=Pr,En=e.id,Nn=e.overflow,Pr=t),t=Al(t,o.children),t.flags|=4096,t)}function hf(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),vl(e.return,t,n)}function Ul(e,t,n,o,a){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:a}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=n,u.tailMode=a)}function pf(e,t,n){var o=t.pendingProps,a=o.revealOrder,u=o.tail;if(pt(e,t,o.children,n),o=We.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hf(e,n,t);else if(e.tag===19)hf(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}o&=1}if(Ie(We,o),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Di(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ul(t,!1,a,n,u);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Di(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ul(t,!0,n,null,u);break;case"together":Ul(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_r|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=sr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Av(e,t,n){switch(t.tag){case 3:cf(t),gs();break;case 5:Pd(t);break;case 1:St(t.type)&&Ni(t);break;case 4:xl(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,a=t.memoizedProps.value;Ie(_i,o._currentValue),o._currentValue=a;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Ie(We,We.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?ff(e,t,n):(Ie(We,We.current&1),e=Mn(e,t,n),e!==null?e.sibling:null);Ie(We,We.current&1);break;case 19:if(o=(n&t.childLanes)!==0,(e.flags&128)!==0){if(o)return pf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ie(We,We.current),o)break;return null;case 22:case 23:return t.lanes=0,af(e,t,n)}return Mn(e,t,n)}var mf,Bl,vf,gf;mf=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}},Bl=function(){},vf=function(e,t,n,o){var a=e.memoizedProps;if(a!==o){e=t.stateNode,Rr(mn.current);var u=null;switch(n){case"input":a=qs(e,a),o=qs(e,o),u=[];break;case"select":a=W({},a,{value:void 0}),o=W({},o,{value:void 0}),u=[];break;case"textarea":a=es(e,a),o=es(e,o),u=[];break;default:typeof a.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=ki)}cn(n,o);var d;n=null;for(_ in a)if(!o.hasOwnProperty(_)&&a.hasOwnProperty(_)&&a[_]!=null)if(_==="style"){var v=a[_];for(d in v)v.hasOwnProperty(d)&&(n||(n={}),n[d]="")}else _!=="dangerouslySetInnerHTML"&&_!=="children"&&_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(c.hasOwnProperty(_)?u||(u=[]):(u=u||[]).push(_,null));for(_ in o){var S=o[_];if(v=a!=null?a[_]:void 0,o.hasOwnProperty(_)&&S!==v&&(S!=null||v!=null))if(_==="style")if(v){for(d in v)!v.hasOwnProperty(d)||S&&S.hasOwnProperty(d)||(n||(n={}),n[d]="");for(d in S)S.hasOwnProperty(d)&&v[d]!==S[d]&&(n||(n={}),n[d]=S[d])}else n||(u||(u=[]),u.push(_,n)),n=S;else _==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,v=v?v.__html:void 0,S!=null&&v!==S&&(u=u||[]).push(_,S)):_==="children"?typeof S!="string"&&typeof S!="number"||(u=u||[]).push(_,""+S):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&(c.hasOwnProperty(_)?(S!=null&&_==="onScroll"&&De("scroll",e),u||v===S||(u=[])):(u=u||[]).push(_,S))}n&&(u=u||[]).push("style",n);var _=u;(t.updateQueue=_)&&(t.flags|=4)}},gf=function(e,t,n,o){n!==o&&(t.flags|=4)};function Ro(e,t){if(!Ue)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 o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,o|=a.subtreeFlags&14680064,o|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,o|=a.subtreeFlags,o|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function Uv(e,t,n){var o=t.pendingProps;switch(ul(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return St(t.type)&&Ei(),ut(t),null;case 3:return o=t.stateNode,Ss(),Le(wt),Le(at),bl(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qt!==null&&(Zl(qt),qt=null))),Bl(e,t),ut(t),null;case 5:wl(t);var a=Rr(Eo.current);if(n=t.type,e!==null&&t.stateNode!=null)vf(e,t,n,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(i(166));return ut(t),null}if(e=Rr(mn.current),Ri(t)){o=t.stateNode,n=t.type;var u=t.memoizedProps;switch(o[pn]=t,o[wo]=u,e=(t.mode&1)!==0,n){case"dialog":De("cancel",o),De("close",o);break;case"iframe":case"object":case"embed":De("load",o);break;case"video":case"audio":for(a=0;a<go.length;a++)De(go[a],o);break;case"source":De("error",o);break;case"img":case"image":case"link":De("error",o),De("load",o);break;case"details":De("toggle",o);break;case"input":qo(o,u),De("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!u.multiple},De("invalid",o);break;case"textarea":an(o,u),De("invalid",o)}cn(n,u),a=null;for(var d in u)if(u.hasOwnProperty(d)){var v=u[d];d==="children"?typeof v=="string"?o.textContent!==v&&(u.suppressHydrationWarning!==!0&&bi(o.textContent,v,e),a=["children",v]):typeof v=="number"&&o.textContent!==""+v&&(u.suppressHydrationWarning!==!0&&bi(o.textContent,v,e),a=["children",""+v]):c.hasOwnProperty(d)&&v!=null&&d==="onScroll"&&De("scroll",o)}switch(n){case"input":on(o),Jr(o,u,!0);break;case"textarea":on(o),Xo(o);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(o.onclick=ki)}o=a,t.updateQueue=o,o!==null&&(t.flags|=4)}else{d=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ft(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=d.createElement(n,{is:o.is}):(e=d.createElement(n),n==="select"&&(d=e,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):e=d.createElementNS(e,n),e[pn]=t,e[wo]=o,mf(e,t,!1,!1),t.stateNode=e;e:{switch(d=Js(n,o),n){case"dialog":De("cancel",e),De("close",e),a=o;break;case"iframe":case"object":case"embed":De("load",e),a=o;break;case"video":case"audio":for(a=0;a<go.length;a++)De(go[a],e);a=o;break;case"source":De("error",e),a=o;break;case"img":case"image":case"link":De("error",e),De("load",e),a=o;break;case"details":De("toggle",e),a=o;break;case"input":qo(e,o),a=qs(e,o),De("invalid",e);break;case"option":a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=W({},o,{value:void 0}),De("invalid",e);break;case"textarea":an(e,o),a=es(e,o),De("invalid",e);break;default:a=o}cn(n,a),v=a;for(u in v)if(v.hasOwnProperty(u)){var S=v[u];u==="style"?bn(e,S):u==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&Zo(e,S)):u==="children"?typeof S=="string"?(n!=="textarea"||S!=="")&&un(e,S):typeof S=="number"&&un(e,""+S):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?S!=null&&u==="onScroll"&&De("scroll",e):S!=null&&K(e,u,S,d))}switch(n){case"input":on(e),Jr(e,o,!1);break;case"textarea":on(e),Xo(e);break;case"option":o.value!=null&&e.setAttribute("value",""+be(o.value));break;case"select":e.multiple=!!o.multiple,u=o.value,u!=null?zt(e,!!o.multiple,u,!1):o.defaultValue!=null&&zt(e,!!o.multiple,o.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=ki)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ut(t),null;case 6:if(e&&t.stateNode!=null)gf(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(n=Rr(Eo.current),Rr(mn.current),Ri(t)){if(o=t.stateNode,n=t.memoizedProps,o[pn]=t,(u=o.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:bi(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&bi(o.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[pn]=t,t.stateNode=o}return ut(t),null;case 13:if(Le(We),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&Tt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)xd(),gs(),t.flags|=98560,u=!1;else if(u=Ri(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[pn]=t}else gs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),u=!1}else qt!==null&&(Zl(qt),qt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(We.current&1)!==0?Xe===0&&(Xe=3):tu())),t.updateQueue!==null&&(t.flags|=4),ut(t),null);case 4:return Ss(),Bl(e,t),e===null&&yo(t.stateNode.containerInfo),ut(t),null;case 10:return ml(t.type._context),ut(t),null;case 17:return St(t.type)&&Ei(),ut(t),null;case 19:if(Le(We),u=t.memoizedState,u===null)return ut(t),null;if(o=(t.flags&128)!==0,d=u.rendering,d===null)if(o)Ro(u,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Di(e),d!==null){for(t.flags|=128,Ro(u,!1),o=d.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)u=n,e=o,u.flags&=14680066,d=u.alternate,d===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=d.childLanes,u.lanes=d.lanes,u.child=d.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=d.memoizedProps,u.memoizedState=d.memoizedState,u.updateQueue=d.updateQueue,u.type=d.type,e=d.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ie(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ke()>Es&&(t.flags|=128,o=!0,Ro(u,!1),t.lanes=4194304)}else{if(!o)if(e=Di(d),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ro(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!Ue)return ut(t),null}else 2*Ke()-u.renderingStartTime>Es&&n!==1073741824&&(t.flags|=128,o=!0,Ro(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(n=u.last,n!==null?n.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ke(),t.sibling=null,n=We.current,Ie(We,o?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return eu(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(_t&1073741824)!==0&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Bv(e,t){switch(ul(t),t.tag){case 1:return St(t.type)&&Ei(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ss(),Le(wt),Le(at),bl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return wl(t),null;case 13:if(Le(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));gs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(We),null;case 4:return Ss(),null;case 10:return ml(t.type._context),null;case 22:case 23:return eu(),null;case 24:return null;default:return null}}var Qi=!1,ct=!1,Wv=typeof WeakSet=="function"?WeakSet:Set,Y=null;function ks(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Qe(e,t,o)}else n.current=null}function Wl(e,t,n){try{n()}catch(o){Qe(e,t,o)}}var yf=!1;function Vv(e,t){if(el=di,e=qc(),$a(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var a=o.anchorOffset,u=o.focusNode;o=o.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,v=-1,S=-1,_=0,L=0,F=e,I=null;t:for(;;){for(var q;F!==n||a!==0&&F.nodeType!==3||(v=d+a),F!==u||o!==0&&F.nodeType!==3||(S=d+o),F.nodeType===3&&(d+=F.nodeValue.length),(q=F.firstChild)!==null;)I=F,F=q;for(;;){if(F===e)break t;if(I===n&&++_===a&&(v=d),I===u&&++L===o&&(S=d),(q=F.nextSibling)!==null)break;F=I,I=F.parentNode}F=q}n=v===-1||S===-1?null:{start:v,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(tl={focusedElem:e,selectionRange:n},di=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var Z=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var J=Z.memoizedProps,Ge=Z.memoizedState,R=t.stateNode,k=R.getSnapshotBeforeUpdate(t.elementType===t.type?J:Yt(t.type,J),Ge);R.__reactInternalSnapshotBeforeUpdate=k}break;case 3:var T=t.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(U){Qe(t,t.return,U)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return Z=yf,yf=!1,Z}function To(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&e)===e){var u=a.destroy;a.destroy=void 0,u!==void 0&&Wl(t,n,u)}a=a.next}while(a!==o)}}function $i(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 o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function Vl(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 xf(e){var t=e.alternate;t!==null&&(e.alternate=null,xf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pn],delete t[wo],delete t[ol],delete t[Ev],delete t[Nv])),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 wf(e){return e.tag===5||e.tag===3||e.tag===4}function Sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wf(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 Hl(e,t,n){var o=e.tag;if(o===5||o===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=ki));else if(o!==4&&(e=e.child,e!==null))for(Hl(e,t,n),e=e.sibling;e!==null;)Hl(e,t,n),e=e.sibling}function Ql(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Ql(e,t,n),e=e.sibling;e!==null;)Ql(e,t,n),e=e.sibling}var ot=null,Xt=!1;function Jn(e,t,n){for(n=n.child;n!==null;)bf(e,t,n),n=n.sibling}function bf(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(oi,n)}catch{}switch(n.tag){case 5:ct||ks(n,t);case 6:var o=ot,a=Xt;ot=null,Jn(e,t,n),ot=o,Xt=a,ot!==null&&(Xt?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(Xt?(e=ot,n=n.stateNode,e.nodeType===8?sl(e.parentNode,n):e.nodeType===1&&sl(e,n),lo(e)):sl(ot,n.stateNode));break;case 4:o=ot,a=Xt,ot=n.stateNode.containerInfo,Xt=!0,Jn(e,t,n),ot=o,Xt=a;break;case 0:case 11:case 14:case 15:if(!ct&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){a=o=o.next;do{var u=a,d=u.destroy;u=u.tag,d!==void 0&&((u&2)!==0||(u&4)!==0)&&Wl(n,t,d),a=a.next}while(a!==o)}Jn(e,t,n);break;case 1:if(!ct&&(ks(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(v){Qe(n,t,v)}Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:n.mode&1?(ct=(o=ct)||n.memoizedState!==null,Jn(e,t,n),ct=o):Jn(e,t,n);break;default:Jn(e,t,n)}}function kf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wv),t.forEach(function(o){var a=Zv.bind(null,e,o);n.has(o)||(n.add(o),o.then(a,a))})}}function Zt(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var a=n[o];try{var u=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 5:ot=v.stateNode,Xt=!1;break e;case 3:ot=v.stateNode.containerInfo,Xt=!0;break e;case 4:ot=v.stateNode.containerInfo,Xt=!0;break e}v=v.return}if(ot===null)throw Error(i(160));bf(u,d,a),ot=null,Xt=!1;var S=a.alternate;S!==null&&(S.return=null),a.return=null}catch(_){Qe(a,t,_)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Cf(t,e),t=t.sibling}function Cf(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zt(t,e),gn(e),o&4){try{To(3,e,e.return),$i(3,e)}catch(J){Qe(e,e.return,J)}try{To(5,e,e.return)}catch(J){Qe(e,e.return,J)}}break;case 1:Zt(t,e),gn(e),o&512&&n!==null&&ks(n,n.return);break;case 5:if(Zt(t,e),gn(e),o&512&&n!==null&&ks(n,n.return),e.flags&32){var a=e.stateNode;try{un(a,"")}catch(J){Qe(e,e.return,J)}}if(o&4&&(a=e.stateNode,a!=null)){var u=e.memoizedProps,d=n!==null?n.memoizedProps:u,v=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{v==="input"&&u.type==="radio"&&u.name!=null&&Ys(a,u),Js(v,d);var _=Js(v,u);for(d=0;d<S.length;d+=2){var L=S[d],F=S[d+1];L==="style"?bn(a,F):L==="dangerouslySetInnerHTML"?Zo(a,F):L==="children"?un(a,F):K(a,L,F,_)}switch(v){case"input":Xs(a,u);break;case"textarea":Yo(a,u);break;case"select":var I=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!u.multiple;var q=u.value;q!=null?zt(a,!!u.multiple,q,!1):I!==!!u.multiple&&(u.defaultValue!=null?zt(a,!!u.multiple,u.defaultValue,!0):zt(a,!!u.multiple,u.multiple?[]:"",!1))}a[wo]=u}catch(J){Qe(e,e.return,J)}}break;case 6:if(Zt(t,e),gn(e),o&4){if(e.stateNode===null)throw Error(i(162));a=e.stateNode,u=e.memoizedProps;try{a.nodeValue=u}catch(J){Qe(e,e.return,J)}}break;case 3:if(Zt(t,e),gn(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{lo(t.containerInfo)}catch(J){Qe(e,e.return,J)}break;case 4:Zt(t,e),gn(e);break;case 13:Zt(t,e),gn(e),a=e.child,a.flags&8192&&(u=a.memoizedState!==null,a.stateNode.isHidden=u,!u||a.alternate!==null&&a.alternate.memoizedState!==null||(Gl=Ke())),o&4&&kf(e);break;case 22:if(L=n!==null&&n.memoizedState!==null,e.mode&1?(ct=(_=ct)||L,Zt(t,e),ct=_):Zt(t,e),gn(e),o&8192){if(_=e.memoizedState!==null,(e.stateNode.isHidden=_)&&!L&&(e.mode&1)!==0)for(Y=e,L=e.child;L!==null;){for(F=Y=L;Y!==null;){switch(I=Y,q=I.child,I.tag){case 0:case 11:case 14:case 15:To(4,I,I.return);break;case 1:ks(I,I.return);var Z=I.stateNode;if(typeof Z.componentWillUnmount=="function"){o=I,n=I.return;try{t=o,Z.props=t.memoizedProps,Z.state=t.memoizedState,Z.componentWillUnmount()}catch(J){Qe(o,n,J)}}break;case 5:ks(I,I.return);break;case 22:if(I.memoizedState!==null){Pf(F);continue}}q!==null?(q.return=I,Y=q):Pf(F)}L=L.sibling}e:for(L=null,F=e;;){if(F.tag===5){if(L===null){L=F;try{a=F.stateNode,_?(u=a.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(v=F.stateNode,S=F.memoizedProps.style,d=S!=null&&S.hasOwnProperty("display")?S.display:null,v.style.display=ns("display",d))}catch(J){Qe(e,e.return,J)}}}else if(F.tag===6){if(L===null)try{F.stateNode.nodeValue=_?"":F.memoizedProps}catch(J){Qe(e,e.return,J)}}else if((F.tag!==22&&F.tag!==23||F.memoizedState===null||F===e)&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===e)break e;for(;F.sibling===null;){if(F.return===null||F.return===e)break e;L===F&&(L=null),F=F.return}L===F&&(L=null),F.sibling.return=F.return,F=F.sibling}}break;case 19:Zt(t,e),gn(e),o&4&&kf(e);break;case 21:break;default:Zt(t,e),gn(e)}}function gn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wf(n)){var o=n;break e}n=n.return}throw Error(i(160))}switch(o.tag){case 5:var a=o.stateNode;o.flags&32&&(un(a,""),o.flags&=-33);var u=Sf(e);Ql(e,u,a);break;case 3:case 4:var d=o.stateNode.containerInfo,v=Sf(e);Hl(e,v,d);break;default:throw Error(i(161))}}catch(S){Qe(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hv(e,t,n){Y=e,Ef(e)}function Ef(e,t,n){for(var o=(e.mode&1)!==0;Y!==null;){var a=Y,u=a.child;if(a.tag===22&&o){var d=a.memoizedState!==null||Qi;if(!d){var v=a.alternate,S=v!==null&&v.memoizedState!==null||ct;v=Qi;var _=ct;if(Qi=d,(ct=S)&&!_)for(Y=a;Y!==null;)d=Y,S=d.child,d.tag===22&&d.memoizedState!==null?jf(a):S!==null?(S.return=d,Y=S):jf(a);for(;u!==null;)Y=u,Ef(u),u=u.sibling;Y=a,Qi=v,ct=_}Nf(e)}else(a.subtreeFlags&8772)!==0&&u!==null?(u.return=a,Y=u):Nf(e)}}function Nf(e){for(;Y!==null;){var t=Y;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ct||$i(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!ct)if(n===null)o.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Yt(t.type,n.memoizedProps);o.componentDidUpdate(a,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Nd(t,u,o);break;case 3:var d=t.updateQueue;if(d!==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,d,n)}break;case 5:var v=t.stateNode;if(n===null&&t.flags&4){n=v;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&n.focus();break;case"img":S.src&&(n.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var _=t.alternate;if(_!==null){var L=_.memoizedState;if(L!==null){var F=L.dehydrated;F!==null&&lo(F)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ct||t.flags&512&&Vl(t)}catch(I){Qe(t,t.return,I)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Pf(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function jf(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$i(4,t)}catch(S){Qe(t,n,S)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var a=t.return;try{o.componentDidMount()}catch(S){Qe(t,a,S)}}var u=t.return;try{Vl(t)}catch(S){Qe(t,u,S)}break;case 5:var d=t.return;try{Vl(t)}catch(S){Qe(t,d,S)}}}catch(S){Qe(t,t.return,S)}if(t===e){Y=null;break}var v=t.sibling;if(v!==null){v.return=t.return,Y=v;break}Y=t.return}}var Qv=Math.ceil,Ki=D.ReactCurrentDispatcher,$l=D.ReactCurrentOwner,At=D.ReactCurrentBatchConfig,ke=0,tt=null,qe=null,it=0,_t=0,Cs=Gn(0),Xe=0,_o=null,_r=0,Gi=0,Kl=0,Oo=null,kt=null,Gl=0,Es=1/0,Rn=null,qi=!1,ql=null,er=null,Yi=!1,tr=null,Xi=0,zo=0,Yl=null,Zi=-1,Ji=0;function mt(){return(ke&6)!==0?Ke():Zi!==-1?Zi:Zi=Ke()}function nr(e){return(e.mode&1)===0?1:(ke&2)!==0&&it!==0?it&-it:jv.transition!==null?(Ji===0&&(Ji=wc()),Ji):(e=Me,e!==0||(e=window.event,e=e===void 0?16:Mc(e.type)),e)}function Jt(e,t,n,o){if(50<zo)throw zo=0,Yl=null,Error(i(185));ro(e,n,o),((ke&2)===0||e!==tt)&&(e===tt&&((ke&2)===0&&(Gi|=n),Xe===4&&rr(e,it)),Ct(e,o),n===1&&ke===0&&(t.mode&1)===0&&(Es=Ke()+500,Pi&&Yn()))}function Ct(e,t){var n=e.callbackNode;jm(e,t);var o=li(e,e===tt?it:0);if(o===0)n!==null&&gc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&gc(n),t===1)e.tag===0?Pv(Rf.bind(null,e)):pd(Rf.bind(null,e)),kv(function(){(ke&6)===0&&Yn()}),n=null;else{switch(Sc(o)){case 1:n=Ma;break;case 4:n=yc;break;case 16:n=si;break;case 536870912:n=xc;break;default:n=si}n=Ff(n,Mf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Mf(e,t){if(Zi=-1,Ji=0,(ke&6)!==0)throw Error(i(327));var n=e.callbackNode;if(Ns()&&e.callbackNode!==n)return null;var o=li(e,e===tt?it:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=ea(e,o);else{t=o;var a=ke;ke|=2;var u=_f();(tt!==e||it!==t)&&(Rn=null,Es=Ke()+500,zr(e,t));do try{Gv();break}catch(v){Tf(e,v)}while(!0);pl(),Ki.current=u,ke=a,qe!==null?t=0:(tt=null,it=0,t=Xe)}if(t!==0){if(t===2&&(a=Ra(e),a!==0&&(o=a,t=Xl(e,a))),t===1)throw n=_o,zr(e,0),rr(e,o),Ct(e,Ke()),n;if(t===6)rr(e,o);else{if(a=e.current.alternate,(o&30)===0&&!$v(a)&&(t=ea(e,o),t===2&&(u=Ra(e),u!==0&&(o=u,t=Xl(e,u))),t===1))throw n=_o,zr(e,0),rr(e,o),Ct(e,Ke()),n;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(i(345));case 2:Ir(e,kt,Rn);break;case 3:if(rr(e,o),(o&130023424)===o&&(t=Gl+500-Ke(),10<t)){if(li(e,0)!==0)break;if(a=e.suspendedLanes,(a&o)!==o){mt(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=rl(Ir.bind(null,e,kt,Rn),t);break}Ir(e,kt,Rn);break;case 4:if(rr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,a=-1;0<o;){var d=31-Kt(o);u=1<<d,d=t[d],d>a&&(a=d),o&=~u}if(o=a,o=Ke()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Qv(o/1960))-o,10<o){e.timeoutHandle=rl(Ir.bind(null,e,kt,Rn),o);break}Ir(e,kt,Rn);break;case 5:Ir(e,kt,Rn);break;default:throw Error(i(329))}}}return Ct(e,Ke()),e.callbackNode===n?Mf.bind(null,e):null}function Xl(e,t){var n=Oo;return e.current.memoizedState.isDehydrated&&(zr(e,t).flags|=256),e=ea(e,t),e!==2&&(t=kt,kt=n,t!==null&&Zl(t)),e}function Zl(e){kt===null?kt=e:kt.push.apply(kt,e)}function $v(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var a=n[o],u=a.getSnapshot;a=a.value;try{if(!Gt(u(),a))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 rr(e,t){for(t&=~Kl,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kt(t),o=1<<n;e[n]=-1,t&=~o}}function Rf(e){if((ke&6)!==0)throw Error(i(327));Ns();var t=li(e,0);if((t&1)===0)return Ct(e,Ke()),null;var n=ea(e,t);if(e.tag!==0&&n===2){var o=Ra(e);o!==0&&(t=o,n=Xl(e,o))}if(n===1)throw n=_o,zr(e,0),rr(e,t),Ct(e,Ke()),n;if(n===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ir(e,kt,Rn),Ct(e,Ke()),null}function Jl(e,t){var n=ke;ke|=1;try{return e(t)}finally{ke=n,ke===0&&(Es=Ke()+500,Pi&&Yn())}}function Or(e){tr!==null&&tr.tag===0&&(ke&6)===0&&Ns();var t=ke;ke|=1;var n=At.transition,o=Me;try{if(At.transition=null,Me=1,e)return e()}finally{Me=o,At.transition=n,ke=t,(ke&6)===0&&Yn()}}function eu(){_t=Cs.current,Le(Cs)}function zr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,bv(n)),qe!==null)for(n=qe.return;n!==null;){var o=n;switch(ul(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Ei();break;case 3:Ss(),Le(wt),Le(at),bl();break;case 5:wl(o);break;case 4:Ss();break;case 13:Le(We);break;case 19:Le(We);break;case 10:ml(o.type._context);break;case 22:case 23:eu()}n=n.return}if(tt=e,qe=e=sr(e.current,null),it=_t=t,Xe=0,_o=null,Kl=Gi=_r=0,kt=Oo=null,Mr!==null){for(t=0;t<Mr.length;t++)if(n=Mr[t],o=n.interleaved,o!==null){n.interleaved=null;var a=o.next,u=n.pending;if(u!==null){var d=u.next;u.next=a,o.next=d}n.pending=o}Mr=null}return e}function Tf(e,t){do{var n=qe;try{if(pl(),Li.current=Bi,Fi){for(var o=Ve.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}Fi=!1}if(Tr=0,et=Ye=Ve=null,No=!1,Po=0,$l.current=null,n===null||n.return===null){Xe=1,_o=t,qe=null;break}e:{var u=e,d=n.return,v=n,S=t;if(t=it,v.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var _=S,L=v,F=L.tag;if((L.mode&1)===0&&(F===0||F===11||F===15)){var I=L.alternate;I?(L.updateQueue=I.updateQueue,L.memoizedState=I.memoizedState,L.lanes=I.lanes):(L.updateQueue=null,L.memoizedState=null)}var q=tf(d);if(q!==null){q.flags&=-257,nf(q,d,v,u,t),q.mode&1&&ef(u,_,t),t=q,S=_;var Z=t.updateQueue;if(Z===null){var J=new Set;J.add(S),t.updateQueue=J}else Z.add(S);break e}else{if((t&1)===0){ef(u,_,t),tu();break e}S=Error(i(426))}}else if(Ue&&v.mode&1){var Ge=tf(d);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),nf(Ge,d,v,u,t),fl(bs(S,v));break e}}u=S=bs(S,v),Xe!==4&&(Xe=2),Oo===null?Oo=[u]:Oo.push(u),u=d;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var R=Zd(u,S,t);Ed(u,R);break e;case 1:v=S;var k=u.type,T=u.stateNode;if((u.flags&128)===0&&(typeof k.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(er===null||!er.has(T)))){u.flags|=65536,t&=-t,u.lanes|=t;var U=Jd(u,v,t);Ed(u,U);break e}}u=u.return}while(u!==null)}zf(n)}catch(re){t=re,qe===n&&n!==null&&(qe=n=n.return);continue}break}while(!0)}function _f(){var e=Ki.current;return Ki.current=Bi,e===null?Bi:e}function tu(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),tt===null||(_r&268435455)===0&&(Gi&268435455)===0||rr(tt,it)}function ea(e,t){var n=ke;ke|=2;var o=_f();(tt!==e||it!==t)&&(Rn=null,zr(e,t));do try{Kv();break}catch(a){Tf(e,a)}while(!0);if(pl(),ke=n,Ki.current=o,qe!==null)throw Error(i(261));return tt=null,it=0,Xe}function Kv(){for(;qe!==null;)Of(qe)}function Gv(){for(;qe!==null&&!xm();)Of(qe)}function Of(e){var t=Lf(e.alternate,e,_t);e.memoizedProps=e.pendingProps,t===null?zf(e):qe=t,$l.current=null}function zf(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Uv(n,t,_t),n!==null){qe=n;return}}else{if(n=Bv(n,t),n!==null){n.flags&=32767,qe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,qe=null;return}}if(t=t.sibling,t!==null){qe=t;return}qe=t=e}while(t!==null);Xe===0&&(Xe=5)}function Ir(e,t,n){var o=Me,a=At.transition;try{At.transition=null,Me=1,qv(e,t,n,o)}finally{At.transition=a,Me=o}return null}function qv(e,t,n,o){do Ns();while(tr!==null);if((ke&6)!==0)throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(Mm(e,u),e===tt&&(qe=tt=null,it=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Yi||(Yi=!0,Ff(si,function(){return Ns(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=At.transition,At.transition=null;var d=Me;Me=1;var v=ke;ke|=4,$l.current=null,Vv(e,n),Cf(n,e),mv(tl),di=!!el,tl=el=null,e.current=n,Hv(n),wm(),ke=v,Me=d,At.transition=u}else e.current=n;if(Yi&&(Yi=!1,tr=e,Xi=a),u=e.pendingLanes,u===0&&(er=null),km(n.stateNode),Ct(e,Ke()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],o(a.value,{componentStack:a.stack,digest:a.digest});if(qi)throw qi=!1,e=ql,ql=null,e;return(Xi&1)!==0&&e.tag!==0&&Ns(),u=e.pendingLanes,(u&1)!==0?e===Yl?zo++:(zo=0,Yl=e):zo=0,Yn(),null}function Ns(){if(tr!==null){var e=Sc(Xi),t=At.transition,n=Me;try{if(At.transition=null,Me=16>e?16:e,tr===null)var o=!1;else{if(e=tr,tr=null,Xi=0,(ke&6)!==0)throw Error(i(331));var a=ke;for(ke|=4,Y=e.current;Y!==null;){var u=Y,d=u.child;if((Y.flags&16)!==0){var v=u.deletions;if(v!==null){for(var S=0;S<v.length;S++){var _=v[S];for(Y=_;Y!==null;){var L=Y;switch(L.tag){case 0:case 11:case 15:To(8,L,u)}var F=L.child;if(F!==null)F.return=L,Y=F;else for(;Y!==null;){L=Y;var I=L.sibling,q=L.return;if(xf(L),L===_){Y=null;break}if(I!==null){I.return=q,Y=I;break}Y=q}}}var Z=u.alternate;if(Z!==null){var J=Z.child;if(J!==null){Z.child=null;do{var Ge=J.sibling;J.sibling=null,J=Ge}while(J!==null)}}Y=u}}if((u.subtreeFlags&2064)!==0&&d!==null)d.return=u,Y=d;else e:for(;Y!==null;){if(u=Y,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:To(9,u,u.return)}var R=u.sibling;if(R!==null){R.return=u.return,Y=R;break e}Y=u.return}}var k=e.current;for(Y=k;Y!==null;){d=Y;var T=d.child;if((d.subtreeFlags&2064)!==0&&T!==null)T.return=d,Y=T;else e:for(d=k;Y!==null;){if(v=Y,(v.flags&2048)!==0)try{switch(v.tag){case 0:case 11:case 15:$i(9,v)}}catch(re){Qe(v,v.return,re)}if(v===d){Y=null;break e}var U=v.sibling;if(U!==null){U.return=v.return,Y=U;break e}Y=v.return}}if(ke=a,Yn(),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(oi,e)}catch{}o=!0}return o}finally{Me=n,At.transition=t}}return!1}function If(e,t,n){t=bs(n,t),t=Zd(e,t,1),e=Zn(e,t,1),t=mt(),e!==null&&(ro(e,1,t),Ct(e,t))}function Qe(e,t,n){if(e.tag===3)If(e,e,n);else for(;t!==null;){if(t.tag===3){If(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(er===null||!er.has(o))){e=bs(n,e),e=Jd(t,e,1),t=Zn(t,e,1),e=mt(),t!==null&&(ro(t,1,e),Ct(t,e));break}}t=t.return}}function Yv(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=mt(),e.pingedLanes|=e.suspendedLanes&n,tt===e&&(it&n)===n&&(Xe===4||Xe===3&&(it&130023424)===it&&500>Ke()-Gl?zr(e,0):Kl|=n),Ct(e,t)}function Df(e,t){t===0&&((e.mode&1)===0?t=1:(t=ai,ai<<=1,(ai&130023424)===0&&(ai=4194304)));var n=mt();e=Pn(e,t),e!==null&&(ro(e,t,n),Ct(e,n))}function Xv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Df(e,n)}function Zv(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(i(314))}o!==null&&o.delete(t),Df(e,n)}var Lf;Lf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)bt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return bt=!1,Av(e,t,n);bt=(e.flags&131072)!==0}else bt=!1,Ue&&(t.flags&1048576)!==0&&md(t,Mi,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Hi(e,t),e=t.pendingProps;var a=ps(t,at.current);ws(t,n),a=El(null,t,o,e,a,n);var u=Nl();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(o)?(u=!0,Ni(t)):u=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,yl(t),a.updater=Wi,t.stateNode=a,a._reactInternals=t,_l(t,o,e,n),t=Dl(null,t,o,!0,u,n)):(t.tag=0,Ue&&u&&ll(t),pt(null,t,a,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,a=o._init,o=a(o._payload),t.type=o,a=t.tag=eg(o),e=Yt(o,e),a){case 0:t=Il(null,t,o,e,n);break e;case 1:t=uf(null,t,o,e,n);break e;case 11:t=rf(null,t,o,e,n);break e;case 14:t=sf(null,t,o,Yt(o.type,e),n);break e}throw Error(i(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Yt(o,a),Il(e,t,o,a,n);case 1:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Yt(o,a),uf(e,t,o,a,n);case 3:e:{if(cf(t),e===null)throw Error(i(387));o=t.pendingProps,u=t.memoizedState,a=u.element,Cd(e,t),Ii(t,o,null,n);var d=t.memoizedState;if(o=d.element,u.isDehydrated)if(u={element:o,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){a=bs(Error(i(423)),t),t=df(e,t,o,n,a);break e}else if(o!==a){a=bs(Error(i(424)),t),t=df(e,t,o,n,a);break e}else for(Tt=Kn(t.stateNode.containerInfo.firstChild),Rt=t,Ue=!0,qt=null,n=bd(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(gs(),o===a){t=Mn(e,t,n);break e}pt(e,t,o,n)}t=t.child}return t;case 5:return Pd(t),e===null&&dl(t),o=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,d=a.children,nl(o,a)?d=null:u!==null&&nl(o,u)&&(t.flags|=32),lf(e,t),pt(e,t,d,n),t.child;case 6:return e===null&&dl(t),null;case 13:return ff(e,t,n);case 4:return xl(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ys(t,null,o,n):pt(e,t,o,n),t.child;case 11:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Yt(o,a),rf(e,t,o,a,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,u=t.memoizedProps,d=a.value,Ie(_i,o._currentValue),o._currentValue=d,u!==null)if(Gt(u.value,d)){if(u.children===a.children&&!wt.current){t=Mn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var v=u.dependencies;if(v!==null){d=u.child;for(var S=v.firstContext;S!==null;){if(S.context===o){if(u.tag===1){S=jn(-1,n&-n),S.tag=2;var _=u.updateQueue;if(_!==null){_=_.shared;var L=_.pending;L===null?S.next=S:(S.next=L.next,L.next=S),_.pending=S}}u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),vl(u.return,n,t),v.lanes|=n;break}S=S.next}}else if(u.tag===10)d=u.type===t.type?null:u.child;else if(u.tag===18){if(d=u.return,d===null)throw Error(i(341));d.lanes|=n,v=d.alternate,v!==null&&(v.lanes|=n),vl(d,n,t),d=u.sibling}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===t){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}pt(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,ws(t,n),a=Lt(a),o=o(a),t.flags|=1,pt(e,t,o,n),t.child;case 14:return o=t.type,a=Yt(o,t.pendingProps),a=Yt(o.type,a),sf(e,t,o,a,n);case 15:return of(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Yt(o,a),Hi(e,t),t.tag=1,St(o)?(e=!0,Ni(t)):e=!1,ws(t,n),Yd(t,o,a),_l(t,o,a,n),Dl(null,t,o,!0,e,n);case 19:return pf(e,t,n);case 22:return af(e,t,n)}throw Error(i(156,t.tag))};function Ff(e,t){return vc(e,t)}function Jv(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,n,o){return new Jv(e,t,n,o)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eg(e){if(typeof e=="function")return nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ae)return 11;if(e===Be)return 14}return 2}function sr(e,t){var n=e.alternate;return n===null?(n=Ut(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 ta(e,t,n,o,a,u){var d=2;if(o=e,typeof e=="function")nu(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ne:return Dr(n.children,a,u,t);case ie:d=8,a|=8;break;case pe:return e=Ut(12,n,t,a|2),e.elementType=pe,e.lanes=u,e;case Ae:return e=Ut(13,n,t,a),e.elementType=Ae,e.lanes=u,e;case Te:return e=Ut(19,n,t,a),e.elementType=Te,e.lanes=u,e;case we:return na(n,a,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ge:d=10;break e;case Ne:d=9;break e;case ae:d=11;break e;case Be:d=14;break e;case _e:d=16,o=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ut(d,n,t,a),t.elementType=e,t.type=o,t.lanes=u,t}function Dr(e,t,n,o){return e=Ut(7,e,o,t),e.lanes=n,e}function na(e,t,n,o){return e=Ut(22,e,o,t),e.elementType=we,e.lanes=n,e.stateNode={isHidden:!1},e}function ru(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function su(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tg(e,t,n,o,a){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=Ta(0),this.expirationTimes=Ta(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ta(0),this.identifierPrefix=o,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function ou(e,t,n,o,a,u,d,v,S){return e=new tg(e,t,n,v,S),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Ut(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yl(u),e}function ng(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:se,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Af(e){if(!e)return qn;e=e._reactInternals;e:{if(Cr(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(St(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var n=e.type;if(St(n))return fd(e,n,t)}return t}function Uf(e,t,n,o,a,u,d,v,S){return e=ou(n,o,!0,e,a,u,d,v,S),e.context=Af(null),n=e.current,o=mt(),a=nr(n),u=jn(o,a),u.callback=t??null,Zn(n,u,a),e.current.lanes=a,ro(e,a,o),Ct(e,o),e}function ra(e,t,n,o){var a=t.current,u=mt(),d=nr(a);return n=Af(n),t.context===null?t.context=n:t.pendingContext=n,t=jn(u,d),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=Zn(a,t,d),e!==null&&(Jt(e,a,d,u),zi(e,a,d)),d}function sa(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 Bf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function iu(e,t){Bf(e,t),(e=e.alternate)&&Bf(e,t)}function rg(){return null}var Wf=typeof reportError=="function"?reportError:function(e){console.error(e)};function au(e){this._internalRoot=e}oa.prototype.render=au.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));ra(e,t,null,null)},oa.prototype.unmount=au.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Or(function(){ra(null,e,null,null)}),t[kn]=null}};function oa(e){this._internalRoot=e}oa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Hn.length&&t!==0&&t<Hn[n].priority;n++);Hn.splice(n,0,e),n===0&&Pc(e)}};function lu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vf(){}function sg(e,t,n,o,a){if(a){if(typeof o=="function"){var u=o;o=function(){var _=sa(d);u.call(_)}}var d=Uf(t,o,e,0,null,!1,!1,"",Vf);return e._reactRootContainer=d,e[kn]=d.current,yo(e.nodeType===8?e.parentNode:e),Or(),d}for(;a=e.lastChild;)e.removeChild(a);if(typeof o=="function"){var v=o;o=function(){var _=sa(S);v.call(_)}}var S=ou(e,0,!1,null,null,!1,!1,"",Vf);return e._reactRootContainer=S,e[kn]=S.current,yo(e.nodeType===8?e.parentNode:e),Or(function(){ra(t,S,n,o)}),S}function aa(e,t,n,o,a){var u=n._reactRootContainer;if(u){var d=u;if(typeof a=="function"){var v=a;a=function(){var S=sa(d);v.call(S)}}ra(t,d,e,a)}else d=sg(n,t,e,a,o);return sa(d)}bc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=no(t.pendingLanes);n!==0&&(_a(t,n|1),Ct(t,Ke()),(ke&6)===0&&(Es=Ke()+500,Yn()))}break;case 13:Or(function(){var o=Pn(e,1);if(o!==null){var a=mt();Jt(o,e,1,a)}}),iu(e,1)}},Oa=function(e){if(e.tag===13){var t=Pn(e,134217728);if(t!==null){var n=mt();Jt(t,e,134217728,n)}iu(e,134217728)}},kc=function(e){if(e.tag===13){var t=nr(e),n=Pn(e,t);if(n!==null){var o=mt();Jt(n,e,t,o)}iu(e,t)}},Cc=function(){return Me},Ec=function(e,t){var n=Me;try{return Me=e,t()}finally{Me=n}},ss=function(e,t,n){switch(t){case"input":if(Xs(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 o=n[t];if(o!==e&&o.form===e.form){var a=Ci(o);if(!a)throw Error(i(90));Zr(o),Xs(o,a)}}}break;case"textarea":Yo(e,n);break;case"select":t=n.value,t!=null&&zt(e,!!n.multiple,t,!1)}},Ee=Jl,Oe=Or;var og={usingClientEntryPoint:!1,Events:[So,fs,Ci,ti,he,Jl]},Io={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ig={bundleType:Io.bundleType,version:Io.version,rendererPackageName:Io.rendererPackageName,rendererConfig:Io.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pc(e),e===null?null:e.stateNode},findFiberByHostInstance:Io.findFiberByHostInstance||rg,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 la=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!la.isDisabled&&la.supportsFiber)try{oi=la.inject(ig),hn=la}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=og,Et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lu(t))throw Error(i(200));return ng(e,t,null,n)},Et.createRoot=function(e,t){if(!lu(e))throw Error(i(299));var n=!1,o="",a=Wf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=ou(e,1,!1,null,null,n,!1,o,a),e[kn]=t.current,yo(e.nodeType===8?e.parentNode:e),new au(t)},Et.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(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=pc(t),e=e===null?null:e.stateNode,e},Et.flushSync=function(e){return Or(e)},Et.hydrate=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!0,n)},Et.hydrateRoot=function(e,t,n){if(!lu(e))throw Error(i(405));var o=n!=null&&n.hydratedSources||null,a=!1,u="",d=Wf;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),t=Uf(t,null,e,1,n??null,a,!1,u,d),e[kn]=t.current,yo(e),o)for(e=0;e<o.length;e++)n=o[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new oa(t)},Et.render=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!1,n)},Et.unmountComponentAtNode=function(e){if(!ia(e))throw Error(i(40));return e._reactRootContainer?(Or(function(){aa(null,null,e,!1,function(){e._reactRootContainer=null,e[kn]=null})}),!0):!1},Et.unstable_batchedUpdates=Jl,Et.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!ia(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return aa(e,t,n,!1,o)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Zf;function Zh(){if(Zf)return fu.exports;Zf=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),fu.exports=pg(),fu.exports}var Jf;function mg(){if(Jf)return ca;Jf=1;var r=Zh();return ca.createRoot=r.createRoot,ca.hydrateRoot=r.hydrateRoot,ca}var vg=mg(),Qs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gg={setTimeout:(r,s)=>setTimeout(r,s),clearTimeout:r=>clearTimeout(r),setInterval:(r,s)=>setInterval(r,s),clearInterval:r=>clearInterval(r)},cr,Ku,Ah,yg=(Ah=class{constructor(){oe(this,cr,gg);oe(this,Ku,!1)}setTimeoutProvider(r){G(this,cr,r)}setTimeout(r,s){return x(this,cr).setTimeout(r,s)}clearTimeout(r){x(this,cr).clearTimeout(r)}setInterval(r,s){return x(this,cr).setInterval(r,s)}clearInterval(r){x(this,cr).clearInterval(r)}},cr=new WeakMap,Ku=new WeakMap,Ah),Lr=new yg;function xg(r){setTimeout(r,0)}var Kr=typeof window>"u"||"Deno"in globalThis;function gt(){}function wg(r,s){return typeof r=="function"?r(s):r}function Eu(r){return typeof r=="number"&&r>=0&&r!==1/0}function Jh(r,s){return Math.max(r+(s||0)-Date.now(),0)}function xr(r,s){return typeof r=="function"?r(s):r}function Wt(r,s){return typeof r=="function"?r(s):r}function eh(r,s){const{type:i="all",exact:l,fetchStatus:c,predicate:f,queryKey:m,stale:p}=r;if(m){if(l){if(s.queryHash!==qu(m,s.options))return!1}else if(!Uo(s.queryKey,m))return!1}if(i!=="all"){const y=s.isActive();if(i==="active"&&!y||i==="inactive"&&y)return!1}return!(typeof p=="boolean"&&s.isStale()!==p||c&&c!==s.state.fetchStatus||f&&!f(s))}function th(r,s){const{exact:i,status:l,predicate:c,mutationKey:f}=r;if(f){if(!s.options.mutationKey)return!1;if(i){if(Gr(s.options.mutationKey)!==Gr(f))return!1}else if(!Uo(s.options.mutationKey,f))return!1}return!(l&&s.state.status!==l||c&&!c(s))}function qu(r,s){return((s==null?void 0:s.queryKeyHashFn)||Gr)(r)}function Gr(r){return JSON.stringify(r,(s,i)=>Nu(i)?Object.keys(i).sort().reduce((l,c)=>(l[c]=i[c],l),{}):i)}function Uo(r,s){return r===s?!0:typeof r!=typeof s?!1:r&&s&&typeof r=="object"&&typeof s=="object"?Object.keys(s).every(i=>Uo(r[i],s[i])):!1}var Sg=Object.prototype.hasOwnProperty;function ep(r,s,i=0){if(r===s)return r;if(i>500)return s;const l=nh(r)&&nh(s);if(!l&&!(Nu(r)&&Nu(s)))return s;const f=(l?r:Object.keys(r)).length,m=l?s:Object.keys(s),p=m.length,y=l?new Array(p):{};let w=0;for(let P=0;P<p;P++){const j=l?P:m[P],M=r[j],g=s[j];if(M===g){y[j]=M,(l?P<f:Sg.call(r,j))&&w++;continue}if(M===null||g===null||typeof M!="object"||typeof g!="object"){y[j]=g;continue}const B=ep(M,g,i+1);y[j]=B,B===M&&w++}return f===p&&w===f?r:y}function ba(r,s){if(!s||Object.keys(r).length!==Object.keys(s).length)return!1;for(const i in r)if(r[i]!==s[i])return!1;return!0}function nh(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Nu(r){if(!rh(r))return!1;const s=r.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!rh(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function rh(r){return Object.prototype.toString.call(r)==="[object Object]"}function bg(r){return new Promise(s=>{Lr.setTimeout(s,r)})}function Pu(r,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(r,s):i.structuralSharing!==!1?ep(r,s):s}function kg(r,s,i=0){const l=[...r,s];return i&&l.length>i?l.slice(1):l}function Cg(r,s,i=0){const l=[s,...r];return i&&l.length>i?l.slice(0,-1):l}var Yu=Symbol();function tp(r,s){return!r.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!r.queryFn||r.queryFn===Yu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function Xu(r,s){return typeof r=="function"?r(...s):!!r}function Eg(r,s,i){let l=!1,c;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(c??(c=s()),l||(l=!0,c.aborted?i():c.addEventListener("abort",i,{once:!0})),c)}),r}var Fr,dr,Os,Uh,Ng=(Uh=class extends Qs{constructor(){super();oe(this,Fr);oe(this,dr);oe(this,Os);G(this,Os,s=>{if(!Kr&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){x(this,dr)||this.setEventListener(x(this,Os))}onUnsubscribe(){var s;this.hasListeners()||((s=x(this,dr))==null||s.call(this),G(this,dr,void 0))}setEventListener(s){var i;G(this,Os,s),(i=x(this,dr))==null||i.call(this),G(this,dr,s(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(s){x(this,Fr)!==s&&(G(this,Fr,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof x(this,Fr)=="boolean"?x(this,Fr):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Fr=new WeakMap,dr=new WeakMap,Os=new WeakMap,Uh),Zu=new Ng;function ju(){let r,s;const i=new Promise((c,f)=>{r=c,s=f});i.status="pending",i.catch(()=>{});function l(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{l({status:"fulfilled",value:c}),r(c)},i.reject=c=>{l({status:"rejected",reason:c}),s(c)},i}var Pg=xg;function jg(){let r=[],s=0,i=p=>{p()},l=p=>{p()},c=Pg;const f=p=>{s?r.push(p):c(()=>{i(p)})},m=()=>{const p=r;r=[],p.length&&c(()=>{l(()=>{p.forEach(y=>{i(y)})})})};return{batch:p=>{let y;s++;try{y=p()}finally{s--,s||m()}return y},batchCalls:p=>(...y)=>{f(()=>{p(...y)})},schedule:f,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{c=p}}}var Ze=jg(),zs,fr,Is,Bh,Mg=(Bh=class extends Qs{constructor(){super();oe(this,zs,!0);oe(this,fr);oe(this,Is);G(this,Is,s=>{if(!Kr&&window.addEventListener){const i=()=>s(!0),l=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){x(this,fr)||this.setEventListener(x(this,Is))}onUnsubscribe(){var s;this.hasListeners()||((s=x(this,fr))==null||s.call(this),G(this,fr,void 0))}setEventListener(s){var i;G(this,Is,s),(i=x(this,fr))==null||i.call(this),G(this,fr,s(this.setOnline.bind(this)))}setOnline(s){x(this,zs)!==s&&(G(this,zs,s),this.listeners.forEach(l=>{l(s)}))}isOnline(){return x(this,zs)}},zs=new WeakMap,fr=new WeakMap,Is=new WeakMap,Bh),ka=new Mg;function Rg(r){return Math.min(1e3*2**r,3e4)}function np(r){return(r??"online")==="online"?ka.isOnline():!0}var Mu=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function rp(r){let s=!1,i=0,l;const c=ju(),f=()=>c.status!=="pending",m=E=>{var N;if(!f()){const z=new Mu(E);M(z),(N=r.onCancel)==null||N.call(r,z)}},p=()=>{s=!0},y=()=>{s=!1},w=()=>Zu.isFocused()&&(r.networkMode==="always"||ka.isOnline())&&r.canRun(),P=()=>np(r.networkMode)&&r.canRun(),j=E=>{f()||(l==null||l(),c.resolve(E))},M=E=>{f()||(l==null||l(),c.reject(E))},g=()=>new Promise(E=>{var N;l=z=>{(f()||w())&&E(z)},(N=r.onPause)==null||N.call(r)}).then(()=>{var E;l=void 0,f()||(E=r.onContinue)==null||E.call(r)}),B=()=>{if(f())return;let E;const N=i===0?r.initialPromise:void 0;try{E=N??r.fn()}catch(z){E=Promise.reject(z)}Promise.resolve(E).then(j).catch(z=>{var se;if(f())return;const $=r.retry??(Kr?0:3),K=r.retryDelay??Rg,D=typeof K=="function"?K(i,z):K,ee=$===!0||typeof $=="number"&&i<$||typeof $=="function"&&$(i,z);if(s||!ee){M(z);return}i++,(se=r.onFail)==null||se.call(r,i,z),bg(D).then(()=>w()?void 0:g()).then(()=>{s?M(z):B()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:p,continueRetry:y,canStart:P,start:()=>(P()?B():g().then(B),c)}}var Ar,Wh,sp=(Wh=class{constructor(){oe(this,Ar)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Eu(this.gcTime)&&G(this,Ar,Lr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(Kr?1/0:300*1e3))}clearGcTimeout(){x(this,Ar)&&(Lr.clearTimeout(x(this,Ar)),G(this,Ar,void 0))}},Ar=new WeakMap,Wh),Ur,Ds,Bt,Br,rt,Vo,Wr,tn,_n,Vh,Tg=(Vh=class extends sp{constructor(s){super();oe(this,tn);oe(this,Ur);oe(this,Ds);oe(this,Bt);oe(this,Br);oe(this,rt);oe(this,Vo);oe(this,Wr);G(this,Wr,!1),G(this,Vo,s.defaultOptions),this.setOptions(s.options),this.observers=[],G(this,Br,s.client),G(this,Bt,x(this,Br).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,G(this,Ur,oh(this.options)),this.state=s.state??x(this,Ur),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=x(this,rt))==null?void 0:s.promise}setOptions(s){if(this.options={...x(this,Vo),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=oh(this.options);i.data!==void 0&&(this.setState(sh(i.data,i.dataUpdatedAt)),G(this,Ur,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,Bt).remove(this)}setData(s,i){const l=Pu(this.state.data,s,this.options);return ve(this,tn,_n).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(s,i){ve(this,tn,_n).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var l,c;const i=(l=x(this,rt))==null?void 0:l.promise;return(c=x(this,rt))==null||c.cancel(s),i?i.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,Ur))}isActive(){return this.observers.some(s=>Wt(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>xr(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!Jh(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(l=>l.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=x(this,rt))==null||i.continue()}onOnline(){var i;const s=this.observers.find(l=>l.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=x(this,rt))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),x(this,Bt).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(x(this,rt)&&(x(this,Wr)?x(this,rt).cancel({revert:!0}):x(this,rt).cancelRetry()),this.scheduleGc()),x(this,Bt).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,tn,_n).call(this,{type:"invalidate"})}async fetch(s,i){var y,w,P,j,M,g,B,E,N,z,$,K;if(this.state.fetchStatus!=="idle"&&((y=x(this,rt))==null?void 0:y.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(x(this,rt))return x(this,rt).continueRetry(),x(this,rt).promise}if(s&&this.setOptions(s),!this.options.queryFn){const D=this.observers.find(ee=>ee.options.queryFn);D&&this.setOptions(D.options)}const l=new AbortController,c=D=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>(G(this,Wr,!0),l.signal)})},f=()=>{const D=tp(this.options,i),se=(()=>{const ne={client:x(this,Br),queryKey:this.queryKey,meta:this.meta};return c(ne),ne})();return G(this,Wr,!1),this.options.persister?this.options.persister(D,se,this):D(se)},p=(()=>{const D={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:x(this,Br),state:this.state,fetchFn:f};return c(D),D})();(w=this.options.behavior)==null||w.onFetch(p,this),G(this,Ds,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((P=p.fetchOptions)==null?void 0:P.meta))&&ve(this,tn,_n).call(this,{type:"fetch",meta:(j=p.fetchOptions)==null?void 0:j.meta}),G(this,rt,rp({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:D=>{D instanceof Mu&&D.revert&&this.setState({...x(this,Ds),fetchStatus:"idle"}),l.abort()},onFail:(D,ee)=>{ve(this,tn,_n).call(this,{type:"failed",failureCount:D,error:ee})},onPause:()=>{ve(this,tn,_n).call(this,{type:"pause"})},onContinue:()=>{ve(this,tn,_n).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const D=await x(this,rt).start();if(D===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(D),(g=(M=x(this,Bt).config).onSuccess)==null||g.call(M,D,this),(E=(B=x(this,Bt).config).onSettled)==null||E.call(B,D,this.state.error,this),D}catch(D){if(D instanceof Mu){if(D.silent)return x(this,rt).promise;if(D.revert){if(this.state.data===void 0)throw D;return this.state.data}}throw ve(this,tn,_n).call(this,{type:"error",error:D}),(z=(N=x(this,Bt).config).onError)==null||z.call(N,D,this),(K=($=x(this,Bt).config).onSettled)==null||K.call($,this.state.data,D,this),D}finally{this.scheduleGc()}}},Ur=new WeakMap,Ds=new WeakMap,Bt=new WeakMap,Br=new WeakMap,rt=new WeakMap,Vo=new WeakMap,Wr=new WeakMap,tn=new WeakSet,_n=function(s){const i=l=>{switch(s.type){case"failed":return{...l,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...op(l.data,this.options),fetchMeta:s.meta??null};case"success":const c={...l,...sh(s.data,s.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return G(this,Ds,s.manual?c:void 0),c;case"error":const f=s.error;return{...l,error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...s.state}}};this.state=i(this.state),Ze.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),x(this,Bt).notify({query:this,type:"updated",action:s})})},Vh);function op(r,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:np(s.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function sh(r,s){return{data:r,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function oh(r){const s=typeof r.initialData=="function"?r.initialData():r.initialData,i=s!==void 0,l=i?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:i?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Nt,Se,Ho,vt,Vr,Ls,On,hr,Qo,Fs,As,Hr,Qr,pr,Us,je,Ao,Ru,Tu,_u,Ou,zu,Iu,Du,ip,Hh,_g=(Hh=class extends Qs{constructor(s,i){super();oe(this,je);oe(this,Nt);oe(this,Se);oe(this,Ho);oe(this,vt);oe(this,Vr);oe(this,Ls);oe(this,On);oe(this,hr);oe(this,Qo);oe(this,Fs);oe(this,As);oe(this,Hr);oe(this,Qr);oe(this,pr);oe(this,Us,new Set);this.options=i,G(this,Nt,s),G(this,hr,null),G(this,On,ju()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(x(this,Se).addObserver(this),ih(x(this,Se),this.options)?ve(this,je,Ao).call(this):this.updateResult(),ve(this,je,Ou).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lu(x(this,Se),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lu(x(this,Se),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,je,zu).call(this),ve(this,je,Iu).call(this),x(this,Se).removeObserver(this)}setOptions(s){const i=this.options,l=x(this,Se);if(this.options=x(this,Nt).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wt(this.options.enabled,x(this,Se))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,je,Du).call(this),x(this,Se).setOptions(this.options),i._defaulted&&!ba(this.options,i)&&x(this,Nt).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,Se),observer:this});const c=this.hasListeners();c&&ah(x(this,Se),l,this.options,i)&&ve(this,je,Ao).call(this),this.updateResult(),c&&(x(this,Se)!==l||Wt(this.options.enabled,x(this,Se))!==Wt(i.enabled,x(this,Se))||xr(this.options.staleTime,x(this,Se))!==xr(i.staleTime,x(this,Se)))&&ve(this,je,Ru).call(this);const f=ve(this,je,Tu).call(this);c&&(x(this,Se)!==l||Wt(this.options.enabled,x(this,Se))!==Wt(i.enabled,x(this,Se))||f!==x(this,pr))&&ve(this,je,_u).call(this,f)}getOptimisticResult(s){const i=x(this,Nt).getQueryCache().build(x(this,Nt),s),l=this.createResult(i,s);return zg(this,l)&&(G(this,vt,l),G(this,Ls,this.options),G(this,Vr,x(this,Se).state)),l}getCurrentResult(){return x(this,vt)}trackResult(s,i){return new Proxy(s,{get:(l,c)=>(this.trackProp(c),i==null||i(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&x(this,On).status==="pending"&&x(this,On).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(s){x(this,Us).add(s)}getCurrentQuery(){return x(this,Se)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=x(this,Nt).defaultQueryOptions(s),l=x(this,Nt).getQueryCache().build(x(this,Nt),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(s){return ve(this,je,Ao).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,vt)))}createResult(s,i){var pe;const l=x(this,Se),c=this.options,f=x(this,vt),m=x(this,Vr),p=x(this,Ls),w=s!==l?s.state:x(this,Ho),{state:P}=s;let j={...P},M=!1,g;if(i._optimisticResults){const ge=this.hasListeners(),Ne=!ge&&ih(s,i),ae=ge&&ah(s,l,i,c);(Ne||ae)&&(j={...j,...op(P.data,s.options)}),i._optimisticResults==="isRestoring"&&(j.fetchStatus="idle")}let{error:B,errorUpdatedAt:E,status:N}=j;g=j.data;let z=!1;if(i.placeholderData!==void 0&&g===void 0&&N==="pending"){let ge;f!=null&&f.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(ge=f.data,z=!0):ge=typeof i.placeholderData=="function"?i.placeholderData((pe=x(this,As))==null?void 0:pe.state.data,x(this,As)):i.placeholderData,ge!==void 0&&(N="success",g=Pu(f==null?void 0:f.data,ge,i),M=!0)}if(i.select&&g!==void 0&&!z)if(f&&g===(m==null?void 0:m.data)&&i.select===x(this,Qo))g=x(this,Fs);else try{G(this,Qo,i.select),g=i.select(g),g=Pu(f==null?void 0:f.data,g,i),G(this,Fs,g),G(this,hr,null)}catch(ge){G(this,hr,ge)}x(this,hr)&&(B=x(this,hr),g=x(this,Fs),E=Date.now(),N="error");const $=j.fetchStatus==="fetching",K=N==="pending",D=N==="error",ee=K&&$,se=g!==void 0,ie={status:N,fetchStatus:j.fetchStatus,isPending:K,isSuccess:N==="success",isError:D,isInitialLoading:ee,isLoading:ee,data:g,dataUpdatedAt:j.dataUpdatedAt,error:B,errorUpdatedAt:E,failureCount:j.fetchFailureCount,failureReason:j.fetchFailureReason,errorUpdateCount:j.errorUpdateCount,isFetched:j.dataUpdateCount>0||j.errorUpdateCount>0,isFetchedAfterMount:j.dataUpdateCount>w.dataUpdateCount||j.errorUpdateCount>w.errorUpdateCount,isFetching:$,isRefetching:$&&!K,isLoadingError:D&&!se,isPaused:j.fetchStatus==="paused",isPlaceholderData:M,isRefetchError:D&&se,isStale:Ju(s,i),refetch:this.refetch,promise:x(this,On),isEnabled:Wt(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const ge=ie.data!==void 0,Ne=ie.status==="error"&&!ge,ae=Be=>{Ne?Be.reject(ie.error):ge&&Be.resolve(ie.data)},Ae=()=>{const Be=G(this,On,ie.promise=ju());ae(Be)},Te=x(this,On);switch(Te.status){case"pending":s.queryHash===l.queryHash&&ae(Te);break;case"fulfilled":(Ne||ie.data!==Te.value)&&Ae();break;case"rejected":(!Ne||ie.error!==Te.reason)&&Ae();break}}return ie}updateResult(){const s=x(this,vt),i=this.createResult(x(this,Se),this.options);if(G(this,Vr,x(this,Se).state),G(this,Ls,this.options),x(this,Vr).data!==void 0&&G(this,As,x(this,Se)),ba(i,s))return;G(this,vt,i);const l=()=>{if(!s)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!x(this,Us).size)return!0;const m=new Set(f??x(this,Us));return this.options.throwOnError&&m.add("error"),Object.keys(x(this,vt)).some(p=>{const y=p;return x(this,vt)[y]!==s[y]&&m.has(y)})};ve(this,je,ip).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,je,Ou).call(this)}},Nt=new WeakMap,Se=new WeakMap,Ho=new WeakMap,vt=new WeakMap,Vr=new WeakMap,Ls=new WeakMap,On=new WeakMap,hr=new WeakMap,Qo=new WeakMap,Fs=new WeakMap,As=new WeakMap,Hr=new WeakMap,Qr=new WeakMap,pr=new WeakMap,Us=new WeakMap,je=new WeakSet,Ao=function(s){ve(this,je,Du).call(this);let i=x(this,Se).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(gt)),i},Ru=function(){ve(this,je,zu).call(this);const s=xr(this.options.staleTime,x(this,Se));if(Kr||x(this,vt).isStale||!Eu(s))return;const l=Jh(x(this,vt).dataUpdatedAt,s)+1;G(this,Hr,Lr.setTimeout(()=>{x(this,vt).isStale||this.updateResult()},l))},Tu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,Se)):this.options.refetchInterval)??!1},_u=function(s){ve(this,je,Iu).call(this),G(this,pr,s),!(Kr||Wt(this.options.enabled,x(this,Se))===!1||!Eu(x(this,pr))||x(this,pr)===0)&&G(this,Qr,Lr.setInterval(()=>{(this.options.refetchIntervalInBackground||Zu.isFocused())&&ve(this,je,Ao).call(this)},x(this,pr)))},Ou=function(){ve(this,je,Ru).call(this),ve(this,je,_u).call(this,ve(this,je,Tu).call(this))},zu=function(){x(this,Hr)&&(Lr.clearTimeout(x(this,Hr)),G(this,Hr,void 0))},Iu=function(){x(this,Qr)&&(Lr.clearInterval(x(this,Qr)),G(this,Qr,void 0))},Du=function(){const s=x(this,Nt).getQueryCache().build(x(this,Nt),this.options);if(s===x(this,Se))return;const i=x(this,Se);G(this,Se,s),G(this,Ho,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},ip=function(s){Ze.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(x(this,vt))}),x(this,Nt).getQueryCache().notify({query:x(this,Se),type:"observerResultsUpdated"})})},Hh);function Og(r,s){return Wt(s.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&s.retryOnMount===!1)}function ih(r,s){return Og(r,s)||r.state.data!==void 0&&Lu(r,s,s.refetchOnMount)}function Lu(r,s,i){if(Wt(s.enabled,r)!==!1&&xr(s.staleTime,r)!=="static"){const l=typeof i=="function"?i(r):i;return l==="always"||l!==!1&&Ju(r,s)}return!1}function ah(r,s,i,l){return(r!==s||Wt(l.enabled,r)===!1)&&(!i.suspense||r.state.status!=="error")&&Ju(r,i)}function Ju(r,s){return Wt(s.enabled,r)!==!1&&r.isStaleByTime(xr(s.staleTime,r))}function zg(r,s){return!ba(r.getCurrentResult(),s)}function lh(r){return{onFetch:(s,i)=>{var P,j,M,g,B;const l=s.options,c=(M=(j=(P=s.fetchOptions)==null?void 0:P.meta)==null?void 0:j.fetchMore)==null?void 0:M.direction,f=((g=s.state.data)==null?void 0:g.pages)||[],m=((B=s.state.data)==null?void 0:B.pageParams)||[];let p={pages:[],pageParams:[]},y=0;const w=async()=>{let E=!1;const N=K=>{Eg(K,()=>s.signal,()=>E=!0)},z=tp(s.options,s.fetchOptions),$=async(K,D,ee)=>{if(E)return Promise.reject();if(D==null&&K.pages.length)return Promise.resolve(K);const ne=(()=>{const Ne={client:s.client,queryKey:s.queryKey,pageParam:D,direction:ee?"backward":"forward",meta:s.options.meta};return N(Ne),Ne})(),ie=await z(ne),{maxPages:pe}=s.options,ge=ee?Cg:kg;return{pages:ge(K.pages,ie,pe),pageParams:ge(K.pageParams,D,pe)}};if(c&&f.length){const K=c==="backward",D=K?Ig:uh,ee={pages:f,pageParams:m},se=D(l,ee);p=await $(ee,se,K)}else{const K=r??f.length;do{const D=y===0?m[0]??l.initialPageParam:uh(l,p);if(y>0&&D==null)break;p=await $(p,D),y++}while(y<K)}return p};s.options.persister?s.fetchFn=()=>{var E,N;return(N=(E=s.options).persister)==null?void 0:N.call(E,w,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=w}}}function uh(r,{pages:s,pageParams:i}){const l=s.length-1;return s.length>0?r.getNextPageParam(s[l],s,i[l],i):void 0}function Ig(r,{pages:s,pageParams:i}){var l;return s.length>0?(l=r.getPreviousPageParam)==null?void 0:l.call(r,s[0],s,i[0],i):void 0}var $o,yn,dt,$r,xn,lr,Qh,Dg=(Qh=class extends sp{constructor(s){super();oe(this,xn);oe(this,$o);oe(this,yn);oe(this,dt);oe(this,$r);G(this,$o,s.client),this.mutationId=s.mutationId,G(this,dt,s.mutationCache),G(this,yn,[]),this.state=s.state||ap(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){x(this,yn).includes(s)||(x(this,yn).push(s),this.clearGcTimeout(),x(this,dt).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){G(this,yn,x(this,yn).filter(i=>i!==s)),this.scheduleGc(),x(this,dt).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){x(this,yn).length||(this.state.status==="pending"?this.scheduleGc():x(this,dt).remove(this))}continue(){var s;return((s=x(this,$r))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var m,p,y,w,P,j,M,g,B,E,N,z,$,K,D,ee,se,ne;const i=()=>{ve(this,xn,lr).call(this,{type:"continue"})},l={client:x(this,$o),meta:this.options.meta,mutationKey:this.options.mutationKey};G(this,$r,rp({fn:()=>this.options.mutationFn?this.options.mutationFn(s,l):Promise.reject(new Error("No mutationFn found")),onFail:(ie,pe)=>{ve(this,xn,lr).call(this,{type:"failed",failureCount:ie,error:pe})},onPause:()=>{ve(this,xn,lr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,dt).canRun(this)}));const c=this.state.status==="pending",f=!x(this,$r).canStart();try{if(c)i();else{ve(this,xn,lr).call(this,{type:"pending",variables:s,isPaused:f}),x(this,dt).config.onMutate&&await x(this,dt).config.onMutate(s,this,l);const pe=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,s,l));pe!==this.state.context&&ve(this,xn,lr).call(this,{type:"pending",context:pe,variables:s,isPaused:f})}const ie=await x(this,$r).start();return await((w=(y=x(this,dt).config).onSuccess)==null?void 0:w.call(y,ie,s,this.state.context,this,l)),await((j=(P=this.options).onSuccess)==null?void 0:j.call(P,ie,s,this.state.context,l)),await((g=(M=x(this,dt).config).onSettled)==null?void 0:g.call(M,ie,null,this.state.variables,this.state.context,this,l)),await((E=(B=this.options).onSettled)==null?void 0:E.call(B,ie,null,s,this.state.context,l)),ve(this,xn,lr).call(this,{type:"success",data:ie}),ie}catch(ie){try{await((z=(N=x(this,dt).config).onError)==null?void 0:z.call(N,ie,s,this.state.context,this,l))}catch(pe){Promise.reject(pe)}try{await((K=($=this.options).onError)==null?void 0:K.call($,ie,s,this.state.context,l))}catch(pe){Promise.reject(pe)}try{await((ee=(D=x(this,dt).config).onSettled)==null?void 0:ee.call(D,void 0,ie,this.state.variables,this.state.context,this,l))}catch(pe){Promise.reject(pe)}try{await((ne=(se=this.options).onSettled)==null?void 0:ne.call(se,void 0,ie,s,this.state.context,l))}catch(pe){Promise.reject(pe)}throw ve(this,xn,lr).call(this,{type:"error",error:ie}),ie}finally{x(this,dt).runNext(this)}}},$o=new WeakMap,yn=new WeakMap,dt=new WeakMap,$r=new WeakMap,xn=new WeakSet,lr=function(s){const i=l=>{switch(s.type){case"failed":return{...l,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...l,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:s.error,failureCount:l.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Ze.batch(()=>{x(this,yn).forEach(l=>{l.onMutationUpdate(s)}),x(this,dt).notify({mutation:this,type:"updated",action:s})})},Qh);function ap(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zn,nn,Ko,$h,Lg=($h=class extends Qs{constructor(s={}){super();oe(this,zn);oe(this,nn);oe(this,Ko);this.config=s,G(this,zn,new Set),G(this,nn,new Map),G(this,Ko,0)}build(s,i,l){const c=new Dg({client:s,mutationCache:this,mutationId:++ua(this,Ko)._,options:s.defaultMutationOptions(i),state:l});return this.add(c),c}add(s){x(this,zn).add(s);const i=da(s);if(typeof i=="string"){const l=x(this,nn).get(i);l?l.push(s):x(this,nn).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(x(this,zn).delete(s)){const i=da(s);if(typeof i=="string"){const l=x(this,nn).get(i);if(l)if(l.length>1){const c=l.indexOf(s);c!==-1&&l.splice(c,1)}else l[0]===s&&x(this,nn).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=da(s);if(typeof i=="string"){const l=x(this,nn).get(i),c=l==null?void 0:l.find(f=>f.state.status==="pending");return!c||c===s}else return!0}runNext(s){var l;const i=da(s);if(typeof i=="string"){const c=(l=x(this,nn).get(i))==null?void 0:l.find(f=>f!==s&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ze.batch(()=>{x(this,zn).forEach(s=>{this.notify({type:"removed",mutation:s})}),x(this,zn).clear(),x(this,nn).clear()})}getAll(){return Array.from(x(this,zn))}find(s){const i={exact:!0,...s};return this.getAll().find(l=>th(i,l))}findAll(s={}){return this.getAll().filter(i=>th(s,i))}notify(s){Ze.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return Ze.batch(()=>Promise.all(s.map(i=>i.continue().catch(gt))))}},zn=new WeakMap,nn=new WeakMap,Ko=new WeakMap,$h);function da(r){var s;return(s=r.options.scope)==null?void 0:s.id}var In,mr,Pt,Dn,Ln,ya,Fu,Kh,Fg=(Kh=class extends Qs{constructor(i,l){super();oe(this,Ln);oe(this,In);oe(this,mr);oe(this,Pt);oe(this,Dn);G(this,In,i),this.setOptions(l),this.bindMethods(),ve(this,Ln,ya).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var c;const l=this.options;this.options=x(this,In).defaultMutationOptions(i),ba(this.options,l)||x(this,In).getMutationCache().notify({type:"observerOptionsUpdated",mutation:x(this,Pt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&Gr(l.mutationKey)!==Gr(this.options.mutationKey)?this.reset():((c=x(this,Pt))==null?void 0:c.state.status)==="pending"&&x(this,Pt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=x(this,Pt))==null||i.removeObserver(this)}onMutationUpdate(i){ve(this,Ln,ya).call(this),ve(this,Ln,Fu).call(this,i)}getCurrentResult(){return x(this,mr)}reset(){var i;(i=x(this,Pt))==null||i.removeObserver(this),G(this,Pt,void 0),ve(this,Ln,ya).call(this),ve(this,Ln,Fu).call(this)}mutate(i,l){var c;return G(this,Dn,l),(c=x(this,Pt))==null||c.removeObserver(this),G(this,Pt,x(this,In).getMutationCache().build(x(this,In),this.options)),x(this,Pt).addObserver(this),x(this,Pt).execute(i)}},In=new WeakMap,mr=new WeakMap,Pt=new WeakMap,Dn=new WeakMap,Ln=new WeakSet,ya=function(){var l;const i=((l=x(this,Pt))==null?void 0:l.state)??ap();G(this,mr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Fu=function(i){Ze.batch(()=>{var l,c,f,m,p,y,w,P;if(x(this,Dn)&&this.hasListeners()){const j=x(this,mr).variables,M=x(this,mr).context,g={client:x(this,In),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(c=(l=x(this,Dn)).onSuccess)==null||c.call(l,i.data,j,M,g)}catch(B){Promise.reject(B)}try{(m=(f=x(this,Dn)).onSettled)==null||m.call(f,i.data,null,j,M,g)}catch(B){Promise.reject(B)}}else if((i==null?void 0:i.type)==="error"){try{(y=(p=x(this,Dn)).onError)==null||y.call(p,i.error,j,M,g)}catch(B){Promise.reject(B)}try{(P=(w=x(this,Dn)).onSettled)==null||P.call(w,void 0,i.error,j,M,g)}catch(B){Promise.reject(B)}}}this.listeners.forEach(j=>{j(x(this,mr))})})},Kh),wn,Gh,Ag=(Gh=class extends Qs{constructor(s={}){super();oe(this,wn);this.config=s,G(this,wn,new Map)}build(s,i,l){const c=i.queryKey,f=i.queryHash??qu(c,i);let m=this.get(f);return m||(m=new Tg({client:s,queryKey:c,queryHash:f,options:s.defaultQueryOptions(i),state:l,defaultOptions:s.getQueryDefaults(c)}),this.add(m)),m}add(s){x(this,wn).has(s.queryHash)||(x(this,wn).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=x(this,wn).get(s.queryHash);i&&(s.destroy(),i===s&&x(this,wn).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){Ze.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return x(this,wn).get(s)}getAll(){return[...x(this,wn).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(l=>eh(i,l))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(l=>eh(s,l)):i}notify(s){Ze.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},wn=new WeakMap,Gh),$e,vr,gr,Bs,Ws,yr,Vs,Hs,qh,Ug=(qh=class{constructor(r={}){oe(this,$e);oe(this,vr);oe(this,gr);oe(this,Bs);oe(this,Ws);oe(this,yr);oe(this,Vs);oe(this,Hs);G(this,$e,r.queryCache||new Ag),G(this,vr,r.mutationCache||new Lg),G(this,gr,r.defaultOptions||{}),G(this,Bs,new Map),G(this,Ws,new Map),G(this,yr,0)}mount(){ua(this,yr)._++,x(this,yr)===1&&(G(this,Vs,Zu.subscribe(async r=>{r&&(await this.resumePausedMutations(),x(this,$e).onFocus())})),G(this,Hs,ka.subscribe(async r=>{r&&(await this.resumePausedMutations(),x(this,$e).onOnline())})))}unmount(){var r,s;ua(this,yr)._--,x(this,yr)===0&&((r=x(this,Vs))==null||r.call(this),G(this,Vs,void 0),(s=x(this,Hs))==null||s.call(this),G(this,Hs,void 0))}isFetching(r){return x(this,$e).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return x(this,vr).findAll({...r,status:"pending"}).length}getQueryData(r){var i;const s=this.defaultQueryOptions({queryKey:r});return(i=x(this,$e).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(r){const s=this.defaultQueryOptions(r),i=x(this,$e).build(this,s),l=i.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&i.isStaleByTime(xr(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(l))}getQueriesData(r){return x(this,$e).findAll(r).map(({queryKey:s,state:i})=>{const l=i.data;return[s,l]})}setQueryData(r,s,i){const l=this.defaultQueryOptions({queryKey:r}),c=x(this,$e).get(l.queryHash),f=c==null?void 0:c.state.data,m=wg(s,f);if(m!==void 0)return x(this,$e).build(this,l).setData(m,{...i,manual:!0})}setQueriesData(r,s,i){return Ze.batch(()=>x(this,$e).findAll(r).map(({queryKey:l})=>[l,this.setQueryData(l,s,i)]))}getQueryState(r){var i;const s=this.defaultQueryOptions({queryKey:r});return(i=x(this,$e).get(s.queryHash))==null?void 0:i.state}removeQueries(r){const s=x(this,$e);Ze.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(r,s){const i=x(this,$e);return Ze.batch(()=>(i.findAll(r).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...r},s)))}cancelQueries(r,s={}){const i={revert:!0,...s},l=Ze.batch(()=>x(this,$e).findAll(r).map(c=>c.cancel(i)));return Promise.all(l).then(gt).catch(gt)}invalidateQueries(r,s={}){return Ze.batch(()=>(x(this,$e).findAll(r).forEach(i=>{i.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},s)))}refetchQueries(r,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},l=Ze.batch(()=>x(this,$e).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,i);return i.throwOnError||(f=f.catch(gt)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(gt)}fetchQuery(r){const s=this.defaultQueryOptions(r);s.retry===void 0&&(s.retry=!1);const i=x(this,$e).build(this,s);return i.isStaleByTime(xr(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(gt).catch(gt)}fetchInfiniteQuery(r){return r.behavior=lh(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(gt).catch(gt)}ensureInfiniteQueryData(r){return r.behavior=lh(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return ka.isOnline()?x(this,vr).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,$e)}getMutationCache(){return x(this,vr)}getDefaultOptions(){return x(this,gr)}setDefaultOptions(r){G(this,gr,r)}setQueryDefaults(r,s){x(this,Bs).set(Gr(r),{queryKey:r,defaultOptions:s})}getQueryDefaults(r){const s=[...x(this,Bs).values()],i={};return s.forEach(l=>{Uo(r,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(r,s){x(this,Ws).set(Gr(r),{mutationKey:r,defaultOptions:s})}getMutationDefaults(r){const s=[...x(this,Ws).values()],i={};return s.forEach(l=>{Uo(r,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(r){if(r._defaulted)return r;const s={...x(this,gr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return s.queryHash||(s.queryHash=qu(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===Yu&&(s.enabled=!1),s}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...x(this,gr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){x(this,$e).clear(),x(this,vr).clear()}},$e=new WeakMap,vr=new WeakMap,gr=new WeakMap,Bs=new WeakMap,Ws=new WeakMap,yr=new WeakMap,Vs=new WeakMap,Hs=new WeakMap,qh),lp=b.createContext(void 0),$s=r=>{const s=b.useContext(lp);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},Bg=({client:r,children:s})=>(b.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),h.jsx(lp.Provider,{value:r,children:s})),up=b.createContext(!1),Wg=()=>b.useContext(up);up.Provider;function Vg(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var Hg=b.createContext(Vg()),Qg=()=>b.useContext(Hg),$g=(r,s,i)=>{const l=i!=null&&i.state.error&&typeof r.throwOnError=="function"?Xu(r.throwOnError,[i.state.error,i]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(s.isReset()||(r.retryOnMount=!1))},Kg=r=>{b.useEffect(()=>{r.clearReset()},[r])},Gg=({result:r,errorResetBoundary:s,throwOnError:i,query:l,suspense:c})=>r.isError&&!s.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||Xu(i,[r.error,l])),qg=r=>{if(r.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),l=r.staleTime;r.staleTime=typeof l=="function"?(...c)=>i(l(...c)):i(l),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},Yg=(r,s)=>r.isLoading&&r.isFetching&&!s,Xg=(r,s)=>(r==null?void 0:r.suspense)&&s.isPending,ch=(r,s,i)=>s.fetchOptimistic(r).catch(()=>{i.clearReset()});function Zg(r,s,i){var M,g,B,E;const l=Wg(),c=Qg(),f=$s(),m=f.defaultQueryOptions(r);(g=(M=f.getDefaultOptions().queries)==null?void 0:M._experimental_beforeQuery)==null||g.call(M,m);const p=f.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",qg(m),$g(m,c,p),Kg(c);const y=!f.getQueryCache().get(m.queryHash),[w]=b.useState(()=>new s(f,m)),P=w.getOptimisticResult(m),j=!l&&r.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(N=>{const z=j?w.subscribe(Ze.batchCalls(N)):gt;return w.updateResult(),z},[w,j]),()=>w.getCurrentResult(),()=>w.getCurrentResult()),b.useEffect(()=>{w.setOptions(m)},[m,w]),Xg(m,P))throw ch(m,w,c);if(Gg({result:P,errorResetBoundary:c,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw P.error;if((E=(B=f.getDefaultOptions().queries)==null?void 0:B._experimental_afterQuery)==null||E.call(B,m,P),m.experimental_prefetchInRender&&!Kr&&Yg(P,l)){const N=y?ch(m,w,c):p==null?void 0:p.promise;N==null||N.catch(gt).finally(()=>{w.updateResult()})}return m.notifyOnChangeProps?P:w.trackResult(P)}function cp(r,s){return Zg(r,_g)}function Go(r,s){const i=$s(),[l]=b.useState(()=>new Fg(i,r));b.useEffect(()=>{l.setOptions(r)},[l,r]);const c=b.useSyncExternalStore(b.useCallback(m=>l.subscribe(Ze.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f=b.useCallback((m,p)=>{l.mutate(m,p).catch(gt)},[l]);if(c.error&&Xu(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}const dh=r=>{let s;const i=new Set,l=(w,P)=>{const j=typeof w=="function"?w(s):w;if(!Object.is(j,s)){const M=s;s=P??(typeof j!="object"||j===null)?j:Object.assign({},s,j),i.forEach(g=>g(s,M))}},c=()=>s,p={setState:l,getState:c,getInitialState:()=>y,subscribe:w=>(i.add(w),()=>i.delete(w))},y=s=r(l,c,p);return p},Jg=(r=>r?dh(r):dh),ey=r=>r;function ty(r,s=ey){const i=H.useSyncExternalStore(r.subscribe,H.useCallback(()=>s(r.getState()),[r,s]),H.useCallback(()=>s(r.getInitialState()),[r,s]));return H.useDebugValue(i),i}const fh=r=>{const s=Jg(r),i=l=>ty(s,l);return Object.assign(i,s),i},ny=(r=>r?fh(r):fh),Yr=ny(r=>({activeTab:"model",setActiveTab:s=>r({activeTab:s}),connectionStatus:"disconnected",setConnectionStatus:s=>r({connectionStatus:s}),providerModal:{open:!1},openProviderModal:s=>r({providerModal:{open:!0,provider:s}}),closeProviderModal:()=>r({providerModal:{open:!1}}),channelModal:{open:!1},openChannelModal:s=>r({channelModal:{open:!0,channel:s}}),closeChannelModal:()=>r({channelModal:{open:!1}})}));function dp(r){var s,i,l="";if(typeof r=="string"||typeof r=="number")l+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(s=0;s<c;s++)r[s]&&(i=dp(r[s]))&&(l&&(l+=" "),l+=i)}else for(i in r)r[i]&&(l&&(l+=" "),l+=i);return l}function fp(){for(var r,s,i=0,l="",c=arguments.length;i<c;i++)(r=arguments[i])&&(s=dp(r))&&(l&&(l+=" "),l+=s);return l}const ec="-",ry=r=>{const s=oy(r),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const p=m.split(ec);return p[0]===""&&p.length!==1&&p.shift(),hp(p,s)||sy(m)},getConflictingClassGroupIds:(m,p)=>{const y=i[m]||[];return p&&l[m]?[...y,...l[m]]:y}}},hp=(r,s)=>{var m;if(r.length===0)return s.classGroupId;const i=r[0],l=s.nextPart.get(i),c=l?hp(r.slice(1),l):void 0;if(c)return c;if(s.validators.length===0)return;const f=r.join(ec);return(m=s.validators.find(({validator:p})=>p(f)))==null?void 0:m.classGroupId},hh=/^\[(.+)\]$/,sy=r=>{if(hh.test(r)){const s=hh.exec(r)[1],i=s==null?void 0:s.substring(0,s.indexOf(":"));if(i)return"arbitrary.."+i}},oy=r=>{const{theme:s,prefix:i}=r,l={nextPart:new Map,validators:[]};return ay(Object.entries(r.classGroups),i).forEach(([f,m])=>{Au(m,l,f,s)}),l},Au=(r,s,i,l)=>{r.forEach(c=>{if(typeof c=="string"){const f=c===""?s:ph(s,c);f.classGroupId=i;return}if(typeof c=="function"){if(iy(c)){Au(c(l),s,i,l);return}s.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([f,m])=>{Au(m,ph(s,f),i,l)})})},ph=(r,s)=>{let i=r;return s.split(ec).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},iy=r=>r.isThemeGetter,ay=(r,s)=>s?r.map(([i,l])=>{const c=l.map(f=>typeof f=="string"?s+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([m,p])=>[s+m,p])):f);return[i,c]}):r,ly=r=>{if(r<1)return{get:()=>{},set:()=>{}};let s=0,i=new Map,l=new Map;const c=(f,m)=>{i.set(f,m),s++,s>r&&(s=0,l=i,i=new Map)};return{get(f){let m=i.get(f);if(m!==void 0)return m;if((m=l.get(f))!==void 0)return c(f,m),m},set(f,m){i.has(f)?i.set(f,m):c(f,m)}}},pp="!",uy=r=>{const{separator:s,experimentalParseClassName:i}=r,l=s.length===1,c=s[0],f=s.length,m=p=>{const y=[];let w=0,P=0,j;for(let N=0;N<p.length;N++){let z=p[N];if(w===0){if(z===c&&(l||p.slice(N,N+f)===s)){y.push(p.slice(P,N)),P=N+f;continue}if(z==="/"){j=N;continue}}z==="["?w++:z==="]"&&w--}const M=y.length===0?p:p.substring(P),g=M.startsWith(pp),B=g?M.substring(1):M,E=j&&j>P?j-P:void 0;return{modifiers:y,hasImportantModifier:g,baseClassName:B,maybePostfixModifierPosition:E}};return i?p=>i({className:p,parseClassName:m}):m},cy=r=>{if(r.length<=1)return r;const s=[];let i=[];return r.forEach(l=>{l[0]==="["?(s.push(...i.sort(),l),i=[]):i.push(l)}),s.push(...i.sort()),s},dy=r=>({cache:ly(r.cacheSize),parseClassName:uy(r),...ry(r)}),fy=/\s+/,hy=(r,s)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:c}=s,f=[],m=r.trim().split(fy);let p="";for(let y=m.length-1;y>=0;y-=1){const w=m[y],{modifiers:P,hasImportantModifier:j,baseClassName:M,maybePostfixModifierPosition:g}=i(w);let B=!!g,E=l(B?M.substring(0,g):M);if(!E){if(!B){p=w+(p.length>0?" "+p:p);continue}if(E=l(M),!E){p=w+(p.length>0?" "+p:p);continue}B=!1}const N=cy(P).join(":"),z=j?N+pp:N,$=z+E;if(f.includes($))continue;f.push($);const K=c(E,B);for(let D=0;D<K.length;++D){const ee=K[D];f.push(z+ee)}p=w+(p.length>0?" "+p:p)}return p};function py(){let r=0,s,i,l="";for(;r<arguments.length;)(s=arguments[r++])&&(i=mp(s))&&(l&&(l+=" "),l+=i);return l}const mp=r=>{if(typeof r=="string")return r;let s,i="";for(let l=0;l<r.length;l++)r[l]&&(s=mp(r[l]))&&(i&&(i+=" "),i+=s);return i};function my(r,...s){let i,l,c,f=m;function m(y){const w=s.reduce((P,j)=>j(P),r());return i=dy(w),l=i.cache.get,c=i.cache.set,f=p,p(y)}function p(y){const w=l(y);if(w)return w;const P=hy(y,i);return c(y,P),P}return function(){return f(py.apply(null,arguments))}}const Fe=r=>{const s=i=>i[r]||[];return s.isThemeGetter=!0,s},vp=/^\[(?:([a-z-]+):)?(.+)\]$/i,vy=/^\d+\/\d+$/,gy=new Set(["px","full","screen"]),yy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xy=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Sy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,by=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=r=>Rs(r)||gy.has(r)||vy.test(r),ir=r=>Ks(r,"length",Ry),Rs=r=>!!r&&!Number.isNaN(Number(r)),mu=r=>Ks(r,"number",Rs),Lo=r=>!!r&&Number.isInteger(Number(r)),ky=r=>r.endsWith("%")&&Rs(r.slice(0,-1)),me=r=>vp.test(r),ar=r=>yy.test(r),Cy=new Set(["length","size","percentage"]),Ey=r=>Ks(r,Cy,gp),Ny=r=>Ks(r,"position",gp),Py=new Set(["image","url"]),jy=r=>Ks(r,Py,_y),My=r=>Ks(r,"",Ty),Fo=()=>!0,Ks=(r,s,i)=>{const l=vp.exec(r);return l?l[1]?typeof s=="string"?l[1]===s:s.has(l[1]):i(l[2]):!1},Ry=r=>xy.test(r)&&!wy.test(r),gp=()=>!1,Ty=r=>Sy.test(r),_y=r=>by.test(r),Oy=()=>{const r=Fe("colors"),s=Fe("spacing"),i=Fe("blur"),l=Fe("brightness"),c=Fe("borderColor"),f=Fe("borderRadius"),m=Fe("borderSpacing"),p=Fe("borderWidth"),y=Fe("contrast"),w=Fe("grayscale"),P=Fe("hueRotate"),j=Fe("invert"),M=Fe("gap"),g=Fe("gradientColorStops"),B=Fe("gradientColorStopPositions"),E=Fe("inset"),N=Fe("margin"),z=Fe("opacity"),$=Fe("padding"),K=Fe("saturate"),D=Fe("scale"),ee=Fe("sepia"),se=Fe("skew"),ne=Fe("space"),ie=Fe("translate"),pe=()=>["auto","contain","none"],ge=()=>["auto","hidden","clip","visible","scroll"],Ne=()=>["auto",me,s],ae=()=>[me,s],Ae=()=>["",Tn,ir],Te=()=>["auto",Rs,me],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_e=()=>["solid","dashed","dotted","double","none"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",me],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[Rs,me];return{cacheSize:500,separator:":",theme:{colors:[Fo],spacing:[Tn,ir],blur:["none","",ar,me],brightness:C(),borderColor:[r],borderRadius:["none","","full",ar,me],borderSpacing:ae(),borderWidth:Ae(),contrast:C(),grayscale:A(),hueRotate:C(),invert:A(),gap:ae(),gradientColorStops:[r],gradientColorStopPositions:[ky,ir],inset:Ne(),margin:Ne(),opacity:C(),padding:ae(),saturate:C(),scale:C(),sepia:A(),skew:C(),space:ae(),translate:ae()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Be(),me]}],overflow:[{overflow:ge()}],"overflow-x":[{"overflow-x":ge()}],"overflow-y":[{"overflow-y":ge()}],overscroll:[{overscroll:pe()}],"overscroll-x":[{"overscroll-x":pe()}],"overscroll-y":[{"overscroll-y":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Lo,me]}],basis:[{basis:Ne()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",Lo,me]}],"grid-cols":[{"grid-cols":[Fo]}],"col-start-end":[{col:["auto",{span:["full",Lo,me]},me]}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":[Fo]}],"row-start-end":[{row:["auto",{span:[Lo,me]},me]}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[M]}],"gap-x":[{"gap-x":[M]}],"gap-y":[{"gap-y":[M]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[$]}],px:[{px:[$]}],py:[{py:[$]}],ps:[{ps:[$]}],pe:[{pe:[$]}],pt:[{pt:[$]}],pr:[{pr:[$]}],pb:[{pb:[$]}],pl:[{pl:[$]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,s]}],"min-w":[{"min-w":[me,s,"min","max","fit"]}],"max-w":[{"max-w":[me,s,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[me,s,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,s,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,s,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,s,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mu]}],"font-family":[{font:[Fo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",me]}],"line-clamp":[{"line-clamp":["none",Rs,mu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,ir]}],"underline-offset":[{"underline-offset":["auto",Tn,me]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ae()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Be(),Ny]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ey]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jy]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[B]}],"gradient-via-pos":[{via:[B]}],"gradient-to-pos":[{to:[B]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[..._e(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:_e()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",..._e()]}],"outline-offset":[{"outline-offset":[Tn,me]}],"outline-w":[{outline:[Tn,ir]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[Tn,ir]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",ar,My]}],"shadow-color":[{shadow:[Fo]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...we(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":we()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",ar,me]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[P]}],invert:[{invert:[j]}],saturate:[{saturate:[K]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P]}],"backdrop-invert":[{"backdrop-invert":[j]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[K]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[Lo,me]}],"translate-x":[{"translate-x":[ie]}],"translate-y":[{"translate-y":[ie]}],"skew-x":[{"skew-x":[se]}],"skew-y":[{"skew-y":[se]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ae()}],"scroll-mx":[{"scroll-mx":ae()}],"scroll-my":[{"scroll-my":ae()}],"scroll-ms":[{"scroll-ms":ae()}],"scroll-me":[{"scroll-me":ae()}],"scroll-mt":[{"scroll-mt":ae()}],"scroll-mr":[{"scroll-mr":ae()}],"scroll-mb":[{"scroll-mb":ae()}],"scroll-ml":[{"scroll-ml":ae()}],"scroll-p":[{"scroll-p":ae()}],"scroll-px":[{"scroll-px":ae()}],"scroll-py":[{"scroll-py":ae()}],"scroll-ps":[{"scroll-ps":ae()}],"scroll-pe":[{"scroll-pe":ae()}],"scroll-pt":[{"scroll-pt":ae()}],"scroll-pr":[{"scroll-pr":ae()}],"scroll-pb":[{"scroll-pb":ae()}],"scroll-pl":[{"scroll-pl":ae()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Tn,ir,mu]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},zy=my(Oy);function Re(...r){return zy(fp(r))}/**
41
+ * @license lucide-react v0.462.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const Iy=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yp=(...r)=>r.filter((s,i,l)=>!!s&&s.trim()!==""&&l.indexOf(s)===i).join(" ").trim();/**
46
+ * @license lucide-react v0.462.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */var Dy={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"};/**
51
+ * @license lucide-react v0.462.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const Ly=b.forwardRef(({color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:f,iconNode:m,...p},y)=>b.createElement("svg",{ref:y,...Dy,width:s,height:s,stroke:r,strokeWidth:l?Number(i)*24/Number(s):i,className:yp("lucide",c),...p},[...m.map(([w,P])=>b.createElement(w,P)),...Array.isArray(f)?f:[f]]));/**
56
+ * @license lucide-react v0.462.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const ze=(r,s)=>{const i=b.forwardRef(({className:l,...c},f)=>b.createElement(Ly,{ref:f,iconNode:s,className:yp(`lucide-${Iy(r)}`,l),...c}));return i.displayName=`${r}`,i};/**
61
+ * @license lucide-react v0.462.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const Fy=ze("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
66
+ * @license lucide-react v0.462.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const Ay=ze("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
71
+ * @license lucide-react v0.462.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Uy=ze("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
76
+ * @license lucide-react v0.462.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const xp=ze("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
81
+ * @license lucide-react v0.462.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const By=ze("ExternalLink",[["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"}]]);/**
86
+ * @license lucide-react v0.462.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const Wy=ze("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
91
+ * @license lucide-react v0.462.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const Vy=ze("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
96
+ * @license lucide-react v0.462.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const Hy=ze("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
101
+ * @license lucide-react v0.462.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const wp=ze("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
106
+ * @license lucide-react v0.462.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const Sp=ze("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
111
+ * @license lucide-react v0.462.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Uu=ze("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
116
+ * @license lucide-react v0.462.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const Qy=ze("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
121
+ * @license lucide-react v0.462.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const tc=ze("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
126
+ * @license lucide-react v0.462.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const xa=ze("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
131
+ * @license lucide-react v0.462.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const bp=ze("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
136
+ * @license lucide-react v0.462.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const $y=ze("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
141
+ * @license lucide-react v0.462.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const kp=ze("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
146
+ * @license lucide-react v0.462.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Ky=ze("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
151
+ * @license lucide-react v0.462.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const mh=ze("RefreshCw",[["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"}]]);/**
156
+ * @license lucide-react v0.462.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const Gy=ze("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
161
+ * @license lucide-react v0.462.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const Cp=ze("Settings",[["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"}]]);/**
166
+ * @license lucide-react v0.462.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const qy=ze("Slack",[["rect",{width:"3",height:"8",x:"13",y:"2",rx:"1.5",key:"diqz80"}],["path",{d:"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5",key:"183iwg"}],["rect",{width:"3",height:"8",x:"8",y:"14",rx:"1.5",key:"hqg7r1"}],["path",{d:"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5",key:"76g71w"}],["rect",{width:"8",height:"3",x:"14",y:"13",rx:"1.5",key:"1kmz0a"}],["path",{d:"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5",key:"jc4sz0"}],["rect",{width:"8",height:"3",x:"2",y:"8",rx:"1.5",key:"1omvl4"}],["path",{d:"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5",key:"16f3cl"}]]);/**
171
+ * @license lucide-react v0.462.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const Yy=ze("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
176
+ * @license lucide-react v0.462.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const Ep=ze("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
181
+ * @license lucide-react v0.462.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const Xy=ze("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
186
+ * @license lucide-react v0.462.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const Zy=ze("Trash2",[["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"}]]);/**
191
+ * @license lucide-react v0.462.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const Np=ze("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Jy=[{id:"model",label:"Models",icon:Uy,color:"text-[hsl(30,15%,10%)]"},{id:"providers",label:"Providers",icon:Ep,color:"text-[hsl(30,15%,10%)]"},{id:"channels",label:"Channels",icon:bp,color:"text-[hsl(30,15%,10%)]"},{id:"ui",label:"Appearance",icon:Cp,color:"text-[hsl(30,15%,10%)]"}];function e0(){const{activeTab:r,setActiveTab:s}=Yr();return h.jsxs("aside",{className:"w-[240px] bg-transparent flex flex-col h-full py-6 px-4",children:[h.jsx("div",{className:"px-3 mb-8",children:h.jsxs("div",{className:"flex items-center gap-2 group cursor-pointer",children:[h.jsx("div",{className:"h-7 w-7 rounded-lg overflow-hidden flex items-center justify-center transition-transform group-hover:scale-110",children:h.jsx("img",{src:"/logo.svg",alt:"NextClaw Logo",className:"h-full w-full object-contain"})}),h.jsx("h1",{className:"text-lg font-bold text-[hsl(30,15%,10%)] tracking-tight",children:"nextclaw"})]})}),h.jsx("nav",{className:"flex-1",children:h.jsx("ul",{className:"space-y-1",children:Jy.map(i=>{const l=i.icon,c=r===i.id;return h.jsx("li",{children:h.jsxs("button",{onClick:()=>s(i.id),className:Re("group w-full flex items-center gap-3 px-3 py-2 rounded-lg text-[13px] font-medium transition-all duration-200",c?"bg-[hsl(40,10%,92%)] text-[hsl(30,15%,10%)]":"text-[hsl(30,8%,45%)] hover:bg-[hsl(40,10%,94%)] hover:text-[hsl(30,15%,10%)]"),children:[h.jsx(l,{className:Re("h-4 w-4 transition-transform group-hover:scale-110",c?"text-[hsl(30,15%,10%)]":"text-[hsl(30,8%,45%)]")}),h.jsx("span",{className:"flex-1 text-left",children:i.label})]})},i.id)})})})]})}function t0({children:r}){return h.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[h.jsx(e0,{}),h.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-white rounded-[2rem] shadow-sm overflow-hidden border border-[hsl(40,10%,94%)]",children:h.jsx("main",{className:"flex-1 overflow-auto custom-scrollbar p-8",children:h.jsx("div",{className:"max-w-6xl mx-auto animate-fade-in h-full",children:r})})})]})}const vh=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,gh=fp,n0=(r,s)=>i=>{var l;if((s==null?void 0:s.variants)==null)return gh(r,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:f}=s,m=Object.keys(c).map(w=>{const P=i==null?void 0:i[w],j=f==null?void 0:f[w];if(P===null)return null;const M=vh(P)||vh(j);return c[w][M]}),p=i&&Object.entries(i).reduce((w,P)=>{let[j,M]=P;return M===void 0||(w[j]=M),w},{}),y=s==null||(l=s.compoundVariants)===null||l===void 0?void 0:l.reduce((w,P)=>{let{class:j,className:M,...g}=P;return Object.entries(g).every(B=>{let[E,N]=B;return Array.isArray(N)?N.includes({...f,...p}[E]):{...f,...p}[E]===N})?[...w,j,M]:w},[]);return gh(r,m,y,i==null?void 0:i.class,i==null?void 0:i.className)},r0=n0("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ot=b.forwardRef(({className:r,variant:s,size:i,...l},c)=>h.jsx("button",{className:Re(r0({variant:s,size:i,className:r})),ref:c,...l}));Ot.displayName="Button";const Ts=b.forwardRef(({className:r,...s},i)=>h.jsx("div",{ref:i,className:Re("rounded-2xl border bg-card text-card-foreground shadow-sm transition-all duration-300 hover:shadow-premium",r),...s}));Ts.displayName="Card";const s0=b.forwardRef(({className:r,...s},i)=>h.jsx("div",{ref:i,className:Re("flex flex-col space-y-1.5 p-6",r),...s}));s0.displayName="CardHeader";const Bu=b.forwardRef(({className:r,...s},i)=>h.jsx("h3",{ref:i,className:Re("text-2xl font-semibold leading-none tracking-tight",r),...s}));Bu.displayName="CardTitle";const Wu=b.forwardRef(({className:r,...s},i)=>h.jsx("p",{ref:i,className:Re("text-sm text-muted-foreground",r),...s}));Wu.displayName="CardDescription";const Vu=b.forwardRef(({className:r,...s},i)=>h.jsx("div",{ref:i,className:Re("p-6 pt-0",r),...s}));Vu.displayName="CardContent";const o0=b.forwardRef(({className:r,...s},i)=>h.jsx("div",{ref:i,className:Re("flex items-center p-6 pt-0",r),...s}));o0.displayName="CardFooter";const Vt=b.forwardRef(({className:r,type:s,...i},l)=>h.jsx("input",{type:s,className:Re("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:l,...i}));Vt.displayName="Input";const rn=b.forwardRef(({className:r,...s},i)=>h.jsx("label",{ref:i,className:Re("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...s}));rn.displayName="Label";function He({className:r,...s}){return h.jsx("div",{className:Re("animate-pulse rounded-md bg-slate-200",r),...s})}const i0="http://127.0.0.1:18791";async function vu(r,s={}){const i=`${i0}${r}`,l=await fetch(i,{headers:{"Content-Type":"application/json",...s.headers},...s}),c=await l.text();let f=null;if(c)try{f=JSON.parse(c)}catch{}if(!f){const m=c?c.slice(0,200):"";return{ok:!1,error:{code:"INVALID_RESPONSE",message:`Non-JSON response (${l.status} ${l.statusText})${m?`: ${m}`:""}`}}}return l.ok,f}const Sr={get:r=>vu(r,{method:"GET"}),put:(r,s)=>vu(r,{method:"PUT",body:JSON.stringify(s)}),post:(r,s)=>vu(r,{method:"POST",body:JSON.stringify(s)})};async function a0(){const r=await Sr.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function l0(){const r=await Sr.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function u0(r){const s=await Sr.put("/api/config/model",r);if(!s.ok)throw new Error(s.error.message);return s.data}async function c0(r,s){const i=await Sr.put(`/api/config/providers/${r}`,s);if(!i.ok)throw new Error(i.error.message);return i.data}async function d0(r,s){const i=await Sr.put(`/api/config/channels/${r}`,s);if(!i.ok)throw new Error(i.error.message);return i.data}async function f0(r){const s=await Sr.put("/api/config/ui",r);if(!s.ok)throw new Error(s.error.message);return s.data}async function Pp(){const r=await Sr.post("/api/config/reload",{});if(!r.ok)throw new Error(r.error.message);return r.data}async function h0(){const r=await Sr.post("/api/channels/feishu/probe",{});if(!r.ok)throw new Error(r.error.message);return r.data}var jp=Zh();const Mp=Yh(jp);var p0=r=>{switch(r){case"success":return g0;case"info":return x0;case"warning":return y0;case"error":return w0;default:return null}},m0=Array(12).fill(0),v0=({visible:r,className:s})=>H.createElement("div",{className:["sonner-loading-wrapper",s].filter(Boolean).join(" "),"data-visible":r},H.createElement("div",{className:"sonner-spinner"},m0.map((i,l)=>H.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),g0=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.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"})),y0=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},H.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"})),x0=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.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"})),w0=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.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"})),S0=H.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"},H.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),H.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),b0=()=>{let[r,s]=H.useState(document.hidden);return H.useEffect(()=>{let i=()=>{s(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),r},Hu=1,k0=class{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{let s=this.subscribers.indexOf(r);this.subscribers.splice(s,1)}),this.publish=r=>{this.subscribers.forEach(s=>s(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var s;let{message:i,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((s=r.id)==null?void 0:s.length)>0?r.id:Hu++,f=this.toasts.find(p=>p.id===c),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...r,id:c,title:i}),{...p,...r,id:c,dismissible:m,title:i}):p):this.addToast({title:i,...l,dismissible:m,id:c}),c},this.dismiss=r=>(this.dismissedToasts.add(r),r||this.toasts.forEach(s=>{this.subscribers.forEach(i=>i({id:s.id,dismiss:!0}))}),this.subscribers.forEach(s=>s({id:r,dismiss:!0})),r),this.message=(r,s)=>this.create({...s,message:r}),this.error=(r,s)=>this.create({...s,message:r,type:"error"}),this.success=(r,s)=>this.create({...s,type:"success",message:r}),this.info=(r,s)=>this.create({...s,type:"info",message:r}),this.warning=(r,s)=>this.create({...s,type:"warning",message:r}),this.loading=(r,s)=>this.create({...s,type:"loading",message:r}),this.promise=(r,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:r,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));let l=r instanceof Promise?r:r(),c=i!==void 0,f,m=l.then(async y=>{if(f=["resolve",y],H.isValidElement(y))c=!1,this.create({id:i,type:"default",message:y});else if(E0(y)&&!y.ok){c=!1;let w=typeof s.error=="function"?await s.error(`HTTP error! status: ${y.status}`):s.error,P=typeof s.description=="function"?await s.description(`HTTP error! status: ${y.status}`):s.description;this.create({id:i,type:"error",message:w,description:P})}else if(s.success!==void 0){c=!1;let w=typeof s.success=="function"?await s.success(y):s.success,P=typeof s.description=="function"?await s.description(y):s.description;this.create({id:i,type:"success",message:w,description:P})}}).catch(async y=>{if(f=["reject",y],s.error!==void 0){c=!1;let w=typeof s.error=="function"?await s.error(y):s.error,P=typeof s.description=="function"?await s.description(y):s.description;this.create({id:i,type:"error",message:w,description:P})}}).finally(()=>{var y;c&&(this.dismiss(i),i=void 0),(y=s.finally)==null||y.call(s)}),p=()=>new Promise((y,w)=>m.then(()=>f[0]==="reject"?w(f[1]):y(f[1])).catch(w));return typeof i!="string"&&typeof i!="number"?{unwrap:p}:Object.assign(i,{unwrap:p})},this.custom=(r,s)=>{let i=(s==null?void 0:s.id)||Hu++;return this.create({jsx:r(i),id:i,...s}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},jt=new k0,C0=(r,s)=>{let i=(s==null?void 0:s.id)||Hu++;return jt.addToast({title:r,...s,id:i}),i},E0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",N0=C0,P0=()=>jt.toasts,j0=()=>jt.getActiveToasts(),Ht=Object.assign(N0,{success:jt.success,info:jt.info,warning:jt.warning,error:jt.error,custom:jt.custom,message:jt.message,promise:jt.promise,dismiss:jt.dismiss,loading:jt.loading},{getHistory:P0,getToasts:j0});function M0(r,{insertAt:s}={}){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",s==="top"&&i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}M0(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--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-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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%)}
196
+ `);function fa(r){return r.label!==void 0}var R0=3,T0="32px",_0="16px",yh=4e3,O0=356,z0=14,I0=20,D0=200;function en(...r){return r.filter(Boolean).join(" ")}function L0(r){let[s,i]=r.split("-"),l=[];return s&&l.push(s),i&&l.push(i),l}var F0=r=>{var s,i,l,c,f,m,p,y,w,P,j;let{invert:M,toast:g,unstyled:B,interacting:E,setHeights:N,visibleToasts:z,heights:$,index:K,toasts:D,expanded:ee,removeToast:se,defaultRichColors:ne,closeButton:ie,style:pe,cancelButtonStyle:ge,actionButtonStyle:Ne,className:ae="",descriptionClassName:Ae="",duration:Te,position:Be,gap:_e,loadingIcon:we,expandByDefault:V,classNames:A,icons:W,closeButtonAriaLabel:C="Close toast",pauseWhenPageIsHidden:O}=r,[X,te]=H.useState(null),[de,ye]=H.useState(null),[ce,be]=H.useState(!1),[Pe,Je]=H.useState(!1),[on,Zr]=H.useState(!1),[br,qs]=H.useState(!1),[qo,Ys]=H.useState(!1),[Xs,Jr]=H.useState(0),[Zs,An]=H.useState(0),zt=H.useRef(g.duration||Te||yh),es=H.useRef(null),an=H.useRef(null),Yo=K===0,Xo=K+1<=z,ft=g.type,ln=g.dismissible!==!1,ts=g.className||"",Zo=g.descriptionClassName||"",un=H.useMemo(()=>$.findIndex(he=>he.toastId===g.id)||0,[$,g.id]),kr=H.useMemo(()=>{var he;return(he=g.closeButton)!=null?he:ie},[g.closeButton,ie]),Jo=H.useMemo(()=>g.duration||Te||yh,[g.duration,Te]),ns=H.useRef(0),bn=H.useRef(0),ei=H.useRef(0),cn=H.useRef(null),[Js,eo]=Be.split("-"),rs=H.useMemo(()=>$.reduce((he,Ee,Oe)=>Oe>=un?he:he+Ee.height,0),[$,un]),ss=b0(),Un=g.invert||M,dn=ft==="loading";bn.current=H.useMemo(()=>un*_e+rs,[un,rs]),H.useEffect(()=>{zt.current=Jo},[Jo]),H.useEffect(()=>{be(!0)},[]),H.useEffect(()=>{let he=an.current;if(he){let Ee=he.getBoundingClientRect().height;return An(Ee),N(Oe=>[{toastId:g.id,height:Ee,position:g.position},...Oe]),()=>N(Oe=>Oe.filter(ht=>ht.toastId!==g.id))}},[N,g.id]),H.useLayoutEffect(()=>{if(!ce)return;let he=an.current,Ee=he.style.height;he.style.height="auto";let Oe=he.getBoundingClientRect().height;he.style.height=Ee,An(Oe),N(ht=>ht.find(yt=>yt.toastId===g.id)?ht.map(yt=>yt.toastId===g.id?{...yt,height:Oe}:yt):[{toastId:g.id,height:Oe,position:g.position},...ht])},[ce,g.title,g.description,N,g.id]);let Qt=H.useCallback(()=>{Je(!0),Jr(bn.current),N(he=>he.filter(Ee=>Ee.toastId!==g.id)),setTimeout(()=>{se(g)},D0)},[g,se,N,bn]);H.useEffect(()=>{if(g.promise&&ft==="loading"||g.duration===1/0||g.type==="loading")return;let he;return ee||E||O&&ss?(()=>{if(ei.current<ns.current){let Ee=new Date().getTime()-ns.current;zt.current=zt.current-Ee}ei.current=new Date().getTime()})():zt.current!==1/0&&(ns.current=new Date().getTime(),he=setTimeout(()=>{var Ee;(Ee=g.onAutoClose)==null||Ee.call(g,g),Qt()},zt.current)),()=>clearTimeout(he)},[ee,E,g,ft,O,ss,Qt]),H.useEffect(()=>{g.delete&&Qt()},[Qt,g.delete]);function ti(){var he,Ee,Oe;return W!=null&&W.loading?H.createElement("div",{className:en(A==null?void 0:A.loader,(he=g==null?void 0:g.classNames)==null?void 0:he.loader,"sonner-loader"),"data-visible":ft==="loading"},W.loading):we?H.createElement("div",{className:en(A==null?void 0:A.loader,(Ee=g==null?void 0:g.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":ft==="loading"},we):H.createElement(v0,{className:en(A==null?void 0:A.loader,(Oe=g==null?void 0:g.classNames)==null?void 0:Oe.loader),visible:ft==="loading"})}return H.createElement("li",{tabIndex:0,ref:an,className:en(ae,ts,A==null?void 0:A.toast,(s=g==null?void 0:g.classNames)==null?void 0:s.toast,A==null?void 0:A.default,A==null?void 0:A[ft],(i=g==null?void 0:g.classNames)==null?void 0:i[ft]),"data-sonner-toast":"","data-rich-colors":(l=g.richColors)!=null?l:ne,"data-styled":!(g.jsx||g.unstyled||B),"data-mounted":ce,"data-promise":!!g.promise,"data-swiped":qo,"data-removed":Pe,"data-visible":Xo,"data-y-position":Js,"data-x-position":eo,"data-index":K,"data-front":Yo,"data-swiping":on,"data-dismissible":ln,"data-type":ft,"data-invert":Un,"data-swipe-out":br,"data-swipe-direction":de,"data-expanded":!!(ee||V&&ce),style:{"--index":K,"--toasts-before":K,"--z-index":D.length-K,"--offset":`${Pe?Xs:bn.current}px`,"--initial-height":V?"auto":`${Zs}px`,...pe,...g.style},onDragEnd:()=>{Zr(!1),te(null),cn.current=null},onPointerDown:he=>{dn||!ln||(es.current=new Date,Jr(bn.current),he.target.setPointerCapture(he.pointerId),he.target.tagName!=="BUTTON"&&(Zr(!0),cn.current={x:he.clientX,y:he.clientY}))},onPointerUp:()=>{var he,Ee,Oe,ht;if(br||!ln)return;cn.current=null;let yt=Number(((he=an.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),xt=Number(((Ee=an.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),$t=new Date().getTime()-((Oe=es.current)==null?void 0:Oe.getTime()),st=X==="x"?yt:xt,fn=Math.abs(st)/$t;if(Math.abs(st)>=I0||fn>.11){Jr(bn.current),(ht=g.onDismiss)==null||ht.call(g,g),ye(X==="x"?yt>0?"right":"left":xt>0?"down":"up"),Qt(),qs(!0),Ys(!1);return}Zr(!1),te(null)},onPointerMove:he=>{var Ee,Oe,ht,yt;if(!cn.current||!ln||((Ee=window.getSelection())==null?void 0:Ee.toString().length)>0)return;let xt=he.clientY-cn.current.y,$t=he.clientX-cn.current.x,st=(Oe=r.swipeDirections)!=null?Oe:L0(Be);!X&&(Math.abs($t)>1||Math.abs(xt)>1)&&te(Math.abs($t)>Math.abs(xt)?"x":"y");let fn={x:0,y:0};X==="y"?(st.includes("top")||st.includes("bottom"))&&(st.includes("top")&&xt<0||st.includes("bottom")&&xt>0)&&(fn.y=xt):X==="x"&&(st.includes("left")||st.includes("right"))&&(st.includes("left")&&$t<0||st.includes("right")&&$t>0)&&(fn.x=$t),(Math.abs(fn.x)>0||Math.abs(fn.y)>0)&&Ys(!0),(ht=an.current)==null||ht.style.setProperty("--swipe-amount-x",`${fn.x}px`),(yt=an.current)==null||yt.style.setProperty("--swipe-amount-y",`${fn.y}px`)}},kr&&!g.jsx?H.createElement("button",{"aria-label":C,"data-disabled":dn,"data-close-button":!0,onClick:dn||!ln?()=>{}:()=>{var he;Qt(),(he=g.onDismiss)==null||he.call(g,g)},className:en(A==null?void 0:A.closeButton,(c=g==null?void 0:g.classNames)==null?void 0:c.closeButton)},(f=W==null?void 0:W.close)!=null?f:S0):null,g.jsx||b.isValidElement(g.title)?g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title:H.createElement(H.Fragment,null,ft||g.icon||g.promise?H.createElement("div",{"data-icon":"",className:en(A==null?void 0:A.icon,(m=g==null?void 0:g.classNames)==null?void 0:m.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||ti():null,g.type!=="loading"?g.icon||(W==null?void 0:W[ft])||p0(ft):null):null,H.createElement("div",{"data-content":"",className:en(A==null?void 0:A.content,(p=g==null?void 0:g.classNames)==null?void 0:p.content)},H.createElement("div",{"data-title":"",className:en(A==null?void 0:A.title,(y=g==null?void 0:g.classNames)==null?void 0:y.title)},typeof g.title=="function"?g.title():g.title),g.description?H.createElement("div",{"data-description":"",className:en(Ae,Zo,A==null?void 0:A.description,(w=g==null?void 0:g.classNames)==null?void 0:w.description)},typeof g.description=="function"?g.description():g.description):null),b.isValidElement(g.cancel)?g.cancel:g.cancel&&fa(g.cancel)?H.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||ge,onClick:he=>{var Ee,Oe;fa(g.cancel)&&ln&&((Oe=(Ee=g.cancel).onClick)==null||Oe.call(Ee,he),Qt())},className:en(A==null?void 0:A.cancelButton,(P=g==null?void 0:g.classNames)==null?void 0:P.cancelButton)},g.cancel.label):null,b.isValidElement(g.action)?g.action:g.action&&fa(g.action)?H.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||Ne,onClick:he=>{var Ee,Oe;fa(g.action)&&((Oe=(Ee=g.action).onClick)==null||Oe.call(Ee,he),!he.defaultPrevented&&Qt())},className:en(A==null?void 0:A.actionButton,(j=g==null?void 0:g.classNames)==null?void 0:j.actionButton)},g.action.label):null))};function xh(){if(typeof window>"u"||typeof document>"u")return"ltr";let r=document.documentElement.getAttribute("dir");return r==="auto"||!r?window.getComputedStyle(document.documentElement).direction:r}function A0(r,s){let i={};return[r,s].forEach((l,c)=>{let f=c===1,m=f?"--mobile-offset":"--offset",p=f?_0:T0;function y(w){["top","right","bottom","left"].forEach(P=>{i[`${m}-${P}`]=typeof w=="number"?`${w}px`:w})}typeof l=="number"||typeof l=="string"?y(l):typeof l=="object"?["top","right","bottom","left"].forEach(w=>{l[w]===void 0?i[`${m}-${w}`]=p:i[`${m}-${w}`]=typeof l[w]=="number"?`${l[w]}px`:l[w]}):y(p)}),i}var U0=b.forwardRef(function(r,s){let{invert:i,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:f,closeButton:m,className:p,offset:y,mobileOffset:w,theme:P="light",richColors:j,duration:M,style:g,visibleToasts:B=R0,toastOptions:E,dir:N=xh(),gap:z=z0,loadingIcon:$,icons:K,containerAriaLabel:D="Notifications",pauseWhenPageIsHidden:ee}=r,[se,ne]=H.useState([]),ie=H.useMemo(()=>Array.from(new Set([l].concat(se.filter(O=>O.position).map(O=>O.position)))),[se,l]),[pe,ge]=H.useState([]),[Ne,ae]=H.useState(!1),[Ae,Te]=H.useState(!1),[Be,_e]=H.useState(P!=="system"?P:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),we=H.useRef(null),V=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),A=H.useRef(null),W=H.useRef(!1),C=H.useCallback(O=>{ne(X=>{var te;return(te=X.find(de=>de.id===O.id))!=null&&te.delete||jt.dismiss(O.id),X.filter(({id:de})=>de!==O.id)})},[]);return H.useEffect(()=>jt.subscribe(O=>{if(O.dismiss){ne(X=>X.map(te=>te.id===O.id?{...te,delete:!0}:te));return}setTimeout(()=>{Mp.flushSync(()=>{ne(X=>{let te=X.findIndex(de=>de.id===O.id);return te!==-1?[...X.slice(0,te),{...X[te],...O},...X.slice(te+1)]:[O,...X]})})})}),[]),H.useEffect(()=>{if(P!=="system"){_e(P);return}if(P==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?_e("dark"):_e("light")),typeof window>"u")return;let O=window.matchMedia("(prefers-color-scheme: dark)");try{O.addEventListener("change",({matches:X})=>{_e(X?"dark":"light")})}catch{O.addListener(({matches:te})=>{try{_e(te?"dark":"light")}catch(de){console.error(de)}})}},[P]),H.useEffect(()=>{se.length<=1&&ae(!1)},[se]),H.useEffect(()=>{let O=X=>{var te,de;c.every(ye=>X[ye]||X.code===ye)&&(ae(!0),(te=we.current)==null||te.focus()),X.code==="Escape"&&(document.activeElement===we.current||(de=we.current)!=null&&de.contains(document.activeElement))&&ae(!1)};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[c]),H.useEffect(()=>{if(we.current)return()=>{A.current&&(A.current.focus({preventScroll:!0}),A.current=null,W.current=!1)}},[we.current]),H.createElement("section",{ref:s,"aria-label":`${D} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ie.map((O,X)=>{var te;let[de,ye]=O.split("-");return se.length?H.createElement("ol",{key:O,dir:N==="auto"?xh():N,tabIndex:-1,ref:we,className:p,"data-sonner-toaster":!0,"data-theme":Be,"data-y-position":de,"data-lifted":Ne&&se.length>1&&!f,"data-x-position":ye,style:{"--front-toast-height":`${((te=pe[0])==null?void 0:te.height)||0}px`,"--width":`${O0}px`,"--gap":`${z}px`,...g,...A0(y,w)},onBlur:ce=>{W.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(W.current=!1,A.current&&(A.current.focus({preventScroll:!0}),A.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||W.current||(W.current=!0,A.current=ce.relatedTarget)},onMouseEnter:()=>ae(!0),onMouseMove:()=>ae(!0),onMouseLeave:()=>{Ae||ae(!1)},onDragEnd:()=>ae(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||Te(!0)},onPointerUp:()=>Te(!1)},se.filter(ce=>!ce.position&&X===0||ce.position===O).map((ce,be)=>{var Pe,Je;return H.createElement(F0,{key:ce.id,icons:K,index:be,toast:ce,defaultRichColors:j,duration:(Pe=E==null?void 0:E.duration)!=null?Pe:M,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:i,visibleToasts:B,closeButton:(Je=E==null?void 0:E.closeButton)!=null?Je:m,interacting:Ae,position:O,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,removeToast:C,toasts:se.filter(on=>on.position==ce.position),heights:pe.filter(on=>on.position==ce.position),setHeights:ge,expandByDefault:f,gap:z,loadingIcon:$,expanded:Ne,pauseWhenPageIsHidden:ee,swipeDirections:r.swipeDirections})})):null}))});const wh={model:{zh:"模型",en:"Model"},providers:{zh:"提供商",en:"Providers"},channels:{zh:"渠道",en:"Channels"},uiConfig:{zh:"界面",en:"UI"},enabled:{zh:"启用",en:"Enabled"},disabled:{zh:"禁用",en:"Disabled"},save:{zh:"保存",en:"Save"},cancel:{zh:"取消",en:"Cancel"},delete:{zh:"删除",en:"Delete"},add:{zh:"添加",en:"Add"},edit:{zh:"编辑",en:"Edit"},loading:{zh:"加载中...",en:"Loading..."},success:{zh:"成功",en:"Success"},error:{zh:"错误",en:"Error"},modelName:{zh:"模型",en:"Model"},workspace:{zh:"工作空间",en:"Workspace"},maxTokens:{zh:"最大 Token 数",en:"Max Tokens"},temperature:{zh:"温度",en:"Temperature"},maxToolIterations:{zh:"最大工具迭代次数",en:"Max Tool Iterations"},apiKey:{zh:"API 密钥",en:"API Key"},apiBase:{zh:"API Base",en:"API Base"},extraHeaders:{zh:"额外请求头",en:"Extra Headers"},apiKeySet:{zh:"已设置",en:"Set"},apiKeyNotSet:{zh:"未设置",en:"Not Set"},showKey:{zh:"显示密钥",en:"Show Key"},hideKey:{zh:"隐藏密钥",en:"Hide Key"},allowFrom:{zh:"允许来源",en:"Allow From"},token:{zh:"Token",en:"Token"},botToken:{zh:"Bot Token",en:"Bot Token"},appToken:{zh:"App Token",en:"App Token"},appId:{zh:"App ID",en:"App ID"},appSecret:{zh:"App Secret",en:"App Secret"},clientId:{zh:"Client ID",en:"Client ID"},clientSecret:{zh:"Client Secret",en:"Client Secret"},encryptKey:{zh:"加密密钥",en:"Encrypt Key"},verificationToken:{zh:"验证令牌",en:"Verification Token"},bridgeUrl:{zh:"桥接 URL",en:"Bridge URL"},gatewayUrl:{zh:"网关 URL",en:"Gateway URL"},proxy:{zh:"代理",en:"Proxy"},intents:{zh:"Intents",en:"Intents"},mode:{zh:"模式",en:"Mode"},webhookPath:{zh:"Webhook 路径",en:"Webhook Path"},groupPolicy:{zh:"群组策略",en:"Group Policy"},consentGranted:{zh:"同意条款",en:"Consent Granted"},imapHost:{zh:"IMAP 服务器",en:"IMAP Host"},imapPort:{zh:"IMAP 端口",en:"IMAP Port"},imapUsername:{zh:"IMAP 用户名",en:"IMAP Username"},imapPassword:{zh:"IMAP 密码",en:"IMAP Password"},imapMailbox:{zh:"IMAP 邮箱",en:"IMAP Mailbox"},imapUseSsl:{zh:"IMAP 使用 SSL",en:"IMAP Use SSL"},smtpHost:{zh:"SMTP 服务器",en:"SMTP Host"},smtpPort:{zh:"SMTP 端口",en:"SMTP Port"},smtpUsername:{zh:"SMTP 用户名",en:"SMTP Username"},smtpPassword:{zh:"SMTP 密码",en:"SMTP Password"},smtpUseTls:{zh:"SMTP 使用 TLS",en:"SMTP Use TLS"},smtpUseSsl:{zh:"SMTP 使用 SSL",en:"SMTP Use SSL"},fromAddress:{zh:"发件地址",en:"From Address"},autoReplyEnabled:{zh:"自动回复已启用",en:"Auto Reply Enabled"},pollIntervalSeconds:{zh:"轮询间隔(秒)",en:"Poll Interval (s)"},markSeen:{zh:"标记为已读",en:"Mark Seen"},maxBodyChars:{zh:"最大正文字符数",en:"Max Body Chars"},subjectPrefix:{zh:"主题前缀",en:"Subject Prefix"},baseUrl:{zh:"Base URL",en:"Base URL"},socketUrl:{zh:"Socket URL",en:"Socket URL"},socketPath:{zh:"Socket 路径",en:"Socket Path"},socketDisableMsgpack:{zh:"禁用 Msgpack",en:"Disable Msgpack"},socketReconnectDelayMs:{zh:"重连延迟(ms)",en:"Reconnect Delay (ms)"},socketMaxReconnectDelayMs:{zh:"最大重连延迟(ms)",en:"Max Reconnect Delay (ms)"},socketConnectTimeoutMs:{zh:"连接超时(ms)",en:"Connect Timeout (ms)"},refreshIntervalMs:{zh:"刷新间隔(ms)",en:"Refresh Interval (ms)"},watchTimeoutMs:{zh:"监视超时(ms)",en:"Watch Timeout (ms)"},watchLimit:{zh:"监视限制",en:"Watch Limit"},retryDelayMs:{zh:"重试延迟(ms)",en:"Retry Delay (ms)"},maxRetryAttempts:{zh:"最大重试次数",en:"Max Retry Attempts"},clawToken:{zh:"Claw Token",en:"Claw Token"},agentUserId:{zh:"代理用户ID",en:"Agent User ID"},sessions:{zh:"会话",en:"Sessions"},panels:{zh:"面板",en:"Panels"},mentionRequireInGroups:{zh:"群组中需要@",en:"Require Mention in Groups"},groups:{zh:"群组",en:"Groups"},replyDelayMode:{zh:"回复延迟模式",en:"Reply Delay Mode"},replyDelayMs:{zh:"回复延迟(ms)",en:"Reply Delay (ms)"},secret:{zh:"密钥",en:"Secret"},host:{zh:"主机",en:"Host"},port:{zh:"端口",en:"Port"},open:{zh:"自动打开",en:"Open Automatically"},reloadConfig:{zh:"重载配置",en:"Reload Config"},saveVerifyConnect:{zh:"保存并验证 / 连接",en:"Save & Verify / Connect"},connected:{zh:"已连接",en:"Connected"},disconnected:{zh:"未连接",en:"Disconnected"},connecting:{zh:"连接中...",en:"Connecting..."},feishuConnecting:{zh:"验证 / 连接中...",en:"Verifying / connecting..."},configSaved:{zh:"配置已保存",en:"Configuration saved"},configSaveFailed:{zh:"保存配置失败",en:"Failed to save configuration"},configReloaded:{zh:"配置已重载",en:"Configuration reloaded"},configReloadFailed:{zh:"重载配置失败",en:"Failed to reload configuration"},feishuVerifySuccess:{zh:"验证成功,请到飞书开放平台完成事件订阅与发布后再开始使用。",en:"Verified. Please finish Feishu event subscription and app publishing before using."},feishuVerifyFailed:{zh:"验证失败",en:"Verification failed"},enterTag:{zh:"输入后按回车...",en:"Type and press Enter..."},headerName:{zh:"Header 名称",en:"Header Name"},headerValue:{zh:"Header 值",en:"Header Value"}};function Q(r,s="en"){var i,l;return((i=wh[r])==null?void 0:i[s])||((l=wh[r])==null?void 0:l.en)||r}function Gs(){return cp({queryKey:["config"],queryFn:a0,staleTime:3e4,refetchOnWindowFocus:!0})}function nc(){return cp({queryKey:["config-meta"],queryFn:l0,staleTime:1/0})}function B0(){const r=$s();return Go({mutationFn:u0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Ht.success(Q("configSaved"))},onError:s=>{Ht.error(Q("configSaveFailed")+": "+s.message)}})}function W0(){const r=$s();return Go({mutationFn:({provider:s,data:i})=>c0(s,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Ht.success(Q("configSaved"))},onError:s=>{Ht.error(Q("configSaveFailed")+": "+s.message)}})}function V0(){const r=$s();return Go({mutationFn:({channel:s,data:i})=>d0(s,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Ht.success(Q("configSaved"))},onError:s=>{Ht.error(Q("configSaveFailed")+": "+s.message)}})}function H0(){const r=$s();return Go({mutationFn:f0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Ht.success(Q("configSaved"))},onError:s=>{Ht.error(Q("configSaveFailed")+": "+s.message)}})}function Q0(){return Go({mutationFn:Pp,onSuccess:()=>{Ht.success(Q("configReloaded"))},onError:r=>{Ht.error(Q("configReloadFailed")+": "+r.message)}})}function Sh(){const{data:r,isLoading:s}=Gs(),i=B0(),[l,c]=b.useState(""),[f,m]=b.useState(""),[p,y]=b.useState(8192),[w,P]=b.useState(.7);b.useEffect(()=>{var M;(M=r==null?void 0:r.agents)!=null&&M.defaults&&(c(r.agents.defaults.model||""),m(r.agents.defaults.workspace||""),y(r.agents.defaults.maxTokens||8192),P(r.agents.defaults.temperature||.7))},[r]);const j=M=>{M.preventDefault(),i.mutate({model:l})};return s?h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(He,{className:"h-8 w-32"}),h.jsx(He,{className:"h-4 w-48"})]}),h.jsxs(Ts,{className:"rounded-2xl border-[hsl(40,20%,90%)] p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx(He,{className:"h-12 w-12 rounded-xl"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(He,{className:"h-5 w-24"}),h.jsx(He,{className:"h-3 w-32"})]})]}),h.jsx(He,{className:"h-4 w-20 mb-2"}),h.jsx(He,{className:"h-10 w-full rounded-xl"})]}),h.jsxs(Ts,{className:"rounded-2xl border-[hsl(40,20%,90%)] p-6",children:[h.jsx(He,{className:"h-5 w-24 mb-2"}),h.jsx(He,{className:"h-3 w-40 mb-6"}),h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx(He,{className:"h-4 w-28 mb-3"}),h.jsx(He,{className:"h-2 w-full rounded-full"})]}),h.jsxs("div",{children:[h.jsx(He,{className:"h-4 w-32 mb-3"}),h.jsx(He,{className:"h-2 w-full rounded-full"})]})]})]})]}):h.jsxs("div",{className:"max-w-4xl animate-fade-in pb-20",children:[h.jsxs("div",{className:"mb-10",children:[h.jsx("h2",{className:"text-2xl font-bold text-[hsl(30,15%,10%)]",children:"Model Configuration"}),h.jsx("p",{className:"text-[14px] text-[hsl(30,8%,55%)] mt-1",children:"Configure default AI model and behavior parameters"})]}),h.jsxs("form",{onSubmit:j,className:"space-y-8",children:[h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[h.jsxs("div",{className:"p-8 rounded-[2rem] bg-[hsl(40,10%,98%)] border border-[hsl(40,10%,94%)]",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-[hsl(30,15%,10%)] flex items-center justify-center text-white",children:h.jsx(Ep,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-[hsl(30,15%,10%)]",children:"Default Model"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(rn,{htmlFor:"model",className:"text-[12px] font-bold text-[hsl(30,8%,45%)] uppercase tracking-wider",children:"Model Name"}),h.jsx(Vt,{id:"model",value:l,onChange:M=>c(M.target.value),placeholder:"minimax/MiniMax-M2.1",className:"h-12 px-4 rounded-xl border-[hsl(40,10%,92%)] bg-white focus:ring-1 focus:ring-[hsl(30,15%,10%)] transition-all"}),h.jsx("p",{className:"text-[12px] text-[hsl(30,8%,55%)]",children:"Examples: minimax/MiniMax-M2.1 · anthropic/claude-opus-4-5"})]})]}),h.jsxs("div",{className:"p-8 rounded-[2rem] bg-[hsl(40,10%,98%)] border border-[hsl(40,10%,94%)]",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-[hsl(30,15%,10%)] flex items-center justify-center text-white",children:h.jsx(Hy,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-[hsl(30,15%,10%)]",children:"Workspace"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(rn,{htmlFor:"workspace",className:"text-[12px] font-bold text-[hsl(30,8%,45%)] uppercase tracking-wider",children:"Default Path"}),h.jsx(Vt,{id:"workspace",value:f,onChange:M=>m(M.target.value),placeholder:"/path/to/workspace",className:"h-12 px-4 rounded-xl border-[hsl(40,10%,92%)] bg-white focus:ring-1 focus:ring-[hsl(30,15%,10%)] transition-all"})]})]})]}),h.jsxs("div",{className:"p-8 rounded-[2.5rem] bg-white border border-[hsl(40,10%,94%)] shadow-sm",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-[hsl(30,15%,10%)] flex items-center justify-center text-white",children:h.jsx(Yy,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-[hsl(30,15%,10%)]",children:"Generation Parameters"})]}),h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(rn,{className:"text-[12px] font-bold text-[hsl(30,8%,45%)] uppercase tracking-wider",children:"Max Tokens"}),h.jsx("span",{className:"text-[13px] font-bold text-[hsl(30,15%,10%)]",children:p.toLocaleString()})]}),h.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:p,onChange:M=>y(parseInt(M.target.value)),className:"w-full h-1 bg-[hsl(40,10%,92%)] rounded-full appearance-none cursor-pointer accent-[hsl(30,15%,10%)]"})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(rn,{className:"text-[12px] font-bold text-[hsl(30,8%,45%)] uppercase tracking-wider",children:"Temperature"}),h.jsx("span",{className:"text-[13px] font-bold text-[hsl(30,15%,10%)]",children:w})]}),h.jsx("input",{type:"range",min:"0",max:"2",step:"0.1",value:w,onChange:M=>P(parseFloat(M.target.value)),className:"w-full h-1 bg-[hsl(40,10%,92%)] rounded-full appearance-none cursor-pointer accent-[hsl(30,15%,10%)]"})]})]})]}),h.jsx("div",{className:"flex justify-end pt-4",children:h.jsx(Ot,{type:"submit",disabled:i.isPending,className:"h-12 px-8 rounded-2xl bg-[hsl(30,15%,10%)] text-white hover:bg-[hsl(30,15%,20%)] transition-all font-bold shadow-md active:scale-95",children:i.isPending?h.jsx(Qy,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function wr(r,s,{checkForDefaultPrevented:i=!0}={}){return function(c){if(r==null||r(c),i===!1||!c.defaultPrevented)return s==null?void 0:s(c)}}function bh(r,s){if(typeof r=="function")return r(s);r!=null&&(r.current=s)}function Rp(...r){return s=>{let i=!1;const l=r.map(c=>{const f=bh(c,s);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let c=0;c<l.length;c++){const f=l[c];typeof f=="function"?f():bh(r[c],null)}}}}function Xr(...r){return b.useCallback(Rp(...r),r)}function $0(r,s){const i=b.createContext(s),l=f=>{const{children:m,...p}=f,y=b.useMemo(()=>p,Object.values(p));return h.jsx(i.Provider,{value:y,children:m})};l.displayName=r+"Provider";function c(f){const m=b.useContext(i);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${r}\``)}return[l,c]}function K0(r,s=[]){let i=[];function l(f,m){const p=b.createContext(m),y=i.length;i=[...i,m];const w=j=>{var z;const{scope:M,children:g,...B}=j,E=((z=M==null?void 0:M[r])==null?void 0:z[y])||p,N=b.useMemo(()=>B,Object.values(B));return h.jsx(E.Provider,{value:N,children:g})};w.displayName=f+"Provider";function P(j,M){var E;const g=((E=M==null?void 0:M[r])==null?void 0:E[y])||p,B=b.useContext(g);if(B)return B;if(m!==void 0)return m;throw new Error(`\`${j}\` must be used within \`${f}\``)}return[w,P]}const c=()=>{const f=i.map(m=>b.createContext(m));return function(p){const y=(p==null?void 0:p[r])||f;return b.useMemo(()=>({[`__scope${r}`]:{...p,[r]:y}}),[p,y])}};return c.scopeName=r,[l,G0(c,...s)]}function G0(...r){const s=r[0];if(r.length===1)return s;const i=()=>{const l=r.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const m=l.reduce((p,{useScope:y,scopeName:w})=>{const j=y(f)[`__scope${w}`];return{...p,...j}},{});return b.useMemo(()=>({[`__scope${s.scopeName}`]:m}),[m])}};return i.scopeName=s.scopeName,i}var Bo=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},q0=Xh[" useId ".trim().toString()]||(()=>{}),Y0=0;function gu(r){const[s,i]=b.useState(q0());return Bo(()=>{i(l=>l??String(Y0++))},[r]),r||(s?`radix-${s}`:"")}var X0=Xh[" useInsertionEffect ".trim().toString()]||Bo;function Z0({prop:r,defaultProp:s,onChange:i=()=>{},caller:l}){const[c,f,m]=J0({defaultProp:s,onChange:i}),p=r!==void 0,y=p?r:c;{const P=b.useRef(r!==void 0);b.useEffect(()=>{const j=P.current;j!==p&&console.warn(`${l} is changing from ${j?"controlled":"uncontrolled"} to ${p?"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.`),P.current=p},[p,l])}const w=b.useCallback(P=>{var j;if(p){const M=e1(P)?P(r):P;M!==r&&((j=m.current)==null||j.call(m,M))}else f(P)},[p,r,f,m]);return[y,w]}function J0({defaultProp:r,onChange:s}){const[i,l]=b.useState(r),c=b.useRef(i),f=b.useRef(s);return X0(()=>{f.current=s},[s]),b.useEffect(()=>{var m;c.current!==i&&((m=f.current)==null||m.call(f,i),c.current=i)},[i,c]),[i,l,f]}function e1(r){return typeof r=="function"}function Tp(r){const s=t1(r),i=b.forwardRef((l,c)=>{const{children:f,...m}=l,p=b.Children.toArray(f),y=p.find(r1);if(y){const w=y.props.children,P=p.map(j=>j===y?b.Children.count(w)>1?b.Children.only(null):b.isValidElement(w)?w.props.children:null:j);return h.jsx(s,{...m,ref:c,children:b.isValidElement(w)?b.cloneElement(w,void 0,P):null})}return h.jsx(s,{...m,ref:c,children:f})});return i.displayName=`${r}.Slot`,i}function t1(r){const s=b.forwardRef((i,l)=>{const{children:c,...f}=i;if(b.isValidElement(c)){const m=o1(c),p=s1(f,c.props);return c.type!==b.Fragment&&(p.ref=l?Rp(l,m):m),b.cloneElement(c,p)}return b.Children.count(c)>1?b.Children.only(null):null});return s.displayName=`${r}.SlotClone`,s}var n1=Symbol("radix.slottable");function r1(r){return b.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===n1}function s1(r,s){const i={...s};for(const l in s){const c=r[l],f=s[l];/^on[A-Z]/.test(l)?c&&f?i[l]=(...p)=>{const y=f(...p);return c(...p),y}:c&&(i[l]=c):l==="style"?i[l]={...c,...f}:l==="className"&&(i[l]=[c,f].filter(Boolean).join(" "))}return{...r,...i}}function o1(r){var l,c;let s=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=s&&"isReactWarning"in s&&s.isReactWarning;return i?r.ref:(s=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=s&&"isReactWarning"in s&&s.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var i1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fn=i1.reduce((r,s)=>{const i=Tp(`Primitive.${s}`),l=b.forwardRef((c,f)=>{const{asChild:m,...p}=c,y=m?i:s;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(y,{...p,ref:f})});return l.displayName=`Primitive.${s}`,{...r,[s]:l}},{});function a1(r,s){r&&jp.flushSync(()=>r.dispatchEvent(s))}function Wo(r){const s=b.useRef(r);return b.useEffect(()=>{s.current=r}),b.useMemo(()=>(...i)=>{var l;return(l=s.current)==null?void 0:l.call(s,...i)},[])}function l1(r,s=globalThis==null?void 0:globalThis.document){const i=Wo(r);b.useEffect(()=>{const l=c=>{c.key==="Escape"&&i(c)};return s.addEventListener("keydown",l,{capture:!0}),()=>s.removeEventListener("keydown",l,{capture:!0})},[i,s])}var u1="DismissableLayer",Qu="dismissableLayer.update",c1="dismissableLayer.pointerDownOutside",d1="dismissableLayer.focusOutside",kh,_p=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Op=b.forwardRef((r,s)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:m,onDismiss:p,...y}=r,w=b.useContext(_p),[P,j]=b.useState(null),M=(P==null?void 0:P.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=b.useState({}),B=Xr(s,ne=>j(ne)),E=Array.from(w.layers),[N]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),z=E.indexOf(N),$=P?E.indexOf(P):-1,K=w.layersWithOutsidePointerEventsDisabled.size>0,D=$>=z,ee=p1(ne=>{const ie=ne.target,pe=[...w.branches].some(ge=>ge.contains(ie));!D||pe||(c==null||c(ne),m==null||m(ne),ne.defaultPrevented||p==null||p())},M),se=m1(ne=>{const ie=ne.target;[...w.branches].some(ge=>ge.contains(ie))||(f==null||f(ne),m==null||m(ne),ne.defaultPrevented||p==null||p())},M);return l1(ne=>{$===w.layers.size-1&&(l==null||l(ne),!ne.defaultPrevented&&p&&(ne.preventDefault(),p()))},M),b.useEffect(()=>{if(P)return i&&(w.layersWithOutsidePointerEventsDisabled.size===0&&(kh=M.body.style.pointerEvents,M.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(P)),w.layers.add(P),Ch(),()=>{i&&w.layersWithOutsidePointerEventsDisabled.size===1&&(M.body.style.pointerEvents=kh)}},[P,M,i,w]),b.useEffect(()=>()=>{P&&(w.layers.delete(P),w.layersWithOutsidePointerEventsDisabled.delete(P),Ch())},[P,w]),b.useEffect(()=>{const ne=()=>g({});return document.addEventListener(Qu,ne),()=>document.removeEventListener(Qu,ne)},[]),h.jsx(Fn.div,{...y,ref:B,style:{pointerEvents:K?D?"auto":"none":void 0,...r.style},onFocusCapture:wr(r.onFocusCapture,se.onFocusCapture),onBlurCapture:wr(r.onBlurCapture,se.onBlurCapture),onPointerDownCapture:wr(r.onPointerDownCapture,ee.onPointerDownCapture)})});Op.displayName=u1;var f1="DismissableLayerBranch",h1=b.forwardRef((r,s)=>{const i=b.useContext(_p),l=b.useRef(null),c=Xr(s,l);return b.useEffect(()=>{const f=l.current;if(f)return i.branches.add(f),()=>{i.branches.delete(f)}},[i.branches]),h.jsx(Fn.div,{...r,ref:c})});h1.displayName=f1;function p1(r,s=globalThis==null?void 0:globalThis.document){const i=Wo(r),l=b.useRef(!1),c=b.useRef(()=>{});return b.useEffect(()=>{const f=p=>{if(p.target&&!l.current){let y=function(){zp(c1,i,w,{discrete:!0})};const w={originalEvent:p};p.pointerType==="touch"?(s.removeEventListener("click",c.current),c.current=y,s.addEventListener("click",c.current,{once:!0})):y()}else s.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{s.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(m),s.removeEventListener("pointerdown",f),s.removeEventListener("click",c.current)}},[s,i]),{onPointerDownCapture:()=>l.current=!0}}function m1(r,s=globalThis==null?void 0:globalThis.document){const i=Wo(r),l=b.useRef(!1);return b.useEffect(()=>{const c=f=>{f.target&&!l.current&&zp(d1,i,{originalEvent:f},{discrete:!1})};return s.addEventListener("focusin",c),()=>s.removeEventListener("focusin",c)},[s,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Ch(){const r=new CustomEvent(Qu);document.dispatchEvent(r)}function zp(r,s,i,{discrete:l}){const c=i.originalEvent.target,f=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:i});s&&c.addEventListener(r,s,{once:!0}),l?a1(c,f):c.dispatchEvent(f)}var yu="focusScope.autoFocusOnMount",xu="focusScope.autoFocusOnUnmount",Eh={bubbles:!1,cancelable:!0},v1="FocusScope",Ip=b.forwardRef((r,s)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:f,...m}=r,[p,y]=b.useState(null),w=Wo(c),P=Wo(f),j=b.useRef(null),M=Xr(s,E=>y(E)),g=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(l){let E=function(K){if(g.paused||!p)return;const D=K.target;p.contains(D)?j.current=D:ur(j.current,{select:!0})},N=function(K){if(g.paused||!p)return;const D=K.relatedTarget;D!==null&&(p.contains(D)||ur(j.current,{select:!0}))},z=function(K){if(document.activeElement===document.body)for(const ee of K)ee.removedNodes.length>0&&ur(p)};document.addEventListener("focusin",E),document.addEventListener("focusout",N);const $=new MutationObserver(z);return p&&$.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",N),$.disconnect()}}},[l,p,g.paused]),b.useEffect(()=>{if(p){Ph.add(g);const E=document.activeElement;if(!p.contains(E)){const z=new CustomEvent(yu,Eh);p.addEventListener(yu,w),p.dispatchEvent(z),z.defaultPrevented||(g1(b1(Dp(p)),{select:!0}),document.activeElement===E&&ur(p))}return()=>{p.removeEventListener(yu,w),setTimeout(()=>{const z=new CustomEvent(xu,Eh);p.addEventListener(xu,P),p.dispatchEvent(z),z.defaultPrevented||ur(E??document.body,{select:!0}),p.removeEventListener(xu,P),Ph.remove(g)},0)}}},[p,w,P,g]);const B=b.useCallback(E=>{if(!i&&!l||g.paused)return;const N=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,z=document.activeElement;if(N&&z){const $=E.currentTarget,[K,D]=y1($);K&&D?!E.shiftKey&&z===D?(E.preventDefault(),i&&ur(K,{select:!0})):E.shiftKey&&z===K&&(E.preventDefault(),i&&ur(D,{select:!0})):z===$&&E.preventDefault()}},[i,l,g.paused]);return h.jsx(Fn.div,{tabIndex:-1,...m,ref:M,onKeyDown:B})});Ip.displayName=v1;function g1(r,{select:s=!1}={}){const i=document.activeElement;for(const l of r)if(ur(l,{select:s}),document.activeElement!==i)return}function y1(r){const s=Dp(r),i=Nh(s,r),l=Nh(s.reverse(),r);return[i,l]}function Dp(r){const s=[],i=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const c=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||c?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)s.push(i.currentNode);return s}function Nh(r,s){for(const i of r)if(!x1(i,{upTo:s}))return i}function x1(r,{upTo:s}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(s!==void 0&&r===s)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function w1(r){return r instanceof HTMLInputElement&&"select"in r}function ur(r,{select:s=!1}={}){if(r&&r.focus){const i=document.activeElement;r.focus({preventScroll:!0}),r!==i&&w1(r)&&s&&r.select()}}var Ph=S1();function S1(){let r=[];return{add(s){const i=r[0];s!==i&&(i==null||i.pause()),r=jh(r,s),r.unshift(s)},remove(s){var i;r=jh(r,s),(i=r[0])==null||i.resume()}}}function jh(r,s){const i=[...r],l=i.indexOf(s);return l!==-1&&i.splice(l,1),i}function b1(r){return r.filter(s=>s.tagName!=="A")}var k1="Portal",Lp=b.forwardRef((r,s)=>{var p;const{container:i,...l}=r,[c,f]=b.useState(!1);Bo(()=>f(!0),[]);const m=i||c&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?Mp.createPortal(h.jsx(Fn.div,{...l,ref:s}),m):null});Lp.displayName=k1;function C1(r,s){return b.useReducer((i,l)=>s[i][l]??i,r)}var Ea=r=>{const{present:s,children:i}=r,l=E1(s),c=typeof i=="function"?i({present:l.isPresent}):b.Children.only(i),f=Xr(l.ref,N1(c));return typeof i=="function"||l.isPresent?b.cloneElement(c,{ref:f}):null};Ea.displayName="Presence";function E1(r){const[s,i]=b.useState(),l=b.useRef(null),c=b.useRef(r),f=b.useRef("none"),m=r?"mounted":"unmounted",[p,y]=C1(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const w=ha(l.current);f.current=p==="mounted"?w:"none"},[p]),Bo(()=>{const w=l.current,P=c.current;if(P!==r){const M=f.current,g=ha(w);r?y("MOUNT"):g==="none"||(w==null?void 0:w.display)==="none"?y("UNMOUNT"):y(P&&M!==g?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,y]),Bo(()=>{if(s){let w;const P=s.ownerDocument.defaultView??window,j=g=>{const E=ha(l.current).includes(CSS.escape(g.animationName));if(g.target===s&&E&&(y("ANIMATION_END"),!c.current)){const N=s.style.animationFillMode;s.style.animationFillMode="forwards",w=P.setTimeout(()=>{s.style.animationFillMode==="forwards"&&(s.style.animationFillMode=N)})}},M=g=>{g.target===s&&(f.current=ha(l.current))};return s.addEventListener("animationstart",M),s.addEventListener("animationcancel",j),s.addEventListener("animationend",j),()=>{P.clearTimeout(w),s.removeEventListener("animationstart",M),s.removeEventListener("animationcancel",j),s.removeEventListener("animationend",j)}}else y("ANIMATION_END")},[s,y]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:b.useCallback(w=>{l.current=w?getComputedStyle(w):null,i(w)},[])}}function ha(r){return(r==null?void 0:r.animationName)||"none"}function N1(r){var l,c;let s=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=s&&"isReactWarning"in s&&s.isReactWarning;return i?r.ref:(s=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=s&&"isReactWarning"in s&&s.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var wu=0;function P1(){b.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Mh()),document.body.insertAdjacentElement("beforeend",r[1]??Mh()),wu++,()=>{wu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),wu--}},[])}function Mh(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}var Sn=function(){return Sn=Object.assign||function(s){for(var i,l=1,c=arguments.length;l<c;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},Sn.apply(this,arguments)};function Fp(r,s){var i={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&s.indexOf(l)<0&&(i[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(r);c<l.length;c++)s.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(r,l[c])&&(i[l[c]]=r[l[c]]);return i}function j1(r,s,i){if(i||arguments.length===2)for(var l=0,c=s.length,f;l<c;l++)(f||!(l in s))&&(f||(f=Array.prototype.slice.call(s,0,l)),f[l]=s[l]);return r.concat(f||Array.prototype.slice.call(s))}var wa="right-scroll-bar-position",Sa="width-before-scroll-bar",M1="with-scroll-bars-hidden",R1="--removed-body-scroll-bar-size";function Su(r,s){return typeof r=="function"?r(s):r&&(r.current=s),r}function T1(r,s){var i=b.useState(function(){return{value:r,callback:s,facade:{get current(){return i.value},set current(l){var c=i.value;c!==l&&(i.value=l,i.callback(l,c))}}}})[0];return i.callback=s,i.facade}var _1=typeof window<"u"?b.useLayoutEffect:b.useEffect,Rh=new WeakMap;function O1(r,s){var i=T1(null,function(l){return r.forEach(function(c){return Su(c,l)})});return _1(function(){var l=Rh.get(i);if(l){var c=new Set(l),f=new Set(r),m=i.current;c.forEach(function(p){f.has(p)||Su(p,null)}),f.forEach(function(p){c.has(p)||Su(p,m)})}Rh.set(i,r)},[r]),i}function z1(r){return r}function I1(r,s){s===void 0&&(s=z1);var i=[],l=!1,c={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:r},useMedium:function(f){var m=s(f,l);return i.push(m),function(){i=i.filter(function(p){return p!==m})}},assignSyncMedium:function(f){for(l=!0;i.length;){var m=i;i=[],m.forEach(f)}i={push:function(p){return f(p)},filter:function(){return i}}},assignMedium:function(f){l=!0;var m=[];if(i.length){var p=i;i=[],p.forEach(f),m=i}var y=function(){var P=m;m=[],P.forEach(f)},w=function(){return Promise.resolve().then(y)};w(),i={push:function(P){m.push(P),w()},filter:function(P){return m=m.filter(P),i}}}};return c}function D1(r){r===void 0&&(r={});var s=I1(null);return s.options=Sn({async:!0,ssr:!1},r),s}var Ap=function(r){var s=r.sideCar,i=Fp(r,["sideCar"]);if(!s)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=s.read();if(!l)throw new Error("Sidecar medium not found");return b.createElement(l,Sn({},i))};Ap.isSideCarExport=!0;function L1(r,s){return r.useMedium(s),Ap}var Up=D1(),bu=function(){},Na=b.forwardRef(function(r,s){var i=b.useRef(null),l=b.useState({onScrollCapture:bu,onWheelCapture:bu,onTouchMoveCapture:bu}),c=l[0],f=l[1],m=r.forwardProps,p=r.children,y=r.className,w=r.removeScrollBar,P=r.enabled,j=r.shards,M=r.sideCar,g=r.noRelative,B=r.noIsolation,E=r.inert,N=r.allowPinchZoom,z=r.as,$=z===void 0?"div":z,K=r.gapMode,D=Fp(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ee=M,se=O1([i,s]),ne=Sn(Sn({},D),c);return b.createElement(b.Fragment,null,P&&b.createElement(ee,{sideCar:Up,removeScrollBar:w,shards:j,noRelative:g,noIsolation:B,inert:E,setCallbacks:f,allowPinchZoom:!!N,lockRef:i,gapMode:K}),m?b.cloneElement(b.Children.only(p),Sn(Sn({},ne),{ref:se})):b.createElement($,Sn({},ne,{className:y,ref:se}),p))});Na.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Na.classNames={fullWidth:Sa,zeroRight:wa};var F1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function A1(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var s=F1();return s&&r.setAttribute("nonce",s),r}function U1(r,s){r.styleSheet?r.styleSheet.cssText=s:r.appendChild(document.createTextNode(s))}function B1(r){var s=document.head||document.getElementsByTagName("head")[0];s.appendChild(r)}var W1=function(){var r=0,s=null;return{add:function(i){r==0&&(s=A1())&&(U1(s,i),B1(s)),r++},remove:function(){r--,!r&&s&&(s.parentNode&&s.parentNode.removeChild(s),s=null)}}},V1=function(){var r=W1();return function(s,i){b.useEffect(function(){return r.add(s),function(){r.remove()}},[s&&i])}},Bp=function(){var r=V1(),s=function(i){var l=i.styles,c=i.dynamic;return r(l,c),null};return s},H1={left:0,top:0,right:0,gap:0},ku=function(r){return parseInt(r||"",10)||0},Q1=function(r){var s=window.getComputedStyle(document.body),i=s[r==="padding"?"paddingLeft":"marginLeft"],l=s[r==="padding"?"paddingTop":"marginTop"],c=s[r==="padding"?"paddingRight":"marginRight"];return[ku(i),ku(l),ku(c)]},$1=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return H1;var s=Q1(r),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:s[0],top:s[1],right:s[2],gap:Math.max(0,l-i+s[2]-s[0])}},K1=Bp(),_s="data-scroll-locked",G1=function(r,s,i,l){var c=r.left,f=r.top,m=r.right,p=r.gap;return i===void 0&&(i="margin"),`
197
+ .`.concat(M1,` {
198
+ overflow: hidden `).concat(l,`;
199
+ padding-right: `).concat(p,"px ").concat(l,`;
200
+ }
201
+ body[`).concat(_s,`] {
202
+ overflow: hidden `).concat(l,`;
203
+ overscroll-behavior: contain;
204
+ `).concat([s&&"position: relative ".concat(l,";"),i==="margin"&&`
205
+ padding-left: `.concat(c,`px;
206
+ padding-top: `).concat(f,`px;
207
+ padding-right: `).concat(m,`px;
208
+ margin-left:0;
209
+ margin-top:0;
210
+ margin-right: `).concat(p,"px ").concat(l,`;
211
+ `),i==="padding"&&"padding-right: ".concat(p,"px ").concat(l,";")].filter(Boolean).join(""),`
212
+ }
213
+
214
+ .`).concat(wa,` {
215
+ right: `).concat(p,"px ").concat(l,`;
216
+ }
217
+
218
+ .`).concat(Sa,` {
219
+ margin-right: `).concat(p,"px ").concat(l,`;
220
+ }
221
+
222
+ .`).concat(wa," .").concat(wa,` {
223
+ right: 0 `).concat(l,`;
224
+ }
225
+
226
+ .`).concat(Sa," .").concat(Sa,` {
227
+ margin-right: 0 `).concat(l,`;
228
+ }
229
+
230
+ body[`).concat(_s,`] {
231
+ `).concat(R1,": ").concat(p,`px;
232
+ }
233
+ `)},Th=function(){var r=parseInt(document.body.getAttribute(_s)||"0",10);return isFinite(r)?r:0},q1=function(){b.useEffect(function(){return document.body.setAttribute(_s,(Th()+1).toString()),function(){var r=Th()-1;r<=0?document.body.removeAttribute(_s):document.body.setAttribute(_s,r.toString())}},[])},Y1=function(r){var s=r.noRelative,i=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;q1();var f=b.useMemo(function(){return $1(c)},[c]);return b.createElement(K1,{styles:G1(f,!s,c,i?"":"!important")})},$u=!1;if(typeof window<"u")try{var pa=Object.defineProperty({},"passive",{get:function(){return $u=!0,!0}});window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{$u=!1}var Ps=$u?{passive:!1}:!1,X1=function(r){return r.tagName==="TEXTAREA"},Wp=function(r,s){if(!(r instanceof Element))return!1;var i=window.getComputedStyle(r);return i[s]!=="hidden"&&!(i.overflowY===i.overflowX&&!X1(r)&&i[s]==="visible")},Z1=function(r){return Wp(r,"overflowY")},J1=function(r){return Wp(r,"overflowX")},_h=function(r,s){var i=s.ownerDocument,l=s;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Vp(r,l);if(c){var f=Hp(r,l),m=f[1],p=f[2];if(m>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},ex=function(r){var s=r.scrollTop,i=r.scrollHeight,l=r.clientHeight;return[s,i,l]},tx=function(r){var s=r.scrollLeft,i=r.scrollWidth,l=r.clientWidth;return[s,i,l]},Vp=function(r,s){return r==="v"?Z1(s):J1(s)},Hp=function(r,s){return r==="v"?ex(s):tx(s)},nx=function(r,s){return r==="h"&&s==="rtl"?-1:1},rx=function(r,s,i,l,c){var f=nx(r,window.getComputedStyle(s).direction),m=f*l,p=i.target,y=s.contains(p),w=!1,P=m>0,j=0,M=0;do{if(!p)break;var g=Hp(r,p),B=g[0],E=g[1],N=g[2],z=E-N-f*B;(B||z)&&Vp(r,p)&&(j+=z,M+=B);var $=p.parentNode;p=$&&$.nodeType===Node.DOCUMENT_FRAGMENT_NODE?$.host:$}while(!y&&p!==document.body||y&&(s.contains(p)||s===p));return(P&&Math.abs(j)<1||!P&&Math.abs(M)<1)&&(w=!0),w},ma=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Oh=function(r){return[r.deltaX,r.deltaY]},zh=function(r){return r&&"current"in r?r.current:r},sx=function(r,s){return r[0]===s[0]&&r[1]===s[1]},ox=function(r){return`
234
+ .block-interactivity-`.concat(r,` {pointer-events: none;}
235
+ .allow-interactivity-`).concat(r,` {pointer-events: all;}
236
+ `)},ix=0,js=[];function ax(r){var s=b.useRef([]),i=b.useRef([0,0]),l=b.useRef(),c=b.useState(ix++)[0],f=b.useState(Bp)[0],m=b.useRef(r);b.useEffect(function(){m.current=r},[r]),b.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var E=j1([r.lockRef.current],(r.shards||[]).map(zh),!0).filter(Boolean);return E.forEach(function(N){return N.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),E.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var p=b.useCallback(function(E,N){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var z=ma(E),$=i.current,K="deltaX"in E?E.deltaX:$[0]-z[0],D="deltaY"in E?E.deltaY:$[1]-z[1],ee,se=E.target,ne=Math.abs(K)>Math.abs(D)?"h":"v";if("touches"in E&&ne==="h"&&se.type==="range")return!1;var ie=window.getSelection(),pe=ie&&ie.anchorNode,ge=pe?pe===se||pe.contains(se):!1;if(ge)return!1;var Ne=_h(ne,se);if(!Ne)return!0;if(Ne?ee=ne:(ee=ne==="v"?"h":"v",Ne=_h(ne,se)),!Ne)return!1;if(!l.current&&"changedTouches"in E&&(K||D)&&(l.current=ee),!ee)return!0;var ae=l.current||ee;return rx(ae,N,E,ae==="h"?K:D)},[]),y=b.useCallback(function(E){var N=E;if(!(!js.length||js[js.length-1]!==f)){var z="deltaY"in N?Oh(N):ma(N),$=s.current.filter(function(ee){return ee.name===N.type&&(ee.target===N.target||N.target===ee.shadowParent)&&sx(ee.delta,z)})[0];if($&&$.should){N.cancelable&&N.preventDefault();return}if(!$){var K=(m.current.shards||[]).map(zh).filter(Boolean).filter(function(ee){return ee.contains(N.target)}),D=K.length>0?p(N,K[0]):!m.current.noIsolation;D&&N.cancelable&&N.preventDefault()}}},[]),w=b.useCallback(function(E,N,z,$){var K={name:E,delta:N,target:z,should:$,shadowParent:lx(z)};s.current.push(K),setTimeout(function(){s.current=s.current.filter(function(D){return D!==K})},1)},[]),P=b.useCallback(function(E){i.current=ma(E),l.current=void 0},[]),j=b.useCallback(function(E){w(E.type,Oh(E),E.target,p(E,r.lockRef.current))},[]),M=b.useCallback(function(E){w(E.type,ma(E),E.target,p(E,r.lockRef.current))},[]);b.useEffect(function(){return js.push(f),r.setCallbacks({onScrollCapture:j,onWheelCapture:j,onTouchMoveCapture:M}),document.addEventListener("wheel",y,Ps),document.addEventListener("touchmove",y,Ps),document.addEventListener("touchstart",P,Ps),function(){js=js.filter(function(E){return E!==f}),document.removeEventListener("wheel",y,Ps),document.removeEventListener("touchmove",y,Ps),document.removeEventListener("touchstart",P,Ps)}},[]);var g=r.removeScrollBar,B=r.inert;return b.createElement(b.Fragment,null,B?b.createElement(f,{styles:ox(c)}):null,g?b.createElement(Y1,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function lx(r){for(var s=null;r!==null;)r instanceof ShadowRoot&&(s=r.host,r=r.host),r=r.parentNode;return s}const ux=L1(Up,ax);var Qp=b.forwardRef(function(r,s){return b.createElement(Na,Sn({},r,{ref:s,sideCar:ux}))});Qp.classNames=Na.classNames;var cx=function(r){if(typeof document>"u")return null;var s=Array.isArray(r)?r[0]:r;return s.ownerDocument.body},Ms=new WeakMap,va=new WeakMap,ga={},Cu=0,$p=function(r){return r&&(r.host||$p(r.parentNode))},dx=function(r,s){return s.map(function(i){if(r.contains(i))return i;var l=$p(i);return l&&r.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",r,". Doing nothing"),null)}).filter(function(i){return!!i})},fx=function(r,s,i,l){var c=dx(s,Array.isArray(r)?r:[r]);ga[i]||(ga[i]=new WeakMap);var f=ga[i],m=[],p=new Set,y=new Set(c),w=function(j){!j||p.has(j)||(p.add(j),w(j.parentNode))};c.forEach(w);var P=function(j){!j||y.has(j)||Array.prototype.forEach.call(j.children,function(M){if(p.has(M))P(M);else try{var g=M.getAttribute(l),B=g!==null&&g!=="false",E=(Ms.get(M)||0)+1,N=(f.get(M)||0)+1;Ms.set(M,E),f.set(M,N),m.push(M),E===1&&B&&va.set(M,!0),N===1&&M.setAttribute(i,"true"),B||M.setAttribute(l,"true")}catch(z){console.error("aria-hidden: cannot operate on ",M,z)}})};return P(s),p.clear(),Cu++,function(){m.forEach(function(j){var M=Ms.get(j)-1,g=f.get(j)-1;Ms.set(j,M),f.set(j,g),M||(va.has(j)||j.removeAttribute(l),va.delete(j)),g||j.removeAttribute(i)}),Cu--,Cu||(Ms=new WeakMap,Ms=new WeakMap,va=new WeakMap,ga={})}},hx=function(r,s,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=cx(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),fx(l,c,i,"aria-hidden")):function(){return null}},Pa="Dialog",[Kp]=K0(Pa),[px,sn]=Kp(Pa),Gp=r=>{const{__scopeDialog:s,children:i,open:l,defaultOpen:c,onOpenChange:f,modal:m=!0}=r,p=b.useRef(null),y=b.useRef(null),[w,P]=Z0({prop:l,defaultProp:c??!1,onChange:f,caller:Pa});return h.jsx(px,{scope:s,triggerRef:p,contentRef:y,contentId:gu(),titleId:gu(),descriptionId:gu(),open:w,onOpenChange:P,onOpenToggle:b.useCallback(()=>P(j=>!j),[P]),modal:m,children:i})};Gp.displayName=Pa;var qp="DialogTrigger",mx=b.forwardRef((r,s)=>{const{__scopeDialog:i,...l}=r,c=sn(qp,i),f=Xr(s,c.triggerRef);return h.jsx(Fn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":oc(c.open),...l,ref:f,onClick:wr(r.onClick,c.onOpenToggle)})});mx.displayName=qp;var rc="DialogPortal",[vx,Yp]=Kp(rc,{forceMount:void 0}),Xp=r=>{const{__scopeDialog:s,forceMount:i,children:l,container:c}=r,f=sn(rc,s);return h.jsx(vx,{scope:s,forceMount:i,children:b.Children.map(l,m=>h.jsx(Ea,{present:i||f.open,children:h.jsx(Lp,{asChild:!0,container:c,children:m})}))})};Xp.displayName=rc;var Ca="DialogOverlay",Zp=b.forwardRef((r,s)=>{const i=Yp(Ca,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,f=sn(Ca,r.__scopeDialog);return f.modal?h.jsx(Ea,{present:l||f.open,children:h.jsx(yx,{...c,ref:s})}):null});Zp.displayName=Ca;var gx=Tp("DialogOverlay.RemoveScroll"),yx=b.forwardRef((r,s)=>{const{__scopeDialog:i,...l}=r,c=sn(Ca,i);return h.jsx(Qp,{as:gx,allowPinchZoom:!0,shards:[c.contentRef],children:h.jsx(Fn.div,{"data-state":oc(c.open),...l,ref:s,style:{pointerEvents:"auto",...l.style}})})}),qr="DialogContent",Jp=b.forwardRef((r,s)=>{const i=Yp(qr,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,f=sn(qr,r.__scopeDialog);return h.jsx(Ea,{present:l||f.open,children:f.modal?h.jsx(xx,{...c,ref:s}):h.jsx(wx,{...c,ref:s})})});Jp.displayName=qr;var xx=b.forwardRef((r,s)=>{const i=sn(qr,r.__scopeDialog),l=b.useRef(null),c=Xr(s,i.contentRef,l);return b.useEffect(()=>{const f=l.current;if(f)return hx(f)},[]),h.jsx(em,{...r,ref:c,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:wr(r.onCloseAutoFocus,f=>{var m;f.preventDefault(),(m=i.triggerRef.current)==null||m.focus()}),onPointerDownOutside:wr(r.onPointerDownOutside,f=>{const m=f.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0;(m.button===2||p)&&f.preventDefault()}),onFocusOutside:wr(r.onFocusOutside,f=>f.preventDefault())})}),wx=b.forwardRef((r,s)=>{const i=sn(qr,r.__scopeDialog),l=b.useRef(!1),c=b.useRef(!1);return h.jsx(em,{...r,ref:s,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var m,p;(m=r.onCloseAutoFocus)==null||m.call(r,f),f.defaultPrevented||(l.current||(p=i.triggerRef.current)==null||p.focus(),f.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:f=>{var y,w;(y=r.onInteractOutside)==null||y.call(r,f),f.defaultPrevented||(l.current=!0,f.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=f.target;((w=i.triggerRef.current)==null?void 0:w.contains(m))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&c.current&&f.preventDefault()}})}),em=b.forwardRef((r,s)=>{const{__scopeDialog:i,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:f,...m}=r,p=sn(qr,i),y=b.useRef(null),w=Xr(s,y);return P1(),h.jsxs(h.Fragment,{children:[h.jsx(Ip,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:f,children:h.jsx(Op,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":oc(p.open),...m,ref:w,onDismiss:()=>p.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Sx,{titleId:p.titleId}),h.jsx(kx,{contentRef:y,descriptionId:p.descriptionId})]})]})}),sc="DialogTitle",tm=b.forwardRef((r,s)=>{const{__scopeDialog:i,...l}=r,c=sn(sc,i);return h.jsx(Fn.h2,{id:c.titleId,...l,ref:s})});tm.displayName=sc;var nm="DialogDescription",rm=b.forwardRef((r,s)=>{const{__scopeDialog:i,...l}=r,c=sn(nm,i);return h.jsx(Fn.p,{id:c.descriptionId,...l,ref:s})});rm.displayName=nm;var sm="DialogClose",om=b.forwardRef((r,s)=>{const{__scopeDialog:i,...l}=r,c=sn(sm,i);return h.jsx(Fn.button,{type:"button",...l,ref:s,onClick:wr(r.onClick,()=>c.onOpenChange(!1))})});om.displayName=sm;function oc(r){return r?"open":"closed"}var im="DialogTitleWarning",[Vx,am]=$0(im,{contentName:qr,titleName:sc,docsSlug:"dialog"}),Sx=({titleId:r})=>{const s=am(im),i=`\`${s.contentName}\` requires a \`${s.titleName}\` for the component to be accessible for screen reader users.
237
+
238
+ If you want to hide the \`${s.titleName}\`, you can wrap it with our VisuallyHidden component.
239
+
240
+ For more information, see https://radix-ui.com/primitives/docs/components/${s.docsSlug}`;return b.useEffect(()=>{r&&(document.getElementById(r)||console.error(i))},[i,r]),null},bx="DialogDescriptionWarning",kx=({contentRef:r,descriptionId:s})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${am(bx).contentName}}.`;return b.useEffect(()=>{var f;const c=(f=r.current)==null?void 0:f.getAttribute("aria-describedby");s&&c&&(document.getElementById(s)||console.warn(l))},[l,r,s]),null},Cx=Gp,Ex=Xp,lm=Zp,um=Jp,cm=tm,dm=rm,Nx=om;const fm=Cx,Px=Ex,hm=b.forwardRef(({className:r,...s},i)=>h.jsx(lm,{ref:i,className:Re("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s}));hm.displayName=lm.displayName;const ic=b.forwardRef(({className:r,children:s,...i},l)=>h.jsxs(Px,{children:[h.jsx(hm,{}),h.jsxs(um,{ref:l,className:Re("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[hsl(40,20%,90%)] bg-white p-6 shadow-2xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-2xl",r),...i,children:[s,h.jsxs(Nx,{className:"absolute right-4 top-4 rounded-lg opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[hsl(25,95%,53%)] focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-[hsl(40,20%,96%)] data-[state=open]:text-[hsl(30,8%,45%)]",children:[h.jsx(Np,{className:"h-4 w-4 text-[hsl(30,8%,45%)]"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ic.displayName=um.displayName;const ac=({className:r,...s})=>h.jsx("div",{className:Re("flex flex-col space-y-1.5 text-center sm:text-left",r),...s});ac.displayName="DialogHeader";const lc=({className:r,...s})=>h.jsx("div",{className:Re("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2",r),...s});lc.displayName="DialogFooter";const uc=b.forwardRef(({className:r,...s},i)=>h.jsx(cm,{ref:i,className:Re("text-lg font-semibold leading-none tracking-tight text-[hsl(30,20%,12%)]",r),...s}));uc.displayName=cm.displayName;const cc=b.forwardRef(({className:r,...s},i)=>h.jsx(dm,{ref:i,className:Re("text-sm text-[hsl(30,8%,45%)]",r),...s}));cc.displayName=dm.displayName;function jx({maskedValue:r,isSet:s,className:i,...l}){const[c,f]=b.useState(!1);return h.jsxs("div",{className:"relative",children:[h.jsx(Vt,{type:c?"text":"password",className:Re("pr-20",i),placeholder:s?`${Q("apiKeySet")} (Unchanged)`:"",...l}),h.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex gap-1",children:(s||r)&&h.jsx(Ot,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>f(!c),children:c?h.jsx(Wy,{className:"h-4 w-4"}):h.jsx(Vy,{className:"h-4 w-4"})})})]})}function Mx({value:r,onChange:s,className:i}){const l=r?Object.entries(r):[],c=(p,y,w)=>{const P=[...l];P[p]=[y,w],s(Object.fromEntries(P))},f=()=>{s({...r,"":""})},m=p=>{const y=l.filter((w,P)=>P!==p);s(Object.fromEntries(y))};return h.jsxs("div",{className:Re("space-y-2",i),children:[l.map(([p,y],w)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsx(Vt,{type:"text",value:p,onChange:P=>c(w,P.target.value,y),placeholder:Q("headerName"),className:"flex-1"}),h.jsx(Vt,{type:"text",value:y,onChange:P=>c(w,p,P.target.value),placeholder:Q("headerValue"),className:"flex-1"}),h.jsx(Ot,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(w),children:h.jsx(Zy,{className:"h-4 w-4 text-red-500"})})]},w)),h.jsxs(Ot,{type:"button",variant:"outline",size:"sm",onClick:f,children:[h.jsx(kp,{className:"h-4 w-4 mr-2"}),Q("add")]})]})}function Rx(){const{providerModal:r,closeProviderModal:s}=Yr(),{data:i}=Gs(),{data:l}=nc(),c=W0(),[f,m]=b.useState(""),[p,y]=b.useState(""),[w,P]=b.useState(null),j=r.provider,M=l==null?void 0:l.providers.find(E=>E.name===j),g=j?i==null?void 0:i.providers[j]:null;b.useEffect(()=>{g&&(y(g.apiBase||(M==null?void 0:M.defaultApiBase)||""),P(g.extraHeaders||null),m(""))},[g,M]);const B=E=>{E.preventDefault();const N={};f!==""&&(N.apiKey=f),p&&p!==(M==null?void 0:M.defaultApiBase)&&(N.apiBase=p),w&&Object.keys(w).length>0&&(N.extraHeaders=w),j&&c.mutate({provider:j,data:N},{onSuccess:()=>s()})};return h.jsx(fm,{open:r.open,onOpenChange:s,children:h.jsxs(ic,{className:"sm:max-w-[500px]",children:[h.jsx(ac,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-gradient-to-br from-orange-400 to-amber-500 flex items-center justify-center",children:h.jsx(Uu,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(uc,{children:(M==null?void 0:M.displayName)||j}),h.jsx(cc,{children:"Configure API keys and parameters for AI provider"})]})]})}),h.jsxs("form",{onSubmit:B,className:"space-y-5 pt-2",children:[h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(rn,{htmlFor:"apiKey",className:"text-sm font-medium text-[hsl(30,20%,12%)] flex items-center gap-2",children:[h.jsx(Uu,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}),Q("apiKey")]}),h.jsx(jx,{id:"apiKey",value:f,isSet:g==null?void 0:g.apiKeySet,onChange:E=>m(E.target.value),placeholder:g!=null&&g.apiKeySet?Q("apiKeySet"):"Enter API Key",className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(rn,{htmlFor:"apiBase",className:"text-sm font-medium text-[hsl(30,20%,12%)] flex items-center gap-2",children:[h.jsx(wp,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}),Q("apiBase")]}),h.jsx(Vt,{id:"apiBase",type:"text",value:p,onChange:E=>y(E.target.value),placeholder:(M==null?void 0:M.defaultApiBase)||"https://api.example.com",className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(rn,{className:"text-sm font-medium text-[hsl(30,20%,12%)] flex items-center gap-2",children:[h.jsx(Sp,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}),Q("extraHeaders")]}),h.jsx(Mx,{value:w,onChange:P})]}),h.jsxs(lc,{className:"pt-4",children:[h.jsx(Ot,{type:"button",variant:"outline",onClick:s,className:"rounded-xl border-[hsl(40,20%,90%)] bg-white hover:bg-[hsl(40,20%,96%)]",children:Q("cancel")}),h.jsx(Ot,{type:"submit",disabled:c.isPending,className:"rounded-xl bg-gradient-to-r from-orange-400 to-amber-500 hover:from-orange-500 hover:to-amber-600 text-white border-0",children:c.isPending?"Saving...":Q("save")})]})]})]})})}function pm({tabs:r,activeTab:s,onChange:i,className:l}){return h.jsx("div",{className:Re("flex items-center gap-8 border-b border-[hsl(40,10%,94%)] mb-8",l),children:r.map(c=>{const f=s===c.id;return h.jsxs("button",{onClick:()=>i(c.id),className:Re("relative pb-4 text-[15px] font-semibold transition-all duration-200 flex items-center gap-2",f?"text-[hsl(30,15%,10%)]":"text-[hsl(30,8%,55%)] hover:text-[hsl(30,15%,10%)]"),children:[c.label,c.count!==void 0&&h.jsx("span",{className:"text-[11px] font-medium text-[hsl(30,8%,65%)]",children:c.count.toLocaleString()}),f&&h.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-[hsl(30,15%,10%)] animate-in fade-in slide-in-from-left-2 duration-300"})]},c.id)})})}function Tx(){const{data:r}=Gs(),{data:s}=nc(),{openProviderModal:i}=Yr(),[l,c]=b.useState("featured");if(!r||!s)return h.jsx("div",{className:"p-8",children:"Loading..."});const f=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(m=>r.providers[m].apiKeySet).length:0},{id:"all",label:"All Providers"}];return h.jsxs("div",{className:"animate-fade-in pb-20",children:[h.jsx("div",{className:"flex items-center justify-between mb-8",children:h.jsx("h2",{className:"text-2xl font-bold text-[hsl(30,15%,10%)]",children:"AI Providers"})}),h.jsx(pm,{tabs:f,activeTab:l==="featured"?"all":l,onChange:c}),h.jsx("div",{className:"space-y-1",children:(l==="installed"?s.providers.filter(m=>{var p;return(p=r.providers[m.name])==null?void 0:p.apiKeySet}):s.providers).map(m=>{const p=r.providers[m.name],y=p==null?void 0:p.apiKeySet;return h.jsxs("div",{className:"group flex items-center gap-5 p-3 rounded-2xl hover:bg-[hsl(40,10%,96%)] transition-all cursor-pointer border border-transparent hover:border-[hsl(40,10%,94%)]",onClick:()=>i(m.name),children:[h.jsx("div",{className:"h-10 w-10 flex items-center justify-center bg-transparent border border-[hsl(40,10%,92%)] rounded-xl group-hover:scale-105 transition-transform overflow-hidden",children:h.jsx("span",{className:"text-xl font-bold uppercase text-[hsl(30,15%,10%)]",children:m.name[0]})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h3",{className:"text-[14px] font-bold text-[hsl(30,15%,10%)] truncate",children:m.displayName||m.name}),h.jsx("p",{className:"text-[12px] text-[hsl(30,8%,55%)] truncate leading-tight",children:m.name==="openai"?"TypeScript authentication framework integration guide":"Configure AI services for your agents"})]}),h.jsxs("div",{className:"flex items-center gap-4",children:[y?h.jsxs("div",{className:"flex items-center gap-1.5 text-emerald-600",children:[h.jsx(Ay,{className:"h-4 w-4"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Ready"})]}):h.jsx("button",{className:"h-8 w-8 flex items-center justify-center text-[hsl(30,8%,45%)] hover:text-[hsl(30,15%,10%)] group-hover:opacity-100 opacity-0 transition-opacity",children:h.jsx(kp,{className:"h-4 w-4"})}),h.jsx("button",{className:"h-8 w-8 flex items-center justify-center text-[hsl(30,8%,45%)]",children:h.jsx(xp,{className:"h-4 w-4"})})]})]},m.name)})}),h.jsx(Rx,{})]})}const dc=b.forwardRef(({className:r,checked:s=!1,onCheckedChange:i,...l},c)=>h.jsx("button",{type:"button",role:"switch","aria-checked":s,ref:c,className:Re("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",s?"bg-primary":"bg-input",r),onClick:()=>i==null?void 0:i(!s),...l,children:h.jsx("span",{className:Re("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",s?"translate-x-5":"translate-x-0")})}));dc.displayName="Switch";function _x({value:r,onChange:s,className:i,placeholder:l="Type and press Enter..."}){const[c,f]=b.useState(""),m=y=>{y.key==="Enter"&&c.trim()?(y.preventDefault(),s([...r,c.trim()]),f("")):y.key==="Backspace"&&!c&&r.length>0&&s(r.slice(0,-1))},p=y=>{s(r.filter((w,P)=>P!==y))};return h.jsxs("div",{className:Re("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",i),children:[r.map((y,w)=>h.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[y,h.jsx("button",{type:"button",onClick:()=>p(w),className:"hover:text-red-300 transition-colors",children:h.jsx(Np,{className:"h-3 w-3"})})]},w)),h.jsx("input",{type:"text",value:c,onChange:y=>f(y.target.value),onKeyDown:m,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:l})]})}const Ox=r=>r.includes("token")||r.includes("secret")||r.includes("password")?h.jsx(Uu,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}):r.includes("url")||r.includes("host")?h.jsx(wp,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}):r.includes("email")||r.includes("mail")?h.jsx(tc,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}):r.includes("id")||r.includes("from")?h.jsx(Sp,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}):r==="enabled"||r==="consentGranted"?h.jsx(Xy,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}):h.jsx(Cp,{className:"h-3.5 w-3.5 text-[hsl(30,8%,45%)]"}),zx={telegram:[{name:"enabled",type:"boolean",label:Q("enabled")},{name:"token",type:"password",label:Q("botToken")},{name:"allowFrom",type:"tags",label:Q("allowFrom")},{name:"proxy",type:"text",label:Q("proxy")}],discord:[{name:"enabled",type:"boolean",label:Q("enabled")},{name:"token",type:"password",label:Q("botToken")},{name:"allowFrom",type:"tags",label:Q("allowFrom")},{name:"gatewayUrl",type:"text",label:Q("gatewayUrl")},{name:"intents",type:"number",label:Q("intents")}],whatsapp:[{name:"enabled",type:"boolean",label:Q("enabled")},{name:"bridgeUrl",type:"text",label:Q("bridgeUrl")},{name:"allowFrom",type:"tags",label:Q("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:Q("enabled")},{name:"appId",type:"text",label:Q("appId")},{name:"appSecret",type:"password",label:Q("appSecret")},{name:"encryptKey",type:"password",label:Q("encryptKey")},{name:"verificationToken",type:"password",label:Q("verificationToken")},{name:"allowFrom",type:"tags",label:Q("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:Q("enabled")},{name:"clientId",type:"text",label:Q("clientId")},{name:"clientSecret",type:"password",label:Q("clientSecret")},{name:"allowFrom",type:"tags",label:Q("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:Q("enabled")},{name:"mode",type:"text",label:Q("mode")},{name:"webhookPath",type:"text",label:Q("webhookPath")},{name:"botToken",type:"password",label:Q("botToken")},{name:"appToken",type:"password",label:Q("appToken")}],email:[{name:"enabled",type:"boolean",label:Q("enabled")},{name:"consentGranted",type:"boolean",label:Q("consentGranted")},{name:"imapHost",type:"text",label:Q("imapHost")},{name:"imapPort",type:"number",label:Q("imapPort")},{name:"imapUsername",type:"text",label:Q("imapUsername")},{name:"imapPassword",type:"password",label:Q("imapPassword")},{name:"fromAddress",type:"email",label:Q("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:Q("enabled")},{name:"baseUrl",type:"text",label:Q("baseUrl")},{name:"clawToken",type:"password",label:Q("clawToken")},{name:"agentUserId",type:"text",label:Q("agentUserId")},{name:"allowFrom",type:"tags",label:Q("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:Q("enabled")},{name:"appId",type:"text",label:Q("appId")},{name:"secret",type:"password",label:Q("secret")},{name:"allowFrom",type:"tags",label:Q("allowFrom")}]},Ih={telegram:xa,slack:xa,email:tc,default:xa},Dh={telegram:"from-sky-400 to-blue-500",slack:"from-purple-400 to-indigo-500",email:"from-rose-400 to-pink-500",default:"from-slate-400 to-gray-500"};function Ix(){const{channelModal:r,closeChannelModal:s}=Yr(),{data:i}=Gs(),l=V0(),[c,f]=b.useState({}),[m,p]=b.useState(!1),y=r.channel,w=y?i==null?void 0:i.channels[y]:null,P=y?zx[y]:[];b.useEffect(()=>{f(w?{...w}:{})},[w,y]);const j=(N,z)=>{f($=>({...$,[N]:z}))},M=N=>{N.preventDefault(),y&&l.mutate({channel:y,data:c},{onSuccess:()=>s()})},g=async()=>{if(!(!y||y!=="feishu")){p(!0);try{const N={...c,enabled:!0};c.enabled||f(N),await l.mutateAsync({channel:y,data:N});const z=await h0();await Pp();const $=z.botName?` (${z.botName})`:"";Ht.success(Q("feishuVerifySuccess")+$)}catch(N){const z=N instanceof Error?N.message:String(N);Ht.error(`${Q("feishuVerifyFailed")}: ${z}`)}finally{p(!1)}}},B=Ih[y||""]||Ih.default,E=Dh[y||""]||Dh.default;return h.jsx(fm,{open:r.open,onOpenChange:s,children:h.jsxs(ic,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[h.jsx(ac,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:`h-10 w-10 rounded-xl bg-gradient-to-br ${E} flex items-center justify-center`,children:h.jsx(B,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(uc,{className:"capitalize",children:y}),h.jsx(cc,{children:"Configure message channel parameters"})]})]})}),h.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2",children:h.jsxs("form",{onSubmit:M,className:"space-y-5 pr-2",children:[P.map(N=>h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(rn,{htmlFor:N.name,className:"text-sm font-medium text-[hsl(30,20%,12%)] flex items-center gap-2",children:[Ox(N.name),N.label]}),N.type==="boolean"&&h.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-[hsl(40,20%,96%)]",children:[h.jsx("span",{className:"text-sm text-[hsl(30,8%,45%)]",children:c[N.name]?Q("enabled"):Q("disabled")}),h.jsx(dc,{id:N.name,checked:c[N.name]||!1,onCheckedChange:z=>j(N.name,z),className:"data-[state=checked]:bg-emerald-500"})]}),(N.type==="text"||N.type==="email")&&h.jsx(Vt,{id:N.name,type:N.type,value:c[N.name]||"",onChange:z=>j(N.name,z.target.value),className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"}),N.type==="password"&&h.jsx(Vt,{id:N.name,type:"password",value:c[N.name]||"",onChange:z=>j(N.name,z.target.value),placeholder:"Leave blank to keep unchanged",className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"}),N.type==="number"&&h.jsx(Vt,{id:N.name,type:"number",value:c[N.name]||0,onChange:z=>j(N.name,parseInt(z.target.value)||0),className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"}),N.type==="tags"&&h.jsx(_x,{value:c[N.name]||[],onChange:z=>j(N.name,z)})]},N.name)),h.jsxs(lc,{className:"pt-4",children:[h.jsx(Ot,{type:"button",variant:"outline",onClick:s,className:"rounded-xl border-[hsl(40,20%,90%)] bg-white hover:bg-[hsl(40,20%,96%)]",children:Q("cancel")}),h.jsx(Ot,{type:"submit",disabled:l.isPending||m,className:"rounded-xl bg-gradient-to-r from-orange-400 to-amber-500 hover:from-orange-500 hover:to-amber-600 text-white border-0",children:l.isPending?"Saving...":Q("save")}),y==="feishu"&&h.jsx(Ot,{type:"button",onClick:g,disabled:l.isPending||m,className:"rounded-xl bg-gradient-to-r from-emerald-400 to-emerald-600 hover:from-emerald-500 hover:to-emerald-700 text-white border-0",children:Q(m?"feishuConnecting":"saveVerifyConnect")})]})]})})]})})}const Lh={telegram:xa,slack:qy,email:tc,webhook:Fy,default:bp};function Dx(){const{data:r}=Gs(),{data:s}=nc(),{openChannelModal:i}=Yr(),[l,c]=b.useState("active");if(!r||!s)return h.jsx("div",{className:"p-8 text-[hsl(30,8%,55%)]",children:"Loading channels..."});const f=[{id:"active",label:"Enabled",count:s.channels.filter(m=>{var p;return(p=r.channels[m.name])==null?void 0:p.enabled}).length},{id:"all",label:"All Channels",count:s.channels.length}];return h.jsxs("div",{className:"animate-fade-in pb-20",children:[h.jsx("div",{className:"flex items-center justify-between mb-8",children:h.jsx("h2",{className:"text-2xl font-bold text-[hsl(30,15%,10%)]",children:"Message Channels"})}),h.jsx(pm,{tabs:f,activeTab:l,onChange:c}),h.jsx("div",{className:"space-y-1",children:s.channels.map((m,p)=>{const y=r.channels[m.name],w=(y==null?void 0:y.enabled)||!1,P=Lh[m.name]||Lh.default;return(l==="all"||w)&&h.jsxs("div",{className:"group flex items-center gap-5 p-3 rounded-2xl hover:bg-[hsl(40,10%,96%)] transition-all cursor-pointer border border-transparent hover:border-[hsl(40,10%,94%)]",onClick:()=>i(m.name),children:[h.jsx("div",{className:Re("h-10 w-10 flex items-center justify-center rounded-xl transition-all group-hover:scale-105",w?"bg-[hsl(30,15%,10%)] text-white":"bg-transparent border border-[hsl(40,10%,92%)] text-[hsl(30,8%,55%)]"),children:h.jsx(P,{className:"h-5 w-5"})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h3",{className:"text-[14px] font-bold text-[hsl(30,15%,10%)] truncate",children:m.displayName||m.name}),w&&h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.5)]"})]}),h.jsx("p",{className:"text-[12px] text-[hsl(30,8%,55%)] truncate leading-tight mt-0.5",children:w?"Channel is active and processing messages":"Click to configure this communication channel"})]}),h.jsxs("div",{className:"flex items-center gap-4",children:[m.tutorialUrl&&h.jsxs("a",{href:m.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:j=>j.stopPropagation(),className:"hidden sm:inline-flex items-center gap-1 text-[11px] font-bold text-[hsl(30,10%,35%)] hover:text-[hsl(30,15%,10%)]",children:["Guide",h.jsx(By,{className:"h-3 w-3"})]}),h.jsx(Ot,{variant:"ghost",size:"sm",className:"rounded-xl bg-[hsl(40,10%,92%)] hover:bg-[hsl(40,10%,90%)] text-[hsl(30,10%,35%)] text-[11px] font-bold px-4 h-8",onClick:j=>{j.stopPropagation(),i(m.name)},children:"Configure"}),h.jsx("button",{className:"h-8 w-8 flex items-center justify-center text-[hsl(30,8%,45%)]",children:h.jsx(xp,{className:"h-4 w-4"})})]})]},m.name)})}),h.jsx(Ix,{})]})}function Lx(){const{data:r,isLoading:s}=Gs(),i=H0(),l=Q0(),[c,f]=b.useState(!1),[m,p]=b.useState("127.0.0.1"),[y,w]=b.useState(18791);b.useEffect(()=>{r!=null&&r.ui&&(f(r.ui.enabled),p(r.ui.host),w(r.ui.port))},[r]);const P=M=>{M.preventDefault(),i.mutate({enabled:c,host:m,port:y,open:!0})},j=()=>{l.mutate()};return s?h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(He,{className:"h-8 w-32"}),h.jsx(He,{className:"h-4 w-48"})]}),h.jsxs(Ts,{className:"rounded-2xl border-[hsl(40,20%,90%)] p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx(He,{className:"h-12 w-12 rounded-xl"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(He,{className:"h-5 w-28"}),h.jsx(He,{className:"h-3 w-36"})]})]}),h.jsx(He,{className:"h-16 w-full rounded-xl mb-4"}),h.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[h.jsxs("div",{children:[h.jsx(He,{className:"h-4 w-16 mb-2"}),h.jsx(He,{className:"h-10 w-full rounded-xl"})]}),h.jsxs("div",{children:[h.jsx(He,{className:"h-4 w-12 mb-2"}),h.jsx(He,{className:"h-10 w-full rounded-xl"})]})]})]})]}):h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-xl font-semibold text-[hsl(30,20%,12%)]",children:Q("uiConfig")}),h.jsx("p",{className:"text-sm text-[hsl(30,8%,45%)] mt-1",children:"Configure Web UI server and access options"})]}),h.jsx(Ts,{className:"rounded-2xl border-[hsl(40,20%,90%)] bg-white",children:h.jsxs(Vu,{className:"p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx("div",{className:"h-12 w-12 rounded-xl bg-gradient-to-br from-purple-400 to-indigo-500 flex items-center justify-center",children:h.jsx($y,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(Bu,{className:"text-base font-semibold text-[hsl(30,20%,12%)]",children:"Web UI Server"}),h.jsx(Wu,{className:"text-xs text-[hsl(30,8%,45%)]",children:"Configure server runtime parameters"})]})]}),h.jsxs("form",{onSubmit:P,className:"space-y-6",children:[h.jsxs("div",{className:Re("flex items-center justify-between p-4 rounded-xl transition-colors",c?"bg-emerald-50":"bg-[hsl(40,20%,96%)]"),children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:Re("h-10 w-10 rounded-lg flex items-center justify-center",c?"bg-emerald-100 text-emerald-600":"bg-[hsl(40,20%,94%)] text-[hsl(30,8%,45%)]"),children:h.jsx(Ky,{className:"h-5 w-5"})}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-medium text-[hsl(30,20%,12%)]",children:"Enable Web UI"}),h.jsx("p",{className:Re("text-xs",c?"text-emerald-600":"text-[hsl(30,8%,45%)]"),children:Q(c?"connected":"disconnected")})]})]}),h.jsx(dc,{id:"enabled",checked:c,onCheckedChange:f,className:"data-[state=checked]:bg-emerald-500"})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(rn,{htmlFor:"host",className:"text-sm font-medium text-[hsl(30,20%,12%)]",children:Q("host")}),h.jsx(Vt,{id:"host",type:"text",value:m,onChange:M=>p(M.target.value),placeholder:"127.0.0.1",className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(rn,{htmlFor:"port",className:"text-sm font-medium text-[hsl(30,20%,12%)]",children:Q("port")}),h.jsx(Vt,{id:"port",type:"number",value:y,onChange:M=>w(parseInt(M.target.value)||18791),placeholder:"18791",min:"1",max:"65535",className:"rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] focus:bg-white"})]})]}),h.jsx("div",{className:"flex justify-end",children:h.jsxs(Ot,{type:"submit",disabled:i.isPending,className:"gap-2 rounded-xl bg-gradient-to-r from-orange-400 to-amber-500 hover:from-orange-500 hover:to-amber-600 text-white border-0",children:[h.jsx(Gy,{className:"h-4 w-4"}),Q("save")]})})]})]})}),h.jsx(Ts,{className:"rounded-2xl border-[hsl(40,20%,90%)] bg-white",children:h.jsxs(Vu,{className:"p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx("div",{className:"h-12 w-12 rounded-xl bg-gradient-to-br from-slate-400 to-gray-500 flex items-center justify-center",children:h.jsx(mh,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(Bu,{className:"text-base font-semibold text-[hsl(30,20%,12%)]",children:Q("reloadConfig")}),h.jsx(Wu,{className:"text-xs text-[hsl(30,8%,45%)]",children:"Apply changes and restart services"})]})]}),h.jsx("p",{className:"text-sm text-[hsl(30,8%,45%)] mb-4",children:"Click the button below to reload the configuration file and apply all changes."}),h.jsxs(Ot,{variant:"outline",onClick:j,disabled:l.isPending,className:"w-full gap-2 rounded-xl border-[hsl(40,20%,90%)] bg-[hsl(40,20%,98%)] hover:bg-[hsl(40,20%,94%)] text-[hsl(30,10%,35%)]",children:[h.jsx(mh,{className:"h-4 w-4"}),Q("reloadConfig")]})]})})]})}class Fx{constructor(s){this.url=s,this.ws=null,this.handlers=new Map,this.reconnectTimer=null,this.manualClose=!1}connect(){this.manualClose=!1,this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("WebSocket connected"),this.emit({type:"connection.open",payload:{}})},this.ws.onmessage=s=>{try{const i=JSON.parse(s.data);this.emit(i)}catch(i){console.error("Failed to parse WebSocket message:",i)}},this.ws.onclose=()=>{console.log("WebSocket disconnected"),this.manualClose||this.scheduleReconnect()},this.ws.onerror=s=>{console.error("WebSocket error:",s)}}on(s,i){this.handlers.has(s)||this.handlers.set(s,new Set),this.handlers.get(s).add(i)}off(s,i){var l;(l=this.handlers.get(s))==null||l.delete(i)}emit(s){const i=this.handlers.get(s.type);i==null||i.forEach(l=>l(s))}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.connect()},3e3))}disconnect(){var s;this.manualClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(s=this.ws)==null||s.close(),this.ws=null}}function Ax(r){const[s,i]=b.useState(null),{setConnectionStatus:l}=Yr();return b.useEffect(()=>{const c="ws://127.0.0.1:18791/ws",f=new Fx(c);return f.on("connection.open",()=>{l("connected")}),f.on("config.updated",()=>{r&&r.invalidateQueries({queryKey:["config"]})}),f.on("error",m=>{m.type==="error"&&console.error("WebSocket error:",m.payload.message)}),f.connect(),i(f),()=>f.disconnect()},[l,r]),s}const Fh=new Ug({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function Ux(){const{activeTab:r}=Yr();Ax(Fh);const s=()=>{switch(r){case"model":return h.jsx(Sh,{});case"providers":return h.jsx(Tx,{});case"channels":return h.jsx(Dx,{});case"ui":return h.jsx(Lx,{});default:return h.jsx(Sh,{})}};return h.jsxs(Bg,{client:Fh,children:[h.jsx(t0,{children:h.jsx("div",{className:"animate-fade-in",children:s()},r)}),h.jsx(U0,{position:"top-right",richColors:!0})]})}vg.createRoot(document.getElementById("root")).render(h.jsx(b.StrictMode,{children:h.jsx(Ux,{})}));