@nextclaw/ui 0.2.5 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,225 @@
1
+ var Vf=r=>{throw TypeError(r)};var uu=(r,o,i)=>o.has(r)||Vf("Cannot "+i);var x=(r,o,i)=>(uu(r,o,"read from private field"),i?i.call(r):o.get(r)),se=(r,o,i)=>o.has(r)?Vf("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,i),K=(r,o,i,l)=>(uu(r,o,"write to private field"),l?l.call(r,i):o.set(r,i),i),ge=(r,o,i)=>(uu(r,o,"access private method"),i);var aa=(r,o,i,l)=>({set _(c){K(r,o,c,i)},get _(){return x(r,o,l)}});function oy(r,o){for(var i=0;i<o.length;i++){const l=o[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 o=document.createElement("link").relList;if(o&&o.supports&&o.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 Gp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var cu={exports:{}},_s={},du={exports:{}},we={};/**
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 Hf;function sy(){if(Hf)return we;Hf=1;var r=Symbol.for("react.element"),o=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 T(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,C={};function N(E,_,X){this.props=E,this.context=_,this.refs=C,this.updater=X||v}N.prototype.isReactComponent={},N.prototype.setState=function(E,_){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,_,"setState")},N.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function z(){}z.prototype=N.prototype;function W(E,_,X){this.props=E,this.context=_,this.refs=C,this.updater=X||v}var $=W.prototype=new z;$.constructor=W,I($,N.prototype),$.isPureReactComponent=!0;var L=Array.isArray,ee=Object.prototype.hasOwnProperty,oe={current:null},ne={key:!0,ref:!0,__self:!0,__source:!0};function ie(E,_,X){var te,de={},ve=null,ce=null;if(_!=null)for(te in _.ref!==void 0&&(ce=_.ref),_.key!==void 0&&(ve=""+_.key),_)ee.call(_,te)&&!ne.hasOwnProperty(te)&&(de[te]=_[te]);var ke=arguments.length-2;if(ke===1)de.children=X;else if(1<ke){for(var je=Array(ke),Ze=0;Ze<ke;Ze++)je[Ze]=arguments[Ze+2];de.children=je}if(E&&E.defaultProps)for(te in ke=E.defaultProps,ke)de[te]===void 0&&(de[te]=ke[te]);return{$$typeof:r,type:E,key:ve,ref:ce,props:de,_owner:oe.current}}function he(E,_){return{$$typeof:r,type:E.type,key:_,ref:E.ref,props:E.props,_owner:E._owner}}function ye(E){return typeof E=="object"&&E!==null&&E.$$typeof===r}function Pe(E){var _={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(X){return _[X]})}var ae=/\/+/g;function De(E,_){return typeof E=="object"&&E!==null&&E.key!=null?Pe(""+E.key):_.toString(36)}function Te(E,_,X,te,de){var ve=typeof E;(ve==="undefined"||ve==="boolean")&&(E=null);var ce=!1;if(E===null)ce=!0;else switch(ve){case"string":case"number":ce=!0;break;case"object":switch(E.$$typeof){case r:case o:ce=!0}}if(ce)return ce=E,de=de(ce),E=te===""?"."+De(ce,0):te,L(de)?(X="",E!=null&&(X=E.replace(ae,"$&/")+"/"),Te(de,_,X,"",function(Ze){return Ze})):de!=null&&(ye(de)&&(de=he(de,X+(!de.key||ce&&ce.key===de.key?"":(""+de.key).replace(ae,"$&/")+"/")+E)),_.push(de)),1;if(ce=0,te=te===""?".":te+":",L(E))for(var ke=0;ke<E.length;ke++){ve=E[ke];var je=te+De(ve,ke);ce+=Te(ve,_,X,je,de)}else if(je=T(E),typeof je=="function")for(E=je.call(E),ke=0;!(ve=E.next()).done;)ve=ve.value,je=te+De(ve,ke++),ce+=Te(ve,_,X,je,de);else if(ve==="object")throw _=String(E),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.");return ce}function Be(E,_,X){if(E==null)return E;var te=[],de=0;return Te(E,te,"","",function(ve){return _.call(X,ve,de++)}),te}function Oe(E){if(E._status===-1){var _=E._result;_=_(),_.then(function(X){(E._status===0||E._status===-1)&&(E._status=1,E._result=X)},function(X){(E._status===0||E._status===-1)&&(E._status=2,E._result=X)}),E._status===-1&&(E._status=0,E._result=_)}if(E._status===1)return E._result.default;throw E._result}var xe={current:null},H={transition:null},U={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:H,ReactCurrentOwner:oe};function V(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:Be,forEach:function(E,_,X){Be(E,function(){_.apply(this,arguments)},X)},count:function(E){var _=0;return Be(E,function(){_++}),_},toArray:function(E){return Be(E,function(_){return _})||[]},only:function(E){if(!ye(E))throw Error("React.Children.only expected to receive a single React element child.");return E}},we.Component=N,we.Fragment=i,we.Profiler=c,we.PureComponent=W,we.StrictMode=l,we.Suspense=y,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,we.act=V,we.cloneElement=function(E,_,X){if(E==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+E+".");var te=I({},E.props),de=E.key,ve=E.ref,ce=E._owner;if(_!=null){if(_.ref!==void 0&&(ve=_.ref,ce=oe.current),_.key!==void 0&&(de=""+_.key),E.type&&E.type.defaultProps)var ke=E.type.defaultProps;for(je in _)ee.call(_,je)&&!ne.hasOwnProperty(je)&&(te[je]=_[je]===void 0&&ke!==void 0?ke[je]:_[je])}var je=arguments.length-2;if(je===1)te.children=X;else if(1<je){ke=Array(je);for(var Ze=0;Ze<je;Ze++)ke[Ze]=arguments[Ze+2];te.children=ke}return{$$typeof:r,type:E.type,key:de,ref:ve,props:te,_owner:ce}},we.createContext=function(E){return E={$$typeof:m,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},E.Provider={$$typeof:f,_context:E},E.Consumer=E},we.createElement=ie,we.createFactory=function(E){var _=ie.bind(null,E);return _.type=E,_},we.createRef=function(){return{current:null}},we.forwardRef=function(E){return{$$typeof:p,render:E}},we.isValidElement=ye,we.lazy=function(E){return{$$typeof:P,_payload:{_status:-1,_result:E},_init:Oe}},we.memo=function(E,_){return{$$typeof:w,type:E,compare:_===void 0?null:_}},we.startTransition=function(E){var _=H.transition;H.transition={};try{E()}finally{H.transition=_}},we.unstable_act=V,we.useCallback=function(E,_){return xe.current.useCallback(E,_)},we.useContext=function(E){return xe.current.useContext(E)},we.useDebugValue=function(){},we.useDeferredValue=function(E){return xe.current.useDeferredValue(E)},we.useEffect=function(E,_){return xe.current.useEffect(E,_)},we.useId=function(){return xe.current.useId()},we.useImperativeHandle=function(E,_,X){return xe.current.useImperativeHandle(E,_,X)},we.useInsertionEffect=function(E,_){return xe.current.useInsertionEffect(E,_)},we.useLayoutEffect=function(E,_){return xe.current.useLayoutEffect(E,_)},we.useMemo=function(E,_){return xe.current.useMemo(E,_)},we.useReducer=function(E,_,X){return xe.current.useReducer(E,_,X)},we.useRef=function(E){return xe.current.useRef(E)},we.useState=function(E){return xe.current.useState(E)},we.useSyncExternalStore=function(E,_,X){return xe.current.useSyncExternalStore(E,_,X)},we.useTransition=function(){return xe.current.useTransition()},we.version="18.3.1",we}var Qf;function $u(){return Qf||(Qf=1,du.exports=sy()),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 $f;function iy(){if($f)return _s;$f=1;var r=$u(),o=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={},T=null,v=null;w!==void 0&&(T=""+w),y.key!==void 0&&(T=""+y.key),y.ref!==void 0&&(v=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:o,type:p,key:T,ref:v,props:j,_owner:c.current}}return _s.Fragment=i,_s.jsx=m,_s.jsxs=m,_s}var Kf;function ay(){return Kf||(Kf=1,cu.exports=iy()),cu.exports}var h=ay(),k=$u();const Q=Gp(k),qp=oy({__proto__:null,default:Q},[k]);var la={},fu={exports:{}},Ct={},pu={exports:{}},hu={};/**
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 Gf;function ly(){return Gf||(Gf=1,(function(r){function o(H,U){var V=H.length;H.push(U);e:for(;0<V;){var E=V-1>>>1,_=H[E];if(0<c(_,U))H[E]=U,H[V]=_,V=E;else break e}}function i(H){return H.length===0?null:H[0]}function l(H){if(H.length===0)return null;var U=H[0],V=H.pop();if(V!==U){H[0]=V;e:for(var E=0,_=H.length,X=_>>>1;E<X;){var te=2*(E+1)-1,de=H[te],ve=te+1,ce=H[ve];if(0>c(de,V))ve<_&&0>c(ce,de)?(H[E]=ce,H[ve]=V,E=ve):(H[E]=de,H[te]=V,E=te);else if(ve<_&&0>c(ce,V))H[E]=ce,H[ve]=V,E=ve;else break e}}return U}function c(H,U){var V=H.sortIndex-U.sortIndex;return V!==0?V:H.id-U.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,T=3,v=!1,I=!1,C=!1,N=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(H){for(var U=i(w);U!==null;){if(U.callback===null)l(w);else if(U.startTime<=H)l(w),U.sortIndex=U.expirationTime,o(y,U);else break;U=i(w)}}function L(H){if(C=!1,$(H),!I)if(i(y)!==null)I=!0,Oe(ee);else{var U=i(w);U!==null&&xe(L,U.startTime-H)}}function ee(H,U){I=!1,C&&(C=!1,z(ie),ie=-1),v=!0;var V=T;try{for($(U),j=i(y);j!==null&&(!(j.expirationTime>U)||H&&!Pe());){var E=j.callback;if(typeof E=="function"){j.callback=null,T=j.priorityLevel;var _=E(j.expirationTime<=U);U=r.unstable_now(),typeof _=="function"?j.callback=_:j===i(y)&&l(y),$(U)}else l(y);j=i(y)}if(j!==null)var X=!0;else{var te=i(w);te!==null&&xe(L,te.startTime-U),X=!1}return X}finally{j=null,T=V,v=!1}}var oe=!1,ne=null,ie=-1,he=5,ye=-1;function Pe(){return!(r.unstable_now()-ye<he)}function ae(){if(ne!==null){var H=r.unstable_now();ye=H;var U=!0;try{U=ne(!0,H)}finally{U?De():(oe=!1,ne=null)}}else oe=!1}var De;if(typeof W=="function")De=function(){W(ae)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Be=Te.port2;Te.port1.onmessage=ae,De=function(){Be.postMessage(null)}}else De=function(){N(ae,0)};function Oe(H){ne=H,oe||(oe=!0,De())}function xe(H,U){ie=N(function(){H(r.unstable_now())},U)}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(H){H.callback=null},r.unstable_continueExecution=function(){I||v||(I=!0,Oe(ee))},r.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<H?Math.floor(1e3/H):5},r.unstable_getCurrentPriorityLevel=function(){return T},r.unstable_getFirstCallbackNode=function(){return i(y)},r.unstable_next=function(H){switch(T){case 1:case 2:case 3:var U=3;break;default:U=T}var V=T;T=U;try{return H()}finally{T=V}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(H,U){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var V=T;T=H;try{return U()}finally{T=V}},r.unstable_scheduleCallback=function(H,U,V){var E=r.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?E+V:E):V=E,H){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=V+_,H={id:P++,callback:U,priorityLevel:H,startTime:V,expirationTime:_,sortIndex:-1},V>E?(H.sortIndex=V,o(w,H),i(y)===null&&H===i(w)&&(C?(z(ie),ie=-1):C=!0,xe(L,V-E))):(H.sortIndex=_,o(y,H),I||v||(I=!0,Oe(ee))),H},r.unstable_shouldYield=Pe,r.unstable_wrapCallback=function(H){var U=T;return function(){var V=T;T=U;try{return H.apply(this,arguments)}finally{T=V}}}})(hu)),hu}var qf;function uy(){return qf||(qf=1,pu.exports=ly()),pu.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 Yf;function cy(){if(Yf)return Ct;Yf=1;var r=$u(),o=uy();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 T(e){return y.call(j,e)?!0:y.call(P,e)?!1:w.test(e)?j[e]=!0:(P[e]=!0,!1)}function v(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function I(e,t,n,s){if(t===null||typeof t>"u"||v(e,t,n,s))return!0;if(s)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 C(e,t,n,s,a,u,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,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 C(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 C(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new C(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 C(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new C(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new C(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new C(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function W(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,W);N[t]=new C(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,W);N[t]=new C(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,W);N[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)});function $(e,t,n,s){var a=N.hasOwnProperty(t)?N[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(I(t,n,a,s)&&(n=null),s||a===null?T(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,s=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ee=Symbol.for("react.element"),oe=Symbol.for("react.portal"),ne=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),Pe=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),Oe=Symbol.for("react.lazy"),xe=Symbol.for("react.offscreen"),H=Symbol.iterator;function U(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var V=Object.assign,E;function _(e){if(E===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);E=t&&t[1]||""}return`
34
+ `+E+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(O){var s=O}Reflect.construct(e,[],t)}else{try{t.call()}catch(O){s=O}e.call(t.prototype)}else{try{throw Error()}catch(O){s=O}e()}}catch(O){if(O&&s&&typeof O.stack=="string"){for(var a=O.stack.split(`
35
+ `),u=s.stack.split(`
36
+ `),d=a.length-1,g=u.length-1;1<=d&&0<=g&&a[d]!==u[g];)g--;for(;1<=d&&0<=g;d--,g--)if(a[d]!==u[g]){if(d!==1||g!==1)do if(d--,g--,0>g||a[d]!==u[g]){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<=g);break}}}finally{X=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function de(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("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 ve(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 oe:return"Portal";case he:return"Profiler";case ie:return"StrictMode";case De:return"Suspense";case Te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pe:return(e.displayName||"Context")+".Consumer";case ye: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:ve(e.type)||"Memo";case Oe:t=e._payload,e=e._init;try{return ve(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 ve(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 ke(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function je(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=je(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+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){s=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(d){s=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nn(e){e._valueTracker||(e._valueTracker=Ze(e))}function Xr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=je(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Sr(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 Ko(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ks(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=ke(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Go(e,t){t=t.checked,t!=null&&$(e,"checked",t,!1)}function qo(e,t){Go(e,t);var n=ke(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yo(e,t.type,ke(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zr(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="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 Yo(e,t,n){(t!=="number"||Sr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dn=Array.isArray;function _t(e,t,n,s){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&&s&&(e[n].defaultSelected=!0)}else{for(n=""+ke(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Jr(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function rn(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(Dn(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ke(n)}}function Gs(e,t){var n=ke(t.value),s=ke(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function qs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dt(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 on(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var eo,Ys=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sn(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},Xs=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){Xs.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function to(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 Sn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=to(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var Zs=V({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 an(e,t){if(t){if(Zs[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 Xo(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 Zo=null;function no(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ro=null,Fn=null,ln=null;function Vt(e){if(e=vs(e)){if(typeof ro!="function")throw Error(i(280));var t=e.stateNode;t&&(t=ki(t),ro(e.stateNode,e.type,t))}}function Js(e){Fn?ln?ln.push(e):ln=[e]:Fn=e}function pe(){if(Fn){var e=Fn,t=ln;if(ln=Fn=null,Vt(e),t)for(e=0;e<t.length;e++)Vt(t[e])}}function Ne(e,t){return e(t)}function _e(){}var ft=!1;function yt(e,t,n){if(ft)return e(t,n);ft=!0;try{return Ne(e,t,n)}finally{ft=!1,(Fn!==null||ln!==null)&&(_e(),pe())}}function vt(e,t){var n=e.stateNode;if(n===null)return null;var s=ki(n);if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var Ht=!1;if(p)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){Ht=!0}}),window.addEventListener("test",rt,rt),window.removeEventListener("test",rt,rt)}catch{Ht=!1}function un(e,t,n,s,a,u,d,g,S){var O=Array.prototype.slice.call(arguments,3);try{t.apply(n,O)}catch(D){this.onError(D)}}var Jo=!1,ei=null,ti=!1,ja=null,dm={onError:function(e){Jo=!0,ei=e}};function fm(e,t,n,s,a,u,d,g,S){Jo=!1,ei=null,un.apply(dm,arguments)}function pm(e,t,n,s,a,u,d,g,S){if(fm.apply(this,arguments),Jo){if(Jo){var O=ei;Jo=!1,ei=null}else throw Error(i(198));ti||(ti=!0,ja=O)}}function br(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 dc(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 fc(e){if(br(e)!==e)throw Error(i(188))}function hm(e){var t=e.alternate;if(!t){if(t=br(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,s=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(s=a.return,s!==null){n=s;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return fc(a),e;if(u===s)return fc(a),t;u=u.sibling}throw Error(i(188))}if(n.return!==s.return)n=a,s=u;else{for(var d=!1,g=a.child;g;){if(g===n){d=!0,n=a,s=u;break}if(g===s){d=!0,s=a,n=u;break}g=g.sibling}if(!d){for(g=u.child;g;){if(g===n){d=!0,n=u,s=a;break}if(g===s){d=!0,s=u,n=a;break}g=g.sibling}if(!d)throw Error(i(189))}}if(n.alternate!==s)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function pc(e){return e=hm(e),e!==null?hc(e):null}function hc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hc(e);if(t!==null)return t;e=e.sibling}return null}var mc=o.unstable_scheduleCallback,gc=o.unstable_cancelCallback,mm=o.unstable_shouldYield,gm=o.unstable_requestPaint,$e=o.unstable_now,ym=o.unstable_getCurrentPriorityLevel,Ra=o.unstable_ImmediatePriority,yc=o.unstable_UserBlockingPriority,ni=o.unstable_NormalPriority,vm=o.unstable_LowPriority,vc=o.unstable_IdlePriority,ri=null,cn=null;function wm(e){if(cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(ri,e,void 0,(e.current.flags&128)===128)}catch{}}var Qt=Math.clz32?Math.clz32:km,xm=Math.log,Sm=Math.LN2;function km(e){return e>>>=0,e===0?32:31-(xm(e)/Sm|0)|0}var oi=64,si=4194304;function es(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 ii(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,u=e.pingedLanes,d=n&268435455;if(d!==0){var g=d&~a;g!==0?s=es(g):(u&=d,u!==0&&(s=es(u)))}else d=n&~a,d!==0?s=es(d):u!==0&&(s=es(u));if(s===0)return 0;if(t!==0&&t!==s&&(t&a)===0&&(a=s&-s,u=t&-t,a>=u||a===16&&(u&4194240)!==0))return t;if((s&4)!==0&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-Qt(t),a=1<<n,s|=e[n],t&=~a;return s}function bm(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 Cm(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var d=31-Qt(u),g=1<<d,S=a[d];S===-1?((g&n)===0||(g&s)!==0)&&(a[d]=bm(g,t)):S<=t&&(e.expiredLanes|=g),u&=~g}}function Ma(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wc(){var e=oi;return oi<<=1,(oi&4194240)===0&&(oi=64),e}function Ta(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ts(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qt(t),e[t]=n}function Em(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 s=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-Qt(n),u=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~u}}function Oa(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Qt(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var Me=0;function xc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Sc,_a,kc,bc,Cc,za=!1,ai=[],Un=null,Bn=null,Wn=null,ns=new Map,rs=new Map,Vn=[],Nm="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 Ec(e,t){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Bn=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":ns.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rs.delete(t.pointerId)}}function os(e,t,n,s,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[a]},t!==null&&(t=vs(t),t!==null&&_a(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Pm(e,t,n,s,a){switch(t){case"focusin":return Un=os(Un,e,t,n,s,a),!0;case"dragenter":return Bn=os(Bn,e,t,n,s,a),!0;case"mouseover":return Wn=os(Wn,e,t,n,s,a),!0;case"pointerover":var u=a.pointerId;return ns.set(u,os(ns.get(u)||null,e,t,n,s,a)),!0;case"gotpointercapture":return u=a.pointerId,rs.set(u,os(rs.get(u)||null,e,t,n,s,a)),!0}return!1}function Nc(e){var t=Cr(e.target);if(t!==null){var n=br(t);if(n!==null){if(t=n.tag,t===13){if(t=dc(n),t!==null){e.blockedOn=t,Cc(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 li(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Aa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Zo=s,n.target.dispatchEvent(s),Zo=null}else return t=vs(n),t!==null&&_a(t),e.blockedOn=n,!1;t.shift()}return!0}function Pc(e,t,n){li(e)&&n.delete(t)}function jm(){za=!1,Un!==null&&li(Un)&&(Un=null),Bn!==null&&li(Bn)&&(Bn=null),Wn!==null&&li(Wn)&&(Wn=null),ns.forEach(Pc),rs.forEach(Pc)}function ss(e,t){e.blockedOn===t&&(e.blockedOn=null,za||(za=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,jm)))}function is(e){function t(a){return ss(a,e)}if(0<ai.length){ss(ai[0],e);for(var n=1;n<ai.length;n++){var s=ai[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Un!==null&&ss(Un,e),Bn!==null&&ss(Bn,e),Wn!==null&&ss(Wn,e),ns.forEach(t),rs.forEach(t),n=0;n<Vn.length;n++)s=Vn[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Vn.length&&(n=Vn[0],n.blockedOn===null);)Nc(n),n.blockedOn===null&&Vn.shift()}var oo=L.ReactCurrentBatchConfig,ui=!0;function Rm(e,t,n,s){var a=Me,u=oo.transition;oo.transition=null;try{Me=1,Ia(e,t,n,s)}finally{Me=a,oo.transition=u}}function Mm(e,t,n,s){var a=Me,u=oo.transition;oo.transition=null;try{Me=4,Ia(e,t,n,s)}finally{Me=a,oo.transition=u}}function Ia(e,t,n,s){if(ui){var a=Aa(e,t,n,s);if(a===null)Ja(e,t,s,ci,n),Ec(e,s);else if(Pm(a,e,t,n,s))s.stopPropagation();else if(Ec(e,s),t&4&&-1<Nm.indexOf(e)){for(;a!==null;){var u=vs(a);if(u!==null&&Sc(u),u=Aa(e,t,n,s),u===null&&Ja(e,t,s,ci,n),u===a)break;a=u}a!==null&&s.stopPropagation()}else Ja(e,t,s,null,n)}}var ci=null;function Aa(e,t,n,s){if(ci=null,e=no(s),e=Cr(e),e!==null)if(t=br(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dc(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 ci=e,null}function jc(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(ym()){case Ra:return 1;case yc:return 4;case ni:case vm:return 16;case vc:return 536870912;default:return 16}default:return 16}}var Hn=null,La=null,di=null;function Rc(){if(di)return di;var e,t=La,n=t.length,s,a="value"in Hn?Hn.value:Hn.textContent,u=a.length;for(e=0;e<n&&t[e]===a[e];e++);var d=n-e;for(s=1;s<=d&&t[n-s]===a[u-s];s++);return di=a.slice(e,1<s?1-s:void 0)}function fi(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 pi(){return!0}function Mc(){return!1}function jt(e){function t(n,s,a,u,d){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?pi:Mc,this.isPropagationStopped=Mc,this}return V(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=pi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pi)},persist:function(){},isPersistent:pi}),t}var so={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Da=jt(so),as=V({},so,{view:0,detail:0}),Tm=jt(as),Fa,Ua,ls,hi=V({},as,{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!==ls&&(ls&&e.type==="mousemove"?(Fa=e.screenX-ls.screenX,Ua=e.screenY-ls.screenY):Ua=Fa=0,ls=e),Fa)},movementY:function(e){return"movementY"in e?e.movementY:Ua}}),Tc=jt(hi),Om=V({},hi,{dataTransfer:0}),_m=jt(Om),zm=V({},as,{relatedTarget:0}),Ba=jt(zm),Im=V({},so,{animationName:0,elapsedTime:0,pseudoElement:0}),Am=jt(Im),Lm=V({},so,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dm=jt(Lm),Fm=V({},so,{data:0}),Oc=jt(Fm),Um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bm={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"},Wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wm[e])?!!t[e]:!1}function Wa(){return Vm}var Hm=V({},as,{key:function(e){if(e.key){var t=Um[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Bm[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"?fi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qm=jt(Hm),$m=V({},hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_c=jt($m),Km=V({},as,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa}),Gm=jt(Km),qm=V({},so,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ym=jt(qm),Xm=V({},hi,{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}),Zm=jt(Xm),Jm=[9,13,27,32],Va=p&&"CompositionEvent"in window,us=null;p&&"documentMode"in document&&(us=document.documentMode);var eg=p&&"TextEvent"in window&&!us,zc=p&&(!Va||us&&8<us&&11>=us),Ic=" ",Ac=!1;function Lc(e,t){switch(e){case"keyup":return Jm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var io=!1;function tg(e,t){switch(e){case"compositionend":return Dc(t);case"keypress":return t.which!==32?null:(Ac=!0,Ic);case"textInput":return e=t.data,e===Ic&&Ac?null:e;default:return null}}function ng(e,t){if(io)return e==="compositionend"||!Va&&Lc(e,t)?(e=Rc(),di=La=Hn=null,io=!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 zc&&t.locale!=="ko"?null:t.data;default:return null}}var rg={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 Fc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rg[e.type]:t==="textarea"}function Uc(e,t,n,s){Js(s),t=wi(t,"onChange"),0<t.length&&(n=new Da("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var cs=null,ds=null;function og(e){od(e,0)}function mi(e){var t=fo(e);if(Xr(t))return e}function sg(e,t){if(e==="change")return t}var Bc=!1;if(p){var Ha;if(p){var Qa="oninput"in document;if(!Qa){var Wc=document.createElement("div");Wc.setAttribute("oninput","return;"),Qa=typeof Wc.oninput=="function"}Ha=Qa}else Ha=!1;Bc=Ha&&(!document.documentMode||9<document.documentMode)}function Vc(){cs&&(cs.detachEvent("onpropertychange",Hc),ds=cs=null)}function Hc(e){if(e.propertyName==="value"&&mi(ds)){var t=[];Uc(t,ds,e,no(e)),yt(og,t)}}function ig(e,t,n){e==="focusin"?(Vc(),cs=t,ds=n,cs.attachEvent("onpropertychange",Hc)):e==="focusout"&&Vc()}function ag(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mi(ds)}function lg(e,t){if(e==="click")return mi(t)}function ug(e,t){if(e==="input"||e==="change")return mi(t)}function cg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:cg;function fs(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var a=n[s];if(!y.call(t,a)||!$t(e[a],t[a]))return!1}return!0}function Qc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $c(e,t){var n=Qc(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qc(n)}}function Kc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gc(){for(var e=window,t=Sr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sr(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 dg(e){var t=Gc(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Kc(n.ownerDocument.documentElement,n)){if(s!==null&&$a(n)){if(t=s.start,e=s.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(s.start,a);s=s.end===void 0?u:Math.min(s.end,a),!e.extend&&u>s&&(a=s,s=u,u=a),a=$c(n,u);var d=$c(n,s);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>s?(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 fg=p&&"documentMode"in document&&11>=document.documentMode,ao=null,Ka=null,ps=null,Ga=!1;function qc(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ga||ao==null||ao!==Sr(s)||(s=ao,"selectionStart"in s&&$a(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ps&&fs(ps,s)||(ps=s,s=wi(Ka,"onSelect"),0<s.length&&(t=new Da("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=ao)))}function gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lo={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionend:gi("Transition","TransitionEnd")},qa={},Yc={};p&&(Yc=document.createElement("div").style,"AnimationEvent"in window||(delete lo.animationend.animation,delete lo.animationiteration.animation,delete lo.animationstart.animation),"TransitionEvent"in window||delete lo.transitionend.transition);function yi(e){if(qa[e])return qa[e];if(!lo[e])return e;var t=lo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yc)return qa[e]=t[n];return e}var Xc=yi("animationend"),Zc=yi("animationiteration"),Jc=yi("animationstart"),ed=yi("transitionend"),td=new Map,nd="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 Qn(e,t){td.set(e,t),f(t,[e])}for(var Ya=0;Ya<nd.length;Ya++){var Xa=nd[Ya],pg=Xa.toLowerCase(),hg=Xa[0].toUpperCase()+Xa.slice(1);Qn(pg,"on"+hg)}Qn(Xc,"onAnimationEnd"),Qn(Zc,"onAnimationIteration"),Qn(Jc,"onAnimationStart"),Qn("dblclick","onDoubleClick"),Qn("focusin","onFocus"),Qn("focusout","onBlur"),Qn(ed,"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 hs="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(" "),mg=new Set("cancel close invalid load scroll toggle".split(" ").concat(hs));function rd(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,pm(s,t,void 0,e),e.currentTarget=null}function od(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],a=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var d=s.length-1;0<=d;d--){var g=s[d],S=g.instance,O=g.currentTarget;if(g=g.listener,S!==u&&a.isPropagationStopped())break e;rd(a,g,O),u=S}else for(d=0;d<s.length;d++){if(g=s[d],S=g.instance,O=g.currentTarget,g=g.listener,S!==u&&a.isPropagationStopped())break e;rd(a,g,O),u=S}}}if(ti)throw e=ja,ti=!1,ja=null,e}function Ie(e,t){var n=t[sl];n===void 0&&(n=t[sl]=new Set);var s=e+"__bubble";n.has(s)||(sd(t,e,2,!1),n.add(s))}function Za(e,t,n){var s=0;t&&(s|=4),sd(n,e,s,t)}var vi="_reactListening"+Math.random().toString(36).slice(2);function ms(e){if(!e[vi]){e[vi]=!0,l.forEach(function(n){n!=="selectionchange"&&(mg.has(n)||Za(n,!1,e),Za(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vi]||(t[vi]=!0,Za("selectionchange",!1,t))}}function sd(e,t,n,s){switch(jc(t)){case 1:var a=Rm;break;case 4:a=Mm;break;default:a=Ia}n=a.bind(null,t,n,e),a=void 0,!Ht||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),s?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,s,a){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var d=s.tag;if(d===3||d===4){var g=s.stateNode.containerInfo;if(g===a||g.nodeType===8&&g.parentNode===a)break;if(d===4)for(d=s.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(;g!==null;){if(d=Cr(g),d===null)return;if(S=d.tag,S===5||S===6){s=u=d;continue e}g=g.parentNode}}s=s.return}yt(function(){var O=u,D=no(n),F=[];e:{var A=td.get(e);if(A!==void 0){var q=Da,Z=e;switch(e){case"keypress":if(fi(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=Tc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=_m;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Gm;break;case Xc:case Zc:case Jc:q=Am;break;case ed:q=Ym;break;case"scroll":q=Tm;break;case"wheel":q=Zm;break;case"copy":case"cut":case"paste":q=Dm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=_c}var J=(t&4)!==0,Ke=!J&&e==="scroll",R=J?A!==null?A+"Capture":null:A;J=[];for(var b=O,M;b!==null;){M=b;var B=M.stateNode;if(M.tag===5&&B!==null&&(M=B,R!==null&&(B=vt(b,R),B!=null&&J.push(gs(b,B,M)))),Ke)break;b=b.return}0<J.length&&(A=new q(A,Z,null,n,D),F.push({event:A,listeners:J}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",A&&n!==Zo&&(Z=n.relatedTarget||n.fromElement)&&(Cr(Z)||Z[kn]))break e;if((q||A)&&(A=D.window===D?D:(A=D.ownerDocument)?A.defaultView||A.parentWindow:window,q?(Z=n.relatedTarget||n.toElement,q=O,Z=Z?Cr(Z):null,Z!==null&&(Ke=br(Z),Z!==Ke||Z.tag!==5&&Z.tag!==6)&&(Z=null)):(q=null,Z=O),q!==Z)){if(J=Tc,B="onMouseLeave",R="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(J=_c,B="onPointerLeave",R="onPointerEnter",b="pointer"),Ke=q==null?A:fo(q),M=Z==null?A:fo(Z),A=new J(B,b+"leave",q,n,D),A.target=Ke,A.relatedTarget=M,B=null,Cr(D)===O&&(J=new J(R,b+"enter",Z,n,D),J.target=M,J.relatedTarget=Ke,B=J),Ke=B,q&&Z)t:{for(J=q,R=Z,b=0,M=J;M;M=uo(M))b++;for(M=0,B=R;B;B=uo(B))M++;for(;0<b-M;)J=uo(J),b--;for(;0<M-b;)R=uo(R),M--;for(;b--;){if(J===R||R!==null&&J===R.alternate)break t;J=uo(J),R=uo(R)}J=null}else J=null;q!==null&&id(F,A,q,J,!1),Z!==null&&Ke!==null&&id(F,Ke,Z,J,!0)}}e:{if(A=O?fo(O):window,q=A.nodeName&&A.nodeName.toLowerCase(),q==="select"||q==="input"&&A.type==="file")var re=sg;else if(Fc(A))if(Bc)re=ug;else{re=ag;var le=ig}else(q=A.nodeName)&&q.toLowerCase()==="input"&&(A.type==="checkbox"||A.type==="radio")&&(re=lg);if(re&&(re=re(e,O))){Uc(F,re,n,D);break e}le&&le(e,A,O),e==="focusout"&&(le=A._wrapperState)&&le.controlled&&A.type==="number"&&Yo(A,"number",A.value)}switch(le=O?fo(O):window,e){case"focusin":(Fc(le)||le.contentEditable==="true")&&(ao=le,Ka=O,ps=null);break;case"focusout":ps=Ka=ao=null;break;case"mousedown":Ga=!0;break;case"contextmenu":case"mouseup":case"dragend":Ga=!1,qc(F,n,D);break;case"selectionchange":if(fg)break;case"keydown":case"keyup":qc(F,n,D)}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 io?Lc(e,n)&&(fe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(fe="onCompositionStart");fe&&(zc&&n.locale!=="ko"&&(io||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&io&&(ue=Rc()):(Hn=D,La="value"in Hn?Hn.value:Hn.textContent,io=!0)),le=wi(O,fe),0<le.length&&(fe=new Oc(fe,e,null,n,D),F.push({event:fe,listeners:le}),ue?fe.data=ue:(ue=Dc(n),ue!==null&&(fe.data=ue)))),(ue=eg?tg(e,n):ng(e,n))&&(O=wi(O,"onBeforeInput"),0<O.length&&(D=new Oc("onBeforeInput","beforeinput",null,n,D),F.push({event:D,listeners:O}),D.data=ue))}od(F,t)})}function gs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wi(e,t){for(var n=t+"Capture",s=[];e!==null;){var a=e,u=a.stateNode;a.tag===5&&u!==null&&(a=u,u=vt(e,n),u!=null&&s.unshift(gs(e,u,a)),u=vt(e,t),u!=null&&s.push(gs(e,u,a))),e=e.return}return s}function uo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function id(e,t,n,s,a){for(var u=t._reactName,d=[];n!==null&&n!==s;){var g=n,S=g.alternate,O=g.stateNode;if(S!==null&&S===s)break;g.tag===5&&O!==null&&(g=O,a?(S=vt(n,u),S!=null&&d.unshift(gs(n,S,g))):a||(S=vt(n,u),S!=null&&d.push(gs(n,S,g)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var gg=/\r\n?/g,yg=/\u0000|\uFFFD/g;function ad(e){return(typeof e=="string"?e:""+e).replace(gg,`
38
+ `).replace(yg,"")}function xi(e,t,n){if(t=ad(t),ad(e)!==t&&n)throw Error(i(425))}function Si(){}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,vg=typeof clearTimeout=="function"?clearTimeout:void 0,ld=typeof Promise=="function"?Promise:void 0,wg=typeof queueMicrotask=="function"?queueMicrotask:typeof ld<"u"?function(e){return ld.resolve(null).then(e).catch(xg)}:rl;function xg(e){setTimeout(function(){throw e})}function ol(e,t){var n=t,s=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(s===0){e.removeChild(a),is(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);is(t)}function $n(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 ud(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 co=Math.random().toString(36).slice(2),dn="__reactFiber$"+co,ys="__reactProps$"+co,kn="__reactContainer$"+co,sl="__reactEvents$"+co,Sg="__reactListeners$"+co,kg="__reactHandles$"+co;function Cr(e){var t=e[dn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kn]||n[dn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ud(e);e!==null;){if(n=e[dn])return n;e=ud(e)}return t}e=n,n=e.parentNode}return null}function vs(e){return e=e[dn]||e[kn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ki(e){return e[ys]||null}var il=[],po=-1;function Kn(e){return{current:e}}function Ae(e){0>po||(e.current=il[po],il[po]=null,po--)}function ze(e,t){po++,il[po]=e.current,e.current=t}var Gn={},it=Kn(Gn),wt=Kn(!1),Er=Gn;function ho(e,t){var n=e.type.contextTypes;if(!n)return Gn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},u;for(u in n)a[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function xt(e){return e=e.childContextTypes,e!=null}function bi(){Ae(wt),Ae(it)}function cd(e,t,n){if(it.current!==Gn)throw Error(i(168));ze(it,t),ze(wt,n)}function dd(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error(i(108,ce(e)||"Unknown",a));return V({},n,s)}function Ci(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gn,Er=it.current,ze(it,e),ze(wt,wt.current),!0}function fd(e,t,n){var s=e.stateNode;if(!s)throw Error(i(169));n?(e=dd(e,t,Er),s.__reactInternalMemoizedMergedChildContext=e,Ae(wt),Ae(it),ze(it,e)):Ae(wt),ze(wt,n)}var bn=null,Ei=!1,al=!1;function pd(e){bn===null?bn=[e]:bn.push(e)}function bg(e){Ei=!0,pd(e)}function qn(){if(!al&&bn!==null){al=!0;var e=0,t=Me;try{var n=bn;for(Me=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}bn=null,Ei=!1}catch(a){throw bn!==null&&(bn=bn.slice(e+1)),mc(Ra,qn),a}finally{Me=t,al=!1}}return null}var mo=[],go=0,Ni=null,Pi=0,zt=[],It=0,Nr=null,Cn=1,En="";function Pr(e,t){mo[go++]=Pi,mo[go++]=Ni,Ni=e,Pi=t}function hd(e,t,n){zt[It++]=Cn,zt[It++]=En,zt[It++]=Nr,Nr=e;var s=Cn;e=En;var a=32-Qt(s)-1;s&=~(1<<a),n+=1;var u=32-Qt(t)+a;if(30<u){var d=a-a%5;u=(s&(1<<d)-1).toString(32),s>>=d,a-=d,Cn=1<<32-Qt(t)+a|n<<a|s,En=u+e}else Cn=1<<u|n<<a|s,En=e}function ll(e){e.return!==null&&(Pr(e,1),hd(e,1,0))}function ul(e){for(;e===Ni;)Ni=mo[--go],mo[go]=null,Pi=mo[--go],mo[go]=null;for(;e===Nr;)Nr=zt[--It],zt[It]=null,En=zt[--It],zt[It]=null,Cn=zt[--It],zt[It]=null}var Rt=null,Mt=null,Fe=!1,Kt=null;function md(e,t){var n=Ft(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,Mt=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,Mt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nr!==null?{id:Cn,overflow:En}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Mt=null,!0):!1;default:return!1}}function cl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function dl(e){if(Fe){var t=Mt;if(t){var n=t;if(!gd(e,t)){if(cl(e))throw Error(i(418));t=$n(n.nextSibling);var s=Rt;t&&gd(e,t)?md(s,n):(e.flags=e.flags&-4097|2,Fe=!1,Rt=e)}}else{if(cl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Fe=!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 ji(e){if(e!==Rt)return!1;if(!Fe)return yd(e),Fe=!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=Mt)){if(cl(e))throw vd(),Error(i(418));for(;t;)md(e,t),t=$n(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){Mt=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mt=null}}else Mt=Rt?$n(e.stateNode.nextSibling):null;return!0}function vd(){for(var e=Mt;e;)e=$n(e.nextSibling)}function yo(){Mt=Rt=null,Fe=!1}function fl(e){Kt===null?Kt=[e]:Kt.push(e)}var Cg=L.ReactCurrentBatchConfig;function ws(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 s=n.stateNode}if(!s)throw Error(i(147,e));var a=s,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(d){var g=a.refs;d===null?delete g[u]:g[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 Ri(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 xd(e){function t(R,b){if(e){var M=R.deletions;M===null?(R.deletions=[b],R.flags|=16):M.push(b)}}function n(R,b){if(!e)return null;for(;b!==null;)t(R,b),b=b.sibling;return null}function s(R,b){for(R=new Map;b!==null;)b.key!==null?R.set(b.key,b):R.set(b.index,b),b=b.sibling;return R}function a(R,b){return R=rr(R,b),R.index=0,R.sibling=null,R}function u(R,b,M){return R.index=M,e?(M=R.alternate,M!==null?(M=M.index,M<b?(R.flags|=2,b):M):(R.flags|=2,b)):(R.flags|=1048576,b)}function d(R){return e&&R.alternate===null&&(R.flags|=2),R}function g(R,b,M,B){return b===null||b.tag!==6?(b=ru(M,R.mode,B),b.return=R,b):(b=a(b,M),b.return=R,b)}function S(R,b,M,B){var re=M.type;return re===ne?D(R,b,M.props.children,B,M.key):b!==null&&(b.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===Oe&&wd(re)===b.type)?(B=a(b,M.props),B.ref=ws(R,b,M),B.return=R,B):(B=Ji(M.type,M.key,M.props,null,R.mode,B),B.ref=ws(R,b,M),B.return=R,B)}function O(R,b,M,B){return b===null||b.tag!==4||b.stateNode.containerInfo!==M.containerInfo||b.stateNode.implementation!==M.implementation?(b=ou(M,R.mode,B),b.return=R,b):(b=a(b,M.children||[]),b.return=R,b)}function D(R,b,M,B,re){return b===null||b.tag!==7?(b=Ir(M,R.mode,B,re),b.return=R,b):(b=a(b,M),b.return=R,b)}function F(R,b,M){if(typeof b=="string"&&b!==""||typeof b=="number")return b=ru(""+b,R.mode,M),b.return=R,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ee:return M=Ji(b.type,b.key,b.props,null,R.mode,M),M.ref=ws(R,null,b),M.return=R,M;case oe:return b=ou(b,R.mode,M),b.return=R,b;case Oe:var B=b._init;return F(R,B(b._payload),M)}if(Dn(b)||U(b))return b=Ir(b,R.mode,M,null),b.return=R,b;Ri(R,b)}return null}function A(R,b,M,B){var re=b!==null?b.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return re!==null?null:g(R,b,""+M,B);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case ee:return M.key===re?S(R,b,M,B):null;case oe:return M.key===re?O(R,b,M,B):null;case Oe:return re=M._init,A(R,b,re(M._payload),B)}if(Dn(M)||U(M))return re!==null?null:D(R,b,M,B,null);Ri(R,M)}return null}function q(R,b,M,B,re){if(typeof B=="string"&&B!==""||typeof B=="number")return R=R.get(M)||null,g(b,R,""+B,re);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case ee:return R=R.get(B.key===null?M:B.key)||null,S(b,R,B,re);case oe:return R=R.get(B.key===null?M:B.key)||null,O(b,R,B,re);case Oe:var le=B._init;return q(R,b,M,le(B._payload),re)}if(Dn(B)||U(B))return R=R.get(M)||null,D(b,R,B,re,null);Ri(b,B)}return null}function Z(R,b,M,B){for(var re=null,le=null,ue=b,fe=b=0,tt=null;ue!==null&&fe<M.length;fe++){ue.index>fe?(tt=ue,ue=null):tt=ue.sibling;var Ce=A(R,ue,M[fe],B);if(Ce===null){ue===null&&(ue=tt);break}e&&ue&&Ce.alternate===null&&t(R,ue),b=u(Ce,b,fe),le===null?re=Ce:le.sibling=Ce,le=Ce,ue=tt}if(fe===M.length)return n(R,ue),Fe&&Pr(R,fe),re;if(ue===null){for(;fe<M.length;fe++)ue=F(R,M[fe],B),ue!==null&&(b=u(ue,b,fe),le===null?re=ue:le.sibling=ue,le=ue);return Fe&&Pr(R,fe),re}for(ue=s(R,ue);fe<M.length;fe++)tt=q(ue,R,fe,M[fe],B),tt!==null&&(e&&tt.alternate!==null&&ue.delete(tt.key===null?fe:tt.key),b=u(tt,b,fe),le===null?re=tt:le.sibling=tt,le=tt);return e&&ue.forEach(function(or){return t(R,or)}),Fe&&Pr(R,fe),re}function J(R,b,M,B){var re=U(M);if(typeof re!="function")throw Error(i(150));if(M=re.call(M),M==null)throw Error(i(151));for(var le=re=null,ue=b,fe=b=0,tt=null,Ce=M.next();ue!==null&&!Ce.done;fe++,Ce=M.next()){ue.index>fe?(tt=ue,ue=null):tt=ue.sibling;var or=A(R,ue,Ce.value,B);if(or===null){ue===null&&(ue=tt);break}e&&ue&&or.alternate===null&&t(R,ue),b=u(or,b,fe),le===null?re=or:le.sibling=or,le=or,ue=tt}if(Ce.done)return n(R,ue),Fe&&Pr(R,fe),re;if(ue===null){for(;!Ce.done;fe++,Ce=M.next())Ce=F(R,Ce.value,B),Ce!==null&&(b=u(Ce,b,fe),le===null?re=Ce:le.sibling=Ce,le=Ce);return Fe&&Pr(R,fe),re}for(ue=s(R,ue);!Ce.done;fe++,Ce=M.next())Ce=q(ue,R,fe,Ce.value,B),Ce!==null&&(e&&Ce.alternate!==null&&ue.delete(Ce.key===null?fe:Ce.key),b=u(Ce,b,fe),le===null?re=Ce:le.sibling=Ce,le=Ce);return e&&ue.forEach(function(ry){return t(R,ry)}),Fe&&Pr(R,fe),re}function Ke(R,b,M,B){if(typeof M=="object"&&M!==null&&M.type===ne&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case ee:e:{for(var re=M.key,le=b;le!==null;){if(le.key===re){if(re=M.type,re===ne){if(le.tag===7){n(R,le.sibling),b=a(le,M.props.children),b.return=R,R=b;break e}}else if(le.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===Oe&&wd(re)===le.type){n(R,le.sibling),b=a(le,M.props),b.ref=ws(R,le,M),b.return=R,R=b;break e}n(R,le);break}else t(R,le);le=le.sibling}M.type===ne?(b=Ir(M.props.children,R.mode,B,M.key),b.return=R,R=b):(B=Ji(M.type,M.key,M.props,null,R.mode,B),B.ref=ws(R,b,M),B.return=R,R=B)}return d(R);case oe:e:{for(le=M.key;b!==null;){if(b.key===le)if(b.tag===4&&b.stateNode.containerInfo===M.containerInfo&&b.stateNode.implementation===M.implementation){n(R,b.sibling),b=a(b,M.children||[]),b.return=R,R=b;break e}else{n(R,b);break}else t(R,b);b=b.sibling}b=ou(M,R.mode,B),b.return=R,R=b}return d(R);case Oe:return le=M._init,Ke(R,b,le(M._payload),B)}if(Dn(M))return Z(R,b,M,B);if(U(M))return J(R,b,M,B);Ri(R,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,b!==null&&b.tag===6?(n(R,b.sibling),b=a(b,M),b.return=R,R=b):(n(R,b),b=ru(M,R.mode,B),b.return=R,R=b),d(R)):n(R,b)}return Ke}var vo=xd(!0),Sd=xd(!1),Mi=Kn(null),Ti=null,wo=null,pl=null;function hl(){pl=wo=Ti=null}function ml(e){var t=Mi.current;Ae(Mi),e._currentValue=t}function gl(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function xo(e,t){Ti=e,pl=wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(St=!0),e.firstContext=null)}function At(e){var t=e._currentValue;if(pl!==e)if(e={context:e,memoizedValue:t,next:null},wo===null){if(Ti===null)throw Error(i(308));wo=e,Ti.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var jr=null;function yl(e){jr===null?jr=[e]:jr.push(e)}function kd(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,yl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Nn(e,s)}function Nn(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 Yn=!1;function vl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bd(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 Pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(be&2)!==0){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,Nn(e,n)}return a=s.interleaved,a===null?(t.next=t,yl(s)):(t.next=a.next,a.next=t),s.interleaved=t,Nn(e,n)}function Oi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Oa(e,n)}}function Cd(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){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:s.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _i(e,t,n,s){var a=e.updateQueue;Yn=!1;var u=a.firstBaseUpdate,d=a.lastBaseUpdate,g=a.shared.pending;if(g!==null){a.shared.pending=null;var S=g,O=S.next;S.next=null,d===null?u=O:d.next=O,d=S;var D=e.alternate;D!==null&&(D=D.updateQueue,g=D.lastBaseUpdate,g!==d&&(g===null?D.firstBaseUpdate=O:g.next=O,D.lastBaseUpdate=S))}if(u!==null){var F=a.baseState;d=0,D=O=S=null,g=u;do{var A=g.lane,q=g.eventTime;if((s&A)===A){D!==null&&(D=D.next={eventTime:q,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var Z=e,J=g;switch(A=t,q=n,J.tag){case 1:if(Z=J.payload,typeof Z=="function"){F=Z.call(q,F,A);break e}F=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=J.payload,A=typeof Z=="function"?Z.call(q,F,A):Z,A==null)break e;F=V({},F,A);break e;case 2:Yn=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,A=a.effects,A===null?a.effects=[g]:A.push(g))}else q={eventTime:q,lane:A,tag:g.tag,payload:g.payload,callback:g.callback,next:null},D===null?(O=D=q,S=F):D=D.next=q,d|=A;if(g=g.next,g===null){if(g=a.shared.pending,g===null)break;A=g,g=A.next,A.next=null,a.lastBaseUpdate=A,a.shared.pending=null}}while(!0);if(D===null&&(S=F),a.baseState=S,a.firstBaseUpdate=O,a.lastBaseUpdate=D,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);Tr|=d,e.lanes=d,e.memoizedState=F}}function Ed(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(a!==null){if(s.callback=null,s=n,typeof a!="function")throw Error(i(191,a));a.call(s)}}}var xs={},fn=Kn(xs),Ss=Kn(xs),ks=Kn(xs);function Rr(e){if(e===xs)throw Error(i(174));return e}function wl(e,t){switch(ze(ks,t),ze(Ss,e),ze(fn,xs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:on(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=on(t,e)}Ae(fn),ze(fn,t)}function So(){Ae(fn),Ae(Ss),Ae(ks)}function Nd(e){Rr(ks.current);var t=Rr(fn.current),n=on(t,e.type);t!==n&&(ze(Ss,e),ze(fn,n))}function xl(e){Ss.current===e&&(Ae(fn),Ae(Ss))}var We=Kn(0);function zi(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 kl(){for(var e=0;e<Sl.length;e++)Sl[e]._workInProgressVersionPrimary=null;Sl.length=0}var Ii=L.ReactCurrentDispatcher,bl=L.ReactCurrentBatchConfig,Mr=0,Ve=null,qe=null,Je=null,Ai=!1,bs=!1,Cs=0,Eg=0;function at(){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(!$t(e[n],t[n]))return!1;return!0}function El(e,t,n,s,a,u){if(Mr=u,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ii.current=e===null||e.memoizedState===null?Rg:Mg,e=n(s,a),bs){u=0;do{if(bs=!1,Cs=0,25<=u)throw Error(i(301));u+=1,Je=qe=null,t.updateQueue=null,Ii.current=Tg,e=n(s,a)}while(bs)}if(Ii.current=Fi,t=qe!==null&&qe.next!==null,Mr=0,Je=qe=Ve=null,Ai=!1,t)throw Error(i(300));return e}function Nl(){var e=Cs!==0;return Cs=0,e}function pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Ve.memoizedState=Je=e:Je=Je.next=e,Je}function Lt(){if(qe===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Je===null?Ve.memoizedState:Je.next;if(t!==null)Je=t,qe=e;else{if(e===null)throw Error(i(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Je===null?Ve.memoizedState=Je=e:Je=Je.next=e}return Je}function Es(e,t){return typeof t=="function"?t(e):t}function Pl(e){var t=Lt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var s=qe,a=s.baseQueue,u=n.pending;if(u!==null){if(a!==null){var d=a.next;a.next=u.next,u.next=d}s.baseQueue=a=u,n.pending=null}if(a!==null){u=a.next,s=s.baseState;var g=d=null,S=null,O=u;do{var D=O.lane;if((Mr&D)===D)S!==null&&(S=S.next={lane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),s=O.hasEagerState?O.eagerState:e(s,O.action);else{var F={lane:D,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};S===null?(g=S=F,d=s):S=S.next=F,Ve.lanes|=D,Tr|=D}O=O.next}while(O!==null&&O!==u);S===null?d=s:S.next=g,$t(s,t.memoizedState)||(St=!0),t.memoizedState=s,t.baseState=d,t.baseQueue=S,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do u=a.lane,Ve.lanes|=u,Tr|=u,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function jl(e){var t=Lt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var s=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);$t(u,t.memoizedState)||(St=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function Pd(){}function jd(e,t){var n=Ve,s=Lt(),a=t(),u=!$t(s.memoizedState,a);if(u&&(s.memoizedState=a,St=!0),s=s.queue,Rl(Td.bind(null,n,s,e),[e]),s.getSnapshot!==t||u||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,Ns(9,Md.bind(null,n,s,a,t),void 0,null),et===null)throw Error(i(349));(Mr&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 Md(e,t,n,s){t.value=n,t.getSnapshot=s,Od(t)&&_d(e)}function Td(e,t,n){return n(function(){Od(t)&&_d(e)})}function Od(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$t(e,n)}catch{return!0}}function _d(e){var t=Nn(e,1);t!==null&&Xt(t,e,1,-1)}function zd(e){var t=pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Es,lastRenderedState:e},t.queue=e,e=e.dispatch=jg.bind(null,Ve,e),[t.memoizedState,e]}function Ns(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,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:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function Id(){return Lt().memoizedState}function Li(e,t,n,s){var a=pn();Ve.flags|=e,a.memoizedState=Ns(1|t,n,void 0,s===void 0?null:s)}function Di(e,t,n,s){var a=Lt();s=s===void 0?null:s;var u=void 0;if(qe!==null){var d=qe.memoizedState;if(u=d.destroy,s!==null&&Cl(s,d.deps)){a.memoizedState=Ns(t,n,u,s);return}}Ve.flags|=e,a.memoizedState=Ns(1|t,n,u,s)}function Ad(e,t){return Li(8390656,8,e,t)}function Rl(e,t){return Di(2048,8,e,t)}function Ld(e,t){return Di(4,2,e,t)}function Dd(e,t){return Di(4,4,e,t)}function Fd(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 Ud(e,t,n){return n=n!=null?n.concat([e]):null,Di(4,4,Fd.bind(null,t,e),n)}function Ml(){}function Bd(e,t){var n=Lt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Cl(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Wd(e,t){var n=Lt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Cl(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Vd(e,t,n){return(Mr&21)===0?(e.baseState&&(e.baseState=!1,St=!0),e.memoizedState=n):($t(n,t)||(n=wc(),Ve.lanes|=n,Tr|=n,e.baseState=!0),t)}function Ng(e,t){var n=Me;Me=n!==0&&4>n?n:4,e(!0);var s=bl.transition;bl.transition={};try{e(!1),t()}finally{Me=n,bl.transition=s}}function Hd(){return Lt().memoizedState}function Pg(e,t,n){var s=tr(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Qd(e))$d(t,n);else if(n=kd(e,t,n,s),n!==null){var a=ht();Xt(n,e,s,a),Kd(n,t,s)}}function jg(e,t,n){var s=tr(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qd(e))$d(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,g=u(d,n);if(a.hasEagerState=!0,a.eagerState=g,$t(g,d)){var S=t.interleaved;S===null?(a.next=a,yl(t)):(a.next=S.next,S.next=a),t.interleaved=a;return}}catch{}finally{}n=kd(e,t,a,s),n!==null&&(a=ht(),Xt(n,e,s,a),Kd(n,t,s))}}function Qd(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function $d(e,t){bs=Ai=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kd(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Oa(e,n)}}var Fi={readContext:At,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},Rg={readContext:At,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:Ad,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Li(4194308,4,Fd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=pn();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=Pg.bind(null,Ve,e),[s.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:zd,useDebugValue:Ml,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=zd(!1),t=e[0];return e=Ng.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ve,a=pn();if(Fe){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),et===null)throw Error(i(349));(Mr&30)!==0||Rd(s,t,n)}a.memoizedState=n;var u={value:n,getSnapshot:t};return a.queue=u,Ad(Td.bind(null,s,u,e),[e]),s.flags|=2048,Ns(9,Md.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=pn(),t=et.identifierPrefix;if(Fe){var n=En,s=Cn;n=(s&~(1<<32-Qt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Eg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mg={readContext:At,useCallback:Bd,useContext:At,useEffect:Rl,useImperativeHandle:Ud,useInsertionEffect:Ld,useLayoutEffect:Dd,useMemo:Wd,useReducer:Pl,useRef:Id,useState:function(){return Pl(Es)},useDebugValue:Ml,useDeferredValue:function(e){var t=Lt();return Vd(t,qe.memoizedState,e)},useTransition:function(){var e=Pl(Es)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Pd,useSyncExternalStore:jd,useId:Hd,unstable_isNewReconciler:!1},Tg={readContext:At,useCallback:Bd,useContext:At,useEffect:Rl,useImperativeHandle:Ud,useInsertionEffect:Ld,useLayoutEffect:Dd,useMemo:Wd,useReducer:jl,useRef:Id,useState:function(){return jl(Es)},useDebugValue:Ml,useDeferredValue:function(e){var t=Lt();return qe===null?t.memoizedState=e:Vd(t,qe.memoizedState,e)},useTransition:function(){var e=jl(Es)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Pd,useSyncExternalStore:jd,useId:Hd,unstable_isNewReconciler:!1};function Gt(e,t){if(e&&e.defaultProps){t=V({},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,s){t=e.memoizedState,n=n(s,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ui={isMounted:function(e){return(e=e._reactInternals)?br(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=ht(),a=tr(e),u=Pn(s,a);u.payload=t,n!=null&&(u.callback=n),t=Xn(e,u,a),t!==null&&(Xt(t,e,a,s),Oi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=ht(),a=tr(e),u=Pn(s,a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Xn(e,u,a),t!==null&&(Xt(t,e,a,s),Oi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ht(),s=tr(e),a=Pn(n,s);a.tag=2,t!=null&&(a.callback=t),t=Xn(e,a,s),t!==null&&(Xt(t,e,s,n),Oi(t,e,s))}};function Gd(e,t,n,s,a,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,d):t.prototype&&t.prototype.isPureReactComponent?!fs(n,s)||!fs(a,u):!0}function qd(e,t,n){var s=!1,a=Gn,u=t.contextType;return typeof u=="object"&&u!==null?u=At(u):(a=xt(t)?Er:it.current,s=t.contextTypes,u=(s=s!=null)?ho(e,a):Gn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ui,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=u),t}function Yd(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Ui.enqueueReplaceState(t,t.state,null)}function Ol(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},vl(e);var u=t.contextType;typeof u=="object"&&u!==null?a.context=At(u):(u=xt(t)?Er:it.current,a.context=ho(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&&Ui.enqueueReplaceState(a,a.state,null),_i(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function ko(e,t){try{var n="",s=t;do n+=de(s),s=s.return;while(s);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 _l(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 Og=typeof WeakMap=="function"?WeakMap:Map;function Xd(e,t,n){n=Pn(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Ki||(Ki=!0,ql=s),zl(e,t)},n}function Zd(e,t,n){n=Pn(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=t.value;n.payload=function(){return s(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 s!="function"&&(Jn===null?Jn=new Set([this]):Jn.add(this));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),n}function Jd(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Og;var a=new Set;s.set(t,a)}else a=s.get(t),a===void 0&&(a=new Set,s.set(t,a));a.has(n)||(a.add(n),e=$g.bind(null,e,t,n),t.then(e,e))}function ef(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 tf(e,t,n,s,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=Pn(-1,1),t.tag=2,Xn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var _g=L.ReactCurrentOwner,St=!1;function pt(e,t,n,s){t.child=e===null?Sd(t,null,n,s):vo(t,e.child,n,s)}function nf(e,t,n,s,a){n=n.render;var u=t.ref;return xo(t,a),s=El(e,t,n,s,u,a),n=Nl(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,jn(e,t,a)):(Fe&&n&&ll(t),t.flags|=1,pt(e,t,s,a),t.child)}function rf(e,t,n,s,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,s,a)):(e=Ji(n.type,null,s,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:fs,n(d,s)&&e.ref===t.ref)return jn(e,t,a)}return t.flags|=1,e=rr(u,s),e.ref=t.ref,e.return=t,t.child=e}function of(e,t,n,s,a){if(e!==null){var u=e.memoizedProps;if(fs(u,s)&&e.ref===t.ref)if(St=!1,t.pendingProps=s=u,(e.lanes&a)!==0)(e.flags&131072)!==0&&(St=!0);else return t.lanes=e.lanes,jn(e,t,a)}return Il(e,t,n,s,a)}function sf(e,t,n){var s=t.pendingProps,a=s.children,u=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(Co,Tt),Tt|=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,ze(Co,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=u!==null?u.baseLanes:n,ze(Co,Tt),Tt|=s}else u!==null?(s=u.baseLanes|n,t.memoizedState=null):s=n,ze(Co,Tt),Tt|=s;return pt(e,t,a,n),t.child}function af(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,s,a){var u=xt(n)?Er:it.current;return u=ho(t,u),xo(t,a),n=El(e,t,n,s,u,a),s=Nl(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,jn(e,t,a)):(Fe&&s&&ll(t),t.flags|=1,pt(e,t,n,a),t.child)}function lf(e,t,n,s,a){if(xt(n)){var u=!0;Ci(t)}else u=!1;if(xo(t,a),t.stateNode===null)Wi(e,t),qd(t,n,s),Ol(t,n,s,a),s=!0;else if(e===null){var d=t.stateNode,g=t.memoizedProps;d.props=g;var S=d.context,O=n.contextType;typeof O=="object"&&O!==null?O=At(O):(O=xt(n)?Er:it.current,O=ho(t,O));var D=n.getDerivedStateFromProps,F=typeof D=="function"||typeof d.getSnapshotBeforeUpdate=="function";F||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==s||S!==O)&&Yd(t,d,s,O),Yn=!1;var A=t.memoizedState;d.state=A,_i(t,s,d,a),S=t.memoizedState,g!==s||A!==S||wt.current||Yn?(typeof D=="function"&&(Tl(t,n,D,s),S=t.memoizedState),(g=Yn||Gd(t,n,g,s,A,S,O))?(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=s,t.memoizedState=S),d.props=s,d.state=S,d.context=O,s=g):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{d=t.stateNode,bd(e,t),g=t.memoizedProps,O=t.type===t.elementType?g:Gt(t.type,g),d.props=O,F=t.pendingProps,A=d.context,S=n.contextType,typeof S=="object"&&S!==null?S=At(S):(S=xt(n)?Er:it.current,S=ho(t,S));var q=n.getDerivedStateFromProps;(D=typeof q=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==F||A!==S)&&Yd(t,d,s,S),Yn=!1,A=t.memoizedState,d.state=A,_i(t,s,d,a);var Z=t.memoizedState;g!==F||A!==Z||wt.current||Yn?(typeof q=="function"&&(Tl(t,n,q,s),Z=t.memoizedState),(O=Yn||Gd(t,n,O,s,A,Z,S)||!1)?(D||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,Z,S),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,Z,S)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=Z),d.props=s,d.state=Z,d.context=S,s=O):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),s=!1)}return Al(e,t,n,s,u,a)}function Al(e,t,n,s,a,u){af(e,t);var d=(t.flags&128)!==0;if(!s&&!d)return a&&fd(t,n,!1),jn(e,t,u);s=t.stateNode,_g.current=t;var g=d&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&d?(t.child=vo(t,e.child,null,u),t.child=vo(t,null,g,u)):pt(e,t,g,u),t.memoizedState=s.state,a&&fd(t,n,!0),t.child}function uf(e){var t=e.stateNode;t.pendingContext?cd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cd(e,t.context,!1),wl(e,t.containerInfo)}function cf(e,t,n,s,a){return yo(),fl(a),t.flags|=256,pt(e,t,n,s),t.child}var Ll={dehydrated:null,treeContext:null,retryLane:0};function Dl(e){return{baseLanes:e,cachePool:null,transitions:null}}function df(e,t,n){var s=t.pendingProps,a=We.current,u=!1,d=(t.flags&128)!==0,g;if((g=d)||(g=e!==null&&e.memoizedState===null?!1:(a&2)!==0),g?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ze(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=s.children,e=s.fallback,u?(s=t.mode,u=t.child,d={mode:"hidden",children:d},(s&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=d):u=ea(d,s,0,null),e=Ir(e,s,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Dl(n),t.memoizedState=Ll,e):Fl(t,d));if(a=e.memoizedState,a!==null&&(g=a.dehydrated,g!==null))return zg(e,t,d,s,g,a,n);if(u){u=s.fallback,d=t.mode,a=e.child,g=a.sibling;var S={mode:"hidden",children:s.children};return(d&1)===0&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=S,t.deletions=null):(s=rr(a,S),s.subtreeFlags=a.subtreeFlags&14680064),g!==null?u=rr(g,u):(u=Ir(u,d,n,null),u.flags|=2),u.return=t,s.return=t,s.sibling=u,t.child=s,s=u,u=t.child,d=e.child.memoizedState,d=d===null?Dl(n):{baseLanes:d.baseLanes|n,cachePool:null,transitions:d.transitions},u.memoizedState=d,u.childLanes=e.childLanes&~n,t.memoizedState=Ll,s}return u=e.child,e=u.sibling,s=rr(u,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Fl(e,t){return t=ea({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bi(e,t,n,s){return s!==null&&fl(s),vo(t,e.child,null,n),e=Fl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zg(e,t,n,s,a,u,d){if(n)return t.flags&256?(t.flags&=-257,s=_l(Error(i(422))),Bi(e,t,d,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=s.fallback,a=t.mode,s=ea({mode:"visible",children:s.children},a,0,null),u=Ir(u,a,d,null),u.flags|=2,s.return=t,u.return=t,s.sibling=u,t.child=s,(t.mode&1)!==0&&vo(t,e.child,null,d),t.child.memoizedState=Dl(d),t.memoizedState=Ll,u);if((t.mode&1)===0)return Bi(e,t,d,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var g=s.dgst;return s=g,u=Error(i(419)),s=_l(u,s,void 0),Bi(e,t,d,s)}if(g=(d&e.childLanes)!==0,St||g){if(s=et,s!==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&(s.suspendedLanes|d))!==0?0:a,a!==0&&a!==u.retryLane&&(u.retryLane=a,Nn(e,a),Xt(s,e,a,-1))}return tu(),s=_l(Error(i(421))),Bi(e,t,d,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Kg.bind(null,e),a._reactRetry=t,null):(e=u.treeContext,Mt=$n(a.nextSibling),Rt=t,Fe=!0,Kt=null,e!==null&&(zt[It++]=Cn,zt[It++]=En,zt[It++]=Nr,Cn=e.id,En=e.overflow,Nr=t),t=Fl(t,s.children),t.flags|=4096,t)}function ff(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),gl(e.return,t,n)}function Ul(e,t,n,s,a){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=s,u.tail=n,u.tailMode=a)}function pf(e,t,n){var s=t.pendingProps,a=s.revealOrder,u=s.tail;if(pt(e,t,s.children,n),s=We.current,(s&2)!==0)s=s&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&&ff(e,n,t);else if(e.tag===19)ff(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}s&=1}if(ze(We,s),(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&&zi(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&&zi(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 Wi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tr|=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=rr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ig(e,t,n){switch(t.tag){case 3:uf(t),yo();break;case 5:Nd(t);break;case 1:xt(t.type)&&Ci(t);break;case 4:wl(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;ze(Mi,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(ze(We,We.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?df(e,t,n):(ze(We,We.current&1),e=jn(e,t,n),e!==null?e.sibling:null);ze(We,We.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&128)!==0){if(s)return pf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ze(We,We.current),s)break;return null;case 22:case 23:return t.lanes=0,sf(e,t,n)}return jn(e,t,n)}var hf,Bl,mf,gf;hf=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(){},mf=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Rr(fn.current);var u=null;switch(n){case"input":a=Ko(e,a),s=Ko(e,s),u=[];break;case"select":a=V({},a,{value:void 0}),s=V({},s,{value:void 0}),u=[];break;case"textarea":a=Jr(e,a),s=Jr(e,s),u=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Si)}an(n,s);var d;n=null;for(O in a)if(!s.hasOwnProperty(O)&&a.hasOwnProperty(O)&&a[O]!=null)if(O==="style"){var g=a[O];for(d in g)g.hasOwnProperty(d)&&(n||(n={}),n[d]="")}else O!=="dangerouslySetInnerHTML"&&O!=="children"&&O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(c.hasOwnProperty(O)?u||(u=[]):(u=u||[]).push(O,null));for(O in s){var S=s[O];if(g=a!=null?a[O]:void 0,s.hasOwnProperty(O)&&S!==g&&(S!=null||g!=null))if(O==="style")if(g){for(d in g)!g.hasOwnProperty(d)||S&&S.hasOwnProperty(d)||(n||(n={}),n[d]="");for(d in S)S.hasOwnProperty(d)&&g[d]!==S[d]&&(n||(n={}),n[d]=S[d])}else n||(u||(u=[]),u.push(O,n)),n=S;else O==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,g=g?g.__html:void 0,S!=null&&g!==S&&(u=u||[]).push(O,S)):O==="children"?typeof S!="string"&&typeof S!="number"||(u=u||[]).push(O,""+S):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(c.hasOwnProperty(O)?(S!=null&&O==="onScroll"&&Ie("scroll",e),u||g===S||(u=[])):(u=u||[]).push(O,S))}n&&(u=u||[]).push("style",n);var O=u;(t.updateQueue=O)&&(t.flags|=4)}},gf=function(e,t,n,s){n!==s&&(t.flags|=4)};function Ps(e,t){if(!Fe)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 s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Ag(e,t,n){var s=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 lt(t),null;case 1:return xt(t.type)&&bi(),lt(t),null;case 3:return s=t.stateNode,So(),Ae(wt),Ae(it),kl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(ji(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kt!==null&&(Zl(Kt),Kt=null))),Bl(e,t),lt(t),null;case 5:xl(t);var a=Rr(ks.current);if(n=t.type,e!==null&&t.stateNode!=null)mf(e,t,n,s,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return lt(t),null}if(e=Rr(fn.current),ji(t)){s=t.stateNode,n=t.type;var u=t.memoizedProps;switch(s[dn]=t,s[ys]=u,e=(t.mode&1)!==0,n){case"dialog":Ie("cancel",s),Ie("close",s);break;case"iframe":case"object":case"embed":Ie("load",s);break;case"video":case"audio":for(a=0;a<hs.length;a++)Ie(hs[a],s);break;case"source":Ie("error",s);break;case"img":case"image":case"link":Ie("error",s),Ie("load",s);break;case"details":Ie("toggle",s);break;case"input":Ks(s,u),Ie("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!u.multiple},Ie("invalid",s);break;case"textarea":rn(s,u),Ie("invalid",s)}an(n,u),a=null;for(var d in u)if(u.hasOwnProperty(d)){var g=u[d];d==="children"?typeof g=="string"?s.textContent!==g&&(u.suppressHydrationWarning!==!0&&xi(s.textContent,g,e),a=["children",g]):typeof g=="number"&&s.textContent!==""+g&&(u.suppressHydrationWarning!==!0&&xi(s.textContent,g,e),a=["children",""+g]):c.hasOwnProperty(d)&&g!=null&&d==="onScroll"&&Ie("scroll",s)}switch(n){case"input":nn(s),Zr(s,u,!0);break;case"textarea":nn(s),qs(s);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(s.onclick=Si)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{d=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dt(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=d.createElement(n,{is:s.is}):(e=d.createElement(n),n==="select"&&(d=e,s.multiple?d.multiple=!0:s.size&&(d.size=s.size))):e=d.createElementNS(e,n),e[dn]=t,e[ys]=s,hf(e,t,!1,!1),t.stateNode=e;e:{switch(d=Xo(n,s),n){case"dialog":Ie("cancel",e),Ie("close",e),a=s;break;case"iframe":case"object":case"embed":Ie("load",e),a=s;break;case"video":case"audio":for(a=0;a<hs.length;a++)Ie(hs[a],e);a=s;break;case"source":Ie("error",e),a=s;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),a=s;break;case"details":Ie("toggle",e),a=s;break;case"input":Ks(e,s),a=Ko(e,s),Ie("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=V({},s,{value:void 0}),Ie("invalid",e);break;case"textarea":rn(e,s),a=Jr(e,s),Ie("invalid",e);break;default:a=s}an(n,a),g=a;for(u in g)if(g.hasOwnProperty(u)){var S=g[u];u==="style"?Sn(e,S):u==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&Ys(e,S)):u==="children"?typeof S=="string"?(n!=="textarea"||S!=="")&&sn(e,S):typeof S=="number"&&sn(e,""+S):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?S!=null&&u==="onScroll"&&Ie("scroll",e):S!=null&&$(e,u,S,d))}switch(n){case"input":nn(e),Zr(e,s,!1);break;case"textarea":nn(e),qs(e);break;case"option":s.value!=null&&e.setAttribute("value",""+ke(s.value));break;case"select":e.multiple=!!s.multiple,u=s.value,u!=null?_t(e,!!s.multiple,u,!1):s.defaultValue!=null&&_t(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Si)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return lt(t),null;case 6:if(e&&t.stateNode!=null)gf(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(n=Rr(ks.current),Rr(fn.current),ji(t)){if(s=t.stateNode,n=t.memoizedProps,s[dn]=t,(u=s.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:xi(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xi(s.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[dn]=t,t.stateNode=s}return lt(t),null;case 13:if(Ae(We),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&Mt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)vd(),yo(),t.flags|=98560,u=!1;else if(u=ji(t),s!==null&&s.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[dn]=t}else yo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),u=!1}else Kt!==null&&(Zl(Kt),Kt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(We.current&1)!==0?Ye===0&&(Ye=3):tu())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return So(),Bl(e,t),e===null&&ms(t.stateNode.containerInfo),lt(t),null;case 10:return ml(t.type._context),lt(t),null;case 17:return xt(t.type)&&bi(),lt(t),null;case 19:if(Ae(We),u=t.memoizedState,u===null)return lt(t),null;if(s=(t.flags&128)!==0,d=u.rendering,d===null)if(s)Ps(u,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=zi(e),d!==null){for(t.flags|=128,Ps(u,!1),s=d.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)u=n,e=s,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 ze(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&$e()>Eo&&(t.flags|=128,s=!0,Ps(u,!1),t.lanes=4194304)}else{if(!s)if(e=zi(d),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ps(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!Fe)return lt(t),null}else 2*$e()-u.renderingStartTime>Eo&&n!==1073741824&&(t.flags|=128,s=!0,Ps(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=$e(),t.sibling=null,n=We.current,ze(We,s?n&1|2:n&1),t):(lt(t),null);case 22:case 23:return eu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(Tt&1073741824)!==0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Lg(e,t){switch(ul(t),t.tag){case 1:return xt(t.type)&&bi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return So(),Ae(wt),Ae(it),kl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return xl(t),null;case 13:if(Ae(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(We),null;case 4:return So(),null;case 10:return ml(t.type._context),null;case 22:case 23:return eu(),null;case 24:return null;default:return null}}var Vi=!1,ut=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,Y=null;function bo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){He(e,t,s)}else n.current=null}function Wl(e,t,n){try{n()}catch(s){He(e,t,s)}}var yf=!1;function Fg(e,t){if(el=ui,e=Gc(),$a(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var a=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,g=-1,S=-1,O=0,D=0,F=e,A=null;t:for(;;){for(var q;F!==n||a!==0&&F.nodeType!==3||(g=d+a),F!==u||s!==0&&F.nodeType!==3||(S=d+s),F.nodeType===3&&(d+=F.nodeValue.length),(q=F.firstChild)!==null;)A=F,F=q;for(;;){if(F===e)break t;if(A===n&&++O===a&&(g=d),A===u&&++D===s&&(S=d),(q=F.nextSibling)!==null)break;F=A,A=F.parentNode}F=q}n=g===-1||S===-1?null:{start:g,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(tl={focusedElem:e,selectionRange:n},ui=!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,Ke=Z.memoizedState,R=t.stateNode,b=R.getSnapshotBeforeUpdate(t.elementType===t.type?J:Gt(t.type,J),Ke);R.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var M=t.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(B){He(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return Z=yf,yf=!1,Z}function js(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.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!==s)}}function Hi(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 s=n.create;n.destroy=s()}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 vf(e){var t=e.alternate;t!==null&&(e.alternate=null,vf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[ys],delete t[sl],delete t[Sg],delete t[kg])),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 xf(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 s=e.tag;if(s===5||s===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=Si));else if(s!==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 s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==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,qt=!1;function Zn(e,t,n){for(n=n.child;n!==null;)Sf(e,t,n),n=n.sibling}function Sf(e,t,n){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(ri,n)}catch{}switch(n.tag){case 5:ut||bo(n,t);case 6:var s=ot,a=qt;ot=null,Zn(e,t,n),ot=s,qt=a,ot!==null&&(qt?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(qt?(e=ot,n=n.stateNode,e.nodeType===8?ol(e.parentNode,n):e.nodeType===1&&ol(e,n),is(e)):ol(ot,n.stateNode));break;case 4:s=ot,a=qt,ot=n.stateNode.containerInfo,qt=!0,Zn(e,t,n),ot=s,qt=a;break;case 0:case 11:case 14:case 15:if(!ut&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.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!==s)}Zn(e,t,n);break;case 1:if(!ut&&(bo(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(g){He(n,t,g)}Zn(e,t,n);break;case 21:Zn(e,t,n);break;case 22:n.mode&1?(ut=(s=ut)||n.memoizedState!==null,Zn(e,t,n),ut=s):Zn(e,t,n);break;default:Zn(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 Dg),t.forEach(function(s){var a=Gg.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var a=n[s];try{var u=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 5:ot=g.stateNode,qt=!1;break e;case 3:ot=g.stateNode.containerInfo,qt=!0;break e;case 4:ot=g.stateNode.containerInfo,qt=!0;break e}g=g.return}if(ot===null)throw Error(i(160));Sf(u,d,a),ot=null,qt=!1;var S=a.alternate;S!==null&&(S.return=null),a.return=null}catch(O){He(a,t,O)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)bf(t,e),t=t.sibling}function bf(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),hn(e),s&4){try{js(3,e,e.return),Hi(3,e)}catch(J){He(e,e.return,J)}try{js(5,e,e.return)}catch(J){He(e,e.return,J)}}break;case 1:Yt(t,e),hn(e),s&512&&n!==null&&bo(n,n.return);break;case 5:if(Yt(t,e),hn(e),s&512&&n!==null&&bo(n,n.return),e.flags&32){var a=e.stateNode;try{sn(a,"")}catch(J){He(e,e.return,J)}}if(s&4&&(a=e.stateNode,a!=null)){var u=e.memoizedProps,d=n!==null?n.memoizedProps:u,g=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{g==="input"&&u.type==="radio"&&u.name!=null&&Go(a,u),Xo(g,d);var O=Xo(g,u);for(d=0;d<S.length;d+=2){var D=S[d],F=S[d+1];D==="style"?Sn(a,F):D==="dangerouslySetInnerHTML"?Ys(a,F):D==="children"?sn(a,F):$(a,D,F,O)}switch(g){case"input":qo(a,u);break;case"textarea":Gs(a,u);break;case"select":var A=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!u.multiple;var q=u.value;q!=null?_t(a,!!u.multiple,q,!1):A!==!!u.multiple&&(u.defaultValue!=null?_t(a,!!u.multiple,u.defaultValue,!0):_t(a,!!u.multiple,u.multiple?[]:"",!1))}a[ys]=u}catch(J){He(e,e.return,J)}}break;case 6:if(Yt(t,e),hn(e),s&4){if(e.stateNode===null)throw Error(i(162));a=e.stateNode,u=e.memoizedProps;try{a.nodeValue=u}catch(J){He(e,e.return,J)}}break;case 3:if(Yt(t,e),hn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{is(t.containerInfo)}catch(J){He(e,e.return,J)}break;case 4:Yt(t,e),hn(e);break;case 13:Yt(t,e),hn(e),a=e.child,a.flags&8192&&(u=a.memoizedState!==null,a.stateNode.isHidden=u,!u||a.alternate!==null&&a.alternate.memoizedState!==null||(Gl=$e())),s&4&&kf(e);break;case 22:if(D=n!==null&&n.memoizedState!==null,e.mode&1?(ut=(O=ut)||D,Yt(t,e),ut=O):Yt(t,e),hn(e),s&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!D&&(e.mode&1)!==0)for(Y=e,D=e.child;D!==null;){for(F=Y=D;Y!==null;){switch(A=Y,q=A.child,A.tag){case 0:case 11:case 14:case 15:js(4,A,A.return);break;case 1:bo(A,A.return);var Z=A.stateNode;if(typeof Z.componentWillUnmount=="function"){s=A,n=A.return;try{t=s,Z.props=t.memoizedProps,Z.state=t.memoizedState,Z.componentWillUnmount()}catch(J){He(s,n,J)}}break;case 5:bo(A,A.return);break;case 22:if(A.memoizedState!==null){Nf(F);continue}}q!==null?(q.return=A,Y=q):Nf(F)}D=D.sibling}e:for(D=null,F=e;;){if(F.tag===5){if(D===null){D=F;try{a=F.stateNode,O?(u=a.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(g=F.stateNode,S=F.memoizedProps.style,d=S!=null&&S.hasOwnProperty("display")?S.display:null,g.style.display=to("display",d))}catch(J){He(e,e.return,J)}}}else if(F.tag===6){if(D===null)try{F.stateNode.nodeValue=O?"":F.memoizedProps}catch(J){He(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;D===F&&(D=null),F=F.return}D===F&&(D=null),F.sibling.return=F.return,F=F.sibling}}break;case 19:Yt(t,e),hn(e),s&4&&kf(e);break;case 21:break;default:Yt(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wf(n)){var s=n;break e}n=n.return}throw Error(i(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(sn(a,""),s.flags&=-33);var u=xf(e);Ql(e,u,a);break;case 3:case 4:var d=s.stateNode.containerInfo,g=xf(e);Hl(e,g,d);break;default:throw Error(i(161))}}catch(S){He(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ug(e,t,n){Y=e,Cf(e)}function Cf(e,t,n){for(var s=(e.mode&1)!==0;Y!==null;){var a=Y,u=a.child;if(a.tag===22&&s){var d=a.memoizedState!==null||Vi;if(!d){var g=a.alternate,S=g!==null&&g.memoizedState!==null||ut;g=Vi;var O=ut;if(Vi=d,(ut=S)&&!O)for(Y=a;Y!==null;)d=Y,S=d.child,d.tag===22&&d.memoizedState!==null?Pf(a):S!==null?(S.return=d,Y=S):Pf(a);for(;u!==null;)Y=u,Cf(u),u=u.sibling;Y=a,Vi=g,ut=O}Ef(e)}else(a.subtreeFlags&8772)!==0&&u!==null?(u.return=a,Y=u):Ef(e)}}function Ef(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:ut||Hi(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!ut)if(n===null)s.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Gt(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Ed(t,u,s);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}Ed(t,d,n)}break;case 5:var g=t.stateNode;if(n===null&&t.flags&4){n=g;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 O=t.alternate;if(O!==null){var D=O.memoizedState;if(D!==null){var F=D.dehydrated;F!==null&&is(F)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||t.flags&512&&Vl(t)}catch(A){He(t,t.return,A)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Nf(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 Pf(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hi(4,t)}catch(S){He(t,n,S)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(S){He(t,a,S)}}var u=t.return;try{Vl(t)}catch(S){He(t,u,S)}break;case 5:var d=t.return;try{Vl(t)}catch(S){He(t,d,S)}}}catch(S){He(t,t.return,S)}if(t===e){Y=null;break}var g=t.sibling;if(g!==null){g.return=t.return,Y=g;break}Y=t.return}}var Bg=Math.ceil,Qi=L.ReactCurrentDispatcher,$l=L.ReactCurrentOwner,Dt=L.ReactCurrentBatchConfig,be=0,et=null,Ge=null,st=0,Tt=0,Co=Kn(0),Ye=0,Rs=null,Tr=0,$i=0,Kl=0,Ms=null,kt=null,Gl=0,Eo=1/0,Rn=null,Ki=!1,ql=null,Jn=null,Gi=!1,er=null,qi=0,Ts=0,Yl=null,Yi=-1,Xi=0;function ht(){return(be&6)!==0?$e():Yi!==-1?Yi:Yi=$e()}function tr(e){return(e.mode&1)===0?1:(be&2)!==0&&st!==0?st&-st:Cg.transition!==null?(Xi===0&&(Xi=wc()),Xi):(e=Me,e!==0||(e=window.event,e=e===void 0?16:jc(e.type)),e)}function Xt(e,t,n,s){if(50<Ts)throw Ts=0,Yl=null,Error(i(185));ts(e,n,s),((be&2)===0||e!==et)&&(e===et&&((be&2)===0&&($i|=n),Ye===4&&nr(e,st)),bt(e,s),n===1&&be===0&&(t.mode&1)===0&&(Eo=$e()+500,Ei&&qn()))}function bt(e,t){var n=e.callbackNode;Cm(e,t);var s=ii(e,e===et?st:0);if(s===0)n!==null&&gc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&gc(n),t===1)e.tag===0?bg(Rf.bind(null,e)):pd(Rf.bind(null,e)),wg(function(){(be&6)===0&&qn()}),n=null;else{switch(xc(s)){case 1:n=Ra;break;case 4:n=yc;break;case 16:n=ni;break;case 536870912:n=vc;break;default:n=ni}n=Lf(n,jf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jf(e,t){if(Yi=-1,Xi=0,(be&6)!==0)throw Error(i(327));var n=e.callbackNode;if(No()&&e.callbackNode!==n)return null;var s=ii(e,e===et?st:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=Zi(e,s);else{t=s;var a=be;be|=2;var u=Tf();(et!==e||st!==t)&&(Rn=null,Eo=$e()+500,_r(e,t));do try{Hg();break}catch(g){Mf(e,g)}while(!0);hl(),Qi.current=u,be=a,Ge!==null?t=0:(et=null,st=0,t=Ye)}if(t!==0){if(t===2&&(a=Ma(e),a!==0&&(s=a,t=Xl(e,a))),t===1)throw n=Rs,_r(e,0),nr(e,s),bt(e,$e()),n;if(t===6)nr(e,s);else{if(a=e.current.alternate,(s&30)===0&&!Wg(a)&&(t=Zi(e,s),t===2&&(u=Ma(e),u!==0&&(s=u,t=Xl(e,u))),t===1))throw n=Rs,_r(e,0),nr(e,s),bt(e,$e()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:zr(e,kt,Rn);break;case 3:if(nr(e,s),(s&130023424)===s&&(t=Gl+500-$e(),10<t)){if(ii(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){ht(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=rl(zr.bind(null,e,kt,Rn),t);break}zr(e,kt,Rn);break;case 4:if(nr(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var d=31-Qt(s);u=1<<d,d=t[d],d>a&&(a=d),s&=~u}if(s=a,s=$e()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Bg(s/1960))-s,10<s){e.timeoutHandle=rl(zr.bind(null,e,kt,Rn),s);break}zr(e,kt,Rn);break;case 5:zr(e,kt,Rn);break;default:throw Error(i(329))}}}return bt(e,$e()),e.callbackNode===n?jf.bind(null,e):null}function Xl(e,t){var n=Ms;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=Zi(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 Wg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var a=n[s],u=a.getSnapshot;a=a.value;try{if(!$t(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 nr(e,t){for(t&=~Kl,t&=~$i,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Qt(t),s=1<<n;e[n]=-1,t&=~s}}function Rf(e){if((be&6)!==0)throw Error(i(327));No();var t=ii(e,0);if((t&1)===0)return bt(e,$e()),null;var n=Zi(e,t);if(e.tag!==0&&n===2){var s=Ma(e);s!==0&&(t=s,n=Xl(e,s))}if(n===1)throw n=Rs,_r(e,0),nr(e,t),bt(e,$e()),n;if(n===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zr(e,kt,Rn),bt(e,$e()),null}function Jl(e,t){var n=be;be|=1;try{return e(t)}finally{be=n,be===0&&(Eo=$e()+500,Ei&&qn())}}function Or(e){er!==null&&er.tag===0&&(be&6)===0&&No();var t=be;be|=1;var n=Dt.transition,s=Me;try{if(Dt.transition=null,Me=1,e)return e()}finally{Me=s,Dt.transition=n,be=t,(be&6)===0&&qn()}}function eu(){Tt=Co.current,Ae(Co)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vg(n)),Ge!==null)for(n=Ge.return;n!==null;){var s=n;switch(ul(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&bi();break;case 3:So(),Ae(wt),Ae(it),kl();break;case 5:xl(s);break;case 4:So();break;case 13:Ae(We);break;case 19:Ae(We);break;case 10:ml(s.type._context);break;case 22:case 23:eu()}n=n.return}if(et=e,Ge=e=rr(e.current,null),st=Tt=t,Ye=0,Rs=null,Kl=$i=Tr=0,kt=Ms=null,jr!==null){for(t=0;t<jr.length;t++)if(n=jr[t],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,u=n.pending;if(u!==null){var d=u.next;u.next=a,s.next=d}n.pending=s}jr=null}return e}function Mf(e,t){do{var n=Ge;try{if(hl(),Ii.current=Fi,Ai){for(var s=Ve.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Ai=!1}if(Mr=0,Je=qe=Ve=null,bs=!1,Cs=0,$l.current=null,n===null||n.return===null){Ye=1,Rs=t,Ge=null;break}e:{var u=e,d=n.return,g=n,S=t;if(t=st,g.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var O=S,D=g,F=D.tag;if((D.mode&1)===0&&(F===0||F===11||F===15)){var A=D.alternate;A?(D.updateQueue=A.updateQueue,D.memoizedState=A.memoizedState,D.lanes=A.lanes):(D.updateQueue=null,D.memoizedState=null)}var q=ef(d);if(q!==null){q.flags&=-257,tf(q,d,g,u,t),q.mode&1&&Jd(u,O,t),t=q,S=O;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){Jd(u,O,t),tu();break e}S=Error(i(426))}}else if(Fe&&g.mode&1){var Ke=ef(d);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),tf(Ke,d,g,u,t),fl(ko(S,g));break e}}u=S=ko(S,g),Ye!==4&&(Ye=2),Ms===null?Ms=[u]:Ms.push(u),u=d;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var R=Xd(u,S,t);Cd(u,R);break e;case 1:g=S;var b=u.type,M=u.stateNode;if((u.flags&128)===0&&(typeof b.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Jn===null||!Jn.has(M)))){u.flags|=65536,t&=-t,u.lanes|=t;var B=Zd(u,g,t);Cd(u,B);break e}}u=u.return}while(u!==null)}_f(n)}catch(re){t=re,Ge===n&&n!==null&&(Ge=n=n.return);continue}break}while(!0)}function Tf(){var e=Qi.current;return Qi.current=Fi,e===null?Fi:e}function tu(){(Ye===0||Ye===3||Ye===2)&&(Ye=4),et===null||(Tr&268435455)===0&&($i&268435455)===0||nr(et,st)}function Zi(e,t){var n=be;be|=2;var s=Tf();(et!==e||st!==t)&&(Rn=null,_r(e,t));do try{Vg();break}catch(a){Mf(e,a)}while(!0);if(hl(),be=n,Qi.current=s,Ge!==null)throw Error(i(261));return et=null,st=0,Ye}function Vg(){for(;Ge!==null;)Of(Ge)}function Hg(){for(;Ge!==null&&!mm();)Of(Ge)}function Of(e){var t=Af(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?_f(e):Ge=t,$l.current=null}function _f(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Ag(n,t,Tt),n!==null){Ge=n;return}}else{if(n=Lg(n,t),n!==null){n.flags&=32767,Ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ye=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Ye===0&&(Ye=5)}function zr(e,t,n){var s=Me,a=Dt.transition;try{Dt.transition=null,Me=1,Qg(e,t,n,s)}finally{Dt.transition=a,Me=s}return null}function Qg(e,t,n,s){do No();while(er!==null);if((be&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(Em(e,u),e===et&&(Ge=et=null,st=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Gi||(Gi=!0,Lf(ni,function(){return No(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=Dt.transition,Dt.transition=null;var d=Me;Me=1;var g=be;be|=4,$l.current=null,Fg(e,n),bf(n,e),dg(tl),ui=!!el,tl=el=null,e.current=n,Ug(n),gm(),be=g,Me=d,Dt.transition=u}else e.current=n;if(Gi&&(Gi=!1,er=e,qi=a),u=e.pendingLanes,u===0&&(Jn=null),wm(n.stateNode),bt(e,$e()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],s(a.value,{componentStack:a.stack,digest:a.digest});if(Ki)throw Ki=!1,e=ql,ql=null,e;return(qi&1)!==0&&e.tag!==0&&No(),u=e.pendingLanes,(u&1)!==0?e===Yl?Ts++:(Ts=0,Yl=e):Ts=0,qn(),null}function No(){if(er!==null){var e=xc(qi),t=Dt.transition,n=Me;try{if(Dt.transition=null,Me=16>e?16:e,er===null)var s=!1;else{if(e=er,er=null,qi=0,(be&6)!==0)throw Error(i(331));var a=be;for(be|=4,Y=e.current;Y!==null;){var u=Y,d=u.child;if((Y.flags&16)!==0){var g=u.deletions;if(g!==null){for(var S=0;S<g.length;S++){var O=g[S];for(Y=O;Y!==null;){var D=Y;switch(D.tag){case 0:case 11:case 15:js(8,D,u)}var F=D.child;if(F!==null)F.return=D,Y=F;else for(;Y!==null;){D=Y;var A=D.sibling,q=D.return;if(vf(D),D===O){Y=null;break}if(A!==null){A.return=q,Y=A;break}Y=q}}}var Z=u.alternate;if(Z!==null){var J=Z.child;if(J!==null){Z.child=null;do{var Ke=J.sibling;J.sibling=null,J=Ke}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:js(9,u,u.return)}var R=u.sibling;if(R!==null){R.return=u.return,Y=R;break e}Y=u.return}}var b=e.current;for(Y=b;Y!==null;){d=Y;var M=d.child;if((d.subtreeFlags&2064)!==0&&M!==null)M.return=d,Y=M;else e:for(d=b;Y!==null;){if(g=Y,(g.flags&2048)!==0)try{switch(g.tag){case 0:case 11:case 15:Hi(9,g)}}catch(re){He(g,g.return,re)}if(g===d){Y=null;break e}var B=g.sibling;if(B!==null){B.return=g.return,Y=B;break e}Y=g.return}}if(be=a,qn(),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(ri,e)}catch{}s=!0}return s}finally{Me=n,Dt.transition=t}}return!1}function zf(e,t,n){t=ko(n,t),t=Xd(e,t,1),e=Xn(e,t,1),t=ht(),e!==null&&(ts(e,1,t),bt(e,t))}function He(e,t,n){if(e.tag===3)zf(e,e,n);else for(;t!==null;){if(t.tag===3){zf(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Jn===null||!Jn.has(s))){e=ko(n,e),e=Zd(t,e,1),t=Xn(t,e,1),e=ht(),t!==null&&(ts(t,1,e),bt(t,e));break}}t=t.return}}function $g(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=ht(),e.pingedLanes|=e.suspendedLanes&n,et===e&&(st&n)===n&&(Ye===4||Ye===3&&(st&130023424)===st&&500>$e()-Gl?_r(e,0):Kl|=n),bt(e,t)}function If(e,t){t===0&&((e.mode&1)===0?t=1:(t=si,si<<=1,(si&130023424)===0&&(si=4194304)));var n=ht();e=Nn(e,t),e!==null&&(ts(e,t,n),bt(e,n))}function Kg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),If(e,n)}function Gg(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),If(e,n)}var Af;Af=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)St=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return St=!1,Ig(e,t,n);St=(e.flags&131072)!==0}else St=!1,Fe&&(t.flags&1048576)!==0&&hd(t,Pi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Wi(e,t),e=t.pendingProps;var a=ho(t,it.current);xo(t,n),a=El(null,t,s,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,xt(s)?(u=!0,Ci(t)):u=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,vl(t),a.updater=Ui,t.stateNode=a,a._reactInternals=t,Ol(t,s,e,n),t=Al(null,t,s,!0,u,n)):(t.tag=0,Fe&&u&&ll(t),pt(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Wi(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=Yg(s),e=Gt(s,e),a){case 0:t=Il(null,t,s,e,n);break e;case 1:t=lf(null,t,s,e,n);break e;case 11:t=nf(null,t,s,e,n);break e;case 14:t=rf(null,t,s,Gt(s.type,e),n);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),Il(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),lf(e,t,s,a,n);case 3:e:{if(uf(t),e===null)throw Error(i(387));s=t.pendingProps,u=t.memoizedState,a=u.element,bd(e,t),_i(t,s,null,n);var d=t.memoizedState;if(s=d.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){a=ko(Error(i(423)),t),t=cf(e,t,s,n,a);break e}else if(s!==a){a=ko(Error(i(424)),t),t=cf(e,t,s,n,a);break e}else for(Mt=$n(t.stateNode.containerInfo.firstChild),Rt=t,Fe=!0,Kt=null,n=Sd(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yo(),s===a){t=jn(e,t,n);break e}pt(e,t,s,n)}t=t.child}return t;case 5:return Nd(t),e===null&&dl(t),s=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,d=a.children,nl(s,a)?d=null:u!==null&&nl(s,u)&&(t.flags|=32),af(e,t),pt(e,t,d,n),t.child;case 6:return e===null&&dl(t),null;case 13:return df(e,t,n);case 4:return wl(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=vo(t,null,s,n):pt(e,t,s,n),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),nf(e,t,s,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(s=t.type._context,a=t.pendingProps,u=t.memoizedProps,d=a.value,ze(Mi,s._currentValue),s._currentValue=d,u!==null)if($t(u.value,d)){if(u.children===a.children&&!wt.current){t=jn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var g=u.dependencies;if(g!==null){d=u.child;for(var S=g.firstContext;S!==null;){if(S.context===s){if(u.tag===1){S=Pn(-1,n&-n),S.tag=2;var O=u.updateQueue;if(O!==null){O=O.shared;var D=O.pending;D===null?S.next=S:(S.next=D.next,D.next=S),O.pending=S}}u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),gl(u.return,n,t),g.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,g=d.alternate,g!==null&&(g.lanes|=n),gl(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,s=t.pendingProps.children,xo(t,n),a=At(a),s=s(a),t.flags|=1,pt(e,t,s,n),t.child;case 14:return s=t.type,a=Gt(s,t.pendingProps),a=Gt(s.type,a),rf(e,t,s,a,n);case 15:return of(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),Wi(e,t),t.tag=1,xt(s)?(e=!0,Ci(t)):e=!1,xo(t,n),qd(t,s,a),Ol(t,s,a,n),Al(null,t,s,!0,e,n);case 19:return pf(e,t,n);case 22:return sf(e,t,n)}throw Error(i(156,t.tag))};function Lf(e,t){return mc(e,t)}function qg(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,n,s){return new qg(e,t,n,s)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yg(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 rr(e,t){var n=e.alternate;return n===null?(n=Ft(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 Ji(e,t,n,s,a,u){var d=2;if(s=e,typeof e=="function")nu(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ne:return Ir(n.children,a,u,t);case ie:d=8,a|=8;break;case he:return e=Ft(12,n,t,a|2),e.elementType=he,e.lanes=u,e;case De:return e=Ft(13,n,t,a),e.elementType=De,e.lanes=u,e;case Te:return e=Ft(19,n,t,a),e.elementType=Te,e.lanes=u,e;case xe:return ea(n,a,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:d=10;break e;case Pe:d=9;break e;case ae:d=11;break e;case Be:d=14;break e;case Oe:d=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ft(d,n,t,a),t.elementType=e,t.type=s,t.lanes=u,t}function Ir(e,t,n,s){return e=Ft(7,e,s,t),e.lanes=n,e}function ea(e,t,n,s){return e=Ft(22,e,s,t),e.elementType=xe,e.lanes=n,e.stateNode={isHidden:!1},e}function ru(e,t,n){return e=Ft(6,e,null,t),e.lanes=n,e}function ou(e,t,n){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xg(e,t,n,s,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=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function su(e,t,n,s,a,u,d,g,S){return e=new Xg(e,t,n,g,S),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Ft(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vl(u),e}function Zg(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oe,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Df(e){if(!e)return Gn;e=e._reactInternals;e:{if(br(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(xt(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(xt(n))return dd(e,n,t)}return t}function Ff(e,t,n,s,a,u,d,g,S){return e=su(n,s,!0,e,a,u,d,g,S),e.context=Df(null),n=e.current,s=ht(),a=tr(n),u=Pn(s,a),u.callback=t??null,Xn(n,u,a),e.current.lanes=a,ts(e,a,s),bt(e,s),e}function ta(e,t,n,s){var a=t.current,u=ht(),d=tr(a);return n=Df(n),t.context===null?t.context=n:t.pendingContext=n,t=Pn(u,d),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Xn(a,t,d),e!==null&&(Xt(e,a,d,u),Oi(e,a,d)),d}function na(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 Uf(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){Uf(e,t),(e=e.alternate)&&Uf(e,t)}function Jg(){return null}var Bf=typeof reportError=="function"?reportError:function(e){console.error(e)};function au(e){this._internalRoot=e}ra.prototype.render=au.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));ta(e,t,null,null)},ra.prototype.unmount=au.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Or(function(){ta(null,e,null,null)}),t[kn]=null}};function ra(e){this._internalRoot=e}ra.prototype.unstable_scheduleHydration=function(e){if(e){var t=bc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vn.length&&t!==0&&t<Vn[n].priority;n++);Vn.splice(n,0,e),n===0&&Nc(e)}};function lu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function oa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Wf(){}function ey(e,t,n,s,a){if(a){if(typeof s=="function"){var u=s;s=function(){var O=na(d);u.call(O)}}var d=Ff(t,s,e,0,null,!1,!1,"",Wf);return e._reactRootContainer=d,e[kn]=d.current,ms(e.nodeType===8?e.parentNode:e),Or(),d}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var g=s;s=function(){var O=na(S);g.call(O)}}var S=su(e,0,!1,null,null,!1,!1,"",Wf);return e._reactRootContainer=S,e[kn]=S.current,ms(e.nodeType===8?e.parentNode:e),Or(function(){ta(t,S,n,s)}),S}function sa(e,t,n,s,a){var u=n._reactRootContainer;if(u){var d=u;if(typeof a=="function"){var g=a;a=function(){var S=na(d);g.call(S)}}ta(t,d,e,a)}else d=ey(n,t,e,a,s);return na(d)}Sc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=es(t.pendingLanes);n!==0&&(Oa(t,n|1),bt(t,$e()),(be&6)===0&&(Eo=$e()+500,qn()))}break;case 13:Or(function(){var s=Nn(e,1);if(s!==null){var a=ht();Xt(s,e,1,a)}}),iu(e,1)}},_a=function(e){if(e.tag===13){var t=Nn(e,134217728);if(t!==null){var n=ht();Xt(t,e,134217728,n)}iu(e,134217728)}},kc=function(e){if(e.tag===13){var t=tr(e),n=Nn(e,t);if(n!==null){var s=ht();Xt(n,e,t,s)}iu(e,t)}},bc=function(){return Me},Cc=function(e,t){var n=Me;try{return Me=e,t()}finally{Me=n}},ro=function(e,t,n){switch(t){case"input":if(qo(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 s=n[t];if(s!==e&&s.form===e.form){var a=ki(s);if(!a)throw Error(i(90));Xr(s),qo(s,a)}}}break;case"textarea":Gs(e,n);break;case"select":t=n.value,t!=null&&_t(e,!!n.multiple,t,!1)}},Ne=Jl,_e=Or;var ty={usingClientEntryPoint:!1,Events:[vs,fo,ki,Js,pe,Jl]},Os={findFiberByHostInstance:Cr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ny={bundleType:Os.bundleType,version:Os.version,rendererPackageName:Os.rendererPackageName,rendererConfig:Os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pc(e),e===null?null:e.stateNode},findFiberByHostInstance:Os.findFiberByHostInstance||Jg,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 ia=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ia.isDisabled&&ia.supportsFiber)try{ri=ia.inject(ny),cn=ia}catch{}}return Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ty,Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lu(t))throw Error(i(200));return Zg(e,t,null,n)},Ct.createRoot=function(e,t){if(!lu(e))throw Error(i(299));var n=!1,s="",a=Bf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=su(e,1,!1,null,null,n,!1,s,a),e[kn]=t.current,ms(e.nodeType===8?e.parentNode:e),new au(t)},Ct.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},Ct.flushSync=function(e){return Or(e)},Ct.hydrate=function(e,t,n){if(!oa(t))throw Error(i(200));return sa(null,e,t,!0,n)},Ct.hydrateRoot=function(e,t,n){if(!lu(e))throw Error(i(405));var s=n!=null&&n.hydratedSources||null,a=!1,u="",d=Bf;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),t=Ff(t,null,e,1,n??null,a,!1,u,d),e[kn]=t.current,ms(e),s)for(e=0;e<s.length;e++)n=s[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new ra(t)},Ct.render=function(e,t,n){if(!oa(t))throw Error(i(200));return sa(null,e,t,!1,n)},Ct.unmountComponentAtNode=function(e){if(!oa(e))throw Error(i(40));return e._reactRootContainer?(Or(function(){sa(null,null,e,!1,function(){e._reactRootContainer=null,e[kn]=null})}),!0):!1},Ct.unstable_batchedUpdates=Jl,Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!oa(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return sa(e,t,n,!1,s)},Ct.version="18.3.1-next-f1338f8080-20240426",Ct}var Xf;function Yp(){if(Xf)return fu.exports;Xf=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(o){console.error(o)}}return r(),fu.exports=cy(),fu.exports}var Zf;function dy(){if(Zf)return la;Zf=1;var r=Yp();return la.createRoot=r.createRoot,la.hydrateRoot=r.hydrateRoot,la}var fy=dy(),Ho=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(){}},py={setTimeout:(r,o)=>setTimeout(r,o),clearTimeout:r=>clearTimeout(r),setInterval:(r,o)=>setInterval(r,o),clearInterval:r=>clearInterval(r)},ur,Qu,Lp,hy=(Lp=class{constructor(){se(this,ur,py);se(this,Qu,!1)}setTimeoutProvider(r){K(this,ur,r)}setTimeout(r,o){return x(this,ur).setTimeout(r,o)}clearTimeout(r){x(this,ur).clearTimeout(r)}setInterval(r,o){return x(this,ur).setInterval(r,o)}clearInterval(r){x(this,ur).clearInterval(r)}},ur=new WeakMap,Qu=new WeakMap,Lp),Ar=new hy;function my(r){setTimeout(r,0)}var $r=typeof window>"u"||"Deno"in globalThis;function gt(){}function gy(r,o){return typeof r=="function"?r(o):r}function Eu(r){return typeof r=="number"&&r>=0&&r!==1/0}function Xp(r,o){return Math.max(r+(o||0)-Date.now(),0)}function vr(r,o){return typeof r=="function"?r(o):r}function Bt(r,o){return typeof r=="function"?r(o):r}function Jf(r,o){const{type:i="all",exact:l,fetchStatus:c,predicate:f,queryKey:m,stale:p}=r;if(m){if(l){if(o.queryHash!==Ku(m,o.options))return!1}else if(!Ls(o.queryKey,m))return!1}if(i!=="all"){const y=o.isActive();if(i==="active"&&!y||i==="inactive"&&y)return!1}return!(typeof p=="boolean"&&o.isStale()!==p||c&&c!==o.state.fetchStatus||f&&!f(o))}function ep(r,o){const{exact:i,status:l,predicate:c,mutationKey:f}=r;if(f){if(!o.options.mutationKey)return!1;if(i){if(Kr(o.options.mutationKey)!==Kr(f))return!1}else if(!Ls(o.options.mutationKey,f))return!1}return!(l&&o.state.status!==l||c&&!c(o))}function Ku(r,o){return((o==null?void 0:o.queryKeyHashFn)||Kr)(r)}function Kr(r){return JSON.stringify(r,(o,i)=>Nu(i)?Object.keys(i).sort().reduce((l,c)=>(l[c]=i[c],l),{}):i)}function Ls(r,o){return r===o?!0:typeof r!=typeof o?!1:r&&o&&typeof r=="object"&&typeof o=="object"?Object.keys(o).every(i=>Ls(r[i],o[i])):!1}var yy=Object.prototype.hasOwnProperty;function Zp(r,o,i=0){if(r===o)return r;if(i>500)return o;const l=tp(r)&&tp(o);if(!l&&!(Nu(r)&&Nu(o)))return o;const f=(l?r:Object.keys(r)).length,m=l?o:Object.keys(o),p=m.length,y=l?new Array(p):{};let w=0;for(let P=0;P<p;P++){const j=l?P:m[P],T=r[j],v=o[j];if(T===v){y[j]=T,(l?P<f:yy.call(r,j))&&w++;continue}if(T===null||v===null||typeof T!="object"||typeof v!="object"){y[j]=v;continue}const I=Zp(T,v,i+1);y[j]=I,I===T&&w++}return f===p&&w===f?r:y}function Sa(r,o){if(!o||Object.keys(r).length!==Object.keys(o).length)return!1;for(const i in r)if(r[i]!==o[i])return!1;return!0}function tp(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Nu(r){if(!np(r))return!1;const o=r.constructor;if(o===void 0)return!0;const i=o.prototype;return!(!np(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function np(r){return Object.prototype.toString.call(r)==="[object Object]"}function vy(r){return new Promise(o=>{Ar.setTimeout(o,r)})}function Pu(r,o,i){return typeof i.structuralSharing=="function"?i.structuralSharing(r,o):i.structuralSharing!==!1?Zp(r,o):o}function wy(r,o,i=0){const l=[...r,o];return i&&l.length>i?l.slice(1):l}function xy(r,o,i=0){const l=[o,...r];return i&&l.length>i?l.slice(0,-1):l}var Gu=Symbol();function Jp(r,o){return!r.queryFn&&(o!=null&&o.initialPromise)?()=>o.initialPromise:!r.queryFn||r.queryFn===Gu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function qu(r,o){return typeof r=="function"?r(...o):!!r}function Sy(r,o,i){let l=!1,c;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(c??(c=o()),l||(l=!0,c.aborted?i():c.addEventListener("abort",i,{once:!0})),c)}),r}var Lr,cr,Oo,Dp,ky=(Dp=class extends Ho{constructor(){super();se(this,Lr);se(this,cr);se(this,Oo);K(this,Oo,o=>{if(!$r&&window.addEventListener){const i=()=>o();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){x(this,cr)||this.setEventListener(x(this,Oo))}onUnsubscribe(){var o;this.hasListeners()||((o=x(this,cr))==null||o.call(this),K(this,cr,void 0))}setEventListener(o){var i;K(this,Oo,o),(i=x(this,cr))==null||i.call(this),K(this,cr,o(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(o){x(this,Lr)!==o&&(K(this,Lr,o),this.onFocus())}onFocus(){const o=this.isFocused();this.listeners.forEach(i=>{i(o)})}isFocused(){var o;return typeof x(this,Lr)=="boolean"?x(this,Lr):((o=globalThis.document)==null?void 0:o.visibilityState)!=="hidden"}},Lr=new WeakMap,cr=new WeakMap,Oo=new WeakMap,Dp),Yu=new ky;function ju(){let r,o;const i=new Promise((c,f)=>{r=c,o=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}),o(c)},i}var by=my;function Cy(){let r=[],o=0,i=p=>{p()},l=p=>{p()},c=by;const f=p=>{o?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;o++;try{y=p()}finally{o--,o||m()}return y},batchCalls:p=>(...y)=>{f(()=>{p(...y)})},schedule:f,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{c=p}}}var Xe=Cy(),_o,dr,zo,Fp,Ey=(Fp=class extends Ho{constructor(){super();se(this,_o,!0);se(this,dr);se(this,zo);K(this,zo,o=>{if(!$r&&window.addEventListener){const i=()=>o(!0),l=()=>o(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){x(this,dr)||this.setEventListener(x(this,zo))}onUnsubscribe(){var o;this.hasListeners()||((o=x(this,dr))==null||o.call(this),K(this,dr,void 0))}setEventListener(o){var i;K(this,zo,o),(i=x(this,dr))==null||i.call(this),K(this,dr,o(this.setOnline.bind(this)))}setOnline(o){x(this,_o)!==o&&(K(this,_o,o),this.listeners.forEach(l=>{l(o)}))}isOnline(){return x(this,_o)}},_o=new WeakMap,dr=new WeakMap,zo=new WeakMap,Fp),ka=new Ey;function Ny(r){return Math.min(1e3*2**r,3e4)}function eh(r){return(r??"online")==="online"?ka.isOnline():!0}var Ru=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function th(r){let o=!1,i=0,l;const c=ju(),f=()=>c.status!=="pending",m=C=>{var N;if(!f()){const z=new Ru(C);T(z),(N=r.onCancel)==null||N.call(r,z)}},p=()=>{o=!0},y=()=>{o=!1},w=()=>Yu.isFocused()&&(r.networkMode==="always"||ka.isOnline())&&r.canRun(),P=()=>eh(r.networkMode)&&r.canRun(),j=C=>{f()||(l==null||l(),c.resolve(C))},T=C=>{f()||(l==null||l(),c.reject(C))},v=()=>new Promise(C=>{var N;l=z=>{(f()||w())&&C(z)},(N=r.onPause)==null||N.call(r)}).then(()=>{var C;l=void 0,f()||(C=r.onContinue)==null||C.call(r)}),I=()=>{if(f())return;let C;const N=i===0?r.initialPromise:void 0;try{C=N??r.fn()}catch(z){C=Promise.reject(z)}Promise.resolve(C).then(j).catch(z=>{var oe;if(f())return;const W=r.retry??($r?0:3),$=r.retryDelay??Ny,L=typeof $=="function"?$(i,z):$,ee=W===!0||typeof W=="number"&&i<W||typeof W=="function"&&W(i,z);if(o||!ee){T(z);return}i++,(oe=r.onFail)==null||oe.call(r,i,z),vy(L).then(()=>w()?void 0:v()).then(()=>{o?T(z):I()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:p,continueRetry:y,canStart:P,start:()=>(P()?I():v().then(I),c)}}var Dr,Up,nh=(Up=class{constructor(){se(this,Dr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Eu(this.gcTime)&&K(this,Dr,Ar.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??($r?1/0:300*1e3))}clearGcTimeout(){x(this,Dr)&&(Ar.clearTimeout(x(this,Dr)),K(this,Dr,void 0))}},Dr=new WeakMap,Up),Fr,Io,Ut,Ur,nt,Us,Br,Jt,Tn,Bp,Py=(Bp=class extends nh{constructor(o){super();se(this,Jt);se(this,Fr);se(this,Io);se(this,Ut);se(this,Ur);se(this,nt);se(this,Us);se(this,Br);K(this,Br,!1),K(this,Us,o.defaultOptions),this.setOptions(o.options),this.observers=[],K(this,Ur,o.client),K(this,Ut,x(this,Ur).getQueryCache()),this.queryKey=o.queryKey,this.queryHash=o.queryHash,K(this,Fr,op(this.options)),this.state=o.state??x(this,Fr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var o;return(o=x(this,nt))==null?void 0:o.promise}setOptions(o){if(this.options={...x(this,Us),...o},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=op(this.options);i.data!==void 0&&(this.setState(rp(i.data,i.dataUpdatedAt)),K(this,Fr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,Ut).remove(this)}setData(o,i){const l=Pu(this.state.data,o,this.options);return ge(this,Jt,Tn).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(o,i){ge(this,Jt,Tn).call(this,{type:"setState",state:o,setStateOptions:i})}cancel(o){var l,c;const i=(l=x(this,nt))==null?void 0:l.promise;return(c=x(this,nt))==null||c.cancel(o),i?i.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,Fr))}isActive(){return this.observers.some(o=>Bt(o.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(o=>vr(o.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(o=>o.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(o=0){return this.state.data===void 0?!0:o==="static"?!1:this.state.isInvalidated?!0:!Xp(this.state.dataUpdatedAt,o)}onFocus(){var i;const o=this.observers.find(l=>l.shouldFetchOnWindowFocus());o==null||o.refetch({cancelRefetch:!1}),(i=x(this,nt))==null||i.continue()}onOnline(){var i;const o=this.observers.find(l=>l.shouldFetchOnReconnect());o==null||o.refetch({cancelRefetch:!1}),(i=x(this,nt))==null||i.continue()}addObserver(o){this.observers.includes(o)||(this.observers.push(o),this.clearGcTimeout(),x(this,Ut).notify({type:"observerAdded",query:this,observer:o}))}removeObserver(o){this.observers.includes(o)&&(this.observers=this.observers.filter(i=>i!==o),this.observers.length||(x(this,nt)&&(x(this,Br)?x(this,nt).cancel({revert:!0}):x(this,nt).cancelRetry()),this.scheduleGc()),x(this,Ut).notify({type:"observerRemoved",query:this,observer:o}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ge(this,Jt,Tn).call(this,{type:"invalidate"})}async fetch(o,i){var y,w,P,j,T,v,I,C,N,z,W,$;if(this.state.fetchStatus!=="idle"&&((y=x(this,nt))==null?void 0:y.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(x(this,nt))return x(this,nt).continueRetry(),x(this,nt).promise}if(o&&this.setOptions(o),!this.options.queryFn){const L=this.observers.find(ee=>ee.options.queryFn);L&&this.setOptions(L.options)}const l=new AbortController,c=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(K(this,Br,!0),l.signal)})},f=()=>{const L=Jp(this.options,i),oe=(()=>{const ne={client:x(this,Ur),queryKey:this.queryKey,meta:this.meta};return c(ne),ne})();return K(this,Br,!1),this.options.persister?this.options.persister(L,oe,this):L(oe)},p=(()=>{const L={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:x(this,Ur),state:this.state,fetchFn:f};return c(L),L})();(w=this.options.behavior)==null||w.onFetch(p,this),K(this,Io,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((P=p.fetchOptions)==null?void 0:P.meta))&&ge(this,Jt,Tn).call(this,{type:"fetch",meta:(j=p.fetchOptions)==null?void 0:j.meta}),K(this,nt,th({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:L=>{L instanceof Ru&&L.revert&&this.setState({...x(this,Io),fetchStatus:"idle"}),l.abort()},onFail:(L,ee)=>{ge(this,Jt,Tn).call(this,{type:"failed",failureCount:L,error:ee})},onPause:()=>{ge(this,Jt,Tn).call(this,{type:"pause"})},onContinue:()=>{ge(this,Jt,Tn).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const L=await x(this,nt).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(v=(T=x(this,Ut).config).onSuccess)==null||v.call(T,L,this),(C=(I=x(this,Ut).config).onSettled)==null||C.call(I,L,this.state.error,this),L}catch(L){if(L instanceof Ru){if(L.silent)return x(this,nt).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw ge(this,Jt,Tn).call(this,{type:"error",error:L}),(z=(N=x(this,Ut).config).onError)==null||z.call(N,L,this),($=(W=x(this,Ut).config).onSettled)==null||$.call(W,this.state.data,L,this),L}finally{this.scheduleGc()}}},Fr=new WeakMap,Io=new WeakMap,Ut=new WeakMap,Ur=new WeakMap,nt=new WeakMap,Us=new WeakMap,Br=new WeakMap,Jt=new WeakSet,Tn=function(o){const i=l=>{switch(o.type){case"failed":return{...l,fetchFailureCount:o.failureCount,fetchFailureReason:o.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...rh(l.data,this.options),fetchMeta:o.meta??null};case"success":const c={...l,...rp(o.data,o.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return K(this,Io,o.manual?c:void 0),c;case"error":const f=o.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,...o.state}}};this.state=i(this.state),Xe.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),x(this,Ut).notify({query:this,type:"updated",action:o})})},Bp);function rh(r,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:eh(o.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function rp(r,o){return{data:r,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function op(r){const o=typeof r.initialData=="function"?r.initialData():r.initialData,i=o!==void 0,l=i?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:o,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 Et,Se,Bs,mt,Wr,Ao,On,fr,Ws,Lo,Do,Vr,Hr,pr,Fo,Re,As,Mu,Tu,Ou,_u,zu,Iu,Au,oh,Wp,jy=(Wp=class extends Ho{constructor(o,i){super();se(this,Re);se(this,Et);se(this,Se);se(this,Bs);se(this,mt);se(this,Wr);se(this,Ao);se(this,On);se(this,fr);se(this,Ws);se(this,Lo);se(this,Do);se(this,Vr);se(this,Hr);se(this,pr);se(this,Fo,new Set);this.options=i,K(this,Et,o),K(this,fr,null),K(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),sp(x(this,Se),this.options)?ge(this,Re,As).call(this):this.updateResult(),ge(this,Re,_u).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,ge(this,Re,zu).call(this),ge(this,Re,Iu).call(this),x(this,Se).removeObserver(this)}setOptions(o){const i=this.options,l=x(this,Se);if(this.options=x(this,Et).defaultQueryOptions(o),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Bt(this.options.enabled,x(this,Se))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ge(this,Re,Au).call(this),x(this,Se).setOptions(this.options),i._defaulted&&!Sa(this.options,i)&&x(this,Et).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,Se),observer:this});const c=this.hasListeners();c&&ip(x(this,Se),l,this.options,i)&&ge(this,Re,As).call(this),this.updateResult(),c&&(x(this,Se)!==l||Bt(this.options.enabled,x(this,Se))!==Bt(i.enabled,x(this,Se))||vr(this.options.staleTime,x(this,Se))!==vr(i.staleTime,x(this,Se)))&&ge(this,Re,Mu).call(this);const f=ge(this,Re,Tu).call(this);c&&(x(this,Se)!==l||Bt(this.options.enabled,x(this,Se))!==Bt(i.enabled,x(this,Se))||f!==x(this,pr))&&ge(this,Re,Ou).call(this,f)}getOptimisticResult(o){const i=x(this,Et).getQueryCache().build(x(this,Et),o),l=this.createResult(i,o);return My(this,l)&&(K(this,mt,l),K(this,Ao,this.options),K(this,Wr,x(this,Se).state)),l}getCurrentResult(){return x(this,mt)}trackResult(o,i){return new Proxy(o,{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(o){x(this,Fo).add(o)}getCurrentQuery(){return x(this,Se)}refetch({...o}={}){return this.fetch({...o})}fetchOptimistic(o){const i=x(this,Et).defaultQueryOptions(o),l=x(this,Et).getQueryCache().build(x(this,Et),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(o){return ge(this,Re,As).call(this,{...o,cancelRefetch:o.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,mt)))}createResult(o,i){var he;const l=x(this,Se),c=this.options,f=x(this,mt),m=x(this,Wr),p=x(this,Ao),w=o!==l?o.state:x(this,Bs),{state:P}=o;let j={...P},T=!1,v;if(i._optimisticResults){const ye=this.hasListeners(),Pe=!ye&&sp(o,i),ae=ye&&ip(o,l,i,c);(Pe||ae)&&(j={...j,...rh(P.data,o.options)}),i._optimisticResults==="isRestoring"&&(j.fetchStatus="idle")}let{error:I,errorUpdatedAt:C,status:N}=j;v=j.data;let z=!1;if(i.placeholderData!==void 0&&v===void 0&&N==="pending"){let ye;f!=null&&f.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(ye=f.data,z=!0):ye=typeof i.placeholderData=="function"?i.placeholderData((he=x(this,Do))==null?void 0:he.state.data,x(this,Do)):i.placeholderData,ye!==void 0&&(N="success",v=Pu(f==null?void 0:f.data,ye,i),T=!0)}if(i.select&&v!==void 0&&!z)if(f&&v===(m==null?void 0:m.data)&&i.select===x(this,Ws))v=x(this,Lo);else try{K(this,Ws,i.select),v=i.select(v),v=Pu(f==null?void 0:f.data,v,i),K(this,Lo,v),K(this,fr,null)}catch(ye){K(this,fr,ye)}x(this,fr)&&(I=x(this,fr),v=x(this,Lo),C=Date.now(),N="error");const W=j.fetchStatus==="fetching",$=N==="pending",L=N==="error",ee=$&&W,oe=v!==void 0,ie={status:N,fetchStatus:j.fetchStatus,isPending:$,isSuccess:N==="success",isError:L,isInitialLoading:ee,isLoading:ee,data:v,dataUpdatedAt:j.dataUpdatedAt,error:I,errorUpdatedAt:C,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:W,isRefetching:W&&!$,isLoadingError:L&&!oe,isPaused:j.fetchStatus==="paused",isPlaceholderData:T,isRefetchError:L&&oe,isStale:Xu(o,i),refetch:this.refetch,promise:x(this,On),isEnabled:Bt(i.enabled,o)!==!1};if(this.options.experimental_prefetchInRender){const ye=ie.data!==void 0,Pe=ie.status==="error"&&!ye,ae=Be=>{Pe?Be.reject(ie.error):ye&&Be.resolve(ie.data)},De=()=>{const Be=K(this,On,ie.promise=ju());ae(Be)},Te=x(this,On);switch(Te.status){case"pending":o.queryHash===l.queryHash&&ae(Te);break;case"fulfilled":(Pe||ie.data!==Te.value)&&De();break;case"rejected":(!Pe||ie.error!==Te.reason)&&De();break}}return ie}updateResult(){const o=x(this,mt),i=this.createResult(x(this,Se),this.options);if(K(this,Wr,x(this,Se).state),K(this,Ao,this.options),x(this,Wr).data!==void 0&&K(this,Do,x(this,Se)),Sa(i,o))return;K(this,mt,i);const l=()=>{if(!o)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!x(this,Fo).size)return!0;const m=new Set(f??x(this,Fo));return this.options.throwOnError&&m.add("error"),Object.keys(x(this,mt)).some(p=>{const y=p;return x(this,mt)[y]!==o[y]&&m.has(y)})};ge(this,Re,oh).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ge(this,Re,_u).call(this)}},Et=new WeakMap,Se=new WeakMap,Bs=new WeakMap,mt=new WeakMap,Wr=new WeakMap,Ao=new WeakMap,On=new WeakMap,fr=new WeakMap,Ws=new WeakMap,Lo=new WeakMap,Do=new WeakMap,Vr=new WeakMap,Hr=new WeakMap,pr=new WeakMap,Fo=new WeakMap,Re=new WeakSet,As=function(o){ge(this,Re,Au).call(this);let i=x(this,Se).fetch(this.options,o);return o!=null&&o.throwOnError||(i=i.catch(gt)),i},Mu=function(){ge(this,Re,zu).call(this);const o=vr(this.options.staleTime,x(this,Se));if($r||x(this,mt).isStale||!Eu(o))return;const l=Xp(x(this,mt).dataUpdatedAt,o)+1;K(this,Vr,Ar.setTimeout(()=>{x(this,mt).isStale||this.updateResult()},l))},Tu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,Se)):this.options.refetchInterval)??!1},Ou=function(o){ge(this,Re,Iu).call(this),K(this,pr,o),!($r||Bt(this.options.enabled,x(this,Se))===!1||!Eu(x(this,pr))||x(this,pr)===0)&&K(this,Hr,Ar.setInterval(()=>{(this.options.refetchIntervalInBackground||Yu.isFocused())&&ge(this,Re,As).call(this)},x(this,pr)))},_u=function(){ge(this,Re,Mu).call(this),ge(this,Re,Ou).call(this,ge(this,Re,Tu).call(this))},zu=function(){x(this,Vr)&&(Ar.clearTimeout(x(this,Vr)),K(this,Vr,void 0))},Iu=function(){x(this,Hr)&&(Ar.clearInterval(x(this,Hr)),K(this,Hr,void 0))},Au=function(){const o=x(this,Et).getQueryCache().build(x(this,Et),this.options);if(o===x(this,Se))return;const i=x(this,Se);K(this,Se,o),K(this,Bs,o.state),this.hasListeners()&&(i==null||i.removeObserver(this),o.addObserver(this))},oh=function(o){Xe.batch(()=>{o.listeners&&this.listeners.forEach(i=>{i(x(this,mt))}),x(this,Et).getQueryCache().notify({query:x(this,Se),type:"observerResultsUpdated"})})},Wp);function Ry(r,o){return Bt(o.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&o.retryOnMount===!1)}function sp(r,o){return Ry(r,o)||r.state.data!==void 0&&Lu(r,o,o.refetchOnMount)}function Lu(r,o,i){if(Bt(o.enabled,r)!==!1&&vr(o.staleTime,r)!=="static"){const l=typeof i=="function"?i(r):i;return l==="always"||l!==!1&&Xu(r,o)}return!1}function ip(r,o,i,l){return(r!==o||Bt(l.enabled,r)===!1)&&(!i.suspense||r.state.status!=="error")&&Xu(r,i)}function Xu(r,o){return Bt(o.enabled,r)!==!1&&r.isStaleByTime(vr(o.staleTime,r))}function My(r,o){return!Sa(r.getCurrentResult(),o)}function ap(r){return{onFetch:(o,i)=>{var P,j,T,v,I;const l=o.options,c=(T=(j=(P=o.fetchOptions)==null?void 0:P.meta)==null?void 0:j.fetchMore)==null?void 0:T.direction,f=((v=o.state.data)==null?void 0:v.pages)||[],m=((I=o.state.data)==null?void 0:I.pageParams)||[];let p={pages:[],pageParams:[]},y=0;const w=async()=>{let C=!1;const N=$=>{Sy($,()=>o.signal,()=>C=!0)},z=Jp(o.options,o.fetchOptions),W=async($,L,ee)=>{if(C)return Promise.reject();if(L==null&&$.pages.length)return Promise.resolve($);const ne=(()=>{const Pe={client:o.client,queryKey:o.queryKey,pageParam:L,direction:ee?"backward":"forward",meta:o.options.meta};return N(Pe),Pe})(),ie=await z(ne),{maxPages:he}=o.options,ye=ee?xy:wy;return{pages:ye($.pages,ie,he),pageParams:ye($.pageParams,L,he)}};if(c&&f.length){const $=c==="backward",L=$?Ty:lp,ee={pages:f,pageParams:m},oe=L(l,ee);p=await W(ee,oe,$)}else{const $=r??f.length;do{const L=y===0?m[0]??l.initialPageParam:lp(l,p);if(y>0&&L==null)break;p=await W(p,L),y++}while(y<$)}return p};o.options.persister?o.fetchFn=()=>{var C,N;return(N=(C=o.options).persister)==null?void 0:N.call(C,w,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},i)}:o.fetchFn=w}}}function lp(r,{pages:o,pageParams:i}){const l=o.length-1;return o.length>0?r.getNextPageParam(o[l],o,i[l],i):void 0}function Ty(r,{pages:o,pageParams:i}){var l;return o.length>0?(l=r.getPreviousPageParam)==null?void 0:l.call(r,o[0],o,i[0],i):void 0}var Vs,mn,ct,Qr,gn,ar,Vp,Oy=(Vp=class extends nh{constructor(o){super();se(this,gn);se(this,Vs);se(this,mn);se(this,ct);se(this,Qr);K(this,Vs,o.client),this.mutationId=o.mutationId,K(this,ct,o.mutationCache),K(this,mn,[]),this.state=o.state||sh(),this.setOptions(o.options),this.scheduleGc()}setOptions(o){this.options=o,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(o){x(this,mn).includes(o)||(x(this,mn).push(o),this.clearGcTimeout(),x(this,ct).notify({type:"observerAdded",mutation:this,observer:o}))}removeObserver(o){K(this,mn,x(this,mn).filter(i=>i!==o)),this.scheduleGc(),x(this,ct).notify({type:"observerRemoved",mutation:this,observer:o})}optionalRemove(){x(this,mn).length||(this.state.status==="pending"?this.scheduleGc():x(this,ct).remove(this))}continue(){var o;return((o=x(this,Qr))==null?void 0:o.continue())??this.execute(this.state.variables)}async execute(o){var m,p,y,w,P,j,T,v,I,C,N,z,W,$,L,ee,oe,ne;const i=()=>{ge(this,gn,ar).call(this,{type:"continue"})},l={client:x(this,Vs),meta:this.options.meta,mutationKey:this.options.mutationKey};K(this,Qr,th({fn:()=>this.options.mutationFn?this.options.mutationFn(o,l):Promise.reject(new Error("No mutationFn found")),onFail:(ie,he)=>{ge(this,gn,ar).call(this,{type:"failed",failureCount:ie,error:he})},onPause:()=>{ge(this,gn,ar).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,ct).canRun(this)}));const c=this.state.status==="pending",f=!x(this,Qr).canStart();try{if(c)i();else{ge(this,gn,ar).call(this,{type:"pending",variables:o,isPaused:f}),x(this,ct).config.onMutate&&await x(this,ct).config.onMutate(o,this,l);const he=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,o,l));he!==this.state.context&&ge(this,gn,ar).call(this,{type:"pending",context:he,variables:o,isPaused:f})}const ie=await x(this,Qr).start();return await((w=(y=x(this,ct).config).onSuccess)==null?void 0:w.call(y,ie,o,this.state.context,this,l)),await((j=(P=this.options).onSuccess)==null?void 0:j.call(P,ie,o,this.state.context,l)),await((v=(T=x(this,ct).config).onSettled)==null?void 0:v.call(T,ie,null,this.state.variables,this.state.context,this,l)),await((C=(I=this.options).onSettled)==null?void 0:C.call(I,ie,null,o,this.state.context,l)),ge(this,gn,ar).call(this,{type:"success",data:ie}),ie}catch(ie){try{await((z=(N=x(this,ct).config).onError)==null?void 0:z.call(N,ie,o,this.state.context,this,l))}catch(he){Promise.reject(he)}try{await(($=(W=this.options).onError)==null?void 0:$.call(W,ie,o,this.state.context,l))}catch(he){Promise.reject(he)}try{await((ee=(L=x(this,ct).config).onSettled)==null?void 0:ee.call(L,void 0,ie,this.state.variables,this.state.context,this,l))}catch(he){Promise.reject(he)}try{await((ne=(oe=this.options).onSettled)==null?void 0:ne.call(oe,void 0,ie,o,this.state.context,l))}catch(he){Promise.reject(he)}throw ge(this,gn,ar).call(this,{type:"error",error:ie}),ie}finally{x(this,ct).runNext(this)}}},Vs=new WeakMap,mn=new WeakMap,ct=new WeakMap,Qr=new WeakMap,gn=new WeakSet,ar=function(o){const i=l=>{switch(o.type){case"failed":return{...l,failureCount:o.failureCount,failureReason:o.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:o.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:o.isPaused,status:"pending",variables:o.variables,submittedAt:Date.now()};case"success":return{...l,data:o.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:o.error,failureCount:l.failureCount+1,failureReason:o.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Xe.batch(()=>{x(this,mn).forEach(l=>{l.onMutationUpdate(o)}),x(this,ct).notify({mutation:this,type:"updated",action:o})})},Vp);function sh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _n,en,Hs,Hp,_y=(Hp=class extends Ho{constructor(o={}){super();se(this,_n);se(this,en);se(this,Hs);this.config=o,K(this,_n,new Set),K(this,en,new Map),K(this,Hs,0)}build(o,i,l){const c=new Oy({client:o,mutationCache:this,mutationId:++aa(this,Hs)._,options:o.defaultMutationOptions(i),state:l});return this.add(c),c}add(o){x(this,_n).add(o);const i=ua(o);if(typeof i=="string"){const l=x(this,en).get(i);l?l.push(o):x(this,en).set(i,[o])}this.notify({type:"added",mutation:o})}remove(o){if(x(this,_n).delete(o)){const i=ua(o);if(typeof i=="string"){const l=x(this,en).get(i);if(l)if(l.length>1){const c=l.indexOf(o);c!==-1&&l.splice(c,1)}else l[0]===o&&x(this,en).delete(i)}}this.notify({type:"removed",mutation:o})}canRun(o){const i=ua(o);if(typeof i=="string"){const l=x(this,en).get(i),c=l==null?void 0:l.find(f=>f.state.status==="pending");return!c||c===o}else return!0}runNext(o){var l;const i=ua(o);if(typeof i=="string"){const c=(l=x(this,en).get(i))==null?void 0:l.find(f=>f!==o&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Xe.batch(()=>{x(this,_n).forEach(o=>{this.notify({type:"removed",mutation:o})}),x(this,_n).clear(),x(this,en).clear()})}getAll(){return Array.from(x(this,_n))}find(o){const i={exact:!0,...o};return this.getAll().find(l=>ep(i,l))}findAll(o={}){return this.getAll().filter(i=>ep(o,i))}notify(o){Xe.batch(()=>{this.listeners.forEach(i=>{i(o)})})}resumePausedMutations(){const o=this.getAll().filter(i=>i.state.isPaused);return Xe.batch(()=>Promise.all(o.map(i=>i.continue().catch(gt))))}},_n=new WeakMap,en=new WeakMap,Hs=new WeakMap,Hp);function ua(r){var o;return(o=r.options.scope)==null?void 0:o.id}var zn,hr,Nt,In,An,ga,Du,Qp,zy=(Qp=class extends Ho{constructor(i,l){super();se(this,An);se(this,zn);se(this,hr);se(this,Nt);se(this,In);K(this,zn,i),this.setOptions(l),this.bindMethods(),ge(this,An,ga).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,zn).defaultMutationOptions(i),Sa(this.options,l)||x(this,zn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:x(this,Nt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&Kr(l.mutationKey)!==Kr(this.options.mutationKey)?this.reset():((c=x(this,Nt))==null?void 0:c.state.status)==="pending"&&x(this,Nt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=x(this,Nt))==null||i.removeObserver(this)}onMutationUpdate(i){ge(this,An,ga).call(this),ge(this,An,Du).call(this,i)}getCurrentResult(){return x(this,hr)}reset(){var i;(i=x(this,Nt))==null||i.removeObserver(this),K(this,Nt,void 0),ge(this,An,ga).call(this),ge(this,An,Du).call(this)}mutate(i,l){var c;return K(this,In,l),(c=x(this,Nt))==null||c.removeObserver(this),K(this,Nt,x(this,zn).getMutationCache().build(x(this,zn),this.options)),x(this,Nt).addObserver(this),x(this,Nt).execute(i)}},zn=new WeakMap,hr=new WeakMap,Nt=new WeakMap,In=new WeakMap,An=new WeakSet,ga=function(){var l;const i=((l=x(this,Nt))==null?void 0:l.state)??sh();K(this,hr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Du=function(i){Xe.batch(()=>{var l,c,f,m,p,y,w,P;if(x(this,In)&&this.hasListeners()){const j=x(this,hr).variables,T=x(this,hr).context,v={client:x(this,zn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(c=(l=x(this,In)).onSuccess)==null||c.call(l,i.data,j,T,v)}catch(I){Promise.reject(I)}try{(m=(f=x(this,In)).onSettled)==null||m.call(f,i.data,null,j,T,v)}catch(I){Promise.reject(I)}}else if((i==null?void 0:i.type)==="error"){try{(y=(p=x(this,In)).onError)==null||y.call(p,i.error,j,T,v)}catch(I){Promise.reject(I)}try{(P=(w=x(this,In)).onSettled)==null||P.call(w,void 0,i.error,j,T,v)}catch(I){Promise.reject(I)}}}this.listeners.forEach(j=>{j(x(this,hr))})})},Qp),yn,$p,Iy=($p=class extends Ho{constructor(o={}){super();se(this,yn);this.config=o,K(this,yn,new Map)}build(o,i,l){const c=i.queryKey,f=i.queryHash??Ku(c,i);let m=this.get(f);return m||(m=new Py({client:o,queryKey:c,queryHash:f,options:o.defaultQueryOptions(i),state:l,defaultOptions:o.getQueryDefaults(c)}),this.add(m)),m}add(o){x(this,yn).has(o.queryHash)||(x(this,yn).set(o.queryHash,o),this.notify({type:"added",query:o}))}remove(o){const i=x(this,yn).get(o.queryHash);i&&(o.destroy(),i===o&&x(this,yn).delete(o.queryHash),this.notify({type:"removed",query:o}))}clear(){Xe.batch(()=>{this.getAll().forEach(o=>{this.remove(o)})})}get(o){return x(this,yn).get(o)}getAll(){return[...x(this,yn).values()]}find(o){const i={exact:!0,...o};return this.getAll().find(l=>Jf(i,l))}findAll(o={}){const i=this.getAll();return Object.keys(o).length>0?i.filter(l=>Jf(o,l)):i}notify(o){Xe.batch(()=>{this.listeners.forEach(i=>{i(o)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(o=>{o.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(o=>{o.onOnline()})})}},yn=new WeakMap,$p),Qe,mr,gr,Uo,Bo,yr,Wo,Vo,Kp,Ay=(Kp=class{constructor(r={}){se(this,Qe);se(this,mr);se(this,gr);se(this,Uo);se(this,Bo);se(this,yr);se(this,Wo);se(this,Vo);K(this,Qe,r.queryCache||new Iy),K(this,mr,r.mutationCache||new _y),K(this,gr,r.defaultOptions||{}),K(this,Uo,new Map),K(this,Bo,new Map),K(this,yr,0)}mount(){aa(this,yr)._++,x(this,yr)===1&&(K(this,Wo,Yu.subscribe(async r=>{r&&(await this.resumePausedMutations(),x(this,Qe).onFocus())})),K(this,Vo,ka.subscribe(async r=>{r&&(await this.resumePausedMutations(),x(this,Qe).onOnline())})))}unmount(){var r,o;aa(this,yr)._--,x(this,yr)===0&&((r=x(this,Wo))==null||r.call(this),K(this,Wo,void 0),(o=x(this,Vo))==null||o.call(this),K(this,Vo,void 0))}isFetching(r){return x(this,Qe).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return x(this,mr).findAll({...r,status:"pending"}).length}getQueryData(r){var i;const o=this.defaultQueryOptions({queryKey:r});return(i=x(this,Qe).get(o.queryHash))==null?void 0:i.state.data}ensureQueryData(r){const o=this.defaultQueryOptions(r),i=x(this,Qe).build(this,o),l=i.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&i.isStaleByTime(vr(o.staleTime,i))&&this.prefetchQuery(o),Promise.resolve(l))}getQueriesData(r){return x(this,Qe).findAll(r).map(({queryKey:o,state:i})=>{const l=i.data;return[o,l]})}setQueryData(r,o,i){const l=this.defaultQueryOptions({queryKey:r}),c=x(this,Qe).get(l.queryHash),f=c==null?void 0:c.state.data,m=gy(o,f);if(m!==void 0)return x(this,Qe).build(this,l).setData(m,{...i,manual:!0})}setQueriesData(r,o,i){return Xe.batch(()=>x(this,Qe).findAll(r).map(({queryKey:l})=>[l,this.setQueryData(l,o,i)]))}getQueryState(r){var i;const o=this.defaultQueryOptions({queryKey:r});return(i=x(this,Qe).get(o.queryHash))==null?void 0:i.state}removeQueries(r){const o=x(this,Qe);Xe.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(r,o){const i=x(this,Qe);return Xe.batch(()=>(i.findAll(r).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...r},o)))}cancelQueries(r,o={}){const i={revert:!0,...o},l=Xe.batch(()=>x(this,Qe).findAll(r).map(c=>c.cancel(i)));return Promise.all(l).then(gt).catch(gt)}invalidateQueries(r,o={}){return Xe.batch(()=>(x(this,Qe).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"},o)))}refetchQueries(r,o={}){const i={...o,cancelRefetch:o.cancelRefetch??!0},l=Xe.batch(()=>x(this,Qe).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 o=this.defaultQueryOptions(r);o.retry===void 0&&(o.retry=!1);const i=x(this,Qe).build(this,o);return i.isStaleByTime(vr(o.staleTime,i))?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(gt).catch(gt)}fetchInfiniteQuery(r){return r.behavior=ap(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(gt).catch(gt)}ensureInfiniteQueryData(r){return r.behavior=ap(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return ka.isOnline()?x(this,mr).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,Qe)}getMutationCache(){return x(this,mr)}getDefaultOptions(){return x(this,gr)}setDefaultOptions(r){K(this,gr,r)}setQueryDefaults(r,o){x(this,Uo).set(Kr(r),{queryKey:r,defaultOptions:o})}getQueryDefaults(r){const o=[...x(this,Uo).values()],i={};return o.forEach(l=>{Ls(r,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(r,o){x(this,Bo).set(Kr(r),{mutationKey:r,defaultOptions:o})}getMutationDefaults(r){const o=[...x(this,Bo).values()],i={};return o.forEach(l=>{Ls(r,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(r){if(r._defaulted)return r;const o={...x(this,gr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return o.queryHash||(o.queryHash=Ku(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.queryFn===Gu&&(o.enabled=!1),o}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,Qe).clear(),x(this,mr).clear()}},Qe=new WeakMap,mr=new WeakMap,gr=new WeakMap,Uo=new WeakMap,Bo=new WeakMap,yr=new WeakMap,Wo=new WeakMap,Vo=new WeakMap,Kp),ih=k.createContext(void 0),Qs=r=>{const o=k.useContext(ih);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},Ly=({client:r,children:o})=>(k.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),h.jsx(ih.Provider,{value:r,children:o})),ah=k.createContext(!1),Dy=()=>k.useContext(ah);ah.Provider;function Fy(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var Uy=k.createContext(Fy()),By=()=>k.useContext(Uy),Wy=(r,o,i)=>{const l=i!=null&&i.state.error&&typeof r.throwOnError=="function"?qu(r.throwOnError,[i.state.error,i]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(o.isReset()||(r.retryOnMount=!1))},Vy=r=>{k.useEffect(()=>{r.clearReset()},[r])},Hy=({result:r,errorResetBoundary:o,throwOnError:i,query:l,suspense:c})=>r.isError&&!o.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||qu(i,[r.error,l])),Qy=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))}},$y=(r,o)=>r.isLoading&&r.isFetching&&!o,Ky=(r,o)=>(r==null?void 0:r.suspense)&&o.isPending,up=(r,o,i)=>o.fetchOptimistic(r).catch(()=>{i.clearReset()});function Gy(r,o,i){var T,v,I,C;const l=Dy(),c=By(),f=Qs(),m=f.defaultQueryOptions(r);(v=(T=f.getDefaultOptions().queries)==null?void 0:T._experimental_beforeQuery)==null||v.call(T,m);const p=f.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",Qy(m),Wy(m,c,p),Vy(c);const y=!f.getQueryCache().get(m.queryHash),[w]=k.useState(()=>new o(f,m)),P=w.getOptimisticResult(m),j=!l&&r.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(N=>{const z=j?w.subscribe(Xe.batchCalls(N)):gt;return w.updateResult(),z},[w,j]),()=>w.getCurrentResult(),()=>w.getCurrentResult()),k.useEffect(()=>{w.setOptions(m)},[m,w]),Ky(m,P))throw up(m,w,c);if(Hy({result:P,errorResetBoundary:c,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw P.error;if((C=(I=f.getDefaultOptions().queries)==null?void 0:I._experimental_afterQuery)==null||C.call(I,m,P),m.experimental_prefetchInRender&&!$r&&$y(P,l)){const N=y?up(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 lh(r,o){return Gy(r,jy)}function Zu(r,o){const i=Qs(),[l]=k.useState(()=>new zy(i,r));k.useEffect(()=>{l.setOptions(r)},[l,r]);const c=k.useSyncExternalStore(k.useCallback(m=>l.subscribe(Xe.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f=k.useCallback((m,p)=>{l.mutate(m,p).catch(gt)},[l]);if(c.error&&qu(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}const cp=r=>{let o;const i=new Set,l=(w,P)=>{const j=typeof w=="function"?w(o):w;if(!Object.is(j,o)){const T=o;o=P??(typeof j!="object"||j===null)?j:Object.assign({},o,j),i.forEach(v=>v(o,T))}},c=()=>o,p={setState:l,getState:c,getInitialState:()=>y,subscribe:w=>(i.add(w),()=>i.delete(w))},y=o=r(l,c,p);return p},qy=(r=>r?cp(r):cp),Yy=r=>r;function Xy(r,o=Yy){const i=Q.useSyncExternalStore(r.subscribe,Q.useCallback(()=>o(r.getState()),[r,o]),Q.useCallback(()=>o(r.getInitialState()),[r,o]));return Q.useDebugValue(i),i}const dp=r=>{const o=qy(r),i=l=>Xy(o,l);return Object.assign(i,o),i},Zy=(r=>r?dp(r):dp),qr=Zy(r=>({activeTab:"model",setActiveTab:o=>r({activeTab:o}),connectionStatus:"disconnected",setConnectionStatus:o=>r({connectionStatus:o}),providerModal:{open:!1},openProviderModal:o=>r({providerModal:{open:!0,provider:o}}),closeProviderModal:()=>r({providerModal:{open:!1}}),channelModal:{open:!1},openChannelModal:o=>r({channelModal:{open:!0,channel:o}}),closeChannelModal:()=>r({channelModal:{open:!1}})}));function uh(r){var o,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(o=0;o<c;o++)r[o]&&(i=uh(r[o]))&&(l&&(l+=" "),l+=i)}else for(i in r)r[i]&&(l&&(l+=" "),l+=i);return l}function ch(){for(var r,o,i=0,l="",c=arguments.length;i<c;i++)(r=arguments[i])&&(o=uh(r))&&(l&&(l+=" "),l+=o);return l}const Ju="-",Jy=r=>{const o=tv(r),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const p=m.split(Ju);return p[0]===""&&p.length!==1&&p.shift(),dh(p,o)||ev(m)},getConflictingClassGroupIds:(m,p)=>{const y=i[m]||[];return p&&l[m]?[...y,...l[m]]:y}}},dh=(r,o)=>{var m;if(r.length===0)return o.classGroupId;const i=r[0],l=o.nextPart.get(i),c=l?dh(r.slice(1),l):void 0;if(c)return c;if(o.validators.length===0)return;const f=r.join(Ju);return(m=o.validators.find(({validator:p})=>p(f)))==null?void 0:m.classGroupId},fp=/^\[(.+)\]$/,ev=r=>{if(fp.test(r)){const o=fp.exec(r)[1],i=o==null?void 0:o.substring(0,o.indexOf(":"));if(i)return"arbitrary.."+i}},tv=r=>{const{theme:o,prefix:i}=r,l={nextPart:new Map,validators:[]};return rv(Object.entries(r.classGroups),i).forEach(([f,m])=>{Fu(m,l,f,o)}),l},Fu=(r,o,i,l)=>{r.forEach(c=>{if(typeof c=="string"){const f=c===""?o:pp(o,c);f.classGroupId=i;return}if(typeof c=="function"){if(nv(c)){Fu(c(l),o,i,l);return}o.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([f,m])=>{Fu(m,pp(o,f),i,l)})})},pp=(r,o)=>{let i=r;return o.split(Ju).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},nv=r=>r.isThemeGetter,rv=(r,o)=>o?r.map(([i,l])=>{const c=l.map(f=>typeof f=="string"?o+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([m,p])=>[o+m,p])):f);return[i,c]}):r,ov=r=>{if(r<1)return{get:()=>{},set:()=>{}};let o=0,i=new Map,l=new Map;const c=(f,m)=>{i.set(f,m),o++,o>r&&(o=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)}}},fh="!",sv=r=>{const{separator:o,experimentalParseClassName:i}=r,l=o.length===1,c=o[0],f=o.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)===o)){y.push(p.slice(P,N)),P=N+f;continue}if(z==="/"){j=N;continue}}z==="["?w++:z==="]"&&w--}const T=y.length===0?p:p.substring(P),v=T.startsWith(fh),I=v?T.substring(1):T,C=j&&j>P?j-P:void 0;return{modifiers:y,hasImportantModifier:v,baseClassName:I,maybePostfixModifierPosition:C}};return i?p=>i({className:p,parseClassName:m}):m},iv=r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(l=>{l[0]==="["?(o.push(...i.sort(),l),i=[]):i.push(l)}),o.push(...i.sort()),o},av=r=>({cache:ov(r.cacheSize),parseClassName:sv(r),...Jy(r)}),lv=/\s+/,uv=(r,o)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:c}=o,f=[],m=r.trim().split(lv);let p="";for(let y=m.length-1;y>=0;y-=1){const w=m[y],{modifiers:P,hasImportantModifier:j,baseClassName:T,maybePostfixModifierPosition:v}=i(w);let I=!!v,C=l(I?T.substring(0,v):T);if(!C){if(!I){p=w+(p.length>0?" "+p:p);continue}if(C=l(T),!C){p=w+(p.length>0?" "+p:p);continue}I=!1}const N=iv(P).join(":"),z=j?N+fh:N,W=z+C;if(f.includes(W))continue;f.push(W);const $=c(C,I);for(let L=0;L<$.length;++L){const ee=$[L];f.push(z+ee)}p=w+(p.length>0?" "+p:p)}return p};function cv(){let r=0,o,i,l="";for(;r<arguments.length;)(o=arguments[r++])&&(i=ph(o))&&(l&&(l+=" "),l+=i);return l}const ph=r=>{if(typeof r=="string")return r;let o,i="";for(let l=0;l<r.length;l++)r[l]&&(o=ph(r[l]))&&(i&&(i+=" "),i+=o);return i};function dv(r,...o){let i,l,c,f=m;function m(y){const w=o.reduce((P,j)=>j(P),r());return i=av(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=uv(y,i);return c(y,P),P}return function(){return f(cv.apply(null,arguments))}}const Le=r=>{const o=i=>i[r]||[];return o.isThemeGetter=!0,o},hh=/^\[(?:([a-z-]+):)?(.+)\]$/i,fv=/^\d+\/\d+$/,pv=new Set(["px","full","screen"]),hv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mv=/\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$/,gv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mn=r=>Mo(r)||pv.has(r)||fv.test(r),sr=r=>Qo(r,"length",Nv),Mo=r=>!!r&&!Number.isNaN(Number(r)),mu=r=>Qo(r,"number",Mo),zs=r=>!!r&&Number.isInteger(Number(r)),wv=r=>r.endsWith("%")&&Mo(r.slice(0,-1)),me=r=>hh.test(r),ir=r=>hv.test(r),xv=new Set(["length","size","percentage"]),Sv=r=>Qo(r,xv,mh),kv=r=>Qo(r,"position",mh),bv=new Set(["image","url"]),Cv=r=>Qo(r,bv,jv),Ev=r=>Qo(r,"",Pv),Is=()=>!0,Qo=(r,o,i)=>{const l=hh.exec(r);return l?l[1]?typeof o=="string"?l[1]===o:o.has(l[1]):i(l[2]):!1},Nv=r=>mv.test(r)&&!gv.test(r),mh=()=>!1,Pv=r=>yv.test(r),jv=r=>vv.test(r),Rv=()=>{const r=Le("colors"),o=Le("spacing"),i=Le("blur"),l=Le("brightness"),c=Le("borderColor"),f=Le("borderRadius"),m=Le("borderSpacing"),p=Le("borderWidth"),y=Le("contrast"),w=Le("grayscale"),P=Le("hueRotate"),j=Le("invert"),T=Le("gap"),v=Le("gradientColorStops"),I=Le("gradientColorStopPositions"),C=Le("inset"),N=Le("margin"),z=Le("opacity"),W=Le("padding"),$=Le("saturate"),L=Le("scale"),ee=Le("sepia"),oe=Le("skew"),ne=Le("space"),ie=Le("translate"),he=()=>["auto","contain","none"],ye=()=>["auto","hidden","clip","visible","scroll"],Pe=()=>["auto",me,o],ae=()=>[me,o],De=()=>["",Mn,sr],Te=()=>["auto",Mo,me],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Oe=()=>["solid","dashed","dotted","double","none"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",me],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[Mo,me];return{cacheSize:500,separator:":",theme:{colors:[Is],spacing:[Mn,sr],blur:["none","",ir,me],brightness:E(),borderColor:[r],borderRadius:["none","","full",ir,me],borderSpacing:ae(),borderWidth:De(),contrast:E(),grayscale:U(),hueRotate:E(),invert:U(),gap:ae(),gradientColorStops:[r],gradientColorStopPositions:[wv,sr],inset:Pe(),margin:Pe(),opacity:E(),padding:ae(),saturate:E(),scale:E(),sepia:U(),skew:E(),space:ae(),translate:ae()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[ir]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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:ye()}],"overflow-x":[{"overflow-x":ye()}],"overflow-y":[{"overflow-y":ye()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zs,me]}],basis:[{basis:Pe()}],"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:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",zs,me]}],"grid-cols":[{"grid-cols":[Is]}],"col-start-end":[{col:["auto",{span:["full",zs,me]},me]}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":[Is]}],"row-start-end":[{row:["auto",{span:[zs,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:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[W]}],px:[{px:[W]}],py:[{py:[W]}],ps:[{ps:[W]}],pe:[{pe:[W]}],pt:[{pt:[W]}],pr:[{pr:[W]}],pb:[{pb:[W]}],pl:[{pl:[W]}],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,o]}],"min-w":[{"min-w":[me,o,"min","max","fit"]}],"max-w":[{"max-w":[me,o,"none","full","min","max","fit","prose",{screen:[ir]},ir]}],h:[{h:[me,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,o,"auto","min","max","fit"]}],"font-size":[{text:["base",ir,sr]}],"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:[Is]}],"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",Mo,mu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Mn,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:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Mn,sr]}],"underline-offset":[{"underline-offset":["auto",Mn,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(),kv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cv]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[I]}],"gradient-via-pos":[{via:[I]}],"gradient-to-pos":[{to:[I]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],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:[...Oe(),"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:Oe()}],"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:["",...Oe()]}],"outline-offset":[{"outline-offset":[Mn,me]}],"outline-w":[{outline:[Mn,sr]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:De()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[Mn,sr]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",ir,Ev]}],"shadow-color":[{shadow:[Is]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",ir,me]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[P]}],invert:[{invert:[j]}],saturate:[{saturate:[$]}],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":[$]}],"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:E()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[zs,me]}],"translate-x":[{"translate-x":[ie]}],"translate-y":[{"translate-y":[ie]}],"skew-x":[{"skew-x":[oe]}],"skew-y":[{"skew-y":[oe]}],"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:[Mn,sr,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"]}}},Mv=dv(Rv);function Ee(...r){return Mv(ch(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 Tv=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gh=(...r)=>r.filter((o,i,l)=>!!o&&o.trim()!==""&&l.indexOf(o)===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 Ov={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 _v=k.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:f,iconNode:m,...p},y)=>k.createElement("svg",{ref:y,...Ov,width:o,height:o,stroke:r,strokeWidth:l?Number(i)*24/Number(o):i,className:gh("lucide",c),...p},[...m.map(([w,P])=>k.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 Ue=(r,o)=>{const i=k.forwardRef(({className:l,...c},f)=>k.createElement(_v,{ref:f,iconNode:o,className:gh(`lucide-${Tv(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 zv=Ue("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 Iv=Ue("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 Av=Ue("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 Lv=Ue("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"}]]);/**
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 Dv=Ue("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"}]]);/**
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 Fv=Ue("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"}]]);/**
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 Uv=Ue("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"}]]);/**
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 yh=Ue("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"}]]);/**
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 Uu=Ue("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"}]]);/**
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 ba=Ue("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"}]]);/**
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 Bv=Ue("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 ec=Ue("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"}]]);/**
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 ya=Ue("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
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 tc=Ue("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"}]]);/**
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 Wv=Ue("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
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 Vv=Ue("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
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 vh=Ue("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"}]]);/**
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 Hv=Ue("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"}]]);/**
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 Qv=Ue("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"}]]);/**
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 wh=Ue("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"}]]);/**
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 $v=Ue("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"}]]);/**
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 Kv=Ue("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"}]]);/**
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 xh=Ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
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 Gv=Ue("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),qv=[{id:"model",label:"Models",icon:Av},{id:"providers",label:"Providers",icon:wh},{id:"channels",label:"Channels",icon:tc}];function Yv(){const{activeTab:r,setActiveTab:o}=qr();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 duration-fast 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-gray-900 tracking-tight",children:"nextclaw"})]})}),h.jsx("nav",{className:"flex-1",children:h.jsx("ul",{className:"space-y-1",children:qv.map(i=>{const l=i.icon,c=r===i.id;return h.jsx("li",{children:h.jsxs("button",{onClick:()=>o(i.id),className:Ee("group w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-all duration-fast",c?"bg-primary-100 text-primary-700":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"),children:[h.jsx(l,{className:Ee("h-4 w-4 transition-transform duration-fast group-hover:scale-110",c?"text-primary":"text-gray-500")}),h.jsx("span",{className:"flex-1 text-left",children:i.label})]})},i.id)})})})]})}function Xv({children:r}){return h.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[h.jsx(Yv,{}),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 hp=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,mp=ch,Zv=(r,o)=>i=>{var l;if((o==null?void 0:o.variants)==null)return mp(r,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:f}=o,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 T=hp(P)||hp(j);return c[w][T]}),p=i&&Object.entries(i).reduce((w,P)=>{let[j,T]=P;return T===void 0||(w[j]=T),w},{}),y=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((w,P)=>{let{class:j,className:T,...v}=P;return Object.entries(v).every(I=>{let[C,N]=I;return Array.isArray(N)?N.includes({...f,...p}[C]):{...f,...p}[C]===N})?[...w,j,T]:w},[]);return mp(r,m,y,i==null?void 0:i.class,i==null?void 0:i.className)},Jv=Zv("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-all duration-fast 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-600 active:bg-primary-700 shadow-sm",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-gray-200",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground hover:bg-primary-600 active:bg-primary-700 shadow-sm",subtle:"bg-secondary text-secondary-foreground hover:bg-gray-200","primary-outline":"border-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground"},size:{default:"h-10 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-12 rounded-xl px-6 text-base",xl:"h-14 rounded-xl px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Wt=k.forwardRef(({className:r,variant:o,size:i,...l},c)=>h.jsx("button",{className:Ee(Jv({variant:o,size:i,className:r})),ref:c,...l}));Wt.displayName="Button";const Bu=k.forwardRef(({className:r,hover:o=!0,...i},l)=>h.jsx("div",{ref:l,className:Ee("rounded-xl border border-gray-200 bg-white text-card-foreground shadow-card transition-all duration-base",o&&"hover:shadow-card-hover hover:border-gray-300",r),...i}));Bu.displayName="Card";const e0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("flex flex-col space-y-2 p-6",r),...o}));e0.displayName="CardHeader";const t0=k.forwardRef(({className:r,...o},i)=>h.jsx("h3",{ref:i,className:Ee("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));t0.displayName="CardTitle";const n0=k.forwardRef(({className:r,...o},i)=>h.jsx("p",{ref:i,className:Ee("text-sm text-gray-500 leading-relaxed",r),...o}));n0.displayName="CardDescription";const r0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("p-6 pt-0",r),...o}));r0.displayName="CardContent";const o0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("flex items-center justify-between p-6 pt-0",r),...o}));o0.displayName="CardFooter";const xn=k.forwardRef(({className:r,type:o,...i},l)=>h.jsx("input",{type:o,className:Ee("flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",r),ref:l,...i}));xn.displayName="Input";const wn=k.forwardRef(({className:r,...o},i)=>h.jsx("label",{ref:i,className:Ee("text-sm font-medium leading-none text-gray-700 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...o}));wn.displayName="Label";function Ot({className:r,...o}){return h.jsx("div",{className:Ee("animate-pulse rounded-md bg-slate-200",r),...o})}const s0="http://127.0.0.1:18791",va=(()=>{var r;return typeof window<"u"&&((r=window.location)!=null&&r.origin)?window.location.origin:s0})();async function gu(r,o={}){const i=`${va}${r}`,l=await fetch(i,{headers:{"Content-Type":"application/json",...o.headers},...o}),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 $o={get:r=>gu(r,{method:"GET"}),put:(r,o)=>gu(r,{method:"PUT",body:JSON.stringify(o)}),post:(r,o)=>gu(r,{method:"POST",body:JSON.stringify(o)})};async function i0(){const r=await $o.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function a0(){const r=await $o.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function l0(r){const o=await $o.put("/api/config/model",r);if(!o.ok)throw new Error(o.error.message);return o.data}async function u0(r,o){const i=await $o.put(`/api/config/providers/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function c0(r,o){const i=await $o.put(`/api/config/channels/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function d0(){const r=await $o.post("/api/channels/feishu/probe",{});if(!r.ok)throw new Error(r.error.message);return r.data}var Sh=Yp();const kh=Gp(Sh);var f0=r=>{switch(r){case"success":return m0;case"info":return y0;case"warning":return g0;case"error":return v0;default:return null}},p0=Array(12).fill(0),h0=({visible:r,className:o})=>Q.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":r},Q.createElement("div",{className:"sonner-spinner"},p0.map((i,l)=>Q.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),m0=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.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"})),g0=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Q.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"})),y0=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.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"})),v0=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.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"})),w0=Q.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"},Q.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Q.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),x0=()=>{let[r,o]=Q.useState(document.hidden);return Q.useEffect(()=>{let i=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),r},Wu=1,S0=class{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{let o=this.subscribers.indexOf(r);this.subscribers.splice(o,1)}),this.publish=r=>{this.subscribers.forEach(o=>o(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var o;let{message:i,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:Wu++,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(o=>{this.subscribers.forEach(i=>i({id:o.id,dismiss:!0}))}),this.subscribers.forEach(o=>o({id:r,dismiss:!0})),r),this.message=(r,o)=>this.create({...o,message:r}),this.error=(r,o)=>this.create({...o,message:r,type:"error"}),this.success=(r,o)=>this.create({...o,type:"success",message:r}),this.info=(r,o)=>this.create({...o,type:"info",message:r}),this.warning=(r,o)=>this.create({...o,type:"warning",message:r}),this.loading=(r,o)=>this.create({...o,type:"loading",message:r}),this.promise=(r,o)=>{if(!o)return;let i;o.loading!==void 0&&(i=this.create({...o,promise:r,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));let l=r instanceof Promise?r:r(),c=i!==void 0,f,m=l.then(async y=>{if(f=["resolve",y],Q.isValidElement(y))c=!1,this.create({id:i,type:"default",message:y});else if(b0(y)&&!y.ok){c=!1;let w=typeof o.error=="function"?await o.error(`HTTP error! status: ${y.status}`):o.error,P=typeof o.description=="function"?await o.description(`HTTP error! status: ${y.status}`):o.description;this.create({id:i,type:"error",message:w,description:P})}else if(o.success!==void 0){c=!1;let w=typeof o.success=="function"?await o.success(y):o.success,P=typeof o.description=="function"?await o.description(y):o.description;this.create({id:i,type:"success",message:w,description:P})}}).catch(async y=>{if(f=["reject",y],o.error!==void 0){c=!1;let w=typeof o.error=="function"?await o.error(y):o.error,P=typeof o.description=="function"?await o.description(y):o.description;this.create({id:i,type:"error",message:w,description:P})}}).finally(()=>{var y;c&&(this.dismiss(i),i=void 0),(y=o.finally)==null||y.call(o)}),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,o)=>{let i=(o==null?void 0:o.id)||Wu++;return this.create({jsx:r(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Pt=new S0,k0=(r,o)=>{let i=(o==null?void 0:o.id)||Wu++;return Pt.addToast({title:r,...o,id:i}),i},b0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",C0=k0,E0=()=>Pt.toasts,N0=()=>Pt.getActiveToasts(),xr=Object.assign(C0,{success:Pt.success,info:Pt.info,warning:Pt.warning,error:Pt.error,custom:Pt.custom,message:Pt.message,promise:Pt.promise,dismiss:Pt.dismiss,loading:Pt.loading},{getHistory:E0,getToasts:N0});function P0(r,{insertAt:o}={}){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",o==="top"&&i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}P0(`: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%)}
181
+ `);function ca(r){return r.label!==void 0}var j0=3,R0="32px",M0="16px",gp=4e3,T0=356,O0=14,_0=20,z0=200;function Zt(...r){return r.filter(Boolean).join(" ")}function I0(r){let[o,i]=r.split("-"),l=[];return o&&l.push(o),i&&l.push(i),l}var A0=r=>{var o,i,l,c,f,m,p,y,w,P,j;let{invert:T,toast:v,unstyled:I,interacting:C,setHeights:N,visibleToasts:z,heights:W,index:$,toasts:L,expanded:ee,removeToast:oe,defaultRichColors:ne,closeButton:ie,style:he,cancelButtonStyle:ye,actionButtonStyle:Pe,className:ae="",descriptionClassName:De="",duration:Te,position:Be,gap:Oe,loadingIcon:xe,expandByDefault:H,classNames:U,icons:V,closeButtonAriaLabel:E="Close toast",pauseWhenPageIsHidden:_}=r,[X,te]=Q.useState(null),[de,ve]=Q.useState(null),[ce,ke]=Q.useState(!1),[je,Ze]=Q.useState(!1),[nn,Xr]=Q.useState(!1),[Sr,Ko]=Q.useState(!1),[Ks,Go]=Q.useState(!1),[qo,Zr]=Q.useState(0),[Yo,Dn]=Q.useState(0),_t=Q.useRef(v.duration||Te||gp),Jr=Q.useRef(null),rn=Q.useRef(null),Gs=$===0,qs=$+1<=z,dt=v.type,on=v.dismissible!==!1,eo=v.className||"",Ys=v.descriptionClassName||"",sn=Q.useMemo(()=>W.findIndex(pe=>pe.toastId===v.id)||0,[W,v.id]),kr=Q.useMemo(()=>{var pe;return(pe=v.closeButton)!=null?pe:ie},[v.closeButton,ie]),Xs=Q.useMemo(()=>v.duration||Te||gp,[v.duration,Te]),to=Q.useRef(0),Sn=Q.useRef(0),Zs=Q.useRef(0),an=Q.useRef(null),[Xo,Zo]=Be.split("-"),no=Q.useMemo(()=>W.reduce((pe,Ne,_e)=>_e>=sn?pe:pe+Ne.height,0),[W,sn]),ro=x0(),Fn=v.invert||T,ln=dt==="loading";Sn.current=Q.useMemo(()=>sn*Oe+no,[sn,no]),Q.useEffect(()=>{_t.current=Xs},[Xs]),Q.useEffect(()=>{ke(!0)},[]),Q.useEffect(()=>{let pe=rn.current;if(pe){let Ne=pe.getBoundingClientRect().height;return Dn(Ne),N(_e=>[{toastId:v.id,height:Ne,position:v.position},..._e]),()=>N(_e=>_e.filter(ft=>ft.toastId!==v.id))}},[N,v.id]),Q.useLayoutEffect(()=>{if(!ce)return;let pe=rn.current,Ne=pe.style.height;pe.style.height="auto";let _e=pe.getBoundingClientRect().height;pe.style.height=Ne,Dn(_e),N(ft=>ft.find(yt=>yt.toastId===v.id)?ft.map(yt=>yt.toastId===v.id?{...yt,height:_e}:yt):[{toastId:v.id,height:_e,position:v.position},...ft])},[ce,v.title,v.description,N,v.id]);let Vt=Q.useCallback(()=>{Ze(!0),Zr(Sn.current),N(pe=>pe.filter(Ne=>Ne.toastId!==v.id)),setTimeout(()=>{oe(v)},z0)},[v,oe,N,Sn]);Q.useEffect(()=>{if(v.promise&&dt==="loading"||v.duration===1/0||v.type==="loading")return;let pe;return ee||C||_&&ro?(()=>{if(Zs.current<to.current){let Ne=new Date().getTime()-to.current;_t.current=_t.current-Ne}Zs.current=new Date().getTime()})():_t.current!==1/0&&(to.current=new Date().getTime(),pe=setTimeout(()=>{var Ne;(Ne=v.onAutoClose)==null||Ne.call(v,v),Vt()},_t.current)),()=>clearTimeout(pe)},[ee,C,v,dt,_,ro,Vt]),Q.useEffect(()=>{v.delete&&Vt()},[Vt,v.delete]);function Js(){var pe,Ne,_e;return V!=null&&V.loading?Q.createElement("div",{className:Zt(U==null?void 0:U.loader,(pe=v==null?void 0:v.classNames)==null?void 0:pe.loader,"sonner-loader"),"data-visible":dt==="loading"},V.loading):xe?Q.createElement("div",{className:Zt(U==null?void 0:U.loader,(Ne=v==null?void 0:v.classNames)==null?void 0:Ne.loader,"sonner-loader"),"data-visible":dt==="loading"},xe):Q.createElement(h0,{className:Zt(U==null?void 0:U.loader,(_e=v==null?void 0:v.classNames)==null?void 0:_e.loader),visible:dt==="loading"})}return Q.createElement("li",{tabIndex:0,ref:rn,className:Zt(ae,eo,U==null?void 0:U.toast,(o=v==null?void 0:v.classNames)==null?void 0:o.toast,U==null?void 0:U.default,U==null?void 0:U[dt],(i=v==null?void 0:v.classNames)==null?void 0:i[dt]),"data-sonner-toast":"","data-rich-colors":(l=v.richColors)!=null?l:ne,"data-styled":!(v.jsx||v.unstyled||I),"data-mounted":ce,"data-promise":!!v.promise,"data-swiped":Ks,"data-removed":je,"data-visible":qs,"data-y-position":Xo,"data-x-position":Zo,"data-index":$,"data-front":Gs,"data-swiping":nn,"data-dismissible":on,"data-type":dt,"data-invert":Fn,"data-swipe-out":Sr,"data-swipe-direction":de,"data-expanded":!!(ee||H&&ce),style:{"--index":$,"--toasts-before":$,"--z-index":L.length-$,"--offset":`${je?qo:Sn.current}px`,"--initial-height":H?"auto":`${Yo}px`,...he,...v.style},onDragEnd:()=>{Xr(!1),te(null),an.current=null},onPointerDown:pe=>{ln||!on||(Jr.current=new Date,Zr(Sn.current),pe.target.setPointerCapture(pe.pointerId),pe.target.tagName!=="BUTTON"&&(Xr(!0),an.current={x:pe.clientX,y:pe.clientY}))},onPointerUp:()=>{var pe,Ne,_e,ft;if(Sr||!on)return;an.current=null;let yt=Number(((pe=rn.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vt=Number(((Ne=rn.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ht=new Date().getTime()-((_e=Jr.current)==null?void 0:_e.getTime()),rt=X==="x"?yt:vt,un=Math.abs(rt)/Ht;if(Math.abs(rt)>=_0||un>.11){Zr(Sn.current),(ft=v.onDismiss)==null||ft.call(v,v),ve(X==="x"?yt>0?"right":"left":vt>0?"down":"up"),Vt(),Ko(!0),Go(!1);return}Xr(!1),te(null)},onPointerMove:pe=>{var Ne,_e,ft,yt;if(!an.current||!on||((Ne=window.getSelection())==null?void 0:Ne.toString().length)>0)return;let vt=pe.clientY-an.current.y,Ht=pe.clientX-an.current.x,rt=(_e=r.swipeDirections)!=null?_e:I0(Be);!X&&(Math.abs(Ht)>1||Math.abs(vt)>1)&&te(Math.abs(Ht)>Math.abs(vt)?"x":"y");let un={x:0,y:0};X==="y"?(rt.includes("top")||rt.includes("bottom"))&&(rt.includes("top")&&vt<0||rt.includes("bottom")&&vt>0)&&(un.y=vt):X==="x"&&(rt.includes("left")||rt.includes("right"))&&(rt.includes("left")&&Ht<0||rt.includes("right")&&Ht>0)&&(un.x=Ht),(Math.abs(un.x)>0||Math.abs(un.y)>0)&&Go(!0),(ft=rn.current)==null||ft.style.setProperty("--swipe-amount-x",`${un.x}px`),(yt=rn.current)==null||yt.style.setProperty("--swipe-amount-y",`${un.y}px`)}},kr&&!v.jsx?Q.createElement("button",{"aria-label":E,"data-disabled":ln,"data-close-button":!0,onClick:ln||!on?()=>{}:()=>{var pe;Vt(),(pe=v.onDismiss)==null||pe.call(v,v)},className:Zt(U==null?void 0:U.closeButton,(c=v==null?void 0:v.classNames)==null?void 0:c.closeButton)},(f=V==null?void 0:V.close)!=null?f:w0):null,v.jsx||k.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:Q.createElement(Q.Fragment,null,dt||v.icon||v.promise?Q.createElement("div",{"data-icon":"",className:Zt(U==null?void 0:U.icon,(m=v==null?void 0:v.classNames)==null?void 0:m.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||Js():null,v.type!=="loading"?v.icon||(V==null?void 0:V[dt])||f0(dt):null):null,Q.createElement("div",{"data-content":"",className:Zt(U==null?void 0:U.content,(p=v==null?void 0:v.classNames)==null?void 0:p.content)},Q.createElement("div",{"data-title":"",className:Zt(U==null?void 0:U.title,(y=v==null?void 0:v.classNames)==null?void 0:y.title)},typeof v.title=="function"?v.title():v.title),v.description?Q.createElement("div",{"data-description":"",className:Zt(De,Ys,U==null?void 0:U.description,(w=v==null?void 0:v.classNames)==null?void 0:w.description)},typeof v.description=="function"?v.description():v.description):null),k.isValidElement(v.cancel)?v.cancel:v.cancel&&ca(v.cancel)?Q.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||ye,onClick:pe=>{var Ne,_e;ca(v.cancel)&&on&&((_e=(Ne=v.cancel).onClick)==null||_e.call(Ne,pe),Vt())},className:Zt(U==null?void 0:U.cancelButton,(P=v==null?void 0:v.classNames)==null?void 0:P.cancelButton)},v.cancel.label):null,k.isValidElement(v.action)?v.action:v.action&&ca(v.action)?Q.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||Pe,onClick:pe=>{var Ne,_e;ca(v.action)&&((_e=(Ne=v.action).onClick)==null||_e.call(Ne,pe),!pe.defaultPrevented&&Vt())},className:Zt(U==null?void 0:U.actionButton,(j=v==null?void 0:v.classNames)==null?void 0:j.actionButton)},v.action.label):null))};function yp(){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 L0(r,o){let i={};return[r,o].forEach((l,c)=>{let f=c===1,m=f?"--mobile-offset":"--offset",p=f?M0:R0;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 D0=k.forwardRef(function(r,o){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:T,style:v,visibleToasts:I=j0,toastOptions:C,dir:N=yp(),gap:z=O0,loadingIcon:W,icons:$,containerAriaLabel:L="Notifications",pauseWhenPageIsHidden:ee}=r,[oe,ne]=Q.useState([]),ie=Q.useMemo(()=>Array.from(new Set([l].concat(oe.filter(_=>_.position).map(_=>_.position)))),[oe,l]),[he,ye]=Q.useState([]),[Pe,ae]=Q.useState(!1),[De,Te]=Q.useState(!1),[Be,Oe]=Q.useState(P!=="system"?P:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),xe=Q.useRef(null),H=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=Q.useRef(null),V=Q.useRef(!1),E=Q.useCallback(_=>{ne(X=>{var te;return(te=X.find(de=>de.id===_.id))!=null&&te.delete||Pt.dismiss(_.id),X.filter(({id:de})=>de!==_.id)})},[]);return Q.useEffect(()=>Pt.subscribe(_=>{if(_.dismiss){ne(X=>X.map(te=>te.id===_.id?{...te,delete:!0}:te));return}setTimeout(()=>{kh.flushSync(()=>{ne(X=>{let te=X.findIndex(de=>de.id===_.id);return te!==-1?[...X.slice(0,te),{...X[te],..._},...X.slice(te+1)]:[_,...X]})})})}),[]),Q.useEffect(()=>{if(P!=="system"){Oe(P);return}if(P==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Oe("dark"):Oe("light")),typeof window>"u")return;let _=window.matchMedia("(prefers-color-scheme: dark)");try{_.addEventListener("change",({matches:X})=>{Oe(X?"dark":"light")})}catch{_.addListener(({matches:te})=>{try{Oe(te?"dark":"light")}catch(de){console.error(de)}})}},[P]),Q.useEffect(()=>{oe.length<=1&&ae(!1)},[oe]),Q.useEffect(()=>{let _=X=>{var te,de;c.every(ve=>X[ve]||X.code===ve)&&(ae(!0),(te=xe.current)==null||te.focus()),X.code==="Escape"&&(document.activeElement===xe.current||(de=xe.current)!=null&&de.contains(document.activeElement))&&ae(!1)};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[c]),Q.useEffect(()=>{if(xe.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,V.current=!1)}},[xe.current]),Q.createElement("section",{ref:o,"aria-label":`${L} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ie.map((_,X)=>{var te;let[de,ve]=_.split("-");return oe.length?Q.createElement("ol",{key:_,dir:N==="auto"?yp():N,tabIndex:-1,ref:xe,className:p,"data-sonner-toaster":!0,"data-theme":Be,"data-y-position":de,"data-lifted":Pe&&oe.length>1&&!f,"data-x-position":ve,style:{"--front-toast-height":`${((te=he[0])==null?void 0:te.height)||0}px`,"--width":`${T0}px`,"--gap":`${z}px`,...v,...L0(y,w)},onBlur:ce=>{V.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(V.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||V.current||(V.current=!0,U.current=ce.relatedTarget)},onMouseEnter:()=>ae(!0),onMouseMove:()=>ae(!0),onMouseLeave:()=>{De||ae(!1)},onDragEnd:()=>ae(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||Te(!0)},onPointerUp:()=>Te(!1)},oe.filter(ce=>!ce.position&&X===0||ce.position===_).map((ce,ke)=>{var je,Ze;return Q.createElement(A0,{key:ce.id,icons:$,index:ke,toast:ce,defaultRichColors:j,duration:(je=C==null?void 0:C.duration)!=null?je:T,className:C==null?void 0:C.className,descriptionClassName:C==null?void 0:C.descriptionClassName,invert:i,visibleToasts:I,closeButton:(Ze=C==null?void 0:C.closeButton)!=null?Ze:m,interacting:De,position:_,style:C==null?void 0:C.style,unstyled:C==null?void 0:C.unstyled,classNames:C==null?void 0:C.classNames,cancelButtonStyle:C==null?void 0:C.cancelButtonStyle,actionButtonStyle:C==null?void 0:C.actionButtonStyle,removeToast:E,toasts:oe.filter(nn=>nn.position==ce.position),heights:he.filter(nn=>nn.position==ce.position),setHeights:ye,expandByDefault:f,gap:z,loadingIcon:W,expanded:Pe,pauseWhenPageIsHidden:ee,swipeDirections:r.swipeDirections})})):null}))});const vp={model:{zh:"模型",en:"Model"},providers:{zh:"提供商",en:"Providers"},channels:{zh:"渠道",en:"Channels"},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"},wireApi:{zh:"请求接口",en:"Wire API"},wireApiAuto:{zh:"自动(优先 Chat,必要时 Responses)",en:"Auto (Chat with fallback)"},wireApiChat:{zh:"Chat Completions",en:"Chat Completions"},wireApiResponses:{zh:"Responses",en:"Responses"},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"},markdownSupport:{zh:"Markdown 支持",en:"Markdown Support"},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"},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"},configSavedApplied:{zh:"配置已保存并已应用",en:"Configuration saved and applied"},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 G(r,o="en"){var i,l;return((i=vp[r])==null?void 0:i[o])||((l=vp[r])==null?void 0:l.en)||r}function $s(){return lh({queryKey:["config"],queryFn:i0,staleTime:3e4,refetchOnWindowFocus:!0})}function nc(){return lh({queryKey:["config-meta"],queryFn:a0,staleTime:1/0})}function F0(){const r=Qs();return Zu({mutationFn:l0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),xr.success(G("configSaved"))},onError:o=>{xr.error(G("configSaveFailed")+": "+o.message)}})}function U0(){const r=Qs();return Zu({mutationFn:({provider:o,data:i})=>u0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),xr.success(G("configSaved"))},onError:o=>{xr.error(G("configSaveFailed")+": "+o.message)}})}function B0(){const r=Qs();return Zu({mutationFn:({channel:o,data:i})=>c0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),xr.success(G("configSavedApplied"))},onError:o=>{xr.error(G("configSaveFailed")+": "+o.message)}})}function wp(){const{data:r,isLoading:o}=$s(),i=F0(),[l,c]=k.useState(""),[f,m]=k.useState(""),[p,y]=k.useState(8192),[w,P]=k.useState(.7);k.useEffect(()=>{var T;(T=r==null?void 0:r.agents)!=null&&T.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=T=>{T.preventDefault(),i.mutate({model:l})};return o?h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(Ot,{className:"h-8 w-32"}),h.jsx(Ot,{className:"h-4 w-48"})]}),h.jsxs(Bu,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx(Ot,{className:"h-12 w-12 rounded-xl"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(Ot,{className:"h-5 w-24"}),h.jsx(Ot,{className:"h-3 w-32"})]})]}),h.jsx(Ot,{className:"h-4 w-20 mb-2"}),h.jsx(Ot,{className:"h-10 w-full rounded-xl"})]}),h.jsxs(Bu,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsx(Ot,{className:"h-5 w-24 mb-2"}),h.jsx(Ot,{className:"h-3 w-40 mb-6"}),h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx(Ot,{className:"h-4 w-28 mb-3"}),h.jsx(Ot,{className:"h-2 w-full rounded-full"})]}),h.jsxs("div",{children:[h.jsx(Ot,{className:"h-4 w-32 mb-3"}),h.jsx(Ot,{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-gray-900",children:"Model Configuration"}),h.jsx("p",{className:"text-sm text-gray-500 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-2xl bg-gray-50 border border-gray-200",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(wh,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Default Model"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(wn,{htmlFor:"model",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:"Model Name"}),h.jsx(xn,{id:"model",value:l,onChange:T=>c(T.target.value),placeholder:"minimax/MiniMax-M2.1",className:"h-12 px-4 rounded-xl"}),h.jsx("p",{className:"text-xs text-gray-400",children:"Examples: minimax/MiniMax-M2.1 · anthropic/claude-opus-4-5"})]})]}),h.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(Uv,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Workspace"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(wn,{htmlFor:"workspace",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:"Default Path"}),h.jsx(xn,{id:"workspace",value:f,onChange:T=>m(T.target.value),placeholder:"/path/to/workspace",className:"h-12 px-4 rounded-xl"})]})]})]}),h.jsxs("div",{className:"p-8 rounded-2xl bg-white border border-gray-200 shadow-card",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(Qv,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",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(wn,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:"Max Tokens"}),h.jsx("span",{className:"text-sm font-semibold text-gray-900",children:p.toLocaleString()})]}),h.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:p,onChange:T=>y(parseInt(T.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(wn,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:"Temperature"}),h.jsx("span",{className:"text-sm font-semibold text-gray-900",children:w})]}),h.jsx("input",{type:"range",min:"0",max:"2",step:"0.1",value:w,onChange:T=>P(parseFloat(T.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]})]})]}),h.jsx("div",{className:"flex justify-end pt-4",children:h.jsx(Wt,{type:"submit",disabled:i.isPending,size:"lg",children:i.isPending?h.jsx(Bv,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function wr(r,o,{checkForDefaultPrevented:i=!0}={}){return function(c){if(r==null||r(c),i===!1||!c.defaultPrevented)return o==null?void 0:o(c)}}function xp(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)}function bh(...r){return o=>{let i=!1;const l=r.map(c=>{const f=xp(c,o);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():xp(r[c],null)}}}}function Yr(...r){return k.useCallback(bh(...r),r)}function W0(r,o){const i=k.createContext(o),l=f=>{const{children:m,...p}=f,y=k.useMemo(()=>p,Object.values(p));return h.jsx(i.Provider,{value:y,children:m})};l.displayName=r+"Provider";function c(f){const m=k.useContext(i);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${r}\``)}return[l,c]}function V0(r,o=[]){let i=[];function l(f,m){const p=k.createContext(m),y=i.length;i=[...i,m];const w=j=>{var z;const{scope:T,children:v,...I}=j,C=((z=T==null?void 0:T[r])==null?void 0:z[y])||p,N=k.useMemo(()=>I,Object.values(I));return h.jsx(C.Provider,{value:N,children:v})};w.displayName=f+"Provider";function P(j,T){var C;const v=((C=T==null?void 0:T[r])==null?void 0:C[y])||p,I=k.useContext(v);if(I)return I;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=>k.createContext(m));return function(p){const y=(p==null?void 0:p[r])||f;return k.useMemo(()=>({[`__scope${r}`]:{...p,[r]:y}}),[p,y])}};return c.scopeName=r,[l,H0(c,...o)]}function H0(...r){const o=r[0];if(r.length===1)return o;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 k.useMemo(()=>({[`__scope${o.scopeName}`]:m}),[m])}};return i.scopeName=o.scopeName,i}var Ds=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},Q0=qp[" useId ".trim().toString()]||(()=>{}),$0=0;function yu(r){const[o,i]=k.useState(Q0());return Ds(()=>{i(l=>l??String($0++))},[r]),r||(o?`radix-${o}`:"")}var K0=qp[" useInsertionEffect ".trim().toString()]||Ds;function G0({prop:r,defaultProp:o,onChange:i=()=>{},caller:l}){const[c,f,m]=q0({defaultProp:o,onChange:i}),p=r!==void 0,y=p?r:c;{const P=k.useRef(r!==void 0);k.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=k.useCallback(P=>{var j;if(p){const T=Y0(P)?P(r):P;T!==r&&((j=m.current)==null||j.call(m,T))}else f(P)},[p,r,f,m]);return[y,w]}function q0({defaultProp:r,onChange:o}){const[i,l]=k.useState(r),c=k.useRef(i),f=k.useRef(o);return K0(()=>{f.current=o},[o]),k.useEffect(()=>{var m;c.current!==i&&((m=f.current)==null||m.call(f,i),c.current=i)},[i,c]),[i,l,f]}function Y0(r){return typeof r=="function"}function Ch(r){const o=X0(r),i=k.forwardRef((l,c)=>{const{children:f,...m}=l,p=k.Children.toArray(f),y=p.find(J0);if(y){const w=y.props.children,P=p.map(j=>j===y?k.Children.count(w)>1?k.Children.only(null):k.isValidElement(w)?w.props.children:null:j);return h.jsx(o,{...m,ref:c,children:k.isValidElement(w)?k.cloneElement(w,void 0,P):null})}return h.jsx(o,{...m,ref:c,children:f})});return i.displayName=`${r}.Slot`,i}function X0(r){const o=k.forwardRef((i,l)=>{const{children:c,...f}=i;if(k.isValidElement(c)){const m=t1(c),p=e1(f,c.props);return c.type!==k.Fragment&&(p.ref=l?bh(l,m):m),k.cloneElement(c,p)}return k.Children.count(c)>1?k.Children.only(null):null});return o.displayName=`${r}.SlotClone`,o}var Z0=Symbol("radix.slottable");function J0(r){return k.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Z0}function e1(r,o){const i={...o};for(const l in o){const c=r[l],f=o[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 t1(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var n1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ln=n1.reduce((r,o)=>{const i=Ch(`Primitive.${o}`),l=k.forwardRef((c,f)=>{const{asChild:m,...p}=c,y=m?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(y,{...p,ref:f})});return l.displayName=`Primitive.${o}`,{...r,[o]:l}},{});function r1(r,o){r&&Sh.flushSync(()=>r.dispatchEvent(o))}function Fs(r){const o=k.useRef(r);return k.useEffect(()=>{o.current=r}),k.useMemo(()=>(...i)=>{var l;return(l=o.current)==null?void 0:l.call(o,...i)},[])}function o1(r,o=globalThis==null?void 0:globalThis.document){const i=Fs(r);k.useEffect(()=>{const l=c=>{c.key==="Escape"&&i(c)};return o.addEventListener("keydown",l,{capture:!0}),()=>o.removeEventListener("keydown",l,{capture:!0})},[i,o])}var s1="DismissableLayer",Vu="dismissableLayer.update",i1="dismissableLayer.pointerDownOutside",a1="dismissableLayer.focusOutside",Sp,Eh=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nh=k.forwardRef((r,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:m,onDismiss:p,...y}=r,w=k.useContext(Eh),[P,j]=k.useState(null),T=(P==null?void 0:P.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=k.useState({}),I=Yr(o,ne=>j(ne)),C=Array.from(w.layers),[N]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),z=C.indexOf(N),W=P?C.indexOf(P):-1,$=w.layersWithOutsidePointerEventsDisabled.size>0,L=W>=z,ee=c1(ne=>{const ie=ne.target,he=[...w.branches].some(ye=>ye.contains(ie));!L||he||(c==null||c(ne),m==null||m(ne),ne.defaultPrevented||p==null||p())},T),oe=d1(ne=>{const ie=ne.target;[...w.branches].some(ye=>ye.contains(ie))||(f==null||f(ne),m==null||m(ne),ne.defaultPrevented||p==null||p())},T);return o1(ne=>{W===w.layers.size-1&&(l==null||l(ne),!ne.defaultPrevented&&p&&(ne.preventDefault(),p()))},T),k.useEffect(()=>{if(P)return i&&(w.layersWithOutsidePointerEventsDisabled.size===0&&(Sp=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(P)),w.layers.add(P),kp(),()=>{i&&w.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=Sp)}},[P,T,i,w]),k.useEffect(()=>()=>{P&&(w.layers.delete(P),w.layersWithOutsidePointerEventsDisabled.delete(P),kp())},[P,w]),k.useEffect(()=>{const ne=()=>v({});return document.addEventListener(Vu,ne),()=>document.removeEventListener(Vu,ne)},[]),h.jsx(Ln.div,{...y,ref:I,style:{pointerEvents:$?L?"auto":"none":void 0,...r.style},onFocusCapture:wr(r.onFocusCapture,oe.onFocusCapture),onBlurCapture:wr(r.onBlurCapture,oe.onBlurCapture),onPointerDownCapture:wr(r.onPointerDownCapture,ee.onPointerDownCapture)})});Nh.displayName=s1;var l1="DismissableLayerBranch",u1=k.forwardRef((r,o)=>{const i=k.useContext(Eh),l=k.useRef(null),c=Yr(o,l);return k.useEffect(()=>{const f=l.current;if(f)return i.branches.add(f),()=>{i.branches.delete(f)}},[i.branches]),h.jsx(Ln.div,{...r,ref:c})});u1.displayName=l1;function c1(r,o=globalThis==null?void 0:globalThis.document){const i=Fs(r),l=k.useRef(!1),c=k.useRef(()=>{});return k.useEffect(()=>{const f=p=>{if(p.target&&!l.current){let y=function(){Ph(i1,i,w,{discrete:!0})};const w={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=y,o.addEventListener("click",c.current,{once:!0})):y()}else o.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{o.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(m),o.removeEventListener("pointerdown",f),o.removeEventListener("click",c.current)}},[o,i]),{onPointerDownCapture:()=>l.current=!0}}function d1(r,o=globalThis==null?void 0:globalThis.document){const i=Fs(r),l=k.useRef(!1);return k.useEffect(()=>{const c=f=>{f.target&&!l.current&&Ph(a1,i,{originalEvent:f},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function kp(){const r=new CustomEvent(Vu);document.dispatchEvent(r)}function Ph(r,o,i,{discrete:l}){const c=i.originalEvent.target,f=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:i});o&&c.addEventListener(r,o,{once:!0}),l?r1(c,f):c.dispatchEvent(f)}var vu="focusScope.autoFocusOnMount",wu="focusScope.autoFocusOnUnmount",bp={bubbles:!1,cancelable:!0},f1="FocusScope",jh=k.forwardRef((r,o)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:f,...m}=r,[p,y]=k.useState(null),w=Fs(c),P=Fs(f),j=k.useRef(null),T=Yr(o,C=>y(C)),v=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(l){let C=function($){if(v.paused||!p)return;const L=$.target;p.contains(L)?j.current=L:lr(j.current,{select:!0})},N=function($){if(v.paused||!p)return;const L=$.relatedTarget;L!==null&&(p.contains(L)||lr(j.current,{select:!0}))},z=function($){if(document.activeElement===document.body)for(const ee of $)ee.removedNodes.length>0&&lr(p)};document.addEventListener("focusin",C),document.addEventListener("focusout",N);const W=new MutationObserver(z);return p&&W.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",N),W.disconnect()}}},[l,p,v.paused]),k.useEffect(()=>{if(p){Ep.add(v);const C=document.activeElement;if(!p.contains(C)){const z=new CustomEvent(vu,bp);p.addEventListener(vu,w),p.dispatchEvent(z),z.defaultPrevented||(p1(v1(Rh(p)),{select:!0}),document.activeElement===C&&lr(p))}return()=>{p.removeEventListener(vu,w),setTimeout(()=>{const z=new CustomEvent(wu,bp);p.addEventListener(wu,P),p.dispatchEvent(z),z.defaultPrevented||lr(C??document.body,{select:!0}),p.removeEventListener(wu,P),Ep.remove(v)},0)}}},[p,w,P,v]);const I=k.useCallback(C=>{if(!i&&!l||v.paused)return;const N=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,z=document.activeElement;if(N&&z){const W=C.currentTarget,[$,L]=h1(W);$&&L?!C.shiftKey&&z===L?(C.preventDefault(),i&&lr($,{select:!0})):C.shiftKey&&z===$&&(C.preventDefault(),i&&lr(L,{select:!0})):z===W&&C.preventDefault()}},[i,l,v.paused]);return h.jsx(Ln.div,{tabIndex:-1,...m,ref:T,onKeyDown:I})});jh.displayName=f1;function p1(r,{select:o=!1}={}){const i=document.activeElement;for(const l of r)if(lr(l,{select:o}),document.activeElement!==i)return}function h1(r){const o=Rh(r),i=Cp(o,r),l=Cp(o.reverse(),r);return[i,l]}function Rh(r){const o=[],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();)o.push(i.currentNode);return o}function Cp(r,o){for(const i of r)if(!m1(i,{upTo:o}))return i}function m1(r,{upTo:o}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(o!==void 0&&r===o)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function g1(r){return r instanceof HTMLInputElement&&"select"in r}function lr(r,{select:o=!1}={}){if(r&&r.focus){const i=document.activeElement;r.focus({preventScroll:!0}),r!==i&&g1(r)&&o&&r.select()}}var Ep=y1();function y1(){let r=[];return{add(o){const i=r[0];o!==i&&(i==null||i.pause()),r=Np(r,o),r.unshift(o)},remove(o){var i;r=Np(r,o),(i=r[0])==null||i.resume()}}}function Np(r,o){const i=[...r],l=i.indexOf(o);return l!==-1&&i.splice(l,1),i}function v1(r){return r.filter(o=>o.tagName!=="A")}var w1="Portal",Mh=k.forwardRef((r,o)=>{var p;const{container:i,...l}=r,[c,f]=k.useState(!1);Ds(()=>f(!0),[]);const m=i||c&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?kh.createPortal(h.jsx(Ln.div,{...l,ref:o}),m):null});Mh.displayName=w1;function x1(r,o){return k.useReducer((i,l)=>o[i][l]??i,r)}var Ea=r=>{const{present:o,children:i}=r,l=S1(o),c=typeof i=="function"?i({present:l.isPresent}):k.Children.only(i),f=Yr(l.ref,k1(c));return typeof i=="function"||l.isPresent?k.cloneElement(c,{ref:f}):null};Ea.displayName="Presence";function S1(r){const[o,i]=k.useState(),l=k.useRef(null),c=k.useRef(r),f=k.useRef("none"),m=r?"mounted":"unmounted",[p,y]=x1(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const w=da(l.current);f.current=p==="mounted"?w:"none"},[p]),Ds(()=>{const w=l.current,P=c.current;if(P!==r){const T=f.current,v=da(w);r?y("MOUNT"):v==="none"||(w==null?void 0:w.display)==="none"?y("UNMOUNT"):y(P&&T!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,y]),Ds(()=>{if(o){let w;const P=o.ownerDocument.defaultView??window,j=v=>{const C=da(l.current).includes(CSS.escape(v.animationName));if(v.target===o&&C&&(y("ANIMATION_END"),!c.current)){const N=o.style.animationFillMode;o.style.animationFillMode="forwards",w=P.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=N)})}},T=v=>{v.target===o&&(f.current=da(l.current))};return o.addEventListener("animationstart",T),o.addEventListener("animationcancel",j),o.addEventListener("animationend",j),()=>{P.clearTimeout(w),o.removeEventListener("animationstart",T),o.removeEventListener("animationcancel",j),o.removeEventListener("animationend",j)}}else y("ANIMATION_END")},[o,y]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:k.useCallback(w=>{l.current=w?getComputedStyle(w):null,i(w)},[])}}function da(r){return(r==null?void 0:r.animationName)||"none"}function k1(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var xu=0;function b1(){k.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Pp()),document.body.insertAdjacentElement("beforeend",r[1]??Pp()),xu++,()=>{xu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),xu--}},[])}function Pp(){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 vn=function(){return vn=Object.assign||function(o){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)&&(o[f]=i[f])}return o},vn.apply(this,arguments)};function Th(r,o){var i={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.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++)o.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(r,l[c])&&(i[l[c]]=r[l[c]]);return i}function C1(r,o,i){if(i||arguments.length===2)for(var l=0,c=o.length,f;l<c;l++)(f||!(l in o))&&(f||(f=Array.prototype.slice.call(o,0,l)),f[l]=o[l]);return r.concat(f||Array.prototype.slice.call(o))}var wa="right-scroll-bar-position",xa="width-before-scroll-bar",E1="with-scroll-bars-hidden",N1="--removed-body-scroll-bar-size";function Su(r,o){return typeof r=="function"?r(o):r&&(r.current=o),r}function P1(r,o){var i=k.useState(function(){return{value:r,callback:o,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=o,i.facade}var j1=typeof window<"u"?k.useLayoutEffect:k.useEffect,jp=new WeakMap;function R1(r,o){var i=P1(null,function(l){return r.forEach(function(c){return Su(c,l)})});return j1(function(){var l=jp.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)})}jp.set(i,r)},[r]),i}function M1(r){return r}function T1(r,o){o===void 0&&(o=M1);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=o(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 O1(r){r===void 0&&(r={});var o=T1(null);return o.options=vn({async:!0,ssr:!1},r),o}var Oh=function(r){var o=r.sideCar,i=Th(r,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=o.read();if(!l)throw new Error("Sidecar medium not found");return k.createElement(l,vn({},i))};Oh.isSideCarExport=!0;function _1(r,o){return r.useMedium(o),Oh}var _h=O1(),ku=function(){},Na=k.forwardRef(function(r,o){var i=k.useRef(null),l=k.useState({onScrollCapture:ku,onWheelCapture:ku,onTouchMoveCapture:ku}),c=l[0],f=l[1],m=r.forwardProps,p=r.children,y=r.className,w=r.removeScrollBar,P=r.enabled,j=r.shards,T=r.sideCar,v=r.noRelative,I=r.noIsolation,C=r.inert,N=r.allowPinchZoom,z=r.as,W=z===void 0?"div":z,$=r.gapMode,L=Th(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ee=T,oe=R1([i,o]),ne=vn(vn({},L),c);return k.createElement(k.Fragment,null,P&&k.createElement(ee,{sideCar:_h,removeScrollBar:w,shards:j,noRelative:v,noIsolation:I,inert:C,setCallbacks:f,allowPinchZoom:!!N,lockRef:i,gapMode:$}),m?k.cloneElement(k.Children.only(p),vn(vn({},ne),{ref:oe})):k.createElement(W,vn({},ne,{className:y,ref:oe}),p))});Na.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Na.classNames={fullWidth:xa,zeroRight:wa};var z1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function I1(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var o=z1();return o&&r.setAttribute("nonce",o),r}function A1(r,o){r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o))}function L1(r){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(r)}var D1=function(){var r=0,o=null;return{add:function(i){r==0&&(o=I1())&&(A1(o,i),L1(o)),r++},remove:function(){r--,!r&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},F1=function(){var r=D1();return function(o,i){k.useEffect(function(){return r.add(o),function(){r.remove()}},[o&&i])}},zh=function(){var r=F1(),o=function(i){var l=i.styles,c=i.dynamic;return r(l,c),null};return o},U1={left:0,top:0,right:0,gap:0},bu=function(r){return parseInt(r||"",10)||0},B1=function(r){var o=window.getComputedStyle(document.body),i=o[r==="padding"?"paddingLeft":"marginLeft"],l=o[r==="padding"?"paddingTop":"marginTop"],c=o[r==="padding"?"paddingRight":"marginRight"];return[bu(i),bu(l),bu(c)]},W1=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return U1;var o=B1(r),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,l-i+o[2]-o[0])}},V1=zh(),To="data-scroll-locked",H1=function(r,o,i,l){var c=r.left,f=r.top,m=r.right,p=r.gap;return i===void 0&&(i="margin"),`
182
+ .`.concat(E1,` {
183
+ overflow: hidden `).concat(l,`;
184
+ padding-right: `).concat(p,"px ").concat(l,`;
185
+ }
186
+ body[`).concat(To,`] {
187
+ overflow: hidden `).concat(l,`;
188
+ overscroll-behavior: contain;
189
+ `).concat([o&&"position: relative ".concat(l,";"),i==="margin"&&`
190
+ padding-left: `.concat(c,`px;
191
+ padding-top: `).concat(f,`px;
192
+ padding-right: `).concat(m,`px;
193
+ margin-left:0;
194
+ margin-top:0;
195
+ margin-right: `).concat(p,"px ").concat(l,`;
196
+ `),i==="padding"&&"padding-right: ".concat(p,"px ").concat(l,";")].filter(Boolean).join(""),`
197
+ }
198
+
199
+ .`).concat(wa,` {
200
+ right: `).concat(p,"px ").concat(l,`;
201
+ }
202
+
203
+ .`).concat(xa,` {
204
+ margin-right: `).concat(p,"px ").concat(l,`;
205
+ }
206
+
207
+ .`).concat(wa," .").concat(wa,` {
208
+ right: 0 `).concat(l,`;
209
+ }
210
+
211
+ .`).concat(xa," .").concat(xa,` {
212
+ margin-right: 0 `).concat(l,`;
213
+ }
214
+
215
+ body[`).concat(To,`] {
216
+ `).concat(N1,": ").concat(p,`px;
217
+ }
218
+ `)},Rp=function(){var r=parseInt(document.body.getAttribute(To)||"0",10);return isFinite(r)?r:0},Q1=function(){k.useEffect(function(){return document.body.setAttribute(To,(Rp()+1).toString()),function(){var r=Rp()-1;r<=0?document.body.removeAttribute(To):document.body.setAttribute(To,r.toString())}},[])},$1=function(r){var o=r.noRelative,i=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;Q1();var f=k.useMemo(function(){return W1(c)},[c]);return k.createElement(V1,{styles:H1(f,!o,c,i?"":"!important")})},Hu=!1;if(typeof window<"u")try{var fa=Object.defineProperty({},"passive",{get:function(){return Hu=!0,!0}});window.addEventListener("test",fa,fa),window.removeEventListener("test",fa,fa)}catch{Hu=!1}var Po=Hu?{passive:!1}:!1,K1=function(r){return r.tagName==="TEXTAREA"},Ih=function(r,o){if(!(r instanceof Element))return!1;var i=window.getComputedStyle(r);return i[o]!=="hidden"&&!(i.overflowY===i.overflowX&&!K1(r)&&i[o]==="visible")},G1=function(r){return Ih(r,"overflowY")},q1=function(r){return Ih(r,"overflowX")},Mp=function(r,o){var i=o.ownerDocument,l=o;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Ah(r,l);if(c){var f=Lh(r,l),m=f[1],p=f[2];if(m>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},Y1=function(r){var o=r.scrollTop,i=r.scrollHeight,l=r.clientHeight;return[o,i,l]},X1=function(r){var o=r.scrollLeft,i=r.scrollWidth,l=r.clientWidth;return[o,i,l]},Ah=function(r,o){return r==="v"?G1(o):q1(o)},Lh=function(r,o){return r==="v"?Y1(o):X1(o)},Z1=function(r,o){return r==="h"&&o==="rtl"?-1:1},J1=function(r,o,i,l,c){var f=Z1(r,window.getComputedStyle(o).direction),m=f*l,p=i.target,y=o.contains(p),w=!1,P=m>0,j=0,T=0;do{if(!p)break;var v=Lh(r,p),I=v[0],C=v[1],N=v[2],z=C-N-f*I;(I||z)&&Ah(r,p)&&(j+=z,T+=I);var W=p.parentNode;p=W&&W.nodeType===Node.DOCUMENT_FRAGMENT_NODE?W.host:W}while(!y&&p!==document.body||y&&(o.contains(p)||o===p));return(P&&Math.abs(j)<1||!P&&Math.abs(T)<1)&&(w=!0),w},pa=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Tp=function(r){return[r.deltaX,r.deltaY]},Op=function(r){return r&&"current"in r?r.current:r},ew=function(r,o){return r[0]===o[0]&&r[1]===o[1]},tw=function(r){return`
219
+ .block-interactivity-`.concat(r,` {pointer-events: none;}
220
+ .allow-interactivity-`).concat(r,` {pointer-events: all;}
221
+ `)},nw=0,jo=[];function rw(r){var o=k.useRef([]),i=k.useRef([0,0]),l=k.useRef(),c=k.useState(nw++)[0],f=k.useState(zh)[0],m=k.useRef(r);k.useEffect(function(){m.current=r},[r]),k.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var C=C1([r.lockRef.current],(r.shards||[]).map(Op),!0).filter(Boolean);return C.forEach(function(N){return N.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),C.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var p=k.useCallback(function(C,N){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!m.current.allowPinchZoom;var z=pa(C),W=i.current,$="deltaX"in C?C.deltaX:W[0]-z[0],L="deltaY"in C?C.deltaY:W[1]-z[1],ee,oe=C.target,ne=Math.abs($)>Math.abs(L)?"h":"v";if("touches"in C&&ne==="h"&&oe.type==="range")return!1;var ie=window.getSelection(),he=ie&&ie.anchorNode,ye=he?he===oe||he.contains(oe):!1;if(ye)return!1;var Pe=Mp(ne,oe);if(!Pe)return!0;if(Pe?ee=ne:(ee=ne==="v"?"h":"v",Pe=Mp(ne,oe)),!Pe)return!1;if(!l.current&&"changedTouches"in C&&($||L)&&(l.current=ee),!ee)return!0;var ae=l.current||ee;return J1(ae,N,C,ae==="h"?$:L)},[]),y=k.useCallback(function(C){var N=C;if(!(!jo.length||jo[jo.length-1]!==f)){var z="deltaY"in N?Tp(N):pa(N),W=o.current.filter(function(ee){return ee.name===N.type&&(ee.target===N.target||N.target===ee.shadowParent)&&ew(ee.delta,z)})[0];if(W&&W.should){N.cancelable&&N.preventDefault();return}if(!W){var $=(m.current.shards||[]).map(Op).filter(Boolean).filter(function(ee){return ee.contains(N.target)}),L=$.length>0?p(N,$[0]):!m.current.noIsolation;L&&N.cancelable&&N.preventDefault()}}},[]),w=k.useCallback(function(C,N,z,W){var $={name:C,delta:N,target:z,should:W,shadowParent:ow(z)};o.current.push($),setTimeout(function(){o.current=o.current.filter(function(L){return L!==$})},1)},[]),P=k.useCallback(function(C){i.current=pa(C),l.current=void 0},[]),j=k.useCallback(function(C){w(C.type,Tp(C),C.target,p(C,r.lockRef.current))},[]),T=k.useCallback(function(C){w(C.type,pa(C),C.target,p(C,r.lockRef.current))},[]);k.useEffect(function(){return jo.push(f),r.setCallbacks({onScrollCapture:j,onWheelCapture:j,onTouchMoveCapture:T}),document.addEventListener("wheel",y,Po),document.addEventListener("touchmove",y,Po),document.addEventListener("touchstart",P,Po),function(){jo=jo.filter(function(C){return C!==f}),document.removeEventListener("wheel",y,Po),document.removeEventListener("touchmove",y,Po),document.removeEventListener("touchstart",P,Po)}},[]);var v=r.removeScrollBar,I=r.inert;return k.createElement(k.Fragment,null,I?k.createElement(f,{styles:tw(c)}):null,v?k.createElement($1,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function ow(r){for(var o=null;r!==null;)r instanceof ShadowRoot&&(o=r.host,r=r.host),r=r.parentNode;return o}const sw=_1(_h,rw);var Dh=k.forwardRef(function(r,o){return k.createElement(Na,vn({},r,{ref:o,sideCar:sw}))});Dh.classNames=Na.classNames;var iw=function(r){if(typeof document>"u")return null;var o=Array.isArray(r)?r[0]:r;return o.ownerDocument.body},Ro=new WeakMap,ha=new WeakMap,ma={},Cu=0,Fh=function(r){return r&&(r.host||Fh(r.parentNode))},aw=function(r,o){return o.map(function(i){if(r.contains(i))return i;var l=Fh(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})},lw=function(r,o,i,l){var c=aw(o,Array.isArray(r)?r:[r]);ma[i]||(ma[i]=new WeakMap);var f=ma[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(T){if(p.has(T))P(T);else try{var v=T.getAttribute(l),I=v!==null&&v!=="false",C=(Ro.get(T)||0)+1,N=(f.get(T)||0)+1;Ro.set(T,C),f.set(T,N),m.push(T),C===1&&I&&ha.set(T,!0),N===1&&T.setAttribute(i,"true"),I||T.setAttribute(l,"true")}catch(z){console.error("aria-hidden: cannot operate on ",T,z)}})};return P(o),p.clear(),Cu++,function(){m.forEach(function(j){var T=Ro.get(j)-1,v=f.get(j)-1;Ro.set(j,T),f.set(j,v),T||(ha.has(j)||j.removeAttribute(l),ha.delete(j)),v||j.removeAttribute(i)}),Cu--,Cu||(Ro=new WeakMap,Ro=new WeakMap,ha=new WeakMap,ma={})}},uw=function(r,o,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=iw(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),lw(l,c,i,"aria-hidden")):function(){return null}},Pa="Dialog",[Uh]=V0(Pa),[cw,tn]=Uh(Pa),Bh=r=>{const{__scopeDialog:o,children:i,open:l,defaultOpen:c,onOpenChange:f,modal:m=!0}=r,p=k.useRef(null),y=k.useRef(null),[w,P]=G0({prop:l,defaultProp:c??!1,onChange:f,caller:Pa});return h.jsx(cw,{scope:o,triggerRef:p,contentRef:y,contentId:yu(),titleId:yu(),descriptionId:yu(),open:w,onOpenChange:P,onOpenToggle:k.useCallback(()=>P(j=>!j),[P]),modal:m,children:i})};Bh.displayName=Pa;var Wh="DialogTrigger",dw=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Wh,i),f=Yr(o,c.triggerRef);return h.jsx(Ln.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":sc(c.open),...l,ref:f,onClick:wr(r.onClick,c.onOpenToggle)})});dw.displayName=Wh;var rc="DialogPortal",[fw,Vh]=Uh(rc,{forceMount:void 0}),Hh=r=>{const{__scopeDialog:o,forceMount:i,children:l,container:c}=r,f=tn(rc,o);return h.jsx(fw,{scope:o,forceMount:i,children:k.Children.map(l,m=>h.jsx(Ea,{present:i||f.open,children:h.jsx(Mh,{asChild:!0,container:c,children:m})}))})};Hh.displayName=rc;var Ca="DialogOverlay",Qh=k.forwardRef((r,o)=>{const i=Vh(Ca,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,f=tn(Ca,r.__scopeDialog);return f.modal?h.jsx(Ea,{present:l||f.open,children:h.jsx(hw,{...c,ref:o})}):null});Qh.displayName=Ca;var pw=Ch("DialogOverlay.RemoveScroll"),hw=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Ca,i);return h.jsx(Dh,{as:pw,allowPinchZoom:!0,shards:[c.contentRef],children:h.jsx(Ln.div,{"data-state":sc(c.open),...l,ref:o,style:{pointerEvents:"auto",...l.style}})})}),Gr="DialogContent",$h=k.forwardRef((r,o)=>{const i=Vh(Gr,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,f=tn(Gr,r.__scopeDialog);return h.jsx(Ea,{present:l||f.open,children:f.modal?h.jsx(mw,{...c,ref:o}):h.jsx(gw,{...c,ref:o})})});$h.displayName=Gr;var mw=k.forwardRef((r,o)=>{const i=tn(Gr,r.__scopeDialog),l=k.useRef(null),c=Yr(o,i.contentRef,l);return k.useEffect(()=>{const f=l.current;if(f)return uw(f)},[]),h.jsx(Kh,{...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())})}),gw=k.forwardRef((r,o)=>{const i=tn(Gr,r.__scopeDialog),l=k.useRef(!1),c=k.useRef(!1);return h.jsx(Kh,{...r,ref:o,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()}})}),Kh=k.forwardRef((r,o)=>{const{__scopeDialog:i,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:f,...m}=r,p=tn(Gr,i),y=k.useRef(null),w=Yr(o,y);return b1(),h.jsxs(h.Fragment,{children:[h.jsx(jh,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:f,children:h.jsx(Nh,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":sc(p.open),...m,ref:w,onDismiss:()=>p.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(yw,{titleId:p.titleId}),h.jsx(ww,{contentRef:y,descriptionId:p.descriptionId})]})]})}),oc="DialogTitle",Gh=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(oc,i);return h.jsx(Ln.h2,{id:c.titleId,...l,ref:o})});Gh.displayName=oc;var qh="DialogDescription",Yh=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(qh,i);return h.jsx(Ln.p,{id:c.descriptionId,...l,ref:o})});Yh.displayName=qh;var Xh="DialogClose",Zh=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Xh,i);return h.jsx(Ln.button,{type:"button",...l,ref:o,onClick:wr(r.onClick,()=>c.onOpenChange(!1))})});Zh.displayName=Xh;function sc(r){return r?"open":"closed"}var Jh="DialogTitleWarning",[Vw,em]=W0(Jh,{contentName:Gr,titleName:oc,docsSlug:"dialog"}),yw=({titleId:r})=>{const o=em(Jh),i=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
222
+
223
+ If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
224
+
225
+ For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return k.useEffect(()=>{r&&(document.getElementById(r)||console.error(i))},[i,r]),null},vw="DialogDescriptionWarning",ww=({contentRef:r,descriptionId:o})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${em(vw).contentName}}.`;return k.useEffect(()=>{var f;const c=(f=r.current)==null?void 0:f.getAttribute("aria-describedby");o&&c&&(document.getElementById(o)||console.warn(l))},[l,r,o]),null},xw=Bh,Sw=Hh,tm=Qh,nm=$h,rm=Gh,om=Yh,kw=Zh;const sm=xw,bw=Sw,im=k.forwardRef(({className:r,...o},i)=>h.jsx(tm,{ref:i,className:Ee("fixed inset-0 z-50 bg-black/40 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...o}));im.displayName=tm.displayName;const ic=k.forwardRef(({className:r,children:o,...i},l)=>h.jsxs(bw,{children:[h.jsx(im,{}),h.jsxs(nm,{ref:l,className:Ee("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200 bg-white p-6 shadow-xl duration-base 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-xl",r),...i,children:[o,h.jsxs(kw,{className:"absolute right-4 top-4 rounded-lg p-1 opacity-70 ring-offset-white transition-all duration-fast hover:opacity-100 hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none",children:[h.jsx(xh,{className:"h-4 w-4 text-gray-500"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ic.displayName=nm.displayName;const ac=({className:r,...o})=>h.jsx("div",{className:Ee("flex flex-col space-y-2 text-center sm:text-left",r),...o});ac.displayName="DialogHeader";const lc=({className:r,...o})=>h.jsx("div",{className:Ee("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",r),...o});lc.displayName="DialogFooter";const uc=k.forwardRef(({className:r,...o},i)=>h.jsx(rm,{ref:i,className:Ee("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));uc.displayName=rm.displayName;const cc=k.forwardRef(({className:r,...o},i)=>h.jsx(om,{ref:i,className:Ee("text-sm text-gray-500 leading-relaxed",r),...o}));cc.displayName=om.displayName;function Cw({maskedValue:r,isSet:o,className:i,...l}){const[c,f]=k.useState(!1);return h.jsxs("div",{className:"relative",children:[h.jsx(xn,{type:c?"text":"password",className:Ee("pr-20",i),placeholder:o?`${G("apiKeySet")} (Unchanged)`:"",...l}),h.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex gap-1",children:(o||r)&&h.jsx(Wt,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>f(!c),children:c?h.jsx(Dv,{className:"h-4 w-4"}):h.jsx(Fv,{className:"h-4 w-4"})})})]})}function Ew({value:r,onChange:o,className:i}){const l=r?Object.entries(r):[],c=(p,y,w)=>{const P=[...l];P[p]=[y,w],o(Object.fromEntries(P))},f=()=>{o({...r,"":""})},m=p=>{const y=l.filter((w,P)=>P!==p);o(Object.fromEntries(y))};return h.jsxs("div",{className:Ee("space-y-2",i),children:[l.map(([p,y],w)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsx(xn,{type:"text",value:p,onChange:P=>c(w,P.target.value,y),placeholder:G("headerName"),className:"flex-1"}),h.jsx(xn,{type:"text",value:y,onChange:P=>c(w,p,P.target.value),placeholder:G("headerValue"),className:"flex-1"}),h.jsx(Wt,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(w),children:h.jsx(Kv,{className:"h-4 w-4 text-red-500"})})]},w)),h.jsxs(Wt,{type:"button",variant:"outline",size:"sm",onClick:f,children:[h.jsx(Wv,{className:"h-4 w-4 mr-2"}),G("add")]})]})}function Nw(){const{providerModal:r,closeProviderModal:o}=qr(),{data:i}=$s(),{data:l}=nc(),c=U0(),[f,m]=k.useState(""),[p,y]=k.useState(""),[w,P]=k.useState(null),[j,T]=k.useState("auto"),v=r.provider,I=l==null?void 0:l.providers.find(z=>z.name===v),C=v?i==null?void 0:i.providers[v]:null;k.useEffect(()=>{if(C){y(C.apiBase||(I==null?void 0:I.defaultApiBase)||""),P(C.extraHeaders||null),m("");const z=C.wireApi||(I==null?void 0:I.defaultWireApi)||"auto";T(z)}},[C,I]);const N=z=>{z.preventDefault();const W={};if(f!==""&&(W.apiKey=f),p&&p!==(I==null?void 0:I.defaultApiBase)&&(W.apiBase=p),w&&Object.keys(w).length>0&&(W.extraHeaders=w),I!=null&&I.supportsWireApi){const $=(C==null?void 0:C.wireApi)||I.defaultWireApi||"auto";j!==$&&(W.wireApi=j)}v&&c.mutate({provider:v,data:W},{onSuccess:()=>o()})};return h.jsx(sm,{open:r.open,onOpenChange:o,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-primary flex items-center justify-center",children:h.jsx(ba,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(uc,{children:(I==null?void 0:I.displayName)||v}),h.jsx(cc,{children:"Configure API keys and parameters for AI provider"})]})]})}),h.jsxs("form",{onSubmit:N,className:"space-y-5 pt-2",children:[h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(wn,{htmlFor:"apiKey",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(ba,{className:"h-3.5 w-3.5 text-gray-500"}),G("apiKey")]}),h.jsx(Cw,{id:"apiKey",value:f,isSet:C==null?void 0:C.apiKeySet,onChange:z=>m(z.target.value),placeholder:C!=null&&C.apiKeySet?G("apiKeySet"):"Enter API Key",className:"rounded-xl"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(wn,{htmlFor:"apiBase",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(yh,{className:"h-3.5 w-3.5 text-gray-500"}),G("apiBase")]}),h.jsx(xn,{id:"apiBase",type:"text",value:p,onChange:z=>y(z.target.value),placeholder:(I==null?void 0:I.defaultApiBase)||"https://api.example.com",className:"rounded-xl"})]}),(I==null?void 0:I.supportsWireApi)&&h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(wn,{htmlFor:"wireApi",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Uu,{className:"h-3.5 w-3.5 text-gray-500"}),G("wireApi")]}),h.jsx("select",{id:"wireApi",value:j,onChange:z=>T(z.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",children:(I.wireApiOptions||["auto","chat","responses"]).map(z=>h.jsx("option",{value:z,children:G(z==="chat"?"wireApiChat":z==="responses"?"wireApiResponses":"wireApiAuto")},z))})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(wn,{className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Uu,{className:"h-3.5 w-3.5 text-gray-500"}),G("extraHeaders")]}),h.jsx(Ew,{value:w,onChange:P})]}),h.jsxs(lc,{className:"pt-4",children:[h.jsx(Wt,{type:"button",variant:"outline",onClick:o,children:G("cancel")}),h.jsx(Wt,{type:"submit",disabled:c.isPending,children:c.isPending?"Saving...":G("save")})]})]})]})})}function am({tabs:r,activeTab:o,onChange:i,className:l}){return h.jsx("div",{className:Ee("flex items-center gap-8 border-b border-gray-200 mb-8",l),children:r.map(c=>{const f=o===c.id;return h.jsxs("button",{onClick:()=>i(c.id),className:Ee("relative pb-4 text-[15px] font-semibold transition-all duration-fast flex items-center gap-2",f?"text-primary":"text-gray-500 hover:text-gray-700"),children:[c.label,c.count!==void 0&&h.jsx("span",{className:"text-[11px] font-medium text-gray-400",children:c.count.toLocaleString()}),f&&h.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-primary animate-in fade-in slide-in-from-left-2 duration-300"})]},c.id)})})}function lm({name:r,src:o,className:i,imgClassName:l,fallback:c}){const[f,m]=k.useState(!1),p=!!o&&!f;return h.jsx("div",{className:Ee("flex items-center justify-center",i),children:p?h.jsx("img",{src:o,alt:`${r} logo`,className:Ee("h-6 w-6 object-contain",l),onError:()=>m(!0),draggable:!1}):c??h.jsx("span",{className:"text-lg font-bold uppercase",children:r.slice(0,1)})})}const Pw={openrouter:"openrouter.svg",aihubmix:"aihubmix.png",anthropic:"anthropic.svg",openai:"openai.svg",gemini:"gemini.svg",deepseek:"deepseek.png",zhipu:"zhipu.svg",dashscope:"dashscope.png",moonshot:"moonshot.png",minimax:"minimax.svg",vllm:"vllm.svg",groq:"groq.svg"},jw={telegram:"telegram.svg",slack:"slack.svg",discord:"discord.svg",whatsapp:"whatsapp.svg",qq:"qq.svg",feishu:"feishu.svg",dingtalk:"dingtalk.svg",mochat:"mochat.svg",email:"email.svg"};function um(r,o){const i=o.toLowerCase(),l=r[i];return l?`/logos/${l}`:null}function Rw(r){return um(Pw,r)}function Mw(r){return um(jw,r)}function Tw(){const{data:r}=$s(),{data:o}=nc(),{openProviderModal:i}=qr(),[l,c]=k.useState("installed");if(!r||!o)return h.jsx("div",{className:"p-8",children:"Loading..."});const f=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(p=>r.providers[p].apiKeySet).length:0},{id:"all",label:"All Providers"}],m=l==="installed"?o.providers.filter(p=>{var y;return(y=r.providers[p.name])==null?void 0:y.apiKeySet}):o.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-gray-900",children:"AI Providers"})}),h.jsx(am,{tabs:f,activeTab:l,onChange:c}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:m.map(p=>{const y=r.providers[p.name],w=y==null?void 0:y.apiKeySet;return h.jsxs("div",{className:Ee("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",w?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>i(p.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(lm,{name:p.name,src:Rw(p.name),className:Ee("h-12 w-12 rounded-xl border transition-all",w?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-7 w-7",fallback:h.jsx("span",{className:Ee("text-lg font-bold uppercase",w?"text-gray-900":"text-gray-500"),children:p.name[0]})}),w?h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[h.jsx(Iv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Ready"})]}):h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[h.jsx(vh,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Setup"})]})]}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:p.displayName||p.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:p.name==="openai"?"Leading AI models including GPT-4 and GPT-3.5":"Configure AI services for your agents"})]}),h.jsx("div",{className:"mt-4 pt-4 border-t border-gray-100",children:h.jsx(Wt,{variant:w?"ghost":"default",size:"sm",className:"w-full rounded-xl text-xs font-semibold h-9",onClick:P=>{P.stopPropagation(),i(p.name)},children:w?"Configure":"Add Provider"})})]},p.name)})}),m.length===0&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[h.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:h.jsx(ba,{className:"h-8 w-8 text-gray-400"})}),h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No providers configured"}),h.jsx("p",{className:"text-[13px] text-gray-500 max-w-sm",children:"Add an AI provider to start using the platform. Click on any provider to configure it."})]}),h.jsx(Nw,{})]})}const cm=k.forwardRef(({className:r,checked:o=!1,onCheckedChange:i,...l},c)=>h.jsx("button",{type:"button",role:"switch","aria-checked":o,ref:c,className:Ee("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-fast focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50",o?"bg-primary":"bg-gray-200 hover:bg-gray-300",r),onClick:()=>i==null?void 0:i(!o),...l,children:h.jsx("span",{className:Ee("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-md ring-0 transition-transform duration-fast",o?"translate-x-5":"translate-x-0")})}));cm.displayName="Switch";function Ow({value:r,onChange:o,className:i,placeholder:l="Type and press Enter..."}){const[c,f]=k.useState(""),m=y=>{y.key==="Enter"&&c.trim()?(y.preventDefault(),o([...r,c.trim()]),f("")):y.key==="Backspace"&&!c&&r.length>0&&o(r.slice(0,-1))},p=y=>{o(r.filter((w,P)=>P!==y))};return h.jsxs("div",{className:Ee("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(xh,{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 _w=r=>r.includes("token")||r.includes("secret")||r.includes("password")?h.jsx(ba,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("url")||r.includes("host")?h.jsx(yh,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("email")||r.includes("mail")?h.jsx(ec,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("id")||r.includes("from")?h.jsx(Uu,{className:"h-3.5 w-3.5 text-gray-500"}):r==="enabled"||r==="consentGranted"?h.jsx($v,{className:"h-3.5 w-3.5 text-gray-500"}):h.jsx(vh,{className:"h-3.5 w-3.5 text-gray-500"}),zw={telegram:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"token",type:"password",label:G("botToken")},{name:"allowFrom",type:"tags",label:G("allowFrom")},{name:"proxy",type:"text",label:G("proxy")}],discord:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"token",type:"password",label:G("botToken")},{name:"allowFrom",type:"tags",label:G("allowFrom")},{name:"gatewayUrl",type:"text",label:G("gatewayUrl")},{name:"intents",type:"number",label:G("intents")}],whatsapp:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"bridgeUrl",type:"text",label:G("bridgeUrl")},{name:"allowFrom",type:"tags",label:G("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"appId",type:"text",label:G("appId")},{name:"appSecret",type:"password",label:G("appSecret")},{name:"encryptKey",type:"password",label:G("encryptKey")},{name:"verificationToken",type:"password",label:G("verificationToken")},{name:"allowFrom",type:"tags",label:G("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"clientId",type:"text",label:G("clientId")},{name:"clientSecret",type:"password",label:G("clientSecret")},{name:"allowFrom",type:"tags",label:G("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"mode",type:"text",label:G("mode")},{name:"webhookPath",type:"text",label:G("webhookPath")},{name:"botToken",type:"password",label:G("botToken")},{name:"appToken",type:"password",label:G("appToken")}],email:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"consentGranted",type:"boolean",label:G("consentGranted")},{name:"imapHost",type:"text",label:G("imapHost")},{name:"imapPort",type:"number",label:G("imapPort")},{name:"imapUsername",type:"text",label:G("imapUsername")},{name:"imapPassword",type:"password",label:G("imapPassword")},{name:"fromAddress",type:"email",label:G("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"baseUrl",type:"text",label:G("baseUrl")},{name:"clawToken",type:"password",label:G("clawToken")},{name:"agentUserId",type:"text",label:G("agentUserId")},{name:"allowFrom",type:"tags",label:G("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"appId",type:"text",label:G("appId")},{name:"secret",type:"password",label:G("appSecret")},{name:"markdownSupport",type:"boolean",label:G("markdownSupport")},{name:"allowFrom",type:"tags",label:G("allowFrom")}]},_p={telegram:ya,slack:ya,email:ec,default:ya},zp={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 Iw(){const{channelModal:r,closeChannelModal:o}=qr(),{data:i}=$s(),l=B0(),[c,f]=k.useState({}),[m,p]=k.useState(!1),y=r.channel,w=y?i==null?void 0:i.channels[y]:null,P=y?zw[y]:[];k.useEffect(()=>{f(w?{...w}:{})},[w,y]);const j=(N,z)=>{f(W=>({...W,[N]:z}))},T=N=>{N.preventDefault(),y&&l.mutate({channel:y,data:c},{onSuccess:()=>o()})},v=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 d0(),W=z.botName?` (${z.botName})`:"";xr.success(G("feishuVerifySuccess")+W)}catch(N){const z=N instanceof Error?N.message:String(N);xr.error(`${G("feishuVerifyFailed")}: ${z}`)}finally{p(!1)}}},I=_p[y||""]||_p.default,C=zp[y||""]||zp.default;return h.jsx(sm,{open:r.open,onOpenChange:o,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 ${C} flex items-center justify-center`,children:h.jsx(I,{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:T,className:"space-y-5 pr-2",children:[P.map(N=>h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(wn,{htmlFor:N.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[_w(N.name),N.label]}),N.type==="boolean"&&h.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-gray-50",children:[h.jsx("span",{className:"text-sm text-gray-500",children:c[N.name]?G("enabled"):G("disabled")}),h.jsx(cm,{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(xn,{id:N.name,type:N.type,value:c[N.name]||"",onChange:z=>j(N.name,z.target.value),className:"rounded-xl"}),N.type==="password"&&h.jsx(xn,{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"}),N.type==="number"&&h.jsx(xn,{id:N.name,type:"number",value:c[N.name]||0,onChange:z=>j(N.name,parseInt(z.target.value)||0),className:"rounded-xl"}),N.type==="tags"&&h.jsx(Ow,{value:c[N.name]||[],onChange:z=>j(N.name,z)})]},N.name)),h.jsxs(lc,{className:"pt-4",children:[h.jsx(Wt,{type:"button",variant:"outline",onClick:o,children:G("cancel")}),h.jsx(Wt,{type:"submit",disabled:l.isPending||m,children:l.isPending?"Saving...":G("save")}),y==="feishu"&&h.jsx(Wt,{type:"button",onClick:v,disabled:l.isPending||m,variant:"secondary",children:G(m?"feishuConnecting":"saveVerifyConnect")})]})]})})]})})}const Ip={telegram:ya,slack:Hv,email:ec,webhook:zv,default:tc},Aw={telegram:"Connect with Telegram bots for instant messaging",slack:"Integrate with Slack workspaces for team collaboration",email:"Send and receive messages via email protocols",webhook:"Receive HTTP webhooks for custom integrations",discord:"Connect Discord bots to your community servers",feishu:"Enterprise messaging and collaboration platform"};function Lw(){const{data:r}=$s(),{data:o}=nc(),{openChannelModal:i}=qr(),[l,c]=k.useState("active");if(!r||!o)return h.jsx("div",{className:"p-8 text-gray-400",children:"Loading channels..."});const f=[{id:"active",label:"Enabled",count:o.channels.filter(p=>{var y;return(y=r.channels[p.name])==null?void 0:y.enabled}).length},{id:"all",label:"All Channels",count:o.channels.length}],m=o.channels.filter(p=>{var w;const y=((w=r.channels[p.name])==null?void 0:w.enabled)||!1;return l==="all"||y});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-gray-900",children:"Message Channels"})}),h.jsx(am,{tabs:f,activeTab:l,onChange:c}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:m.map(p=>{const y=r.channels[p.name],w=(y==null?void 0:y.enabled)||!1,P=Ip[p.name]||Ip.default;return h.jsxs("div",{className:Ee("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",w?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>i(p.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(lm,{name:p.name,src:Mw(p.name),className:Ee("h-12 w-12 rounded-xl border transition-all",w?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-6 w-6",fallback:h.jsx(P,{className:"h-6 w-6"})}),w?h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[h.jsx(Gv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Active"})]}):h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[h.jsx(Vv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Inactive"})]})]}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:p.displayName||p.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:Aw[p.name]||"Configure this communication channel"})]}),h.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-100 flex items-center gap-2",children:[p.tutorialUrl&&h.jsx("a",{href:p.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:j=>j.stopPropagation(),className:"flex items-center justify-center h-9 w-9 rounded-xl bg-gray-100 hover:bg-gray-200 text-gray-600 transition-colors",title:"View Guide",children:h.jsx(Lv,{className:"h-4 w-4"})}),h.jsx(Wt,{variant:w?"ghost":"default",size:"sm",className:"flex-1 rounded-xl text-xs font-semibold h-9",onClick:j=>{j.stopPropagation(),i(p.name)},children:w?"Configure":"Enable"})]})]},p.name)})}),m.length===0&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[h.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:h.jsx(tc,{className:"h-8 w-8 text-gray-400"})}),h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No channels enabled"}),h.jsx("p",{className:"text-[13px] text-gray-500 max-w-sm",children:"Enable a messaging channel to start receiving messages. Click on any channel to configure it."})]}),h.jsx(Iw,{})]})}class Dw{constructor(o){this.url=o,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=o=>{try{const i=JSON.parse(o.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=o=>{console.error("WebSocket error:",o)}}on(o,i){this.handlers.has(o)||this.handlers.set(o,new Set),this.handlers.get(o).add(i)}off(o,i){var l;(l=this.handlers.get(o))==null||l.delete(i)}emit(o){const i=this.handlers.get(o.type);i==null||i.forEach(l=>l(o))}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.connect()},3e3))}disconnect(){var o;this.manualClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(o=this.ws)==null||o.close(),this.ws=null}}function Fw(r){const[o,i]=k.useState(null),{setConnectionStatus:l}=qr();return k.useEffect(()=>{const c=(()=>{const m=va==null?void 0:va.replace(/\/$/,"");if(!m)return"ws://127.0.0.1:18791/ws";try{const p=new URL(m,window.location.origin);return`${p.protocol==="https:"?"wss:":p.protocol==="http:"?"ws:":p.protocol}//${p.host}/ws`}catch{return m.startsWith("wss://")||m.startsWith("ws://")?`${m}/ws`:m.startsWith("https://")?`${m.replace(/^https:/,"wss:")}/ws`:m.startsWith("http://")?`${m.replace(/^http:/,"ws:")}/ws`:`${m}/ws`}})(),f=new Dw(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]),o}const Ap=new Ay({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function Uw(){const{activeTab:r}=qr();Fw(Ap);const o=()=>{switch(r){case"model":return h.jsx(wp,{});case"providers":return h.jsx(Tw,{});case"channels":return h.jsx(Lw,{});default:return h.jsx(wp,{})}};return h.jsxs(Ly,{client:Ap,children:[h.jsx(Xv,{children:h.jsx("div",{className:"animate-fade-in",children:o()},r)}),h.jsx(D0,{position:"top-right",richColors:!0})]})}fy.createRoot(document.getElementById("root")).render(h.jsx(k.StrictMode,{children:h.jsx(Uw,{})}));