better-auth-studio 1.0.9-beta.3 → 1.0.9-beta.5
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/dist/auth-adapter.d.ts.map +1 -1
- package/dist/auth-adapter.js +18 -1
- package/dist/auth-adapter.js.map +1 -1
- package/dist/cli.js +29 -2
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +50 -2
- package/dist/config.js.map +1 -1
- package/dist/routes.d.ts +1 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +205 -16
- package/dist/routes.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/main-CQ5PeEpQ.js +326 -0
- package/public/assets/main-dRPw2V3i.css +1 -0
- package/public/index.html +2 -2
- package/public/assets/main-C-TXCXVW.css +0 -1
- package/public/assets/main-CCzTTP3P.js +0 -296
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
function op(e,t){for(var r=0;r<t.length;r++){const s=t[r];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(s,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();function Mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ru={exports:{}},xi={},Du={exports:{}},se={};/**
|
|
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 Ks=Symbol.for("react.element"),cp=Symbol.for("react.portal"),dp=Symbol.for("react.fragment"),up=Symbol.for("react.strict_mode"),hp=Symbol.for("react.profiler"),fp=Symbol.for("react.provider"),mp=Symbol.for("react.context"),pp=Symbol.for("react.forward_ref"),xp=Symbol.for("react.suspense"),gp=Symbol.for("react.memo"),vp=Symbol.for("react.lazy"),Vc=Symbol.iterator;function yp(e){return e===null||typeof e!="object"?null:(e=Vc&&e[Vc]||e["@@iterator"],typeof e=="function"?e:null)}var Lu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Iu=Object.assign,_u={};function Kn(e,t,r){this.props=e,this.context=t,this.refs=_u,this.updater=r||Lu}Kn.prototype.isReactComponent={};Kn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Kn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ou(){}Ou.prototype=Kn.prototype;function Mo(e,t,r){this.props=e,this.context=t,this.refs=_u,this.updater=r||Lu}var Ro=Mo.prototype=new Ou;Ro.constructor=Mo;Iu(Ro,Kn.prototype);Ro.isPureReactComponent=!0;var Wc=Array.isArray,Au=Object.prototype.hasOwnProperty,Do={current:null},Fu={key:!0,ref:!0,__self:!0,__source:!0};function $u(e,t,r){var s,a={},i=null,l=null;if(t!=null)for(s in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Au.call(t,s)&&!Fu.hasOwnProperty(s)&&(a[s]=t[s]);var o=arguments.length-2;if(o===1)a.children=r;else if(1<o){for(var c=Array(o),u=0;u<o;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(s in o=e.defaultProps,o)a[s]===void 0&&(a[s]=o[s]);return{$$typeof:Ks,type:e,key:i,ref:l,props:a,_owner:Do.current}}function wp(e,t){return{$$typeof:Ks,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Lo(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ks}function bp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Hc=/\/+/g;function Bi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bp(""+e.key):t.toString(36)}function Ea(e,t,r,s,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Ks:case cp:l=!0}}if(l)return l=e,a=a(l),e=s===""?"."+Bi(l,0):s,Wc(a)?(r="",e!=null&&(r=e.replace(Hc,"$&/")+"/"),Ea(a,t,r,"",function(u){return u})):a!=null&&(Lo(a)&&(a=wp(a,r+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(Hc,"$&/")+"/")+e)),t.push(a)),1;if(l=0,s=s===""?".":s+":",Wc(e))for(var o=0;o<e.length;o++){i=e[o];var c=s+Bi(i,o);l+=Ea(i,t,r,c,a)}else if(c=yp(e),typeof c=="function")for(e=c.call(e),o=0;!(i=e.next()).done;)i=i.value,c=s+Bi(i,o++),l+=Ea(i,t,r,c,a);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function sa(e,t,r){if(e==null)return e;var s=[],a=0;return Ea(e,s,"","",function(i){return t.call(r,i,a++)}),s}function jp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ge={current:null},Pa={transition:null},Np={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:Pa,ReactCurrentOwner:Do};function Uu(){throw Error("act(...) is not supported in production builds of React.")}se.Children={map:sa,forEach:function(e,t,r){sa(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return sa(e,function(){t++}),t},toArray:function(e){return sa(e,function(t){return t})||[]},only:function(e){if(!Lo(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};se.Component=Kn;se.Fragment=dp;se.Profiler=hp;se.PureComponent=Mo;se.StrictMode=up;se.Suspense=xp;se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Np;se.act=Uu;se.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=Iu({},e.props),a=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Do.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(c in t)Au.call(t,c)&&!Fu.hasOwnProperty(c)&&(s[c]=t[c]===void 0&&o!==void 0?o[c]:t[c])}var c=arguments.length-2;if(c===1)s.children=r;else if(1<c){o=Array(c);for(var u=0;u<c;u++)o[u]=arguments[u+2];s.children=o}return{$$typeof:Ks,type:e.type,key:a,ref:i,props:s,_owner:l}};se.createContext=function(e){return e={$$typeof:mp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:fp,_context:e},e.Consumer=e};se.createElement=$u;se.createFactory=function(e){var t=$u.bind(null,e);return t.type=e,t};se.createRef=function(){return{current:null}};se.forwardRef=function(e){return{$$typeof:pp,render:e}};se.isValidElement=Lo;se.lazy=function(e){return{$$typeof:vp,_payload:{_status:-1,_result:e},_init:jp}};se.memo=function(e,t){return{$$typeof:gp,type:e,compare:t===void 0?null:t}};se.startTransition=function(e){var t=Pa.transition;Pa.transition={};try{e()}finally{Pa.transition=t}};se.unstable_act=Uu;se.useCallback=function(e,t){return Ge.current.useCallback(e,t)};se.useContext=function(e){return Ge.current.useContext(e)};se.useDebugValue=function(){};se.useDeferredValue=function(e){return Ge.current.useDeferredValue(e)};se.useEffect=function(e,t){return Ge.current.useEffect(e,t)};se.useId=function(){return Ge.current.useId()};se.useImperativeHandle=function(e,t,r){return Ge.current.useImperativeHandle(e,t,r)};se.useInsertionEffect=function(e,t){return Ge.current.useInsertionEffect(e,t)};se.useLayoutEffect=function(e,t){return Ge.current.useLayoutEffect(e,t)};se.useMemo=function(e,t){return Ge.current.useMemo(e,t)};se.useReducer=function(e,t,r){return Ge.current.useReducer(e,t,r)};se.useRef=function(e){return Ge.current.useRef(e)};se.useState=function(e){return Ge.current.useState(e)};se.useSyncExternalStore=function(e,t,r){return Ge.current.useSyncExternalStore(e,t,r)};se.useTransition=function(){return Ge.current.useTransition()};se.version="18.3.1";Du.exports=se;var h=Du.exports;const $=Mu(h),Io=op({__proto__:null,default:$},[h]);/**
|
|
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 kp=h,Sp=Symbol.for("react.element"),Cp=Symbol.for("react.fragment"),Ep=Object.prototype.hasOwnProperty,Pp=kp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Tp={key:!0,ref:!0,__self:!0,__source:!0};function Bu(e,t,r){var s,a={},i=null,l=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(s in t)Ep.call(t,s)&&!Tp.hasOwnProperty(s)&&(a[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)a[s]===void 0&&(a[s]=t[s]);return{$$typeof:Sp,type:e,key:i,ref:l,props:a,_owner:Pp.current}}xi.Fragment=Cp;xi.jsx=Bu;xi.jsxs=Bu;Ru.exports=xi;var n=Ru.exports,El={},Vu={exports:{}},ut={},Wu={exports:{}},Hu={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(T,F){var B=T.length;T.push(F);e:for(;0<B;){var Y=B-1>>>1,S=T[Y];if(0<a(S,F))T[Y]=F,T[B]=S,B=Y;else break e}}function r(T){return T.length===0?null:T[0]}function s(T){if(T.length===0)return null;var F=T[0],B=T.pop();if(B!==F){T[0]=B;e:for(var Y=0,S=T.length,k=S>>>1;Y<k;){var O=2*(Y+1)-1,D=T[O],H=O+1,X=T[H];if(0>a(D,B))H<S&&0>a(X,D)?(T[Y]=X,T[H]=B,Y=H):(T[Y]=D,T[O]=B,Y=O);else if(H<S&&0>a(X,B))T[Y]=X,T[H]=B,Y=H;else break e}}return F}function a(T,F){var B=T.sortIndex-F.sortIndex;return B!==0?B:T.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var c=[],u=[],f=1,d=null,x=3,y=!1,w=!1,v=!1,j=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(T){for(var F=r(u);F!==null;){if(F.callback===null)s(u);else if(F.startTime<=T)s(u),F.sortIndex=F.expirationTime,t(c,F);else break;F=r(u)}}function N(T){if(v=!1,g(T),!w)if(r(c)!==null)w=!0,C(b);else{var F=r(u);F!==null&&A(N,F.startTime-T)}}function b(T,F){w=!1,v&&(v=!1,m(R),R=-1),y=!0;var B=x;try{for(g(F),d=r(c);d!==null&&(!(d.expirationTime>F)||T&&!J());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,x=d.priorityLevel;var S=Y(d.expirationTime<=F);F=e.unstable_now(),typeof S=="function"?d.callback=S:d===r(c)&&s(c),g(F)}else s(c);d=r(c)}if(d!==null)var k=!0;else{var O=r(u);O!==null&&A(N,O.startTime-F),k=!1}return k}finally{d=null,x=B,y=!1}}var P=!1,E=null,R=-1,W=5,U=-1;function J(){return!(e.unstable_now()-U<W)}function K(){if(E!==null){var T=e.unstable_now();U=T;var F=!0;try{F=E(!0,T)}finally{F?q():(P=!1,E=null)}}else P=!1}var q;if(typeof p=="function")q=function(){p(K)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ne=re.port2;re.port1.onmessage=K,q=function(){ne.postMessage(null)}}else q=function(){j(K,0)};function C(T){E=T,P||(P=!0,q())}function A(T,F){R=j(function(){T(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,C(b))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(T){switch(x){case 1:case 2:case 3:var F=3;break;default:F=x}var B=x;x=F;try{return T()}finally{x=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,F){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var B=x;x=T;try{return F()}finally{x=B}},e.unstable_scheduleCallback=function(T,F,B){var Y=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?Y+B:Y):B=Y,T){case 1:var S=-1;break;case 2:S=250;break;case 5:S=1073741823;break;case 4:S=1e4;break;default:S=5e3}return S=B+S,T={id:f++,callback:F,priorityLevel:T,startTime:B,expirationTime:S,sortIndex:-1},B>Y?(T.sortIndex=B,t(u,T),r(c)===null&&T===r(u)&&(v?(m(R),R=-1):v=!0,A(N,B-Y))):(T.sortIndex=S,t(c,T),w||y||(w=!0,C(b))),T},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(T){var F=x;return function(){var B=x;x=F;try{return T.apply(this,arguments)}finally{x=B}}}})(Hu);Wu.exports=Hu;var zp=Wu.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 Mp=h,dt=zp;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 Ku=new Set,Ss={};function tn(e,t){An(e,t),An(e+"Capture",t)}function An(e,t){for(Ss[e]=t,e=0;e<t.length;e++)Ku.add(t[e])}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pl=Object.prototype.hasOwnProperty,Rp=/^[: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]*$/,Kc={},Qc={};function Dp(e){return Pl.call(Qc,e)?!0:Pl.call(Kc,e)?!1:Rp.test(e)?Qc[e]=!0:(Kc[e]=!0,!1)}function Lp(e,t,r,s){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ip(e,t,r,s){if(t===null||typeof t>"u"||Lp(e,t,r,s))return!0;if(s)return!1;if(r!==null)switch(r.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 Xe(e,t,r,s,a,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Oe[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Oe[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Oe[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Oe[e]=new Xe(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){Oe[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Oe[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Oe[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Oe[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Oe[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var _o=/[\-:]([a-z])/g;function Oo(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(_o,Oo);Oe[t]=new Xe(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(_o,Oo);Oe[t]=new Xe(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(_o,Oo);Oe[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Oe[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Oe.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Oe[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ao(e,t,r,s){var a=Oe.hasOwnProperty(t)?Oe[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ip(t,r,a,s)&&(r=null),s||a===null?Dp(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,s=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,s?e.setAttributeNS(s,t,r):e.setAttribute(t,r))))}var rr=Mp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,aa=Symbol.for("react.element"),xn=Symbol.for("react.portal"),gn=Symbol.for("react.fragment"),Fo=Symbol.for("react.strict_mode"),Tl=Symbol.for("react.profiler"),Qu=Symbol.for("react.provider"),Yu=Symbol.for("react.context"),$o=Symbol.for("react.forward_ref"),zl=Symbol.for("react.suspense"),Ml=Symbol.for("react.suspense_list"),Uo=Symbol.for("react.memo"),dr=Symbol.for("react.lazy"),Gu=Symbol.for("react.offscreen"),Yc=Symbol.iterator;function Jn(e){return e===null||typeof e!="object"?null:(e=Yc&&e[Yc]||e["@@iterator"],typeof e=="function"?e:null)}var je=Object.assign,Vi;function us(e){if(Vi===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Vi=t&&t[1]||""}return`
|
|
34
|
-
`+Vi+e}var Wi=!1;function Hi(e,t){if(!e||Wi)return"";Wi=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var s=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){s=u}e.call(t.prototype)}else{try{throw Error()}catch(u){s=u}e()}}catch(u){if(u&&s&&typeof u.stack=="string"){for(var a=u.stack.split(`
|
|
35
|
-
`),i=s.stack.split(`
|
|
36
|
-
`),l=a.length-1,o=i.length-1;1<=l&&0<=o&&a[l]!==i[o];)o--;for(;1<=l&&0<=o;l--,o--)if(a[l]!==i[o]){if(l!==1||o!==1)do if(l--,o--,0>o||a[l]!==i[o]){var c=`
|
|
37
|
-
`+a[l].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=l&&0<=o);break}}}finally{Wi=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?us(e):""}function _p(e){switch(e.tag){case 5:return us(e.type);case 16:return us("Lazy");case 13:return us("Suspense");case 19:return us("SuspenseList");case 0:case 2:case 15:return e=Hi(e.type,!1),e;case 11:return e=Hi(e.type.render,!1),e;case 1:return e=Hi(e.type,!0),e;default:return""}}function Rl(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 gn:return"Fragment";case xn:return"Portal";case Tl:return"Profiler";case Fo:return"StrictMode";case zl:return"Suspense";case Ml:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yu:return(e.displayName||"Context")+".Consumer";case Qu: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 Uo:return t=e.displayName||null,t!==null?t:Rl(e.type)||"Memo";case dr:t=e._payload,e=e._init;try{return Rl(e(t))}catch{}}return null}function Op(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 Rl(t);case 8:return t===Fo?"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 Er(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ap(e){var t=Xu(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){s=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(l){s=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ia(e){e._valueTracker||(e._valueTracker=Ap(e))}function Ju(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=Xu(e)?e.checked?"true":"false":e.value),e=s,e!==r?(t.setValue(e),!0):!1}function Ba(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 Dl(e,t){var r=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Gc(e,t){var r=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;r=Er(t.value!=null?t.value:r),e._wrapperState={initialChecked:s,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zu(e,t){t=t.checked,t!=null&&Ao(e,"checked",t,!1)}function Ll(e,t){Zu(e,t);var r=Er(t.value),s=t.type;if(r!=null)s==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Il(e,t.type,r):t.hasOwnProperty("defaultValue")&&Il(e,t.type,Er(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xc(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Il(e,t,r){(t!=="number"||Ba(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var hs=Array.isArray;function Pn(e,t,r,s){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&s&&(e[r].defaultSelected=!0)}else{for(r=""+Er(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function _l(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jc(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(I(92));if(hs(r)){if(1<r.length)throw Error(I(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Er(r)}}function qu(e,t){var r=Er(t.value),s=Er(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),s!=null&&(e.defaultValue=""+s)}function Zc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function eh(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 Ol(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?eh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var la,th=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,s,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,s,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(la=la||document.createElement("div"),la.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=la.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cs(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var xs={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},Fp=["Webkit","ms","Moz","O"];Object.keys(xs).forEach(function(e){Fp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xs[t]=xs[e]})});function rh(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||xs.hasOwnProperty(e)&&xs[e]?(""+t).trim():t+"px"}function nh(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var s=r.indexOf("--")===0,a=rh(r,t[r],s);r==="float"&&(r="cssFloat"),s?e.setProperty(r,a):e[r]=a}}var $p=je({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 Al(e,t){if(t){if($p[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Fl(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 $l=null;function Bo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ul=null,Tn=null,zn=null;function qc(e){if(e=Gs(e)){if(typeof Ul!="function")throw Error(I(280));var t=e.stateNode;t&&(t=bi(t),Ul(e.stateNode,e.type,t))}}function sh(e){Tn?zn?zn.push(e):zn=[e]:Tn=e}function ah(){if(Tn){var e=Tn,t=zn;if(zn=Tn=null,qc(e),t)for(e=0;e<t.length;e++)qc(t[e])}}function ih(e,t){return e(t)}function lh(){}var Ki=!1;function oh(e,t,r){if(Ki)return e(t,r);Ki=!0;try{return ih(e,t,r)}finally{Ki=!1,(Tn!==null||zn!==null)&&(lh(),ah())}}function Es(e,t){var r=e.stateNode;if(r===null)return null;var s=bi(r);if(s===null)return null;r=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(I(231,t,typeof r));return r}var Bl=!1;if(Zt)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Bl=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{Bl=!1}function Up(e,t,r,s,a,i,l,o,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(f){this.onError(f)}}var gs=!1,Va=null,Wa=!1,Vl=null,Bp={onError:function(e){gs=!0,Va=e}};function Vp(e,t,r,s,a,i,l,o,c){gs=!1,Va=null,Up.apply(Bp,arguments)}function Wp(e,t,r,s,a,i,l,o,c){if(Vp.apply(this,arguments),gs){if(gs){var u=Va;gs=!1,Va=null}else throw Error(I(198));Wa||(Wa=!0,Vl=u)}}function rn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function ch(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 ed(e){if(rn(e)!==e)throw Error(I(188))}function Hp(e){var t=e.alternate;if(!t){if(t=rn(e),t===null)throw Error(I(188));return t!==e?null:e}for(var r=e,s=t;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(s=a.return,s!==null){r=s;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return ed(a),e;if(i===s)return ed(a),t;i=i.sibling}throw Error(I(188))}if(r.return!==s.return)r=a,s=i;else{for(var l=!1,o=a.child;o;){if(o===r){l=!0,r=a,s=i;break}if(o===s){l=!0,s=a,r=i;break}o=o.sibling}if(!l){for(o=i.child;o;){if(o===r){l=!0,r=i,s=a;break}if(o===s){l=!0,s=i,r=a;break}o=o.sibling}if(!l)throw Error(I(189))}}if(r.alternate!==s)throw Error(I(190))}if(r.tag!==3)throw Error(I(188));return r.stateNode.current===r?e:t}function dh(e){return e=Hp(e),e!==null?uh(e):null}function uh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=uh(e);if(t!==null)return t;e=e.sibling}return null}var hh=dt.unstable_scheduleCallback,td=dt.unstable_cancelCallback,Kp=dt.unstable_shouldYield,Qp=dt.unstable_requestPaint,Se=dt.unstable_now,Yp=dt.unstable_getCurrentPriorityLevel,Vo=dt.unstable_ImmediatePriority,fh=dt.unstable_UserBlockingPriority,Ha=dt.unstable_NormalPriority,Gp=dt.unstable_LowPriority,mh=dt.unstable_IdlePriority,gi=null,Ft=null;function Xp(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(gi,e,void 0,(e.current.flags&128)===128)}catch{}}var Et=Math.clz32?Math.clz32:qp,Jp=Math.log,Zp=Math.LN2;function qp(e){return e>>>=0,e===0?32:31-(Jp(e)/Zp|0)|0}var oa=64,ca=4194304;function fs(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 Ka(e,t){var r=e.pendingLanes;if(r===0)return 0;var s=0,a=e.suspendedLanes,i=e.pingedLanes,l=r&268435455;if(l!==0){var o=l&~a;o!==0?s=fs(o):(i&=l,i!==0&&(s=fs(i)))}else l=r&~a,l!==0?s=fs(l):i!==0&&(s=fs(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&a)&&(a=s&-s,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(s&4&&(s|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)r=31-Et(t),a=1<<r,s|=e[r],t&=~a;return s}function ex(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 tx(e,t){for(var r=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Et(i),o=1<<l,c=a[l];c===-1?(!(o&r)||o&s)&&(a[l]=ex(o,t)):c<=t&&(e.expiredLanes|=o),i&=~o}}function Wl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ph(){var e=oa;return oa<<=1,!(oa&4194240)&&(oa=64),e}function Qi(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Qs(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=r}function rx(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-Et(r),i=1<<a;t[a]=0,s[a]=-1,e[a]=-1,r&=~i}}function Wo(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var s=31-Et(r),a=1<<s;a&t|e[s]&t&&(e[s]|=t),r&=~a}}var ce=0;function xh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gh,Ho,vh,yh,wh,Hl=!1,da=[],gr=null,vr=null,yr=null,Ps=new Map,Ts=new Map,hr=[],nx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rd(e,t){switch(e){case"focusin":case"focusout":gr=null;break;case"dragenter":case"dragleave":vr=null;break;case"mouseover":case"mouseout":yr=null;break;case"pointerover":case"pointerout":Ps.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ts.delete(t.pointerId)}}function qn(e,t,r,s,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:s,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Gs(t),t!==null&&Ho(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function sx(e,t,r,s,a){switch(t){case"focusin":return gr=qn(gr,e,t,r,s,a),!0;case"dragenter":return vr=qn(vr,e,t,r,s,a),!0;case"mouseover":return yr=qn(yr,e,t,r,s,a),!0;case"pointerover":var i=a.pointerId;return Ps.set(i,qn(Ps.get(i)||null,e,t,r,s,a)),!0;case"gotpointercapture":return i=a.pointerId,Ts.set(i,qn(Ts.get(i)||null,e,t,r,s,a)),!0}return!1}function bh(e){var t=Fr(e.target);if(t!==null){var r=rn(t);if(r!==null){if(t=r.tag,t===13){if(t=ch(r),t!==null){e.blockedOn=t,wh(e.priority,function(){vh(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ta(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Kl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var s=new r.constructor(r.type,r);$l=s,r.target.dispatchEvent(s),$l=null}else return t=Gs(r),t!==null&&Ho(t),e.blockedOn=r,!1;t.shift()}return!0}function nd(e,t,r){Ta(e)&&r.delete(t)}function ax(){Hl=!1,gr!==null&&Ta(gr)&&(gr=null),vr!==null&&Ta(vr)&&(vr=null),yr!==null&&Ta(yr)&&(yr=null),Ps.forEach(nd),Ts.forEach(nd)}function es(e,t){e.blockedOn===t&&(e.blockedOn=null,Hl||(Hl=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,ax)))}function zs(e){function t(a){return es(a,e)}if(0<da.length){es(da[0],e);for(var r=1;r<da.length;r++){var s=da[r];s.blockedOn===e&&(s.blockedOn=null)}}for(gr!==null&&es(gr,e),vr!==null&&es(vr,e),yr!==null&&es(yr,e),Ps.forEach(t),Ts.forEach(t),r=0;r<hr.length;r++)s=hr[r],s.blockedOn===e&&(s.blockedOn=null);for(;0<hr.length&&(r=hr[0],r.blockedOn===null);)bh(r),r.blockedOn===null&&hr.shift()}var Mn=rr.ReactCurrentBatchConfig,Qa=!0;function ix(e,t,r,s){var a=ce,i=Mn.transition;Mn.transition=null;try{ce=1,Ko(e,t,r,s)}finally{ce=a,Mn.transition=i}}function lx(e,t,r,s){var a=ce,i=Mn.transition;Mn.transition=null;try{ce=4,Ko(e,t,r,s)}finally{ce=a,Mn.transition=i}}function Ko(e,t,r,s){if(Qa){var a=Kl(e,t,r,s);if(a===null)nl(e,t,s,Ya,r),rd(e,s);else if(sx(a,e,t,r,s))s.stopPropagation();else if(rd(e,s),t&4&&-1<nx.indexOf(e)){for(;a!==null;){var i=Gs(a);if(i!==null&&gh(i),i=Kl(e,t,r,s),i===null&&nl(e,t,s,Ya,r),i===a)break;a=i}a!==null&&s.stopPropagation()}else nl(e,t,s,null,r)}}var Ya=null;function Kl(e,t,r,s){if(Ya=null,e=Bo(s),e=Fr(e),e!==null)if(t=rn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=ch(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ya=e,null}function jh(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(Yp()){case Vo:return 1;case fh:return 4;case Ha:case Gp:return 16;case mh:return 536870912;default:return 16}default:return 16}}var mr=null,Qo=null,za=null;function Nh(){if(za)return za;var e,t=Qo,r=t.length,s,a="value"in mr?mr.value:mr.textContent,i=a.length;for(e=0;e<r&&t[e]===a[e];e++);var l=r-e;for(s=1;s<=l&&t[r-s]===a[i-s];s++);return za=a.slice(e,1<s?1-s:void 0)}function Ma(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 ua(){return!0}function sd(){return!1}function ht(e){function t(r,s,a,i,l){this._reactName=r,this._targetInst=a,this.type=s,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(r=e[o],this[o]=r?r(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ua:sd,this.isPropagationStopped=sd,this}return je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ua)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ua)},persist:function(){},isPersistent:ua}),t}var Qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yo=ht(Qn),Ys=je({},Qn,{view:0,detail:0}),ox=ht(Ys),Yi,Gi,ts,vi=je({},Ys,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Go,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!==ts&&(ts&&e.type==="mousemove"?(Yi=e.screenX-ts.screenX,Gi=e.screenY-ts.screenY):Gi=Yi=0,ts=e),Yi)},movementY:function(e){return"movementY"in e?e.movementY:Gi}}),ad=ht(vi),cx=je({},vi,{dataTransfer:0}),dx=ht(cx),ux=je({},Ys,{relatedTarget:0}),Xi=ht(ux),hx=je({},Qn,{animationName:0,elapsedTime:0,pseudoElement:0}),fx=ht(hx),mx=je({},Qn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),px=ht(mx),xx=je({},Qn,{data:0}),id=ht(xx),gx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vx={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"},yx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yx[e])?!!t[e]:!1}function Go(){return wx}var bx=je({},Ys,{key:function(e){if(e.key){var t=gx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ma(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Go,charCode:function(e){return e.type==="keypress"?Ma(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ma(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jx=ht(bx),Nx=je({},vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ld=ht(Nx),kx=je({},Ys,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Go}),Sx=ht(kx),Cx=je({},Qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ex=ht(Cx),Px=je({},vi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tx=ht(Px),zx=[9,13,27,32],Xo=Zt&&"CompositionEvent"in window,vs=null;Zt&&"documentMode"in document&&(vs=document.documentMode);var Mx=Zt&&"TextEvent"in window&&!vs,kh=Zt&&(!Xo||vs&&8<vs&&11>=vs),od=" ",cd=!1;function Sh(e,t){switch(e){case"keyup":return zx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ch(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vn=!1;function Rx(e,t){switch(e){case"compositionend":return Ch(t);case"keypress":return t.which!==32?null:(cd=!0,od);case"textInput":return e=t.data,e===od&&cd?null:e;default:return null}}function Dx(e,t){if(vn)return e==="compositionend"||!Xo&&Sh(e,t)?(e=Nh(),za=Qo=mr=null,vn=!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 kh&&t.locale!=="ko"?null:t.data;default:return null}}var Lx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Lx[e.type]:t==="textarea"}function Eh(e,t,r,s){sh(s),t=Ga(t,"onChange"),0<t.length&&(r=new Yo("onChange","change",null,r,s),e.push({event:r,listeners:t}))}var ys=null,Ms=null;function Ix(e){Ah(e,0)}function yi(e){var t=bn(e);if(Ju(t))return e}function _x(e,t){if(e==="change")return t}var Ph=!1;if(Zt){var Ji;if(Zt){var Zi="oninput"in document;if(!Zi){var ud=document.createElement("div");ud.setAttribute("oninput","return;"),Zi=typeof ud.oninput=="function"}Ji=Zi}else Ji=!1;Ph=Ji&&(!document.documentMode||9<document.documentMode)}function hd(){ys&&(ys.detachEvent("onpropertychange",Th),Ms=ys=null)}function Th(e){if(e.propertyName==="value"&&yi(Ms)){var t=[];Eh(t,Ms,e,Bo(e)),oh(Ix,t)}}function Ox(e,t,r){e==="focusin"?(hd(),ys=t,Ms=r,ys.attachEvent("onpropertychange",Th)):e==="focusout"&&hd()}function Ax(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yi(Ms)}function Fx(e,t){if(e==="click")return yi(t)}function $x(e,t){if(e==="input"||e==="change")return yi(t)}function Ux(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:Ux;function Rs(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var a=r[s];if(!Pl.call(t,a)||!Tt(e[a],t[a]))return!1}return!0}function fd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function md(e,t){var r=fd(e);e=0;for(var s;r;){if(r.nodeType===3){if(s=e+r.textContent.length,e<=t&&s>=t)return{node:r,offset:t-e};e=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fd(r)}}function zh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mh(){for(var e=window,t=Ba();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ba(e.document)}return t}function Jo(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 Bx(e){var t=Mh(),r=e.focusedElem,s=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&zh(r.ownerDocument.documentElement,r)){if(s!==null&&Jo(r)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(s.start,a);s=s.end===void 0?i:Math.min(s.end,a),!e.extend&&i>s&&(a=s,s=i,i=a),a=md(r,i);var l=md(r,s);a&&l&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Vx=Zt&&"documentMode"in document&&11>=document.documentMode,yn=null,Ql=null,ws=null,Yl=!1;function pd(e,t,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Yl||yn==null||yn!==Ba(s)||(s=yn,"selectionStart"in s&&Jo(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ws&&Rs(ws,s)||(ws=s,s=Ga(Ql,"onSelect"),0<s.length&&(t=new Yo("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=yn)))}function ha(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var wn={animationend:ha("Animation","AnimationEnd"),animationiteration:ha("Animation","AnimationIteration"),animationstart:ha("Animation","AnimationStart"),transitionend:ha("Transition","TransitionEnd")},qi={},Rh={};Zt&&(Rh=document.createElement("div").style,"AnimationEvent"in window||(delete wn.animationend.animation,delete wn.animationiteration.animation,delete wn.animationstart.animation),"TransitionEvent"in window||delete wn.transitionend.transition);function wi(e){if(qi[e])return qi[e];if(!wn[e])return e;var t=wn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Rh)return qi[e]=t[r];return e}var Dh=wi("animationend"),Lh=wi("animationiteration"),Ih=wi("animationstart"),_h=wi("transitionend"),Oh=new Map,xd="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 zr(e,t){Oh.set(e,t),tn(t,[e])}for(var el=0;el<xd.length;el++){var tl=xd[el],Wx=tl.toLowerCase(),Hx=tl[0].toUpperCase()+tl.slice(1);zr(Wx,"on"+Hx)}zr(Dh,"onAnimationEnd");zr(Lh,"onAnimationIteration");zr(Ih,"onAnimationStart");zr("dblclick","onDoubleClick");zr("focusin","onFocus");zr("focusout","onBlur");zr(_h,"onTransitionEnd");An("onMouseEnter",["mouseout","mouseover"]);An("onMouseLeave",["mouseout","mouseover"]);An("onPointerEnter",["pointerout","pointerover"]);An("onPointerLeave",["pointerout","pointerover"]);tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));tn("onBeforeInput",["compositionend","keypress","textInput","paste"]);tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="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(" "),Kx=new Set("cancel close invalid load scroll toggle".split(" ").concat(ms));function gd(e,t,r){var s=e.type||"unknown-event";e.currentTarget=r,Wp(s,t,void 0,e),e.currentTarget=null}function Ah(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var s=e[r],a=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var l=s.length-1;0<=l;l--){var o=s[l],c=o.instance,u=o.currentTarget;if(o=o.listener,c!==i&&a.isPropagationStopped())break e;gd(a,o,u),i=c}else for(l=0;l<s.length;l++){if(o=s[l],c=o.instance,u=o.currentTarget,o=o.listener,c!==i&&a.isPropagationStopped())break e;gd(a,o,u),i=c}}}if(Wa)throw e=Vl,Wa=!1,Vl=null,e}function me(e,t){var r=t[ql];r===void 0&&(r=t[ql]=new Set);var s=e+"__bubble";r.has(s)||(Fh(t,e,2,!1),r.add(s))}function rl(e,t,r){var s=0;t&&(s|=4),Fh(r,e,s,t)}var fa="_reactListening"+Math.random().toString(36).slice(2);function Ds(e){if(!e[fa]){e[fa]=!0,Ku.forEach(function(r){r!=="selectionchange"&&(Kx.has(r)||rl(r,!1,e),rl(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fa]||(t[fa]=!0,rl("selectionchange",!1,t))}}function Fh(e,t,r,s){switch(jh(t)){case 1:var a=ix;break;case 4:a=lx;break;default:a=Ko}r=a.bind(null,t,r,e),a=void 0,!Bl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),s?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function nl(e,t,r,s,a){var i=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var l=s.tag;if(l===3||l===4){var o=s.stateNode.containerInfo;if(o===a||o.nodeType===8&&o.parentNode===a)break;if(l===4)for(l=s.return;l!==null;){var c=l.tag;if((c===3||c===4)&&(c=l.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;l=l.return}for(;o!==null;){if(l=Fr(o),l===null)return;if(c=l.tag,c===5||c===6){s=i=l;continue e}o=o.parentNode}}s=s.return}oh(function(){var u=i,f=Bo(r),d=[];e:{var x=Oh.get(e);if(x!==void 0){var y=Yo,w=e;switch(e){case"keypress":if(Ma(r)===0)break e;case"keydown":case"keyup":y=jx;break;case"focusin":w="focus",y=Xi;break;case"focusout":w="blur",y=Xi;break;case"beforeblur":case"afterblur":y=Xi;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=dx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Sx;break;case Dh:case Lh:case Ih:y=fx;break;case _h:y=Ex;break;case"scroll":y=ox;break;case"wheel":y=Tx;break;case"copy":case"cut":case"paste":y=px;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=ld}var v=(t&4)!==0,j=!v&&e==="scroll",m=v?x!==null?x+"Capture":null:x;v=[];for(var p=u,g;p!==null;){g=p;var N=g.stateNode;if(g.tag===5&&N!==null&&(g=N,m!==null&&(N=Es(p,m),N!=null&&v.push(Ls(p,N,g)))),j)break;p=p.return}0<v.length&&(x=new y(x,w,null,r,f),d.push({event:x,listeners:v}))}}if(!(t&7)){e:{if(x=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",x&&r!==$l&&(w=r.relatedTarget||r.fromElement)&&(Fr(w)||w[qt]))break e;if((y||x)&&(x=f.window===f?f:(x=f.ownerDocument)?x.defaultView||x.parentWindow:window,y?(w=r.relatedTarget||r.toElement,y=u,w=w?Fr(w):null,w!==null&&(j=rn(w),w!==j||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=u),y!==w)){if(v=ad,N="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=ld,N="onPointerLeave",m="onPointerEnter",p="pointer"),j=y==null?x:bn(y),g=w==null?x:bn(w),x=new v(N,p+"leave",y,r,f),x.target=j,x.relatedTarget=g,N=null,Fr(f)===u&&(v=new v(m,p+"enter",w,r,f),v.target=g,v.relatedTarget=j,N=v),j=N,y&&w)t:{for(v=y,m=w,p=0,g=v;g;g=cn(g))p++;for(g=0,N=m;N;N=cn(N))g++;for(;0<p-g;)v=cn(v),p--;for(;0<g-p;)m=cn(m),g--;for(;p--;){if(v===m||m!==null&&v===m.alternate)break t;v=cn(v),m=cn(m)}v=null}else v=null;y!==null&&vd(d,x,y,v,!1),w!==null&&j!==null&&vd(d,j,w,v,!0)}}e:{if(x=u?bn(u):window,y=x.nodeName&&x.nodeName.toLowerCase(),y==="select"||y==="input"&&x.type==="file")var b=_x;else if(dd(x))if(Ph)b=$x;else{b=Ax;var P=Ox}else(y=x.nodeName)&&y.toLowerCase()==="input"&&(x.type==="checkbox"||x.type==="radio")&&(b=Fx);if(b&&(b=b(e,u))){Eh(d,b,r,f);break e}P&&P(e,x,u),e==="focusout"&&(P=x._wrapperState)&&P.controlled&&x.type==="number"&&Il(x,"number",x.value)}switch(P=u?bn(u):window,e){case"focusin":(dd(P)||P.contentEditable==="true")&&(yn=P,Ql=u,ws=null);break;case"focusout":ws=Ql=yn=null;break;case"mousedown":Yl=!0;break;case"contextmenu":case"mouseup":case"dragend":Yl=!1,pd(d,r,f);break;case"selectionchange":if(Vx)break;case"keydown":case"keyup":pd(d,r,f)}var E;if(Xo)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else vn?Sh(e,r)&&(R="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(R="onCompositionStart");R&&(kh&&r.locale!=="ko"&&(vn||R!=="onCompositionStart"?R==="onCompositionEnd"&&vn&&(E=Nh()):(mr=f,Qo="value"in mr?mr.value:mr.textContent,vn=!0)),P=Ga(u,R),0<P.length&&(R=new id(R,e,null,r,f),d.push({event:R,listeners:P}),E?R.data=E:(E=Ch(r),E!==null&&(R.data=E)))),(E=Mx?Rx(e,r):Dx(e,r))&&(u=Ga(u,"onBeforeInput"),0<u.length&&(f=new id("onBeforeInput","beforeinput",null,r,f),d.push({event:f,listeners:u}),f.data=E))}Ah(d,t)})}function Ls(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ga(e,t){for(var r=t+"Capture",s=[];e!==null;){var a=e,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=Es(e,r),i!=null&&s.unshift(Ls(e,i,a)),i=Es(e,t),i!=null&&s.push(Ls(e,i,a))),e=e.return}return s}function cn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vd(e,t,r,s,a){for(var i=t._reactName,l=[];r!==null&&r!==s;){var o=r,c=o.alternate,u=o.stateNode;if(c!==null&&c===s)break;o.tag===5&&u!==null&&(o=u,a?(c=Es(r,i),c!=null&&l.unshift(Ls(r,c,o))):a||(c=Es(r,i),c!=null&&l.push(Ls(r,c,o)))),r=r.return}l.length!==0&&e.push({event:t,listeners:l})}var Qx=/\r\n?/g,Yx=/\u0000|\uFFFD/g;function yd(e){return(typeof e=="string"?e:""+e).replace(Qx,`
|
|
38
|
-
`).replace(Yx,"")}function ma(e,t,r){if(t=yd(t),yd(e)!==t&&r)throw Error(I(425))}function Xa(){}var Gl=null,Xl=null;function Jl(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 Zl=typeof setTimeout=="function"?setTimeout:void 0,Gx=typeof clearTimeout=="function"?clearTimeout:void 0,wd=typeof Promise=="function"?Promise:void 0,Xx=typeof queueMicrotask=="function"?queueMicrotask:typeof wd<"u"?function(e){return wd.resolve(null).then(e).catch(Jx)}:Zl;function Jx(e){setTimeout(function(){throw e})}function sl(e,t){var r=t,s=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(s===0){e.removeChild(a),zs(t);return}s--}else r!=="$"&&r!=="$?"&&r!=="$!"||s++;r=a}while(r);zs(t)}function wr(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 bd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Yn=Math.random().toString(36).slice(2),Ot="__reactFiber$"+Yn,Is="__reactProps$"+Yn,qt="__reactContainer$"+Yn,ql="__reactEvents$"+Yn,Zx="__reactListeners$"+Yn,qx="__reactHandles$"+Yn;function Fr(e){var t=e[Ot];if(t)return t;for(var r=e.parentNode;r;){if(t=r[qt]||r[Ot]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=bd(e);e!==null;){if(r=e[Ot])return r;e=bd(e)}return t}e=r,r=e.parentNode}return null}function Gs(e){return e=e[Ot]||e[qt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function bi(e){return e[Is]||null}var eo=[],jn=-1;function Mr(e){return{current:e}}function pe(e){0>jn||(e.current=eo[jn],eo[jn]=null,jn--)}function he(e,t){jn++,eo[jn]=e.current,e.current=t}var Pr={},Ke=Mr(Pr),rt=Mr(!1),Kr=Pr;function Fn(e,t){var r=e.type.contextTypes;if(!r)return Pr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function nt(e){return e=e.childContextTypes,e!=null}function Ja(){pe(rt),pe(Ke)}function jd(e,t,r){if(Ke.current!==Pr)throw Error(I(168));he(Ke,t),he(rt,r)}function $h(e,t,r){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return r;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error(I(108,Op(e)||"Unknown",a));return je({},r,s)}function Za(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pr,Kr=Ke.current,he(Ke,e),he(rt,rt.current),!0}function Nd(e,t,r){var s=e.stateNode;if(!s)throw Error(I(169));r?(e=$h(e,t,Kr),s.__reactInternalMemoizedMergedChildContext=e,pe(rt),pe(Ke),he(Ke,e)):pe(rt),he(rt,r)}var Qt=null,ji=!1,al=!1;function Uh(e){Qt===null?Qt=[e]:Qt.push(e)}function eg(e){ji=!0,Uh(e)}function Rr(){if(!al&&Qt!==null){al=!0;var e=0,t=ce;try{var r=Qt;for(ce=1;e<r.length;e++){var s=r[e];do s=s(!0);while(s!==null)}Qt=null,ji=!1}catch(a){throw Qt!==null&&(Qt=Qt.slice(e+1)),hh(Vo,Rr),a}finally{ce=t,al=!1}}return null}var Nn=[],kn=0,qa=null,ei=0,mt=[],pt=0,Qr=null,Yt=1,Gt="";function _r(e,t){Nn[kn++]=ei,Nn[kn++]=qa,qa=e,ei=t}function Bh(e,t,r){mt[pt++]=Yt,mt[pt++]=Gt,mt[pt++]=Qr,Qr=e;var s=Yt;e=Gt;var a=32-Et(s)-1;s&=~(1<<a),r+=1;var i=32-Et(t)+a;if(30<i){var l=a-a%5;i=(s&(1<<l)-1).toString(32),s>>=l,a-=l,Yt=1<<32-Et(t)+a|r<<a|s,Gt=i+e}else Yt=1<<i|r<<a|s,Gt=e}function Zo(e){e.return!==null&&(_r(e,1),Bh(e,1,0))}function qo(e){for(;e===qa;)qa=Nn[--kn],Nn[kn]=null,ei=Nn[--kn],Nn[kn]=null;for(;e===Qr;)Qr=mt[--pt],mt[pt]=null,Gt=mt[--pt],mt[pt]=null,Yt=mt[--pt],mt[pt]=null}var ct=null,ot=null,ge=!1,Ct=null;function Vh(e,t){var r=xt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function kd(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,ot=wr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Qr!==null?{id:Yt,overflow:Gt}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=xt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,ct=e,ot=null,!0):!1;default:return!1}}function to(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ro(e){if(ge){var t=ot;if(t){var r=t;if(!kd(e,t)){if(to(e))throw Error(I(418));t=wr(r.nextSibling);var s=ct;t&&kd(e,t)?Vh(s,r):(e.flags=e.flags&-4097|2,ge=!1,ct=e)}}else{if(to(e))throw Error(I(418));e.flags=e.flags&-4097|2,ge=!1,ct=e}}}function Sd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function pa(e){if(e!==ct)return!1;if(!ge)return Sd(e),ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Jl(e.type,e.memoizedProps)),t&&(t=ot)){if(to(e))throw Wh(),Error(I(418));for(;t;)Vh(e,t),t=wr(t.nextSibling)}if(Sd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ot=wr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ot=null}}else ot=ct?wr(e.stateNode.nextSibling):null;return!0}function Wh(){for(var e=ot;e;)e=wr(e.nextSibling)}function $n(){ot=ct=null,ge=!1}function ec(e){Ct===null?Ct=[e]:Ct.push(e)}var tg=rr.ReactCurrentBatchConfig;function rs(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(I(309));var s=r.stateNode}if(!s)throw Error(I(147,e));var a=s,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var o=a.refs;l===null?delete o[i]:o[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(I(284));if(!r._owner)throw Error(I(290,e))}return e}function xa(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cd(e){var t=e._init;return t(e._payload)}function Hh(e){function t(m,p){if(e){var g=m.deletions;g===null?(m.deletions=[p],m.flags|=16):g.push(p)}}function r(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function s(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function a(m,p){return m=kr(m,p),m.index=0,m.sibling=null,m}function i(m,p,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<p?(m.flags|=2,p):g):(m.flags|=2,p)):(m.flags|=1048576,p)}function l(m){return e&&m.alternate===null&&(m.flags|=2),m}function o(m,p,g,N){return p===null||p.tag!==6?(p=hl(g,m.mode,N),p.return=m,p):(p=a(p,g),p.return=m,p)}function c(m,p,g,N){var b=g.type;return b===gn?f(m,p,g.props.children,N,g.key):p!==null&&(p.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===dr&&Cd(b)===p.type)?(N=a(p,g.props),N.ref=rs(m,p,g),N.return=m,N):(N=Aa(g.type,g.key,g.props,null,m.mode,N),N.ref=rs(m,p,g),N.return=m,N)}function u(m,p,g,N){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=fl(g,m.mode,N),p.return=m,p):(p=a(p,g.children||[]),p.return=m,p)}function f(m,p,g,N,b){return p===null||p.tag!==7?(p=Vr(g,m.mode,N,b),p.return=m,p):(p=a(p,g),p.return=m,p)}function d(m,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=hl(""+p,m.mode,g),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case aa:return g=Aa(p.type,p.key,p.props,null,m.mode,g),g.ref=rs(m,null,p),g.return=m,g;case xn:return p=fl(p,m.mode,g),p.return=m,p;case dr:var N=p._init;return d(m,N(p._payload),g)}if(hs(p)||Jn(p))return p=Vr(p,m.mode,g,null),p.return=m,p;xa(m,p)}return null}function x(m,p,g,N){var b=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return b!==null?null:o(m,p,""+g,N);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case aa:return g.key===b?c(m,p,g,N):null;case xn:return g.key===b?u(m,p,g,N):null;case dr:return b=g._init,x(m,p,b(g._payload),N)}if(hs(g)||Jn(g))return b!==null?null:f(m,p,g,N,null);xa(m,g)}return null}function y(m,p,g,N,b){if(typeof N=="string"&&N!==""||typeof N=="number")return m=m.get(g)||null,o(p,m,""+N,b);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case aa:return m=m.get(N.key===null?g:N.key)||null,c(p,m,N,b);case xn:return m=m.get(N.key===null?g:N.key)||null,u(p,m,N,b);case dr:var P=N._init;return y(m,p,g,P(N._payload),b)}if(hs(N)||Jn(N))return m=m.get(g)||null,f(p,m,N,b,null);xa(p,N)}return null}function w(m,p,g,N){for(var b=null,P=null,E=p,R=p=0,W=null;E!==null&&R<g.length;R++){E.index>R?(W=E,E=null):W=E.sibling;var U=x(m,E,g[R],N);if(U===null){E===null&&(E=W);break}e&&E&&U.alternate===null&&t(m,E),p=i(U,p,R),P===null?b=U:P.sibling=U,P=U,E=W}if(R===g.length)return r(m,E),ge&&_r(m,R),b;if(E===null){for(;R<g.length;R++)E=d(m,g[R],N),E!==null&&(p=i(E,p,R),P===null?b=E:P.sibling=E,P=E);return ge&&_r(m,R),b}for(E=s(m,E);R<g.length;R++)W=y(E,m,R,g[R],N),W!==null&&(e&&W.alternate!==null&&E.delete(W.key===null?R:W.key),p=i(W,p,R),P===null?b=W:P.sibling=W,P=W);return e&&E.forEach(function(J){return t(m,J)}),ge&&_r(m,R),b}function v(m,p,g,N){var b=Jn(g);if(typeof b!="function")throw Error(I(150));if(g=b.call(g),g==null)throw Error(I(151));for(var P=b=null,E=p,R=p=0,W=null,U=g.next();E!==null&&!U.done;R++,U=g.next()){E.index>R?(W=E,E=null):W=E.sibling;var J=x(m,E,U.value,N);if(J===null){E===null&&(E=W);break}e&&E&&J.alternate===null&&t(m,E),p=i(J,p,R),P===null?b=J:P.sibling=J,P=J,E=W}if(U.done)return r(m,E),ge&&_r(m,R),b;if(E===null){for(;!U.done;R++,U=g.next())U=d(m,U.value,N),U!==null&&(p=i(U,p,R),P===null?b=U:P.sibling=U,P=U);return ge&&_r(m,R),b}for(E=s(m,E);!U.done;R++,U=g.next())U=y(E,m,R,U.value,N),U!==null&&(e&&U.alternate!==null&&E.delete(U.key===null?R:U.key),p=i(U,p,R),P===null?b=U:P.sibling=U,P=U);return e&&E.forEach(function(K){return t(m,K)}),ge&&_r(m,R),b}function j(m,p,g,N){if(typeof g=="object"&&g!==null&&g.type===gn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case aa:e:{for(var b=g.key,P=p;P!==null;){if(P.key===b){if(b=g.type,b===gn){if(P.tag===7){r(m,P.sibling),p=a(P,g.props.children),p.return=m,m=p;break e}}else if(P.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===dr&&Cd(b)===P.type){r(m,P.sibling),p=a(P,g.props),p.ref=rs(m,P,g),p.return=m,m=p;break e}r(m,P);break}else t(m,P);P=P.sibling}g.type===gn?(p=Vr(g.props.children,m.mode,N,g.key),p.return=m,m=p):(N=Aa(g.type,g.key,g.props,null,m.mode,N),N.ref=rs(m,p,g),N.return=m,m=N)}return l(m);case xn:e:{for(P=g.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){r(m,p.sibling),p=a(p,g.children||[]),p.return=m,m=p;break e}else{r(m,p);break}else t(m,p);p=p.sibling}p=fl(g,m.mode,N),p.return=m,m=p}return l(m);case dr:return P=g._init,j(m,p,P(g._payload),N)}if(hs(g))return w(m,p,g,N);if(Jn(g))return v(m,p,g,N);xa(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(r(m,p.sibling),p=a(p,g),p.return=m,m=p):(r(m,p),p=hl(g,m.mode,N),p.return=m,m=p),l(m)):r(m,p)}return j}var Un=Hh(!0),Kh=Hh(!1),ti=Mr(null),ri=null,Sn=null,tc=null;function rc(){tc=Sn=ri=null}function nc(e){var t=ti.current;pe(ti),e._currentValue=t}function no(e,t,r){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===r)break;e=e.return}}function Rn(e,t){ri=e,tc=Sn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tt=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(tc!==e)if(e={context:e,memoizedValue:t,next:null},Sn===null){if(ri===null)throw Error(I(308));Sn=e,ri.dependencies={lanes:0,firstContext:e}}else Sn=Sn.next=e;return t}var $r=null;function sc(e){$r===null?$r=[e]:$r.push(e)}function Qh(e,t,r,s){var a=t.interleaved;return a===null?(r.next=r,sc(t)):(r.next=a.next,a.next=r),t.interleaved=r,er(e,s)}function er(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ur=!1;function ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yh(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 Xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function br(e,t,r){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,le&2){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,er(e,r)}return a=s.interleaved,a===null?(t.next=t,sc(s)):(t.next=a.next,a.next=t),s.interleaved=t,er(e,r)}function Ra(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Wo(e,r)}}function Ed(e,t){var r=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var l={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?a=i=l:i=i.next=l,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:s.shared,effects:s.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ni(e,t,r,s){var a=e.updateQueue;ur=!1;var i=a.firstBaseUpdate,l=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var c=o,u=c.next;c.next=null,l===null?i=u:l.next=u,l=c;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==l&&(o===null?f.firstBaseUpdate=u:o.next=u,f.lastBaseUpdate=c))}if(i!==null){var d=a.baseState;l=0,f=u=c=null,o=i;do{var x=o.lane,y=o.eventTime;if((s&x)===x){f!==null&&(f=f.next={eventTime:y,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var w=e,v=o;switch(x=t,y=r,v.tag){case 1:if(w=v.payload,typeof w=="function"){d=w.call(y,d,x);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,x=typeof w=="function"?w.call(y,d,x):w,x==null)break e;d=je({},d,x);break e;case 2:ur=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,x=a.effects,x===null?a.effects=[o]:x.push(o))}else y={eventTime:y,lane:x,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=y,c=d):f=f.next=y,l|=x;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;x=o,o=x.next,x.next=null,a.lastBaseUpdate=x,a.shared.pending=null}}while(!0);if(f===null&&(c=d),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=f,t=a.shared.interleaved,t!==null){a=t;do l|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);Gr|=l,e.lanes=l,e.memoizedState=d}}function Pd(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(a!==null){if(s.callback=null,s=r,typeof a!="function")throw Error(I(191,a));a.call(s)}}}var Xs={},$t=Mr(Xs),_s=Mr(Xs),Os=Mr(Xs);function Ur(e){if(e===Xs)throw Error(I(174));return e}function ic(e,t){switch(he(Os,t),he(_s,e),he($t,Xs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ol(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ol(t,e)}pe($t),he($t,t)}function Bn(){pe($t),pe(_s),pe(Os)}function Gh(e){Ur(Os.current);var t=Ur($t.current),r=Ol(t,e.type);t!==r&&(he(_s,e),he($t,r))}function lc(e){_s.current===e&&(pe($t),pe(_s))}var ye=Mr(0);function si(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var il=[];function oc(){for(var e=0;e<il.length;e++)il[e]._workInProgressVersionPrimary=null;il.length=0}var Da=rr.ReactCurrentDispatcher,ll=rr.ReactCurrentBatchConfig,Yr=0,be=null,Pe=null,Me=null,ai=!1,bs=!1,As=0,rg=0;function Ue(){throw Error(I(321))}function cc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Tt(e[r],t[r]))return!1;return!0}function dc(e,t,r,s,a,i){if(Yr=i,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Da.current=e===null||e.memoizedState===null?ig:lg,e=r(s,a),bs){i=0;do{if(bs=!1,As=0,25<=i)throw Error(I(301));i+=1,Me=Pe=null,t.updateQueue=null,Da.current=og,e=r(s,a)}while(bs)}if(Da.current=ii,t=Pe!==null&&Pe.next!==null,Yr=0,Me=Pe=be=null,ai=!1,t)throw Error(I(300));return e}function uc(){var e=As!==0;return As=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?be.memoizedState=Me=e:Me=Me.next=e,Me}function yt(){if(Pe===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=Me===null?be.memoizedState:Me.next;if(t!==null)Me=t,Pe=e;else{if(e===null)throw Error(I(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Me===null?be.memoizedState=Me=e:Me=Me.next=e}return Me}function Fs(e,t){return typeof t=="function"?t(e):t}function ol(e){var t=yt(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var s=Pe,a=s.baseQueue,i=r.pending;if(i!==null){if(a!==null){var l=a.next;a.next=i.next,i.next=l}s.baseQueue=a=i,r.pending=null}if(a!==null){i=a.next,s=s.baseState;var o=l=null,c=null,u=i;do{var f=u.lane;if((Yr&f)===f)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),s=u.hasEagerState?u.eagerState:e(s,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(o=c=d,l=s):c=c.next=d,be.lanes|=f,Gr|=f}u=u.next}while(u!==null&&u!==i);c===null?l=s:c.next=o,Tt(s,t.memoizedState)||(tt=!0),t.memoizedState=s,t.baseState=l,t.baseQueue=c,r.lastRenderedState=s}if(e=r.interleaved,e!==null){a=e;do i=a.lane,be.lanes|=i,Gr|=i,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function cl(e){var t=yt(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var s=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var l=a=a.next;do i=e(i,l.action),l=l.next;while(l!==a);Tt(i,t.memoizedState)||(tt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,s]}function Xh(){}function Jh(e,t){var r=be,s=yt(),a=t(),i=!Tt(s.memoizedState,a);if(i&&(s.memoizedState=a,tt=!0),s=s.queue,hc(ef.bind(null,r,s,e),[e]),s.getSnapshot!==t||i||Me!==null&&Me.memoizedState.tag&1){if(r.flags|=2048,$s(9,qh.bind(null,r,s,a,t),void 0,null),Re===null)throw Error(I(349));Yr&30||Zh(r,t,a)}return a}function Zh(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function qh(e,t,r,s){t.value=r,t.getSnapshot=s,tf(t)&&rf(e)}function ef(e,t,r){return r(function(){tf(t)&&rf(e)})}function tf(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Tt(e,r)}catch{return!0}}function rf(e){var t=er(e,1);t!==null&&Pt(t,e,1,-1)}function Td(e){var t=_t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fs,lastRenderedState:e},t.queue=e,e=e.dispatch=ag.bind(null,be,e),[t.memoizedState,e]}function $s(e,t,r,s){return e={tag:e,create:t,destroy:r,deps:s,next:null},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(s=r.next,r.next=e,e.next=s,t.lastEffect=e)),e}function nf(){return yt().memoizedState}function La(e,t,r,s){var a=_t();be.flags|=e,a.memoizedState=$s(1|t,r,void 0,s===void 0?null:s)}function Ni(e,t,r,s){var a=yt();s=s===void 0?null:s;var i=void 0;if(Pe!==null){var l=Pe.memoizedState;if(i=l.destroy,s!==null&&cc(s,l.deps)){a.memoizedState=$s(t,r,i,s);return}}be.flags|=e,a.memoizedState=$s(1|t,r,i,s)}function zd(e,t){return La(8390656,8,e,t)}function hc(e,t){return Ni(2048,8,e,t)}function sf(e,t){return Ni(4,2,e,t)}function af(e,t){return Ni(4,4,e,t)}function lf(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 of(e,t,r){return r=r!=null?r.concat([e]):null,Ni(4,4,lf.bind(null,t,e),r)}function fc(){}function cf(e,t){var r=yt();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&cc(t,s[1])?s[0]:(r.memoizedState=[e,t],e)}function df(e,t){var r=yt();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&cc(t,s[1])?s[0]:(e=e(),r.memoizedState=[e,t],e)}function uf(e,t,r){return Yr&21?(Tt(r,t)||(r=ph(),be.lanes|=r,Gr|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tt=!0),e.memoizedState=r)}function ng(e,t){var r=ce;ce=r!==0&&4>r?r:4,e(!0);var s=ll.transition;ll.transition={};try{e(!1),t()}finally{ce=r,ll.transition=s}}function hf(){return yt().memoizedState}function sg(e,t,r){var s=Nr(e);if(r={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null},ff(e))mf(t,r);else if(r=Qh(e,t,r,s),r!==null){var a=Ye();Pt(r,e,s,a),pf(r,t,s)}}function ag(e,t,r){var s=Nr(e),a={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null};if(ff(e))mf(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,r);if(a.hasEagerState=!0,a.eagerState=o,Tt(o,l)){var c=t.interleaved;c===null?(a.next=a,sc(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=Qh(e,t,a,s),r!==null&&(a=Ye(),Pt(r,e,s,a),pf(r,t,s))}}function ff(e){var t=e.alternate;return e===be||t!==null&&t===be}function mf(e,t){bs=ai=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function pf(e,t,r){if(r&4194240){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Wo(e,r)}}var ii={readContext:vt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},ig={readContext:vt,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:zd,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,La(4194308,4,lf.bind(null,t,e),r)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var r=_t();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var s=_t();return t=r!==void 0?r(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=sg.bind(null,be,e),[s.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:Td,useDebugValue:fc,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=Td(!1),t=e[0];return e=ng.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var s=be,a=_t();if(ge){if(r===void 0)throw Error(I(407));r=r()}else{if(r=t(),Re===null)throw Error(I(349));Yr&30||Zh(s,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,zd(ef.bind(null,s,i,e),[e]),s.flags|=2048,$s(9,qh.bind(null,s,i,r,t),void 0,null),r},useId:function(){var e=_t(),t=Re.identifierPrefix;if(ge){var r=Gt,s=Yt;r=(s&~(1<<32-Et(s)-1)).toString(32)+r,t=":"+t+"R"+r,r=As++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=rg++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lg={readContext:vt,useCallback:cf,useContext:vt,useEffect:hc,useImperativeHandle:of,useInsertionEffect:sf,useLayoutEffect:af,useMemo:df,useReducer:ol,useRef:nf,useState:function(){return ol(Fs)},useDebugValue:fc,useDeferredValue:function(e){var t=yt();return uf(t,Pe.memoizedState,e)},useTransition:function(){var e=ol(Fs)[0],t=yt().memoizedState;return[e,t]},useMutableSource:Xh,useSyncExternalStore:Jh,useId:hf,unstable_isNewReconciler:!1},og={readContext:vt,useCallback:cf,useContext:vt,useEffect:hc,useImperativeHandle:of,useInsertionEffect:sf,useLayoutEffect:af,useMemo:df,useReducer:cl,useRef:nf,useState:function(){return cl(Fs)},useDebugValue:fc,useDeferredValue:function(e){var t=yt();return Pe===null?t.memoizedState=e:uf(t,Pe.memoizedState,e)},useTransition:function(){var e=cl(Fs)[0],t=yt().memoizedState;return[e,t]},useMutableSource:Xh,useSyncExternalStore:Jh,useId:hf,unstable_isNewReconciler:!1};function Nt(e,t){if(e&&e.defaultProps){t=je({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function so(e,t,r,s){t=e.memoizedState,r=r(s,t),r=r==null?t:je({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ki={isMounted:function(e){return(e=e._reactInternals)?rn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var s=Ye(),a=Nr(e),i=Xt(s,a);i.payload=t,r!=null&&(i.callback=r),t=br(e,i,a),t!==null&&(Pt(t,e,a,s),Ra(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var s=Ye(),a=Nr(e),i=Xt(s,a);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=br(e,i,a),t!==null&&(Pt(t,e,a,s),Ra(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ye(),s=Nr(e),a=Xt(r,s);a.tag=2,t!=null&&(a.callback=t),t=br(e,a,s),t!==null&&(Pt(t,e,s,r),Ra(t,e,s))}};function Md(e,t,r,s,a,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,l):t.prototype&&t.prototype.isPureReactComponent?!Rs(r,s)||!Rs(a,i):!0}function xf(e,t,r){var s=!1,a=Pr,i=t.contextType;return typeof i=="object"&&i!==null?i=vt(i):(a=nt(t)?Kr:Ke.current,s=t.contextTypes,i=(s=s!=null)?Fn(e,a):Pr),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ki,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function Rd(e,t,r,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,s),t.state!==e&&ki.enqueueReplaceState(t,t.state,null)}function ao(e,t,r,s){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},ac(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=vt(i):(i=nt(t)?Kr:Ke.current,a.context=Fn(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(so(e,t,i,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&ki.enqueueReplaceState(a,a.state,null),ni(e,r,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Vn(e,t){try{var r="",s=t;do r+=_p(s),s=s.return;while(s);var a=r}catch(i){a=`
|
|
39
|
-
Error generating stack: `+i.message+`
|
|
40
|
-
`+i.stack}return{value:e,source:t,stack:a,digest:null}}function dl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function io(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var cg=typeof WeakMap=="function"?WeakMap:Map;function gf(e,t,r){r=Xt(-1,r),r.tag=3,r.payload={element:null};var s=t.value;return r.callback=function(){oi||(oi=!0,go=s),io(e,t)},r}function vf(e,t,r){r=Xt(-1,r),r.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=t.value;r.payload=function(){return s(a)},r.callback=function(){io(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){io(e,t),typeof s!="function"&&(jr===null?jr=new Set([this]):jr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),r}function Dd(e,t,r){var s=e.pingCache;if(s===null){s=e.pingCache=new cg;var a=new Set;s.set(t,a)}else a=s.get(t),a===void 0&&(a=new Set,s.set(t,a));a.has(r)||(a.add(r),e=Ng.bind(null,e,t,r),t.then(e,e))}function Ld(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 Id(e,t,r,s,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Xt(-1,1),t.tag=2,br(r,t,1))),r.lanes|=1),e)}var dg=rr.ReactCurrentOwner,tt=!1;function Qe(e,t,r,s){t.child=e===null?Kh(t,null,r,s):Un(t,e.child,r,s)}function _d(e,t,r,s,a){r=r.render;var i=t.ref;return Rn(t,a),s=dc(e,t,r,s,i,a),r=uc(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,tr(e,t,a)):(ge&&r&&Zo(t),t.flags|=1,Qe(e,t,s,a),t.child)}function Od(e,t,r,s,a){if(e===null){var i=r.type;return typeof i=="function"&&!bc(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,yf(e,t,i,s,a)):(e=Aa(r.type,null,s,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var l=i.memoizedProps;if(r=r.compare,r=r!==null?r:Rs,r(l,s)&&e.ref===t.ref)return tr(e,t,a)}return t.flags|=1,e=kr(i,s),e.ref=t.ref,e.return=t,t.child=e}function yf(e,t,r,s,a){if(e!==null){var i=e.memoizedProps;if(Rs(i,s)&&e.ref===t.ref)if(tt=!1,t.pendingProps=s=i,(e.lanes&a)!==0)e.flags&131072&&(tt=!0);else return t.lanes=e.lanes,tr(e,t,a)}return lo(e,t,r,s,a)}function wf(e,t,r){var s=t.pendingProps,a=s.children,i=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},he(En,lt),lt|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,he(En,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=i!==null?i.baseLanes:r,he(En,lt),lt|=s}else i!==null?(s=i.baseLanes|r,t.memoizedState=null):s=r,he(En,lt),lt|=s;return Qe(e,t,a,r),t.child}function bf(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function lo(e,t,r,s,a){var i=nt(r)?Kr:Ke.current;return i=Fn(t,i),Rn(t,a),r=dc(e,t,r,s,i,a),s=uc(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,tr(e,t,a)):(ge&&s&&Zo(t),t.flags|=1,Qe(e,t,r,a),t.child)}function Ad(e,t,r,s,a){if(nt(r)){var i=!0;Za(t)}else i=!1;if(Rn(t,a),t.stateNode===null)Ia(e,t),xf(t,r,s),ao(t,r,s,a),s=!0;else if(e===null){var l=t.stateNode,o=t.memoizedProps;l.props=o;var c=l.context,u=r.contextType;typeof u=="object"&&u!==null?u=vt(u):(u=nt(r)?Kr:Ke.current,u=Fn(t,u));var f=r.getDerivedStateFromProps,d=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==s||c!==u)&&Rd(t,l,s,u),ur=!1;var x=t.memoizedState;l.state=x,ni(t,s,l,a),c=t.memoizedState,o!==s||x!==c||rt.current||ur?(typeof f=="function"&&(so(t,r,f,s),c=t.memoizedState),(o=ur||Md(t,r,o,s,x,c,u))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=c),l.props=s,l.state=c,l.context=u,s=o):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{l=t.stateNode,Yh(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:Nt(t.type,o),l.props=u,d=t.pendingProps,x=l.context,c=r.contextType,typeof c=="object"&&c!==null?c=vt(c):(c=nt(r)?Kr:Ke.current,c=Fn(t,c));var y=r.getDerivedStateFromProps;(f=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==d||x!==c)&&Rd(t,l,s,c),ur=!1,x=t.memoizedState,l.state=x,ni(t,s,l,a);var w=t.memoizedState;o!==d||x!==w||rt.current||ur?(typeof y=="function"&&(so(t,r,y,s),w=t.memoizedState),(u=ur||Md(t,r,u,s,x,w,c)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(s,w,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(s,w,c)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=w),l.props=s,l.state=w,l.context=c,s=u):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),s=!1)}return oo(e,t,r,s,i,a)}function oo(e,t,r,s,a,i){bf(e,t);var l=(t.flags&128)!==0;if(!s&&!l)return a&&Nd(t,r,!1),tr(e,t,i);s=t.stateNode,dg.current=t;var o=l&&typeof r.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&l?(t.child=Un(t,e.child,null,i),t.child=Un(t,null,o,i)):Qe(e,t,o,i),t.memoizedState=s.state,a&&Nd(t,r,!0),t.child}function jf(e){var t=e.stateNode;t.pendingContext?jd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jd(e,t.context,!1),ic(e,t.containerInfo)}function Fd(e,t,r,s,a){return $n(),ec(a),t.flags|=256,Qe(e,t,r,s),t.child}var co={dehydrated:null,treeContext:null,retryLane:0};function uo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nf(e,t,r){var s=t.pendingProps,a=ye.current,i=!1,l=(t.flags&128)!==0,o;if((o=l)||(o=e!==null&&e.memoizedState===null?!1:(a&2)!==0),o?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),he(ye,a&1),e===null)return ro(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=s.children,e=s.fallback,i?(s=t.mode,i=t.child,l={mode:"hidden",children:l},!(s&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Ei(l,s,0,null),e=Vr(e,s,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=uo(r),t.memoizedState=co,e):mc(t,l));if(a=e.memoizedState,a!==null&&(o=a.dehydrated,o!==null))return ug(e,t,l,s,o,a,r);if(i){i=s.fallback,l=t.mode,a=e.child,o=a.sibling;var c={mode:"hidden",children:s.children};return!(l&1)&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=c,t.deletions=null):(s=kr(a,c),s.subtreeFlags=a.subtreeFlags&14680064),o!==null?i=kr(o,i):(i=Vr(i,l,r,null),i.flags|=2),i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,l=e.child.memoizedState,l=l===null?uo(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~r,t.memoizedState=co,s}return i=e.child,e=i.sibling,s=kr(i,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=r),s.return=t,s.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=s,t.memoizedState=null,s}function mc(e,t){return t=Ei({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ga(e,t,r,s){return s!==null&&ec(s),Un(t,e.child,null,r),e=mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ug(e,t,r,s,a,i,l){if(r)return t.flags&256?(t.flags&=-257,s=dl(Error(I(422))),ga(e,t,l,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=s.fallback,a=t.mode,s=Ei({mode:"visible",children:s.children},a,0,null),i=Vr(i,a,l,null),i.flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,t.mode&1&&Un(t,e.child,null,l),t.child.memoizedState=uo(l),t.memoizedState=co,i);if(!(t.mode&1))return ga(e,t,l,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var o=s.dgst;return s=o,i=Error(I(419)),s=dl(i,s,void 0),ga(e,t,l,s)}if(o=(l&e.childLanes)!==0,tt||o){if(s=Re,s!==null){switch(l&-l){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(s.suspendedLanes|l)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,er(e,a),Pt(s,e,a,-1))}return wc(),s=dl(Error(I(421))),ga(e,t,l,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=kg.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ot=wr(a.nextSibling),ct=t,ge=!0,Ct=null,e!==null&&(mt[pt++]=Yt,mt[pt++]=Gt,mt[pt++]=Qr,Yt=e.id,Gt=e.overflow,Qr=t),t=mc(t,s.children),t.flags|=4096,t)}function $d(e,t,r){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),no(e.return,t,r)}function ul(e,t,r,s,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=r,i.tailMode=a)}function kf(e,t,r){var s=t.pendingProps,a=s.revealOrder,i=s.tail;if(Qe(e,t,s.children,r),s=ye.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$d(e,r,t);else if(e.tag===19)$d(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(he(ye,s),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&si(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),ul(t,!1,a,r,i);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&si(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}ul(t,!0,r,null,i);break;case"together":ul(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ia(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Gr|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,r=kr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=kr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function hg(e,t,r){switch(t.tag){case 3:jf(t),$n();break;case 5:Gh(t);break;case 1:nt(t.type)&&Za(t);break;case 4:ic(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;he(ti,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(he(ye,ye.current&1),t.flags|=128,null):r&t.child.childLanes?Nf(e,t,r):(he(ye,ye.current&1),e=tr(e,t,r),e!==null?e.sibling:null);he(ye,ye.current&1);break;case 19:if(s=(r&t.childLanes)!==0,e.flags&128){if(s)return kf(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),he(ye,ye.current),s)break;return null;case 22:case 23:return t.lanes=0,wf(e,t,r)}return tr(e,t,r)}var Sf,ho,Cf,Ef;Sf=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ho=function(){};Cf=function(e,t,r,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Ur($t.current);var i=null;switch(r){case"input":a=Dl(e,a),s=Dl(e,s),i=[];break;case"select":a=je({},a,{value:void 0}),s=je({},s,{value:void 0}),i=[];break;case"textarea":a=_l(e,a),s=_l(e,s),i=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Xa)}Al(r,s);var l;r=null;for(u in a)if(!s.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var o=a[u];for(l in o)o.hasOwnProperty(l)&&(r||(r={}),r[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ss.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in s){var c=s[u];if(o=a!=null?a[u]:void 0,s.hasOwnProperty(u)&&c!==o&&(c!=null||o!=null))if(u==="style")if(o){for(l in o)!o.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(r||(r={}),r[l]="");for(l in c)c.hasOwnProperty(l)&&o[l]!==c[l]&&(r||(r={}),r[l]=c[l])}else r||(i||(i=[]),i.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,o=o?o.__html:void 0,c!=null&&o!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ss.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&me("scroll",e),i||o===c||(i=[])):(i=i||[]).push(u,c))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Ef=function(e,t,r,s){r!==s&&(t.flags|=4)};function ns(e,t){if(!ge)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,s=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=r,t}function fg(e,t,r){var s=t.pendingProps;switch(qo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return nt(t.type)&&Ja(),Be(t),null;case 3:return s=t.stateNode,Bn(),pe(rt),pe(Ke),oc(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(pa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(wo(Ct),Ct=null))),ho(e,t),Be(t),null;case 5:lc(t);var a=Ur(Os.current);if(r=t.type,e!==null&&t.stateNode!=null)Cf(e,t,r,s,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(I(166));return Be(t),null}if(e=Ur($t.current),pa(t)){s=t.stateNode,r=t.type;var i=t.memoizedProps;switch(s[Ot]=t,s[Is]=i,e=(t.mode&1)!==0,r){case"dialog":me("cancel",s),me("close",s);break;case"iframe":case"object":case"embed":me("load",s);break;case"video":case"audio":for(a=0;a<ms.length;a++)me(ms[a],s);break;case"source":me("error",s);break;case"img":case"image":case"link":me("error",s),me("load",s);break;case"details":me("toggle",s);break;case"input":Gc(s,i),me("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!i.multiple},me("invalid",s);break;case"textarea":Jc(s,i),me("invalid",s)}Al(r,i),a=null;for(var l in i)if(i.hasOwnProperty(l)){var o=i[l];l==="children"?typeof o=="string"?s.textContent!==o&&(i.suppressHydrationWarning!==!0&&ma(s.textContent,o,e),a=["children",o]):typeof o=="number"&&s.textContent!==""+o&&(i.suppressHydrationWarning!==!0&&ma(s.textContent,o,e),a=["children",""+o]):Ss.hasOwnProperty(l)&&o!=null&&l==="onScroll"&&me("scroll",s)}switch(r){case"input":ia(s),Xc(s,i,!0);break;case"textarea":ia(s),Zc(s);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(s.onclick=Xa)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{l=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=eh(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=l.createElement(r,{is:s.is}):(e=l.createElement(r),r==="select"&&(l=e,s.multiple?l.multiple=!0:s.size&&(l.size=s.size))):e=l.createElementNS(e,r),e[Ot]=t,e[Is]=s,Sf(e,t,!1,!1),t.stateNode=e;e:{switch(l=Fl(r,s),r){case"dialog":me("cancel",e),me("close",e),a=s;break;case"iframe":case"object":case"embed":me("load",e),a=s;break;case"video":case"audio":for(a=0;a<ms.length;a++)me(ms[a],e);a=s;break;case"source":me("error",e),a=s;break;case"img":case"image":case"link":me("error",e),me("load",e),a=s;break;case"details":me("toggle",e),a=s;break;case"input":Gc(e,s),a=Dl(e,s),me("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=je({},s,{value:void 0}),me("invalid",e);break;case"textarea":Jc(e,s),a=_l(e,s),me("invalid",e);break;default:a=s}Al(r,a),o=a;for(i in o)if(o.hasOwnProperty(i)){var c=o[i];i==="style"?nh(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&th(e,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Cs(e,c):typeof c=="number"&&Cs(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ss.hasOwnProperty(i)?c!=null&&i==="onScroll"&&me("scroll",e):c!=null&&Ao(e,i,c,l))}switch(r){case"input":ia(e),Xc(e,s,!1);break;case"textarea":ia(e),Zc(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Er(s.value));break;case"select":e.multiple=!!s.multiple,i=s.value,i!=null?Pn(e,!!s.multiple,i,!1):s.defaultValue!=null&&Pn(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Xa)}switch(r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Be(t),null;case 6:if(e&&t.stateNode!=null)Ef(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(I(166));if(r=Ur(Os.current),Ur($t.current),pa(t)){if(s=t.stateNode,r=t.memoizedProps,s[Ot]=t,(i=s.nodeValue!==r)&&(e=ct,e!==null))switch(e.tag){case 3:ma(s.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ma(s.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else s=(r.nodeType===9?r:r.ownerDocument).createTextNode(s),s[Ot]=t,t.stateNode=s}return Be(t),null;case 13:if(pe(ye),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ge&&ot!==null&&t.mode&1&&!(t.flags&128))Wh(),$n(),t.flags|=98560,i=!1;else if(i=pa(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error(I(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317));i[Ot]=t}else $n(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Be(t),i=!1}else Ct!==null&&(wo(Ct),Ct=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||ye.current&1?Te===0&&(Te=3):wc())),t.updateQueue!==null&&(t.flags|=4),Be(t),null);case 4:return Bn(),ho(e,t),e===null&&Ds(t.stateNode.containerInfo),Be(t),null;case 10:return nc(t.type._context),Be(t),null;case 17:return nt(t.type)&&Ja(),Be(t),null;case 19:if(pe(ye),i=t.memoizedState,i===null)return Be(t),null;if(s=(t.flags&128)!==0,l=i.rendering,l===null)if(s)ns(i,!1);else{if(Te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=si(e),l!==null){for(t.flags|=128,ns(i,!1),s=l.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=r,r=t.child;r!==null;)i=r,e=s,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return he(ye,ye.current&1|2),t.child}e=e.sibling}i.tail!==null&&Se()>Wn&&(t.flags|=128,s=!0,ns(i,!1),t.lanes=4194304)}else{if(!s)if(e=si(l),e!==null){if(t.flags|=128,s=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ns(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ge)return Be(t),null}else 2*Se()-i.renderingStartTime>Wn&&r!==1073741824&&(t.flags|=128,s=!0,ns(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(r=i.last,r!==null?r.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Se(),t.sibling=null,r=ye.current,he(ye,s?r&1|2:r&1),t):(Be(t),null);case 22:case 23:return yc(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?lt&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function mg(e,t){switch(qo(t),t.tag){case 1:return nt(t.type)&&Ja(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bn(),pe(rt),pe(Ke),oc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lc(t),null;case 13:if(pe(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));$n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ye),null;case 4:return Bn(),null;case 10:return nc(t.type._context),null;case 22:case 23:return yc(),null;case 24:return null;default:return null}}var va=!1,He=!1,pg=typeof WeakSet=="function"?WeakSet:Set,V=null;function Cn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(s){Ne(e,t,s)}else r.current=null}function fo(e,t,r){try{r()}catch(s){Ne(e,t,s)}}var Ud=!1;function xg(e,t){if(Gl=Qa,e=Mh(),Jo(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var a=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var l=0,o=-1,c=-1,u=0,f=0,d=e,x=null;t:for(;;){for(var y;d!==r||a!==0&&d.nodeType!==3||(o=l+a),d!==i||s!==0&&d.nodeType!==3||(c=l+s),d.nodeType===3&&(l+=d.nodeValue.length),(y=d.firstChild)!==null;)x=d,d=y;for(;;){if(d===e)break t;if(x===r&&++u===a&&(o=l),x===i&&++f===s&&(c=l),(y=d.nextSibling)!==null)break;d=x,x=d.parentNode}d=y}r=o===-1||c===-1?null:{start:o,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xl={focusedElem:e,selectionRange:r},Qa=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,j=w.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Nt(t.type,v),j);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(N){Ne(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return w=Ud,Ud=!1,w}function js(e,t,r){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&fo(t,r,i)}a=a.next}while(a!==s)}}function Si(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var s=r.create;r.destroy=s()}r=r.next}while(r!==t)}}function mo(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Pf(e){var t=e.alternate;t!==null&&(e.alternate=null,Pf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ot],delete t[Is],delete t[ql],delete t[Zx],delete t[qx])),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 Tf(e){return e.tag===5||e.tag===3||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tf(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 po(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Xa));else if(s!==4&&(e=e.child,e!==null))for(po(e,t,r),e=e.sibling;e!==null;)po(e,t,r),e=e.sibling}function xo(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(xo(e,t,r),e=e.sibling;e!==null;)xo(e,t,r),e=e.sibling}var Ie=null,kt=!1;function ar(e,t,r){for(r=r.child;r!==null;)zf(e,t,r),r=r.sibling}function zf(e,t,r){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(gi,r)}catch{}switch(r.tag){case 5:He||Cn(r,t);case 6:var s=Ie,a=kt;Ie=null,ar(e,t,r),Ie=s,kt=a,Ie!==null&&(kt?(e=Ie,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ie.removeChild(r.stateNode));break;case 18:Ie!==null&&(kt?(e=Ie,r=r.stateNode,e.nodeType===8?sl(e.parentNode,r):e.nodeType===1&&sl(e,r),zs(e)):sl(Ie,r.stateNode));break;case 4:s=Ie,a=kt,Ie=r.stateNode.containerInfo,kt=!0,ar(e,t,r),Ie=s,kt=a;break;case 0:case 11:case 14:case 15:if(!He&&(s=r.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var i=a,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&fo(r,t,l),a=a.next}while(a!==s)}ar(e,t,r);break;case 1:if(!He&&(Cn(r,t),s=r.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=r.memoizedProps,s.state=r.memoizedState,s.componentWillUnmount()}catch(o){Ne(r,t,o)}ar(e,t,r);break;case 21:ar(e,t,r);break;case 22:r.mode&1?(He=(s=He)||r.memoizedState!==null,ar(e,t,r),He=s):ar(e,t,r);break;default:ar(e,t,r)}}function Vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new pg),t.forEach(function(s){var a=Sg.bind(null,e,s);r.has(s)||(r.add(s),s.then(a,a))})}}function jt(e,t){var r=t.deletions;if(r!==null)for(var s=0;s<r.length;s++){var a=r[s];try{var i=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 5:Ie=o.stateNode,kt=!1;break e;case 3:Ie=o.stateNode.containerInfo,kt=!0;break e;case 4:Ie=o.stateNode.containerInfo,kt=!0;break e}o=o.return}if(Ie===null)throw Error(I(160));zf(i,l,a),Ie=null,kt=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(u){Ne(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mf(t,e),t=t.sibling}function Mf(e,t){var r=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jt(t,e),Mt(e),s&4){try{js(3,e,e.return),Si(3,e)}catch(v){Ne(e,e.return,v)}try{js(5,e,e.return)}catch(v){Ne(e,e.return,v)}}break;case 1:jt(t,e),Mt(e),s&512&&r!==null&&Cn(r,r.return);break;case 5:if(jt(t,e),Mt(e),s&512&&r!==null&&Cn(r,r.return),e.flags&32){var a=e.stateNode;try{Cs(a,"")}catch(v){Ne(e,e.return,v)}}if(s&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,l=r!==null?r.memoizedProps:i,o=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{o==="input"&&i.type==="radio"&&i.name!=null&&Zu(a,i),Fl(o,l);var u=Fl(o,i);for(l=0;l<c.length;l+=2){var f=c[l],d=c[l+1];f==="style"?nh(a,d):f==="dangerouslySetInnerHTML"?th(a,d):f==="children"?Cs(a,d):Ao(a,f,d,u)}switch(o){case"input":Ll(a,i);break;case"textarea":qu(a,i);break;case"select":var x=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Pn(a,!!i.multiple,y,!1):x!==!!i.multiple&&(i.defaultValue!=null?Pn(a,!!i.multiple,i.defaultValue,!0):Pn(a,!!i.multiple,i.multiple?[]:"",!1))}a[Is]=i}catch(v){Ne(e,e.return,v)}}break;case 6:if(jt(t,e),Mt(e),s&4){if(e.stateNode===null)throw Error(I(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(v){Ne(e,e.return,v)}}break;case 3:if(jt(t,e),Mt(e),s&4&&r!==null&&r.memoizedState.isDehydrated)try{zs(t.containerInfo)}catch(v){Ne(e,e.return,v)}break;case 4:jt(t,e),Mt(e);break;case 13:jt(t,e),Mt(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(gc=Se())),s&4&&Vd(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(He=(u=He)||f,jt(t,e),He=u):jt(t,e),Mt(e),s&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(V=e,f=e.child;f!==null;){for(d=V=f;V!==null;){switch(x=V,y=x.child,x.tag){case 0:case 11:case 14:case 15:js(4,x,x.return);break;case 1:Cn(x,x.return);var w=x.stateNode;if(typeof w.componentWillUnmount=="function"){s=x,r=x.return;try{t=s,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){Ne(s,r,v)}}break;case 5:Cn(x,x.return);break;case 22:if(x.memoizedState!==null){Hd(d);continue}}y!==null?(y.return=x,V=y):Hd(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{a=d.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(o=d.stateNode,c=d.memoizedProps.style,l=c!=null&&c.hasOwnProperty("display")?c.display:null,o.style.display=rh("display",l))}catch(v){Ne(e,e.return,v)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){Ne(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:jt(t,e),Mt(e),s&4&&Vd(e);break;case 21:break;default:jt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Tf(r)){var s=r;break e}r=r.return}throw Error(I(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(Cs(a,""),s.flags&=-33);var i=Bd(e);xo(e,i,a);break;case 3:case 4:var l=s.stateNode.containerInfo,o=Bd(e);po(e,o,l);break;default:throw Error(I(161))}}catch(c){Ne(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gg(e,t,r){V=e,Rf(e)}function Rf(e,t,r){for(var s=(e.mode&1)!==0;V!==null;){var a=V,i=a.child;if(a.tag===22&&s){var l=a.memoizedState!==null||va;if(!l){var o=a.alternate,c=o!==null&&o.memoizedState!==null||He;o=va;var u=He;if(va=l,(He=c)&&!u)for(V=a;V!==null;)l=V,c=l.child,l.tag===22&&l.memoizedState!==null?Kd(a):c!==null?(c.return=l,V=c):Kd(a);for(;i!==null;)V=i,Rf(i),i=i.sibling;V=a,va=o,He=u}Wd(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,V=i):Wd(e)}}function Wd(e){for(;V!==null;){var t=V;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:He||Si(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!He)if(r===null)s.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Nt(t.type,r.memoizedProps);s.componentDidUpdate(a,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Pd(t,i,s);break;case 3:var l=t.updateQueue;if(l!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Pd(t,l,r)}break;case 5:var o=t.stateNode;if(r===null&&t.flags&4){r=o;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&zs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}He||t.flags&512&&mo(t)}catch(x){Ne(t,t.return,x)}}if(t===e){V=null;break}if(r=t.sibling,r!==null){r.return=t.return,V=r;break}V=t.return}}function Hd(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var r=t.sibling;if(r!==null){r.return=t.return,V=r;break}V=t.return}}function Kd(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Si(4,t)}catch(c){Ne(t,r,c)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(c){Ne(t,a,c)}}var i=t.return;try{mo(t)}catch(c){Ne(t,i,c)}break;case 5:var l=t.return;try{mo(t)}catch(c){Ne(t,l,c)}}}catch(c){Ne(t,t.return,c)}if(t===e){V=null;break}var o=t.sibling;if(o!==null){o.return=t.return,V=o;break}V=t.return}}var vg=Math.ceil,li=rr.ReactCurrentDispatcher,pc=rr.ReactCurrentOwner,gt=rr.ReactCurrentBatchConfig,le=0,Re=null,Ce=null,_e=0,lt=0,En=Mr(0),Te=0,Us=null,Gr=0,Ci=0,xc=0,Ns=null,Ze=null,gc=0,Wn=1/0,Kt=null,oi=!1,go=null,jr=null,ya=!1,pr=null,ci=0,ks=0,vo=null,_a=-1,Oa=0;function Ye(){return le&6?Se():_a!==-1?_a:_a=Se()}function Nr(e){return e.mode&1?le&2&&_e!==0?_e&-_e:tg.transition!==null?(Oa===0&&(Oa=ph()),Oa):(e=ce,e!==0||(e=window.event,e=e===void 0?16:jh(e.type)),e):1}function Pt(e,t,r,s){if(50<ks)throw ks=0,vo=null,Error(I(185));Qs(e,r,s),(!(le&2)||e!==Re)&&(e===Re&&(!(le&2)&&(Ci|=r),Te===4&&fr(e,_e)),st(e,s),r===1&&le===0&&!(t.mode&1)&&(Wn=Se()+500,ji&&Rr()))}function st(e,t){var r=e.callbackNode;tx(e,t);var s=Ka(e,e===Re?_e:0);if(s===0)r!==null&&td(r),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(r!=null&&td(r),t===1)e.tag===0?eg(Qd.bind(null,e)):Uh(Qd.bind(null,e)),Xx(function(){!(le&6)&&Rr()}),r=null;else{switch(xh(s)){case 1:r=Vo;break;case 4:r=fh;break;case 16:r=Ha;break;case 536870912:r=mh;break;default:r=Ha}r=$f(r,Df.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Df(e,t){if(_a=-1,Oa=0,le&6)throw Error(I(327));var r=e.callbackNode;if(Dn()&&e.callbackNode!==r)return null;var s=Ka(e,e===Re?_e:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=di(e,s);else{t=s;var a=le;le|=2;var i=If();(Re!==e||_e!==t)&&(Kt=null,Wn=Se()+500,Br(e,t));do try{bg();break}catch(o){Lf(e,o)}while(!0);rc(),li.current=i,le=a,Ce!==null?t=0:(Re=null,_e=0,t=Te)}if(t!==0){if(t===2&&(a=Wl(e),a!==0&&(s=a,t=yo(e,a))),t===1)throw r=Us,Br(e,0),fr(e,s),st(e,Se()),r;if(t===6)fr(e,s);else{if(a=e.current.alternate,!(s&30)&&!yg(a)&&(t=di(e,s),t===2&&(i=Wl(e),i!==0&&(s=i,t=yo(e,i))),t===1))throw r=Us,Br(e,0),fr(e,s),st(e,Se()),r;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(I(345));case 2:Or(e,Ze,Kt);break;case 3:if(fr(e,s),(s&130023424)===s&&(t=gc+500-Se(),10<t)){if(Ka(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){Ye(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Zl(Or.bind(null,e,Ze,Kt),t);break}Or(e,Ze,Kt);break;case 4:if(fr(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var l=31-Et(s);i=1<<l,l=t[l],l>a&&(a=l),s&=~i}if(s=a,s=Se()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*vg(s/1960))-s,10<s){e.timeoutHandle=Zl(Or.bind(null,e,Ze,Kt),s);break}Or(e,Ze,Kt);break;case 5:Or(e,Ze,Kt);break;default:throw Error(I(329))}}}return st(e,Se()),e.callbackNode===r?Df.bind(null,e):null}function yo(e,t){var r=Ns;return e.current.memoizedState.isDehydrated&&(Br(e,t).flags|=256),e=di(e,t),e!==2&&(t=Ze,Ze=r,t!==null&&wo(t)),e}function wo(e){Ze===null?Ze=e:Ze.push.apply(Ze,e)}function yg(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var s=0;s<r.length;s++){var a=r[s],i=a.getSnapshot;a=a.value;try{if(!Tt(i(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 fr(e,t){for(t&=~xc,t&=~Ci,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Et(t),s=1<<r;e[r]=-1,t&=~s}}function Qd(e){if(le&6)throw Error(I(327));Dn();var t=Ka(e,0);if(!(t&1))return st(e,Se()),null;var r=di(e,t);if(e.tag!==0&&r===2){var s=Wl(e);s!==0&&(t=s,r=yo(e,s))}if(r===1)throw r=Us,Br(e,0),fr(e,t),st(e,Se()),r;if(r===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Or(e,Ze,Kt),st(e,Se()),null}function vc(e,t){var r=le;le|=1;try{return e(t)}finally{le=r,le===0&&(Wn=Se()+500,ji&&Rr())}}function Xr(e){pr!==null&&pr.tag===0&&!(le&6)&&Dn();var t=le;le|=1;var r=gt.transition,s=ce;try{if(gt.transition=null,ce=1,e)return e()}finally{ce=s,gt.transition=r,le=t,!(le&6)&&Rr()}}function yc(){lt=En.current,pe(En)}function Br(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Gx(r)),Ce!==null)for(r=Ce.return;r!==null;){var s=r;switch(qo(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Ja();break;case 3:Bn(),pe(rt),pe(Ke),oc();break;case 5:lc(s);break;case 4:Bn();break;case 13:pe(ye);break;case 19:pe(ye);break;case 10:nc(s.type._context);break;case 22:case 23:yc()}r=r.return}if(Re=e,Ce=e=kr(e.current,null),_e=lt=t,Te=0,Us=null,xc=Ci=Gr=0,Ze=Ns=null,$r!==null){for(t=0;t<$r.length;t++)if(r=$r[t],s=r.interleaved,s!==null){r.interleaved=null;var a=s.next,i=r.pending;if(i!==null){var l=i.next;i.next=a,s.next=l}r.pending=s}$r=null}return e}function Lf(e,t){do{var r=Ce;try{if(rc(),Da.current=ii,ai){for(var s=be.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}ai=!1}if(Yr=0,Me=Pe=be=null,bs=!1,As=0,pc.current=null,r===null||r.return===null){Te=1,Us=t,Ce=null;break}e:{var i=e,l=r.return,o=r,c=t;if(t=_e,o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,f=o,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var x=f.alternate;x?(f.updateQueue=x.updateQueue,f.memoizedState=x.memoizedState,f.lanes=x.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=Ld(l);if(y!==null){y.flags&=-257,Id(y,l,o,i,t),y.mode&1&&Dd(i,u,t),t=y,c=u;var w=t.updateQueue;if(w===null){var v=new Set;v.add(c),t.updateQueue=v}else w.add(c);break e}else{if(!(t&1)){Dd(i,u,t),wc();break e}c=Error(I(426))}}else if(ge&&o.mode&1){var j=Ld(l);if(j!==null){!(j.flags&65536)&&(j.flags|=256),Id(j,l,o,i,t),ec(Vn(c,o));break e}}i=c=Vn(c,o),Te!==4&&(Te=2),Ns===null?Ns=[i]:Ns.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=gf(i,c,t);Ed(i,m);break e;case 1:o=c;var p=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(jr===null||!jr.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=vf(i,o,t);Ed(i,N);break e}}i=i.return}while(i!==null)}Of(r)}catch(b){t=b,Ce===r&&r!==null&&(Ce=r=r.return);continue}break}while(!0)}function If(){var e=li.current;return li.current=ii,e===null?ii:e}function wc(){(Te===0||Te===3||Te===2)&&(Te=4),Re===null||!(Gr&268435455)&&!(Ci&268435455)||fr(Re,_e)}function di(e,t){var r=le;le|=2;var s=If();(Re!==e||_e!==t)&&(Kt=null,Br(e,t));do try{wg();break}catch(a){Lf(e,a)}while(!0);if(rc(),le=r,li.current=s,Ce!==null)throw Error(I(261));return Re=null,_e=0,Te}function wg(){for(;Ce!==null;)_f(Ce)}function bg(){for(;Ce!==null&&!Kp();)_f(Ce)}function _f(e){var t=Ff(e.alternate,e,lt);e.memoizedProps=e.pendingProps,t===null?Of(e):Ce=t,pc.current=null}function Of(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=mg(r,t),r!==null){r.flags&=32767,Ce=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Te=6,Ce=null;return}}else if(r=fg(r,t,lt),r!==null){Ce=r;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Te===0&&(Te=5)}function Or(e,t,r){var s=ce,a=gt.transition;try{gt.transition=null,ce=1,jg(e,t,r,s)}finally{gt.transition=a,ce=s}return null}function jg(e,t,r,s){do Dn();while(pr!==null);if(le&6)throw Error(I(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(rx(e,i),e===Re&&(Ce=Re=null,_e=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ya||(ya=!0,$f(Ha,function(){return Dn(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=gt.transition,gt.transition=null;var l=ce;ce=1;var o=le;le|=4,pc.current=null,xg(e,r),Mf(r,e),Bx(Xl),Qa=!!Gl,Xl=Gl=null,e.current=r,gg(r),Qp(),le=o,ce=l,gt.transition=i}else e.current=r;if(ya&&(ya=!1,pr=e,ci=a),i=e.pendingLanes,i===0&&(jr=null),Xp(r.stateNode),st(e,Se()),t!==null)for(s=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],s(a.value,{componentStack:a.stack,digest:a.digest});if(oi)throw oi=!1,e=go,go=null,e;return ci&1&&e.tag!==0&&Dn(),i=e.pendingLanes,i&1?e===vo?ks++:(ks=0,vo=e):ks=0,Rr(),null}function Dn(){if(pr!==null){var e=xh(ci),t=gt.transition,r=ce;try{if(gt.transition=null,ce=16>e?16:e,pr===null)var s=!1;else{if(e=pr,pr=null,ci=0,le&6)throw Error(I(331));var a=le;for(le|=4,V=e.current;V!==null;){var i=V,l=i.child;if(V.flags&16){var o=i.deletions;if(o!==null){for(var c=0;c<o.length;c++){var u=o[c];for(V=u;V!==null;){var f=V;switch(f.tag){case 0:case 11:case 15:js(8,f,i)}var d=f.child;if(d!==null)d.return=f,V=d;else for(;V!==null;){f=V;var x=f.sibling,y=f.return;if(Pf(f),f===u){V=null;break}if(x!==null){x.return=y,V=x;break}V=y}}}var w=i.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var j=v.sibling;v.sibling=null,v=j}while(v!==null)}}V=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,V=l;else e:for(;V!==null;){if(i=V,i.flags&2048)switch(i.tag){case 0:case 11:case 15:js(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,V=m;break e}V=i.return}}var p=e.current;for(V=p;V!==null;){l=V;var g=l.child;if(l.subtreeFlags&2064&&g!==null)g.return=l,V=g;else e:for(l=p;V!==null;){if(o=V,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Si(9,o)}}catch(b){Ne(o,o.return,b)}if(o===l){V=null;break e}var N=o.sibling;if(N!==null){N.return=o.return,V=N;break e}V=o.return}}if(le=a,Rr(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(gi,e)}catch{}s=!0}return s}finally{ce=r,gt.transition=t}}return!1}function Yd(e,t,r){t=Vn(r,t),t=gf(e,t,1),e=br(e,t,1),t=Ye(),e!==null&&(Qs(e,1,t),st(e,t))}function Ne(e,t,r){if(e.tag===3)Yd(e,e,r);else for(;t!==null;){if(t.tag===3){Yd(t,e,r);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(jr===null||!jr.has(s))){e=Vn(r,e),e=vf(t,e,1),t=br(t,e,1),e=Ye(),t!==null&&(Qs(t,1,e),st(t,e));break}}t=t.return}}function Ng(e,t,r){var s=e.pingCache;s!==null&&s.delete(t),t=Ye(),e.pingedLanes|=e.suspendedLanes&r,Re===e&&(_e&r)===r&&(Te===4||Te===3&&(_e&130023424)===_e&&500>Se()-gc?Br(e,0):xc|=r),st(e,t)}function Af(e,t){t===0&&(e.mode&1?(t=ca,ca<<=1,!(ca&130023424)&&(ca=4194304)):t=1);var r=Ye();e=er(e,t),e!==null&&(Qs(e,t,r),st(e,r))}function kg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Af(e,r)}function Sg(e,t){var r=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(I(314))}s!==null&&s.delete(t),Af(e,r)}var Ff;Ff=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)tt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return tt=!1,hg(e,t,r);tt=!!(e.flags&131072)}else tt=!1,ge&&t.flags&1048576&&Bh(t,ei,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Ia(e,t),e=t.pendingProps;var a=Fn(t,Ke.current);Rn(t,r),a=dc(null,t,s,e,a,r);var i=uc();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nt(s)?(i=!0,Za(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ac(t),a.updater=ki,t.stateNode=a,a._reactInternals=t,ao(t,s,e,r),t=oo(null,t,s,!0,i,r)):(t.tag=0,ge&&i&&Zo(t),Qe(null,t,a,r),t=t.child),t;case 16:s=t.elementType;e:{switch(Ia(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=Eg(s),e=Nt(s,e),a){case 0:t=lo(null,t,s,e,r);break e;case 1:t=Ad(null,t,s,e,r);break e;case 11:t=_d(null,t,s,e,r);break e;case 14:t=Od(null,t,s,Nt(s.type,e),r);break e}throw Error(I(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Nt(s,a),lo(e,t,s,a,r);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Nt(s,a),Ad(e,t,s,a,r);case 3:e:{if(jf(t),e===null)throw Error(I(387));s=t.pendingProps,i=t.memoizedState,a=i.element,Yh(e,t),ni(t,s,null,r);var l=t.memoizedState;if(s=l.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Vn(Error(I(423)),t),t=Fd(e,t,s,r,a);break e}else if(s!==a){a=Vn(Error(I(424)),t),t=Fd(e,t,s,r,a);break e}else for(ot=wr(t.stateNode.containerInfo.firstChild),ct=t,ge=!0,Ct=null,r=Kh(t,null,s,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if($n(),s===a){t=tr(e,t,r);break e}Qe(e,t,s,r)}t=t.child}return t;case 5:return Gh(t),e===null&&ro(t),s=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,l=a.children,Jl(s,a)?l=null:i!==null&&Jl(s,i)&&(t.flags|=32),bf(e,t),Qe(e,t,l,r),t.child;case 6:return e===null&&ro(t),null;case 13:return Nf(e,t,r);case 4:return ic(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Un(t,null,s,r):Qe(e,t,s,r),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Nt(s,a),_d(e,t,s,a,r);case 7:return Qe(e,t,t.pendingProps,r),t.child;case 8:return Qe(e,t,t.pendingProps.children,r),t.child;case 12:return Qe(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value,he(ti,s._currentValue),s._currentValue=l,i!==null)if(Tt(i.value,l)){if(i.children===a.children&&!rt.current){t=tr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){l=i.child;for(var c=o.firstContext;c!==null;){if(c.context===s){if(i.tag===1){c=Xt(-1,r&-r),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),no(i.return,r,t),o.lanes|=r;break}c=c.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(I(341));l.lanes|=r,o=l.alternate,o!==null&&(o.lanes|=r),no(l,r,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Qe(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,Rn(t,r),a=vt(a),s=s(a),t.flags|=1,Qe(e,t,s,r),t.child;case 14:return s=t.type,a=Nt(s,t.pendingProps),a=Nt(s.type,a),Od(e,t,s,a,r);case 15:return yf(e,t,t.type,t.pendingProps,r);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Nt(s,a),Ia(e,t),t.tag=1,nt(s)?(e=!0,Za(t)):e=!1,Rn(t,r),xf(t,s,a),ao(t,s,a,r),oo(null,t,s,!0,e,r);case 19:return kf(e,t,r);case 22:return wf(e,t,r)}throw Error(I(156,t.tag))};function $f(e,t){return hh(e,t)}function Cg(e,t,r,s){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,r,s){return new Cg(e,t,r,s)}function bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Eg(e){if(typeof e=="function")return bc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$o)return 11;if(e===Uo)return 14}return 2}function kr(e,t){var r=e.alternate;return r===null?(r=xt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Aa(e,t,r,s,a,i){var l=2;if(s=e,typeof e=="function")bc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case gn:return Vr(r.children,a,i,t);case Fo:l=8,a|=8;break;case Tl:return e=xt(12,r,t,a|2),e.elementType=Tl,e.lanes=i,e;case zl:return e=xt(13,r,t,a),e.elementType=zl,e.lanes=i,e;case Ml:return e=xt(19,r,t,a),e.elementType=Ml,e.lanes=i,e;case Gu:return Ei(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qu:l=10;break e;case Yu:l=9;break e;case $o:l=11;break e;case Uo:l=14;break e;case dr:l=16,s=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=xt(l,r,t,a),t.elementType=e,t.type=s,t.lanes=i,t}function Vr(e,t,r,s){return e=xt(7,e,s,t),e.lanes=r,e}function Ei(e,t,r,s){return e=xt(22,e,s,t),e.elementType=Gu,e.lanes=r,e.stateNode={isHidden:!1},e}function hl(e,t,r){return e=xt(6,e,null,t),e.lanes=r,e}function fl(e,t,r){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pg(e,t,r,s,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qi(0),this.expirationTimes=Qi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qi(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function jc(e,t,r,s,a,i,l,o,c){return e=new Pg(e,t,r,o,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=xt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ac(i),e}function Tg(e,t,r){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xn,key:s==null?null:""+s,children:e,containerInfo:t,implementation:r}}function Uf(e){if(!e)return Pr;e=e._reactInternals;e:{if(rn(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(nt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var r=e.type;if(nt(r))return $h(e,r,t)}return t}function Bf(e,t,r,s,a,i,l,o,c){return e=jc(r,s,!0,e,a,i,l,o,c),e.context=Uf(null),r=e.current,s=Ye(),a=Nr(r),i=Xt(s,a),i.callback=t??null,br(r,i,a),e.current.lanes=a,Qs(e,a,s),st(e,s),e}function Pi(e,t,r,s){var a=t.current,i=Ye(),l=Nr(a);return r=Uf(r),t.context===null?t.context=r:t.pendingContext=r,t=Xt(i,l),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=br(a,t,l),e!==null&&(Pt(e,a,l,i),Ra(e,a,l)),l}function ui(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 Gd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Nc(e,t){Gd(e,t),(e=e.alternate)&&Gd(e,t)}function zg(){return null}var Vf=typeof reportError=="function"?reportError:function(e){console.error(e)};function kc(e){this._internalRoot=e}Ti.prototype.render=kc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));Pi(e,t,null,null)};Ti.prototype.unmount=kc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xr(function(){Pi(null,e,null,null)}),t[qt]=null}};function Ti(e){this._internalRoot=e}Ti.prototype.unstable_scheduleHydration=function(e){if(e){var t=yh();e={blockedOn:null,target:e,priority:t};for(var r=0;r<hr.length&&t!==0&&t<hr[r].priority;r++);hr.splice(r,0,e),r===0&&bh(e)}};function Sc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function zi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xd(){}function Mg(e,t,r,s,a){if(a){if(typeof s=="function"){var i=s;s=function(){var u=ui(l);i.call(u)}}var l=Bf(t,s,e,0,null,!1,!1,"",Xd);return e._reactRootContainer=l,e[qt]=l.current,Ds(e.nodeType===8?e.parentNode:e),Xr(),l}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var o=s;s=function(){var u=ui(c);o.call(u)}}var c=jc(e,0,!1,null,null,!1,!1,"",Xd);return e._reactRootContainer=c,e[qt]=c.current,Ds(e.nodeType===8?e.parentNode:e),Xr(function(){Pi(t,c,r,s)}),c}function Mi(e,t,r,s,a){var i=r._reactRootContainer;if(i){var l=i;if(typeof a=="function"){var o=a;a=function(){var c=ui(l);o.call(c)}}Pi(t,l,e,a)}else l=Mg(r,t,e,a,s);return ui(l)}gh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=fs(t.pendingLanes);r!==0&&(Wo(t,r|1),st(t,Se()),!(le&6)&&(Wn=Se()+500,Rr()))}break;case 13:Xr(function(){var s=er(e,1);if(s!==null){var a=Ye();Pt(s,e,1,a)}}),Nc(e,1)}};Ho=function(e){if(e.tag===13){var t=er(e,134217728);if(t!==null){var r=Ye();Pt(t,e,134217728,r)}Nc(e,134217728)}};vh=function(e){if(e.tag===13){var t=Nr(e),r=er(e,t);if(r!==null){var s=Ye();Pt(r,e,t,s)}Nc(e,t)}};yh=function(){return ce};wh=function(e,t){var r=ce;try{return ce=e,t()}finally{ce=r}};Ul=function(e,t,r){switch(t){case"input":if(Ll(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var s=r[t];if(s!==e&&s.form===e.form){var a=bi(s);if(!a)throw Error(I(90));Ju(s),Ll(s,a)}}}break;case"textarea":qu(e,r);break;case"select":t=r.value,t!=null&&Pn(e,!!r.multiple,t,!1)}};ih=vc;lh=Xr;var Rg={usingClientEntryPoint:!1,Events:[Gs,bn,bi,sh,ah,vc]},ss={findFiberByHostInstance:Fr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Dg={bundleType:ss.bundleType,version:ss.version,rendererPackageName:ss.rendererPackageName,rendererConfig:ss.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dh(e),e===null?null:e.stateNode},findFiberByHostInstance:ss.findFiberByHostInstance||zg,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 wa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wa.isDisabled&&wa.supportsFiber)try{gi=wa.inject(Dg),Ft=wa}catch{}}ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rg;ut.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sc(t))throw Error(I(200));return Tg(e,t,null,r)};ut.createRoot=function(e,t){if(!Sc(e))throw Error(I(299));var r=!1,s="",a=Vf;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=jc(e,1,!1,null,null,r,!1,s,a),e[qt]=t.current,Ds(e.nodeType===8?e.parentNode:e),new kc(t)};ut.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=dh(t),e=e===null?null:e.stateNode,e};ut.flushSync=function(e){return Xr(e)};ut.hydrate=function(e,t,r){if(!zi(t))throw Error(I(200));return Mi(null,e,t,!0,r)};ut.hydrateRoot=function(e,t,r){if(!Sc(e))throw Error(I(405));var s=r!=null&&r.hydratedSources||null,a=!1,i="",l=Vf;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(l=r.onRecoverableError)),t=Bf(t,null,e,1,r??null,a,!1,i,l),e[qt]=t.current,Ds(e),s)for(e=0;e<s.length;e++)r=s[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Ti(t)};ut.render=function(e,t,r){if(!zi(t))throw Error(I(200));return Mi(null,e,t,!1,r)};ut.unmountComponentAtNode=function(e){if(!zi(e))throw Error(I(40));return e._reactRootContainer?(Xr(function(){Mi(null,null,e,!1,function(){e._reactRootContainer=null,e[qt]=null})}),!0):!1};ut.unstable_batchedUpdates=vc;ut.unstable_renderSubtreeIntoContainer=function(e,t,r,s){if(!zi(r))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return Mi(e,t,r,!1,s)};ut.version="18.3.1-next-f1338f8080-20240426";function Wf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wf)}catch(e){console.error(e)}}Wf(),Vu.exports=ut;var Cc=Vu.exports;const Hf=Mu(Cc);var Jd=Cc;El.createRoot=Jd.createRoot,El.hydrateRoot=Jd.hydrateRoot;/**
|
|
41
|
-
* @remix-run/router v1.23.0
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Remix Software Inc.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
-
*
|
|
48
|
-
* @license MIT
|
|
49
|
-
*/function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Bs.apply(this,arguments)}var xr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(xr||(xr={}));const Zd="popstate";function Lg(e){e===void 0&&(e={});function t(s,a){let{pathname:i,search:l,hash:o}=s.location;return bo("",{pathname:i,search:l,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(s,a){return typeof a=="string"?a:hi(a)}return _g(t,r,null,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Kf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ig(){return Math.random().toString(36).substr(2,8)}function qd(e,t){return{usr:e.state,key:e.key,idx:t}}function bo(e,t,r,s){return r===void 0&&(r=null),Bs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Gn(t):t,{state:r,key:t&&t.key||s||Ig()})}function hi(e){let{pathname:t="/",search:r="",hash:s=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function Gn(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function _g(e,t,r,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:i=!1}=s,l=a.history,o=xr.Pop,c=null,u=f();u==null&&(u=0,l.replaceState(Bs({},l.state,{idx:u}),""));function f(){return(l.state||{idx:null}).idx}function d(){o=xr.Pop;let j=f(),m=j==null?null:j-u;u=j,c&&c({action:o,location:v.location,delta:m})}function x(j,m){o=xr.Push;let p=bo(v.location,j,m);u=f()+1;let g=qd(p,u),N=v.createHref(p);try{l.pushState(g,"",N)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;a.location.assign(N)}i&&c&&c({action:o,location:v.location,delta:1})}function y(j,m){o=xr.Replace;let p=bo(v.location,j,m);u=f();let g=qd(p,u),N=v.createHref(p);l.replaceState(g,"",N),i&&c&&c({action:o,location:v.location,delta:0})}function w(j){let m=a.location.origin!=="null"?a.location.origin:a.location.href,p=typeof j=="string"?j:hi(j);return p=p.replace(/ $/,"%20"),Ee(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let v={get action(){return o},get location(){return e(a,l)},listen(j){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(Zd,d),c=j,()=>{a.removeEventListener(Zd,d),c=null}},createHref(j){return t(a,j)},createURL:w,encodeLocation(j){let m=w(j);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:x,replace:y,go(j){return l.go(j)}};return v}var eu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(eu||(eu={}));function Og(e,t,r){return r===void 0&&(r="/"),Ag(e,t,r)}function Ag(e,t,r,s){let a=typeof t=="string"?Gn(t):t,i=Ec(a.pathname||"/",r);if(i==null)return null;let l=Qf(e);Fg(l);let o=null;for(let c=0;o==null&&c<l.length;++c){let u=Jg(i);o=Yg(l[c],u)}return o}function Qf(e,t,r,s){t===void 0&&(t=[]),r===void 0&&(r=[]),s===void 0&&(s="");let a=(i,l,o)=>{let c={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};c.relativePath.startsWith("/")&&(Ee(c.relativePath.startsWith(s),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(s.length));let u=Sr([s,c.relativePath]),f=r.concat(c);i.children&&i.children.length>0&&(Ee(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Qf(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Kg(u,i.index),routesMeta:f})};return e.forEach((i,l)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))a(i,l);else for(let c of Yf(i.path))a(i,l,c)}),t}function Yf(e){let t=e.split("/");if(t.length===0)return[];let[r,...s]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(s.length===0)return a?[i,""]:[i];let l=Yf(s.join("/")),o=[];return o.push(...l.map(c=>c===""?i:[i,c].join("/"))),a&&o.push(...l),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function Fg(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Qg(t.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}const $g=/^:[\w-]+$/,Ug=3,Bg=2,Vg=1,Wg=10,Hg=-2,tu=e=>e==="*";function Kg(e,t){let r=e.split("/"),s=r.length;return r.some(tu)&&(s+=Hg),t&&(s+=Bg),r.filter(a=>!tu(a)).reduce((a,i)=>a+($g.test(i)?Ug:i===""?Vg:Wg),s)}function Qg(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function Yg(e,t,r){let{routesMeta:s}=e,a={},i="/",l=[];for(let o=0;o<s.length;++o){let c=s[o],u=o===s.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=Gg({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},f),x=c.route;if(!d)return null;Object.assign(a,d.params),l.push({params:a,pathname:Sr([i,d.pathname]),pathnameBase:tv(Sr([i,d.pathnameBase])),route:x}),d.pathnameBase!=="/"&&(i=Sr([i,d.pathnameBase]))}return l}function Gg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,s]=Xg(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let i=a[0],l=i.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:s.reduce((u,f,d)=>{let{paramName:x,isOptional:y}=f;if(x==="*"){let v=o[d]||"";l=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const w=o[d];return y&&!w?u[x]=void 0:u[x]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function Xg(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Kf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,o,c)=>(s.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function Jg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ec(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,s=e.charAt(r);return s&&s!=="/"?null:e.slice(r)||"/"}function Zg(e,t){t===void 0&&(t="/");let{pathname:r,search:s="",hash:a=""}=typeof e=="string"?Gn(e):e;return{pathname:r?r.startsWith("/")?r:qg(r,t):t,search:rv(s),hash:nv(a)}}function qg(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function ml(e,t,r,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ev(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Gf(e,t){let r=ev(e);return t?r.map((s,a)=>a===r.length-1?s.pathname:s.pathnameBase):r.map(s=>s.pathnameBase)}function Xf(e,t,r,s){s===void 0&&(s=!1);let a;typeof e=="string"?a=Gn(e):(a=Bs({},e),Ee(!a.pathname||!a.pathname.includes("?"),ml("?","pathname","search",a)),Ee(!a.pathname||!a.pathname.includes("#"),ml("#","pathname","hash",a)),Ee(!a.search||!a.search.includes("#"),ml("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,o;if(l==null)o=r;else{let d=t.length-1;if(!s&&l.startsWith("..")){let x=l.split("/");for(;x[0]==="..";)x.shift(),d-=1;a.pathname=x.join("/")}o=d>=0?t[d]:"/"}let c=Zg(a,o),u=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||f)&&(c.pathname+="/"),c}const Sr=e=>e.join("/").replace(/\/\/+/g,"/"),tv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Jf=["post","put","patch","delete"];new Set(Jf);const av=["get",...Jf];new Set(av);/**
|
|
50
|
-
* React Router v6.30.1
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/function Vs(){return Vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Vs.apply(this,arguments)}const Pc=h.createContext(null),iv=h.createContext(null),nn=h.createContext(null),Ri=h.createContext(null),Dr=h.createContext({outlet:null,matches:[],isDataRoute:!1}),Zf=h.createContext(null);function lv(e,t){let{relative:r}=t===void 0?{}:t;Js()||Ee(!1);let{basename:s,navigator:a}=h.useContext(nn),{hash:i,pathname:l,search:o}=tm(e,{relative:r}),c=l;return s!=="/"&&(c=l==="/"?s:Sr([s,l])),a.createHref({pathname:c,search:o,hash:i})}function Js(){return h.useContext(Ri)!=null}function Zs(){return Js()||Ee(!1),h.useContext(Ri).location}function qf(e){h.useContext(nn).static||h.useLayoutEffect(e)}function Di(){let{isDataRoute:e}=h.useContext(Dr);return e?wv():ov()}function ov(){Js()||Ee(!1);let e=h.useContext(Pc),{basename:t,future:r,navigator:s}=h.useContext(nn),{matches:a}=h.useContext(Dr),{pathname:i}=Zs(),l=JSON.stringify(Gf(a,r.v7_relativeSplatPath)),o=h.useRef(!1);return qf(()=>{o.current=!0}),h.useCallback(function(u,f){if(f===void 0&&(f={}),!o.current)return;if(typeof u=="number"){s.go(u);return}let d=Xf(u,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Sr([t,d.pathname])),(f.replace?s.replace:s.push)(d,f.state,f)},[t,s,l,i,e])}function em(){let{matches:e}=h.useContext(Dr),t=e[e.length-1];return t?t.params:{}}function tm(e,t){let{relative:r}=t===void 0?{}:t,{future:s}=h.useContext(nn),{matches:a}=h.useContext(Dr),{pathname:i}=Zs(),l=JSON.stringify(Gf(a,s.v7_relativeSplatPath));return h.useMemo(()=>Xf(e,JSON.parse(l),i,r==="path"),[e,l,i,r])}function cv(e,t){return dv(e,t)}function dv(e,t,r,s){Js()||Ee(!1);let{navigator:a}=h.useContext(nn),{matches:i}=h.useContext(Dr),l=i[i.length-1],o=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let u=Zs(),f;if(t){var d;let j=typeof t=="string"?Gn(t):t;c==="/"||(d=j.pathname)!=null&&d.startsWith(c)||Ee(!1),f=j}else f=u;let x=f.pathname||"/",y=x;if(c!=="/"){let j=c.replace(/^\//,"").split("/");y="/"+x.replace(/^\//,"").split("/").slice(j.length).join("/")}let w=Og(e,{pathname:y}),v=pv(w&&w.map(j=>Object.assign({},j,{params:Object.assign({},o,j.params),pathname:Sr([c,a.encodeLocation?a.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?c:Sr([c,a.encodeLocation?a.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),i,r,s);return t&&v?h.createElement(Ri.Provider,{value:{location:Vs({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:xr.Pop}},v):v}function uv(){let e=yv(),t=sv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),r?h.createElement("pre",{style:a},r):null,null)}const hv=h.createElement(uv,null);class fv extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?h.createElement(Dr.Provider,{value:this.props.routeContext},h.createElement(Zf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mv(e){let{routeContext:t,match:r,children:s}=e,a=h.useContext(Pc);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),h.createElement(Dr.Provider,{value:t},s)}function pv(e,t,r,s){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),s===void 0&&(s=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=s)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let l=e,o=(a=r)==null?void 0:a.errors;if(o!=null){let f=l.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);f>=0||Ee(!1),l=l.slice(0,Math.min(l.length,f+1))}let c=!1,u=-1;if(r&&s&&s.v7_partialHydration)for(let f=0;f<l.length;f++){let d=l[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=f),d.route.id){let{loaderData:x,errors:y}=r,w=d.route.loader&&x[d.route.id]===void 0&&(!y||y[d.route.id]===void 0);if(d.route.lazy||w){c=!0,u>=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((f,d,x)=>{let y,w=!1,v=null,j=null;r&&(y=o&&d.route.id?o[d.route.id]:void 0,v=d.route.errorElement||hv,c&&(u<0&&x===0?(bv("route-fallback"),w=!0,j=null):u===x&&(w=!0,j=d.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,x+1)),p=()=>{let g;return y?g=v:w?g=j:d.route.Component?g=h.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=f,h.createElement(mv,{match:d,routeContext:{outlet:f,matches:m,isDataRoute:r!=null},children:g})};return r&&(d.route.ErrorBoundary||d.route.errorElement||x===0)?h.createElement(fv,{location:r.location,revalidation:r.revalidation,component:v,error:y,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var rm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rm||{}),nm=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(nm||{});function xv(e){let t=h.useContext(Pc);return t||Ee(!1),t}function gv(e){let t=h.useContext(iv);return t||Ee(!1),t}function vv(e){let t=h.useContext(Dr);return t||Ee(!1),t}function sm(e){let t=vv(),r=t.matches[t.matches.length-1];return r.route.id||Ee(!1),r.route.id}function yv(){var e;let t=h.useContext(Zf),r=gv(),s=sm();return t!==void 0?t:(e=r.errors)==null?void 0:e[s]}function wv(){let{router:e}=xv(rm.UseNavigateStable),t=sm(nm.UseNavigateStable),r=h.useRef(!1);return qf(()=>{r.current=!0}),h.useCallback(function(a,i){i===void 0&&(i={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Vs({fromRouteId:t},i)))},[e,t])}const ru={};function bv(e,t,r){ru[e]||(ru[e]=!0)}function jv(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function or(e){Ee(!1)}function Nv(e){let{basename:t="/",children:r=null,location:s,navigationType:a=xr.Pop,navigator:i,static:l=!1,future:o}=e;Js()&&Ee(!1);let c=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:c,navigator:i,static:l,future:Vs({v7_relativeSplatPath:!1},o)}),[c,o,i,l]);typeof s=="string"&&(s=Gn(s));let{pathname:f="/",search:d="",hash:x="",state:y=null,key:w="default"}=s,v=h.useMemo(()=>{let j=Ec(f,c);return j==null?null:{location:{pathname:j,search:d,hash:x,state:y,key:w},navigationType:a}},[c,f,d,x,y,w,a]);return v==null?null:h.createElement(nn.Provider,{value:u},h.createElement(Ri.Provider,{children:r,value:v}))}function kv(e){let{children:t,location:r}=e;return cv(jo(t),r)}new Promise(()=>{});function jo(e,t){t===void 0&&(t=[]);let r=[];return h.Children.forEach(e,(s,a)=>{if(!h.isValidElement(s))return;let i=[...t,a];if(s.type===h.Fragment){r.push.apply(r,jo(s.props.children,i));return}s.type!==or&&Ee(!1),!s.props.index||!s.props.children||Ee(!1);let l={id:s.props.id||i.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(l.children=jo(s.props.children,i)),r.push(l)}),r}/**
|
|
59
|
-
* React Router DOM v6.30.1
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Remix Software Inc.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
-
*
|
|
66
|
-
* @license MIT
|
|
67
|
-
*/function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},No.apply(this,arguments)}function Sv(e,t){if(e==null)return{};var r={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Cv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ev(e,t){return e.button===0&&(!t||t==="_self")&&!Cv(e)}const Pv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Tv="6";try{window.__reactRouterVersion=Tv}catch{}const zv="startTransition",nu=Io[zv];function Mv(e){let{basename:t,children:r,future:s,window:a}=e,i=h.useRef();i.current==null&&(i.current=Lg({window:a,v5Compat:!0}));let l=i.current,[o,c]=h.useState({action:l.action,location:l.location}),{v7_startTransition:u}=s||{},f=h.useCallback(d=>{u&&nu?nu(()=>c(d)):c(d)},[c,u]);return h.useLayoutEffect(()=>l.listen(f),[l,f]),h.useEffect(()=>jv(s),[s]),h.createElement(Nv,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:l,future:s})}const Rv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ln=h.forwardRef(function(t,r){let{onClick:s,relative:a,reloadDocument:i,replace:l,state:o,target:c,to:u,preventScrollReset:f,viewTransition:d}=t,x=Sv(t,Pv),{basename:y}=h.useContext(nn),w,v=!1;if(typeof u=="string"&&Dv.test(u)&&(w=u,Rv))try{let g=new URL(window.location.href),N=u.startsWith("//")?new URL(g.protocol+u):new URL(u),b=Ec(N.pathname,y);N.origin===g.origin&&b!=null?u=b+N.search+N.hash:v=!0}catch{}let j=lv(u,{relative:a}),m=Lv(u,{replace:l,state:o,target:c,preventScrollReset:f,relative:a,viewTransition:d});function p(g){s&&s(g),g.defaultPrevented||m(g)}return h.createElement("a",No({},x,{href:w||j,onClick:v||i?s:p,ref:r,target:c}))});var su;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(su||(su={}));var au;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(au||(au={}));function Lv(e,t){let{target:r,replace:s,state:a,preventScrollReset:i,relative:l,viewTransition:o}=t===void 0?{}:t,c=Di(),u=Zs(),f=tm(e,{relative:l});return h.useCallback(d=>{if(Ev(d,r)){d.preventDefault();let x=s!==void 0?s:hi(u)===hi(f);c(e,{replace:x,state:a,preventScrollReset:i,relative:l,viewTransition:o})}},[u,c,f,s,a,r,e,i,l,o])}function Iv(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const _v=e=>{switch(e){case"success":return Fv;case"info":return Uv;case"warning":return $v;case"error":return Bv;default:return null}},Ov=Array(12).fill(0),Av=({visible:e,className:t})=>$.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},$.createElement("div",{className:"sonner-spinner"},Ov.map((r,s)=>$.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Fv=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.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"})),$v=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},$.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"})),Uv=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.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"})),Bv=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.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"})),Vv=$.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"},$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Wv=()=>{const[e,t]=$.useState(document.hidden);return $.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let ko=1;class Hv{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:s,...a}=t,i=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:ko++,l=this.toasts.find(c=>c.id===i),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...t,id:i,title:s}),{...c,...t,id:i,dismissible:o,title:s}):c):this.addToast({title:s,...a,dismissible:o,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(s=>s({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let s;r.loading!==void 0&&(s=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=s!==void 0,l;const o=a.then(async u=>{if(l=["resolve",u],$.isValidElement(u))i=!1,this.create({id:s,type:"default",message:u});else if(Qv(u)&&!u.ok){i=!1;const d=typeof r.error=="function"?await r.error(`HTTP error! status: ${u.status}`):r.error,x=typeof r.description=="function"?await r.description(`HTTP error! status: ${u.status}`):r.description,w=typeof d=="object"&&!$.isValidElement(d)?d:{message:d};this.create({id:s,type:"error",description:x,...w})}else if(u instanceof Error){i=!1;const d=typeof r.error=="function"?await r.error(u):r.error,x=typeof r.description=="function"?await r.description(u):r.description,w=typeof d=="object"&&!$.isValidElement(d)?d:{message:d};this.create({id:s,type:"error",description:x,...w})}else if(r.success!==void 0){i=!1;const d=typeof r.success=="function"?await r.success(u):r.success,x=typeof r.description=="function"?await r.description(u):r.description,w=typeof d=="object"&&!$.isValidElement(d)?d:{message:d};this.create({id:s,type:"success",description:x,...w})}}).catch(async u=>{if(l=["reject",u],r.error!==void 0){i=!1;const f=typeof r.error=="function"?await r.error(u):r.error,d=typeof r.description=="function"?await r.description(u):r.description,y=typeof f=="object"&&!$.isValidElement(f)?f:{message:f};this.create({id:s,type:"error",description:d,...y})}}).finally(()=>{i&&(this.dismiss(s),s=void 0),r.finally==null||r.finally.call(r)}),c=()=>new Promise((u,f)=>o.then(()=>l[0]==="reject"?f(l[1]):u(l[1])).catch(f));return typeof s!="string"&&typeof s!="number"?{unwrap:c}:Object.assign(s,{unwrap:c})},this.custom=(t,r)=>{const s=(r==null?void 0:r.id)||ko++;return this.create({jsx:t(s),id:s,...r}),s},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Je=new Hv,Kv=(e,t)=>{const r=(t==null?void 0:t.id)||ko++;return Je.addToast({title:e,...t,id:r}),r},Qv=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Yv=Kv,Gv=()=>Je.toasts,Xv=()=>Je.getActiveToasts(),_=Object.assign(Yv,{success:Je.success,info:Je.info,warning:Je.warning,error:Je.error,custom:Je.custom,message:Je.message,promise:Je.promise,dismiss:Je.dismiss,loading:Je.loading},{getHistory:Gv,getToasts:Xv});Iv("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ba(e){return e.label!==void 0}const Jv=3,Zv="24px",qv="16px",iu=4e3,e0=356,t0=14,r0=45,n0=200;function Rt(...e){return e.filter(Boolean).join(" ")}function s0(e){const[t,r]=e.split("-"),s=[];return t&&s.push(t),r&&s.push(r),s}const a0=e=>{var t,r,s,a,i,l,o,c,u;const{invert:f,toast:d,unstyled:x,interacting:y,setHeights:w,visibleToasts:v,heights:j,index:m,toasts:p,expanded:g,removeToast:N,defaultRichColors:b,closeButton:P,style:E,cancelButtonStyle:R,actionButtonStyle:W,className:U="",descriptionClassName:J="",duration:K,position:q,gap:re,expandByDefault:ne,classNames:C,icons:A,closeButtonAriaLabel:T="Close toast"}=e,[F,B]=$.useState(null),[Y,S]=$.useState(null),[k,O]=$.useState(!1),[D,H]=$.useState(!1),[X,G]=$.useState(!1),[M,Q]=$.useState(!1),[de,Fe]=$.useState(!1),[Fi,L]=$.useState(0),[Z,oe]=$.useState(0),ke=$.useRef(d.duration||K||iu),nr=$.useRef(null),Bt=$.useRef(null),Zm=m===0,qm=m+1<=v,at=d.type,an=d.dismissible!==!1,ep=d.className||"",tp=d.descriptionClassName||"",ta=$.useMemo(()=>j.findIndex(ee=>ee.toastId===d.id)||0,[j,d.id]),rp=$.useMemo(()=>{var ee;return(ee=d.closeButton)!=null?ee:P},[d.closeButton,P]),_c=$.useMemo(()=>d.duration||K||iu,[d.duration,K]),$i=$.useRef(0),ln=$.useRef(0),Oc=$.useRef(0),on=$.useRef(null),[np,sp]=q.split("-"),Ac=$.useMemo(()=>j.reduce((ee,ze,$e)=>$e>=ta?ee:ee+ze.height,0),[j,ta]),Fc=Wv(),ap=d.invert||f,Ui=at==="loading";ln.current=$.useMemo(()=>ta*re+Ac,[ta,Ac]),$.useEffect(()=>{ke.current=_c},[_c]),$.useEffect(()=>{O(!0)},[]),$.useEffect(()=>{const ee=Bt.current;if(ee){const ze=ee.getBoundingClientRect().height;return oe(ze),w($e=>[{toastId:d.id,height:ze,position:d.position},...$e]),()=>w($e=>$e.filter(it=>it.toastId!==d.id))}},[w,d.id]),$.useLayoutEffect(()=>{if(!k)return;const ee=Bt.current,ze=ee.style.height;ee.style.height="auto";const $e=ee.getBoundingClientRect().height;ee.style.height=ze,oe($e),w(it=>it.find(De=>De.toastId===d.id)?it.map(De=>De.toastId===d.id?{...De,height:$e}:De):[{toastId:d.id,height:$e,position:d.position},...it])},[k,d.title,d.description,w,d.id,d.jsx,d.action,d.cancel]);const sr=$.useCallback(()=>{H(!0),L(ln.current),w(ee=>ee.filter(ze=>ze.toastId!==d.id)),setTimeout(()=>{N(d)},n0)},[d,N,w,ln]);$.useEffect(()=>{if(d.promise&&at==="loading"||d.duration===1/0||d.type==="loading")return;let ee;return g||y||Fc?(()=>{if(Oc.current<$i.current){const it=new Date().getTime()-$i.current;ke.current=ke.current-it}Oc.current=new Date().getTime()})():(()=>{ke.current!==1/0&&($i.current=new Date().getTime(),ee=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),sr()},ke.current))})(),()=>clearTimeout(ee)},[g,y,d,at,Fc,sr]),$.useEffect(()=>{d.delete&&(sr(),d.onDismiss==null||d.onDismiss.call(d,d))},[sr,d.delete]);function ip(){var ee;if(A!=null&&A.loading){var ze;return $.createElement("div",{className:Rt(C==null?void 0:C.loader,d==null||(ze=d.classNames)==null?void 0:ze.loader,"sonner-loader"),"data-visible":at==="loading"},A.loading)}return $.createElement(Av,{className:Rt(C==null?void 0:C.loader,d==null||(ee=d.classNames)==null?void 0:ee.loader),visible:at==="loading"})}const lp=d.icon||(A==null?void 0:A[at])||_v(at);var $c,Uc;return $.createElement("li",{tabIndex:0,ref:Bt,className:Rt(U,ep,C==null?void 0:C.toast,d==null||(t=d.classNames)==null?void 0:t.toast,C==null?void 0:C.default,C==null?void 0:C[at],d==null||(r=d.classNames)==null?void 0:r[at]),"data-sonner-toast":"","data-rich-colors":($c=d.richColors)!=null?$c:b,"data-styled":!(d.jsx||d.unstyled||x),"data-mounted":k,"data-promise":!!d.promise,"data-swiped":de,"data-removed":D,"data-visible":qm,"data-y-position":np,"data-x-position":sp,"data-index":m,"data-front":Zm,"data-swiping":X,"data-dismissible":an,"data-type":at,"data-invert":ap,"data-swipe-out":M,"data-swipe-direction":Y,"data-expanded":!!(g||ne&&k),"data-testid":d.testId,style:{"--index":m,"--toasts-before":m,"--z-index":p.length-m,"--offset":`${D?Fi:ln.current}px`,"--initial-height":ne?"auto":`${Z}px`,...E,...d.style},onDragEnd:()=>{G(!1),B(null),on.current=null},onPointerDown:ee=>{ee.button!==2&&(Ui||!an||(nr.current=new Date,L(ln.current),ee.target.setPointerCapture(ee.pointerId),ee.target.tagName!=="BUTTON"&&(G(!0),on.current={x:ee.clientX,y:ee.clientY})))},onPointerUp:()=>{var ee,ze,$e;if(M||!an)return;on.current=null;const it=Number(((ee=Bt.current)==null?void 0:ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ra=Number(((ze=Bt.current)==null?void 0:ze.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),De=new Date().getTime()-(($e=nr.current)==null?void 0:$e.getTime()),ft=F==="x"?it:ra,na=Math.abs(ft)/De;if(Math.abs(ft)>=r0||na>.11){L(ln.current),d.onDismiss==null||d.onDismiss.call(d,d),S(F==="x"?it>0?"right":"left":ra>0?"down":"up"),sr(),Q(!0);return}else{var wt,bt;(wt=Bt.current)==null||wt.style.setProperty("--swipe-amount-x","0px"),(bt=Bt.current)==null||bt.style.setProperty("--swipe-amount-y","0px")}Fe(!1),G(!1),B(null)},onPointerMove:ee=>{var ze,$e,it;if(!on.current||!an||((ze=window.getSelection())==null?void 0:ze.toString().length)>0)return;const De=ee.clientY-on.current.y,ft=ee.clientX-on.current.x;var na;const wt=(na=e.swipeDirections)!=null?na:s0(q);!F&&(Math.abs(ft)>1||Math.abs(De)>1)&&B(Math.abs(ft)>Math.abs(De)?"x":"y");let bt={x:0,y:0};const Bc=Ir=>1/(1.5+Math.abs(Ir)/20);if(F==="y"){if(wt.includes("top")||wt.includes("bottom"))if(wt.includes("top")&&De<0||wt.includes("bottom")&&De>0)bt.y=De;else{const Ir=De*Bc(De);bt.y=Math.abs(Ir)<Math.abs(De)?Ir:De}}else if(F==="x"&&(wt.includes("left")||wt.includes("right")))if(wt.includes("left")&&ft<0||wt.includes("right")&&ft>0)bt.x=ft;else{const Ir=ft*Bc(ft);bt.x=Math.abs(Ir)<Math.abs(ft)?Ir:ft}(Math.abs(bt.x)>0||Math.abs(bt.y)>0)&&Fe(!0),($e=Bt.current)==null||$e.style.setProperty("--swipe-amount-x",`${bt.x}px`),(it=Bt.current)==null||it.style.setProperty("--swipe-amount-y",`${bt.y}px`)}},rp&&!d.jsx&&at!=="loading"?$.createElement("button",{"aria-label":T,"data-disabled":Ui,"data-close-button":!0,onClick:Ui||!an?()=>{}:()=>{sr(),d.onDismiss==null||d.onDismiss.call(d,d)},className:Rt(C==null?void 0:C.closeButton,d==null||(s=d.classNames)==null?void 0:s.closeButton)},(Uc=A==null?void 0:A.close)!=null?Uc:Vv):null,(at||d.icon||d.promise)&&d.icon!==null&&((A==null?void 0:A[at])!==null||d.icon)?$.createElement("div",{"data-icon":"",className:Rt(C==null?void 0:C.icon,d==null||(a=d.classNames)==null?void 0:a.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||ip():null,d.type!=="loading"?lp:null):null,$.createElement("div",{"data-content":"",className:Rt(C==null?void 0:C.content,d==null||(i=d.classNames)==null?void 0:i.content)},$.createElement("div",{"data-title":"",className:Rt(C==null?void 0:C.title,d==null||(l=d.classNames)==null?void 0:l.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?$.createElement("div",{"data-description":"",className:Rt(J,tp,C==null?void 0:C.description,d==null||(o=d.classNames)==null?void 0:o.description)},typeof d.description=="function"?d.description():d.description):null),$.isValidElement(d.cancel)?d.cancel:d.cancel&&ba(d.cancel)?$.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||R,onClick:ee=>{ba(d.cancel)&&an&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,ee),sr())},className:Rt(C==null?void 0:C.cancelButton,d==null||(c=d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,$.isValidElement(d.action)?d.action:d.action&&ba(d.action)?$.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||W,onClick:ee=>{ba(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,ee),!ee.defaultPrevented&&sr())},className:Rt(C==null?void 0:C.actionButton,d==null||(u=d.classNames)==null?void 0:u.actionButton)},d.action.label):null)};function lu(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function i0(e,t){const r={};return[e,t].forEach((s,a)=>{const i=a===1,l=i?"--mobile-offset":"--offset",o=i?qv:Zv;function c(u){["top","right","bottom","left"].forEach(f=>{r[`${l}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof s=="number"||typeof s=="string"?c(s):typeof s=="object"?["top","right","bottom","left"].forEach(u=>{s[u]===void 0?r[`${l}-${u}`]=o:r[`${l}-${u}`]=typeof s[u]=="number"?`${s[u]}px`:s[u]}):c(o)}),r}const l0=$.forwardRef(function(t,r){const{id:s,invert:a,position:i="bottom-right",hotkey:l=["altKey","KeyT"],expand:o,closeButton:c,className:u,offset:f,mobileOffset:d,theme:x="light",richColors:y,duration:w,style:v,visibleToasts:j=Jv,toastOptions:m,dir:p=lu(),gap:g=t0,icons:N,containerAriaLabel:b="Notifications"}=t,[P,E]=$.useState([]),R=$.useMemo(()=>s?P.filter(k=>k.toasterId===s):P.filter(k=>!k.toasterId),[P,s]),W=$.useMemo(()=>Array.from(new Set([i].concat(R.filter(k=>k.position).map(k=>k.position)))),[R,i]),[U,J]=$.useState([]),[K,q]=$.useState(!1),[re,ne]=$.useState(!1),[C,A]=$.useState(x!=="system"?x:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),T=$.useRef(null),F=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=$.useRef(null),Y=$.useRef(!1),S=$.useCallback(k=>{E(O=>{var D;return(D=O.find(H=>H.id===k.id))!=null&&D.delete||Je.dismiss(k.id),O.filter(({id:H})=>H!==k.id)})},[]);return $.useEffect(()=>Je.subscribe(k=>{if(k.dismiss){requestAnimationFrame(()=>{E(O=>O.map(D=>D.id===k.id?{...D,delete:!0}:D))});return}setTimeout(()=>{Hf.flushSync(()=>{E(O=>{const D=O.findIndex(H=>H.id===k.id);return D!==-1?[...O.slice(0,D),{...O[D],...k},...O.slice(D+1)]:[k,...O]})})})}),[P]),$.useEffect(()=>{if(x!=="system"){A(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?A("dark"):A("light")),typeof window>"u")return;const k=window.matchMedia("(prefers-color-scheme: dark)");try{k.addEventListener("change",({matches:O})=>{A(O?"dark":"light")})}catch{k.addListener(({matches:D})=>{try{A(D?"dark":"light")}catch(H){console.error(H)}})}},[x]),$.useEffect(()=>{P.length<=1&&q(!1)},[P]),$.useEffect(()=>{const k=O=>{var D;if(l.every(G=>O[G]||O.code===G)){var X;q(!0),(X=T.current)==null||X.focus()}O.code==="Escape"&&(document.activeElement===T.current||(D=T.current)!=null&&D.contains(document.activeElement))&&q(!1)};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[l]),$.useEffect(()=>{if(T.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,Y.current=!1)}},[T.current]),$.createElement("section",{ref:r,"aria-label":`${b} ${F}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},W.map((k,O)=>{var D;const[H,X]=k.split("-");return R.length?$.createElement("ol",{key:k,dir:p==="auto"?lu():p,tabIndex:-1,ref:T,className:u,"data-sonner-toaster":!0,"data-sonner-theme":C,"data-y-position":H,"data-x-position":X,style:{"--front-toast-height":`${((D=U[0])==null?void 0:D.height)||0}px`,"--width":`${e0}px`,"--gap":`${g}px`,...v,...i0(f,d)},onBlur:G=>{Y.current&&!G.currentTarget.contains(G.relatedTarget)&&(Y.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,B.current=G.relatedTarget)},onMouseEnter:()=>q(!0),onMouseMove:()=>q(!0),onMouseLeave:()=>{re||q(!1)},onDragEnd:()=>q(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||ne(!0)},onPointerUp:()=>ne(!1)},R.filter(G=>!G.position&&O===0||G.position===k).map((G,M)=>{var Q,de;return $.createElement(a0,{key:G.id,icons:N,index:M,toast:G,defaultRichColors:y,duration:(Q=m==null?void 0:m.duration)!=null?Q:w,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:a,visibleToasts:j,closeButton:(de=m==null?void 0:m.closeButton)!=null?de:c,interacting:re,position:k,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,closeButtonAriaLabel:m==null?void 0:m.closeButtonAriaLabel,removeToast:S,toasts:R.filter(Fe=>Fe.position==G.position),heights:U.filter(Fe=>Fe.position==G.position),setHeights:J,expandByDefault:o,gap:g,expanded:K,swipeDirections:t.swipeDirections})})):null}))});/**
|
|
68
|
-
* @license lucide-react v0.294.0 - ISC
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the ISC license.
|
|
71
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var o0={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"};/**
|
|
73
|
-
* @license lucide-react v0.294.0 - ISC
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the ISC license.
|
|
76
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const c0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ae=(e,t)=>{const r=h.forwardRef(({color:s="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:o="",children:c,...u},f)=>h.createElement("svg",{ref:f,...o0,width:a,height:a,stroke:s,strokeWidth:l?Number(i)*24/Number(a):i,className:["lucide",`lucide-${c0(e)}`,o].join(" "),...u},[...t.map(([d,x])=>h.createElement(d,x)),...Array.isArray(c)?c:[c]]));return r.displayName=`${e}`,r};/**
|
|
78
|
-
* @license lucide-react v0.294.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the ISC license.
|
|
81
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const Vt=ae("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
83
|
-
* @license lucide-react v0.294.0 - ISC
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the ISC license.
|
|
86
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const fi=ae("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
88
|
-
* @license lucide-react v0.294.0 - ISC
|
|
89
|
-
*
|
|
90
|
-
* This source code is licensed under the ISC license.
|
|
91
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const Ar=ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
93
|
-
* @license lucide-react v0.294.0 - ISC
|
|
94
|
-
*
|
|
95
|
-
* This source code is licensed under the ISC license.
|
|
96
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const So=ae("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
98
|
-
* @license lucide-react v0.294.0 - ISC
|
|
99
|
-
*
|
|
100
|
-
* This source code is licensed under the ISC license.
|
|
101
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const d0=ae("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|
103
|
-
* @license lucide-react v0.294.0 - ISC
|
|
104
|
-
*
|
|
105
|
-
* This source code is licensed under the ISC license.
|
|
106
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/const qe=ae("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
|
|
108
|
-
* @license lucide-react v0.294.0 - ISC
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the ISC license.
|
|
111
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const am=ae("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]);/**
|
|
113
|
-
* @license lucide-react v0.294.0 - ISC
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the ISC license.
|
|
116
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/const Le=ae("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
118
|
-
* @license lucide-react v0.294.0 - ISC
|
|
119
|
-
*
|
|
120
|
-
* This source code is licensed under the ISC license.
|
|
121
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/const u0=ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
123
|
-
* @license lucide-react v0.294.0 - ISC
|
|
124
|
-
*
|
|
125
|
-
* This source code is licensed under the ISC license.
|
|
126
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/const h0=ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
128
|
-
* @license lucide-react v0.294.0 - ISC
|
|
129
|
-
*
|
|
130
|
-
* This source code is licensed under the ISC license.
|
|
131
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/const ps=ae("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
133
|
-
* @license lucide-react v0.294.0 - ISC
|
|
134
|
-
*
|
|
135
|
-
* This source code is licensed under the ISC license.
|
|
136
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/const et=ae("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
138
|
-
* @license lucide-react v0.294.0 - ISC
|
|
139
|
-
*
|
|
140
|
-
* This source code is licensed under the ISC license.
|
|
141
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/const qs=ae("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
143
|
-
* @license lucide-react v0.294.0 - ISC
|
|
144
|
-
*
|
|
145
|
-
* This source code is licensed under the ISC license.
|
|
146
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/const Tc=ae("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
148
|
-
* @license lucide-react v0.294.0 - ISC
|
|
149
|
-
*
|
|
150
|
-
* This source code is licensed under the ISC license.
|
|
151
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/const dn=ae("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
153
|
-
* @license lucide-react v0.294.0 - ISC
|
|
154
|
-
*
|
|
155
|
-
* This source code is licensed under the ISC license.
|
|
156
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/const as=ae("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
158
|
-
* @license lucide-react v0.294.0 - ISC
|
|
159
|
-
*
|
|
160
|
-
* This source code is licensed under the ISC license.
|
|
161
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/const f0=ae("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);/**
|
|
163
|
-
* @license lucide-react v0.294.0 - ISC
|
|
164
|
-
*
|
|
165
|
-
* This source code is licensed under the ISC license.
|
|
166
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/const m0=ae("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
168
|
-
* @license lucide-react v0.294.0 - ISC
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the ISC license.
|
|
171
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/const pl=ae("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
173
|
-
* @license lucide-react v0.294.0 - ISC
|
|
174
|
-
*
|
|
175
|
-
* This source code is licensed under the ISC license.
|
|
176
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/const St=ae("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
|
178
|
-
* @license lucide-react v0.294.0 - ISC
|
|
179
|
-
*
|
|
180
|
-
* This source code is licensed under the ISC license.
|
|
181
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/const Hn=ae("PenSquare",[["path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1qinfi"}],["path",{d:"M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z",key:"w2jsv5"}]]);/**
|
|
183
|
-
* @license lucide-react v0.294.0 - ISC
|
|
184
|
-
*
|
|
185
|
-
* This source code is licensed under the ISC license.
|
|
186
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
-
*/const mi=ae("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
188
|
-
* @license lucide-react v0.294.0 - ISC
|
|
189
|
-
*
|
|
190
|
-
* This source code is licensed under the ISC license.
|
|
191
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/const ou=ae("Puzzle",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]);/**
|
|
193
|
-
* @license lucide-react v0.294.0 - ISC
|
|
194
|
-
*
|
|
195
|
-
* This source code is licensed under the ISC license.
|
|
196
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/const cu=ae("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"}]]);/**
|
|
198
|
-
* @license lucide-react v0.294.0 - ISC
|
|
199
|
-
*
|
|
200
|
-
* This source code is licensed under the ISC license.
|
|
201
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/const Jr=ae("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
203
|
-
* @license lucide-react v0.294.0 - ISC
|
|
204
|
-
*
|
|
205
|
-
* This source code is licensed under the ISC license.
|
|
206
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/const du=ae("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
|
|
208
|
-
* @license lucide-react v0.294.0 - ISC
|
|
209
|
-
*
|
|
210
|
-
* This source code is licensed under the ISC license.
|
|
211
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
-
*/const In=ae("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
213
|
-
* @license lucide-react v0.294.0 - ISC
|
|
214
|
-
*
|
|
215
|
-
* This source code is licensed under the ISC license.
|
|
216
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
-
*/const Wt=ae("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/**
|
|
218
|
-
* @license lucide-react v0.294.0 - ISC
|
|
219
|
-
*
|
|
220
|
-
* This source code is licensed under the ISC license.
|
|
221
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
-
*/const Wr=ae("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
223
|
-
* @license lucide-react v0.294.0 - ISC
|
|
224
|
-
*
|
|
225
|
-
* This source code is licensed under the ISC license.
|
|
226
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
227
|
-
*/const Hr=ae("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
|
|
228
|
-
* @license lucide-react v0.294.0 - ISC
|
|
229
|
-
*
|
|
230
|
-
* This source code is licensed under the ISC license.
|
|
231
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
232
|
-
*/const p0=ae("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
233
|
-
* @license lucide-react v0.294.0 - ISC
|
|
234
|
-
*
|
|
235
|
-
* This source code is licensed under the ISC license.
|
|
236
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
237
|
-
*/const xe=ae("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
|
238
|
-
* @license lucide-react v0.294.0 - ISC
|
|
239
|
-
*
|
|
240
|
-
* This source code is licensed under the ISC license.
|
|
241
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
242
|
-
*/const is=ae("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
243
|
-
* @license lucide-react v0.294.0 - ISC
|
|
244
|
-
*
|
|
245
|
-
* This source code is licensed under the ISC license.
|
|
246
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
247
|
-
*/const we=ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
248
|
-
* @license lucide-react v0.294.0 - ISC
|
|
249
|
-
*
|
|
250
|
-
* This source code is licensed under the ISC license.
|
|
251
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
252
|
-
*/const Fa=ae("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function uu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zr(...e){return t=>{let r=!1;const s=e.map(a=>{const i=uu(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<s.length;a++){const i=s[a];typeof i=="function"?i():uu(e[a],null)}}}}function sn(...e){return h.useCallback(Zr(...e),e)}function zc(e){const t=g0(e),r=h.forwardRef((s,a)=>{const{children:i,...l}=s,o=h.Children.toArray(i),c=o.find(y0);if(c){const u=c.props.children,f=o.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return n.jsx(t,{...l,ref:a,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return n.jsx(t,{...l,ref:a,children:i})});return r.displayName=`${e}.Slot`,r}var x0=zc("Slot");function g0(e){const t=h.forwardRef((r,s)=>{const{children:a,...i}=r;if(h.isValidElement(a)){const l=b0(a),o=w0(i,a.props);return a.type!==h.Fragment&&(o.ref=s?Zr(s,l):l),h.cloneElement(a,o)}return h.Children.count(a)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v0=Symbol("radix.slottable");function y0(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v0}function w0(e,t){const r={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?r[s]=(...o)=>{const c=i(...o);return a(...o),c}:a&&(r[s]=a):s==="style"?r[s]={...a,...i}:s==="className"&&(r[s]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function b0(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function im(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=im(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function lm(){for(var e,t,r=0,s="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=im(e))&&(s&&(s+=" "),s+=t);return s}const hu=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fu=lm,om=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return fu(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:i}=t,l=Object.keys(a).map(u=>{const f=r==null?void 0:r[u],d=i==null?void 0:i[u];if(f===null)return null;const x=hu(f)||hu(d);return a[u][x]}),o=r&&Object.entries(r).reduce((u,f)=>{let[d,x]=f;return x===void 0||(u[d]=x),u},{}),c=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,f)=>{let{class:d,className:x,...y}=f;return Object.entries(y).every(w=>{let[v,j]=w;return Array.isArray(j)?j.includes({...i,...o}[v]):{...i,...o}[v]===j})?[...u,d,x]:u},[]);return fu(e,l,c,r==null?void 0:r.class,r==null?void 0:r.className)},Mc="-",j0=e=>{const t=k0(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{const o=l.split(Mc);return o[0]===""&&o.length!==1&&o.shift(),cm(o,t)||N0(l)},getConflictingClassGroupIds:(l,o)=>{const c=r[l]||[];return o&&s[l]?[...c,...s[l]]:c}}},cm=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),a=s?cm(e.slice(1),s):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(Mc);return(l=t.validators.find(({validator:o})=>o(i)))==null?void 0:l.classGroupId},mu=/^\[(.+)\]$/,N0=e=>{if(mu.test(e)){const t=mu.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},k0=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return C0(Object.entries(e.classGroups),r).forEach(([i,l])=>{Co(l,s,i,t)}),s},Co=(e,t,r,s)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:pu(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(S0(a)){Co(a(s),t,r,s);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,l])=>{Co(l,pu(t,i),r,s)})})},pu=(e,t)=>{let r=e;return t.split(Mc).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},S0=e=>e.isThemeGetter,C0=(e,t)=>t?e.map(([r,s])=>{const a=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,o])=>[t+l,o])):i);return[r,a]}):e,E0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const a=(i,l)=>{r.set(i,l),t++,t>e&&(t=0,s=r,r=new Map)};return{get(i){let l=r.get(i);if(l!==void 0)return l;if((l=s.get(i))!==void 0)return a(i,l),l},set(i,l){r.has(i)?r.set(i,l):a(i,l)}}},dm="!",P0=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,a=t[0],i=t.length,l=o=>{const c=[];let u=0,f=0,d;for(let j=0;j<o.length;j++){let m=o[j];if(u===0){if(m===a&&(s||o.slice(j,j+i)===t)){c.push(o.slice(f,j)),f=j+i;continue}if(m==="/"){d=j;continue}}m==="["?u++:m==="]"&&u--}const x=c.length===0?o:o.substring(f),y=x.startsWith(dm),w=y?x.substring(1):x,v=d&&d>f?d-f:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:v}};return r?o=>r({className:o,parseClassName:l}):l},T0=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},z0=e=>({cache:E0(e.cacheSize),parseClassName:P0(e),...j0(e)}),M0=/\s+/,R0=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:a}=t,i=[],l=e.trim().split(M0);let o="";for(let c=l.length-1;c>=0;c-=1){const u=l[c],{modifiers:f,hasImportantModifier:d,baseClassName:x,maybePostfixModifierPosition:y}=r(u);let w=!!y,v=s(w?x.substring(0,y):x);if(!v){if(!w){o=u+(o.length>0?" "+o:o);continue}if(v=s(x),!v){o=u+(o.length>0?" "+o:o);continue}w=!1}const j=T0(f).join(":"),m=d?j+dm:j,p=m+v;if(i.includes(p))continue;i.push(p);const g=a(v,w);for(let N=0;N<g.length;++N){const b=g[N];i.push(m+b)}o=u+(o.length>0?" "+o:o)}return o};function D0(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=um(t))&&(s&&(s+=" "),s+=r);return s}const um=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=um(e[s]))&&(r&&(r+=" "),r+=t);return r};function L0(e,...t){let r,s,a,i=l;function l(c){const u=t.reduce((f,d)=>d(f),e());return r=z0(u),s=r.cache.get,a=r.cache.set,i=o,o(c)}function o(c){const u=s(c);if(u)return u;const f=R0(c,r);return a(c,f),f}return function(){return i(D0.apply(null,arguments))}}const fe=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},hm=/^\[(?:([a-z-]+):)?(.+)\]$/i,I0=/^\d+\/\d+$/,_0=new Set(["px","full","screen"]),O0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A0=/\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$/,F0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,U0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ht=e=>_n(e)||_0.has(e)||I0.test(e),ir=e=>Xn(e,"length",G0),_n=e=>!!e&&!Number.isNaN(Number(e)),xl=e=>Xn(e,"number",_n),ls=e=>!!e&&Number.isInteger(Number(e)),B0=e=>e.endsWith("%")&&_n(e.slice(0,-1)),te=e=>hm.test(e),lr=e=>O0.test(e),V0=new Set(["length","size","percentage"]),W0=e=>Xn(e,V0,fm),H0=e=>Xn(e,"position",fm),K0=new Set(["image","url"]),Q0=e=>Xn(e,K0,J0),Y0=e=>Xn(e,"",X0),os=()=>!0,Xn=(e,t,r)=>{const s=hm.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},G0=e=>A0.test(e)&&!F0.test(e),fm=()=>!1,X0=e=>$0.test(e),J0=e=>U0.test(e),Z0=()=>{const e=fe("colors"),t=fe("spacing"),r=fe("blur"),s=fe("brightness"),a=fe("borderColor"),i=fe("borderRadius"),l=fe("borderSpacing"),o=fe("borderWidth"),c=fe("contrast"),u=fe("grayscale"),f=fe("hueRotate"),d=fe("invert"),x=fe("gap"),y=fe("gradientColorStops"),w=fe("gradientColorStopPositions"),v=fe("inset"),j=fe("margin"),m=fe("opacity"),p=fe("padding"),g=fe("saturate"),N=fe("scale"),b=fe("sepia"),P=fe("skew"),E=fe("space"),R=fe("translate"),W=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto",te,t],K=()=>[te,t],q=()=>["",Ht,ir],re=()=>["auto",_n,te],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],C=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",te],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[_n,te];return{cacheSize:500,separator:":",theme:{colors:[os],spacing:[Ht,ir],blur:["none","",lr,te],brightness:Y(),borderColor:[e],borderRadius:["none","","full",lr,te],borderSpacing:K(),borderWidth:q(),contrast:Y(),grayscale:F(),hueRotate:Y(),invert:F(),gap:K(),gradientColorStops:[e],gradientColorStopPositions:[B0,ir],inset:J(),margin:J(),opacity:Y(),padding:K(),saturate:Y(),scale:Y(),sepia:F(),skew:Y(),space:K(),translate:K()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[lr]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:[...ne(),te]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ls,te]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",ls,te]}],"grid-cols":[{"grid-cols":[os]}],"col-start-end":[{col:["auto",{span:["full",ls,te]},te]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[os]}],"row-start-end":[{row:["auto",{span:[ls,te]},te]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[lr]},lr]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",lr,ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xl]}],"font-family":[{font:[os]}],"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",te]}],"line-clamp":[{"line-clamp":["none",_n,xl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ht,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...C(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ht,ir]}],"underline-offset":[{"underline-offset":["auto",Ht,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],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",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),H0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Q0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...C(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:C()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...C()]}],"outline-offset":[{"outline-offset":[Ht,te]}],"outline-w":[{outline:[Ht,ir]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Ht,ir]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",lr,Y0]}],"shadow-color":[{shadow:[os]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",lr,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[ls,te]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],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",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"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",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ht,ir,xl]}],stroke:[{stroke:[e,"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"]}}},q0=L0(Z0);function Lr(...e){return q0(lm(e))}const ey=om("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-white text-black hover:bg-white shadow",destructive:"bg-red-500 text-white hover:bg-red-600 shadow",outline:"border border-white bg-black hover:bg-black hover:text-white",secondary:"bg-black text-white hover:bg-black shadow border border-white",ghost:"hover:bg-black text-white hover:text-white",link:"text-white underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),z=h.forwardRef(({className:e,variant:t,size:r,asChild:s=!1,...a},i)=>{const l=s?x0:"button";return n.jsx(l,{className:Lr(ey({variant:t,size:r,className:e})),ref:i,...a})});z.displayName="Button";const ty=om("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-white text-black hover:bg-white",secondary:"border-transparent bg-gray-800 text-white hover:bg-gray-800 border border-gray-600",destructive:"border-transparent bg-red-500 text-white hover:bg-red-600",outline:"text-gray-300 border-gray-600",success:"border-transparent bg-green-900 text-green-300",warning:"border-transparent bg-yellow-900 text-yellow-300",error:"border-transparent bg-red-900 text-red-300",info:"border-transparent bg-gray-800 text-white border border-gray-600"}},defaultVariants:{variant:"default"}});function ie({className:e,variant:t,...r}){return n.jsx("div",{className:Lr(ty({variant:t}),e),...r})}var xu=1,ry=.9,ny=.8,sy=.17,gl=.1,vl=.999,ay=.9999,iy=.99,ly=/[\\\/_+.#"@\[\(\{&]/,oy=/[\\\/_+.#"@\[\(\{&]/g,cy=/[\s-]/,mm=/[\s-]/g;function Eo(e,t,r,s,a,i,l){if(i===t.length)return a===e.length?xu:iy;var o=`${a},${i}`;if(l[o]!==void 0)return l[o];for(var c=s.charAt(i),u=r.indexOf(c,a),f=0,d,x,y,w;u>=0;)d=Eo(e,t,r,s,u+1,i+1,l),d>f&&(u===a?d*=xu:ly.test(e.charAt(u-1))?(d*=ny,y=e.slice(a,u-1).match(oy),y&&a>0&&(d*=Math.pow(vl,y.length))):cy.test(e.charAt(u-1))?(d*=ry,w=e.slice(a,u-1).match(mm),w&&a>0&&(d*=Math.pow(vl,w.length))):(d*=sy,a>0&&(d*=Math.pow(vl,u-a))),e.charAt(u)!==t.charAt(i)&&(d*=ay)),(d<gl&&r.charAt(u-1)===s.charAt(i+1)||s.charAt(i+1)===s.charAt(i)&&r.charAt(u-1)!==s.charAt(i))&&(x=Eo(e,t,r,s,u+1,i+2,l),x*gl>d&&(d=x*gl)),d>f&&(f=d),u=r.indexOf(c,u+1);return l[o]=f,f}function gu(e){return e.toLowerCase().replace(mm," ")}function dy(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Eo(e,t,gu(e),gu(t),0,0,{})}function Cr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function uy(e,t){const r=h.createContext(t),s=i=>{const{children:l,...o}=i,c=h.useMemo(()=>o,Object.values(o));return n.jsx(r.Provider,{value:c,children:l})};s.displayName=e+"Provider";function a(i){const l=h.useContext(r);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,a]}function hy(e,t=[]){let r=[];function s(i,l){const o=h.createContext(l),c=r.length;r=[...r,l];const u=d=>{var m;const{scope:x,children:y,...w}=d,v=((m=x==null?void 0:x[e])==null?void 0:m[c])||o,j=h.useMemo(()=>w,Object.values(w));return n.jsx(v.Provider,{value:j,children:y})};u.displayName=i+"Provider";function f(d,x){var v;const y=((v=x==null?void 0:x[e])==null?void 0:v[c])||o,w=h.useContext(y);if(w)return w;if(l!==void 0)return l;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,f]}const a=()=>{const i=r.map(l=>h.createContext(l));return function(o){const c=(o==null?void 0:o[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return a.scopeName=e,[s,fy(a,...t)]}function fy(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const l=s.reduce((o,{useScope:c,scopeName:u})=>{const d=c(i)[`__scope${u}`];return{...o,...d}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}var Ws=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},my=Io[" useId ".trim().toString()]||(()=>{}),py=0;function Jt(e){const[t,r]=h.useState(my());return Ws(()=>{r(s=>s??String(py++))},[e]),t?`radix-${t}`:""}var xy=Io[" useInsertionEffect ".trim().toString()]||Ws;function gy({prop:e,defaultProp:t,onChange:r=()=>{},caller:s}){const[a,i,l]=vy({defaultProp:t,onChange:r}),o=e!==void 0,c=o?e:a;{const f=h.useRef(e!==void 0);h.useEffect(()=>{const d=f.current;d!==o&&console.warn(`${s} is changing from ${d?"controlled":"uncontrolled"} to ${o?"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.`),f.current=o},[o,s])}const u=h.useCallback(f=>{var d;if(o){const x=yy(f)?f(e):f;x!==e&&((d=l.current)==null||d.call(l,x))}else i(f)},[o,e,i,l]);return[c,u]}function vy({defaultProp:e,onChange:t}){const[r,s]=h.useState(e),a=h.useRef(r),i=h.useRef(t);return xy(()=>{i.current=t},[t]),h.useEffect(()=>{var l;a.current!==r&&((l=i.current)==null||l.call(i,r),a.current=r)},[r,a]),[r,s,i]}function yy(e){return typeof e=="function"}var wy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=wy.reduce((e,t)=>{const r=zc(`Primitive.${t}`),s=h.forwardRef((a,i)=>{const{asChild:l,...o}=a,c=l?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(c,{...o,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function by(e,t){e&&Cc.flushSync(()=>e.dispatchEvent(t))}function Hs(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>{var s;return(s=t.current)==null?void 0:s.call(t,...r)},[])}function jy(e,t=globalThis==null?void 0:globalThis.document){const r=Hs(e);h.useEffect(()=>{const s=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[r,t])}var Ny="DismissableLayer",Po="dismissableLayer.update",ky="dismissableLayer.pointerDownOutside",Sy="dismissableLayer.focusOutside",vu,pm=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xm=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:o,...c}=e,u=h.useContext(pm),[f,d]=h.useState(null),x=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=h.useState({}),w=sn(t,E=>d(E)),v=Array.from(u.layers),[j]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(j),p=f?v.indexOf(f):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,N=p>=m,b=Py(E=>{const R=E.target,W=[...u.branches].some(U=>U.contains(R));!N||W||(a==null||a(E),l==null||l(E),E.defaultPrevented||o==null||o())},x),P=Ty(E=>{const R=E.target;[...u.branches].some(U=>U.contains(R))||(i==null||i(E),l==null||l(E),E.defaultPrevented||o==null||o())},x);return jy(E=>{p===u.layers.size-1&&(s==null||s(E),!E.defaultPrevented&&o&&(E.preventDefault(),o()))},x),h.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(vu=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),yu(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=vu)}},[f,x,r,u]),h.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),yu())},[f,u]),h.useEffect(()=>{const E=()=>y({});return document.addEventListener(Po,E),()=>document.removeEventListener(Po,E)},[]),n.jsx(Ae.div,{...c,ref:w,style:{pointerEvents:g?N?"auto":"none":void 0,...e.style},onFocusCapture:Cr(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Cr(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Cr(e.onPointerDownCapture,b.onPointerDownCapture)})});xm.displayName=Ny;var Cy="DismissableLayerBranch",Ey=h.forwardRef((e,t)=>{const r=h.useContext(pm),s=h.useRef(null),a=sn(t,s);return h.useEffect(()=>{const i=s.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),n.jsx(Ae.div,{...e,ref:a})});Ey.displayName=Cy;function Py(e,t=globalThis==null?void 0:globalThis.document){const r=Hs(e),s=h.useRef(!1),a=h.useRef(()=>{});return h.useEffect(()=>{const i=o=>{if(o.target&&!s.current){let c=function(){gm(ky,r,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);s.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>s.current=!0}}function Ty(e,t=globalThis==null?void 0:globalThis.document){const r=Hs(e),s=h.useRef(!1);return h.useEffect(()=>{const a=i=>{i.target&&!s.current&&gm(Sy,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function yu(){const e=new CustomEvent(Po);document.dispatchEvent(e)}function gm(e,t,r,{discrete:s}){const a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),s?by(a,i):a.dispatchEvent(i)}var yl="focusScope.autoFocusOnMount",wl="focusScope.autoFocusOnUnmount",wu={bubbles:!1,cancelable:!0},zy="FocusScope",vm=h.forwardRef((e,t)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...l}=e,[o,c]=h.useState(null),u=Hs(a),f=Hs(i),d=h.useRef(null),x=sn(t,v=>c(v)),y=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(s){let v=function(g){if(y.paused||!o)return;const N=g.target;o.contains(N)?d.current=N:cr(d.current,{select:!0})},j=function(g){if(y.paused||!o)return;const N=g.relatedTarget;N!==null&&(o.contains(N)||cr(d.current,{select:!0}))},m=function(g){if(document.activeElement===document.body)for(const b of g)b.removedNodes.length>0&&cr(o)};document.addEventListener("focusin",v),document.addEventListener("focusout",j);const p=new MutationObserver(m);return o&&p.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",j),p.disconnect()}}},[s,o,y.paused]),h.useEffect(()=>{if(o){ju.add(y);const v=document.activeElement;if(!o.contains(v)){const m=new CustomEvent(yl,wu);o.addEventListener(yl,u),o.dispatchEvent(m),m.defaultPrevented||(My(_y(ym(o)),{select:!0}),document.activeElement===v&&cr(o))}return()=>{o.removeEventListener(yl,u),setTimeout(()=>{const m=new CustomEvent(wl,wu);o.addEventListener(wl,f),o.dispatchEvent(m),m.defaultPrevented||cr(v??document.body,{select:!0}),o.removeEventListener(wl,f),ju.remove(y)},0)}}},[o,u,f,y]);const w=h.useCallback(v=>{if(!r&&!s||y.paused)return;const j=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(j&&m){const p=v.currentTarget,[g,N]=Ry(p);g&&N?!v.shiftKey&&m===N?(v.preventDefault(),r&&cr(g,{select:!0})):v.shiftKey&&m===g&&(v.preventDefault(),r&&cr(N,{select:!0})):m===p&&v.preventDefault()}},[r,s,y.paused]);return n.jsx(Ae.div,{tabIndex:-1,...l,ref:x,onKeyDown:w})});vm.displayName=zy;function My(e,{select:t=!1}={}){const r=document.activeElement;for(const s of e)if(cr(s,{select:t}),document.activeElement!==r)return}function Ry(e){const t=ym(e),r=bu(t,e),s=bu(t.reverse(),e);return[r,s]}function ym(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function bu(e,t){for(const r of e)if(!Dy(r,{upTo:t}))return r}function Dy(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ly(e){return e instanceof HTMLInputElement&&"select"in e}function cr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Ly(e)&&t&&e.select()}}var ju=Iy();function Iy(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Nu(e,t),e.unshift(t)},remove(t){var r;e=Nu(e,t),(r=e[0])==null||r.resume()}}}function Nu(e,t){const r=[...e],s=r.indexOf(t);return s!==-1&&r.splice(s,1),r}function _y(e){return e.filter(t=>t.tagName!=="A")}var Oy="Portal",wm=h.forwardRef((e,t)=>{var o;const{container:r,...s}=e,[a,i]=h.useState(!1);Ws(()=>i(!0),[]);const l=r||a&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return l?Hf.createPortal(n.jsx(Ae.div,{...s,ref:t}),l):null});wm.displayName=Oy;function Ay(e,t){return h.useReducer((r,s)=>t[r][s]??r,e)}var Li=e=>{const{present:t,children:r}=e,s=Fy(t),a=typeof r=="function"?r({present:s.isPresent}):h.Children.only(r),i=sn(s.ref,$y(a));return typeof r=="function"||s.isPresent?h.cloneElement(a,{ref:i}):null};Li.displayName="Presence";function Fy(e){const[t,r]=h.useState(),s=h.useRef(null),a=h.useRef(e),i=h.useRef("none"),l=e?"mounted":"unmounted",[o,c]=Ay(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=ja(s.current);i.current=o==="mounted"?u:"none"},[o]),Ws(()=>{const u=s.current,f=a.current;if(f!==e){const x=i.current,y=ja(u);e?c("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&x!==y?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),Ws(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=y=>{const v=ja(s.current).includes(CSS.escape(y.animationName));if(y.target===t&&v&&(c("ANIMATION_END"),!a.current)){const j=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=j)})}},x=y=>{y.target===t&&(i.current=ja(s.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:h.useCallback(u=>{s.current=u?getComputedStyle(u):null,r(u)},[])}}function ja(e){return(e==null?void 0:e.animationName)||"none"}function $y(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var bl=0;function Uy(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ku()),document.body.insertAdjacentElement("beforeend",e[1]??ku()),bl++,()=>{bl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bl--}},[])}function ku(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var At=function(){return At=Object.assign||function(t){for(var r,s=1,a=arguments.length;s<a;s++){r=arguments[s];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},At.apply(this,arguments)};function bm(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(r[s[a]]=e[s[a]]);return r}function By(e,t,r){if(r||arguments.length===2)for(var s=0,a=t.length,i;s<a;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}var $a="right-scroll-bar-position",Ua="width-before-scroll-bar",Vy="with-scroll-bars-hidden",Wy="--removed-body-scroll-bar-size";function jl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Hy(e,t){var r=h.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(s){var a=r.value;a!==s&&(r.value=s,r.callback(s,a))}}}})[0];return r.callback=t,r.facade}var Ky=typeof window<"u"?h.useLayoutEffect:h.useEffect,Su=new WeakMap;function Qy(e,t){var r=Hy(null,function(s){return e.forEach(function(a){return jl(a,s)})});return Ky(function(){var s=Su.get(r);if(s){var a=new Set(s),i=new Set(e),l=r.current;a.forEach(function(o){i.has(o)||jl(o,null)}),i.forEach(function(o){a.has(o)||jl(o,l)})}Su.set(r,e)},[e]),r}function Yy(e){return e}function Gy(e,t){t===void 0&&(t=Yy);var r=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var l=t(i,s);return r.push(l),function(){r=r.filter(function(o){return o!==l})}},assignSyncMedium:function(i){for(s=!0;r.length;){var l=r;r=[],l.forEach(i)}r={push:function(o){return i(o)},filter:function(){return r}}},assignMedium:function(i){s=!0;var l=[];if(r.length){var o=r;r=[],o.forEach(i),l=r}var c=function(){var f=l;l=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(f){l.push(f),u()},filter:function(f){return l=l.filter(f),r}}}};return a}function Xy(e){e===void 0&&(e={});var t=Gy(null);return t.options=At({async:!0,ssr:!1},e),t}var jm=function(e){var t=e.sideCar,r=bm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return h.createElement(s,At({},r))};jm.isSideCarExport=!0;function Jy(e,t){return e.useMedium(t),jm}var Nm=Xy(),Nl=function(){},Ii=h.forwardRef(function(e,t){var r=h.useRef(null),s=h.useState({onScrollCapture:Nl,onWheelCapture:Nl,onTouchMoveCapture:Nl}),a=s[0],i=s[1],l=e.forwardProps,o=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,x=e.sideCar,y=e.noRelative,w=e.noIsolation,v=e.inert,j=e.allowPinchZoom,m=e.as,p=m===void 0?"div":m,g=e.gapMode,N=bm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=x,P=Qy([r,t]),E=At(At({},N),a);return h.createElement(h.Fragment,null,f&&h.createElement(b,{sideCar:Nm,removeScrollBar:u,shards:d,noRelative:y,noIsolation:w,inert:v,setCallbacks:i,allowPinchZoom:!!j,lockRef:r,gapMode:g}),l?h.cloneElement(h.Children.only(o),At(At({},E),{ref:P})):h.createElement(p,At({},E,{className:c,ref:P}),o))});Ii.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ii.classNames={fullWidth:Ua,zeroRight:$a};var Zy=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qy(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Zy();return t&&e.setAttribute("nonce",t),e}function ew(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var rw=function(){var e=0,t=null;return{add:function(r){e==0&&(t=qy())&&(ew(t,r),tw(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nw=function(){var e=rw();return function(t,r){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},km=function(){var e=nw(),t=function(r){var s=r.styles,a=r.dynamic;return e(s,a),null};return t},sw={left:0,top:0,right:0,gap:0},kl=function(e){return parseInt(e||"",10)||0},aw=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[kl(r),kl(s),kl(a)]},iw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sw;var t=aw(e),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-r+t[2]-t[0])}},lw=km(),On="data-scroll-locked",ow=function(e,t,r,s){var a=e.left,i=e.top,l=e.right,o=e.gap;return r===void 0&&(r="margin"),`
|
|
253
|
-
.`.concat(Vy,` {
|
|
254
|
-
overflow: hidden `).concat(s,`;
|
|
255
|
-
padding-right: `).concat(o,"px ").concat(s,`;
|
|
256
|
-
}
|
|
257
|
-
body[`).concat(On,`] {
|
|
258
|
-
overflow: hidden `).concat(s,`;
|
|
259
|
-
overscroll-behavior: contain;
|
|
260
|
-
`).concat([t&&"position: relative ".concat(s,";"),r==="margin"&&`
|
|
261
|
-
padding-left: `.concat(a,`px;
|
|
262
|
-
padding-top: `).concat(i,`px;
|
|
263
|
-
padding-right: `).concat(l,`px;
|
|
264
|
-
margin-left:0;
|
|
265
|
-
margin-top:0;
|
|
266
|
-
margin-right: `).concat(o,"px ").concat(s,`;
|
|
267
|
-
`),r==="padding"&&"padding-right: ".concat(o,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.`).concat($a,` {
|
|
271
|
-
right: `).concat(o,"px ").concat(s,`;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.`).concat(Ua,` {
|
|
275
|
-
margin-right: `).concat(o,"px ").concat(s,`;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.`).concat($a," .").concat($a,` {
|
|
279
|
-
right: 0 `).concat(s,`;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.`).concat(Ua," .").concat(Ua,` {
|
|
283
|
-
margin-right: 0 `).concat(s,`;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
body[`).concat(On,`] {
|
|
287
|
-
`).concat(Wy,": ").concat(o,`px;
|
|
288
|
-
}
|
|
289
|
-
`)},Cu=function(){var e=parseInt(document.body.getAttribute(On)||"0",10);return isFinite(e)?e:0},cw=function(){h.useEffect(function(){return document.body.setAttribute(On,(Cu()+1).toString()),function(){var e=Cu()-1;e<=0?document.body.removeAttribute(On):document.body.setAttribute(On,e.toString())}},[])},dw=function(e){var t=e.noRelative,r=e.noImportant,s=e.gapMode,a=s===void 0?"margin":s;cw();var i=h.useMemo(function(){return iw(a)},[a]);return h.createElement(lw,{styles:ow(i,!t,a,r?"":"!important")})},To=!1;if(typeof window<"u")try{var Na=Object.defineProperty({},"passive",{get:function(){return To=!0,!0}});window.addEventListener("test",Na,Na),window.removeEventListener("test",Na,Na)}catch{To=!1}var un=To?{passive:!1}:!1,uw=function(e){return e.tagName==="TEXTAREA"},Sm=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!uw(e)&&r[t]==="visible")},hw=function(e){return Sm(e,"overflowY")},fw=function(e){return Sm(e,"overflowX")},Eu=function(e,t){var r=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var a=Cm(e,s);if(a){var i=Em(e,s),l=i[1],o=i[2];if(l>o)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},mw=function(e){var t=e.scrollTop,r=e.scrollHeight,s=e.clientHeight;return[t,r,s]},pw=function(e){var t=e.scrollLeft,r=e.scrollWidth,s=e.clientWidth;return[t,r,s]},Cm=function(e,t){return e==="v"?hw(t):fw(t)},Em=function(e,t){return e==="v"?mw(t):pw(t)},xw=function(e,t){return e==="h"&&t==="rtl"?-1:1},gw=function(e,t,r,s,a){var i=xw(e,window.getComputedStyle(t).direction),l=i*s,o=r.target,c=t.contains(o),u=!1,f=l>0,d=0,x=0;do{if(!o)break;var y=Em(e,o),w=y[0],v=y[1],j=y[2],m=v-j-i*w;(w||m)&&Cm(e,o)&&(d+=m,x+=w);var p=o.parentNode;o=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!c&&o!==document.body||c&&(t.contains(o)||t===o));return(f&&Math.abs(d)<1||!f&&Math.abs(x)<1)&&(u=!0),u},ka=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pu=function(e){return[e.deltaX,e.deltaY]},Tu=function(e){return e&&"current"in e?e.current:e},vw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yw=function(e){return`
|
|
290
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
291
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
292
|
-
`)},ww=0,hn=[];function bw(e){var t=h.useRef([]),r=h.useRef([0,0]),s=h.useRef(),a=h.useState(ww++)[0],i=h.useState(km)[0],l=h.useRef(e);h.useEffect(function(){l.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=By([e.lockRef.current],(e.shards||[]).map(Tu),!0).filter(Boolean);return v.forEach(function(j){return j.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=h.useCallback(function(v,j){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var m=ka(v),p=r.current,g="deltaX"in v?v.deltaX:p[0]-m[0],N="deltaY"in v?v.deltaY:p[1]-m[1],b,P=v.target,E=Math.abs(g)>Math.abs(N)?"h":"v";if("touches"in v&&E==="h"&&P.type==="range")return!1;var R=Eu(E,P);if(!R)return!0;if(R?b=E:(b=E==="v"?"h":"v",R=Eu(E,P)),!R)return!1;if(!s.current&&"changedTouches"in v&&(g||N)&&(s.current=b),!b)return!0;var W=s.current||b;return gw(W,j,v,W==="h"?g:N)},[]),c=h.useCallback(function(v){var j=v;if(!(!hn.length||hn[hn.length-1]!==i)){var m="deltaY"in j?Pu(j):ka(j),p=t.current.filter(function(b){return b.name===j.type&&(b.target===j.target||j.target===b.shadowParent)&&vw(b.delta,m)})[0];if(p&&p.should){j.cancelable&&j.preventDefault();return}if(!p){var g=(l.current.shards||[]).map(Tu).filter(Boolean).filter(function(b){return b.contains(j.target)}),N=g.length>0?o(j,g[0]):!l.current.noIsolation;N&&j.cancelable&&j.preventDefault()}}},[]),u=h.useCallback(function(v,j,m,p){var g={name:v,delta:j,target:m,should:p,shadowParent:jw(m)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(N){return N!==g})},1)},[]),f=h.useCallback(function(v){r.current=ka(v),s.current=void 0},[]),d=h.useCallback(function(v){u(v.type,Pu(v),v.target,o(v,e.lockRef.current))},[]),x=h.useCallback(function(v){u(v.type,ka(v),v.target,o(v,e.lockRef.current))},[]);h.useEffect(function(){return hn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:x}),document.addEventListener("wheel",c,un),document.addEventListener("touchmove",c,un),document.addEventListener("touchstart",f,un),function(){hn=hn.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,un),document.removeEventListener("touchmove",c,un),document.removeEventListener("touchstart",f,un)}},[]);var y=e.removeScrollBar,w=e.inert;return h.createElement(h.Fragment,null,w?h.createElement(i,{styles:yw(a)}):null,y?h.createElement(dw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Nw=Jy(Nm,bw);var Pm=h.forwardRef(function(e,t){return h.createElement(Ii,At({},e,{ref:t,sideCar:Nw}))});Pm.classNames=Ii.classNames;var kw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},fn=new WeakMap,Sa=new WeakMap,Ca={},Sl=0,Tm=function(e){return e&&(e.host||Tm(e.parentNode))},Sw=function(e,t){return t.map(function(r){if(e.contains(r))return r;var s=Tm(r);return s&&e.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Cw=function(e,t,r,s){var a=Sw(t,Array.isArray(e)?e:[e]);Ca[r]||(Ca[r]=new WeakMap);var i=Ca[r],l=[],o=new Set,c=new Set(a),u=function(d){!d||o.has(d)||(o.add(d),u(d.parentNode))};a.forEach(u);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(x){if(o.has(x))f(x);else try{var y=x.getAttribute(s),w=y!==null&&y!=="false",v=(fn.get(x)||0)+1,j=(i.get(x)||0)+1;fn.set(x,v),i.set(x,j),l.push(x),v===1&&w&&Sa.set(x,!0),j===1&&x.setAttribute(r,"true"),w||x.setAttribute(s,"true")}catch(m){console.error("aria-hidden: cannot operate on ",x,m)}})};return f(t),o.clear(),Sl++,function(){l.forEach(function(d){var x=fn.get(d)-1,y=i.get(d)-1;fn.set(d,x),i.set(d,y),x||(Sa.has(d)||d.removeAttribute(s),Sa.delete(d)),y||d.removeAttribute(r)}),Sl--,Sl||(fn=new WeakMap,fn=new WeakMap,Sa=new WeakMap,Ca={})}},Ew=function(e,t,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=kw(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),Cw(s,a,r,"aria-hidden")):function(){return null}},_i="Dialog",[zm,vb]=hy(_i),[Pw,zt]=zm(_i),Mm=e=>{const{__scopeDialog:t,children:r,open:s,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,o=h.useRef(null),c=h.useRef(null),[u,f]=gy({prop:s,defaultProp:a??!1,onChange:i,caller:_i});return n.jsx(Pw,{scope:t,triggerRef:o,contentRef:c,contentId:Jt(),titleId:Jt(),descriptionId:Jt(),open:u,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(d=>!d),[f]),modal:l,children:r})};Mm.displayName=_i;var Rm="DialogTrigger",Tw=h.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=zt(Rm,r),i=sn(t,a.triggerRef);return n.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Lc(a.open),...s,ref:i,onClick:Cr(e.onClick,a.onOpenToggle)})});Tw.displayName=Rm;var Rc="DialogPortal",[zw,Dm]=zm(Rc,{forceMount:void 0}),Lm=e=>{const{__scopeDialog:t,forceMount:r,children:s,container:a}=e,i=zt(Rc,t);return n.jsx(zw,{scope:t,forceMount:r,children:h.Children.map(s,l=>n.jsx(Li,{present:r||i.open,children:n.jsx(wm,{asChild:!0,container:a,children:l})}))})};Lm.displayName=Rc;var pi="DialogOverlay",Im=h.forwardRef((e,t)=>{const r=Dm(pi,e.__scopeDialog),{forceMount:s=r.forceMount,...a}=e,i=zt(pi,e.__scopeDialog);return i.modal?n.jsx(Li,{present:s||i.open,children:n.jsx(Rw,{...a,ref:t})}):null});Im.displayName=pi;var Mw=zc("DialogOverlay.RemoveScroll"),Rw=h.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=zt(pi,r);return n.jsx(Pm,{as:Mw,allowPinchZoom:!0,shards:[a.contentRef],children:n.jsx(Ae.div,{"data-state":Lc(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),qr="DialogContent",_m=h.forwardRef((e,t)=>{const r=Dm(qr,e.__scopeDialog),{forceMount:s=r.forceMount,...a}=e,i=zt(qr,e.__scopeDialog);return n.jsx(Li,{present:s||i.open,children:i.modal?n.jsx(Dw,{...a,ref:t}):n.jsx(Lw,{...a,ref:t})})});_m.displayName=qr;var Dw=h.forwardRef((e,t)=>{const r=zt(qr,e.__scopeDialog),s=h.useRef(null),a=sn(t,r.contentRef,s);return h.useEffect(()=>{const i=s.current;if(i)return Ew(i)},[]),n.jsx(Om,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Cr(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Cr(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,o=l.button===0&&l.ctrlKey===!0;(l.button===2||o)&&i.preventDefault()}),onFocusOutside:Cr(e.onFocusOutside,i=>i.preventDefault())})}),Lw=h.forwardRef((e,t)=>{const r=zt(qr,e.__scopeDialog),s=h.useRef(!1),a=h.useRef(!1);return n.jsx(Om,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,o;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(s.current||(o=r.triggerRef.current)==null||o.focus(),i.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=i.target;((u=r.triggerRef.current)==null?void 0:u.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),Om=h.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:i,...l}=e,o=zt(qr,r),c=h.useRef(null),u=sn(t,c);return Uy(),n.jsxs(n.Fragment,{children:[n.jsx(vm,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:i,children:n.jsx(xm,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":Lc(o.open),...l,ref:u,onDismiss:()=>o.onOpenChange(!1)})}),n.jsxs(n.Fragment,{children:[n.jsx(Aw,{titleId:o.titleId}),n.jsx($w,{contentRef:c,descriptionId:o.descriptionId})]})]})}),Dc="DialogTitle",Iw=h.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=zt(Dc,r);return n.jsx(Ae.h2,{id:a.titleId,...s,ref:t})});Iw.displayName=Dc;var Am="DialogDescription",_w=h.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=zt(Am,r);return n.jsx(Ae.p,{id:a.descriptionId,...s,ref:t})});_w.displayName=Am;var Fm="DialogClose",Ow=h.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=zt(Fm,r);return n.jsx(Ae.button,{type:"button",...s,ref:t,onClick:Cr(e.onClick,()=>a.onOpenChange(!1))})});Ow.displayName=Fm;function Lc(e){return e?"open":"closed"}var $m="DialogTitleWarning",[yb,Um]=uy($m,{contentName:qr,titleName:Dc,docsSlug:"dialog"}),Aw=({titleId:e})=>{const t=Um($m),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
293
|
-
|
|
294
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
295
|
-
|
|
296
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Fw="DialogDescriptionWarning",$w=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Um(Fw).contentName}}.`;return h.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Uw=Mm,Bw=Lm,Vw=Im,Ww=_m,cs='[cmdk-group=""]',Cl='[cmdk-group-items=""]',Hw='[cmdk-group-heading=""]',Bm='[cmdk-item=""]',zu=`${Bm}:not([aria-disabled="true"])`,zo="cmdk-item-select",mn="data-value",Kw=(e,t,r)=>dy(e,t,r),Vm=h.createContext(void 0),ea=()=>h.useContext(Vm),Wm=h.createContext(void 0),Ic=()=>h.useContext(Wm),Hm=h.createContext(void 0),Km=h.forwardRef((e,t)=>{let r=pn(()=>{var S,k;return{search:"",value:(k=(S=e.value)!=null?S:e.defaultValue)!=null?k:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),s=pn(()=>new Set),a=pn(()=>new Map),i=pn(()=>new Map),l=pn(()=>new Set),o=Qm(e),{label:c,children:u,value:f,onValueChange:d,filter:x,shouldFilter:y,loop:w,disablePointerSelection:v=!1,vimBindings:j=!0,...m}=e,p=Jt(),g=Jt(),N=Jt(),b=h.useRef(null),P=nb();en(()=>{if(f!==void 0){let S=f.trim();r.current.value=S,E.emit()}},[f]),en(()=>{P(6,q)},[]);let E=h.useMemo(()=>({subscribe:S=>(l.current.add(S),()=>l.current.delete(S)),snapshot:()=>r.current,setState:(S,k,O)=>{var D,H,X,G;if(!Object.is(r.current[S],k)){if(r.current[S]=k,S==="search")K(),U(),P(1,J);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let M=document.getElementById(N);M?M.focus():(D=document.getElementById(p))==null||D.focus()}if(P(7,()=>{var M;r.current.selectedItemId=(M=re())==null?void 0:M.id,E.emit()}),O||P(5,q),((H=o.current)==null?void 0:H.value)!==void 0){let M=k??"";(G=(X=o.current).onValueChange)==null||G.call(X,M);return}}E.emit()}},emit:()=>{l.current.forEach(S=>S())}}),[]),R=h.useMemo(()=>({value:(S,k,O)=>{var D;k!==((D=i.current.get(S))==null?void 0:D.value)&&(i.current.set(S,{value:k,keywords:O}),r.current.filtered.items.set(S,W(k,O)),P(2,()=>{U(),E.emit()}))},item:(S,k)=>(s.current.add(S),k&&(a.current.has(k)?a.current.get(k).add(S):a.current.set(k,new Set([S]))),P(3,()=>{K(),U(),r.current.value||J(),E.emit()}),()=>{i.current.delete(S),s.current.delete(S),r.current.filtered.items.delete(S);let O=re();P(4,()=>{K(),(O==null?void 0:O.getAttribute("id"))===S&&J(),E.emit()})}),group:S=>(a.current.has(S)||a.current.set(S,new Set),()=>{i.current.delete(S),a.current.delete(S)}),filter:()=>o.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:p,inputId:N,labelId:g,listInnerRef:b}),[]);function W(S,k){var O,D;let H=(D=(O=o.current)==null?void 0:O.filter)!=null?D:Kw;return S?H(S,r.current.search,k):0}function U(){if(!r.current.search||o.current.shouldFilter===!1)return;let S=r.current.filtered.items,k=[];r.current.filtered.groups.forEach(D=>{let H=a.current.get(D),X=0;H.forEach(G=>{let M=S.get(G);X=Math.max(M,X)}),k.push([D,X])});let O=b.current;ne().sort((D,H)=>{var X,G;let M=D.getAttribute("id"),Q=H.getAttribute("id");return((X=S.get(Q))!=null?X:0)-((G=S.get(M))!=null?G:0)}).forEach(D=>{let H=D.closest(Cl);H?H.appendChild(D.parentElement===H?D:D.closest(`${Cl} > *`)):O.appendChild(D.parentElement===O?D:D.closest(`${Cl} > *`))}),k.sort((D,H)=>H[1]-D[1]).forEach(D=>{var H;let X=(H=b.current)==null?void 0:H.querySelector(`${cs}[${mn}="${encodeURIComponent(D[0])}"]`);X==null||X.parentElement.appendChild(X)})}function J(){let S=ne().find(O=>O.getAttribute("aria-disabled")!=="true"),k=S==null?void 0:S.getAttribute(mn);E.setState("value",k||void 0)}function K(){var S,k,O,D;if(!r.current.search||o.current.shouldFilter===!1){r.current.filtered.count=s.current.size;return}r.current.filtered.groups=new Set;let H=0;for(let X of s.current){let G=(k=(S=i.current.get(X))==null?void 0:S.value)!=null?k:"",M=(D=(O=i.current.get(X))==null?void 0:O.keywords)!=null?D:[],Q=W(G,M);r.current.filtered.items.set(X,Q),Q>0&&H++}for(let[X,G]of a.current)for(let M of G)if(r.current.filtered.items.get(M)>0){r.current.filtered.groups.add(X);break}r.current.filtered.count=H}function q(){var S,k,O;let D=re();D&&(((S=D.parentElement)==null?void 0:S.firstChild)===D&&((O=(k=D.closest(cs))==null?void 0:k.querySelector(Hw))==null||O.scrollIntoView({block:"nearest"})),D.scrollIntoView({block:"nearest"}))}function re(){var S;return(S=b.current)==null?void 0:S.querySelector(`${Bm}[aria-selected="true"]`)}function ne(){var S;return Array.from(((S=b.current)==null?void 0:S.querySelectorAll(zu))||[])}function C(S){let k=ne()[S];k&&E.setState("value",k.getAttribute(mn))}function A(S){var k;let O=re(),D=ne(),H=D.findIndex(G=>G===O),X=D[H+S];(k=o.current)!=null&&k.loop&&(X=H+S<0?D[D.length-1]:H+S===D.length?D[0]:D[H+S]),X&&E.setState("value",X.getAttribute(mn))}function T(S){let k=re(),O=k==null?void 0:k.closest(cs),D;for(;O&&!D;)O=S>0?tb(O,cs):rb(O,cs),D=O==null?void 0:O.querySelector(zu);D?E.setState("value",D.getAttribute(mn)):A(S)}let F=()=>C(ne().length-1),B=S=>{S.preventDefault(),S.metaKey?F():S.altKey?T(1):A(1)},Y=S=>{S.preventDefault(),S.metaKey?C(0):S.altKey?T(-1):A(-1)};return h.createElement(Ae.div,{ref:t,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:S=>{var k;(k=m.onKeyDown)==null||k.call(m,S);let O=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||O))switch(S.key){case"n":case"j":{j&&S.ctrlKey&&B(S);break}case"ArrowDown":{B(S);break}case"p":case"k":{j&&S.ctrlKey&&Y(S);break}case"ArrowUp":{Y(S);break}case"Home":{S.preventDefault(),C(0);break}case"End":{S.preventDefault(),F();break}case"Enter":{S.preventDefault();let D=re();if(D){let H=new Event(zo);D.dispatchEvent(H)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:ab},c),Oi(e,S=>h.createElement(Wm.Provider,{value:E},h.createElement(Vm.Provider,{value:R},S))))}),Qw=h.forwardRef((e,t)=>{var r,s;let a=Jt(),i=h.useRef(null),l=h.useContext(Hm),o=ea(),c=Qm(e),u=(s=(r=c.current)==null?void 0:r.forceMount)!=null?s:l==null?void 0:l.forceMount;en(()=>{if(!u)return o.item(a,l==null?void 0:l.id)},[u]);let f=Ym(a,i,[e.value,e.children,i],e.keywords),d=Ic(),x=Tr(P=>P.value&&P.value===f.current),y=Tr(P=>u||o.filter()===!1?!0:P.search?P.filtered.items.get(a)>0:!0);h.useEffect(()=>{let P=i.current;if(!(!P||e.disabled))return P.addEventListener(zo,w),()=>P.removeEventListener(zo,w)},[y,e.onSelect,e.disabled]);function w(){var P,E;v(),(E=(P=c.current).onSelect)==null||E.call(P,f.current)}function v(){d.setState("value",f.current,!0)}if(!y)return null;let{disabled:j,value:m,onSelect:p,forceMount:g,keywords:N,...b}=e;return h.createElement(Ae.div,{ref:Zr(i,t),...b,id:a,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!x,"data-disabled":!!j,"data-selected":!!x,onPointerMove:j||o.getDisablePointerSelection()?void 0:v,onClick:j?void 0:w},e.children)}),Yw=h.forwardRef((e,t)=>{let{heading:r,children:s,forceMount:a,...i}=e,l=Jt(),o=h.useRef(null),c=h.useRef(null),u=Jt(),f=ea(),d=Tr(y=>a||f.filter()===!1?!0:y.search?y.filtered.groups.has(l):!0);en(()=>f.group(l),[]),Ym(l,o,[e.value,e.heading,c]);let x=h.useMemo(()=>({id:l,forceMount:a}),[a]);return h.createElement(Ae.div,{ref:Zr(o,t),...i,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},r&&h.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),Oi(e,y=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},h.createElement(Hm.Provider,{value:x},y))))}),Gw=h.forwardRef((e,t)=>{let{alwaysRender:r,...s}=e,a=h.useRef(null),i=Tr(l=>!l.search);return!r&&!i?null:h.createElement(Ae.div,{ref:Zr(a,t),...s,"cmdk-separator":"",role:"separator"})}),Xw=h.forwardRef((e,t)=>{let{onValueChange:r,...s}=e,a=e.value!=null,i=Ic(),l=Tr(u=>u.search),o=Tr(u=>u.selectedItemId),c=ea();return h.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),h.createElement(Ae.input,{ref:t,...s,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":o,id:c.inputId,type:"text",value:a?e.value:l,onChange:u=>{a||i.setState("search",u.target.value),r==null||r(u.target.value)}})}),Jw=h.forwardRef((e,t)=>{let{children:r,label:s="Suggestions",...a}=e,i=h.useRef(null),l=h.useRef(null),o=Tr(u=>u.selectedItemId),c=ea();return h.useEffect(()=>{if(l.current&&i.current){let u=l.current,f=i.current,d,x=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let y=u.offsetHeight;f.style.setProperty("--cmdk-list-height",y.toFixed(1)+"px")})});return x.observe(u),()=>{cancelAnimationFrame(d),x.unobserve(u)}}},[]),h.createElement(Ae.div,{ref:Zr(i,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":s,id:c.listId},Oi(e,u=>h.createElement("div",{ref:Zr(l,c.listInnerRef),"cmdk-list-sizer":""},u)))}),Zw=h.forwardRef((e,t)=>{let{open:r,onOpenChange:s,overlayClassName:a,contentClassName:i,container:l,...o}=e;return h.createElement(Uw,{open:r,onOpenChange:s},h.createElement(Bw,{container:l},h.createElement(Vw,{"cmdk-overlay":"",className:a}),h.createElement(Ww,{"aria-label":e.label,"cmdk-dialog":"",className:i},h.createElement(Km,{ref:t,...o}))))}),qw=h.forwardRef((e,t)=>Tr(r=>r.filtered.count===0)?h.createElement(Ae.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),eb=h.forwardRef((e,t)=>{let{progress:r,children:s,label:a="Loading...",...i}=e;return h.createElement(Ae.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Oi(e,l=>h.createElement("div",{"aria-hidden":!0},l)))}),ds=Object.assign(Km,{List:Jw,Item:Qw,Input:Xw,Group:Yw,Separator:Gw,Dialog:Zw,Empty:qw,Loading:eb});function tb(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function rb(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Qm(e){let t=h.useRef(e);return en(()=>{t.current=e}),t}var en=typeof window>"u"?h.useEffect:h.useLayoutEffect;function pn(e){let t=h.useRef();return t.current===void 0&&(t.current=e()),t}function Tr(e){let t=Ic(),r=()=>e(t.snapshot());return h.useSyncExternalStore(t.subscribe,r,r)}function Ym(e,t,r,s=[]){let a=h.useRef(),i=ea();return en(()=>{var l;let o=(()=>{var u;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():a.current}})(),c=s.map(u=>u.trim());i.value(e,o,c),(l=t.current)==null||l.setAttribute(mn,o),a.current=o}),a}var nb=()=>{let[e,t]=h.useState(),r=pn(()=>new Map);return en(()=>{r.current.forEach(s=>s()),r.current=new Map},[e]),(s,a)=>{r.current.set(s,a),t({})}};function sb(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Oi({asChild:e,children:t},r){return e&&h.isValidElement(t)?h.cloneElement(sb(t),{ref:t.ref},r(t.props.children)):r(t)}var ab={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function ib({isOpen:e,onClose:t}){const r=Di(),[s,a]=h.useState(""),o=[{id:"users",title:"Users",description:"Manage users and their accounts",icon:xe,action:()=>r("/users"),category:"Navigation",keywords:["user","account","profile"]},{id:"organizations",title:"Organizations",description:"Manage organizations and teams",icon:qe,action:()=>r("/organizations"),category:"Navigation",keywords:["org","company","team"]},{id:"sessions",title:"Sessions",description:"View active user sessions",icon:So,action:()=>r("/sessions"),category:"Navigation",keywords:["session","login","active"]},{id:"settings",title:"Settings",description:"Configure Better Auth Studio",icon:In,action:()=>r("/settings"),category:"Navigation",keywords:["config","setup","preferences"]},{id:"dashboard",title:"Dashboard",description:"View overview and statistics",icon:So,action:()=>r("/"),category:"Navigation",keywords:["overview","stats","home"]},{id:"create-user",title:"Create User",description:"Add a new user to the system",icon:Hr,action:()=>r("/users"),category:"Actions",keywords:["add","new","register"]},{id:"create-organization",title:"Create Organization",description:"Create a new organization",icon:mi,action:()=>r("/organizations"),category:"Actions",keywords:["add","new","org"]},{id:"invite-user",title:"Invite User",description:"Send invitation to join organization",icon:St,action:()=>r("/organizations"),category:"Actions",keywords:["invite","email","send"]}].filter(c=>{var f;const u=s.toLowerCase();return c.title.toLowerCase().includes(u)||c.description.toLowerCase().includes(u)||((f=c.keywords)==null?void 0:f.some(d=>d.toLowerCase().includes(u)))}).reduce((c,u)=>(c[u.category]||(c[u.category]=[]),c[u.category].push(u),c),{});return h.useEffect(()=>{const c=u=>{(u.metaKey||u.ctrlKey)&&u.key==="k"&&u.preventDefault()};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),h.useEffect(()=>{const c=u=>{u.key==="Escape"&&t()};if(e)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[e,t]),e?n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-start justify-center pt-[20vh] z-50",children:n.jsx("div",{className:"bg-black/90 border border-dashed border-white/20 rounded-none w-full max-w-2xl mx-4",children:n.jsxs(ds,{className:"p-2",children:[n.jsxs("div",{className:"flex items-center border-b border-dashed border-white/10 px-3 pb-3",children:[n.jsx(Jr,{className:"w-4 h-4 text-gray-400 mr-3"}),n.jsx(ds.Input,{value:s,onValueChange:a,placeholder:"Search for actions, pages, or commands...",className:"flex-1 bg-transparent text-white placeholder-gray-400 outline-none",autoFocus:!0}),n.jsx("kbd",{className:"hidden sm:inline-flex items-center px-2 py-1 text-xs text-gray-400 border border-dashed border-white/20 rounded-sm",children:"ESC"})]}),n.jsx(ds.List,{className:"max-h-96 overflow-y-auto p-2",children:Object.keys(o).length===0?n.jsxs("div",{className:"text-center py-8 text-gray-400",children:[n.jsx(Jr,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),n.jsx("p",{children:"No results found"}),n.jsx("p",{className:"text-sm",children:"Try a different search term"})]}):Object.entries(o).map(([c,u])=>n.jsx("div",{className:"mb-4",children:n.jsx(ds.Group,{heading:c,className:"text-xs text-gray-400 font-medium mb-2 px-2",children:u.map(f=>{const d=f.icon;return n.jsxs(ds.Item,{value:f.id,onSelect:()=>{f.action(),t()},className:"flex items-center space-x-3 px-3 py-2 rounded-none hover:bg-white/5 cursor-pointer transition-colors",children:[n.jsx(d,{className:"w-4 h-4 text-white"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("div",{className:"text-white font-light",children:f.title}),n.jsx("div",{className:"text-sm text-gray-400",children:f.description})]}),n.jsx(Ar,{className:"w-4 h-4 text-gray-400"})]},f.id)})})},c))}),n.jsx("div",{className:"border-t border-dashed border-white/10 px-3 py-2 text-xs text-gray-400",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("span",{children:["Press ",n.jsx("kbd",{className:"px-1 py-0.5 border border-dashed border-white/20 rounded-sm",children:"↑↓"})," to navigate"]}),n.jsxs("span",{children:["Press ",n.jsx("kbd",{className:"px-1 py-0.5 border border-dashed border-white/20 rounded-sm",children:"Enter"})," to select"]})]})})]})})}):null}function lb({children:e}){const t=Zs(),[r,s]=h.useState({users:0,organizations:0,sessions:0}),[a,i]=h.useState(!0),[l,o]=h.useState(!1);h.useEffect(()=>{c()},[]),h.useEffect(()=>{const d=x=>{(x.metaKey||x.ctrlKey)&&x.key==="k"&&(x.preventDefault(),o(!0))};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[]);const c=async()=>{try{const x=await(await fetch("/api/counts")).json();s(x)}catch(d){console.error("Failed to fetch counts:",d)}finally{i(!1)}},u=d=>d>=1e3?(d/1e3).toFixed(1).replace(/\.0$/,"")+"k":d.toString(),f=[{name:"Dashboard",href:"/",icon:m0},{name:"Users",href:"/users",icon:xe,badge:a?"...":u(r.users)},{name:"Organizations",href:"/organizations",icon:qe,badge:a?"...":u(r.organizations)},{name:"Settings",href:"/settings",icon:In}];return n.jsxs("div",{className:"min-h-screen bg-black",children:[n.jsx("div",{className:"bg-black/70 border-b border-white/15",children:n.jsxs("div",{className:"flex items-center justify-between px-6 py-4",children:[n.jsx("div",{className:"flex items-center space-x-4",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-8 h-8 bg-white rounded-lg flex items-center justify-center",children:n.jsx("span",{className:"text-black font-bold text-lg",children:"⚡"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-xl font-bold text-white",children:"Better Auth Studio"}),n.jsx("p",{className:"text-xs text-gray-300",children:"v1.0.0"})]})]})}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"relative",children:[n.jsx(Jr,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),n.jsx("input",{type:"text",placeholder:"Search...",onClick:()=>o(!0),className:"pl-10 pr-4 py-2 bg-black border rounded-none border-gray-600 text-white border-dashed focus:ring-2 focus:ring-white focus:border-transparent transition-colors placeholder-gray-400 cursor-pointer",readOnly:!0}),n.jsx("kbd",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-xs text-gray-400 border border-dashed border-white/20 rounded-sm px-1.5 py-0.5",children:"⌘K"})]}),n.jsx("a",{href:"https://better-auth.com/docs",target:"_blank",children:n.jsx(z,{variant:"ghost",className:"text-gray-300 bg-transparent hover:bg-transparent hover:bg-gray-900 border-dashed",children:"Docs"})}),n.jsx("a",{href:"https://better-auth.com/support",target:"_blank",children:n.jsx(z,{variant:"ghost",className:"text-gray-300 bg-transparent hover:bg-transparent hover:bg-gray-900 border-dashed",children:"Support"})})]})]})}),n.jsx("div",{className:"bg-black/50 border-b border-white/10",children:n.jsx("div",{className:"px-6",children:n.jsx("nav",{className:"flex space-x-8",children:f.map(d=>{const x=t.pathname===d.href;return n.jsxs(Ln,{to:d.href,className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${x?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(d.icon,{className:"w-4 h-4"}),n.jsx("span",{children:d.name}),d.badge&&n.jsx(ie,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:d.badge})]},d.name)})})})}),n.jsx("div",{className:"flex-1 p-0",children:e}),n.jsx(ib,{isOpen:l,onClose:()=>o(!1)})]})}const Ve=h.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Lr("rounded-lg border border-gray-700 bg-gray-900 text-white shadow-sm",e),...t}));Ve.displayName="Card";const Dt=h.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Lr("flex flex-col space-y-1.5 p-6",e),...t}));Dt.displayName="CardHeader";const Lt=h.forwardRef(({className:e,...t},r)=>n.jsx("h3",{ref:r,className:Lr("text-2xl font-semibold leading-none tracking-tight text-white",e),...t}));Lt.displayName="CardTitle";const It=h.forwardRef(({className:e,...t},r)=>n.jsx("p",{ref:r,className:Lr("text-sm text-gray-300",e),...t}));It.displayName="CardDescription";const We=h.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Lr("p-6 pt-0",e),...t}));We.displayName="CardContent";const ob=h.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Lr("flex items-center p-6 pt-0",e),...t}));ob.displayName="CardFooter";const ue=h.forwardRef(({className:e,type:t,...r},s)=>n.jsx("input",{type:t,className:`flex h-10 w-full border border-dashed border-white/20 bg-black/30 px-3 py-2 text-sm text-white placeholder:text-gray-400 focus:outline-none focus:ring-1 focus:ring-white focus:border-white/40 disabled:cursor-not-allowed disabled:opacity-50 rounded-none ${e}`,ref:s,...r}));ue.displayName="Input";const ve=h.forwardRef(({className:e,...t},r)=>n.jsx("label",{className:`text-sm font-light text-white ${e}`,ref:r,...t}));ve.displayName="Label";const Ai=h.forwardRef(({className:e,children:t,...r},s)=>n.jsxs("div",{className:"relative",children:[n.jsx("select",{className:`flex h-10 w-full border border-dashed border-white/20 bg-black/30 px-3 py-2 text-sm text-white focus:outline-none focus:ring-1 focus:ring-white focus:border-white/40 disabled:cursor-not-allowed disabled:opacity-50 rounded-none appearance-none pr-8 ${e}`,ref:s,...r,children:t}),n.jsx(h0,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"})]}));Ai.displayName="Select";const cb=h.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:`border border-dashed border-white/20 bg-black/30 rounded-none ${e}`,...t}));cb.displayName="SelectContent";const Ut=h.forwardRef(({className:e,...t},r)=>n.jsx("option",{ref:r,className:`px-3 py-2 text-sm text-white hover:bg-white/10 ${e}`,...t}));Ut.displayName="SelectItem";const db=h.forwardRef(({className:e,children:t,...r},s)=>n.jsx("button",{ref:s,className:`flex h-10 w-full border border-dashed border-white/20 bg-black/30 px-3 py-2 text-sm text-white focus:outline-none focus:ring-1 focus:ring-white focus:border-white/40 disabled:cursor-not-allowed disabled:opacity-50 rounded-none ${e}`,...r,children:t}));db.displayName="SelectTrigger";const ub=h.forwardRef(({className:e,...t},r)=>n.jsx("span",{ref:r,className:`text-sm text-white ${e}`,...t}));ub.displayName="SelectValue";function Gm(){const[e,t]=h.useState([]),[r,s]=h.useState(!0),[a,i]=h.useState(""),[l,o]=h.useState("all"),[c,u]=h.useState(1),[f]=h.useState(50),[d,x]=h.useState(!1),[y,w]=h.useState(!1),[v,j]=h.useState(!1),[m,p]=h.useState(!1),[g,N]=h.useState(!1),[b,P]=h.useState(null),[E,R]=h.useState([]);h.useEffect(()=>{W()},[]);const W=async()=>{try{const O=await(await fetch("/api/users?limit=10000")).json();t(O.users||[])}catch(k){console.error("Failed to fetch users:",k)}finally{s(!1)}},U=async k=>{R([]);try{const D=await(await fetch("/api/seed/users",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:k})})).json();D.success?(R(D.results.map(H=>`✅ Created user: ${H.user.name} (${H.user.email})`)),await W()):R([`❌ Error: ${D.error||"Failed to seed users"}`])}catch(O){R([`❌ Error: ${O}`])}},J=k=>{P(k),p(!0)},K=k=>{P(k),w(!0)},q=k=>{P(k),j(!0)},re=async()=>{var X,G,M;const k=(X=document.getElementById("create-name"))==null?void 0:X.value,O=(G=document.getElementById("create-email"))==null?void 0:G.value,D=(M=document.getElementById("create-password"))==null?void 0:M.value;if(!k||!O||!D){_.error("Please fill in all fields");return}const H=_.loading("Creating user...");try{const de=await(await fetch("/api/users",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:k,email:O,password:D})})).json();de.success?(await W(),x(!1),document.getElementById("create-name").value="",document.getElementById("create-email").value="",document.getElementById("create-password").value="",_.success("User created successfully!",{id:H})):_.error(`Error creating user: ${de.error||"Unknown error"}`,{id:H})}catch(Q){console.error("Error creating user:",Q),_.error("Error creating user",{id:H})}},ne=async()=>{var H,X;if(!b){_.error("No user selected");return}const k=(H=document.getElementById("edit-name"))==null?void 0:H.value,O=(X=document.getElementById("edit-email"))==null?void 0:X.value;if(!k||!O){_.error("Please fill in all fields");return}const D=_.loading("Updating user...");try{const M=await(await fetch(`/api/users/${b.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:k,email:O})})).json();M.success?(await W(),w(!1),P(null),_.success("User updated successfully!",{id:D})):_.error(`Error updating user: ${M.error||"Unknown error"}`,{id:D})}catch(G){console.error("Error updating user:",G),_.error("Error updating user",{id:D})}},C=async()=>{if(!b){_.error("No user selected");return}const k=_.loading("Deleting user...");try{const D=await(await fetch(`/api/users/${b.id}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();D.success?(await W(),j(!1),P(null),_.success("User deleted successfully!",{id:k})):_.error(`Error deleting user: ${D.error||"Unknown error"}`,{id:k})}catch(O){console.error("Error deleting user:",O),_.error("Error deleting user",{id:k})}},A=e.filter(k=>(k.name.toLowerCase().includes(a.toLowerCase())||k.email.toLowerCase().includes(a.toLowerCase()))&&l==="all"),T=Math.ceil(A.length/f),F=(c-1)*f,B=F+f,Y=A.slice(F,B),S=k=>{u(k)};return r?n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsx("div",{className:"text-white",children:"Loading all users from database..."})}):n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("h1",{className:"text-2xl text-white font-light",children:["Users (",e.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage your application users"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(z,{className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",onClick:()=>N(!0),children:[n.jsx(et,{className:"w-4 h-4 mr-2"}),"Seed"]}),n.jsxs(z,{className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",onClick:()=>x(!0),children:[n.jsx(Hr,{className:"w-4 h-4 mr-2"}),"Add User"]})]})]}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex-1 relative",children:[n.jsx(Jr,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),n.jsx(ue,{placeholder:"Search users...",value:a,onChange:k=>i(k.target.value),className:"pl-10 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Tc,{className:"w-4 h-4 text-gray-400"}),n.jsxs(Ai,{value:l,onChange:k=>o(k.target.value),children:[n.jsx(Ut,{value:"all",children:"All"}),n.jsx(Ut,{value:"active",children:"Active"}),n.jsx(Ut,{value:"inactive",children:"Inactive"})]})]})]}),n.jsxs("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:[n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"User"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Email"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Email Verified"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Created"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:Y.map(k=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:k.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${k.id}`,alt:k.name,className:"w-10 h-10 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:k.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["ID: ",k.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:k.email}),n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[k.emailVerified?n.jsx(u0,{className:"w-4 h-4 text-green-400"}):n.jsx(St,{className:"w-4 h-4 text-yellow-400"}),n.jsx("span",{className:"text-sm text-gray-400",children:k.emailVerified?"Verified":"Not Verified"})]})}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:n.jsxs("div",{className:"flex flex-col",children:[new Date(k.createdAt).toLocaleDateString(),n.jsx("p",{className:"text-xs",children:new Date(k.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[n.jsx(z,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:()=>J(k),children:n.jsx(qs,{className:"w-4 h-4"})}),n.jsx(z,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:()=>K(k),children:n.jsx(Hn,{className:"w-4 h-4"})}),n.jsx(z,{variant:"ghost",size:"sm",className:"text-red-400 hover:text-red-300 rounded-none",onClick:()=>q(k),children:n.jsx(Wr,{className:"w-4 h-4"})})]})})]},k.id))})]})}),T>1&&n.jsxs("div",{className:"flex items-center justify-between mt-6",children:[n.jsxs("div",{className:"text-sm text-gray-400",children:["Showing ",F+1," to ",Math.min(B,A.length)," of ",A.length," users"]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(z,{variant:"outline",size:"sm",onClick:()=>S(c-1),disabled:c===1,className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Previous"}),Array.from({length:T},(k,O)=>O+1).map(k=>n.jsx(z,{variant:c===k?"default":"outline",size:"sm",onClick:()=>S(k),className:c===k?"bg-white text-black rounded-none":"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:k},k)),n.jsx(z,{variant:"outline",size:"sm",onClick:()=>S(c+1),disabled:c===T,className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Next"})]})]})]}),g&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-lg rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Seed Data"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>N(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(xe,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Seed Users"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(ve,{htmlFor:"user-count",className:"text-sm text-gray-400 font-light",children:"Number of users"}),n.jsx(ue,{id:"user-count",type:"number",min:"1",max:"100",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(z,{onClick:()=>{var O;const k=parseInt(((O=document.getElementById("user-count"))==null?void 0:O.value)||"5");U(k)},className:"bg-transparent hover:bg-white/90 bg-white text-black border border-white/20 rounded-none mt-6",children:"Seed Users"})]})]}),E.length>0&&n.jsxs("div",{className:"mt-6",children:[n.jsx("h5",{className:"text-sm text-white font-light",children:"Seeding Log"}),n.jsx("br",{}),n.jsx("div",{className:"flex w-full mb-3",children:n.jsxs("details",{className:"group w-full",children:[n.jsxs("summary",{className:"cursor-pointer text-sm text-gray-400 font-light hover:text-white",children:["View Details (",E.length," items)"]}),n.jsx("div",{className:"mt-3 p-4 bg-black/50 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:E.map((k,O)=>n.jsxs("div",{className:"text-xs font-mono text-gray-300 flex items-start space-x-2",children:[n.jsx("span",{className:"text-green-400",children:"✓"}),n.jsx("span",{children:k})]},O))})})]})})]})]}),n.jsx("div",{className:"flex justify-end mt-6 pt-6 border-t border-dashed border-white/10",children:n.jsx(z,{variant:"outline",onClick:()=>N(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Close"})})]})}),d&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Create User"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>x(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"create-name",className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx(ue,{id:"create-name",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"create-email",className:"text-sm text-gray-400 font-light",children:"Email"}),n.jsx(ue,{id:"create-email",type:"email",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"create-password",className:"text-sm text-gray-400 font-light",children:"Password"}),n.jsx(ue,{id:"create-password",type:"password",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>x(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:re,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Create"})]})]})}),y&&b&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Edit User"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>w(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:b.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${b.id}`,alt:b.name,className:"w-16 h-16 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:b.name}),n.jsx("div",{className:"text-sm text-gray-400",children:b.email})]})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"edit-name",className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx(ue,{id:"edit-name",defaultValue:b.name,className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"edit-email",className:"text-sm text-gray-400 font-light",children:"Email"}),n.jsx(ue,{id:"edit-email",type:"email",defaultValue:b.email,className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>w(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:ne,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Update"})]})]})}),v&&b&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Delete User"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>j(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:b.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${b.id}`,alt:b.name,className:"w-16 h-16 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:b.name}),n.jsx("div",{className:"text-sm text-gray-400",children:b.email})]})]}),n.jsx("p",{className:"text-gray-400",children:"Are you sure you want to delete this user? This action cannot be undone."})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>j(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:C,className:"bg-red-600 hover:bg-red-700 text-white border border-red-600 rounded-none",children:"Delete"})]})]})}),m&&b&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"User Details"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>p(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:b.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${b.id}`,alt:b.name,className:"w-16 h-16 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:b.name}),n.jsx("div",{className:"text-sm text-gray-400",children:b.email})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"ID:"}),n.jsx("span",{className:"text-white text-sm",children:b.id})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Email Verified:"}),n.jsx("span",{className:"text-white text-sm",children:b.emailVerified?"Yes":"No"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Created:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(b.createdAt).toLocaleString()})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Updated:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(b.updatedAt).toLocaleString()})]})]})]}),n.jsx("div",{className:"flex justify-end mt-6",children:n.jsx(z,{onClick:()=>p(!1),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Close"})})]})})]})}function Xm(){const e=Di(),[t,r]=h.useState([]),[s,a]=h.useState(!0),[i,l]=h.useState(null),[o,c]=h.useState(""),[u,f]=h.useState("all"),[d,x]=h.useState(!1),[y,w]=h.useState(!1),[v,j]=h.useState(!1),[m,p]=h.useState(!1),[g,N]=h.useState(!1),[b,P]=h.useState(null),[E,R]=h.useState([]),[W,U]=h.useState({name:"",slug:""}),[J,K]=h.useState({name:"",slug:""});h.useEffect(()=>{T()},[]);const q=M=>M.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,""),re=M=>{const Q=q(M);U({name:M,slug:Q})},ne=M=>{U(Q=>({...Q,slug:q(M)}))},C=M=>{const Q=q(M);K({name:M,slug:Q})},A=M=>{K(Q=>({...Q,slug:q(M)}))},T=async()=>{try{const Q=await(await fetch("/api/plugins/organization/status")).json();l(Q),Q.enabled?await F():a(!1)}catch(M){console.error("Failed to check plugin status:",M),l({enabled:!1,error:"Failed to check plugin status"}),a(!1)}},F=async()=>{try{const Q=await(await fetch("/api/organizations?limit=10000")).json();r(Q.organizations||[])}catch(M){console.error("Failed to fetch organizations:",M),_.error("Failed to fetch organizations")}finally{a(!1)}},B=async M=>{R([]);try{const de=await(await fetch("/api/seed/organizations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:M})})).json();de.success?(R(de.results.map(Fe=>`✅ Created organization: ${Fe.organization.name} (${Fe.organization.slug})`)),await F()):R([`❌ Error: ${de.error||"Failed to seed organizations"}`])}catch(Q){R([`❌ Error: ${Q}`])}},Y=async M=>{R([]);try{const de=await(await fetch("/api/seed/teams",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:M})})).json();de.success?(R(de.results.map(Fe=>`✅ Created team: ${Fe.team.name}`)),await F()):R([`❌ Error: ${de.error||"Failed to seed teams"}`])}catch(Q){R([`❌ Error: ${Q}`])}},S=M=>{P(M),p(!0)},k=M=>{P(M),K({name:M.name,slug:M.slug}),w(!0)},O=M=>{P(M),j(!0)},D=async()=>{if(!W.name){_.error("Please fill in the organization name");return}const M=_.loading("Creating organization...");try{const de=await(await fetch("/api/organizations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:W.name,slug:W.slug})})).json();de.success?(await F(),x(!1),U({name:"",slug:""}),_.success("Organization created successfully!",{id:M})):_.error(`Error creating organization: ${de.error||"Unknown error"}`,{id:M})}catch(Q){console.error("Error creating organization:",Q),_.error("Error creating organization",{id:M})}},H=async()=>{if(!b){_.error("No organization selected");return}if(!J.name){_.error("Please fill in the organization name");return}const M=_.loading("Updating organization...");try{const de=await(await fetch(`/api/organizations/${b.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:J.name,slug:J.slug})})).json();de.success?(await F(),w(!1),P(null),K({name:"",slug:""}),_.success("Organization updated successfully!",{id:M})):_.error(`Error updating organization: ${de.error||"Unknown error"}`,{id:M})}catch(Q){console.error("Error updating organization:",Q),_.error("Error updating organization",{id:M})}},X=async()=>{if(!b){_.error("No organization selected");return}const M=_.loading("Deleting organization...");try{const de=await(await fetch(`/api/organizations/${b.id}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();de.success?(await F(),j(!1),P(null),_.success("Organization deleted successfully!",{id:M})):_.error(`Error deleting organization: ${de.error||"Unknown error"}`,{id:M})}catch(Q){console.error("Error deleting organization:",Q),_.error("Error deleting organization",{id:M})}},G=t.filter(M=>{var Fe;const Q=M.name.toLowerCase().includes(o.toLowerCase())||M.slug.toLowerCase().includes(o.toLowerCase()),de=u==="all"||((Fe=M.metadata)==null?void 0:Fe.status)===u;return Q&&de});return s?n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsx("div",{className:"text-white",children:"Loading all organizations from database..."})}):i&&!i.enabled?n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl text-white font-light",children:"Organizations"}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage your application organizations"})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-8",children:n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx("div",{className:"flex-shrink-0",children:n.jsx(qe,{className:"w-12 h-12 text-white"})}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h3",{className:"text-xl text-white font-light mb-2",children:"Organization Plugin Required"}),n.jsx("p",{className:"text-gray-300 mb-6",children:"To use Organizations in Better Auth Studio, you need to enable the organization plugin in your Better Auth configuration."}),n.jsxs("div",{className:"bg-black/50 border border-dashed border-white/20 rounded-none p-4 mb-6",children:[n.jsx("h4",{className:"text-white font-light mb-3",children:"Follow these steps:"}),n.jsx("ol",{className:"text-gray-300 space-y-2 text-sm list-decimal list-inside",children:n.jsxs("li",{children:["Import the plugin in your auth configuration file",i.configPath&&n.jsxs("span",{className:"text-gray-400",children:[" (",i.configPath,")"]}),":"]})}),n.jsx("div",{className:"mt-4 bg-black/70 border border-dashed border-white/10 rounded-none p-3 overflow-x-auto",children:n.jsxs("pre",{className:"text-sm text-gray-300",children:[n.jsx("span",{className:"text-blue-400",children:"import"})," ","{ betterAuth }"," ",n.jsx("span",{className:"text-blue-400",children:"from"})," ",n.jsx("span",{className:"text-green-400",children:'"better-auth"'})," ",n.jsx("br",{}),n.jsx("span",{className:"text-blue-400",children:"import"})," ","{ organization }"," ",n.jsx("span",{className:"text-blue-400",children:"from"})," ",n.jsx("span",{className:"text-green-400",children:'"better-auth/plugins/organization"'})," ",n.jsx("br",{}),n.jsx("span",{className:"text-blue-400",children:"export const"})," ",n.jsx("span",{className:"text-yellow-300",children:"auth"})," = ",n.jsx("span",{className:"text-yellow-300",children:"betterAuth"}),"(","{"," ",n.jsx("br",{}),n.jsx("span",{className:"text-gray-500 pl-10",children:"// ... your existing configuration"})," ",n.jsx("br",{}),n.jsx("span",{className:"text-red-300 pl-10",children:"plugins"}),": [ ",n.jsx("br",{}),n.jsxs("span",{className:"text-yellow-300 pl-12",children:["organization(",")"]}),n.jsx("br",{}),n.jsx("span",{className:"pl-10",children:"]"})," ",n.jsx("br",{}),"}",") ",n.jsx("br",{})]})}),n.jsx("div",{className:"mt-4",children:n.jsx("p",{className:"text-gray-400 text-sm",children:"2. Do migrations to create the organizations table"})}),n.jsx("div",{className:"mt-2",children:n.jsx("p",{className:"text-gray-400 text-sm",children:"3. Restart your application to apply the changes"})})]}),i.availablePlugins&&i.availablePlugins.length>0&&n.jsx("div",{className:"mb-4",children:n.jsxs("p",{className:"text-gray-400 text-sm",children:["Currently enabled plugins: ",i.availablePlugins.join(", ")]})}),n.jsx(z,{onClick:()=>window.location.reload(),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Check Again"}),n.jsxs("div",{className:"mt-4 text-xs text-gray-500",children:["Need help? Check the"," ",n.jsx("a",{href:"https://better-auth.com/docs/plugins/organization",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:underline",children:"Better Auth Organization Plugin Documentation"})]})]})]})})]}):n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("h1",{className:"text-2xl text-white font-light",children:["Organizations (",t.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage your organizations and teams"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(z,{className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",onClick:()=>N(!0),children:[n.jsx(et,{className:"w-4 h-4 mr-2"}),"Seed"]}),n.jsxs(z,{className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",onClick:()=>x(!0),children:[n.jsx(mi,{className:"w-4 h-4 mr-2"}),"Add Organization"]})]})]}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex-1 relative",children:[n.jsx(Jr,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),n.jsx(ue,{placeholder:"Search organizations...",value:o,onChange:M=>c(M.target.value),className:"pl-10 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Tc,{className:"w-4 h-4 text-gray-400"}),n.jsxs(Ai,{value:u,onChange:M=>f(M.target.value),children:[n.jsx(Ut,{value:"all",children:"All"}),n.jsx(Ut,{value:"active",children:"Active"}),n.jsx(Ut,{value:"inactive",children:"Inactive"})]})]})]}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Organization"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Slug"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Created"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:G.map(M=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5 cursor-pointer",onClick:()=>e(`/organizations/${M.id}`),children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(qe,{className:"w-5 h-5 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:M.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["ID: ",M.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:M.slug}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:n.jsxs("div",{className:"flex flex-col",children:[new Date(M.createdAt).toLocaleDateString(),n.jsx("p",{className:"text-xs",children:new Date(M.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[n.jsx(z,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:Q=>{Q.stopPropagation(),S(M)},children:n.jsx(qs,{className:"w-4 h-4"})}),n.jsx(z,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:Q=>{Q.stopPropagation(),k(M)},children:n.jsx(Hn,{className:"w-4 h-4"})}),n.jsx(z,{variant:"ghost",size:"sm",className:"text-red-400 hover:text-red-300 rounded-none",onClick:Q=>{Q.stopPropagation(),O(M)},children:n.jsx(Wr,{className:"w-4 h-4"})})]})})]},M.id))})]})})}),g&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-lg rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Seed Data"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>N(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(qe,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Seed Organizations"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(ve,{htmlFor:"organization-count",className:"text-sm text-gray-400 font-light",children:"Number of organizations"}),n.jsx(ue,{id:"organization-count",type:"number",min:"1",max:"100",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(z,{onClick:()=>{var Q;const M=parseInt(((Q=document.getElementById("organization-count"))==null?void 0:Q.value)||"5");B(M)},className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6",children:"Seed Organizations"})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(mi,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Seed Teams"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(ve,{htmlFor:"team-count",className:"text-sm text-gray-400 font-light",children:"Number of teams"}),n.jsx(ue,{id:"team-count",type:"number",min:"1",max:"100",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(z,{onClick:()=>{var Q;const M=parseInt(((Q=document.getElementById("team-count"))==null?void 0:Q.value)||"5");Y(M)},className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6",children:"Seed Teams"})]})]}),E.length>0&&n.jsx("div",{className:"mt-6",children:n.jsxs("div",{className:"flex items-center justify-between mb-3",children:[n.jsx("h5",{className:"text-sm text-white font-light",children:"Seeding Log"}),n.jsxs("details",{className:"group",children:[n.jsxs("summary",{className:"cursor-pointer text-sm text-gray-400 font-light hover:text-white",children:["View Details (",E.length," items)"]}),n.jsx("div",{className:"mt-3 p-4 bg-black/50 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:E.map((M,Q)=>n.jsxs("div",{className:"text-xs font-mono text-gray-300 flex items-start space-x-2",children:[n.jsx("span",{className:"text-green-400",children:"✓"}),n.jsx("span",{children:M})]},Q))})})]})]})})]}),n.jsx("div",{className:"flex justify-end mt-6 pt-6 border-t border-dashed border-white/10",children:n.jsx(z,{variant:"outline",onClick:()=>N(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Close"})})]})}),d&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Create Organization"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>x(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"create-name",className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx(ue,{id:"create-name",value:W.name,onChange:M=>re(M.target.value),placeholder:"e.g. Acme Corp",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"create-slug",className:"text-sm text-gray-400 font-light",children:"Slug"}),n.jsx(ue,{id:"create-slug",value:W.slug,onChange:M=>ne(M.target.value),placeholder:"e.g. acme-corp",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Auto-generated from name. You can edit it manually."})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>{x(!1),U({name:"",slug:""})},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:D,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Create"})]})]})}),y&&b&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Edit Organization"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>w(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(qe,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:b.name}),n.jsx("div",{className:"text-sm text-gray-400",children:b.slug})]})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"edit-name",className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx(ue,{id:"edit-name",value:J.name,onChange:M=>C(M.target.value),placeholder:"e.g. Acme Corp",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"edit-slug",className:"text-sm text-gray-400 font-light",children:"Slug"}),n.jsx(ue,{id:"edit-slug",value:J.slug,onChange:M=>A(M.target.value),placeholder:"e.g. acme-corp",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Auto-generated from name. You can edit it manually."})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>{w(!1),K({name:"",slug:""})},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:H,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Update"})]})]})}),v&&b&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Delete Organization"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>j(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(qe,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:b.name}),n.jsx("div",{className:"text-sm text-gray-400",children:b.slug})]})]}),n.jsx("p",{className:"text-gray-400",children:"Are you sure you want to delete this organization? This action cannot be undone."})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>j(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:X,className:"bg-red-600 hover:bg-red-700 text-white border border-red-600 rounded-none",children:"Delete"})]})]})}),m&&b&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Organization Details"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>p(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(qe,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:b.name}),n.jsx("div",{className:"text-sm text-gray-400",children:b.slug})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"ID:"}),n.jsx("span",{className:"text-white text-sm",children:b.id})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Created:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(b.createdAt).toLocaleString()})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Updated:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(b.updatedAt).toLocaleString()})]})]})]}),n.jsx("div",{className:"flex justify-end mt-6",children:n.jsx(z,{onClick:()=>p(!1),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Close"})})]})})]})}function Jm(){const[e,t]=h.useState([]),[r,s]=h.useState(!0),[a,i]=h.useState(""),[l,o]=h.useState("all"),[c,u]=h.useState(!1),[f,d]=h.useState(!1),[x,y]=h.useState(!1),[w,v]=h.useState(!1),[j,m]=h.useState(!1),[p,g]=h.useState(null),[N,b]=h.useState([]);h.useEffect(()=>{P()},[]);const P=async()=>{try{const A=await(await fetch("/api/sessions")).json();t(A.sessions||[])}catch(C){console.error("Failed to fetch sessions:",C)}finally{s(!1)}},E=async C=>{b([]);try{const T=await(await fetch("/api/seed/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:C})})).json();T.success?(b(T.results.map(F=>`✅ Created session: ${F.session.id}`)),await P()):b([`❌ Error: ${T.error||"Failed to seed sessions"}`])}catch(A){b([`❌ Error: ${A}`])}},R=async C=>{b([]);try{const T=await(await fetch("/api/seed/accounts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:C})})).json();T.success?(b(T.results.map(F=>`✅ Created account: ${F.account.provider}`)),await P()):b([`❌ Error: ${T.error||"Failed to seed accounts"}`])}catch(A){b([`❌ Error: ${A}`])}},W=C=>{g(C),v(!0)},U=C=>{g(C),d(!0)},J=C=>{g(C),y(!0)},K=async C=>{console.log("Creating session:",C),u(!1)},q=async C=>{console.log("Updating session:",C),d(!1)},re=async()=>{console.log("Deleting session:",p==null?void 0:p.id),y(!1)},ne=e.filter(C=>{const A=C.id.toLowerCase().includes(a.toLowerCase())||C.userId.toLowerCase().includes(a.toLowerCase()),T=l==="all"||l==="active"&&new Date(C.expiresAt)>new Date||l==="expired"&&new Date(C.expiresAt)<=new Date;return A&&T});return r?n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsx("div",{className:"text-white",children:"Loading sessions..."})}):n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("h1",{className:"text-2xl text-white font-light",children:["Sessions (",e.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage user sessions and accounts"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(z,{className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",onClick:()=>m(!0),children:[n.jsx(et,{className:"w-4 h-4 mr-2"}),"Seed"]}),n.jsxs(z,{className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",onClick:()=>u(!0),children:[n.jsx(mi,{className:"w-4 h-4 mr-2"}),"Add Session"]})]})]}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex-1 relative",children:[n.jsx(Jr,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),n.jsx(ue,{placeholder:"Search sessions...",value:a,onChange:C=>i(C.target.value),className:"pl-10 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Tc,{className:"w-4 h-4 text-gray-400"}),n.jsxs(Ai,{value:l,onChange:C=>o(C.target.value),children:[n.jsx(Ut,{value:"all",children:"All"}),n.jsx(Ut,{value:"active",children:"Active"}),n.jsx(Ut,{value:"expired",children:"Expired"})]})]})]}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Session"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"User ID"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Status"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Expires"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:ne.map(C=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(et,{className:"w-5 h-5 text-white"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-white font-light",children:["Session ",C.id.slice(0,8),"..."]}),n.jsxs("div",{className:"text-sm text-gray-400",children:["ID: ",C.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:C.userId}),n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[new Date(C.expiresAt)>new Date?n.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full"}):n.jsx("div",{className:"w-2 h-2 bg-red-400 rounded-full"}),n.jsx("span",{className:"text-sm text-gray-400",children:new Date(C.expiresAt)>new Date?"Active":"Expired"})]})}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:new Date(C.expiresAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[n.jsx(z,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:()=>W(C),children:n.jsx(qs,{className:"w-4 h-4"})}),n.jsx(z,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:()=>U(C),children:n.jsx(Hn,{className:"w-4 h-4"})}),n.jsx(z,{variant:"ghost",size:"sm",className:"text-red-400 hover:text-red-300 rounded-none",onClick:()=>J(C),children:n.jsx(Wr,{className:"w-4 h-4"})})]})})]},C.id))})]})})}),j&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-lg rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Seed Data"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>m(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(et,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Seed Sessions"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(ve,{htmlFor:"session-count",className:"text-sm text-gray-400 font-light",children:"Number of sessions"}),n.jsx(ue,{id:"session-count",type:"number",min:"1",max:"100",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(z,{onClick:()=>{var A;const C=parseInt(((A=document.getElementById("session-count"))==null?void 0:A.value)||"5");E(C)},className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6",children:"Seed Sessions"})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(p0,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Seed Accounts"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(ve,{htmlFor:"account-count",className:"text-sm text-gray-400 font-light",children:"Number of accounts"}),n.jsx(ue,{id:"account-count",type:"number",min:"1",max:"100",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(z,{onClick:()=>{var A;const C=parseInt(((A=document.getElementById("account-count"))==null?void 0:A.value)||"5");R(C)},className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6",children:"Seed Accounts"})]})]}),N.length>0&&n.jsx("div",{className:"mt-6",children:n.jsxs("div",{className:"flex items-center flex-col mb-3",children:[n.jsx("h5",{className:"text-sm text-white font-light",children:"Seeding Logs"}),n.jsx("br",{}),n.jsxs("details",{className:"group",children:[n.jsxs("summary",{className:"cursor-pointer text-sm text-gray-400 font-light hover:text-white",children:["View Details (",N.length," items)"]}),n.jsx("div",{className:"mt-3 p-4 bg-black/50 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:N.map((C,A)=>n.jsxs("div",{className:"text-xs font-mono text-gray-300 flex items-start space-x-2",children:[n.jsx("span",{className:"text-green-400",children:"✓"}),n.jsx("span",{children:C})]},A))})})]})]})})]}),n.jsx("div",{className:"flex justify-end mt-6 pt-6 border-t border-dashed border-white/10",children:n.jsx(z,{variant:"outline",onClick:()=>m(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Close"})})]})}),c&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Create Session"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>u(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"create-user-id",className:"text-sm text-gray-400 font-light",children:"User ID"}),n.jsx(ue,{id:"create-user-id",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"create-expires",className:"text-sm text-gray-400 font-light",children:"Expires At"}),n.jsx(ue,{id:"create-expires",type:"datetime-local",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>u(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:()=>K({}),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Create"})]})]})}),f&&p&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Edit Session"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>d(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(et,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-white font-light",children:["Session ",p.id.slice(0,8),"..."]}),n.jsx("div",{className:"text-sm text-gray-400",children:p.userId})]})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"edit-user-id",className:"text-sm text-gray-400 font-light",children:"User ID"}),n.jsx(ue,{id:"edit-user-id",defaultValue:p.userId,className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"edit-expires",className:"text-sm text-gray-400 font-light",children:"Expires At"}),n.jsx(ue,{id:"edit-expires",type:"datetime-local",defaultValue:new Date(p.expiresAt).toISOString().slice(0,16),className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>d(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:()=>q({}),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Update"})]})]})}),x&&p&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Delete Session"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>y(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(et,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-white font-light",children:["Session ",p.id.slice(0,8),"..."]}),n.jsx("div",{className:"text-sm text-gray-400",children:p.userId})]})]}),n.jsx("p",{className:"text-gray-400",children:"Are you sure you want to delete this session? This action cannot be undone."})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>y(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:re,className:"bg-red-600 hover:bg-red-700 text-white border border-red-600 rounded-none",children:"Delete"})]})]})}),w&&p&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Session Details"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>v(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(et,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-white font-light",children:["Session ",p.id.slice(0,8),"..."]}),n.jsx("div",{className:"text-sm text-gray-400",children:p.userId})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"ID:"}),n.jsx("span",{className:"text-white text-sm",children:p.id})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"User ID:"}),n.jsx("span",{className:"text-white text-sm",children:p.userId})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Status:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(p.expiresAt)>new Date?"Active":"Expired"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Expires:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(p.expiresAt).toLocaleString()})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Created:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(p.createdAt).toLocaleString()})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Updated:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(p.updatedAt).toLocaleString()})]})]})]}),n.jsx("div",{className:"flex justify-end mt-6",children:n.jsx(z,{onClick:()=>v(!1),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Close"})})]})})]})}function hb(){const[e,t]=h.useState("overview"),r=()=>n.jsxs("div",{className:"space-y-8 animate-fade-in px-6 py-8",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl text-white font-normal",children:"Better Auth Studio"}),n.jsx("p",{className:"text-gray-400 mt-1 font-light",children:"Manage your authentication system"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[n.jsx(Ve,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(We,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(xe,{className:"w-6 h-6 text-white"})}),n.jsx(ie,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Active"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"User Management"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"Manage user accounts, profiles, and permissions"}),n.jsxs(z,{onClick:()=>t("users"),className:"w-full bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:["Manage Users",n.jsx(Ar,{className:"w-4 h-4 ml-2"})]})]})}),n.jsx(Ve,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(We,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(qe,{className:"w-6 h-6 text-white"})}),n.jsx(ie,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Active"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"Organizations"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"Manage organizations, teams, and memberships"}),n.jsxs(z,{onClick:()=>t("organizations"),className:"w-full bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:["Manage Organizations",n.jsx(Ar,{className:"w-4 h-4 ml-2"})]})]})}),n.jsx(Ve,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(We,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(et,{className:"w-6 h-6 text-white"})}),n.jsx(ie,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Active"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"Session Management"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"Monitor and manage user sessions"}),n.jsxs(z,{onClick:()=>t("sessions"),className:"w-full bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:["Manage Sessions",n.jsx(Ar,{className:"w-4 h-4 ml-2"})]})]})}),n.jsx(Ve,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(We,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(In,{className:"w-6 h-6 text-white"})}),n.jsx(ie,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Configured"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"Configuration"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"View and manage auth configuration"}),n.jsxs(z,{variant:"outline",className:"w-full border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:["View Config",n.jsx(Ar,{className:"w-4 h-4 ml-2"})]})]})}),n.jsx(Ve,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(We,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(So,{className:"w-6 h-6 text-white"})}),n.jsx(ie,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Coming Soon"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"Analytics"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"View authentication analytics and insights"}),n.jsxs(z,{variant:"outline",disabled:!0,className:"w-full border border-dashed border-white/20 text-gray-400 rounded-none",children:["View Analytics",n.jsx(Ar,{className:"w-4 h-4 ml-2"})]})]})}),n.jsx(Ve,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(We,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(Fa,{className:"w-6 h-6 text-white"})}),n.jsx(ie,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Available"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"Quick Actions"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"Common tasks and shortcuts"}),n.jsxs(z,{variant:"outline",className:"w-full border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:["View Actions",n.jsx(Ar,{className:"w-4 h-4 ml-2"})]})]})})]})]});return n.jsx("div",{className:"min-h-screen bg-black text-white",children:e==="overview"?r():e==="users"?n.jsx(Gm,{}):e==="organizations"?n.jsx(Xm,{}):e==="sessions"?n.jsx(Jm,{}):r()})}function fb(){const{orgId:e}=em(),t=Di(),[r,s]=h.useState(null),[a,i]=h.useState([]),[l,o]=h.useState([]),[c,u]=h.useState([]),[f,d]=h.useState(!0),[x,y]=h.useState("details"),[w,v]=h.useState(!1),[j,m]=h.useState(!1),[p,g]=h.useState(!1),[N,b]=h.useState(!1),[P,E]=h.useState(!1),[R,W]=h.useState(!1),[U,J]=h.useState(null),[K,q]=h.useState(""),[re,ne]=h.useState({name:""}),[C,A]=h.useState([]);h.useEffect(()=>{e&&(F(),B(),S(),k(),Y())},[e]),h.useEffect(()=>{w&&e&&Y()},[]),h.useEffect(()=>{x==="members"&&e&&k()},[x,e]),h.useEffect(()=>{x==="invitations"&&e&&S()},[x,e]);const T=L=>{ne({name:L})},F=async()=>{try{const Z=await(await fetch(`/api/organizations/${e}`)).json();Z.success?s(Z.organization):_.error("Organization not found")}catch(L){console.error("Failed to fetch organization:",L),_.error("Failed to load organization")}finally{d(!1)}},B=async()=>{try{const Z=await(await fetch("/api/plugins/teams/status")).json();v(Z.enabled)}catch(L){console.error("Failed to check teams status:",L),v(!1)}},Y=async()=>{try{const Z=await(await fetch(`/api/organizations/${e}/teams`)).json();Z.success&&i(Z.teams||[])}catch(L){console.error("Failed to fetch teams:",L),_.error("Failed to load teams")}},S=async()=>{try{const Z=await(await fetch(`/api/organizations/${e}/invitations`)).json();Z.success&&o(Z.invitations||[])}catch(L){console.error("Failed to fetch invitations:",L),_.error("Failed to load invitations")}},k=async()=>{try{const Z=await(await fetch(`/api/organizations/${e}/members`)).json();Z.success&&u(Z.members||[])}catch(L){console.error("Failed to fetch members:",L),_.error("Failed to load members")}},O=async L=>{A([]);try{const oe=await(await fetch(`/api/organizations/${e}/seed-members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:L})})).json();oe.success?(A(oe.results.map(ke=>ke.success?`✅ Added member: ${ke.member.user.name} (${ke.member.user.email})`:`❌ Failed: ${ke.error}`)),await k(),_.success(`Successfully added ${oe.results.filter(ke=>ke.success).length} members!`)):(A([`❌ Error: ${oe.error||"Failed to seed members"}`]),_.error(oe.error||"Failed to seed members"))}catch(Z){A([`❌ Error: ${Z}`])}},D=async()=>{if(!K){_.error("Please enter an email address");return}const L=_.loading("Sending invitation...");try{const oe=await(await fetch(`/api/organizations/${e}/invitations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:K,role:"member"})})).json();oe.success?(await S(),m(!1),q(""),_.success("Invitation sent successfully!",{id:L})):_.error(`Error sending invitation: ${oe.error||"Unknown error"}`,{id:L})}catch(Z){console.error("Error sending invitation:",Z),_.error("Error sending invitation",{id:L})}},H=async L=>{const Z=_.loading("Cancelling invitation...");try{const ke=await(await fetch(`/api/invitations/${L}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();ke.success?(await S(),_.success("Invitation cancelled successfully!",{id:Z})):_.error(`Error cancelling invitation: ${ke.error||"Unknown error"}`,{id:Z})}catch(oe){console.error("Error cancelling invitation:",oe),_.error("Error cancelling invitation",{id:Z})}},X=async(L,Z)=>{const oe=_.loading("Resending invitation...");try{const nr=await(await fetch(`/api/invitations/${L}/resend`,{method:"POST",headers:{"Content-Type":"application/json"}})).json();nr.success?(await S(),_.success(`Invitation resent to ${Z}!`,{id:oe})):_.error(`Error resending invitation: ${nr.error||"Unknown error"}`,{id:oe})}catch(ke){console.error("Error resending invitation:",ke),_.error("Error resending invitation",{id:oe})}},G=async(L,Z)=>{const oe=_.loading(`Removing ${Z}...`);try{const nr=await(await fetch(`/api/members/${L}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();nr.success?(await k(),_.success(`${Z} removed from organization!`,{id:oe})):_.error(`Error removing member: ${nr.error||"Unknown error"}`,{id:oe})}catch(ke){console.error("Error removing member:",ke),_.error("Error removing member",{id:oe})}},M=async()=>{if(!re.name){_.error("Please enter a team name");return}const L=_.loading("Creating team...");try{const oe=await(await fetch(`/api/organizations/${e}/teams`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:re.name,organizationId:e})})).json();oe.success?(await Y(),b(!1),ne({name:""}),_.success("Team created successfully!",{id:L})):_.error(`Error creating team: ${oe.error||"Unknown error"}`,{id:L})}catch(Z){console.error("Error creating team:",Z),_.error("Error creating team",{id:L})}},Q=async()=>{if(!U||!re.name){_.error("Please enter a team name");return}const L=_.loading("Updating team...");try{const oe=await(await fetch(`/api/teams/${U.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:re.name})})).json();oe.success?(await Y(),E(!1),J(null),ne({name:""}),_.success("Team updated successfully!",{id:L})):_.error(`Error updating team: ${oe.error||"Unknown error"}`,{id:L})}catch(Z){console.error("Error updating team:",Z),_.error("Error updating team",{id:L})}},de=async()=>{if(!U){_.error("No team selected");return}const L=_.loading("Deleting team...");try{const oe=await(await fetch(`/api/teams/${U.id}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();oe.success?(await Y(),W(!1),J(null),_.success("Team deleted successfully!",{id:L})):_.error(`Error deleting team: ${oe.error||"Unknown error"}`,{id:L})}catch(Z){console.error("Error deleting team:",Z),_.error("Error deleting team",{id:L})}},Fe=L=>{J(L),ne({name:L.name}),E(!0)},Fi=L=>{J(L),W(!0)};return f?n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsx("div",{className:"text-white",children:"Loading organization details..."})}):r?n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"flex items-center space-x-4",children:n.jsx(Ln,{to:"/organizations",children:n.jsxs(z,{variant:"ghost",className:"text-gray-400 hover:text-white rounded-none",children:[n.jsx(fi,{className:"w-4 h-4 mr-2"}),"Back to Organizations"]})})}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(z,{onClick:()=>g(!0),className:"border border-dashed border-white/20 text-white bg-transparent hover:bg-white/10 rounded-none",children:[n.jsx(xe,{className:"w-4 h-4 mr-2"}),"Seed Members"]}),n.jsxs(z,{onClick:()=>m(!0),className:"border border-dashed border-white/20 text-white bg-transparent hover:bg-white/10 rounded-none",children:[n.jsx(St,{className:"w-4 h-4 mr-2"}),"Invite User"]}),n.jsxs(z,{className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(Hn,{className:"w-4 h-4 mr-2"}),"Edit Organization"]})]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-12 h-12 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(qe,{className:"w-6 h-6 text-white"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl text-white font-light",children:r.name}),n.jsx("p",{className:"text-gray-400",children:r.slug})]})]}),n.jsx("div",{className:"border-b border-white/10",children:n.jsxs("nav",{className:"flex space-x-8",children:[n.jsxs("button",{onClick:()=>y("details"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${x==="details"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(qe,{className:"w-4 h-4"}),n.jsx("span",{children:"Details"}),n.jsx(ie,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:c.length+l.length+a.length})]}),n.jsxs("button",{onClick:()=>y("members"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${x==="members"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(xe,{className:"w-4 h-4"}),n.jsx("span",{children:"Members"}),c.length>0&&n.jsx(ie,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:c.length})]}),n.jsxs("button",{onClick:()=>y("invitations"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${x==="invitations"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(St,{className:"w-4 h-4"}),n.jsx("span",{children:"Invitations"}),l.length>0&&n.jsx(ie,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:l.length})]}),n.jsxs("button",{onClick:()=>y("teams"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${x==="teams"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(xe,{className:"w-4 h-4"}),n.jsx("span",{children:"Teams"}),a.length>0&&n.jsx(ie,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:a.length})]})]})}),x==="details"&&n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:[n.jsx("h3",{className:"text-lg text-white font-light mb-4",children:"Organization Information"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx("p",{className:"text-white mt-1",children:r.name})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Slug"}),n.jsx("p",{className:"text-white mt-1",children:r.slug})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Created"}),n.jsx("p",{className:"text-white mt-1",children:new Date(r.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Last Updated"}),n.jsx("p",{className:"text-white mt-1",children:new Date(r.updatedAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(xe,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:c.length}),n.jsx("p",{className:"text-sm text-gray-400",children:"Members"})]})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(xe,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:a.length}),n.jsx("p",{className:"text-sm text-gray-400",children:"Teams"})]})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(St,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:l.length}),n.jsx("p",{className:"text-sm text-gray-400",children:"Invitations"})]})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(am,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:Math.ceil((new Date().getTime()-new Date(r.createdAt).getTime())/(1e3*60*60*24))}),n.jsx("p",{className:"text-sm text-gray-400",children:"Days Active"})]})]})})]})]}),x==="teams"&&n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("h3",{className:"text-lg text-white font-light",children:["Teams (",a.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage teams within this organization"})]}),n.jsxs(z,{onClick:()=>b(!0),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(Hr,{className:"w-4 h-4 mr-2"}),"Create Team"]})]}),a.length>0?n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Team"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Members"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Created"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:a.map(L=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-10 h-10 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(xe,{className:"w-5 h-5 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:L.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["Team ID: ",L.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:L.memberCount||0}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:new Date(L.createdAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[n.jsxs(z,{variant:"outline",size:"sm",className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",onClick:()=>t(`/teams/${L.id}`),children:[n.jsx(qs,{className:"w-4 h-4 mr-1"}),"View"]}),n.jsxs(z,{variant:"outline",size:"sm",className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",onClick:()=>Fe(L),children:[n.jsx(Hn,{className:"w-4 h-4 mr-1"}),"Edit"]}),n.jsxs(z,{variant:"outline",size:"sm",className:"border border-dashed border-red-400/50 text-red-400 hover:bg-red-400/10 rounded-none",onClick:()=>Fi(L),children:[n.jsx(Wr,{className:"w-4 h-4 mr-1"}),"Delete"]})]})})]},L.id))})]})})}):n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-12",children:n.jsxs("div",{className:"text-center",children:[n.jsx(xe,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl text-white font-light mb-2",children:"No Teams Yet"}),n.jsx("p",{className:"text-gray-400 mb-6",children:"Create your first team to start organizing members within this organization."}),n.jsxs(z,{onClick:()=>b(!0),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(Hr,{className:"w-4 h-4 mr-2"}),"Create First Team"]})]})})]}),x==="members"&&n.jsxs("div",{className:"space-y-6",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsxs("h3",{className:"text-lg text-white font-light",children:["Members (",c.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage organization members and their roles"})]})}),c.length>0?n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"User"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Email"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Role"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Joined"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:c.map(L=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:L.user.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${L.user.id}`,alt:L.user.name,className:"w-10 h-10 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:L.user.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["ID: ",L.user.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:L.user.email}),n.jsx("td",{className:"py-4 px-4",children:n.jsx(ie,{variant:"secondary",className:"text-xs bg-blue-900/10 border border-dashed rounded-none border-blue-500/30 text-blue-400/70 capitalize",children:L.role})}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:new Date(L.joinedAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsx("div",{className:"flex items-center justify-end space-x-2",children:n.jsxs(z,{variant:"outline",size:"sm",className:"border border-dashed border-red-400/50 text-red-400 hover:bg-red-400/10 rounded-none",onClick:()=>G(L.id,L.user.name),children:[n.jsx(Wr,{className:"w-4 h-4 mr-1"}),"Remove"]})})})]},L.id))})]})})}):n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-12",children:n.jsxs("div",{className:"text-center",children:[n.jsx(xe,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl text-white font-light mb-2",children:"No Members Yet"}),n.jsx("p",{className:"text-gray-400 mb-6",children:"Invite users or seed members from existing users to get started."}),n.jsxs("div",{className:"flex items-center justify-center space-x-3",children:[n.jsxs(z,{onClick:()=>g(!0),className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",children:[n.jsx(xe,{className:"w-4 h-4 mr-2"}),"Seed Members"]}),n.jsxs(z,{onClick:()=>m(!0),className:"bg-white hover:bg-white/90 bg-transparent text-black border border-white/20 rounded-none",children:[n.jsx(St,{className:"w-4 h-4 mr-2"}),"Invite User"]})]})]})})]}),x==="invitations"&&n.jsxs("div",{className:"space-y-6",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsxs("h3",{className:"text-lg text-white font-light",children:["Invitations (",l.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage pending invitations to this organization"})]})}),l.length>0?n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Email"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Role"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Status"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Expires"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:l.map(L=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-10 h-10 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(St,{className:"w-5 h-5 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:L.email}),n.jsxs("div",{className:"text-sm text-gray-400",children:["Invited ",new Date(L.createdAt).toLocaleDateString()]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white capitalize",children:L.role}),n.jsx("td",{className:"py-4 px-4",children:n.jsxs(ie,{variant:"secondary",className:`text-xs font-normal rounded-none border-dashed flex items-center gap-1 w-fit ${L.status==="pending"?"bg-yellow-900/10 border border-yellow-500/30 text-yellow-400/70":L.status==="accepted"?"bg-green-900/10 border border-green-500/30 text-green-400/70":"bg-red-900/10 border border-red-500/30 text-red-400/70"}`,children:[L.status==="pending"&&n.jsx(ps,{className:"w-3 h-3"}),L.status==="accepted"&&n.jsx(Le,{className:"w-3 h-3"}),L.status==="expired"&&n.jsx(we,{className:"w-3 h-3"}),L.status]})}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:new Date(L.expiresAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[n.jsxs(z,{variant:"outline",size:"sm",className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",onClick:()=>X(L.id,L.email),children:[n.jsx(du,{className:"w-4 h-4 mr-1"}),"Resend"]}),n.jsxs(z,{variant:"outline",size:"sm",className:"border border-dashed border-red-400/50 text-red-400 hover:bg-red-400/10 rounded-none",onClick:()=>H(L.id),children:[n.jsx(Wr,{className:"w-4 h-4 mr-1"}),"Cancel"]})]})})]},L.id))})]})})}):n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-12",children:n.jsxs("div",{className:"text-center",children:[n.jsx(St,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl text-white font-light mb-2",children:"No Invitations"}),n.jsx("p",{className:"text-gray-400 mb-6",children:"Start inviting users to join this organization."}),n.jsxs(z,{onClick:()=>m(!0),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(St,{className:"w-4 h-4 mr-2"}),"Send First Invitation"]})]})})]}),j&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Invite User"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>{m(!1),q("")},className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsx("div",{className:"space-y-4",children:n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"invite-email",className:"text-sm text-gray-400 font-light",children:"Email Address"}),n.jsx(ue,{id:"invite-email",type:"email",value:K,onChange:L=>q(L.target.value),placeholder:"user@example.com",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>{m(!1),q("")},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsxs(z,{onClick:D,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(du,{className:"w-4 h-4 mr-2"}),"Send Invitation"]})]})]})}),N&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Create Team"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>{b(!1),ne({name:""})},className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsx("div",{className:"space-y-4",children:n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"team-name",className:"text-sm text-gray-400 font-light",children:"Team Name"}),n.jsx(ue,{id:"team-name",value:re.name,onChange:L=>T(L.target.value),placeholder:"e.g. Development Team",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>{b(!1),ne({name:""})},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:M,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Create Team"})]})]})}),P&&U&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Edit Team"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>{E(!1),ne({name:""})},className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(xe,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:U.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["Team ID: ",U.id]})]})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"edit-team-name",className:"text-sm text-gray-400 font-light",children:"Team Name"}),n.jsx(ue,{id:"edit-team-name",value:re.name,onChange:L=>T(L.target.value),placeholder:"e.g. Development Team",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>{E(!1),ne({name:""})},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:Q,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Update Team"})]})]})}),R&&U&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Delete Team"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>W(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(xe,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:U.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["Team ID: ",U.id]})]})]}),n.jsx("p",{className:"text-gray-400",children:"Are you sure you want to delete this team? This action cannot be undone."})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>W(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:de,className:"bg-red-600 hover:bg-red-700 text-white border border-red-600 rounded-none",children:"Delete Team"})]})]})}),p&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-lg rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Seed Members"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>g(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(xe,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Add Members from Existing Users"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(ve,{htmlFor:"member-count",className:"text-sm text-gray-400 font-light",children:"Number of members to add"}),n.jsx(ue,{id:"member-count",type:"number",min:"1",max:"50",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(z,{onClick:()=>{var Z;const L=parseInt(((Z=document.getElementById("member-count"))==null?void 0:Z.value)||"5");O(L)},className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6",children:"Seed Members"})]})]}),C.length>0&&n.jsxs("div",{className:"mt-6",children:[n.jsx("h5",{className:"text-sm text-white font-light",children:"Seeding Log"}),n.jsx("br",{}),n.jsx("div",{className:"flex w-full mb-3",children:n.jsxs("details",{className:"group w-full",children:[n.jsxs("summary",{className:"cursor-pointer text-sm text-gray-400 font-light hover:text-white",children:["View Details (",C.length," items)"]}),n.jsx("div",{className:"mt-3 p-4 bg-black/50 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:C.map((L,Z)=>n.jsxs("div",{className:"text-xs font-mono text-gray-300 flex items-start space-x-2",children:[n.jsx("span",{className:"text-green-400",children:"✓"}),n.jsx("span",{children:L})]},Z))})})]})})]})]}),n.jsx("div",{className:"flex justify-end mt-6 pt-6 border-t border-dashed border-white/10",children:n.jsx(z,{variant:"outline",onClick:()=>g(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Close"})})]})})]}):n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsx("div",{className:"flex items-center space-x-4",children:n.jsx(Ln,{to:"/organizations",children:n.jsxs(z,{variant:"ghost",className:"text-gray-400 hover:text-white rounded-none",children:[n.jsx(fi,{className:"w-4 h-4 mr-2"}),"Back to Organizations"]})})}),n.jsx("br",{}),n.jsxs("div",{className:"text-center py-12",children:[n.jsx(qe,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h2",{className:"text-xl text-white font-light mb-2",children:"Organization Not Found"}),n.jsx("p",{className:"text-gray-400",children:"The organization you're looking for doesn't exist."})]})]})}function mb(){var re,ne;const{teamId:e}=em(),[t,r]=h.useState(null),[s,a]=h.useState([]),[i,l]=h.useState(!0),[o,c]=h.useState("details"),[u,f]=h.useState(!1),[d,x]=h.useState(!1),[y,w]=h.useState(""),[v,j]=h.useState([]),[m,p]=h.useState([]),[g,N]=h.useState({name:""});h.useEffect(()=>{e&&(b(),P())},[e]);const b=async()=>{try{const A=await(await fetch(`/api/teams/${e}`)).json();A.success?(r(A.team),N({name:A.team.name})):_.error("Team not found")}catch(C){console.error("Failed to fetch team:",C),_.error("Failed to load team")}finally{l(!1)}},P=async()=>{try{const A=await(await fetch(`/api/teams/${e}/members`)).json();A.success&&a(A.members||[])}catch(C){console.error("Failed to fetch team members:",C),_.error("Failed to load team members")}},E=async()=>{try{const A=await(await fetch("/api/users?limit=10000")).json(),T=s.map(B=>B.userId),F=(A.users||[]).filter(B=>!T.includes(B.id));j(F)}catch(C){console.error("Failed to fetch available users:",C),_.error("Failed to load users")}},R=async()=>{if(!g.name){_.error("Please enter a team name");return}const C=_.loading("Updating team...");try{const T=await(await fetch(`/api/teams/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:g.name})})).json();T.success?(await b(),x(!1),_.success("Team updated successfully!",{id:C})):_.error(`Error updating team: ${T.error||"Unknown error"}`,{id:C})}catch(A){console.error("Error updating team:",A),_.error("Error updating team",{id:C})}},W=async()=>{if(m.length===0){_.error("Please select at least one user");return}const C=_.loading(`Adding ${m.length} members...`);try{const T=await(await fetch(`/api/teams/${e}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userIds:m})})).json();T.success?(await P(),f(!1),p([]),w(""),_.success(`Successfully added ${m.length} members!`,{id:C})):_.error(`Error adding members: ${T.error||"Unknown error"}`,{id:C})}catch(A){console.error("Error adding members:",A),_.error("Error adding members",{id:C})}},U=async(C,A)=>{const T=_.loading(`Removing ${A}...`);try{const B=await(await fetch(`/api/team-members/${C}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();B.success?(await P(),_.success(`${A} removed from team!`,{id:T})):_.error(`Error removing member: ${B.error||"Unknown error"}`,{id:T})}catch(F){console.error("Error removing team member:",F),_.error("Error removing team member",{id:T})}},J=()=>{E(),f(!0)},K=C=>{p(A=>A.includes(C)?A.filter(T=>T!==C):[...A,C])},q=v.filter(C=>C.name.toLowerCase().includes(y.toLowerCase())||C.email.toLowerCase().includes(y.toLowerCase()));return i?n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsx("div",{className:"text-white",children:"Loading team details..."})}):t?n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"flex items-center space-x-4",children:n.jsx(Ln,{to:`/organizations/${t.organizationId}`,children:n.jsxs(z,{variant:"ghost",className:"text-gray-400 hover:text-white rounded-none",children:[n.jsx(fi,{className:"w-4 h-4 mr-2"}),"Back to Organization"]})})}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(z,{onClick:J,className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",children:[n.jsx(Hr,{className:"w-4 h-4 mr-2"}),"Add Members"]}),n.jsxs(z,{onClick:()=>x(!0),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(Hn,{className:"w-4 h-4 mr-2"}),"Edit Team"]})]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-12 h-12 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(xe,{className:"w-6 h-6 text-white"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl text-white font-light",children:t.name}),n.jsx("div",{className:"flex items-center space-x-2",children:t.organization&&n.jsxs(Ln,{to:`/organizations/${t.organizationId}`,className:"text-gray-400 hover:text-white text-sm",children:[n.jsx(qe,{className:"w-4 h-4 inline mr-1"}),t.organization.name]})})]})]}),n.jsx("div",{className:"border-b border-white/10",children:n.jsxs("nav",{className:"flex space-x-8",children:[n.jsxs("button",{onClick:()=>c("details"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${o==="details"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(xe,{className:"w-4 h-4"}),n.jsx("span",{children:"Details"})]}),n.jsxs("button",{onClick:()=>c("members"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${o==="members"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(xe,{className:"w-4 h-4"}),n.jsx("span",{children:"Members"}),s.length>0&&n.jsx(ie,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:s.length})]})]})}),o==="details"&&n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:[n.jsx("h3",{className:"text-lg text-white font-light mb-4",children:"Team Information"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx("p",{className:"text-white mt-1",children:t.name})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Organization"}),n.jsx("p",{className:"text-white mt-1",children:((re=t.organization)==null?void 0:re.name)||"Unknown"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Created"}),n.jsx("p",{className:"text-white mt-1",children:new Date(t.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Last Updated"}),n.jsx("p",{className:"text-white mt-1",children:new Date(t.updatedAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(xe,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:s.length}),n.jsx("p",{className:"text-sm text-gray-400",children:"Members"})]})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(am,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:Math.ceil((new Date().getTime()-new Date(t.createdAt).getTime())/(1e3*60*60*24))}),n.jsx("p",{className:"text-sm text-gray-400",children:"Days Active"})]})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(qe,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:"1"}),n.jsx("p",{className:"text-sm text-gray-400",children:"Organization"})]})]})})]})]}),o==="members"&&n.jsxs("div",{className:"space-y-6",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsxs("h3",{className:"text-lg text-white font-light",children:["Team Members (",s.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage members of this team"})]})}),s.length>0?n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"User"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Email"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Role"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Joined"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:s.map(C=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:C.user.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${C.user.id}`,alt:C.user.name,className:"w-10 h-10 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:C.user.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["ID: ",C.user.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:C.user.email}),n.jsx("td",{className:"py-4 px-4",children:n.jsx(ie,{variant:"secondary",className:"text-xs bg-blue-900/10 border border-dashed border-blue-500/30 text-blue-400/70 rounded-none capitalize",children:C.role})}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:new Date(C.joinedAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsx("div",{className:"flex items-center justify-end space-x-2",children:n.jsxs(z,{variant:"outline",size:"sm",className:"border border-dashed border-red-400/50 text-red-400 hover:bg-red-400/10 rounded-none",onClick:()=>U(C.id,C.user.name),children:[n.jsx(Wr,{className:"w-4 h-4 mr-1"}),"Remove"]})})})]},C.id))})]})})}):n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-12",children:n.jsxs("div",{className:"text-center",children:[n.jsx(xe,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl text-white font-light mb-2",children:"No Members Yet"}),n.jsx("p",{className:"text-gray-400 mb-6",children:"Add members to this team to get started."}),n.jsxs(z,{onClick:J,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(Hr,{className:"w-4 h-4 mr-2"}),"Add First Members"]})]})})]}),u&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-2xl rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Add Team Members"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>{f(!1),p([]),w("")},className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"relative",children:[n.jsx(Jr,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),n.jsx(ue,{placeholder:"Search users by name or email...",value:y,onChange:C=>w(C.target.value),className:"pl-10 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),m.length>0&&n.jsx("div",{className:"bg-blue-900/20 border border-blue-500/30 rounded-none p-3",children:n.jsxs("p",{className:"text-blue-400 text-sm",children:[m.length," user",m.length!==1?"s":""," selected"]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none max-h-96 overflow-y-auto",children:q.length>0?n.jsx("div",{className:"divide-y divide-white/5",children:q.map(C=>n.jsxs("div",{className:`flex items-center space-x-3 p-4 cursor-pointer hover:bg-white/5 ${m.includes(C.id)?"bg-blue-900/20":""}`,onClick:()=>K(C.id),children:[n.jsx("input",{type:"checkbox",checked:m.includes(C.id),onChange:()=>K(C.id),className:"rounded border-gray-300"}),n.jsx("img",{src:C.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${C.id}`,alt:C.name,className:"w-10 h-10 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("div",{className:"text-white font-light",children:C.name}),n.jsx("div",{className:"text-sm text-gray-400",children:C.email})]})]},C.id))}):n.jsx("div",{className:"p-8 text-center",children:n.jsx("p",{className:"text-gray-400",children:"No users found matching your search."})})})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>{f(!1),p([]),w("")},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsxs(z,{onClick:W,disabled:m.length===0,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none disabled:opacity-50",children:[n.jsx(Hr,{className:"w-4 h-4 mr-2"}),"Add ",m.length," Member",m.length!==1?"s":""]})]})]})}),d&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Edit Team"}),n.jsx(z,{variant:"ghost",size:"sm",onClick:()=>x(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(xe,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:t.name}),n.jsx("div",{className:"text-sm text-gray-400",children:(ne=t.organization)==null?void 0:ne.name})]})]}),n.jsxs("div",{children:[n.jsx(ve,{htmlFor:"edit-team-name",className:"text-sm text-gray-400 font-light",children:"Team Name"}),n.jsx(ue,{id:"edit-team-name",value:g.name,onChange:C=>N({name:C.target.value}),placeholder:"e.g. Development Team",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(z,{variant:"outline",onClick:()=>x(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(z,{onClick:R,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Update Team"})]})]})})]}):n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsx("div",{className:"flex items-center space-x-4",children:n.jsx(Ln,{to:"/organizations",children:n.jsxs(z,{variant:"ghost",className:"text-gray-400 hover:text-white rounded-none",children:[n.jsx(fi,{className:"w-4 h-4 mr-2"}),"Back to Organizations"]})})}),n.jsxs("div",{className:"text-center py-12",children:[n.jsx(xe,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h2",{className:"text-xl text-white font-light mb-2",children:"Team Not Found"}),n.jsx("p",{className:"text-gray-400",children:"The team you're looking for doesn't exist."})]})]})}function pb(){var y,w,v,j,m,p,g,N,b,P,E,R,W,U,J,K,q,re,ne,C,A,T,F,B,Y;const[e,t]=h.useState(null),[r,s]=h.useState(null),[a,i]=h.useState(null),[l,o]=h.useState(!0);h.useEffect(()=>{c(),u(),f()},[]);const c=async()=>{try{const k=await(await fetch("/api/config")).json();console.log("Config data:",k),t(k)}catch(S){console.error("Failed to fetch config:",S)}finally{o(!1)}},u=async()=>{try{const k=await(await fetch("/api/health")).json();console.log("System info:",k),s(k.system||{studioVersion:"v1.0.0",nodeVersion:process.version,platform:navigator.platform,uptime:"2h 15m"})}catch(S){console.error("Failed to fetch system info:",S),s({studioVersion:"v1.0.0",nodeVersion:"v18.0.0",platform:"macOS",uptime:"2h 15m"})}},f=async()=>{try{const k=await(await fetch("/api/plugins")).json();i(k)}catch(S){console.error("Failed to fetch plugins:",S),i({plugins:[],configPath:null,totalPlugins:0,error:"Failed to fetch plugins"})}},d=S=>{switch(S==null?void 0:S.toLowerCase()){case"postgresql":case"postgres":return n.jsxs(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:[n.jsx(Le,{className:"w-3 h-3"}),"Connected"]});case"mysql":return n.jsxs(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:[n.jsx(Le,{className:"w-3 h-3"}),"Connected"]});case"sqlite":return n.jsxs(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:[n.jsx(as,{className:"w-3 h-3"}),"Local"]});default:return n.jsxs(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:[n.jsx(Vt,{className:"w-3 h-3"}),"Unknown"]})}},x=S=>{switch(S.toLowerCase()){case"google":return n.jsx(dn,{className:"w-5 h-5 text-white"});case"github":return n.jsx(Wt,{className:"w-5 h-5 text-white"});case"discord":return n.jsx(dn,{className:"w-5 h-5 text-white"});case"twitter":return n.jsx(dn,{className:"w-5 h-5 text-white"});default:return n.jsx(dn,{className:"w-5 h-5 text-white"})}};return l?n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-white"})}):n.jsxs("div",{className:"space-y-8 animate-fade-in",children:[n.jsx("div",{className:"flex items-center justify-between p-5 pt-7",children:n.jsxs("div",{children:[n.jsx("h1",{className:"text-3xl font-normal text-white tracking-tight",children:"Settings"}),n.jsx("p",{className:"text-gray-300 mt-2",children:"Configure your Better Auth application"})]})}),n.jsx("hr",{className:"w-full border-white/15 h-px"}),n.jsx("hr",{className:"w-full border-white/15 h-px"}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 p-5",children:[n.jsxs(Ve,{className:"border-white/15 bg-black/70 px-0 sm:px-0 md:px-0 lg:px-0 xl:px-0 rounded-none",children:[n.jsxs(Dt,{children:[n.jsxs(Lt,{className:"text-white flex items-center space-x-2",children:[n.jsx(In,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Application"})]}),n.jsx(It,{children:"Basic application configuration"})]}),n.jsx("hr",{className:"w-full border-white/15 h-px -mt-3 mb-1"}),n.jsxs(We,{className:"space-y-0 px-0 pb-0 border-b-none",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(dn,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"App Name"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Application display name"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:(e==null?void 0:e.appName)||"Better Auth"})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(f0,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Base URL"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Application base URL"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:(e==null?void 0:e.baseURL)||"Not set"})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(pl,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Base Path"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Auth API base path"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:(e==null?void 0:e.basePath)||"/api/auth"})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Wt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Secret"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Encryption secret"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:e!=null&&e.secret?"Configured":"Not set"})})]})]})]}),n.jsxs(Ve,{className:"border-white/15 bg-black/70 px-0 sm:px-0 md:px-0 lg:px-0 xl:px-0 rounded-none",children:[n.jsxs(Dt,{children:[n.jsxs(Lt,{className:"text-white flex items-center space-x-2",children:[n.jsx(et,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Database"})]}),n.jsx(It,{children:"Database connection and configuration"})]}),n.jsx("hr",{className:"w-full border-white/15 h-px -mt-3 mb-1"}),n.jsxs(We,{className:"space-y-0 px-0 pb-0 border-b-none",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(et,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:((y=e==null?void 0:e.database)==null?void 0:y.type)||"Unknown"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Database Type"})]})]}),((w=e==null?void 0:e.database)==null?void 0:w.type)&&d(e.database.type)]}),((v=e==null?void 0:e.database)==null?void 0:v.dialect)&&n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(et,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Dialect"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Database dialect"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:e.database.dialect})})]}),((j=e==null?void 0:e.database)==null?void 0:j.casing)&&n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(In,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Casing"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Table name casing"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white capitalize",children:e.database.casing})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(cu,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Debug Logs"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Database debug logging"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(m=e==null?void 0:e.database)!=null&&m.debugLogs?n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Disabled"]})})]})]})]}),n.jsxs(Ve,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Dt,{className:"border-b border-white/15",children:[n.jsxs(Lt,{className:"text-white flex items-center space-x-2",children:[n.jsx(Wt,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Providers"})]}),n.jsx(It,{children:"Configured authentication providers"})]}),n.jsx(We,{className:"p-0",children:e!=null&&e.socialProviders&&e.socialProviders.length>0?e.socialProviders.map((S,k)=>n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[x(S.type),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white capitalize",children:S.type}),n.jsx("p",{className:"text-xs text-gray-400",children:S.clientId?"Configured":"Not configured"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:S.clientId?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Active"]}):n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"w-3 h-3"}),"Setup Required"]})})]},k)):n.jsxs("div",{className:"text-center py-8",children:[n.jsx(Wt,{className:"w-8 h-8 text-white mx-auto mb-2"}),n.jsx("p",{className:"text-sm text-gray-400",children:"No providers configured"})]})})]}),n.jsxs(Ve,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Dt,{className:"border-b border-white/15",children:[n.jsxs(Lt,{className:"text-white flex items-center space-x-2",children:[n.jsx(St,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Email & Password"})]}),n.jsx(It,{children:"Email authentication settings"})]}),n.jsxs(We,{className:"p-0",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(St,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Email Authentication"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Allow users to sign up with email"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(p=e==null?void 0:e.emailAndPassword)!=null&&p.enabled?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(is,{className:"w-3 h-3"}),"Disabled"]})})]}),((g=e==null?void 0:e.emailAndPassword)==null?void 0:g.enabled)&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(xe,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Sign Up"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Allow new user registration"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(N=e==null?void 0:e.emailAndPassword)!=null&&N.disableSignUp?n.jsxs(n.Fragment,{children:[n.jsx(is,{className:"w-3 h-3"}),"Disabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Wt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Email Verification"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Require email verification"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(b=e==null?void 0:e.emailAndPassword)!=null&&b.requireEmailVerification?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Required"]}):n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"w-3 h-3"}),"Optional"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(pl,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Password Length"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Min/Max password length"})]})]}),n.jsx("div",{className:"text-right",children:n.jsxs("p",{className:"text-sm font-medium text-white",children:[((P=e==null?void 0:e.emailAndPassword)==null?void 0:P.minPasswordLength)||8," - ",((E=e==null?void 0:e.emailAndPassword)==null?void 0:E.maxPasswordLength)||128]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Fa,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Auto Sign In"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Auto sign in after registration"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(R=e==null?void 0:e.emailAndPassword)!=null&&R.autoSignIn?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"w-3 h-3"}),"Disabled"]})})]})]})]})]}),n.jsxs(Ve,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Dt,{className:"border-b border-white/15",children:[n.jsxs(Lt,{className:"text-white flex items-center space-x-2",children:[n.jsx(ps,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Session"})]}),n.jsx(It,{children:"Session management settings"})]}),n.jsxs(We,{className:"p-0",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ps,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Session Duration"}),n.jsx("p",{className:"text-xs text-gray-400",children:"How long sessions last"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(W=e==null?void 0:e.session)!=null&&W.expiresIn?`${Math.floor(e.session.expiresIn/(60*60*24))} days`:"7 days"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Default"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(cu,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Update Age"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Session refresh interval"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:(U=e==null?void 0:e.session)!=null&&U.updateAge?`${Math.floor(e.session.updateAge/(60*60))} hours`:"24 hours"})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Fa,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Session Refresh"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Auto refresh sessions"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(J=e==null?void 0:e.session)!=null&&J.disableSessionRefresh?n.jsxs(n.Fragment,{children:[n.jsx(is,{className:"w-3 h-3"}),"Disabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(et,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Store in Database"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Store sessions in database"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(K=e==null?void 0:e.session)!=null&&K.storeSessionInDatabase?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(as,{className:"w-3 h-3"}),"Secondary Storage"]})})]})]})]}),n.jsxs(Ve,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Dt,{className:"border-b border-white/15",children:[n.jsxs(Lt,{className:"text-white flex items-center space-x-2",children:[n.jsx(Wt,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Rate Limiting"})]}),n.jsx(It,{children:"API rate limiting configuration"})]}),n.jsxs(We,{className:"p-0",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Wt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Rate Limiting"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Enable rate limiting"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(q=e==null?void 0:e.rateLimit)!=null&&q.enabled?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"w-3 h-3"}),"Disabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ps,{className:"w-5 h-5 text-red-400"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Rate Limit Window"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Time window for rate limiting"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(re=e==null?void 0:e.rateLimit)!=null&&re.window?`${e.rateLimit.window} seconds`:"10 seconds"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Window"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Wt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Max Requests"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Maximum requests per window"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:((ne=e==null?void 0:e.rateLimit)==null?void 0:ne.max)||100}),n.jsx("p",{className:"text-xs text-gray-400",children:"Requests"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(et,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Storage"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Rate limit storage type"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white capitalize",children:((C=e==null?void 0:e.rateLimit)==null?void 0:C.storage)||"memory"})})]})]})]}),n.jsxs(Ve,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Dt,{className:"border-b border-white/15",children:[n.jsxs(Lt,{className:"text-white flex items-center space-x-2",children:[n.jsx(In,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Advanced"})]}),n.jsx(It,{children:"Advanced configuration options"})]}),n.jsxs(We,{className:"p-0",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(pl,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Secure Cookies"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Use secure cookies"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(A=e==null?void 0:e.advanced)!=null&&A.useSecureCookies?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"w-3 h-3"}),"Disabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Wt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"CSRF Check"}),n.jsx("p",{className:"text-xs text-gray-400",children:"CSRF protection"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(T=e==null?void 0:e.advanced)!=null&&T.disableCSRFCheck?n.jsxs(n.Fragment,{children:[n.jsx(is,{className:"w-3 h-3"}),"Disabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(qs,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"IP Tracking"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Track IP addresses"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(B=(F=e==null?void 0:e.advanced)==null?void 0:F.ipAddress)!=null&&B.disableIpTracking?n.jsxs(n.Fragment,{children:[n.jsx(is,{className:"w-3 h-3"}),"Disabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(d0,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Telemetry"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Usage analytics"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(Y=e==null?void 0:e.telemetry)!=null&&Y.enabled?n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Disabled"]})})]})]})]}),n.jsxs(Ve,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Dt,{className:"border-b border-white/15",children:[n.jsxs(Lt,{className:"text-white flex items-center space-x-2",children:[n.jsx(as,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"System Info"})]}),n.jsx(It,{children:"Better Auth Studio system information"})]}),n.jsxs(We,{className:"p-0",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Fa,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Studio Version"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Better Auth Studio"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(r==null?void 0:r.studioVersion)||"v1.0.0"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Latest"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(as,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Node.js Version"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Runtime environment"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(r==null?void 0:r.nodeVersion)||"v18.0.0"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Current"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(dn,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Platform"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Operating system"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(r==null?void 0:r.platform)||"macOS"}),n.jsx("p",{className:"text-xs text-gray-400",children:"System"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ps,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Uptime"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Service uptime"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(r==null?void 0:r.uptime)||"2h 15m"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Running"})]})]})]})]}),n.jsxs(Ve,{className:"border-white/15 bg-black/70 px-0 sm:px-0 md:px-0 lg:px-0 xl:px-0 rounded-none lg:col-span-2",children:[n.jsxs(Dt,{children:[n.jsxs(Lt,{className:"text-white flex items-center space-x-2",children:[n.jsx(ou,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Plugins"})]}),n.jsx(It,{children:"Better Auth plugins enabled in your configuration"})]}),n.jsx("hr",{className:"w-full border-white/15 h-px -mt-3 mb-1"}),n.jsx(We,{className:"space-y-0 px-0 pb-0 border-b-none",children:a!=null&&a.plugins&&a.plugins.length>0?n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(as,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Total Plugins"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Currently enabled plugins"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:a.totalPlugins}),n.jsx("p",{className:"text-xs text-gray-400",children:"Active"})]})]}),a.plugins.map((S,k)=>n.jsxs("div",{className:`flex items-center justify-between p-4 px-5 ${k<a.plugins.length-1?"border-b border-white/15":""}`,children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ou,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:S.name}),n.jsx("p",{className:"text-xs text-gray-400",children:S.description})]})]}),n.jsxs("div",{className:"text-right flex items-center space-x-2",children:[n.jsxs(ie,{variant:"secondary",className:"text-xs bg-green-900/50 border border-green-500/30 text-green-400 rounded-sm flex items-center gap-1",children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}),n.jsxs("p",{className:"text-xs text-gray-400",children:["v",S.version]})]})]},S.id)),a.configPath&&n.jsx("div",{className:"p-4 px-5 bg-black/30 border-t border-white/10",children:n.jsxs("p",{className:"text-xs text-gray-400",children:["Config file: ",n.jsx("span",{className:"text-white font-mono",children:a.configPath})]})})]}):n.jsxs("div",{className:"flex items-center justify-between p-4 px-5",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Vt,{className:"w-5 h-5 text-yellow-400"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"No Plugins Enabled"}),n.jsx("p",{className:"text-xs text-gray-400",children:(a==null?void 0:a.error)||"No plugins are currently configured in your Better Auth setup"})]})]}),n.jsx(ie,{variant:"secondary",className:"text-xs bg-yellow-900/50 border border-yellow-500/30 text-yellow-400 rounded-sm",children:"None"})]})})]})]})]})}function xb(){return n.jsxs(Mv,{children:[n.jsx(lb,{children:n.jsxs(kv,{children:[n.jsx(or,{path:"/",element:n.jsx(hb,{})}),n.jsx(or,{path:"/users",element:n.jsx(Gm,{})}),n.jsx(or,{path:"/organizations",element:n.jsx(Xm,{})}),n.jsx(or,{path:"/organizations/:orgId",element:n.jsx(fb,{})}),n.jsx(or,{path:"/teams/:teamId",element:n.jsx(mb,{})}),n.jsx(or,{path:"/sessions",element:n.jsx(Jm,{})}),n.jsx(or,{path:"/settings",element:n.jsx(pb,{})})]})}),n.jsx(l0,{theme:"dark",position:"top-right",richColors:!0,closeButton:!0})]})}El.createRoot(document.getElementById("root")).render(n.jsx($.StrictMode,{children:n.jsx(xb,{})}));
|