@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.
- package/CHANGELOG.md +10 -0
- package/dist/assets/index-DMFVPFFm.js +255 -0
- package/dist/assets/index-uqpsLADF.css +1 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/src/App.tsx +3 -0
- package/src/api/client.ts +4 -0
- package/src/api/config.ts +55 -1
- package/src/api/types.ts +37 -0
- package/src/components/config/SessionsConfig.tsx +246 -0
- package/src/components/layout/Sidebar.tsx +6 -1
- package/src/hooks/useConfig.ts +56 -1
- package/src/stores/ui.store.ts +1 -1
- package/dist/assets/index-BC5c4_c7.css +0 -1
- package/dist/assets/index-DcE7blMH.js +0 -240
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
var th=r=>{throw TypeError(r)};var Su=(r,s,a)=>s.has(r)||th("Cannot "+a);var w=(r,s,a)=>(Su(r,s,"read from private field"),a?a.call(r):s.get(r)),he=(r,s,a)=>s.has(r)?th("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,a),ee=(r,s,a,l)=>(Su(r,s,"write to private field"),l?l.call(r,a):s.set(r,a),a),ke=(r,s,a)=>(Su(r,s,"access private method"),a);var gi=(r,s,a,l)=>({set _(c){ee(r,s,c,a)},get _(){return w(r,s,l)}});function wy(r,s){for(var a=0;a<s.length;a++){const l=s[a];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in r)){const f=Object.getOwnPropertyDescriptor(l,c);f&&Object.defineProperty(r,c,f.get?f:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&l(m)}).observe(document,{childList:!0,subtree:!0});function a(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(c){if(c.ep)return;c.ep=!0;const f=a(c);fetch(c.href,f)}})();function lp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var bu={exports:{}},$o={},ku={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 nh;function Sy(){if(nh)return Ee;nh=1;var r=Symbol.for("react.element"),s=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),N=Symbol.iterator;function P(j){return j===null||typeof j!="object"?null:(j=N&&j[N]||j["@@iterator"],typeof j=="function"?j:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,x={};function M(j,z,oe){this.props=j,this.context=z,this.refs=x,this.updater=oe||y}M.prototype.isReactComponent={},M.prototype.setState=function(j,z){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,z,"setState")},M.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function F(){}F.prototype=M.prototype;function H(j,z,oe){this.props=j,this.context=z,this.refs=x,this.updater=oe||y}var U=H.prototype=new F;U.constructor=H,A(U,M.prototype),U.isPureReactComponent=!0;var L=Array.isArray,te=Object.prototype.hasOwnProperty,ne={current:null},K={key:!0,ref:!0,__self:!0,__source:!0};function W(j,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 je=arguments.length-2;if(je===1)ye.children=oe;else if(1<je){for(var Ie=Array(je),tt=0;tt<je;tt++)Ie[tt]=arguments[tt+2];ye.children=Ie}if(j&&j.defaultProps)for(ce in je=j.defaultProps,je)ye[ce]===void 0&&(ye[ce]=je[ce]);return{$$typeof:r,type:j,key:Ce,ref:ge,props:ye,_owner:ne.current}}function D(j,z){return{$$typeof:r,type:j.type,key:z,ref:j.ref,props:j.props,_owner:j._owner}}function X(j){return typeof j=="object"&&j!==null&&j.$$typeof===r}function _(j){var z={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(oe){return z[oe]})}var O=/\/+/g;function se(j,z){return typeof j=="object"&&j!==null&&j.key!=null?_(""+j.key):z.toString(36)}function ie(j,z,oe,ce,ye){var Ce=typeof j;(Ce==="undefined"||Ce==="boolean")&&(j=null);var ge=!1;if(j===null)ge=!0;else switch(Ce){case"string":case"number":ge=!0;break;case"object":switch(j.$$typeof){case r:case s:ge=!0}}if(ge)return ge=j,ye=ye(ge),j=ce===""?"."+se(ge,0):ce,L(ye)?(oe="",j!=null&&(oe=j.replace(O,"$&/")+"/"),ie(ye,z,oe,"",function(tt){return tt})):ye!=null&&(X(ye)&&(ye=D(ye,oe+(!ye.key||ge&&ge.key===ye.key?"":(""+ye.key).replace(O,"$&/")+"/")+j)),z.push(ye)),1;if(ge=0,ce=ce===""?".":ce+":",L(j))for(var je=0;je<j.length;je++){Ce=j[je];var Ie=ce+se(Ce,je);ge+=ie(Ce,z,oe,Ie,ye)}else if(Ie=P(j),typeof Ie=="function")for(j=Ie.call(j),je=0;!(Ce=j.next()).done;)Ce=Ce.value,Ie=ce+se(Ce,je++),ge+=ie(Ce,z,oe,Ie,ye);else if(Ce==="object")throw z=String(j),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return ge}function fe(j,z,oe){if(j==null)return j;var ce=[],ye=0;return ie(j,ce,"","",function(Ce){return z.call(oe,Ce,ye++)}),ce}function be(j){if(j._status===-1){var z=j._result;z=z(),z.then(function(oe){(j._status===0||j._status===-1)&&(j._status=1,j._result=oe)},function(oe){(j._status===0||j._status===-1)&&(j._status=2,j._result=oe)}),j._status===-1&&(j._status=0,j._result=z)}if(j._status===1)return j._result.default;throw j._result}var we={current:null},Z={transition:null},Q={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:Z,ReactCurrentOwner:ne};function Y(){throw Error("act(...) is not supported in production builds of React.")}return Ee.Children={map:fe,forEach:function(j,z,oe){fe(j,function(){z.apply(this,arguments)},oe)},count:function(j){var z=0;return fe(j,function(){z++}),z},toArray:function(j){return fe(j,function(z){return z})||[]},only:function(j){if(!X(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},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=Q,Ee.act=Y,Ee.cloneElement=function(j,z,oe){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var ce=A({},j.props),ye=j.key,Ce=j.ref,ge=j._owner;if(z!=null){if(z.ref!==void 0&&(Ce=z.ref,ge=ne.current),z.key!==void 0&&(ye=""+z.key),j.type&&j.type.defaultProps)var je=j.type.defaultProps;for(Ie in z)te.call(z,Ie)&&!K.hasOwnProperty(Ie)&&(ce[Ie]=z[Ie]===void 0&&je!==void 0?je[Ie]:z[Ie])}var Ie=arguments.length-2;if(Ie===1)ce.children=oe;else if(1<Ie){je=Array(Ie);for(var tt=0;tt<Ie;tt++)je[tt]=arguments[tt+2];ce.children=je}return{$$typeof:r,type:j.type,key:ye,ref:Ce,props:ce,_owner:ge}},Ee.createContext=function(j){return j={$$typeof:m,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:f,_context:j},j.Consumer=j},Ee.createElement=W,Ee.createFactory=function(j){var z=W.bind(null,j);return z.type=j,z},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(j){return{$$typeof:p,render:j}},Ee.isValidElement=X,Ee.lazy=function(j){return{$$typeof:C,_payload:{_status:-1,_result:j},_init:be}},Ee.memo=function(j,z){return{$$typeof:g,type:j,compare:z===void 0?null:z}},Ee.startTransition=function(j){var z=Z.transition;Z.transition={};try{j()}finally{Z.transition=z}},Ee.unstable_act=Y,Ee.useCallback=function(j,z){return we.current.useCallback(j,z)},Ee.useContext=function(j){return we.current.useContext(j)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(j){return we.current.useDeferredValue(j)},Ee.useEffect=function(j,z){return we.current.useEffect(j,z)},Ee.useId=function(){return we.current.useId()},Ee.useImperativeHandle=function(j,z,oe){return we.current.useImperativeHandle(j,z,oe)},Ee.useInsertionEffect=function(j,z){return we.current.useInsertionEffect(j,z)},Ee.useLayoutEffect=function(j,z){return we.current.useLayoutEffect(j,z)},Ee.useMemo=function(j,z){return we.current.useMemo(j,z)},Ee.useReducer=function(j,z,oe){return we.current.useReducer(j,z,oe)},Ee.useRef=function(j){return we.current.useRef(j)},Ee.useState=function(j){return we.current.useState(j)},Ee.useSyncExternalStore=function(j,z,oe){return we.current.useSyncExternalStore(j,z,oe)},Ee.useTransition=function(){return we.current.useTransition()},Ee.version="18.3.1",Ee}var rh;function sc(){return rh||(rh=1,ku.exports=Sy()),ku.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 sh;function by(){if(sh)return $o;sh=1;var r=sc(),s=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,f={key:!0,ref:!0,__self:!0,__source:!0};function m(p,S,g){var C,N={},P=null,y=null;g!==void 0&&(P=""+g),S.key!==void 0&&(P=""+S.key),S.ref!==void 0&&(y=S.ref);for(C in S)l.call(S,C)&&!f.hasOwnProperty(C)&&(N[C]=S[C]);if(p&&p.defaultProps)for(C in S=p.defaultProps,S)N[C]===void 0&&(N[C]=S[C]);return{$$typeof:s,type:p,key:P,ref:y,props:N,_owner:c.current}}return $o.Fragment=a,$o.jsx=m,$o.jsxs=m,$o}var oh;function ky(){return oh||(oh=1,bu.exports=by()),bu.exports}var d=ky(),b=sc();const J=lp(b),up=wy({__proto__:null,default:J},[b]);var yi={},Cu={exports:{}},Pt={},Eu={exports:{}},Nu={};/**
|
|
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 ah;function Cy(){return ah||(ah=1,(function(r){function s(Z,Q){var Y=Z.length;Z.push(Q);e:for(;0<Y;){var j=Y-1>>>1,z=Z[j];if(0<c(z,Q))Z[j]=Q,Z[Y]=z,Y=j;else break e}}function a(Z){return Z.length===0?null:Z[0]}function l(Z){if(Z.length===0)return null;var Q=Z[0],Y=Z.pop();if(Y!==Q){Z[0]=Y;e:for(var j=0,z=Z.length,oe=z>>>1;j<oe;){var ce=2*(j+1)-1,ye=Z[ce],Ce=ce+1,ge=Z[Ce];if(0>c(ye,Y))Ce<z&&0>c(ge,ye)?(Z[j]=ge,Z[Ce]=Y,j=Ce):(Z[j]=ye,Z[ce]=Y,j=ce);else if(Ce<z&&0>c(ge,Y))Z[j]=ge,Z[Ce]=Y,j=Ce;else break e}}return Q}function c(Z,Q){var Y=Z.sortIndex-Q.sortIndex;return Y!==0?Y:Z.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var m=Date,p=m.now();r.unstable_now=function(){return m.now()-p}}var S=[],g=[],C=1,N=null,P=3,y=!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 U(Z){for(var Q=a(g);Q!==null;){if(Q.callback===null)l(g);else if(Q.startTime<=Z)l(g),Q.sortIndex=Q.expirationTime,s(S,Q);else break;Q=a(g)}}function L(Z){if(x=!1,U(Z),!A)if(a(S)!==null)A=!0,be(te);else{var Q=a(g);Q!==null&&we(L,Q.startTime-Z)}}function te(Z,Q){A=!1,x&&(x=!1,F(W),W=-1),y=!0;var Y=P;try{for(U(Q),N=a(S);N!==null&&(!(N.expirationTime>Q)||Z&&!_());){var j=N.callback;if(typeof j=="function"){N.callback=null,P=N.priorityLevel;var z=j(N.expirationTime<=Q);Q=r.unstable_now(),typeof z=="function"?N.callback=z:N===a(S)&&l(S),U(Q)}else l(S);N=a(S)}if(N!==null)var oe=!0;else{var ce=a(g);ce!==null&&we(L,ce.startTime-Q),oe=!1}return oe}finally{N=null,P=Y,y=!1}}var ne=!1,K=null,W=-1,D=5,X=-1;function _(){return!(r.unstable_now()-X<D)}function O(){if(K!==null){var Z=r.unstable_now();X=Z;var Q=!0;try{Q=K(!0,Z)}finally{Q?se():(ne=!1,K=null)}}else ne=!1}var se;if(typeof H=="function")se=function(){H(O)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,fe=ie.port2;ie.port1.onmessage=O,se=function(){fe.postMessage(null)}}else se=function(){M(O,0)};function be(Z){K=Z,ne||(ne=!0,se())}function we(Z,Q){W=M(function(){Z(r.unstable_now())},Q)}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(Z){Z.callback=null},r.unstable_continueExecution=function(){A||y||(A=!0,be(te))},r.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<Z?Math.floor(1e3/Z):5},r.unstable_getCurrentPriorityLevel=function(){return P},r.unstable_getFirstCallbackNode=function(){return a(S)},r.unstable_next=function(Z){switch(P){case 1:case 2:case 3:var Q=3;break;default:Q=P}var Y=P;P=Q;try{return Z()}finally{P=Y}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(Z,Q){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var Y=P;P=Z;try{return Q()}finally{P=Y}},r.unstable_scheduleCallback=function(Z,Q,Y){var j=r.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?j+Y:j):Y=j,Z){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=Y+z,Z={id:C++,callback:Q,priorityLevel:Z,startTime:Y,expirationTime:z,sortIndex:-1},Y>j?(Z.sortIndex=Y,s(g,Z),a(S)===null&&Z===a(g)&&(x?(F(W),W=-1):x=!0,we(L,Y-j))):(Z.sortIndex=z,s(S,Z),A||y||(A=!0,be(te))),Z},r.unstable_shouldYield=_,r.unstable_wrapCallback=function(Z){var Q=P;return function(){var Y=P;P=Q;try{return Z.apply(this,arguments)}finally{P=Y}}}})(Nu)),Nu}var ih;function Ey(){return ih||(ih=1,Eu.exports=Cy()),Eu.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 lh;function Ny(){if(lh)return Pt;lh=1;var r=sc(),s=Ey();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 f(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),S=Object.prototype.hasOwnProperty,g=/^[: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={},N={};function P(e){return S.call(N,e)?!0:S.call(C,e)?!1:g.test(e)?N[e]=!0:(C[e]=!0,!1)}function y(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function A(e,t,n,o){if(t===null||typeof t>"u"||y(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function x(e,t,n,o,i,u,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=h}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 U(e,t,n,o){var i=M.hasOwnProperty(t)?M[t]:null;(i!==null?i.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(A(t,n,i,o)&&(n=null),o||i===null?P(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,o=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var L=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"),W=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),se=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"),Z=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=Z&&e[Z]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,j;function z(e){if(j===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return`
|
|
34
|
+
`+j+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 o=I}Reflect.construct(e,[],t)}else{try{t.call()}catch(I){o=I}e.call(t.prototype)}else{try{throw Error()}catch(I){o=I}e()}}catch(I){if(I&&o&&typeof I.stack=="string"){for(var i=I.stack.split(`
|
|
35
|
+
`),u=o.stack.split(`
|
|
36
|
+
`),h=i.length-1,v=u.length-1;1<=h&&0<=v&&i[h]!==u[v];)v--;for(;1<=h&&0<=v;h--,v--)if(i[h]!==u[v]){if(h!==1||v!==1)do if(h--,v--,0>v||i[h]!==u[v]){var k=`
|
|
37
|
+
`+i[h].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=h&&0<=v);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 D:return"Profiler";case W:return"StrictMode";case se:return"Suspense";case ie:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case X: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===W?"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 je(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 tt(e){var t=Ie(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(h){o=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(h){o=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function an(e){e._valueTracker||(e._valueTracker=tt(e))}function as(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Ie(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Er(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 no(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function na(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=je(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ro(e,t){t=t.checked,t!=null&&U(e,"checked",t,!1)}function so(e,t){ro(e,t);var n=je(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&oo(e,t.type,je(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function is(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function oo(e,t,n){(t!=="number"||Er(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wn=Array.isArray;function At(e,t,n,o){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&&o&&(e[n].defaultSelected=!0)}else{for(n=""+je(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,o&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ls(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return Y({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ln(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(Wn(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:je(n)}}function ra(e,t){var n=je(t.value),o=je(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function sa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mt(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 un(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var us,oa=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,i)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(us=us||document.createElement("div"),us.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nr={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},aa=["Webkit","ms","Moz","O"];Object.keys(Nr).forEach(function(e){aa.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nr[t]=Nr[e]})});function cs(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nr.hasOwnProperty(e)&&Nr[e]?(""+t).trim():t+"px"}function kn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,i=cs(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,i):e[n]=i}}var ia=Y({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 dn(e,t){if(t){if(ia[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 ao(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 io=null;function ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fs=null,$n=null,fn=null;function Ht(e){if(e=Po(e)){if(typeof fs!="function")throw Error(a(280));var t=e.stateNode;t&&(t=Ra(t),fs(e.stateNode,e.type,t))}}function la(e){$n?fn?fn.push(e):fn=[e]:$n=e}function xe(){if($n){var e=$n,t=fn;if(fn=$n=null,Ht(e),t)for(e=0;e<t.length;e++)Ht(t[e])}}function Re(e,t){return e(t)}function Ae(){}var gt=!1;function St(e,t,n){if(gt)return e(t,n);gt=!0;try{return Re(e,t,n)}finally{gt=!1,($n!==null||fn!==null)&&(Ae(),xe())}}function bt(e,t){var n=e.stateNode;if(n===null)return null;var o=Ra(n);if(o===null)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(a(231,t,typeof n));return n}var Kt=!1;if(p)try{var at={};Object.defineProperty(at,"passive",{get:function(){Kt=!0}}),window.addEventListener("test",at,at),window.removeEventListener("test",at,at)}catch{Kt=!1}function hn(e,t,n,o,i,u,h,v,k){var I=Array.prototype.slice.call(arguments,3);try{t.apply(n,I)}catch($){this.onError($)}}var lo=!1,ua=null,ca=!1,Ui=null,jm={onError:function(e){lo=!0,ua=e}};function Pm(e,t,n,o,i,u,h,v,k){lo=!1,ua=null,hn.apply(jm,arguments)}function Mm(e,t,n,o,i,u,h,v,k){if(Pm.apply(this,arguments),lo){if(lo){var I=ua;lo=!1,ua=null}else throw Error(a(198));ca||(ca=!0,Ui=I)}}function jr(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(jr(e)!==e)throw Error(a(188))}function Tm(e){var t=e.alternate;if(!t){if(t=jr(e),t===null)throw Error(a(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(i===null)break;var u=i.alternate;if(u===null){if(o=i.return,o!==null){n=o;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===n)return Cc(i),e;if(u===o)return Cc(i),t;u=u.sibling}throw Error(a(188))}if(n.return!==o.return)n=i,o=u;else{for(var h=!1,v=i.child;v;){if(v===n){h=!0,n=i,o=u;break}if(v===o){h=!0,o=i,n=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===n){h=!0,n=u,o=i;break}if(v===o){h=!0,o=u,n=i;break}v=v.sibling}if(!h)throw Error(a(189))}}if(n.alternate!==o)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function Ec(e){return e=Tm(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 jc=s.unstable_scheduleCallback,Pc=s.unstable_cancelCallback,Rm=s.unstable_shouldYield,Im=s.unstable_requestPaint,Ke=s.unstable_now,Om=s.unstable_getCurrentPriorityLevel,Bi=s.unstable_ImmediatePriority,Mc=s.unstable_UserBlockingPriority,da=s.unstable_NormalPriority,zm=s.unstable_LowPriority,Tc=s.unstable_IdlePriority,fa=null,pn=null;function _m(e){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(fa,e,void 0,(e.current.flags&128)===128)}catch{}}var qt=Math.clz32?Math.clz32:Lm,Am=Math.log,Dm=Math.LN2;function Lm(e){return e>>>=0,e===0?32:31-(Am(e)/Dm|0)|0}var ha=64,pa=4194304;function uo(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 ma(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,i=e.suspendedLanes,u=e.pingedLanes,h=n&268435455;if(h!==0){var v=h&~i;v!==0?o=uo(v):(u&=h,u!==0&&(o=uo(u)))}else h=n&~i,h!==0?o=uo(h):u!==0&&(o=uo(u));if(o===0)return 0;if(t!==0&&t!==o&&(t&i)===0&&(i=o&-o,u=t&-t,i>=u||i===16&&(u&4194240)!==0))return t;if((o&4)!==0&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-qt(t),i=1<<n,o|=e[n],t&=~i;return o}function Fm(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 Um(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes;0<u;){var h=31-qt(u),v=1<<h,k=i[h];k===-1?((v&n)===0||(v&o)!==0)&&(i[h]=Fm(v,t)):k<=t&&(e.expiredLanes|=v),u&=~v}}function Wi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rc(){var e=ha;return ha<<=1,(ha&4194240)===0&&(ha=64),e}function $i(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function co(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qt(t),e[t]=n}function Bm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-qt(n),u=1<<i;t[i]=0,o[i]=-1,e[i]=-1,n&=~u}}function Vi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-qt(n),i=1<<o;i&t|e[o]&t&&(e[o]|=t),n&=~i}}var _e=0;function Ic(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Oc,Qi,zc,_c,Ac,Hi=!1,ga=[],Vn=null,Qn=null,Hn=null,fo=new Map,ho=new Map,Kn=[],Wm="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":Vn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Hn=null;break;case"pointerover":case"pointerout":fo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ho.delete(t.pointerId)}}function po(e,t,n,o,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Po(t),t!==null&&Qi(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function $m(e,t,n,o,i){switch(t){case"focusin":return Vn=po(Vn,e,t,n,o,i),!0;case"dragenter":return Qn=po(Qn,e,t,n,o,i),!0;case"mouseover":return Hn=po(Hn,e,t,n,o,i),!0;case"pointerover":var u=i.pointerId;return fo.set(u,po(fo.get(u)||null,e,t,n,o,i)),!0;case"gotpointercapture":return u=i.pointerId,ho.set(u,po(ho.get(u)||null,e,t,n,o,i)),!0}return!1}function Lc(e){var t=Pr(e.target);if(t!==null){var n=jr(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 ya(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 o=new n.constructor(n.type,n);io=o,n.target.dispatchEvent(o),io=null}else return t=Po(n),t!==null&&Qi(t),e.blockedOn=n,!1;t.shift()}return!0}function Fc(e,t,n){ya(e)&&n.delete(t)}function Vm(){Hi=!1,Vn!==null&&ya(Vn)&&(Vn=null),Qn!==null&&ya(Qn)&&(Qn=null),Hn!==null&&ya(Hn)&&(Hn=null),fo.forEach(Fc),ho.forEach(Fc)}function mo(e,t){e.blockedOn===t&&(e.blockedOn=null,Hi||(Hi=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Vm)))}function go(e){function t(i){return mo(i,e)}if(0<ga.length){mo(ga[0],e);for(var n=1;n<ga.length;n++){var o=ga[n];o.blockedOn===e&&(o.blockedOn=null)}}for(Vn!==null&&mo(Vn,e),Qn!==null&&mo(Qn,e),Hn!==null&&mo(Hn,e),fo.forEach(t),ho.forEach(t),n=0;n<Kn.length;n++)o=Kn[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<Kn.length&&(n=Kn[0],n.blockedOn===null);)Lc(n),n.blockedOn===null&&Kn.shift()}var hs=L.ReactCurrentBatchConfig,va=!0;function Qm(e,t,n,o){var i=_e,u=hs.transition;hs.transition=null;try{_e=1,Ki(e,t,n,o)}finally{_e=i,hs.transition=u}}function Hm(e,t,n,o){var i=_e,u=hs.transition;hs.transition=null;try{_e=4,Ki(e,t,n,o)}finally{_e=i,hs.transition=u}}function Ki(e,t,n,o){if(va){var i=qi(e,t,n,o);if(i===null)dl(e,t,o,xa,n),Dc(e,o);else if($m(i,e,t,n,o))o.stopPropagation();else if(Dc(e,o),t&4&&-1<Wm.indexOf(e)){for(;i!==null;){var u=Po(i);if(u!==null&&Oc(u),u=qi(e,t,n,o),u===null&&dl(e,t,o,xa,n),u===i)break;i=u}i!==null&&o.stopPropagation()}else dl(e,t,o,null,n)}}var xa=null;function qi(e,t,n,o){if(xa=null,e=ds(o),e=Pr(e),e!==null)if(t=jr(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 xa=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(Om()){case Bi:return 1;case Mc:return 4;case da:case zm:return 16;case Tc:return 536870912;default:return 16}default:return 16}}var qn=null,Gi=null,wa=null;function Bc(){if(wa)return wa;var e,t=Gi,n=t.length,o,i="value"in qn?qn.value:qn.textContent,u=i.length;for(e=0;e<n&&t[e]===i[e];e++);var h=n-e;for(o=1;o<=h&&t[n-o]===i[u-o];o++);return wa=i.slice(e,1<o?1-o:void 0)}function Sa(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 ba(){return!0}function Wc(){return!1}function It(e){function t(n,o,i,u,h){this._reactName=n,this._targetInst=i,this.type=o,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ba:Wc,this.isPropagationStopped=Wc,this}return Y(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=ba)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ba)},persist:function(){},isPersistent:ba}),t}var ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yi=It(ps),yo=Y({},ps,{view:0,detail:0}),Km=It(yo),Xi,Zi,vo,ka=Y({},yo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:el,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!==vo&&(vo&&e.type==="mousemove"?(Xi=e.screenX-vo.screenX,Zi=e.screenY-vo.screenY):Zi=Xi=0,vo=e),Xi)},movementY:function(e){return"movementY"in e?e.movementY:Zi}}),$c=It(ka),qm=Y({},ka,{dataTransfer:0}),Gm=It(qm),Ym=Y({},yo,{relatedTarget:0}),Ji=It(Ym),Xm=Y({},ps,{animationName:0,elapsedTime:0,pseudoElement:0}),Zm=It(Xm),Jm=Y({},ps,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eg=It(Jm),tg=Y({},ps,{data:0}),Vc=It(tg),ng={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rg={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"},sg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function og(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sg[e])?!!t[e]:!1}function el(){return og}var ag=Y({},yo,{key:function(e){if(e.key){var t=ng[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Sa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:el,charCode:function(e){return e.type==="keypress"?Sa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Sa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ig=It(ag),lg=Y({},ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qc=It(lg),ug=Y({},yo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:el}),cg=It(ug),dg=Y({},ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),fg=It(dg),hg=Y({},ka,{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}),pg=It(hg),mg=[9,13,27,32],tl=p&&"CompositionEvent"in window,xo=null;p&&"documentMode"in document&&(xo=document.documentMode);var gg=p&&"TextEvent"in window&&!xo,Hc=p&&(!tl||xo&&8<xo&&11>=xo),Kc=" ",qc=!1;function Gc(e,t){switch(e){case"keyup":return mg.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 ms=!1;function yg(e,t){switch(e){case"compositionend":return Yc(t);case"keypress":return t.which!==32?null:(qc=!0,Kc);case"textInput":return e=t.data,e===Kc&&qc?null:e;default:return null}}function vg(e,t){if(ms)return e==="compositionend"||!tl&&Gc(e,t)?(e=Bc(),wa=Gi=qn=null,ms=!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 xg={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"?!!xg[e.type]:t==="textarea"}function Zc(e,t,n,o){la(o),t=Pa(t,"onChange"),0<t.length&&(n=new Yi("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var wo=null,So=null;function wg(e){gd(e,0)}function Ca(e){var t=ws(e);if(as(t))return e}function Sg(e,t){if(e==="change")return t}var Jc=!1;if(p){var nl;if(p){var rl="oninput"in document;if(!rl){var ed=document.createElement("div");ed.setAttribute("oninput","return;"),rl=typeof ed.oninput=="function"}nl=rl}else nl=!1;Jc=nl&&(!document.documentMode||9<document.documentMode)}function td(){wo&&(wo.detachEvent("onpropertychange",nd),So=wo=null)}function nd(e){if(e.propertyName==="value"&&Ca(So)){var t=[];Zc(t,So,e,ds(e)),St(wg,t)}}function bg(e,t,n){e==="focusin"?(td(),wo=t,So=n,wo.attachEvent("onpropertychange",nd)):e==="focusout"&&td()}function kg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ca(So)}function Cg(e,t){if(e==="click")return Ca(t)}function Eg(e,t){if(e==="input"||e==="change")return Ca(t)}function Ng(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:Ng;function bo(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var i=n[o];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 sd(e,t){var n=rd(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rd(n)}}function od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ad(){for(var e=window,t=Er();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Er(e.document)}return t}function sl(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 jg(e){var t=ad(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&od(n.ownerDocument.documentElement,n)){if(o!==null&&sl(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,u=Math.min(o.start,i);o=o.end===void 0?u:Math.min(o.end,i),!e.extend&&u>o&&(i=o,o=u,u=i),i=sd(n,u);var h=sd(n,o);i&&h&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),u>o?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.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 Pg=p&&"documentMode"in document&&11>=document.documentMode,gs=null,ol=null,ko=null,al=!1;function id(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;al||gs==null||gs!==Er(o)||(o=gs,"selectionStart"in o&&sl(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ko&&bo(ko,o)||(ko=o,o=Pa(ol,"onSelect"),0<o.length&&(t=new Yi("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=gs)))}function Ea(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ys={animationend:Ea("Animation","AnimationEnd"),animationiteration:Ea("Animation","AnimationIteration"),animationstart:Ea("Animation","AnimationStart"),transitionend:Ea("Transition","TransitionEnd")},il={},ld={};p&&(ld=document.createElement("div").style,"AnimationEvent"in window||(delete ys.animationend.animation,delete ys.animationiteration.animation,delete ys.animationstart.animation),"TransitionEvent"in window||delete ys.transitionend.transition);function Na(e){if(il[e])return il[e];if(!ys[e])return e;var t=ys[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ld)return il[e]=t[n];return e}var ud=Na("animationend"),cd=Na("animationiteration"),dd=Na("animationstart"),fd=Na("transitionend"),hd=new Map,pd="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 Gn(e,t){hd.set(e,t),f(t,[e])}for(var ll=0;ll<pd.length;ll++){var ul=pd[ll],Mg=ul.toLowerCase(),Tg=ul[0].toUpperCase()+ul.slice(1);Gn(Mg,"on"+Tg)}Gn(ud,"onAnimationEnd"),Gn(cd,"onAnimationIteration"),Gn(dd,"onAnimationStart"),Gn("dblclick","onDoubleClick"),Gn("focusin","onFocus"),Gn("focusout","onBlur"),Gn(fd,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Co="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(" "),Rg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Co));function md(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,Mm(o,t,void 0,e),e.currentTarget=null}function gd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],i=o.event;o=o.listeners;e:{var u=void 0;if(t)for(var h=o.length-1;0<=h;h--){var v=o[h],k=v.instance,I=v.currentTarget;if(v=v.listener,k!==u&&i.isPropagationStopped())break e;md(i,v,I),u=k}else for(h=0;h<o.length;h++){if(v=o[h],k=v.instance,I=v.currentTarget,v=v.listener,k!==u&&i.isPropagationStopped())break e;md(i,v,I),u=k}}}if(ca)throw e=Ui,ca=!1,Ui=null,e}function Fe(e,t){var n=t[yl];n===void 0&&(n=t[yl]=new Set);var o=e+"__bubble";n.has(o)||(yd(t,e,2,!1),n.add(o))}function cl(e,t,n){var o=0;t&&(o|=4),yd(n,e,o,t)}var ja="_reactListening"+Math.random().toString(36).slice(2);function Eo(e){if(!e[ja]){e[ja]=!0,l.forEach(function(n){n!=="selectionchange"&&(Rg.has(n)||cl(n,!1,e),cl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ja]||(t[ja]=!0,cl("selectionchange",!1,t))}}function yd(e,t,n,o){switch(Uc(t)){case 1:var i=Qm;break;case 4:i=Hm;break;default:i=Ki}n=i.bind(null,t,n,e),i=void 0,!Kt||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),o?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 dl(e,t,n,o,i){var u=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var h=o.tag;if(h===3||h===4){var v=o.stateNode.containerInfo;if(v===i||v.nodeType===8&&v.parentNode===i)break;if(h===4)for(h=o.return;h!==null;){var k=h.tag;if((k===3||k===4)&&(k=h.stateNode.containerInfo,k===i||k.nodeType===8&&k.parentNode===i))return;h=h.return}for(;v!==null;){if(h=Pr(v),h===null)return;if(k=h.tag,k===5||k===6){o=u=h;continue e}v=v.parentNode}}o=o.return}St(function(){var I=u,$=ds(n),V=[];e:{var B=hd.get(e);if(B!==void 0){var re=Yi,le=e;switch(e){case"keypress":if(Sa(n)===0)break e;case"keydown":case"keyup":re=ig;break;case"focusin":le="focus",re=Ji;break;case"focusout":le="blur",re=Ji;break;case"beforeblur":case"afterblur":re=Ji;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":re=$c;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=Gm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=cg;break;case ud:case cd:case dd:re=Zm;break;case fd:re=fg;break;case"scroll":re=Km;break;case"wheel":re=pg;break;case"copy":case"cut":case"paste":re=eg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=Qc}var ue=(t&4)!==0,qe=!ue&&e==="scroll",T=ue?B!==null?B+"Capture":null:B;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(No(E,q,R)))),qe)break;E=E.return}0<ue.length&&(B=new re(B,le,null,n,$),V.push({event:B,listeners:ue}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",re=e==="mouseout"||e==="pointerout",B&&n!==io&&(le=n.relatedTarget||n.fromElement)&&(Pr(le)||le[Cn]))break e;if((re||B)&&(B=$.window===$?$:(B=$.ownerDocument)?B.defaultView||B.parentWindow:window,re?(le=n.relatedTarget||n.toElement,re=I,le=le?Pr(le):null,le!==null&&(qe=jr(le),le!==qe||le.tag!==5&&le.tag!==6)&&(le=null)):(re=null,le=I),re!==le)){if(ue=$c,q="onMouseLeave",T="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Qc,q="onPointerLeave",T="onPointerEnter",E="pointer"),qe=re==null?B:ws(re),R=le==null?B:ws(le),B=new ue(q,E+"leave",re,n,$),B.target=qe,B.relatedTarget=R,q=null,Pr($)===I&&(ue=new ue(T,E+"enter",le,n,$),ue.target=R,ue.relatedTarget=qe,q=ue),qe=q,re&&le)t:{for(ue=re,T=le,E=0,R=ue;R;R=vs(R))E++;for(R=0,q=T;q;q=vs(q))R++;for(;0<E-R;)ue=vs(ue),E--;for(;0<R-E;)T=vs(T),R--;for(;E--;){if(ue===T||T!==null&&ue===T.alternate)break t;ue=vs(ue),T=vs(T)}ue=null}else ue=null;re!==null&&vd(V,B,re,ue,!1),le!==null&&qe!==null&&vd(V,qe,le,ue,!0)}}e:{if(B=I?ws(I):window,re=B.nodeName&&B.nodeName.toLowerCase(),re==="select"||re==="input"&&B.type==="file")var de=Sg;else if(Xc(B))if(Jc)de=Eg;else{de=kg;var pe=bg}else(re=B.nodeName)&&re.toLowerCase()==="input"&&(B.type==="checkbox"||B.type==="radio")&&(de=Cg);if(de&&(de=de(e,I))){Zc(V,de,n,$);break e}pe&&pe(e,B,I),e==="focusout"&&(pe=B._wrapperState)&&pe.controlled&&B.type==="number"&&oo(B,"number",B.value)}switch(pe=I?ws(I):window,e){case"focusin":(Xc(pe)||pe.contentEditable==="true")&&(gs=pe,ol=I,ko=null);break;case"focusout":ko=ol=gs=null;break;case"mousedown":al=!0;break;case"contextmenu":case"mouseup":case"dragend":al=!1,id(V,n,$);break;case"selectionchange":if(Pg)break;case"keydown":case"keyup":id(V,n,$)}var me;if(tl)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 ms?Gc(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(Hc&&n.locale!=="ko"&&(ms||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&ms&&(me=Bc()):(qn=$,Gi="value"in qn?qn.value:qn.textContent,ms=!0)),pe=Pa(I,ve),0<pe.length&&(ve=new Vc(ve,e,null,n,$),V.push({event:ve,listeners:pe}),me?ve.data=me:(me=Yc(n),me!==null&&(ve.data=me)))),(me=gg?yg(e,n):vg(e,n))&&(I=Pa(I,"onBeforeInput"),0<I.length&&($=new Vc("onBeforeInput","beforeinput",null,n,$),V.push({event:$,listeners:I}),$.data=me))}gd(V,t)})}function No(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pa(e,t){for(var n=t+"Capture",o=[];e!==null;){var i=e,u=i.stateNode;i.tag===5&&u!==null&&(i=u,u=bt(e,n),u!=null&&o.unshift(No(e,u,i)),u=bt(e,t),u!=null&&o.push(No(e,u,i))),e=e.return}return o}function vs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vd(e,t,n,o,i){for(var u=t._reactName,h=[];n!==null&&n!==o;){var v=n,k=v.alternate,I=v.stateNode;if(k!==null&&k===o)break;v.tag===5&&I!==null&&(v=I,i?(k=bt(n,u),k!=null&&h.unshift(No(n,k,v))):i||(k=bt(n,u),k!=null&&h.push(No(n,k,v)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Ig=/\r\n?/g,Og=/\u0000|\uFFFD/g;function xd(e){return(typeof e=="string"?e:""+e).replace(Ig,`
|
|
38
|
+
`).replace(Og,"")}function Ma(e,t,n){if(t=xd(t),xd(e)!==t&&n)throw Error(a(425))}function Ta(){}var fl=null,hl=null;function pl(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 ml=typeof setTimeout=="function"?setTimeout:void 0,zg=typeof clearTimeout=="function"?clearTimeout:void 0,wd=typeof Promise=="function"?Promise:void 0,_g=typeof queueMicrotask=="function"?queueMicrotask:typeof wd<"u"?function(e){return wd.resolve(null).then(e).catch(Ag)}:ml;function Ag(e){setTimeout(function(){throw e})}function gl(e,t){var n=t,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(o===0){e.removeChild(i),go(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=i}while(n);go(t)}function Yn(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 xs=Math.random().toString(36).slice(2),mn="__reactFiber$"+xs,jo="__reactProps$"+xs,Cn="__reactContainer$"+xs,yl="__reactEvents$"+xs,Dg="__reactListeners$"+xs,Lg="__reactHandles$"+xs;function Pr(e){var t=e[mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sd(e);e!==null;){if(n=e[mn])return n;e=Sd(e)}return t}e=n,n=e.parentNode}return null}function Po(e){return e=e[mn]||e[Cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ws(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function Ra(e){return e[jo]||null}var vl=[],Ss=-1;function Xn(e){return{current:e}}function Ue(e){0>Ss||(e.current=vl[Ss],vl[Ss]=null,Ss--)}function Le(e,t){Ss++,vl[Ss]=e.current,e.current=t}var Zn={},ct=Xn(Zn),kt=Xn(!1),Mr=Zn;function bs(e,t){var n=e.type.contextTypes;if(!n)return Zn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i={},u;for(u in n)i[u]=t[u];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ct(e){return e=e.childContextTypes,e!=null}function Ia(){Ue(kt),Ue(ct)}function bd(e,t,n){if(ct.current!==Zn)throw Error(a(168));Le(ct,t),Le(kt,n)}function kd(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var i in o)if(!(i in t))throw Error(a(108,ge(e)||"Unknown",i));return Y({},n,o)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zn,Mr=ct.current,Le(ct,e),Le(kt,kt.current),!0}function Cd(e,t,n){var o=e.stateNode;if(!o)throw Error(a(169));n?(e=kd(e,t,Mr),o.__reactInternalMemoizedMergedChildContext=e,Ue(kt),Ue(ct),Le(ct,e)):Ue(kt),Le(kt,n)}var En=null,za=!1,xl=!1;function Ed(e){En===null?En=[e]:En.push(e)}function Fg(e){za=!0,Ed(e)}function Jn(){if(!xl&&En!==null){xl=!0;var e=0,t=_e;try{var n=En;for(_e=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}En=null,za=!1}catch(i){throw En!==null&&(En=En.slice(e+1)),jc(Bi,Jn),i}finally{_e=t,xl=!1}}return null}var ks=[],Cs=0,_a=null,Aa=0,Dt=[],Lt=0,Tr=null,Nn=1,jn="";function Rr(e,t){ks[Cs++]=Aa,ks[Cs++]=_a,_a=e,Aa=t}function Nd(e,t,n){Dt[Lt++]=Nn,Dt[Lt++]=jn,Dt[Lt++]=Tr,Tr=e;var o=Nn;e=jn;var i=32-qt(o)-1;o&=~(1<<i),n+=1;var u=32-qt(t)+i;if(30<u){var h=i-i%5;u=(o&(1<<h)-1).toString(32),o>>=h,i-=h,Nn=1<<32-qt(t)+i|n<<i|o,jn=u+e}else Nn=1<<u|n<<i|o,jn=e}function wl(e){e.return!==null&&(Rr(e,1),Nd(e,1,0))}function Sl(e){for(;e===_a;)_a=ks[--Cs],ks[Cs]=null,Aa=ks[--Cs],ks[Cs]=null;for(;e===Tr;)Tr=Dt[--Lt],Dt[Lt]=null,jn=Dt[--Lt],Dt[Lt]=null,Nn=Dt[--Lt],Dt[Lt]=null}var Ot=null,zt=null,We=!1,Yt=null;function jd(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 Pd(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=Yn(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=Tr!==null?{id:Nn,overflow:jn}: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 bl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function kl(e){if(We){var t=zt;if(t){var n=t;if(!Pd(e,t)){if(bl(e))throw Error(a(418));t=Yn(n.nextSibling);var o=Ot;t&&Pd(e,t)?jd(o,n):(e.flags=e.flags&-4097|2,We=!1,Ot=e)}}else{if(bl(e))throw Error(a(418));e.flags=e.flags&-4097|2,We=!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 Da(e){if(e!==Ot)return!1;if(!We)return Md(e),We=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pl(e.type,e.memoizedProps)),t&&(t=zt)){if(bl(e))throw Td(),Error(a(418));for(;t;)jd(e,t),t=Yn(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=Yn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=Ot?Yn(e.stateNode.nextSibling):null;return!0}function Td(){for(var e=zt;e;)e=Yn(e.nextSibling)}function Es(){zt=Ot=null,We=!1}function Cl(e){Yt===null?Yt=[e]:Yt.push(e)}var Ug=L.ReactCurrentBatchConfig;function Mo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(a(309));var o=n.stateNode}if(!o)throw Error(a(147,e));var i=o,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(h){var v=i.refs;h===null?delete v[u]:v[u]=h},t._stringRef=u,t)}if(typeof e!="string")throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function La(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 o(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=ir(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 h(T){return e&&T.alternate===null&&(T.flags|=2),T}function v(T,E,R,q){return E===null||E.tag!==6?(E=mu(R,T.mode,q),E.return=T,E):(E=i(E,R),E.return=T,E)}function k(T,E,R,q){var de=R.type;return de===K?$(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=Mo(T,E,R),q.return=T,q):(q=li(R.type,R.key,R.props,null,T.mode,q),q.ref=Mo(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=gu(R,T.mode,q),E.return=T,E):(E=i(E,R.children||[]),E.return=T,E)}function $(T,E,R,q,de){return E===null||E.tag!==7?(E=Fr(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=mu(""+E,T.mode,R),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case te:return R=li(E.type,E.key,E.props,null,T.mode,R),R.ref=Mo(T,null,E),R.return=T,R;case ne:return E=gu(E,T.mode,R),E.return=T,E;case be:var q=E._init;return V(T,q(E._payload),R)}if(Wn(E)||Q(E))return E=Fr(E,T.mode,R,null),E.return=T,E;La(T,E)}return null}function B(T,E,R,q){var de=E!==null?E.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return de!==null?null:v(T,E,""+R,q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case te:return R.key===de?k(T,E,R,q):null;case ne:return R.key===de?I(T,E,R,q):null;case be:return de=R._init,B(T,E,de(R._payload),q)}if(Wn(R)||Q(R))return de!==null?null:$(T,E,R,q,null);La(T,R)}return null}function re(T,E,R,q,de){if(typeof q=="string"&&q!==""||typeof q=="number")return T=T.get(R)||null,v(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,k(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 pe=q._init;return re(T,E,R,pe(q._payload),de)}if(Wn(q)||Q(q))return T=T.get(R)||null,$(E,T,q,de,null);La(E,q)}return null}function le(T,E,R,q){for(var de=null,pe=null,me=E,ve=E=0,st=null;me!==null&&ve<R.length;ve++){me.index>ve?(st=me,me=null):st=me.sibling;var Me=B(T,me,R[ve],q);if(Me===null){me===null&&(me=st);break}e&&me&&Me.alternate===null&&t(T,me),E=u(Me,E,ve),pe===null?de=Me:pe.sibling=Me,pe=Me,me=st}if(ve===R.length)return n(T,me),We&&Rr(T,ve),de;if(me===null){for(;ve<R.length;ve++)me=V(T,R[ve],q),me!==null&&(E=u(me,E,ve),pe===null?de=me:pe.sibling=me,pe=me);return We&&Rr(T,ve),de}for(me=o(T,me);ve<R.length;ve++)st=re(me,T,ve,R[ve],q),st!==null&&(e&&st.alternate!==null&&me.delete(st.key===null?ve:st.key),E=u(st,E,ve),pe===null?de=st:pe.sibling=st,pe=st);return e&&me.forEach(function(lr){return t(T,lr)}),We&&Rr(T,ve),de}function ue(T,E,R,q){var de=Q(R);if(typeof de!="function")throw Error(a(150));if(R=de.call(R),R==null)throw Error(a(151));for(var pe=de=null,me=E,ve=E=0,st=null,Me=R.next();me!==null&&!Me.done;ve++,Me=R.next()){me.index>ve?(st=me,me=null):st=me.sibling;var lr=B(T,me,Me.value,q);if(lr===null){me===null&&(me=st);break}e&&me&&lr.alternate===null&&t(T,me),E=u(lr,E,ve),pe===null?de=lr:pe.sibling=lr,pe=lr,me=st}if(Me.done)return n(T,me),We&&Rr(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),pe===null?de=Me:pe.sibling=Me,pe=Me);return We&&Rr(T,ve),de}for(me=o(T,me);!Me.done;ve++,Me=R.next())Me=re(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),pe===null?de=Me:pe.sibling=Me,pe=Me);return e&&me.forEach(function(xy){return t(T,xy)}),We&&Rr(T,ve),de}function qe(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,pe=E;pe!==null;){if(pe.key===de){if(de=R.type,de===K){if(pe.tag===7){n(T,pe.sibling),E=i(pe,R.props.children),E.return=T,T=E;break e}}else if(pe.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===be&&Rd(de)===pe.type){n(T,pe.sibling),E=i(pe,R.props),E.ref=Mo(T,pe,R),E.return=T,T=E;break e}n(T,pe);break}else t(T,pe);pe=pe.sibling}R.type===K?(E=Fr(R.props.children,T.mode,q,R.key),E.return=T,T=E):(q=li(R.type,R.key,R.props,null,T.mode,q),q.ref=Mo(T,E,R),q.return=T,T=q)}return h(T);case ne:e:{for(pe=R.key;E!==null;){if(E.key===pe)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=gu(R,T.mode,q),E.return=T,T=E}return h(T);case be:return pe=R._init,qe(T,E,pe(R._payload),q)}if(Wn(R))return le(T,E,R,q);if(Q(R))return ue(T,E,R,q);La(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=mu(R,T.mode,q),E.return=T,T=E),h(T)):n(T,E)}return qe}var Ns=Id(!0),Od=Id(!1),Fa=Xn(null),Ua=null,js=null,El=null;function Nl(){El=js=Ua=null}function jl(e){var t=Fa.current;Ue(Fa),e._currentValue=t}function Pl(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ps(e,t){Ua=e,El=js=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(El!==e)if(e={context:e,memoizedValue:t,next:null},js===null){if(Ua===null)throw Error(a(308));js=e,Ua.dependencies={lanes:0,firstContext:e}}else js=js.next=e;return t}var Ir=null;function Ml(e){Ir===null?Ir=[e]:Ir.push(e)}function zd(e,t,n,o){var i=t.interleaved;return i===null?(n.next=n,Ml(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pn(e,o)}function Pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var er=!1;function Tl(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 Mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Pe&2)!==0){var i=o.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),o.pending=t,Pn(e,n)}return i=o.interleaved,i===null?(t.next=t,Ml(o)):(t.next=i.next,i.next=t),o.interleaved=t,Pn(e,n)}function Ba(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Vi(e,n)}}function Ad(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var i=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?i=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?i=u=t:u=u.next=t}else i=u=t;n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wa(e,t,n,o){var i=e.updateQueue;er=!1;var u=i.firstBaseUpdate,h=i.lastBaseUpdate,v=i.shared.pending;if(v!==null){i.shared.pending=null;var k=v,I=k.next;k.next=null,h===null?u=I:h.next=I,h=k;var $=e.alternate;$!==null&&($=$.updateQueue,v=$.lastBaseUpdate,v!==h&&(v===null?$.firstBaseUpdate=I:v.next=I,$.lastBaseUpdate=k))}if(u!==null){var V=i.baseState;h=0,$=I=k=null,v=u;do{var B=v.lane,re=v.eventTime;if((o&B)===B){$!==null&&($=$.next={eventTime:re,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});e:{var le=e,ue=v;switch(B=t,re=n,ue.tag){case 1:if(le=ue.payload,typeof le=="function"){V=le.call(re,V,B);break e}V=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ue.payload,B=typeof le=="function"?le.call(re,V,B):le,B==null)break e;V=Y({},V,B);break e;case 2:er=!0}}v.callback!==null&&v.lane!==0&&(e.flags|=64,B=i.effects,B===null?i.effects=[v]:B.push(v))}else re={eventTime:re,lane:B,tag:v.tag,payload:v.payload,callback:v.callback,next:null},$===null?(I=$=re,k=V):$=$.next=re,h|=B;if(v=v.next,v===null){if(v=i.shared.pending,v===null)break;B=v,v=B.next,B.next=null,i.lastBaseUpdate=B,i.shared.pending=null}}while(!0);if($===null&&(k=V),i.baseState=k,i.firstBaseUpdate=I,i.lastBaseUpdate=$,t=i.shared.interleaved,t!==null){i=t;do h|=i.lane,i=i.next;while(i!==t)}else u===null&&(i.shared.lanes=0);_r|=h,e.lanes=h,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 o=e[t],i=o.callback;if(i!==null){if(o.callback=null,o=n,typeof i!="function")throw Error(a(191,i));i.call(o)}}}var To={},gn=Xn(To),Ro=Xn(To),Io=Xn(To);function Or(e){if(e===To)throw Error(a(174));return e}function Rl(e,t){switch(Le(Io,t),Le(Ro,e),Le(gn,To),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:un(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=un(t,e)}Ue(gn),Le(gn,t)}function Ms(){Ue(gn),Ue(Ro),Ue(Io)}function Ld(e){Or(Io.current);var t=Or(gn.current),n=un(t,e.type);t!==n&&(Le(Ro,e),Le(gn,n))}function Il(e){Ro.current===e&&(Ue(gn),Ue(Ro))}var $e=Xn(0);function $a(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 Ol=[];function zl(){for(var e=0;e<Ol.length;e++)Ol[e]._workInProgressVersionPrimary=null;Ol.length=0}var Va=L.ReactCurrentDispatcher,_l=L.ReactCurrentBatchConfig,zr=0,Ve=null,Xe=null,nt=null,Qa=!1,Oo=!1,zo=0,Bg=0;function dt(){throw Error(a(321))}function Al(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 Dl(e,t,n,o,i,u){if(zr=u,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Va.current=e===null||e.memoizedState===null?Qg:Hg,e=n(o,i),Oo){u=0;do{if(Oo=!1,zo=0,25<=u)throw Error(a(301));u+=1,nt=Xe=null,t.updateQueue=null,Va.current=Kg,e=n(o,i)}while(Oo)}if(Va.current=qa,t=Xe!==null&&Xe.next!==null,zr=0,nt=Xe=Ve=null,Qa=!1,t)throw Error(a(300));return e}function Ll(){var e=zo!==0;return zo=0,e}function yn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?Ve.memoizedState=nt=e:nt=nt.next=e,nt}function Ut(){if(Xe===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=nt===null?Ve.memoizedState:nt.next;if(t!==null)nt=t,Xe=e;else{if(e===null)throw Error(a(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},nt===null?Ve.memoizedState=nt=e:nt=nt.next=e}return nt}function _o(e,t){return typeof t=="function"?t(e):t}function Fl(e){var t=Ut(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var o=Xe,i=o.baseQueue,u=n.pending;if(u!==null){if(i!==null){var h=i.next;i.next=u.next,u.next=h}o.baseQueue=i=u,n.pending=null}if(i!==null){u=i.next,o=o.baseState;var v=h=null,k=null,I=u;do{var $=I.lane;if((zr&$)===$)k!==null&&(k=k.next={lane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),o=I.hasEagerState?I.eagerState:e(o,I.action);else{var V={lane:$,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null};k===null?(v=k=V,h=o):k=k.next=V,Ve.lanes|=$,_r|=$}I=I.next}while(I!==null&&I!==u);k===null?h=o:k.next=v,Gt(o,t.memoizedState)||(Et=!0),t.memoizedState=o,t.baseState=h,t.baseQueue=k,n.lastRenderedState=o}if(e=n.interleaved,e!==null){i=e;do u=i.lane,Ve.lanes|=u,_r|=u,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ul(e){var t=Ut(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,u=t.memoizedState;if(i!==null){n.pending=null;var h=i=i.next;do u=e(u,h.action),h=h.next;while(h!==i);Gt(u,t.memoizedState)||(Et=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,o]}function Fd(){}function Ud(e,t){var n=Ve,o=Ut(),i=t(),u=!Gt(o.memoizedState,i);if(u&&(o.memoizedState=i,Et=!0),o=o.queue,Bl($d.bind(null,n,o,e),[e]),o.getSnapshot!==t||u||nt!==null&&nt.memoizedState.tag&1){if(n.flags|=2048,Ao(9,Wd.bind(null,n,o,i,t),void 0,null),rt===null)throw Error(a(349));(zr&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,o){t.value=n,t.getSnapshot=o,Vd(t)&&Qd(e)}function $d(e,t,n){return n(function(){Vd(t)&&Qd(e)})}function Vd(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&&en(t,e,1,-1)}function Hd(e){var t=yn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_o,lastRenderedState:e},t.queue=e,e=e.dispatch=Vg.bind(null,Ve,e),[t.memoizedState,e]}function Ao(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function Kd(){return Ut().memoizedState}function Ha(e,t,n,o){var i=yn();Ve.flags|=e,i.memoizedState=Ao(1|t,n,void 0,o===void 0?null:o)}function Ka(e,t,n,o){var i=Ut();o=o===void 0?null:o;var u=void 0;if(Xe!==null){var h=Xe.memoizedState;if(u=h.destroy,o!==null&&Al(o,h.deps)){i.memoizedState=Ao(t,n,u,o);return}}Ve.flags|=e,i.memoizedState=Ao(1|t,n,u,o)}function qd(e,t){return Ha(8390656,8,e,t)}function Bl(e,t){return Ka(2048,8,e,t)}function Gd(e,t){return Ka(4,2,e,t)}function Yd(e,t){return Ka(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,Ka(4,4,Xd.bind(null,t,e),n)}function Wl(){}function Jd(e,t){var n=Ut();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Al(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function ef(e,t){var n=Ut();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Al(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function tf(e,t,n){return(zr&21)===0?(e.baseState&&(e.baseState=!1,Et=!0),e.memoizedState=n):(Gt(n,t)||(n=Rc(),Ve.lanes|=n,_r|=n,e.baseState=!0),t)}function Wg(e,t){var n=_e;_e=n!==0&&4>n?n:4,e(!0);var o=_l.transition;_l.transition={};try{e(!1),t()}finally{_e=n,_l.transition=o}}function nf(){return Ut().memoizedState}function $g(e,t,n){var o=or(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},rf(e))sf(t,n);else if(n=zd(e,t,n,o),n!==null){var i=vt();en(n,e,o,i),of(n,t,o)}}function Vg(e,t,n){var o=or(e),i={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(rf(e))sf(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,v=u(h,n);if(i.hasEagerState=!0,i.eagerState=v,Gt(v,h)){var k=t.interleaved;k===null?(i.next=i,Ml(t)):(i.next=k.next,k.next=i),t.interleaved=i;return}}catch{}finally{}n=zd(e,t,i,o),n!==null&&(i=vt(),en(n,e,o,i),of(n,t,o))}}function rf(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function sf(e,t){Oo=Qa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function of(e,t,n){if((n&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Vi(e,n)}}var qa={readContext:Ft,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},Qg={readContext:Ft,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:qd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ha(4194308,4,Xd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ha(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ha(4,2,e,t)},useMemo:function(e,t){var n=yn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=yn();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=$g.bind(null,Ve,e),[o.memoizedState,e]},useRef:function(e){var t=yn();return e={current:e},t.memoizedState=e},useState:Hd,useDebugValue:Wl,useDeferredValue:function(e){return yn().memoizedState=e},useTransition:function(){var e=Hd(!1),t=e[0];return e=Wg.bind(null,e[1]),yn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Ve,i=yn();if(We){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),rt===null)throw Error(a(349));(zr&30)!==0||Bd(o,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,qd($d.bind(null,o,u,e),[e]),o.flags|=2048,Ao(9,Wd.bind(null,o,u,n,t),void 0,null),n},useId:function(){var e=yn(),t=rt.identifierPrefix;if(We){var n=jn,o=Nn;n=(o&~(1<<32-qt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=zo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Bg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Hg={readContext:Ft,useCallback:Jd,useContext:Ft,useEffect:Bl,useImperativeHandle:Zd,useInsertionEffect:Gd,useLayoutEffect:Yd,useMemo:ef,useReducer:Fl,useRef:Kd,useState:function(){return Fl(_o)},useDebugValue:Wl,useDeferredValue:function(e){var t=Ut();return tf(t,Xe.memoizedState,e)},useTransition:function(){var e=Fl(_o)[0],t=Ut().memoizedState;return[e,t]},useMutableSource:Fd,useSyncExternalStore:Ud,useId:nf,unstable_isNewReconciler:!1},Kg={readContext:Ft,useCallback:Jd,useContext:Ft,useEffect:Bl,useImperativeHandle:Zd,useInsertionEffect:Gd,useLayoutEffect:Yd,useMemo:ef,useReducer:Ul,useRef:Kd,useState:function(){return Ul(_o)},useDebugValue:Wl,useDeferredValue:function(e){var t=Ut();return Xe===null?t.memoizedState=e:tf(t,Xe.memoizedState,e)},useTransition:function(){var e=Ul(_o)[0],t=Ut().memoizedState;return[e,t]},useMutableSource:Fd,useSyncExternalStore:Ud,useId:nf,unstable_isNewReconciler:!1};function Xt(e,t){if(e&&e.defaultProps){t=Y({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function $l(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:Y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ga={isMounted:function(e){return(e=e._reactInternals)?jr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=vt(),i=or(e),u=Mn(o,i);u.payload=t,n!=null&&(u.callback=n),t=tr(e,u,i),t!==null&&(en(t,e,i,o),Ba(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=vt(),i=or(e),u=Mn(o,i);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=tr(e,u,i),t!==null&&(en(t,e,i,o),Ba(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vt(),o=or(e),i=Mn(n,o);i.tag=2,t!=null&&(i.callback=t),t=tr(e,i,o),t!==null&&(en(t,e,o,n),Ba(t,e,o))}};function af(e,t,n,o,i,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,u,h):t.prototype&&t.prototype.isPureReactComponent?!bo(n,o)||!bo(i,u):!0}function lf(e,t,n){var o=!1,i=Zn,u=t.contextType;return typeof u=="object"&&u!==null?u=Ft(u):(i=Ct(t)?Mr:ct.current,o=t.contextTypes,u=(o=o!=null)?bs(e,i):Zn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ga,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=u),t}function uf(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Ga.enqueueReplaceState(t,t.state,null)}function Vl(e,t,n,o){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Tl(e);var u=t.contextType;typeof u=="object"&&u!==null?i.context=Ft(u):(u=Ct(t)?Mr:ct.current,i.context=bs(e,u)),i.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&($l(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&&Ga.enqueueReplaceState(i,i.state,null),Wa(e,n,i,o),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ts(e,t){try{var n="",o=t;do n+=ye(o),o=o.return;while(o);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 Ql(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Hl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var qg=typeof WeakMap=="function"?WeakMap:Map;function cf(e,t,n){n=Mn(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){ni||(ni=!0,iu=o),Hl(e,t)},n}function df(e,t,n){n=Mn(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var i=t.value;n.payload=function(){return o(i)},n.callback=function(){Hl(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Hl(e,t),typeof o!="function"&&(rr===null?rr=new Set([this]):rr.add(this));var h=t.stack;this.componentDidCatch(t.value,{componentStack:h!==null?h:""})}),n}function ff(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new qg;var i=new Set;o.set(t,i)}else i=o.get(t),i===void 0&&(i=new Set,o.set(t,i));i.has(n)||(i.add(n),e=ly.bind(null,e,t,n),t.then(e,e))}function hf(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 pf(e,t,n,o,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=Mn(-1,1),t.tag=2,tr(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Gg=L.ReactCurrentOwner,Et=!1;function yt(e,t,n,o){t.child=e===null?Od(t,null,n,o):Ns(t,e.child,n,o)}function mf(e,t,n,o,i){n=n.render;var u=t.ref;return Ps(t,i),o=Dl(e,t,n,o,u,i),n=Ll(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Tn(e,t,i)):(We&&n&&wl(t),t.flags|=1,yt(e,t,o,i),t.child)}function gf(e,t,n,o,i){if(e===null){var u=n.type;return typeof u=="function"&&!pu(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,yf(e,t,u,o,i)):(e=li(n.type,null,o,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&i)===0){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:bo,n(h,o)&&e.ref===t.ref)return Tn(e,t,i)}return t.flags|=1,e=ir(u,o),e.ref=t.ref,e.return=t,t.child=e}function yf(e,t,n,o,i){if(e!==null){var u=e.memoizedProps;if(bo(u,o)&&e.ref===t.ref)if(Et=!1,t.pendingProps=o=u,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Et=!0);else return t.lanes=e.lanes,Tn(e,t,i)}return Kl(e,t,n,o,i)}function vf(e,t,n){var o=t.pendingProps,i=o.children,u=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(Is,_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,Le(Is,_t),_t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=u!==null?u.baseLanes:n,Le(Is,_t),_t|=o}else u!==null?(o=u.baseLanes|n,t.memoizedState=null):o=n,Le(Is,_t),_t|=o;return yt(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 Kl(e,t,n,o,i){var u=Ct(n)?Mr:ct.current;return u=bs(t,u),Ps(t,i),n=Dl(e,t,n,o,u,i),o=Ll(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Tn(e,t,i)):(We&&o&&wl(t),t.flags|=1,yt(e,t,n,i),t.child)}function wf(e,t,n,o,i){if(Ct(n)){var u=!0;Oa(t)}else u=!1;if(Ps(t,i),t.stateNode===null)Xa(e,t),lf(t,n,o),Vl(t,n,o,i),o=!0;else if(e===null){var h=t.stateNode,v=t.memoizedProps;h.props=v;var k=h.context,I=n.contextType;typeof I=="object"&&I!==null?I=Ft(I):(I=Ct(n)?Mr:ct.current,I=bs(t,I));var $=n.getDerivedStateFromProps,V=typeof $=="function"||typeof h.getSnapshotBeforeUpdate=="function";V||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==o||k!==I)&&uf(t,h,o,I),er=!1;var B=t.memoizedState;h.state=B,Wa(t,o,h,i),k=t.memoizedState,v!==o||B!==k||kt.current||er?(typeof $=="function"&&($l(t,n,$,o),k=t.memoizedState),(v=er||af(t,n,v,o,B,k,I))?(V||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=k),h.props=o,h.state=k,h.context=I,o=v):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{h=t.stateNode,_d(e,t),v=t.memoizedProps,I=t.type===t.elementType?v:Xt(t.type,v),h.props=I,V=t.pendingProps,B=h.context,k=n.contextType,typeof k=="object"&&k!==null?k=Ft(k):(k=Ct(n)?Mr:ct.current,k=bs(t,k));var re=n.getDerivedStateFromProps;($=typeof re=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==V||B!==k)&&uf(t,h,o,k),er=!1,B=t.memoizedState,h.state=B,Wa(t,o,h,i);var le=t.memoizedState;v!==V||B!==le||kt.current||er?(typeof re=="function"&&($l(t,n,re,o),le=t.memoizedState),(I=er||af(t,n,I,o,B,le,k)||!1)?($||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,le,k),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,le,k)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=le),h.props=o,h.state=le,h.context=k,o=I):(typeof h.componentDidUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),o=!1)}return ql(e,t,n,o,u,i)}function ql(e,t,n,o,i,u){xf(e,t);var h=(t.flags&128)!==0;if(!o&&!h)return i&&Cd(t,n,!1),Tn(e,t,u);o=t.stateNode,Gg.current=t;var v=h&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&h?(t.child=Ns(t,e.child,null,u),t.child=Ns(t,null,v,u)):yt(e,t,v,u),t.memoizedState=o.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),Rl(e,t.containerInfo)}function bf(e,t,n,o,i){return Es(),Cl(i),t.flags|=256,yt(e,t,n,o),t.child}var Gl={dehydrated:null,treeContext:null,retryLane:0};function Yl(e){return{baseLanes:e,cachePool:null,transitions:null}}function kf(e,t,n){var o=t.pendingProps,i=$e.current,u=!1,h=(t.flags&128)!==0,v;if((v=h)||(v=e!==null&&e.memoizedState===null?!1:(i&2)!==0),v?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Le($e,i&1),e===null)return kl(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):(h=o.children,e=o.fallback,u?(o=t.mode,u=t.child,h={mode:"hidden",children:h},(o&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=h):u=ui(h,o,0,null),e=Fr(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Yl(n),t.memoizedState=Gl,e):Xl(t,h));if(i=e.memoizedState,i!==null&&(v=i.dehydrated,v!==null))return Yg(e,t,h,o,v,i,n);if(u){u=o.fallback,h=t.mode,i=e.child,v=i.sibling;var k={mode:"hidden",children:o.children};return(h&1)===0&&t.child!==i?(o=t.child,o.childLanes=0,o.pendingProps=k,t.deletions=null):(o=ir(i,k),o.subtreeFlags=i.subtreeFlags&14680064),v!==null?u=ir(v,u):(u=Fr(u,h,n,null),u.flags|=2),u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,h=e.child.memoizedState,h=h===null?Yl(n):{baseLanes:h.baseLanes|n,cachePool:null,transitions:h.transitions},u.memoizedState=h,u.childLanes=e.childLanes&~n,t.memoizedState=Gl,o}return u=e.child,e=u.sibling,o=ir(u,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Xl(e,t){return t=ui({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ya(e,t,n,o){return o!==null&&Cl(o),Ns(t,e.child,null,n),e=Xl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yg(e,t,n,o,i,u,h){if(n)return t.flags&256?(t.flags&=-257,o=Ql(Error(a(422))),Ya(e,t,h,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=o.fallback,i=t.mode,o=ui({mode:"visible",children:o.children},i,0,null),u=Fr(u,i,h,null),u.flags|=2,o.return=t,u.return=t,o.sibling=u,t.child=o,(t.mode&1)!==0&&Ns(t,e.child,null,h),t.child.memoizedState=Yl(h),t.memoizedState=Gl,u);if((t.mode&1)===0)return Ya(e,t,h,null);if(i.data==="$!"){if(o=i.nextSibling&&i.nextSibling.dataset,o)var v=o.dgst;return o=v,u=Error(a(419)),o=Ql(u,o,void 0),Ya(e,t,h,o)}if(v=(h&e.childLanes)!==0,Et||v){if(o=rt,o!==null){switch(h&-h){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&(o.suspendedLanes|h))!==0?0:i,i!==0&&i!==u.retryLane&&(u.retryLane=i,Pn(e,i),en(o,e,i,-1))}return hu(),o=Ql(Error(a(421))),Ya(e,t,h,o)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=uy.bind(null,e),i._reactRetry=t,null):(e=u.treeContext,zt=Yn(i.nextSibling),Ot=t,We=!0,Yt=null,e!==null&&(Dt[Lt++]=Nn,Dt[Lt++]=jn,Dt[Lt++]=Tr,Nn=e.id,jn=e.overflow,Tr=t),t=Xl(t,o.children),t.flags|=4096,t)}function Cf(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Pl(e.return,t,n)}function Zl(e,t,n,o,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=n,u.tailMode=i)}function Ef(e,t,n){var o=t.pendingProps,i=o.revealOrder,u=o.tail;if(yt(e,t,o.children,n),o=$e.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&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}o&=1}if(Le($e,o),(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&&$a(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zl(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&&$a(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zl(t,!0,n,null,u);break;case"together":Zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xa(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_r|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=ir(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ir(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Xg(e,t,n){switch(t.tag){case 3:Sf(t),Es();break;case 5:Ld(t);break;case 1:Ct(t.type)&&Oa(t);break;case 4:Rl(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,i=t.memoizedProps.value;Le(Fa,o._currentValue),o._currentValue=i;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Le($e,$e.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?kf(e,t,n):(Le($e,$e.current&1),e=Tn(e,t,n),e!==null?e.sibling:null);Le($e,$e.current&1);break;case 19:if(o=(n&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Ef(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Le($e,$e.current),o)break;return null;case 22:case 23:return t.lanes=0,vf(e,t,n)}return Tn(e,t,n)}var Nf,Jl,jf,Pf;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}},Jl=function(){},jf=function(e,t,n,o){var i=e.memoizedProps;if(i!==o){e=t.stateNode,Or(gn.current);var u=null;switch(n){case"input":i=no(e,i),o=no(e,o),u=[];break;case"select":i=Y({},i,{value:void 0}),o=Y({},o,{value:void 0}),u=[];break;case"textarea":i=ls(e,i),o=ls(e,o),u=[];break;default:typeof i.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Ta)}dn(n,o);var h;n=null;for(I in i)if(!o.hasOwnProperty(I)&&i.hasOwnProperty(I)&&i[I]!=null)if(I==="style"){var v=i[I];for(h in v)v.hasOwnProperty(h)&&(n||(n={}),n[h]="")}else I!=="dangerouslySetInnerHTML"&&I!=="children"&&I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(c.hasOwnProperty(I)?u||(u=[]):(u=u||[]).push(I,null));for(I in o){var k=o[I];if(v=i!=null?i[I]:void 0,o.hasOwnProperty(I)&&k!==v&&(k!=null||v!=null))if(I==="style")if(v){for(h in v)!v.hasOwnProperty(h)||k&&k.hasOwnProperty(h)||(n||(n={}),n[h]="");for(h in k)k.hasOwnProperty(h)&&v[h]!==k[h]&&(n||(n={}),n[h]=k[h])}else n||(u||(u=[]),u.push(I,n)),n=k;else I==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,v=v?v.__html:void 0,k!=null&&v!==k&&(u=u||[]).push(I,k)):I==="children"?typeof k!="string"&&typeof k!="number"||(u=u||[]).push(I,""+k):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&(c.hasOwnProperty(I)?(k!=null&&I==="onScroll"&&Fe("scroll",e),u||v===k||(u=[])):(u=u||[]).push(I,k))}n&&(u=u||[]).push("style",n);var I=u;(t.updateQueue=I)&&(t.flags|=4)}},Pf=function(e,t,n,o){n!==o&&(t.flags|=4)};function Do(e,t){if(!We)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,o|=i.subtreeFlags&14680064,o|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,o|=i.subtreeFlags,o|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function Zg(e,t,n){var o=t.pendingProps;switch(Sl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return Ct(t.type)&&Ia(),ft(t),null;case 3:return o=t.stateNode,Ms(),Ue(kt),Ue(ct),zl(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Da(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Yt!==null&&(cu(Yt),Yt=null))),Jl(e,t),ft(t),null;case 5:Il(t);var i=Or(Io.current);if(n=t.type,e!==null&&t.stateNode!=null)jf(e,t,n,o,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(a(166));return ft(t),null}if(e=Or(gn.current),Da(t)){o=t.stateNode,n=t.type;var u=t.memoizedProps;switch(o[mn]=t,o[jo]=u,e=(t.mode&1)!==0,n){case"dialog":Fe("cancel",o),Fe("close",o);break;case"iframe":case"object":case"embed":Fe("load",o);break;case"video":case"audio":for(i=0;i<Co.length;i++)Fe(Co[i],o);break;case"source":Fe("error",o);break;case"img":case"image":case"link":Fe("error",o),Fe("load",o);break;case"details":Fe("toggle",o);break;case"input":na(o,u),Fe("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!u.multiple},Fe("invalid",o);break;case"textarea":ln(o,u),Fe("invalid",o)}dn(n,u),i=null;for(var h in u)if(u.hasOwnProperty(h)){var v=u[h];h==="children"?typeof v=="string"?o.textContent!==v&&(u.suppressHydrationWarning!==!0&&Ma(o.textContent,v,e),i=["children",v]):typeof v=="number"&&o.textContent!==""+v&&(u.suppressHydrationWarning!==!0&&Ma(o.textContent,v,e),i=["children",""+v]):c.hasOwnProperty(h)&&v!=null&&h==="onScroll"&&Fe("scroll",o)}switch(n){case"input":an(o),is(o,u,!0);break;case"textarea":an(o),sa(o);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(o.onclick=Ta)}o=i,t.updateQueue=o,o!==null&&(t.flags|=4)}else{h=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mt(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=h.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=h.createElement(n,{is:o.is}):(e=h.createElement(n),n==="select"&&(h=e,o.multiple?h.multiple=!0:o.size&&(h.size=o.size))):e=h.createElementNS(e,n),e[mn]=t,e[jo]=o,Nf(e,t,!1,!1),t.stateNode=e;e:{switch(h=ao(n,o),n){case"dialog":Fe("cancel",e),Fe("close",e),i=o;break;case"iframe":case"object":case"embed":Fe("load",e),i=o;break;case"video":case"audio":for(i=0;i<Co.length;i++)Fe(Co[i],e);i=o;break;case"source":Fe("error",e),i=o;break;case"img":case"image":case"link":Fe("error",e),Fe("load",e),i=o;break;case"details":Fe("toggle",e),i=o;break;case"input":na(e,o),i=no(e,o),Fe("invalid",e);break;case"option":i=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},i=Y({},o,{value:void 0}),Fe("invalid",e);break;case"textarea":ln(e,o),i=ls(e,o),Fe("invalid",e);break;default:i=o}dn(n,i),v=i;for(u in v)if(v.hasOwnProperty(u)){var k=v[u];u==="style"?kn(e,k):u==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&oa(e,k)):u==="children"?typeof k=="string"?(n!=="textarea"||k!=="")&&cn(e,k):typeof k=="number"&&cn(e,""+k):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?k!=null&&u==="onScroll"&&Fe("scroll",e):k!=null&&U(e,u,k,h))}switch(n){case"input":an(e),is(e,o,!1);break;case"textarea":an(e),sa(e);break;case"option":o.value!=null&&e.setAttribute("value",""+je(o.value));break;case"select":e.multiple=!!o.multiple,u=o.value,u!=null?At(e,!!o.multiple,u,!1):o.defaultValue!=null&&At(e,!!o.multiple,o.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ta)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ft(t),null;case 6:if(e&&t.stateNode!=null)Pf(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(a(166));if(n=Or(Io.current),Or(gn.current),Da(t)){if(o=t.stateNode,n=t.memoizedProps,o[mn]=t,(u=o.nodeValue!==n)&&(e=Ot,e!==null))switch(e.tag){case 3:Ma(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ma(o.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[mn]=t,t.stateNode=o}return ft(t),null;case 13:if(Ue($e),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(We&&zt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Td(),Es(),t.flags|=98560,u=!1;else if(u=Da(t),o!==null&&o.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[mn]=t}else Es(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),u=!1}else Yt!==null&&(cu(Yt),Yt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||($e.current&1)!==0?Ze===0&&(Ze=3):hu())),t.updateQueue!==null&&(t.flags|=4),ft(t),null);case 4:return Ms(),Jl(e,t),e===null&&Eo(t.stateNode.containerInfo),ft(t),null;case 10:return jl(t.type._context),ft(t),null;case 17:return Ct(t.type)&&Ia(),ft(t),null;case 19:if(Ue($e),u=t.memoizedState,u===null)return ft(t),null;if(o=(t.flags&128)!==0,h=u.rendering,h===null)if(o)Do(u,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=$a(e),h!==null){for(t.flags|=128,Do(u,!1),o=h.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)u=n,e=o,u.flags&=14680066,h=u.alternate,h===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=h.childLanes,u.lanes=h.lanes,u.child=h.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=h.memoizedProps,u.memoizedState=h.memoizedState,u.updateQueue=h.updateQueue,u.type=h.type,e=h.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Le($e,$e.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ke()>Os&&(t.flags|=128,o=!0,Do(u,!1),t.lanes=4194304)}else{if(!o)if(e=$a(h),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Do(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!We)return ft(t),null}else 2*Ke()-u.renderingStartTime>Os&&n!==1073741824&&(t.flags|=128,o=!0,Do(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(n=u.last,n!==null?n.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ke(),t.sibling=null,n=$e.current,Le($e,o?n&1|2:n&1),t):(ft(t),null);case 22:case 23:return fu(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(_t&1073741824)!==0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Jg(e,t){switch(Sl(t),t.tag){case 1:return Ct(t.type)&&Ia(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ms(),Ue(kt),Ue(ct),zl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Il(t),null;case 13:if(Ue($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Es()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue($e),null;case 4:return Ms(),null;case 10:return jl(t.type._context),null;case 22:case 23:return fu(),null;case 24:return null;default:return null}}var Za=!1,ht=!1,ey=typeof WeakSet=="function"?WeakSet:Set,ae=null;function Rs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Qe(e,t,o)}else n.current=null}function eu(e,t,n){try{n()}catch(o){Qe(e,t,o)}}var Mf=!1;function ty(e,t){if(fl=va,e=ad(),sl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var i=o.anchorOffset,u=o.focusNode;o=o.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var h=0,v=-1,k=-1,I=0,$=0,V=e,B=null;t:for(;;){for(var re;V!==n||i!==0&&V.nodeType!==3||(v=h+i),V!==u||o!==0&&V.nodeType!==3||(k=h+o),V.nodeType===3&&(h+=V.nodeValue.length),(re=V.firstChild)!==null;)B=V,V=re;for(;;){if(V===e)break t;if(B===n&&++I===i&&(v=h),B===u&&++$===o&&(k=h),(re=V.nextSibling)!==null)break;V=B,B=V.parentNode}V=re}n=v===-1||k===-1?null:{start:v,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(hl={focusedElem:e,selectionRange:n},va=!1,ae=t;ae!==null;)if(t=ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ae=e;else for(;ae!==null;){t=ae;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,qe=le.memoizedState,T=t.stateNode,E=T.getSnapshotBeforeUpdate(t.elementType===t.type?ue:Xt(t.type,ue),qe);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){Qe(t,t.return,q)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return le=Mf,Mf=!1,le}function Lo(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var i=o=o.next;do{if((i.tag&e)===e){var u=i.destroy;i.destroy=void 0,u!==void 0&&eu(t,n,u)}i=i.next}while(i!==o)}}function Ja(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function tu(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[mn],delete t[jo],delete t[yl],delete t[Dg],delete t[Lg])),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 nu(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ta));else if(o!==4&&(e=e.child,e!==null))for(nu(e,t,n),e=e.sibling;e!==null;)nu(e,t,n),e=e.sibling}function ru(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(ru(e,t,n),e=e.sibling;e!==null;)ru(e,t,n),e=e.sibling}var it=null,Zt=!1;function nr(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(fa,n)}catch{}switch(n.tag){case 5:ht||Rs(n,t);case 6:var o=it,i=Zt;it=null,nr(e,t,n),it=o,Zt=i,it!==null&&(Zt?(e=it,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):it.removeChild(n.stateNode));break;case 18:it!==null&&(Zt?(e=it,n=n.stateNode,e.nodeType===8?gl(e.parentNode,n):e.nodeType===1&&gl(e,n),go(e)):gl(it,n.stateNode));break;case 4:o=it,i=Zt,it=n.stateNode.containerInfo,Zt=!0,nr(e,t,n),it=o,Zt=i;break;case 0:case 11:case 14:case 15:if(!ht&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){i=o=o.next;do{var u=i,h=u.destroy;u=u.tag,h!==void 0&&((u&2)!==0||(u&4)!==0)&&eu(n,t,h),i=i.next}while(i!==o)}nr(e,t,n);break;case 1:if(!ht&&(Rs(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(v){Qe(n,t,v)}nr(e,t,n);break;case 21:nr(e,t,n);break;case 22:n.mode&1?(ht=(o=ht)||n.memoizedState!==null,nr(e,t,n),ht=o):nr(e,t,n);break;default:nr(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 ey),t.forEach(function(o){var i=cy.bind(null,e,o);n.has(o)||(n.add(o),o.then(i,i))})}}function Jt(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var i=n[o];try{var u=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 5:it=v.stateNode,Zt=!1;break e;case 3:it=v.stateNode.containerInfo,Zt=!0;break e;case 4:it=v.stateNode.containerInfo,Zt=!0;break e}v=v.return}if(it===null)throw Error(a(160));Of(u,h,i),it=null,Zt=!1;var k=i.alternate;k!==null&&(k.return=null),i.return=null}catch(I){Qe(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,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jt(t,e),vn(e),o&4){try{Lo(3,e,e.return),Ja(3,e)}catch(ue){Qe(e,e.return,ue)}try{Lo(5,e,e.return)}catch(ue){Qe(e,e.return,ue)}}break;case 1:Jt(t,e),vn(e),o&512&&n!==null&&Rs(n,n.return);break;case 5:if(Jt(t,e),vn(e),o&512&&n!==null&&Rs(n,n.return),e.flags&32){var i=e.stateNode;try{cn(i,"")}catch(ue){Qe(e,e.return,ue)}}if(o&4&&(i=e.stateNode,i!=null)){var u=e.memoizedProps,h=n!==null?n.memoizedProps:u,v=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{v==="input"&&u.type==="radio"&&u.name!=null&&ro(i,u),ao(v,h);var I=ao(v,u);for(h=0;h<k.length;h+=2){var $=k[h],V=k[h+1];$==="style"?kn(i,V):$==="dangerouslySetInnerHTML"?oa(i,V):$==="children"?cn(i,V):U(i,$,V,I)}switch(v){case"input":so(i,u);break;case"textarea":ra(i,u);break;case"select":var B=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!u.multiple;var re=u.value;re!=null?At(i,!!u.multiple,re,!1):B!==!!u.multiple&&(u.defaultValue!=null?At(i,!!u.multiple,u.defaultValue,!0):At(i,!!u.multiple,u.multiple?[]:"",!1))}i[jo]=u}catch(ue){Qe(e,e.return,ue)}}break;case 6:if(Jt(t,e),vn(e),o&4){if(e.stateNode===null)throw Error(a(162));i=e.stateNode,u=e.memoizedProps;try{i.nodeValue=u}catch(ue){Qe(e,e.return,ue)}}break;case 3:if(Jt(t,e),vn(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{go(t.containerInfo)}catch(ue){Qe(e,e.return,ue)}break;case 4:Jt(t,e),vn(e);break;case 13:Jt(t,e),vn(e),i=e.child,i.flags&8192&&(u=i.memoizedState!==null,i.stateNode.isHidden=u,!u||i.alternate!==null&&i.alternate.memoizedState!==null||(au=Ke())),o&4&&zf(e);break;case 22:if($=n!==null&&n.memoizedState!==null,e.mode&1?(ht=(I=ht)||$,Jt(t,e),ht=I):Jt(t,e),vn(e),o&8192){if(I=e.memoizedState!==null,(e.stateNode.isHidden=I)&&!$&&(e.mode&1)!==0)for(ae=e,$=e.child;$!==null;){for(V=ae=$;ae!==null;){switch(B=ae,re=B.child,B.tag){case 0:case 11:case 14:case 15:Lo(4,B,B.return);break;case 1:Rs(B,B.return);var le=B.stateNode;if(typeof le.componentWillUnmount=="function"){o=B,n=B.return;try{t=o,le.props=t.memoizedProps,le.state=t.memoizedState,le.componentWillUnmount()}catch(ue){Qe(o,n,ue)}}break;case 5:Rs(B,B.return);break;case 22:if(B.memoizedState!==null){Lf(V);continue}}re!==null?(re.return=B,ae=re):Lf(V)}$=$.sibling}e:for($=null,V=e;;){if(V.tag===5){if($===null){$=V;try{i=V.stateNode,I?(u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(v=V.stateNode,k=V.memoizedProps.style,h=k!=null&&k.hasOwnProperty("display")?k.display:null,v.style.display=cs("display",h))}catch(ue){Qe(e,e.return,ue)}}}else if(V.tag===6){if($===null)try{V.stateNode.nodeValue=I?"":V.memoizedProps}catch(ue){Qe(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;$===V&&($=null),V=V.return}$===V&&($=null),V.sibling.return=V.return,V=V.sibling}}break;case 19:Jt(t,e),vn(e),o&4&&zf(e);break;case 21:break;default:Jt(t,e),vn(e)}}function vn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rf(n)){var o=n;break e}n=n.return}throw Error(a(160))}switch(o.tag){case 5:var i=o.stateNode;o.flags&32&&(cn(i,""),o.flags&=-33);var u=If(e);ru(e,u,i);break;case 3:case 4:var h=o.stateNode.containerInfo,v=If(e);nu(e,v,h);break;default:throw Error(a(161))}}catch(k){Qe(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ny(e,t,n){ae=e,Af(e)}function Af(e,t,n){for(var o=(e.mode&1)!==0;ae!==null;){var i=ae,u=i.child;if(i.tag===22&&o){var h=i.memoizedState!==null||Za;if(!h){var v=i.alternate,k=v!==null&&v.memoizedState!==null||ht;v=Za;var I=ht;if(Za=h,(ht=k)&&!I)for(ae=i;ae!==null;)h=ae,k=h.child,h.tag===22&&h.memoizedState!==null?Ff(i):k!==null?(k.return=h,ae=k):Ff(i);for(;u!==null;)ae=u,Af(u),u=u.sibling;ae=i,Za=v,ht=I}Df(e)}else(i.subtreeFlags&8772)!==0&&u!==null?(u.return=i,ae=u):Df(e)}}function Df(e){for(;ae!==null;){var t=ae;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ht||Ja(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!ht)if(n===null)o.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Xt(t.type,n.memoizedProps);o.componentDidUpdate(i,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Dd(t,u,o);break;case 3:var h=t.updateQueue;if(h!==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,h,n)}break;case 5:var v=t.stateNode;if(n===null&&t.flags&4){n=v;var k=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&n.focus();break;case"img":k.src&&(n.src=k.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 $=I.memoizedState;if($!==null){var V=$.dehydrated;V!==null&&go(V)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}ht||t.flags&512&&tu(t)}catch(B){Qe(t,t.return,B)}}if(t===e){ae=null;break}if(n=t.sibling,n!==null){n.return=t.return,ae=n;break}ae=t.return}}function Lf(e){for(;ae!==null;){var t=ae;if(t===e){ae=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ae=n;break}ae=t.return}}function Ff(e){for(;ae!==null;){var t=ae;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ja(4,t)}catch(k){Qe(t,n,k)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var i=t.return;try{o.componentDidMount()}catch(k){Qe(t,i,k)}}var u=t.return;try{tu(t)}catch(k){Qe(t,u,k)}break;case 5:var h=t.return;try{tu(t)}catch(k){Qe(t,h,k)}}}catch(k){Qe(t,t.return,k)}if(t===e){ae=null;break}var v=t.sibling;if(v!==null){v.return=t.return,ae=v;break}ae=t.return}}var ry=Math.ceil,ei=L.ReactCurrentDispatcher,su=L.ReactCurrentOwner,Bt=L.ReactCurrentBatchConfig,Pe=0,rt=null,Ge=null,lt=0,_t=0,Is=Xn(0),Ze=0,Fo=null,_r=0,ti=0,ou=0,Uo=null,Nt=null,au=0,Os=1/0,Rn=null,ni=!1,iu=null,rr=null,ri=!1,sr=null,si=0,Bo=0,lu=null,oi=-1,ai=0;function vt(){return(Pe&6)!==0?Ke():oi!==-1?oi:oi=Ke()}function or(e){return(e.mode&1)===0?1:(Pe&2)!==0&<!==0?lt&-lt:Ug.transition!==null?(ai===0&&(ai=Rc()),ai):(e=_e,e!==0||(e=window.event,e=e===void 0?16:Uc(e.type)),e)}function en(e,t,n,o){if(50<Bo)throw Bo=0,lu=null,Error(a(185));co(e,n,o),((Pe&2)===0||e!==rt)&&(e===rt&&((Pe&2)===0&&(ti|=n),Ze===4&&ar(e,lt)),jt(e,o),n===1&&Pe===0&&(t.mode&1)===0&&(Os=Ke()+500,za&&Jn()))}function jt(e,t){var n=e.callbackNode;Um(e,t);var o=ma(e,e===rt?lt:0);if(o===0)n!==null&&Pc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&Pc(n),t===1)e.tag===0?Fg(Bf.bind(null,e)):Ed(Bf.bind(null,e)),_g(function(){(Pe&6)===0&&Jn()}),n=null;else{switch(Ic(o)){case 1:n=Bi;break;case 4:n=Mc;break;case 16:n=da;break;case 536870912:n=Tc;break;default:n=da}n=Gf(n,Uf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Uf(e,t){if(oi=-1,ai=0,(Pe&6)!==0)throw Error(a(327));var n=e.callbackNode;if(zs()&&e.callbackNode!==n)return null;var o=ma(e,e===rt?lt:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=ii(e,o);else{t=o;var i=Pe;Pe|=2;var u=$f();(rt!==e||lt!==t)&&(Rn=null,Os=Ke()+500,Dr(e,t));do try{ay();break}catch(v){Wf(e,v)}while(!0);Nl(),ei.current=u,Pe=i,Ge!==null?t=0:(rt=null,lt=0,t=Ze)}if(t!==0){if(t===2&&(i=Wi(e),i!==0&&(o=i,t=uu(e,i))),t===1)throw n=Fo,Dr(e,0),ar(e,o),jt(e,Ke()),n;if(t===6)ar(e,o);else{if(i=e.current.alternate,(o&30)===0&&!sy(i)&&(t=ii(e,o),t===2&&(u=Wi(e),u!==0&&(o=u,t=uu(e,u))),t===1))throw n=Fo,Dr(e,0),ar(e,o),jt(e,Ke()),n;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(a(345));case 2:Lr(e,Nt,Rn);break;case 3:if(ar(e,o),(o&130023424)===o&&(t=au+500-Ke(),10<t)){if(ma(e,0)!==0)break;if(i=e.suspendedLanes,(i&o)!==o){vt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ml(Lr.bind(null,e,Nt,Rn),t);break}Lr(e,Nt,Rn);break;case 4:if(ar(e,o),(o&4194240)===o)break;for(t=e.eventTimes,i=-1;0<o;){var h=31-qt(o);u=1<<h,h=t[h],h>i&&(i=h),o&=~u}if(o=i,o=Ke()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*ry(o/1960))-o,10<o){e.timeoutHandle=ml(Lr.bind(null,e,Nt,Rn),o);break}Lr(e,Nt,Rn);break;case 5:Lr(e,Nt,Rn);break;default:throw Error(a(329))}}}return jt(e,Ke()),e.callbackNode===n?Uf.bind(null,e):null}function uu(e,t){var n=Uo;return e.current.memoizedState.isDehydrated&&(Dr(e,t).flags|=256),e=ii(e,t),e!==2&&(t=Nt,Nt=n,t!==null&&cu(t)),e}function cu(e){Nt===null?Nt=e:Nt.push.apply(Nt,e)}function sy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var i=n[o],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 ar(e,t){for(t&=~ou,t&=~ti,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),o=1<<n;e[n]=-1,t&=~o}}function Bf(e){if((Pe&6)!==0)throw Error(a(327));zs();var t=ma(e,0);if((t&1)===0)return jt(e,Ke()),null;var n=ii(e,t);if(e.tag!==0&&n===2){var o=Wi(e);o!==0&&(t=o,n=uu(e,o))}if(n===1)throw n=Fo,Dr(e,0),ar(e,t),jt(e,Ke()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Lr(e,Nt,Rn),jt(e,Ke()),null}function du(e,t){var n=Pe;Pe|=1;try{return e(t)}finally{Pe=n,Pe===0&&(Os=Ke()+500,za&&Jn())}}function Ar(e){sr!==null&&sr.tag===0&&(Pe&6)===0&&zs();var t=Pe;Pe|=1;var n=Bt.transition,o=_e;try{if(Bt.transition=null,_e=1,e)return e()}finally{_e=o,Bt.transition=n,Pe=t,(Pe&6)===0&&Jn()}}function fu(){_t=Is.current,Ue(Is)}function Dr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,zg(n)),Ge!==null)for(n=Ge.return;n!==null;){var o=n;switch(Sl(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Ia();break;case 3:Ms(),Ue(kt),Ue(ct),zl();break;case 5:Il(o);break;case 4:Ms();break;case 13:Ue($e);break;case 19:Ue($e);break;case 10:jl(o.type._context);break;case 22:case 23:fu()}n=n.return}if(rt=e,Ge=e=ir(e.current,null),lt=_t=t,Ze=0,Fo=null,ou=ti=_r=0,Nt=Uo=null,Ir!==null){for(t=0;t<Ir.length;t++)if(n=Ir[t],o=n.interleaved,o!==null){n.interleaved=null;var i=o.next,u=n.pending;if(u!==null){var h=u.next;u.next=i,o.next=h}n.pending=o}Ir=null}return e}function Wf(e,t){do{var n=Ge;try{if(Nl(),Va.current=qa,Qa){for(var o=Ve.memoizedState;o!==null;){var i=o.queue;i!==null&&(i.pending=null),o=o.next}Qa=!1}if(zr=0,nt=Xe=Ve=null,Oo=!1,zo=0,su.current=null,n===null||n.return===null){Ze=1,Fo=t,Ge=null;break}e:{var u=e,h=n.return,v=n,k=t;if(t=lt,v.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var I=k,$=v,V=$.tag;if(($.mode&1)===0&&(V===0||V===11||V===15)){var B=$.alternate;B?($.updateQueue=B.updateQueue,$.memoizedState=B.memoizedState,$.lanes=B.lanes):($.updateQueue=null,$.memoizedState=null)}var re=hf(h);if(re!==null){re.flags&=-257,pf(re,h,v,u,t),re.mode&1&&ff(u,I,t),t=re,k=I;var le=t.updateQueue;if(le===null){var ue=new Set;ue.add(k),t.updateQueue=ue}else le.add(k);break e}else{if((t&1)===0){ff(u,I,t),hu();break e}k=Error(a(426))}}else if(We&&v.mode&1){var qe=hf(h);if(qe!==null){(qe.flags&65536)===0&&(qe.flags|=256),pf(qe,h,v,u,t),Cl(Ts(k,v));break e}}u=k=Ts(k,v),Ze!==4&&(Ze=2),Uo===null?Uo=[u]:Uo.push(u),u=h;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var T=cf(u,k,t);Ad(u,T);break e;case 1:v=k;var E=u.type,R=u.stateNode;if((u.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(rr===null||!rr.has(R)))){u.flags|=65536,t&=-t,u.lanes|=t;var q=df(u,v,t);Ad(u,q);break e}}u=u.return}while(u!==null)}Qf(n)}catch(de){t=de,Ge===n&&n!==null&&(Ge=n=n.return);continue}break}while(!0)}function $f(){var e=ei.current;return ei.current=qa,e===null?qa:e}function hu(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),rt===null||(_r&268435455)===0&&(ti&268435455)===0||ar(rt,lt)}function ii(e,t){var n=Pe;Pe|=2;var o=$f();(rt!==e||lt!==t)&&(Rn=null,Dr(e,t));do try{oy();break}catch(i){Wf(e,i)}while(!0);if(Nl(),Pe=n,ei.current=o,Ge!==null)throw Error(a(261));return rt=null,lt=0,Ze}function oy(){for(;Ge!==null;)Vf(Ge)}function ay(){for(;Ge!==null&&!Rm();)Vf(Ge)}function Vf(e){var t=qf(e.alternate,e,_t);e.memoizedProps=e.pendingProps,t===null?Qf(e):Ge=t,su.current=null}function Qf(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Zg(n,t,_t),n!==null){Ge=n;return}}else{if(n=Jg(n,t),n!==null){n.flags&=32767,Ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ze=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Ze===0&&(Ze=5)}function Lr(e,t,n){var o=_e,i=Bt.transition;try{Bt.transition=null,_e=1,iy(e,t,n,o)}finally{Bt.transition=i,_e=o}return null}function iy(e,t,n,o){do zs();while(sr!==null);if((Pe&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(Bm(e,u),e===rt&&(Ge=rt=null,lt=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||ri||(ri=!0,Gf(da,function(){return zs(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=Bt.transition,Bt.transition=null;var h=_e;_e=1;var v=Pe;Pe|=4,su.current=null,ty(e,n),_f(n,e),jg(hl),va=!!fl,hl=fl=null,e.current=n,ny(n),Im(),Pe=v,_e=h,Bt.transition=u}else e.current=n;if(ri&&(ri=!1,sr=e,si=i),u=e.pendingLanes,u===0&&(rr=null),_m(n.stateNode),jt(e,Ke()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],o(i.value,{componentStack:i.stack,digest:i.digest});if(ni)throw ni=!1,e=iu,iu=null,e;return(si&1)!==0&&e.tag!==0&&zs(),u=e.pendingLanes,(u&1)!==0?e===lu?Bo++:(Bo=0,lu=e):Bo=0,Jn(),null}function zs(){if(sr!==null){var e=Ic(si),t=Bt.transition,n=_e;try{if(Bt.transition=null,_e=16>e?16:e,sr===null)var o=!1;else{if(e=sr,sr=null,si=0,(Pe&6)!==0)throw Error(a(331));var i=Pe;for(Pe|=4,ae=e.current;ae!==null;){var u=ae,h=u.child;if((ae.flags&16)!==0){var v=u.deletions;if(v!==null){for(var k=0;k<v.length;k++){var I=v[k];for(ae=I;ae!==null;){var $=ae;switch($.tag){case 0:case 11:case 15:Lo(8,$,u)}var V=$.child;if(V!==null)V.return=$,ae=V;else for(;ae!==null;){$=ae;var B=$.sibling,re=$.return;if(Tf($),$===I){ae=null;break}if(B!==null){B.return=re,ae=B;break}ae=re}}}var le=u.alternate;if(le!==null){var ue=le.child;if(ue!==null){le.child=null;do{var qe=ue.sibling;ue.sibling=null,ue=qe}while(ue!==null)}}ae=u}}if((u.subtreeFlags&2064)!==0&&h!==null)h.return=u,ae=h;else e:for(;ae!==null;){if(u=ae,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Lo(9,u,u.return)}var T=u.sibling;if(T!==null){T.return=u.return,ae=T;break e}ae=u.return}}var E=e.current;for(ae=E;ae!==null;){h=ae;var R=h.child;if((h.subtreeFlags&2064)!==0&&R!==null)R.return=h,ae=R;else e:for(h=E;ae!==null;){if(v=ae,(v.flags&2048)!==0)try{switch(v.tag){case 0:case 11:case 15:Ja(9,v)}}catch(de){Qe(v,v.return,de)}if(v===h){ae=null;break e}var q=v.sibling;if(q!==null){q.return=v.return,ae=q;break e}ae=v.return}}if(Pe=i,Jn(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(fa,e)}catch{}o=!0}return o}finally{_e=n,Bt.transition=t}}return!1}function Hf(e,t,n){t=Ts(n,t),t=cf(e,t,1),e=tr(e,t,1),t=vt(),e!==null&&(co(e,1,t),jt(e,t))}function Qe(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 o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(rr===null||!rr.has(o))){e=Ts(n,e),e=df(t,e,1),t=tr(t,e,1),e=vt(),t!==null&&(co(t,1,e),jt(t,e));break}}t=t.return}}function ly(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=vt(),e.pingedLanes|=e.suspendedLanes&n,rt===e&&(lt&n)===n&&(Ze===4||Ze===3&&(lt&130023424)===lt&&500>Ke()-au?Dr(e,0):ou|=n),jt(e,t)}function Kf(e,t){t===0&&((e.mode&1)===0?t=1:(t=pa,pa<<=1,(pa&130023424)===0&&(pa=4194304)));var n=vt();e=Pn(e,t),e!==null&&(co(e,t,n),jt(e,n))}function uy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kf(e,n)}function cy(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(a(314))}o!==null&&o.delete(t),Kf(e,n)}var qf;qf=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,Xg(e,t,n);Et=(e.flags&131072)!==0}else Et=!1,We&&(t.flags&1048576)!==0&&Nd(t,Aa,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Xa(e,t),e=t.pendingProps;var i=bs(t,ct.current);Ps(t,n),i=Dl(null,t,o,e,i,n);var u=Ll();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(o)?(u=!0,Oa(t)):u=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Tl(t),i.updater=Ga,t.stateNode=i,i._reactInternals=t,Vl(t,o,e,n),t=ql(null,t,o,!0,u,n)):(t.tag=0,We&&u&&wl(t),yt(null,t,i,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Xa(e,t),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=fy(o),e=Xt(o,e),i){case 0:t=Kl(null,t,o,e,n);break e;case 1:t=wf(null,t,o,e,n);break e;case 11:t=mf(null,t,o,e,n);break e;case 14:t=gf(null,t,o,Xt(o.type,e),n);break e}throw Error(a(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Xt(o,i),Kl(e,t,o,i,n);case 1:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Xt(o,i),wf(e,t,o,i,n);case 3:e:{if(Sf(t),e===null)throw Error(a(387));o=t.pendingProps,u=t.memoizedState,i=u.element,_d(e,t),Wa(t,o,null,n);var h=t.memoizedState;if(o=h.element,u.isDehydrated)if(u={element:o,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){i=Ts(Error(a(423)),t),t=bf(e,t,o,n,i);break e}else if(o!==i){i=Ts(Error(a(424)),t),t=bf(e,t,o,n,i);break e}else for(zt=Yn(t.stateNode.containerInfo.firstChild),Ot=t,We=!0,Yt=null,n=Od(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Es(),o===i){t=Tn(e,t,n);break e}yt(e,t,o,n)}t=t.child}return t;case 5:return Ld(t),e===null&&kl(t),o=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,h=i.children,pl(o,i)?h=null:u!==null&&pl(o,u)&&(t.flags|=32),xf(e,t),yt(e,t,h,n),t.child;case 6:return e===null&&kl(t),null;case 13:return kf(e,t,n);case 4:return Rl(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ns(t,null,o,n):yt(e,t,o,n),t.child;case 11:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Xt(o,i),mf(e,t,o,i,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,u=t.memoizedProps,h=i.value,Le(Fa,o._currentValue),o._currentValue=h,u!==null)if(Gt(u.value,h)){if(u.children===i.children&&!kt.current){t=Tn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var v=u.dependencies;if(v!==null){h=u.child;for(var k=v.firstContext;k!==null;){if(k.context===o){if(u.tag===1){k=Mn(-1,n&-n),k.tag=2;var I=u.updateQueue;if(I!==null){I=I.shared;var $=I.pending;$===null?k.next=k:(k.next=$.next,$.next=k),I.pending=k}}u.lanes|=n,k=u.alternate,k!==null&&(k.lanes|=n),Pl(u.return,n,t),v.lanes|=n;break}k=k.next}}else if(u.tag===10)h=u.type===t.type?null:u.child;else if(u.tag===18){if(h=u.return,h===null)throw Error(a(341));h.lanes|=n,v=h.alternate,v!==null&&(v.lanes|=n),Pl(h,n,t),h=u.sibling}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===t){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}yt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Ps(t,n),i=Ft(i),o=o(i),t.flags|=1,yt(e,t,o,n),t.child;case 14:return o=t.type,i=Xt(o,t.pendingProps),i=Xt(o.type,i),gf(e,t,o,i,n);case 15:return yf(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Xt(o,i),Xa(e,t),t.tag=1,Ct(o)?(e=!0,Oa(t)):e=!1,Ps(t,n),lf(t,o,i),Vl(t,o,i,n),ql(null,t,o,!0,e,n);case 19:return Ef(e,t,n);case 22:return vf(e,t,n)}throw Error(a(156,t.tag))};function Gf(e,t){return jc(e,t)}function dy(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,n,o){return new dy(e,t,n,o)}function pu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fy(e){if(typeof e=="function")return pu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===O)return 11;if(e===fe)return 14}return 2}function ir(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 li(e,t,n,o,i,u){var h=2;if(o=e,typeof e=="function")pu(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case K:return Fr(n.children,i,u,t);case W:h=8,i|=8;break;case D:return e=Wt(12,n,t,i|2),e.elementType=D,e.lanes=u,e;case se:return e=Wt(13,n,t,i),e.elementType=se,e.lanes=u,e;case ie:return e=Wt(19,n,t,i),e.elementType=ie,e.lanes=u,e;case we:return ui(n,i,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:h=10;break e;case _:h=9;break e;case O:h=11;break e;case fe:h=14;break e;case be:h=16,o=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=Wt(h,n,t,i),t.elementType=e,t.type=o,t.lanes=u,t}function Fr(e,t,n,o){return e=Wt(7,e,o,t),e.lanes=n,e}function ui(e,t,n,o){return e=Wt(22,e,o,t),e.elementType=we,e.lanes=n,e.stateNode={isHidden:!1},e}function mu(e,t,n){return e=Wt(6,e,null,t),e.lanes=n,e}function gu(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 hy(e,t,n,o,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=$i(0),this.expirationTimes=$i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function yu(e,t,n,o,i,u,h,v,k){return e=new hy(e,t,n,v,k),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:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tl(u),e}function py(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ne,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Yf(e){if(!e)return Zn;e=e._reactInternals;e:{if(jr(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,o,i,u,h,v,k){return e=yu(n,o,!0,e,i,u,h,v,k),e.context=Yf(null),n=e.current,o=vt(),i=or(n),u=Mn(o,i),u.callback=t??null,tr(n,u,i),e.current.lanes=i,co(e,i,o),jt(e,o),e}function ci(e,t,n,o){var i=t.current,u=vt(),h=or(i);return n=Yf(n),t.context===null?t.context=n:t.pendingContext=n,t=Mn(u,h),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=tr(i,t,h),e!==null&&(en(e,i,h,u),Ba(e,i,h)),h}function di(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 vu(e,t){Zf(e,t),(e=e.alternate)&&Zf(e,t)}function my(){return null}var Jf=typeof reportError=="function"?reportError:function(e){console.error(e)};function xu(e){this._internalRoot=e}fi.prototype.render=xu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));ci(e,t,null,null)},fi.prototype.unmount=xu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ar(function(){ci(null,e,null,null)}),t[Cn]=null}};function fi(e){this._internalRoot=e}fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=_c();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kn.length&&t!==0&&t<Kn[n].priority;n++);Kn.splice(n,0,e),n===0&&Lc(e)}};function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function eh(){}function gy(e,t,n,o,i){if(i){if(typeof o=="function"){var u=o;o=function(){var I=di(h);u.call(I)}}var h=Xf(t,o,e,0,null,!1,!1,"",eh);return e._reactRootContainer=h,e[Cn]=h.current,Eo(e.nodeType===8?e.parentNode:e),Ar(),h}for(;i=e.lastChild;)e.removeChild(i);if(typeof o=="function"){var v=o;o=function(){var I=di(k);v.call(I)}}var k=yu(e,0,!1,null,null,!1,!1,"",eh);return e._reactRootContainer=k,e[Cn]=k.current,Eo(e.nodeType===8?e.parentNode:e),Ar(function(){ci(t,k,n,o)}),k}function pi(e,t,n,o,i){var u=n._reactRootContainer;if(u){var h=u;if(typeof i=="function"){var v=i;i=function(){var k=di(h);v.call(k)}}ci(t,h,e,i)}else h=gy(n,t,e,i,o);return di(h)}Oc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=uo(t.pendingLanes);n!==0&&(Vi(t,n|1),jt(t,Ke()),(Pe&6)===0&&(Os=Ke()+500,Jn()))}break;case 13:Ar(function(){var o=Pn(e,1);if(o!==null){var i=vt();en(o,e,1,i)}}),vu(e,1)}},Qi=function(e){if(e.tag===13){var t=Pn(e,134217728);if(t!==null){var n=vt();en(t,e,134217728,n)}vu(e,134217728)}},zc=function(e){if(e.tag===13){var t=or(e),n=Pn(e,t);if(n!==null){var o=vt();en(n,e,t,o)}vu(e,t)}},_c=function(){return _e},Ac=function(e,t){var n=_e;try{return _e=e,t()}finally{_e=n}},fs=function(e,t,n){switch(t){case"input":if(so(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=Ra(o);if(!i)throw Error(a(90));as(o),so(o,i)}}}break;case"textarea":ra(e,n);break;case"select":t=n.value,t!=null&&At(e,!!n.multiple,t,!1)}},Re=du,Ae=Ar;var yy={usingClientEntryPoint:!1,Events:[Po,ws,Ra,la,xe,du]},Wo={findFiberByHostInstance:Pr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vy={bundleType:Wo.bundleType,version:Wo.version,rendererPackageName:Wo.rendererPackageName,rendererConfig:Wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ec(e),e===null?null:e.stateNode},findFiberByHostInstance:Wo.findFiberByHostInstance||my,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 mi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mi.isDisabled&&mi.supportsFiber)try{fa=mi.inject(vy),pn=mi}catch{}}return Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yy,Pt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wu(t))throw Error(a(200));return py(e,t,null,n)},Pt.createRoot=function(e,t){if(!wu(e))throw Error(a(299));var n=!1,o="",i=Jf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=yu(e,1,!1,null,null,n,!1,o,i),e[Cn]=t.current,Eo(e.nodeType===8?e.parentNode:e),new xu(t)},Pt.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},Pt.flushSync=function(e){return Ar(e)},Pt.hydrate=function(e,t,n){if(!hi(t))throw Error(a(200));return pi(null,e,t,!0,n)},Pt.hydrateRoot=function(e,t,n){if(!wu(e))throw Error(a(405));var o=n!=null&&n.hydratedSources||null,i=!1,u="",h=Jf;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(h=n.onRecoverableError)),t=Xf(t,null,e,1,n??null,i,!1,u,h),e[Cn]=t.current,Eo(e),o)for(e=0;e<o.length;e++)n=o[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new fi(t)},Pt.render=function(e,t,n){if(!hi(t))throw Error(a(200));return pi(null,e,t,!1,n)},Pt.unmountComponentAtNode=function(e){if(!hi(e))throw Error(a(40));return e._reactRootContainer?(Ar(function(){pi(null,null,e,!1,function(){e._reactRootContainer=null,e[Cn]=null})}),!0):!1},Pt.unstable_batchedUpdates=du,Pt.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!hi(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return pi(e,t,n,!1,o)},Pt.version="18.3.1-next-f1338f8080-20240426",Pt}var uh;function cp(){if(uh)return Cu.exports;uh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),Cu.exports=Ny(),Cu.exports}var ch;function jy(){if(ch)return yi;ch=1;var r=cp();return yi.createRoot=r.createRoot,yi.hydrateRoot=r.hydrateRoot,yi}var Py=jy(),Zs=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(){}},My={setTimeout:(r,s)=>setTimeout(r,s),clearTimeout:r=>clearTimeout(r),setInterval:(r,s)=>setInterval(r,s),clearInterval:r=>clearInterval(r)},hr,rc,Xh,Ty=(Xh=class{constructor(){he(this,hr,My);he(this,rc,!1)}setTimeoutProvider(r){ee(this,hr,r)}setTimeout(r,s){return w(this,hr).setTimeout(r,s)}clearTimeout(r){w(this,hr).clearTimeout(r)}setInterval(r,s){return w(this,hr).setInterval(r,s)}clearInterval(r){w(this,hr).clearInterval(r)}},hr=new WeakMap,rc=new WeakMap,Xh),Ur=new Ty;function Ry(r){setTimeout(r,0)}var es=typeof window>"u"||"Deno"in globalThis;function wt(){}function Iy(r,s){return typeof r=="function"?r(s):r}function Du(r){return typeof r=="number"&&r>=0&&r!==1/0}function dp(r,s){return Math.max(r+(s||0)-Date.now(),0)}function br(r,s){return typeof r=="function"?r(s):r}function Vt(r,s){return typeof r=="function"?r(s):r}function dh(r,s){const{type:a="all",exact:l,fetchStatus:c,predicate:f,queryKey:m,stale:p}=r;if(m){if(l){if(s.queryHash!==oc(m,s.options))return!1}else if(!Ko(s.queryKey,m))return!1}if(a!=="all"){const S=s.isActive();if(a==="active"&&!S||a==="inactive"&&S)return!1}return!(typeof p=="boolean"&&s.isStale()!==p||c&&c!==s.state.fetchStatus||f&&!f(s))}function fh(r,s){const{exact:a,status:l,predicate:c,mutationKey:f}=r;if(f){if(!s.options.mutationKey)return!1;if(a){if(ts(s.options.mutationKey)!==ts(f))return!1}else if(!Ko(s.options.mutationKey,f))return!1}return!(l&&s.state.status!==l||c&&!c(s))}function oc(r,s){return((s==null?void 0:s.queryKeyHashFn)||ts)(r)}function ts(r){return JSON.stringify(r,(s,a)=>Lu(a)?Object.keys(a).sort().reduce((l,c)=>(l[c]=a[c],l),{}):a)}function Ko(r,s){return r===s?!0:typeof r!=typeof s?!1:r&&s&&typeof r=="object"&&typeof s=="object"?Object.keys(s).every(a=>Ko(r[a],s[a])):!1}var Oy=Object.prototype.hasOwnProperty;function fp(r,s,a=0){if(r===s)return r;if(a>500)return s;const l=hh(r)&&hh(s);if(!l&&!(Lu(r)&&Lu(s)))return s;const f=(l?r:Object.keys(r)).length,m=l?s:Object.keys(s),p=m.length,S=l?new Array(p):{};let g=0;for(let C=0;C<p;C++){const N=l?C:m[C],P=r[N],y=s[N];if(P===y){S[N]=P,(l?C<f:Oy.call(r,N))&&g++;continue}if(P===null||y===null||typeof P!="object"||typeof y!="object"){S[N]=y;continue}const A=fp(P,y,a+1);S[N]=A,A===P&&g++}return f===p&&g===f?r:S}function Ri(r,s){if(!s||Object.keys(r).length!==Object.keys(s).length)return!1;for(const a in r)if(r[a]!==s[a])return!1;return!0}function hh(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Lu(r){if(!ph(r))return!1;const s=r.constructor;if(s===void 0)return!0;const a=s.prototype;return!(!ph(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function ph(r){return Object.prototype.toString.call(r)==="[object Object]"}function zy(r){return new Promise(s=>{Ur.setTimeout(s,r)})}function Fu(r,s,a){return typeof a.structuralSharing=="function"?a.structuralSharing(r,s):a.structuralSharing!==!1?fp(r,s):s}function _y(r,s,a=0){const l=[...r,s];return a&&l.length>a?l.slice(1):l}function Ay(r,s,a=0){const l=[s,...r];return a&&l.length>a?l.slice(0,-1):l}var ac=Symbol();function hp(r,s){return!r.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!r.queryFn||r.queryFn===ac?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function ic(r,s){return typeof r=="function"?r(...s):!!r}function Dy(r,s,a){let l=!1,c;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(c??(c=s()),l||(l=!0,c.aborted?a():c.addEventListener("abort",a,{once:!0})),c)}),r}var Br,pr,Us,Zh,Ly=(Zh=class extends Zs{constructor(){super();he(this,Br);he(this,pr);he(this,Us);ee(this,Us,s=>{if(!es&&window.addEventListener){const a=()=>s();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){w(this,pr)||this.setEventListener(w(this,Us))}onUnsubscribe(){var s;this.hasListeners()||((s=w(this,pr))==null||s.call(this),ee(this,pr,void 0))}setEventListener(s){var a;ee(this,Us,s),(a=w(this,pr))==null||a.call(this),ee(this,pr,s(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(s){w(this,Br)!==s&&(ee(this,Br,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(a=>{a(s)})}isFocused(){var s;return typeof w(this,Br)=="boolean"?w(this,Br):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Br=new WeakMap,pr=new WeakMap,Us=new WeakMap,Zh),lc=new Ly;function Uu(){let r,s;const a=new Promise((c,f)=>{r=c,s=f});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}),s(c)},a}var Fy=Ry;function Uy(){let r=[],s=0,a=p=>{p()},l=p=>{p()},c=Fy;const f=p=>{s?r.push(p):c(()=>{a(p)})},m=()=>{const p=r;r=[],p.length&&c(()=>{l(()=>{p.forEach(S=>{a(S)})})})};return{batch:p=>{let S;s++;try{S=p()}finally{s--,s||m()}return S},batchCalls:p=>(...S)=>{f(()=>{p(...S)})},schedule:f,setNotifyFunction:p=>{a=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{c=p}}}var Je=Uy(),Bs,mr,Ws,Jh,By=(Jh=class extends Zs{constructor(){super();he(this,Bs,!0);he(this,mr);he(this,Ws);ee(this,Ws,s=>{if(!es&&window.addEventListener){const a=()=>s(!0),l=()=>s(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",l)}}})}onSubscribe(){w(this,mr)||this.setEventListener(w(this,Ws))}onUnsubscribe(){var s;this.hasListeners()||((s=w(this,mr))==null||s.call(this),ee(this,mr,void 0))}setEventListener(s){var a;ee(this,Ws,s),(a=w(this,mr))==null||a.call(this),ee(this,mr,s(this.setOnline.bind(this)))}setOnline(s){w(this,Bs)!==s&&(ee(this,Bs,s),this.listeners.forEach(l=>{l(s)}))}isOnline(){return w(this,Bs)}},Bs=new WeakMap,mr=new WeakMap,Ws=new WeakMap,Jh),Ii=new By;function Wy(r){return Math.min(1e3*2**r,3e4)}function pp(r){return(r??"online")==="online"?Ii.isOnline():!0}var Bu=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function mp(r){let s=!1,a=0,l;const c=Uu(),f=()=>c.status!=="pending",m=x=>{var M;if(!f()){const F=new Bu(x);P(F),(M=r.onCancel)==null||M.call(r,F)}},p=()=>{s=!0},S=()=>{s=!1},g=()=>lc.isFocused()&&(r.networkMode==="always"||Ii.isOnline())&&r.canRun(),C=()=>pp(r.networkMode)&&r.canRun(),N=x=>{f()||(l==null||l(),c.resolve(x))},P=x=>{f()||(l==null||l(),c.reject(x))},y=()=>new Promise(x=>{var M;l=F=>{(f()||g())&&x(F)},(M=r.onPause)==null||M.call(r)}).then(()=>{var x;l=void 0,f()||(x=r.onContinue)==null||x.call(r)}),A=()=>{if(f())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(N).catch(F=>{var ne;if(f())return;const H=r.retry??(es?0:3),U=r.retryDelay??Wy,L=typeof U=="function"?U(a,F):U,te=H===!0||typeof H=="number"&&a<H||typeof H=="function"&&H(a,F);if(s||!te){P(F);return}a++,(ne=r.onFail)==null||ne.call(r,a,F),zy(L).then(()=>g()?void 0:y()).then(()=>{s?P(F):A()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:p,continueRetry:S,canStart:C,start:()=>(C()?A():y().then(A),c)}}var Wr,ep,gp=(ep=class{constructor(){he(this,Wr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Du(this.gcTime)&&ee(this,Wr,Ur.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(es?1/0:300*1e3))}clearGcTimeout(){w(this,Wr)&&(Ur.clearTimeout(w(this,Wr)),ee(this,Wr,void 0))}},Wr=new WeakMap,ep),$r,$s,$t,Vr,ot,Yo,Qr,rn,On,tp,$y=(tp=class extends gp{constructor(s){super();he(this,rn);he(this,$r);he(this,$s);he(this,$t);he(this,Vr);he(this,ot);he(this,Yo);he(this,Qr);ee(this,Qr,!1),ee(this,Yo,s.defaultOptions),this.setOptions(s.options),this.observers=[],ee(this,Vr,s.client),ee(this,$t,w(this,Vr).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,ee(this,$r,gh(this.options)),this.state=s.state??w(this,$r),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=w(this,ot))==null?void 0:s.promise}setOptions(s){if(this.options={...w(this,Yo),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=gh(this.options);a.data!==void 0&&(this.setState(mh(a.data,a.dataUpdatedAt)),ee(this,$r,a))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&w(this,$t).remove(this)}setData(s,a){const l=Fu(this.state.data,s,this.options);return ke(this,rn,On).call(this,{data:l,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),l}setState(s,a){ke(this,rn,On).call(this,{type:"setState",state:s,setStateOptions:a})}cancel(s){var l,c;const a=(l=w(this,ot))==null?void 0:l.promise;return(c=w(this,ot))==null||c.cancel(s),a?a.then(wt).catch(wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(w(this,$r))}isActive(){return this.observers.some(s=>Vt(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ac||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>br(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!dp(this.state.dataUpdatedAt,s)}onFocus(){var a;const s=this.observers.find(l=>l.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(a=w(this,ot))==null||a.continue()}onOnline(){var a;const s=this.observers.find(l=>l.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(a=w(this,ot))==null||a.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),w(this,$t).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(a=>a!==s),this.observers.length||(w(this,ot)&&(w(this,Qr)?w(this,ot).cancel({revert:!0}):w(this,ot).cancelRetry()),this.scheduleGc()),w(this,$t).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ke(this,rn,On).call(this,{type:"invalidate"})}async fetch(s,a){var S,g,C,N,P,y,A,x,M,F,H,U;if(this.state.fetchStatus!=="idle"&&((S=w(this,ot))==null?void 0:S.status())!=="rejected"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(w(this,ot))return w(this,ot).continueRetry(),w(this,ot).promise}if(s&&this.setOptions(s),!this.options.queryFn){const L=this.observers.find(te=>te.options.queryFn);L&&this.setOptions(L.options)}const l=new AbortController,c=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(ee(this,Qr,!0),l.signal)})},f=()=>{const L=hp(this.options,a),ne=(()=>{const K={client:w(this,Vr),queryKey:this.queryKey,meta:this.meta};return c(K),K})();return ee(this,Qr,!1),this.options.persister?this.options.persister(L,ne,this):L(ne)},p=(()=>{const L={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:w(this,Vr),state:this.state,fetchFn:f};return c(L),L})();(g=this.options.behavior)==null||g.onFetch(p,this),ee(this,$s,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=p.fetchOptions)==null?void 0:C.meta))&&ke(this,rn,On).call(this,{type:"fetch",meta:(N=p.fetchOptions)==null?void 0:N.meta}),ee(this,ot,mp({initialPromise:a==null?void 0:a.initialPromise,fn:p.fetchFn,onCancel:L=>{L instanceof Bu&&L.revert&&this.setState({...w(this,$s),fetchStatus:"idle"}),l.abort()},onFail:(L,te)=>{ke(this,rn,On).call(this,{type:"failed",failureCount:L,error:te})},onPause:()=>{ke(this,rn,On).call(this,{type:"pause"})},onContinue:()=>{ke(this,rn,On).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const L=await w(this,ot).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(y=(P=w(this,$t).config).onSuccess)==null||y.call(P,L,this),(x=(A=w(this,$t).config).onSettled)==null||x.call(A,L,this.state.error,this),L}catch(L){if(L instanceof Bu){if(L.silent)return w(this,ot).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw ke(this,rn,On).call(this,{type:"error",error:L}),(F=(M=w(this,$t).config).onError)==null||F.call(M,L,this),(U=(H=w(this,$t).config).onSettled)==null||U.call(H,this.state.data,L,this),L}finally{this.scheduleGc()}}},$r=new WeakMap,$s=new WeakMap,$t=new WeakMap,Vr=new WeakMap,ot=new WeakMap,Yo=new WeakMap,Qr=new WeakMap,rn=new WeakSet,On=function(s){const a=l=>{switch(s.type){case"failed":return{...l,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...yp(l.data,this.options),fetchMeta:s.meta??null};case"success":const c={...l,...mh(s.data,s.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,$s,s.manual?c:void 0),c;case"error":const f=s.error;return{...l,error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...s.state}}};this.state=a(this.state),Je.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),w(this,$t).notify({query:this,type:"updated",action:s})})},tp);function yp(r,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pp(s.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function mh(r,s){return{data:r,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function gh(r){const s=typeof r.initialData=="function"?r.initialData():r.initialData,a=s!==void 0,l=a?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:s,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,Xo,xt,Hr,Vs,zn,gr,Zo,Qs,Hs,Kr,qr,yr,Ks,Oe,Ho,Wu,$u,Vu,Qu,Hu,Ku,qu,vp,np,Vy=(np=class extends Zs{constructor(s,a){super();he(this,Oe);he(this,Mt);he(this,Ne);he(this,Xo);he(this,xt);he(this,Hr);he(this,Vs);he(this,zn);he(this,gr);he(this,Zo);he(this,Qs);he(this,Hs);he(this,Kr);he(this,qr);he(this,yr);he(this,Ks,new Set);this.options=a,ee(this,Mt,s),ee(this,gr,null),ee(this,zn,Uu()),this.bindMethods(),this.setOptions(a)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(w(this,Ne).addObserver(this),yh(w(this,Ne),this.options)?ke(this,Oe,Ho).call(this):this.updateResult(),ke(this,Oe,Qu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Gu(w(this,Ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Gu(w(this,Ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ke(this,Oe,Hu).call(this),ke(this,Oe,Ku).call(this),w(this,Ne).removeObserver(this)}setOptions(s){const a=this.options,l=w(this,Ne);if(this.options=w(this,Mt).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vt(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,qu).call(this),w(this,Ne).setOptions(this.options),a._defaulted&&!Ri(this.options,a)&&w(this,Mt).getQueryCache().notify({type:"observerOptionsUpdated",query:w(this,Ne),observer:this});const c=this.hasListeners();c&&vh(w(this,Ne),l,this.options,a)&&ke(this,Oe,Ho).call(this),this.updateResult(),c&&(w(this,Ne)!==l||Vt(this.options.enabled,w(this,Ne))!==Vt(a.enabled,w(this,Ne))||br(this.options.staleTime,w(this,Ne))!==br(a.staleTime,w(this,Ne)))&&ke(this,Oe,Wu).call(this);const f=ke(this,Oe,$u).call(this);c&&(w(this,Ne)!==l||Vt(this.options.enabled,w(this,Ne))!==Vt(a.enabled,w(this,Ne))||f!==w(this,yr))&&ke(this,Oe,Vu).call(this,f)}getOptimisticResult(s){const a=w(this,Mt).getQueryCache().build(w(this,Mt),s),l=this.createResult(a,s);return Hy(this,l)&&(ee(this,xt,l),ee(this,Vs,this.options),ee(this,Hr,w(this,Ne).state)),l}getCurrentResult(){return w(this,xt)}trackResult(s,a){return new Proxy(s,{get:(l,c)=>(this.trackProp(c),a==null||a(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&w(this,zn).status==="pending"&&w(this,zn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(s){w(this,Ks).add(s)}getCurrentQuery(){return w(this,Ne)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const a=w(this,Mt).defaultQueryOptions(s),l=w(this,Mt).getQueryCache().build(w(this,Mt),a);return l.fetch().then(()=>this.createResult(l,a))}fetch(s){return ke(this,Oe,Ho).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),w(this,xt)))}createResult(s,a){var D;const l=w(this,Ne),c=this.options,f=w(this,xt),m=w(this,Hr),p=w(this,Vs),g=s!==l?s.state:w(this,Xo),{state:C}=s;let N={...C},P=!1,y;if(a._optimisticResults){const X=this.hasListeners(),_=!X&&yh(s,a),O=X&&vh(s,l,a,c);(_||O)&&(N={...N,...yp(C.data,s.options)}),a._optimisticResults==="isRestoring"&&(N.fetchStatus="idle")}let{error:A,errorUpdatedAt:x,status:M}=N;y=N.data;let F=!1;if(a.placeholderData!==void 0&&y===void 0&&M==="pending"){let X;f!=null&&f.isPlaceholderData&&a.placeholderData===(p==null?void 0:p.placeholderData)?(X=f.data,F=!0):X=typeof a.placeholderData=="function"?a.placeholderData((D=w(this,Hs))==null?void 0:D.state.data,w(this,Hs)):a.placeholderData,X!==void 0&&(M="success",y=Fu(f==null?void 0:f.data,X,a),P=!0)}if(a.select&&y!==void 0&&!F)if(f&&y===(m==null?void 0:m.data)&&a.select===w(this,Zo))y=w(this,Qs);else try{ee(this,Zo,a.select),y=a.select(y),y=Fu(f==null?void 0:f.data,y,a),ee(this,Qs,y),ee(this,gr,null)}catch(X){ee(this,gr,X)}w(this,gr)&&(A=w(this,gr),y=w(this,Qs),x=Date.now(),M="error");const H=N.fetchStatus==="fetching",U=M==="pending",L=M==="error",te=U&&H,ne=y!==void 0,W={status:M,fetchStatus:N.fetchStatus,isPending:U,isSuccess:M==="success",isError:L,isInitialLoading:te,isLoading:te,data:y,dataUpdatedAt:N.dataUpdatedAt,error:A,errorUpdatedAt:x,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>g.dataUpdateCount||N.errorUpdateCount>g.errorUpdateCount,isFetching:H,isRefetching:H&&!U,isLoadingError:L&&!ne,isPaused:N.fetchStatus==="paused",isPlaceholderData:P,isRefetchError:L&&ne,isStale:uc(s,a),refetch:this.refetch,promise:w(this,zn),isEnabled:Vt(a.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const X=W.data!==void 0,_=W.status==="error"&&!X,O=fe=>{_?fe.reject(W.error):X&&fe.resolve(W.data)},se=()=>{const fe=ee(this,zn,W.promise=Uu());O(fe)},ie=w(this,zn);switch(ie.status){case"pending":s.queryHash===l.queryHash&&O(ie);break;case"fulfilled":(_||W.data!==ie.value)&&se();break;case"rejected":(!_||W.error!==ie.reason)&&se();break}}return W}updateResult(){const s=w(this,xt),a=this.createResult(w(this,Ne),this.options);if(ee(this,Hr,w(this,Ne).state),ee(this,Vs,this.options),w(this,Hr).data!==void 0&&ee(this,Hs,w(this,Ne)),Ri(a,s))return;ee(this,xt,a);const l=()=>{if(!s)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!w(this,Ks).size)return!0;const m=new Set(f??w(this,Ks));return this.options.throwOnError&&m.add("error"),Object.keys(w(this,xt)).some(p=>{const S=p;return w(this,xt)[S]!==s[S]&&m.has(S)})};ke(this,Oe,vp).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ke(this,Oe,Qu).call(this)}},Mt=new WeakMap,Ne=new WeakMap,Xo=new WeakMap,xt=new WeakMap,Hr=new WeakMap,Vs=new WeakMap,zn=new WeakMap,gr=new WeakMap,Zo=new WeakMap,Qs=new WeakMap,Hs=new WeakMap,Kr=new WeakMap,qr=new WeakMap,yr=new WeakMap,Ks=new WeakMap,Oe=new WeakSet,Ho=function(s){ke(this,Oe,qu).call(this);let a=w(this,Ne).fetch(this.options,s);return s!=null&&s.throwOnError||(a=a.catch(wt)),a},Wu=function(){ke(this,Oe,Hu).call(this);const s=br(this.options.staleTime,w(this,Ne));if(es||w(this,xt).isStale||!Du(s))return;const l=dp(w(this,xt).dataUpdatedAt,s)+1;ee(this,Kr,Ur.setTimeout(()=>{w(this,xt).isStale||this.updateResult()},l))},$u=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(w(this,Ne)):this.options.refetchInterval)??!1},Vu=function(s){ke(this,Oe,Ku).call(this),ee(this,yr,s),!(es||Vt(this.options.enabled,w(this,Ne))===!1||!Du(w(this,yr))||w(this,yr)===0)&&ee(this,qr,Ur.setInterval(()=>{(this.options.refetchIntervalInBackground||lc.isFocused())&&ke(this,Oe,Ho).call(this)},w(this,yr)))},Qu=function(){ke(this,Oe,Wu).call(this),ke(this,Oe,Vu).call(this,ke(this,Oe,$u).call(this))},Hu=function(){w(this,Kr)&&(Ur.clearTimeout(w(this,Kr)),ee(this,Kr,void 0))},Ku=function(){w(this,qr)&&(Ur.clearInterval(w(this,qr)),ee(this,qr,void 0))},qu=function(){const s=w(this,Mt).getQueryCache().build(w(this,Mt),this.options);if(s===w(this,Ne))return;const a=w(this,Ne);ee(this,Ne,s),ee(this,Xo,s.state),this.hasListeners()&&(a==null||a.removeObserver(this),s.addObserver(this))},vp=function(s){Je.batch(()=>{s.listeners&&this.listeners.forEach(a=>{a(w(this,xt))}),w(this,Mt).getQueryCache().notify({query:w(this,Ne),type:"observerResultsUpdated"})})},np);function Qy(r,s){return Vt(s.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&s.retryOnMount===!1)}function yh(r,s){return Qy(r,s)||r.state.data!==void 0&&Gu(r,s,s.refetchOnMount)}function Gu(r,s,a){if(Vt(s.enabled,r)!==!1&&br(s.staleTime,r)!=="static"){const l=typeof a=="function"?a(r):a;return l==="always"||l!==!1&&uc(r,s)}return!1}function vh(r,s,a,l){return(r!==s||Vt(l.enabled,r)===!1)&&(!a.suspense||r.state.status!=="error")&&uc(r,a)}function uc(r,s){return Vt(s.enabled,r)!==!1&&r.isStaleByTime(br(s.staleTime,r))}function Hy(r,s){return!Ri(r.getCurrentResult(),s)}function xh(r){return{onFetch:(s,a)=>{var C,N,P,y,A;const l=s.options,c=(P=(N=(C=s.fetchOptions)==null?void 0:C.meta)==null?void 0:N.fetchMore)==null?void 0:P.direction,f=((y=s.state.data)==null?void 0:y.pages)||[],m=((A=s.state.data)==null?void 0:A.pageParams)||[];let p={pages:[],pageParams:[]},S=0;const g=async()=>{let x=!1;const M=U=>{Dy(U,()=>s.signal,()=>x=!0)},F=hp(s.options,s.fetchOptions),H=async(U,L,te)=>{if(x)return Promise.reject();if(L==null&&U.pages.length)return Promise.resolve(U);const K=(()=>{const _={client:s.client,queryKey:s.queryKey,pageParam:L,direction:te?"backward":"forward",meta:s.options.meta};return M(_),_})(),W=await F(K),{maxPages:D}=s.options,X=te?Ay:_y;return{pages:X(U.pages,W,D),pageParams:X(U.pageParams,L,D)}};if(c&&f.length){const U=c==="backward",L=U?Ky:wh,te={pages:f,pageParams:m},ne=L(l,te);p=await H(te,ne,U)}else{const U=r??f.length;do{const L=S===0?m[0]??l.initialPageParam:wh(l,p);if(S>0&&L==null)break;p=await H(p,L),S++}while(S<U)}return p};s.options.persister?s.fetchFn=()=>{var x,M;return(M=(x=s.options).persister)==null?void 0:M.call(x,g,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},a)}:s.fetchFn=g}}}function wh(r,{pages:s,pageParams:a}){const l=s.length-1;return s.length>0?r.getNextPageParam(s[l],s,a[l],a):void 0}function Ky(r,{pages:s,pageParams:a}){var l;return s.length>0?(l=r.getPreviousPageParam)==null?void 0:l.call(r,s[0],s,a[0],a):void 0}var Jo,xn,pt,Gr,wn,dr,rp,qy=(rp=class extends gp{constructor(s){super();he(this,wn);he(this,Jo);he(this,xn);he(this,pt);he(this,Gr);ee(this,Jo,s.client),this.mutationId=s.mutationId,ee(this,pt,s.mutationCache),ee(this,xn,[]),this.state=s.state||xp(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){w(this,xn).includes(s)||(w(this,xn).push(s),this.clearGcTimeout(),w(this,pt).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){ee(this,xn,w(this,xn).filter(a=>a!==s)),this.scheduleGc(),w(this,pt).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){w(this,xn).length||(this.state.status==="pending"?this.scheduleGc():w(this,pt).remove(this))}continue(){var s;return((s=w(this,Gr))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var m,p,S,g,C,N,P,y,A,x,M,F,H,U,L,te,ne,K;const a=()=>{ke(this,wn,dr).call(this,{type:"continue"})},l={client:w(this,Jo),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,Gr,mp({fn:()=>this.options.mutationFn?this.options.mutationFn(s,l):Promise.reject(new Error("No mutationFn found")),onFail:(W,D)=>{ke(this,wn,dr).call(this,{type:"failed",failureCount:W,error:D})},onPause:()=>{ke(this,wn,dr).call(this,{type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>w(this,pt).canRun(this)}));const c=this.state.status==="pending",f=!w(this,Gr).canStart();try{if(c)a();else{ke(this,wn,dr).call(this,{type:"pending",variables:s,isPaused:f}),w(this,pt).config.onMutate&&await w(this,pt).config.onMutate(s,this,l);const D=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,s,l));D!==this.state.context&&ke(this,wn,dr).call(this,{type:"pending",context:D,variables:s,isPaused:f})}const W=await w(this,Gr).start();return await((g=(S=w(this,pt).config).onSuccess)==null?void 0:g.call(S,W,s,this.state.context,this,l)),await((N=(C=this.options).onSuccess)==null?void 0:N.call(C,W,s,this.state.context,l)),await((y=(P=w(this,pt).config).onSettled)==null?void 0:y.call(P,W,null,this.state.variables,this.state.context,this,l)),await((x=(A=this.options).onSettled)==null?void 0:x.call(A,W,null,s,this.state.context,l)),ke(this,wn,dr).call(this,{type:"success",data:W}),W}catch(W){try{await((F=(M=w(this,pt).config).onError)==null?void 0:F.call(M,W,s,this.state.context,this,l))}catch(D){Promise.reject(D)}try{await((U=(H=this.options).onError)==null?void 0:U.call(H,W,s,this.state.context,l))}catch(D){Promise.reject(D)}try{await((te=(L=w(this,pt).config).onSettled)==null?void 0:te.call(L,void 0,W,this.state.variables,this.state.context,this,l))}catch(D){Promise.reject(D)}try{await((K=(ne=this.options).onSettled)==null?void 0:K.call(ne,void 0,W,s,this.state.context,l))}catch(D){Promise.reject(D)}throw ke(this,wn,dr).call(this,{type:"error",error:W}),W}finally{w(this,pt).runNext(this)}}},Jo=new WeakMap,xn=new WeakMap,pt=new WeakMap,Gr=new WeakMap,wn=new WeakSet,dr=function(s){const a=l=>{switch(s.type){case"failed":return{...l,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...l,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:s.error,failureCount:l.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Je.batch(()=>{w(this,xn).forEach(l=>{l.onMutationUpdate(s)}),w(this,pt).notify({mutation:this,type:"updated",action:s})})},rp);function xp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _n,sn,ea,sp,Gy=(sp=class extends Zs{constructor(s={}){super();he(this,_n);he(this,sn);he(this,ea);this.config=s,ee(this,_n,new Set),ee(this,sn,new Map),ee(this,ea,0)}build(s,a,l){const c=new qy({client:s,mutationCache:this,mutationId:++gi(this,ea)._,options:s.defaultMutationOptions(a),state:l});return this.add(c),c}add(s){w(this,_n).add(s);const a=vi(s);if(typeof a=="string"){const l=w(this,sn).get(a);l?l.push(s):w(this,sn).set(a,[s])}this.notify({type:"added",mutation:s})}remove(s){if(w(this,_n).delete(s)){const a=vi(s);if(typeof a=="string"){const l=w(this,sn).get(a);if(l)if(l.length>1){const c=l.indexOf(s);c!==-1&&l.splice(c,1)}else l[0]===s&&w(this,sn).delete(a)}}this.notify({type:"removed",mutation:s})}canRun(s){const a=vi(s);if(typeof a=="string"){const l=w(this,sn).get(a),c=l==null?void 0:l.find(f=>f.state.status==="pending");return!c||c===s}else return!0}runNext(s){var l;const a=vi(s);if(typeof a=="string"){const c=(l=w(this,sn).get(a))==null?void 0:l.find(f=>f!==s&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Je.batch(()=>{w(this,_n).forEach(s=>{this.notify({type:"removed",mutation:s})}),w(this,_n).clear(),w(this,sn).clear()})}getAll(){return Array.from(w(this,_n))}find(s){const a={exact:!0,...s};return this.getAll().find(l=>fh(a,l))}findAll(s={}){return this.getAll().filter(a=>fh(s,a))}notify(s){Je.batch(()=>{this.listeners.forEach(a=>{a(s)})})}resumePausedMutations(){const s=this.getAll().filter(a=>a.state.isPaused);return Je.batch(()=>Promise.all(s.map(a=>a.continue().catch(wt))))}},_n=new WeakMap,sn=new WeakMap,ea=new WeakMap,sp);function vi(r){var s;return(s=r.options.scope)==null?void 0:s.id}var An,vr,Tt,Dn,Un,Ni,Yu,op,Yy=(op=class extends Zs{constructor(a,l){super();he(this,Un);he(this,An);he(this,vr);he(this,Tt);he(this,Dn);ee(this,An,a),this.setOptions(l),this.bindMethods(),ke(this,Un,Ni).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,An).defaultMutationOptions(a),Ri(this.options,l)||w(this,An).getMutationCache().notify({type:"observerOptionsUpdated",mutation:w(this,Tt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&ts(l.mutationKey)!==ts(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,Un,Ni).call(this),ke(this,Un,Yu).call(this,a)}getCurrentResult(){return w(this,vr)}reset(){var a;(a=w(this,Tt))==null||a.removeObserver(this),ee(this,Tt,void 0),ke(this,Un,Ni).call(this),ke(this,Un,Yu).call(this)}mutate(a,l){var c;return ee(this,Dn,l),(c=w(this,Tt))==null||c.removeObserver(this),ee(this,Tt,w(this,An).getMutationCache().build(w(this,An),this.options)),w(this,Tt).addObserver(this),w(this,Tt).execute(a)}},An=new WeakMap,vr=new WeakMap,Tt=new WeakMap,Dn=new WeakMap,Un=new WeakSet,Ni=function(){var l;const a=((l=w(this,Tt))==null?void 0:l.state)??xp();ee(this,vr,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},Yu=function(a){Je.batch(()=>{var l,c,f,m,p,S,g,C;if(w(this,Dn)&&this.hasListeners()){const N=w(this,vr).variables,P=w(this,vr).context,y={client:w(this,An),meta:this.options.meta,mutationKey:this.options.mutationKey};if((a==null?void 0:a.type)==="success"){try{(c=(l=w(this,Dn)).onSuccess)==null||c.call(l,a.data,N,P,y)}catch(A){Promise.reject(A)}try{(m=(f=w(this,Dn)).onSettled)==null||m.call(f,a.data,null,N,P,y)}catch(A){Promise.reject(A)}}else if((a==null?void 0:a.type)==="error"){try{(S=(p=w(this,Dn)).onError)==null||S.call(p,a.error,N,P,y)}catch(A){Promise.reject(A)}try{(C=(g=w(this,Dn)).onSettled)==null||C.call(g,void 0,a.error,N,P,y)}catch(A){Promise.reject(A)}}}this.listeners.forEach(N=>{N(w(this,vr))})})},op),Sn,ap,Xy=(ap=class extends Zs{constructor(s={}){super();he(this,Sn);this.config=s,ee(this,Sn,new Map)}build(s,a,l){const c=a.queryKey,f=a.queryHash??oc(c,a);let m=this.get(f);return m||(m=new $y({client:s,queryKey:c,queryHash:f,options:s.defaultQueryOptions(a),state:l,defaultOptions:s.getQueryDefaults(c)}),this.add(m)),m}add(s){w(this,Sn).has(s.queryHash)||(w(this,Sn).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const a=w(this,Sn).get(s.queryHash);a&&(s.destroy(),a===s&&w(this,Sn).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){Je.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return w(this,Sn).get(s)}getAll(){return[...w(this,Sn).values()]}find(s){const a={exact:!0,...s};return this.getAll().find(l=>dh(a,l))}findAll(s={}){const a=this.getAll();return Object.keys(s).length>0?a.filter(l=>dh(s,l)):a}notify(s){Je.batch(()=>{this.listeners.forEach(a=>{a(s)})})}onFocus(){Je.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){Je.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},Sn=new WeakMap,ap),He,xr,wr,qs,Gs,Sr,Ys,Xs,ip,Zy=(ip=class{constructor(r={}){he(this,He);he(this,xr);he(this,wr);he(this,qs);he(this,Gs);he(this,Sr);he(this,Ys);he(this,Xs);ee(this,He,r.queryCache||new Xy),ee(this,xr,r.mutationCache||new Gy),ee(this,wr,r.defaultOptions||{}),ee(this,qs,new Map),ee(this,Gs,new Map),ee(this,Sr,0)}mount(){gi(this,Sr)._++,w(this,Sr)===1&&(ee(this,Ys,lc.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,He).onFocus())})),ee(this,Xs,Ii.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,He).onOnline())})))}unmount(){var r,s;gi(this,Sr)._--,w(this,Sr)===0&&((r=w(this,Ys))==null||r.call(this),ee(this,Ys,void 0),(s=w(this,Xs))==null||s.call(this),ee(this,Xs,void 0))}isFetching(r){return w(this,He).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return w(this,xr).findAll({...r,status:"pending"}).length}getQueryData(r){var a;const s=this.defaultQueryOptions({queryKey:r});return(a=w(this,He).get(s.queryHash))==null?void 0:a.state.data}ensureQueryData(r){const s=this.defaultQueryOptions(r),a=w(this,He).build(this,s),l=a.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&a.isStaleByTime(br(s.staleTime,a))&&this.prefetchQuery(s),Promise.resolve(l))}getQueriesData(r){return w(this,He).findAll(r).map(({queryKey:s,state:a})=>{const l=a.data;return[s,l]})}setQueryData(r,s,a){const l=this.defaultQueryOptions({queryKey:r}),c=w(this,He).get(l.queryHash),f=c==null?void 0:c.state.data,m=Iy(s,f);if(m!==void 0)return w(this,He).build(this,l).setData(m,{...a,manual:!0})}setQueriesData(r,s,a){return Je.batch(()=>w(this,He).findAll(r).map(({queryKey:l})=>[l,this.setQueryData(l,s,a)]))}getQueryState(r){var a;const s=this.defaultQueryOptions({queryKey:r});return(a=w(this,He).get(s.queryHash))==null?void 0:a.state}removeQueries(r){const s=w(this,He);Je.batch(()=>{s.findAll(r).forEach(a=>{s.remove(a)})})}resetQueries(r,s){const a=w(this,He);return Je.batch(()=>(a.findAll(r).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...r},s)))}cancelQueries(r,s={}){const a={revert:!0,...s},l=Je.batch(()=>w(this,He).findAll(r).map(c=>c.cancel(a)));return Promise.all(l).then(wt).catch(wt)}invalidateQueries(r,s={}){return Je.batch(()=>(w(this,He).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"},s)))}refetchQueries(r,s={}){const a={...s,cancelRefetch:s.cancelRefetch??!0},l=Je.batch(()=>w(this,He).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,a);return a.throwOnError||(f=f.catch(wt)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(wt)}fetchQuery(r){const s=this.defaultQueryOptions(r);s.retry===void 0&&(s.retry=!1);const a=w(this,He).build(this,s);return a.isStaleByTime(br(s.staleTime,a))?a.fetch(s):Promise.resolve(a.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(wt).catch(wt)}fetchInfiniteQuery(r){return r.behavior=xh(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(wt).catch(wt)}ensureInfiniteQueryData(r){return r.behavior=xh(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return Ii.isOnline()?w(this,xr).resumePausedMutations():Promise.resolve()}getQueryCache(){return w(this,He)}getMutationCache(){return w(this,xr)}getDefaultOptions(){return w(this,wr)}setDefaultOptions(r){ee(this,wr,r)}setQueryDefaults(r,s){w(this,qs).set(ts(r),{queryKey:r,defaultOptions:s})}getQueryDefaults(r){const s=[...w(this,qs).values()],a={};return s.forEach(l=>{Ko(r,l.queryKey)&&Object.assign(a,l.defaultOptions)}),a}setMutationDefaults(r,s){w(this,Gs).set(ts(r),{mutationKey:r,defaultOptions:s})}getMutationDefaults(r){const s=[...w(this,Gs).values()],a={};return s.forEach(l=>{Ko(r,l.mutationKey)&&Object.assign(a,l.defaultOptions)}),a}defaultQueryOptions(r){if(r._defaulted)return r;const s={...w(this,wr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return s.queryHash||(s.queryHash=oc(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===ac&&(s.enabled=!1),s}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...w(this,wr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){w(this,He).clear(),w(this,xr).clear()}},He=new WeakMap,xr=new WeakMap,wr=new WeakMap,qs=new WeakMap,Gs=new WeakMap,Sr=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,ip),wp=b.createContext(void 0),Cr=r=>{const s=b.useContext(wp);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},Jy=({client:r,children:s})=>(b.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),d.jsx(wp.Provider,{value:r,children:s})),Sp=b.createContext(!1),ev=()=>b.useContext(Sp);Sp.Provider;function tv(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var nv=b.createContext(tv()),rv=()=>b.useContext(nv),sv=(r,s,a)=>{const l=a!=null&&a.state.error&&typeof r.throwOnError=="function"?ic(r.throwOnError,[a.state.error,a]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(s.isReset()||(r.retryOnMount=!1))},ov=r=>{b.useEffect(()=>{r.clearReset()},[r])},av=({result:r,errorResetBoundary:s,throwOnError:a,query:l,suspense:c})=>r.isError&&!s.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||ic(a,[r.error,l])),iv=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))}},lv=(r,s)=>r.isLoading&&r.isFetching&&!s,uv=(r,s)=>(r==null?void 0:r.suspense)&&s.isPending,Sh=(r,s,a)=>s.fetchOptimistic(r).catch(()=>{a.clearReset()});function cv(r,s,a){var P,y,A,x;const l=ev(),c=rv(),f=Cr(),m=f.defaultQueryOptions(r);(y=(P=f.getDefaultOptions().queries)==null?void 0:P._experimental_beforeQuery)==null||y.call(P,m);const p=f.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",iv(m),sv(m,c,p),ov(c);const S=!f.getQueryCache().get(m.queryHash),[g]=b.useState(()=>new s(f,m)),C=g.getOptimisticResult(m),N=!l&&r.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(M=>{const F=N?g.subscribe(Je.batchCalls(M)):wt;return g.updateResult(),F},[g,N]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),b.useEffect(()=>{g.setOptions(m)},[m,g]),uv(m,C))throw Sh(m,g,c);if(av({result:C,errorResetBoundary:c,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw C.error;if((x=(A=f.getDefaultOptions().queries)==null?void 0:A._experimental_afterQuery)==null||x.call(A,m,C),m.experimental_prefetchInRender&&!es&&lv(C,l)){const M=S?Sh(m,g,c):p==null?void 0:p.promise;M==null||M.catch(wt).finally(()=>{g.updateResult()})}return m.notifyOnChangeProps?C:g.trackResult(C)}function ta(r,s){return cv(r,Vy)}function rs(r,s){const a=Cr(),[l]=b.useState(()=>new Yy(a,r));b.useEffect(()=>{l.setOptions(r)},[l,r]);const c=b.useSyncExternalStore(b.useCallback(m=>l.subscribe(Je.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f=b.useCallback((m,p)=>{l.mutate(m,p).catch(wt)},[l]);if(c.error&&ic(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}const bh=r=>{let s;const a=new Set,l=(g,C)=>{const N=typeof g=="function"?g(s):g;if(!Object.is(N,s)){const P=s;s=C??(typeof N!="object"||N===null)?N:Object.assign({},s,N),a.forEach(y=>y(s,P))}},c=()=>s,p={setState:l,getState:c,getInitialState:()=>S,subscribe:g=>(a.add(g),()=>a.delete(g))},S=s=r(l,c,p);return p},dv=(r=>r?bh(r):bh),fv=r=>r;function hv(r,s=fv){const a=J.useSyncExternalStore(r.subscribe,J.useCallback(()=>s(r.getState()),[r,s]),J.useCallback(()=>s(r.getInitialState()),[r,s]));return J.useDebugValue(a),a}const kh=r=>{const s=dv(r),a=l=>hv(s,l);return Object.assign(a,s),a},pv=(r=>r?kh(r):kh),ss=pv(r=>({activeTab:"model",setActiveTab:s=>r({activeTab:s}),connectionStatus:"disconnected",setConnectionStatus:s=>r({connectionStatus:s}),providerModal:{open:!1},openProviderModal:s=>r({providerModal:{open:!0,provider:s}}),closeProviderModal:()=>r({providerModal:{open:!1}}),channelModal:{open:!1},openChannelModal:s=>r({channelModal:{open:!0,channel:s}}),closeChannelModal:()=>r({channelModal:{open:!1}})}));function bp(r){var s,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(s=0;s<c;s++)r[s]&&(a=bp(r[s]))&&(l&&(l+=" "),l+=a)}else for(a in r)r[a]&&(l&&(l+=" "),l+=a);return l}function kp(){for(var r,s,a=0,l="",c=arguments.length;a<c;a++)(r=arguments[a])&&(s=bp(r))&&(l&&(l+=" "),l+=s);return l}const cc="-",mv=r=>{const s=yv(r),{conflictingClassGroups:a,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const p=m.split(cc);return p[0]===""&&p.length!==1&&p.shift(),Cp(p,s)||gv(m)},getConflictingClassGroupIds:(m,p)=>{const S=a[m]||[];return p&&l[m]?[...S,...l[m]]:S}}},Cp=(r,s)=>{var m;if(r.length===0)return s.classGroupId;const a=r[0],l=s.nextPart.get(a),c=l?Cp(r.slice(1),l):void 0;if(c)return c;if(s.validators.length===0)return;const f=r.join(cc);return(m=s.validators.find(({validator:p})=>p(f)))==null?void 0:m.classGroupId},Ch=/^\[(.+)\]$/,gv=r=>{if(Ch.test(r)){const s=Ch.exec(r)[1],a=s==null?void 0:s.substring(0,s.indexOf(":"));if(a)return"arbitrary.."+a}},yv=r=>{const{theme:s,prefix:a}=r,l={nextPart:new Map,validators:[]};return xv(Object.entries(r.classGroups),a).forEach(([f,m])=>{Xu(m,l,f,s)}),l},Xu=(r,s,a,l)=>{r.forEach(c=>{if(typeof c=="string"){const f=c===""?s:Eh(s,c);f.classGroupId=a;return}if(typeof c=="function"){if(vv(c)){Xu(c(l),s,a,l);return}s.validators.push({validator:c,classGroupId:a});return}Object.entries(c).forEach(([f,m])=>{Xu(m,Eh(s,f),a,l)})})},Eh=(r,s)=>{let a=r;return s.split(cc).forEach(l=>{a.nextPart.has(l)||a.nextPart.set(l,{nextPart:new Map,validators:[]}),a=a.nextPart.get(l)}),a},vv=r=>r.isThemeGetter,xv=(r,s)=>s?r.map(([a,l])=>{const c=l.map(f=>typeof f=="string"?s+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([m,p])=>[s+m,p])):f);return[a,c]}):r,wv=r=>{if(r<1)return{get:()=>{},set:()=>{}};let s=0,a=new Map,l=new Map;const c=(f,m)=>{a.set(f,m),s++,s>r&&(s=0,l=a,a=new Map)};return{get(f){let m=a.get(f);if(m!==void 0)return m;if((m=l.get(f))!==void 0)return c(f,m),m},set(f,m){a.has(f)?a.set(f,m):c(f,m)}}},Ep="!",Sv=r=>{const{separator:s,experimentalParseClassName:a}=r,l=s.length===1,c=s[0],f=s.length,m=p=>{const S=[];let g=0,C=0,N;for(let M=0;M<p.length;M++){let F=p[M];if(g===0){if(F===c&&(l||p.slice(M,M+f)===s)){S.push(p.slice(C,M)),C=M+f;continue}if(F==="/"){N=M;continue}}F==="["?g++:F==="]"&&g--}const P=S.length===0?p:p.substring(C),y=P.startsWith(Ep),A=y?P.substring(1):P,x=N&&N>C?N-C:void 0;return{modifiers:S,hasImportantModifier:y,baseClassName:A,maybePostfixModifierPosition:x}};return a?p=>a({className:p,parseClassName:m}):m},bv=r=>{if(r.length<=1)return r;const s=[];let a=[];return r.forEach(l=>{l[0]==="["?(s.push(...a.sort(),l),a=[]):a.push(l)}),s.push(...a.sort()),s},kv=r=>({cache:wv(r.cacheSize),parseClassName:Sv(r),...mv(r)}),Cv=/\s+/,Ev=(r,s)=>{const{parseClassName:a,getClassGroupId:l,getConflictingClassGroupIds:c}=s,f=[],m=r.trim().split(Cv);let p="";for(let S=m.length-1;S>=0;S-=1){const g=m[S],{modifiers:C,hasImportantModifier:N,baseClassName:P,maybePostfixModifierPosition:y}=a(g);let A=!!y,x=l(A?P.substring(0,y):P);if(!x){if(!A){p=g+(p.length>0?" "+p:p);continue}if(x=l(P),!x){p=g+(p.length>0?" "+p:p);continue}A=!1}const M=bv(C).join(":"),F=N?M+Ep:M,H=F+x;if(f.includes(H))continue;f.push(H);const U=c(x,A);for(let L=0;L<U.length;++L){const te=U[L];f.push(F+te)}p=g+(p.length>0?" "+p:p)}return p};function Nv(){let r=0,s,a,l="";for(;r<arguments.length;)(s=arguments[r++])&&(a=Np(s))&&(l&&(l+=" "),l+=a);return l}const Np=r=>{if(typeof r=="string")return r;let s,a="";for(let l=0;l<r.length;l++)r[l]&&(s=Np(r[l]))&&(a&&(a+=" "),a+=s);return a};function jv(r,...s){let a,l,c,f=m;function m(S){const g=s.reduce((C,N)=>N(C),r());return a=kv(g),l=a.cache.get,c=a.cache.set,f=p,p(S)}function p(S){const g=l(S);if(g)return g;const C=Ev(S,a);return c(S,C),C}return function(){return f(Nv.apply(null,arguments))}}const Be=r=>{const s=a=>a[r]||[];return s.isThemeGetter=!0,s},jp=/^\[(?:([a-z-]+):)?(.+)\]$/i,Pv=/^\d+\/\d+$/,Mv=new Set(["px","full","screen"]),Tv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rv=/\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$/,Iv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ov=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,In=r=>Ls(r)||Mv.has(r)||Pv.test(r),ur=r=>Js(r,"length",Wv),Ls=r=>!!r&&!Number.isNaN(Number(r)),ju=r=>Js(r,"number",Ls),Vo=r=>!!r&&Number.isInteger(Number(r)),_v=r=>r.endsWith("%")&&Ls(r.slice(0,-1)),Se=r=>jp.test(r),cr=r=>Tv.test(r),Av=new Set(["length","size","percentage"]),Dv=r=>Js(r,Av,Pp),Lv=r=>Js(r,"position",Pp),Fv=new Set(["image","url"]),Uv=r=>Js(r,Fv,Vv),Bv=r=>Js(r,"",$v),Qo=()=>!0,Js=(r,s,a)=>{const l=jp.exec(r);return l?l[1]?typeof s=="string"?l[1]===s:s.has(l[1]):a(l[2]):!1},Wv=r=>Rv.test(r)&&!Iv.test(r),Pp=()=>!1,$v=r=>Ov.test(r),Vv=r=>zv.test(r),Qv=()=>{const r=Be("colors"),s=Be("spacing"),a=Be("blur"),l=Be("brightness"),c=Be("borderColor"),f=Be("borderRadius"),m=Be("borderSpacing"),p=Be("borderWidth"),S=Be("contrast"),g=Be("grayscale"),C=Be("hueRotate"),N=Be("invert"),P=Be("gap"),y=Be("gradientColorStops"),A=Be("gradientColorStopPositions"),x=Be("inset"),M=Be("margin"),F=Be("opacity"),H=Be("padding"),U=Be("saturate"),L=Be("scale"),te=Be("sepia"),ne=Be("skew"),K=Be("space"),W=Be("translate"),D=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",Se,s],O=()=>[Se,s],se=()=>["",In,ur],ie=()=>["auto",Ls,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"],Z=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",Se],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[Ls,Se];return{cacheSize:500,separator:":",theme:{colors:[Qo],spacing:[In,ur],blur:["none","",cr,Se],brightness:j(),borderColor:[r],borderRadius:["none","","full",cr,Se],borderSpacing:O(),borderWidth:se(),contrast:j(),grayscale:Q(),hueRotate:j(),invert:Q(),gap:O(),gradientColorStops:[r],gradientColorStopPositions:[_v,ur],inset:_(),margin:_(),opacity:j(),padding:O(),saturate:j(),scale:j(),sepia:Q(),skew:j(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",Se]}],container:["container"],columns:[{columns:[cr]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],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",Vo,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:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",Vo,Se]}],"grid-cols":[{"grid-cols":[Qo]}],"col-start-end":[{col:["auto",{span:["full",Vo,Se]},Se]}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":[Qo]}],"row-start-end":[{row:["auto",{span:[Vo,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:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"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,s]}],"min-w":[{"min-w":[Se,s,"min","max","fit"]}],"max-w":[{"max-w":[Se,s,"none","full","min","max","fit","prose",{screen:[cr]},cr]}],h:[{h:[Se,s,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Se,s,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Se,s,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Se,s,"auto","min","max","fit"]}],"font-size":[{text:["base",cr,ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ju]}],"font-family":[{font:[Qo]}],"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",Ls,ju]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",In,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",In,ur]}],"underline-offset":[{"underline-offset":["auto",In,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(),Lv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Dv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Uv]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[F]}],"border-style":[{border:[...be(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[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":[In,Se]}],"outline-w":[{outline:[In,ur]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[F]}],"ring-offset-w":[{"ring-offset":[In,ur]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",cr,Bv]}],"shadow-color":[{shadow:[Qo]}],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",cr,Se]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[N]}],saturate:[{saturate:[U]}],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":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[N]}],"backdrop-opacity":[{"backdrop-opacity":[F]}],"backdrop-saturate":[{"backdrop-saturate":[U]}],"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:j()}],ease:[{ease:["linear","in","out","in-out",Se]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",Se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[Vo,Se]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"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:[In,ur,ju]}],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"]}}},Hv=jv(Qv);function Te(...r){return Hv(kp(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 Kv=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mp=(...r)=>r.filter((s,a,l)=>!!s&&s.trim()!==""&&l.indexOf(s)===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 qv={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 Gv=b.forwardRef(({color:r="currentColor",size:s=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:c="",children:f,iconNode:m,...p},S)=>b.createElement("svg",{ref:S,...qv,width:s,height:s,stroke:r,strokeWidth:l?Number(a)*24/Number(s):a,className:Mp("lucide",c),...p},[...m.map(([g,C])=>b.createElement(g,C)),...Array.isArray(f)?f:[f]]));/**
|
|
56
|
+
* @license lucide-react v0.462.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const ze=(r,s)=>{const a=b.forwardRef(({className:l,...c},f)=>b.createElement(Gv,{ref:f,iconNode:s,className:Mp(`lucide-${Kv(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 Tp=ze("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 Yv=ze("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|
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 Xv=ze("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 Zv=ze("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
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 Jv=ze("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
86
|
+
* @license lucide-react v0.462.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const e0=ze("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
91
|
+
* @license lucide-react v0.462.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const t0=ze("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
96
|
+
* @license lucide-react v0.462.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const n0=ze("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
101
|
+
* @license lucide-react v0.462.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const r0=ze("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 Rp=ze("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
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 Zu=ze("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
|
|
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 s0=ze("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
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 Oi=ze("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
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 o0=ze("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
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 dc=ze("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
|
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 ji=ze("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
|
|
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 fc=ze("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
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 Ju=ze("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
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 a0=ze("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"}]]);/**
|
|
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 i0=ze("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
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 Ip=ze("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
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 l0=ze("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 Op=ze("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
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 u0=ze("Slack",[["rect",{width:"3",height:"8",x:"13",y:"2",rx:"1.5",key:"diqz80"}],["path",{d:"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5",key:"183iwg"}],["rect",{width:"3",height:"8",x:"8",y:"14",rx:"1.5",key:"hqg7r1"}],["path",{d:"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5",key:"76g71w"}],["rect",{width:"8",height:"3",x:"14",y:"13",rx:"1.5",key:"1kmz0a"}],["path",{d:"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5",key:"jc4sz0"}],["rect",{width:"8",height:"3",x:"2",y:"8",rx:"1.5",key:"1omvl4"}],["path",{d:"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5",key:"16f3cl"}]]);/**
|
|
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 c0=ze("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
|
|
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 zp=ze("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
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 d0=ze("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
|
|
196
|
+
* @license lucide-react v0.462.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const zi=ze("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
201
|
+
* @license lucide-react v0.462.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const _p=ze("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
206
|
+
* @license lucide-react v0.462.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const f0=ze("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"}]]),h0=[{id:"model",label:"Models",icon:Zv},{id:"providers",label:"Providers",icon:zp},{id:"channels",label:"Channels",icon:fc},{id:"runtime",label:"Routing & Runtime",icon:r0},{id:"sessions",label:"Sessions",icon:s0}];function p0(){const{activeTab:r,setActiveTab:s}=ss();return d.jsxs("aside",{className:"w-[240px] bg-transparent flex flex-col h-full py-6 px-4",children:[d.jsx("div",{className:"px-3 mb-8",children:d.jsxs("div",{className:"flex items-center gap-2.5 group cursor-pointer",children:[d.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:d.jsx("img",{src:"/logo.svg",alt:"NextClaw",className:"h-full w-full object-contain"})}),d.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"})]})}),d.jsx("nav",{className:"flex-1",children:d.jsx("ul",{className:"space-y-1",children:h0.map(a=>{const l=a.icon,c=r===a.id;return d.jsx("li",{children:d.jsxs("button",{onClick:()=>s(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:[d.jsx(l,{className:Te("h-4 w-4 transition-transform duration-fast group-hover:scale-110",c?"text-primary":"text-gray-500")}),d.jsx("span",{className:"flex-1 text-left",children:a.label})]})},a.id)})})})]})}function m0({children:r}){return d.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[d.jsx(p0,{}),d.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:d.jsx("main",{className:"flex-1 overflow-auto custom-scrollbar p-8",children:d.jsx("div",{className:"max-w-6xl mx-auto animate-fade-in h-full",children:r})})})]})}const Nh=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,jh=kp,g0=(r,s)=>a=>{var l;if((s==null?void 0:s.variants)==null)return jh(r,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:c,defaultVariants:f}=s,m=Object.keys(c).map(g=>{const C=a==null?void 0:a[g],N=f==null?void 0:f[g];if(C===null)return null;const P=Nh(C)||Nh(N);return c[g][P]}),p=a&&Object.entries(a).reduce((g,C)=>{let[N,P]=C;return P===void 0||(g[N]=P),g},{}),S=s==null||(l=s.compoundVariants)===null||l===void 0?void 0:l.reduce((g,C)=>{let{class:N,className:P,...y}=C;return Object.entries(y).every(A=>{let[x,M]=A;return Array.isArray(M)?M.includes({...f,...p}[x]):{...f,...p}[x]===M})?[...g,N,P]:g},[]);return jh(r,m,S,a==null?void 0:a.class,a==null?void 0:a.className)},y0=g0("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"}}),Ye=b.forwardRef(({className:r,variant:s,size:a,...l},c)=>d.jsx("button",{className:Te(y0({variant:s,size:a,className:r})),ref:c,...l}));Ye.displayName="Button";const Fn=b.forwardRef(({className:r,hover:s=!0,...a},l)=>d.jsx("div",{ref:l,className:Te("rounded-xl border border-gray-200 bg-white text-card-foreground shadow-card transition-all duration-base",s&&"hover:shadow-card-hover hover:border-gray-300",r),...a}));Fn.displayName="Card";const Yr=b.forwardRef(({className:r,...s},a)=>d.jsx("div",{ref:a,className:Te("flex flex-col space-y-2 p-6",r),...s}));Yr.displayName="CardHeader";const Xr=b.forwardRef(({className:r,...s},a)=>d.jsx("h3",{ref:a,className:Te("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...s}));Xr.displayName="CardTitle";const Zr=b.forwardRef(({className:r,...s},a)=>d.jsx("p",{ref:a,className:Te("text-sm text-gray-500 leading-relaxed",r),...s}));Zr.displayName="CardDescription";const Jr=b.forwardRef(({className:r,...s},a)=>d.jsx("div",{ref:a,className:Te("p-6 pt-0",r),...s}));Jr.displayName="CardContent";const v0=b.forwardRef(({className:r,...s},a)=>d.jsx("div",{ref:a,className:Te("flex items-center justify-between p-6 pt-0",r),...s}));v0.displayName="CardFooter";const De=b.forwardRef(({className:r,type:s,...a},l)=>d.jsx("input",{type:s,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}));De.displayName="Input";const Ln=b.forwardRef(({className:r,...s},a)=>d.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),...s}));Ln.displayName="Label";function tn({className:r,...s}){return d.jsx("div",{className:Te("animate-pulse rounded-md bg-slate-200",r),...s})}const x0="http://127.0.0.1:18791",Pi=(()=>{var r;return typeof window<"u"&&((r=window.location)!=null&&r.origin)?window.location.origin:x0})();async function xi(r,s={}){const a=`${Pi}${r}`,l=await fetch(a,{headers:{"Content-Type":"application/json",...s.headers},...s}),c=await l.text();let f=null;if(c)try{f=JSON.parse(c)}catch{}if(!f){const m=c?c.slice(0,200):"";return{ok:!1,error:{code:"INVALID_RESPONSE",message:`Non-JSON response (${l.status} ${l.statusText})${m?`: ${m}`:""}`}}}return l.ok,f}const Qt={get:r=>xi(r,{method:"GET"}),put:(r,s)=>xi(r,{method:"PUT",body:JSON.stringify(s)}),post:(r,s)=>xi(r,{method:"POST",body:JSON.stringify(s)}),delete:r=>xi(r,{method:"DELETE"})};async function w0(){const r=await Qt.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function S0(){const r=await Qt.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function b0(){const r=await Qt.get("/api/config/schema");if(!r.ok)throw new Error(r.error.message);return r.data}async function k0(r){const s=await Qt.put("/api/config/model",r);if(!s.ok)throw new Error(s.error.message);return s.data}async function C0(r,s){const a=await Qt.put(`/api/config/providers/${r}`,s);if(!a.ok)throw new Error(a.error.message);return a.data}async function E0(r,s){const a=await Qt.put(`/api/config/channels/${r}`,s);if(!a.ok)throw new Error(a.error.message);return a.data}async function N0(r){const s=await Qt.put("/api/config/runtime",r);if(!s.ok)throw new Error(s.error.message);return s.data}async function j0(r,s){const a=await Qt.post(`/api/config/actions/${r}/execute`,s);if(!a.ok)throw new Error(a.error.message);return a.data}async function P0(r){var c;const s=new URLSearchParams;(c=r==null?void 0:r.q)!=null&&c.trim()&&s.set("q",r.q.trim()),typeof(r==null?void 0:r.limit)=="number"&&Number.isFinite(r.limit)&&s.set("limit",String(Math.max(0,Math.trunc(r.limit)))),typeof(r==null?void 0:r.activeMinutes)=="number"&&Number.isFinite(r.activeMinutes)&&s.set("activeMinutes",String(Math.max(0,Math.trunc(r.activeMinutes))));const a=s.toString(),l=await Qt.get(a?"/api/sessions?"+a:"/api/sessions");if(!l.ok)throw new Error(l.error.message);return l.data}async function M0(r,s=200){const a=await Qt.get(`/api/sessions/${encodeURIComponent(r)}/history?limit=${Math.max(1,Math.trunc(s))}`);if(!a.ok)throw new Error(a.error.message);return a.data}async function T0(r,s){const a=await Qt.put(`/api/sessions/${encodeURIComponent(r)}`,s);if(!a.ok)throw new Error(a.error.message);return a.data}async function R0(r){const s=await Qt.delete(`/api/sessions/${encodeURIComponent(r)}`);if(!s.ok)throw new Error(s.error.message);return s.data}var Ap=cp();const Dp=lp(Ap);var I0=r=>{switch(r){case"success":return _0;case"info":return D0;case"warning":return A0;case"error":return L0;default:return null}},O0=Array(12).fill(0),z0=({visible:r,className:s})=>J.createElement("div",{className:["sonner-loading-wrapper",s].filter(Boolean).join(" "),"data-visible":r},J.createElement("div",{className:"sonner-spinner"},O0.map((a,l)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),_0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.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"})),A0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.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"})),D0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.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"})),L0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.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"})),F0=J.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"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),U0=()=>{let[r,s]=J.useState(document.hidden);return J.useEffect(()=>{let a=()=>{s(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),r},ec=1,B0=class{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{let s=this.subscribers.indexOf(r);this.subscribers.splice(s,1)}),this.publish=r=>{this.subscribers.forEach(s=>s(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var s;let{message:a,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((s=r.id)==null?void 0:s.length)>0?r.id:ec++,f=this.toasts.find(p=>p.id===c),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...r,id:c,title:a}),{...p,...r,id:c,dismissible:m,title:a}):p):this.addToast({title:a,...l,dismissible:m,id:c}),c},this.dismiss=r=>(this.dismissedToasts.add(r),r||this.toasts.forEach(s=>{this.subscribers.forEach(a=>a({id:s.id,dismiss:!0}))}),this.subscribers.forEach(s=>s({id:r,dismiss:!0})),r),this.message=(r,s)=>this.create({...s,message:r}),this.error=(r,s)=>this.create({...s,message:r,type:"error"}),this.success=(r,s)=>this.create({...s,type:"success",message:r}),this.info=(r,s)=>this.create({...s,type:"info",message:r}),this.warning=(r,s)=>this.create({...s,type:"warning",message:r}),this.loading=(r,s)=>this.create({...s,type:"loading",message:r}),this.promise=(r,s)=>{if(!s)return;let a;s.loading!==void 0&&(a=this.create({...s,promise:r,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));let l=r instanceof Promise?r:r(),c=a!==void 0,f,m=l.then(async S=>{if(f=["resolve",S],J.isValidElement(S))c=!1,this.create({id:a,type:"default",message:S});else if($0(S)&&!S.ok){c=!1;let g=typeof s.error=="function"?await s.error(`HTTP error! status: ${S.status}`):s.error,C=typeof s.description=="function"?await s.description(`HTTP error! status: ${S.status}`):s.description;this.create({id:a,type:"error",message:g,description:C})}else if(s.success!==void 0){c=!1;let g=typeof s.success=="function"?await s.success(S):s.success,C=typeof s.description=="function"?await s.description(S):s.description;this.create({id:a,type:"success",message:g,description:C})}}).catch(async S=>{if(f=["reject",S],s.error!==void 0){c=!1;let g=typeof s.error=="function"?await s.error(S):s.error,C=typeof s.description=="function"?await s.description(S):s.description;this.create({id:a,type:"error",message:g,description:C})}}).finally(()=>{var S;c&&(this.dismiss(a),a=void 0),(S=s.finally)==null||S.call(s)}),p=()=>new Promise((S,g)=>m.then(()=>f[0]==="reject"?g(f[1]):S(f[1])).catch(g));return typeof a!="string"&&typeof a!="number"?{unwrap:p}:Object.assign(a,{unwrap:p})},this.custom=(r,s)=>{let a=(s==null?void 0:s.id)||ec++;return this.create({jsx:r(a),id:a,...s}),a},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Rt=new B0,W0=(r,s)=>{let a=(s==null?void 0:s.id)||ec++;return Rt.addToast({title:r,...s,id:a}),a},$0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",V0=W0,Q0=()=>Rt.toasts,H0=()=>Rt.getActiveToasts(),et=Object.assign(V0,{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:Q0,getToasts:H0});function K0(r,{insertAt:s}={}){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",s==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}K0(`: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%)}
|
|
211
|
+
`);function wi(r){return r.label!==void 0}var q0=3,G0="32px",Y0="16px",Ph=4e3,X0=356,Z0=14,J0=20,ex=200;function nn(...r){return r.filter(Boolean).join(" ")}function tx(r){let[s,a]=r.split("-"),l=[];return s&&l.push(s),a&&l.push(a),l}var nx=r=>{var s,a,l,c,f,m,p,S,g,C,N;let{invert:P,toast:y,unstyled:A,interacting:x,setHeights:M,visibleToasts:F,heights:H,index:U,toasts:L,expanded:te,removeToast:ne,defaultRichColors:K,closeButton:W,style:D,cancelButtonStyle:X,actionButtonStyle:_,className:O="",descriptionClassName:se="",duration:ie,position:fe,gap:be,loadingIcon:we,expandByDefault:Z,classNames:Q,icons:Y,closeButtonAriaLabel:j="Close toast",pauseWhenPageIsHidden:z}=r,[oe,ce]=J.useState(null),[ye,Ce]=J.useState(null),[ge,je]=J.useState(!1),[Ie,tt]=J.useState(!1),[an,as]=J.useState(!1),[Er,no]=J.useState(!1),[na,ro]=J.useState(!1),[so,is]=J.useState(0),[oo,Wn]=J.useState(0),At=J.useRef(y.duration||ie||Ph),ls=J.useRef(null),ln=J.useRef(null),ra=U===0,sa=U+1<=F,mt=y.type,un=y.dismissible!==!1,us=y.className||"",oa=y.descriptionClassName||"",cn=J.useMemo(()=>H.findIndex(xe=>xe.toastId===y.id)||0,[H,y.id]),Nr=J.useMemo(()=>{var xe;return(xe=y.closeButton)!=null?xe:W},[y.closeButton,W]),aa=J.useMemo(()=>y.duration||ie||Ph,[y.duration,ie]),cs=J.useRef(0),kn=J.useRef(0),ia=J.useRef(0),dn=J.useRef(null),[ao,io]=fe.split("-"),ds=J.useMemo(()=>H.reduce((xe,Re,Ae)=>Ae>=cn?xe:xe+Re.height,0),[H,cn]),fs=U0(),$n=y.invert||P,fn=mt==="loading";kn.current=J.useMemo(()=>cn*be+ds,[cn,ds]),J.useEffect(()=>{At.current=aa},[aa]),J.useEffect(()=>{je(!0)},[]),J.useEffect(()=>{let xe=ln.current;if(xe){let Re=xe.getBoundingClientRect().height;return Wn(Re),M(Ae=>[{toastId:y.id,height:Re,position:y.position},...Ae]),()=>M(Ae=>Ae.filter(gt=>gt.toastId!==y.id))}},[M,y.id]),J.useLayoutEffect(()=>{if(!ge)return;let xe=ln.current,Re=xe.style.height;xe.style.height="auto";let Ae=xe.getBoundingClientRect().height;xe.style.height=Re,Wn(Ae),M(gt=>gt.find(St=>St.toastId===y.id)?gt.map(St=>St.toastId===y.id?{...St,height:Ae}:St):[{toastId:y.id,height:Ae,position:y.position},...gt])},[ge,y.title,y.description,M,y.id]);let Ht=J.useCallback(()=>{tt(!0),is(kn.current),M(xe=>xe.filter(Re=>Re.toastId!==y.id)),setTimeout(()=>{ne(y)},ex)},[y,ne,M,kn]);J.useEffect(()=>{if(y.promise&&mt==="loading"||y.duration===1/0||y.type==="loading")return;let xe;return te||x||z&&fs?(()=>{if(ia.current<cs.current){let Re=new Date().getTime()-cs.current;At.current=At.current-Re}ia.current=new Date().getTime()})():At.current!==1/0&&(cs.current=new Date().getTime(),xe=setTimeout(()=>{var Re;(Re=y.onAutoClose)==null||Re.call(y,y),Ht()},At.current)),()=>clearTimeout(xe)},[te,x,y,mt,z,fs,Ht]),J.useEffect(()=>{y.delete&&Ht()},[Ht,y.delete]);function la(){var xe,Re,Ae;return Y!=null&&Y.loading?J.createElement("div",{className:nn(Q==null?void 0:Q.loader,(xe=y==null?void 0:y.classNames)==null?void 0:xe.loader,"sonner-loader"),"data-visible":mt==="loading"},Y.loading):we?J.createElement("div",{className:nn(Q==null?void 0:Q.loader,(Re=y==null?void 0:y.classNames)==null?void 0:Re.loader,"sonner-loader"),"data-visible":mt==="loading"},we):J.createElement(z0,{className:nn(Q==null?void 0:Q.loader,(Ae=y==null?void 0:y.classNames)==null?void 0:Ae.loader),visible:mt==="loading"})}return J.createElement("li",{tabIndex:0,ref:ln,className:nn(O,us,Q==null?void 0:Q.toast,(s=y==null?void 0:y.classNames)==null?void 0:s.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[mt],(a=y==null?void 0:y.classNames)==null?void 0:a[mt]),"data-sonner-toast":"","data-rich-colors":(l=y.richColors)!=null?l:K,"data-styled":!(y.jsx||y.unstyled||A),"data-mounted":ge,"data-promise":!!y.promise,"data-swiped":na,"data-removed":Ie,"data-visible":sa,"data-y-position":ao,"data-x-position":io,"data-index":U,"data-front":ra,"data-swiping":an,"data-dismissible":un,"data-type":mt,"data-invert":$n,"data-swipe-out":Er,"data-swipe-direction":ye,"data-expanded":!!(te||Z&&ge),style:{"--index":U,"--toasts-before":U,"--z-index":L.length-U,"--offset":`${Ie?so:kn.current}px`,"--initial-height":Z?"auto":`${oo}px`,...D,...y.style},onDragEnd:()=>{as(!1),ce(null),dn.current=null},onPointerDown:xe=>{fn||!un||(ls.current=new Date,is(kn.current),xe.target.setPointerCapture(xe.pointerId),xe.target.tagName!=="BUTTON"&&(as(!0),dn.current={x:xe.clientX,y:xe.clientY}))},onPointerUp:()=>{var xe,Re,Ae,gt;if(Er||!un)return;dn.current=null;let St=Number(((xe=ln.current)==null?void 0:xe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),bt=Number(((Re=ln.current)==null?void 0:Re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Kt=new Date().getTime()-((Ae=ls.current)==null?void 0:Ae.getTime()),at=oe==="x"?St:bt,hn=Math.abs(at)/Kt;if(Math.abs(at)>=J0||hn>.11){is(kn.current),(gt=y.onDismiss)==null||gt.call(y,y),Ce(oe==="x"?St>0?"right":"left":bt>0?"down":"up"),Ht(),no(!0),ro(!1);return}as(!1),ce(null)},onPointerMove:xe=>{var Re,Ae,gt,St;if(!dn.current||!un||((Re=window.getSelection())==null?void 0:Re.toString().length)>0)return;let bt=xe.clientY-dn.current.y,Kt=xe.clientX-dn.current.x,at=(Ae=r.swipeDirections)!=null?Ae:tx(fe);!oe&&(Math.abs(Kt)>1||Math.abs(bt)>1)&&ce(Math.abs(Kt)>Math.abs(bt)?"x":"y");let hn={x:0,y:0};oe==="y"?(at.includes("top")||at.includes("bottom"))&&(at.includes("top")&&bt<0||at.includes("bottom")&&bt>0)&&(hn.y=bt):oe==="x"&&(at.includes("left")||at.includes("right"))&&(at.includes("left")&&Kt<0||at.includes("right")&&Kt>0)&&(hn.x=Kt),(Math.abs(hn.x)>0||Math.abs(hn.y)>0)&&ro(!0),(gt=ln.current)==null||gt.style.setProperty("--swipe-amount-x",`${hn.x}px`),(St=ln.current)==null||St.style.setProperty("--swipe-amount-y",`${hn.y}px`)}},Nr&&!y.jsx?J.createElement("button",{"aria-label":j,"data-disabled":fn,"data-close-button":!0,onClick:fn||!un?()=>{}:()=>{var xe;Ht(),(xe=y.onDismiss)==null||xe.call(y,y)},className:nn(Q==null?void 0:Q.closeButton,(c=y==null?void 0:y.classNames)==null?void 0:c.closeButton)},(f=Y==null?void 0:Y.close)!=null?f:F0):null,y.jsx||b.isValidElement(y.title)?y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title:J.createElement(J.Fragment,null,mt||y.icon||y.promise?J.createElement("div",{"data-icon":"",className:nn(Q==null?void 0:Q.icon,(m=y==null?void 0:y.classNames)==null?void 0:m.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||la():null,y.type!=="loading"?y.icon||(Y==null?void 0:Y[mt])||I0(mt):null):null,J.createElement("div",{"data-content":"",className:nn(Q==null?void 0:Q.content,(p=y==null?void 0:y.classNames)==null?void 0:p.content)},J.createElement("div",{"data-title":"",className:nn(Q==null?void 0:Q.title,(S=y==null?void 0:y.classNames)==null?void 0:S.title)},typeof y.title=="function"?y.title():y.title),y.description?J.createElement("div",{"data-description":"",className:nn(se,oa,Q==null?void 0:Q.description,(g=y==null?void 0:y.classNames)==null?void 0:g.description)},typeof y.description=="function"?y.description():y.description):null),b.isValidElement(y.cancel)?y.cancel:y.cancel&&wi(y.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||X,onClick:xe=>{var Re,Ae;wi(y.cancel)&&un&&((Ae=(Re=y.cancel).onClick)==null||Ae.call(Re,xe),Ht())},className:nn(Q==null?void 0:Q.cancelButton,(C=y==null?void 0:y.classNames)==null?void 0:C.cancelButton)},y.cancel.label):null,b.isValidElement(y.action)?y.action:y.action&&wi(y.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||_,onClick:xe=>{var Re,Ae;wi(y.action)&&((Ae=(Re=y.action).onClick)==null||Ae.call(Re,xe),!xe.defaultPrevented&&Ht())},className:nn(Q==null?void 0:Q.actionButton,(N=y==null?void 0:y.classNames)==null?void 0:N.actionButton)},y.action.label):null))};function Mh(){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 rx(r,s){let a={};return[r,s].forEach((l,c)=>{let f=c===1,m=f?"--mobile-offset":"--offset",p=f?Y0:G0;function S(g){["top","right","bottom","left"].forEach(C=>{a[`${m}-${C}`]=typeof g=="number"?`${g}px`:g})}typeof l=="number"||typeof l=="string"?S(l):typeof l=="object"?["top","right","bottom","left"].forEach(g=>{l[g]===void 0?a[`${m}-${g}`]=p:a[`${m}-${g}`]=typeof l[g]=="number"?`${l[g]}px`:l[g]}):S(p)}),a}var sx=b.forwardRef(function(r,s){let{invert:a,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:f,closeButton:m,className:p,offset:S,mobileOffset:g,theme:C="light",richColors:N,duration:P,style:y,visibleToasts:A=q0,toastOptions:x,dir:M=Mh(),gap:F=Z0,loadingIcon:H,icons:U,containerAriaLabel:L="Notifications",pauseWhenPageIsHidden:te}=r,[ne,K]=J.useState([]),W=J.useMemo(()=>Array.from(new Set([l].concat(ne.filter(z=>z.position).map(z=>z.position)))),[ne,l]),[D,X]=J.useState([]),[_,O]=J.useState(!1),[se,ie]=J.useState(!1),[fe,be]=J.useState(C!=="system"?C:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),we=J.useRef(null),Z=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=J.useRef(null),Y=J.useRef(!1),j=J.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 J.useEffect(()=>Rt.subscribe(z=>{if(z.dismiss){K(oe=>oe.map(ce=>ce.id===z.id?{...ce,delete:!0}:ce));return}setTimeout(()=>{Dp.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]})})})}),[]),J.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]),J.useEffect(()=>{ne.length<=1&&O(!1)},[ne]),J.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]),J.useEffect(()=>{if(we.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,Y.current=!1)}},[we.current]),J.createElement("section",{ref:s,"aria-label":`${L} ${Z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},W.map((z,oe)=>{var ce;let[ye,Ce]=z.split("-");return ne.length?J.createElement("ol",{key:z,dir:M==="auto"?Mh():M,tabIndex:-1,ref:we,className:p,"data-sonner-toaster":!0,"data-theme":fe,"data-y-position":ye,"data-lifted":_&&ne.length>1&&!f,"data-x-position":Ce,style:{"--front-toast-height":`${((ce=D[0])==null?void 0:ce.height)||0}px`,"--width":`${X0}px`,"--gap":`${F}px`,...y,...rx(S,g)},onBlur:ge=>{Y.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(Y.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,Q.current=ge.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{se||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,je)=>{var Ie,tt;return J.createElement(nx,{key:ge.id,icons:U,index:je,toast:ge,defaultRichColors:N,duration:(Ie=x==null?void 0:x.duration)!=null?Ie:P,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:a,visibleToasts:A,closeButton:(tt=x==null?void 0:x.closeButton)!=null?tt:m,interacting:se,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:j,toasts:ne.filter(an=>an.position==ge.position),heights:D.filter(an=>an.position==ge.position),setHeights:X,expandByDefault:f,gap:F,loadingIcon:H,expanded:_,pauseWhenPageIsHidden:te,swipeDirections:r.swipeDirections})})):null}))});const Th={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 G(r,s="en"){var a,l;return((a=Th[r])==null?void 0:a[s])||((l=Th[r])==null?void 0:l.en)||r}function eo(){return ta({queryKey:["config"],queryFn:w0,staleTime:3e4,refetchOnWindowFocus:!0})}function hc(){return ta({queryKey:["config-meta"],queryFn:S0,staleTime:1/0})}function to(){return ta({queryKey:["config-schema"],queryFn:b0,staleTime:1/0})}function ox(){const r=Cr();return rs({mutationFn:k0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),et.success(G("configSaved"))},onError:s=>{et.error(G("configSaveFailed")+": "+s.message)}})}function ax(){const r=Cr();return rs({mutationFn:({provider:s,data:a})=>C0(s,a),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),et.success(G("configSaved"))},onError:s=>{et.error(G("configSaveFailed")+": "+s.message)}})}function ix(){const r=Cr();return rs({mutationFn:({channel:s,data:a})=>E0(s,a),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),et.success(G("configSavedApplied"))},onError:s=>{et.error(G("configSaveFailed")+": "+s.message)}})}function lx(){const r=Cr();return rs({mutationFn:({data:s})=>N0(s),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),et.success(G("configSavedApplied"))},onError:s=>{et.error(G("configSaveFailed")+": "+s.message)}})}function ux(){return rs({mutationFn:({actionId:r,data:s})=>j0(r,s),onError:r=>{et.error(G("error")+": "+r.message)}})}function cx(r){return ta({queryKey:["sessions",r],queryFn:()=>P0(r),staleTime:1e4})}function dx(r,s=200){return ta({queryKey:["session-history",r,s],queryFn:()=>M0(r,s),enabled:!!r,staleTime:5e3})}function fx(){const r=Cr();return rs({mutationFn:({key:s,data:a})=>T0(s,a),onSuccess:(s,a)=>{r.invalidateQueries({queryKey:["sessions"]}),r.invalidateQueries({queryKey:["session-history",a.key]}),et.success(G("configSavedApplied"))},onError:s=>{et.error(G("configSaveFailed")+": "+s.message)}})}function hx(){const r=Cr();return rs({mutationFn:({key:s})=>R0(s),onSuccess:()=>{r.invalidateQueries({queryKey:["sessions"]}),r.invalidateQueries({queryKey:["session-history"]}),et.success(G("configSavedApplied"))},onError:s=>{et.error(G("configSaveFailed")+": "+s.message)}})}function px(r){return Array.isArray(r)?r.filter(s=>typeof s=="string").join("."):r}function ut(r,s){if(!s)return;const a=px(r),l=s[a];if(l)return l;const c=a.split(".");for(const[f,m]of Object.entries(s)){if(!f.includes("*"))continue;const p=f.split(".");if(p.length!==c.length)continue;let S=!0;for(let g=0;g<c.length;g+=1)if(p[g]!=="*"&&p[g]!==c[g]){S=!1;break}if(S)return m}}function Rh(){const{data:r,isLoading:s}=eo(),{data:a}=to(),l=ox(),[c,f]=b.useState(""),[m,p]=b.useState(""),[S,g]=b.useState(8192),C=a==null?void 0:a.uiHints,N=ut("agents.defaults.model",C),P=ut("agents.defaults.workspace",C),y=ut("agents.defaults.maxTokens",C);b.useEffect(()=>{var x;(x=r==null?void 0:r.agents)!=null&&x.defaults&&(f(r.agents.defaults.model||""),p(r.agents.defaults.workspace||""),g(r.agents.defaults.maxTokens||8192))},[r]);const A=x=>{x.preventDefault(),l.mutate({model:c})};return s?d.jsxs("div",{className:"max-w-2xl space-y-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(tn,{className:"h-8 w-32"}),d.jsx(tn,{className:"h-4 w-48"})]}),d.jsxs(Fn,{className:"rounded-2xl border-gray-200 p-6",children:[d.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[d.jsx(tn,{className:"h-12 w-12 rounded-xl"}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(tn,{className:"h-5 w-24"}),d.jsx(tn,{className:"h-3 w-32"})]})]}),d.jsx(tn,{className:"h-4 w-20 mb-2"}),d.jsx(tn,{className:"h-10 w-full rounded-xl"})]}),d.jsxs(Fn,{className:"rounded-2xl border-gray-200 p-6",children:[d.jsx(tn,{className:"h-5 w-24 mb-2"}),d.jsx(tn,{className:"h-3 w-40 mb-6"}),d.jsx("div",{className:"space-y-6",children:d.jsxs("div",{children:[d.jsx(tn,{className:"h-4 w-28 mb-3"}),d.jsx(tn,{className:"h-2 w-full rounded-full"})]})})]})]}):d.jsxs("div",{className:"max-w-4xl animate-fade-in pb-20",children:[d.jsxs("div",{className:"mb-10",children:[d.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Model Configuration"}),d.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Configure default AI model and runtime limits"})]}),d.jsxs("form",{onSubmit:A,className:"space-y-8",children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[d.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[d.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[d.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:d.jsx(zp,{className:"h-5 w-5"})}),d.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Default Model"})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ln,{htmlFor:"model",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(N==null?void 0:N.label)??"Model Name"}),d.jsx(De,{id:"model",value:c,onChange:x=>f(x.target.value),placeholder:(N==null?void 0:N.placeholder)??"minimax/MiniMax-M2.1",className:"h-12 px-4 rounded-xl"}),d.jsx("p",{className:"text-xs text-gray-400",children:(N==null?void 0:N.help)??"Examples: minimax/MiniMax-M2.5 · minimax/MiniMax-M2.1 · openrouter/anthropic/claude-3.5-sonnet · openrouter/openai/gpt-4o-mini"})]})]}),d.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[d.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[d.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:d.jsx(n0,{className:"h-5 w-5"})}),d.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Workspace"})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ln,{htmlFor:"workspace",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(P==null?void 0:P.label)??"Default Path"}),d.jsx(De,{id:"workspace",value:m,onChange:x=>p(x.target.value),placeholder:(P==null?void 0:P.placeholder)??"/path/to/workspace",className:"h-12 px-4 rounded-xl"})]})]})]}),d.jsxs("div",{className:"p-8 rounded-2xl bg-white border border-gray-200 shadow-card",children:[d.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[d.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:d.jsx(c0,{className:"h-5 w-5"})}),d.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Generation Parameters"})]}),d.jsx("div",{className:"grid grid-cols-1 gap-12",children:d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex justify-between items-center mb-2",children:[d.jsx(Ln,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(y==null?void 0:y.label)??"Max Tokens"}),d.jsx("span",{className:"text-sm font-semibold text-gray-900",children:S.toLocaleString()})]}),d.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:S,onChange:x=>g(parseInt(x.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]})})]}),d.jsx("div",{className:"flex justify-end pt-4",children:d.jsx(Ye,{type:"submit",disabled:l.isPending,size:"lg",children:l.isPending?d.jsx(o0,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function kr(r,s,{checkForDefaultPrevented:a=!0}={}){return function(c){if(r==null||r(c),a===!1||!c.defaultPrevented)return s==null?void 0:s(c)}}function Ih(r,s){if(typeof r=="function")return r(s);r!=null&&(r.current=s)}function Lp(...r){return s=>{let a=!1;const l=r.map(c=>{const f=Ih(c,s);return!a&&typeof f=="function"&&(a=!0),f});if(a)return()=>{for(let c=0;c<l.length;c++){const f=l[c];typeof f=="function"?f():Ih(r[c],null)}}}}function os(...r){return b.useCallback(Lp(...r),r)}function mx(r,s){const a=b.createContext(s),l=f=>{const{children:m,...p}=f,S=b.useMemo(()=>p,Object.values(p));return d.jsx(a.Provider,{value:S,children:m})};l.displayName=r+"Provider";function c(f){const m=b.useContext(a);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${r}\``)}return[l,c]}function gx(r,s=[]){let a=[];function l(f,m){const p=b.createContext(m),S=a.length;a=[...a,m];const g=N=>{var F;const{scope:P,children:y,...A}=N,x=((F=P==null?void 0:P[r])==null?void 0:F[S])||p,M=b.useMemo(()=>A,Object.values(A));return d.jsx(x.Provider,{value:M,children:y})};g.displayName=f+"Provider";function C(N,P){var x;const y=((x=P==null?void 0:P[r])==null?void 0:x[S])||p,A=b.useContext(y);if(A)return A;if(m!==void 0)return m;throw new Error(`\`${N}\` must be used within \`${f}\``)}return[g,C]}const c=()=>{const f=a.map(m=>b.createContext(m));return function(p){const S=(p==null?void 0:p[r])||f;return b.useMemo(()=>({[`__scope${r}`]:{...p,[r]:S}}),[p,S])}};return c.scopeName=r,[l,yx(c,...s)]}function yx(...r){const s=r[0];if(r.length===1)return s;const a=()=>{const l=r.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const m=l.reduce((p,{useScope:S,scopeName:g})=>{const N=S(f)[`__scope${g}`];return{...p,...N}},{});return b.useMemo(()=>({[`__scope${s.scopeName}`]:m}),[m])}};return a.scopeName=s.scopeName,a}var qo=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},vx=up[" useId ".trim().toString()]||(()=>{}),xx=0;function Pu(r){const[s,a]=b.useState(vx());return qo(()=>{a(l=>l??String(xx++))},[r]),r||(s?`radix-${s}`:"")}var wx=up[" useInsertionEffect ".trim().toString()]||qo;function Sx({prop:r,defaultProp:s,onChange:a=()=>{},caller:l}){const[c,f,m]=bx({defaultProp:s,onChange:a}),p=r!==void 0,S=p?r:c;{const C=b.useRef(r!==void 0);b.useEffect(()=>{const N=C.current;N!==p&&console.warn(`${l} is changing from ${N?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),C.current=p},[p,l])}const g=b.useCallback(C=>{var N;if(p){const P=kx(C)?C(r):C;P!==r&&((N=m.current)==null||N.call(m,P))}else f(C)},[p,r,f,m]);return[S,g]}function bx({defaultProp:r,onChange:s}){const[a,l]=b.useState(r),c=b.useRef(a),f=b.useRef(s);return wx(()=>{f.current=s},[s]),b.useEffect(()=>{var m;c.current!==a&&((m=f.current)==null||m.call(f,a),c.current=a)},[a,c]),[a,l,f]}function kx(r){return typeof r=="function"}function Fp(r){const s=Cx(r),a=b.forwardRef((l,c)=>{const{children:f,...m}=l,p=b.Children.toArray(f),S=p.find(Nx);if(S){const g=S.props.children,C=p.map(N=>N===S?b.Children.count(g)>1?b.Children.only(null):b.isValidElement(g)?g.props.children:null:N);return d.jsx(s,{...m,ref:c,children:b.isValidElement(g)?b.cloneElement(g,void 0,C):null})}return d.jsx(s,{...m,ref:c,children:f})});return a.displayName=`${r}.Slot`,a}function Cx(r){const s=b.forwardRef((a,l)=>{const{children:c,...f}=a;if(b.isValidElement(c)){const m=Px(c),p=jx(f,c.props);return c.type!==b.Fragment&&(p.ref=l?Lp(l,m):m),b.cloneElement(c,p)}return b.Children.count(c)>1?b.Children.only(null):null});return s.displayName=`${r}.SlotClone`,s}var Ex=Symbol("radix.slottable");function Nx(r){return b.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Ex}function jx(r,s){const a={...s};for(const l in s){const c=r[l],f=s[l];/^on[A-Z]/.test(l)?c&&f?a[l]=(...p)=>{const S=f(...p);return c(...p),S}:c&&(a[l]=c):l==="style"?a[l]={...c,...f}:l==="className"&&(a[l]=[c,f].filter(Boolean).join(" "))}return{...r,...a}}function Px(r){var l,c;let s=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,a=s&&"isReactWarning"in s&&s.isReactWarning;return a?r.ref:(s=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,a=s&&"isReactWarning"in s&&s.isReactWarning,a?r.props.ref:r.props.ref||r.ref)}var Mx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bn=Mx.reduce((r,s)=>{const a=Fp(`Primitive.${s}`),l=b.forwardRef((c,f)=>{const{asChild:m,...p}=c,S=m?a:s;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(S,{...p,ref:f})});return l.displayName=`Primitive.${s}`,{...r,[s]:l}},{});function Tx(r,s){r&&Ap.flushSync(()=>r.dispatchEvent(s))}function Go(r){const s=b.useRef(r);return b.useEffect(()=>{s.current=r}),b.useMemo(()=>(...a)=>{var l;return(l=s.current)==null?void 0:l.call(s,...a)},[])}function Rx(r,s=globalThis==null?void 0:globalThis.document){const a=Go(r);b.useEffect(()=>{const l=c=>{c.key==="Escape"&&a(c)};return s.addEventListener("keydown",l,{capture:!0}),()=>s.removeEventListener("keydown",l,{capture:!0})},[a,s])}var Ix="DismissableLayer",tc="dismissableLayer.update",Ox="dismissableLayer.pointerDownOutside",zx="dismissableLayer.focusOutside",Oh,Up=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bp=b.forwardRef((r,s)=>{const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:m,onDismiss:p,...S}=r,g=b.useContext(Up),[C,N]=b.useState(null),P=(C==null?void 0:C.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=b.useState({}),A=os(s,K=>N(K)),x=Array.from(g.layers),[M]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),F=x.indexOf(M),H=C?x.indexOf(C):-1,U=g.layersWithOutsidePointerEventsDisabled.size>0,L=H>=F,te=Dx(K=>{const W=K.target,D=[...g.branches].some(X=>X.contains(W));!L||D||(c==null||c(K),m==null||m(K),K.defaultPrevented||p==null||p())},P),ne=Lx(K=>{const W=K.target;[...g.branches].some(X=>X.contains(W))||(f==null||f(K),m==null||m(K),K.defaultPrevented||p==null||p())},P);return Rx(K=>{H===g.layers.size-1&&(l==null||l(K),!K.defaultPrevented&&p&&(K.preventDefault(),p()))},P),b.useEffect(()=>{if(C)return a&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Oh=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(C)),g.layers.add(C),zh(),()=>{a&&g.layersWithOutsidePointerEventsDisabled.size===1&&(P.body.style.pointerEvents=Oh)}},[C,P,a,g]),b.useEffect(()=>()=>{C&&(g.layers.delete(C),g.layersWithOutsidePointerEventsDisabled.delete(C),zh())},[C,g]),b.useEffect(()=>{const K=()=>y({});return document.addEventListener(tc,K),()=>document.removeEventListener(tc,K)},[]),d.jsx(Bn.div,{...S,ref:A,style:{pointerEvents:U?L?"auto":"none":void 0,...r.style},onFocusCapture:kr(r.onFocusCapture,ne.onFocusCapture),onBlurCapture:kr(r.onBlurCapture,ne.onBlurCapture),onPointerDownCapture:kr(r.onPointerDownCapture,te.onPointerDownCapture)})});Bp.displayName=Ix;var _x="DismissableLayerBranch",Ax=b.forwardRef((r,s)=>{const a=b.useContext(Up),l=b.useRef(null),c=os(s,l);return b.useEffect(()=>{const f=l.current;if(f)return a.branches.add(f),()=>{a.branches.delete(f)}},[a.branches]),d.jsx(Bn.div,{...r,ref:c})});Ax.displayName=_x;function Dx(r,s=globalThis==null?void 0:globalThis.document){const a=Go(r),l=b.useRef(!1),c=b.useRef(()=>{});return b.useEffect(()=>{const f=p=>{if(p.target&&!l.current){let S=function(){Wp(Ox,a,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(s.removeEventListener("click",c.current),c.current=S,s.addEventListener("click",c.current,{once:!0})):S()}else s.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{s.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(m),s.removeEventListener("pointerdown",f),s.removeEventListener("click",c.current)}},[s,a]),{onPointerDownCapture:()=>l.current=!0}}function Lx(r,s=globalThis==null?void 0:globalThis.document){const a=Go(r),l=b.useRef(!1);return b.useEffect(()=>{const c=f=>{f.target&&!l.current&&Wp(zx,a,{originalEvent:f},{discrete:!1})};return s.addEventListener("focusin",c),()=>s.removeEventListener("focusin",c)},[s,a]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function zh(){const r=new CustomEvent(tc);document.dispatchEvent(r)}function Wp(r,s,a,{discrete:l}){const c=a.originalEvent.target,f=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:a});s&&c.addEventListener(r,s,{once:!0}),l?Tx(c,f):c.dispatchEvent(f)}var Mu="focusScope.autoFocusOnMount",Tu="focusScope.autoFocusOnUnmount",_h={bubbles:!1,cancelable:!0},Fx="FocusScope",$p=b.forwardRef((r,s)=>{const{loop:a=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:f,...m}=r,[p,S]=b.useState(null),g=Go(c),C=Go(f),N=b.useRef(null),P=os(s,x=>S(x)),y=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(l){let x=function(U){if(y.paused||!p)return;const L=U.target;p.contains(L)?N.current=L:fr(N.current,{select:!0})},M=function(U){if(y.paused||!p)return;const L=U.relatedTarget;L!==null&&(p.contains(L)||fr(N.current,{select:!0}))},F=function(U){if(document.activeElement===document.body)for(const te of U)te.removedNodes.length>0&&fr(p)};document.addEventListener("focusin",x),document.addEventListener("focusout",M);const H=new MutationObserver(F);return p&&H.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",M),H.disconnect()}}},[l,p,y.paused]),b.useEffect(()=>{if(p){Dh.add(y);const x=document.activeElement;if(!p.contains(x)){const F=new CustomEvent(Mu,_h);p.addEventListener(Mu,g),p.dispatchEvent(F),F.defaultPrevented||(Ux(Qx(Vp(p)),{select:!0}),document.activeElement===x&&fr(p))}return()=>{p.removeEventListener(Mu,g),setTimeout(()=>{const F=new CustomEvent(Tu,_h);p.addEventListener(Tu,C),p.dispatchEvent(F),F.defaultPrevented||fr(x??document.body,{select:!0}),p.removeEventListener(Tu,C),Dh.remove(y)},0)}}},[p,g,C,y]);const A=b.useCallback(x=>{if(!a&&!l||y.paused)return;const M=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,F=document.activeElement;if(M&&F){const H=x.currentTarget,[U,L]=Bx(H);U&&L?!x.shiftKey&&F===L?(x.preventDefault(),a&&fr(U,{select:!0})):x.shiftKey&&F===U&&(x.preventDefault(),a&&fr(L,{select:!0})):F===H&&x.preventDefault()}},[a,l,y.paused]);return d.jsx(Bn.div,{tabIndex:-1,...m,ref:P,onKeyDown:A})});$p.displayName=Fx;function Ux(r,{select:s=!1}={}){const a=document.activeElement;for(const l of r)if(fr(l,{select:s}),document.activeElement!==a)return}function Bx(r){const s=Vp(r),a=Ah(s,r),l=Ah(s.reverse(),r);return[a,l]}function Vp(r){const s=[],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();)s.push(a.currentNode);return s}function Ah(r,s){for(const a of r)if(!Wx(a,{upTo:s}))return a}function Wx(r,{upTo:s}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(s!==void 0&&r===s)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function $x(r){return r instanceof HTMLInputElement&&"select"in r}function fr(r,{select:s=!1}={}){if(r&&r.focus){const a=document.activeElement;r.focus({preventScroll:!0}),r!==a&&$x(r)&&s&&r.select()}}var Dh=Vx();function Vx(){let r=[];return{add(s){const a=r[0];s!==a&&(a==null||a.pause()),r=Lh(r,s),r.unshift(s)},remove(s){var a;r=Lh(r,s),(a=r[0])==null||a.resume()}}}function Lh(r,s){const a=[...r],l=a.indexOf(s);return l!==-1&&a.splice(l,1),a}function Qx(r){return r.filter(s=>s.tagName!=="A")}var Hx="Portal",Qp=b.forwardRef((r,s)=>{var p;const{container:a,...l}=r,[c,f]=b.useState(!1);qo(()=>f(!0),[]);const m=a||c&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?Dp.createPortal(d.jsx(Bn.div,{...l,ref:s}),m):null});Qp.displayName=Hx;function Kx(r,s){return b.useReducer((a,l)=>s[a][l]??a,r)}var Di=r=>{const{present:s,children:a}=r,l=qx(s),c=typeof a=="function"?a({present:l.isPresent}):b.Children.only(a),f=os(l.ref,Gx(c));return typeof a=="function"||l.isPresent?b.cloneElement(c,{ref:f}):null};Di.displayName="Presence";function qx(r){const[s,a]=b.useState(),l=b.useRef(null),c=b.useRef(r),f=b.useRef("none"),m=r?"mounted":"unmounted",[p,S]=Kx(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const g=Si(l.current);f.current=p==="mounted"?g:"none"},[p]),qo(()=>{const g=l.current,C=c.current;if(C!==r){const P=f.current,y=Si(g);r?S("MOUNT"):y==="none"||(g==null?void 0:g.display)==="none"?S("UNMOUNT"):S(C&&P!==y?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,S]),qo(()=>{if(s){let g;const C=s.ownerDocument.defaultView??window,N=y=>{const x=Si(l.current).includes(CSS.escape(y.animationName));if(y.target===s&&x&&(S("ANIMATION_END"),!c.current)){const M=s.style.animationFillMode;s.style.animationFillMode="forwards",g=C.setTimeout(()=>{s.style.animationFillMode==="forwards"&&(s.style.animationFillMode=M)})}},P=y=>{y.target===s&&(f.current=Si(l.current))};return s.addEventListener("animationstart",P),s.addEventListener("animationcancel",N),s.addEventListener("animationend",N),()=>{C.clearTimeout(g),s.removeEventListener("animationstart",P),s.removeEventListener("animationcancel",N),s.removeEventListener("animationend",N)}}else S("ANIMATION_END")},[s,S]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:b.useCallback(g=>{l.current=g?getComputedStyle(g):null,a(g)},[])}}function Si(r){return(r==null?void 0:r.animationName)||"none"}function Gx(r){var l,c;let s=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,a=s&&"isReactWarning"in s&&s.isReactWarning;return a?r.ref:(s=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,a=s&&"isReactWarning"in s&&s.isReactWarning,a?r.props.ref:r.props.ref||r.ref)}var Ru=0;function Yx(){b.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Fh()),document.body.insertAdjacentElement("beforeend",r[1]??Fh()),Ru++,()=>{Ru===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),Ru--}},[])}function Fh(){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 bn=function(){return bn=Object.assign||function(s){for(var a,l=1,c=arguments.length;l<c;l++){a=arguments[l];for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(s[f]=a[f])}return s},bn.apply(this,arguments)};function Hp(r,s){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&s.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++)s.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(r,l[c])&&(a[l[c]]=r[l[c]]);return a}function Xx(r,s,a){if(a||arguments.length===2)for(var l=0,c=s.length,f;l<c;l++)(f||!(l in s))&&(f||(f=Array.prototype.slice.call(s,0,l)),f[l]=s[l]);return r.concat(f||Array.prototype.slice.call(s))}var Mi="right-scroll-bar-position",Ti="width-before-scroll-bar",Zx="with-scroll-bars-hidden",Jx="--removed-body-scroll-bar-size";function Iu(r,s){return typeof r=="function"?r(s):r&&(r.current=s),r}function e1(r,s){var a=b.useState(function(){return{value:r,callback:s,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=s,a.facade}var t1=typeof window<"u"?b.useLayoutEffect:b.useEffect,Uh=new WeakMap;function n1(r,s){var a=e1(null,function(l){return r.forEach(function(c){return Iu(c,l)})});return t1(function(){var l=Uh.get(a);if(l){var c=new Set(l),f=new Set(r),m=a.current;c.forEach(function(p){f.has(p)||Iu(p,null)}),f.forEach(function(p){c.has(p)||Iu(p,m)})}Uh.set(a,r)},[r]),a}function r1(r){return r}function s1(r,s){s===void 0&&(s=r1);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(f){var m=s(f,l);return a.push(m),function(){a=a.filter(function(p){return p!==m})}},assignSyncMedium:function(f){for(l=!0;a.length;){var m=a;a=[],m.forEach(f)}a={push:function(p){return f(p)},filter:function(){return a}}},assignMedium:function(f){l=!0;var m=[];if(a.length){var p=a;a=[],p.forEach(f),m=a}var S=function(){var C=m;m=[],C.forEach(f)},g=function(){return Promise.resolve().then(S)};g(),a={push:function(C){m.push(C),g()},filter:function(C){return m=m.filter(C),a}}}};return c}function o1(r){r===void 0&&(r={});var s=s1(null);return s.options=bn({async:!0,ssr:!1},r),s}var Kp=function(r){var s=r.sideCar,a=Hp(r,["sideCar"]);if(!s)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=s.read();if(!l)throw new Error("Sidecar medium not found");return b.createElement(l,bn({},a))};Kp.isSideCarExport=!0;function a1(r,s){return r.useMedium(s),Kp}var qp=o1(),Ou=function(){},Li=b.forwardRef(function(r,s){var a=b.useRef(null),l=b.useState({onScrollCapture:Ou,onWheelCapture:Ou,onTouchMoveCapture:Ou}),c=l[0],f=l[1],m=r.forwardProps,p=r.children,S=r.className,g=r.removeScrollBar,C=r.enabled,N=r.shards,P=r.sideCar,y=r.noRelative,A=r.noIsolation,x=r.inert,M=r.allowPinchZoom,F=r.as,H=F===void 0?"div":F,U=r.gapMode,L=Hp(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),te=P,ne=n1([a,s]),K=bn(bn({},L),c);return b.createElement(b.Fragment,null,C&&b.createElement(te,{sideCar:qp,removeScrollBar:g,shards:N,noRelative:y,noIsolation:A,inert:x,setCallbacks:f,allowPinchZoom:!!M,lockRef:a,gapMode:U}),m?b.cloneElement(b.Children.only(p),bn(bn({},K),{ref:ne})):b.createElement(H,bn({},K,{className:S,ref:ne}),p))});Li.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Li.classNames={fullWidth:Ti,zeroRight:Mi};var i1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function l1(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var s=i1();return s&&r.setAttribute("nonce",s),r}function u1(r,s){r.styleSheet?r.styleSheet.cssText=s:r.appendChild(document.createTextNode(s))}function c1(r){var s=document.head||document.getElementsByTagName("head")[0];s.appendChild(r)}var d1=function(){var r=0,s=null;return{add:function(a){r==0&&(s=l1())&&(u1(s,a),c1(s)),r++},remove:function(){r--,!r&&s&&(s.parentNode&&s.parentNode.removeChild(s),s=null)}}},f1=function(){var r=d1();return function(s,a){b.useEffect(function(){return r.add(s),function(){r.remove()}},[s&&a])}},Gp=function(){var r=f1(),s=function(a){var l=a.styles,c=a.dynamic;return r(l,c),null};return s},h1={left:0,top:0,right:0,gap:0},zu=function(r){return parseInt(r||"",10)||0},p1=function(r){var s=window.getComputedStyle(document.body),a=s[r==="padding"?"paddingLeft":"marginLeft"],l=s[r==="padding"?"paddingTop":"marginTop"],c=s[r==="padding"?"paddingRight":"marginRight"];return[zu(a),zu(l),zu(c)]},m1=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return h1;var s=p1(r),a=document.documentElement.clientWidth,l=window.innerWidth;return{left:s[0],top:s[1],right:s[2],gap:Math.max(0,l-a+s[2]-s[0])}},g1=Gp(),Fs="data-scroll-locked",y1=function(r,s,a,l){var c=r.left,f=r.top,m=r.right,p=r.gap;return a===void 0&&(a="margin"),`
|
|
212
|
+
.`.concat(Zx,` {
|
|
213
|
+
overflow: hidden `).concat(l,`;
|
|
214
|
+
padding-right: `).concat(p,"px ").concat(l,`;
|
|
215
|
+
}
|
|
216
|
+
body[`).concat(Fs,`] {
|
|
217
|
+
overflow: hidden `).concat(l,`;
|
|
218
|
+
overscroll-behavior: contain;
|
|
219
|
+
`).concat([s&&"position: relative ".concat(l,";"),a==="margin"&&`
|
|
220
|
+
padding-left: `.concat(c,`px;
|
|
221
|
+
padding-top: `).concat(f,`px;
|
|
222
|
+
padding-right: `).concat(m,`px;
|
|
223
|
+
margin-left:0;
|
|
224
|
+
margin-top:0;
|
|
225
|
+
margin-right: `).concat(p,"px ").concat(l,`;
|
|
226
|
+
`),a==="padding"&&"padding-right: ".concat(p,"px ").concat(l,";")].filter(Boolean).join(""),`
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.`).concat(Mi,` {
|
|
230
|
+
right: `).concat(p,"px ").concat(l,`;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.`).concat(Ti,` {
|
|
234
|
+
margin-right: `).concat(p,"px ").concat(l,`;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.`).concat(Mi," .").concat(Mi,` {
|
|
238
|
+
right: 0 `).concat(l,`;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.`).concat(Ti," .").concat(Ti,` {
|
|
242
|
+
margin-right: 0 `).concat(l,`;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
body[`).concat(Fs,`] {
|
|
246
|
+
`).concat(Jx,": ").concat(p,`px;
|
|
247
|
+
}
|
|
248
|
+
`)},Bh=function(){var r=parseInt(document.body.getAttribute(Fs)||"0",10);return isFinite(r)?r:0},v1=function(){b.useEffect(function(){return document.body.setAttribute(Fs,(Bh()+1).toString()),function(){var r=Bh()-1;r<=0?document.body.removeAttribute(Fs):document.body.setAttribute(Fs,r.toString())}},[])},x1=function(r){var s=r.noRelative,a=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;v1();var f=b.useMemo(function(){return m1(c)},[c]);return b.createElement(g1,{styles:y1(f,!s,c,a?"":"!important")})},nc=!1;if(typeof window<"u")try{var bi=Object.defineProperty({},"passive",{get:function(){return nc=!0,!0}});window.addEventListener("test",bi,bi),window.removeEventListener("test",bi,bi)}catch{nc=!1}var _s=nc?{passive:!1}:!1,w1=function(r){return r.tagName==="TEXTAREA"},Yp=function(r,s){if(!(r instanceof Element))return!1;var a=window.getComputedStyle(r);return a[s]!=="hidden"&&!(a.overflowY===a.overflowX&&!w1(r)&&a[s]==="visible")},S1=function(r){return Yp(r,"overflowY")},b1=function(r){return Yp(r,"overflowX")},Wh=function(r,s){var a=s.ownerDocument,l=s;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Xp(r,l);if(c){var f=Zp(r,l),m=f[1],p=f[2];if(m>p)return!0}l=l.parentNode}while(l&&l!==a.body);return!1},k1=function(r){var s=r.scrollTop,a=r.scrollHeight,l=r.clientHeight;return[s,a,l]},C1=function(r){var s=r.scrollLeft,a=r.scrollWidth,l=r.clientWidth;return[s,a,l]},Xp=function(r,s){return r==="v"?S1(s):b1(s)},Zp=function(r,s){return r==="v"?k1(s):C1(s)},E1=function(r,s){return r==="h"&&s==="rtl"?-1:1},N1=function(r,s,a,l,c){var f=E1(r,window.getComputedStyle(s).direction),m=f*l,p=a.target,S=s.contains(p),g=!1,C=m>0,N=0,P=0;do{if(!p)break;var y=Zp(r,p),A=y[0],x=y[1],M=y[2],F=x-M-f*A;(A||F)&&Xp(r,p)&&(N+=F,P+=A);var H=p.parentNode;p=H&&H.nodeType===Node.DOCUMENT_FRAGMENT_NODE?H.host:H}while(!S&&p!==document.body||S&&(s.contains(p)||s===p));return(C&&Math.abs(N)<1||!C&&Math.abs(P)<1)&&(g=!0),g},ki=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},$h=function(r){return[r.deltaX,r.deltaY]},Vh=function(r){return r&&"current"in r?r.current:r},j1=function(r,s){return r[0]===s[0]&&r[1]===s[1]},P1=function(r){return`
|
|
249
|
+
.block-interactivity-`.concat(r,` {pointer-events: none;}
|
|
250
|
+
.allow-interactivity-`).concat(r,` {pointer-events: all;}
|
|
251
|
+
`)},M1=0,As=[];function T1(r){var s=b.useRef([]),a=b.useRef([0,0]),l=b.useRef(),c=b.useState(M1++)[0],f=b.useState(Gp)[0],m=b.useRef(r);b.useEffect(function(){m.current=r},[r]),b.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var x=Xx([r.lockRef.current],(r.shards||[]).map(Vh),!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 p=b.useCallback(function(x,M){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!m.current.allowPinchZoom;var F=ki(x),H=a.current,U="deltaX"in x?x.deltaX:H[0]-F[0],L="deltaY"in x?x.deltaY:H[1]-F[1],te,ne=x.target,K=Math.abs(U)>Math.abs(L)?"h":"v";if("touches"in x&&K==="h"&&ne.type==="range")return!1;var W=window.getSelection(),D=W&&W.anchorNode,X=D?D===ne||D.contains(ne):!1;if(X)return!1;var _=Wh(K,ne);if(!_)return!0;if(_?te=K:(te=K==="v"?"h":"v",_=Wh(K,ne)),!_)return!1;if(!l.current&&"changedTouches"in x&&(U||L)&&(l.current=te),!te)return!0;var O=l.current||te;return N1(O,M,x,O==="h"?U:L)},[]),S=b.useCallback(function(x){var M=x;if(!(!As.length||As[As.length-1]!==f)){var F="deltaY"in M?$h(M):ki(M),H=s.current.filter(function(te){return te.name===M.type&&(te.target===M.target||M.target===te.shadowParent)&&j1(te.delta,F)})[0];if(H&&H.should){M.cancelable&&M.preventDefault();return}if(!H){var U=(m.current.shards||[]).map(Vh).filter(Boolean).filter(function(te){return te.contains(M.target)}),L=U.length>0?p(M,U[0]):!m.current.noIsolation;L&&M.cancelable&&M.preventDefault()}}},[]),g=b.useCallback(function(x,M,F,H){var U={name:x,delta:M,target:F,should:H,shadowParent:R1(F)};s.current.push(U),setTimeout(function(){s.current=s.current.filter(function(L){return L!==U})},1)},[]),C=b.useCallback(function(x){a.current=ki(x),l.current=void 0},[]),N=b.useCallback(function(x){g(x.type,$h(x),x.target,p(x,r.lockRef.current))},[]),P=b.useCallback(function(x){g(x.type,ki(x),x.target,p(x,r.lockRef.current))},[]);b.useEffect(function(){return As.push(f),r.setCallbacks({onScrollCapture:N,onWheelCapture:N,onTouchMoveCapture:P}),document.addEventListener("wheel",S,_s),document.addEventListener("touchmove",S,_s),document.addEventListener("touchstart",C,_s),function(){As=As.filter(function(x){return x!==f}),document.removeEventListener("wheel",S,_s),document.removeEventListener("touchmove",S,_s),document.removeEventListener("touchstart",C,_s)}},[]);var y=r.removeScrollBar,A=r.inert;return b.createElement(b.Fragment,null,A?b.createElement(f,{styles:P1(c)}):null,y?b.createElement(x1,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function R1(r){for(var s=null;r!==null;)r instanceof ShadowRoot&&(s=r.host,r=r.host),r=r.parentNode;return s}const I1=a1(qp,T1);var Jp=b.forwardRef(function(r,s){return b.createElement(Li,bn({},r,{ref:s,sideCar:I1}))});Jp.classNames=Li.classNames;var O1=function(r){if(typeof document>"u")return null;var s=Array.isArray(r)?r[0]:r;return s.ownerDocument.body},Ds=new WeakMap,Ci=new WeakMap,Ei={},_u=0,em=function(r){return r&&(r.host||em(r.parentNode))},z1=function(r,s){return s.map(function(a){if(r.contains(a))return a;var l=em(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})},_1=function(r,s,a,l){var c=z1(s,Array.isArray(r)?r:[r]);Ei[a]||(Ei[a]=new WeakMap);var f=Ei[a],m=[],p=new Set,S=new Set(c),g=function(N){!N||p.has(N)||(p.add(N),g(N.parentNode))};c.forEach(g);var C=function(N){!N||S.has(N)||Array.prototype.forEach.call(N.children,function(P){if(p.has(P))C(P);else try{var y=P.getAttribute(l),A=y!==null&&y!=="false",x=(Ds.get(P)||0)+1,M=(f.get(P)||0)+1;Ds.set(P,x),f.set(P,M),m.push(P),x===1&&A&&Ci.set(P,!0),M===1&&P.setAttribute(a,"true"),A||P.setAttribute(l,"true")}catch(F){console.error("aria-hidden: cannot operate on ",P,F)}})};return C(s),p.clear(),_u++,function(){m.forEach(function(N){var P=Ds.get(N)-1,y=f.get(N)-1;Ds.set(N,P),f.set(N,y),P||(Ci.has(N)||N.removeAttribute(l),Ci.delete(N)),y||N.removeAttribute(a)}),_u--,_u||(Ds=new WeakMap,Ds=new WeakMap,Ci=new WeakMap,Ei={})}},A1=function(r,s,a){a===void 0&&(a="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=O1(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),_1(l,c,a,"aria-hidden")):function(){return null}},Fi="Dialog",[tm]=gx(Fi),[D1,on]=tm(Fi),nm=r=>{const{__scopeDialog:s,children:a,open:l,defaultOpen:c,onOpenChange:f,modal:m=!0}=r,p=b.useRef(null),S=b.useRef(null),[g,C]=Sx({prop:l,defaultProp:c??!1,onChange:f,caller:Fi});return d.jsx(D1,{scope:s,triggerRef:p,contentRef:S,contentId:Pu(),titleId:Pu(),descriptionId:Pu(),open:g,onOpenChange:C,onOpenToggle:b.useCallback(()=>C(N=>!N),[C]),modal:m,children:a})};nm.displayName=Fi;var rm="DialogTrigger",L1=b.forwardRef((r,s)=>{const{__scopeDialog:a,...l}=r,c=on(rm,a),f=os(s,c.triggerRef);return d.jsx(Bn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":gc(c.open),...l,ref:f,onClick:kr(r.onClick,c.onOpenToggle)})});L1.displayName=rm;var pc="DialogPortal",[F1,sm]=tm(pc,{forceMount:void 0}),om=r=>{const{__scopeDialog:s,forceMount:a,children:l,container:c}=r,f=on(pc,s);return d.jsx(F1,{scope:s,forceMount:a,children:b.Children.map(l,m=>d.jsx(Di,{present:a||f.open,children:d.jsx(Qp,{asChild:!0,container:c,children:m})}))})};om.displayName=pc;var _i="DialogOverlay",am=b.forwardRef((r,s)=>{const a=sm(_i,r.__scopeDialog),{forceMount:l=a.forceMount,...c}=r,f=on(_i,r.__scopeDialog);return f.modal?d.jsx(Di,{present:l||f.open,children:d.jsx(B1,{...c,ref:s})}):null});am.displayName=_i;var U1=Fp("DialogOverlay.RemoveScroll"),B1=b.forwardRef((r,s)=>{const{__scopeDialog:a,...l}=r,c=on(_i,a);return d.jsx(Jp,{as:U1,allowPinchZoom:!0,shards:[c.contentRef],children:d.jsx(Bn.div,{"data-state":gc(c.open),...l,ref:s,style:{pointerEvents:"auto",...l.style}})})}),ns="DialogContent",im=b.forwardRef((r,s)=>{const a=sm(ns,r.__scopeDialog),{forceMount:l=a.forceMount,...c}=r,f=on(ns,r.__scopeDialog);return d.jsx(Di,{present:l||f.open,children:f.modal?d.jsx(W1,{...c,ref:s}):d.jsx($1,{...c,ref:s})})});im.displayName=ns;var W1=b.forwardRef((r,s)=>{const a=on(ns,r.__scopeDialog),l=b.useRef(null),c=os(s,a.contentRef,l);return b.useEffect(()=>{const f=l.current;if(f)return A1(f)},[]),d.jsx(lm,{...r,ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:kr(r.onCloseAutoFocus,f=>{var m;f.preventDefault(),(m=a.triggerRef.current)==null||m.focus()}),onPointerDownOutside:kr(r.onPointerDownOutside,f=>{const m=f.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0;(m.button===2||p)&&f.preventDefault()}),onFocusOutside:kr(r.onFocusOutside,f=>f.preventDefault())})}),$1=b.forwardRef((r,s)=>{const a=on(ns,r.__scopeDialog),l=b.useRef(!1),c=b.useRef(!1);return d.jsx(lm,{...r,ref:s,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var m,p;(m=r.onCloseAutoFocus)==null||m.call(r,f),f.defaultPrevented||(l.current||(p=a.triggerRef.current)==null||p.focus(),f.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:f=>{var S,g;(S=r.onInteractOutside)==null||S.call(r,f),f.defaultPrevented||(l.current=!0,f.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=f.target;((g=a.triggerRef.current)==null?void 0:g.contains(m))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&c.current&&f.preventDefault()}})}),lm=b.forwardRef((r,s)=>{const{__scopeDialog:a,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:f,...m}=r,p=on(ns,a),S=b.useRef(null),g=os(s,S);return Yx(),d.jsxs(d.Fragment,{children:[d.jsx($p,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:f,children:d.jsx(Bp,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":gc(p.open),...m,ref:g,onDismiss:()=>p.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(V1,{titleId:p.titleId}),d.jsx(H1,{contentRef:S,descriptionId:p.descriptionId})]})]})}),mc="DialogTitle",um=b.forwardRef((r,s)=>{const{__scopeDialog:a,...l}=r,c=on(mc,a);return d.jsx(Bn.h2,{id:c.titleId,...l,ref:s})});um.displayName=mc;var cm="DialogDescription",dm=b.forwardRef((r,s)=>{const{__scopeDialog:a,...l}=r,c=on(cm,a);return d.jsx(Bn.p,{id:c.descriptionId,...l,ref:s})});dm.displayName=cm;var fm="DialogClose",hm=b.forwardRef((r,s)=>{const{__scopeDialog:a,...l}=r,c=on(fm,a);return d.jsx(Bn.button,{type:"button",...l,ref:s,onClick:kr(r.onClick,()=>c.onOpenChange(!1))})});hm.displayName=fm;function gc(r){return r?"open":"closed"}var pm="DialogTitleWarning",[Cw,mm]=mx(pm,{contentName:ns,titleName:mc,docsSlug:"dialog"}),V1=({titleId:r})=>{const s=mm(pm),a=`\`${s.contentName}\` requires a \`${s.titleName}\` for the component to be accessible for screen reader users.
|
|
252
|
+
|
|
253
|
+
If you want to hide the \`${s.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
254
|
+
|
|
255
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${s.docsSlug}`;return b.useEffect(()=>{r&&(document.getElementById(r)||console.error(a))},[a,r]),null},Q1="DialogDescriptionWarning",H1=({contentRef:r,descriptionId:s})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mm(Q1).contentName}}.`;return b.useEffect(()=>{var f;const c=(f=r.current)==null?void 0:f.getAttribute("aria-describedby");s&&c&&(document.getElementById(s)||console.warn(l))},[l,r,s]),null},K1=nm,q1=om,gm=am,ym=im,vm=um,xm=dm,G1=hm;const wm=K1,Y1=q1,Sm=b.forwardRef(({className:r,...s},a)=>d.jsx(gm,{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),...s}));Sm.displayName=gm.displayName;const yc=b.forwardRef(({className:r,children:s,...a},l)=>d.jsxs(Y1,{children:[d.jsx(Sm,{}),d.jsxs(ym,{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:[s,d.jsxs(G1,{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:[d.jsx(_p,{className:"h-4 w-4 text-gray-500"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));yc.displayName=ym.displayName;const vc=({className:r,...s})=>d.jsx("div",{className:Te("flex flex-col space-y-2 text-center sm:text-left",r),...s});vc.displayName="DialogHeader";const xc=({className:r,...s})=>d.jsx("div",{className:Te("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",r),...s});xc.displayName="DialogFooter";const wc=b.forwardRef(({className:r,...s},a)=>d.jsx(vm,{ref:a,className:Te("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...s}));wc.displayName=vm.displayName;const Sc=b.forwardRef(({className:r,...s},a)=>d.jsx(xm,{ref:a,className:Te("text-sm text-gray-500 leading-relaxed",r),...s}));Sc.displayName=xm.displayName;function X1({maskedValue:r,isSet:s,className:a,...l}){const[c,f]=b.useState(!1);return d.jsxs("div",{className:"relative",children:[d.jsx(De,{type:c?"text":"password",className:Te("pr-20",a),placeholder:s?`${G("apiKeySet")} (Unchanged)`:"",...l}),d.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex gap-1",children:(s||r)&&d.jsx(Ye,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>f(!c),children:c?d.jsx(e0,{className:"h-4 w-4"}):d.jsx(t0,{className:"h-4 w-4"})})})]})}function Z1({value:r,onChange:s,className:a}){const l=r?Object.entries(r):[],c=(p,S,g)=>{const C=[...l];C[p]=[S,g],s(Object.fromEntries(C))},f=()=>{s({...r,"":""})},m=p=>{const S=l.filter((g,C)=>C!==p);s(Object.fromEntries(S))};return d.jsxs("div",{className:Te("space-y-2",a),children:[l.map(([p,S],g)=>d.jsxs("div",{className:"flex gap-2",children:[d.jsx(De,{type:"text",value:p,onChange:C=>c(g,C.target.value,S),placeholder:G("headerName"),className:"flex-1"}),d.jsx(De,{type:"text",value:S,onChange:C=>c(g,p,C.target.value),placeholder:G("headerValue"),className:"flex-1"}),d.jsx(Ye,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(g),children:d.jsx(zi,{className:"h-4 w-4 text-red-500"})})]},g)),d.jsxs(Ye,{type:"button",variant:"outline",size:"sm",onClick:f,children:[d.jsx(Ju,{className:"h-4 w-4 mr-2"}),G("add")]})]})}function J1(){const{providerModal:r,closeProviderModal:s}=ss(),{data:a}=eo(),{data:l}=hc(),{data:c}=to(),f=ax(),[m,p]=b.useState(""),[S,g]=b.useState(""),[C,N]=b.useState(null),[P,y]=b.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?ut(`providers.${A}.apiKey`,F):void 0,U=A?ut(`providers.${A}.apiBase`,F):void 0,L=A?ut(`providers.${A}.extraHeaders`,F):void 0,te=A?ut(`providers.${A}.wireApi`,F):void 0;b.useEffect(()=>{if(M){g(M.apiBase||(x==null?void 0:x.defaultApiBase)||""),N(M.extraHeaders||null),p("");const K=M.wireApi||(x==null?void 0:x.defaultWireApi)||"auto";y(K)}},[M,x]);const ne=K=>{K.preventDefault();const W={};if(m!==""&&(W.apiKey=m),S&&S!==(x==null?void 0:x.defaultApiBase)&&(W.apiBase=S),C&&Object.keys(C).length>0&&(W.extraHeaders=C),x!=null&&x.supportsWireApi){const D=(M==null?void 0:M.wireApi)||x.defaultWireApi||"auto";P!==D&&(W.wireApi=P)}A&&f.mutate({provider:A,data:W},{onSuccess:()=>s()})};return d.jsx(wm,{open:r.open,onOpenChange:s,children:d.jsxs(yc,{className:"sm:max-w-[500px]",children:[d.jsx(vc,{children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center",children:d.jsx(Oi,{className:"h-5 w-5 text-white"})}),d.jsxs("div",{children:[d.jsx(wc,{children:(x==null?void 0:x.displayName)||A}),d.jsx(Sc,{children:"Configure API keys and parameters for AI provider"})]})]})}),d.jsxs("form",{onSubmit:ne,className:"flex flex-col pt-2",children:[d.jsxs("div",{className:"space-y-5 max-h-[60vh] overflow-y-auto pr-1",children:[d.jsxs("div",{className:"space-y-2.5",children:[d.jsxs(Ln,{htmlFor:"apiKey",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[d.jsx(Oi,{className:"h-3.5 w-3.5 text-gray-500"}),(H==null?void 0:H.label)??G("apiKey")]}),d.jsx(X1,{id:"apiKey",value:m,isSet:M==null?void 0:M.apiKeySet,onChange:K=>p(K.target.value),placeholder:M!=null&&M.apiKeySet?G("apiKeySet"):(H==null?void 0:H.placeholder)??"Enter API Key",className:"rounded-xl"})]}),d.jsxs("div",{className:"space-y-2.5",children:[d.jsxs(Ln,{htmlFor:"apiBase",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[d.jsx(Rp,{className:"h-3.5 w-3.5 text-gray-500"}),(U==null?void 0:U.label)??G("apiBase")]}),d.jsx(De,{id:"apiBase",type:"text",value:S,onChange:K=>g(K.target.value),placeholder:(x==null?void 0:x.defaultApiBase)||(U==null?void 0:U.placeholder)||"https://api.example.com",className:"rounded-xl"}),(U==null?void 0:U.help)&&d.jsx("p",{className:"text-xs text-gray-500",children:U.help})]}),(x==null?void 0:x.supportsWireApi)&&d.jsxs("div",{className:"space-y-2.5",children:[d.jsxs(Ln,{htmlFor:"wireApi",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[d.jsx(Zu,{className:"h-3.5 w-3.5 text-gray-500"}),(te==null?void 0:te.label)??G("wireApi")]}),d.jsx("select",{id:"wireApi",value:P,onChange:K=>y(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=>d.jsx("option",{value:K,children:G(K==="chat"?"wireApiChat":K==="responses"?"wireApiResponses":"wireApiAuto")},K))})]}),d.jsxs("div",{className:"space-y-2.5",children:[d.jsxs(Ln,{className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[d.jsx(Zu,{className:"h-3.5 w-3.5 text-gray-500"}),(L==null?void 0:L.label)??G("extraHeaders")]}),d.jsx(Z1,{value:C,onChange:N})]})]}),d.jsxs(xc,{className:"pt-4 flex-shrink-0",children:[d.jsx(Ye,{type:"button",variant:"outline",onClick:s,children:G("cancel")}),d.jsx(Ye,{type:"submit",disabled:f.isPending,children:f.isPending?"Saving...":G("save")})]})]})]})})}function bm({tabs:r,activeTab:s,onChange:a,className:l}){return d.jsx("div",{className:Te("flex items-center gap-8 border-b border-gray-200 mb-8",l),children:r.map(c=>{const f=s===c.id;return d.jsxs("button",{onClick:()=>a(c.id),className:Te("relative pb-4 text-[15px] font-semibold transition-all duration-fast flex items-center gap-2",f?"text-primary":"text-gray-500 hover:text-gray-700"),children:[c.label,c.count!==void 0&&d.jsx("span",{className:"text-[11px] font-medium text-gray-400",children:c.count.toLocaleString()}),f&&d.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 km({name:r,src:s,className:a,imgClassName:l,fallback:c}){const[f,m]=b.useState(!1),p=!!s&&!f;return d.jsx("div",{className:Te("flex items-center justify-center",a),children:p?d.jsx("img",{src:s,alt:`${r} logo`,className:Te("h-6 w-6 object-contain",l),onError:()=>m(!0),draggable:!1}):c??d.jsx("span",{className:"text-lg font-bold uppercase",children:r.slice(0,1)})})}const ew={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"},tw={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 Cm(r,s){const a=s.toLowerCase(),l=r[a];return l?`/logos/${l}`:null}function nw(r){return Cm(ew,r)}function rw(r){return Cm(tw,r)}function sw(){const{data:r}=eo(),{data:s}=hc(),{data:a}=to(),{openProviderModal:l}=ss(),[c,f]=b.useState("installed"),m=a==null?void 0:a.uiHints;if(!r||!s)return d.jsx("div",{className:"p-8",children:"Loading..."});const p=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(g=>r.providers[g].apiKeySet).length:0},{id:"all",label:"All Providers"}],S=c==="installed"?s.providers.filter(g=>{var C;return(C=r.providers[g.name])==null?void 0:C.apiKeySet}):s.providers;return d.jsxs("div",{className:"animate-fade-in pb-20",children:[d.jsx("div",{className:"flex items-center justify-between mb-8",children:d.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"AI Providers"})}),d.jsx(bm,{tabs:p,activeTab:c,onChange:f}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:S.map(g=>{const C=r.providers[g.name],N=C==null?void 0:C.apiKeySet,P=ut(`providers.${g.name}`,m),y=(P==null?void 0:P.help)||"Configure AI services for your agents";return d.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",N?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(g.name),children:[d.jsxs("div",{className:"flex items-start justify-between mb-4",children:[d.jsx(km,{name:g.name,src:nw(g.name),className:Te("h-12 w-12 rounded-xl border transition-all",N?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-7 w-7",fallback:d.jsx("span",{className:Te("text-lg font-bold uppercase",N?"text-gray-900":"text-gray-500"),children:g.name[0]})}),N?d.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[d.jsx(Xv,{className:"h-3.5 w-3.5"}),d.jsx("span",{className:"text-[11px] font-bold",children:"Ready"})]}):d.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[d.jsx(Op,{className:"h-3.5 w-3.5"}),d.jsx("span",{className:"text-[11px] font-bold",children:"Setup"})]})]}),d.jsxs("div",{className:"flex-1",children:[d.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:g.displayName||g.name}),d.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:y})]}),d.jsx("div",{className:"mt-4 pt-3",children:d.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:[N?"Configure":"Add Provider",d.jsx(Tp,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})})]},g.name)})}),S.length===0&&d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[d.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:d.jsx(Oi,{className:"h-8 w-8 text-gray-400"})}),d.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No providers configured"}),d.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."})]}),d.jsx(J1,{})]})}const bc=b.forwardRef(({className:r,checked:s=!1,onCheckedChange:a,...l},c)=>d.jsx("button",{type:"button",role:"switch","aria-checked":s,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",s?"bg-primary":"bg-gray-200 hover:bg-gray-300",r),onClick:()=>a==null?void 0:a(!s),...l,children:d.jsx("span",{className:Te("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-md ring-0 transition-transform duration-fast",s?"translate-x-5":"translate-x-0")})}));bc.displayName="Switch";function ow({value:r,onChange:s,className:a,placeholder:l="Type and press Enter..."}){const[c,f]=b.useState(""),m=S=>{S.key==="Enter"&&c.trim()?(S.preventDefault(),s([...r,c.trim()]),f("")):S.key==="Backspace"&&!c&&r.length>0&&s(r.slice(0,-1))},p=S=>{s(r.filter((g,C)=>C!==S))};return d.jsxs("div",{className:Te("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",a),children:[r.map((S,g)=>d.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[S,d.jsx("button",{type:"button",onClick:()=>p(g),className:"hover:text-red-300 transition-colors",children:d.jsx(_p,{className:"h-3 w-3"})})]},g)),d.jsx("input",{type:"text",value:c,onChange:S=>f(S.target.value),onKeyDown:m,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:l})]})}const Qh=[{value:"pairing",label:"pairing"},{value:"allowlist",label:"allowlist"},{value:"open",label:"open"},{value:"disabled",label:"disabled"}],Hh=[{value:"open",label:"open"},{value:"allowlist",label:"allowlist"},{value:"disabled",label:"disabled"}],aw=r=>r.includes("token")||r.includes("secret")||r.includes("password")?d.jsx(Oi,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("url")||r.includes("host")?d.jsx(Rp,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("email")||r.includes("mail")?d.jsx(dc,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("id")||r.includes("from")?d.jsx(Zu,{className:"h-3.5 w-3.5 text-gray-500"}):r==="enabled"||r==="consentGranted"?d.jsx(d0,{className:"h-3.5 w-3.5 text-gray-500"}):d.jsx(Op,{className:"h-3.5 w-3.5 text-gray-500"}),iw={telegram:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"token",type:"password",label:G("botToken")},{name:"allowFrom",type:"tags",label:G("allowFrom")},{name:"proxy",type:"text",label:G("proxy")},{name:"accountId",type:"text",label:"Account ID"},{name:"dmPolicy",type:"select",label:"DM Policy",options:Qh},{name:"groupPolicy",type:"select",label:"Group Policy",options:Hh},{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:G("enabled")},{name:"token",type:"password",label:G("botToken")},{name:"allowBots",type:"boolean",label:"Allow Bot Messages"},{name:"allowFrom",type:"tags",label:G("allowFrom")},{name:"gatewayUrl",type:"text",label:G("gatewayUrl")},{name:"intents",type:"number",label:G("intents")},{name:"proxy",type:"text",label:G("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:Qh},{name:"groupPolicy",type:"select",label:"Group Policy",options:Hh},{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:G("enabled")},{name:"bridgeUrl",type:"text",label:G("bridgeUrl")},{name:"allowFrom",type:"tags",label:G("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"appId",type:"text",label:G("appId")},{name:"appSecret",type:"password",label:G("appSecret")},{name:"encryptKey",type:"password",label:G("encryptKey")},{name:"verificationToken",type:"password",label:G("verificationToken")},{name:"allowFrom",type:"tags",label:G("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"clientId",type:"text",label:G("clientId")},{name:"clientSecret",type:"password",label:G("clientSecret")},{name:"allowFrom",type:"tags",label:G("allowFrom")}],wecom:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"corpId",type:"text",label:G("corpId")},{name:"agentId",type:"text",label:G("agentId")},{name:"secret",type:"password",label:G("secret")},{name:"token",type:"password",label:G("token")},{name:"callbackPort",type:"number",label:G("callbackPort")},{name:"callbackPath",type:"text",label:G("callbackPath")},{name:"allowFrom",type:"tags",label:G("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"mode",type:"text",label:G("mode")},{name:"webhookPath",type:"text",label:G("webhookPath")},{name:"allowBots",type:"boolean",label:"Allow Bot Messages"},{name:"botToken",type:"password",label:G("botToken")},{name:"appToken",type:"password",label:G("appToken")}],email:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"consentGranted",type:"boolean",label:G("consentGranted")},{name:"imapHost",type:"text",label:G("imapHost")},{name:"imapPort",type:"number",label:G("imapPort")},{name:"imapUsername",type:"text",label:G("imapUsername")},{name:"imapPassword",type:"password",label:G("imapPassword")},{name:"fromAddress",type:"email",label:G("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"baseUrl",type:"text",label:G("baseUrl")},{name:"clawToken",type:"password",label:G("clawToken")},{name:"agentUserId",type:"text",label:G("agentUserId")},{name:"allowFrom",type:"tags",label:G("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:G("enabled")},{name:"appId",type:"text",label:G("appId")},{name:"secret",type:"password",label:G("appSecret")},{name:"markdownSupport",type:"boolean",label:G("markdownSupport")},{name:"allowFrom",type:"tags",label:G("allowFrom")}]},Kh={telegram:ji,slack:ji,email:dc,default:ji},qh={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 Ai(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Em(r,s){const a={...r};for(const[l,c]of Object.entries(s)){const f=a[l];if(Ai(f)&&Ai(c)){a[l]=Em(f,c);continue}a[l]=c}return a}function lw(r,s){const a=r.split("."),l={};let c=l;for(let f=0;f<a.length-1;f+=1){const m=a[f];c[m]={},c=c[m]}return c[a[a.length-1]]=s,l}function uw(){var D,X;const{channelModal:r,closeChannelModal:s}=ss(),{data:a}=eo(),{data:l}=to(),c=ix(),f=ux(),[m,p]=b.useState({}),[S,g]=b.useState({}),[C,N]=b.useState(null),P=r.channel,y=P?a==null?void 0:a.channels[P]:null,A=b.useMemo(()=>P?iw[P]:[],[P]),x=l==null?void 0:l.uiHints,M=P?`channels.${P}`:null,F=((D=l==null?void 0:l.actions)==null?void 0:D.filter(_=>_.scope===M))??[],H=P&&(((X=ut(`channels.${P}`,x))==null?void 0:X.label)??P);b.useEffect(()=>{if(y){p({...y});const _={};A.filter(O=>O.type==="json").forEach(O=>{const se=y[O.name];_[O.name]=JSON.stringify(se??{},null,2)}),g(_)}else p({}),g({})},[y,P,A]);const U=(_,O)=>{p(se=>({...se,[_]:O}))},L=_=>{if(_.preventDefault(),!P)return;const O={...m};for(const se of A){if(se.type!=="json")continue;const ie=S[se.name]??"";try{O[se.name]=ie.trim()?JSON.parse(ie):{}}catch{et.error(`Invalid JSON for ${se.name}`);return}}c.mutate({channel:P,data:O},{onSuccess:()=>s()})},te=_=>{if(!_||!P)return;const O=_.channels;if(!Ai(O))return;const se=O[P];Ai(se)&&p(ie=>Em(ie,se))},ne=async _=>{if(!(!P||!M)){N(_.id);try{let O={...m};_.saveBeforeRun&&(O={...O,..._.savePatch??{}},p(O),await c.mutateAsync({channel:P,data:O}));const se=await f.mutateAsync({actionId:_.id,data:{scope:M,draftConfig:lw(M,O)}});te(se.patch),se.ok?et.success(se.message||G("success")):et.error(se.message||G("error"))}catch(O){const se=O instanceof Error?O.message:String(O);et.error(`${G("error")}: ${se}`)}finally{N(null)}}},K=Kh[P||""]||Kh.default,W=qh[P||""]||qh.default;return d.jsx(wm,{open:r.open,onOpenChange:s,children:d.jsxs(yc,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[d.jsx(vc,{children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:`h-10 w-10 rounded-xl bg-gradient-to-br ${W} flex items-center justify-center`,children:d.jsx(K,{className:"h-5 w-5 text-white"})}),d.jsxs("div",{children:[d.jsx(wc,{className:"capitalize",children:H}),d.jsx(Sc,{children:"Configure message channel parameters"})]})]})}),d.jsxs("form",{onSubmit:L,className:"flex flex-col flex-1 overflow-hidden",children:[d.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2 pr-2 space-y-5",children:A.map(_=>{const O=P?ut(`channels.${P}.${_.name}`,x):void 0,se=(O==null?void 0:O.label)??_.label,ie=O==null?void 0:O.placeholder;return d.jsxs("div",{className:"space-y-2.5",children:[d.jsxs(Ln,{htmlFor:_.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[aw(_.name),se]}),_.type==="boolean"&&d.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-gray-50",children:[d.jsx("span",{className:"text-sm text-gray-500",children:m[_.name]?G("enabled"):G("disabled")}),d.jsx(bc,{id:_.name,checked:m[_.name]||!1,onCheckedChange:fe=>U(_.name,fe),className:"data-[state=checked]:bg-emerald-500"})]}),(_.type==="text"||_.type==="email")&&d.jsx(De,{id:_.name,type:_.type,value:m[_.name]||"",onChange:fe=>U(_.name,fe.target.value),placeholder:ie,className:"rounded-xl"}),_.type==="password"&&d.jsx(De,{id:_.name,type:"password",value:m[_.name]||"",onChange:fe=>U(_.name,fe.target.value),placeholder:ie??"Leave blank to keep unchanged",className:"rounded-xl"}),_.type==="number"&&d.jsx(De,{id:_.name,type:"number",value:m[_.name]||0,onChange:fe=>U(_.name,parseInt(fe.target.value)||0),placeholder:ie,className:"rounded-xl"}),_.type==="tags"&&d.jsx(ow,{value:m[_.name]||[],onChange:fe=>U(_.name,fe)}),_.type==="select"&&d.jsx("select",{id:_.name,value:m[_.name]||"",onChange:fe=>U(_.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=>d.jsx("option",{value:fe.value,children:fe.label},fe.value))}),_.type==="json"&&d.jsx("textarea",{id:_.name,value:S[_.name]??"{}",onChange:fe=>g(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)})}),d.jsxs(xc,{className:"pt-4 flex-shrink-0",children:[d.jsx(Ye,{type:"button",variant:"outline",onClick:s,children:G("cancel")}),d.jsx(Ye,{type:"submit",disabled:c.isPending||!!C,children:c.isPending?"Saving...":G("save")}),F.filter(_=>_.trigger==="manual").map(_=>d.jsx(Ye,{type:"button",onClick:()=>ne(_),disabled:c.isPending||!!C,variant:"secondary",children:C===_.id?G("connecting"):_.title},_.id))]})]})]})})}const Gh={telegram:ji,slack:u0,email:dc,webhook:Yv,default:fc},cw={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 dw(){const{data:r}=eo(),{data:s}=hc(),{data:a}=to(),{openChannelModal:l}=ss(),[c,f]=b.useState("active"),m=a==null?void 0:a.uiHints;if(!r||!s)return d.jsx("div",{className:"p-8 text-gray-400",children:"Loading channels..."});const p=[{id:"active",label:"Enabled",count:s.channels.filter(g=>{var C;return(C=r.channels[g.name])==null?void 0:C.enabled}).length},{id:"all",label:"All Channels",count:s.channels.length}],S=s.channels.filter(g=>{var N;const C=((N=r.channels[g.name])==null?void 0:N.enabled)||!1;return c==="all"||C});return d.jsxs("div",{className:"animate-fade-in pb-20",children:[d.jsx("div",{className:"flex items-center justify-between mb-8",children:d.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Message Channels"})}),d.jsx(bm,{tabs:p,activeTab:c,onChange:f}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:S.map(g=>{const C=r.channels[g.name],N=(C==null?void 0:C.enabled)||!1,P=Gh[g.name]||Gh.default,y=ut(`channels.${g.name}`,m),A=(y==null?void 0:y.help)||cw[g.name]||"Configure this communication channel";return d.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",N?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(g.name),children:[d.jsxs("div",{className:"flex items-start justify-between mb-4",children:[d.jsx(km,{name:g.name,src:rw(g.name),className:Te("h-12 w-12 rounded-xl border transition-all",N?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-6 w-6",fallback:d.jsx(P,{className:"h-6 w-6"})}),N?d.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[d.jsx(f0,{className:"h-3.5 w-3.5"}),d.jsx("span",{className:"text-[11px] font-bold",children:"Active"})]}):d.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[d.jsx(a0,{className:"h-3.5 w-3.5"}),d.jsx("span",{className:"text-[11px] font-bold",children:"Inactive"})]})]}),d.jsxs("div",{className:"flex-1",children:[d.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:g.displayName||g.name}),d.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:A})]}),d.jsxs("div",{className:"mt-4 pt-3 flex items-center justify-between",children:[d.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:[N?"Configure":"Enable",d.jsx(Tp,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}),g.tutorialUrl&&d.jsx("a",{href:g.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:d.jsx(Jv,{className:"h-3.5 w-3.5"})})]})]},g.name)})}),S.length===0&&d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[d.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:d.jsx(fc,{className:"h-8 w-8 text-gray-400"})}),d.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No channels enabled"}),d.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."})]}),d.jsx(uw,{})]})}const fw=[{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 hw(){return{id:"",default:!1,workspace:"",model:"",maxTokens:void 0,contextTokens:void 0,maxToolIterations:void 0}}function pw(){return{agentId:"",match:{channel:"",accountId:""}}}function Au(r){const s=r.trim();if(!s)return;const a=Number.parseInt(s,10);return Number.isFinite(a)?a:void 0}function mw(){const{data:r,isLoading:s}=eo(),{data:a}=to(),l=lx(),[c,f]=b.useState([]),[m,p]=b.useState([]),[S,g]=b.useState("per-channel-peer"),[C,N]=b.useState(0),[P,y]=b.useState(2e5);b.useEffect(()=>{var D,X,_;r&&(f((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}))),p((r.bindings??[]).map(O=>{var se,ie,fe;return{agentId:O.agentId??"",match:{channel:((se=O.match)==null?void 0:se.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}}})),g(((D=r.session)==null?void 0:D.dmScope)??"per-channel-peer"),N(((_=(X=r.session)==null?void 0:X.agentToAgent)==null?void 0:_.maxPingPongTurns)??0),y(r.agents.defaults.contextTokens??2e5))},[r]);const A=a==null?void 0:a.uiHints,x=ut("session.dmScope",A),M=ut("session.agentToAgent.maxPingPongTurns",A),F=ut("agents.defaults.contextTokens",A),H=ut("agents.list.*.contextTokens",A),U=ut("agents.list",A),L=ut("bindings",A),te=b.useMemo(()=>{const D=new Set(["main"]);return c.forEach(X=>{const _=X.id.trim();_&&D.add(_)}),D},[c]),ne=(D,X)=>{f(_=>_.map((O,se)=>se===D?{...O,...X}:O))},K=(D,X)=>{p(_=>_.map((O,se)=>se===D?X:O))},W=()=>{try{const D=c.map((O,se)=>{var be,we;const ie=O.id.trim();if(!ie)throw new Error(`agents.list[${se}].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}),X=D.map(O=>O.id).filter((O,se,ie)=>ie.indexOf(O)!==se);if(X.length>0){et.error(`Duplicate agent id: ${X[0]}`);return}const _=m.map((O,se)=>{var Y,j,z,oe;const ie=O.agentId.trim(),fe=O.match.channel.trim(),be=((Y=O.match.accountId)==null?void 0:Y.trim())??"",we=(j=O.match.peer)==null?void 0:j.kind,Z=((oe=(z=O.match.peer)==null?void 0:z.id)==null?void 0:oe.trim())??"";if(!ie)throw new Error(`bindings[${se}].agentId is required`);if(!te.has(ie))throw new Error(`bindings[${se}].agentId '${ie}' not found in agents.list/main`);if(!fe)throw new Error(`bindings[${se}].match.channel is required`);const Q={agentId:ie,match:{channel:fe}};if(be&&(Q.match.accountId=be),we){if(!Z)throw new Error(`bindings[${se}].match.peer.id is required when peer.kind is set`);Q.match.peer={kind:we,id:Z}}return Q});l.mutate({data:{agents:{defaults:{contextTokens:Math.max(1e3,P)},list:D},bindings:_,session:{dmScope:S,agentToAgent:{maxPingPongTurns:Math.min(5,Math.max(0,C))}}}})}catch(D){const X=D instanceof Error?D.message:String(D);et.error(X)}};return s||!r?d.jsx("div",{className:"p-8 text-gray-400",children:"Loading runtime settings..."}):d.jsxs("div",{className:"space-y-6 pb-20 animate-fade-in",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Routing & Runtime"}),d.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Align multi-agent routing with OpenClaw: bindings, agent pool, and DM scope."})]}),d.jsxs(Fn,{children:[d.jsxs(Yr,{children:[d.jsx(Xr,{children:(x==null?void 0:x.label)??"DM Scope"}),d.jsx(Zr,{children:(x==null?void 0:x.help)??"Control how direct-message sessions are isolated."})]}),d.jsxs(Jr,{className:"space-y-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx("label",{className:"text-sm font-medium text-gray-800",children:(F==null?void 0:F.label)??"Default Context Tokens"}),d.jsx(De,{type:"number",min:1e3,step:1e3,value:P,onChange:D=>y(Math.max(1e3,Number.parseInt(D.target.value,10)||1e3))}),d.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."})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("label",{className:"text-sm font-medium text-gray-800",children:(x==null?void 0:x.label)??"DM Scope"}),d.jsx("select",{value:S,onChange:D=>g(D.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm",children:fw.map(D=>d.jsx("option",{value:D.value,children:D.label},D.value))})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("label",{className:"text-sm font-medium text-gray-800",children:(M==null?void 0:M.label)??"Max Ping-Pong Turns"}),d.jsx(De,{type:"number",min:0,max:5,value:C,onChange:D=>N(Math.max(0,Number.parseInt(D.target.value,10)||0))}),d.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."})]})]})]}),d.jsxs(Fn,{children:[d.jsxs(Yr,{children:[d.jsx(Xr,{children:(U==null?void 0:U.label)??"Agent List"}),d.jsx(Zr,{children:(U==null?void 0:U.help)??"Run multiple fixed-role agents in one gateway process."})]}),d.jsxs(Jr,{className:"space-y-3",children:[c.map((D,X)=>d.jsxs("div",{className:"rounded-xl border border-gray-200 p-3 space-y-3",children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[d.jsx(De,{value:D.id,onChange:_=>ne(X,{id:_.target.value}),placeholder:"Agent ID (e.g. engineer)"}),d.jsx(De,{value:D.workspace??"",onChange:_=>ne(X,{workspace:_.target.value}),placeholder:"Workspace override (optional)"}),d.jsx(De,{value:D.model??"",onChange:_=>ne(X,{model:_.target.value}),placeholder:"Model override (optional)"}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-2",children:[d.jsx(De,{type:"number",min:1,value:D.maxTokens??"",onChange:_=>ne(X,{maxTokens:Au(_.target.value)}),placeholder:"Max tokens"}),d.jsx(De,{type:"number",min:1e3,step:1e3,value:D.contextTokens??"",onChange:_=>ne(X,{contextTokens:Au(_.target.value)}),placeholder:(H==null?void 0:H.label)??"Context tokens"}),d.jsx(De,{type:"number",min:1,value:D.maxToolIterations??"",onChange:_=>ne(X,{maxToolIterations:Au(_.target.value)}),placeholder:"Max tools"})]})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[d.jsx(bc,{checked:!!D.default,onCheckedChange:_=>{if(!_){ne(X,{default:!1});return}f(O=>O.map((se,ie)=>({...se,default:ie===X})))}}),d.jsx("span",{children:"Default agent"})]}),d.jsxs(Ye,{type:"button",variant:"outline",size:"sm",onClick:()=>f(_=>_.filter((O,se)=>se!==X)),children:[d.jsx(zi,{className:"h-4 w-4 mr-1"}),"Remove"]})]})]},`${X}-${D.id}`)),d.jsxs(Ye,{type:"button",variant:"outline",onClick:()=>f(D=>[...D,hw()]),children:[d.jsx(Ju,{className:"h-4 w-4 mr-2"}),"Add Agent"]})]})]}),d.jsxs(Fn,{children:[d.jsxs(Yr,{children:[d.jsx(Xr,{children:(L==null?void 0:L.label)??"Bindings"}),d.jsx(Zr,{children:(L==null?void 0:L.help)??"Route inbound message by channel + account + peer to target agent."})]}),d.jsxs(Jr,{className:"space-y-3",children:[m.map((D,X)=>{var O,se;const _=((O=D.match.peer)==null?void 0:O.kind)??"";return d.jsxs("div",{className:"rounded-xl border border-gray-200 p-3 space-y-3",children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:[d.jsx(De,{value:D.agentId,onChange:ie=>K(X,{...D,agentId:ie.target.value}),placeholder:"Target agent ID"}),d.jsx(De,{value:D.match.channel,onChange:ie=>K(X,{...D,match:{...D.match,channel:ie.target.value}}),placeholder:"Channel (e.g. discord)"}),d.jsx(De,{value:D.match.accountId??"",onChange:ie=>K(X,{...D,match:{...D.match,accountId:ie.target.value}}),placeholder:"Account ID (optional)"}),d.jsxs("select",{value:_,onChange:ie=>{var be;const fe=ie.target.value;if(!fe){K(X,{...D,match:{...D.match,peer:void 0}});return}K(X,{...D,match:{...D.match,peer:{kind:fe,id:((be=D.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:[d.jsx("option",{value:"",children:"Peer kind (optional)"}),d.jsx("option",{value:"direct",children:"direct"}),d.jsx("option",{value:"group",children:"group"}),d.jsx("option",{value:"channel",children:"channel"})]}),d.jsx(De,{value:((se=D.match.peer)==null?void 0:se.id)??"",onChange:ie=>K(X,{...D,match:{...D.match,peer:_?{kind:_,id:ie.target.value}:void 0}}),placeholder:"Peer ID (requires peer kind)"})]}),d.jsx("div",{className:"flex justify-end",children:d.jsxs(Ye,{type:"button",variant:"outline",size:"sm",onClick:()=>p(ie=>ie.filter((fe,be)=>be!==X)),children:[d.jsx(zi,{className:"h-4 w-4 mr-1"}),"Remove"]})})]},`${X}-${D.agentId}`)}),d.jsxs(Ye,{type:"button",variant:"outline",onClick:()=>p(D=>[...D,pw()]),children:[d.jsx(Ju,{className:"h-4 w-4 mr-2"}),"Add Binding"]})]})]}),d.jsx("div",{className:"flex justify-end",children:d.jsxs(Ye,{type:"button",onClick:W,disabled:l.isPending,children:[d.jsx(Ip,{className:"h-4 w-4 mr-2"}),l.isPending?"Saving...":"Save Runtime Settings"]})})]})}function Nm(r){if(!r)return"-";const s=new Date(r);return Number.isNaN(s.getTime())?r:s.toLocaleString()}function gw(r){const{session:s}=r;return d.jsxs("div",{className:"rounded-xl border border-gray-200 p-3 space-y-3",children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-2 text-xs text-gray-600",children:[d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold text-gray-800",children:"Key:"})," ",s.key]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold text-gray-800",children:"Messages:"})," ",s.messageCount]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold text-gray-800",children:"Updated:"})," ",Nm(s.updatedAt)]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold text-gray-800",children:"Last Role:"})," ",s.lastRole??"-"]})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2",children:[d.jsx(De,{value:r.labelValue,onChange:a=>r.onLabelChange(a.target.value),placeholder:"会话标签(可选)"}),d.jsx(De,{value:r.modelValue,onChange:a=>r.onModelChange(a.target.value),placeholder:"Preferred model(可选)"})]}),d.jsxs("div",{className:"flex flex-wrap gap-2",children:[d.jsx(Ye,{type:"button",variant:r.isSelected?"default":"outline",size:"sm",onClick:r.onToggleHistory,children:r.isSelected?"隐藏历史":"查看历史"}),d.jsxs(Ye,{type:"button",variant:"outline",size:"sm",onClick:r.onSave,children:[d.jsx(Ip,{className:"h-4 w-4 mr-1"}),"保存元信息"]}),d.jsx(Ye,{type:"button",variant:"outline",size:"sm",onClick:r.onClear,children:"清空历史"}),d.jsxs(Ye,{type:"button",variant:"outline",size:"sm",onClick:r.onDelete,children:[d.jsx(zi,{className:"h-4 w-4 mr-1"}),"删除"]})]})]})}function yw({message:r,index:s}){return d.jsxs("div",{className:"rounded-lg border border-gray-200 p-2",children:[d.jsxs("div",{className:"text-xs text-gray-500",children:[d.jsx("span",{className:"font-semibold text-gray-700",children:r.role})," · ",Nm(r.timestamp)]}),d.jsx("div",{className:"text-sm whitespace-pre-wrap break-words mt-1",children:r.content})]},`${r.timestamp}-${s}`)}function vw(){var te,ne,K;const[r,s]=b.useState(""),[a,l]=b.useState(100),[c,f]=b.useState(0),[m,p]=b.useState(null),[S,g]=b.useState({}),[C,N]=b.useState({}),P=b.useMemo(()=>({q:r.trim()||void 0,limit:a,activeMinutes:c}),[r,a,c]),y=cx(P),A=dx(m,200),x=fx(),M=hx();b.useEffect(()=>{var D;const W=((D=y.data)==null?void 0:D.sessions)??[];W.length&&(g(X=>{const _={...X};for(const O of W)O.key in _||(_[O.key]=O.label??"");return _}),N(X=>{const _={...X};for(const O of W)O.key in _||(_[O.key]=O.preferredModel??"");return _}))},[y.data]);const F=((te=y.data)==null?void 0:te.sessions)??[],H=W=>{x.mutate({key:W,data:{label:(S[W]??"").trim()||null,preferredModel:(C[W]??"").trim()||null}})},U=W=>{x.mutate({key:W,data:{clearHistory:!0}}),m===W&&p(null)},L=W=>{window.confirm(`确认删除会话 ${W} ?`)&&M.mutate({key:W},{onSuccess:()=>{m===W&&p(null)}})};return d.jsxs("div",{className:"space-y-6 pb-20 animate-fade-in",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Sessions"}),d.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"管理会话:筛选、查看历史、改标签/偏好模型、清空和删除。"})]}),d.jsxs(Fn,{children:[d.jsxs(Yr,{children:[d.jsx(Xr,{children:"Filters"}),d.jsx(Zr,{children:"按关键词与活跃窗口筛选会话。"})]}),d.jsxs(Jr,{className:"grid grid-cols-1 md:grid-cols-4 gap-3",children:[d.jsxs("div",{className:"md:col-span-2 relative",children:[d.jsx(l0,{className:"h-4 w-4 absolute left-3 top-3 text-gray-400"}),d.jsx(De,{value:r,onChange:W=>s(W.target.value),placeholder:"搜索 key 或标签",className:"pl-9"})]}),d.jsx(De,{type:"number",min:0,value:c,onChange:W=>f(Math.max(0,Number.parseInt(W.target.value,10)||0)),placeholder:"活跃分钟(0=不限)"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(De,{type:"number",min:1,value:a,onChange:W=>l(Math.max(1,Number.parseInt(W.target.value,10)||1)),placeholder:"Limit"}),d.jsx(Ye,{type:"button",variant:"outline",onClick:()=>y.refetch(),children:d.jsx(i0,{className:"h-4 w-4"})})]})]})]}),d.jsxs(Fn,{children:[d.jsxs(Yr,{children:[d.jsx(Xr,{children:"Session List"}),d.jsxs(Zr,{children:["共 ",((ne=y.data)==null?void 0:ne.total)??0," 条;当前展示 ",F.length," 条。"]})]}),d.jsxs(Jr,{className:"space-y-3",children:[y.isLoading?d.jsx("div",{className:"text-sm text-gray-500",children:"Loading sessions..."}):null,y.error?d.jsx("div",{className:"text-sm text-red-600",children:y.error.message}):null,!y.isLoading&&!F.length?d.jsx("div",{className:"text-sm text-gray-500",children:"暂无会话。"}):null,F.map(W=>d.jsx(gw,{session:W,isSelected:m===W.key,labelValue:S[W.key]??"",modelValue:C[W.key]??"",onToggleHistory:()=>p(D=>D===W.key?null:W.key),onLabelChange:D=>g(X=>({...X,[W.key]:D})),onModelChange:D=>N(X=>({...X,[W.key]:D})),onSave:()=>H(W.key),onClear:()=>U(W.key),onDelete:()=>L(W.key)},W.key))]})]}),m?d.jsxs(Fn,{children:[d.jsxs(Yr,{children:[d.jsxs(Xr,{children:["History: ",m]}),d.jsx(Zr,{children:"最近 200 条消息(展示窗口)。"})]}),d.jsxs(Jr,{className:"space-y-2",children:[A.isLoading?d.jsx("div",{className:"text-sm text-gray-500",children:"Loading history..."}):null,A.error?d.jsx("div",{className:"text-sm text-red-600",children:A.error.message}):null,A.data?d.jsxs("div",{className:"text-xs text-gray-500",children:["Total: ",A.data.totalMessages," · metadata: ",JSON.stringify(A.data.metadata??{})]}):null,d.jsx("div",{className:"max-h-[480px] overflow-auto space-y-2",children:(((K=A.data)==null?void 0:K.messages)??[]).map((W,D)=>d.jsx(yw,{message:W,index:D},`${W.timestamp}-${D}`))})]})]}):null,(x.isPending||M.isPending)&&d.jsx("div",{className:"text-xs text-gray-500",children:"Applying session changes..."})]})}class xw{constructor(s){this.url=s,this.ws=null,this.handlers=new Map,this.reconnectTimer=null,this.manualClose=!1}connect(){this.manualClose=!1,this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("WebSocket connected"),this.emit({type:"connection.open",payload:{}})},this.ws.onmessage=s=>{try{const a=JSON.parse(s.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=s=>{console.error("WebSocket error:",s)}}on(s,a){this.handlers.has(s)||this.handlers.set(s,new Set),this.handlers.get(s).add(a)}off(s,a){var l;(l=this.handlers.get(s))==null||l.delete(a)}emit(s){const a=this.handlers.get(s.type);a==null||a.forEach(l=>l(s))}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.connect()},3e3))}disconnect(){var s;this.manualClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(s=this.ws)==null||s.close(),this.ws=null}}function ww(r){const[s,a]=b.useState(null),{setConnectionStatus:l}=ss();return b.useEffect(()=>{const c=(()=>{const m=Pi==null?void 0:Pi.replace(/\/$/,"");if(!m)return"ws://127.0.0.1:18791/ws";try{const p=new URL(m,window.location.origin);return`${p.protocol==="https:"?"wss:":p.protocol==="http:"?"ws:":p.protocol}//${p.host}/ws`}catch{return m.startsWith("wss://")||m.startsWith("ws://")?`${m}/ws`:m.startsWith("https://")?`${m.replace(/^https:/,"wss:")}/ws`:m.startsWith("http://")?`${m.replace(/^http:/,"ws:")}/ws`:`${m}/ws`}})(),f=new xw(c);return f.on("connection.open",()=>{l("connected")}),f.on("config.updated",()=>{r&&r.invalidateQueries({queryKey:["config"]})}),f.on("error",m=>{m.type==="error"&&console.error("WebSocket error:",m.payload.message)}),f.connect(),a(f),()=>f.disconnect()},[l,r]),s}const Yh=new Zy({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function Sw(){const{activeTab:r}=ss();ww(Yh);const s=()=>{switch(r){case"model":return d.jsx(Rh,{});case"providers":return d.jsx(sw,{});case"channels":return d.jsx(dw,{});case"runtime":return d.jsx(mw,{});case"sessions":return d.jsx(vw,{});default:return d.jsx(Rh,{})}};return d.jsxs(Jy,{client:Yh,children:[d.jsx(m0,{children:d.jsx("div",{className:"animate-fade-in",children:s()},r)}),d.jsx(sx,{position:"top-right",richColors:!0})]})}Py.createRoot(document.getElementById("root")).render(d.jsx(b.StrictMode,{children:d.jsx(Sw,{})}));
|