@nextclaw/ui 0.3.13 → 0.3.14

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.
@@ -1,240 +0,0 @@
1
- var tp=r=>{throw TypeError(r)};var vu=(r,o,a)=>o.has(r)||tp("Cannot "+a);var w=(r,o,a)=>(vu(r,o,"read from private field"),a?a.call(r):o.get(r)),pe=(r,o,a)=>o.has(r)?tp("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,a),J=(r,o,a,l)=>(vu(r,o,"write to private field"),l?l.call(r,a):o.set(r,a),a),ke=(r,o,a)=>(vu(r,o,"access private method"),a);var di=(r,o,a,l)=>({set _(c){J(r,o,c,a)},get _(){return w(r,o,l)}});function vy(r,o){for(var a=0;a<o.length;a++){const l=o[a];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in r)){const d=Object.getOwnPropertyDescriptor(l,c);d&&Object.defineProperty(r,c,d.get?d:{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 d of c)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&l(m)}).observe(document,{childList:!0,subtree:!0});function a(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(c){if(c.ep)return;c.ep=!0;const d=a(c);fetch(c.href,d)}})();function lh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var xu={exports:{}},Ls={},wu={exports:{}},Ee={};/**
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 np;function xy(){if(np)return Ee;np=1;var r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),P=Symbol.iterator;function j(N){return N===null||typeof N!="object"?null:(N=P&&N[P]||N["@@iterator"],typeof N=="function"?N:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,x={};function M(N,z,oe){this.props=N,this.context=z,this.refs=x,this.updater=oe||v}M.prototype.isReactComponent={},M.prototype.setState=function(N,z){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,z,"setState")},M.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function F(){}F.prototype=M.prototype;function H(N,z,oe){this.props=N,this.context=z,this.refs=x,this.updater=oe||v}var B=H.prototype=new F;B.constructor=H,A(B,M.prototype),B.isPureReactComponent=!0;var D=Array.isArray,te=Object.prototype.hasOwnProperty,ne={current:null},K={key:!0,ref:!0,__self:!0,__source:!0};function ae(N,z,oe){var ce,ye={},Ce=null,ge=null;if(z!=null)for(ce in z.ref!==void 0&&(ge=z.ref),z.key!==void 0&&(Ce=""+z.key),z)te.call(z,ce)&&!K.hasOwnProperty(ce)&&(ye[ce]=z[ce]);var Pe=arguments.length-2;if(Pe===1)ye.children=oe;else if(1<Pe){for(var Ie=Array(Pe),Je=0;Je<Pe;Je++)Ie[Je]=arguments[Je+2];ye.children=Ie}if(N&&N.defaultProps)for(ce in Pe=N.defaultProps,Pe)ye[ce]===void 0&&(ye[ce]=Pe[ce]);return{$$typeof:r,type:N,key:Ce,ref:ge,props:ye,_owner:ne.current}}function L(N,z){return{$$typeof:r,type:N.type,key:z,ref:N.ref,props:N.props,_owner:N._owner}}function Z(N){return typeof N=="object"&&N!==null&&N.$$typeof===r}function _(N){var z={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(oe){return z[oe]})}var O=/\/+/g;function re(N,z){return typeof N=="object"&&N!==null&&N.key!=null?_(""+N.key):z.toString(36)}function ie(N,z,oe,ce,ye){var Ce=typeof N;(Ce==="undefined"||Ce==="boolean")&&(N=null);var ge=!1;if(N===null)ge=!0;else switch(Ce){case"string":case"number":ge=!0;break;case"object":switch(N.$$typeof){case r:case o:ge=!0}}if(ge)return ge=N,ye=ye(ge),N=ce===""?"."+re(ge,0):ce,D(ye)?(oe="",N!=null&&(oe=N.replace(O,"$&/")+"/"),ie(ye,z,oe,"",function(Je){return Je})):ye!=null&&(Z(ye)&&(ye=L(ye,oe+(!ye.key||ge&&ge.key===ye.key?"":(""+ye.key).replace(O,"$&/")+"/")+N)),z.push(ye)),1;if(ge=0,ce=ce===""?".":ce+":",D(N))for(var Pe=0;Pe<N.length;Pe++){Ce=N[Pe];var Ie=ce+re(Ce,Pe);ge+=ie(Ce,z,oe,Ie,ye)}else if(Ie=j(N),typeof Ie=="function")for(N=Ie.call(N),Pe=0;!(Ce=N.next()).done;)Ce=Ce.value,Ie=ce+re(Ce,Pe++),ge+=ie(Ce,z,oe,Ie,ye);else if(Ce==="object")throw z=String(N),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return ge}function fe(N,z,oe){if(N==null)return N;var ce=[],ye=0;return ie(N,ce,"","",function(Ce){return z.call(oe,Ce,ye++)}),ce}function be(N){if(N._status===-1){var z=N._result;z=z(),z.then(function(oe){(N._status===0||N._status===-1)&&(N._status=1,N._result=oe)},function(oe){(N._status===0||N._status===-1)&&(N._status=2,N._result=oe)}),N._status===-1&&(N._status=0,N._result=z)}if(N._status===1)return N._result.default;throw N._result}var we={current:null},q={transition:null},$={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:q,ReactCurrentOwner:ne};function G(){throw Error("act(...) is not supported in production builds of React.")}return Ee.Children={map:fe,forEach:function(N,z,oe){fe(N,function(){z.apply(this,arguments)},oe)},count:function(N){var z=0;return fe(N,function(){z++}),z},toArray:function(N){return fe(N,function(z){return z})||[]},only:function(N){if(!Z(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Ee.Component=M,Ee.Fragment=a,Ee.Profiler=c,Ee.PureComponent=H,Ee.StrictMode=l,Ee.Suspense=S,Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,Ee.act=G,Ee.cloneElement=function(N,z,oe){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var ce=A({},N.props),ye=N.key,Ce=N.ref,ge=N._owner;if(z!=null){if(z.ref!==void 0&&(Ce=z.ref,ge=ne.current),z.key!==void 0&&(ye=""+z.key),N.type&&N.type.defaultProps)var Pe=N.type.defaultProps;for(Ie in z)te.call(z,Ie)&&!K.hasOwnProperty(Ie)&&(ce[Ie]=z[Ie]===void 0&&Pe!==void 0?Pe[Ie]:z[Ie])}var Ie=arguments.length-2;if(Ie===1)ce.children=oe;else if(1<Ie){Pe=Array(Ie);for(var Je=0;Je<Ie;Je++)Pe[Je]=arguments[Je+2];ce.children=Pe}return{$$typeof:r,type:N.type,key:ye,ref:Ce,props:ce,_owner:ge}},Ee.createContext=function(N){return N={$$typeof:m,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:d,_context:N},N.Consumer=N},Ee.createElement=ae,Ee.createFactory=function(N){var z=ae.bind(null,N);return z.type=N,z},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(N){return{$$typeof:h,render:N}},Ee.isValidElement=Z,Ee.lazy=function(N){return{$$typeof:C,_payload:{_status:-1,_result:N},_init:be}},Ee.memo=function(N,z){return{$$typeof:y,type:N,compare:z===void 0?null:z}},Ee.startTransition=function(N){var z=q.transition;q.transition={};try{N()}finally{q.transition=z}},Ee.unstable_act=G,Ee.useCallback=function(N,z){return we.current.useCallback(N,z)},Ee.useContext=function(N){return we.current.useContext(N)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(N){return we.current.useDeferredValue(N)},Ee.useEffect=function(N,z){return we.current.useEffect(N,z)},Ee.useId=function(){return we.current.useId()},Ee.useImperativeHandle=function(N,z,oe){return we.current.useImperativeHandle(N,z,oe)},Ee.useInsertionEffect=function(N,z){return we.current.useInsertionEffect(N,z)},Ee.useLayoutEffect=function(N,z){return we.current.useLayoutEffect(N,z)},Ee.useMemo=function(N,z){return we.current.useMemo(N,z)},Ee.useReducer=function(N,z,oe){return we.current.useReducer(N,z,oe)},Ee.useRef=function(N){return we.current.useRef(N)},Ee.useState=function(N){return we.current.useState(N)},Ee.useSyncExternalStore=function(N,z,oe){return we.current.useSyncExternalStore(N,z,oe)},Ee.useTransition=function(){return we.current.useTransition()},Ee.version="18.3.1",Ee}var rp;function rc(){return rp||(rp=1,wu.exports=xy()),wu.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 op;function wy(){if(op)return Ls;op=1;var r=rc(),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function m(h,S,y){var C,P={},j=null,v=null;y!==void 0&&(j=""+y),S.key!==void 0&&(j=""+S.key),S.ref!==void 0&&(v=S.ref);for(C in S)l.call(S,C)&&!d.hasOwnProperty(C)&&(P[C]=S[C]);if(h&&h.defaultProps)for(C in S=h.defaultProps,S)P[C]===void 0&&(P[C]=S[C]);return{$$typeof:o,type:h,key:j,ref:v,props:P,_owner:c.current}}return Ls.Fragment=a,Ls.jsx=m,Ls.jsxs=m,Ls}var sp;function Sy(){return sp||(sp=1,xu.exports=wy()),xu.exports}var p=Sy(),k=rc();const X=lh(k),uh=vy({__proto__:null,default:X},[k]);var fi={},Su={exports:{}},jt={},bu={exports:{}},ku={};/**
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 ap;function by(){return ap||(ap=1,(function(r){function o(q,$){var G=q.length;q.push($);e:for(;0<G;){var N=G-1>>>1,z=q[N];if(0<c(z,$))q[N]=$,q[G]=z,G=N;else break e}}function a(q){return q.length===0?null:q[0]}function l(q){if(q.length===0)return null;var $=q[0],G=q.pop();if(G!==$){q[0]=G;e:for(var N=0,z=q.length,oe=z>>>1;N<oe;){var ce=2*(N+1)-1,ye=q[ce],Ce=ce+1,ge=q[Ce];if(0>c(ye,G))Ce<z&&0>c(ge,ye)?(q[N]=ge,q[Ce]=G,N=Ce):(q[N]=ye,q[ce]=G,N=ce);else if(Ce<z&&0>c(ge,G))q[N]=ge,q[Ce]=G,N=Ce;else break e}}return $}function c(q,$){var G=q.sortIndex-$.sortIndex;return G!==0?G:q.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var m=Date,h=m.now();r.unstable_now=function(){return m.now()-h}}var S=[],y=[],C=1,P=null,j=3,v=!1,A=!1,x=!1,M=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(q){for(var $=a(y);$!==null;){if($.callback===null)l(y);else if($.startTime<=q)l(y),$.sortIndex=$.expirationTime,o(S,$);else break;$=a(y)}}function D(q){if(x=!1,B(q),!A)if(a(S)!==null)A=!0,be(te);else{var $=a(y);$!==null&&we(D,$.startTime-q)}}function te(q,$){A=!1,x&&(x=!1,F(ae),ae=-1),v=!0;var G=j;try{for(B($),P=a(S);P!==null&&(!(P.expirationTime>$)||q&&!_());){var N=P.callback;if(typeof N=="function"){P.callback=null,j=P.priorityLevel;var z=N(P.expirationTime<=$);$=r.unstable_now(),typeof z=="function"?P.callback=z:P===a(S)&&l(S),B($)}else l(S);P=a(S)}if(P!==null)var oe=!0;else{var ce=a(y);ce!==null&&we(D,ce.startTime-$),oe=!1}return oe}finally{P=null,j=G,v=!1}}var ne=!1,K=null,ae=-1,L=5,Z=-1;function _(){return!(r.unstable_now()-Z<L)}function O(){if(K!==null){var q=r.unstable_now();Z=q;var $=!0;try{$=K(!0,q)}finally{$?re():(ne=!1,K=null)}}else ne=!1}var re;if(typeof H=="function")re=function(){H(O)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,fe=ie.port2;ie.port1.onmessage=O,re=function(){fe.postMessage(null)}}else re=function(){M(O,0)};function be(q){K=q,ne||(ne=!0,re())}function we(q,$){ae=M(function(){q(r.unstable_now())},$)}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(q){q.callback=null},r.unstable_continueExecution=function(){A||v||(A=!0,be(te))},r.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<q?Math.floor(1e3/q):5},r.unstable_getCurrentPriorityLevel=function(){return j},r.unstable_getFirstCallbackNode=function(){return a(S)},r.unstable_next=function(q){switch(j){case 1:case 2:case 3:var $=3;break;default:$=j}var G=j;j=$;try{return q()}finally{j=G}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(q,$){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var G=j;j=q;try{return $()}finally{j=G}},r.unstable_scheduleCallback=function(q,$,G){var N=r.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?N+G:N):G=N,q){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=G+z,q={id:C++,callback:$,priorityLevel:q,startTime:G,expirationTime:z,sortIndex:-1},G>N?(q.sortIndex=G,o(y,q),a(S)===null&&q===a(y)&&(x?(F(ae),ae=-1):x=!0,we(D,G-N))):(q.sortIndex=z,o(S,q),A||v||(A=!0,be(te))),q},r.unstable_shouldYield=_,r.unstable_wrapCallback=function(q){var $=j;return function(){var G=j;j=$;try{return q.apply(this,arguments)}finally{j=G}}}})(ku)),ku}var ip;function ky(){return ip||(ip=1,bu.exports=by()),bu.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 lp;function Cy(){if(lp)return jt;lp=1;var r=rc(),o=ky();function a(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 d(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 h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),S=Object.prototype.hasOwnProperty,y=/^[: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]*$/,C={},P={};function j(e){return S.call(P,e)?!0:S.call(C,e)?!1:y.test(e)?P[e]=!0:(C[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 A(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 x(e,t,n,s,i,u,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=f}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new x(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new x(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new x(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new x(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){M[e]=new x(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new x(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new x(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new x(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new x(e,5,!1,e.toLowerCase(),null,!1,!1)});var F=/[\-:]([a-z])/g;function H(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(F,H);M[t]=new x(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(F,H);M[t]=new x(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(F,H);M[t]=new x(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new x(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new x(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,t,n,s){var i=M.hasOwnProperty(t)?M[t]:null;(i!==null?i.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(A(t,n,i,s)&&(n=null),s||i===null?j(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,s=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var D=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,te=Symbol.for("react.element"),ne=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),ae=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),we=Symbol.for("react.offscreen"),q=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=q&&e[q]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,N;function z(e){if(N===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return`
34
- `+N+e}var oe=!1;function ce(e,t){if(!e||oe)return"";oe=!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(I){var s=I}Reflect.construct(e,[],t)}else{try{t.call()}catch(I){s=I}e.call(t.prototype)}else{try{throw Error()}catch(I){s=I}e()}}catch(I){if(I&&s&&typeof I.stack=="string"){for(var i=I.stack.split(`
35
- `),u=s.stack.split(`
36
- `),f=i.length-1,g=u.length-1;1<=f&&0<=g&&i[f]!==u[g];)g--;for(;1<=f&&0<=g;f--,g--)if(i[f]!==u[g]){if(f!==1||g!==1)do if(f--,g--,0>g||i[f]!==u[g]){var b=`
37
- `+i[f].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),b}while(1<=f&&0<=g);break}}}finally{oe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function ye(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=ce(e.type,!1),e;case 11:return e=ce(e.type.render,!1),e;case 1:return e=ce(e.type,!0),e;default:return""}}function Ce(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 K:return"Fragment";case ne:return"Portal";case L:return"Profiler";case ae:return"StrictMode";case re:return"Suspense";case ie:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case Z:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fe:return t=e.displayName||null,t!==null?t:Ce(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return Ce(e(t))}catch{}}return null}function ge(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 Ce(t);case 8:return t===ae?"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 Pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ie(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=Ie(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 i=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){s=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(f){s=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sn(e){e._valueTracker||(e._valueTracker=Je(e))}function Jr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Ie(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function kr(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 Zo(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xs(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Pe(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 Jo(e,t){t=t.checked,t!=null&&B(e,"checked",t,!1)}function es(e,t){Jo(e,t);var n=Pe(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")?ts(e,t.type,n):t.hasOwnProperty("defaultValue")&&ts(e,t.type,Pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eo(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 ts(e,t,n){(t!=="number"||kr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Un=Array.isArray;function At(e,t,n,s){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Pe(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,s&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function to(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function an(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(a(92));if(Un(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Pe(n)}}function Zs(e,t){var n=Pe(t.value),s=Pe(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 Js(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function pt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ln(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?pt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var no,ea=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,i)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(no=no||document.createElement("div"),no.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=no.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cr={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},ta=["Webkit","ms","Moz","O"];Object.keys(Cr).forEach(function(e){ta.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cr[t]=Cr[e]})});function ro(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cr.hasOwnProperty(e)&&Cr[e]?(""+t).trim():t+"px"}function bn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,i=ro(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,i):e[n]=i}}var na=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cn(e,t){if(t){if(na[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function ns(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 rs=null;function oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var so=null,Bn=null,dn=null;function Qt(e){if(e=ks(e)){if(typeof so!="function")throw Error(a(280));var t=e.stateNode;t&&(t=Na(t),so(e.stateNode,e.type,t))}}function ra(e){Bn?dn?dn.push(e):dn=[e]:Bn=e}function xe(){if(Bn){var e=Bn,t=dn;if(dn=Bn=null,Qt(e),t)for(e=0;e<t.length;e++)Qt(t[e])}}function Re(e,t){return e(t)}function _e(){}var ht=!1;function St(e,t,n){if(ht)return e(t,n);ht=!0;try{return Re(e,t,n)}finally{ht=!1,(Bn!==null||dn!==null)&&(_e(),xe())}}function bt(e,t){var n=e.stateNode;if(n===null)return null;var s=Na(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(a(231,t,typeof n));return n}var Ht=!1;if(h)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){Ht=!0}}),window.addEventListener("test",ot,ot),window.removeEventListener("test",ot,ot)}catch{Ht=!1}function fn(e,t,n,s,i,u,f,g,b){var I=Array.prototype.slice.call(arguments,3);try{t.apply(n,I)}catch(W){this.onError(W)}}var os=!1,oa=null,sa=!1,Di=null,Em={onError:function(e){os=!0,oa=e}};function Nm(e,t,n,s,i,u,f,g,b){os=!1,oa=null,fn.apply(Em,arguments)}function Pm(e,t,n,s,i,u,f,g,b){if(Nm.apply(this,arguments),os){if(os){var I=oa;os=!1,oa=null}else throw Error(a(198));sa||(sa=!0,Di=I)}}function Er(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 kc(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 Cc(e){if(Er(e)!==e)throw Error(a(188))}function jm(e){var t=e.alternate;if(!t){if(t=Er(e),t===null)throw Error(a(188));return t!==e?null:e}for(var n=e,s=t;;){var i=n.return;if(i===null)break;var u=i.alternate;if(u===null){if(s=i.return,s!==null){n=s;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===n)return Cc(i),e;if(u===s)return Cc(i),t;u=u.sibling}throw Error(a(188))}if(n.return!==s.return)n=i,s=u;else{for(var f=!1,g=i.child;g;){if(g===n){f=!0,n=i,s=u;break}if(g===s){f=!0,s=i,n=u;break}g=g.sibling}if(!f){for(g=u.child;g;){if(g===n){f=!0,n=u,s=i;break}if(g===s){f=!0,s=u,n=i;break}g=g.sibling}if(!f)throw Error(a(189))}}if(n.alternate!==s)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function Ec(e){return e=jm(e),e!==null?Nc(e):null}function Nc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Nc(e);if(t!==null)return t;e=e.sibling}return null}var Pc=o.unstable_scheduleCallback,jc=o.unstable_cancelCallback,Mm=o.unstable_shouldYield,Tm=o.unstable_requestPaint,Ke=o.unstable_now,Rm=o.unstable_getCurrentPriorityLevel,Li=o.unstable_ImmediatePriority,Mc=o.unstable_UserBlockingPriority,aa=o.unstable_NormalPriority,Im=o.unstable_LowPriority,Tc=o.unstable_IdlePriority,ia=null,pn=null;function Om(e){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(ia,e,void 0,(e.current.flags&128)===128)}catch{}}var Kt=Math.clz32?Math.clz32:Am,zm=Math.log,_m=Math.LN2;function Am(e){return e>>>=0,e===0?32:31-(zm(e)/_m|0)|0}var la=64,ua=4194304;function ss(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 ca(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,i=e.suspendedLanes,u=e.pingedLanes,f=n&268435455;if(f!==0){var g=f&~i;g!==0?s=ss(g):(u&=f,u!==0&&(s=ss(u)))}else f=n&~i,f!==0?s=ss(f):u!==0&&(s=ss(u));if(s===0)return 0;if(t!==0&&t!==s&&(t&i)===0&&(i=s&-s,u=t&-t,i>=u||i===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-Kt(t),i=1<<n,s|=e[n],t&=~i;return s}function Dm(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 Lm(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes;0<u;){var f=31-Kt(u),g=1<<f,b=i[f];b===-1?((g&n)===0||(g&s)!==0)&&(i[f]=Dm(g,t)):b<=t&&(e.expiredLanes|=g),u&=~g}}function Fi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rc(){var e=la;return la<<=1,(la&4194240)===0&&(la=64),e}function Ui(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function as(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function Fm(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 i=31-Kt(n),u=1<<i;t[i]=0,s[i]=-1,e[i]=-1,n&=~u}}function Bi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Kt(n),i=1<<s;i&t|e[s]&t&&(e[s]|=t),n&=~i}}var ze=0;function Ic(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Oc,Wi,zc,_c,Ac,Vi=!1,da=[],Wn=null,Vn=null,$n=null,is=new Map,ls=new Map,Qn=[],Um="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 Dc(e,t){switch(e){case"focusin":case"focusout":Wn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":is.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ls.delete(t.pointerId)}}function us(e,t,n,s,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[i]},t!==null&&(t=ks(t),t!==null&&Wi(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Bm(e,t,n,s,i){switch(t){case"focusin":return Wn=us(Wn,e,t,n,s,i),!0;case"dragenter":return Vn=us(Vn,e,t,n,s,i),!0;case"mouseover":return $n=us($n,e,t,n,s,i),!0;case"pointerover":var u=i.pointerId;return is.set(u,us(is.get(u)||null,e,t,n,s,i)),!0;case"gotpointercapture":return u=i.pointerId,ls.set(u,us(ls.get(u)||null,e,t,n,s,i)),!0}return!1}function Lc(e){var t=Nr(e.target);if(t!==null){var n=Er(t);if(n!==null){if(t=n.tag,t===13){if(t=kc(n),t!==null){e.blockedOn=t,Ac(e.priority,function(){zc(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 fa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);rs=s,n.target.dispatchEvent(s),rs=null}else return t=ks(n),t!==null&&Wi(t),e.blockedOn=n,!1;t.shift()}return!0}function Fc(e,t,n){fa(e)&&n.delete(t)}function Wm(){Vi=!1,Wn!==null&&fa(Wn)&&(Wn=null),Vn!==null&&fa(Vn)&&(Vn=null),$n!==null&&fa($n)&&($n=null),is.forEach(Fc),ls.forEach(Fc)}function cs(e,t){e.blockedOn===t&&(e.blockedOn=null,Vi||(Vi=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Wm)))}function ds(e){function t(i){return cs(i,e)}if(0<da.length){cs(da[0],e);for(var n=1;n<da.length;n++){var s=da[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Wn!==null&&cs(Wn,e),Vn!==null&&cs(Vn,e),$n!==null&&cs($n,e),is.forEach(t),ls.forEach(t),n=0;n<Qn.length;n++)s=Qn[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)Lc(n),n.blockedOn===null&&Qn.shift()}var ao=D.ReactCurrentBatchConfig,pa=!0;function Vm(e,t,n,s){var i=ze,u=ao.transition;ao.transition=null;try{ze=1,$i(e,t,n,s)}finally{ze=i,ao.transition=u}}function $m(e,t,n,s){var i=ze,u=ao.transition;ao.transition=null;try{ze=4,$i(e,t,n,s)}finally{ze=i,ao.transition=u}}function $i(e,t,n,s){if(pa){var i=Qi(e,t,n,s);if(i===null)ll(e,t,s,ha,n),Dc(e,s);else if(Bm(i,e,t,n,s))s.stopPropagation();else if(Dc(e,s),t&4&&-1<Um.indexOf(e)){for(;i!==null;){var u=ks(i);if(u!==null&&Oc(u),u=Qi(e,t,n,s),u===null&&ll(e,t,s,ha,n),u===i)break;i=u}i!==null&&s.stopPropagation()}else ll(e,t,s,null,n)}}var ha=null;function Qi(e,t,n,s){if(ha=null,e=oo(s),e=Nr(e),e!==null)if(t=Er(e),t===null)e=null;else if(n=t.tag,n===13){if(e=kc(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 ha=e,null}function Uc(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(Rm()){case Li:return 1;case Mc:return 4;case aa:case Im:return 16;case Tc:return 536870912;default:return 16}default:return 16}}var Hn=null,Hi=null,ma=null;function Bc(){if(ma)return ma;var e,t=Hi,n=t.length,s,i="value"in Hn?Hn.value:Hn.textContent,u=i.length;for(e=0;e<n&&t[e]===i[e];e++);var f=n-e;for(s=1;s<=f&&t[n-s]===i[u-s];s++);return ma=i.slice(e,1<s?1-s:void 0)}function ga(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 ya(){return!0}function Wc(){return!1}function It(e){function t(n,s,i,u,f){this._reactName=n,this._targetInst=i,this.type=s,this.nativeEvent=u,this.target=f,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)?ya:Wc,this.isPropagationStopped=Wc,this}return G(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=ya)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ya)},persist:function(){},isPersistent:ya}),t}var io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ki=It(io),fs=G({},io,{view:0,detail:0}),Qm=It(fs),Gi,qi,ps,va=G({},fs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xi,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!==ps&&(ps&&e.type==="mousemove"?(Gi=e.screenX-ps.screenX,qi=e.screenY-ps.screenY):qi=Gi=0,ps=e),Gi)},movementY:function(e){return"movementY"in e?e.movementY:qi}}),Vc=It(va),Hm=G({},va,{dataTransfer:0}),Km=It(Hm),Gm=G({},fs,{relatedTarget:0}),Yi=It(Gm),qm=G({},io,{animationName:0,elapsedTime:0,pseudoElement:0}),Ym=It(qm),Xm=G({},io,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zm=It(Xm),Jm=G({},io,{data:0}),$c=It(Jm),eg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tg={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"},ng={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ng[e])?!!t[e]:!1}function Xi(){return rg}var og=G({},fs,{key:function(e){if(e.key){var t=eg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ga(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xi,charCode:function(e){return e.type==="keypress"?ga(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ga(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sg=It(og),ag=G({},va,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qc=It(ag),ig=G({},fs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xi}),lg=It(ig),ug=G({},io,{propertyName:0,elapsedTime:0,pseudoElement:0}),cg=It(ug),dg=G({},va,{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}),fg=It(dg),pg=[9,13,27,32],Zi=h&&"CompositionEvent"in window,hs=null;h&&"documentMode"in document&&(hs=document.documentMode);var hg=h&&"TextEvent"in window&&!hs,Hc=h&&(!Zi||hs&&8<hs&&11>=hs),Kc=" ",Gc=!1;function qc(e,t){switch(e){case"keyup":return pg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function mg(e,t){switch(e){case"compositionend":return Yc(t);case"keypress":return t.which!==32?null:(Gc=!0,Kc);case"textInput":return e=t.data,e===Kc&&Gc?null:e;default:return null}}function gg(e,t){if(lo)return e==="compositionend"||!Zi&&qc(e,t)?(e=Bc(),ma=Hi=Hn=null,lo=!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 Hc&&t.locale!=="ko"?null:t.data;default:return null}}var yg={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 Xc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yg[e.type]:t==="textarea"}function Zc(e,t,n,s){ra(s),t=ka(t,"onChange"),0<t.length&&(n=new Ki("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var ms=null,gs=null;function vg(e){gd(e,0)}function xa(e){var t=ho(e);if(Jr(t))return e}function xg(e,t){if(e==="change")return t}var Jc=!1;if(h){var Ji;if(h){var el="oninput"in document;if(!el){var ed=document.createElement("div");ed.setAttribute("oninput","return;"),el=typeof ed.oninput=="function"}Ji=el}else Ji=!1;Jc=Ji&&(!document.documentMode||9<document.documentMode)}function td(){ms&&(ms.detachEvent("onpropertychange",nd),gs=ms=null)}function nd(e){if(e.propertyName==="value"&&xa(gs)){var t=[];Zc(t,gs,e,oo(e)),St(vg,t)}}function wg(e,t,n){e==="focusin"?(td(),ms=t,gs=n,ms.attachEvent("onpropertychange",nd)):e==="focusout"&&td()}function Sg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xa(gs)}function bg(e,t){if(e==="click")return xa(t)}function kg(e,t){if(e==="input"||e==="change")return xa(t)}function Cg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:Cg;function ys(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var i=n[s];if(!S.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function rd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function od(e,t){var n=rd(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=rd(n)}}function sd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ad(){for(var e=window,t=kr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kr(e.document)}return t}function tl(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 Eg(e){var t=ad(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sd(n.ownerDocument.documentElement,n)){if(s!==null&&tl(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 i=n.textContent.length,u=Math.min(s.start,i);s=s.end===void 0?u:Math.min(s.end,i),!e.extend&&u>s&&(i=s,s=u,u=i),i=od(n,u);var f=od(n,s);i&&f&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.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 Ng=h&&"documentMode"in document&&11>=document.documentMode,uo=null,nl=null,vs=null,rl=!1;function id(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rl||uo==null||uo!==kr(s)||(s=uo,"selectionStart"in s&&tl(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}),vs&&ys(vs,s)||(vs=s,s=ka(nl,"onSelect"),0<s.length&&(t=new Ki("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=uo)))}function wa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var co={animationend:wa("Animation","AnimationEnd"),animationiteration:wa("Animation","AnimationIteration"),animationstart:wa("Animation","AnimationStart"),transitionend:wa("Transition","TransitionEnd")},ol={},ld={};h&&(ld=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function Sa(e){if(ol[e])return ol[e];if(!co[e])return e;var t=co[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ld)return ol[e]=t[n];return e}var ud=Sa("animationend"),cd=Sa("animationiteration"),dd=Sa("animationstart"),fd=Sa("transitionend"),pd=new Map,hd="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 Kn(e,t){pd.set(e,t),d(t,[e])}for(var sl=0;sl<hd.length;sl++){var al=hd[sl],Pg=al.toLowerCase(),jg=al[0].toUpperCase()+al.slice(1);Kn(Pg,"on"+jg)}Kn(ud,"onAnimationEnd"),Kn(cd,"onAnimationIteration"),Kn(dd,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(fd,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xs="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(xs));function md(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,Pm(s,t,void 0,e),e.currentTarget=null}function gd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],i=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var f=s.length-1;0<=f;f--){var g=s[f],b=g.instance,I=g.currentTarget;if(g=g.listener,b!==u&&i.isPropagationStopped())break e;md(i,g,I),u=b}else for(f=0;f<s.length;f++){if(g=s[f],b=g.instance,I=g.currentTarget,g=g.listener,b!==u&&i.isPropagationStopped())break e;md(i,g,I),u=b}}}if(sa)throw e=Di,sa=!1,Di=null,e}function Le(e,t){var n=t[hl];n===void 0&&(n=t[hl]=new Set);var s=e+"__bubble";n.has(s)||(yd(t,e,2,!1),n.add(s))}function il(e,t,n){var s=0;t&&(s|=4),yd(n,e,s,t)}var ba="_reactListening"+Math.random().toString(36).slice(2);function ws(e){if(!e[ba]){e[ba]=!0,l.forEach(function(n){n!=="selectionchange"&&(Mg.has(n)||il(n,!1,e),il(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ba]||(t[ba]=!0,il("selectionchange",!1,t))}}function yd(e,t,n,s){switch(Uc(t)){case 1:var i=Vm;break;case 4:i=$m;break;default:i=$i}n=i.bind(null,t,n,e),i=void 0,!Ht||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),s?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ll(e,t,n,s,i){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var f=s.tag;if(f===3||f===4){var g=s.stateNode.containerInfo;if(g===i||g.nodeType===8&&g.parentNode===i)break;if(f===4)for(f=s.return;f!==null;){var b=f.tag;if((b===3||b===4)&&(b=f.stateNode.containerInfo,b===i||b.nodeType===8&&b.parentNode===i))return;f=f.return}for(;g!==null;){if(f=Nr(g),f===null)return;if(b=f.tag,b===5||b===6){s=u=f;continue e}g=g.parentNode}}s=s.return}St(function(){var I=u,W=oo(n),V=[];e:{var U=pd.get(e);if(U!==void 0){var ee=Ki,le=e;switch(e){case"keypress":if(ga(n)===0)break e;case"keydown":case"keyup":ee=sg;break;case"focusin":le="focus",ee=Yi;break;case"focusout":le="blur",ee=Yi;break;case"beforeblur":case"afterblur":ee=Yi;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":ee=Vc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=Km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=lg;break;case ud:case cd:case dd:ee=Ym;break;case fd:ee=cg;break;case"scroll":ee=Qm;break;case"wheel":ee=fg;break;case"copy":case"cut":case"paste":ee=Zm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=Qc}var ue=(t&4)!==0,Ge=!ue&&e==="scroll",T=ue?U!==null?U+"Capture":null:U;ue=[];for(var E=I,R;E!==null;){R=E;var Q=R.stateNode;if(R.tag===5&&Q!==null&&(R=Q,T!==null&&(Q=bt(E,T),Q!=null&&ue.push(Ss(E,Q,R)))),Ge)break;E=E.return}0<ue.length&&(U=new ee(U,le,null,n,W),V.push({event:U,listeners:ue}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",ee=e==="mouseout"||e==="pointerout",U&&n!==rs&&(le=n.relatedTarget||n.fromElement)&&(Nr(le)||le[kn]))break e;if((ee||U)&&(U=W.window===W?W:(U=W.ownerDocument)?U.defaultView||U.parentWindow:window,ee?(le=n.relatedTarget||n.toElement,ee=I,le=le?Nr(le):null,le!==null&&(Ge=Er(le),le!==Ge||le.tag!==5&&le.tag!==6)&&(le=null)):(ee=null,le=I),ee!==le)){if(ue=Vc,Q="onMouseLeave",T="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Qc,Q="onPointerLeave",T="onPointerEnter",E="pointer"),Ge=ee==null?U:ho(ee),R=le==null?U:ho(le),U=new ue(Q,E+"leave",ee,n,W),U.target=Ge,U.relatedTarget=R,Q=null,Nr(W)===I&&(ue=new ue(T,E+"enter",le,n,W),ue.target=R,ue.relatedTarget=Ge,Q=ue),Ge=Q,ee&&le)t:{for(ue=ee,T=le,E=0,R=ue;R;R=fo(R))E++;for(R=0,Q=T;Q;Q=fo(Q))R++;for(;0<E-R;)ue=fo(ue),E--;for(;0<R-E;)T=fo(T),R--;for(;E--;){if(ue===T||T!==null&&ue===T.alternate)break t;ue=fo(ue),T=fo(T)}ue=null}else ue=null;ee!==null&&vd(V,U,ee,ue,!1),le!==null&&Ge!==null&&vd(V,Ge,le,ue,!0)}}e:{if(U=I?ho(I):window,ee=U.nodeName&&U.nodeName.toLowerCase(),ee==="select"||ee==="input"&&U.type==="file")var de=xg;else if(Xc(U))if(Jc)de=kg;else{de=Sg;var he=wg}else(ee=U.nodeName)&&ee.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(de=bg);if(de&&(de=de(e,I))){Zc(V,de,n,W);break e}he&&he(e,U,I),e==="focusout"&&(he=U._wrapperState)&&he.controlled&&U.type==="number"&&ts(U,"number",U.value)}switch(he=I?ho(I):window,e){case"focusin":(Xc(he)||he.contentEditable==="true")&&(uo=he,nl=I,vs=null);break;case"focusout":vs=nl=uo=null;break;case"mousedown":rl=!0;break;case"contextmenu":case"mouseup":case"dragend":rl=!1,id(V,n,W);break;case"selectionchange":if(Ng)break;case"keydown":case"keyup":id(V,n,W)}var me;if(Zi)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else lo?qc(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(Hc&&n.locale!=="ko"&&(lo||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&lo&&(me=Bc()):(Hn=W,Hi="value"in Hn?Hn.value:Hn.textContent,lo=!0)),he=ka(I,ve),0<he.length&&(ve=new $c(ve,e,null,n,W),V.push({event:ve,listeners:he}),me?ve.data=me:(me=Yc(n),me!==null&&(ve.data=me)))),(me=hg?mg(e,n):gg(e,n))&&(I=ka(I,"onBeforeInput"),0<I.length&&(W=new $c("onBeforeInput","beforeinput",null,n,W),V.push({event:W,listeners:I}),W.data=me))}gd(V,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ka(e,t){for(var n=t+"Capture",s=[];e!==null;){var i=e,u=i.stateNode;i.tag===5&&u!==null&&(i=u,u=bt(e,n),u!=null&&s.unshift(Ss(e,u,i)),u=bt(e,t),u!=null&&s.push(Ss(e,u,i))),e=e.return}return s}function fo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vd(e,t,n,s,i){for(var u=t._reactName,f=[];n!==null&&n!==s;){var g=n,b=g.alternate,I=g.stateNode;if(b!==null&&b===s)break;g.tag===5&&I!==null&&(g=I,i?(b=bt(n,u),b!=null&&f.unshift(Ss(n,b,g))):i||(b=bt(n,u),b!=null&&f.push(Ss(n,b,g)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var Tg=/\r\n?/g,Rg=/\u0000|\uFFFD/g;function xd(e){return(typeof e=="string"?e:""+e).replace(Tg,`
38
- `).replace(Rg,"")}function Ca(e,t,n){if(t=xd(t),xd(e)!==t&&n)throw Error(a(425))}function Ea(){}var ul=null,cl=null;function dl(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 fl=typeof setTimeout=="function"?setTimeout:void 0,Ig=typeof clearTimeout=="function"?clearTimeout:void 0,wd=typeof Promise=="function"?Promise:void 0,Og=typeof queueMicrotask=="function"?queueMicrotask:typeof wd<"u"?function(e){return wd.resolve(null).then(e).catch(zg)}:fl;function zg(e){setTimeout(function(){throw e})}function pl(e,t){var n=t,s=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(s===0){e.removeChild(i),ds(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=i}while(n);ds(t)}function Gn(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 Sd(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 po=Math.random().toString(36).slice(2),hn="__reactFiber$"+po,bs="__reactProps$"+po,kn="__reactContainer$"+po,hl="__reactEvents$"+po,_g="__reactListeners$"+po,Ag="__reactHandles$"+po;function Nr(e){var t=e[hn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kn]||n[hn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sd(e);e!==null;){if(n=e[hn])return n;e=Sd(e)}return t}e=n,n=e.parentNode}return null}function ks(e){return e=e[hn]||e[kn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ho(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function Na(e){return e[bs]||null}var ml=[],mo=-1;function qn(e){return{current:e}}function Fe(e){0>mo||(e.current=ml[mo],ml[mo]=null,mo--)}function De(e,t){mo++,ml[mo]=e.current,e.current=t}var Yn={},lt=qn(Yn),kt=qn(!1),Pr=Yn;function go(e,t){var n=e.type.contextTypes;if(!n)return Yn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var i={},u;for(u in n)i[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ct(e){return e=e.childContextTypes,e!=null}function Pa(){Fe(kt),Fe(lt)}function bd(e,t,n){if(lt.current!==Yn)throw Error(a(168));De(lt,t),De(kt,n)}function kd(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var i in s)if(!(i in t))throw Error(a(108,ge(e)||"Unknown",i));return G({},n,s)}function ja(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,Pr=lt.current,De(lt,e),De(kt,kt.current),!0}function Cd(e,t,n){var s=e.stateNode;if(!s)throw Error(a(169));n?(e=kd(e,t,Pr),s.__reactInternalMemoizedMergedChildContext=e,Fe(kt),Fe(lt),De(lt,e)):Fe(kt),De(kt,n)}var Cn=null,Ma=!1,gl=!1;function Ed(e){Cn===null?Cn=[e]:Cn.push(e)}function Dg(e){Ma=!0,Ed(e)}function Xn(){if(!gl&&Cn!==null){gl=!0;var e=0,t=ze;try{var n=Cn;for(ze=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Cn=null,Ma=!1}catch(i){throw Cn!==null&&(Cn=Cn.slice(e+1)),Pc(Li,Xn),i}finally{ze=t,gl=!1}}return null}var yo=[],vo=0,Ta=null,Ra=0,Dt=[],Lt=0,jr=null,En=1,Nn="";function Mr(e,t){yo[vo++]=Ra,yo[vo++]=Ta,Ta=e,Ra=t}function Nd(e,t,n){Dt[Lt++]=En,Dt[Lt++]=Nn,Dt[Lt++]=jr,jr=e;var s=En;e=Nn;var i=32-Kt(s)-1;s&=~(1<<i),n+=1;var u=32-Kt(t)+i;if(30<u){var f=i-i%5;u=(s&(1<<f)-1).toString(32),s>>=f,i-=f,En=1<<32-Kt(t)+i|n<<i|s,Nn=u+e}else En=1<<u|n<<i|s,Nn=e}function yl(e){e.return!==null&&(Mr(e,1),Nd(e,1,0))}function vl(e){for(;e===Ta;)Ta=yo[--vo],yo[vo]=null,Ra=yo[--vo],yo[vo]=null;for(;e===jr;)jr=Dt[--Lt],Dt[Lt]=null,Nn=Dt[--Lt],Dt[Lt]=null,En=Dt[--Lt],Dt[Lt]=null}var Ot=null,zt=null,Be=!1,qt=null;function Pd(e,t){var n=Wt(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 jd(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,Ot=e,zt=Gn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ot=e,zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=jr!==null?{id:En,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ot=e,zt=null,!0):!1;default:return!1}}function xl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wl(e){if(Be){var t=zt;if(t){var n=t;if(!jd(e,t)){if(xl(e))throw Error(a(418));t=Gn(n.nextSibling);var s=Ot;t&&jd(e,t)?Pd(s,n):(e.flags=e.flags&-4097|2,Be=!1,Ot=e)}}else{if(xl(e))throw Error(a(418));e.flags=e.flags&-4097|2,Be=!1,Ot=e}}}function Md(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ot=e}function Ia(e){if(e!==Ot)return!1;if(!Be)return Md(e),Be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!dl(e.type,e.memoizedProps)),t&&(t=zt)){if(xl(e))throw Td(),Error(a(418));for(;t;)Pd(e,t),t=Gn(t.nextSibling)}if(Md(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){zt=Gn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=Ot?Gn(e.stateNode.nextSibling):null;return!0}function Td(){for(var e=zt;e;)e=Gn(e.nextSibling)}function xo(){zt=Ot=null,Be=!1}function Sl(e){qt===null?qt=[e]:qt.push(e)}var Lg=D.ReactCurrentBatchConfig;function Cs(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(a(309));var s=n.stateNode}if(!s)throw Error(a(147,e));var i=s,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(f){var g=i.refs;f===null?delete g[u]:g[u]=f},t._stringRef=u,t)}if(typeof e!="string")throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Oa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Rd(e){var t=e._init;return t(e._payload)}function Id(e){function t(T,E){if(e){var R=T.deletions;R===null?(T.deletions=[E],T.flags|=16):R.push(E)}}function n(T,E){if(!e)return null;for(;E!==null;)t(T,E),E=E.sibling;return null}function s(T,E){for(T=new Map;E!==null;)E.key!==null?T.set(E.key,E):T.set(E.index,E),E=E.sibling;return T}function i(T,E){return T=sr(T,E),T.index=0,T.sibling=null,T}function u(T,E,R){return T.index=R,e?(R=T.alternate,R!==null?(R=R.index,R<E?(T.flags|=2,E):R):(T.flags|=2,E)):(T.flags|=1048576,E)}function f(T){return e&&T.alternate===null&&(T.flags|=2),T}function g(T,E,R,Q){return E===null||E.tag!==6?(E=fu(R,T.mode,Q),E.return=T,E):(E=i(E,R),E.return=T,E)}function b(T,E,R,Q){var de=R.type;return de===K?W(T,E,R.props.children,Q,R.key):E!==null&&(E.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===be&&Rd(de)===E.type)?(Q=i(E,R.props),Q.ref=Cs(T,E,R),Q.return=T,Q):(Q=ri(R.type,R.key,R.props,null,T.mode,Q),Q.ref=Cs(T,E,R),Q.return=T,Q)}function I(T,E,R,Q){return E===null||E.tag!==4||E.stateNode.containerInfo!==R.containerInfo||E.stateNode.implementation!==R.implementation?(E=pu(R,T.mode,Q),E.return=T,E):(E=i(E,R.children||[]),E.return=T,E)}function W(T,E,R,Q,de){return E===null||E.tag!==7?(E=Dr(R,T.mode,Q,de),E.return=T,E):(E=i(E,R),E.return=T,E)}function V(T,E,R){if(typeof E=="string"&&E!==""||typeof E=="number")return E=fu(""+E,T.mode,R),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case te:return R=ri(E.type,E.key,E.props,null,T.mode,R),R.ref=Cs(T,null,E),R.return=T,R;case ne:return E=pu(E,T.mode,R),E.return=T,E;case be:var Q=E._init;return V(T,Q(E._payload),R)}if(Un(E)||$(E))return E=Dr(E,T.mode,R,null),E.return=T,E;Oa(T,E)}return null}function U(T,E,R,Q){var de=E!==null?E.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return de!==null?null:g(T,E,""+R,Q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case te:return R.key===de?b(T,E,R,Q):null;case ne:return R.key===de?I(T,E,R,Q):null;case be:return de=R._init,U(T,E,de(R._payload),Q)}if(Un(R)||$(R))return de!==null?null:W(T,E,R,Q,null);Oa(T,R)}return null}function ee(T,E,R,Q,de){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return T=T.get(R)||null,g(E,T,""+Q,de);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case te:return T=T.get(Q.key===null?R:Q.key)||null,b(E,T,Q,de);case ne:return T=T.get(Q.key===null?R:Q.key)||null,I(E,T,Q,de);case be:var he=Q._init;return ee(T,E,R,he(Q._payload),de)}if(Un(Q)||$(Q))return T=T.get(R)||null,W(E,T,Q,de,null);Oa(E,Q)}return null}function le(T,E,R,Q){for(var de=null,he=null,me=E,ve=E=0,nt=null;me!==null&&ve<R.length;ve++){me.index>ve?(nt=me,me=null):nt=me.sibling;var Me=U(T,me,R[ve],Q);if(Me===null){me===null&&(me=nt);break}e&&me&&Me.alternate===null&&t(T,me),E=u(Me,E,ve),he===null?de=Me:he.sibling=Me,he=Me,me=nt}if(ve===R.length)return n(T,me),Be&&Mr(T,ve),de;if(me===null){for(;ve<R.length;ve++)me=V(T,R[ve],Q),me!==null&&(E=u(me,E,ve),he===null?de=me:he.sibling=me,he=me);return Be&&Mr(T,ve),de}for(me=s(T,me);ve<R.length;ve++)nt=ee(me,T,ve,R[ve],Q),nt!==null&&(e&&nt.alternate!==null&&me.delete(nt.key===null?ve:nt.key),E=u(nt,E,ve),he===null?de=nt:he.sibling=nt,he=nt);return e&&me.forEach(function(ar){return t(T,ar)}),Be&&Mr(T,ve),de}function ue(T,E,R,Q){var de=$(R);if(typeof de!="function")throw Error(a(150));if(R=de.call(R),R==null)throw Error(a(151));for(var he=de=null,me=E,ve=E=0,nt=null,Me=R.next();me!==null&&!Me.done;ve++,Me=R.next()){me.index>ve?(nt=me,me=null):nt=me.sibling;var ar=U(T,me,Me.value,Q);if(ar===null){me===null&&(me=nt);break}e&&me&&ar.alternate===null&&t(T,me),E=u(ar,E,ve),he===null?de=ar:he.sibling=ar,he=ar,me=nt}if(Me.done)return n(T,me),Be&&Mr(T,ve),de;if(me===null){for(;!Me.done;ve++,Me=R.next())Me=V(T,Me.value,Q),Me!==null&&(E=u(Me,E,ve),he===null?de=Me:he.sibling=Me,he=Me);return Be&&Mr(T,ve),de}for(me=s(T,me);!Me.done;ve++,Me=R.next())Me=ee(me,T,ve,Me.value,Q),Me!==null&&(e&&Me.alternate!==null&&me.delete(Me.key===null?ve:Me.key),E=u(Me,E,ve),he===null?de=Me:he.sibling=Me,he=Me);return e&&me.forEach(function(yy){return t(T,yy)}),Be&&Mr(T,ve),de}function Ge(T,E,R,Q){if(typeof R=="object"&&R!==null&&R.type===K&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case te:e:{for(var de=R.key,he=E;he!==null;){if(he.key===de){if(de=R.type,de===K){if(he.tag===7){n(T,he.sibling),E=i(he,R.props.children),E.return=T,T=E;break e}}else if(he.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===be&&Rd(de)===he.type){n(T,he.sibling),E=i(he,R.props),E.ref=Cs(T,he,R),E.return=T,T=E;break e}n(T,he);break}else t(T,he);he=he.sibling}R.type===K?(E=Dr(R.props.children,T.mode,Q,R.key),E.return=T,T=E):(Q=ri(R.type,R.key,R.props,null,T.mode,Q),Q.ref=Cs(T,E,R),Q.return=T,T=Q)}return f(T);case ne:e:{for(he=R.key;E!==null;){if(E.key===he)if(E.tag===4&&E.stateNode.containerInfo===R.containerInfo&&E.stateNode.implementation===R.implementation){n(T,E.sibling),E=i(E,R.children||[]),E.return=T,T=E;break e}else{n(T,E);break}else t(T,E);E=E.sibling}E=pu(R,T.mode,Q),E.return=T,T=E}return f(T);case be:return he=R._init,Ge(T,E,he(R._payload),Q)}if(Un(R))return le(T,E,R,Q);if($(R))return ue(T,E,R,Q);Oa(T,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,E!==null&&E.tag===6?(n(T,E.sibling),E=i(E,R),E.return=T,T=E):(n(T,E),E=fu(R,T.mode,Q),E.return=T,T=E),f(T)):n(T,E)}return Ge}var wo=Id(!0),Od=Id(!1),za=qn(null),_a=null,So=null,bl=null;function kl(){bl=So=_a=null}function Cl(e){var t=za.current;Fe(za),e._currentValue=t}function El(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 bo(e,t){_a=e,bl=So=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Et=!0),e.firstContext=null)}function Ft(e){var t=e._currentValue;if(bl!==e)if(e={context:e,memoizedValue:t,next:null},So===null){if(_a===null)throw Error(a(308));So=e,_a.dependencies={lanes:0,firstContext:e}}else So=So.next=e;return t}var Tr=null;function Nl(e){Tr===null?Tr=[e]:Tr.push(e)}function zd(e,t,n,s){var i=t.interleaved;return i===null?(n.next=n,Nl(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pn(e,s)}function Pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Zn=!1;function Pl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _d(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(je&2)!==0){var i=s.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),s.pending=t,Pn(e,n)}return i=s.interleaved,i===null?(t.next=t,Nl(s)):(t.next=i.next,i.next=t),s.interleaved=t,Pn(e,n)}function Aa(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,Bi(e,n)}}function Ad(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var i=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?i=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?i=u=t:u=u.next=t}else i=u=t;n={baseState:s.baseState,firstBaseUpdate:i,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 Da(e,t,n,s){var i=e.updateQueue;Zn=!1;var u=i.firstBaseUpdate,f=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var b=g,I=b.next;b.next=null,f===null?u=I:f.next=I,f=b;var W=e.alternate;W!==null&&(W=W.updateQueue,g=W.lastBaseUpdate,g!==f&&(g===null?W.firstBaseUpdate=I:g.next=I,W.lastBaseUpdate=b))}if(u!==null){var V=i.baseState;f=0,W=I=b=null,g=u;do{var U=g.lane,ee=g.eventTime;if((s&U)===U){W!==null&&(W=W.next={eventTime:ee,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var le=e,ue=g;switch(U=t,ee=n,ue.tag){case 1:if(le=ue.payload,typeof le=="function"){V=le.call(ee,V,U);break e}V=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ue.payload,U=typeof le=="function"?le.call(ee,V,U):le,U==null)break e;V=G({},V,U);break e;case 2:Zn=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,U=i.effects,U===null?i.effects=[g]:U.push(g))}else ee={eventTime:ee,lane:U,tag:g.tag,payload:g.payload,callback:g.callback,next:null},W===null?(I=W=ee,b=V):W=W.next=ee,f|=U;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;U=g,g=U.next,U.next=null,i.lastBaseUpdate=U,i.shared.pending=null}}while(!0);if(W===null&&(b=V),i.baseState=b,i.firstBaseUpdate=I,i.lastBaseUpdate=W,t=i.shared.interleaved,t!==null){i=t;do f|=i.lane,i=i.next;while(i!==t)}else u===null&&(i.shared.lanes=0);Or|=f,e.lanes=f,e.memoizedState=V}}function Dd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],i=s.callback;if(i!==null){if(s.callback=null,s=n,typeof i!="function")throw Error(a(191,i));i.call(s)}}}var Es={},mn=qn(Es),Ns=qn(Es),Ps=qn(Es);function Rr(e){if(e===Es)throw Error(a(174));return e}function jl(e,t){switch(De(Ps,t),De(Ns,e),De(mn,Es),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ln(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ln(t,e)}Fe(mn),De(mn,t)}function ko(){Fe(mn),Fe(Ns),Fe(Ps)}function Ld(e){Rr(Ps.current);var t=Rr(mn.current),n=ln(t,e.type);t!==n&&(De(Ns,e),De(mn,n))}function Ml(e){Ns.current===e&&(Fe(mn),Fe(Ns))}var We=qn(0);function La(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 Tl=[];function Rl(){for(var e=0;e<Tl.length;e++)Tl[e]._workInProgressVersionPrimary=null;Tl.length=0}var Fa=D.ReactCurrentDispatcher,Il=D.ReactCurrentBatchConfig,Ir=0,Ve=null,Ye=null,et=null,Ua=!1,js=!1,Ms=0,Fg=0;function ut(){throw Error(a(321))}function Ol(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function zl(e,t,n,s,i,u){if(Ir=u,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fa.current=e===null||e.memoizedState===null?Vg:$g,e=n(s,i),js){u=0;do{if(js=!1,Ms=0,25<=u)throw Error(a(301));u+=1,et=Ye=null,t.updateQueue=null,Fa.current=Qg,e=n(s,i)}while(js)}if(Fa.current=Va,t=Ye!==null&&Ye.next!==null,Ir=0,et=Ye=Ve=null,Ua=!1,t)throw Error(a(300));return e}function _l(){var e=Ms!==0;return Ms=0,e}function gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Ve.memoizedState=et=e:et=et.next=e,et}function Ut(){if(Ye===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=et===null?Ve.memoizedState:et.next;if(t!==null)et=t,Ye=e;else{if(e===null)throw Error(a(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},et===null?Ve.memoizedState=et=e:et=et.next=e}return et}function Ts(e,t){return typeof t=="function"?t(e):t}function Al(e){var t=Ut(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var s=Ye,i=s.baseQueue,u=n.pending;if(u!==null){if(i!==null){var f=i.next;i.next=u.next,u.next=f}s.baseQueue=i=u,n.pending=null}if(i!==null){u=i.next,s=s.baseState;var g=f=null,b=null,I=u;do{var W=I.lane;if((Ir&W)===W)b!==null&&(b=b.next={lane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),s=I.hasEagerState?I.eagerState:e(s,I.action);else{var V={lane:W,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null};b===null?(g=b=V,f=s):b=b.next=V,Ve.lanes|=W,Or|=W}I=I.next}while(I!==null&&I!==u);b===null?f=s:b.next=g,Gt(s,t.memoizedState)||(Et=!0),t.memoizedState=s,t.baseState=f,t.baseQueue=b,n.lastRenderedState=s}if(e=n.interleaved,e!==null){i=e;do u=i.lane,Ve.lanes|=u,Or|=u,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Dl(e){var t=Ut(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var s=n.dispatch,i=n.pending,u=t.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do u=e(u,f.action),f=f.next;while(f!==i);Gt(u,t.memoizedState)||(Et=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function Fd(){}function Ud(e,t){var n=Ve,s=Ut(),i=t(),u=!Gt(s.memoizedState,i);if(u&&(s.memoizedState=i,Et=!0),s=s.queue,Ll(Vd.bind(null,n,s,e),[e]),s.getSnapshot!==t||u||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,Rs(9,Wd.bind(null,n,s,i,t),void 0,null),tt===null)throw Error(a(349));(Ir&30)!==0||Bd(n,t,i)}return i}function Bd(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 Wd(e,t,n,s){t.value=n,t.getSnapshot=s,$d(t)&&Qd(e)}function Vd(e,t,n){return n(function(){$d(t)&&Qd(e)})}function $d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function Qd(e){var t=Pn(e,1);t!==null&&Jt(t,e,1,-1)}function Hd(e){var t=gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ts,lastRenderedState:e},t.queue=e,e=e.dispatch=Wg.bind(null,Ve,e),[t.memoizedState,e]}function Rs(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 Kd(){return Ut().memoizedState}function Ba(e,t,n,s){var i=gn();Ve.flags|=e,i.memoizedState=Rs(1|t,n,void 0,s===void 0?null:s)}function Wa(e,t,n,s){var i=Ut();s=s===void 0?null:s;var u=void 0;if(Ye!==null){var f=Ye.memoizedState;if(u=f.destroy,s!==null&&Ol(s,f.deps)){i.memoizedState=Rs(t,n,u,s);return}}Ve.flags|=e,i.memoizedState=Rs(1|t,n,u,s)}function Gd(e,t){return Ba(8390656,8,e,t)}function Ll(e,t){return Wa(2048,8,e,t)}function qd(e,t){return Wa(4,2,e,t)}function Yd(e,t){return Wa(4,4,e,t)}function Xd(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 Zd(e,t,n){return n=n!=null?n.concat([e]):null,Wa(4,4,Xd.bind(null,t,e),n)}function Fl(){}function Jd(e,t){var n=Ut();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Ol(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function ef(e,t){var n=Ut();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Ol(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function tf(e,t,n){return(Ir&21)===0?(e.baseState&&(e.baseState=!1,Et=!0),e.memoizedState=n):(Gt(n,t)||(n=Rc(),Ve.lanes|=n,Or|=n,e.baseState=!0),t)}function Ug(e,t){var n=ze;ze=n!==0&&4>n?n:4,e(!0);var s=Il.transition;Il.transition={};try{e(!1),t()}finally{ze=n,Il.transition=s}}function nf(){return Ut().memoizedState}function Bg(e,t,n){var s=rr(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},rf(e))of(t,n);else if(n=zd(e,t,n,s),n!==null){var i=gt();Jt(n,e,s,i),sf(n,t,s)}}function Wg(e,t,n){var s=rr(e),i={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(rf(e))of(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,g=u(f,n);if(i.hasEagerState=!0,i.eagerState=g,Gt(g,f)){var b=t.interleaved;b===null?(i.next=i,Nl(t)):(i.next=b.next,b.next=i),t.interleaved=i;return}}catch{}finally{}n=zd(e,t,i,s),n!==null&&(i=gt(),Jt(n,e,s,i),sf(n,t,s))}}function rf(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function of(e,t){js=Ua=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sf(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Bi(e,n)}}var Va={readContext:Ft,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},Vg={readContext:Ft,useCallback:function(e,t){return gn().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:Gd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,Xd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=gn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=gn();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=Bg.bind(null,Ve,e),[s.memoizedState,e]},useRef:function(e){var t=gn();return e={current:e},t.memoizedState=e},useState:Hd,useDebugValue:Fl,useDeferredValue:function(e){return gn().memoizedState=e},useTransition:function(){var e=Hd(!1),t=e[0];return e=Ug.bind(null,e[1]),gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ve,i=gn();if(Be){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),tt===null)throw Error(a(349));(Ir&30)!==0||Bd(s,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,Gd(Vd.bind(null,s,u,e),[e]),s.flags|=2048,Rs(9,Wd.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=gn(),t=tt.identifierPrefix;if(Be){var n=Nn,s=En;n=(s&~(1<<32-Kt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ms++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Fg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$g={readContext:Ft,useCallback:Jd,useContext:Ft,useEffect:Ll,useImperativeHandle:Zd,useInsertionEffect:qd,useLayoutEffect:Yd,useMemo:ef,useReducer:Al,useRef:Kd,useState:function(){return Al(Ts)},useDebugValue:Fl,useDeferredValue:function(e){var t=Ut();return tf(t,Ye.memoizedState,e)},useTransition:function(){var e=Al(Ts)[0],t=Ut().memoizedState;return[e,t]},useMutableSource:Fd,useSyncExternalStore:Ud,useId:nf,unstable_isNewReconciler:!1},Qg={readContext:Ft,useCallback:Jd,useContext:Ft,useEffect:Ll,useImperativeHandle:Zd,useInsertionEffect:qd,useLayoutEffect:Yd,useMemo:ef,useReducer:Dl,useRef:Kd,useState:function(){return Dl(Ts)},useDebugValue:Fl,useDeferredValue:function(e){var t=Ut();return Ye===null?t.memoizedState=e:tf(t,Ye.memoizedState,e)},useTransition:function(){var e=Dl(Ts)[0],t=Ut().memoizedState;return[e,t]},useMutableSource:Fd,useSyncExternalStore:Ud,useId:nf,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ul(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $a={isMounted:function(e){return(e=e._reactInternals)?Er(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=gt(),i=rr(e),u=jn(s,i);u.payload=t,n!=null&&(u.callback=n),t=Jn(e,u,i),t!==null&&(Jt(t,e,i,s),Aa(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=gt(),i=rr(e),u=jn(s,i);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Jn(e,u,i),t!==null&&(Jt(t,e,i,s),Aa(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gt(),s=rr(e),i=jn(n,s);i.tag=2,t!=null&&(i.callback=t),t=Jn(e,i,s),t!==null&&(Jt(t,e,s,n),Aa(t,e,s))}};function af(e,t,n,s,i,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,f):t.prototype&&t.prototype.isPureReactComponent?!ys(n,s)||!ys(i,u):!0}function lf(e,t,n){var s=!1,i=Yn,u=t.contextType;return typeof u=="object"&&u!==null?u=Ft(u):(i=Ct(t)?Pr:lt.current,s=t.contextTypes,u=(s=s!=null)?go(e,i):Yn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$a,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=u),t}function uf(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&&$a.enqueueReplaceState(t,t.state,null)}function Bl(e,t,n,s){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Pl(e);var u=t.contextType;typeof u=="object"&&u!==null?i.context=Ft(u):(u=Ct(t)?Pr:lt.current,i.context=go(e,u)),i.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Ul(e,t,u,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&$a.enqueueReplaceState(i,i.state,null),Da(e,n,i,s),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Co(e,t){try{var n="",s=t;do n+=ye(s),s=s.return;while(s);var i=n}catch(u){i=`
39
- Error generating stack: `+u.message+`
40
- `+u.stack}return{value:e,source:t,stack:i,digest:null}}function Wl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Vl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Hg=typeof WeakMap=="function"?WeakMap:Map;function cf(e,t,n){n=jn(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Xa||(Xa=!0,ou=s),Vl(e,t)},n}function df(e,t,n){n=jn(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var i=t.value;n.payload=function(){return s(i)},n.callback=function(){Vl(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Vl(e,t),typeof s!="function"&&(tr===null?tr=new Set([this]):tr.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),n}function ff(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Hg;var i=new Set;s.set(t,i)}else i=s.get(t),i===void 0&&(i=new Set,s.set(t,i));i.has(n)||(i.add(n),e=ay.bind(null,e,t,n),t.then(e,e))}function pf(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 hf(e,t,n,s,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=jn(-1,1),t.tag=2,Jn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Kg=D.ReactCurrentOwner,Et=!1;function mt(e,t,n,s){t.child=e===null?Od(t,null,n,s):wo(t,e.child,n,s)}function mf(e,t,n,s,i){n=n.render;var u=t.ref;return bo(t,i),s=zl(e,t,n,s,u,i),n=_l(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mn(e,t,i)):(Be&&n&&yl(t),t.flags|=1,mt(e,t,s,i),t.child)}function gf(e,t,n,s,i){if(e===null){var u=n.type;return typeof u=="function"&&!du(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,yf(e,t,u,s,i)):(e=ri(n.type,null,s,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&i)===0){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:ys,n(f,s)&&e.ref===t.ref)return Mn(e,t,i)}return t.flags|=1,e=sr(u,s),e.ref=t.ref,e.return=t,t.child=e}function yf(e,t,n,s,i){if(e!==null){var u=e.memoizedProps;if(ys(u,s)&&e.ref===t.ref)if(Et=!1,t.pendingProps=s=u,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Et=!0);else return t.lanes=e.lanes,Mn(e,t,i)}return $l(e,t,n,s,i)}function vf(e,t,n){var s=t.pendingProps,i=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},De(No,_t),_t|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,De(No,_t),_t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=u!==null?u.baseLanes:n,De(No,_t),_t|=s}else u!==null?(s=u.baseLanes|n,t.memoizedState=null):s=n,De(No,_t),_t|=s;return mt(e,t,i,n),t.child}function xf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $l(e,t,n,s,i){var u=Ct(n)?Pr:lt.current;return u=go(t,u),bo(t,i),n=zl(e,t,n,s,u,i),s=_l(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mn(e,t,i)):(Be&&s&&yl(t),t.flags|=1,mt(e,t,n,i),t.child)}function wf(e,t,n,s,i){if(Ct(n)){var u=!0;ja(t)}else u=!1;if(bo(t,i),t.stateNode===null)Ha(e,t),lf(t,n,s),Bl(t,n,s,i),s=!0;else if(e===null){var f=t.stateNode,g=t.memoizedProps;f.props=g;var b=f.context,I=n.contextType;typeof I=="object"&&I!==null?I=Ft(I):(I=Ct(n)?Pr:lt.current,I=go(t,I));var W=n.getDerivedStateFromProps,V=typeof W=="function"||typeof f.getSnapshotBeforeUpdate=="function";V||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==s||b!==I)&&uf(t,f,s,I),Zn=!1;var U=t.memoizedState;f.state=U,Da(t,s,f,i),b=t.memoizedState,g!==s||U!==b||kt.current||Zn?(typeof W=="function"&&(Ul(t,n,W,s),b=t.memoizedState),(g=Zn||af(t,n,g,s,U,b,I))?(V||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=b),f.props=s,f.state=b,f.context=I,s=g):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,_d(e,t),g=t.memoizedProps,I=t.type===t.elementType?g:Yt(t.type,g),f.props=I,V=t.pendingProps,U=f.context,b=n.contextType,typeof b=="object"&&b!==null?b=Ft(b):(b=Ct(n)?Pr:lt.current,b=go(t,b));var ee=n.getDerivedStateFromProps;(W=typeof ee=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==V||U!==b)&&uf(t,f,s,b),Zn=!1,U=t.memoizedState,f.state=U,Da(t,s,f,i);var le=t.memoizedState;g!==V||U!==le||kt.current||Zn?(typeof ee=="function"&&(Ul(t,n,ee,s),le=t.memoizedState),(I=Zn||af(t,n,I,s,U,le,b)||!1)?(W||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,le,b),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,le,b)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=le),f.props=s,f.state=le,f.context=b,s=I):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),s=!1)}return Ql(e,t,n,s,u,i)}function Ql(e,t,n,s,i,u){xf(e,t);var f=(t.flags&128)!==0;if(!s&&!f)return i&&Cd(t,n,!1),Mn(e,t,u);s=t.stateNode,Kg.current=t;var g=f&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&f?(t.child=wo(t,e.child,null,u),t.child=wo(t,null,g,u)):mt(e,t,g,u),t.memoizedState=s.state,i&&Cd(t,n,!0),t.child}function Sf(e){var t=e.stateNode;t.pendingContext?bd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bd(e,t.context,!1),jl(e,t.containerInfo)}function bf(e,t,n,s,i){return xo(),Sl(i),t.flags|=256,mt(e,t,n,s),t.child}var Hl={dehydrated:null,treeContext:null,retryLane:0};function Kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function kf(e,t,n){var s=t.pendingProps,i=We.current,u=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(i&2)!==0),g?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),De(We,i&1),e===null)return wl(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):(f=s.children,e=s.fallback,u?(s=t.mode,u=t.child,f={mode:"hidden",children:f},(s&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=f):u=oi(f,s,0,null),e=Dr(e,s,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Kl(n),t.memoizedState=Hl,e):Gl(t,f));if(i=e.memoizedState,i!==null&&(g=i.dehydrated,g!==null))return Gg(e,t,f,s,g,i,n);if(u){u=s.fallback,f=t.mode,i=e.child,g=i.sibling;var b={mode:"hidden",children:s.children};return(f&1)===0&&t.child!==i?(s=t.child,s.childLanes=0,s.pendingProps=b,t.deletions=null):(s=sr(i,b),s.subtreeFlags=i.subtreeFlags&14680064),g!==null?u=sr(g,u):(u=Dr(u,f,n,null),u.flags|=2),u.return=t,s.return=t,s.sibling=u,t.child=s,s=u,u=t.child,f=e.child.memoizedState,f=f===null?Kl(n):{baseLanes:f.baseLanes|n,cachePool:null,transitions:f.transitions},u.memoizedState=f,u.childLanes=e.childLanes&~n,t.memoizedState=Hl,s}return u=e.child,e=u.sibling,s=sr(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 Gl(e,t){return t=oi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qa(e,t,n,s){return s!==null&&Sl(s),wo(t,e.child,null,n),e=Gl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gg(e,t,n,s,i,u,f){if(n)return t.flags&256?(t.flags&=-257,s=Wl(Error(a(422))),Qa(e,t,f,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=s.fallback,i=t.mode,s=oi({mode:"visible",children:s.children},i,0,null),u=Dr(u,i,f,null),u.flags|=2,s.return=t,u.return=t,s.sibling=u,t.child=s,(t.mode&1)!==0&&wo(t,e.child,null,f),t.child.memoizedState=Kl(f),t.memoizedState=Hl,u);if((t.mode&1)===0)return Qa(e,t,f,null);if(i.data==="$!"){if(s=i.nextSibling&&i.nextSibling.dataset,s)var g=s.dgst;return s=g,u=Error(a(419)),s=Wl(u,s,void 0),Qa(e,t,f,s)}if(g=(f&e.childLanes)!==0,Et||g){if(s=tt,s!==null){switch(f&-f){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(s.suspendedLanes|f))!==0?0:i,i!==0&&i!==u.retryLane&&(u.retryLane=i,Pn(e,i),Jt(s,e,i,-1))}return cu(),s=Wl(Error(a(421))),Qa(e,t,f,s)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=iy.bind(null,e),i._reactRetry=t,null):(e=u.treeContext,zt=Gn(i.nextSibling),Ot=t,Be=!0,qt=null,e!==null&&(Dt[Lt++]=En,Dt[Lt++]=Nn,Dt[Lt++]=jr,En=e.id,Nn=e.overflow,jr=t),t=Gl(t,s.children),t.flags|=4096,t)}function Cf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),El(e.return,t,n)}function ql(e,t,n,s,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=s,u.tail=n,u.tailMode=i)}function Ef(e,t,n){var s=t.pendingProps,i=s.revealOrder,u=s.tail;if(mt(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&&Cf(e,n,t);else if(e.tag===19)Cf(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(De(We,s),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&La(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ql(t,!1,i,n,u);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&La(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ql(t,!0,n,null,u);break;case"together":ql(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ha(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Or|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=sr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qg(e,t,n){switch(t.tag){case 3:Sf(t),xo();break;case 5:Ld(t);break;case 1:Ct(t.type)&&ja(t);break;case 4:jl(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,i=t.memoizedProps.value;De(za,s._currentValue),s._currentValue=i;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(De(We,We.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?kf(e,t,n):(De(We,We.current&1),e=Mn(e,t,n),e!==null?e.sibling:null);De(We,We.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&128)!==0){if(s)return Ef(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),De(We,We.current),s)break;return null;case 22:case 23:return t.lanes=0,vf(e,t,n)}return Mn(e,t,n)}var Nf,Yl,Pf,jf;Nf=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}},Yl=function(){},Pf=function(e,t,n,s){var i=e.memoizedProps;if(i!==s){e=t.stateNode,Rr(mn.current);var u=null;switch(n){case"input":i=Zo(e,i),s=Zo(e,s),u=[];break;case"select":i=G({},i,{value:void 0}),s=G({},s,{value:void 0}),u=[];break;case"textarea":i=to(e,i),s=to(e,s),u=[];break;default:typeof i.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Ea)}cn(n,s);var f;n=null;for(I in i)if(!s.hasOwnProperty(I)&&i.hasOwnProperty(I)&&i[I]!=null)if(I==="style"){var g=i[I];for(f in g)g.hasOwnProperty(f)&&(n||(n={}),n[f]="")}else I!=="dangerouslySetInnerHTML"&&I!=="children"&&I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(c.hasOwnProperty(I)?u||(u=[]):(u=u||[]).push(I,null));for(I in s){var b=s[I];if(g=i!=null?i[I]:void 0,s.hasOwnProperty(I)&&b!==g&&(b!=null||g!=null))if(I==="style")if(g){for(f in g)!g.hasOwnProperty(f)||b&&b.hasOwnProperty(f)||(n||(n={}),n[f]="");for(f in b)b.hasOwnProperty(f)&&g[f]!==b[f]&&(n||(n={}),n[f]=b[f])}else n||(u||(u=[]),u.push(I,n)),n=b;else I==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,g=g?g.__html:void 0,b!=null&&g!==b&&(u=u||[]).push(I,b)):I==="children"?typeof b!="string"&&typeof b!="number"||(u=u||[]).push(I,""+b):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&(c.hasOwnProperty(I)?(b!=null&&I==="onScroll"&&Le("scroll",e),u||g===b||(u=[])):(u=u||[]).push(I,b))}n&&(u=u||[]).push("style",n);var I=u;(t.updateQueue=I)&&(t.flags|=4)}},jf=function(e,t,n,s){n!==s&&(t.flags|=4)};function Is(e,t){if(!Be)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 ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags&14680064,s|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags,s|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Yg(e,t,n){var s=t.pendingProps;switch(vl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return Ct(t.type)&&Pa(),ct(t),null;case 3:return s=t.stateNode,ko(),Fe(kt),Fe(lt),Rl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ia(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qt!==null&&(iu(qt),qt=null))),Yl(e,t),ct(t),null;case 5:Ml(t);var i=Rr(Ps.current);if(n=t.type,e!==null&&t.stateNode!=null)Pf(e,t,n,s,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(a(166));return ct(t),null}if(e=Rr(mn.current),Ia(t)){s=t.stateNode,n=t.type;var u=t.memoizedProps;switch(s[hn]=t,s[bs]=u,e=(t.mode&1)!==0,n){case"dialog":Le("cancel",s),Le("close",s);break;case"iframe":case"object":case"embed":Le("load",s);break;case"video":case"audio":for(i=0;i<xs.length;i++)Le(xs[i],s);break;case"source":Le("error",s);break;case"img":case"image":case"link":Le("error",s),Le("load",s);break;case"details":Le("toggle",s);break;case"input":Xs(s,u),Le("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!u.multiple},Le("invalid",s);break;case"textarea":an(s,u),Le("invalid",s)}cn(n,u),i=null;for(var f in u)if(u.hasOwnProperty(f)){var g=u[f];f==="children"?typeof g=="string"?s.textContent!==g&&(u.suppressHydrationWarning!==!0&&Ca(s.textContent,g,e),i=["children",g]):typeof g=="number"&&s.textContent!==""+g&&(u.suppressHydrationWarning!==!0&&Ca(s.textContent,g,e),i=["children",""+g]):c.hasOwnProperty(f)&&g!=null&&f==="onScroll"&&Le("scroll",s)}switch(n){case"input":sn(s),eo(s,u,!0);break;case"textarea":sn(s),Js(s);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(s.onclick=Ea)}s=i,t.updateQueue=s,s!==null&&(t.flags|=4)}else{f=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=pt(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=f.createElement(n,{is:s.is}):(e=f.createElement(n),n==="select"&&(f=e,s.multiple?f.multiple=!0:s.size&&(f.size=s.size))):e=f.createElementNS(e,n),e[hn]=t,e[bs]=s,Nf(e,t,!1,!1),t.stateNode=e;e:{switch(f=ns(n,s),n){case"dialog":Le("cancel",e),Le("close",e),i=s;break;case"iframe":case"object":case"embed":Le("load",e),i=s;break;case"video":case"audio":for(i=0;i<xs.length;i++)Le(xs[i],e);i=s;break;case"source":Le("error",e),i=s;break;case"img":case"image":case"link":Le("error",e),Le("load",e),i=s;break;case"details":Le("toggle",e),i=s;break;case"input":Xs(e,s),i=Zo(e,s),Le("invalid",e);break;case"option":i=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},i=G({},s,{value:void 0}),Le("invalid",e);break;case"textarea":an(e,s),i=to(e,s),Le("invalid",e);break;default:i=s}cn(n,i),g=i;for(u in g)if(g.hasOwnProperty(u)){var b=g[u];u==="style"?bn(e,b):u==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&ea(e,b)):u==="children"?typeof b=="string"?(n!=="textarea"||b!=="")&&un(e,b):typeof b=="number"&&un(e,""+b):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?b!=null&&u==="onScroll"&&Le("scroll",e):b!=null&&B(e,u,b,f))}switch(n){case"input":sn(e),eo(e,s,!1);break;case"textarea":sn(e),Js(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Pe(s.value));break;case"select":e.multiple=!!s.multiple,u=s.value,u!=null?At(e,!!s.multiple,u,!1):s.defaultValue!=null&&At(e,!!s.multiple,s.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ea)}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 ct(t),null;case 6:if(e&&t.stateNode!=null)jf(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(a(166));if(n=Rr(Ps.current),Rr(mn.current),Ia(t)){if(s=t.stateNode,n=t.memoizedProps,s[hn]=t,(u=s.nodeValue!==n)&&(e=Ot,e!==null))switch(e.tag){case 3:Ca(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ca(s.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[hn]=t,t.stateNode=s}return ct(t),null;case 13:if(Fe(We),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Be&&zt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Td(),xo(),t.flags|=98560,u=!1;else if(u=Ia(t),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(a(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(a(317));u[hn]=t}else xo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ct(t),u=!1}else qt!==null&&(iu(qt),qt=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?Xe===0&&(Xe=3):cu())),t.updateQueue!==null&&(t.flags|=4),ct(t),null);case 4:return ko(),Yl(e,t),e===null&&ws(t.stateNode.containerInfo),ct(t),null;case 10:return Cl(t.type._context),ct(t),null;case 17:return Ct(t.type)&&Pa(),ct(t),null;case 19:if(Fe(We),u=t.memoizedState,u===null)return ct(t),null;if(s=(t.flags&128)!==0,f=u.rendering,f===null)if(s)Is(u,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=La(e),f!==null){for(t.flags|=128,Is(u,!1),s=f.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,f=u.alternate,f===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=f.childLanes,u.lanes=f.lanes,u.child=f.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=f.memoizedProps,u.memoizedState=f.memoizedState,u.updateQueue=f.updateQueue,u.type=f.type,e=f.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return De(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ke()>Po&&(t.flags|=128,s=!0,Is(u,!1),t.lanes=4194304)}else{if(!s)if(e=La(f),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Is(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Be)return ct(t),null}else 2*Ke()-u.renderingStartTime>Po&&n!==1073741824&&(t.flags|=128,s=!0,Is(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(n=u.last,n!==null?n.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ke(),t.sibling=null,n=We.current,De(We,s?n&1|2:n&1),t):(ct(t),null);case 22:case 23:return uu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(_t&1073741824)!==0&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Xg(e,t){switch(vl(t),t.tag){case 1:return Ct(t.type)&&Pa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ko(),Fe(kt),Fe(lt),Rl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ml(t),null;case 13:if(Fe(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));xo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(We),null;case 4:return ko(),null;case 10:return Cl(t.type._context),null;case 22:case 23:return uu(),null;case 24:return null;default:return null}}var Ka=!1,dt=!1,Zg=typeof WeakSet=="function"?WeakSet:Set,se=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){$e(e,t,s)}else n.current=null}function Xl(e,t,n){try{n()}catch(s){$e(e,t,s)}}var Mf=!1;function Jg(e,t){if(ul=pa,e=ad(),tl(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 i=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var f=0,g=-1,b=-1,I=0,W=0,V=e,U=null;t:for(;;){for(var ee;V!==n||i!==0&&V.nodeType!==3||(g=f+i),V!==u||s!==0&&V.nodeType!==3||(b=f+s),V.nodeType===3&&(f+=V.nodeValue.length),(ee=V.firstChild)!==null;)U=V,V=ee;for(;;){if(V===e)break t;if(U===n&&++I===i&&(g=f),U===u&&++W===s&&(b=f),(ee=V.nextSibling)!==null)break;V=U,U=V.parentNode}V=ee}n=g===-1||b===-1?null:{start:g,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(cl={focusedElem:e,selectionRange:n},pa=!1,se=t;se!==null;)if(t=se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,se=e;else for(;se!==null;){t=se;try{var le=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(le!==null){var ue=le.memoizedProps,Ge=le.memoizedState,T=t.stateNode,E=T.getSnapshotBeforeUpdate(t.elementType===t.type?ue:Yt(t.type,ue),Ge);T.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var R=t.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(Q){$e(t,t.return,Q)}if(e=t.sibling,e!==null){e.return=t.return,se=e;break}se=t.return}return le=Mf,Mf=!1,le}function Os(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&e)===e){var u=i.destroy;i.destroy=void 0,u!==void 0&&Xl(t,n,u)}i=i.next}while(i!==s)}}function Ga(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 Zl(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 Tf(e){var t=e.alternate;t!==null&&(e.alternate=null,Tf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hn],delete t[bs],delete t[hl],delete t[_g],delete t[Ag])),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 Rf(e){return e.tag===5||e.tag===3||e.tag===4}function If(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rf(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 Jl(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=Ea));else if(s!==4&&(e=e.child,e!==null))for(Jl(e,t,n),e=e.sibling;e!==null;)Jl(e,t,n),e=e.sibling}function eu(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(eu(e,t,n),e=e.sibling;e!==null;)eu(e,t,n),e=e.sibling}var st=null,Xt=!1;function er(e,t,n){for(n=n.child;n!==null;)Of(e,t,n),n=n.sibling}function Of(e,t,n){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(ia,n)}catch{}switch(n.tag){case 5:dt||Eo(n,t);case 6:var s=st,i=Xt;st=null,er(e,t,n),st=s,Xt=i,st!==null&&(Xt?(e=st,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):st.removeChild(n.stateNode));break;case 18:st!==null&&(Xt?(e=st,n=n.stateNode,e.nodeType===8?pl(e.parentNode,n):e.nodeType===1&&pl(e,n),ds(e)):pl(st,n.stateNode));break;case 4:s=st,i=Xt,st=n.stateNode.containerInfo,Xt=!0,er(e,t,n),st=s,Xt=i;break;case 0:case 11:case 14:case 15:if(!dt&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){i=s=s.next;do{var u=i,f=u.destroy;u=u.tag,f!==void 0&&((u&2)!==0||(u&4)!==0)&&Xl(n,t,f),i=i.next}while(i!==s)}er(e,t,n);break;case 1:if(!dt&&(Eo(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(g){$e(n,t,g)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(dt=(s=dt)||n.memoizedState!==null,er(e,t,n),dt=s):er(e,t,n);break;default:er(e,t,n)}}function zf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zg),t.forEach(function(s){var i=ly.bind(null,e,s);n.has(s)||(n.add(s),s.then(i,i))})}}function Zt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var i=n[s];try{var u=e,f=t,g=f;e:for(;g!==null;){switch(g.tag){case 5:st=g.stateNode,Xt=!1;break e;case 3:st=g.stateNode.containerInfo,Xt=!0;break e;case 4:st=g.stateNode.containerInfo,Xt=!0;break e}g=g.return}if(st===null)throw Error(a(160));Of(u,f,i),st=null,Xt=!1;var b=i.alternate;b!==null&&(b.return=null),i.return=null}catch(I){$e(i,t,I)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)_f(t,e),t=t.sibling}function _f(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zt(t,e),yn(e),s&4){try{Os(3,e,e.return),Ga(3,e)}catch(ue){$e(e,e.return,ue)}try{Os(5,e,e.return)}catch(ue){$e(e,e.return,ue)}}break;case 1:Zt(t,e),yn(e),s&512&&n!==null&&Eo(n,n.return);break;case 5:if(Zt(t,e),yn(e),s&512&&n!==null&&Eo(n,n.return),e.flags&32){var i=e.stateNode;try{un(i,"")}catch(ue){$e(e,e.return,ue)}}if(s&4&&(i=e.stateNode,i!=null)){var u=e.memoizedProps,f=n!==null?n.memoizedProps:u,g=e.type,b=e.updateQueue;if(e.updateQueue=null,b!==null)try{g==="input"&&u.type==="radio"&&u.name!=null&&Jo(i,u),ns(g,f);var I=ns(g,u);for(f=0;f<b.length;f+=2){var W=b[f],V=b[f+1];W==="style"?bn(i,V):W==="dangerouslySetInnerHTML"?ea(i,V):W==="children"?un(i,V):B(i,W,V,I)}switch(g){case"input":es(i,u);break;case"textarea":Zs(i,u);break;case"select":var U=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!u.multiple;var ee=u.value;ee!=null?At(i,!!u.multiple,ee,!1):U!==!!u.multiple&&(u.defaultValue!=null?At(i,!!u.multiple,u.defaultValue,!0):At(i,!!u.multiple,u.multiple?[]:"",!1))}i[bs]=u}catch(ue){$e(e,e.return,ue)}}break;case 6:if(Zt(t,e),yn(e),s&4){if(e.stateNode===null)throw Error(a(162));i=e.stateNode,u=e.memoizedProps;try{i.nodeValue=u}catch(ue){$e(e,e.return,ue)}}break;case 3:if(Zt(t,e),yn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ds(t.containerInfo)}catch(ue){$e(e,e.return,ue)}break;case 4:Zt(t,e),yn(e);break;case 13:Zt(t,e),yn(e),i=e.child,i.flags&8192&&(u=i.memoizedState!==null,i.stateNode.isHidden=u,!u||i.alternate!==null&&i.alternate.memoizedState!==null||(ru=Ke())),s&4&&zf(e);break;case 22:if(W=n!==null&&n.memoizedState!==null,e.mode&1?(dt=(I=dt)||W,Zt(t,e),dt=I):Zt(t,e),yn(e),s&8192){if(I=e.memoizedState!==null,(e.stateNode.isHidden=I)&&!W&&(e.mode&1)!==0)for(se=e,W=e.child;W!==null;){for(V=se=W;se!==null;){switch(U=se,ee=U.child,U.tag){case 0:case 11:case 14:case 15:Os(4,U,U.return);break;case 1:Eo(U,U.return);var le=U.stateNode;if(typeof le.componentWillUnmount=="function"){s=U,n=U.return;try{t=s,le.props=t.memoizedProps,le.state=t.memoizedState,le.componentWillUnmount()}catch(ue){$e(s,n,ue)}}break;case 5:Eo(U,U.return);break;case 22:if(U.memoizedState!==null){Lf(V);continue}}ee!==null?(ee.return=U,se=ee):Lf(V)}W=W.sibling}e:for(W=null,V=e;;){if(V.tag===5){if(W===null){W=V;try{i=V.stateNode,I?(u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(g=V.stateNode,b=V.memoizedProps.style,f=b!=null&&b.hasOwnProperty("display")?b.display:null,g.style.display=ro("display",f))}catch(ue){$e(e,e.return,ue)}}}else if(V.tag===6){if(W===null)try{V.stateNode.nodeValue=I?"":V.memoizedProps}catch(ue){$e(e,e.return,ue)}}else if((V.tag!==22&&V.tag!==23||V.memoizedState===null||V===e)&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===e)break e;for(;V.sibling===null;){if(V.return===null||V.return===e)break e;W===V&&(W=null),V=V.return}W===V&&(W=null),V.sibling.return=V.return,V=V.sibling}}break;case 19:Zt(t,e),yn(e),s&4&&zf(e);break;case 21:break;default:Zt(t,e),yn(e)}}function yn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rf(n)){var s=n;break e}n=n.return}throw Error(a(160))}switch(s.tag){case 5:var i=s.stateNode;s.flags&32&&(un(i,""),s.flags&=-33);var u=If(e);eu(e,u,i);break;case 3:case 4:var f=s.stateNode.containerInfo,g=If(e);Jl(e,g,f);break;default:throw Error(a(161))}}catch(b){$e(e,e.return,b)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ey(e,t,n){se=e,Af(e)}function Af(e,t,n){for(var s=(e.mode&1)!==0;se!==null;){var i=se,u=i.child;if(i.tag===22&&s){var f=i.memoizedState!==null||Ka;if(!f){var g=i.alternate,b=g!==null&&g.memoizedState!==null||dt;g=Ka;var I=dt;if(Ka=f,(dt=b)&&!I)for(se=i;se!==null;)f=se,b=f.child,f.tag===22&&f.memoizedState!==null?Ff(i):b!==null?(b.return=f,se=b):Ff(i);for(;u!==null;)se=u,Af(u),u=u.sibling;se=i,Ka=g,dt=I}Df(e)}else(i.subtreeFlags&8772)!==0&&u!==null?(u.return=i,se=u):Df(e)}}function Df(e){for(;se!==null;){var t=se;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:dt||Ga(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!dt)if(n===null)s.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Yt(t.type,n.memoizedProps);s.componentDidUpdate(i,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Dd(t,u,s);break;case 3:var f=t.updateQueue;if(f!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Dd(t,f,n)}break;case 5:var g=t.stateNode;if(n===null&&t.flags&4){n=g;var b=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&n.focus();break;case"img":b.src&&(n.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var I=t.alternate;if(I!==null){var W=I.memoizedState;if(W!==null){var V=W.dehydrated;V!==null&&ds(V)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}dt||t.flags&512&&Zl(t)}catch(U){$e(t,t.return,U)}}if(t===e){se=null;break}if(n=t.sibling,n!==null){n.return=t.return,se=n;break}se=t.return}}function Lf(e){for(;se!==null;){var t=se;if(t===e){se=null;break}var n=t.sibling;if(n!==null){n.return=t.return,se=n;break}se=t.return}}function Ff(e){for(;se!==null;){var t=se;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ga(4,t)}catch(b){$e(t,n,b)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var i=t.return;try{s.componentDidMount()}catch(b){$e(t,i,b)}}var u=t.return;try{Zl(t)}catch(b){$e(t,u,b)}break;case 5:var f=t.return;try{Zl(t)}catch(b){$e(t,f,b)}}}catch(b){$e(t,t.return,b)}if(t===e){se=null;break}var g=t.sibling;if(g!==null){g.return=t.return,se=g;break}se=t.return}}var ty=Math.ceil,qa=D.ReactCurrentDispatcher,tu=D.ReactCurrentOwner,Bt=D.ReactCurrentBatchConfig,je=0,tt=null,qe=null,at=0,_t=0,No=qn(0),Xe=0,zs=null,Or=0,Ya=0,nu=0,_s=null,Nt=null,ru=0,Po=1/0,Tn=null,Xa=!1,ou=null,tr=null,Za=!1,nr=null,Ja=0,As=0,su=null,ei=-1,ti=0;function gt(){return(je&6)!==0?Ke():ei!==-1?ei:ei=Ke()}function rr(e){return(e.mode&1)===0?1:(je&2)!==0&&at!==0?at&-at:Lg.transition!==null?(ti===0&&(ti=Rc()),ti):(e=ze,e!==0||(e=window.event,e=e===void 0?16:Uc(e.type)),e)}function Jt(e,t,n,s){if(50<As)throw As=0,su=null,Error(a(185));as(e,n,s),((je&2)===0||e!==tt)&&(e===tt&&((je&2)===0&&(Ya|=n),Xe===4&&or(e,at)),Pt(e,s),n===1&&je===0&&(t.mode&1)===0&&(Po=Ke()+500,Ma&&Xn()))}function Pt(e,t){var n=e.callbackNode;Lm(e,t);var s=ca(e,e===tt?at:0);if(s===0)n!==null&&jc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&jc(n),t===1)e.tag===0?Dg(Bf.bind(null,e)):Ed(Bf.bind(null,e)),Og(function(){(je&6)===0&&Xn()}),n=null;else{switch(Ic(s)){case 1:n=Li;break;case 4:n=Mc;break;case 16:n=aa;break;case 536870912:n=Tc;break;default:n=aa}n=qf(n,Uf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Uf(e,t){if(ei=-1,ti=0,(je&6)!==0)throw Error(a(327));var n=e.callbackNode;if(jo()&&e.callbackNode!==n)return null;var s=ca(e,e===tt?at:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=ni(e,s);else{t=s;var i=je;je|=2;var u=Vf();(tt!==e||at!==t)&&(Tn=null,Po=Ke()+500,_r(e,t));do try{oy();break}catch(g){Wf(e,g)}while(!0);kl(),qa.current=u,je=i,qe!==null?t=0:(tt=null,at=0,t=Xe)}if(t!==0){if(t===2&&(i=Fi(e),i!==0&&(s=i,t=au(e,i))),t===1)throw n=zs,_r(e,0),or(e,s),Pt(e,Ke()),n;if(t===6)or(e,s);else{if(i=e.current.alternate,(s&30)===0&&!ny(i)&&(t=ni(e,s),t===2&&(u=Fi(e),u!==0&&(s=u,t=au(e,u))),t===1))throw n=zs,_r(e,0),or(e,s),Pt(e,Ke()),n;switch(e.finishedWork=i,e.finishedLanes=s,t){case 0:case 1:throw Error(a(345));case 2:Ar(e,Nt,Tn);break;case 3:if(or(e,s),(s&130023424)===s&&(t=ru+500-Ke(),10<t)){if(ca(e,0)!==0)break;if(i=e.suspendedLanes,(i&s)!==s){gt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=fl(Ar.bind(null,e,Nt,Tn),t);break}Ar(e,Nt,Tn);break;case 4:if(or(e,s),(s&4194240)===s)break;for(t=e.eventTimes,i=-1;0<s;){var f=31-Kt(s);u=1<<f,f=t[f],f>i&&(i=f),s&=~u}if(s=i,s=Ke()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*ty(s/1960))-s,10<s){e.timeoutHandle=fl(Ar.bind(null,e,Nt,Tn),s);break}Ar(e,Nt,Tn);break;case 5:Ar(e,Nt,Tn);break;default:throw Error(a(329))}}}return Pt(e,Ke()),e.callbackNode===n?Uf.bind(null,e):null}function au(e,t){var n=_s;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=ni(e,t),e!==2&&(t=Nt,Nt=n,t!==null&&iu(t)),e}function iu(e){Nt===null?Nt=e:Nt.push.apply(Nt,e)}function ny(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 i=n[s],u=i.getSnapshot;i=i.value;try{if(!Gt(u(),i))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 or(e,t){for(t&=~nu,t&=~Ya,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kt(t),s=1<<n;e[n]=-1,t&=~s}}function Bf(e){if((je&6)!==0)throw Error(a(327));jo();var t=ca(e,0);if((t&1)===0)return Pt(e,Ke()),null;var n=ni(e,t);if(e.tag!==0&&n===2){var s=Fi(e);s!==0&&(t=s,n=au(e,s))}if(n===1)throw n=zs,_r(e,0),or(e,t),Pt(e,Ke()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ar(e,Nt,Tn),Pt(e,Ke()),null}function lu(e,t){var n=je;je|=1;try{return e(t)}finally{je=n,je===0&&(Po=Ke()+500,Ma&&Xn())}}function zr(e){nr!==null&&nr.tag===0&&(je&6)===0&&jo();var t=je;je|=1;var n=Bt.transition,s=ze;try{if(Bt.transition=null,ze=1,e)return e()}finally{ze=s,Bt.transition=n,je=t,(je&6)===0&&Xn()}}function uu(){_t=No.current,Fe(No)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ig(n)),qe!==null)for(n=qe.return;n!==null;){var s=n;switch(vl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Pa();break;case 3:ko(),Fe(kt),Fe(lt),Rl();break;case 5:Ml(s);break;case 4:ko();break;case 13:Fe(We);break;case 19:Fe(We);break;case 10:Cl(s.type._context);break;case 22:case 23:uu()}n=n.return}if(tt=e,qe=e=sr(e.current,null),at=_t=t,Xe=0,zs=null,nu=Ya=Or=0,Nt=_s=null,Tr!==null){for(t=0;t<Tr.length;t++)if(n=Tr[t],s=n.interleaved,s!==null){n.interleaved=null;var i=s.next,u=n.pending;if(u!==null){var f=u.next;u.next=i,s.next=f}n.pending=s}Tr=null}return e}function Wf(e,t){do{var n=qe;try{if(kl(),Fa.current=Va,Ua){for(var s=Ve.memoizedState;s!==null;){var i=s.queue;i!==null&&(i.pending=null),s=s.next}Ua=!1}if(Ir=0,et=Ye=Ve=null,js=!1,Ms=0,tu.current=null,n===null||n.return===null){Xe=1,zs=t,qe=null;break}e:{var u=e,f=n.return,g=n,b=t;if(t=at,g.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var I=b,W=g,V=W.tag;if((W.mode&1)===0&&(V===0||V===11||V===15)){var U=W.alternate;U?(W.updateQueue=U.updateQueue,W.memoizedState=U.memoizedState,W.lanes=U.lanes):(W.updateQueue=null,W.memoizedState=null)}var ee=pf(f);if(ee!==null){ee.flags&=-257,hf(ee,f,g,u,t),ee.mode&1&&ff(u,I,t),t=ee,b=I;var le=t.updateQueue;if(le===null){var ue=new Set;ue.add(b),t.updateQueue=ue}else le.add(b);break e}else{if((t&1)===0){ff(u,I,t),cu();break e}b=Error(a(426))}}else if(Be&&g.mode&1){var Ge=pf(f);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),hf(Ge,f,g,u,t),Sl(Co(b,g));break e}}u=b=Co(b,g),Xe!==4&&(Xe=2),_s===null?_s=[u]:_s.push(u),u=f;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var T=cf(u,b,t);Ad(u,T);break e;case 1:g=b;var E=u.type,R=u.stateNode;if((u.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(tr===null||!tr.has(R)))){u.flags|=65536,t&=-t,u.lanes|=t;var Q=df(u,g,t);Ad(u,Q);break e}}u=u.return}while(u!==null)}Qf(n)}catch(de){t=de,qe===n&&n!==null&&(qe=n=n.return);continue}break}while(!0)}function Vf(){var e=qa.current;return qa.current=Va,e===null?Va:e}function cu(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),tt===null||(Or&268435455)===0&&(Ya&268435455)===0||or(tt,at)}function ni(e,t){var n=je;je|=2;var s=Vf();(tt!==e||at!==t)&&(Tn=null,_r(e,t));do try{ry();break}catch(i){Wf(e,i)}while(!0);if(kl(),je=n,qa.current=s,qe!==null)throw Error(a(261));return tt=null,at=0,Xe}function ry(){for(;qe!==null;)$f(qe)}function oy(){for(;qe!==null&&!Mm();)$f(qe)}function $f(e){var t=Gf(e.alternate,e,_t);e.memoizedProps=e.pendingProps,t===null?Qf(e):qe=t,tu.current=null}function Qf(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Yg(n,t,_t),n!==null){qe=n;return}}else{if(n=Xg(n,t),n!==null){n.flags&=32767,qe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,qe=null;return}}if(t=t.sibling,t!==null){qe=t;return}qe=t=e}while(t!==null);Xe===0&&(Xe=5)}function Ar(e,t,n){var s=ze,i=Bt.transition;try{Bt.transition=null,ze=1,sy(e,t,n,s)}finally{Bt.transition=i,ze=s}return null}function sy(e,t,n,s){do jo();while(nr!==null);if((je&6)!==0)throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(Fm(e,u),e===tt&&(qe=tt=null,at=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Za||(Za=!0,qf(aa,function(){return jo(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=Bt.transition,Bt.transition=null;var f=ze;ze=1;var g=je;je|=4,tu.current=null,Jg(e,n),_f(n,e),Eg(cl),pa=!!ul,cl=ul=null,e.current=n,ey(n),Tm(),je=g,ze=f,Bt.transition=u}else e.current=n;if(Za&&(Za=!1,nr=e,Ja=i),u=e.pendingLanes,u===0&&(tr=null),Om(n.stateNode),Pt(e,Ke()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],s(i.value,{componentStack:i.stack,digest:i.digest});if(Xa)throw Xa=!1,e=ou,ou=null,e;return(Ja&1)!==0&&e.tag!==0&&jo(),u=e.pendingLanes,(u&1)!==0?e===su?As++:(As=0,su=e):As=0,Xn(),null}function jo(){if(nr!==null){var e=Ic(Ja),t=Bt.transition,n=ze;try{if(Bt.transition=null,ze=16>e?16:e,nr===null)var s=!1;else{if(e=nr,nr=null,Ja=0,(je&6)!==0)throw Error(a(331));var i=je;for(je|=4,se=e.current;se!==null;){var u=se,f=u.child;if((se.flags&16)!==0){var g=u.deletions;if(g!==null){for(var b=0;b<g.length;b++){var I=g[b];for(se=I;se!==null;){var W=se;switch(W.tag){case 0:case 11:case 15:Os(8,W,u)}var V=W.child;if(V!==null)V.return=W,se=V;else for(;se!==null;){W=se;var U=W.sibling,ee=W.return;if(Tf(W),W===I){se=null;break}if(U!==null){U.return=ee,se=U;break}se=ee}}}var le=u.alternate;if(le!==null){var ue=le.child;if(ue!==null){le.child=null;do{var Ge=ue.sibling;ue.sibling=null,ue=Ge}while(ue!==null)}}se=u}}if((u.subtreeFlags&2064)!==0&&f!==null)f.return=u,se=f;else e:for(;se!==null;){if(u=se,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Os(9,u,u.return)}var T=u.sibling;if(T!==null){T.return=u.return,se=T;break e}se=u.return}}var E=e.current;for(se=E;se!==null;){f=se;var R=f.child;if((f.subtreeFlags&2064)!==0&&R!==null)R.return=f,se=R;else e:for(f=E;se!==null;){if(g=se,(g.flags&2048)!==0)try{switch(g.tag){case 0:case 11:case 15:Ga(9,g)}}catch(de){$e(g,g.return,de)}if(g===f){se=null;break e}var Q=g.sibling;if(Q!==null){Q.return=g.return,se=Q;break e}se=g.return}}if(je=i,Xn(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(ia,e)}catch{}s=!0}return s}finally{ze=n,Bt.transition=t}}return!1}function Hf(e,t,n){t=Co(n,t),t=cf(e,t,1),e=Jn(e,t,1),t=gt(),e!==null&&(as(e,1,t),Pt(e,t))}function $e(e,t,n){if(e.tag===3)Hf(e,e,n);else for(;t!==null;){if(t.tag===3){Hf(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(tr===null||!tr.has(s))){e=Co(n,e),e=df(t,e,1),t=Jn(t,e,1),e=gt(),t!==null&&(as(t,1,e),Pt(t,e));break}}t=t.return}}function ay(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=gt(),e.pingedLanes|=e.suspendedLanes&n,tt===e&&(at&n)===n&&(Xe===4||Xe===3&&(at&130023424)===at&&500>Ke()-ru?_r(e,0):nu|=n),Pt(e,t)}function Kf(e,t){t===0&&((e.mode&1)===0?t=1:(t=ua,ua<<=1,(ua&130023424)===0&&(ua=4194304)));var n=gt();e=Pn(e,t),e!==null&&(as(e,t,n),Pt(e,n))}function iy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kf(e,n)}function ly(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(a(314))}s!==null&&s.delete(t),Kf(e,n)}var Gf;Gf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)Et=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Et=!1,qg(e,t,n);Et=(e.flags&131072)!==0}else Et=!1,Be&&(t.flags&1048576)!==0&&Nd(t,Ra,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Ha(e,t),e=t.pendingProps;var i=go(t,lt.current);bo(t,n),i=zl(null,t,s,e,i,n);var u=_l();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ct(s)?(u=!0,ja(t)):u=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pl(t),i.updater=$a,t.stateNode=i,i._reactInternals=t,Bl(t,s,e,n),t=Ql(null,t,s,!0,u,n)):(t.tag=0,Be&&u&&yl(t),mt(null,t,i,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,i=s._init,s=i(s._payload),t.type=s,i=t.tag=cy(s),e=Yt(s,e),i){case 0:t=$l(null,t,s,e,n);break e;case 1:t=wf(null,t,s,e,n);break e;case 11:t=mf(null,t,s,e,n);break e;case 14:t=gf(null,t,s,Yt(s.type,e),n);break e}throw Error(a(306,s,""))}return t;case 0:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Yt(s,i),$l(e,t,s,i,n);case 1:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Yt(s,i),wf(e,t,s,i,n);case 3:e:{if(Sf(t),e===null)throw Error(a(387));s=t.pendingProps,u=t.memoizedState,i=u.element,_d(e,t),Da(t,s,null,n);var f=t.memoizedState;if(s=f.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){i=Co(Error(a(423)),t),t=bf(e,t,s,n,i);break e}else if(s!==i){i=Co(Error(a(424)),t),t=bf(e,t,s,n,i);break e}else for(zt=Gn(t.stateNode.containerInfo.firstChild),Ot=t,Be=!0,qt=null,n=Od(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xo(),s===i){t=Mn(e,t,n);break e}mt(e,t,s,n)}t=t.child}return t;case 5:return Ld(t),e===null&&wl(t),s=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,f=i.children,dl(s,i)?f=null:u!==null&&dl(s,u)&&(t.flags|=32),xf(e,t),mt(e,t,f,n),t.child;case 6:return e===null&&wl(t),null;case 13:return kf(e,t,n);case 4:return jl(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=wo(t,null,s,n):mt(e,t,s,n),t.child;case 11:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Yt(s,i),mf(e,t,s,i,n);case 7:return mt(e,t,t.pendingProps,n),t.child;case 8:return mt(e,t,t.pendingProps.children,n),t.child;case 12:return mt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,i=t.pendingProps,u=t.memoizedProps,f=i.value,De(za,s._currentValue),s._currentValue=f,u!==null)if(Gt(u.value,f)){if(u.children===i.children&&!kt.current){t=Mn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var g=u.dependencies;if(g!==null){f=u.child;for(var b=g.firstContext;b!==null;){if(b.context===s){if(u.tag===1){b=jn(-1,n&-n),b.tag=2;var I=u.updateQueue;if(I!==null){I=I.shared;var W=I.pending;W===null?b.next=b:(b.next=W.next,W.next=b),I.pending=b}}u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),El(u.return,n,t),g.lanes|=n;break}b=b.next}}else if(u.tag===10)f=u.type===t.type?null:u.child;else if(u.tag===18){if(f=u.return,f===null)throw Error(a(341));f.lanes|=n,g=f.alternate,g!==null&&(g.lanes|=n),El(f,n,t),f=u.sibling}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}mt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,s=t.pendingProps.children,bo(t,n),i=Ft(i),s=s(i),t.flags|=1,mt(e,t,s,n),t.child;case 14:return s=t.type,i=Yt(s,t.pendingProps),i=Yt(s.type,i),gf(e,t,s,i,n);case 15:return yf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Yt(s,i),Ha(e,t),t.tag=1,Ct(s)?(e=!0,ja(t)):e=!1,bo(t,n),lf(t,s,i),Bl(t,s,i,n),Ql(null,t,s,!0,e,n);case 19:return Ef(e,t,n);case 22:return vf(e,t,n)}throw Error(a(156,t.tag))};function qf(e,t){return Pc(e,t)}function uy(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 Wt(e,t,n,s){return new uy(e,t,n,s)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cy(e){if(typeof e=="function")return du(e)?1:0;if(e!=null){if(e=e.$$typeof,e===O)return 11;if(e===fe)return 14}return 2}function sr(e,t){var n=e.alternate;return n===null?(n=Wt(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 ri(e,t,n,s,i,u){var f=2;if(s=e,typeof e=="function")du(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case K:return Dr(n.children,i,u,t);case ae:f=8,i|=8;break;case L:return e=Wt(12,n,t,i|2),e.elementType=L,e.lanes=u,e;case re:return e=Wt(13,n,t,i),e.elementType=re,e.lanes=u,e;case ie:return e=Wt(19,n,t,i),e.elementType=ie,e.lanes=u,e;case we:return oi(n,i,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:f=10;break e;case _:f=9;break e;case O:f=11;break e;case fe:f=14;break e;case be:f=16,s=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=Wt(f,n,t,i),t.elementType=e,t.type=s,t.lanes=u,t}function Dr(e,t,n,s){return e=Wt(7,e,s,t),e.lanes=n,e}function oi(e,t,n,s){return e=Wt(22,e,s,t),e.elementType=we,e.lanes=n,e.stateNode={isHidden:!1},e}function fu(e,t,n){return e=Wt(6,e,null,t),e.lanes=n,e}function pu(e,t,n){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dy(e,t,n,s,i){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=Ui(0),this.expirationTimes=Ui(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ui(0),this.identifierPrefix=s,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hu(e,t,n,s,i,u,f,g,b){return e=new dy(e,t,n,g,b),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Wt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pl(u),e}function fy(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ne,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Yf(e){if(!e)return Yn;e=e._reactInternals;e:{if(Er(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ct(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var n=e.type;if(Ct(n))return kd(e,n,t)}return t}function Xf(e,t,n,s,i,u,f,g,b){return e=hu(n,s,!0,e,i,u,f,g,b),e.context=Yf(null),n=e.current,s=gt(),i=rr(n),u=jn(s,i),u.callback=t??null,Jn(n,u,i),e.current.lanes=i,as(e,i,s),Pt(e,s),e}function si(e,t,n,s){var i=t.current,u=gt(),f=rr(i);return n=Yf(n),t.context===null?t.context=n:t.pendingContext=n,t=jn(u,f),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Jn(i,t,f),e!==null&&(Jt(e,i,f,u),Aa(e,i,f)),f}function ai(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 Zf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mu(e,t){Zf(e,t),(e=e.alternate)&&Zf(e,t)}function py(){return null}var Jf=typeof reportError=="function"?reportError:function(e){console.error(e)};function gu(e){this._internalRoot=e}ii.prototype.render=gu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));si(e,t,null,null)},ii.prototype.unmount=gu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zr(function(){si(null,e,null,null)}),t[kn]=null}};function ii(e){this._internalRoot=e}ii.prototype.unstable_scheduleHydration=function(e){if(e){var t=_c();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qn.length&&t!==0&&t<Qn[n].priority;n++);Qn.splice(n,0,e),n===0&&Lc(e)}};function yu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function li(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ep(){}function hy(e,t,n,s,i){if(i){if(typeof s=="function"){var u=s;s=function(){var I=ai(f);u.call(I)}}var f=Xf(t,s,e,0,null,!1,!1,"",ep);return e._reactRootContainer=f,e[kn]=f.current,ws(e.nodeType===8?e.parentNode:e),zr(),f}for(;i=e.lastChild;)e.removeChild(i);if(typeof s=="function"){var g=s;s=function(){var I=ai(b);g.call(I)}}var b=hu(e,0,!1,null,null,!1,!1,"",ep);return e._reactRootContainer=b,e[kn]=b.current,ws(e.nodeType===8?e.parentNode:e),zr(function(){si(t,b,n,s)}),b}function ui(e,t,n,s,i){var u=n._reactRootContainer;if(u){var f=u;if(typeof i=="function"){var g=i;i=function(){var b=ai(f);g.call(b)}}si(t,f,e,i)}else f=hy(n,t,e,i,s);return ai(f)}Oc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ss(t.pendingLanes);n!==0&&(Bi(t,n|1),Pt(t,Ke()),(je&6)===0&&(Po=Ke()+500,Xn()))}break;case 13:zr(function(){var s=Pn(e,1);if(s!==null){var i=gt();Jt(s,e,1,i)}}),mu(e,1)}},Wi=function(e){if(e.tag===13){var t=Pn(e,134217728);if(t!==null){var n=gt();Jt(t,e,134217728,n)}mu(e,134217728)}},zc=function(e){if(e.tag===13){var t=rr(e),n=Pn(e,t);if(n!==null){var s=gt();Jt(n,e,t,s)}mu(e,t)}},_c=function(){return ze},Ac=function(e,t){var n=ze;try{return ze=e,t()}finally{ze=n}},so=function(e,t,n){switch(t){case"input":if(es(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 i=Na(s);if(!i)throw Error(a(90));Jr(s),es(s,i)}}}break;case"textarea":Zs(e,n);break;case"select":t=n.value,t!=null&&At(e,!!n.multiple,t,!1)}},Re=lu,_e=zr;var my={usingClientEntryPoint:!1,Events:[ks,ho,Na,ra,xe,lu]},Ds={findFiberByHostInstance:Nr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gy={bundleType:Ds.bundleType,version:Ds.version,rendererPackageName:Ds.rendererPackageName,rendererConfig:Ds.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ec(e),e===null?null:e.stateNode},findFiberByHostInstance:Ds.findFiberByHostInstance||py,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 ci=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ci.isDisabled&&ci.supportsFiber)try{ia=ci.inject(gy),pn=ci}catch{}}return jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=my,jt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yu(t))throw Error(a(200));return fy(e,t,null,n)},jt.createRoot=function(e,t){if(!yu(e))throw Error(a(299));var n=!1,s="",i=Jf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=hu(e,1,!1,null,null,n,!1,s,i),e[kn]=t.current,ws(e.nodeType===8?e.parentNode:e),new gu(t)},jt.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(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=Ec(t),e=e===null?null:e.stateNode,e},jt.flushSync=function(e){return zr(e)},jt.hydrate=function(e,t,n){if(!li(t))throw Error(a(200));return ui(null,e,t,!0,n)},jt.hydrateRoot=function(e,t,n){if(!yu(e))throw Error(a(405));var s=n!=null&&n.hydratedSources||null,i=!1,u="",f=Jf;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),t=Xf(t,null,e,1,n??null,i,!1,u,f),e[kn]=t.current,ws(e),s)for(e=0;e<s.length;e++)n=s[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ii(t)},jt.render=function(e,t,n){if(!li(t))throw Error(a(200));return ui(null,e,t,!1,n)},jt.unmountComponentAtNode=function(e){if(!li(e))throw Error(a(40));return e._reactRootContainer?(zr(function(){ui(null,null,e,!1,function(){e._reactRootContainer=null,e[kn]=null})}),!0):!1},jt.unstable_batchedUpdates=lu,jt.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!li(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return ui(e,t,n,!1,s)},jt.version="18.3.1-next-f1338f8080-20240426",jt}var up;function ch(){if(up)return Su.exports;up=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(),Su.exports=Cy(),Su.exports}var cp;function Ey(){if(cp)return fi;cp=1;var r=ch();return fi.createRoot=r.createRoot,fi.hydrateRoot=r.hydrateRoot,fi}var Ny=Ey(),Ko=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)},dr,nc,Xp,jy=(Xp=class{constructor(){pe(this,dr,Py);pe(this,nc,!1)}setTimeoutProvider(r){J(this,dr,r)}setTimeout(r,o){return w(this,dr).setTimeout(r,o)}clearTimeout(r){w(this,dr).clearTimeout(r)}setInterval(r,o){return w(this,dr).setInterval(r,o)}clearInterval(r){w(this,dr).clearInterval(r)}},dr=new WeakMap,nc=new WeakMap,Xp),Lr=new jy;function My(r){setTimeout(r,0)}var Gr=typeof window>"u"||"Deno"in globalThis;function vt(){}function Ty(r,o){return typeof r=="function"?r(o):r}function _u(r){return typeof r=="number"&&r>=0&&r!==1/0}function dh(r,o){return Math.max(r+(o||0)-Date.now(),0)}function wr(r,o){return typeof r=="function"?r(o):r}function $t(r,o){return typeof r=="function"?r(o):r}function dp(r,o){const{type:a="all",exact:l,fetchStatus:c,predicate:d,queryKey:m,stale:h}=r;if(m){if(l){if(o.queryHash!==oc(m,o.options))return!1}else if(!Ws(o.queryKey,m))return!1}if(a!=="all"){const S=o.isActive();if(a==="active"&&!S||a==="inactive"&&S)return!1}return!(typeof h=="boolean"&&o.isStale()!==h||c&&c!==o.state.fetchStatus||d&&!d(o))}function fp(r,o){const{exact:a,status:l,predicate:c,mutationKey:d}=r;if(d){if(!o.options.mutationKey)return!1;if(a){if(qr(o.options.mutationKey)!==qr(d))return!1}else if(!Ws(o.options.mutationKey,d))return!1}return!(l&&o.state.status!==l||c&&!c(o))}function oc(r,o){return((o==null?void 0:o.queryKeyHashFn)||qr)(r)}function qr(r){return JSON.stringify(r,(o,a)=>Au(a)?Object.keys(a).sort().reduce((l,c)=>(l[c]=a[c],l),{}):a)}function Ws(r,o){return r===o?!0:typeof r!=typeof o?!1:r&&o&&typeof r=="object"&&typeof o=="object"?Object.keys(o).every(a=>Ws(r[a],o[a])):!1}var Ry=Object.prototype.hasOwnProperty;function fh(r,o,a=0){if(r===o)return r;if(a>500)return o;const l=pp(r)&&pp(o);if(!l&&!(Au(r)&&Au(o)))return o;const d=(l?r:Object.keys(r)).length,m=l?o:Object.keys(o),h=m.length,S=l?new Array(h):{};let y=0;for(let C=0;C<h;C++){const P=l?C:m[C],j=r[P],v=o[P];if(j===v){S[P]=j,(l?C<d:Ry.call(r,P))&&y++;continue}if(j===null||v===null||typeof j!="object"||typeof v!="object"){S[P]=v;continue}const A=fh(j,v,a+1);S[P]=A,A===j&&y++}return d===h&&y===d?r:S}function Mi(r,o){if(!o||Object.keys(r).length!==Object.keys(o).length)return!1;for(const a in r)if(r[a]!==o[a])return!1;return!0}function pp(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Au(r){if(!hp(r))return!1;const o=r.constructor;if(o===void 0)return!0;const a=o.prototype;return!(!hp(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function hp(r){return Object.prototype.toString.call(r)==="[object Object]"}function Iy(r){return new Promise(o=>{Lr.setTimeout(o,r)})}function Du(r,o,a){return typeof a.structuralSharing=="function"?a.structuralSharing(r,o):a.structuralSharing!==!1?fh(r,o):o}function Oy(r,o,a=0){const l=[...r,o];return a&&l.length>a?l.slice(1):l}function zy(r,o,a=0){const l=[o,...r];return a&&l.length>a?l.slice(0,-1):l}var sc=Symbol();function ph(r,o){return!r.queryFn&&(o!=null&&o.initialPromise)?()=>o.initialPromise:!r.queryFn||r.queryFn===sc?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function ac(r,o){return typeof r=="function"?r(...o):!!r}function _y(r,o,a){let l=!1,c;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(c??(c=o()),l||(l=!0,c.aborted?a():c.addEventListener("abort",a,{once:!0})),c)}),r}var Fr,fr,_o,Zp,Ay=(Zp=class extends Ko{constructor(){super();pe(this,Fr);pe(this,fr);pe(this,_o);J(this,_o,o=>{if(!Gr&&window.addEventListener){const a=()=>o();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){w(this,fr)||this.setEventListener(w(this,_o))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,fr))==null||o.call(this),J(this,fr,void 0))}setEventListener(o){var a;J(this,_o,o),(a=w(this,fr))==null||a.call(this),J(this,fr,o(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(o){w(this,Fr)!==o&&(J(this,Fr,o),this.onFocus())}onFocus(){const o=this.isFocused();this.listeners.forEach(a=>{a(o)})}isFocused(){var o;return typeof w(this,Fr)=="boolean"?w(this,Fr):((o=globalThis.document)==null?void 0:o.visibilityState)!=="hidden"}},Fr=new WeakMap,fr=new WeakMap,_o=new WeakMap,Zp),ic=new Ay;function Lu(){let r,o;const a=new Promise((c,d)=>{r=c,o=d});a.status="pending",a.catch(()=>{});function l(c){Object.assign(a,c),delete a.resolve,delete a.reject}return a.resolve=c=>{l({status:"fulfilled",value:c}),r(c)},a.reject=c=>{l({status:"rejected",reason:c}),o(c)},a}var Dy=My;function Ly(){let r=[],o=0,a=h=>{h()},l=h=>{h()},c=Dy;const d=h=>{o?r.push(h):c(()=>{a(h)})},m=()=>{const h=r;r=[],h.length&&c(()=>{l(()=>{h.forEach(S=>{a(S)})})})};return{batch:h=>{let S;o++;try{S=h()}finally{o--,o||m()}return S},batchCalls:h=>(...S)=>{d(()=>{h(...S)})},schedule:d,setNotifyFunction:h=>{a=h},setBatchNotifyFunction:h=>{l=h},setScheduler:h=>{c=h}}}var Ze=Ly(),Ao,pr,Do,Jp,Fy=(Jp=class extends Ko{constructor(){super();pe(this,Ao,!0);pe(this,pr);pe(this,Do);J(this,Do,o=>{if(!Gr&&window.addEventListener){const a=()=>o(!0),l=()=>o(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",l)}}})}onSubscribe(){w(this,pr)||this.setEventListener(w(this,Do))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,pr))==null||o.call(this),J(this,pr,void 0))}setEventListener(o){var a;J(this,Do,o),(a=w(this,pr))==null||a.call(this),J(this,pr,o(this.setOnline.bind(this)))}setOnline(o){w(this,Ao)!==o&&(J(this,Ao,o),this.listeners.forEach(l=>{l(o)}))}isOnline(){return w(this,Ao)}},Ao=new WeakMap,pr=new WeakMap,Do=new WeakMap,Jp),Ti=new Fy;function Uy(r){return Math.min(1e3*2**r,3e4)}function hh(r){return(r??"online")==="online"?Ti.isOnline():!0}var Fu=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function mh(r){let o=!1,a=0,l;const c=Lu(),d=()=>c.status!=="pending",m=x=>{var M;if(!d()){const F=new Fu(x);j(F),(M=r.onCancel)==null||M.call(r,F)}},h=()=>{o=!0},S=()=>{o=!1},y=()=>ic.isFocused()&&(r.networkMode==="always"||Ti.isOnline())&&r.canRun(),C=()=>hh(r.networkMode)&&r.canRun(),P=x=>{d()||(l==null||l(),c.resolve(x))},j=x=>{d()||(l==null||l(),c.reject(x))},v=()=>new Promise(x=>{var M;l=F=>{(d()||y())&&x(F)},(M=r.onPause)==null||M.call(r)}).then(()=>{var x;l=void 0,d()||(x=r.onContinue)==null||x.call(r)}),A=()=>{if(d())return;let x;const M=a===0?r.initialPromise:void 0;try{x=M??r.fn()}catch(F){x=Promise.reject(F)}Promise.resolve(x).then(P).catch(F=>{var ne;if(d())return;const H=r.retry??(Gr?0:3),B=r.retryDelay??Uy,D=typeof B=="function"?B(a,F):B,te=H===!0||typeof H=="number"&&a<H||typeof H=="function"&&H(a,F);if(o||!te){j(F);return}a++,(ne=r.onFail)==null||ne.call(r,a,F),Iy(D).then(()=>y()?void 0:v()).then(()=>{o?j(F):A()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:h,continueRetry:S,canStart:C,start:()=>(C()?A():v().then(A),c)}}var Ur,eh,gh=(eh=class{constructor(){pe(this,Ur)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_u(this.gcTime)&&J(this,Ur,Lr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(Gr?1/0:300*1e3))}clearGcTimeout(){w(this,Ur)&&(Lr.clearTimeout(w(this,Ur)),J(this,Ur,void 0))}},Ur=new WeakMap,eh),Br,Lo,Vt,Wr,rt,Qs,Vr,nn,In,th,By=(th=class extends gh{constructor(o){super();pe(this,nn);pe(this,Br);pe(this,Lo);pe(this,Vt);pe(this,Wr);pe(this,rt);pe(this,Qs);pe(this,Vr);J(this,Vr,!1),J(this,Qs,o.defaultOptions),this.setOptions(o.options),this.observers=[],J(this,Wr,o.client),J(this,Vt,w(this,Wr).getQueryCache()),this.queryKey=o.queryKey,this.queryHash=o.queryHash,J(this,Br,gp(this.options)),this.state=o.state??w(this,Br),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var o;return(o=w(this,rt))==null?void 0:o.promise}setOptions(o){if(this.options={...w(this,Qs),...o},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=gp(this.options);a.data!==void 0&&(this.setState(mp(a.data,a.dataUpdatedAt)),J(this,Br,a))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&w(this,Vt).remove(this)}setData(o,a){const l=Du(this.state.data,o,this.options);return ke(this,nn,In).call(this,{data:l,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),l}setState(o,a){ke(this,nn,In).call(this,{type:"setState",state:o,setStateOptions:a})}cancel(o){var l,c;const a=(l=w(this,rt))==null?void 0:l.promise;return(c=w(this,rt))==null||c.cancel(o),a?a.then(vt).catch(vt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(w(this,Br))}isActive(){return this.observers.some(o=>$t(o.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(o=>wr(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:!dh(this.state.dataUpdatedAt,o)}onFocus(){var a;const o=this.observers.find(l=>l.shouldFetchOnWindowFocus());o==null||o.refetch({cancelRefetch:!1}),(a=w(this,rt))==null||a.continue()}onOnline(){var a;const o=this.observers.find(l=>l.shouldFetchOnReconnect());o==null||o.refetch({cancelRefetch:!1}),(a=w(this,rt))==null||a.continue()}addObserver(o){this.observers.includes(o)||(this.observers.push(o),this.clearGcTimeout(),w(this,Vt).notify({type:"observerAdded",query:this,observer:o}))}removeObserver(o){this.observers.includes(o)&&(this.observers=this.observers.filter(a=>a!==o),this.observers.length||(w(this,rt)&&(w(this,Vr)?w(this,rt).cancel({revert:!0}):w(this,rt).cancelRetry()),this.scheduleGc()),w(this,Vt).notify({type:"observerRemoved",query:this,observer:o}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ke(this,nn,In).call(this,{type:"invalidate"})}async fetch(o,a){var S,y,C,P,j,v,A,x,M,F,H,B;if(this.state.fetchStatus!=="idle"&&((S=w(this,rt))==null?void 0:S.status())!=="rejected"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(w(this,rt))return w(this,rt).continueRetry(),w(this,rt).promise}if(o&&this.setOptions(o),!this.options.queryFn){const D=this.observers.find(te=>te.options.queryFn);D&&this.setOptions(D.options)}const l=new AbortController,c=D=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>(J(this,Vr,!0),l.signal)})},d=()=>{const D=ph(this.options,a),ne=(()=>{const K={client:w(this,Wr),queryKey:this.queryKey,meta:this.meta};return c(K),K})();return J(this,Vr,!1),this.options.persister?this.options.persister(D,ne,this):D(ne)},h=(()=>{const D={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:w(this,Wr),state:this.state,fetchFn:d};return c(D),D})();(y=this.options.behavior)==null||y.onFetch(h,this),J(this,Lo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=h.fetchOptions)==null?void 0:C.meta))&&ke(this,nn,In).call(this,{type:"fetch",meta:(P=h.fetchOptions)==null?void 0:P.meta}),J(this,rt,mh({initialPromise:a==null?void 0:a.initialPromise,fn:h.fetchFn,onCancel:D=>{D instanceof Fu&&D.revert&&this.setState({...w(this,Lo),fetchStatus:"idle"}),l.abort()},onFail:(D,te)=>{ke(this,nn,In).call(this,{type:"failed",failureCount:D,error:te})},onPause:()=>{ke(this,nn,In).call(this,{type:"pause"})},onContinue:()=>{ke(this,nn,In).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}));try{const D=await w(this,rt).start();if(D===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(D),(v=(j=w(this,Vt).config).onSuccess)==null||v.call(j,D,this),(x=(A=w(this,Vt).config).onSettled)==null||x.call(A,D,this.state.error,this),D}catch(D){if(D instanceof Fu){if(D.silent)return w(this,rt).promise;if(D.revert){if(this.state.data===void 0)throw D;return this.state.data}}throw ke(this,nn,In).call(this,{type:"error",error:D}),(F=(M=w(this,Vt).config).onError)==null||F.call(M,D,this),(B=(H=w(this,Vt).config).onSettled)==null||B.call(H,this.state.data,D,this),D}finally{this.scheduleGc()}}},Br=new WeakMap,Lo=new WeakMap,Vt=new WeakMap,Wr=new WeakMap,rt=new WeakMap,Qs=new WeakMap,Vr=new WeakMap,nn=new WeakSet,In=function(o){const a=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,...yh(l.data,this.options),fetchMeta:o.meta??null};case"success":const c={...l,...mp(o.data,o.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,Lo,o.manual?c:void 0),c;case"error":const d=o.error;return{...l,error:d,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...o.state}}};this.state=a(this.state),Ze.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),w(this,Vt).notify({query:this,type:"updated",action:o})})},th);function yh(r,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hh(o.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function mp(r,o){return{data:r,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function gp(r){const o=typeof r.initialData=="function"?r.initialData():r.initialData,a=o!==void 0,l=a?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:a?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var Mt,Ne,Hs,yt,$r,Fo,On,hr,Ks,Uo,Bo,Qr,Hr,mr,Wo,Oe,Bs,Uu,Bu,Wu,Vu,$u,Qu,Hu,vh,nh,Wy=(nh=class extends Ko{constructor(o,a){super();pe(this,Oe);pe(this,Mt);pe(this,Ne);pe(this,Hs);pe(this,yt);pe(this,$r);pe(this,Fo);pe(this,On);pe(this,hr);pe(this,Ks);pe(this,Uo);pe(this,Bo);pe(this,Qr);pe(this,Hr);pe(this,mr);pe(this,Wo,new Set);this.options=a,J(this,Mt,o),J(this,hr,null),J(this,On,Lu()),this.bindMethods(),this.setOptions(a)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(w(this,Ne).addObserver(this),yp(w(this,Ne),this.options)?ke(this,Oe,Bs).call(this):this.updateResult(),ke(this,Oe,Vu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ku(w(this,Ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ku(w(this,Ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ke(this,Oe,$u).call(this),ke(this,Oe,Qu).call(this),w(this,Ne).removeObserver(this)}setOptions(o){const a=this.options,l=w(this,Ne);if(this.options=w(this,Mt).defaultQueryOptions(o),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $t(this.options.enabled,w(this,Ne))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ke(this,Oe,Hu).call(this),w(this,Ne).setOptions(this.options),a._defaulted&&!Mi(this.options,a)&&w(this,Mt).getQueryCache().notify({type:"observerOptionsUpdated",query:w(this,Ne),observer:this});const c=this.hasListeners();c&&vp(w(this,Ne),l,this.options,a)&&ke(this,Oe,Bs).call(this),this.updateResult(),c&&(w(this,Ne)!==l||$t(this.options.enabled,w(this,Ne))!==$t(a.enabled,w(this,Ne))||wr(this.options.staleTime,w(this,Ne))!==wr(a.staleTime,w(this,Ne)))&&ke(this,Oe,Uu).call(this);const d=ke(this,Oe,Bu).call(this);c&&(w(this,Ne)!==l||$t(this.options.enabled,w(this,Ne))!==$t(a.enabled,w(this,Ne))||d!==w(this,mr))&&ke(this,Oe,Wu).call(this,d)}getOptimisticResult(o){const a=w(this,Mt).getQueryCache().build(w(this,Mt),o),l=this.createResult(a,o);return $y(this,l)&&(J(this,yt,l),J(this,Fo,this.options),J(this,$r,w(this,Ne).state)),l}getCurrentResult(){return w(this,yt)}trackResult(o,a){return new Proxy(o,{get:(l,c)=>(this.trackProp(c),a==null||a(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&w(this,On).status==="pending"&&w(this,On).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(o){w(this,Wo).add(o)}getCurrentQuery(){return w(this,Ne)}refetch({...o}={}){return this.fetch({...o})}fetchOptimistic(o){const a=w(this,Mt).defaultQueryOptions(o),l=w(this,Mt).getQueryCache().build(w(this,Mt),a);return l.fetch().then(()=>this.createResult(l,a))}fetch(o){return ke(this,Oe,Bs).call(this,{...o,cancelRefetch:o.cancelRefetch??!0}).then(()=>(this.updateResult(),w(this,yt)))}createResult(o,a){var L;const l=w(this,Ne),c=this.options,d=w(this,yt),m=w(this,$r),h=w(this,Fo),y=o!==l?o.state:w(this,Hs),{state:C}=o;let P={...C},j=!1,v;if(a._optimisticResults){const Z=this.hasListeners(),_=!Z&&yp(o,a),O=Z&&vp(o,l,a,c);(_||O)&&(P={...P,...yh(C.data,o.options)}),a._optimisticResults==="isRestoring"&&(P.fetchStatus="idle")}let{error:A,errorUpdatedAt:x,status:M}=P;v=P.data;let F=!1;if(a.placeholderData!==void 0&&v===void 0&&M==="pending"){let Z;d!=null&&d.isPlaceholderData&&a.placeholderData===(h==null?void 0:h.placeholderData)?(Z=d.data,F=!0):Z=typeof a.placeholderData=="function"?a.placeholderData((L=w(this,Bo))==null?void 0:L.state.data,w(this,Bo)):a.placeholderData,Z!==void 0&&(M="success",v=Du(d==null?void 0:d.data,Z,a),j=!0)}if(a.select&&v!==void 0&&!F)if(d&&v===(m==null?void 0:m.data)&&a.select===w(this,Ks))v=w(this,Uo);else try{J(this,Ks,a.select),v=a.select(v),v=Du(d==null?void 0:d.data,v,a),J(this,Uo,v),J(this,hr,null)}catch(Z){J(this,hr,Z)}w(this,hr)&&(A=w(this,hr),v=w(this,Uo),x=Date.now(),M="error");const H=P.fetchStatus==="fetching",B=M==="pending",D=M==="error",te=B&&H,ne=v!==void 0,ae={status:M,fetchStatus:P.fetchStatus,isPending:B,isSuccess:M==="success",isError:D,isInitialLoading:te,isLoading:te,data:v,dataUpdatedAt:P.dataUpdatedAt,error:A,errorUpdatedAt:x,failureCount:P.fetchFailureCount,failureReason:P.fetchFailureReason,errorUpdateCount:P.errorUpdateCount,isFetched:P.dataUpdateCount>0||P.errorUpdateCount>0,isFetchedAfterMount:P.dataUpdateCount>y.dataUpdateCount||P.errorUpdateCount>y.errorUpdateCount,isFetching:H,isRefetching:H&&!B,isLoadingError:D&&!ne,isPaused:P.fetchStatus==="paused",isPlaceholderData:j,isRefetchError:D&&ne,isStale:lc(o,a),refetch:this.refetch,promise:w(this,On),isEnabled:$t(a.enabled,o)!==!1};if(this.options.experimental_prefetchInRender){const Z=ae.data!==void 0,_=ae.status==="error"&&!Z,O=fe=>{_?fe.reject(ae.error):Z&&fe.resolve(ae.data)},re=()=>{const fe=J(this,On,ae.promise=Lu());O(fe)},ie=w(this,On);switch(ie.status){case"pending":o.queryHash===l.queryHash&&O(ie);break;case"fulfilled":(_||ae.data!==ie.value)&&re();break;case"rejected":(!_||ae.error!==ie.reason)&&re();break}}return ae}updateResult(){const o=w(this,yt),a=this.createResult(w(this,Ne),this.options);if(J(this,$r,w(this,Ne).state),J(this,Fo,this.options),w(this,$r).data!==void 0&&J(this,Bo,w(this,Ne)),Mi(a,o))return;J(this,yt,a);const l=()=>{if(!o)return!0;const{notifyOnChangeProps:c}=this.options,d=typeof c=="function"?c():c;if(d==="all"||!d&&!w(this,Wo).size)return!0;const m=new Set(d??w(this,Wo));return this.options.throwOnError&&m.add("error"),Object.keys(w(this,yt)).some(h=>{const S=h;return w(this,yt)[S]!==o[S]&&m.has(S)})};ke(this,Oe,vh).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ke(this,Oe,Vu).call(this)}},Mt=new WeakMap,Ne=new WeakMap,Hs=new WeakMap,yt=new WeakMap,$r=new WeakMap,Fo=new WeakMap,On=new WeakMap,hr=new WeakMap,Ks=new WeakMap,Uo=new WeakMap,Bo=new WeakMap,Qr=new WeakMap,Hr=new WeakMap,mr=new WeakMap,Wo=new WeakMap,Oe=new WeakSet,Bs=function(o){ke(this,Oe,Hu).call(this);let a=w(this,Ne).fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(vt)),a},Uu=function(){ke(this,Oe,$u).call(this);const o=wr(this.options.staleTime,w(this,Ne));if(Gr||w(this,yt).isStale||!_u(o))return;const l=dh(w(this,yt).dataUpdatedAt,o)+1;J(this,Qr,Lr.setTimeout(()=>{w(this,yt).isStale||this.updateResult()},l))},Bu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(w(this,Ne)):this.options.refetchInterval)??!1},Wu=function(o){ke(this,Oe,Qu).call(this),J(this,mr,o),!(Gr||$t(this.options.enabled,w(this,Ne))===!1||!_u(w(this,mr))||w(this,mr)===0)&&J(this,Hr,Lr.setInterval(()=>{(this.options.refetchIntervalInBackground||ic.isFocused())&&ke(this,Oe,Bs).call(this)},w(this,mr)))},Vu=function(){ke(this,Oe,Uu).call(this),ke(this,Oe,Wu).call(this,ke(this,Oe,Bu).call(this))},$u=function(){w(this,Qr)&&(Lr.clearTimeout(w(this,Qr)),J(this,Qr,void 0))},Qu=function(){w(this,Hr)&&(Lr.clearInterval(w(this,Hr)),J(this,Hr,void 0))},Hu=function(){const o=w(this,Mt).getQueryCache().build(w(this,Mt),this.options);if(o===w(this,Ne))return;const a=w(this,Ne);J(this,Ne,o),J(this,Hs,o.state),this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))},vh=function(o){Ze.batch(()=>{o.listeners&&this.listeners.forEach(a=>{a(w(this,yt))}),w(this,Mt).getQueryCache().notify({query:w(this,Ne),type:"observerResultsUpdated"})})},nh);function Vy(r,o){return $t(o.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&o.retryOnMount===!1)}function yp(r,o){return Vy(r,o)||r.state.data!==void 0&&Ku(r,o,o.refetchOnMount)}function Ku(r,o,a){if($t(o.enabled,r)!==!1&&wr(o.staleTime,r)!=="static"){const l=typeof a=="function"?a(r):a;return l==="always"||l!==!1&&lc(r,o)}return!1}function vp(r,o,a,l){return(r!==o||$t(l.enabled,r)===!1)&&(!a.suspense||r.state.status!=="error")&&lc(r,a)}function lc(r,o){return $t(o.enabled,r)!==!1&&r.isStaleByTime(wr(o.staleTime,r))}function $y(r,o){return!Mi(r.getCurrentResult(),o)}function xp(r){return{onFetch:(o,a)=>{var C,P,j,v,A;const l=o.options,c=(j=(P=(C=o.fetchOptions)==null?void 0:C.meta)==null?void 0:P.fetchMore)==null?void 0:j.direction,d=((v=o.state.data)==null?void 0:v.pages)||[],m=((A=o.state.data)==null?void 0:A.pageParams)||[];let h={pages:[],pageParams:[]},S=0;const y=async()=>{let x=!1;const M=B=>{_y(B,()=>o.signal,()=>x=!0)},F=ph(o.options,o.fetchOptions),H=async(B,D,te)=>{if(x)return Promise.reject();if(D==null&&B.pages.length)return Promise.resolve(B);const K=(()=>{const _={client:o.client,queryKey:o.queryKey,pageParam:D,direction:te?"backward":"forward",meta:o.options.meta};return M(_),_})(),ae=await F(K),{maxPages:L}=o.options,Z=te?zy:Oy;return{pages:Z(B.pages,ae,L),pageParams:Z(B.pageParams,D,L)}};if(c&&d.length){const B=c==="backward",D=B?Qy:wp,te={pages:d,pageParams:m},ne=D(l,te);h=await H(te,ne,B)}else{const B=r??d.length;do{const D=S===0?m[0]??l.initialPageParam:wp(l,h);if(S>0&&D==null)break;h=await H(h,D),S++}while(S<B)}return h};o.options.persister?o.fetchFn=()=>{var x,M;return(M=(x=o.options).persister)==null?void 0:M.call(x,y,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},a)}:o.fetchFn=y}}}function wp(r,{pages:o,pageParams:a}){const l=o.length-1;return o.length>0?r.getNextPageParam(o[l],o,a[l],a):void 0}function Qy(r,{pages:o,pageParams:a}){var l;return o.length>0?(l=r.getPreviousPageParam)==null?void 0:l.call(r,o[0],o,a[0],a):void 0}var Gs,vn,ft,Kr,xn,ur,rh,Hy=(rh=class extends gh{constructor(o){super();pe(this,xn);pe(this,Gs);pe(this,vn);pe(this,ft);pe(this,Kr);J(this,Gs,o.client),this.mutationId=o.mutationId,J(this,ft,o.mutationCache),J(this,vn,[]),this.state=o.state||xh(),this.setOptions(o.options),this.scheduleGc()}setOptions(o){this.options=o,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(o){w(this,vn).includes(o)||(w(this,vn).push(o),this.clearGcTimeout(),w(this,ft).notify({type:"observerAdded",mutation:this,observer:o}))}removeObserver(o){J(this,vn,w(this,vn).filter(a=>a!==o)),this.scheduleGc(),w(this,ft).notify({type:"observerRemoved",mutation:this,observer:o})}optionalRemove(){w(this,vn).length||(this.state.status==="pending"?this.scheduleGc():w(this,ft).remove(this))}continue(){var o;return((o=w(this,Kr))==null?void 0:o.continue())??this.execute(this.state.variables)}async execute(o){var m,h,S,y,C,P,j,v,A,x,M,F,H,B,D,te,ne,K;const a=()=>{ke(this,xn,ur).call(this,{type:"continue"})},l={client:w(this,Gs),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,Kr,mh({fn:()=>this.options.mutationFn?this.options.mutationFn(o,l):Promise.reject(new Error("No mutationFn found")),onFail:(ae,L)=>{ke(this,xn,ur).call(this,{type:"failed",failureCount:ae,error:L})},onPause:()=>{ke(this,xn,ur).call(this,{type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>w(this,ft).canRun(this)}));const c=this.state.status==="pending",d=!w(this,Kr).canStart();try{if(c)a();else{ke(this,xn,ur).call(this,{type:"pending",variables:o,isPaused:d}),w(this,ft).config.onMutate&&await w(this,ft).config.onMutate(o,this,l);const L=await((h=(m=this.options).onMutate)==null?void 0:h.call(m,o,l));L!==this.state.context&&ke(this,xn,ur).call(this,{type:"pending",context:L,variables:o,isPaused:d})}const ae=await w(this,Kr).start();return await((y=(S=w(this,ft).config).onSuccess)==null?void 0:y.call(S,ae,o,this.state.context,this,l)),await((P=(C=this.options).onSuccess)==null?void 0:P.call(C,ae,o,this.state.context,l)),await((v=(j=w(this,ft).config).onSettled)==null?void 0:v.call(j,ae,null,this.state.variables,this.state.context,this,l)),await((x=(A=this.options).onSettled)==null?void 0:x.call(A,ae,null,o,this.state.context,l)),ke(this,xn,ur).call(this,{type:"success",data:ae}),ae}catch(ae){try{await((F=(M=w(this,ft).config).onError)==null?void 0:F.call(M,ae,o,this.state.context,this,l))}catch(L){Promise.reject(L)}try{await((B=(H=this.options).onError)==null?void 0:B.call(H,ae,o,this.state.context,l))}catch(L){Promise.reject(L)}try{await((te=(D=w(this,ft).config).onSettled)==null?void 0:te.call(D,void 0,ae,this.state.variables,this.state.context,this,l))}catch(L){Promise.reject(L)}try{await((K=(ne=this.options).onSettled)==null?void 0:K.call(ne,void 0,ae,o,this.state.context,l))}catch(L){Promise.reject(L)}throw ke(this,xn,ur).call(this,{type:"error",error:ae}),ae}finally{w(this,ft).runNext(this)}}},Gs=new WeakMap,vn=new WeakMap,ft=new WeakMap,Kr=new WeakMap,xn=new WeakSet,ur=function(o){const a=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=a(this.state),Ze.batch(()=>{w(this,vn).forEach(l=>{l.onMutationUpdate(o)}),w(this,ft).notify({mutation:this,type:"updated",action:o})})},rh);function xh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zn,rn,qs,oh,Ky=(oh=class extends Ko{constructor(o={}){super();pe(this,zn);pe(this,rn);pe(this,qs);this.config=o,J(this,zn,new Set),J(this,rn,new Map),J(this,qs,0)}build(o,a,l){const c=new Hy({client:o,mutationCache:this,mutationId:++di(this,qs)._,options:o.defaultMutationOptions(a),state:l});return this.add(c),c}add(o){w(this,zn).add(o);const a=pi(o);if(typeof a=="string"){const l=w(this,rn).get(a);l?l.push(o):w(this,rn).set(a,[o])}this.notify({type:"added",mutation:o})}remove(o){if(w(this,zn).delete(o)){const a=pi(o);if(typeof a=="string"){const l=w(this,rn).get(a);if(l)if(l.length>1){const c=l.indexOf(o);c!==-1&&l.splice(c,1)}else l[0]===o&&w(this,rn).delete(a)}}this.notify({type:"removed",mutation:o})}canRun(o){const a=pi(o);if(typeof a=="string"){const l=w(this,rn).get(a),c=l==null?void 0:l.find(d=>d.state.status==="pending");return!c||c===o}else return!0}runNext(o){var l;const a=pi(o);if(typeof a=="string"){const c=(l=w(this,rn).get(a))==null?void 0:l.find(d=>d!==o&&d.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ze.batch(()=>{w(this,zn).forEach(o=>{this.notify({type:"removed",mutation:o})}),w(this,zn).clear(),w(this,rn).clear()})}getAll(){return Array.from(w(this,zn))}find(o){const a={exact:!0,...o};return this.getAll().find(l=>fp(a,l))}findAll(o={}){return this.getAll().filter(a=>fp(o,a))}notify(o){Ze.batch(()=>{this.listeners.forEach(a=>{a(o)})})}resumePausedMutations(){const o=this.getAll().filter(a=>a.state.isPaused);return Ze.batch(()=>Promise.all(o.map(a=>a.continue().catch(vt))))}},zn=new WeakMap,rn=new WeakMap,qs=new WeakMap,oh);function pi(r){var o;return(o=r.options.scope)==null?void 0:o.id}var _n,gr,Tt,An,Ln,wi,Gu,sh,Gy=(sh=class extends Ko{constructor(a,l){super();pe(this,Ln);pe(this,_n);pe(this,gr);pe(this,Tt);pe(this,An);J(this,_n,a),this.setOptions(l),this.bindMethods(),ke(this,Ln,wi).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var c;const l=this.options;this.options=w(this,_n).defaultMutationOptions(a),Mi(this.options,l)||w(this,_n).getMutationCache().notify({type:"observerOptionsUpdated",mutation:w(this,Tt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&qr(l.mutationKey)!==qr(this.options.mutationKey)?this.reset():((c=w(this,Tt))==null?void 0:c.state.status)==="pending"&&w(this,Tt).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=w(this,Tt))==null||a.removeObserver(this)}onMutationUpdate(a){ke(this,Ln,wi).call(this),ke(this,Ln,Gu).call(this,a)}getCurrentResult(){return w(this,gr)}reset(){var a;(a=w(this,Tt))==null||a.removeObserver(this),J(this,Tt,void 0),ke(this,Ln,wi).call(this),ke(this,Ln,Gu).call(this)}mutate(a,l){var c;return J(this,An,l),(c=w(this,Tt))==null||c.removeObserver(this),J(this,Tt,w(this,_n).getMutationCache().build(w(this,_n),this.options)),w(this,Tt).addObserver(this),w(this,Tt).execute(a)}},_n=new WeakMap,gr=new WeakMap,Tt=new WeakMap,An=new WeakMap,Ln=new WeakSet,wi=function(){var l;const a=((l=w(this,Tt))==null?void 0:l.state)??xh();J(this,gr,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},Gu=function(a){Ze.batch(()=>{var l,c,d,m,h,S,y,C;if(w(this,An)&&this.hasListeners()){const P=w(this,gr).variables,j=w(this,gr).context,v={client:w(this,_n),meta:this.options.meta,mutationKey:this.options.mutationKey};if((a==null?void 0:a.type)==="success"){try{(c=(l=w(this,An)).onSuccess)==null||c.call(l,a.data,P,j,v)}catch(A){Promise.reject(A)}try{(m=(d=w(this,An)).onSettled)==null||m.call(d,a.data,null,P,j,v)}catch(A){Promise.reject(A)}}else if((a==null?void 0:a.type)==="error"){try{(S=(h=w(this,An)).onError)==null||S.call(h,a.error,P,j,v)}catch(A){Promise.reject(A)}try{(C=(y=w(this,An)).onSettled)==null||C.call(y,void 0,a.error,P,j,v)}catch(A){Promise.reject(A)}}}this.listeners.forEach(P=>{P(w(this,gr))})})},sh),wn,ah,qy=(ah=class extends Ko{constructor(o={}){super();pe(this,wn);this.config=o,J(this,wn,new Map)}build(o,a,l){const c=a.queryKey,d=a.queryHash??oc(c,a);let m=this.get(d);return m||(m=new By({client:o,queryKey:c,queryHash:d,options:o.defaultQueryOptions(a),state:l,defaultOptions:o.getQueryDefaults(c)}),this.add(m)),m}add(o){w(this,wn).has(o.queryHash)||(w(this,wn).set(o.queryHash,o),this.notify({type:"added",query:o}))}remove(o){const a=w(this,wn).get(o.queryHash);a&&(o.destroy(),a===o&&w(this,wn).delete(o.queryHash),this.notify({type:"removed",query:o}))}clear(){Ze.batch(()=>{this.getAll().forEach(o=>{this.remove(o)})})}get(o){return w(this,wn).get(o)}getAll(){return[...w(this,wn).values()]}find(o){const a={exact:!0,...o};return this.getAll().find(l=>dp(a,l))}findAll(o={}){const a=this.getAll();return Object.keys(o).length>0?a.filter(l=>dp(o,l)):a}notify(o){Ze.batch(()=>{this.listeners.forEach(a=>{a(o)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(o=>{o.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(o=>{o.onOnline()})})}},wn=new WeakMap,ah),Qe,yr,vr,Vo,$o,xr,Qo,Ho,ih,Yy=(ih=class{constructor(r={}){pe(this,Qe);pe(this,yr);pe(this,vr);pe(this,Vo);pe(this,$o);pe(this,xr);pe(this,Qo);pe(this,Ho);J(this,Qe,r.queryCache||new qy),J(this,yr,r.mutationCache||new Ky),J(this,vr,r.defaultOptions||{}),J(this,Vo,new Map),J(this,$o,new Map),J(this,xr,0)}mount(){di(this,xr)._++,w(this,xr)===1&&(J(this,Qo,ic.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,Qe).onFocus())})),J(this,Ho,Ti.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,Qe).onOnline())})))}unmount(){var r,o;di(this,xr)._--,w(this,xr)===0&&((r=w(this,Qo))==null||r.call(this),J(this,Qo,void 0),(o=w(this,Ho))==null||o.call(this),J(this,Ho,void 0))}isFetching(r){return w(this,Qe).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return w(this,yr).findAll({...r,status:"pending"}).length}getQueryData(r){var a;const o=this.defaultQueryOptions({queryKey:r});return(a=w(this,Qe).get(o.queryHash))==null?void 0:a.state.data}ensureQueryData(r){const o=this.defaultQueryOptions(r),a=w(this,Qe).build(this,o),l=a.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&a.isStaleByTime(wr(o.staleTime,a))&&this.prefetchQuery(o),Promise.resolve(l))}getQueriesData(r){return w(this,Qe).findAll(r).map(({queryKey:o,state:a})=>{const l=a.data;return[o,l]})}setQueryData(r,o,a){const l=this.defaultQueryOptions({queryKey:r}),c=w(this,Qe).get(l.queryHash),d=c==null?void 0:c.state.data,m=Ty(o,d);if(m!==void 0)return w(this,Qe).build(this,l).setData(m,{...a,manual:!0})}setQueriesData(r,o,a){return Ze.batch(()=>w(this,Qe).findAll(r).map(({queryKey:l})=>[l,this.setQueryData(l,o,a)]))}getQueryState(r){var a;const o=this.defaultQueryOptions({queryKey:r});return(a=w(this,Qe).get(o.queryHash))==null?void 0:a.state}removeQueries(r){const o=w(this,Qe);Ze.batch(()=>{o.findAll(r).forEach(a=>{o.remove(a)})})}resetQueries(r,o){const a=w(this,Qe);return Ze.batch(()=>(a.findAll(r).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...r},o)))}cancelQueries(r,o={}){const a={revert:!0,...o},l=Ze.batch(()=>w(this,Qe).findAll(r).map(c=>c.cancel(a)));return Promise.all(l).then(vt).catch(vt)}invalidateQueries(r,o={}){return Ze.batch(()=>(w(this,Qe).findAll(r).forEach(a=>{a.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 a={...o,cancelRefetch:o.cancelRefetch??!0},l=Ze.batch(()=>w(this,Qe).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,a);return a.throwOnError||(d=d.catch(vt)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(l).then(vt)}fetchQuery(r){const o=this.defaultQueryOptions(r);o.retry===void 0&&(o.retry=!1);const a=w(this,Qe).build(this,o);return a.isStaleByTime(wr(o.staleTime,a))?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(vt).catch(vt)}fetchInfiniteQuery(r){return r.behavior=xp(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(vt).catch(vt)}ensureInfiniteQueryData(r){return r.behavior=xp(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return Ti.isOnline()?w(this,yr).resumePausedMutations():Promise.resolve()}getQueryCache(){return w(this,Qe)}getMutationCache(){return w(this,yr)}getDefaultOptions(){return w(this,vr)}setDefaultOptions(r){J(this,vr,r)}setQueryDefaults(r,o){w(this,Vo).set(qr(r),{queryKey:r,defaultOptions:o})}getQueryDefaults(r){const o=[...w(this,Vo).values()],a={};return o.forEach(l=>{Ws(r,l.queryKey)&&Object.assign(a,l.defaultOptions)}),a}setMutationDefaults(r,o){w(this,$o).set(qr(r),{mutationKey:r,defaultOptions:o})}getMutationDefaults(r){const o=[...w(this,$o).values()],a={};return o.forEach(l=>{Ws(r,l.mutationKey)&&Object.assign(a,l.defaultOptions)}),a}defaultQueryOptions(r){if(r._defaulted)return r;const o={...w(this,vr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return o.queryHash||(o.queryHash=oc(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===sc&&(o.enabled=!1),o}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...w(this,vr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){w(this,Qe).clear(),w(this,yr).clear()}},Qe=new WeakMap,yr=new WeakMap,vr=new WeakMap,Vo=new WeakMap,$o=new WeakMap,xr=new WeakMap,Qo=new WeakMap,Ho=new WeakMap,ih),wh=k.createContext(void 0),Go=r=>{const o=k.useContext(wh);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},Xy=({client:r,children:o})=>(k.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),p.jsx(wh.Provider,{value:r,children:o})),Sh=k.createContext(!1),Zy=()=>k.useContext(Sh);Sh.Provider;function Jy(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var ev=k.createContext(Jy()),tv=()=>k.useContext(ev),nv=(r,o,a)=>{const l=a!=null&&a.state.error&&typeof r.throwOnError=="function"?ac(r.throwOnError,[a.state.error,a]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(o.isReset()||(r.retryOnMount=!1))},rv=r=>{k.useEffect(()=>{r.clearReset()},[r])},ov=({result:r,errorResetBoundary:o,throwOnError:a,query:l,suspense:c})=>r.isError&&!o.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||ac(a,[r.error,l])),sv=r=>{if(r.suspense){const a=c=>c==="static"?c:Math.max(c??1e3,1e3),l=r.staleTime;r.staleTime=typeof l=="function"?(...c)=>a(l(...c)):a(l),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},av=(r,o)=>r.isLoading&&r.isFetching&&!o,iv=(r,o)=>(r==null?void 0:r.suspense)&&o.isPending,Sp=(r,o,a)=>o.fetchOptimistic(r).catch(()=>{a.clearReset()});function lv(r,o,a){var j,v,A,x;const l=Zy(),c=tv(),d=Go(),m=d.defaultQueryOptions(r);(v=(j=d.getDefaultOptions().queries)==null?void 0:j._experimental_beforeQuery)==null||v.call(j,m);const h=d.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",sv(m),nv(m,c,h),rv(c);const S=!d.getQueryCache().get(m.queryHash),[y]=k.useState(()=>new o(d,m)),C=y.getOptimisticResult(m),P=!l&&r.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(M=>{const F=P?y.subscribe(Ze.batchCalls(M)):vt;return y.updateResult(),F},[y,P]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),k.useEffect(()=>{y.setOptions(m)},[m,y]),iv(m,C))throw Sp(m,y,c);if(ov({result:C,errorResetBoundary:c,throwOnError:m.throwOnError,query:h,suspense:m.suspense}))throw C.error;if((x=(A=d.getDefaultOptions().queries)==null?void 0:A._experimental_afterQuery)==null||x.call(A,m,C),m.experimental_prefetchInRender&&!Gr&&av(C,l)){const M=S?Sp(m,y,c):h==null?void 0:h.promise;M==null||M.catch(vt).finally(()=>{y.updateResult()})}return m.notifyOnChangeProps?C:y.trackResult(C)}function uc(r,o){return lv(r,Wy)}function Ys(r,o){const a=Go(),[l]=k.useState(()=>new Gy(a,r));k.useEffect(()=>{l.setOptions(r)},[l,r]);const c=k.useSyncExternalStore(k.useCallback(m=>l.subscribe(Ze.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),d=k.useCallback((m,h)=>{l.mutate(m,h).catch(vt)},[l]);if(c.error&&ac(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:d,mutateAsync:c.mutate}}const bp=r=>{let o;const a=new Set,l=(y,C)=>{const P=typeof y=="function"?y(o):y;if(!Object.is(P,o)){const j=o;o=C??(typeof P!="object"||P===null)?P:Object.assign({},o,P),a.forEach(v=>v(o,j))}},c=()=>o,h={setState:l,getState:c,getInitialState:()=>S,subscribe:y=>(a.add(y),()=>a.delete(y))},S=o=r(l,c,h);return h},uv=(r=>r?bp(r):bp),cv=r=>r;function dv(r,o=cv){const a=X.useSyncExternalStore(r.subscribe,X.useCallback(()=>o(r.getState()),[r,o]),X.useCallback(()=>o(r.getInitialState()),[r,o]));return X.useDebugValue(a),a}const kp=r=>{const o=uv(r),a=l=>dv(o,l);return Object.assign(a,o),a},fv=(r=>r?kp(r):kp),Xr=fv(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 bh(r){var o,a,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]&&(a=bh(r[o]))&&(l&&(l+=" "),l+=a)}else for(a in r)r[a]&&(l&&(l+=" "),l+=a);return l}function kh(){for(var r,o,a=0,l="",c=arguments.length;a<c;a++)(r=arguments[a])&&(o=bh(r))&&(l&&(l+=" "),l+=o);return l}const cc="-",pv=r=>{const o=mv(r),{conflictingClassGroups:a,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const h=m.split(cc);return h[0]===""&&h.length!==1&&h.shift(),Ch(h,o)||hv(m)},getConflictingClassGroupIds:(m,h)=>{const S=a[m]||[];return h&&l[m]?[...S,...l[m]]:S}}},Ch=(r,o)=>{var m;if(r.length===0)return o.classGroupId;const a=r[0],l=o.nextPart.get(a),c=l?Ch(r.slice(1),l):void 0;if(c)return c;if(o.validators.length===0)return;const d=r.join(cc);return(m=o.validators.find(({validator:h})=>h(d)))==null?void 0:m.classGroupId},Cp=/^\[(.+)\]$/,hv=r=>{if(Cp.test(r)){const o=Cp.exec(r)[1],a=o==null?void 0:o.substring(0,o.indexOf(":"));if(a)return"arbitrary.."+a}},mv=r=>{const{theme:o,prefix:a}=r,l={nextPart:new Map,validators:[]};return yv(Object.entries(r.classGroups),a).forEach(([d,m])=>{qu(m,l,d,o)}),l},qu=(r,o,a,l)=>{r.forEach(c=>{if(typeof c=="string"){const d=c===""?o:Ep(o,c);d.classGroupId=a;return}if(typeof c=="function"){if(gv(c)){qu(c(l),o,a,l);return}o.validators.push({validator:c,classGroupId:a});return}Object.entries(c).forEach(([d,m])=>{qu(m,Ep(o,d),a,l)})})},Ep=(r,o)=>{let a=r;return o.split(cc).forEach(l=>{a.nextPart.has(l)||a.nextPart.set(l,{nextPart:new Map,validators:[]}),a=a.nextPart.get(l)}),a},gv=r=>r.isThemeGetter,yv=(r,o)=>o?r.map(([a,l])=>{const c=l.map(d=>typeof d=="string"?o+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([m,h])=>[o+m,h])):d);return[a,c]}):r,vv=r=>{if(r<1)return{get:()=>{},set:()=>{}};let o=0,a=new Map,l=new Map;const c=(d,m)=>{a.set(d,m),o++,o>r&&(o=0,l=a,a=new Map)};return{get(d){let m=a.get(d);if(m!==void 0)return m;if((m=l.get(d))!==void 0)return c(d,m),m},set(d,m){a.has(d)?a.set(d,m):c(d,m)}}},Eh="!",xv=r=>{const{separator:o,experimentalParseClassName:a}=r,l=o.length===1,c=o[0],d=o.length,m=h=>{const S=[];let y=0,C=0,P;for(let M=0;M<h.length;M++){let F=h[M];if(y===0){if(F===c&&(l||h.slice(M,M+d)===o)){S.push(h.slice(C,M)),C=M+d;continue}if(F==="/"){P=M;continue}}F==="["?y++:F==="]"&&y--}const j=S.length===0?h:h.substring(C),v=j.startsWith(Eh),A=v?j.substring(1):j,x=P&&P>C?P-C:void 0;return{modifiers:S,hasImportantModifier:v,baseClassName:A,maybePostfixModifierPosition:x}};return a?h=>a({className:h,parseClassName:m}):m},wv=r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(l=>{l[0]==="["?(o.push(...a.sort(),l),a=[]):a.push(l)}),o.push(...a.sort()),o},Sv=r=>({cache:vv(r.cacheSize),parseClassName:xv(r),...pv(r)}),bv=/\s+/,kv=(r,o)=>{const{parseClassName:a,getClassGroupId:l,getConflictingClassGroupIds:c}=o,d=[],m=r.trim().split(bv);let h="";for(let S=m.length-1;S>=0;S-=1){const y=m[S],{modifiers:C,hasImportantModifier:P,baseClassName:j,maybePostfixModifierPosition:v}=a(y);let A=!!v,x=l(A?j.substring(0,v):j);if(!x){if(!A){h=y+(h.length>0?" "+h:h);continue}if(x=l(j),!x){h=y+(h.length>0?" "+h:h);continue}A=!1}const M=wv(C).join(":"),F=P?M+Eh:M,H=F+x;if(d.includes(H))continue;d.push(H);const B=c(x,A);for(let D=0;D<B.length;++D){const te=B[D];d.push(F+te)}h=y+(h.length>0?" "+h:h)}return h};function Cv(){let r=0,o,a,l="";for(;r<arguments.length;)(o=arguments[r++])&&(a=Nh(o))&&(l&&(l+=" "),l+=a);return l}const Nh=r=>{if(typeof r=="string")return r;let o,a="";for(let l=0;l<r.length;l++)r[l]&&(o=Nh(r[l]))&&(a&&(a+=" "),a+=o);return a};function Ev(r,...o){let a,l,c,d=m;function m(S){const y=o.reduce((C,P)=>P(C),r());return a=Sv(y),l=a.cache.get,c=a.cache.set,d=h,h(S)}function h(S){const y=l(S);if(y)return y;const C=kv(S,a);return c(S,C),C}return function(){return d(Cv.apply(null,arguments))}}const Ue=r=>{const o=a=>a[r]||[];return o.isThemeGetter=!0,o},Ph=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nv=/^\d+\/\d+$/,Pv=new Set(["px","full","screen"]),jv=/^(\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$/,Tv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Rv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=r=>Io(r)||Pv.has(r)||Nv.test(r),ir=r=>qo(r,"length",Uv),Io=r=>!!r&&!Number.isNaN(Number(r)),Cu=r=>qo(r,"number",Io),Fs=r=>!!r&&Number.isInteger(Number(r)),Ov=r=>r.endsWith("%")&&Io(r.slice(0,-1)),Se=r=>Ph.test(r),lr=r=>jv.test(r),zv=new Set(["length","size","percentage"]),_v=r=>qo(r,zv,jh),Av=r=>qo(r,"position",jh),Dv=new Set(["image","url"]),Lv=r=>qo(r,Dv,Wv),Fv=r=>qo(r,"",Bv),Us=()=>!0,qo=(r,o,a)=>{const l=Ph.exec(r);return l?l[1]?typeof o=="string"?l[1]===o:o.has(l[1]):a(l[2]):!1},Uv=r=>Mv.test(r)&&!Tv.test(r),jh=()=>!1,Bv=r=>Rv.test(r),Wv=r=>Iv.test(r),Vv=()=>{const r=Ue("colors"),o=Ue("spacing"),a=Ue("blur"),l=Ue("brightness"),c=Ue("borderColor"),d=Ue("borderRadius"),m=Ue("borderSpacing"),h=Ue("borderWidth"),S=Ue("contrast"),y=Ue("grayscale"),C=Ue("hueRotate"),P=Ue("invert"),j=Ue("gap"),v=Ue("gradientColorStops"),A=Ue("gradientColorStopPositions"),x=Ue("inset"),M=Ue("margin"),F=Ue("opacity"),H=Ue("padding"),B=Ue("saturate"),D=Ue("scale"),te=Ue("sepia"),ne=Ue("skew"),K=Ue("space"),ae=Ue("translate"),L=()=>["auto","contain","none"],Z=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",Se,o],O=()=>[Se,o],re=()=>["",Rn,ir],ie=()=>["auto",Io,Se],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],be=()=>["solid","dashed","dotted","double","none"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",Se],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[Io,Se];return{cacheSize:500,separator:":",theme:{colors:[Us],spacing:[Rn,ir],blur:["none","",lr,Se],brightness:N(),borderColor:[r],borderRadius:["none","","full",lr,Se],borderSpacing:O(),borderWidth:re(),contrast:N(),grayscale:$(),hueRotate:N(),invert:$(),gap:O(),gradientColorStops:[r],gradientColorStopPositions:[Ov,ir],inset:_(),margin:_(),opacity:N(),padding:O(),saturate:N(),scale:N(),sepia:$(),skew:N(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",Se]}],container:["container"],columns:[{columns:[lr]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"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:[...fe(),Se]}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fs,Se]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Se]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",Fs,Se]}],"grid-cols":[{"grid-cols":[Us]}],"col-start-end":[{col:["auto",{span:["full",Fs,Se]},Se]}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":[Us]}],"row-start-end":[{row:["auto",{span:[Fs,Se]},Se]}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Se]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Se]}],gap:[{gap:[j]}],"gap-x":[{"gap-x":[j]}],"gap-y":[{"gap-y":[j]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],pt:[{pt:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Se,o]}],"min-w":[{"min-w":[Se,o,"min","max","fit"]}],"max-w":[{"max-w":[Se,o,"none","full","min","max","fit","prose",{screen:[lr]},lr]}],h:[{h:[Se,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Se,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Se,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Se,o,"auto","min","max","fit"]}],"font-size":[{text:["base",lr,ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cu]}],"font-family":[{font:[Us]}],"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",Se]}],"line-clamp":[{"line-clamp":["none",Io,Cu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rn,Se]}],"list-image":[{"list-image":["none",Se]}],"list-style-type":[{list:["none","disc","decimal",Se]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[F]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rn,ir]}],"underline-offset":[{"underline-offset":["auto",Rn,Se]}],"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:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se]}],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",Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[F]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),Av]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_v]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Lv]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[F]}],"border-style":[{border:[...be(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[F]}],"divide-style":[{divide:be()}],"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:["",...be()]}],"outline-offset":[{"outline-offset":[Rn,Se]}],"outline-w":[{outline:[Rn,ir]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[F]}],"ring-offset-w":[{"ring-offset":[Rn,ir]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",lr,Fv]}],"shadow-color":[{shadow:[Us]}],opacity:[{opacity:[F]}],"mix-blend":[{"mix-blend":[...we(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":we()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[l]}],contrast:[{contrast:[S]}],"drop-shadow":[{"drop-shadow":["","none",lr,Se]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[P]}],saturate:[{saturate:[B]}],sepia:[{sepia:[te]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[S]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[P]}],"backdrop-opacity":[{"backdrop-opacity":[F]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[te]}],"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",Se]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",Se]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",Se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[Fs,Se]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[ne]}],"skew-y":[{"skew-y":[ne]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Se]}],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",Se]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",Se]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Rn,ir,Cu]}],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"]}}},$v=Ev(Vv);function Te(...r){return $v(kh(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 Qv=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mh=(...r)=>r.filter((o,a,l)=>!!o&&o.trim()!==""&&l.indexOf(o)===a).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 Hv={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 Kv=k.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:m,...h},S)=>k.createElement("svg",{ref:S,...Hv,width:o,height:o,stroke:r,strokeWidth:l?Number(a)*24/Number(o):a,className:Mh("lucide",c),...h},[...m.map(([y,C])=>k.createElement(y,C)),...Array.isArray(d)?d:[d]]));/**
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 Ae=(r,o)=>{const a=k.forwardRef(({className:l,...c},d)=>k.createElement(Kv,{ref:d,iconNode:o,className:Mh(`lucide-${Qv(r)}`,l),...c}));return a.displayName=`${r}`,a};/**
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 Th=Ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 Gv=Ae("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"}]]);/**
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 qv=Ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 Yv=Ae("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"}]]);/**
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 Xv=Ae("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
86
- * @license lucide-react v0.462.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const Zv=Ae("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
91
- * @license lucide-react v0.462.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const Jv=Ae("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
96
- * @license lucide-react v0.462.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const e0=Ae("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
101
- * @license lucide-react v0.462.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const t0=Ae("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
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 Rh=Ae("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"}]]);/**
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 Yu=Ae("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"}]]);/**
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 Ri=Ae("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"}]]);/**
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 n0=Ae("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 dc=Ae("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"}]]);/**
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 Si=Ae("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
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 fc=Ae("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"}]]);/**
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 Xu=Ae("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
146
- * @license lucide-react v0.462.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const r0=Ae("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"}]]);/**
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 o0=Ae("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
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 Ih=Ae("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"}]]);/**
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 s0=Ae("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"}]]);/**
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 a0=Ae("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"}]]);/**
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 Oh=Ae("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"}]]);/**
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 i0=Ae("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"}]]);/**
181
- * @license lucide-react v0.462.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const Zu=Ae("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"}]]);/**
186
- * @license lucide-react v0.462.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const zh=Ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
191
- * @license lucide-react v0.462.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const l0=Ae("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"}]]),u0=[{id:"model",label:"Models",icon:Yv},{id:"providers",label:"Providers",icon:Oh},{id:"channels",label:"Channels",icon:fc},{id:"runtime",label:"Routing & Runtime",icon:t0}];function c0(){const{activeTab:r,setActiveTab:o}=Xr();return p.jsxs("aside",{className:"w-[240px] bg-transparent flex flex-col h-full py-6 px-4",children:[p.jsx("div",{className:"px-3 mb-8",children:p.jsxs("div",{className:"flex items-center gap-2.5 group cursor-pointer",children:[p.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:p.jsx("img",{src:"/logo.svg",alt:"NextClaw",className:"h-full w-full object-contain"})}),p.jsx("span",{className:"text-[15px] font-bold bg-gradient-to-r from-primary to-indigo-500 bg-clip-text text-transparent tracking-[-0.02em]",children:"NextClaw"})]})}),p.jsx("nav",{className:"flex-1",children:p.jsx("ul",{className:"space-y-1",children:u0.map(a=>{const l=a.icon,c=r===a.id;return p.jsx("li",{children:p.jsxs("button",{onClick:()=>o(a.id),className:Te("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:[p.jsx(l,{className:Te("h-4 w-4 transition-transform duration-fast group-hover:scale-110",c?"text-primary":"text-gray-500")}),p.jsx("span",{className:"flex-1 text-left",children:a.label})]})},a.id)})})})]})}function d0({children:r}){return p.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[p.jsx(c0,{}),p.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:p.jsx("main",{className:"flex-1 overflow-auto custom-scrollbar p-8",children:p.jsx("div",{className:"max-w-6xl mx-auto animate-fade-in h-full",children:r})})})]})}const Np=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Pp=kh,f0=(r,o)=>a=>{var l;if((o==null?void 0:o.variants)==null)return Pp(r,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:c,defaultVariants:d}=o,m=Object.keys(c).map(y=>{const C=a==null?void 0:a[y],P=d==null?void 0:d[y];if(C===null)return null;const j=Np(C)||Np(P);return c[y][j]}),h=a&&Object.entries(a).reduce((y,C)=>{let[P,j]=C;return j===void 0||(y[P]=j),y},{}),S=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((y,C)=>{let{class:P,className:j,...v}=C;return Object.entries(v).every(A=>{let[x,M]=A;return Array.isArray(M)?M.includes({...d,...h}[x]):{...d,...h}[x]===M})?[...y,P,j]:y},[]);return Pp(r,m,S,a==null?void 0:a.class,a==null?void 0:a.className)},p0=f0("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"}}),xt=k.forwardRef(({className:r,variant:o,size:a,...l},c)=>p.jsx("button",{className:Te(p0({variant:o,size:a,className:r})),ref:c,...l}));xt.displayName="Button";const Oo=k.forwardRef(({className:r,hover:o=!0,...a},l)=>p.jsx("div",{ref:l,className:Te("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),...a}));Oo.displayName="Card";const bi=k.forwardRef(({className:r,...o},a)=>p.jsx("div",{ref:a,className:Te("flex flex-col space-y-2 p-6",r),...o}));bi.displayName="CardHeader";const ki=k.forwardRef(({className:r,...o},a)=>p.jsx("h3",{ref:a,className:Te("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));ki.displayName="CardTitle";const Ci=k.forwardRef(({className:r,...o},a)=>p.jsx("p",{ref:a,className:Te("text-sm text-gray-500 leading-relaxed",r),...o}));Ci.displayName="CardDescription";const Ei=k.forwardRef(({className:r,...o},a)=>p.jsx("div",{ref:a,className:Te("p-6 pt-0",r),...o}));Ei.displayName="CardContent";const h0=k.forwardRef(({className:r,...o},a)=>p.jsx("div",{ref:a,className:Te("flex items-center justify-between p-6 pt-0",r),...o}));h0.displayName="CardFooter";const He=k.forwardRef(({className:r,type:o,...a},l)=>p.jsx("input",{type:o,className:Te("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,...a}));He.displayName="Input";const Dn=k.forwardRef(({className:r,...o},a)=>p.jsx("label",{ref:a,className:Te("text-sm font-medium leading-none text-gray-700 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...o}));Dn.displayName="Label";function en({className:r,...o}){return p.jsx("div",{className:Te("animate-pulse rounded-md bg-slate-200",r),...o})}const m0="http://127.0.0.1:18791",Ni=(()=>{var r;return typeof window<"u"&&((r=window.location)!=null&&r.origin)?window.location.origin:m0})();async function Eu(r,o={}){const a=`${Ni}${r}`,l=await fetch(a,{headers:{"Content-Type":"application/json",...o.headers},...o}),c=await l.text();let d=null;if(c)try{d=JSON.parse(c)}catch{}if(!d){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,d}const br={get:r=>Eu(r,{method:"GET"}),put:(r,o)=>Eu(r,{method:"PUT",body:JSON.stringify(o)}),post:(r,o)=>Eu(r,{method:"POST",body:JSON.stringify(o)})};async function g0(){const r=await br.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function y0(){const r=await br.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function v0(){const r=await br.get("/api/config/schema");if(!r.ok)throw new Error(r.error.message);return r.data}async function x0(r){const o=await br.put("/api/config/model",r);if(!o.ok)throw new Error(o.error.message);return o.data}async function w0(r,o){const a=await br.put(`/api/config/providers/${r}`,o);if(!a.ok)throw new Error(a.error.message);return a.data}async function S0(r,o){const a=await br.put(`/api/config/channels/${r}`,o);if(!a.ok)throw new Error(a.error.message);return a.data}async function b0(r){const o=await br.put("/api/config/runtime",r);if(!o.ok)throw new Error(o.error.message);return o.data}async function k0(r,o){const a=await br.post(`/api/config/actions/${r}/execute`,o);if(!a.ok)throw new Error(a.error.message);return a.data}var _h=ch();const Ah=lh(_h);var C0=r=>{switch(r){case"success":return P0;case"info":return M0;case"warning":return j0;case"error":return T0;default:return null}},E0=Array(12).fill(0),N0=({visible:r,className:o})=>X.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":r},X.createElement("div",{className:"sonner-spinner"},E0.map((a,l)=>X.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),P0=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.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"})),j0=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},X.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"})),M0=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.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"})),T0=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.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"})),R0=X.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"},X.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),X.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),I0=()=>{let[r,o]=X.useState(document.hidden);return X.useEffect(()=>{let a=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),r},Ju=1,O0=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:a,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:Ju++,d=this.toasts.find(h=>h.id===c),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(h=>h.id===c?(this.publish({...h,...r,id:c,title:a}),{...h,...r,id:c,dismissible:m,title:a}):h):this.addToast({title:a,...l,dismissible:m,id:c}),c},this.dismiss=r=>(this.dismissedToasts.add(r),r||this.toasts.forEach(o=>{this.subscribers.forEach(a=>a({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 a;o.loading!==void 0&&(a=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=a!==void 0,d,m=l.then(async S=>{if(d=["resolve",S],X.isValidElement(S))c=!1,this.create({id:a,type:"default",message:S});else if(_0(S)&&!S.ok){c=!1;let y=typeof o.error=="function"?await o.error(`HTTP error! status: ${S.status}`):o.error,C=typeof o.description=="function"?await o.description(`HTTP error! status: ${S.status}`):o.description;this.create({id:a,type:"error",message:y,description:C})}else if(o.success!==void 0){c=!1;let y=typeof o.success=="function"?await o.success(S):o.success,C=typeof o.description=="function"?await o.description(S):o.description;this.create({id:a,type:"success",message:y,description:C})}}).catch(async S=>{if(d=["reject",S],o.error!==void 0){c=!1;let y=typeof o.error=="function"?await o.error(S):o.error,C=typeof o.description=="function"?await o.description(S):o.description;this.create({id:a,type:"error",message:y,description:C})}}).finally(()=>{var S;c&&(this.dismiss(a),a=void 0),(S=o.finally)==null||S.call(o)}),h=()=>new Promise((S,y)=>m.then(()=>d[0]==="reject"?y(d[1]):S(d[1])).catch(y));return typeof a!="string"&&typeof a!="number"?{unwrap:h}:Object.assign(a,{unwrap:h})},this.custom=(r,o)=>{let a=(o==null?void 0:o.id)||Ju++;return this.create({jsx:r(a),id:a,...o}),a},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Rt=new O0,z0=(r,o)=>{let a=(o==null?void 0:o.id)||Ju++;return Rt.addToast({title:r,...o,id:a}),a},_0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",A0=z0,D0=()=>Rt.toasts,L0=()=>Rt.getActiveToasts(),wt=Object.assign(A0,{success:Rt.success,info:Rt.info,warning:Rt.warning,error:Rt.error,custom:Rt.custom,message:Rt.message,promise:Rt.promise,dismiss:Rt.dismiss,loading:Rt.loading},{getHistory:D0,getToasts:L0});function F0(r,{insertAt:o}={}){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",o==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}F0(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
196
- `);function hi(r){return r.label!==void 0}var U0=3,B0="32px",W0="16px",jp=4e3,V0=356,$0=14,Q0=20,H0=200;function tn(...r){return r.filter(Boolean).join(" ")}function K0(r){let[o,a]=r.split("-"),l=[];return o&&l.push(o),a&&l.push(a),l}var G0=r=>{var o,a,l,c,d,m,h,S,y,C,P;let{invert:j,toast:v,unstyled:A,interacting:x,setHeights:M,visibleToasts:F,heights:H,index:B,toasts:D,expanded:te,removeToast:ne,defaultRichColors:K,closeButton:ae,style:L,cancelButtonStyle:Z,actionButtonStyle:_,className:O="",descriptionClassName:re="",duration:ie,position:fe,gap:be,loadingIcon:we,expandByDefault:q,classNames:$,icons:G,closeButtonAriaLabel:N="Close toast",pauseWhenPageIsHidden:z}=r,[oe,ce]=X.useState(null),[ye,Ce]=X.useState(null),[ge,Pe]=X.useState(!1),[Ie,Je]=X.useState(!1),[sn,Jr]=X.useState(!1),[kr,Zo]=X.useState(!1),[Xs,Jo]=X.useState(!1),[es,eo]=X.useState(0),[ts,Un]=X.useState(0),At=X.useRef(v.duration||ie||jp),to=X.useRef(null),an=X.useRef(null),Zs=B===0,Js=B+1<=F,pt=v.type,ln=v.dismissible!==!1,no=v.className||"",ea=v.descriptionClassName||"",un=X.useMemo(()=>H.findIndex(xe=>xe.toastId===v.id)||0,[H,v.id]),Cr=X.useMemo(()=>{var xe;return(xe=v.closeButton)!=null?xe:ae},[v.closeButton,ae]),ta=X.useMemo(()=>v.duration||ie||jp,[v.duration,ie]),ro=X.useRef(0),bn=X.useRef(0),na=X.useRef(0),cn=X.useRef(null),[ns,rs]=fe.split("-"),oo=X.useMemo(()=>H.reduce((xe,Re,_e)=>_e>=un?xe:xe+Re.height,0),[H,un]),so=I0(),Bn=v.invert||j,dn=pt==="loading";bn.current=X.useMemo(()=>un*be+oo,[un,oo]),X.useEffect(()=>{At.current=ta},[ta]),X.useEffect(()=>{Pe(!0)},[]),X.useEffect(()=>{let xe=an.current;if(xe){let Re=xe.getBoundingClientRect().height;return Un(Re),M(_e=>[{toastId:v.id,height:Re,position:v.position},..._e]),()=>M(_e=>_e.filter(ht=>ht.toastId!==v.id))}},[M,v.id]),X.useLayoutEffect(()=>{if(!ge)return;let xe=an.current,Re=xe.style.height;xe.style.height="auto";let _e=xe.getBoundingClientRect().height;xe.style.height=Re,Un(_e),M(ht=>ht.find(St=>St.toastId===v.id)?ht.map(St=>St.toastId===v.id?{...St,height:_e}:St):[{toastId:v.id,height:_e,position:v.position},...ht])},[ge,v.title,v.description,M,v.id]);let Qt=X.useCallback(()=>{Je(!0),eo(bn.current),M(xe=>xe.filter(Re=>Re.toastId!==v.id)),setTimeout(()=>{ne(v)},H0)},[v,ne,M,bn]);X.useEffect(()=>{if(v.promise&&pt==="loading"||v.duration===1/0||v.type==="loading")return;let xe;return te||x||z&&so?(()=>{if(na.current<ro.current){let Re=new Date().getTime()-ro.current;At.current=At.current-Re}na.current=new Date().getTime()})():At.current!==1/0&&(ro.current=new Date().getTime(),xe=setTimeout(()=>{var Re;(Re=v.onAutoClose)==null||Re.call(v,v),Qt()},At.current)),()=>clearTimeout(xe)},[te,x,v,pt,z,so,Qt]),X.useEffect(()=>{v.delete&&Qt()},[Qt,v.delete]);function ra(){var xe,Re,_e;return G!=null&&G.loading?X.createElement("div",{className:tn($==null?void 0:$.loader,(xe=v==null?void 0:v.classNames)==null?void 0:xe.loader,"sonner-loader"),"data-visible":pt==="loading"},G.loading):we?X.createElement("div",{className:tn($==null?void 0:$.loader,(Re=v==null?void 0:v.classNames)==null?void 0:Re.loader,"sonner-loader"),"data-visible":pt==="loading"},we):X.createElement(N0,{className:tn($==null?void 0:$.loader,(_e=v==null?void 0:v.classNames)==null?void 0:_e.loader),visible:pt==="loading"})}return X.createElement("li",{tabIndex:0,ref:an,className:tn(O,no,$==null?void 0:$.toast,(o=v==null?void 0:v.classNames)==null?void 0:o.toast,$==null?void 0:$.default,$==null?void 0:$[pt],(a=v==null?void 0:v.classNames)==null?void 0:a[pt]),"data-sonner-toast":"","data-rich-colors":(l=v.richColors)!=null?l:K,"data-styled":!(v.jsx||v.unstyled||A),"data-mounted":ge,"data-promise":!!v.promise,"data-swiped":Xs,"data-removed":Ie,"data-visible":Js,"data-y-position":ns,"data-x-position":rs,"data-index":B,"data-front":Zs,"data-swiping":sn,"data-dismissible":ln,"data-type":pt,"data-invert":Bn,"data-swipe-out":kr,"data-swipe-direction":ye,"data-expanded":!!(te||q&&ge),style:{"--index":B,"--toasts-before":B,"--z-index":D.length-B,"--offset":`${Ie?es:bn.current}px`,"--initial-height":q?"auto":`${ts}px`,...L,...v.style},onDragEnd:()=>{Jr(!1),ce(null),cn.current=null},onPointerDown:xe=>{dn||!ln||(to.current=new Date,eo(bn.current),xe.target.setPointerCapture(xe.pointerId),xe.target.tagName!=="BUTTON"&&(Jr(!0),cn.current={x:xe.clientX,y:xe.clientY}))},onPointerUp:()=>{var xe,Re,_e,ht;if(kr||!ln)return;cn.current=null;let St=Number(((xe=an.current)==null?void 0:xe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),bt=Number(((Re=an.current)==null?void 0:Re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ht=new Date().getTime()-((_e=to.current)==null?void 0:_e.getTime()),ot=oe==="x"?St:bt,fn=Math.abs(ot)/Ht;if(Math.abs(ot)>=Q0||fn>.11){eo(bn.current),(ht=v.onDismiss)==null||ht.call(v,v),Ce(oe==="x"?St>0?"right":"left":bt>0?"down":"up"),Qt(),Zo(!0),Jo(!1);return}Jr(!1),ce(null)},onPointerMove:xe=>{var Re,_e,ht,St;if(!cn.current||!ln||((Re=window.getSelection())==null?void 0:Re.toString().length)>0)return;let bt=xe.clientY-cn.current.y,Ht=xe.clientX-cn.current.x,ot=(_e=r.swipeDirections)!=null?_e:K0(fe);!oe&&(Math.abs(Ht)>1||Math.abs(bt)>1)&&ce(Math.abs(Ht)>Math.abs(bt)?"x":"y");let fn={x:0,y:0};oe==="y"?(ot.includes("top")||ot.includes("bottom"))&&(ot.includes("top")&&bt<0||ot.includes("bottom")&&bt>0)&&(fn.y=bt):oe==="x"&&(ot.includes("left")||ot.includes("right"))&&(ot.includes("left")&&Ht<0||ot.includes("right")&&Ht>0)&&(fn.x=Ht),(Math.abs(fn.x)>0||Math.abs(fn.y)>0)&&Jo(!0),(ht=an.current)==null||ht.style.setProperty("--swipe-amount-x",`${fn.x}px`),(St=an.current)==null||St.style.setProperty("--swipe-amount-y",`${fn.y}px`)}},Cr&&!v.jsx?X.createElement("button",{"aria-label":N,"data-disabled":dn,"data-close-button":!0,onClick:dn||!ln?()=>{}:()=>{var xe;Qt(),(xe=v.onDismiss)==null||xe.call(v,v)},className:tn($==null?void 0:$.closeButton,(c=v==null?void 0:v.classNames)==null?void 0:c.closeButton)},(d=G==null?void 0:G.close)!=null?d:R0):null,v.jsx||k.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:X.createElement(X.Fragment,null,pt||v.icon||v.promise?X.createElement("div",{"data-icon":"",className:tn($==null?void 0:$.icon,(m=v==null?void 0:v.classNames)==null?void 0:m.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||ra():null,v.type!=="loading"?v.icon||(G==null?void 0:G[pt])||C0(pt):null):null,X.createElement("div",{"data-content":"",className:tn($==null?void 0:$.content,(h=v==null?void 0:v.classNames)==null?void 0:h.content)},X.createElement("div",{"data-title":"",className:tn($==null?void 0:$.title,(S=v==null?void 0:v.classNames)==null?void 0:S.title)},typeof v.title=="function"?v.title():v.title),v.description?X.createElement("div",{"data-description":"",className:tn(re,ea,$==null?void 0:$.description,(y=v==null?void 0:v.classNames)==null?void 0:y.description)},typeof v.description=="function"?v.description():v.description):null),k.isValidElement(v.cancel)?v.cancel:v.cancel&&hi(v.cancel)?X.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||Z,onClick:xe=>{var Re,_e;hi(v.cancel)&&ln&&((_e=(Re=v.cancel).onClick)==null||_e.call(Re,xe),Qt())},className:tn($==null?void 0:$.cancelButton,(C=v==null?void 0:v.classNames)==null?void 0:C.cancelButton)},v.cancel.label):null,k.isValidElement(v.action)?v.action:v.action&&hi(v.action)?X.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||_,onClick:xe=>{var Re,_e;hi(v.action)&&((_e=(Re=v.action).onClick)==null||_e.call(Re,xe),!xe.defaultPrevented&&Qt())},className:tn($==null?void 0:$.actionButton,(P=v==null?void 0:v.classNames)==null?void 0:P.actionButton)},v.action.label):null))};function Mp(){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 q0(r,o){let a={};return[r,o].forEach((l,c)=>{let d=c===1,m=d?"--mobile-offset":"--offset",h=d?W0:B0;function S(y){["top","right","bottom","left"].forEach(C=>{a[`${m}-${C}`]=typeof y=="number"?`${y}px`:y})}typeof l=="number"||typeof l=="string"?S(l):typeof l=="object"?["top","right","bottom","left"].forEach(y=>{l[y]===void 0?a[`${m}-${y}`]=h:a[`${m}-${y}`]=typeof l[y]=="number"?`${l[y]}px`:l[y]}):S(h)}),a}var Y0=k.forwardRef(function(r,o){let{invert:a,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:m,className:h,offset:S,mobileOffset:y,theme:C="light",richColors:P,duration:j,style:v,visibleToasts:A=U0,toastOptions:x,dir:M=Mp(),gap:F=$0,loadingIcon:H,icons:B,containerAriaLabel:D="Notifications",pauseWhenPageIsHidden:te}=r,[ne,K]=X.useState([]),ae=X.useMemo(()=>Array.from(new Set([l].concat(ne.filter(z=>z.position).map(z=>z.position)))),[ne,l]),[L,Z]=X.useState([]),[_,O]=X.useState(!1),[re,ie]=X.useState(!1),[fe,be]=X.useState(C!=="system"?C:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),we=X.useRef(null),q=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=X.useRef(null),G=X.useRef(!1),N=X.useCallback(z=>{K(oe=>{var ce;return(ce=oe.find(ye=>ye.id===z.id))!=null&&ce.delete||Rt.dismiss(z.id),oe.filter(({id:ye})=>ye!==z.id)})},[]);return X.useEffect(()=>Rt.subscribe(z=>{if(z.dismiss){K(oe=>oe.map(ce=>ce.id===z.id?{...ce,delete:!0}:ce));return}setTimeout(()=>{Ah.flushSync(()=>{K(oe=>{let ce=oe.findIndex(ye=>ye.id===z.id);return ce!==-1?[...oe.slice(0,ce),{...oe[ce],...z},...oe.slice(ce+1)]:[z,...oe]})})})}),[]),X.useEffect(()=>{if(C!=="system"){be(C);return}if(C==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?be("dark"):be("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:oe})=>{be(oe?"dark":"light")})}catch{z.addListener(({matches:ce})=>{try{be(ce?"dark":"light")}catch(ye){console.error(ye)}})}},[C]),X.useEffect(()=>{ne.length<=1&&O(!1)},[ne]),X.useEffect(()=>{let z=oe=>{var ce,ye;c.every(Ce=>oe[Ce]||oe.code===Ce)&&(O(!0),(ce=we.current)==null||ce.focus()),oe.code==="Escape"&&(document.activeElement===we.current||(ye=we.current)!=null&&ye.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[c]),X.useEffect(()=>{if(we.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,G.current=!1)}},[we.current]),X.createElement("section",{ref:o,"aria-label":`${D} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ae.map((z,oe)=>{var ce;let[ye,Ce]=z.split("-");return ne.length?X.createElement("ol",{key:z,dir:M==="auto"?Mp():M,tabIndex:-1,ref:we,className:h,"data-sonner-toaster":!0,"data-theme":fe,"data-y-position":ye,"data-lifted":_&&ne.length>1&&!d,"data-x-position":Ce,style:{"--front-toast-height":`${((ce=L[0])==null?void 0:ce.height)||0}px`,"--width":`${V0}px`,"--gap":`${F}px`,...v,...q0(S,y)},onBlur:ge=>{G.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(G.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||G.current||(G.current=!0,$.current=ge.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{re||O(!1)},onDragEnd:()=>O(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||ie(!0)},onPointerUp:()=>ie(!1)},ne.filter(ge=>!ge.position&&oe===0||ge.position===z).map((ge,Pe)=>{var Ie,Je;return X.createElement(G0,{key:ge.id,icons:B,index:Pe,toast:ge,defaultRichColors:P,duration:(Ie=x==null?void 0:x.duration)!=null?Ie:j,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:a,visibleToasts:A,closeButton:(Je=x==null?void 0:x.closeButton)!=null?Je:m,interacting:re,position:z,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,removeToast:N,toasts:ne.filter(sn=>sn.position==ge.position),heights:L.filter(sn=>sn.position==ge.position),setHeights:Z,expandByDefault:d,gap:F,loadingIcon:H,expanded:_,pauseWhenPageIsHidden:te,swipeDirections:r.swipeDirections})})):null}))});const Tp={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"},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"},corpId:{zh:"企业 ID",en:"Corp ID"},agentId:{zh:"应用 Agent ID",en:"Agent 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"},callbackPort:{zh:"回调端口",en:"Callback Port"},callbackPath:{zh:"回调路径",en:"Callback 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 Y(r,o="en"){var a,l;return((a=Tp[r])==null?void 0:a[o])||((l=Tp[r])==null?void 0:l.en)||r}function Yo(){return uc({queryKey:["config"],queryFn:g0,staleTime:3e4,refetchOnWindowFocus:!0})}function pc(){return uc({queryKey:["config-meta"],queryFn:y0,staleTime:1/0})}function Xo(){return uc({queryKey:["config-schema"],queryFn:v0,staleTime:1/0})}function X0(){const r=Go();return Ys({mutationFn:x0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),wt.success(Y("configSaved"))},onError:o=>{wt.error(Y("configSaveFailed")+": "+o.message)}})}function Z0(){const r=Go();return Ys({mutationFn:({provider:o,data:a})=>w0(o,a),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),wt.success(Y("configSaved"))},onError:o=>{wt.error(Y("configSaveFailed")+": "+o.message)}})}function J0(){const r=Go();return Ys({mutationFn:({channel:o,data:a})=>S0(o,a),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),wt.success(Y("configSavedApplied"))},onError:o=>{wt.error(Y("configSaveFailed")+": "+o.message)}})}function ex(){const r=Go();return Ys({mutationFn:({data:o})=>b0(o),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),wt.success(Y("configSavedApplied"))},onError:o=>{wt.error(Y("configSaveFailed")+": "+o.message)}})}function tx(){return Ys({mutationFn:({actionId:r,data:o})=>k0(r,o),onError:r=>{wt.error(Y("error")+": "+r.message)}})}function nx(r){return Array.isArray(r)?r.filter(o=>typeof o=="string").join("."):r}function it(r,o){if(!o)return;const a=nx(r),l=o[a];if(l)return l;const c=a.split(".");for(const[d,m]of Object.entries(o)){if(!d.includes("*"))continue;const h=d.split(".");if(h.length!==c.length)continue;let S=!0;for(let y=0;y<c.length;y+=1)if(h[y]!=="*"&&h[y]!==c[y]){S=!1;break}if(S)return m}}function Rp(){const{data:r,isLoading:o}=Yo(),{data:a}=Xo(),l=X0(),[c,d]=k.useState(""),[m,h]=k.useState(""),[S,y]=k.useState(8192),C=a==null?void 0:a.uiHints,P=it("agents.defaults.model",C),j=it("agents.defaults.workspace",C),v=it("agents.defaults.maxTokens",C);k.useEffect(()=>{var x;(x=r==null?void 0:r.agents)!=null&&x.defaults&&(d(r.agents.defaults.model||""),h(r.agents.defaults.workspace||""),y(r.agents.defaults.maxTokens||8192))},[r]);const A=x=>{x.preventDefault(),l.mutate({model:c})};return o?p.jsxs("div",{className:"max-w-2xl space-y-6",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(en,{className:"h-8 w-32"}),p.jsx(en,{className:"h-4 w-48"})]}),p.jsxs(Oo,{className:"rounded-2xl border-gray-200 p-6",children:[p.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[p.jsx(en,{className:"h-12 w-12 rounded-xl"}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(en,{className:"h-5 w-24"}),p.jsx(en,{className:"h-3 w-32"})]})]}),p.jsx(en,{className:"h-4 w-20 mb-2"}),p.jsx(en,{className:"h-10 w-full rounded-xl"})]}),p.jsxs(Oo,{className:"rounded-2xl border-gray-200 p-6",children:[p.jsx(en,{className:"h-5 w-24 mb-2"}),p.jsx(en,{className:"h-3 w-40 mb-6"}),p.jsx("div",{className:"space-y-6",children:p.jsxs("div",{children:[p.jsx(en,{className:"h-4 w-28 mb-3"}),p.jsx(en,{className:"h-2 w-full rounded-full"})]})})]})]}):p.jsxs("div",{className:"max-w-4xl animate-fade-in pb-20",children:[p.jsxs("div",{className:"mb-10",children:[p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Model Configuration"}),p.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Configure default AI model and runtime limits"})]}),p.jsxs("form",{onSubmit:A,className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[p.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[p.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[p.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:p.jsx(Oh,{className:"h-5 w-5"})}),p.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Default Model"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Dn,{htmlFor:"model",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(P==null?void 0:P.label)??"Model Name"}),p.jsx(He,{id:"model",value:c,onChange:x=>d(x.target.value),placeholder:(P==null?void 0:P.placeholder)??"minimax/MiniMax-M2.1",className:"h-12 px-4 rounded-xl"}),p.jsx("p",{className:"text-xs text-gray-400",children:(P==null?void 0:P.help)??"Examples: minimax/MiniMax-M2.5 · minimax/MiniMax-M2.1 · openrouter/anthropic/claude-3.5-sonnet · openrouter/openai/gpt-4o-mini"})]})]}),p.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[p.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[p.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:p.jsx(e0,{className:"h-5 w-5"})}),p.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Workspace"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Dn,{htmlFor:"workspace",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(j==null?void 0:j.label)??"Default Path"}),p.jsx(He,{id:"workspace",value:m,onChange:x=>h(x.target.value),placeholder:(j==null?void 0:j.placeholder)??"/path/to/workspace",className:"h-12 px-4 rounded-xl"})]})]})]}),p.jsxs("div",{className:"p-8 rounded-2xl bg-white border border-gray-200 shadow-card",children:[p.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[p.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:p.jsx(a0,{className:"h-5 w-5"})}),p.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Generation Parameters"})]}),p.jsx("div",{className:"grid grid-cols-1 gap-12",children:p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex justify-between items-center mb-2",children:[p.jsx(Dn,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(v==null?void 0:v.label)??"Max Tokens"}),p.jsx("span",{className:"text-sm font-semibold text-gray-900",children:S.toLocaleString()})]}),p.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:S,onChange:x=>y(parseInt(x.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]})})]}),p.jsx("div",{className:"flex justify-end pt-4",children:p.jsx(xt,{type:"submit",disabled:l.isPending,size:"lg",children:l.isPending?p.jsx(n0,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function Sr(r,o,{checkForDefaultPrevented:a=!0}={}){return function(c){if(r==null||r(c),a===!1||!c.defaultPrevented)return o==null?void 0:o(c)}}function Ip(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)}function Dh(...r){return o=>{let a=!1;const l=r.map(c=>{const d=Ip(c,o);return!a&&typeof d=="function"&&(a=!0),d});if(a)return()=>{for(let c=0;c<l.length;c++){const d=l[c];typeof d=="function"?d():Ip(r[c],null)}}}}function Zr(...r){return k.useCallback(Dh(...r),r)}function rx(r,o){const a=k.createContext(o),l=d=>{const{children:m,...h}=d,S=k.useMemo(()=>h,Object.values(h));return p.jsx(a.Provider,{value:S,children:m})};l.displayName=r+"Provider";function c(d){const m=k.useContext(a);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[l,c]}function ox(r,o=[]){let a=[];function l(d,m){const h=k.createContext(m),S=a.length;a=[...a,m];const y=P=>{var F;const{scope:j,children:v,...A}=P,x=((F=j==null?void 0:j[r])==null?void 0:F[S])||h,M=k.useMemo(()=>A,Object.values(A));return p.jsx(x.Provider,{value:M,children:v})};y.displayName=d+"Provider";function C(P,j){var x;const v=((x=j==null?void 0:j[r])==null?void 0:x[S])||h,A=k.useContext(v);if(A)return A;if(m!==void 0)return m;throw new Error(`\`${P}\` must be used within \`${d}\``)}return[y,C]}const c=()=>{const d=a.map(m=>k.createContext(m));return function(h){const S=(h==null?void 0:h[r])||d;return k.useMemo(()=>({[`__scope${r}`]:{...h,[r]:S}}),[h,S])}};return c.scopeName=r,[l,sx(c,...o)]}function sx(...r){const o=r[0];if(r.length===1)return o;const a=()=>{const l=r.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const m=l.reduce((h,{useScope:S,scopeName:y})=>{const P=S(d)[`__scope${y}`];return{...h,...P}},{});return k.useMemo(()=>({[`__scope${o.scopeName}`]:m}),[m])}};return a.scopeName=o.scopeName,a}var Vs=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},ax=uh[" useId ".trim().toString()]||(()=>{}),ix=0;function Nu(r){const[o,a]=k.useState(ax());return Vs(()=>{a(l=>l??String(ix++))},[r]),r||(o?`radix-${o}`:"")}var lx=uh[" useInsertionEffect ".trim().toString()]||Vs;function ux({prop:r,defaultProp:o,onChange:a=()=>{},caller:l}){const[c,d,m]=cx({defaultProp:o,onChange:a}),h=r!==void 0,S=h?r:c;{const C=k.useRef(r!==void 0);k.useEffect(()=>{const P=C.current;P!==h&&console.warn(`${l} is changing from ${P?"controlled":"uncontrolled"} to ${h?"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.`),C.current=h},[h,l])}const y=k.useCallback(C=>{var P;if(h){const j=dx(C)?C(r):C;j!==r&&((P=m.current)==null||P.call(m,j))}else d(C)},[h,r,d,m]);return[S,y]}function cx({defaultProp:r,onChange:o}){const[a,l]=k.useState(r),c=k.useRef(a),d=k.useRef(o);return lx(()=>{d.current=o},[o]),k.useEffect(()=>{var m;c.current!==a&&((m=d.current)==null||m.call(d,a),c.current=a)},[a,c]),[a,l,d]}function dx(r){return typeof r=="function"}function Lh(r){const o=fx(r),a=k.forwardRef((l,c)=>{const{children:d,...m}=l,h=k.Children.toArray(d),S=h.find(hx);if(S){const y=S.props.children,C=h.map(P=>P===S?k.Children.count(y)>1?k.Children.only(null):k.isValidElement(y)?y.props.children:null:P);return p.jsx(o,{...m,ref:c,children:k.isValidElement(y)?k.cloneElement(y,void 0,C):null})}return p.jsx(o,{...m,ref:c,children:d})});return a.displayName=`${r}.Slot`,a}function fx(r){const o=k.forwardRef((a,l)=>{const{children:c,...d}=a;if(k.isValidElement(c)){const m=gx(c),h=mx(d,c.props);return c.type!==k.Fragment&&(h.ref=l?Dh(l,m):m),k.cloneElement(c,h)}return k.Children.count(c)>1?k.Children.only(null):null});return o.displayName=`${r}.SlotClone`,o}var px=Symbol("radix.slottable");function hx(r){return k.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===px}function mx(r,o){const a={...o};for(const l in o){const c=r[l],d=o[l];/^on[A-Z]/.test(l)?c&&d?a[l]=(...h)=>{const S=d(...h);return c(...h),S}:c&&(a[l]=c):l==="style"?a[l]={...c,...d}:l==="className"&&(a[l]=[c,d].filter(Boolean).join(" "))}return{...r,...a}}function gx(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,a=o&&"isReactWarning"in o&&o.isReactWarning;return a?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,a=o&&"isReactWarning"in o&&o.isReactWarning,a?r.props.ref:r.props.ref||r.ref)}var yx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fn=yx.reduce((r,o)=>{const a=Lh(`Primitive.${o}`),l=k.forwardRef((c,d)=>{const{asChild:m,...h}=c,S=m?a:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(S,{...h,ref:d})});return l.displayName=`Primitive.${o}`,{...r,[o]:l}},{});function vx(r,o){r&&_h.flushSync(()=>r.dispatchEvent(o))}function $s(r){const o=k.useRef(r);return k.useEffect(()=>{o.current=r}),k.useMemo(()=>(...a)=>{var l;return(l=o.current)==null?void 0:l.call(o,...a)},[])}function xx(r,o=globalThis==null?void 0:globalThis.document){const a=$s(r);k.useEffect(()=>{const l=c=>{c.key==="Escape"&&a(c)};return o.addEventListener("keydown",l,{capture:!0}),()=>o.removeEventListener("keydown",l,{capture:!0})},[a,o])}var wx="DismissableLayer",ec="dismissableLayer.update",Sx="dismissableLayer.pointerDownOutside",bx="dismissableLayer.focusOutside",Op,Fh=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uh=k.forwardRef((r,o)=>{const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:h,...S}=r,y=k.useContext(Fh),[C,P]=k.useState(null),j=(C==null?void 0:C.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=k.useState({}),A=Zr(o,K=>P(K)),x=Array.from(y.layers),[M]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),F=x.indexOf(M),H=C?x.indexOf(C):-1,B=y.layersWithOutsidePointerEventsDisabled.size>0,D=H>=F,te=Ex(K=>{const ae=K.target,L=[...y.branches].some(Z=>Z.contains(ae));!D||L||(c==null||c(K),m==null||m(K),K.defaultPrevented||h==null||h())},j),ne=Nx(K=>{const ae=K.target;[...y.branches].some(Z=>Z.contains(ae))||(d==null||d(K),m==null||m(K),K.defaultPrevented||h==null||h())},j);return xx(K=>{H===y.layers.size-1&&(l==null||l(K),!K.defaultPrevented&&h&&(K.preventDefault(),h()))},j),k.useEffect(()=>{if(C)return a&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Op=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(C)),y.layers.add(C),zp(),()=>{a&&y.layersWithOutsidePointerEventsDisabled.size===1&&(j.body.style.pointerEvents=Op)}},[C,j,a,y]),k.useEffect(()=>()=>{C&&(y.layers.delete(C),y.layersWithOutsidePointerEventsDisabled.delete(C),zp())},[C,y]),k.useEffect(()=>{const K=()=>v({});return document.addEventListener(ec,K),()=>document.removeEventListener(ec,K)},[]),p.jsx(Fn.div,{...S,ref:A,style:{pointerEvents:B?D?"auto":"none":void 0,...r.style},onFocusCapture:Sr(r.onFocusCapture,ne.onFocusCapture),onBlurCapture:Sr(r.onBlurCapture,ne.onBlurCapture),onPointerDownCapture:Sr(r.onPointerDownCapture,te.onPointerDownCapture)})});Uh.displayName=wx;var kx="DismissableLayerBranch",Cx=k.forwardRef((r,o)=>{const a=k.useContext(Fh),l=k.useRef(null),c=Zr(o,l);return k.useEffect(()=>{const d=l.current;if(d)return a.branches.add(d),()=>{a.branches.delete(d)}},[a.branches]),p.jsx(Fn.div,{...r,ref:c})});Cx.displayName=kx;function Ex(r,o=globalThis==null?void 0:globalThis.document){const a=$s(r),l=k.useRef(!1),c=k.useRef(()=>{});return k.useEffect(()=>{const d=h=>{if(h.target&&!l.current){let S=function(){Bh(Sx,a,y,{discrete:!0})};const y={originalEvent:h};h.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=S,o.addEventListener("click",c.current,{once:!0})):S()}else o.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),o.removeEventListener("pointerdown",d),o.removeEventListener("click",c.current)}},[o,a]),{onPointerDownCapture:()=>l.current=!0}}function Nx(r,o=globalThis==null?void 0:globalThis.document){const a=$s(r),l=k.useRef(!1);return k.useEffect(()=>{const c=d=>{d.target&&!l.current&&Bh(bx,a,{originalEvent:d},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,a]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function zp(){const r=new CustomEvent(ec);document.dispatchEvent(r)}function Bh(r,o,a,{discrete:l}){const c=a.originalEvent.target,d=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:a});o&&c.addEventListener(r,o,{once:!0}),l?vx(c,d):c.dispatchEvent(d)}var Pu="focusScope.autoFocusOnMount",ju="focusScope.autoFocusOnUnmount",_p={bubbles:!1,cancelable:!0},Px="FocusScope",Wh=k.forwardRef((r,o)=>{const{loop:a=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=r,[h,S]=k.useState(null),y=$s(c),C=$s(d),P=k.useRef(null),j=Zr(o,x=>S(x)),v=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(l){let x=function(B){if(v.paused||!h)return;const D=B.target;h.contains(D)?P.current=D:cr(P.current,{select:!0})},M=function(B){if(v.paused||!h)return;const D=B.relatedTarget;D!==null&&(h.contains(D)||cr(P.current,{select:!0}))},F=function(B){if(document.activeElement===document.body)for(const te of B)te.removedNodes.length>0&&cr(h)};document.addEventListener("focusin",x),document.addEventListener("focusout",M);const H=new MutationObserver(F);return h&&H.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",M),H.disconnect()}}},[l,h,v.paused]),k.useEffect(()=>{if(h){Dp.add(v);const x=document.activeElement;if(!h.contains(x)){const F=new CustomEvent(Pu,_p);h.addEventListener(Pu,y),h.dispatchEvent(F),F.defaultPrevented||(jx(Ox(Vh(h)),{select:!0}),document.activeElement===x&&cr(h))}return()=>{h.removeEventListener(Pu,y),setTimeout(()=>{const F=new CustomEvent(ju,_p);h.addEventListener(ju,C),h.dispatchEvent(F),F.defaultPrevented||cr(x??document.body,{select:!0}),h.removeEventListener(ju,C),Dp.remove(v)},0)}}},[h,y,C,v]);const A=k.useCallback(x=>{if(!a&&!l||v.paused)return;const M=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,F=document.activeElement;if(M&&F){const H=x.currentTarget,[B,D]=Mx(H);B&&D?!x.shiftKey&&F===D?(x.preventDefault(),a&&cr(B,{select:!0})):x.shiftKey&&F===B&&(x.preventDefault(),a&&cr(D,{select:!0})):F===H&&x.preventDefault()}},[a,l,v.paused]);return p.jsx(Fn.div,{tabIndex:-1,...m,ref:j,onKeyDown:A})});Wh.displayName=Px;function jx(r,{select:o=!1}={}){const a=document.activeElement;for(const l of r)if(cr(l,{select:o}),document.activeElement!==a)return}function Mx(r){const o=Vh(r),a=Ap(o,r),l=Ap(o.reverse(),r);return[a,l]}function Vh(r){const o=[],a=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(;a.nextNode();)o.push(a.currentNode);return o}function Ap(r,o){for(const a of r)if(!Tx(a,{upTo:o}))return a}function Tx(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 Rx(r){return r instanceof HTMLInputElement&&"select"in r}function cr(r,{select:o=!1}={}){if(r&&r.focus){const a=document.activeElement;r.focus({preventScroll:!0}),r!==a&&Rx(r)&&o&&r.select()}}var Dp=Ix();function Ix(){let r=[];return{add(o){const a=r[0];o!==a&&(a==null||a.pause()),r=Lp(r,o),r.unshift(o)},remove(o){var a;r=Lp(r,o),(a=r[0])==null||a.resume()}}}function Lp(r,o){const a=[...r],l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}function Ox(r){return r.filter(o=>o.tagName!=="A")}var zx="Portal",$h=k.forwardRef((r,o)=>{var h;const{container:a,...l}=r,[c,d]=k.useState(!1);Vs(()=>d(!0),[]);const m=a||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?Ah.createPortal(p.jsx(Fn.div,{...l,ref:o}),m):null});$h.displayName=zx;function _x(r,o){return k.useReducer((a,l)=>o[a][l]??a,r)}var zi=r=>{const{present:o,children:a}=r,l=Ax(o),c=typeof a=="function"?a({present:l.isPresent}):k.Children.only(a),d=Zr(l.ref,Dx(c));return typeof a=="function"||l.isPresent?k.cloneElement(c,{ref:d}):null};zi.displayName="Presence";function Ax(r){const[o,a]=k.useState(),l=k.useRef(null),c=k.useRef(r),d=k.useRef("none"),m=r?"mounted":"unmounted",[h,S]=_x(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const y=mi(l.current);d.current=h==="mounted"?y:"none"},[h]),Vs(()=>{const y=l.current,C=c.current;if(C!==r){const j=d.current,v=mi(y);r?S("MOUNT"):v==="none"||(y==null?void 0:y.display)==="none"?S("UNMOUNT"):S(C&&j!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,S]),Vs(()=>{if(o){let y;const C=o.ownerDocument.defaultView??window,P=v=>{const x=mi(l.current).includes(CSS.escape(v.animationName));if(v.target===o&&x&&(S("ANIMATION_END"),!c.current)){const M=o.style.animationFillMode;o.style.animationFillMode="forwards",y=C.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=M)})}},j=v=>{v.target===o&&(d.current=mi(l.current))};return o.addEventListener("animationstart",j),o.addEventListener("animationcancel",P),o.addEventListener("animationend",P),()=>{C.clearTimeout(y),o.removeEventListener("animationstart",j),o.removeEventListener("animationcancel",P),o.removeEventListener("animationend",P)}}else S("ANIMATION_END")},[o,S]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:k.useCallback(y=>{l.current=y?getComputedStyle(y):null,a(y)},[])}}function mi(r){return(r==null?void 0:r.animationName)||"none"}function Dx(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,a=o&&"isReactWarning"in o&&o.isReactWarning;return a?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,a=o&&"isReactWarning"in o&&o.isReactWarning,a?r.props.ref:r.props.ref||r.ref)}var Mu=0;function Lx(){k.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Fp()),document.body.insertAdjacentElement("beforeend",r[1]??Fp()),Mu++,()=>{Mu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Mu--}},[])}function Fp(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}var Sn=function(){return Sn=Object.assign||function(o){for(var a,l=1,c=arguments.length;l<c;l++){a=arguments[l];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(o[d]=a[d])}return o},Sn.apply(this,arguments)};function Qh(r,o){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.indexOf(l)<0&&(a[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])&&(a[l[c]]=r[l[c]]);return a}function Fx(r,o,a){if(a||arguments.length===2)for(var l=0,c=o.length,d;l<c;l++)(d||!(l in o))&&(d||(d=Array.prototype.slice.call(o,0,l)),d[l]=o[l]);return r.concat(d||Array.prototype.slice.call(o))}var Pi="right-scroll-bar-position",ji="width-before-scroll-bar",Ux="with-scroll-bars-hidden",Bx="--removed-body-scroll-bar-size";function Tu(r,o){return typeof r=="function"?r(o):r&&(r.current=o),r}function Wx(r,o){var a=k.useState(function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(l){var c=a.value;c!==l&&(a.value=l,a.callback(l,c))}}}})[0];return a.callback=o,a.facade}var Vx=typeof window<"u"?k.useLayoutEffect:k.useEffect,Up=new WeakMap;function $x(r,o){var a=Wx(null,function(l){return r.forEach(function(c){return Tu(c,l)})});return Vx(function(){var l=Up.get(a);if(l){var c=new Set(l),d=new Set(r),m=a.current;c.forEach(function(h){d.has(h)||Tu(h,null)}),d.forEach(function(h){c.has(h)||Tu(h,m)})}Up.set(a,r)},[r]),a}function Qx(r){return r}function Hx(r,o){o===void 0&&(o=Qx);var a=[],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 a.length?a[a.length-1]:r},useMedium:function(d){var m=o(d,l);return a.push(m),function(){a=a.filter(function(h){return h!==m})}},assignSyncMedium:function(d){for(l=!0;a.length;){var m=a;a=[],m.forEach(d)}a={push:function(h){return d(h)},filter:function(){return a}}},assignMedium:function(d){l=!0;var m=[];if(a.length){var h=a;a=[],h.forEach(d),m=a}var S=function(){var C=m;m=[],C.forEach(d)},y=function(){return Promise.resolve().then(S)};y(),a={push:function(C){m.push(C),y()},filter:function(C){return m=m.filter(C),a}}}};return c}function Kx(r){r===void 0&&(r={});var o=Hx(null);return o.options=Sn({async:!0,ssr:!1},r),o}var Hh=function(r){var o=r.sideCar,a=Qh(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,Sn({},a))};Hh.isSideCarExport=!0;function Gx(r,o){return r.useMedium(o),Hh}var Kh=Kx(),Ru=function(){},_i=k.forwardRef(function(r,o){var a=k.useRef(null),l=k.useState({onScrollCapture:Ru,onWheelCapture:Ru,onTouchMoveCapture:Ru}),c=l[0],d=l[1],m=r.forwardProps,h=r.children,S=r.className,y=r.removeScrollBar,C=r.enabled,P=r.shards,j=r.sideCar,v=r.noRelative,A=r.noIsolation,x=r.inert,M=r.allowPinchZoom,F=r.as,H=F===void 0?"div":F,B=r.gapMode,D=Qh(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),te=j,ne=$x([a,o]),K=Sn(Sn({},D),c);return k.createElement(k.Fragment,null,C&&k.createElement(te,{sideCar:Kh,removeScrollBar:y,shards:P,noRelative:v,noIsolation:A,inert:x,setCallbacks:d,allowPinchZoom:!!M,lockRef:a,gapMode:B}),m?k.cloneElement(k.Children.only(h),Sn(Sn({},K),{ref:ne})):k.createElement(H,Sn({},K,{className:S,ref:ne}),h))});_i.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_i.classNames={fullWidth:ji,zeroRight:Pi};var qx=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yx(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var o=qx();return o&&r.setAttribute("nonce",o),r}function Xx(r,o){r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o))}function Zx(r){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(r)}var Jx=function(){var r=0,o=null;return{add:function(a){r==0&&(o=Yx())&&(Xx(o,a),Zx(o)),r++},remove:function(){r--,!r&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},e1=function(){var r=Jx();return function(o,a){k.useEffect(function(){return r.add(o),function(){r.remove()}},[o&&a])}},Gh=function(){var r=e1(),o=function(a){var l=a.styles,c=a.dynamic;return r(l,c),null};return o},t1={left:0,top:0,right:0,gap:0},Iu=function(r){return parseInt(r||"",10)||0},n1=function(r){var o=window.getComputedStyle(document.body),a=o[r==="padding"?"paddingLeft":"marginLeft"],l=o[r==="padding"?"paddingTop":"marginTop"],c=o[r==="padding"?"paddingRight":"marginRight"];return[Iu(a),Iu(l),Iu(c)]},r1=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return t1;var o=n1(r),a=document.documentElement.clientWidth,l=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,l-a+o[2]-o[0])}},o1=Gh(),zo="data-scroll-locked",s1=function(r,o,a,l){var c=r.left,d=r.top,m=r.right,h=r.gap;return a===void 0&&(a="margin"),`
197
- .`.concat(Ux,` {
198
- overflow: hidden `).concat(l,`;
199
- padding-right: `).concat(h,"px ").concat(l,`;
200
- }
201
- body[`).concat(zo,`] {
202
- overflow: hidden `).concat(l,`;
203
- overscroll-behavior: contain;
204
- `).concat([o&&"position: relative ".concat(l,";"),a==="margin"&&`
205
- padding-left: `.concat(c,`px;
206
- padding-top: `).concat(d,`px;
207
- padding-right: `).concat(m,`px;
208
- margin-left:0;
209
- margin-top:0;
210
- margin-right: `).concat(h,"px ").concat(l,`;
211
- `),a==="padding"&&"padding-right: ".concat(h,"px ").concat(l,";")].filter(Boolean).join(""),`
212
- }
213
-
214
- .`).concat(Pi,` {
215
- right: `).concat(h,"px ").concat(l,`;
216
- }
217
-
218
- .`).concat(ji,` {
219
- margin-right: `).concat(h,"px ").concat(l,`;
220
- }
221
-
222
- .`).concat(Pi," .").concat(Pi,` {
223
- right: 0 `).concat(l,`;
224
- }
225
-
226
- .`).concat(ji," .").concat(ji,` {
227
- margin-right: 0 `).concat(l,`;
228
- }
229
-
230
- body[`).concat(zo,`] {
231
- `).concat(Bx,": ").concat(h,`px;
232
- }
233
- `)},Bp=function(){var r=parseInt(document.body.getAttribute(zo)||"0",10);return isFinite(r)?r:0},a1=function(){k.useEffect(function(){return document.body.setAttribute(zo,(Bp()+1).toString()),function(){var r=Bp()-1;r<=0?document.body.removeAttribute(zo):document.body.setAttribute(zo,r.toString())}},[])},i1=function(r){var o=r.noRelative,a=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;a1();var d=k.useMemo(function(){return r1(c)},[c]);return k.createElement(o1,{styles:s1(d,!o,c,a?"":"!important")})},tc=!1;if(typeof window<"u")try{var gi=Object.defineProperty({},"passive",{get:function(){return tc=!0,!0}});window.addEventListener("test",gi,gi),window.removeEventListener("test",gi,gi)}catch{tc=!1}var Mo=tc?{passive:!1}:!1,l1=function(r){return r.tagName==="TEXTAREA"},qh=function(r,o){if(!(r instanceof Element))return!1;var a=window.getComputedStyle(r);return a[o]!=="hidden"&&!(a.overflowY===a.overflowX&&!l1(r)&&a[o]==="visible")},u1=function(r){return qh(r,"overflowY")},c1=function(r){return qh(r,"overflowX")},Wp=function(r,o){var a=o.ownerDocument,l=o;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Yh(r,l);if(c){var d=Xh(r,l),m=d[1],h=d[2];if(m>h)return!0}l=l.parentNode}while(l&&l!==a.body);return!1},d1=function(r){var o=r.scrollTop,a=r.scrollHeight,l=r.clientHeight;return[o,a,l]},f1=function(r){var o=r.scrollLeft,a=r.scrollWidth,l=r.clientWidth;return[o,a,l]},Yh=function(r,o){return r==="v"?u1(o):c1(o)},Xh=function(r,o){return r==="v"?d1(o):f1(o)},p1=function(r,o){return r==="h"&&o==="rtl"?-1:1},h1=function(r,o,a,l,c){var d=p1(r,window.getComputedStyle(o).direction),m=d*l,h=a.target,S=o.contains(h),y=!1,C=m>0,P=0,j=0;do{if(!h)break;var v=Xh(r,h),A=v[0],x=v[1],M=v[2],F=x-M-d*A;(A||F)&&Yh(r,h)&&(P+=F,j+=A);var H=h.parentNode;h=H&&H.nodeType===Node.DOCUMENT_FRAGMENT_NODE?H.host:H}while(!S&&h!==document.body||S&&(o.contains(h)||o===h));return(C&&Math.abs(P)<1||!C&&Math.abs(j)<1)&&(y=!0),y},yi=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Vp=function(r){return[r.deltaX,r.deltaY]},$p=function(r){return r&&"current"in r?r.current:r},m1=function(r,o){return r[0]===o[0]&&r[1]===o[1]},g1=function(r){return`
234
- .block-interactivity-`.concat(r,` {pointer-events: none;}
235
- .allow-interactivity-`).concat(r,` {pointer-events: all;}
236
- `)},y1=0,To=[];function v1(r){var o=k.useRef([]),a=k.useRef([0,0]),l=k.useRef(),c=k.useState(y1++)[0],d=k.useState(Gh)[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 x=Fx([r.lockRef.current],(r.shards||[]).map($p),!0).filter(Boolean);return x.forEach(function(M){return M.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),x.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var h=k.useCallback(function(x,M){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!m.current.allowPinchZoom;var F=yi(x),H=a.current,B="deltaX"in x?x.deltaX:H[0]-F[0],D="deltaY"in x?x.deltaY:H[1]-F[1],te,ne=x.target,K=Math.abs(B)>Math.abs(D)?"h":"v";if("touches"in x&&K==="h"&&ne.type==="range")return!1;var ae=window.getSelection(),L=ae&&ae.anchorNode,Z=L?L===ne||L.contains(ne):!1;if(Z)return!1;var _=Wp(K,ne);if(!_)return!0;if(_?te=K:(te=K==="v"?"h":"v",_=Wp(K,ne)),!_)return!1;if(!l.current&&"changedTouches"in x&&(B||D)&&(l.current=te),!te)return!0;var O=l.current||te;return h1(O,M,x,O==="h"?B:D)},[]),S=k.useCallback(function(x){var M=x;if(!(!To.length||To[To.length-1]!==d)){var F="deltaY"in M?Vp(M):yi(M),H=o.current.filter(function(te){return te.name===M.type&&(te.target===M.target||M.target===te.shadowParent)&&m1(te.delta,F)})[0];if(H&&H.should){M.cancelable&&M.preventDefault();return}if(!H){var B=(m.current.shards||[]).map($p).filter(Boolean).filter(function(te){return te.contains(M.target)}),D=B.length>0?h(M,B[0]):!m.current.noIsolation;D&&M.cancelable&&M.preventDefault()}}},[]),y=k.useCallback(function(x,M,F,H){var B={name:x,delta:M,target:F,should:H,shadowParent:x1(F)};o.current.push(B),setTimeout(function(){o.current=o.current.filter(function(D){return D!==B})},1)},[]),C=k.useCallback(function(x){a.current=yi(x),l.current=void 0},[]),P=k.useCallback(function(x){y(x.type,Vp(x),x.target,h(x,r.lockRef.current))},[]),j=k.useCallback(function(x){y(x.type,yi(x),x.target,h(x,r.lockRef.current))},[]);k.useEffect(function(){return To.push(d),r.setCallbacks({onScrollCapture:P,onWheelCapture:P,onTouchMoveCapture:j}),document.addEventListener("wheel",S,Mo),document.addEventListener("touchmove",S,Mo),document.addEventListener("touchstart",C,Mo),function(){To=To.filter(function(x){return x!==d}),document.removeEventListener("wheel",S,Mo),document.removeEventListener("touchmove",S,Mo),document.removeEventListener("touchstart",C,Mo)}},[]);var v=r.removeScrollBar,A=r.inert;return k.createElement(k.Fragment,null,A?k.createElement(d,{styles:g1(c)}):null,v?k.createElement(i1,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function x1(r){for(var o=null;r!==null;)r instanceof ShadowRoot&&(o=r.host,r=r.host),r=r.parentNode;return o}const w1=Gx(Kh,v1);var Zh=k.forwardRef(function(r,o){return k.createElement(_i,Sn({},r,{ref:o,sideCar:w1}))});Zh.classNames=_i.classNames;var S1=function(r){if(typeof document>"u")return null;var o=Array.isArray(r)?r[0]:r;return o.ownerDocument.body},Ro=new WeakMap,vi=new WeakMap,xi={},Ou=0,Jh=function(r){return r&&(r.host||Jh(r.parentNode))},b1=function(r,o){return o.map(function(a){if(r.contains(a))return a;var l=Jh(a);return l&&r.contains(l)?l:(console.error("aria-hidden",a,"in not contained inside",r,". Doing nothing"),null)}).filter(function(a){return!!a})},k1=function(r,o,a,l){var c=b1(o,Array.isArray(r)?r:[r]);xi[a]||(xi[a]=new WeakMap);var d=xi[a],m=[],h=new Set,S=new Set(c),y=function(P){!P||h.has(P)||(h.add(P),y(P.parentNode))};c.forEach(y);var C=function(P){!P||S.has(P)||Array.prototype.forEach.call(P.children,function(j){if(h.has(j))C(j);else try{var v=j.getAttribute(l),A=v!==null&&v!=="false",x=(Ro.get(j)||0)+1,M=(d.get(j)||0)+1;Ro.set(j,x),d.set(j,M),m.push(j),x===1&&A&&vi.set(j,!0),M===1&&j.setAttribute(a,"true"),A||j.setAttribute(l,"true")}catch(F){console.error("aria-hidden: cannot operate on ",j,F)}})};return C(o),h.clear(),Ou++,function(){m.forEach(function(P){var j=Ro.get(P)-1,v=d.get(P)-1;Ro.set(P,j),d.set(P,v),j||(vi.has(P)||P.removeAttribute(l),vi.delete(P)),v||P.removeAttribute(a)}),Ou--,Ou||(Ro=new WeakMap,Ro=new WeakMap,vi=new WeakMap,xi={})}},C1=function(r,o,a){a===void 0&&(a="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=S1(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),k1(l,c,a,"aria-hidden")):function(){return null}},Ai="Dialog",[em]=ox(Ai),[E1,on]=em(Ai),tm=r=>{const{__scopeDialog:o,children:a,open:l,defaultOpen:c,onOpenChange:d,modal:m=!0}=r,h=k.useRef(null),S=k.useRef(null),[y,C]=ux({prop:l,defaultProp:c??!1,onChange:d,caller:Ai});return p.jsx(E1,{scope:o,triggerRef:h,contentRef:S,contentId:Nu(),titleId:Nu(),descriptionId:Nu(),open:y,onOpenChange:C,onOpenToggle:k.useCallback(()=>C(P=>!P),[C]),modal:m,children:a})};tm.displayName=Ai;var nm="DialogTrigger",N1=k.forwardRef((r,o)=>{const{__scopeDialog:a,...l}=r,c=on(nm,a),d=Zr(o,c.triggerRef);return p.jsx(Fn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":gc(c.open),...l,ref:d,onClick:Sr(r.onClick,c.onOpenToggle)})});N1.displayName=nm;var hc="DialogPortal",[P1,rm]=em(hc,{forceMount:void 0}),om=r=>{const{__scopeDialog:o,forceMount:a,children:l,container:c}=r,d=on(hc,o);return p.jsx(P1,{scope:o,forceMount:a,children:k.Children.map(l,m=>p.jsx(zi,{present:a||d.open,children:p.jsx($h,{asChild:!0,container:c,children:m})}))})};om.displayName=hc;var Ii="DialogOverlay",sm=k.forwardRef((r,o)=>{const a=rm(Ii,r.__scopeDialog),{forceMount:l=a.forceMount,...c}=r,d=on(Ii,r.__scopeDialog);return d.modal?p.jsx(zi,{present:l||d.open,children:p.jsx(M1,{...c,ref:o})}):null});sm.displayName=Ii;var j1=Lh("DialogOverlay.RemoveScroll"),M1=k.forwardRef((r,o)=>{const{__scopeDialog:a,...l}=r,c=on(Ii,a);return p.jsx(Zh,{as:j1,allowPinchZoom:!0,shards:[c.contentRef],children:p.jsx(Fn.div,{"data-state":gc(c.open),...l,ref:o,style:{pointerEvents:"auto",...l.style}})})}),Yr="DialogContent",am=k.forwardRef((r,o)=>{const a=rm(Yr,r.__scopeDialog),{forceMount:l=a.forceMount,...c}=r,d=on(Yr,r.__scopeDialog);return p.jsx(zi,{present:l||d.open,children:d.modal?p.jsx(T1,{...c,ref:o}):p.jsx(R1,{...c,ref:o})})});am.displayName=Yr;var T1=k.forwardRef((r,o)=>{const a=on(Yr,r.__scopeDialog),l=k.useRef(null),c=Zr(o,a.contentRef,l);return k.useEffect(()=>{const d=l.current;if(d)return C1(d)},[]),p.jsx(im,{...r,ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sr(r.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=a.triggerRef.current)==null||m.focus()}),onPointerDownOutside:Sr(r.onPointerDownOutside,d=>{const m=d.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&d.preventDefault()}),onFocusOutside:Sr(r.onFocusOutside,d=>d.preventDefault())})}),R1=k.forwardRef((r,o)=>{const a=on(Yr,r.__scopeDialog),l=k.useRef(!1),c=k.useRef(!1);return p.jsx(im,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,h;(m=r.onCloseAutoFocus)==null||m.call(r,d),d.defaultPrevented||(l.current||(h=a.triggerRef.current)==null||h.focus(),d.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:d=>{var S,y;(S=r.onInteractOutside)==null||S.call(r,d),d.defaultPrevented||(l.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=d.target;((y=a.triggerRef.current)==null?void 0:y.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),im=k.forwardRef((r,o)=>{const{__scopeDialog:a,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=r,h=on(Yr,a),S=k.useRef(null),y=Zr(o,S);return Lx(),p.jsxs(p.Fragment,{children:[p.jsx(Wh,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:d,children:p.jsx(Uh,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":gc(h.open),...m,ref:y,onDismiss:()=>h.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(I1,{titleId:h.titleId}),p.jsx(z1,{contentRef:S,descriptionId:h.descriptionId})]})]})}),mc="DialogTitle",lm=k.forwardRef((r,o)=>{const{__scopeDialog:a,...l}=r,c=on(mc,a);return p.jsx(Fn.h2,{id:c.titleId,...l,ref:o})});lm.displayName=mc;var um="DialogDescription",cm=k.forwardRef((r,o)=>{const{__scopeDialog:a,...l}=r,c=on(um,a);return p.jsx(Fn.p,{id:c.descriptionId,...l,ref:o})});cm.displayName=um;var dm="DialogClose",fm=k.forwardRef((r,o)=>{const{__scopeDialog:a,...l}=r,c=on(dm,a);return p.jsx(Fn.button,{type:"button",...l,ref:o,onClick:Sr(r.onClick,()=>c.onOpenChange(!1))})});fm.displayName=dm;function gc(r){return r?"open":"closed"}var pm="DialogTitleWarning",[uw,hm]=rx(pm,{contentName:Yr,titleName:mc,docsSlug:"dialog"}),I1=({titleId:r})=>{const o=hm(pm),a=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
237
-
238
- If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
239
-
240
- For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return k.useEffect(()=>{r&&(document.getElementById(r)||console.error(a))},[a,r]),null},O1="DialogDescriptionWarning",z1=({contentRef:r,descriptionId:o})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hm(O1).contentName}}.`;return k.useEffect(()=>{var d;const c=(d=r.current)==null?void 0:d.getAttribute("aria-describedby");o&&c&&(document.getElementById(o)||console.warn(l))},[l,r,o]),null},_1=tm,A1=om,mm=sm,gm=am,ym=lm,vm=cm,D1=fm;const xm=_1,L1=A1,wm=k.forwardRef(({className:r,...o},a)=>p.jsx(mm,{ref:a,className:Te("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}));wm.displayName=mm.displayName;const yc=k.forwardRef(({className:r,children:o,...a},l)=>p.jsxs(L1,{children:[p.jsx(wm,{}),p.jsxs(gm,{ref:l,className:Te("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),...a,children:[o,p.jsxs(D1,{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:[p.jsx(zh,{className:"h-4 w-4 text-gray-500"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));yc.displayName=gm.displayName;const vc=({className:r,...o})=>p.jsx("div",{className:Te("flex flex-col space-y-2 text-center sm:text-left",r),...o});vc.displayName="DialogHeader";const xc=({className:r,...o})=>p.jsx("div",{className:Te("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",r),...o});xc.displayName="DialogFooter";const wc=k.forwardRef(({className:r,...o},a)=>p.jsx(ym,{ref:a,className:Te("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));wc.displayName=ym.displayName;const Sc=k.forwardRef(({className:r,...o},a)=>p.jsx(vm,{ref:a,className:Te("text-sm text-gray-500 leading-relaxed",r),...o}));Sc.displayName=vm.displayName;function F1({maskedValue:r,isSet:o,className:a,...l}){const[c,d]=k.useState(!1);return p.jsxs("div",{className:"relative",children:[p.jsx(He,{type:c?"text":"password",className:Te("pr-20",a),placeholder:o?`${Y("apiKeySet")} (Unchanged)`:"",...l}),p.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex gap-1",children:(o||r)&&p.jsx(xt,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>d(!c),children:c?p.jsx(Zv,{className:"h-4 w-4"}):p.jsx(Jv,{className:"h-4 w-4"})})})]})}function U1({value:r,onChange:o,className:a}){const l=r?Object.entries(r):[],c=(h,S,y)=>{const C=[...l];C[h]=[S,y],o(Object.fromEntries(C))},d=()=>{o({...r,"":""})},m=h=>{const S=l.filter((y,C)=>C!==h);o(Object.fromEntries(S))};return p.jsxs("div",{className:Te("space-y-2",a),children:[l.map(([h,S],y)=>p.jsxs("div",{className:"flex gap-2",children:[p.jsx(He,{type:"text",value:h,onChange:C=>c(y,C.target.value,S),placeholder:Y("headerName"),className:"flex-1"}),p.jsx(He,{type:"text",value:S,onChange:C=>c(y,h,C.target.value),placeholder:Y("headerValue"),className:"flex-1"}),p.jsx(xt,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(y),children:p.jsx(Zu,{className:"h-4 w-4 text-red-500"})})]},y)),p.jsxs(xt,{type:"button",variant:"outline",size:"sm",onClick:d,children:[p.jsx(Xu,{className:"h-4 w-4 mr-2"}),Y("add")]})]})}function B1(){const{providerModal:r,closeProviderModal:o}=Xr(),{data:a}=Yo(),{data:l}=pc(),{data:c}=Xo(),d=Z0(),[m,h]=k.useState(""),[S,y]=k.useState(""),[C,P]=k.useState(null),[j,v]=k.useState("auto"),A=r.provider,x=l==null?void 0:l.providers.find(K=>K.name===A),M=A?a==null?void 0:a.providers[A]:null,F=c==null?void 0:c.uiHints,H=A?it(`providers.${A}.apiKey`,F):void 0,B=A?it(`providers.${A}.apiBase`,F):void 0,D=A?it(`providers.${A}.extraHeaders`,F):void 0,te=A?it(`providers.${A}.wireApi`,F):void 0;k.useEffect(()=>{if(M){y(M.apiBase||(x==null?void 0:x.defaultApiBase)||""),P(M.extraHeaders||null),h("");const K=M.wireApi||(x==null?void 0:x.defaultWireApi)||"auto";v(K)}},[M,x]);const ne=K=>{K.preventDefault();const ae={};if(m!==""&&(ae.apiKey=m),S&&S!==(x==null?void 0:x.defaultApiBase)&&(ae.apiBase=S),C&&Object.keys(C).length>0&&(ae.extraHeaders=C),x!=null&&x.supportsWireApi){const L=(M==null?void 0:M.wireApi)||x.defaultWireApi||"auto";j!==L&&(ae.wireApi=j)}A&&d.mutate({provider:A,data:ae},{onSuccess:()=>o()})};return p.jsx(xm,{open:r.open,onOpenChange:o,children:p.jsxs(yc,{className:"sm:max-w-[500px]",children:[p.jsx(vc,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center",children:p.jsx(Ri,{className:"h-5 w-5 text-white"})}),p.jsxs("div",{children:[p.jsx(wc,{children:(x==null?void 0:x.displayName)||A}),p.jsx(Sc,{children:"Configure API keys and parameters for AI provider"})]})]})}),p.jsxs("form",{onSubmit:ne,className:"flex flex-col pt-2",children:[p.jsxs("div",{className:"space-y-5 max-h-[60vh] overflow-y-auto pr-1",children:[p.jsxs("div",{className:"space-y-2.5",children:[p.jsxs(Dn,{htmlFor:"apiKey",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[p.jsx(Ri,{className:"h-3.5 w-3.5 text-gray-500"}),(H==null?void 0:H.label)??Y("apiKey")]}),p.jsx(F1,{id:"apiKey",value:m,isSet:M==null?void 0:M.apiKeySet,onChange:K=>h(K.target.value),placeholder:M!=null&&M.apiKeySet?Y("apiKeySet"):(H==null?void 0:H.placeholder)??"Enter API Key",className:"rounded-xl"})]}),p.jsxs("div",{className:"space-y-2.5",children:[p.jsxs(Dn,{htmlFor:"apiBase",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[p.jsx(Rh,{className:"h-3.5 w-3.5 text-gray-500"}),(B==null?void 0:B.label)??Y("apiBase")]}),p.jsx(He,{id:"apiBase",type:"text",value:S,onChange:K=>y(K.target.value),placeholder:(x==null?void 0:x.defaultApiBase)||(B==null?void 0:B.placeholder)||"https://api.example.com",className:"rounded-xl"}),(B==null?void 0:B.help)&&p.jsx("p",{className:"text-xs text-gray-500",children:B.help})]}),(x==null?void 0:x.supportsWireApi)&&p.jsxs("div",{className:"space-y-2.5",children:[p.jsxs(Dn,{htmlFor:"wireApi",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[p.jsx(Yu,{className:"h-3.5 w-3.5 text-gray-500"}),(te==null?void 0:te.label)??Y("wireApi")]}),p.jsx("select",{id:"wireApi",value:j,onChange:K=>v(K.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:(x.wireApiOptions||["auto","chat","responses"]).map(K=>p.jsx("option",{value:K,children:Y(K==="chat"?"wireApiChat":K==="responses"?"wireApiResponses":"wireApiAuto")},K))})]}),p.jsxs("div",{className:"space-y-2.5",children:[p.jsxs(Dn,{className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[p.jsx(Yu,{className:"h-3.5 w-3.5 text-gray-500"}),(D==null?void 0:D.label)??Y("extraHeaders")]}),p.jsx(U1,{value:C,onChange:P})]})]}),p.jsxs(xc,{className:"pt-4 flex-shrink-0",children:[p.jsx(xt,{type:"button",variant:"outline",onClick:o,children:Y("cancel")}),p.jsx(xt,{type:"submit",disabled:d.isPending,children:d.isPending?"Saving...":Y("save")})]})]})]})})}function Sm({tabs:r,activeTab:o,onChange:a,className:l}){return p.jsx("div",{className:Te("flex items-center gap-8 border-b border-gray-200 mb-8",l),children:r.map(c=>{const d=o===c.id;return p.jsxs("button",{onClick:()=>a(c.id),className:Te("relative pb-4 text-[15px] font-semibold transition-all duration-fast flex items-center gap-2",d?"text-primary":"text-gray-500 hover:text-gray-700"),children:[c.label,c.count!==void 0&&p.jsx("span",{className:"text-[11px] font-medium text-gray-400",children:c.count.toLocaleString()}),d&&p.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 bm({name:r,src:o,className:a,imgClassName:l,fallback:c}){const[d,m]=k.useState(!1),h=!!o&&!d;return p.jsx("div",{className:Te("flex items-center justify-center",a),children:h?p.jsx("img",{src:o,alt:`${r} logo`,className:Te("h-6 w-6 object-contain",l),onError:()=>m(!0),draggable:!1}):c??p.jsx("span",{className:"text-lg font-bold uppercase",children:r.slice(0,1)})})}const W1={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"},V1={telegram:"telegram.svg",slack:"slack.svg",discord:"discord.svg",whatsapp:"whatsapp.svg",qq:"qq.svg",feishu:"feishu.svg",dingtalk:"dingtalk.svg",wecom:"wecom.svg",mochat:"mochat.svg",email:"email.svg"};function km(r,o){const a=o.toLowerCase(),l=r[a];return l?`/logos/${l}`:null}function $1(r){return km(W1,r)}function Q1(r){return km(V1,r)}function H1(){const{data:r}=Yo(),{data:o}=pc(),{data:a}=Xo(),{openProviderModal:l}=Xr(),[c,d]=k.useState("installed"),m=a==null?void 0:a.uiHints;if(!r||!o)return p.jsx("div",{className:"p-8",children:"Loading..."});const h=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(y=>r.providers[y].apiKeySet).length:0},{id:"all",label:"All Providers"}],S=c==="installed"?o.providers.filter(y=>{var C;return(C=r.providers[y.name])==null?void 0:C.apiKeySet}):o.providers;return p.jsxs("div",{className:"animate-fade-in pb-20",children:[p.jsx("div",{className:"flex items-center justify-between mb-8",children:p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"AI Providers"})}),p.jsx(Sm,{tabs:h,activeTab:c,onChange:d}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:S.map(y=>{const C=r.providers[y.name],P=C==null?void 0:C.apiKeySet,j=it(`providers.${y.name}`,m),v=(j==null?void 0:j.help)||"Configure AI services for your agents";return p.jsxs("div",{className:Te("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",P?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(y.name),children:[p.jsxs("div",{className:"flex items-start justify-between mb-4",children:[p.jsx(bm,{name:y.name,src:$1(y.name),className:Te("h-12 w-12 rounded-xl border transition-all",P?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-7 w-7",fallback:p.jsx("span",{className:Te("text-lg font-bold uppercase",P?"text-gray-900":"text-gray-500"),children:y.name[0]})}),P?p.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[p.jsx(qv,{className:"h-3.5 w-3.5"}),p.jsx("span",{className:"text-[11px] font-bold",children:"Ready"})]}):p.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[p.jsx(Ih,{className:"h-3.5 w-3.5"}),p.jsx("span",{className:"text-[11px] font-bold",children:"Setup"})]})]}),p.jsxs("div",{className:"flex-1",children:[p.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:y.displayName||y.name}),p.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:v})]}),p.jsx("div",{className:"mt-4 pt-3",children:p.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] font-semibold text-gray-600 group-hover:text-primary transition-colors cursor-pointer",children:[P?"Configure":"Add Provider",p.jsx(Th,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})})]},y.name)})}),S.length===0&&p.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[p.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:p.jsx(Ri,{className:"h-8 w-8 text-gray-400"})}),p.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No providers configured"}),p.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."})]}),p.jsx(B1,{})]})}const bc=k.forwardRef(({className:r,checked:o=!1,onCheckedChange:a,...l},c)=>p.jsx("button",{type:"button",role:"switch","aria-checked":o,ref:c,className:Te("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:()=>a==null?void 0:a(!o),...l,children:p.jsx("span",{className:Te("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")})}));bc.displayName="Switch";function K1({value:r,onChange:o,className:a,placeholder:l="Type and press Enter..."}){const[c,d]=k.useState(""),m=S=>{S.key==="Enter"&&c.trim()?(S.preventDefault(),o([...r,c.trim()]),d("")):S.key==="Backspace"&&!c&&r.length>0&&o(r.slice(0,-1))},h=S=>{o(r.filter((y,C)=>C!==S))};return p.jsxs("div",{className:Te("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",a),children:[r.map((S,y)=>p.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[S,p.jsx("button",{type:"button",onClick:()=>h(y),className:"hover:text-red-300 transition-colors",children:p.jsx(zh,{className:"h-3 w-3"})})]},y)),p.jsx("input",{type:"text",value:c,onChange:S=>d(S.target.value),onKeyDown:m,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:l})]})}const Qp=[{value:"pairing",label:"pairing"},{value:"allowlist",label:"allowlist"},{value:"open",label:"open"},{value:"disabled",label:"disabled"}],Hp=[{value:"open",label:"open"},{value:"allowlist",label:"allowlist"},{value:"disabled",label:"disabled"}],G1=r=>r.includes("token")||r.includes("secret")||r.includes("password")?p.jsx(Ri,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("url")||r.includes("host")?p.jsx(Rh,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("email")||r.includes("mail")?p.jsx(dc,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("id")||r.includes("from")?p.jsx(Yu,{className:"h-3.5 w-3.5 text-gray-500"}):r==="enabled"||r==="consentGranted"?p.jsx(i0,{className:"h-3.5 w-3.5 text-gray-500"}):p.jsx(Ih,{className:"h-3.5 w-3.5 text-gray-500"}),q1={telegram:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"token",type:"password",label:Y("botToken")},{name:"allowFrom",type:"tags",label:Y("allowFrom")},{name:"proxy",type:"text",label:Y("proxy")},{name:"accountId",type:"text",label:"Account ID"},{name:"dmPolicy",type:"select",label:"DM Policy",options:Qp},{name:"groupPolicy",type:"select",label:"Group Policy",options:Hp},{name:"groupAllowFrom",type:"tags",label:"Group Allow From"},{name:"requireMention",type:"boolean",label:"Require Mention"},{name:"mentionPatterns",type:"tags",label:"Mention Patterns"},{name:"groups",type:"json",label:"Group Rules (JSON)"}],discord:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"token",type:"password",label:Y("botToken")},{name:"allowBots",type:"boolean",label:"Allow Bot Messages"},{name:"allowFrom",type:"tags",label:Y("allowFrom")},{name:"gatewayUrl",type:"text",label:Y("gatewayUrl")},{name:"intents",type:"number",label:Y("intents")},{name:"proxy",type:"text",label:Y("proxy")},{name:"mediaMaxMb",type:"number",label:"Attachment Max Size (MB)"},{name:"accountId",type:"text",label:"Account ID"},{name:"dmPolicy",type:"select",label:"DM Policy",options:Qp},{name:"groupPolicy",type:"select",label:"Group Policy",options:Hp},{name:"groupAllowFrom",type:"tags",label:"Group Allow From"},{name:"requireMention",type:"boolean",label:"Require Mention"},{name:"mentionPatterns",type:"tags",label:"Mention Patterns"},{name:"groups",type:"json",label:"Group Rules (JSON)"}],whatsapp:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"bridgeUrl",type:"text",label:Y("bridgeUrl")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"appId",type:"text",label:Y("appId")},{name:"appSecret",type:"password",label:Y("appSecret")},{name:"encryptKey",type:"password",label:Y("encryptKey")},{name:"verificationToken",type:"password",label:Y("verificationToken")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"clientId",type:"text",label:Y("clientId")},{name:"clientSecret",type:"password",label:Y("clientSecret")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],wecom:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"corpId",type:"text",label:Y("corpId")},{name:"agentId",type:"text",label:Y("agentId")},{name:"secret",type:"password",label:Y("secret")},{name:"token",type:"password",label:Y("token")},{name:"callbackPort",type:"number",label:Y("callbackPort")},{name:"callbackPath",type:"text",label:Y("callbackPath")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"mode",type:"text",label:Y("mode")},{name:"webhookPath",type:"text",label:Y("webhookPath")},{name:"allowBots",type:"boolean",label:"Allow Bot Messages"},{name:"botToken",type:"password",label:Y("botToken")},{name:"appToken",type:"password",label:Y("appToken")}],email:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"consentGranted",type:"boolean",label:Y("consentGranted")},{name:"imapHost",type:"text",label:Y("imapHost")},{name:"imapPort",type:"number",label:Y("imapPort")},{name:"imapUsername",type:"text",label:Y("imapUsername")},{name:"imapPassword",type:"password",label:Y("imapPassword")},{name:"fromAddress",type:"email",label:Y("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"baseUrl",type:"text",label:Y("baseUrl")},{name:"clawToken",type:"password",label:Y("clawToken")},{name:"agentUserId",type:"text",label:Y("agentUserId")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"appId",type:"text",label:Y("appId")},{name:"secret",type:"password",label:Y("appSecret")},{name:"markdownSupport",type:"boolean",label:Y("markdownSupport")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}]},Kp={telegram:Si,slack:Si,email:dc,default:Si},Gp={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 Oi(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Cm(r,o){const a={...r};for(const[l,c]of Object.entries(o)){const d=a[l];if(Oi(d)&&Oi(c)){a[l]=Cm(d,c);continue}a[l]=c}return a}function Y1(r,o){const a=r.split("."),l={};let c=l;for(let d=0;d<a.length-1;d+=1){const m=a[d];c[m]={},c=c[m]}return c[a[a.length-1]]=o,l}function X1(){var L,Z;const{channelModal:r,closeChannelModal:o}=Xr(),{data:a}=Yo(),{data:l}=Xo(),c=J0(),d=tx(),[m,h]=k.useState({}),[S,y]=k.useState({}),[C,P]=k.useState(null),j=r.channel,v=j?a==null?void 0:a.channels[j]:null,A=k.useMemo(()=>j?q1[j]:[],[j]),x=l==null?void 0:l.uiHints,M=j?`channels.${j}`:null,F=((L=l==null?void 0:l.actions)==null?void 0:L.filter(_=>_.scope===M))??[],H=j&&(((Z=it(`channels.${j}`,x))==null?void 0:Z.label)??j);k.useEffect(()=>{if(v){h({...v});const _={};A.filter(O=>O.type==="json").forEach(O=>{const re=v[O.name];_[O.name]=JSON.stringify(re??{},null,2)}),y(_)}else h({}),y({})},[v,j,A]);const B=(_,O)=>{h(re=>({...re,[_]:O}))},D=_=>{if(_.preventDefault(),!j)return;const O={...m};for(const re of A){if(re.type!=="json")continue;const ie=S[re.name]??"";try{O[re.name]=ie.trim()?JSON.parse(ie):{}}catch{wt.error(`Invalid JSON for ${re.name}`);return}}c.mutate({channel:j,data:O},{onSuccess:()=>o()})},te=_=>{if(!_||!j)return;const O=_.channels;if(!Oi(O))return;const re=O[j];Oi(re)&&h(ie=>Cm(ie,re))},ne=async _=>{if(!(!j||!M)){P(_.id);try{let O={...m};_.saveBeforeRun&&(O={...O,..._.savePatch??{}},h(O),await c.mutateAsync({channel:j,data:O}));const re=await d.mutateAsync({actionId:_.id,data:{scope:M,draftConfig:Y1(M,O)}});te(re.patch),re.ok?wt.success(re.message||Y("success")):wt.error(re.message||Y("error"))}catch(O){const re=O instanceof Error?O.message:String(O);wt.error(`${Y("error")}: ${re}`)}finally{P(null)}}},K=Kp[j||""]||Kp.default,ae=Gp[j||""]||Gp.default;return p.jsx(xm,{open:r.open,onOpenChange:o,children:p.jsxs(yc,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[p.jsx(vc,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:`h-10 w-10 rounded-xl bg-gradient-to-br ${ae} flex items-center justify-center`,children:p.jsx(K,{className:"h-5 w-5 text-white"})}),p.jsxs("div",{children:[p.jsx(wc,{className:"capitalize",children:H}),p.jsx(Sc,{children:"Configure message channel parameters"})]})]})}),p.jsxs("form",{onSubmit:D,className:"flex flex-col flex-1 overflow-hidden",children:[p.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2 pr-2 space-y-5",children:A.map(_=>{const O=j?it(`channels.${j}.${_.name}`,x):void 0,re=(O==null?void 0:O.label)??_.label,ie=O==null?void 0:O.placeholder;return p.jsxs("div",{className:"space-y-2.5",children:[p.jsxs(Dn,{htmlFor:_.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[G1(_.name),re]}),_.type==="boolean"&&p.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-gray-50",children:[p.jsx("span",{className:"text-sm text-gray-500",children:m[_.name]?Y("enabled"):Y("disabled")}),p.jsx(bc,{id:_.name,checked:m[_.name]||!1,onCheckedChange:fe=>B(_.name,fe),className:"data-[state=checked]:bg-emerald-500"})]}),(_.type==="text"||_.type==="email")&&p.jsx(He,{id:_.name,type:_.type,value:m[_.name]||"",onChange:fe=>B(_.name,fe.target.value),placeholder:ie,className:"rounded-xl"}),_.type==="password"&&p.jsx(He,{id:_.name,type:"password",value:m[_.name]||"",onChange:fe=>B(_.name,fe.target.value),placeholder:ie??"Leave blank to keep unchanged",className:"rounded-xl"}),_.type==="number"&&p.jsx(He,{id:_.name,type:"number",value:m[_.name]||0,onChange:fe=>B(_.name,parseInt(fe.target.value)||0),placeholder:ie,className:"rounded-xl"}),_.type==="tags"&&p.jsx(K1,{value:m[_.name]||[],onChange:fe=>B(_.name,fe)}),_.type==="select"&&p.jsx("select",{id:_.name,value:m[_.name]||"",onChange:fe=>B(_.name,fe.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm",children:(_.options??[]).map(fe=>p.jsx("option",{value:fe.value,children:fe.label},fe.value))}),_.type==="json"&&p.jsx("textarea",{id:_.name,value:S[_.name]??"{}",onChange:fe=>y(be=>({...be,[_.name]:fe.target.value})),className:"min-h-[120px] w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs font-mono"})]},_.name)})}),p.jsxs(xc,{className:"pt-4 flex-shrink-0",children:[p.jsx(xt,{type:"button",variant:"outline",onClick:o,children:Y("cancel")}),p.jsx(xt,{type:"submit",disabled:c.isPending||!!C,children:c.isPending?"Saving...":Y("save")}),F.filter(_=>_.trigger==="manual").map(_=>p.jsx(xt,{type:"button",onClick:()=>ne(_),disabled:c.isPending||!!C,variant:"secondary",children:C===_.id?Y("connecting"):_.title},_.id))]})]})]})})}const qp={telegram:Si,slack:s0,email:dc,webhook:Gv,default:fc},Z1={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 J1(){const{data:r}=Yo(),{data:o}=pc(),{data:a}=Xo(),{openChannelModal:l}=Xr(),[c,d]=k.useState("active"),m=a==null?void 0:a.uiHints;if(!r||!o)return p.jsx("div",{className:"p-8 text-gray-400",children:"Loading channels..."});const h=[{id:"active",label:"Enabled",count:o.channels.filter(y=>{var C;return(C=r.channels[y.name])==null?void 0:C.enabled}).length},{id:"all",label:"All Channels",count:o.channels.length}],S=o.channels.filter(y=>{var P;const C=((P=r.channels[y.name])==null?void 0:P.enabled)||!1;return c==="all"||C});return p.jsxs("div",{className:"animate-fade-in pb-20",children:[p.jsx("div",{className:"flex items-center justify-between mb-8",children:p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Message Channels"})}),p.jsx(Sm,{tabs:h,activeTab:c,onChange:d}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:S.map(y=>{const C=r.channels[y.name],P=(C==null?void 0:C.enabled)||!1,j=qp[y.name]||qp.default,v=it(`channels.${y.name}`,m),A=(v==null?void 0:v.help)||Z1[y.name]||"Configure this communication channel";return p.jsxs("div",{className:Te("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",P?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(y.name),children:[p.jsxs("div",{className:"flex items-start justify-between mb-4",children:[p.jsx(bm,{name:y.name,src:Q1(y.name),className:Te("h-12 w-12 rounded-xl border transition-all",P?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-6 w-6",fallback:p.jsx(j,{className:"h-6 w-6"})}),P?p.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[p.jsx(l0,{className:"h-3.5 w-3.5"}),p.jsx("span",{className:"text-[11px] font-bold",children:"Active"})]}):p.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[p.jsx(r0,{className:"h-3.5 w-3.5"}),p.jsx("span",{className:"text-[11px] font-bold",children:"Inactive"})]})]}),p.jsxs("div",{className:"flex-1",children:[p.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:y.displayName||y.name}),p.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:A})]}),p.jsxs("div",{className:"mt-4 pt-3 flex items-center justify-between",children:[p.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] font-semibold text-gray-600 group-hover:text-primary transition-colors cursor-pointer",children:[P?"Configure":"Enable",p.jsx(Th,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}),y.tutorialUrl&&p.jsx("a",{href:y.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:x=>x.stopPropagation(),className:"flex items-center justify-center h-7 w-7 rounded-lg text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-colors",title:"View Guide",children:p.jsx(Xv,{className:"h-3.5 w-3.5"})})]})]},y.name)})}),S.length===0&&p.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[p.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:p.jsx(fc,{className:"h-8 w-8 text-gray-400"})}),p.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No channels enabled"}),p.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."})]}),p.jsx(X1,{})]})}const ew=[{value:"main",label:"main"},{value:"per-peer",label:"per-peer"},{value:"per-channel-peer",label:"per-channel-peer"},{value:"per-account-channel-peer",label:"per-account-channel-peer"}];function tw(){return{id:"",default:!1,workspace:"",model:"",maxTokens:void 0,contextTokens:void 0,maxToolIterations:void 0}}function nw(){return{agentId:"",match:{channel:"",accountId:""}}}function zu(r){const o=r.trim();if(!o)return;const a=Number.parseInt(o,10);return Number.isFinite(a)?a:void 0}function rw(){const{data:r,isLoading:o}=Yo(),{data:a}=Xo(),l=ex(),[c,d]=k.useState([]),[m,h]=k.useState([]),[S,y]=k.useState("per-channel-peer"),[C,P]=k.useState(0),[j,v]=k.useState(2e5);k.useEffect(()=>{var L,Z,_;r&&(d((r.agents.list??[]).map(O=>({id:O.id??"",default:!!O.default,workspace:O.workspace??"",model:O.model??"",maxTokens:O.maxTokens,contextTokens:O.contextTokens,maxToolIterations:O.maxToolIterations}))),h((r.bindings??[]).map(O=>{var re,ie,fe;return{agentId:O.agentId??"",match:{channel:((re=O.match)==null?void 0:re.channel)??"",accountId:((ie=O.match)==null?void 0:ie.accountId)??"",peer:(fe=O.match)!=null&&fe.peer?{kind:O.match.peer.kind,id:O.match.peer.id}:void 0}}})),y(((L=r.session)==null?void 0:L.dmScope)??"per-channel-peer"),P(((_=(Z=r.session)==null?void 0:Z.agentToAgent)==null?void 0:_.maxPingPongTurns)??0),v(r.agents.defaults.contextTokens??2e5))},[r]);const A=a==null?void 0:a.uiHints,x=it("session.dmScope",A),M=it("session.agentToAgent.maxPingPongTurns",A),F=it("agents.defaults.contextTokens",A),H=it("agents.list.*.contextTokens",A),B=it("agents.list",A),D=it("bindings",A),te=k.useMemo(()=>{const L=new Set(["main"]);return c.forEach(Z=>{const _=Z.id.trim();_&&L.add(_)}),L},[c]),ne=(L,Z)=>{d(_=>_.map((O,re)=>re===L?{...O,...Z}:O))},K=(L,Z)=>{h(_=>_.map((O,re)=>re===L?Z:O))},ae=()=>{try{const L=c.map((O,re)=>{var be,we;const ie=O.id.trim();if(!ie)throw new Error(`agents.list[${re}].id is required`);const fe={id:ie};return O.default&&(fe.default=!0),(be=O.workspace)!=null&&be.trim()&&(fe.workspace=O.workspace.trim()),(we=O.model)!=null&&we.trim()&&(fe.model=O.model.trim()),typeof O.maxTokens=="number"&&(fe.maxTokens=O.maxTokens),typeof O.contextTokens=="number"&&(fe.contextTokens=Math.max(1e3,O.contextTokens)),typeof O.maxToolIterations=="number"&&(fe.maxToolIterations=O.maxToolIterations),fe}),Z=L.map(O=>O.id).filter((O,re,ie)=>ie.indexOf(O)!==re);if(Z.length>0){wt.error(`Duplicate agent id: ${Z[0]}`);return}const _=m.map((O,re)=>{var G,N,z,oe;const ie=O.agentId.trim(),fe=O.match.channel.trim(),be=((G=O.match.accountId)==null?void 0:G.trim())??"",we=(N=O.match.peer)==null?void 0:N.kind,q=((oe=(z=O.match.peer)==null?void 0:z.id)==null?void 0:oe.trim())??"";if(!ie)throw new Error(`bindings[${re}].agentId is required`);if(!te.has(ie))throw new Error(`bindings[${re}].agentId '${ie}' not found in agents.list/main`);if(!fe)throw new Error(`bindings[${re}].match.channel is required`);const $={agentId:ie,match:{channel:fe}};if(be&&($.match.accountId=be),we){if(!q)throw new Error(`bindings[${re}].match.peer.id is required when peer.kind is set`);$.match.peer={kind:we,id:q}}return $});l.mutate({data:{agents:{defaults:{contextTokens:Math.max(1e3,j)},list:L},bindings:_,session:{dmScope:S,agentToAgent:{maxPingPongTurns:Math.min(5,Math.max(0,C))}}}})}catch(L){const Z=L instanceof Error?L.message:String(L);wt.error(Z)}};return o||!r?p.jsx("div",{className:"p-8 text-gray-400",children:"Loading runtime settings..."}):p.jsxs("div",{className:"space-y-6 pb-20 animate-fade-in",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Routing & Runtime"}),p.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Align multi-agent routing with OpenClaw: bindings, agent pool, and DM scope."})]}),p.jsxs(Oo,{children:[p.jsxs(bi,{children:[p.jsx(ki,{children:(x==null?void 0:x.label)??"DM Scope"}),p.jsx(Ci,{children:(x==null?void 0:x.help)??"Control how direct-message sessions are isolated."})]}),p.jsxs(Ei,{className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium text-gray-800",children:(F==null?void 0:F.label)??"Default Context Tokens"}),p.jsx(He,{type:"number",min:1e3,step:1e3,value:j,onChange:L=>v(Math.max(1e3,Number.parseInt(L.target.value,10)||1e3))}),p.jsx("p",{className:"text-xs text-gray-500",children:(F==null?void 0:F.help)??"Input context budget for agents when no per-agent override is set."})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium text-gray-800",children:(x==null?void 0:x.label)??"DM Scope"}),p.jsx("select",{value:S,onChange:L=>y(L.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm",children:ew.map(L=>p.jsx("option",{value:L.value,children:L.label},L.value))})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium text-gray-800",children:(M==null?void 0:M.label)??"Max Ping-Pong Turns"}),p.jsx(He,{type:"number",min:0,max:5,value:C,onChange:L=>P(Math.max(0,Number.parseInt(L.target.value,10)||0))}),p.jsx("p",{className:"text-xs text-gray-500",children:(M==null?void 0:M.help)??"Set to 0 to block automatic agent-to-agent ping-pong loops."})]})]})]}),p.jsxs(Oo,{children:[p.jsxs(bi,{children:[p.jsx(ki,{children:(B==null?void 0:B.label)??"Agent List"}),p.jsx(Ci,{children:(B==null?void 0:B.help)??"Run multiple fixed-role agents in one gateway process."})]}),p.jsxs(Ei,{className:"space-y-3",children:[c.map((L,Z)=>p.jsxs("div",{className:"rounded-xl border border-gray-200 p-3 space-y-3",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[p.jsx(He,{value:L.id,onChange:_=>ne(Z,{id:_.target.value}),placeholder:"Agent ID (e.g. engineer)"}),p.jsx(He,{value:L.workspace??"",onChange:_=>ne(Z,{workspace:_.target.value}),placeholder:"Workspace override (optional)"}),p.jsx(He,{value:L.model??"",onChange:_=>ne(Z,{model:_.target.value}),placeholder:"Model override (optional)"}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-2",children:[p.jsx(He,{type:"number",min:1,value:L.maxTokens??"",onChange:_=>ne(Z,{maxTokens:zu(_.target.value)}),placeholder:"Max tokens"}),p.jsx(He,{type:"number",min:1e3,step:1e3,value:L.contextTokens??"",onChange:_=>ne(Z,{contextTokens:zu(_.target.value)}),placeholder:(H==null?void 0:H.label)??"Context tokens"}),p.jsx(He,{type:"number",min:1,value:L.maxToolIterations??"",onChange:_=>ne(Z,{maxToolIterations:zu(_.target.value)}),placeholder:"Max tools"})]})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[p.jsx(bc,{checked:!!L.default,onCheckedChange:_=>{if(!_){ne(Z,{default:!1});return}d(O=>O.map((re,ie)=>({...re,default:ie===Z})))}}),p.jsx("span",{children:"Default agent"})]}),p.jsxs(xt,{type:"button",variant:"outline",size:"sm",onClick:()=>d(_=>_.filter((O,re)=>re!==Z)),children:[p.jsx(Zu,{className:"h-4 w-4 mr-1"}),"Remove"]})]})]},`${Z}-${L.id}`)),p.jsxs(xt,{type:"button",variant:"outline",onClick:()=>d(L=>[...L,tw()]),children:[p.jsx(Xu,{className:"h-4 w-4 mr-2"}),"Add Agent"]})]})]}),p.jsxs(Oo,{children:[p.jsxs(bi,{children:[p.jsx(ki,{children:(D==null?void 0:D.label)??"Bindings"}),p.jsx(Ci,{children:(D==null?void 0:D.help)??"Route inbound message by channel + account + peer to target agent."})]}),p.jsxs(Ei,{className:"space-y-3",children:[m.map((L,Z)=>{var O,re;const _=((O=L.match.peer)==null?void 0:O.kind)??"";return p.jsxs("div",{className:"rounded-xl border border-gray-200 p-3 space-y-3",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:[p.jsx(He,{value:L.agentId,onChange:ie=>K(Z,{...L,agentId:ie.target.value}),placeholder:"Target agent ID"}),p.jsx(He,{value:L.match.channel,onChange:ie=>K(Z,{...L,match:{...L.match,channel:ie.target.value}}),placeholder:"Channel (e.g. discord)"}),p.jsx(He,{value:L.match.accountId??"",onChange:ie=>K(Z,{...L,match:{...L.match,accountId:ie.target.value}}),placeholder:"Account ID (optional)"}),p.jsxs("select",{value:_,onChange:ie=>{var be;const fe=ie.target.value;if(!fe){K(Z,{...L,match:{...L.match,peer:void 0}});return}K(Z,{...L,match:{...L.match,peer:{kind:fe,id:((be=L.match.peer)==null?void 0:be.id)??""}}})},className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm",children:[p.jsx("option",{value:"",children:"Peer kind (optional)"}),p.jsx("option",{value:"direct",children:"direct"}),p.jsx("option",{value:"group",children:"group"}),p.jsx("option",{value:"channel",children:"channel"})]}),p.jsx(He,{value:((re=L.match.peer)==null?void 0:re.id)??"",onChange:ie=>K(Z,{...L,match:{...L.match,peer:_?{kind:_,id:ie.target.value}:void 0}}),placeholder:"Peer ID (requires peer kind)"})]}),p.jsx("div",{className:"flex justify-end",children:p.jsxs(xt,{type:"button",variant:"outline",size:"sm",onClick:()=>h(ie=>ie.filter((fe,be)=>be!==Z)),children:[p.jsx(Zu,{className:"h-4 w-4 mr-1"}),"Remove"]})})]},`${Z}-${L.agentId}`)}),p.jsxs(xt,{type:"button",variant:"outline",onClick:()=>h(L=>[...L,nw()]),children:[p.jsx(Xu,{className:"h-4 w-4 mr-2"}),"Add Binding"]})]})]}),p.jsx("div",{className:"flex justify-end",children:p.jsxs(xt,{type:"button",onClick:ae,disabled:l.isPending,children:[p.jsx(o0,{className:"h-4 w-4 mr-2"}),l.isPending?"Saving...":"Save Runtime Settings"]})})]})}class ow{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 a=JSON.parse(o.data);this.emit(a)}catch(a){console.error("Failed to parse WebSocket message:",a)}},this.ws.onclose=()=>{console.log("WebSocket disconnected"),this.manualClose||this.scheduleReconnect()},this.ws.onerror=o=>{console.error("WebSocket error:",o)}}on(o,a){this.handlers.has(o)||this.handlers.set(o,new Set),this.handlers.get(o).add(a)}off(o,a){var l;(l=this.handlers.get(o))==null||l.delete(a)}emit(o){const a=this.handlers.get(o.type);a==null||a.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 sw(r){const[o,a]=k.useState(null),{setConnectionStatus:l}=Xr();return k.useEffect(()=>{const c=(()=>{const m=Ni==null?void 0:Ni.replace(/\/$/,"");if(!m)return"ws://127.0.0.1:18791/ws";try{const h=new URL(m,window.location.origin);return`${h.protocol==="https:"?"wss:":h.protocol==="http:"?"ws:":h.protocol}//${h.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`}})(),d=new ow(c);return d.on("connection.open",()=>{l("connected")}),d.on("config.updated",()=>{r&&r.invalidateQueries({queryKey:["config"]})}),d.on("error",m=>{m.type==="error"&&console.error("WebSocket error:",m.payload.message)}),d.connect(),a(d),()=>d.disconnect()},[l,r]),o}const Yp=new Yy({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function aw(){const{activeTab:r}=Xr();sw(Yp);const o=()=>{switch(r){case"model":return p.jsx(Rp,{});case"providers":return p.jsx(H1,{});case"channels":return p.jsx(J1,{});case"runtime":return p.jsx(rw,{});default:return p.jsx(Rp,{})}};return p.jsxs(Xy,{client:Yp,children:[p.jsx(d0,{children:p.jsx("div",{className:"animate-fade-in",children:o()},r)}),p.jsx(Y0,{position:"top-right",richColors:!0})]})}Ny.createRoot(document.getElementById("root")).render(p.jsx(k.StrictMode,{children:p.jsx(aw,{})}));