@tronsfey/ucli-server 0.5.0 → 0.6.0
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/README.md +4 -0
- package/README.zh.md +4 -0
- package/dist/admin-ui/{dist/assets/index-CppEl63e.css → assets/index-4l6VyZrV.css} +1 -1
- package/dist/admin-ui/assets/index-DvKqWW2H.js +117 -0
- package/dist/admin-ui/index.html +2 -2
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/package.json +4 -3
- package/dist/admin-ui/assets/index-BjdBylCY.css +0 -1
- package/dist/admin-ui/assets/index-CDwKIMTJ.js +0 -117
- package/dist/admin-ui/dist/assets/index-BjdBylCY.css +0 -1
- package/dist/admin-ui/dist/assets/index-CDwKIMTJ.js +0 -117
- package/dist/admin-ui/dist/assets/index-DBkeGfMQ.js +0 -117
- package/dist/admin-ui/dist/assets/index-ss5EmsBH.js +0 -117
- package/dist/admin-ui/dist/assets/remixicon-B25hvfAs.eot +0 -0
- package/dist/admin-ui/dist/assets/remixicon-BTtOSOPh.svg +0 -9709
- package/dist/admin-ui/dist/assets/remixicon-CZw4FkzQ.woff2 +0 -0
- package/dist/admin-ui/dist/assets/remixicon-S6an_USy.woff +0 -0
- package/dist/admin-ui/dist/assets/remixicon-sqouR8Ox.ttf +0 -0
- package/dist/admin-ui/dist/index.html +0 -14
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
function Tx(n,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in n)){const u=Object.getOwnPropertyDescriptor(s,a);u&&Object.defineProperty(n,a,u.get?u:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();function ih(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var $u={exports:{}},Pi={},Wu={exports:{}},Re={};/**
|
|
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 Hp;function jx(){if(Hp)return Re;Hp=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.iterator;function b(j){return j===null||typeof j!="object"?null:(j=w&&j[w]||j["@@iterator"],typeof j=="function"?j:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,S={};function C(j,F,ne){this.props=j,this.context=F,this.refs=S,this.updater=ne||E}C.prototype.isReactComponent={},C.prototype.setState=function(j,F){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,F,"setState")},C.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function O(){}O.prototype=C.prototype;function P(j,F,ne){this.props=j,this.context=F,this.refs=S,this.updater=ne||E}var T=P.prototype=new O;T.constructor=P,N(T,C.prototype),T.isPureReactComponent=!0;var L=Array.isArray,$=Object.prototype.hasOwnProperty,V={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function ie(j,F,ne){var re,me={},xe=null,Q=null;if(F!=null)for(re in F.ref!==void 0&&(Q=F.ref),F.key!==void 0&&(xe=""+F.key),F)$.call(F,re)&&!W.hasOwnProperty(re)&&(me[re]=F[re]);var pe=arguments.length-2;if(pe===1)me.children=ne;else if(1<pe){for(var we=Array(pe),Ce=0;Ce<pe;Ce++)we[Ce]=arguments[Ce+2];me.children=we}if(j&&j.defaultProps)for(re in pe=j.defaultProps,pe)me[re]===void 0&&(me[re]=pe[re]);return{$$typeof:n,type:j,key:xe,ref:Q,props:me,_owner:V.current}}function le(j,F){return{$$typeof:n,type:j.type,key:F,ref:j.ref,props:j.props,_owner:j._owner}}function de(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function he(j){var F={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(ne){return F[ne]})}var Z=/\/+/g;function U(j,F){return typeof j=="object"&&j!==null&&j.key!=null?he(""+j.key):F.toString(36)}function te(j,F,ne,re,me){var xe=typeof j;(xe==="undefined"||xe==="boolean")&&(j=null);var Q=!1;if(j===null)Q=!0;else switch(xe){case"string":case"number":Q=!0;break;case"object":switch(j.$$typeof){case n:case r:Q=!0}}if(Q)return Q=j,me=me(Q),j=re===""?"."+U(Q,0):re,L(me)?(ne="",j!=null&&(ne=j.replace(Z,"$&/")+"/"),te(me,F,ne,"",function(Ce){return Ce})):me!=null&&(de(me)&&(me=le(me,ne+(!me.key||Q&&Q.key===me.key?"":(""+me.key).replace(Z,"$&/")+"/")+j)),F.push(me)),1;if(Q=0,re=re===""?".":re+":",L(j))for(var pe=0;pe<j.length;pe++){xe=j[pe];var we=re+U(xe,pe);Q+=te(xe,F,ne,we,me)}else if(we=b(j),typeof we=="function")for(j=we.call(j),pe=0;!(xe=j.next()).done;)xe=xe.value,we=re+U(xe,pe++),Q+=te(xe,F,ne,we,me);else if(xe==="object")throw F=String(j),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return Q}function q(j,F,ne){if(j==null)return j;var re=[],me=0;return te(j,re,"","",function(xe){return F.call(ne,xe,me++)}),re}function ee(j){if(j._status===-1){var F=j._result;F=F(),F.then(function(ne){(j._status===0||j._status===-1)&&(j._status=1,j._result=ne)},function(ne){(j._status===0||j._status===-1)&&(j._status=2,j._result=ne)}),j._status===-1&&(j._status=0,j._result=F)}if(j._status===1)return j._result.default;throw j._result}var oe={current:null},z={transition:null},B={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:z,ReactCurrentOwner:V};function G(){throw Error("act(...) is not supported in production builds of React.")}return Re.Children={map:q,forEach:function(j,F,ne){q(j,function(){F.apply(this,arguments)},ne)},count:function(j){var F=0;return q(j,function(){F++}),F},toArray:function(j){return q(j,function(F){return F})||[]},only:function(j){if(!de(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},Re.Component=C,Re.Fragment=i,Re.Profiler=a,Re.PureComponent=P,Re.StrictMode=s,Re.Suspense=h,Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,Re.act=G,Re.cloneElement=function(j,F,ne){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var re=N({},j.props),me=j.key,xe=j.ref,Q=j._owner;if(F!=null){if(F.ref!==void 0&&(xe=F.ref,Q=V.current),F.key!==void 0&&(me=""+F.key),j.type&&j.type.defaultProps)var pe=j.type.defaultProps;for(we in F)$.call(F,we)&&!W.hasOwnProperty(we)&&(re[we]=F[we]===void 0&&pe!==void 0?pe[we]:F[we])}var we=arguments.length-2;if(we===1)re.children=ne;else if(1<we){pe=Array(we);for(var Ce=0;Ce<we;Ce++)pe[Ce]=arguments[Ce+2];re.children=pe}return{$$typeof:n,type:j.type,key:me,ref:xe,props:re,_owner:Q}},Re.createContext=function(j){return j={$$typeof:d,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:u,_context:j},j.Consumer=j},Re.createElement=ie,Re.createFactory=function(j){var F=ie.bind(null,j);return F.type=j,F},Re.createRef=function(){return{current:null}},Re.forwardRef=function(j){return{$$typeof:f,render:j}},Re.isValidElement=de,Re.lazy=function(j){return{$$typeof:y,_payload:{_status:-1,_result:j},_init:ee}},Re.memo=function(j,F){return{$$typeof:g,type:j,compare:F===void 0?null:F}},Re.startTransition=function(j){var F=z.transition;z.transition={};try{j()}finally{z.transition=F}},Re.unstable_act=G,Re.useCallback=function(j,F){return oe.current.useCallback(j,F)},Re.useContext=function(j){return oe.current.useContext(j)},Re.useDebugValue=function(){},Re.useDeferredValue=function(j){return oe.current.useDeferredValue(j)},Re.useEffect=function(j,F){return oe.current.useEffect(j,F)},Re.useId=function(){return oe.current.useId()},Re.useImperativeHandle=function(j,F,ne){return oe.current.useImperativeHandle(j,F,ne)},Re.useInsertionEffect=function(j,F){return oe.current.useInsertionEffect(j,F)},Re.useLayoutEffect=function(j,F){return oe.current.useLayoutEffect(j,F)},Re.useMemo=function(j,F){return oe.current.useMemo(j,F)},Re.useReducer=function(j,F,ne){return oe.current.useReducer(j,F,ne)},Re.useRef=function(j){return oe.current.useRef(j)},Re.useState=function(j){return oe.current.useState(j)},Re.useSyncExternalStore=function(j,F,ne){return oe.current.useSyncExternalStore(j,F,ne)},Re.useTransition=function(){return oe.current.useTransition()},Re.version="18.3.1",Re}var Kp;function Ic(){return Kp||(Kp=1,Wu.exports=jx()),Wu.exports}/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Gp;function Ox(){if(Gp)return Pi;Gp=1;var n=Ic(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(f,h,g){var y,w={},b=null,E=null;g!==void 0&&(b=""+g),h.key!==void 0&&(b=""+h.key),h.ref!==void 0&&(E=h.ref);for(y in h)s.call(h,y)&&!u.hasOwnProperty(y)&&(w[y]=h[y]);if(f&&f.defaultProps)for(y in h=f.defaultProps,h)w[y]===void 0&&(w[y]=h[y]);return{$$typeof:r,type:f,key:b,ref:E,props:w,_owner:a.current}}return Pi.Fragment=i,Pi.jsx=d,Pi.jsxs=d,Pi}var Yp;function _x(){return Yp||(Yp=1,$u.exports=Ox()),$u.exports}var m=_x(),v=Ic();const J=ih(v),Il=Tx({__proto__:null,default:J},[v]);var ol={},Vu={exports:{}},Pt={},Hu={exports:{}},Ku={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Qp;function Ax(){return Qp||(Qp=1,(function(n){function r(z,B){var G=z.length;z.push(B);e:for(;0<G;){var j=G-1>>>1,F=z[j];if(0<a(F,B))z[j]=B,z[G]=F,G=j;else break e}}function i(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var B=z[0],G=z.pop();if(G!==B){z[0]=G;e:for(var j=0,F=z.length,ne=F>>>1;j<ne;){var re=2*(j+1)-1,me=z[re],xe=re+1,Q=z[xe];if(0>a(me,G))xe<F&&0>a(Q,me)?(z[j]=Q,z[xe]=G,j=xe):(z[j]=me,z[re]=G,j=re);else if(xe<F&&0>a(Q,G))z[j]=Q,z[xe]=G,j=xe;else break e}}return B}function a(z,B){var G=z.sortIndex-B.sortIndex;return G!==0?G:z.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();n.unstable_now=function(){return d.now()-f}}var h=[],g=[],y=1,w=null,b=3,E=!1,N=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,O=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 T(z){for(var B=i(g);B!==null;){if(B.callback===null)s(g);else if(B.startTime<=z)s(g),B.sortIndex=B.expirationTime,r(h,B);else break;B=i(g)}}function L(z){if(S=!1,T(z),!N)if(i(h)!==null)N=!0,ee($);else{var B=i(g);B!==null&&oe(L,B.startTime-z)}}function $(z,B){N=!1,S&&(S=!1,O(ie),ie=-1),E=!0;var G=b;try{for(T(B),w=i(h);w!==null&&(!(w.expirationTime>B)||z&&!he());){var j=w.callback;if(typeof j=="function"){w.callback=null,b=w.priorityLevel;var F=j(w.expirationTime<=B);B=n.unstable_now(),typeof F=="function"?w.callback=F:w===i(h)&&s(h),T(B)}else s(h);w=i(h)}if(w!==null)var ne=!0;else{var re=i(g);re!==null&&oe(L,re.startTime-B),ne=!1}return ne}finally{w=null,b=G,E=!1}}var V=!1,W=null,ie=-1,le=5,de=-1;function he(){return!(n.unstable_now()-de<le)}function Z(){if(W!==null){var z=n.unstable_now();de=z;var B=!0;try{B=W(!0,z)}finally{B?U():(V=!1,W=null)}}else V=!1}var U;if(typeof P=="function")U=function(){P(Z)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,q=te.port2;te.port1.onmessage=Z,U=function(){q.postMessage(null)}}else U=function(){C(Z,0)};function ee(z){W=z,V||(V=!0,U())}function oe(z,B){ie=C(function(){z(n.unstable_now())},B)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_continueExecution=function(){N||E||(N=!0,ee($))},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_getFirstCallbackNode=function(){return i(h)},n.unstable_next=function(z){switch(b){case 1:case 2:case 3:var B=3;break;default:B=b}var G=b;b=B;try{return z()}finally{b=G}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(z,B){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var G=b;b=z;try{return B()}finally{b=G}},n.unstable_scheduleCallback=function(z,B,G){var j=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?j+G:j):G=j,z){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=G+F,z={id:y++,callback:B,priorityLevel:z,startTime:G,expirationTime:F,sortIndex:-1},G>j?(z.sortIndex=G,r(g,z),i(h)===null&&z===i(g)&&(S?(O(ie),ie=-1):S=!0,oe(L,G-j))):(z.sortIndex=F,r(h,z),N||E||(N=!0,ee($))),z},n.unstable_shouldYield=he,n.unstable_wrapCallback=function(z){var B=b;return function(){var G=b;b=B;try{return z.apply(this,arguments)}finally{b=G}}}})(Ku)),Ku}var qp;function Lx(){return qp||(qp=1,Hu.exports=Ax()),Hu.exports}/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Xp;function Ix(){if(Xp)return Pt;Xp=1;var n=Ic(),r=Lx();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);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 s=new Set,a={};function u(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},w={};function b(e){return h.call(w,e)?!0:h.call(y,e)?!1:g.test(e)?w[e]=!0:(y[e]=!0,!1)}function E(e,t,o,l){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N(e,t,o,l){if(t===null||typeof t>"u"||E(e,t,o,l))return!0;if(l)return!1;if(o!==null)switch(o.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 S(e,t,o,l,c,p,x){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=p,this.removeEmptyString=x}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new S(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new S(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new S(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new S(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){C[e]=new S(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new S(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new S(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new S(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new S(e,5,!1,e.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function P(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,P);C[t]=new S(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,P);C[t]=new S(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,P);C[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!0,!0)});function T(e,t,o,l){var c=C.hasOwnProperty(t)?C[t]:null;(c!==null?c.type!==0:l||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(N(t,o,c,l)&&(o=null),l||c===null?b(t)&&(o===null?e.removeAttribute(t):e.setAttribute(t,""+o)):c.mustUseProperty?e[c.propertyName]=o===null?c.type===3?!1:"":o:(t=c.attributeName,l=c.attributeNamespace,o===null?e.removeAttribute(t):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,l?e.setAttributeNS(l,t,o):e.setAttribute(t,o))))}var L=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$=Symbol.for("react.element"),V=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),de=Symbol.for("react.provider"),he=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),z=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,j;function F(e){if(j===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return`
|
|
34
|
-
`+j+e}var ne=!1;function re(e,t){if(!e||ne)return"";ne=!0;var o=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(D){var l=D}Reflect.construct(e,[],t)}else{try{t.call()}catch(D){l=D}e.call(t.prototype)}else{try{throw Error()}catch(D){l=D}e()}}catch(D){if(D&&l&&typeof D.stack=="string"){for(var c=D.stack.split(`
|
|
35
|
-
`),p=l.stack.split(`
|
|
36
|
-
`),x=c.length-1,R=p.length-1;1<=x&&0<=R&&c[x]!==p[R];)R--;for(;1<=x&&0<=R;x--,R--)if(c[x]!==p[R]){if(x!==1||R!==1)do if(x--,R--,0>R||c[x]!==p[R]){var k=`
|
|
37
|
-
`+c[x].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=x&&0<=R);break}}}finally{ne=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?F(e):""}function me(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function xe(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 W:return"Fragment";case V:return"Portal";case le:return"Profiler";case ie:return"StrictMode";case U:return"Suspense";case te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case he:return(e.displayName||"Context")+".Consumer";case de:return(e._context.displayName||"Context")+".Provider";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:xe(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}function Q(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 xe(t);case 8:return t===ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ce(e){var t=we(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,p=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(x){l=""+x,p.call(this,x)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ne(e){e._valueTracker||(e._valueTracker=Ce(e))}function ke(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),l="";return e&&(l=we(e)?e.checked?"true":"false":e.value),e=l,e!==o?(t.setValue(e),!0):!1}function Ge(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 ct(e,t){var o=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function dn(e,t){var o=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;o=pe(t.value!=null?t.value:o),e._wrapperState={initialChecked:l,initialValue:o,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Kt(e,t){t=t.checked,t!=null&&T(e,"checked",t,!1)}function Gt(e,t){Kt(e,t);var o=pe(t.value),l=t.type;if(o!=null)l==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fn(e,t.type,o):t.hasOwnProperty("defaultValue")&&fn(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hn(e,t,o){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function fn(e,t,o){(t!=="number"||Ge(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Kn=Array.isArray;function Ft(e,t,o,l){if(e=e.options,t){t={};for(var c=0;c<o.length;c++)t["$"+o[c]]=!0;for(o=0;o<e.length;o++)c=t.hasOwnProperty("$"+e[o].value),e[o].selected!==c&&(e[o].selected=c),c&&l&&(e[o].defaultSelected=!0)}else{for(o=""+pe(o),t=null,c=0;c<e.length;c++){if(e[c].value===o){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Xr(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pn(e,t){var o=t.value;if(o==null){if(o=t.children,t=t.defaultValue,o!=null){if(t!=null)throw Error(i(92));if(Kn(o)){if(1<o.length)throw Error(i(93));o=o[0]}t=o}t==null&&(t=""),o=t}e._wrapperState={initialValue:pe(o)}}function Hi(e,t){var o=pe(t.value),l=pe(t.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),t.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),l!=null&&(e.defaultValue=""+l)}function Ki(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vt(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 mn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Jr,Gi=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,o,l,c){MSApp.execUnsafeLocalFunction(function(){return e(t,o,l,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Jr=Jr||document.createElement("div"),Jr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Jr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hn(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var Rr={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},Yi=["Webkit","ms","Moz","O"];Object.keys(Rr).forEach(function(e){Yi.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rr[t]=Rr[e]})});function Zr(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||Rr.hasOwnProperty(e)&&Rr[e]?(""+t).trim():t+"px"}function Tn(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var l=o.indexOf("--")===0,c=Zr(o,t[o],l);o==="float"&&(o="cssFloat"),l?e.setProperty(o,c):e[o]=c}}var Qi=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gn(e,t){if(t){if(Qi[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 Ko(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 Go=null;function eo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var to=null,Gn=null,vn=null;function Yt(e){if(e=pi(e)){if(typeof to!="function")throw Error(i(280));var t=e.stateNode;t&&(t=xs(t),to(e.stateNode,e.type,t))}}function qi(e){Gn?vn?vn.push(e):vn=[e]:Gn=e}function Ee(){if(Gn){var e=Gn,t=vn;if(vn=Gn=null,Yt(e),t)for(e=0;e<t.length;e++)Yt(t[e])}}function Oe(e,t){return e(t)}function Ae(){}var yt=!1;function St(e,t,o){if(yt)return e(t,o);yt=!0;try{return Oe(e,t,o)}finally{yt=!1,(Gn!==null||vn!==null)&&(Ae(),Ee())}}function Et(e,t){var o=e.stateNode;if(o===null)return null;var l=xs(o);if(l===null)return null;o=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,t,typeof o));return o}var Qt=!1;if(f)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){Qt=!0}}),window.addEventListener("test",rt,rt),window.removeEventListener("test",rt,rt)}catch{Qt=!1}function yn(e,t,o,l,c,p,x,R,k){var D=Array.prototype.slice.call(arguments,3);try{t.apply(o,D)}catch(K){this.onError(K)}}var Yo=!1,Xi=null,Ji=!1,la=null,Dv={onError:function(e){Yo=!0,Xi=e}};function Mv(e,t,o,l,c,p,x,R,k){Yo=!1,Xi=null,yn.apply(Dv,arguments)}function Fv(e,t,o,l,c,p,x,R,k){if(Mv.apply(this,arguments),Yo){if(Yo){var D=Xi;Yo=!1,Xi=null}else throw Error(i(198));Ji||(Ji=!0,la=D)}}function kr(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function pd(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 md(e){if(kr(e)!==e)throw Error(i(188))}function zv(e){var t=e.alternate;if(!t){if(t=kr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var o=e,l=t;;){var c=o.return;if(c===null)break;var p=c.alternate;if(p===null){if(l=c.return,l!==null){o=l;continue}break}if(c.child===p.child){for(p=c.child;p;){if(p===o)return md(c),e;if(p===l)return md(c),t;p=p.sibling}throw Error(i(188))}if(o.return!==l.return)o=c,l=p;else{for(var x=!1,R=c.child;R;){if(R===o){x=!0,o=c,l=p;break}if(R===l){x=!0,l=c,o=p;break}R=R.sibling}if(!x){for(R=p.child;R;){if(R===o){x=!0,o=p,l=c;break}if(R===l){x=!0,l=p,o=c;break}R=R.sibling}if(!x)throw Error(i(189))}}if(o.alternate!==l)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:t}function hd(e){return e=zv(e),e!==null?gd(e):null}function gd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gd(e);if(t!==null)return t;e=e.sibling}return null}var vd=r.unstable_scheduleCallback,yd=r.unstable_cancelCallback,Uv=r.unstable_shouldYield,Bv=r.unstable_requestPaint,Ye=r.unstable_now,$v=r.unstable_getCurrentPriorityLevel,aa=r.unstable_ImmediatePriority,xd=r.unstable_UserBlockingPriority,Zi=r.unstable_NormalPriority,Wv=r.unstable_LowPriority,wd=r.unstable_IdlePriority,es=null,xn=null;function Vv(e){if(xn&&typeof xn.onCommitFiberRoot=="function")try{xn.onCommitFiberRoot(es,e,void 0,(e.current.flags&128)===128)}catch{}}var qt=Math.clz32?Math.clz32:Gv,Hv=Math.log,Kv=Math.LN2;function Gv(e){return e>>>=0,e===0?32:31-(Hv(e)/Kv|0)|0}var ts=64,ns=4194304;function Qo(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 rs(e,t){var o=e.pendingLanes;if(o===0)return 0;var l=0,c=e.suspendedLanes,p=e.pingedLanes,x=o&268435455;if(x!==0){var R=x&~c;R!==0?l=Qo(R):(p&=x,p!==0&&(l=Qo(p)))}else x=o&~c,x!==0?l=Qo(x):p!==0&&(l=Qo(p));if(l===0)return 0;if(t!==0&&t!==l&&(t&c)===0&&(c=l&-l,p=t&-t,c>=p||c===16&&(p&4194240)!==0))return t;if((l&4)!==0&&(l|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0<t;)o=31-qt(t),c=1<<o,l|=e[o],t&=~c;return l}function Yv(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 Qv(e,t){for(var o=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,p=e.pendingLanes;0<p;){var x=31-qt(p),R=1<<x,k=c[x];k===-1?((R&o)===0||(R&l)!==0)&&(c[x]=Yv(R,t)):k<=t&&(e.expiredLanes|=R),p&=~R}}function ua(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Sd(){var e=ts;return ts<<=1,(ts&4194240)===0&&(ts=64),e}function ca(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function qo(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qt(t),e[t]=o}function qv(e,t){var o=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 l=e.eventTimes;for(e=e.expirationTimes;0<o;){var c=31-qt(o),p=1<<c;t[c]=0,l[c]=-1,e[c]=-1,o&=~p}}function da(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var l=31-qt(o),c=1<<l;c&t|e[l]&t&&(e[l]|=t),o&=~c}}var _e=0;function Ed(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Cd,fa,bd,Nd,Rd,pa=!1,os=[],Yn=null,Qn=null,qn=null,Xo=new Map,Jo=new Map,Xn=[],Xv="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 kd(e,t){switch(e){case"focusin":case"focusout":Yn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":qn=null;break;case"pointerover":case"pointerout":Xo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jo.delete(t.pointerId)}}function Zo(e,t,o,l,c,p){return e===null||e.nativeEvent!==p?(e={blockedOn:t,domEventName:o,eventSystemFlags:l,nativeEvent:p,targetContainers:[c]},t!==null&&(t=pi(t),t!==null&&fa(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Jv(e,t,o,l,c){switch(t){case"focusin":return Yn=Zo(Yn,e,t,o,l,c),!0;case"dragenter":return Qn=Zo(Qn,e,t,o,l,c),!0;case"mouseover":return qn=Zo(qn,e,t,o,l,c),!0;case"pointerover":var p=c.pointerId;return Xo.set(p,Zo(Xo.get(p)||null,e,t,o,l,c)),!0;case"gotpointercapture":return p=c.pointerId,Jo.set(p,Zo(Jo.get(p)||null,e,t,o,l,c)),!0}return!1}function Pd(e){var t=Pr(e.target);if(t!==null){var o=kr(t);if(o!==null){if(t=o.tag,t===13){if(t=pd(o),t!==null){e.blockedOn=t,Rd(e.priority,function(){bd(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function is(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=ha(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var l=new o.constructor(o.type,o);Go=l,o.target.dispatchEvent(l),Go=null}else return t=pi(o),t!==null&&fa(t),e.blockedOn=o,!1;t.shift()}return!0}function Td(e,t,o){is(e)&&o.delete(t)}function Zv(){pa=!1,Yn!==null&&is(Yn)&&(Yn=null),Qn!==null&&is(Qn)&&(Qn=null),qn!==null&&is(qn)&&(qn=null),Xo.forEach(Td),Jo.forEach(Td)}function ei(e,t){e.blockedOn===t&&(e.blockedOn=null,pa||(pa=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Zv)))}function ti(e){function t(c){return ei(c,e)}if(0<os.length){ei(os[0],e);for(var o=1;o<os.length;o++){var l=os[o];l.blockedOn===e&&(l.blockedOn=null)}}for(Yn!==null&&ei(Yn,e),Qn!==null&&ei(Qn,e),qn!==null&&ei(qn,e),Xo.forEach(t),Jo.forEach(t),o=0;o<Xn.length;o++)l=Xn[o],l.blockedOn===e&&(l.blockedOn=null);for(;0<Xn.length&&(o=Xn[0],o.blockedOn===null);)Pd(o),o.blockedOn===null&&Xn.shift()}var no=L.ReactCurrentBatchConfig,ss=!0;function ey(e,t,o,l){var c=_e,p=no.transition;no.transition=null;try{_e=1,ma(e,t,o,l)}finally{_e=c,no.transition=p}}function ty(e,t,o,l){var c=_e,p=no.transition;no.transition=null;try{_e=4,ma(e,t,o,l)}finally{_e=c,no.transition=p}}function ma(e,t,o,l){if(ss){var c=ha(e,t,o,l);if(c===null)_a(e,t,l,ls,o),kd(e,l);else if(Jv(c,e,t,o,l))l.stopPropagation();else if(kd(e,l),t&4&&-1<Xv.indexOf(e)){for(;c!==null;){var p=pi(c);if(p!==null&&Cd(p),p=ha(e,t,o,l),p===null&&_a(e,t,l,ls,o),p===c)break;c=p}c!==null&&l.stopPropagation()}else _a(e,t,l,null,o)}}var ls=null;function ha(e,t,o,l){if(ls=null,e=eo(l),e=Pr(e),e!==null)if(t=kr(e),t===null)e=null;else if(o=t.tag,o===13){if(e=pd(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ls=e,null}function jd(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($v()){case aa:return 1;case xd:return 4;case Zi:case Wv:return 16;case wd:return 536870912;default:return 16}default:return 16}}var Jn=null,ga=null,as=null;function Od(){if(as)return as;var e,t=ga,o=t.length,l,c="value"in Jn?Jn.value:Jn.textContent,p=c.length;for(e=0;e<o&&t[e]===c[e];e++);var x=o-e;for(l=1;l<=x&&t[o-l]===c[p-l];l++);return as=c.slice(e,1<l?1-l:void 0)}function us(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 cs(){return!0}function _d(){return!1}function _t(e){function t(o,l,c,p,x){this._reactName=o,this._targetInst=c,this.type=l,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(o=e[R],this[R]=o?o(p):p[R]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?cs:_d,this.isPropagationStopped=_d,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=cs)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),t}var ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},va=_t(ro),ni=G({},ro,{view:0,detail:0}),ny=_t(ni),ya,xa,ri,ds=G({},ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sa,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!==ri&&(ri&&e.type==="mousemove"?(ya=e.screenX-ri.screenX,xa=e.screenY-ri.screenY):xa=ya=0,ri=e),ya)},movementY:function(e){return"movementY"in e?e.movementY:xa}}),Ad=_t(ds),ry=G({},ds,{dataTransfer:0}),oy=_t(ry),iy=G({},ni,{relatedTarget:0}),wa=_t(iy),sy=G({},ro,{animationName:0,elapsedTime:0,pseudoElement:0}),ly=_t(sy),ay=G({},ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uy=_t(ay),cy=G({},ro,{data:0}),Ld=_t(cy),dy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fy={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"},py={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function my(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=py[e])?!!t[e]:!1}function Sa(){return my}var hy=G({},ni,{key:function(e){if(e.key){var t=dy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=us(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sa,charCode:function(e){return e.type==="keypress"?us(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?us(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gy=_t(hy),vy=G({},ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Id=_t(vy),yy=G({},ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sa}),xy=_t(yy),wy=G({},ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sy=_t(wy),Ey=G({},ds,{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}),Cy=_t(Ey),by=[9,13,27,32],Ea=f&&"CompositionEvent"in window,oi=null;f&&"documentMode"in document&&(oi=document.documentMode);var Ny=f&&"TextEvent"in window&&!oi,Dd=f&&(!Ea||oi&&8<oi&&11>=oi),Md=" ",Fd=!1;function zd(e,t){switch(e){case"keyup":return by.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function Ry(e,t){switch(e){case"compositionend":return Ud(t);case"keypress":return t.which!==32?null:(Fd=!0,Md);case"textInput":return e=t.data,e===Md&&Fd?null:e;default:return null}}function ky(e,t){if(oo)return e==="compositionend"||!Ea&&zd(e,t)?(e=Od(),as=ga=Jn=null,oo=!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 Dd&&t.locale!=="ko"?null:t.data;default:return null}}var Py={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 Bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Py[e.type]:t==="textarea"}function $d(e,t,o,l){qi(l),t=gs(t,"onChange"),0<t.length&&(o=new va("onChange","change",null,o,l),e.push({event:o,listeners:t}))}var ii=null,si=null;function Ty(e){lf(e,0)}function fs(e){var t=uo(e);if(ke(t))return e}function jy(e,t){if(e==="change")return t}var Wd=!1;if(f){var Ca;if(f){var ba="oninput"in document;if(!ba){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),ba=typeof Vd.oninput=="function"}Ca=ba}else Ca=!1;Wd=Ca&&(!document.documentMode||9<document.documentMode)}function Hd(){ii&&(ii.detachEvent("onpropertychange",Kd),si=ii=null)}function Kd(e){if(e.propertyName==="value"&&fs(si)){var t=[];$d(t,si,e,eo(e)),St(Ty,t)}}function Oy(e,t,o){e==="focusin"?(Hd(),ii=t,si=o,ii.attachEvent("onpropertychange",Kd)):e==="focusout"&&Hd()}function _y(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fs(si)}function Ay(e,t){if(e==="click")return fs(t)}function Ly(e,t){if(e==="input"||e==="change")return fs(t)}function Iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xt=typeof Object.is=="function"?Object.is:Iy;function li(e,t){if(Xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),l=Object.keys(t);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var c=o[l];if(!h.call(t,c)||!Xt(e[c],t[c]))return!1}return!0}function Gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yd(e,t){var o=Gd(e);e=0;for(var l;o;){if(o.nodeType===3){if(l=e+o.textContent.length,e<=t&&l>=t)return{node:o,offset:t-e};e=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Gd(o)}}function Qd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qd(){for(var e=window,t=Ge();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch{o=!1}if(o)e=t.contentWindow;else break;t=Ge(e.document)}return t}function Na(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 Dy(e){var t=qd(),o=e.focusedElem,l=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&Qd(o.ownerDocument.documentElement,o)){if(l!==null&&Na(o)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=o.textContent.length,p=Math.min(l.start,c);l=l.end===void 0?p:Math.min(l.end,c),!e.extend&&p>l&&(c=l,l=p,p=c),c=Yd(o,p);var x=Yd(o,l);c&&x&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),p>l?(e.addRange(t),e.extend(x.node,x.offset)):(t.setEnd(x.node,x.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<t.length;o++)e=t[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var My=f&&"documentMode"in document&&11>=document.documentMode,io=null,Ra=null,ai=null,ka=!1;function Xd(e,t,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ka||io==null||io!==Ge(l)||(l=io,"selectionStart"in l&&Na(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ai&&li(ai,l)||(ai=l,l=gs(Ra,"onSelect"),0<l.length&&(t=new va("onSelect","select",null,t,o),e.push({event:t,listeners:l}),t.target=io)))}function ps(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var so={animationend:ps("Animation","AnimationEnd"),animationiteration:ps("Animation","AnimationIteration"),animationstart:ps("Animation","AnimationStart"),transitionend:ps("Transition","TransitionEnd")},Pa={},Jd={};f&&(Jd=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function ms(e){if(Pa[e])return Pa[e];if(!so[e])return e;var t=so[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in Jd)return Pa[e]=t[o];return e}var Zd=ms("animationend"),ef=ms("animationiteration"),tf=ms("animationstart"),nf=ms("transitionend"),rf=new Map,of="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 Zn(e,t){rf.set(e,t),u(t,[e])}for(var Ta=0;Ta<of.length;Ta++){var ja=of[Ta],Fy=ja.toLowerCase(),zy=ja[0].toUpperCase()+ja.slice(1);Zn(Fy,"on"+zy)}Zn(Zd,"onAnimationEnd"),Zn(ef,"onAnimationIteration"),Zn(tf,"onAnimationStart"),Zn("dblclick","onDoubleClick"),Zn("focusin","onFocus"),Zn("focusout","onBlur"),Zn(nf,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ui="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(" "),Uy=new Set("cancel close invalid load scroll toggle".split(" ").concat(ui));function sf(e,t,o){var l=e.type||"unknown-event";e.currentTarget=o,Fv(l,t,void 0,e),e.currentTarget=null}function lf(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var l=e[o],c=l.event;l=l.listeners;e:{var p=void 0;if(t)for(var x=l.length-1;0<=x;x--){var R=l[x],k=R.instance,D=R.currentTarget;if(R=R.listener,k!==p&&c.isPropagationStopped())break e;sf(c,R,D),p=k}else for(x=0;x<l.length;x++){if(R=l[x],k=R.instance,D=R.currentTarget,R=R.listener,k!==p&&c.isPropagationStopped())break e;sf(c,R,D),p=k}}}if(Ji)throw e=la,Ji=!1,la=null,e}function De(e,t){var o=t[Fa];o===void 0&&(o=t[Fa]=new Set);var l=e+"__bubble";o.has(l)||(af(t,e,2,!1),o.add(l))}function Oa(e,t,o){var l=0;t&&(l|=4),af(o,e,l,t)}var hs="_reactListening"+Math.random().toString(36).slice(2);function ci(e){if(!e[hs]){e[hs]=!0,s.forEach(function(o){o!=="selectionchange"&&(Uy.has(o)||Oa(o,!1,e),Oa(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hs]||(t[hs]=!0,Oa("selectionchange",!1,t))}}function af(e,t,o,l){switch(jd(t)){case 1:var c=ey;break;case 4:c=ty;break;default:c=ma}o=c.bind(null,t,o,e),c=void 0,!Qt||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,o,{capture:!0,passive:c}):e.addEventListener(t,o,!0):c!==void 0?e.addEventListener(t,o,{passive:c}):e.addEventListener(t,o,!1)}function _a(e,t,o,l,c){var p=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var R=l.stateNode.containerInfo;if(R===c||R.nodeType===8&&R.parentNode===c)break;if(x===4)for(x=l.return;x!==null;){var k=x.tag;if((k===3||k===4)&&(k=x.stateNode.containerInfo,k===c||k.nodeType===8&&k.parentNode===c))return;x=x.return}for(;R!==null;){if(x=Pr(R),x===null)return;if(k=x.tag,k===5||k===6){l=p=x;continue e}R=R.parentNode}}l=l.return}St(function(){var D=p,K=eo(o),Y=[];e:{var H=rf.get(e);if(H!==void 0){var se=va,ue=e;switch(e){case"keypress":if(us(o)===0)break e;case"keydown":case"keyup":se=gy;break;case"focusin":ue="focus",se=wa;break;case"focusout":ue="blur",se=wa;break;case"beforeblur":case"afterblur":se=wa;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=Ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=oy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=xy;break;case Zd:case ef:case tf:se=ly;break;case nf:se=Sy;break;case"scroll":se=ny;break;case"wheel":se=Cy;break;case"copy":case"cut":case"paste":se=uy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=Id}var ce=(t&4)!==0,Qe=!ce&&e==="scroll",A=ce?H!==null?H+"Capture":null:H;ce=[];for(var _=D,I;_!==null;){I=_;var X=I.stateNode;if(I.tag===5&&X!==null&&(I=X,A!==null&&(X=Et(_,A),X!=null&&ce.push(di(_,X,I)))),Qe)break;_=_.return}0<ce.length&&(H=new se(H,ue,null,o,K),Y.push({event:H,listeners:ce}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",se=e==="mouseout"||e==="pointerout",H&&o!==Go&&(ue=o.relatedTarget||o.fromElement)&&(Pr(ue)||ue[jn]))break e;if((se||H)&&(H=K.window===K?K:(H=K.ownerDocument)?H.defaultView||H.parentWindow:window,se?(ue=o.relatedTarget||o.toElement,se=D,ue=ue?Pr(ue):null,ue!==null&&(Qe=kr(ue),ue!==Qe||ue.tag!==5&&ue.tag!==6)&&(ue=null)):(se=null,ue=D),se!==ue)){if(ce=Ad,X="onMouseLeave",A="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Id,X="onPointerLeave",A="onPointerEnter",_="pointer"),Qe=se==null?H:uo(se),I=ue==null?H:uo(ue),H=new ce(X,_+"leave",se,o,K),H.target=Qe,H.relatedTarget=I,X=null,Pr(K)===D&&(ce=new ce(A,_+"enter",ue,o,K),ce.target=I,ce.relatedTarget=Qe,X=ce),Qe=X,se&&ue)t:{for(ce=se,A=ue,_=0,I=ce;I;I=lo(I))_++;for(I=0,X=A;X;X=lo(X))I++;for(;0<_-I;)ce=lo(ce),_--;for(;0<I-_;)A=lo(A),I--;for(;_--;){if(ce===A||A!==null&&ce===A.alternate)break t;ce=lo(ce),A=lo(A)}ce=null}else ce=null;se!==null&&uf(Y,H,se,ce,!1),ue!==null&&Qe!==null&&uf(Y,Qe,ue,ce,!0)}}e:{if(H=D?uo(D):window,se=H.nodeName&&H.nodeName.toLowerCase(),se==="select"||se==="input"&&H.type==="file")var fe=jy;else if(Bd(H))if(Wd)fe=Ly;else{fe=_y;var ge=Oy}else(se=H.nodeName)&&se.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(fe=Ay);if(fe&&(fe=fe(e,D))){$d(Y,fe,o,K);break e}ge&&ge(e,H,D),e==="focusout"&&(ge=H._wrapperState)&&ge.controlled&&H.type==="number"&&fn(H,"number",H.value)}switch(ge=D?uo(D):window,e){case"focusin":(Bd(ge)||ge.contentEditable==="true")&&(io=ge,Ra=D,ai=null);break;case"focusout":ai=Ra=io=null;break;case"mousedown":ka=!0;break;case"contextmenu":case"mouseup":case"dragend":ka=!1,Xd(Y,o,K);break;case"selectionchange":if(My)break;case"keydown":case"keyup":Xd(Y,o,K)}var ve;if(Ea)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else oo?zd(e,o)&&(Se="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Se="onCompositionStart");Se&&(Dd&&o.locale!=="ko"&&(oo||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&oo&&(ve=Od()):(Jn=K,ga="value"in Jn?Jn.value:Jn.textContent,oo=!0)),ge=gs(D,Se),0<ge.length&&(Se=new Ld(Se,e,null,o,K),Y.push({event:Se,listeners:ge}),ve?Se.data=ve:(ve=Ud(o),ve!==null&&(Se.data=ve)))),(ve=Ny?Ry(e,o):ky(e,o))&&(D=gs(D,"onBeforeInput"),0<D.length&&(K=new Ld("onBeforeInput","beforeinput",null,o,K),Y.push({event:K,listeners:D}),K.data=ve))}lf(Y,t)})}function di(e,t,o){return{instance:e,listener:t,currentTarget:o}}function gs(e,t){for(var o=t+"Capture",l=[];e!==null;){var c=e,p=c.stateNode;c.tag===5&&p!==null&&(c=p,p=Et(e,o),p!=null&&l.unshift(di(e,p,c)),p=Et(e,t),p!=null&&l.push(di(e,p,c))),e=e.return}return l}function lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uf(e,t,o,l,c){for(var p=t._reactName,x=[];o!==null&&o!==l;){var R=o,k=R.alternate,D=R.stateNode;if(k!==null&&k===l)break;R.tag===5&&D!==null&&(R=D,c?(k=Et(o,p),k!=null&&x.unshift(di(o,k,R))):c||(k=Et(o,p),k!=null&&x.push(di(o,k,R)))),o=o.return}x.length!==0&&e.push({event:t,listeners:x})}var By=/\r\n?/g,$y=/\u0000|\uFFFD/g;function cf(e){return(typeof e=="string"?e:""+e).replace(By,`
|
|
38
|
-
`).replace($y,"")}function vs(e,t,o){if(t=cf(t),cf(e)!==t&&o)throw Error(i(425))}function ys(){}var Aa=null,La=null;function Ia(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 Da=typeof setTimeout=="function"?setTimeout:void 0,Wy=typeof clearTimeout=="function"?clearTimeout:void 0,df=typeof Promise=="function"?Promise:void 0,Vy=typeof queueMicrotask=="function"?queueMicrotask:typeof df<"u"?function(e){return df.resolve(null).then(e).catch(Hy)}:Da;function Hy(e){setTimeout(function(){throw e})}function Ma(e,t){var o=t,l=0;do{var c=o.nextSibling;if(e.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(l===0){e.removeChild(c),ti(t);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=c}while(o);ti(t)}function er(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 ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(t===0)return e;t--}else o==="/$"&&t++}e=e.previousSibling}return null}var ao=Math.random().toString(36).slice(2),wn="__reactFiber$"+ao,fi="__reactProps$"+ao,jn="__reactContainer$"+ao,Fa="__reactEvents$"+ao,Ky="__reactListeners$"+ao,Gy="__reactHandles$"+ao;function Pr(e){var t=e[wn];if(t)return t;for(var o=e.parentNode;o;){if(t=o[jn]||o[wn]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=ff(e);e!==null;){if(o=e[wn])return o;e=ff(e)}return t}e=o,o=e.parentNode}return null}function pi(e){return e=e[wn]||e[jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function uo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function xs(e){return e[fi]||null}var za=[],co=-1;function tr(e){return{current:e}}function Me(e){0>co||(e.current=za[co],za[co]=null,co--)}function Le(e,t){co++,za[co]=e.current,e.current=t}var nr={},dt=tr(nr),Ct=tr(!1),Tr=nr;function fo(e,t){var o=e.type.contextTypes;if(!o)return nr;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var c={},p;for(p in o)c[p]=t[p];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function bt(e){return e=e.childContextTypes,e!=null}function ws(){Me(Ct),Me(dt)}function pf(e,t,o){if(dt.current!==nr)throw Error(i(168));Le(dt,t),Le(Ct,o)}function mf(e,t,o){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var c in l)if(!(c in t))throw Error(i(108,Q(e)||"Unknown",c));return G({},o,l)}function Ss(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nr,Tr=dt.current,Le(dt,e),Le(Ct,Ct.current),!0}function hf(e,t,o){var l=e.stateNode;if(!l)throw Error(i(169));o?(e=mf(e,t,Tr),l.__reactInternalMemoizedMergedChildContext=e,Me(Ct),Me(dt),Le(dt,e)):Me(Ct),Le(Ct,o)}var On=null,Es=!1,Ua=!1;function gf(e){On===null?On=[e]:On.push(e)}function Yy(e){Es=!0,gf(e)}function rr(){if(!Ua&&On!==null){Ua=!0;var e=0,t=_e;try{var o=On;for(_e=1;e<o.length;e++){var l=o[e];do l=l(!0);while(l!==null)}On=null,Es=!1}catch(c){throw On!==null&&(On=On.slice(e+1)),vd(aa,rr),c}finally{_e=t,Ua=!1}}return null}var po=[],mo=0,Cs=null,bs=0,zt=[],Ut=0,jr=null,_n=1,An="";function Or(e,t){po[mo++]=bs,po[mo++]=Cs,Cs=e,bs=t}function vf(e,t,o){zt[Ut++]=_n,zt[Ut++]=An,zt[Ut++]=jr,jr=e;var l=_n;e=An;var c=32-qt(l)-1;l&=~(1<<c),o+=1;var p=32-qt(t)+c;if(30<p){var x=c-c%5;p=(l&(1<<x)-1).toString(32),l>>=x,c-=x,_n=1<<32-qt(t)+c|o<<c|l,An=p+e}else _n=1<<p|o<<c|l,An=e}function Ba(e){e.return!==null&&(Or(e,1),vf(e,1,0))}function $a(e){for(;e===Cs;)Cs=po[--mo],po[mo]=null,bs=po[--mo],po[mo]=null;for(;e===jr;)jr=zt[--Ut],zt[Ut]=null,An=zt[--Ut],zt[Ut]=null,_n=zt[--Ut],zt[Ut]=null}var At=null,Lt=null,Ue=!1,Jt=null;function yf(e,t){var o=Vt(5,null,null,0);o.elementType="DELETED",o.stateNode=t,o.return=e,t=e.deletions,t===null?(e.deletions=[o],e.flags|=16):t.push(o)}function xf(e,t){switch(e.tag){case 5:var o=e.type;return t=t.nodeType!==1||o.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,At=e,Lt=er(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,At=e,Lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(o=jr!==null?{id:_n,overflow:An}:null,e.memoizedState={dehydrated:t,treeContext:o,retryLane:1073741824},o=Vt(18,null,null,0),o.stateNode=t,o.return=e,e.child=o,At=e,Lt=null,!0):!1;default:return!1}}function Wa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Va(e){if(Ue){var t=Lt;if(t){var o=t;if(!xf(e,t)){if(Wa(e))throw Error(i(418));t=er(o.nextSibling);var l=At;t&&xf(e,t)?yf(l,o):(e.flags=e.flags&-4097|2,Ue=!1,At=e)}}else{if(Wa(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ue=!1,At=e}}}function wf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;At=e}function Ns(e){if(e!==At)return!1;if(!Ue)return wf(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ia(e.type,e.memoizedProps)),t&&(t=Lt)){if(Wa(e))throw Sf(),Error(i(418));for(;t;)yf(e,t),t=er(t.nextSibling)}if(wf(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 o=e.data;if(o==="/$"){if(t===0){Lt=er(e.nextSibling);break e}t--}else o!=="$"&&o!=="$!"&&o!=="$?"||t++}e=e.nextSibling}Lt=null}}else Lt=At?er(e.stateNode.nextSibling):null;return!0}function Sf(){for(var e=Lt;e;)e=er(e.nextSibling)}function ho(){Lt=At=null,Ue=!1}function Ha(e){Jt===null?Jt=[e]:Jt.push(e)}var Qy=L.ReactCurrentBatchConfig;function mi(e,t,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var l=o.stateNode}if(!l)throw Error(i(147,e));var c=l,p=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===p?t.ref:(t=function(x){var R=c.refs;x===null?delete R[p]:R[p]=x},t._stringRef=p,t)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function Rs(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ef(e){var t=e._init;return t(e._payload)}function Cf(e){function t(A,_){if(e){var I=A.deletions;I===null?(A.deletions=[_],A.flags|=16):I.push(_)}}function o(A,_){if(!e)return null;for(;_!==null;)t(A,_),_=_.sibling;return null}function l(A,_){for(A=new Map;_!==null;)_.key!==null?A.set(_.key,_):A.set(_.index,_),_=_.sibling;return A}function c(A,_){return A=dr(A,_),A.index=0,A.sibling=null,A}function p(A,_,I){return A.index=I,e?(I=A.alternate,I!==null?(I=I.index,I<_?(A.flags|=2,_):I):(A.flags|=2,_)):(A.flags|=1048576,_)}function x(A){return e&&A.alternate===null&&(A.flags|=2),A}function R(A,_,I,X){return _===null||_.tag!==6?(_=Du(I,A.mode,X),_.return=A,_):(_=c(_,I),_.return=A,_)}function k(A,_,I,X){var fe=I.type;return fe===W?K(A,_,I.props.children,X,I.key):_!==null&&(_.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ee&&Ef(fe)===_.type)?(X=c(_,I.props),X.ref=mi(A,_,I),X.return=A,X):(X=qs(I.type,I.key,I.props,null,A.mode,X),X.ref=mi(A,_,I),X.return=A,X)}function D(A,_,I,X){return _===null||_.tag!==4||_.stateNode.containerInfo!==I.containerInfo||_.stateNode.implementation!==I.implementation?(_=Mu(I,A.mode,X),_.return=A,_):(_=c(_,I.children||[]),_.return=A,_)}function K(A,_,I,X,fe){return _===null||_.tag!==7?(_=zr(I,A.mode,X,fe),_.return=A,_):(_=c(_,I),_.return=A,_)}function Y(A,_,I){if(typeof _=="string"&&_!==""||typeof _=="number")return _=Du(""+_,A.mode,I),_.return=A,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case $:return I=qs(_.type,_.key,_.props,null,A.mode,I),I.ref=mi(A,null,_),I.return=A,I;case V:return _=Mu(_,A.mode,I),_.return=A,_;case ee:var X=_._init;return Y(A,X(_._payload),I)}if(Kn(_)||B(_))return _=zr(_,A.mode,I,null),_.return=A,_;Rs(A,_)}return null}function H(A,_,I,X){var fe=_!==null?_.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return fe!==null?null:R(A,_,""+I,X);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case $:return I.key===fe?k(A,_,I,X):null;case V:return I.key===fe?D(A,_,I,X):null;case ee:return fe=I._init,H(A,_,fe(I._payload),X)}if(Kn(I)||B(I))return fe!==null?null:K(A,_,I,X,null);Rs(A,I)}return null}function se(A,_,I,X,fe){if(typeof X=="string"&&X!==""||typeof X=="number")return A=A.get(I)||null,R(_,A,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case $:return A=A.get(X.key===null?I:X.key)||null,k(_,A,X,fe);case V:return A=A.get(X.key===null?I:X.key)||null,D(_,A,X,fe);case ee:var ge=X._init;return se(A,_,I,ge(X._payload),fe)}if(Kn(X)||B(X))return A=A.get(I)||null,K(_,A,X,fe,null);Rs(_,X)}return null}function ue(A,_,I,X){for(var fe=null,ge=null,ve=_,Se=_=0,nt=null;ve!==null&&Se<I.length;Se++){ve.index>Se?(nt=ve,ve=null):nt=ve.sibling;var je=H(A,ve,I[Se],X);if(je===null){ve===null&&(ve=nt);break}e&&ve&&je.alternate===null&&t(A,ve),_=p(je,_,Se),ge===null?fe=je:ge.sibling=je,ge=je,ve=nt}if(Se===I.length)return o(A,ve),Ue&&Or(A,Se),fe;if(ve===null){for(;Se<I.length;Se++)ve=Y(A,I[Se],X),ve!==null&&(_=p(ve,_,Se),ge===null?fe=ve:ge.sibling=ve,ge=ve);return Ue&&Or(A,Se),fe}for(ve=l(A,ve);Se<I.length;Se++)nt=se(ve,A,Se,I[Se],X),nt!==null&&(e&&nt.alternate!==null&&ve.delete(nt.key===null?Se:nt.key),_=p(nt,_,Se),ge===null?fe=nt:ge.sibling=nt,ge=nt);return e&&ve.forEach(function(fr){return t(A,fr)}),Ue&&Or(A,Se),fe}function ce(A,_,I,X){var fe=B(I);if(typeof fe!="function")throw Error(i(150));if(I=fe.call(I),I==null)throw Error(i(151));for(var ge=fe=null,ve=_,Se=_=0,nt=null,je=I.next();ve!==null&&!je.done;Se++,je=I.next()){ve.index>Se?(nt=ve,ve=null):nt=ve.sibling;var fr=H(A,ve,je.value,X);if(fr===null){ve===null&&(ve=nt);break}e&&ve&&fr.alternate===null&&t(A,ve),_=p(fr,_,Se),ge===null?fe=fr:ge.sibling=fr,ge=fr,ve=nt}if(je.done)return o(A,ve),Ue&&Or(A,Se),fe;if(ve===null){for(;!je.done;Se++,je=I.next())je=Y(A,je.value,X),je!==null&&(_=p(je,_,Se),ge===null?fe=je:ge.sibling=je,ge=je);return Ue&&Or(A,Se),fe}for(ve=l(A,ve);!je.done;Se++,je=I.next())je=se(ve,A,Se,je.value,X),je!==null&&(e&&je.alternate!==null&&ve.delete(je.key===null?Se:je.key),_=p(je,_,Se),ge===null?fe=je:ge.sibling=je,ge=je);return e&&ve.forEach(function(Px){return t(A,Px)}),Ue&&Or(A,Se),fe}function Qe(A,_,I,X){if(typeof I=="object"&&I!==null&&I.type===W&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case $:e:{for(var fe=I.key,ge=_;ge!==null;){if(ge.key===fe){if(fe=I.type,fe===W){if(ge.tag===7){o(A,ge.sibling),_=c(ge,I.props.children),_.return=A,A=_;break e}}else if(ge.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ee&&Ef(fe)===ge.type){o(A,ge.sibling),_=c(ge,I.props),_.ref=mi(A,ge,I),_.return=A,A=_;break e}o(A,ge);break}else t(A,ge);ge=ge.sibling}I.type===W?(_=zr(I.props.children,A.mode,X,I.key),_.return=A,A=_):(X=qs(I.type,I.key,I.props,null,A.mode,X),X.ref=mi(A,_,I),X.return=A,A=X)}return x(A);case V:e:{for(ge=I.key;_!==null;){if(_.key===ge)if(_.tag===4&&_.stateNode.containerInfo===I.containerInfo&&_.stateNode.implementation===I.implementation){o(A,_.sibling),_=c(_,I.children||[]),_.return=A,A=_;break e}else{o(A,_);break}else t(A,_);_=_.sibling}_=Mu(I,A.mode,X),_.return=A,A=_}return x(A);case ee:return ge=I._init,Qe(A,_,ge(I._payload),X)}if(Kn(I))return ue(A,_,I,X);if(B(I))return ce(A,_,I,X);Rs(A,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,_!==null&&_.tag===6?(o(A,_.sibling),_=c(_,I),_.return=A,A=_):(o(A,_),_=Du(I,A.mode,X),_.return=A,A=_),x(A)):o(A,_)}return Qe}var go=Cf(!0),bf=Cf(!1),ks=tr(null),Ps=null,vo=null,Ka=null;function Ga(){Ka=vo=Ps=null}function Ya(e){var t=ks.current;Me(ks),e._currentValue=t}function Qa(e,t,o){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===o)break;e=e.return}}function yo(e,t){Ps=e,Ka=vo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Nt=!0),e.firstContext=null)}function Bt(e){var t=e._currentValue;if(Ka!==e)if(e={context:e,memoizedValue:t,next:null},vo===null){if(Ps===null)throw Error(i(308));vo=e,Ps.dependencies={lanes:0,firstContext:e}}else vo=vo.next=e;return t}var _r=null;function qa(e){_r===null?_r=[e]:_r.push(e)}function Nf(e,t,o,l){var c=t.interleaved;return c===null?(o.next=o,qa(t)):(o.next=c.next,c.next=o),t.interleaved=o,Ln(e,l)}function Ln(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var or=!1;function Xa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rf(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 In(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,o){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Pe&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,Ln(e,o)}return c=l.interleaved,c===null?(t.next=t,qa(l)):(t.next=c.next,c.next=t),l.interleaved=t,Ln(e,o)}function Ts(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,o|=l,t.lanes=o,da(e,o)}}function kf(e,t){var o=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var c=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var x={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};p===null?c=p=x:p=p.next=x,o=o.next}while(o!==null);p===null?c=p=t:p=p.next=t}else c=p=t;o={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:p,shared:l.shared,effects:l.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function js(e,t,o,l){var c=e.updateQueue;or=!1;var p=c.firstBaseUpdate,x=c.lastBaseUpdate,R=c.shared.pending;if(R!==null){c.shared.pending=null;var k=R,D=k.next;k.next=null,x===null?p=D:x.next=D,x=k;var K=e.alternate;K!==null&&(K=K.updateQueue,R=K.lastBaseUpdate,R!==x&&(R===null?K.firstBaseUpdate=D:R.next=D,K.lastBaseUpdate=k))}if(p!==null){var Y=c.baseState;x=0,K=D=k=null,R=p;do{var H=R.lane,se=R.eventTime;if((l&H)===H){K!==null&&(K=K.next={eventTime:se,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var ue=e,ce=R;switch(H=t,se=o,ce.tag){case 1:if(ue=ce.payload,typeof ue=="function"){Y=ue.call(se,Y,H);break e}Y=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=ce.payload,H=typeof ue=="function"?ue.call(se,Y,H):ue,H==null)break e;Y=G({},Y,H);break e;case 2:or=!0}}R.callback!==null&&R.lane!==0&&(e.flags|=64,H=c.effects,H===null?c.effects=[R]:H.push(R))}else se={eventTime:se,lane:H,tag:R.tag,payload:R.payload,callback:R.callback,next:null},K===null?(D=K=se,k=Y):K=K.next=se,x|=H;if(R=R.next,R===null){if(R=c.shared.pending,R===null)break;H=R,R=H.next,H.next=null,c.lastBaseUpdate=H,c.shared.pending=null}}while(!0);if(K===null&&(k=Y),c.baseState=k,c.firstBaseUpdate=D,c.lastBaseUpdate=K,t=c.shared.interleaved,t!==null){c=t;do x|=c.lane,c=c.next;while(c!==t)}else p===null&&(c.shared.lanes=0);Ir|=x,e.lanes=x,e.memoizedState=Y}}function Pf(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var l=e[t],c=l.callback;if(c!==null){if(l.callback=null,l=o,typeof c!="function")throw Error(i(191,c));c.call(l)}}}var hi={},Sn=tr(hi),gi=tr(hi),vi=tr(hi);function Ar(e){if(e===hi)throw Error(i(174));return e}function Ja(e,t){switch(Le(vi,t),Le(gi,e),Le(Sn,hi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mn(t,e)}Me(Sn),Le(Sn,t)}function xo(){Me(Sn),Me(gi),Me(vi)}function Tf(e){Ar(vi.current);var t=Ar(Sn.current),o=mn(t,e.type);t!==o&&(Le(gi,e),Le(Sn,o))}function Za(e){gi.current===e&&(Me(Sn),Me(gi))}var $e=tr(0);function Os(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var eu=[];function tu(){for(var e=0;e<eu.length;e++)eu[e]._workInProgressVersionPrimary=null;eu.length=0}var _s=L.ReactCurrentDispatcher,nu=L.ReactCurrentBatchConfig,Lr=0,We=null,Je=null,et=null,As=!1,yi=!1,xi=0,qy=0;function ft(){throw Error(i(321))}function ru(e,t){if(t===null)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!Xt(e[o],t[o]))return!1;return!0}function ou(e,t,o,l,c,p){if(Lr=p,We=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_s.current=e===null||e.memoizedState===null?ex:tx,e=o(l,c),yi){p=0;do{if(yi=!1,xi=0,25<=p)throw Error(i(301));p+=1,et=Je=null,t.updateQueue=null,_s.current=nx,e=o(l,c)}while(yi)}if(_s.current=Ds,t=Je!==null&&Je.next!==null,Lr=0,et=Je=We=null,As=!1,t)throw Error(i(300));return e}function iu(){var e=xi!==0;return xi=0,e}function En(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?We.memoizedState=et=e:et=et.next=e,et}function $t(){if(Je===null){var e=We.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=et===null?We.memoizedState:et.next;if(t!==null)et=t,Je=e;else{if(e===null)throw Error(i(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},et===null?We.memoizedState=et=e:et=et.next=e}return et}function wi(e,t){return typeof t=="function"?t(e):t}function su(e){var t=$t(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var l=Je,c=l.baseQueue,p=o.pending;if(p!==null){if(c!==null){var x=c.next;c.next=p.next,p.next=x}l.baseQueue=c=p,o.pending=null}if(c!==null){p=c.next,l=l.baseState;var R=x=null,k=null,D=p;do{var K=D.lane;if((Lr&K)===K)k!==null&&(k=k.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),l=D.hasEagerState?D.eagerState:e(l,D.action);else{var Y={lane:K,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};k===null?(R=k=Y,x=l):k=k.next=Y,We.lanes|=K,Ir|=K}D=D.next}while(D!==null&&D!==p);k===null?x=l:k.next=R,Xt(l,t.memoizedState)||(Nt=!0),t.memoizedState=l,t.baseState=x,t.baseQueue=k,o.lastRenderedState=l}if(e=o.interleaved,e!==null){c=e;do p=c.lane,We.lanes|=p,Ir|=p,c=c.next;while(c!==e)}else c===null&&(o.lanes=0);return[t.memoizedState,o.dispatch]}function lu(e){var t=$t(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var l=o.dispatch,c=o.pending,p=t.memoizedState;if(c!==null){o.pending=null;var x=c=c.next;do p=e(p,x.action),x=x.next;while(x!==c);Xt(p,t.memoizedState)||(Nt=!0),t.memoizedState=p,t.baseQueue===null&&(t.baseState=p),o.lastRenderedState=p}return[p,l]}function jf(){}function Of(e,t){var o=We,l=$t(),c=t(),p=!Xt(l.memoizedState,c);if(p&&(l.memoizedState=c,Nt=!0),l=l.queue,au(Lf.bind(null,o,l,e),[e]),l.getSnapshot!==t||p||et!==null&&et.memoizedState.tag&1){if(o.flags|=2048,Si(9,Af.bind(null,o,l,c,t),void 0,null),tt===null)throw Error(i(349));(Lr&30)!==0||_f(o,t,c)}return c}function _f(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=We.updateQueue,t===null?(t={lastEffect:null,stores:null},We.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function Af(e,t,o,l){t.value=o,t.getSnapshot=l,If(t)&&Df(e)}function Lf(e,t,o){return o(function(){If(t)&&Df(e)})}function If(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Xt(e,o)}catch{return!0}}function Df(e){var t=Ln(e,1);t!==null&&nn(t,e,1,-1)}function Mf(e){var t=En();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:e},t.queue=e,e=e.dispatch=Zy.bind(null,We,e),[t.memoizedState,e]}function Si(e,t,o,l){return e={tag:e,create:t,destroy:o,deps:l,next:null},t=We.updateQueue,t===null?(t={lastEffect:null,stores:null},We.updateQueue=t,t.lastEffect=e.next=e):(o=t.lastEffect,o===null?t.lastEffect=e.next=e:(l=o.next,o.next=e,e.next=l,t.lastEffect=e)),e}function Ff(){return $t().memoizedState}function Ls(e,t,o,l){var c=En();We.flags|=e,c.memoizedState=Si(1|t,o,void 0,l===void 0?null:l)}function Is(e,t,o,l){var c=$t();l=l===void 0?null:l;var p=void 0;if(Je!==null){var x=Je.memoizedState;if(p=x.destroy,l!==null&&ru(l,x.deps)){c.memoizedState=Si(t,o,p,l);return}}We.flags|=e,c.memoizedState=Si(1|t,o,p,l)}function zf(e,t){return Ls(8390656,8,e,t)}function au(e,t){return Is(2048,8,e,t)}function Uf(e,t){return Is(4,2,e,t)}function Bf(e,t){return Is(4,4,e,t)}function $f(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 Wf(e,t,o){return o=o!=null?o.concat([e]):null,Is(4,4,$f.bind(null,t,e),o)}function uu(){}function Vf(e,t){var o=$t();t=t===void 0?null:t;var l=o.memoizedState;return l!==null&&t!==null&&ru(t,l[1])?l[0]:(o.memoizedState=[e,t],e)}function Hf(e,t){var o=$t();t=t===void 0?null:t;var l=o.memoizedState;return l!==null&&t!==null&&ru(t,l[1])?l[0]:(e=e(),o.memoizedState=[e,t],e)}function Kf(e,t,o){return(Lr&21)===0?(e.baseState&&(e.baseState=!1,Nt=!0),e.memoizedState=o):(Xt(o,t)||(o=Sd(),We.lanes|=o,Ir|=o,e.baseState=!0),t)}function Xy(e,t){var o=_e;_e=o!==0&&4>o?o:4,e(!0);var l=nu.transition;nu.transition={};try{e(!1),t()}finally{_e=o,nu.transition=l}}function Gf(){return $t().memoizedState}function Jy(e,t,o){var l=ur(e);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},Yf(e))Qf(t,o);else if(o=Nf(e,t,o,l),o!==null){var c=wt();nn(o,e,l,c),qf(o,t,l)}}function Zy(e,t,o){var l=ur(e),c={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(Yf(e))Qf(t,c);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=t.lastRenderedReducer,p!==null))try{var x=t.lastRenderedState,R=p(x,o);if(c.hasEagerState=!0,c.eagerState=R,Xt(R,x)){var k=t.interleaved;k===null?(c.next=c,qa(t)):(c.next=k.next,k.next=c),t.interleaved=c;return}}catch{}finally{}o=Nf(e,t,c,l),o!==null&&(c=wt(),nn(o,e,l,c),qf(o,t,l))}}function Yf(e){var t=e.alternate;return e===We||t!==null&&t===We}function Qf(e,t){yi=As=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function qf(e,t,o){if((o&4194240)!==0){var l=t.lanes;l&=e.pendingLanes,o|=l,t.lanes=o,da(e,o)}}var Ds={readContext:Bt,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},ex={readContext:Bt,useCallback:function(e,t){return En().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:zf,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,Ls(4194308,4,$f.bind(null,t,e),o)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ls(4,2,e,t)},useMemo:function(e,t){var o=En();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var l=En();return t=o!==void 0?o(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=Jy.bind(null,We,e),[l.memoizedState,e]},useRef:function(e){var t=En();return e={current:e},t.memoizedState=e},useState:Mf,useDebugValue:uu,useDeferredValue:function(e){return En().memoizedState=e},useTransition:function(){var e=Mf(!1),t=e[0];return e=Xy.bind(null,e[1]),En().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var l=We,c=En();if(Ue){if(o===void 0)throw Error(i(407));o=o()}else{if(o=t(),tt===null)throw Error(i(349));(Lr&30)!==0||_f(l,t,o)}c.memoizedState=o;var p={value:o,getSnapshot:t};return c.queue=p,zf(Lf.bind(null,l,p,e),[e]),l.flags|=2048,Si(9,Af.bind(null,l,p,o,t),void 0,null),o},useId:function(){var e=En(),t=tt.identifierPrefix;if(Ue){var o=An,l=_n;o=(l&~(1<<32-qt(l)-1)).toString(32)+o,t=":"+t+"R"+o,o=xi++,0<o&&(t+="H"+o.toString(32)),t+=":"}else o=qy++,t=":"+t+"r"+o.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tx={readContext:Bt,useCallback:Vf,useContext:Bt,useEffect:au,useImperativeHandle:Wf,useInsertionEffect:Uf,useLayoutEffect:Bf,useMemo:Hf,useReducer:su,useRef:Ff,useState:function(){return su(wi)},useDebugValue:uu,useDeferredValue:function(e){var t=$t();return Kf(t,Je.memoizedState,e)},useTransition:function(){var e=su(wi)[0],t=$t().memoizedState;return[e,t]},useMutableSource:jf,useSyncExternalStore:Of,useId:Gf,unstable_isNewReconciler:!1},nx={readContext:Bt,useCallback:Vf,useContext:Bt,useEffect:au,useImperativeHandle:Wf,useInsertionEffect:Uf,useLayoutEffect:Bf,useMemo:Hf,useReducer:lu,useRef:Ff,useState:function(){return lu(wi)},useDebugValue:uu,useDeferredValue:function(e){var t=$t();return Je===null?t.memoizedState=e:Kf(t,Je.memoizedState,e)},useTransition:function(){var e=lu(wi)[0],t=$t().memoizedState;return[e,t]},useMutableSource:jf,useSyncExternalStore:Of,useId:Gf,unstable_isNewReconciler:!1};function Zt(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var o in e)t[o]===void 0&&(t[o]=e[o]);return t}return t}function cu(e,t,o,l){t=e.memoizedState,o=o(l,t),o=o==null?t:G({},t,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Ms={isMounted:function(e){return(e=e._reactInternals)?kr(e)===e:!1},enqueueSetState:function(e,t,o){e=e._reactInternals;var l=wt(),c=ur(e),p=In(l,c);p.payload=t,o!=null&&(p.callback=o),t=ir(e,p,c),t!==null&&(nn(t,e,c,l),Ts(t,e,c))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var l=wt(),c=ur(e),p=In(l,c);p.tag=1,p.payload=t,o!=null&&(p.callback=o),t=ir(e,p,c),t!==null&&(nn(t,e,c,l),Ts(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=wt(),l=ur(e),c=In(o,l);c.tag=2,t!=null&&(c.callback=t),t=ir(e,c,l),t!==null&&(nn(t,e,l,o),Ts(t,e,l))}};function Xf(e,t,o,l,c,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,p,x):t.prototype&&t.prototype.isPureReactComponent?!li(o,l)||!li(c,p):!0}function Jf(e,t,o){var l=!1,c=nr,p=t.contextType;return typeof p=="object"&&p!==null?p=Bt(p):(c=bt(t)?Tr:dt.current,l=t.contextTypes,p=(l=l!=null)?fo(e,c):nr),t=new t(o,p),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ms,e.stateNode=t,t._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=p),t}function Zf(e,t,o,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,l),t.state!==e&&Ms.enqueueReplaceState(t,t.state,null)}function du(e,t,o,l){var c=e.stateNode;c.props=o,c.state=e.memoizedState,c.refs={},Xa(e);var p=t.contextType;typeof p=="object"&&p!==null?c.context=Bt(p):(p=bt(t)?Tr:dt.current,c.context=fo(e,p)),c.state=e.memoizedState,p=t.getDerivedStateFromProps,typeof p=="function"&&(cu(e,t,p,o),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&Ms.enqueueReplaceState(c,c.state,null),js(e,o,c,l),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function wo(e,t){try{var o="",l=t;do o+=me(l),l=l.return;while(l);var c=o}catch(p){c=`
|
|
39
|
-
Error generating stack: `+p.message+`
|
|
40
|
-
`+p.stack}return{value:e,source:t,stack:c,digest:null}}function fu(e,t,o){return{value:e,source:null,stack:o??null,digest:t??null}}function pu(e,t){try{console.error(t.value)}catch(o){setTimeout(function(){throw o})}}var rx=typeof WeakMap=="function"?WeakMap:Map;function ep(e,t,o){o=In(-1,o),o.tag=3,o.payload={element:null};var l=t.value;return o.callback=function(){Vs||(Vs=!0,Pu=l),pu(e,t)},o}function tp(e,t,o){o=In(-1,o),o.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var c=t.value;o.payload=function(){return l(c)},o.callback=function(){pu(e,t)}}var p=e.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(o.callback=function(){pu(e,t),typeof l!="function"&&(lr===null?lr=new Set([this]):lr.add(this));var x=t.stack;this.componentDidCatch(t.value,{componentStack:x!==null?x:""})}),o}function np(e,t,o){var l=e.pingCache;if(l===null){l=e.pingCache=new rx;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(o)||(c.add(o),e=vx.bind(null,e,t,o),t.then(e,e))}function rp(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 op(e,t,o,l,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(t=In(-1,1),t.tag=2,ir(o,t,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var ox=L.ReactCurrentOwner,Nt=!1;function xt(e,t,o,l){t.child=e===null?bf(t,null,o,l):go(t,e.child,o,l)}function ip(e,t,o,l,c){o=o.render;var p=t.ref;return yo(t,c),l=ou(e,t,o,l,p,c),o=iu(),e!==null&&!Nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Dn(e,t,c)):(Ue&&o&&Ba(t),t.flags|=1,xt(e,t,l,c),t.child)}function sp(e,t,o,l,c){if(e===null){var p=o.type;return typeof p=="function"&&!Iu(p)&&p.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=p,lp(e,t,p,l,c)):(e=qs(o.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(p=e.child,(e.lanes&c)===0){var x=p.memoizedProps;if(o=o.compare,o=o!==null?o:li,o(x,l)&&e.ref===t.ref)return Dn(e,t,c)}return t.flags|=1,e=dr(p,l),e.ref=t.ref,e.return=t,t.child=e}function lp(e,t,o,l,c){if(e!==null){var p=e.memoizedProps;if(li(p,l)&&e.ref===t.ref)if(Nt=!1,t.pendingProps=l=p,(e.lanes&c)!==0)(e.flags&131072)!==0&&(Nt=!0);else return t.lanes=e.lanes,Dn(e,t,c)}return mu(e,t,o,l,c)}function ap(e,t,o){var l=t.pendingProps,c=l.children,p=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(Eo,It),It|=o;else{if((o&1073741824)===0)return e=p!==null?p.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Le(Eo,It),It|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=p!==null?p.baseLanes:o,Le(Eo,It),It|=l}else p!==null?(l=p.baseLanes|o,t.memoizedState=null):l=o,Le(Eo,It),It|=l;return xt(e,t,c,o),t.child}function up(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function mu(e,t,o,l,c){var p=bt(o)?Tr:dt.current;return p=fo(t,p),yo(t,c),o=ou(e,t,o,l,p,c),l=iu(),e!==null&&!Nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Dn(e,t,c)):(Ue&&l&&Ba(t),t.flags|=1,xt(e,t,o,c),t.child)}function cp(e,t,o,l,c){if(bt(o)){var p=!0;Ss(t)}else p=!1;if(yo(t,c),t.stateNode===null)zs(e,t),Jf(t,o,l),du(t,o,l,c),l=!0;else if(e===null){var x=t.stateNode,R=t.memoizedProps;x.props=R;var k=x.context,D=o.contextType;typeof D=="object"&&D!==null?D=Bt(D):(D=bt(o)?Tr:dt.current,D=fo(t,D));var K=o.getDerivedStateFromProps,Y=typeof K=="function"||typeof x.getSnapshotBeforeUpdate=="function";Y||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R!==l||k!==D)&&Zf(t,x,l,D),or=!1;var H=t.memoizedState;x.state=H,js(t,l,x,c),k=t.memoizedState,R!==l||H!==k||Ct.current||or?(typeof K=="function"&&(cu(t,o,K,l),k=t.memoizedState),(R=or||Xf(t,o,R,l,H,k,D))?(Y||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(t.flags|=4194308)):(typeof x.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=k),x.props=l,x.state=k,x.context=D,l=R):(typeof x.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{x=t.stateNode,Rf(e,t),R=t.memoizedProps,D=t.type===t.elementType?R:Zt(t.type,R),x.props=D,Y=t.pendingProps,H=x.context,k=o.contextType,typeof k=="object"&&k!==null?k=Bt(k):(k=bt(o)?Tr:dt.current,k=fo(t,k));var se=o.getDerivedStateFromProps;(K=typeof se=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R!==Y||H!==k)&&Zf(t,x,l,k),or=!1,H=t.memoizedState,x.state=H,js(t,l,x,c);var ue=t.memoizedState;R!==Y||H!==ue||Ct.current||or?(typeof se=="function"&&(cu(t,o,se,l),ue=t.memoizedState),(D=or||Xf(t,o,D,l,H,ue,k)||!1)?(K||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(l,ue,k),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(l,ue,k)),typeof x.componentDidUpdate=="function"&&(t.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof x.componentDidUpdate!="function"||R===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=ue),x.props=l,x.state=ue,x.context=k,l=D):(typeof x.componentDidUpdate!="function"||R===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return hu(e,t,o,l,p,c)}function hu(e,t,o,l,c,p){up(e,t);var x=(t.flags&128)!==0;if(!l&&!x)return c&&hf(t,o,!1),Dn(e,t,p);l=t.stateNode,ox.current=t;var R=x&&typeof o.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&x?(t.child=go(t,e.child,null,p),t.child=go(t,null,R,p)):xt(e,t,R,p),t.memoizedState=l.state,c&&hf(t,o,!0),t.child}function dp(e){var t=e.stateNode;t.pendingContext?pf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pf(e,t.context,!1),Ja(e,t.containerInfo)}function fp(e,t,o,l,c){return ho(),Ha(c),t.flags|=256,xt(e,t,o,l),t.child}var gu={dehydrated:null,treeContext:null,retryLane:0};function vu(e){return{baseLanes:e,cachePool:null,transitions:null}}function pp(e,t,o){var l=t.pendingProps,c=$e.current,p=!1,x=(t.flags&128)!==0,R;if((R=x)||(R=e!==null&&e.memoizedState===null?!1:(c&2)!==0),R?(p=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Le($e,c&1),e===null)return Va(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(x=l.children,e=l.fallback,p?(l=t.mode,p=t.child,x={mode:"hidden",children:x},(l&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=x):p=Xs(x,l,0,null),e=zr(e,l,o,null),p.return=t,e.return=t,p.sibling=e,t.child=p,t.child.memoizedState=vu(o),t.memoizedState=gu,e):yu(t,x));if(c=e.memoizedState,c!==null&&(R=c.dehydrated,R!==null))return ix(e,t,x,l,R,c,o);if(p){p=l.fallback,x=t.mode,c=e.child,R=c.sibling;var k={mode:"hidden",children:l.children};return(x&1)===0&&t.child!==c?(l=t.child,l.childLanes=0,l.pendingProps=k,t.deletions=null):(l=dr(c,k),l.subtreeFlags=c.subtreeFlags&14680064),R!==null?p=dr(R,p):(p=zr(p,x,o,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,l=p,p=t.child,x=e.child.memoizedState,x=x===null?vu(o):{baseLanes:x.baseLanes|o,cachePool:null,transitions:x.transitions},p.memoizedState=x,p.childLanes=e.childLanes&~o,t.memoizedState=gu,l}return p=e.child,e=p.sibling,l=dr(p,{mode:"visible",children:l.children}),(t.mode&1)===0&&(l.lanes=o),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l}function yu(e,t){return t=Xs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Fs(e,t,o,l){return l!==null&&Ha(l),go(t,e.child,null,o),e=yu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ix(e,t,o,l,c,p,x){if(o)return t.flags&256?(t.flags&=-257,l=fu(Error(i(422))),Fs(e,t,x,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(p=l.fallback,c=t.mode,l=Xs({mode:"visible",children:l.children},c,0,null),p=zr(p,c,x,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,(t.mode&1)!==0&&go(t,e.child,null,x),t.child.memoizedState=vu(x),t.memoizedState=gu,p);if((t.mode&1)===0)return Fs(e,t,x,null);if(c.data==="$!"){if(l=c.nextSibling&&c.nextSibling.dataset,l)var R=l.dgst;return l=R,p=Error(i(419)),l=fu(p,l,void 0),Fs(e,t,x,l)}if(R=(x&e.childLanes)!==0,Nt||R){if(l=tt,l!==null){switch(x&-x){case 4:c=2;break;case 16:c=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:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(l.suspendedLanes|x))!==0?0:c,c!==0&&c!==p.retryLane&&(p.retryLane=c,Ln(e,c),nn(l,e,c,-1))}return Lu(),l=fu(Error(i(421))),Fs(e,t,x,l)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=yx.bind(null,e),c._reactRetry=t,null):(e=p.treeContext,Lt=er(c.nextSibling),At=t,Ue=!0,Jt=null,e!==null&&(zt[Ut++]=_n,zt[Ut++]=An,zt[Ut++]=jr,_n=e.id,An=e.overflow,jr=t),t=yu(t,l.children),t.flags|=4096,t)}function mp(e,t,o){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Qa(e.return,t,o)}function xu(e,t,o,l,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=o,p.tailMode=c)}function hp(e,t,o){var l=t.pendingProps,c=l.revealOrder,p=l.tail;if(xt(e,t,l.children,o),l=$e.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mp(e,o,t);else if(e.tag===19)mp(e,o,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}l&=1}if(Le($e,l),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(o=t.child,c=null;o!==null;)e=o.alternate,e!==null&&Os(e)===null&&(c=o),o=o.sibling;o=c,o===null?(c=t.child,t.child=null):(c=o.sibling,o.sibling=null),xu(t,!1,c,o,p);break;case"backwards":for(o=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Os(e)===null){t.child=c;break}e=c.sibling,c.sibling=o,o=c,c=e}xu(t,!0,o,null,p);break;case"together":xu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zs(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Dn(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),Ir|=t.lanes,(o&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,o=dr(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=dr(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function sx(e,t,o){switch(t.tag){case 3:dp(t),ho();break;case 5:Tf(t);break;case 1:bt(t.type)&&Ss(t);break;case 4:Ja(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,c=t.memoizedProps.value;Le(ks,l._currentValue),l._currentValue=c;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(Le($e,$e.current&1),t.flags|=128,null):(o&t.child.childLanes)!==0?pp(e,t,o):(Le($e,$e.current&1),e=Dn(e,t,o),e!==null?e.sibling:null);Le($e,$e.current&1);break;case 19:if(l=(o&t.childLanes)!==0,(e.flags&128)!==0){if(l)return hp(e,t,o);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Le($e,$e.current),l)break;return null;case 22:case 23:return t.lanes=0,ap(e,t,o)}return Dn(e,t,o)}var gp,wu,vp,yp;gp=function(e,t){for(var o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},wu=function(){},vp=function(e,t,o,l){var c=e.memoizedProps;if(c!==l){e=t.stateNode,Ar(Sn.current);var p=null;switch(o){case"input":c=ct(e,c),l=ct(e,l),p=[];break;case"select":c=G({},c,{value:void 0}),l=G({},l,{value:void 0}),p=[];break;case"textarea":c=Xr(e,c),l=Xr(e,l),p=[];break;default:typeof c.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=ys)}gn(o,l);var x;o=null;for(D in c)if(!l.hasOwnProperty(D)&&c.hasOwnProperty(D)&&c[D]!=null)if(D==="style"){var R=c[D];for(x in R)R.hasOwnProperty(x)&&(o||(o={}),o[x]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(a.hasOwnProperty(D)?p||(p=[]):(p=p||[]).push(D,null));for(D in l){var k=l[D];if(R=c!=null?c[D]:void 0,l.hasOwnProperty(D)&&k!==R&&(k!=null||R!=null))if(D==="style")if(R){for(x in R)!R.hasOwnProperty(x)||k&&k.hasOwnProperty(x)||(o||(o={}),o[x]="");for(x in k)k.hasOwnProperty(x)&&R[x]!==k[x]&&(o||(o={}),o[x]=k[x])}else o||(p||(p=[]),p.push(D,o)),o=k;else D==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,R=R?R.__html:void 0,k!=null&&R!==k&&(p=p||[]).push(D,k)):D==="children"?typeof k!="string"&&typeof k!="number"||(p=p||[]).push(D,""+k):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(a.hasOwnProperty(D)?(k!=null&&D==="onScroll"&&De("scroll",e),p||R===k||(p=[])):(p=p||[]).push(D,k))}o&&(p=p||[]).push("style",o);var D=p;(t.updateQueue=D)&&(t.flags|=4)}},yp=function(e,t,o,l){o!==l&&(t.flags|=4)};function Ei(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,l=0;if(t)for(var c=e.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags&14680064,l|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=o,t}function lx(e,t,o){var l=t.pendingProps;switch($a(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(t),null;case 1:return bt(t.type)&&ws(),pt(t),null;case 3:return l=t.stateNode,xo(),Me(Ct),Me(dt),tu(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ns(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jt!==null&&(Ou(Jt),Jt=null))),wu(e,t),pt(t),null;case 5:Za(t);var c=Ar(vi.current);if(o=t.type,e!==null&&t.stateNode!=null)vp(e,t,o,l,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(i(166));return pt(t),null}if(e=Ar(Sn.current),Ns(t)){l=t.stateNode,o=t.type;var p=t.memoizedProps;switch(l[wn]=t,l[fi]=p,e=(t.mode&1)!==0,o){case"dialog":De("cancel",l),De("close",l);break;case"iframe":case"object":case"embed":De("load",l);break;case"video":case"audio":for(c=0;c<ui.length;c++)De(ui[c],l);break;case"source":De("error",l);break;case"img":case"image":case"link":De("error",l),De("load",l);break;case"details":De("toggle",l);break;case"input":dn(l,p),De("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!p.multiple},De("invalid",l);break;case"textarea":pn(l,p),De("invalid",l)}gn(o,p),c=null;for(var x in p)if(p.hasOwnProperty(x)){var R=p[x];x==="children"?typeof R=="string"?l.textContent!==R&&(p.suppressHydrationWarning!==!0&&vs(l.textContent,R,e),c=["children",R]):typeof R=="number"&&l.textContent!==""+R&&(p.suppressHydrationWarning!==!0&&vs(l.textContent,R,e),c=["children",""+R]):a.hasOwnProperty(x)&&R!=null&&x==="onScroll"&&De("scroll",l)}switch(o){case"input":Ne(l),Hn(l,p,!0);break;case"textarea":Ne(l),Ki(l);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(l.onclick=ys)}l=c,t.updateQueue=l,l!==null&&(t.flags|=4)}else{x=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vt(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=x.createElement(o,{is:l.is}):(e=x.createElement(o),o==="select"&&(x=e,l.multiple?x.multiple=!0:l.size&&(x.size=l.size))):e=x.createElementNS(e,o),e[wn]=t,e[fi]=l,gp(e,t,!1,!1),t.stateNode=e;e:{switch(x=Ko(o,l),o){case"dialog":De("cancel",e),De("close",e),c=l;break;case"iframe":case"object":case"embed":De("load",e),c=l;break;case"video":case"audio":for(c=0;c<ui.length;c++)De(ui[c],e);c=l;break;case"source":De("error",e),c=l;break;case"img":case"image":case"link":De("error",e),De("load",e),c=l;break;case"details":De("toggle",e),c=l;break;case"input":dn(e,l),c=ct(e,l),De("invalid",e);break;case"option":c=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},c=G({},l,{value:void 0}),De("invalid",e);break;case"textarea":pn(e,l),c=Xr(e,l),De("invalid",e);break;default:c=l}gn(o,c),R=c;for(p in R)if(R.hasOwnProperty(p)){var k=R[p];p==="style"?Tn(e,k):p==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Gi(e,k)):p==="children"?typeof k=="string"?(o!=="textarea"||k!=="")&&hn(e,k):typeof k=="number"&&hn(e,""+k):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(a.hasOwnProperty(p)?k!=null&&p==="onScroll"&&De("scroll",e):k!=null&&T(e,p,k,x))}switch(o){case"input":Ne(e),Hn(e,l,!1);break;case"textarea":Ne(e),Ki(e);break;case"option":l.value!=null&&e.setAttribute("value",""+pe(l.value));break;case"select":e.multiple=!!l.multiple,p=l.value,p!=null?Ft(e,!!l.multiple,p,!1):l.defaultValue!=null&&Ft(e,!!l.multiple,l.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=ys)}switch(o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pt(t),null;case 6:if(e&&t.stateNode!=null)yp(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(o=Ar(vi.current),Ar(Sn.current),Ns(t)){if(l=t.stateNode,o=t.memoizedProps,l[wn]=t,(p=l.nodeValue!==o)&&(e=At,e!==null))switch(e.tag){case 3:vs(l.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vs(l.nodeValue,o,(e.mode&1)!==0)}p&&(t.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[wn]=t,t.stateNode=l}return pt(t),null;case 13:if(Me($e),l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&Lt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Sf(),ho(),t.flags|=98560,p=!1;else if(p=Ns(t),l!==null&&l.dehydrated!==null){if(e===null){if(!p)throw Error(i(318));if(p=t.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[wn]=t}else ho(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),p=!1}else Jt!==null&&(Ou(Jt),Jt=null),p=!0;if(!p)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=o,t):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||($e.current&1)!==0?Ze===0&&(Ze=3):Lu())),t.updateQueue!==null&&(t.flags|=4),pt(t),null);case 4:return xo(),wu(e,t),e===null&&ci(t.stateNode.containerInfo),pt(t),null;case 10:return Ya(t.type._context),pt(t),null;case 17:return bt(t.type)&&ws(),pt(t),null;case 19:if(Me($e),p=t.memoizedState,p===null)return pt(t),null;if(l=(t.flags&128)!==0,x=p.rendering,x===null)if(l)Ei(p,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(x=Os(e),x!==null){for(t.flags|=128,Ei(p,!1),l=x.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=o,o=t.child;o!==null;)p=o,e=l,p.flags&=14680066,x=p.alternate,x===null?(p.childLanes=0,p.lanes=e,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=x.childLanes,p.lanes=x.lanes,p.child=x.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=x.memoizedProps,p.memoizedState=x.memoizedState,p.updateQueue=x.updateQueue,p.type=x.type,e=x.dependencies,p.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Le($e,$e.current&1|2),t.child}e=e.sibling}p.tail!==null&&Ye()>Co&&(t.flags|=128,l=!0,Ei(p,!1),t.lanes=4194304)}else{if(!l)if(e=Os(x),e!==null){if(t.flags|=128,l=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),Ei(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!Ue)return pt(t),null}else 2*Ye()-p.renderingStartTime>Co&&o!==1073741824&&(t.flags|=128,l=!0,Ei(p,!1),t.lanes=4194304);p.isBackwards?(x.sibling=t.child,t.child=x):(o=p.last,o!==null?o.sibling=x:t.child=x,p.last=x)}return p.tail!==null?(t=p.tail,p.rendering=t,p.tail=t.sibling,p.renderingStartTime=Ye(),t.sibling=null,o=$e.current,Le($e,l?o&1|2:o&1),t):(pt(t),null);case 22:case 23:return Au(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&(t.mode&1)!==0?(It&1073741824)!==0&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function ax(e,t){switch($a(t),t.tag){case 1:return bt(t.type)&&ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xo(),Me(Ct),Me(dt),tu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Za(t),null;case 13:if(Me($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me($e),null;case 4:return xo(),null;case 10:return Ya(t.type._context),null;case 22:case 23:return Au(),null;case 24:return null;default:return null}}var Us=!1,mt=!1,ux=typeof WeakSet=="function"?WeakSet:Set,ae=null;function So(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){Ke(e,t,l)}else o.current=null}function Su(e,t,o){try{o()}catch(l){Ke(e,t,l)}}var xp=!1;function cx(e,t){if(Aa=ss,e=qd(),Na(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var c=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var x=0,R=-1,k=-1,D=0,K=0,Y=e,H=null;t:for(;;){for(var se;Y!==o||c!==0&&Y.nodeType!==3||(R=x+c),Y!==p||l!==0&&Y.nodeType!==3||(k=x+l),Y.nodeType===3&&(x+=Y.nodeValue.length),(se=Y.firstChild)!==null;)H=Y,Y=se;for(;;){if(Y===e)break t;if(H===o&&++D===c&&(R=x),H===p&&++K===l&&(k=x),(se=Y.nextSibling)!==null)break;Y=H,H=Y.parentNode}Y=se}o=R===-1||k===-1?null:{start:R,end:k}}else o=null}o=o||{start:0,end:0}}else o=null;for(La={focusedElem:e,selectionRange:o},ss=!1,ae=t;ae!==null;)if(t=ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ae=e;else for(;ae!==null;){t=ae;try{var ue=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ue!==null){var ce=ue.memoizedProps,Qe=ue.memoizedState,A=t.stateNode,_=A.getSnapshotBeforeUpdate(t.elementType===t.type?ce:Zt(t.type,ce),Qe);A.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var I=t.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(X){Ke(t,t.return,X)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return ue=xp,xp=!1,ue}function Ci(e,t,o){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&e)===e){var p=c.destroy;c.destroy=void 0,p!==void 0&&Su(t,o,p)}c=c.next}while(c!==l)}}function Bs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var l=o.create;o.destroy=l()}o=o.next}while(o!==t)}}function Eu(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function wp(e){var t=e.alternate;t!==null&&(e.alternate=null,wp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wn],delete t[fi],delete t[Fa],delete t[Ky],delete t[Gy])),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 Sp(e){return e.tag===5||e.tag===3||e.tag===4}function Ep(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sp(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 Cu(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=ys));else if(l!==4&&(e=e.child,e!==null))for(Cu(e,t,o),e=e.sibling;e!==null;)Cu(e,t,o),e=e.sibling}function bu(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(bu(e,t,o),e=e.sibling;e!==null;)bu(e,t,o),e=e.sibling}var ot=null,en=!1;function sr(e,t,o){for(o=o.child;o!==null;)Cp(e,t,o),o=o.sibling}function Cp(e,t,o){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(es,o)}catch{}switch(o.tag){case 5:mt||So(o,t);case 6:var l=ot,c=en;ot=null,sr(e,t,o),ot=l,en=c,ot!==null&&(en?(e=ot,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):ot.removeChild(o.stateNode));break;case 18:ot!==null&&(en?(e=ot,o=o.stateNode,e.nodeType===8?Ma(e.parentNode,o):e.nodeType===1&&Ma(e,o),ti(e)):Ma(ot,o.stateNode));break;case 4:l=ot,c=en,ot=o.stateNode.containerInfo,en=!0,sr(e,t,o),ot=l,en=c;break;case 0:case 11:case 14:case 15:if(!mt&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var p=c,x=p.destroy;p=p.tag,x!==void 0&&((p&2)!==0||(p&4)!==0)&&Su(o,t,x),c=c.next}while(c!==l)}sr(e,t,o);break;case 1:if(!mt&&(So(o,t),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(R){Ke(o,t,R)}sr(e,t,o);break;case 21:sr(e,t,o);break;case 22:o.mode&1?(mt=(l=mt)||o.memoizedState!==null,sr(e,t,o),mt=l):sr(e,t,o);break;default:sr(e,t,o)}}function bp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new ux),t.forEach(function(l){var c=xx.bind(null,e,l);o.has(l)||(o.add(l),l.then(c,c))})}}function tn(e,t){var o=t.deletions;if(o!==null)for(var l=0;l<o.length;l++){var c=o[l];try{var p=e,x=t,R=x;e:for(;R!==null;){switch(R.tag){case 5:ot=R.stateNode,en=!1;break e;case 3:ot=R.stateNode.containerInfo,en=!0;break e;case 4:ot=R.stateNode.containerInfo,en=!0;break e}R=R.return}if(ot===null)throw Error(i(160));Cp(p,x,c),ot=null,en=!1;var k=c.alternate;k!==null&&(k.return=null),c.return=null}catch(D){Ke(c,t,D)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Np(t,e),t=t.sibling}function Np(e,t){var o=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(tn(t,e),Cn(e),l&4){try{Ci(3,e,e.return),Bs(3,e)}catch(ce){Ke(e,e.return,ce)}try{Ci(5,e,e.return)}catch(ce){Ke(e,e.return,ce)}}break;case 1:tn(t,e),Cn(e),l&512&&o!==null&&So(o,o.return);break;case 5:if(tn(t,e),Cn(e),l&512&&o!==null&&So(o,o.return),e.flags&32){var c=e.stateNode;try{hn(c,"")}catch(ce){Ke(e,e.return,ce)}}if(l&4&&(c=e.stateNode,c!=null)){var p=e.memoizedProps,x=o!==null?o.memoizedProps:p,R=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{R==="input"&&p.type==="radio"&&p.name!=null&&Kt(c,p),Ko(R,x);var D=Ko(R,p);for(x=0;x<k.length;x+=2){var K=k[x],Y=k[x+1];K==="style"?Tn(c,Y):K==="dangerouslySetInnerHTML"?Gi(c,Y):K==="children"?hn(c,Y):T(c,K,Y,D)}switch(R){case"input":Gt(c,p);break;case"textarea":Hi(c,p);break;case"select":var H=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!p.multiple;var se=p.value;se!=null?Ft(c,!!p.multiple,se,!1):H!==!!p.multiple&&(p.defaultValue!=null?Ft(c,!!p.multiple,p.defaultValue,!0):Ft(c,!!p.multiple,p.multiple?[]:"",!1))}c[fi]=p}catch(ce){Ke(e,e.return,ce)}}break;case 6:if(tn(t,e),Cn(e),l&4){if(e.stateNode===null)throw Error(i(162));c=e.stateNode,p=e.memoizedProps;try{c.nodeValue=p}catch(ce){Ke(e,e.return,ce)}}break;case 3:if(tn(t,e),Cn(e),l&4&&o!==null&&o.memoizedState.isDehydrated)try{ti(t.containerInfo)}catch(ce){Ke(e,e.return,ce)}break;case 4:tn(t,e),Cn(e);break;case 13:tn(t,e),Cn(e),c=e.child,c.flags&8192&&(p=c.memoizedState!==null,c.stateNode.isHidden=p,!p||c.alternate!==null&&c.alternate.memoizedState!==null||(ku=Ye())),l&4&&bp(e);break;case 22:if(K=o!==null&&o.memoizedState!==null,e.mode&1?(mt=(D=mt)||K,tn(t,e),mt=D):tn(t,e),Cn(e),l&8192){if(D=e.memoizedState!==null,(e.stateNode.isHidden=D)&&!K&&(e.mode&1)!==0)for(ae=e,K=e.child;K!==null;){for(Y=ae=K;ae!==null;){switch(H=ae,se=H.child,H.tag){case 0:case 11:case 14:case 15:Ci(4,H,H.return);break;case 1:So(H,H.return);var ue=H.stateNode;if(typeof ue.componentWillUnmount=="function"){l=H,o=H.return;try{t=l,ue.props=t.memoizedProps,ue.state=t.memoizedState,ue.componentWillUnmount()}catch(ce){Ke(l,o,ce)}}break;case 5:So(H,H.return);break;case 22:if(H.memoizedState!==null){Pp(Y);continue}}se!==null?(se.return=H,ae=se):Pp(Y)}K=K.sibling}e:for(K=null,Y=e;;){if(Y.tag===5){if(K===null){K=Y;try{c=Y.stateNode,D?(p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(R=Y.stateNode,k=Y.memoizedProps.style,x=k!=null&&k.hasOwnProperty("display")?k.display:null,R.style.display=Zr("display",x))}catch(ce){Ke(e,e.return,ce)}}}else if(Y.tag===6){if(K===null)try{Y.stateNode.nodeValue=D?"":Y.memoizedProps}catch(ce){Ke(e,e.return,ce)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===e)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===e)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===e)break e;K===Y&&(K=null),Y=Y.return}K===Y&&(K=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:tn(t,e),Cn(e),l&4&&bp(e);break;case 21:break;default:tn(t,e),Cn(e)}}function Cn(e){var t=e.flags;if(t&2){try{e:{for(var o=e.return;o!==null;){if(Sp(o)){var l=o;break e}o=o.return}throw Error(i(160))}switch(l.tag){case 5:var c=l.stateNode;l.flags&32&&(hn(c,""),l.flags&=-33);var p=Ep(e);bu(e,p,c);break;case 3:case 4:var x=l.stateNode.containerInfo,R=Ep(e);Cu(e,R,x);break;default:throw Error(i(161))}}catch(k){Ke(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dx(e,t,o){ae=e,Rp(e)}function Rp(e,t,o){for(var l=(e.mode&1)!==0;ae!==null;){var c=ae,p=c.child;if(c.tag===22&&l){var x=c.memoizedState!==null||Us;if(!x){var R=c.alternate,k=R!==null&&R.memoizedState!==null||mt;R=Us;var D=mt;if(Us=x,(mt=k)&&!D)for(ae=c;ae!==null;)x=ae,k=x.child,x.tag===22&&x.memoizedState!==null?Tp(c):k!==null?(k.return=x,ae=k):Tp(c);for(;p!==null;)ae=p,Rp(p),p=p.sibling;ae=c,Us=R,mt=D}kp(e)}else(c.subtreeFlags&8772)!==0&&p!==null?(p.return=c,ae=p):kp(e)}}function kp(e){for(;ae!==null;){var t=ae;if((t.flags&8772)!==0){var o=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:mt||Bs(5,t);break;case 1:var l=t.stateNode;if(t.flags&4&&!mt)if(o===null)l.componentDidMount();else{var c=t.elementType===t.type?o.memoizedProps:Zt(t.type,o.memoizedProps);l.componentDidUpdate(c,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var p=t.updateQueue;p!==null&&Pf(t,p,l);break;case 3:var x=t.updateQueue;if(x!==null){if(o=null,t.child!==null)switch(t.child.tag){case 5:o=t.child.stateNode;break;case 1:o=t.child.stateNode}Pf(t,x,o)}break;case 5:var R=t.stateNode;if(o===null&&t.flags&4){o=R;var k=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&o.focus();break;case"img":k.src&&(o.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var D=t.alternate;if(D!==null){var K=D.memoizedState;if(K!==null){var Y=K.dehydrated;Y!==null&&ti(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}mt||t.flags&512&&Eu(t)}catch(H){Ke(t,t.return,H)}}if(t===e){ae=null;break}if(o=t.sibling,o!==null){o.return=t.return,ae=o;break}ae=t.return}}function Pp(e){for(;ae!==null;){var t=ae;if(t===e){ae=null;break}var o=t.sibling;if(o!==null){o.return=t.return,ae=o;break}ae=t.return}}function Tp(e){for(;ae!==null;){var t=ae;try{switch(t.tag){case 0:case 11:case 15:var o=t.return;try{Bs(4,t)}catch(k){Ke(t,o,k)}break;case 1:var l=t.stateNode;if(typeof l.componentDidMount=="function"){var c=t.return;try{l.componentDidMount()}catch(k){Ke(t,c,k)}}var p=t.return;try{Eu(t)}catch(k){Ke(t,p,k)}break;case 5:var x=t.return;try{Eu(t)}catch(k){Ke(t,x,k)}}}catch(k){Ke(t,t.return,k)}if(t===e){ae=null;break}var R=t.sibling;if(R!==null){R.return=t.return,ae=R;break}ae=t.return}}var fx=Math.ceil,$s=L.ReactCurrentDispatcher,Nu=L.ReactCurrentOwner,Wt=L.ReactCurrentBatchConfig,Pe=0,tt=null,Xe=null,it=0,It=0,Eo=tr(0),Ze=0,bi=null,Ir=0,Ws=0,Ru=0,Ni=null,Rt=null,ku=0,Co=1/0,Mn=null,Vs=!1,Pu=null,lr=null,Hs=!1,ar=null,Ks=0,Ri=0,Tu=null,Gs=-1,Ys=0;function wt(){return(Pe&6)!==0?Ye():Gs!==-1?Gs:Gs=Ye()}function ur(e){return(e.mode&1)===0?1:(Pe&2)!==0&&it!==0?it&-it:Qy.transition!==null?(Ys===0&&(Ys=Sd()),Ys):(e=_e,e!==0||(e=window.event,e=e===void 0?16:jd(e.type)),e)}function nn(e,t,o,l){if(50<Ri)throw Ri=0,Tu=null,Error(i(185));qo(e,o,l),((Pe&2)===0||e!==tt)&&(e===tt&&((Pe&2)===0&&(Ws|=o),Ze===4&&cr(e,it)),kt(e,l),o===1&&Pe===0&&(t.mode&1)===0&&(Co=Ye()+500,Es&&rr()))}function kt(e,t){var o=e.callbackNode;Qv(e,t);var l=rs(e,e===tt?it:0);if(l===0)o!==null&&yd(o),e.callbackNode=null,e.callbackPriority=0;else if(t=l&-l,e.callbackPriority!==t){if(o!=null&&yd(o),t===1)e.tag===0?Yy(Op.bind(null,e)):gf(Op.bind(null,e)),Vy(function(){(Pe&6)===0&&rr()}),o=null;else{switch(Ed(l)){case 1:o=aa;break;case 4:o=xd;break;case 16:o=Zi;break;case 536870912:o=wd;break;default:o=Zi}o=zp(o,jp.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function jp(e,t){if(Gs=-1,Ys=0,(Pe&6)!==0)throw Error(i(327));var o=e.callbackNode;if(bo()&&e.callbackNode!==o)return null;var l=rs(e,e===tt?it:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||t)t=Qs(e,l);else{t=l;var c=Pe;Pe|=2;var p=Ap();(tt!==e||it!==t)&&(Mn=null,Co=Ye()+500,Mr(e,t));do try{hx();break}catch(R){_p(e,R)}while(!0);Ga(),$s.current=p,Pe=c,Xe!==null?t=0:(tt=null,it=0,t=Ze)}if(t!==0){if(t===2&&(c=ua(e),c!==0&&(l=c,t=ju(e,c))),t===1)throw o=bi,Mr(e,0),cr(e,l),kt(e,Ye()),o;if(t===6)cr(e,l);else{if(c=e.current.alternate,(l&30)===0&&!px(c)&&(t=Qs(e,l),t===2&&(p=ua(e),p!==0&&(l=p,t=ju(e,p))),t===1))throw o=bi,Mr(e,0),cr(e,l),kt(e,Ye()),o;switch(e.finishedWork=c,e.finishedLanes=l,t){case 0:case 1:throw Error(i(345));case 2:Fr(e,Rt,Mn);break;case 3:if(cr(e,l),(l&130023424)===l&&(t=ku+500-Ye(),10<t)){if(rs(e,0)!==0)break;if(c=e.suspendedLanes,(c&l)!==l){wt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Da(Fr.bind(null,e,Rt,Mn),t);break}Fr(e,Rt,Mn);break;case 4:if(cr(e,l),(l&4194240)===l)break;for(t=e.eventTimes,c=-1;0<l;){var x=31-qt(l);p=1<<x,x=t[x],x>c&&(c=x),l&=~p}if(l=c,l=Ye()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*fx(l/1960))-l,10<l){e.timeoutHandle=Da(Fr.bind(null,e,Rt,Mn),l);break}Fr(e,Rt,Mn);break;case 5:Fr(e,Rt,Mn);break;default:throw Error(i(329))}}}return kt(e,Ye()),e.callbackNode===o?jp.bind(null,e):null}function ju(e,t){var o=Ni;return e.current.memoizedState.isDehydrated&&(Mr(e,t).flags|=256),e=Qs(e,t),e!==2&&(t=Rt,Rt=o,t!==null&&Ou(t)),e}function Ou(e){Rt===null?Rt=e:Rt.push.apply(Rt,e)}function px(e){for(var t=e;;){if(t.flags&16384){var o=t.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var l=0;l<o.length;l++){var c=o[l],p=c.getSnapshot;c=c.value;try{if(!Xt(p(),c))return!1}catch{return!1}}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;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 cr(e,t){for(t&=~Ru,t&=~Ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var o=31-qt(t),l=1<<o;e[o]=-1,t&=~l}}function Op(e){if((Pe&6)!==0)throw Error(i(327));bo();var t=rs(e,0);if((t&1)===0)return kt(e,Ye()),null;var o=Qs(e,t);if(e.tag!==0&&o===2){var l=ua(e);l!==0&&(t=l,o=ju(e,l))}if(o===1)throw o=bi,Mr(e,0),cr(e,t),kt(e,Ye()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fr(e,Rt,Mn),kt(e,Ye()),null}function _u(e,t){var o=Pe;Pe|=1;try{return e(t)}finally{Pe=o,Pe===0&&(Co=Ye()+500,Es&&rr())}}function Dr(e){ar!==null&&ar.tag===0&&(Pe&6)===0&&bo();var t=Pe;Pe|=1;var o=Wt.transition,l=_e;try{if(Wt.transition=null,_e=1,e)return e()}finally{_e=l,Wt.transition=o,Pe=t,(Pe&6)===0&&rr()}}function Au(){It=Eo.current,Me(Eo)}function Mr(e,t){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Wy(o)),Xe!==null)for(o=Xe.return;o!==null;){var l=o;switch($a(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&ws();break;case 3:xo(),Me(Ct),Me(dt),tu();break;case 5:Za(l);break;case 4:xo();break;case 13:Me($e);break;case 19:Me($e);break;case 10:Ya(l.type._context);break;case 22:case 23:Au()}o=o.return}if(tt=e,Xe=e=dr(e.current,null),it=It=t,Ze=0,bi=null,Ru=Ws=Ir=0,Rt=Ni=null,_r!==null){for(t=0;t<_r.length;t++)if(o=_r[t],l=o.interleaved,l!==null){o.interleaved=null;var c=l.next,p=o.pending;if(p!==null){var x=p.next;p.next=c,l.next=x}o.pending=l}_r=null}return e}function _p(e,t){do{var o=Xe;try{if(Ga(),_s.current=Ds,As){for(var l=We.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}As=!1}if(Lr=0,et=Je=We=null,yi=!1,xi=0,Nu.current=null,o===null||o.return===null){Ze=1,bi=t,Xe=null;break}e:{var p=e,x=o.return,R=o,k=t;if(t=it,R.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var D=k,K=R,Y=K.tag;if((K.mode&1)===0&&(Y===0||Y===11||Y===15)){var H=K.alternate;H?(K.updateQueue=H.updateQueue,K.memoizedState=H.memoizedState,K.lanes=H.lanes):(K.updateQueue=null,K.memoizedState=null)}var se=rp(x);if(se!==null){se.flags&=-257,op(se,x,R,p,t),se.mode&1&&np(p,D,t),t=se,k=D;var ue=t.updateQueue;if(ue===null){var ce=new Set;ce.add(k),t.updateQueue=ce}else ue.add(k);break e}else{if((t&1)===0){np(p,D,t),Lu();break e}k=Error(i(426))}}else if(Ue&&R.mode&1){var Qe=rp(x);if(Qe!==null){(Qe.flags&65536)===0&&(Qe.flags|=256),op(Qe,x,R,p,t),Ha(wo(k,R));break e}}p=k=wo(k,R),Ze!==4&&(Ze=2),Ni===null?Ni=[p]:Ni.push(p),p=x;do{switch(p.tag){case 3:p.flags|=65536,t&=-t,p.lanes|=t;var A=ep(p,k,t);kf(p,A);break e;case 1:R=k;var _=p.type,I=p.stateNode;if((p.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(lr===null||!lr.has(I)))){p.flags|=65536,t&=-t,p.lanes|=t;var X=tp(p,R,t);kf(p,X);break e}}p=p.return}while(p!==null)}Ip(o)}catch(fe){t=fe,Xe===o&&o!==null&&(Xe=o=o.return);continue}break}while(!0)}function Ap(){var e=$s.current;return $s.current=Ds,e===null?Ds:e}function Lu(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),tt===null||(Ir&268435455)===0&&(Ws&268435455)===0||cr(tt,it)}function Qs(e,t){var o=Pe;Pe|=2;var l=Ap();(tt!==e||it!==t)&&(Mn=null,Mr(e,t));do try{mx();break}catch(c){_p(e,c)}while(!0);if(Ga(),Pe=o,$s.current=l,Xe!==null)throw Error(i(261));return tt=null,it=0,Ze}function mx(){for(;Xe!==null;)Lp(Xe)}function hx(){for(;Xe!==null&&!Uv();)Lp(Xe)}function Lp(e){var t=Fp(e.alternate,e,It);e.memoizedProps=e.pendingProps,t===null?Ip(e):Xe=t,Nu.current=null}function Ip(e){var t=e;do{var o=t.alternate;if(e=t.return,(t.flags&32768)===0){if(o=lx(o,t,It),o!==null){Xe=o;return}}else{if(o=ax(o,t),o!==null){o.flags&=32767,Xe=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ze=6,Xe=null;return}}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);Ze===0&&(Ze=5)}function Fr(e,t,o){var l=_e,c=Wt.transition;try{Wt.transition=null,_e=1,gx(e,t,o,l)}finally{Wt.transition=c,_e=l}return null}function gx(e,t,o,l){do bo();while(ar!==null);if((Pe&6)!==0)throw Error(i(327));o=e.finishedWork;var c=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var p=o.lanes|o.childLanes;if(qv(e,p),e===tt&&(Xe=tt=null,it=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Hs||(Hs=!0,zp(Zi,function(){return bo(),null})),p=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||p){p=Wt.transition,Wt.transition=null;var x=_e;_e=1;var R=Pe;Pe|=4,Nu.current=null,cx(e,o),Np(o,e),Dy(La),ss=!!Aa,La=Aa=null,e.current=o,dx(o),Bv(),Pe=R,_e=x,Wt.transition=p}else e.current=o;if(Hs&&(Hs=!1,ar=e,Ks=c),p=e.pendingLanes,p===0&&(lr=null),Vv(o.stateNode),kt(e,Ye()),t!==null)for(l=e.onRecoverableError,o=0;o<t.length;o++)c=t[o],l(c.value,{componentStack:c.stack,digest:c.digest});if(Vs)throw Vs=!1,e=Pu,Pu=null,e;return(Ks&1)!==0&&e.tag!==0&&bo(),p=e.pendingLanes,(p&1)!==0?e===Tu?Ri++:(Ri=0,Tu=e):Ri=0,rr(),null}function bo(){if(ar!==null){var e=Ed(Ks),t=Wt.transition,o=_e;try{if(Wt.transition=null,_e=16>e?16:e,ar===null)var l=!1;else{if(e=ar,ar=null,Ks=0,(Pe&6)!==0)throw Error(i(331));var c=Pe;for(Pe|=4,ae=e.current;ae!==null;){var p=ae,x=p.child;if((ae.flags&16)!==0){var R=p.deletions;if(R!==null){for(var k=0;k<R.length;k++){var D=R[k];for(ae=D;ae!==null;){var K=ae;switch(K.tag){case 0:case 11:case 15:Ci(8,K,p)}var Y=K.child;if(Y!==null)Y.return=K,ae=Y;else for(;ae!==null;){K=ae;var H=K.sibling,se=K.return;if(wp(K),K===D){ae=null;break}if(H!==null){H.return=se,ae=H;break}ae=se}}}var ue=p.alternate;if(ue!==null){var ce=ue.child;if(ce!==null){ue.child=null;do{var Qe=ce.sibling;ce.sibling=null,ce=Qe}while(ce!==null)}}ae=p}}if((p.subtreeFlags&2064)!==0&&x!==null)x.return=p,ae=x;else e:for(;ae!==null;){if(p=ae,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:Ci(9,p,p.return)}var A=p.sibling;if(A!==null){A.return=p.return,ae=A;break e}ae=p.return}}var _=e.current;for(ae=_;ae!==null;){x=ae;var I=x.child;if((x.subtreeFlags&2064)!==0&&I!==null)I.return=x,ae=I;else e:for(x=_;ae!==null;){if(R=ae,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:Bs(9,R)}}catch(fe){Ke(R,R.return,fe)}if(R===x){ae=null;break e}var X=R.sibling;if(X!==null){X.return=R.return,ae=X;break e}ae=R.return}}if(Pe=c,rr(),xn&&typeof xn.onPostCommitFiberRoot=="function")try{xn.onPostCommitFiberRoot(es,e)}catch{}l=!0}return l}finally{_e=o,Wt.transition=t}}return!1}function Dp(e,t,o){t=wo(o,t),t=ep(e,t,1),e=ir(e,t,1),t=wt(),e!==null&&(qo(e,1,t),kt(e,t))}function Ke(e,t,o){if(e.tag===3)Dp(e,e,o);else for(;t!==null;){if(t.tag===3){Dp(t,e,o);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(lr===null||!lr.has(l))){e=wo(o,e),e=tp(t,e,1),t=ir(t,e,1),e=wt(),t!==null&&(qo(t,1,e),kt(t,e));break}}t=t.return}}function vx(e,t,o){var l=e.pingCache;l!==null&&l.delete(t),t=wt(),e.pingedLanes|=e.suspendedLanes&o,tt===e&&(it&o)===o&&(Ze===4||Ze===3&&(it&130023424)===it&&500>Ye()-ku?Mr(e,0):Ru|=o),kt(e,t)}function Mp(e,t){t===0&&((e.mode&1)===0?t=1:(t=ns,ns<<=1,(ns&130023424)===0&&(ns=4194304)));var o=wt();e=Ln(e,t),e!==null&&(qo(e,t,o),kt(e,o))}function yx(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),Mp(e,o)}function xx(e,t){var o=0;switch(e.tag){case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(o=c.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(t),Mp(e,o)}var Fp;Fp=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ct.current)Nt=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return Nt=!1,sx(e,t,o);Nt=(e.flags&131072)!==0}else Nt=!1,Ue&&(t.flags&1048576)!==0&&vf(t,bs,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;zs(e,t),e=t.pendingProps;var c=fo(t,dt.current);yo(t,o),c=ou(null,t,l,e,c,o);var p=iu();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bt(l)?(p=!0,Ss(t)):p=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Xa(t),c.updater=Ms,t.stateNode=c,c._reactInternals=t,du(t,l,e,o),t=hu(null,t,l,!0,p,o)):(t.tag=0,Ue&&p&&Ba(t),xt(null,t,c,o),t=t.child),t;case 16:l=t.elementType;e:{switch(zs(e,t),e=t.pendingProps,c=l._init,l=c(l._payload),t.type=l,c=t.tag=Sx(l),e=Zt(l,e),c){case 0:t=mu(null,t,l,e,o);break e;case 1:t=cp(null,t,l,e,o);break e;case 11:t=ip(null,t,l,e,o);break e;case 14:t=sp(null,t,l,Zt(l.type,e),o);break e}throw Error(i(306,l,""))}return t;case 0:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:Zt(l,c),mu(e,t,l,c,o);case 1:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:Zt(l,c),cp(e,t,l,c,o);case 3:e:{if(dp(t),e===null)throw Error(i(387));l=t.pendingProps,p=t.memoizedState,c=p.element,Rf(e,t),js(t,l,null,o);var x=t.memoizedState;if(l=x.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},t.updateQueue.baseState=p,t.memoizedState=p,t.flags&256){c=wo(Error(i(423)),t),t=fp(e,t,l,o,c);break e}else if(l!==c){c=wo(Error(i(424)),t),t=fp(e,t,l,o,c);break e}else for(Lt=er(t.stateNode.containerInfo.firstChild),At=t,Ue=!0,Jt=null,o=bf(t,null,l,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ho(),l===c){t=Dn(e,t,o);break e}xt(e,t,l,o)}t=t.child}return t;case 5:return Tf(t),e===null&&Va(t),l=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,x=c.children,Ia(l,c)?x=null:p!==null&&Ia(l,p)&&(t.flags|=32),up(e,t),xt(e,t,x,o),t.child;case 6:return e===null&&Va(t),null;case 13:return pp(e,t,o);case 4:return Ja(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=go(t,null,l,o):xt(e,t,l,o),t.child;case 11:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:Zt(l,c),ip(e,t,l,c,o);case 7:return xt(e,t,t.pendingProps,o),t.child;case 8:return xt(e,t,t.pendingProps.children,o),t.child;case 12:return xt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(l=t.type._context,c=t.pendingProps,p=t.memoizedProps,x=c.value,Le(ks,l._currentValue),l._currentValue=x,p!==null)if(Xt(p.value,x)){if(p.children===c.children&&!Ct.current){t=Dn(e,t,o);break e}}else for(p=t.child,p!==null&&(p.return=t);p!==null;){var R=p.dependencies;if(R!==null){x=p.child;for(var k=R.firstContext;k!==null;){if(k.context===l){if(p.tag===1){k=In(-1,o&-o),k.tag=2;var D=p.updateQueue;if(D!==null){D=D.shared;var K=D.pending;K===null?k.next=k:(k.next=K.next,K.next=k),D.pending=k}}p.lanes|=o,k=p.alternate,k!==null&&(k.lanes|=o),Qa(p.return,o,t),R.lanes|=o;break}k=k.next}}else if(p.tag===10)x=p.type===t.type?null:p.child;else if(p.tag===18){if(x=p.return,x===null)throw Error(i(341));x.lanes|=o,R=x.alternate,R!==null&&(R.lanes|=o),Qa(x,o,t),x=p.sibling}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===t){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}xt(e,t,c.children,o),t=t.child}return t;case 9:return c=t.type,l=t.pendingProps.children,yo(t,o),c=Bt(c),l=l(c),t.flags|=1,xt(e,t,l,o),t.child;case 14:return l=t.type,c=Zt(l,t.pendingProps),c=Zt(l.type,c),sp(e,t,l,c,o);case 15:return lp(e,t,t.type,t.pendingProps,o);case 17:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:Zt(l,c),zs(e,t),t.tag=1,bt(l)?(e=!0,Ss(t)):e=!1,yo(t,o),Jf(t,l,c),du(t,l,c,o),hu(null,t,l,!0,e,o);case 19:return hp(e,t,o);case 22:return ap(e,t,o)}throw Error(i(156,t.tag))};function zp(e,t){return vd(e,t)}function wx(e,t,o,l){this.tag=e,this.key=o,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,o,l){return new wx(e,t,o,l)}function Iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sx(e){if(typeof e=="function")return Iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Z)return 11;if(e===q)return 14}return 2}function dr(e,t){var o=e.alternate;return o===null?(o=Vt(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function qs(e,t,o,l,c,p){var x=2;if(l=e,typeof e=="function")Iu(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case W:return zr(o.children,c,p,t);case ie:x=8,c|=8;break;case le:return e=Vt(12,o,t,c|2),e.elementType=le,e.lanes=p,e;case U:return e=Vt(13,o,t,c),e.elementType=U,e.lanes=p,e;case te:return e=Vt(19,o,t,c),e.elementType=te,e.lanes=p,e;case oe:return Xs(o,c,p,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case de:x=10;break e;case he:x=9;break e;case Z:x=11;break e;case q:x=14;break e;case ee:x=16,l=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Vt(x,o,t,c),t.elementType=e,t.type=l,t.lanes=p,t}function zr(e,t,o,l){return e=Vt(7,e,l,t),e.lanes=o,e}function Xs(e,t,o,l){return e=Vt(22,e,l,t),e.elementType=oe,e.lanes=o,e.stateNode={isHidden:!1},e}function Du(e,t,o){return e=Vt(6,e,null,t),e.lanes=o,e}function Mu(e,t,o){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ex(e,t,o,l,c){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=ca(0),this.expirationTimes=ca(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ca(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Fu(e,t,o,l,c,p,x,R,k){return e=new Ex(e,t,o,R,k),t===1?(t=1,p===!0&&(t|=8)):t=0,p=Vt(3,null,null,t),e.current=p,p.stateNode=e,p.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xa(p),e}function Cx(e,t,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:l==null?null:""+l,children:e,containerInfo:t,implementation:o}}function Up(e){if(!e)return nr;e=e._reactInternals;e:{if(kr(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(bt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(bt(o))return mf(e,o,t)}return t}function Bp(e,t,o,l,c,p,x,R,k){return e=Fu(o,l,!0,e,c,p,x,R,k),e.context=Up(null),o=e.current,l=wt(),c=ur(o),p=In(l,c),p.callback=t??null,ir(o,p,c),e.current.lanes=c,qo(e,c,l),kt(e,l),e}function Js(e,t,o,l){var c=t.current,p=wt(),x=ur(c);return o=Up(o),t.context===null?t.context=o:t.pendingContext=o,t=In(p,x),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),e=ir(c,t,x),e!==null&&(nn(e,c,x,p),Ts(e,c,x)),x}function Zs(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 $p(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function zu(e,t){$p(e,t),(e=e.alternate)&&$p(e,t)}function bx(){return null}var Wp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uu(e){this._internalRoot=e}el.prototype.render=Uu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Js(e,t,null,null)},el.prototype.unmount=Uu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dr(function(){Js(null,e,null,null)}),t[jn]=null}};function el(e){this._internalRoot=e}el.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nd();e={blockedOn:null,target:e,priority:t};for(var o=0;o<Xn.length&&t!==0&&t<Xn[o].priority;o++);Xn.splice(o,0,e),o===0&&Pd(e)}};function Bu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function tl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vp(){}function Nx(e,t,o,l,c){if(c){if(typeof l=="function"){var p=l;l=function(){var D=Zs(x);p.call(D)}}var x=Bp(t,l,e,0,null,!1,!1,"",Vp);return e._reactRootContainer=x,e[jn]=x.current,ci(e.nodeType===8?e.parentNode:e),Dr(),x}for(;c=e.lastChild;)e.removeChild(c);if(typeof l=="function"){var R=l;l=function(){var D=Zs(k);R.call(D)}}var k=Fu(e,0,!1,null,null,!1,!1,"",Vp);return e._reactRootContainer=k,e[jn]=k.current,ci(e.nodeType===8?e.parentNode:e),Dr(function(){Js(t,k,o,l)}),k}function nl(e,t,o,l,c){var p=o._reactRootContainer;if(p){var x=p;if(typeof c=="function"){var R=c;c=function(){var k=Zs(x);R.call(k)}}Js(t,x,e,c)}else x=Nx(o,t,e,c,l);return Zs(x)}Cd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var o=Qo(t.pendingLanes);o!==0&&(da(t,o|1),kt(t,Ye()),(Pe&6)===0&&(Co=Ye()+500,rr()))}break;case 13:Dr(function(){var l=Ln(e,1);if(l!==null){var c=wt();nn(l,e,1,c)}}),zu(e,1)}},fa=function(e){if(e.tag===13){var t=Ln(e,134217728);if(t!==null){var o=wt();nn(t,e,134217728,o)}zu(e,134217728)}},bd=function(e){if(e.tag===13){var t=ur(e),o=Ln(e,t);if(o!==null){var l=wt();nn(o,e,t,l)}zu(e,t)}},Nd=function(){return _e},Rd=function(e,t){var o=_e;try{return _e=e,t()}finally{_e=o}},to=function(e,t,o){switch(t){case"input":if(Gt(e,o),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<o.length;t++){var l=o[t];if(l!==e&&l.form===e.form){var c=xs(l);if(!c)throw Error(i(90));ke(l),Gt(l,c)}}}break;case"textarea":Hi(e,o);break;case"select":t=o.value,t!=null&&Ft(e,!!o.multiple,t,!1)}},Oe=_u,Ae=Dr;var Rx={usingClientEntryPoint:!1,Events:[pi,uo,xs,qi,Ee,_u]},ki={findFiberByHostInstance:Pr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kx={bundleType:ki.bundleType,version:ki.version,rendererPackageName:ki.rendererPackageName,rendererConfig:ki.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hd(e),e===null?null:e.stateNode},findFiberByHostInstance:ki.findFiberByHostInstance||bx,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 rl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rl.isDisabled&&rl.supportsFiber)try{es=rl.inject(kx),xn=rl}catch{}}return Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rx,Pt.createPortal=function(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bu(t))throw Error(i(200));return Cx(e,t,null,o)},Pt.createRoot=function(e,t){if(!Bu(e))throw Error(i(299));var o=!1,l="",c=Wp;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Fu(e,1,!1,null,null,o,!1,l,c),e[jn]=t.current,ci(e.nodeType===8?e.parentNode:e),new Uu(t)},Pt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=hd(t),e=e===null?null:e.stateNode,e},Pt.flushSync=function(e){return Dr(e)},Pt.hydrate=function(e,t,o){if(!tl(t))throw Error(i(200));return nl(null,e,t,!0,o)},Pt.hydrateRoot=function(e,t,o){if(!Bu(e))throw Error(i(405));var l=o!=null&&o.hydratedSources||null,c=!1,p="",x=Wp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onRecoverableError!==void 0&&(x=o.onRecoverableError)),t=Bp(t,null,e,1,o??null,c,!1,p,x),e[jn]=t.current,ci(e),l)for(e=0;e<l.length;e++)o=l[e],c=o._getVersion,c=c(o._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[o,c]:t.mutableSourceEagerHydrationData.push(o,c);return new el(t)},Pt.render=function(e,t,o){if(!tl(t))throw Error(i(200));return nl(null,e,t,!1,o)},Pt.unmountComponentAtNode=function(e){if(!tl(e))throw Error(i(40));return e._reactRootContainer?(Dr(function(){nl(null,null,e,!1,function(){e._reactRootContainer=null,e[jn]=null})}),!0):!1},Pt.unstable_batchedUpdates=_u,Pt.unstable_renderSubtreeIntoContainer=function(e,t,o,l){if(!tl(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return nl(e,t,o,!1,l)},Pt.version="18.3.1-next-f1338f8080-20240426",Pt}var Jp;function sh(){if(Jp)return Vu.exports;Jp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Vu.exports=Ix(),Vu.exports}var Zp;function Dx(){if(Zp)return ol;Zp=1;var n=sh();return ol.createRoot=n.createRoot,ol.hydrateRoot=n.hydrateRoot,ol}var Mx=Dx(),Fi=sh();const lh=ih(Fi);/**
|
|
41
|
-
* @remix-run/router v1.23.2
|
|
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 Li(){return Li=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Li.apply(this,arguments)}var gr;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(gr||(gr={}));const em="popstate";function Fx(n){n===void 0&&(n={});function r(s,a){let{pathname:u,search:d,hash:f}=s.location;return cc("",{pathname:u,search:d,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function i(s,a){return typeof a=="string"?a:Sl(a)}return Ux(r,i,null,n)}function Ve(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Dc(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function zx(){return Math.random().toString(36).substr(2,8)}function tm(n,r){return{usr:n.state,key:n.key,idx:r}}function cc(n,r,i,s){return i===void 0&&(i=null),Li({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof r=="string"?Fo(r):r,{state:i,key:r&&r.key||s||zx()})}function Sl(n){let{pathname:r="/",search:i="",hash:s=""}=n;return i&&i!=="?"&&(r+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(r+=s.charAt(0)==="#"?s:"#"+s),r}function Fo(n){let r={};if(n){let i=n.indexOf("#");i>=0&&(r.hash=n.substr(i),n=n.substr(0,i));let s=n.indexOf("?");s>=0&&(r.search=n.substr(s),n=n.substr(0,s)),n&&(r.pathname=n)}return r}function Ux(n,r,i,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:u=!1}=s,d=a.history,f=gr.Pop,h=null,g=y();g==null&&(g=0,d.replaceState(Li({},d.state,{idx:g}),""));function y(){return(d.state||{idx:null}).idx}function w(){f=gr.Pop;let C=y(),O=C==null?null:C-g;g=C,h&&h({action:f,location:S.location,delta:O})}function b(C,O){f=gr.Push;let P=cc(S.location,C,O);g=y()+1;let T=tm(P,g),L=S.createHref(P);try{d.pushState(T,"",L)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;a.location.assign(L)}u&&h&&h({action:f,location:S.location,delta:1})}function E(C,O){f=gr.Replace;let P=cc(S.location,C,O);g=y();let T=tm(P,g),L=S.createHref(P);d.replaceState(T,"",L),u&&h&&h({action:f,location:S.location,delta:0})}function N(C){let O=a.location.origin!=="null"?a.location.origin:a.location.href,P=typeof C=="string"?C:Sl(C);return P=P.replace(/ $/,"%20"),Ve(O,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,O)}let S={get action(){return f},get location(){return n(a,d)},listen(C){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(em,w),h=C,()=>{a.removeEventListener(em,w),h=null}},createHref(C){return r(a,C)},createURL:N,encodeLocation(C){let O=N(C);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:b,replace:E,go(C){return d.go(C)}};return S}var nm;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(nm||(nm={}));function Bx(n,r,i){return i===void 0&&(i="/"),$x(n,r,i)}function $x(n,r,i,s){let a=typeof r=="string"?Fo(r):r,u=Lo(a.pathname||"/",i);if(u==null)return null;let d=ah(n);Wx(d);let f=null;for(let h=0;f==null&&h<d.length;++h){let g=e0(u);f=Jx(d[h],g)}return f}function ah(n,r,i,s){r===void 0&&(r=[]),i===void 0&&(i=[]),s===void 0&&(s="");let a=(u,d,f)=>{let h={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};h.relativePath.startsWith("/")&&(Ve(h.relativePath.startsWith(s),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(s.length));let g=vr([s,h.relativePath]),y=i.concat(h);u.children&&u.children.length>0&&(Ve(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),ah(u.children,r,y,g)),!(u.path==null&&!u.index)&&r.push({path:g,score:qx(g,u.index),routesMeta:y})};return n.forEach((u,d)=>{var f;if(u.path===""||!((f=u.path)!=null&&f.includes("?")))a(u,d);else for(let h of uh(u.path))a(u,d,h)}),r}function uh(n){let r=n.split("/");if(r.length===0)return[];let[i,...s]=r,a=i.endsWith("?"),u=i.replace(/\?$/,"");if(s.length===0)return a?[u,""]:[u];let d=uh(s.join("/")),f=[];return f.push(...d.map(h=>h===""?u:[u,h].join("/"))),a&&f.push(...d),f.map(h=>n.startsWith("/")&&h===""?"/":h)}function Wx(n){n.sort((r,i)=>r.score!==i.score?i.score-r.score:Xx(r.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}const Vx=/^:[\w-]+$/,Hx=3,Kx=2,Gx=1,Yx=10,Qx=-2,rm=n=>n==="*";function qx(n,r){let i=n.split("/"),s=i.length;return i.some(rm)&&(s+=Qx),r&&(s+=Kx),i.filter(a=>!rm(a)).reduce((a,u)=>a+(Vx.test(u)?Hx:u===""?Gx:Yx),s)}function Xx(n,r){return n.length===r.length&&n.slice(0,-1).every((s,a)=>s===r[a])?n[n.length-1]-r[r.length-1]:0}function Jx(n,r,i){let{routesMeta:s}=n,a={},u="/",d=[];for(let f=0;f<s.length;++f){let h=s[f],g=f===s.length-1,y=u==="/"?r:r.slice(u.length)||"/",w=dc({path:h.relativePath,caseSensitive:h.caseSensitive,end:g},y),b=h.route;if(!w)return null;Object.assign(a,w.params),d.push({params:a,pathname:vr([u,w.pathname]),pathnameBase:i0(vr([u,w.pathnameBase])),route:b}),w.pathnameBase!=="/"&&(u=vr([u,w.pathnameBase]))}return d}function dc(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,s]=Zx(n.path,n.caseSensitive,n.end),a=r.match(i);if(!a)return null;let u=a[0],d=u.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:s.reduce((g,y,w)=>{let{paramName:b,isOptional:E}=y;if(b==="*"){let S=f[w]||"";d=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const N=f[w];return E&&!N?g[b]=void 0:g[b]=(N||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:d,pattern:n}}function Zx(n,r,i){r===void 0&&(r=!1),i===void 0&&(i=!0),Dc(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let s=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,h)=>(s.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(s.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,r?void 0:"i"),s]}function e0(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Dc(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+r+").")),n}}function Lo(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,s=n.charAt(i);return s&&s!=="/"?null:n.slice(i)||"/"}const t0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,n0=n=>t0.test(n);function r0(n,r){r===void 0&&(r="/");let{pathname:i,search:s="",hash:a=""}=typeof n=="string"?Fo(n):n,u;if(i)if(n0(i))u=i;else{if(i.includes("//")){let d=i;i=i.replace(/\/\/+/g,"/"),Dc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(d+" -> "+i))}i.startsWith("/")?u=om(i.substring(1),"/"):u=om(i,r)}else u=r;return{pathname:u,search:s0(s),hash:l0(a)}}function om(n,r){let i=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?i.length>1&&i.pop():a!=="."&&i.push(a)}),i.length>1?i.join("/"):"/"}function Gu(n,r,i,s){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+r+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function o0(n){return n.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function Mc(n,r){let i=o0(n);return r?i.map((s,a)=>a===i.length-1?s.pathname:s.pathnameBase):i.map(s=>s.pathnameBase)}function Fc(n,r,i,s){s===void 0&&(s=!1);let a;typeof n=="string"?a=Fo(n):(a=Li({},n),Ve(!a.pathname||!a.pathname.includes("?"),Gu("?","pathname","search",a)),Ve(!a.pathname||!a.pathname.includes("#"),Gu("#","pathname","hash",a)),Ve(!a.search||!a.search.includes("#"),Gu("#","search","hash",a)));let u=n===""||a.pathname==="",d=u?"/":a.pathname,f;if(d==null)f=i;else{let w=r.length-1;if(!s&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),w-=1;a.pathname=b.join("/")}f=w>=0?r[w]:"/"}let h=r0(a,f),g=d&&d!=="/"&&d.endsWith("/"),y=(u||d===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(g||y)&&(h.pathname+="/"),h}const vr=n=>n.join("/").replace(/\/\/+/g,"/"),i0=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),s0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,l0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function a0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const ch=["post","put","patch","delete"];new Set(ch);const u0=["get",...ch];new Set(u0);/**
|
|
50
|
-
* React Router v6.30.3
|
|
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 Ii(){return Ii=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Ii.apply(this,arguments)}const Dl=v.createContext(null),dh=v.createContext(null),$n=v.createContext(null),Ml=v.createContext(null),Wn=v.createContext({outlet:null,matches:[],isDataRoute:!1}),fh=v.createContext(null);function c0(n,r){let{relative:i}=r===void 0?{}:r;zo()||Ve(!1);let{basename:s,navigator:a}=v.useContext($n),{hash:u,pathname:d,search:f}=zl(n,{relative:i}),h=d;return s!=="/"&&(h=d==="/"?s:vr([s,d])),a.createHref({pathname:h,search:f,hash:u})}function zo(){return v.useContext(Ml)!=null}function Uo(){return zo()||Ve(!1),v.useContext(Ml).location}function ph(n){v.useContext($n).static||v.useLayoutEffect(n)}function Fl(){let{isDataRoute:n}=v.useContext(Wn);return n?N0():d0()}function d0(){zo()||Ve(!1);let n=v.useContext(Dl),{basename:r,future:i,navigator:s}=v.useContext($n),{matches:a}=v.useContext(Wn),{pathname:u}=Uo(),d=JSON.stringify(Mc(a,i.v7_relativeSplatPath)),f=v.useRef(!1);return ph(()=>{f.current=!0}),v.useCallback(function(g,y){if(y===void 0&&(y={}),!f.current)return;if(typeof g=="number"){s.go(g);return}let w=Fc(g,JSON.parse(d),u,y.relative==="path");n==null&&r!=="/"&&(w.pathname=w.pathname==="/"?r:vr([r,w.pathname])),(y.replace?s.replace:s.push)(w,y.state,y)},[r,s,d,u,n])}const f0=v.createContext(null);function p0(n){let r=v.useContext(Wn).outlet;return r&&v.createElement(f0.Provider,{value:n},r)}function zl(n,r){let{relative:i}=r===void 0?{}:r,{future:s}=v.useContext($n),{matches:a}=v.useContext(Wn),{pathname:u}=Uo(),d=JSON.stringify(Mc(a,s.v7_relativeSplatPath));return v.useMemo(()=>Fc(n,JSON.parse(d),u,i==="path"),[n,d,u,i])}function m0(n,r){return h0(n,r)}function h0(n,r,i,s){zo()||Ve(!1);let{navigator:a}=v.useContext($n),{matches:u}=v.useContext(Wn),d=u[u.length-1],f=d?d.params:{};d&&d.pathname;let h=d?d.pathnameBase:"/";d&&d.route;let g=Uo(),y;if(r){var w;let C=typeof r=="string"?Fo(r):r;h==="/"||(w=C.pathname)!=null&&w.startsWith(h)||Ve(!1),y=C}else y=g;let b=y.pathname||"/",E=b;if(h!=="/"){let C=h.replace(/^\//,"").split("/");E="/"+b.replace(/^\//,"").split("/").slice(C.length).join("/")}let N=Bx(n,{pathname:E}),S=w0(N&&N.map(C=>Object.assign({},C,{params:Object.assign({},f,C.params),pathname:vr([h,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?h:vr([h,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),u,i,s);return r&&S?v.createElement(Ml.Provider,{value:{location:Ii({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:gr.Pop}},S):S}function g0(){let n=b0(),r=a0(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},r),i?v.createElement("pre",{style:a},i):null,null)}const v0=v.createElement(g0,null);class y0 extends v.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,i){return i.location!==r.location||i.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:i.error,location:i.location,revalidation:r.revalidation||i.revalidation}}componentDidCatch(r,i){console.error("React Router caught the following error during render",r,i)}render(){return this.state.error!==void 0?v.createElement(Wn.Provider,{value:this.props.routeContext},v.createElement(fh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function x0(n){let{routeContext:r,match:i,children:s}=n,a=v.useContext(Dl);return a&&a.static&&a.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=i.route.id),v.createElement(Wn.Provider,{value:r},s)}function w0(n,r,i,s){var a;if(r===void 0&&(r=[]),i===void 0&&(i=null),s===void 0&&(s=null),n==null){var u;if(!i)return null;if(i.errors)n=i.matches;else if((u=s)!=null&&u.v7_partialHydration&&r.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let d=n,f=(a=i)==null?void 0:a.errors;if(f!=null){let y=d.findIndex(w=>w.route.id&&(f==null?void 0:f[w.route.id])!==void 0);y>=0||Ve(!1),d=d.slice(0,Math.min(d.length,y+1))}let h=!1,g=-1;if(i&&s&&s.v7_partialHydration)for(let y=0;y<d.length;y++){let w=d[y];if((w.route.HydrateFallback||w.route.hydrateFallbackElement)&&(g=y),w.route.id){let{loaderData:b,errors:E}=i,N=w.route.loader&&b[w.route.id]===void 0&&(!E||E[w.route.id]===void 0);if(w.route.lazy||N){h=!0,g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}return d.reduceRight((y,w,b)=>{let E,N=!1,S=null,C=null;i&&(E=f&&w.route.id?f[w.route.id]:void 0,S=w.route.errorElement||v0,h&&(g<0&&b===0?(R0("route-fallback"),N=!0,C=null):g===b&&(N=!0,C=w.route.hydrateFallbackElement||null)));let O=r.concat(d.slice(0,b+1)),P=()=>{let T;return E?T=S:N?T=C:w.route.Component?T=v.createElement(w.route.Component,null):w.route.element?T=w.route.element:T=y,v.createElement(x0,{match:w,routeContext:{outlet:y,matches:O,isDataRoute:i!=null},children:T})};return i&&(w.route.ErrorBoundary||w.route.errorElement||b===0)?v.createElement(y0,{location:i.location,revalidation:i.revalidation,component:S,error:E,children:P(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):P()},null)}var mh=(function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n})(mh||{}),hh=(function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n})(hh||{});function S0(n){let r=v.useContext(Dl);return r||Ve(!1),r}function E0(n){let r=v.useContext(dh);return r||Ve(!1),r}function C0(n){let r=v.useContext(Wn);return r||Ve(!1),r}function gh(n){let r=C0(),i=r.matches[r.matches.length-1];return i.route.id||Ve(!1),i.route.id}function b0(){var n;let r=v.useContext(fh),i=E0(),s=gh();return r!==void 0?r:(n=i.errors)==null?void 0:n[s]}function N0(){let{router:n}=S0(mh.UseNavigateStable),r=gh(hh.UseNavigateStable),i=v.useRef(!1);return ph(()=>{i.current=!0}),v.useCallback(function(a,u){u===void 0&&(u={}),i.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,Ii({fromRouteId:r},u)))},[n,r])}const im={};function R0(n,r,i){im[n]||(im[n]=!0)}function k0(n,r){n==null||n.v7_startTransition,n==null||n.v7_relativeSplatPath}function fc(n){let{to:r,replace:i,state:s,relative:a}=n;zo()||Ve(!1);let{future:u,static:d}=v.useContext($n),{matches:f}=v.useContext(Wn),{pathname:h}=Uo(),g=Fl(),y=Fc(r,Mc(f,u.v7_relativeSplatPath),h,a==="path"),w=JSON.stringify(y);return v.useEffect(()=>g(JSON.parse(w),{replace:i,state:s,relative:a}),[g,w,a,i,s]),null}function P0(n){return p0(n.context)}function zn(n){Ve(!1)}function T0(n){let{basename:r="/",children:i=null,location:s,navigationType:a=gr.Pop,navigator:u,static:d=!1,future:f}=n;zo()&&Ve(!1);let h=r.replace(/^\/*/,"/"),g=v.useMemo(()=>({basename:h,navigator:u,static:d,future:Ii({v7_relativeSplatPath:!1},f)}),[h,f,u,d]);typeof s=="string"&&(s=Fo(s));let{pathname:y="/",search:w="",hash:b="",state:E=null,key:N="default"}=s,S=v.useMemo(()=>{let C=Lo(y,h);return C==null?null:{location:{pathname:C,search:w,hash:b,state:E,key:N},navigationType:a}},[h,y,w,b,E,N,a]);return S==null?null:v.createElement($n.Provider,{value:g},v.createElement(Ml.Provider,{children:i,value:S}))}function j0(n){let{children:r,location:i}=n;return m0(pc(r),i)}new Promise(()=>{});function pc(n,r){r===void 0&&(r=[]);let i=[];return v.Children.forEach(n,(s,a)=>{if(!v.isValidElement(s))return;let u=[...r,a];if(s.type===v.Fragment){i.push.apply(i,pc(s.props.children,u));return}s.type!==zn&&Ve(!1),!s.props.index||!s.props.children||Ve(!1);let d={id:s.props.id||u.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&&(d.children=pc(s.props.children,u)),i.push(d)}),i}/**
|
|
59
|
-
* React Router DOM v6.30.3
|
|
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 El(){return El=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},El.apply(this,arguments)}function vh(n,r){if(n==null)return{};var i={},s=Object.keys(n),a,u;for(u=0;u<s.length;u++)a=s[u],!(r.indexOf(a)>=0)&&(i[a]=n[a]);return i}function O0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function _0(n,r){return n.button===0&&(!r||r==="_self")&&!O0(n)}const A0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],L0=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],I0="6";try{window.__reactRouterVersion=I0}catch{}const D0=v.createContext({isTransitioning:!1}),M0="startTransition",sm=Il[M0];function F0(n){let{basename:r,children:i,future:s,window:a}=n,u=v.useRef();u.current==null&&(u.current=Fx({window:a,v5Compat:!0}));let d=u.current,[f,h]=v.useState({action:d.action,location:d.location}),{v7_startTransition:g}=s||{},y=v.useCallback(w=>{g&&sm?sm(()=>h(w)):h(w)},[h,g]);return v.useLayoutEffect(()=>d.listen(y),[d,y]),v.useEffect(()=>k0(s),[s]),v.createElement(T0,{basename:r,children:i,location:f.location,navigationType:f.action,navigator:d,future:s})}const z0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",U0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pl=v.forwardRef(function(r,i){let{onClick:s,relative:a,reloadDocument:u,replace:d,state:f,target:h,to:g,preventScrollReset:y,viewTransition:w}=r,b=vh(r,A0),{basename:E}=v.useContext($n),N,S=!1;if(typeof g=="string"&&U0.test(g)&&(N=g,z0))try{let T=new URL(window.location.href),L=g.startsWith("//")?new URL(T.protocol+g):new URL(g),$=Lo(L.pathname,E);L.origin===T.origin&&$!=null?g=$+L.search+L.hash:S=!0}catch{}let C=c0(g,{relative:a}),O=W0(g,{replace:d,state:f,target:h,preventScrollReset:y,relative:a,viewTransition:w});function P(T){s&&s(T),T.defaultPrevented||O(T)}return v.createElement("a",El({},b,{href:N||C,onClick:S||u?s:P,ref:i,target:h}))}),B0=v.forwardRef(function(r,i){let{"aria-current":s="page",caseSensitive:a=!1,className:u="",end:d=!1,style:f,to:h,viewTransition:g,children:y}=r,w=vh(r,L0),b=zl(h,{relative:w.relative}),E=Uo(),N=v.useContext(dh),{navigator:S,basename:C}=v.useContext($n),O=N!=null&&V0(b)&&g===!0,P=S.encodeLocation?S.encodeLocation(b).pathname:b.pathname,T=E.pathname,L=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;a||(T=T.toLowerCase(),L=L?L.toLowerCase():null,P=P.toLowerCase()),L&&C&&(L=Lo(L,C)||L);const $=P!=="/"&&P.endsWith("/")?P.length-1:P.length;let V=T===P||!d&&T.startsWith(P)&&T.charAt($)==="/",W=L!=null&&(L===P||!d&&L.startsWith(P)&&L.charAt(P.length)==="/"),ie={isActive:V,isPending:W,isTransitioning:O},le=V?s:void 0,de;typeof u=="function"?de=u(ie):de=[u,V?"active":null,W?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let he=typeof f=="function"?f(ie):f;return v.createElement(pl,El({},w,{"aria-current":le,className:de,ref:i,style:he,to:h,viewTransition:g}),typeof y=="function"?y(ie):y)});var mc;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(mc||(mc={}));var lm;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(lm||(lm={}));function $0(n){let r=v.useContext(Dl);return r||Ve(!1),r}function W0(n,r){let{target:i,replace:s,state:a,preventScrollReset:u,relative:d,viewTransition:f}=r===void 0?{}:r,h=Fl(),g=Uo(),y=zl(n,{relative:d});return v.useCallback(w=>{if(_0(w,i)){w.preventDefault();let b=s!==void 0?s:Sl(g)===Sl(y);h(n,{replace:b,state:a,preventScrollReset:u,relative:d,viewTransition:f})}},[g,h,y,s,a,i,n,u,d,f])}function V0(n,r){r===void 0&&(r={});let i=v.useContext(D0);i==null&&Ve(!1);let{basename:s}=$0(mc.useViewTransitionState),a=zl(n,{relative:r.relative});if(!i.isTransitioning)return!1;let u=Lo(i.currentLocation.pathname,s)||i.currentLocation.pathname,d=Lo(i.nextLocation.pathname,s)||i.nextLocation.pathname;return dc(a.pathname,d)!=null||dc(a.pathname,u)!=null}var H0=n=>{switch(n){case"success":return Y0;case"info":return q0;case"warning":return Q0;case"error":return X0;default:return null}},K0=Array(12).fill(0),G0=({visible:n,className:r})=>J.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},J.createElement("div",{className:"sonner-spinner"},K0.map((i,s)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Y0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Q0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),q0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),X0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),J0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Z0=()=>{let[n,r]=J.useState(document.hidden);return J.useEffect(()=>{let i=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),n},hc=1,ew=class{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{let r=this.subscribers.indexOf(n);this.subscribers.splice(r,1)}),this.publish=n=>{this.subscribers.forEach(r=>r(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var r;let{message:i,...s}=n,a=typeof(n==null?void 0:n.id)=="number"||((r=n.id)==null?void 0:r.length)>0?n.id:hc++,u=this.toasts.find(f=>f.id===a),d=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),u?this.toasts=this.toasts.map(f=>f.id===a?(this.publish({...f,...n,id:a,title:i}),{...f,...n,id:a,dismissible:d,title:i}):f):this.addToast({title:i,...s,dismissible:d,id:a}),a},this.dismiss=n=>(this.dismissedToasts.add(n),n||this.toasts.forEach(r=>{this.subscribers.forEach(i=>i({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:n,dismiss:!0})),n),this.message=(n,r)=>this.create({...r,message:n}),this.error=(n,r)=>this.create({...r,message:n,type:"error"}),this.success=(n,r)=>this.create({...r,type:"success",message:n}),this.info=(n,r)=>this.create({...r,type:"info",message:n}),this.warning=(n,r)=>this.create({...r,type:"warning",message:n}),this.loading=(n,r)=>this.create({...r,type:"loading",message:n}),this.promise=(n,r)=>{if(!r)return;let i;r.loading!==void 0&&(i=this.create({...r,promise:n,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let s=n instanceof Promise?n:n(),a=i!==void 0,u,d=s.then(async h=>{if(u=["resolve",h],J.isValidElement(h))a=!1,this.create({id:i,type:"default",message:h});else if(nw(h)&&!h.ok){a=!1;let g=typeof r.error=="function"?await r.error(`HTTP error! status: ${h.status}`):r.error,y=typeof r.description=="function"?await r.description(`HTTP error! status: ${h.status}`):r.description;this.create({id:i,type:"error",message:g,description:y})}else if(r.success!==void 0){a=!1;let g=typeof r.success=="function"?await r.success(h):r.success,y=typeof r.description=="function"?await r.description(h):r.description;this.create({id:i,type:"success",message:g,description:y})}}).catch(async h=>{if(u=["reject",h],r.error!==void 0){a=!1;let g=typeof r.error=="function"?await r.error(h):r.error,y=typeof r.description=="function"?await r.description(h):r.description;this.create({id:i,type:"error",message:g,description:y})}}).finally(()=>{var h;a&&(this.dismiss(i),i=void 0),(h=r.finally)==null||h.call(r)}),f=()=>new Promise((h,g)=>d.then(()=>u[0]==="reject"?g(u[1]):h(u[1])).catch(g));return typeof i!="string"&&typeof i!="number"?{unwrap:f}:Object.assign(i,{unwrap:f})},this.custom=(n,r)=>{let i=(r==null?void 0:r.id)||hc++;return this.create({jsx:n(i),id:i,...r}),i},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Tt=new ew,tw=(n,r)=>{let i=(r==null?void 0:r.id)||hc++;return Tt.addToast({title:n,...r,id:i}),i},nw=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",rw=tw,ow=()=>Tt.toasts,iw=()=>Tt.getActiveToasts(),ut=Object.assign(rw,{success:Tt.success,info:Tt.info,warning:Tt.warning,error:Tt.error,custom:Tt.custom,message:Tt.message,promise:Tt.promise,dismiss:Tt.dismiss,loading:Tt.loading},{getHistory:ow,getToasts:iw});function sw(n,{insertAt:r}={}){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",r==="top"&&i.firstChild?i.insertBefore(s,i.firstChild):i.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}sw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
68
|
-
`);function il(n){return n.label!==void 0}var lw=3,aw="32px",uw="16px",am=4e3,cw=356,dw=14,fw=20,pw=200;function rn(...n){return n.filter(Boolean).join(" ")}function mw(n){let[r,i]=n.split("-"),s=[];return r&&s.push(r),i&&s.push(i),s}var hw=n=>{var r,i,s,a,u,d,f,h,g,y,w;let{invert:b,toast:E,unstyled:N,interacting:S,setHeights:C,visibleToasts:O,heights:P,index:T,toasts:L,expanded:$,removeToast:V,defaultRichColors:W,closeButton:ie,style:le,cancelButtonStyle:de,actionButtonStyle:he,className:Z="",descriptionClassName:U="",duration:te,position:q,gap:ee,loadingIcon:oe,expandByDefault:z,classNames:B,icons:G,closeButtonAriaLabel:j="Close toast",pauseWhenPageIsHidden:F}=n,[ne,re]=J.useState(null),[me,xe]=J.useState(null),[Q,pe]=J.useState(!1),[we,Ce]=J.useState(!1),[Ne,ke]=J.useState(!1),[Ge,ct]=J.useState(!1),[dn,Kt]=J.useState(!1),[Gt,Hn]=J.useState(0),[fn,Kn]=J.useState(0),Ft=J.useRef(E.duration||te||am),Xr=J.useRef(null),pn=J.useRef(null),Hi=T===0,Ki=T+1<=O,vt=E.type,mn=E.dismissible!==!1,Jr=E.className||"",Gi=E.descriptionClassName||"",hn=J.useMemo(()=>P.findIndex(Ee=>Ee.toastId===E.id)||0,[P,E.id]),Rr=J.useMemo(()=>{var Ee;return(Ee=E.closeButton)!=null?Ee:ie},[E.closeButton,ie]),Yi=J.useMemo(()=>E.duration||te||am,[E.duration,te]),Zr=J.useRef(0),Tn=J.useRef(0),Qi=J.useRef(0),gn=J.useRef(null),[Ko,Go]=q.split("-"),eo=J.useMemo(()=>P.reduce((Ee,Oe,Ae)=>Ae>=hn?Ee:Ee+Oe.height,0),[P,hn]),to=Z0(),Gn=E.invert||b,vn=vt==="loading";Tn.current=J.useMemo(()=>hn*ee+eo,[hn,eo]),J.useEffect(()=>{Ft.current=Yi},[Yi]),J.useEffect(()=>{pe(!0)},[]),J.useEffect(()=>{let Ee=pn.current;if(Ee){let Oe=Ee.getBoundingClientRect().height;return Kn(Oe),C(Ae=>[{toastId:E.id,height:Oe,position:E.position},...Ae]),()=>C(Ae=>Ae.filter(yt=>yt.toastId!==E.id))}},[C,E.id]),J.useLayoutEffect(()=>{if(!Q)return;let Ee=pn.current,Oe=Ee.style.height;Ee.style.height="auto";let Ae=Ee.getBoundingClientRect().height;Ee.style.height=Oe,Kn(Ae),C(yt=>yt.find(St=>St.toastId===E.id)?yt.map(St=>St.toastId===E.id?{...St,height:Ae}:St):[{toastId:E.id,height:Ae,position:E.position},...yt])},[Q,E.title,E.description,C,E.id]);let Yt=J.useCallback(()=>{Ce(!0),Hn(Tn.current),C(Ee=>Ee.filter(Oe=>Oe.toastId!==E.id)),setTimeout(()=>{V(E)},pw)},[E,V,C,Tn]);J.useEffect(()=>{if(E.promise&&vt==="loading"||E.duration===1/0||E.type==="loading")return;let Ee;return $||S||F&&to?(()=>{if(Qi.current<Zr.current){let Oe=new Date().getTime()-Zr.current;Ft.current=Ft.current-Oe}Qi.current=new Date().getTime()})():Ft.current!==1/0&&(Zr.current=new Date().getTime(),Ee=setTimeout(()=>{var Oe;(Oe=E.onAutoClose)==null||Oe.call(E,E),Yt()},Ft.current)),()=>clearTimeout(Ee)},[$,S,E,vt,F,to,Yt]),J.useEffect(()=>{E.delete&&Yt()},[Yt,E.delete]);function qi(){var Ee,Oe,Ae;return G!=null&&G.loading?J.createElement("div",{className:rn(B==null?void 0:B.loader,(Ee=E==null?void 0:E.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":vt==="loading"},G.loading):oe?J.createElement("div",{className:rn(B==null?void 0:B.loader,(Oe=E==null?void 0:E.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":vt==="loading"},oe):J.createElement(G0,{className:rn(B==null?void 0:B.loader,(Ae=E==null?void 0:E.classNames)==null?void 0:Ae.loader),visible:vt==="loading"})}return J.createElement("li",{tabIndex:0,ref:pn,className:rn(Z,Jr,B==null?void 0:B.toast,(r=E==null?void 0:E.classNames)==null?void 0:r.toast,B==null?void 0:B.default,B==null?void 0:B[vt],(i=E==null?void 0:E.classNames)==null?void 0:i[vt]),"data-sonner-toast":"","data-rich-colors":(s=E.richColors)!=null?s:W,"data-styled":!(E.jsx||E.unstyled||N),"data-mounted":Q,"data-promise":!!E.promise,"data-swiped":dn,"data-removed":we,"data-visible":Ki,"data-y-position":Ko,"data-x-position":Go,"data-index":T,"data-front":Hi,"data-swiping":Ne,"data-dismissible":mn,"data-type":vt,"data-invert":Gn,"data-swipe-out":Ge,"data-swipe-direction":me,"data-expanded":!!($||z&&Q),style:{"--index":T,"--toasts-before":T,"--z-index":L.length-T,"--offset":`${we?Gt:Tn.current}px`,"--initial-height":z?"auto":`${fn}px`,...le,...E.style},onDragEnd:()=>{ke(!1),re(null),gn.current=null},onPointerDown:Ee=>{vn||!mn||(Xr.current=new Date,Hn(Tn.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(ke(!0),gn.current={x:Ee.clientX,y:Ee.clientY}))},onPointerUp:()=>{var Ee,Oe,Ae,yt;if(Ge||!mn)return;gn.current=null;let St=Number(((Ee=pn.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Et=Number(((Oe=pn.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Qt=new Date().getTime()-((Ae=Xr.current)==null?void 0:Ae.getTime()),rt=ne==="x"?St:Et,yn=Math.abs(rt)/Qt;if(Math.abs(rt)>=fw||yn>.11){Hn(Tn.current),(yt=E.onDismiss)==null||yt.call(E,E),xe(ne==="x"?St>0?"right":"left":Et>0?"down":"up"),Yt(),ct(!0),Kt(!1);return}ke(!1),re(null)},onPointerMove:Ee=>{var Oe,Ae,yt,St;if(!gn.current||!mn||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;let Et=Ee.clientY-gn.current.y,Qt=Ee.clientX-gn.current.x,rt=(Ae=n.swipeDirections)!=null?Ae:mw(q);!ne&&(Math.abs(Qt)>1||Math.abs(Et)>1)&&re(Math.abs(Qt)>Math.abs(Et)?"x":"y");let yn={x:0,y:0};ne==="y"?(rt.includes("top")||rt.includes("bottom"))&&(rt.includes("top")&&Et<0||rt.includes("bottom")&&Et>0)&&(yn.y=Et):ne==="x"&&(rt.includes("left")||rt.includes("right"))&&(rt.includes("left")&&Qt<0||rt.includes("right")&&Qt>0)&&(yn.x=Qt),(Math.abs(yn.x)>0||Math.abs(yn.y)>0)&&Kt(!0),(yt=pn.current)==null||yt.style.setProperty("--swipe-amount-x",`${yn.x}px`),(St=pn.current)==null||St.style.setProperty("--swipe-amount-y",`${yn.y}px`)}},Rr&&!E.jsx?J.createElement("button",{"aria-label":j,"data-disabled":vn,"data-close-button":!0,onClick:vn||!mn?()=>{}:()=>{var Ee;Yt(),(Ee=E.onDismiss)==null||Ee.call(E,E)},className:rn(B==null?void 0:B.closeButton,(a=E==null?void 0:E.classNames)==null?void 0:a.closeButton)},(u=G==null?void 0:G.close)!=null?u:J0):null,E.jsx||v.isValidElement(E.title)?E.jsx?E.jsx:typeof E.title=="function"?E.title():E.title:J.createElement(J.Fragment,null,vt||E.icon||E.promise?J.createElement("div",{"data-icon":"",className:rn(B==null?void 0:B.icon,(d=E==null?void 0:E.classNames)==null?void 0:d.icon)},E.promise||E.type==="loading"&&!E.icon?E.icon||qi():null,E.type!=="loading"?E.icon||(G==null?void 0:G[vt])||H0(vt):null):null,J.createElement("div",{"data-content":"",className:rn(B==null?void 0:B.content,(f=E==null?void 0:E.classNames)==null?void 0:f.content)},J.createElement("div",{"data-title":"",className:rn(B==null?void 0:B.title,(h=E==null?void 0:E.classNames)==null?void 0:h.title)},typeof E.title=="function"?E.title():E.title),E.description?J.createElement("div",{"data-description":"",className:rn(U,Gi,B==null?void 0:B.description,(g=E==null?void 0:E.classNames)==null?void 0:g.description)},typeof E.description=="function"?E.description():E.description):null),v.isValidElement(E.cancel)?E.cancel:E.cancel&&il(E.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:E.cancelButtonStyle||de,onClick:Ee=>{var Oe,Ae;il(E.cancel)&&mn&&((Ae=(Oe=E.cancel).onClick)==null||Ae.call(Oe,Ee),Yt())},className:rn(B==null?void 0:B.cancelButton,(y=E==null?void 0:E.classNames)==null?void 0:y.cancelButton)},E.cancel.label):null,v.isValidElement(E.action)?E.action:E.action&&il(E.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:E.actionButtonStyle||he,onClick:Ee=>{var Oe,Ae;il(E.action)&&((Ae=(Oe=E.action).onClick)==null||Ae.call(Oe,Ee),!Ee.defaultPrevented&&Yt())},className:rn(B==null?void 0:B.actionButton,(w=E==null?void 0:E.classNames)==null?void 0:w.actionButton)},E.action.label):null))};function um(){if(typeof window>"u"||typeof document>"u")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function gw(n,r){let i={};return[n,r].forEach((s,a)=>{let u=a===1,d=u?"--mobile-offset":"--offset",f=u?uw:aw;function h(g){["top","right","bottom","left"].forEach(y=>{i[`${d}-${y}`]=typeof g=="number"?`${g}px`:g})}typeof s=="number"||typeof s=="string"?h(s):typeof s=="object"?["top","right","bottom","left"].forEach(g=>{s[g]===void 0?i[`${d}-${g}`]=f:i[`${d}-${g}`]=typeof s[g]=="number"?`${s[g]}px`:s[g]}):h(f)}),i}var vw=v.forwardRef(function(n,r){let{invert:i,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:u,closeButton:d,className:f,offset:h,mobileOffset:g,theme:y="light",richColors:w,duration:b,style:E,visibleToasts:N=lw,toastOptions:S,dir:C=um(),gap:O=dw,loadingIcon:P,icons:T,containerAriaLabel:L="Notifications",pauseWhenPageIsHidden:$}=n,[V,W]=J.useState([]),ie=J.useMemo(()=>Array.from(new Set([s].concat(V.filter(F=>F.position).map(F=>F.position)))),[V,s]),[le,de]=J.useState([]),[he,Z]=J.useState(!1),[U,te]=J.useState(!1),[q,ee]=J.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),oe=J.useRef(null),z=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=J.useRef(null),G=J.useRef(!1),j=J.useCallback(F=>{W(ne=>{var re;return(re=ne.find(me=>me.id===F.id))!=null&&re.delete||Tt.dismiss(F.id),ne.filter(({id:me})=>me!==F.id)})},[]);return J.useEffect(()=>Tt.subscribe(F=>{if(F.dismiss){W(ne=>ne.map(re=>re.id===F.id?{...re,delete:!0}:re));return}setTimeout(()=>{lh.flushSync(()=>{W(ne=>{let re=ne.findIndex(me=>me.id===F.id);return re!==-1?[...ne.slice(0,re),{...ne[re],...F},...ne.slice(re+1)]:[F,...ne]})})})}),[]),J.useEffect(()=>{if(y!=="system"){ee(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ee("dark"):ee("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:ne})=>{ee(ne?"dark":"light")})}catch{F.addListener(({matches:re})=>{try{ee(re?"dark":"light")}catch(me){console.error(me)}})}},[y]),J.useEffect(()=>{V.length<=1&&Z(!1)},[V]),J.useEffect(()=>{let F=ne=>{var re,me;a.every(xe=>ne[xe]||ne.code===xe)&&(Z(!0),(re=oe.current)==null||re.focus()),ne.code==="Escape"&&(document.activeElement===oe.current||(me=oe.current)!=null&&me.contains(document.activeElement))&&Z(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[a]),J.useEffect(()=>{if(oe.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,G.current=!1)}},[oe.current]),J.createElement("section",{ref:r,"aria-label":`${L} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ie.map((F,ne)=>{var re;let[me,xe]=F.split("-");return V.length?J.createElement("ol",{key:F,dir:C==="auto"?um():C,tabIndex:-1,ref:oe,className:f,"data-sonner-toaster":!0,"data-theme":q,"data-y-position":me,"data-lifted":he&&V.length>1&&!u,"data-x-position":xe,style:{"--front-toast-height":`${((re=le[0])==null?void 0:re.height)||0}px`,"--width":`${cw}px`,"--gap":`${O}px`,...E,...gw(h,g)},onBlur:Q=>{G.current&&!Q.currentTarget.contains(Q.relatedTarget)&&(G.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||G.current||(G.current=!0,B.current=Q.relatedTarget)},onMouseEnter:()=>Z(!0),onMouseMove:()=>Z(!0),onMouseLeave:()=>{U||Z(!1)},onDragEnd:()=>Z(!1),onPointerDown:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||te(!0)},onPointerUp:()=>te(!1)},V.filter(Q=>!Q.position&&ne===0||Q.position===F).map((Q,pe)=>{var we,Ce;return J.createElement(hw,{key:Q.id,icons:T,index:pe,toast:Q,defaultRichColors:w,duration:(we=S==null?void 0:S.duration)!=null?we:b,className:S==null?void 0:S.className,descriptionClassName:S==null?void 0:S.descriptionClassName,invert:i,visibleToasts:N,closeButton:(Ce=S==null?void 0:S.closeButton)!=null?Ce:d,interacting:U,position:F,style:S==null?void 0:S.style,unstyled:S==null?void 0:S.unstyled,classNames:S==null?void 0:S.classNames,cancelButtonStyle:S==null?void 0:S.cancelButtonStyle,actionButtonStyle:S==null?void 0:S.actionButtonStyle,removeToast:j,toasts:V.filter(Ne=>Ne.position==Q.position),heights:le.filter(Ne=>Ne.position==Q.position),setHeights:de,expandByDefault:u,gap:O,loadingIcon:P,expanded:he,pauseWhenPageIsHidden:$,swipeDirections:n.swipeDirections})})):null}))});const zc="oas-admin-auth";function yh(){try{const n=sessionStorage.getItem(zc);return n?JSON.parse(n):null}catch{return null}}function yw(n){sessionStorage.setItem(zc,JSON.stringify(n))}function xh(){sessionStorage.removeItem(zc)}function cm(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function Uc(...n){return r=>{let i=!1;const s=n.map(a=>{const u=cm(a,r);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let a=0;a<s.length;a++){const u=s[a];typeof u=="function"?u():cm(n[a],null)}}}}function qe(...n){return v.useCallback(Uc(...n),n)}var xw=Symbol.for("react.lazy"),Cl=Il[" use ".trim().toString()];function ww(n){return typeof n=="object"&&n!==null&&"then"in n}function wh(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===xw&&"_payload"in n&&ww(n._payload)}function Sw(n){const r=Ew(n),i=v.forwardRef((s,a)=>{let{children:u,...d}=s;wh(u)&&typeof Cl=="function"&&(u=Cl(u._payload));const f=v.Children.toArray(u),h=f.find(bw);if(h){const g=h.props.children,y=f.map(w=>w===h?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:w);return m.jsx(r,{...d,ref:a,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return m.jsx(r,{...d,ref:a,children:u})});return i.displayName=`${n}.Slot`,i}function Ew(n){const r=v.forwardRef((i,s)=>{let{children:a,...u}=i;if(wh(a)&&typeof Cl=="function"&&(a=Cl(a._payload)),v.isValidElement(a)){const d=Rw(a),f=Nw(u,a.props);return a.type!==v.Fragment&&(f.ref=s?Uc(s,d):d),v.cloneElement(a,f)}return v.Children.count(a)>1?v.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var Cw=Symbol("radix.slottable");function bw(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Cw}function Nw(n,r){const i={...r};for(const s in r){const a=n[s],u=r[s];/^on[A-Z]/.test(s)?a&&u?i[s]=(...f)=>{const h=u(...f);return a(...f),h}:a&&(i[s]=a):s==="style"?i[s]={...a,...u}:s==="className"&&(i[s]=[a,u].filter(Boolean).join(" "))}return{...n,...i}}function Rw(n){var s,a;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var kw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Sh=kw.reduce((n,r)=>{const i=Sw(`Primitive.${r}`),s=v.forwardRef((a,u)=>{const{asChild:d,...f}=a,h=d?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(h,{...f,ref:u})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{}),Pw="Separator",dm="horizontal",Tw=["horizontal","vertical"],Eh=v.forwardRef((n,r)=>{const{decorative:i,orientation:s=dm,...a}=n,u=jw(s)?s:dm,f=i?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return m.jsx(Sh.div,{"data-orientation":u,...f,...a,ref:r})});Eh.displayName=Pw;function jw(n){return Tw.includes(n)}var Ch=Eh;function bh(n){var r,i,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(r=0;r<a;r++)n[r]&&(i=bh(n[r]))&&(s&&(s+=" "),s+=i)}else for(i in n)n[i]&&(s&&(s+=" "),s+=i);return s}function Nh(){for(var n,r,i=0,s="",a=arguments.length;i<a;i++)(n=arguments[i])&&(r=bh(n))&&(s&&(s+=" "),s+=r);return s}const Bc="-",Ow=n=>{const r=Aw(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{const f=d.split(Bc);return f[0]===""&&f.length!==1&&f.shift(),Rh(f,r)||_w(d)},getConflictingClassGroupIds:(d,f)=>{const h=i[d]||[];return f&&s[d]?[...h,...s[d]]:h}}},Rh=(n,r)=>{var d;if(n.length===0)return r.classGroupId;const i=n[0],s=r.nextPart.get(i),a=s?Rh(n.slice(1),s):void 0;if(a)return a;if(r.validators.length===0)return;const u=n.join(Bc);return(d=r.validators.find(({validator:f})=>f(u)))==null?void 0:d.classGroupId},fm=/^\[(.+)\]$/,_w=n=>{if(fm.test(n)){const r=fm.exec(n)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},Aw=n=>{const{theme:r,prefix:i}=n,s={nextPart:new Map,validators:[]};return Iw(Object.entries(n.classGroups),i).forEach(([u,d])=>{gc(d,s,u,r)}),s},gc=(n,r,i,s)=>{n.forEach(a=>{if(typeof a=="string"){const u=a===""?r:pm(r,a);u.classGroupId=i;return}if(typeof a=="function"){if(Lw(a)){gc(a(s),r,i,s);return}r.validators.push({validator:a,classGroupId:i});return}Object.entries(a).forEach(([u,d])=>{gc(d,pm(r,u),i,s)})})},pm=(n,r)=>{let i=n;return r.split(Bc).forEach(s=>{i.nextPart.has(s)||i.nextPart.set(s,{nextPart:new Map,validators:[]}),i=i.nextPart.get(s)}),i},Lw=n=>n.isThemeGetter,Iw=(n,r)=>r?n.map(([i,s])=>{const a=s.map(u=>typeof u=="string"?r+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([d,f])=>[r+d,f])):u);return[i,a]}):n,Dw=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,s=new Map;const a=(u,d)=>{i.set(u,d),r++,r>n&&(r=0,s=i,i=new Map)};return{get(u){let d=i.get(u);if(d!==void 0)return d;if((d=s.get(u))!==void 0)return a(u,d),d},set(u,d){i.has(u)?i.set(u,d):a(u,d)}}},kh="!",Mw=n=>{const{separator:r,experimentalParseClassName:i}=n,s=r.length===1,a=r[0],u=r.length,d=f=>{const h=[];let g=0,y=0,w;for(let C=0;C<f.length;C++){let O=f[C];if(g===0){if(O===a&&(s||f.slice(C,C+u)===r)){h.push(f.slice(y,C)),y=C+u;continue}if(O==="/"){w=C;continue}}O==="["?g++:O==="]"&&g--}const b=h.length===0?f:f.substring(y),E=b.startsWith(kh),N=E?b.substring(1):b,S=w&&w>y?w-y:void 0;return{modifiers:h,hasImportantModifier:E,baseClassName:N,maybePostfixModifierPosition:S}};return i?f=>i({className:f,parseClassName:d}):d},Fw=n=>{if(n.length<=1)return n;const r=[];let i=[];return n.forEach(s=>{s[0]==="["?(r.push(...i.sort(),s),i=[]):i.push(s)}),r.push(...i.sort()),r},zw=n=>({cache:Dw(n.cacheSize),parseClassName:Mw(n),...Ow(n)}),Uw=/\s+/,Bw=(n,r)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:a}=r,u=[],d=n.trim().split(Uw);let f="";for(let h=d.length-1;h>=0;h-=1){const g=d[h],{modifiers:y,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:E}=i(g);let N=!!E,S=s(N?b.substring(0,E):b);if(!S){if(!N){f=g+(f.length>0?" "+f:f);continue}if(S=s(b),!S){f=g+(f.length>0?" "+f:f);continue}N=!1}const C=Fw(y).join(":"),O=w?C+kh:C,P=O+S;if(u.includes(P))continue;u.push(P);const T=a(S,N);for(let L=0;L<T.length;++L){const $=T[L];u.push(O+$)}f=g+(f.length>0?" "+f:f)}return f};function $w(){let n=0,r,i,s="";for(;n<arguments.length;)(r=arguments[n++])&&(i=Ph(r))&&(s&&(s+=" "),s+=i);return s}const Ph=n=>{if(typeof n=="string")return n;let r,i="";for(let s=0;s<n.length;s++)n[s]&&(r=Ph(n[s]))&&(i&&(i+=" "),i+=r);return i};function Ww(n,...r){let i,s,a,u=d;function d(h){const g=r.reduce((y,w)=>w(y),n());return i=zw(g),s=i.cache.get,a=i.cache.set,u=f,f(h)}function f(h){const g=s(h);if(g)return g;const y=Bw(h,i);return a(h,y),y}return function(){return u($w.apply(null,arguments))}}const Fe=n=>{const r=i=>i[n]||[];return r.isThemeGetter=!0,r},Th=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vw=/^\d+\/\d+$/,Hw=new Set(["px","full","screen"]),Kw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gw=/\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$/,Yw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fn=n=>Po(n)||Hw.has(n)||Vw.test(n),pr=n=>Bo(n,"length",oS),Po=n=>!!n&&!Number.isNaN(Number(n)),Yu=n=>Bo(n,"number",Po),Ti=n=>!!n&&Number.isInteger(Number(n)),Xw=n=>n.endsWith("%")&&Po(n.slice(0,-1)),be=n=>Th.test(n),mr=n=>Kw.test(n),Jw=new Set(["length","size","percentage"]),Zw=n=>Bo(n,Jw,jh),eS=n=>Bo(n,"position",jh),tS=new Set(["image","url"]),nS=n=>Bo(n,tS,sS),rS=n=>Bo(n,"",iS),ji=()=>!0,Bo=(n,r,i)=>{const s=Th.exec(n);return s?s[1]?typeof r=="string"?s[1]===r:r.has(s[1]):i(s[2]):!1},oS=n=>Gw.test(n)&&!Yw.test(n),jh=()=>!1,iS=n=>Qw.test(n),sS=n=>qw.test(n),lS=()=>{const n=Fe("colors"),r=Fe("spacing"),i=Fe("blur"),s=Fe("brightness"),a=Fe("borderColor"),u=Fe("borderRadius"),d=Fe("borderSpacing"),f=Fe("borderWidth"),h=Fe("contrast"),g=Fe("grayscale"),y=Fe("hueRotate"),w=Fe("invert"),b=Fe("gap"),E=Fe("gradientColorStops"),N=Fe("gradientColorStopPositions"),S=Fe("inset"),C=Fe("margin"),O=Fe("opacity"),P=Fe("padding"),T=Fe("saturate"),L=Fe("scale"),$=Fe("sepia"),V=Fe("skew"),W=Fe("space"),ie=Fe("translate"),le=()=>["auto","contain","none"],de=()=>["auto","hidden","clip","visible","scroll"],he=()=>["auto",be,r],Z=()=>[be,r],U=()=>["",Fn,pr],te=()=>["auto",Po,be],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ee=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",be],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[Po,be];return{cacheSize:500,separator:":",theme:{colors:[ji],spacing:[Fn,pr],blur:["none","",mr,be],brightness:j(),borderColor:[n],borderRadius:["none","","full",mr,be],borderSpacing:Z(),borderWidth:U(),contrast:j(),grayscale:B(),hueRotate:j(),invert:B(),gap:Z(),gradientColorStops:[n],gradientColorStopPositions:[Xw,pr],inset:he(),margin:he(),opacity:j(),padding:Z(),saturate:j(),scale:j(),sepia:B(),skew:j(),space:Z(),translate:Z()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[mr]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),be]}],overflow:[{overflow:de()}],"overflow-x":[{"overflow-x":de()}],"overflow-y":[{"overflow-y":de()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ti,be]}],basis:[{basis:he()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Ti,be]}],"grid-cols":[{"grid-cols":[ji]}],"col-start-end":[{col:["auto",{span:["full",Ti,be]},be]}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":[ji]}],"row-start-end":[{row:["auto",{span:[Ti,be]},be]}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[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:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[W]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[W]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",be,r]}],"min-w":[{"min-w":[be,r,"min","max","fit"]}],"max-w":[{"max-w":[be,r,"none","full","min","max","fit","prose",{screen:[mr]},mr]}],h:[{h:[be,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[be,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[be,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[be,r,"auto","min","max","fit"]}],"font-size":[{text:["base",mr,pr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yu]}],"font-family":[{font:[ji]}],"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",be]}],"line-clamp":[{"line-clamp":["none",Po,Yu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Fn,be]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Fn,pr]}],"underline-offset":[{"underline-offset":["auto",Fn,be]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],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",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),eS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nS]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[E]}],"gradient-via":[{via:[E]}],"gradient-to":[{to:[E]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...ee(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:ee()}],"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:["",...ee()]}],"outline-offset":[{"outline-offset":[Fn,be]}],"outline-w":[{outline:[Fn,pr]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[Fn,pr]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",mr,rS]}],"shadow-color":[{shadow:[ji]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[s]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",mr,be]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[w]}],saturate:[{saturate:[T]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[Ti,be]}],"translate-x":[{"translate-x":[ie]}],"translate-y":[{"translate-y":[ie]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",n]}],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",be]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"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",be]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[Fn,pr,Yu]}],stroke:[{stroke:[n,"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"]}}},aS=Ww(lS);function Te(...n){return aS(Nh(n))}function bl(n){return n?new Date(n).toLocaleString():"—"}function uS(n){if(!n)return"—";const r=new Date(n),s=Date.now()-r.getTime(),a=Math.floor(s/1e3);if(a<60)return"just now";const u=Math.floor(a/60);if(u<60)return`${u}m ago`;const d=Math.floor(u/60);return d<24?`${d}h ago`:`${Math.floor(d/24)}d ago`}const vc=v.forwardRef(({className:n,orientation:r="horizontal",decorative:i=!0,...s},a)=>m.jsx(Ch,{ref:a,decorative:i,orientation:r,className:Te("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...s}));vc.displayName=Ch.displayName;const mm=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,hm=Nh,Oh=(n,r)=>i=>{var s;if((r==null?void 0:r.variants)==null)return hm(n,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:a,defaultVariants:u}=r,d=Object.keys(a).map(g=>{const y=i==null?void 0:i[g],w=u==null?void 0:u[g];if(y===null)return null;const b=mm(y)||mm(w);return a[g][b]}),f=i&&Object.entries(i).reduce((g,y)=>{let[w,b]=y;return b===void 0||(g[w]=b),g},{}),h=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((g,y)=>{let{class:w,className:b,...E}=y;return Object.entries(E).every(N=>{let[S,C]=N;return Array.isArray(C)?C.includes({...u,...f}[S]):{...u,...f}[S]===C})?[...g,w,b]:g},[]);return hm(n,d,h,i==null?void 0:i.class,i==null?void 0:i.className)},cS=Oh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md 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-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary 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"}}),Be=v.forwardRef(({className:n,variant:r,size:i,...s},a)=>m.jsx("button",{className:Te(cS({variant:r,size:i,className:n})),ref:a,...s}));Be.displayName="Button";const dS=[{to:"/dashboard",icon:"ri-dashboard-line",label:"Dashboard"},{to:"/groups",icon:"ri-group-line",label:"Groups"},{to:"/oas",icon:"ri-file-code-line",label:"OAS Entries"},{to:"/tokens",icon:"ri-key-line",label:"Tokens"}];function fS(){const n=Fl();function r(){xh(),n("/login",{replace:!0})}return m.jsxs("div",{className:"flex h-screen overflow-hidden bg-background",children:[m.jsxs("aside",{className:"flex w-56 flex-col bg-sidebar text-sidebar-foreground border-r border-sidebar-border",children:[m.jsxs("div",{className:"flex h-14 items-center gap-2 px-4",children:[m.jsx("i",{className:"ri-hexagon-line text-xl text-violet-400"}),m.jsx("span",{className:"font-semibold text-sm tracking-tight",children:"OAS Gateway"}),m.jsx("span",{className:"ml-auto text-xs text-sidebar-foreground/40",children:"Admin"})]}),m.jsx(vc,{className:"bg-sidebar-border"}),m.jsx("nav",{className:"flex flex-col gap-1 p-2 flex-1",children:dS.map(({to:i,icon:s,label:a})=>m.jsxs(B0,{to:i,className:({isActive:u})=>Te("flex items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors",u?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground"),children:[m.jsx("i",{className:Te(s,"text-base")}),a]},i))}),m.jsx(vc,{className:"bg-sidebar-border"}),m.jsx("div",{className:"p-2",children:m.jsxs(Be,{variant:"ghost",size:"sm",className:"w-full justify-start gap-3 text-sidebar-foreground/70 hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground",onClick:r,children:[m.jsx("i",{className:"ri-logout-box-line text-base"}),"Logout"]})})]}),m.jsx("main",{className:"flex-1 overflow-auto",children:m.jsx(P0,{})})]})}function _h(n,r){return function(){return n.apply(r,arguments)}}const{toString:pS}=Object.prototype,{getPrototypeOf:$c}=Object,{iterator:Ul,toStringTag:Ah}=Symbol,Bl=(n=>r=>{const i=pS.call(r);return n[i]||(n[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),un=n=>(n=n.toLowerCase(),r=>Bl(r)===n),$l=n=>r=>typeof r===n,{isArray:$o}=Array,Io=$l("undefined");function zi(n){return n!==null&&!Io(n)&&n.constructor!==null&&!Io(n.constructor)&&jt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Lh=un("ArrayBuffer");function mS(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&Lh(n.buffer),r}const hS=$l("string"),jt=$l("function"),Ih=$l("number"),Ui=n=>n!==null&&typeof n=="object",gS=n=>n===!0||n===!1,ml=n=>{if(Bl(n)!=="object")return!1;const r=$c(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Ah in n)&&!(Ul in n)},vS=n=>{if(!Ui(n)||zi(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},yS=un("Date"),xS=un("File"),wS=n=>!!(n&&typeof n.uri<"u"),SS=n=>n&&typeof n.getParts<"u",ES=un("Blob"),CS=un("FileList"),bS=n=>Ui(n)&&jt(n.pipe);function NS(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const gm=NS(),vm=typeof gm.FormData<"u"?gm.FormData:void 0,RS=n=>{let r;return n&&(vm&&n instanceof vm||jt(n.append)&&((r=Bl(n))==="formdata"||r==="object"&&jt(n.toString)&&n.toString()==="[object FormData]"))},kS=un("URLSearchParams"),[PS,TS,jS,OS]=["ReadableStream","Request","Response","Headers"].map(un),_S=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bi(n,r,{allOwnKeys:i=!1}={}){if(n===null||typeof n>"u")return;let s,a;if(typeof n!="object"&&(n=[n]),$o(n))for(s=0,a=n.length;s<a;s++)r.call(null,n[s],s,n);else{if(zi(n))return;const u=i?Object.getOwnPropertyNames(n):Object.keys(n),d=u.length;let f;for(s=0;s<d;s++)f=u[s],r.call(null,n[f],f,n)}}function Dh(n,r){if(zi(n))return null;r=r.toLowerCase();const i=Object.keys(n);let s=i.length,a;for(;s-- >0;)if(a=i[s],r===a.toLowerCase())return a;return null}const Br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mh=n=>!Io(n)&&n!==Br;function yc(){const{caseless:n,skipUndefined:r}=Mh(this)&&this||{},i={},s=(a,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=n&&Dh(i,u)||u;ml(i[d])&&ml(a)?i[d]=yc(i[d],a):ml(a)?i[d]=yc({},a):$o(a)?i[d]=a.slice():(!r||!Io(a))&&(i[d]=a)};for(let a=0,u=arguments.length;a<u;a++)arguments[a]&&Bi(arguments[a],s);return i}const AS=(n,r,i,{allOwnKeys:s}={})=>(Bi(r,(a,u)=>{i&&jt(a)?Object.defineProperty(n,u,{value:_h(a,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,u,{value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),n),LS=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),IS=(n,r,i,s)=>{n.prototype=Object.create(r.prototype,s),Object.defineProperty(n.prototype,"constructor",{value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{value:r.prototype}),i&&Object.assign(n.prototype,i)},DS=(n,r,i,s)=>{let a,u,d;const f={};if(r=r||{},n==null)return r;do{for(a=Object.getOwnPropertyNames(n),u=a.length;u-- >0;)d=a[u],(!s||s(d,n,r))&&!f[d]&&(r[d]=n[d],f[d]=!0);n=i!==!1&&$c(n)}while(n&&(!i||i(n,r))&&n!==Object.prototype);return r},MS=(n,r,i)=>{n=String(n),(i===void 0||i>n.length)&&(i=n.length),i-=r.length;const s=n.indexOf(r,i);return s!==-1&&s===i},FS=n=>{if(!n)return null;if($o(n))return n;let r=n.length;if(!Ih(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=n[r];return i},zS=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&$c(Uint8Array)),US=(n,r)=>{const s=(n&&n[Ul]).call(n);let a;for(;(a=s.next())&&!a.done;){const u=a.value;r.call(n,u[0],u[1])}},BS=(n,r)=>{let i;const s=[];for(;(i=n.exec(r))!==null;)s.push(i);return s},$S=un("HTMLFormElement"),WS=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,s,a){return s.toUpperCase()+a}),ym=(({hasOwnProperty:n})=>(r,i)=>n.call(r,i))(Object.prototype),VS=un("RegExp"),Fh=(n,r)=>{const i=Object.getOwnPropertyDescriptors(n),s={};Bi(i,(a,u)=>{let d;(d=r(a,u,n))!==!1&&(s[u]=d||a)}),Object.defineProperties(n,s)},HS=n=>{Fh(n,(r,i)=>{if(jt(n)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const s=n[i];if(jt(s)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},KS=(n,r)=>{const i={},s=a=>{a.forEach(u=>{i[u]=!0})};return $o(n)?s(n):s(String(n).split(r)),i},GS=()=>{},YS=(n,r)=>n!=null&&Number.isFinite(n=+n)?n:r;function QS(n){return!!(n&&jt(n.append)&&n[Ah]==="FormData"&&n[Ul])}const qS=n=>{const r=new Array(10),i=(s,a)=>{if(Ui(s)){if(r.indexOf(s)>=0)return;if(zi(s))return s;if(!("toJSON"in s)){r[a]=s;const u=$o(s)?[]:{};return Bi(s,(d,f)=>{const h=i(d,a+1);!Io(h)&&(u[f]=h)}),r[a]=void 0,u}}return s};return i(n,0)},XS=un("AsyncFunction"),JS=n=>n&&(Ui(n)||jt(n))&&jt(n.then)&&jt(n.catch),zh=((n,r)=>n?setImmediate:r?((i,s)=>(Br.addEventListener("message",({source:a,data:u})=>{a===Br&&u===i&&s.length&&s.shift()()},!1),a=>{s.push(a),Br.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",jt(Br.postMessage)),ZS=typeof queueMicrotask<"u"?queueMicrotask.bind(Br):typeof process<"u"&&process.nextTick||zh,e1=n=>n!=null&&jt(n[Ul]),M={isArray:$o,isArrayBuffer:Lh,isBuffer:zi,isFormData:RS,isArrayBufferView:mS,isString:hS,isNumber:Ih,isBoolean:gS,isObject:Ui,isPlainObject:ml,isEmptyObject:vS,isReadableStream:PS,isRequest:TS,isResponse:jS,isHeaders:OS,isUndefined:Io,isDate:yS,isFile:xS,isReactNativeBlob:wS,isReactNative:SS,isBlob:ES,isRegExp:VS,isFunction:jt,isStream:bS,isURLSearchParams:kS,isTypedArray:zS,isFileList:CS,forEach:Bi,merge:yc,extend:AS,trim:_S,stripBOM:LS,inherits:IS,toFlatObject:DS,kindOf:Bl,kindOfTest:un,endsWith:MS,toArray:FS,forEachEntry:US,matchAll:BS,isHTMLForm:$S,hasOwnProperty:ym,hasOwnProp:ym,reduceDescriptors:Fh,freezeMethods:HS,toObjectSet:KS,toCamelCase:WS,noop:GS,toFiniteNumber:YS,findKey:Dh,global:Br,isContextDefined:Mh,isSpecCompliantForm:QS,toJSONObject:qS,isAsyncFn:XS,isThenable:JS,setImmediate:zh,asap:ZS,isIterable:e1};let ye=class Uh extends Error{static from(r,i,s,a,u,d){const f=new Uh(r.message,i||r.code,s,a,u);return f.cause=r,f.name=r.name,r.status!=null&&f.status==null&&(f.status=r.status),d&&Object.assign(f,d),f}constructor(r,i,s,a,u){super(r),Object.defineProperty(this,"message",{value:r,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),s&&(this.config=s),a&&(this.request=a),u&&(this.response=u,this.status=u.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}};ye.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ye.ERR_BAD_OPTION="ERR_BAD_OPTION";ye.ECONNABORTED="ECONNABORTED";ye.ETIMEDOUT="ETIMEDOUT";ye.ERR_NETWORK="ERR_NETWORK";ye.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ye.ERR_DEPRECATED="ERR_DEPRECATED";ye.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ye.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ye.ERR_CANCELED="ERR_CANCELED";ye.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ye.ERR_INVALID_URL="ERR_INVALID_URL";const t1=null;function xc(n){return M.isPlainObject(n)||M.isArray(n)}function Bh(n){return M.endsWith(n,"[]")?n.slice(0,-2):n}function Qu(n,r,i){return n?n.concat(r).map(function(a,u){return a=Bh(a),!i&&u?"["+a+"]":a}).join(i?".":""):r}function n1(n){return M.isArray(n)&&!n.some(xc)}const r1=M.toFlatObject(M,{},null,function(r){return/^is[A-Z]/.test(r)});function Wl(n,r,i){if(!M.isObject(n))throw new TypeError("target must be an object");r=r||new FormData,i=M.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,C){return!M.isUndefined(C[S])});const s=i.metaTokens,a=i.visitor||y,u=i.dots,d=i.indexes,h=(i.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(r);if(!M.isFunction(a))throw new TypeError("visitor must be a function");function g(N){if(N===null)return"";if(M.isDate(N))return N.toISOString();if(M.isBoolean(N))return N.toString();if(!h&&M.isBlob(N))throw new ye("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(N)||M.isTypedArray(N)?h&&typeof Blob=="function"?new Blob([N]):Buffer.from(N):N}function y(N,S,C){let O=N;if(M.isReactNative(r)&&M.isReactNativeBlob(N))return r.append(Qu(C,S,u),g(N)),!1;if(N&&!C&&typeof N=="object"){if(M.endsWith(S,"{}"))S=s?S:S.slice(0,-2),N=JSON.stringify(N);else if(M.isArray(N)&&n1(N)||(M.isFileList(N)||M.endsWith(S,"[]"))&&(O=M.toArray(N)))return S=Bh(S),O.forEach(function(T,L){!(M.isUndefined(T)||T===null)&&r.append(d===!0?Qu([S],L,u):d===null?S:S+"[]",g(T))}),!1}return xc(N)?!0:(r.append(Qu(C,S,u),g(N)),!1)}const w=[],b=Object.assign(r1,{defaultVisitor:y,convertValue:g,isVisitable:xc});function E(N,S){if(!M.isUndefined(N)){if(w.indexOf(N)!==-1)throw Error("Circular reference detected in "+S.join("."));w.push(N),M.forEach(N,function(O,P){(!(M.isUndefined(O)||O===null)&&a.call(r,O,M.isString(P)?P.trim():P,S,b))===!0&&E(O,S?S.concat(P):[P])}),w.pop()}}if(!M.isObject(n))throw new TypeError("data must be an object");return E(n),r}function xm(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(s){return r[s]})}function Wc(n,r){this._pairs=[],n&&Wl(n,this,r)}const $h=Wc.prototype;$h.append=function(r,i){this._pairs.push([r,i])};$h.toString=function(r){const i=r?function(s){return r.call(this,s,xm)}:xm;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function o1(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wh(n,r,i){if(!r)return n;const s=i&&i.encode||o1,a=M.isFunction(i)?{serialize:i}:i,u=a&&a.serialize;let d;if(u?d=u(r,a):d=M.isURLSearchParams(r)?r.toString():new Wc(r,a).toString(s),d){const f=n.indexOf("#");f!==-1&&(n=n.slice(0,f)),n+=(n.indexOf("?")===-1?"?":"&")+d}return n}class wm{constructor(){this.handlers=[]}use(r,i,s){return this.handlers.push({fulfilled:r,rejected:i,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){M.forEach(this.handlers,function(s){s!==null&&r(s)})}}const Vc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},i1=typeof URLSearchParams<"u"?URLSearchParams:Wc,s1=typeof FormData<"u"?FormData:null,l1=typeof Blob<"u"?Blob:null,a1={isBrowser:!0,classes:{URLSearchParams:i1,FormData:s1,Blob:l1},protocols:["http","https","file","blob","url","data"]},Hc=typeof window<"u"&&typeof document<"u",wc=typeof navigator=="object"&&navigator||void 0,u1=Hc&&(!wc||["ReactNative","NativeScript","NS"].indexOf(wc.product)<0),c1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",d1=Hc&&window.location.href||"http://localhost",f1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hc,hasStandardBrowserEnv:u1,hasStandardBrowserWebWorkerEnv:c1,navigator:wc,origin:d1},Symbol.toStringTag,{value:"Module"})),ht={...f1,...a1};function p1(n,r){return Wl(n,new ht.classes.URLSearchParams,{visitor:function(i,s,a,u){return ht.isNode&&M.isBuffer(i)?(this.append(s,i.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)},...r})}function m1(n){return M.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function h1(n){const r={},i=Object.keys(n);let s;const a=i.length;let u;for(s=0;s<a;s++)u=i[s],r[u]=n[u];return r}function Vh(n){function r(i,s,a,u){let d=i[u++];if(d==="__proto__")return!0;const f=Number.isFinite(+d),h=u>=i.length;return d=!d&&M.isArray(a)?a.length:d,h?(M.hasOwnProp(a,d)?a[d]=[a[d],s]:a[d]=s,!f):((!a[d]||!M.isObject(a[d]))&&(a[d]=[]),r(i,s,a[d],u)&&M.isArray(a[d])&&(a[d]=h1(a[d])),!f)}if(M.isFormData(n)&&M.isFunction(n.entries)){const i={};return M.forEachEntry(n,(s,a)=>{r(m1(s),a,i,0)}),i}return null}function g1(n,r,i){if(M.isString(n))try{return(r||JSON.parse)(n),M.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(i||JSON.stringify)(n)}const $i={transitional:Vc,adapter:["xhr","http","fetch"],transformRequest:[function(r,i){const s=i.getContentType()||"",a=s.indexOf("application/json")>-1,u=M.isObject(r);if(u&&M.isHTMLForm(r)&&(r=new FormData(r)),M.isFormData(r))return a?JSON.stringify(Vh(r)):r;if(M.isArrayBuffer(r)||M.isBuffer(r)||M.isStream(r)||M.isFile(r)||M.isBlob(r)||M.isReadableStream(r))return r;if(M.isArrayBufferView(r))return r.buffer;if(M.isURLSearchParams(r))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let f;if(u){if(s.indexOf("application/x-www-form-urlencoded")>-1)return p1(r,this.formSerializer).toString();if((f=M.isFileList(r))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Wl(f?{"files[]":r}:r,h&&new h,this.formSerializer)}}return u||a?(i.setContentType("application/json",!1),g1(r)):r}],transformResponse:[function(r){const i=this.transitional||$i.transitional,s=i&&i.forcedJSONParsing,a=this.responseType==="json";if(M.isResponse(r)||M.isReadableStream(r))return r;if(r&&M.isString(r)&&(s&&!this.responseType||a)){const d=!(i&&i.silentJSONParsing)&&a;try{return JSON.parse(r,this.parseReviver)}catch(f){if(d)throw f.name==="SyntaxError"?ye.from(f,ye.ERR_BAD_RESPONSE,this,null,this.response):f}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],n=>{$i.headers[n]={}});const v1=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),y1=n=>{const r={};let i,s,a;return n&&n.split(`
|
|
69
|
-
`).forEach(function(d){a=d.indexOf(":"),i=d.substring(0,a).trim().toLowerCase(),s=d.substring(a+1).trim(),!(!i||r[i]&&v1[i])&&(i==="set-cookie"?r[i]?r[i].push(s):r[i]=[s]:r[i]=r[i]?r[i]+", "+s:s)}),r},Sm=Symbol("internals");function Oi(n){return n&&String(n).trim().toLowerCase()}function hl(n){return n===!1||n==null?n:M.isArray(n)?n.map(hl):String(n)}function x1(n){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=i.exec(n);)r[s[1]]=s[2];return r}const w1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function qu(n,r,i,s,a){if(M.isFunction(s))return s.call(this,r,i);if(a&&(r=i),!!M.isString(r)){if(M.isString(s))return r.indexOf(s)!==-1;if(M.isRegExp(s))return s.test(r)}}function S1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,s)=>i.toUpperCase()+s)}function E1(n,r){const i=M.toCamelCase(" "+r);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+i,{value:function(a,u,d){return this[s].call(this,r,a,u,d)},configurable:!0})})}let Ot=class{constructor(r){r&&this.set(r)}set(r,i,s){const a=this;function u(f,h,g){const y=Oi(h);if(!y)throw new Error("header name must be a non-empty string");const w=M.findKey(a,y);(!w||a[w]===void 0||g===!0||g===void 0&&a[w]!==!1)&&(a[w||h]=hl(f))}const d=(f,h)=>M.forEach(f,(g,y)=>u(g,y,h));if(M.isPlainObject(r)||r instanceof this.constructor)d(r,i);else if(M.isString(r)&&(r=r.trim())&&!w1(r))d(y1(r),i);else if(M.isObject(r)&&M.isIterable(r)){let f={},h,g;for(const y of r){if(!M.isArray(y))throw TypeError("Object iterator must return a key-value pair");f[g=y[0]]=(h=f[g])?M.isArray(h)?[...h,y[1]]:[h,y[1]]:y[1]}d(f,i)}else r!=null&&u(i,r,s);return this}get(r,i){if(r=Oi(r),r){const s=M.findKey(this,r);if(s){const a=this[s];if(!i)return a;if(i===!0)return x1(a);if(M.isFunction(i))return i.call(this,a,s);if(M.isRegExp(i))return i.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=Oi(r),r){const s=M.findKey(this,r);return!!(s&&this[s]!==void 0&&(!i||qu(this,this[s],s,i)))}return!1}delete(r,i){const s=this;let a=!1;function u(d){if(d=Oi(d),d){const f=M.findKey(s,d);f&&(!i||qu(s,s[f],f,i))&&(delete s[f],a=!0)}}return M.isArray(r)?r.forEach(u):u(r),a}clear(r){const i=Object.keys(this);let s=i.length,a=!1;for(;s--;){const u=i[s];(!r||qu(this,this[u],u,r,!0))&&(delete this[u],a=!0)}return a}normalize(r){const i=this,s={};return M.forEach(this,(a,u)=>{const d=M.findKey(s,u);if(d){i[d]=hl(a),delete i[u];return}const f=r?S1(u):String(u).trim();f!==u&&delete i[u],i[f]=hl(a),s[f]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return M.forEach(this,(s,a)=>{s!=null&&s!==!1&&(i[a]=r&&M.isArray(s)?s.join(", "):s)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
|
|
70
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const s=new this(r);return i.forEach(a=>s.set(a)),s}static accessor(r){const s=(this[Sm]=this[Sm]={accessors:{}}).accessors,a=this.prototype;function u(d){const f=Oi(d);s[f]||(E1(a,d),s[f]=!0)}return M.isArray(r)?r.forEach(u):u(r),this}};Ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Ot.prototype,({value:n},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(s){this[i]=s}}});M.freezeMethods(Ot);function Xu(n,r){const i=this||$i,s=r||i,a=Ot.from(s.headers);let u=s.data;return M.forEach(n,function(f){u=f.call(i,u,a.normalize(),r?r.status:void 0)}),a.normalize(),u}function Hh(n){return!!(n&&n.__CANCEL__)}let Wi=class extends ye{constructor(r,i,s){super(r??"canceled",ye.ERR_CANCELED,i,s),this.name="CanceledError",this.__CANCEL__=!0}};function Kh(n,r,i){const s=i.config.validateStatus;!i.status||!s||s(i.status)?n(i):r(new ye("Request failed with status code "+i.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function C1(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function b1(n,r){n=n||10;const i=new Array(n),s=new Array(n);let a=0,u=0,d;return r=r!==void 0?r:1e3,function(h){const g=Date.now(),y=s[u];d||(d=g),i[a]=h,s[a]=g;let w=u,b=0;for(;w!==a;)b+=i[w++],w=w%n;if(a=(a+1)%n,a===u&&(u=(u+1)%n),g-d<r)return;const E=y&&g-y;return E?Math.round(b*1e3/E):void 0}}function N1(n,r){let i=0,s=1e3/r,a,u;const d=(g,y=Date.now())=>{i=y,a=null,u&&(clearTimeout(u),u=null),n(...g)};return[(...g)=>{const y=Date.now(),w=y-i;w>=s?d(g,y):(a=g,u||(u=setTimeout(()=>{u=null,d(a)},s-w)))},()=>a&&d(a)]}const Nl=(n,r,i=3)=>{let s=0;const a=b1(50,250);return N1(u=>{const d=u.loaded,f=u.lengthComputable?u.total:void 0,h=d-s,g=a(h),y=d<=f;s=d;const w={loaded:d,total:f,progress:f?d/f:void 0,bytes:h,rate:g||void 0,estimated:g&&f&&y?(f-d)/g:void 0,event:u,lengthComputable:f!=null,[r?"download":"upload"]:!0};n(w)},i)},Em=(n,r)=>{const i=n!=null;return[s=>r[0]({lengthComputable:i,total:n,loaded:s}),r[1]]},Cm=n=>(...r)=>M.asap(()=>n(...r)),R1=ht.hasStandardBrowserEnv?((n,r)=>i=>(i=new URL(i,ht.origin),n.protocol===i.protocol&&n.host===i.host&&(r||n.port===i.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,k1=ht.hasStandardBrowserEnv?{write(n,r,i,s,a,u,d){if(typeof document>"u")return;const f=[`${n}=${encodeURIComponent(r)}`];M.isNumber(i)&&f.push(`expires=${new Date(i).toUTCString()}`),M.isString(s)&&f.push(`path=${s}`),M.isString(a)&&f.push(`domain=${a}`),u===!0&&f.push("secure"),M.isString(d)&&f.push(`SameSite=${d}`),document.cookie=f.join("; ")},read(n){if(typeof document>"u")return null;const r=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return r?decodeURIComponent(r[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function P1(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function T1(n,r){return r?n.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):n}function Gh(n,r,i){let s=!P1(r);return n&&(s||i==!1)?T1(n,r):r}const bm=n=>n instanceof Ot?{...n}:n;function Wr(n,r){r=r||{};const i={};function s(g,y,w,b){return M.isPlainObject(g)&&M.isPlainObject(y)?M.merge.call({caseless:b},g,y):M.isPlainObject(y)?M.merge({},y):M.isArray(y)?y.slice():y}function a(g,y,w,b){if(M.isUndefined(y)){if(!M.isUndefined(g))return s(void 0,g,w,b)}else return s(g,y,w,b)}function u(g,y){if(!M.isUndefined(y))return s(void 0,y)}function d(g,y){if(M.isUndefined(y)){if(!M.isUndefined(g))return s(void 0,g)}else return s(void 0,y)}function f(g,y,w){if(w in r)return s(g,y);if(w in n)return s(void 0,g)}const h={url:u,method:u,data:u,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:f,headers:(g,y,w)=>a(bm(g),bm(y),w,!0)};return M.forEach(Object.keys({...n,...r}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const w=M.hasOwnProp(h,y)?h[y]:a,b=w(n[y],r[y],y);M.isUndefined(b)&&w!==f||(i[y]=b)}),i}const Yh=n=>{const r=Wr({},n);let{data:i,withXSRFToken:s,xsrfHeaderName:a,xsrfCookieName:u,headers:d,auth:f}=r;if(r.headers=d=Ot.from(d),r.url=Wh(Gh(r.baseURL,r.url,r.allowAbsoluteUrls),n.params,n.paramsSerializer),f&&d.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),M.isFormData(i)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if(M.isFunction(i.getHeaders)){const h=i.getHeaders(),g=["content-type","content-length"];Object.entries(h).forEach(([y,w])=>{g.includes(y.toLowerCase())&&d.set(y,w)})}}if(ht.hasStandardBrowserEnv&&(s&&M.isFunction(s)&&(s=s(r)),s||s!==!1&&R1(r.url))){const h=a&&u&&k1.read(u);h&&d.set(a,h)}return r},j1=typeof XMLHttpRequest<"u",O1=j1&&function(n){return new Promise(function(i,s){const a=Yh(n);let u=a.data;const d=Ot.from(a.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:g}=a,y,w,b,E,N;function S(){E&&E(),N&&N(),a.cancelToken&&a.cancelToken.unsubscribe(y),a.signal&&a.signal.removeEventListener("abort",y)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function O(){if(!C)return;const T=Ot.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),$={data:!f||f==="text"||f==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:T,config:n,request:C};Kh(function(W){i(W),S()},function(W){s(W),S()},$),C=null}"onloadend"in C?C.onloadend=O:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(O)},C.onabort=function(){C&&(s(new ye("Request aborted",ye.ECONNABORTED,n,C)),C=null)},C.onerror=function(L){const $=L&&L.message?L.message:"Network Error",V=new ye($,ye.ERR_NETWORK,n,C);V.event=L||null,s(V),C=null},C.ontimeout=function(){let L=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const $=a.transitional||Vc;a.timeoutErrorMessage&&(L=a.timeoutErrorMessage),s(new ye(L,$.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,n,C)),C=null},u===void 0&&d.setContentType(null),"setRequestHeader"in C&&M.forEach(d.toJSON(),function(L,$){C.setRequestHeader($,L)}),M.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),f&&f!=="json"&&(C.responseType=a.responseType),g&&([b,N]=Nl(g,!0),C.addEventListener("progress",b)),h&&C.upload&&([w,E]=Nl(h),C.upload.addEventListener("progress",w),C.upload.addEventListener("loadend",E)),(a.cancelToken||a.signal)&&(y=T=>{C&&(s(!T||T.type?new Wi(null,n,C):T),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(y),a.signal&&(a.signal.aborted?y():a.signal.addEventListener("abort",y)));const P=C1(a.url);if(P&&ht.protocols.indexOf(P)===-1){s(new ye("Unsupported protocol "+P+":",ye.ERR_BAD_REQUEST,n));return}C.send(u||null)})},_1=(n,r)=>{const{length:i}=n=n?n.filter(Boolean):[];if(r||i){let s=new AbortController,a;const u=function(g){if(!a){a=!0,f();const y=g instanceof Error?g:this.reason;s.abort(y instanceof ye?y:new Wi(y instanceof Error?y.message:y))}};let d=r&&setTimeout(()=>{d=null,u(new ye(`timeout of ${r}ms exceeded`,ye.ETIMEDOUT))},r);const f=()=>{n&&(d&&clearTimeout(d),d=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(u):g.removeEventListener("abort",u)}),n=null)};n.forEach(g=>g.addEventListener("abort",u));const{signal:h}=s;return h.unsubscribe=()=>M.asap(f),h}},A1=function*(n,r){let i=n.byteLength;if(i<r){yield n;return}let s=0,a;for(;s<i;)a=s+r,yield n.slice(s,a),s=a},L1=async function*(n,r){for await(const i of I1(n))yield*A1(i,r)},I1=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const r=n.getReader();try{for(;;){const{done:i,value:s}=await r.read();if(i)break;yield s}}finally{await r.cancel()}},Nm=(n,r,i,s)=>{const a=L1(n,r);let u=0,d,f=h=>{d||(d=!0,s&&s(h))};return new ReadableStream({async pull(h){try{const{done:g,value:y}=await a.next();if(g){f(),h.close();return}let w=y.byteLength;if(i){let b=u+=w;i(b)}h.enqueue(new Uint8Array(y))}catch(g){throw f(g),g}},cancel(h){return f(h),a.return()}},{highWaterMark:2})},Rm=64*1024,{isFunction:sl}=M,D1=(({Request:n,Response:r})=>({Request:n,Response:r}))(M.global),{ReadableStream:km,TextEncoder:Pm}=M.global,Tm=(n,...r)=>{try{return!!n(...r)}catch{return!1}},M1=n=>{n=M.merge.call({skipUndefined:!0},D1,n);const{fetch:r,Request:i,Response:s}=n,a=r?sl(r):typeof fetch=="function",u=sl(i),d=sl(s);if(!a)return!1;const f=a&&sl(km),h=a&&(typeof Pm=="function"?(N=>S=>N.encode(S))(new Pm):async N=>new Uint8Array(await new i(N).arrayBuffer())),g=u&&f&&Tm(()=>{let N=!1;const S=new i(ht.origin,{body:new km,method:"POST",get duplex(){return N=!0,"half"}}).headers.has("Content-Type");return N&&!S}),y=d&&f&&Tm(()=>M.isReadableStream(new s("").body)),w={stream:y&&(N=>N.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(N=>{!w[N]&&(w[N]=(S,C)=>{let O=S&&S[N];if(O)return O.call(S);throw new ye(`Response type '${N}' is not supported`,ye.ERR_NOT_SUPPORT,C)})});const b=async N=>{if(N==null)return 0;if(M.isBlob(N))return N.size;if(M.isSpecCompliantForm(N))return(await new i(ht.origin,{method:"POST",body:N}).arrayBuffer()).byteLength;if(M.isArrayBufferView(N)||M.isArrayBuffer(N))return N.byteLength;if(M.isURLSearchParams(N)&&(N=N+""),M.isString(N))return(await h(N)).byteLength},E=async(N,S)=>{const C=M.toFiniteNumber(N.getContentLength());return C??b(S)};return async N=>{let{url:S,method:C,data:O,signal:P,cancelToken:T,timeout:L,onDownloadProgress:$,onUploadProgress:V,responseType:W,headers:ie,withCredentials:le="same-origin",fetchOptions:de}=Yh(N),he=r||fetch;W=W?(W+"").toLowerCase():"text";let Z=_1([P,T&&T.toAbortSignal()],L),U=null;const te=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let q;try{if(V&&g&&C!=="get"&&C!=="head"&&(q=await E(ie,O))!==0){let j=new i(S,{method:"POST",body:O,duplex:"half"}),F;if(M.isFormData(O)&&(F=j.headers.get("content-type"))&&ie.setContentType(F),j.body){const[ne,re]=Em(q,Nl(Cm(V)));O=Nm(j.body,Rm,ne,re)}}M.isString(le)||(le=le?"include":"omit");const ee=u&&"credentials"in i.prototype,oe={...de,signal:Z,method:C.toUpperCase(),headers:ie.normalize().toJSON(),body:O,duplex:"half",credentials:ee?le:void 0};U=u&&new i(S,oe);let z=await(u?he(U,de):he(S,oe));const B=y&&(W==="stream"||W==="response");if(y&&($||B&&te)){const j={};["status","statusText","headers"].forEach(me=>{j[me]=z[me]});const F=M.toFiniteNumber(z.headers.get("content-length")),[ne,re]=$&&Em(F,Nl(Cm($),!0))||[];z=new s(Nm(z.body,Rm,ne,()=>{re&&re(),te&&te()}),j)}W=W||"text";let G=await w[M.findKey(w,W)||"text"](z,N);return!B&&te&&te(),await new Promise((j,F)=>{Kh(j,F,{data:G,headers:Ot.from(z.headers),status:z.status,statusText:z.statusText,config:N,request:U})})}catch(ee){throw te&&te(),ee&&ee.name==="TypeError"&&/Load failed|fetch/i.test(ee.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,N,U,ee&&ee.response),{cause:ee.cause||ee}):ye.from(ee,ee&&ee.code,N,U,ee&&ee.response)}}},F1=new Map,Qh=n=>{let r=n&&n.env||{};const{fetch:i,Request:s,Response:a}=r,u=[s,a,i];let d=u.length,f=d,h,g,y=F1;for(;f--;)h=u[f],g=y.get(h),g===void 0&&y.set(h,g=f?new Map:M1(r)),y=g;return g};Qh();const Kc={http:t1,xhr:O1,fetch:{get:Qh}};M.forEach(Kc,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const jm=n=>`- ${n}`,z1=n=>M.isFunction(n)||n===null||n===!1;function U1(n,r){n=M.isArray(n)?n:[n];const{length:i}=n;let s,a;const u={};for(let d=0;d<i;d++){s=n[d];let f;if(a=s,!z1(s)&&(a=Kc[(f=String(s)).toLowerCase()],a===void 0))throw new ye(`Unknown adapter '${f}'`);if(a&&(M.isFunction(a)||(a=a.get(r))))break;u[f||"#"+d]=a}if(!a){const d=Object.entries(u).map(([h,g])=>`adapter ${h} `+(g===!1?"is not supported by the environment":"is not available in the build"));let f=i?d.length>1?`since :
|
|
71
|
-
`+d.map(jm).join(`
|
|
72
|
-
`):" "+jm(d[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return a}const qh={getAdapter:U1,adapters:Kc};function Ju(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Wi(null,n)}function Om(n){return Ju(n),n.headers=Ot.from(n.headers),n.data=Xu.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),qh.getAdapter(n.adapter||$i.adapter,n)(n).then(function(s){return Ju(n),s.data=Xu.call(n,n.transformResponse,s),s.headers=Ot.from(s.headers),s},function(s){return Hh(s)||(Ju(n),s&&s.response&&(s.response.data=Xu.call(n,n.transformResponse,s.response),s.response.headers=Ot.from(s.response.headers))),Promise.reject(s)})}const Xh="1.13.6",Vl={};["object","boolean","number","function","string","symbol"].forEach((n,r)=>{Vl[n]=function(s){return typeof s===n||"a"+(r<1?"n ":" ")+n}});const _m={};Vl.transitional=function(r,i,s){function a(u,d){return"[Axios v"+Xh+"] Transitional option '"+u+"'"+d+(s?". "+s:"")}return(u,d,f)=>{if(r===!1)throw new ye(a(d," has been removed"+(i?" in "+i:"")),ye.ERR_DEPRECATED);return i&&!_m[d]&&(_m[d]=!0,console.warn(a(d," has been deprecated since v"+i+" and will be removed in the near future"))),r?r(u,d,f):!0}};Vl.spelling=function(r){return(i,s)=>(console.warn(`${s} is likely a misspelling of ${r}`),!0)};function B1(n,r,i){if(typeof n!="object")throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let a=s.length;for(;a-- >0;){const u=s[a],d=r[u];if(d){const f=n[u],h=f===void 0||d(f,u,n);if(h!==!0)throw new ye("option "+u+" must be "+h,ye.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new ye("Unknown option "+u,ye.ERR_BAD_OPTION)}}const gl={assertOptions:B1,validators:Vl},Ht=gl.validators;let $r=class{constructor(r){this.defaults=r||{},this.interceptors={request:new wm,response:new wm}}async request(r,i){try{return await this._request(r,i)}catch(s){if(s instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const u=a.stack?a.stack.replace(/^.+\n/,""):"";try{s.stack?u&&!String(s.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
|
73
|
-
`+u):s.stack=u}catch{}}throw s}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=Wr(this.defaults,i);const{transitional:s,paramsSerializer:a,headers:u}=i;s!==void 0&&gl.assertOptions(s,{silentJSONParsing:Ht.transitional(Ht.boolean),forcedJSONParsing:Ht.transitional(Ht.boolean),clarifyTimeoutError:Ht.transitional(Ht.boolean),legacyInterceptorReqResOrdering:Ht.transitional(Ht.boolean)},!1),a!=null&&(M.isFunction(a)?i.paramsSerializer={serialize:a}:gl.assertOptions(a,{encode:Ht.function,serialize:Ht.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),gl.assertOptions(i,{baseUrl:Ht.spelling("baseURL"),withXsrfToken:Ht.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let d=u&&M.merge(u.common,u[i.method]);u&&M.forEach(["delete","get","head","post","put","patch","common"],N=>{delete u[N]}),i.headers=Ot.concat(d,u);const f=[];let h=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(i)===!1)return;h=h&&S.synchronous;const C=i.transitional||Vc;C&&C.legacyInterceptorReqResOrdering?f.unshift(S.fulfilled,S.rejected):f.push(S.fulfilled,S.rejected)});const g=[];this.interceptors.response.forEach(function(S){g.push(S.fulfilled,S.rejected)});let y,w=0,b;if(!h){const N=[Om.bind(this),void 0];for(N.unshift(...f),N.push(...g),b=N.length,y=Promise.resolve(i);w<b;)y=y.then(N[w++],N[w++]);return y}b=f.length;let E=i;for(;w<b;){const N=f[w++],S=f[w++];try{E=N(E)}catch(C){S.call(this,C);break}}try{y=Om.call(this,E)}catch(N){return Promise.reject(N)}for(w=0,b=g.length;w<b;)y=y.then(g[w++],g[w++]);return y}getUri(r){r=Wr(this.defaults,r);const i=Gh(r.baseURL,r.url,r.allowAbsoluteUrls);return Wh(i,r.params,r.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(r){$r.prototype[r]=function(i,s){return this.request(Wr(s||{},{method:r,url:i,data:(s||{}).data}))}});M.forEach(["post","put","patch"],function(r){function i(s){return function(u,d,f){return this.request(Wr(f||{},{method:r,headers:s?{"Content-Type":"multipart/form-data"}:{},url:u,data:d}))}}$r.prototype[r]=i(),$r.prototype[r+"Form"]=i(!0)});let $1=class Jh{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(u){i=u});const s=this;this.promise.then(a=>{if(!s._listeners)return;let u=s._listeners.length;for(;u-- >0;)s._listeners[u](a);s._listeners=null}),this.promise.then=a=>{let u;const d=new Promise(f=>{s.subscribe(f),u=f}).then(a);return d.cancel=function(){s.unsubscribe(u)},d},r(function(u,d,f){s.reason||(s.reason=new Wi(u,d,f),i(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const r=new AbortController,i=s=>{r.abort(s)};return this.subscribe(i),r.signal.unsubscribe=()=>this.unsubscribe(i),r.signal}static source(){let r;return{token:new Jh(function(a){r=a}),cancel:r}}};function W1(n){return function(i){return n.apply(null,i)}}function V1(n){return M.isObject(n)&&n.isAxiosError===!0}const Sc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Sc).forEach(([n,r])=>{Sc[r]=n});function Zh(n){const r=new $r(n),i=_h($r.prototype.request,r);return M.extend(i,$r.prototype,r,{allOwnKeys:!0}),M.extend(i,r,null,{allOwnKeys:!0}),i.create=function(a){return Zh(Wr(n,a))},i}const He=Zh($i);He.Axios=$r;He.CanceledError=Wi;He.CancelToken=$1;He.isCancel=Hh;He.VERSION=Xh;He.toFormData=Wl;He.AxiosError=ye;He.Cancel=He.CanceledError;He.all=function(r){return Promise.all(r)};He.spread=W1;He.isAxiosError=V1;He.mergeConfig=Wr;He.AxiosHeaders=Ot;He.formToJSON=n=>Vh(M.isHTMLForm(n)?new FormData(n):n);He.getAdapter=qh.getAdapter;He.HttpStatusCode=Sc;He.default=He;const{Axios:QN,AxiosError:qN,CanceledError:XN,isCancel:JN,CancelToken:ZN,VERSION:eR,all:tR,Cancel:nR,isAxiosError:rR,spread:oR,toFormData:iR,AxiosHeaders:sR,HttpStatusCode:lR,formToJSON:aR,getAdapter:uR,mergeConfig:cR}=He;function Gc(n,r="An unexpected error occurred"){var a,u;const i=n,s=(u=(a=i==null?void 0:i.response)==null?void 0:a.data)==null?void 0:u.message;return Array.isArray(s)?s.join("; "):s??r}function kn(){const n=yh();if(!n)throw new Error("Not authenticated");const r=He.create({baseURL:n.serverUrl,timeout:3e4,headers:{"X-Admin-Secret":n.adminSecret,"Content-Type":"application/json"}});return r.interceptors.response.use(i=>i,i=>{var a;return((a=i==null?void 0:i.response)==null?void 0:a.status)===401&&(xh(),window.location.href="/admin-ui/"),Promise.reject(i)}),r}async function H1(n,r){await He.get(`${n}/api/v1/health`),await He.get(`${n}/admin/groups`,{headers:{"X-Admin-Secret":r}})}async function Hl(){return(await kn().get("/admin/groups")).data}async function K1(n){return(await kn().post("/admin/groups",n)).data}async function G1(n){await kn().delete(`/admin/groups/${n}`)}async function vl(n){return(await kn().get(`/admin/groups/${n}/tokens`)).data}async function Y1(n,r){return(await kn().post(`/admin/groups/${n}/tokens`,r)).data}async function Q1(n){await kn().delete(`/admin/tokens/${n}`)}async function Yc(){return(await kn().get("/admin/oas")).data}async function q1(n){return(await kn().post("/admin/oas",n)).data}async function X1(n,r){return(await kn().put(`/admin/oas/${n}`,r)).data}async function J1(n){await kn().delete(`/admin/oas/${n}`)}async function Z1(){const[n,r]=await Promise.all([Hl(),Yc()]),i=await Promise.all(n.map(s=>vl(s.id).then(a=>a.filter(u=>!u.revokedAt).length).catch(()=>0)));return{groups:n.length,oasEntries:r.length,activeTokens:i.reduce((s,a)=>s+a,0)}}const sn=v.forwardRef(({className:n,type:r,...i},s)=>m.jsx("input",{type:r,className:Te("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:s,...i}));sn.displayName="Input";var eE="Label",eg=v.forwardRef((n,r)=>m.jsx(Sh.label,{...n,ref:r,onMouseDown:i=>{var a;i.target.closest("button, input, select, textarea")||((a=n.onMouseDown)==null||a.call(n,i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));eg.displayName=eE;var tg=eg;const st=v.forwardRef(({className:n,...r},i)=>m.jsx(tg,{ref:i,className:Te("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",n),...r}));st.displayName=tg.displayName;const To=v.forwardRef(({className:n,...r},i)=>m.jsx("div",{ref:i,className:Te("rounded-xl border bg-card text-card-foreground shadow",n),...r}));To.displayName="Card";const Qc=v.forwardRef(({className:n,...r},i)=>m.jsx("div",{ref:i,className:Te("flex flex-col space-y-1.5 p-6",n),...r}));Qc.displayName="CardHeader";const qc=v.forwardRef(({className:n,...r},i)=>m.jsx("h3",{ref:i,className:Te("font-semibold leading-none tracking-tight",n),...r}));qc.displayName="CardTitle";const ng=v.forwardRef(({className:n,...r},i)=>m.jsx("p",{ref:i,className:Te("text-sm text-muted-foreground",n),...r}));ng.displayName="CardDescription";const jo=v.forwardRef(({className:n,...r},i)=>m.jsx("div",{ref:i,className:Te("p-6 pt-0",n),...r}));jo.displayName="CardContent";const tE=v.forwardRef(({className:n,...r},i)=>m.jsx("div",{ref:i,className:Te("flex items-center p-6 pt-0",n),...r}));tE.displayName="CardFooter";function nE(){const n=Fl(),[r,i]=v.useState("http://localhost:3000"),[s,a]=v.useState(""),[u,d]=v.useState(!1),[f,h]=v.useState("");async function g(y){y.preventDefault();const w=r.trim().replace(/\/$/,""),b=s.trim();if(!(!w||!b)){try{new URL(w),h("")}catch{h("Please enter a valid URL (e.g. http://localhost:3000)");return}d(!0);try{await H1(w,b),yw({serverUrl:w,adminSecret:b}),ut.success("Connected successfully"),n("/dashboard",{replace:!0})}catch{ut.error("Connection failed — check the server URL and admin secret")}finally{d(!1)}}}return m.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:m.jsxs("div",{className:"w-full max-w-sm space-y-6",children:[m.jsxs("div",{className:"flex flex-col items-center gap-3",children:[m.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10",children:m.jsx("i",{className:"ri-hexagon-line text-2xl text-primary"})}),m.jsxs("div",{className:"text-center",children:[m.jsx("h1",{className:"text-xl font-bold",children:"OAS Gateway"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Admin Dashboard"})]})]}),m.jsxs(To,{children:[m.jsxs(Qc,{className:"pb-3",children:[m.jsx(qc,{className:"text-base",children:"Connect to server"}),m.jsx(ng,{children:"Enter your server URL and admin secret to continue."})]}),m.jsx(jo,{children:m.jsxs("form",{onSubmit:g,className:"space-y-4",children:[m.jsxs("div",{className:"space-y-1.5",children:[m.jsx(st,{htmlFor:"serverUrl",children:"Server URL"}),m.jsx(sn,{id:"serverUrl",placeholder:"http://localhost:3000",value:r,onChange:y=>{i(y.target.value),h("")},autoComplete:"url",required:!0}),f&&m.jsx("p",{className:"text-xs text-destructive",children:f})]}),m.jsxs("div",{className:"space-y-1.5",children:[m.jsx(st,{htmlFor:"adminSecret",children:"Admin Secret"}),m.jsx(sn,{id:"adminSecret",type:"password",placeholder:"••••••••",value:s,onChange:y=>a(y.target.value),autoComplete:"current-password",required:!0})]}),m.jsx(Be,{type:"submit",className:"w-full",disabled:u,children:u?m.jsxs(m.Fragment,{children:[m.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Connecting…"]}):m.jsxs(m.Fragment,{children:[m.jsx("i",{className:"ri-arrow-right-line"}),"Connect"]})})]})})]})]})})}const rE=Oh("inline-flex items-center rounded-md 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-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-100 text-green-800",warning:"border-transparent bg-yellow-100 text-yellow-800"}},defaultVariants:{variant:"default"}});function Ai({className:n,variant:r,...i}){return m.jsx("div",{className:Te(rE({variant:r}),n),...i})}function Zu({icon:n,label:r,value:i,sub:s}){return m.jsxs(To,{children:[m.jsxs(Qc,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[m.jsx(qc,{className:"text-sm font-medium text-muted-foreground",children:r}),m.jsx("i",{className:`${n} text-lg text-muted-foreground`})]}),m.jsxs(jo,{children:[m.jsx("div",{className:"text-2xl font-bold",children:i}),s&&m.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:s})]})]})}function oE(){const[n,r]=v.useState(null),[i,s]=v.useState([]),[a,u]=v.useState(!0);return v.useEffect(()=>{Promise.allSettled([Z1(),Yc()]).then(([d,f])=>{d.status==="fulfilled"&&r(d.value),f.status==="fulfilled"&&s(f.value.slice(0,5)),u(!1)})},[]),a?m.jsx("div",{className:"flex h-full items-center justify-center",children:m.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):m.jsxs("div",{className:"p-6 space-y-6",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Dashboard"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:"Overview of your OAS Gateway"})]}),m.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[m.jsx(Zu,{icon:"ri-group-line",label:"Groups",value:(n==null?void 0:n.groups)??0,sub:"Logical namespaces"}),m.jsx(Zu,{icon:"ri-file-code-line",label:"OAS Entries",value:(n==null?void 0:n.oasEntries)??0,sub:"Registered services"}),m.jsx(Zu,{icon:"ri-key-line",label:"Active Tokens",value:(n==null?void 0:n.activeTokens)??0,sub:"Non-revoked JWTs"})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center justify-between mb-3",children:[m.jsx("h3",{className:"font-semibold text-sm",children:"Recent OAS entries"}),m.jsx(pl,{to:"/oas",className:"text-xs text-primary hover:underline",children:"View all →"})]}),i.length===0?m.jsx(To,{children:m.jsxs(jo,{className:"py-8 text-center text-muted-foreground text-sm",children:[m.jsx("i",{className:"ri-file-code-line text-3xl block mb-2"}),"No OAS entries yet."," ",m.jsx(pl,{to:"/oas",className:"text-primary hover:underline",children:"Add one →"})]})}):m.jsx("div",{className:"space-y-2",children:i.map(d=>m.jsx(To,{children:m.jsxs(jo,{className:"flex items-center gap-4 py-3",children:[m.jsx("i",{className:"ri-file-code-line text-muted-foreground"}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"font-mono text-sm font-medium truncate",children:d.name}),m.jsx(Ai,{variant:d.enabled?"success":"secondary",className:"shrink-0",children:d.enabled?"enabled":"disabled"})]}),m.jsx("p",{className:"text-xs text-muted-foreground truncate",children:d.remoteUrl})]}),m.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:uS(d.createdAt)})]})},d.id))})]}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-semibold text-sm mb-3",children:"Quick actions"}),m.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:[{to:"/groups",icon:"ri-add-circle-line",label:"New group",desc:"Create a group namespace"},{to:"/oas",icon:"ri-upload-cloud-line",label:"Import OAS",desc:"Register a new service"},{to:"/tokens",icon:"ri-key-2-line",label:"Issue token",desc:"Generate a group JWT"}].map(({to:d,icon:f,label:h,desc:g})=>m.jsx(pl,{to:d,children:m.jsx(To,{className:"hover:bg-accent/50 transition-colors cursor-pointer h-full",children:m.jsxs(jo,{className:"py-4 flex items-start gap-3",children:[m.jsx("i",{className:`${f} text-lg text-primary mt-0.5`}),m.jsxs("div",{children:[m.jsx("div",{className:"font-medium text-sm",children:h}),m.jsx("div",{className:"text-xs text-muted-foreground",children:g})]})]})})},d))})]})]})}const Kl=v.forwardRef(({className:n,...r},i)=>m.jsx("textarea",{className:Te("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:i,...r}));Kl.displayName="Textarea";function ze(n,r,{checkForDefaultPrevented:i=!0}={}){return function(a){if(n==null||n(a),i===!1||!a.defaultPrevented)return r==null?void 0:r(a)}}function iE(n,r){const i=v.createContext(r),s=u=>{const{children:d,...f}=u,h=v.useMemo(()=>f,Object.values(f));return m.jsx(i.Provider,{value:h,children:d})};s.displayName=n+"Provider";function a(u){const d=v.useContext(i);if(d)return d;if(r!==void 0)return r;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[s,a]}function Gl(n,r=[]){let i=[];function s(u,d){const f=v.createContext(d),h=i.length;i=[...i,d];const g=w=>{var O;const{scope:b,children:E,...N}=w,S=((O=b==null?void 0:b[n])==null?void 0:O[h])||f,C=v.useMemo(()=>N,Object.values(N));return m.jsx(S.Provider,{value:C,children:E})};g.displayName=u+"Provider";function y(w,b){var S;const E=((S=b==null?void 0:b[n])==null?void 0:S[h])||f,N=v.useContext(E);if(N)return N;if(d!==void 0)return d;throw new Error(`\`${w}\` must be used within \`${u}\``)}return[g,y]}const a=()=>{const u=i.map(d=>v.createContext(d));return function(f){const h=(f==null?void 0:f[n])||u;return v.useMemo(()=>({[`__scope${n}`]:{...f,[n]:h}}),[f,h])}};return a.scopeName=n,[s,sE(a,...r)]}function sE(...n){const r=n[0];if(n.length===1)return r;const i=()=>{const s=n.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(u){const d=s.reduce((f,{useScope:h,scopeName:g})=>{const w=h(u)[`__scope${g}`];return{...f,...w}},{});return v.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return i.scopeName=r.scopeName,i}var gt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},lE=Il[" useId ".trim().toString()]||(()=>{}),aE=0;function Oo(n){const[r,i]=v.useState(lE());return gt(()=>{i(s=>s??String(aE++))},[n]),r?`radix-${r}`:""}var uE=Il[" useInsertionEffect ".trim().toString()]||gt;function Ec({prop:n,defaultProp:r,onChange:i=()=>{},caller:s}){const[a,u,d]=cE({defaultProp:r,onChange:i}),f=n!==void 0,h=f?n:a;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const w=y.current;w!==f&&console.warn(`${s} is changing from ${w?"controlled":"uncontrolled"} to ${f?"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.`),y.current=f},[f,s])}const g=v.useCallback(y=>{var w;if(f){const b=dE(y)?y(n):y;b!==n&&((w=d.current)==null||w.call(d,b))}else u(y)},[f,n,u,d]);return[h,g]}function cE({defaultProp:n,onChange:r}){const[i,s]=v.useState(n),a=v.useRef(i),u=v.useRef(r);return uE(()=>{u.current=r},[r]),v.useEffect(()=>{var d;a.current!==i&&((d=u.current)==null||d.call(u,i),a.current=i)},[i,a]),[i,s,u]}function dE(n){return typeof n=="function"}function Di(n){const r=fE(n),i=v.forwardRef((s,a)=>{const{children:u,...d}=s,f=v.Children.toArray(u),h=f.find(mE);if(h){const g=h.props.children,y=f.map(w=>w===h?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:w);return m.jsx(r,{...d,ref:a,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return m.jsx(r,{...d,ref:a,children:u})});return i.displayName=`${n}.Slot`,i}function fE(n){const r=v.forwardRef((i,s)=>{const{children:a,...u}=i;if(v.isValidElement(a)){const d=gE(a),f=hE(u,a.props);return a.type!==v.Fragment&&(f.ref=s?Uc(s,d):d),v.cloneElement(a,f)}return v.Children.count(a)>1?v.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var pE=Symbol("radix.slottable");function mE(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===pE}function hE(n,r){const i={...r};for(const s in r){const a=n[s],u=r[s];/^on[A-Z]/.test(s)?a&&u?i[s]=(...f)=>{const h=u(...f);return a(...f),h}:a&&(i[s]=a):s==="style"?i[s]={...a,...u}:s==="className"&&(i[s]=[a,u].filter(Boolean).join(" "))}return{...n,...i}}function gE(n){var s,a;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var vE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=vE.reduce((n,r)=>{const i=Di(`Primitive.${r}`),s=v.forwardRef((a,u)=>{const{asChild:d,...f}=a,h=d?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(h,{...f,ref:u})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function yE(n,r){n&&Fi.flushSync(()=>n.dispatchEvent(r))}function Vr(n){const r=v.useRef(n);return v.useEffect(()=>{r.current=n}),v.useMemo(()=>(...i)=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)},[])}function xE(n,r=globalThis==null?void 0:globalThis.document){const i=Vr(n);v.useEffect(()=>{const s=a=>{a.key==="Escape"&&i(a)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[i,r])}var wE="DismissableLayer",Cc="dismissableLayer.update",SE="dismissableLayer.pointerDownOutside",EE="dismissableLayer.focusOutside",Am,rg=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xc=v.forwardRef((n,r)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:d,onDismiss:f,...h}=n,g=v.useContext(rg),[y,w]=v.useState(null),b=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=v.useState({}),N=qe(r,W=>w(W)),S=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),O=S.indexOf(C),P=y?S.indexOf(y):-1,T=g.layersWithOutsidePointerEventsDisabled.size>0,L=P>=O,$=NE(W=>{const ie=W.target,le=[...g.branches].some(de=>de.contains(ie));!L||le||(a==null||a(W),d==null||d(W),W.defaultPrevented||f==null||f())},b),V=RE(W=>{const ie=W.target;[...g.branches].some(de=>de.contains(ie))||(u==null||u(W),d==null||d(W),W.defaultPrevented||f==null||f())},b);return xE(W=>{P===g.layers.size-1&&(s==null||s(W),!W.defaultPrevented&&f&&(W.preventDefault(),f()))},b),v.useEffect(()=>{if(y)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Am=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),Lm(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Am)}},[y,b,i,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),Lm())},[y,g]),v.useEffect(()=>{const W=()=>E({});return document.addEventListener(Cc,W),()=>document.removeEventListener(Cc,W)},[]),m.jsx(Ie.div,{...h,ref:N,style:{pointerEvents:T?L?"auto":"none":void 0,...n.style},onFocusCapture:ze(n.onFocusCapture,V.onFocusCapture),onBlurCapture:ze(n.onBlurCapture,V.onBlurCapture),onPointerDownCapture:ze(n.onPointerDownCapture,$.onPointerDownCapture)})});Xc.displayName=wE;var CE="DismissableLayerBranch",bE=v.forwardRef((n,r)=>{const i=v.useContext(rg),s=v.useRef(null),a=qe(r,s);return v.useEffect(()=>{const u=s.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),m.jsx(Ie.div,{...n,ref:a})});bE.displayName=CE;function NE(n,r=globalThis==null?void 0:globalThis.document){const i=Vr(n),s=v.useRef(!1),a=v.useRef(()=>{});return v.useEffect(()=>{const u=f=>{if(f.target&&!s.current){let h=function(){og(SE,i,g,{discrete:!0})};const g={originalEvent:f};f.pointerType==="touch"?(r.removeEventListener("click",a.current),a.current=h,r.addEventListener("click",a.current,{once:!0})):h()}else r.removeEventListener("click",a.current);s.current=!1},d=window.setTimeout(()=>{r.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),r.removeEventListener("pointerdown",u),r.removeEventListener("click",a.current)}},[r,i]),{onPointerDownCapture:()=>s.current=!0}}function RE(n,r=globalThis==null?void 0:globalThis.document){const i=Vr(n),s=v.useRef(!1);return v.useEffect(()=>{const a=u=>{u.target&&!s.current&&og(EE,i,{originalEvent:u},{discrete:!1})};return r.addEventListener("focusin",a),()=>r.removeEventListener("focusin",a)},[r,i]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Lm(){const n=new CustomEvent(Cc);document.dispatchEvent(n)}function og(n,r,i,{discrete:s}){const a=i.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});r&&a.addEventListener(n,r,{once:!0}),s?yE(a,u):a.dispatchEvent(u)}var ec="focusScope.autoFocusOnMount",tc="focusScope.autoFocusOnUnmount",Im={bubbles:!1,cancelable:!0},kE="FocusScope",Jc=v.forwardRef((n,r)=>{const{loop:i=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...d}=n,[f,h]=v.useState(null),g=Vr(a),y=Vr(u),w=v.useRef(null),b=qe(r,S=>h(S)),E=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(s){let S=function(T){if(E.paused||!f)return;const L=T.target;f.contains(L)?w.current=L:hr(w.current,{select:!0})},C=function(T){if(E.paused||!f)return;const L=T.relatedTarget;L!==null&&(f.contains(L)||hr(w.current,{select:!0}))},O=function(T){if(document.activeElement===document.body)for(const $ of T)$.removedNodes.length>0&&hr(f)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const P=new MutationObserver(O);return f&&P.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),P.disconnect()}}},[s,f,E.paused]),v.useEffect(()=>{if(f){Mm.add(E);const S=document.activeElement;if(!f.contains(S)){const O=new CustomEvent(ec,Im);f.addEventListener(ec,g),f.dispatchEvent(O),O.defaultPrevented||(PE(AE(ig(f)),{select:!0}),document.activeElement===S&&hr(f))}return()=>{f.removeEventListener(ec,g),setTimeout(()=>{const O=new CustomEvent(tc,Im);f.addEventListener(tc,y),f.dispatchEvent(O),O.defaultPrevented||hr(S??document.body,{select:!0}),f.removeEventListener(tc,y),Mm.remove(E)},0)}}},[f,g,y,E]);const N=v.useCallback(S=>{if(!i&&!s||E.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,O=document.activeElement;if(C&&O){const P=S.currentTarget,[T,L]=TE(P);T&&L?!S.shiftKey&&O===L?(S.preventDefault(),i&&hr(T,{select:!0})):S.shiftKey&&O===T&&(S.preventDefault(),i&&hr(L,{select:!0})):O===P&&S.preventDefault()}},[i,s,E.paused]);return m.jsx(Ie.div,{tabIndex:-1,...d,ref:b,onKeyDown:N})});Jc.displayName=kE;function PE(n,{select:r=!1}={}){const i=document.activeElement;for(const s of n)if(hr(s,{select:r}),document.activeElement!==i)return}function TE(n){const r=ig(n),i=Dm(r,n),s=Dm(r.reverse(),n);return[i,s]}function ig(n){const r=[],i=document.createTreeWalker(n,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(;i.nextNode();)r.push(i.currentNode);return r}function Dm(n,r){for(const i of n)if(!jE(i,{upTo:r}))return i}function jE(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function OE(n){return n instanceof HTMLInputElement&&"select"in n}function hr(n,{select:r=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&OE(n)&&r&&n.select()}}var Mm=_E();function _E(){let n=[];return{add(r){const i=n[0];r!==i&&(i==null||i.pause()),n=Fm(n,r),n.unshift(r)},remove(r){var i;n=Fm(n,r),(i=n[0])==null||i.resume()}}}function Fm(n,r){const i=[...n],s=i.indexOf(r);return s!==-1&&i.splice(s,1),i}function AE(n){return n.filter(r=>r.tagName!=="A")}var LE="Portal",Zc=v.forwardRef((n,r)=>{var f;const{container:i,...s}=n,[a,u]=v.useState(!1);gt(()=>u(!0),[]);const d=i||a&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return d?lh.createPortal(m.jsx(Ie.div,{...s,ref:r}),d):null});Zc.displayName=LE;function IE(n,r){return v.useReducer((i,s)=>r[i][s]??i,n)}var Yl=n=>{const{present:r,children:i}=n,s=DE(r),a=typeof i=="function"?i({present:s.isPresent}):v.Children.only(i),u=qe(s.ref,ME(a));return typeof i=="function"||s.isPresent?v.cloneElement(a,{ref:u}):null};Yl.displayName="Presence";function DE(n){const[r,i]=v.useState(),s=v.useRef(null),a=v.useRef(n),u=v.useRef("none"),d=n?"mounted":"unmounted",[f,h]=IE(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=ll(s.current);u.current=f==="mounted"?g:"none"},[f]),gt(()=>{const g=s.current,y=a.current;if(y!==n){const b=u.current,E=ll(g);n?h("MOUNT"):E==="none"||(g==null?void 0:g.display)==="none"?h("UNMOUNT"):h(y&&b!==E?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,h]),gt(()=>{if(r){let g;const y=r.ownerDocument.defaultView??window,w=E=>{const S=ll(s.current).includes(CSS.escape(E.animationName));if(E.target===r&&S&&(h("ANIMATION_END"),!a.current)){const C=r.style.animationFillMode;r.style.animationFillMode="forwards",g=y.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=C)})}},b=E=>{E.target===r&&(u.current=ll(s.current))};return r.addEventListener("animationstart",b),r.addEventListener("animationcancel",w),r.addEventListener("animationend",w),()=>{y.clearTimeout(g),r.removeEventListener("animationstart",b),r.removeEventListener("animationcancel",w),r.removeEventListener("animationend",w)}}else h("ANIMATION_END")},[r,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:v.useCallback(g=>{s.current=g?getComputedStyle(g):null,i(g)},[])}}function ll(n){return(n==null?void 0:n.animationName)||"none"}function ME(n){var s,a;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var nc=0;function sg(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??zm()),document.body.insertAdjacentElement("beforeend",n[1]??zm()),nc++,()=>{nc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),nc--}},[])}function zm(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var bn=function(){return bn=Object.assign||function(r){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},bn.apply(this,arguments)};function lg(n,r){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)r.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(i[s[a]]=n[s[a]]);return i}function FE(n,r,i){if(i||arguments.length===2)for(var s=0,a=r.length,u;s<a;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return n.concat(u||Array.prototype.slice.call(r))}var yl="right-scroll-bar-position",xl="width-before-scroll-bar",zE="with-scroll-bars-hidden",UE="--removed-body-scroll-bar-size";function rc(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function BE(n,r){var i=v.useState(function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(s){var a=i.value;a!==s&&(i.value=s,i.callback(s,a))}}}})[0];return i.callback=r,i.facade}var $E=typeof window<"u"?v.useLayoutEffect:v.useEffect,Um=new WeakMap;function WE(n,r){var i=BE(null,function(s){return n.forEach(function(a){return rc(a,s)})});return $E(function(){var s=Um.get(i);if(s){var a=new Set(s),u=new Set(n),d=i.current;a.forEach(function(f){u.has(f)||rc(f,null)}),u.forEach(function(f){a.has(f)||rc(f,d)})}Um.set(i,n)},[n]),i}function VE(n){return n}function HE(n,r){r===void 0&&(r=VE);var i=[],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 i.length?i[i.length-1]:n},useMedium:function(u){var d=r(u,s);return i.push(d),function(){i=i.filter(function(f){return f!==d})}},assignSyncMedium:function(u){for(s=!0;i.length;){var d=i;i=[],d.forEach(u)}i={push:function(f){return u(f)},filter:function(){return i}}},assignMedium:function(u){s=!0;var d=[];if(i.length){var f=i;i=[],f.forEach(u),d=i}var h=function(){var y=d;d=[],y.forEach(u)},g=function(){return Promise.resolve().then(h)};g(),i={push:function(y){d.push(y),g()},filter:function(y){return d=d.filter(y),i}}}};return a}function KE(n){n===void 0&&(n={});var r=HE(null);return r.options=bn({async:!0,ssr:!1},n),r}var ag=function(n){var r=n.sideCar,i=lg(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return v.createElement(s,bn({},i))};ag.isSideCarExport=!0;function GE(n,r){return n.useMedium(r),ag}var ug=KE(),oc=function(){},Ql=v.forwardRef(function(n,r){var i=v.useRef(null),s=v.useState({onScrollCapture:oc,onWheelCapture:oc,onTouchMoveCapture:oc}),a=s[0],u=s[1],d=n.forwardProps,f=n.children,h=n.className,g=n.removeScrollBar,y=n.enabled,w=n.shards,b=n.sideCar,E=n.noRelative,N=n.noIsolation,S=n.inert,C=n.allowPinchZoom,O=n.as,P=O===void 0?"div":O,T=n.gapMode,L=lg(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=b,V=WE([i,r]),W=bn(bn({},L),a);return v.createElement(v.Fragment,null,y&&v.createElement($,{sideCar:ug,removeScrollBar:g,shards:w,noRelative:E,noIsolation:N,inert:S,setCallbacks:u,allowPinchZoom:!!C,lockRef:i,gapMode:T}),d?v.cloneElement(v.Children.only(f),bn(bn({},W),{ref:V})):v.createElement(P,bn({},W,{className:h,ref:V}),f))});Ql.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ql.classNames={fullWidth:xl,zeroRight:yl};var YE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QE(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=YE();return r&&n.setAttribute("nonce",r),n}function qE(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function XE(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var JE=function(){var n=0,r=null;return{add:function(i){n==0&&(r=QE())&&(qE(r,i),XE(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},ZE=function(){var n=JE();return function(r,i){v.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&i])}},cg=function(){var n=ZE(),r=function(i){var s=i.styles,a=i.dynamic;return n(s,a),null};return r},eC={left:0,top:0,right:0,gap:0},ic=function(n){return parseInt(n||"",10)||0},tC=function(n){var r=window.getComputedStyle(document.body),i=r[n==="padding"?"paddingLeft":"marginLeft"],s=r[n==="padding"?"paddingTop":"marginTop"],a=r[n==="padding"?"paddingRight":"marginRight"];return[ic(i),ic(s),ic(a)]},nC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return eC;var r=tC(n),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-i+r[2]-r[0])}},rC=cg(),_o="data-scroll-locked",oC=function(n,r,i,s){var a=n.left,u=n.top,d=n.right,f=n.gap;return i===void 0&&(i="margin"),`
|
|
74
|
-
.`.concat(zE,` {
|
|
75
|
-
overflow: hidden `).concat(s,`;
|
|
76
|
-
padding-right: `).concat(f,"px ").concat(s,`;
|
|
77
|
-
}
|
|
78
|
-
body[`).concat(_o,`] {
|
|
79
|
-
overflow: hidden `).concat(s,`;
|
|
80
|
-
overscroll-behavior: contain;
|
|
81
|
-
`).concat([r&&"position: relative ".concat(s,";"),i==="margin"&&`
|
|
82
|
-
padding-left: `.concat(a,`px;
|
|
83
|
-
padding-top: `).concat(u,`px;
|
|
84
|
-
padding-right: `).concat(d,`px;
|
|
85
|
-
margin-left:0;
|
|
86
|
-
margin-top:0;
|
|
87
|
-
margin-right: `).concat(f,"px ").concat(s,`;
|
|
88
|
-
`),i==="padding"&&"padding-right: ".concat(f,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.`).concat(yl,` {
|
|
92
|
-
right: `).concat(f,"px ").concat(s,`;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.`).concat(xl,` {
|
|
96
|
-
margin-right: `).concat(f,"px ").concat(s,`;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.`).concat(yl," .").concat(yl,` {
|
|
100
|
-
right: 0 `).concat(s,`;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.`).concat(xl," .").concat(xl,` {
|
|
104
|
-
margin-right: 0 `).concat(s,`;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
body[`).concat(_o,`] {
|
|
108
|
-
`).concat(UE,": ").concat(f,`px;
|
|
109
|
-
}
|
|
110
|
-
`)},Bm=function(){var n=parseInt(document.body.getAttribute(_o)||"0",10);return isFinite(n)?n:0},iC=function(){v.useEffect(function(){return document.body.setAttribute(_o,(Bm()+1).toString()),function(){var n=Bm()-1;n<=0?document.body.removeAttribute(_o):document.body.setAttribute(_o,n.toString())}},[])},sC=function(n){var r=n.noRelative,i=n.noImportant,s=n.gapMode,a=s===void 0?"margin":s;iC();var u=v.useMemo(function(){return nC(a)},[a]);return v.createElement(rC,{styles:oC(u,!r,a,i?"":"!important")})},bc=!1;if(typeof window<"u")try{var al=Object.defineProperty({},"passive",{get:function(){return bc=!0,!0}});window.addEventListener("test",al,al),window.removeEventListener("test",al,al)}catch{bc=!1}var No=bc?{passive:!1}:!1,lC=function(n){return n.tagName==="TEXTAREA"},dg=function(n,r){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!lC(n)&&i[r]==="visible")},aC=function(n){return dg(n,"overflowY")},uC=function(n){return dg(n,"overflowX")},$m=function(n,r){var i=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var a=fg(n,s);if(a){var u=pg(n,s),d=u[1],f=u[2];if(d>f)return!0}s=s.parentNode}while(s&&s!==i.body);return!1},cC=function(n){var r=n.scrollTop,i=n.scrollHeight,s=n.clientHeight;return[r,i,s]},dC=function(n){var r=n.scrollLeft,i=n.scrollWidth,s=n.clientWidth;return[r,i,s]},fg=function(n,r){return n==="v"?aC(r):uC(r)},pg=function(n,r){return n==="v"?cC(r):dC(r)},fC=function(n,r){return n==="h"&&r==="rtl"?-1:1},pC=function(n,r,i,s,a){var u=fC(n,window.getComputedStyle(r).direction),d=u*s,f=i.target,h=r.contains(f),g=!1,y=d>0,w=0,b=0;do{if(!f)break;var E=pg(n,f),N=E[0],S=E[1],C=E[2],O=S-C-u*N;(N||O)&&fg(n,f)&&(w+=O,b+=N);var P=f.parentNode;f=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!h&&f!==document.body||h&&(r.contains(f)||r===f));return(y&&Math.abs(w)<1||!y&&Math.abs(b)<1)&&(g=!0),g},ul=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Wm=function(n){return[n.deltaX,n.deltaY]},Vm=function(n){return n&&"current"in n?n.current:n},mC=function(n,r){return n[0]===r[0]&&n[1]===r[1]},hC=function(n){return`
|
|
111
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
112
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
113
|
-
`)},gC=0,Ro=[];function vC(n){var r=v.useRef([]),i=v.useRef([0,0]),s=v.useRef(),a=v.useState(gC++)[0],u=v.useState(cg)[0],d=v.useRef(n);v.useEffect(function(){d.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(a));var S=FE([n.lockRef.current],(n.shards||[]).map(Vm),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[n.inert,n.lockRef.current,n.shards]);var f=v.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!d.current.allowPinchZoom;var O=ul(S),P=i.current,T="deltaX"in S?S.deltaX:P[0]-O[0],L="deltaY"in S?S.deltaY:P[1]-O[1],$,V=S.target,W=Math.abs(T)>Math.abs(L)?"h":"v";if("touches"in S&&W==="h"&&V.type==="range")return!1;var ie=window.getSelection(),le=ie&&ie.anchorNode,de=le?le===V||le.contains(V):!1;if(de)return!1;var he=$m(W,V);if(!he)return!0;if(he?$=W:($=W==="v"?"h":"v",he=$m(W,V)),!he)return!1;if(!s.current&&"changedTouches"in S&&(T||L)&&(s.current=$),!$)return!0;var Z=s.current||$;return pC(Z,C,S,Z==="h"?T:L)},[]),h=v.useCallback(function(S){var C=S;if(!(!Ro.length||Ro[Ro.length-1]!==u)){var O="deltaY"in C?Wm(C):ul(C),P=r.current.filter(function($){return $.name===C.type&&($.target===C.target||C.target===$.shadowParent)&&mC($.delta,O)})[0];if(P&&P.should){C.cancelable&&C.preventDefault();return}if(!P){var T=(d.current.shards||[]).map(Vm).filter(Boolean).filter(function($){return $.contains(C.target)}),L=T.length>0?f(C,T[0]):!d.current.noIsolation;L&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(S,C,O,P){var T={name:S,delta:C,target:O,should:P,shadowParent:yC(O)};r.current.push(T),setTimeout(function(){r.current=r.current.filter(function(L){return L!==T})},1)},[]),y=v.useCallback(function(S){i.current=ul(S),s.current=void 0},[]),w=v.useCallback(function(S){g(S.type,Wm(S),S.target,f(S,n.lockRef.current))},[]),b=v.useCallback(function(S){g(S.type,ul(S),S.target,f(S,n.lockRef.current))},[]);v.useEffect(function(){return Ro.push(u),n.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:b}),document.addEventListener("wheel",h,No),document.addEventListener("touchmove",h,No),document.addEventListener("touchstart",y,No),function(){Ro=Ro.filter(function(S){return S!==u}),document.removeEventListener("wheel",h,No),document.removeEventListener("touchmove",h,No),document.removeEventListener("touchstart",y,No)}},[]);var E=n.removeScrollBar,N=n.inert;return v.createElement(v.Fragment,null,N?v.createElement(u,{styles:hC(a)}):null,E?v.createElement(sC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function yC(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const xC=GE(ug,vC);var ed=v.forwardRef(function(n,r){return v.createElement(Ql,bn({},n,{ref:r,sideCar:xC}))});ed.classNames=Ql.classNames;var wC=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},ko=new WeakMap,cl=new WeakMap,dl={},sc=0,mg=function(n){return n&&(n.host||mg(n.parentNode))},SC=function(n,r){return r.map(function(i){if(n.contains(i))return i;var s=mg(i);return s&&n.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},EC=function(n,r,i,s){var a=SC(r,Array.isArray(n)?n:[n]);dl[i]||(dl[i]=new WeakMap);var u=dl[i],d=[],f=new Set,h=new Set(a),g=function(w){!w||f.has(w)||(f.add(w),g(w.parentNode))};a.forEach(g);var y=function(w){!w||h.has(w)||Array.prototype.forEach.call(w.children,function(b){if(f.has(b))y(b);else try{var E=b.getAttribute(s),N=E!==null&&E!=="false",S=(ko.get(b)||0)+1,C=(u.get(b)||0)+1;ko.set(b,S),u.set(b,C),d.push(b),S===1&&N&&cl.set(b,!0),C===1&&b.setAttribute(i,"true"),N||b.setAttribute(s,"true")}catch(O){console.error("aria-hidden: cannot operate on ",b,O)}})};return y(r),f.clear(),sc++,function(){d.forEach(function(w){var b=ko.get(w)-1,E=u.get(w)-1;ko.set(w,b),u.set(w,E),b||(cl.has(w)||w.removeAttribute(s),cl.delete(w)),E||w.removeAttribute(i)}),sc--,sc||(ko=new WeakMap,ko=new WeakMap,cl=new WeakMap,dl={})}},hg=function(n,r,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),a=wC(n);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),EC(s,a,i,"aria-hidden")):function(){return null}},ql="Dialog",[gg]=Gl(ql),[CC,cn]=gg(ql),vg=n=>{const{__scopeDialog:r,children:i,open:s,defaultOpen:a,onOpenChange:u,modal:d=!0}=n,f=v.useRef(null),h=v.useRef(null),[g,y]=Ec({prop:s,defaultProp:a??!1,onChange:u,caller:ql});return m.jsx(CC,{scope:r,triggerRef:f,contentRef:h,contentId:Oo(),titleId:Oo(),descriptionId:Oo(),open:g,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(w=>!w),[y]),modal:d,children:i})};vg.displayName=ql;var yg="DialogTrigger",bC=v.forwardRef((n,r)=>{const{__scopeDialog:i,...s}=n,a=cn(yg,i),u=qe(r,a.triggerRef);return m.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":rd(a.open),...s,ref:u,onClick:ze(n.onClick,a.onOpenToggle)})});bC.displayName=yg;var td="DialogPortal",[NC,xg]=gg(td,{forceMount:void 0}),wg=n=>{const{__scopeDialog:r,forceMount:i,children:s,container:a}=n,u=cn(td,r);return m.jsx(NC,{scope:r,forceMount:i,children:v.Children.map(s,d=>m.jsx(Yl,{present:i||u.open,children:m.jsx(Zc,{asChild:!0,container:a,children:d})}))})};wg.displayName=td;var Rl="DialogOverlay",Sg=v.forwardRef((n,r)=>{const i=xg(Rl,n.__scopeDialog),{forceMount:s=i.forceMount,...a}=n,u=cn(Rl,n.__scopeDialog);return u.modal?m.jsx(Yl,{present:s||u.open,children:m.jsx(kC,{...a,ref:r})}):null});Sg.displayName=Rl;var RC=Di("DialogOverlay.RemoveScroll"),kC=v.forwardRef((n,r)=>{const{__scopeDialog:i,...s}=n,a=cn(Rl,i);return m.jsx(ed,{as:RC,allowPinchZoom:!0,shards:[a.contentRef],children:m.jsx(Ie.div,{"data-state":rd(a.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),Hr="DialogContent",Eg=v.forwardRef((n,r)=>{const i=xg(Hr,n.__scopeDialog),{forceMount:s=i.forceMount,...a}=n,u=cn(Hr,n.__scopeDialog);return m.jsx(Yl,{present:s||u.open,children:u.modal?m.jsx(PC,{...a,ref:r}):m.jsx(TC,{...a,ref:r})})});Eg.displayName=Hr;var PC=v.forwardRef((n,r)=>{const i=cn(Hr,n.__scopeDialog),s=v.useRef(null),a=qe(r,i.contentRef,s);return v.useEffect(()=>{const u=s.current;if(u)return hg(u)},[]),m.jsx(Cg,{...n,ref:a,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ze(n.onCloseAutoFocus,u=>{var d;u.preventDefault(),(d=i.triggerRef.current)==null||d.focus()}),onPointerDownOutside:ze(n.onPointerDownOutside,u=>{const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0;(d.button===2||f)&&u.preventDefault()}),onFocusOutside:ze(n.onFocusOutside,u=>u.preventDefault())})}),TC=v.forwardRef((n,r)=>{const i=cn(Hr,n.__scopeDialog),s=v.useRef(!1),a=v.useRef(!1);return m.jsx(Cg,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var d,f;(d=n.onCloseAutoFocus)==null||d.call(n,u),u.defaultPrevented||(s.current||(f=i.triggerRef.current)==null||f.focus(),u.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:u=>{var h,g;(h=n.onInteractOutside)==null||h.call(n,u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const d=u.target;((g=i.triggerRef.current)==null?void 0:g.contains(d))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&a.current&&u.preventDefault()}})}),Cg=v.forwardRef((n,r)=>{const{__scopeDialog:i,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:u,...d}=n,f=cn(Hr,i),h=v.useRef(null),g=qe(r,h);return sg(),m.jsxs(m.Fragment,{children:[m.jsx(Jc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:u,children:m.jsx(Xc,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":rd(f.open),...d,ref:g,onDismiss:()=>f.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(jC,{titleId:f.titleId}),m.jsx(_C,{contentRef:h,descriptionId:f.descriptionId})]})]})}),nd="DialogTitle",bg=v.forwardRef((n,r)=>{const{__scopeDialog:i,...s}=n,a=cn(nd,i);return m.jsx(Ie.h2,{id:a.titleId,...s,ref:r})});bg.displayName=nd;var Ng="DialogDescription",Rg=v.forwardRef((n,r)=>{const{__scopeDialog:i,...s}=n,a=cn(Ng,i);return m.jsx(Ie.p,{id:a.descriptionId,...s,ref:r})});Rg.displayName=Ng;var kg="DialogClose",Pg=v.forwardRef((n,r)=>{const{__scopeDialog:i,...s}=n,a=cn(kg,i);return m.jsx(Ie.button,{type:"button",...s,ref:r,onClick:ze(n.onClick,()=>a.onOpenChange(!1))})});Pg.displayName=kg;function rd(n){return n?"open":"closed"}var Tg="DialogTitleWarning",[dR,jg]=iE(Tg,{contentName:Hr,titleName:nd,docsSlug:"dialog"}),jC=({titleId:n})=>{const r=jg(Tg),i=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
114
|
-
|
|
115
|
-
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
116
|
-
|
|
117
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(i))},[i,n]),null},OC="DialogDescriptionWarning",_C=({contentRef:n,descriptionId:r})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jg(OC).contentName}}.`;return v.useEffect(()=>{var u;const a=(u=n.current)==null?void 0:u.getAttribute("aria-describedby");r&&a&&(document.getElementById(r)||console.warn(s))},[s,n,r]),null},AC=vg,LC=wg,Og=Sg,_g=Eg,Ag=bg,Lg=Rg,IC=Pg;const Do=AC,DC=LC,Ig=v.forwardRef(({className:n,...r},i)=>m.jsx(Og,{ref:i,className:Te("fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r}));Ig.displayName=Og.displayName;const Kr=v.forwardRef(({className:n,children:r,...i},s)=>m.jsxs(DC,{children:[m.jsx(Ig,{}),m.jsxs(_g,{ref:s,className:Te("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...i,children:[r,m.jsxs(IC,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[m.jsx("i",{className:"ri-close-line text-lg"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Kr.displayName=_g.displayName;const yr=({className:n,...r})=>m.jsx("div",{className:Te("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});yr.displayName="DialogHeader";const xr=({className:n,...r})=>m.jsx("div",{className:Te("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});xr.displayName="DialogFooter";const wr=v.forwardRef(({className:n,...r},i)=>m.jsx(Ag,{ref:i,className:Te("text-lg font-semibold leading-none tracking-tight",n),...r}));wr.displayName=Ag.displayName;const Sr=v.forwardRef(({className:n,...r},i)=>m.jsx(Lg,{ref:i,className:Te("text-sm text-muted-foreground",n),...r}));Sr.displayName=Lg.displayName;const Xl=v.forwardRef(({className:n,...r},i)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:i,className:Te("w-full caption-bottom text-sm",n),...r})}));Xl.displayName="Table";const Jl=v.forwardRef(({className:n,...r},i)=>m.jsx("thead",{ref:i,className:Te("[&_tr]:border-b",n),...r}));Jl.displayName="TableHeader";const Zl=v.forwardRef(({className:n,...r},i)=>m.jsx("tbody",{ref:i,className:Te("[&_tr:last-child]:border-0",n),...r}));Zl.displayName="TableBody";const Gr=v.forwardRef(({className:n,...r},i)=>m.jsx("tr",{ref:i,className:Te("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n),...r}));Gr.displayName="TableRow";const lt=v.forwardRef(({className:n,...r},i)=>m.jsx("th",{ref:i,className:Te("h-10 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...r}));lt.displayName="TableHead";const at=v.forwardRef(({className:n,...r},i)=>m.jsx("td",{ref:i,className:Te("p-4 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...r}));at.displayName="TableCell";const MC=v.forwardRef(({className:n,...r},i)=>m.jsx("caption",{ref:i,className:Te("mt-4 text-sm text-muted-foreground",n),...r}));MC.displayName="TableCaption";function FC(){const[n,r]=v.useState([]),[i,s]=v.useState(!0),[a,u]=v.useState(!1),[d,f]=v.useState(""),[h,g]=v.useState(""),[y,w]=v.useState(!1),[b,E]=v.useState(null),[N,S]=v.useState(!1);async function C(){try{r(await Hl())}catch{ut.error("Failed to load groups")}finally{s(!1)}}v.useEffect(()=>{C()},[]);async function O(T){T.preventDefault(),w(!0);try{await K1({name:d.trim(),description:h.trim()}),ut.success("Group created"),u(!1),f(""),g(""),C()}catch(L){ut.error(Gc(L,"Failed to create group"))}finally{w(!1)}}async function P(){if(b){S(!0);try{await G1(b.id),ut.success("Group deleted"),E(null),C()}catch{ut.error("Failed to delete group")}finally{S(!1)}}}return m.jsxs("div",{className:"p-6 space-y-6",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Groups"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Logical namespaces for OAS entries and tokens"})]}),m.jsxs(Be,{onClick:()=>u(!0),children:[m.jsx("i",{className:"ri-add-line"}),"New Group"]})]}),i?m.jsx("div",{className:"flex justify-center py-12",children:m.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):n.length===0?m.jsxs("div",{className:"rounded-lg border border-dashed py-12 text-center text-muted-foreground",children:[m.jsx("i",{className:"ri-group-line text-3xl block mb-2"}),m.jsx("p",{className:"text-sm",children:"No groups yet. Create your first group to get started."})]}):m.jsx("div",{className:"rounded-lg border",children:m.jsxs(Xl,{children:[m.jsx(Jl,{children:m.jsxs(Gr,{children:[m.jsx(lt,{children:"Name"}),m.jsx(lt,{children:"Description"}),m.jsx(lt,{children:"Created"}),m.jsx(lt,{className:"w-20"})]})}),m.jsx(Zl,{children:n.map(T=>m.jsxs(Gr,{children:[m.jsx(at,{className:"font-mono font-medium",children:T.name}),m.jsx(at,{className:"text-muted-foreground max-w-xs truncate",children:T.description||m.jsx("span",{className:"italic text-xs",children:"—"})}),m.jsx(at,{className:"text-muted-foreground text-xs",children:bl(T.createdAt)}),m.jsx(at,{children:m.jsx(Be,{variant:"ghost",size:"icon",className:"text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>E(T),children:m.jsx("i",{className:"ri-delete-bin-line"})})})]},T.id))})]})}),m.jsx(Do,{open:a,onOpenChange:u,children:m.jsxs(Kr,{className:"sm:max-w-md",children:[m.jsxs(yr,{children:[m.jsx(wr,{children:"New Group"}),m.jsx(Sr,{children:"Groups namespace OAS entries and tokens together."})]}),m.jsxs("form",{onSubmit:O,className:"space-y-4",children:[m.jsxs("div",{className:"space-y-1.5",children:[m.jsxs(st,{htmlFor:"gname",children:["Name ",m.jsx("span",{className:"text-destructive",children:"*"})]}),m.jsx(sn,{id:"gname",placeholder:"production",value:d,onChange:T=>f(T.target.value),required:!0,pattern:"[a-zA-Z0-9\\-_ ]+"})]}),m.jsxs("div",{className:"space-y-1.5",children:[m.jsx(st,{htmlFor:"gdesc",children:"Description"}),m.jsx(Kl,{id:"gdesc",placeholder:"Optional description",value:h,onChange:T=>g(T.target.value),rows:2})]}),m.jsxs(xr,{children:[m.jsx(Be,{type:"button",variant:"outline",onClick:()=>u(!1),children:"Cancel"}),m.jsxs(Be,{type:"submit",disabled:y,children:[y&&m.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Create"]})]})]})]})}),m.jsx(Do,{open:!!b,onOpenChange:T=>!T&&E(null),children:m.jsxs(Kr,{className:"sm:max-w-md",children:[m.jsxs(yr,{children:[m.jsx(wr,{children:"Delete group?"}),m.jsxs(Sr,{children:["This will permanently delete ",m.jsx("strong",{children:b==null?void 0:b.name})," and all associated OAS entries and tokens. This action cannot be undone."]})]}),m.jsxs(xr,{children:[m.jsx(Be,{variant:"outline",onClick:()=>E(null),children:"Cancel"}),m.jsxs(Be,{variant:"destructive",onClick:P,disabled:N,children:[N&&m.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Delete"]})]})]})})]})}function Hm(n,[r,i]){return Math.min(i,Math.max(r,n))}function zC(n){const r=n+"CollectionProvider",[i,s]=Gl(r),[a,u]=i(r,{collectionRef:{current:null},itemMap:new Map}),d=S=>{const{scope:C,children:O}=S,P=J.useRef(null),T=J.useRef(new Map).current;return m.jsx(a,{scope:C,itemMap:T,collectionRef:P,children:O})};d.displayName=r;const f=n+"CollectionSlot",h=Di(f),g=J.forwardRef((S,C)=>{const{scope:O,children:P}=S,T=u(f,O),L=qe(C,T.collectionRef);return m.jsx(h,{ref:L,children:P})});g.displayName=f;const y=n+"CollectionItemSlot",w="data-radix-collection-item",b=Di(y),E=J.forwardRef((S,C)=>{const{scope:O,children:P,...T}=S,L=J.useRef(null),$=qe(C,L),V=u(y,O);return J.useEffect(()=>(V.itemMap.set(L,{ref:L,...T}),()=>void V.itemMap.delete(L))),m.jsx(b,{[w]:"",ref:$,children:P})});E.displayName=y;function N(S){const C=u(n+"CollectionConsumer",S);return J.useCallback(()=>{const P=C.collectionRef.current;if(!P)return[];const T=Array.from(P.querySelectorAll(`[${w}]`));return Array.from(C.itemMap.values()).sort((V,W)=>T.indexOf(V.ref.current)-T.indexOf(W.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:d,Slot:g,ItemSlot:E},N,s]}var UC=v.createContext(void 0);function BC(n){const r=v.useContext(UC);return n||r||"ltr"}const $C=["top","right","bottom","left"],Er=Math.min,Dt=Math.max,kl=Math.round,fl=Math.floor,Rn=n=>({x:n,y:n}),WC={left:"right",right:"left",bottom:"top",top:"bottom"};function Nc(n,r,i){return Dt(n,Er(r,i))}function Un(n,r){return typeof n=="function"?n(r):n}function Bn(n){return n.split("-")[0]}function Wo(n){return n.split("-")[1]}function od(n){return n==="x"?"y":"x"}function id(n){return n==="y"?"height":"width"}function Nn(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function sd(n){return od(Nn(n))}function VC(n,r,i){i===void 0&&(i=!1);const s=Wo(n),a=sd(n),u=id(a);let d=a==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(d=Pl(d)),[d,Pl(d)]}function HC(n){const r=Pl(n);return[Rc(n),r,Rc(r)]}function Rc(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Km=["left","right"],Gm=["right","left"],KC=["top","bottom"],GC=["bottom","top"];function YC(n,r,i){switch(n){case"top":case"bottom":return i?r?Gm:Km:r?Km:Gm;case"left":case"right":return r?KC:GC;default:return[]}}function QC(n,r,i,s){const a=Wo(n);let u=YC(Bn(n),i==="start",s);return a&&(u=u.map(d=>d+"-"+a),r&&(u=u.concat(u.map(Rc)))),u}function Pl(n){const r=Bn(n);return WC[r]+n.slice(r.length)}function qC(n){return{top:0,right:0,bottom:0,left:0,...n}}function Dg(n){return typeof n!="number"?qC(n):{top:n,right:n,bottom:n,left:n}}function Tl(n){const{x:r,y:i,width:s,height:a}=n;return{width:s,height:a,top:i,left:r,right:r+s,bottom:i+a,x:r,y:i}}function Ym(n,r,i){let{reference:s,floating:a}=n;const u=Nn(r),d=sd(r),f=id(d),h=Bn(r),g=u==="y",y=s.x+s.width/2-a.width/2,w=s.y+s.height/2-a.height/2,b=s[f]/2-a[f]/2;let E;switch(h){case"top":E={x:y,y:s.y-a.height};break;case"bottom":E={x:y,y:s.y+s.height};break;case"right":E={x:s.x+s.width,y:w};break;case"left":E={x:s.x-a.width,y:w};break;default:E={x:s.x,y:s.y}}switch(Wo(r)){case"start":E[d]-=b*(i&&g?-1:1);break;case"end":E[d]+=b*(i&&g?-1:1);break}return E}async function XC(n,r){var i;r===void 0&&(r={});const{x:s,y:a,platform:u,rects:d,elements:f,strategy:h}=n,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:w="floating",altBoundary:b=!1,padding:E=0}=Un(r,n),N=Dg(E),C=f[b?w==="floating"?"reference":"floating":w],O=Tl(await u.getClippingRect({element:(i=await(u.isElement==null?void 0:u.isElement(C)))==null||i?C:C.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:g,rootBoundary:y,strategy:h})),P=w==="floating"?{x:s,y:a,width:d.floating.width,height:d.floating.height}:d.reference,T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),L=await(u.isElement==null?void 0:u.isElement(T))?await(u.getScale==null?void 0:u.getScale(T))||{x:1,y:1}:{x:1,y:1},$=Tl(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:P,offsetParent:T,strategy:h}):P);return{top:(O.top-$.top+N.top)/L.y,bottom:($.bottom-O.bottom+N.bottom)/L.y,left:(O.left-$.left+N.left)/L.x,right:($.right-O.right+N.right)/L.x}}const JC=50,ZC=async(n,r,i)=>{const{placement:s="bottom",strategy:a="absolute",middleware:u=[],platform:d}=i,f=d.detectOverflow?d:{...d,detectOverflow:XC},h=await(d.isRTL==null?void 0:d.isRTL(r));let g=await d.getElementRects({reference:n,floating:r,strategy:a}),{x:y,y:w}=Ym(g,s,h),b=s,E=0;const N={};for(let S=0;S<u.length;S++){const C=u[S];if(!C)continue;const{name:O,fn:P}=C,{x:T,y:L,data:$,reset:V}=await P({x:y,y:w,initialPlacement:s,placement:b,strategy:a,middlewareData:N,rects:g,platform:f,elements:{reference:n,floating:r}});y=T??y,w=L??w,N[O]={...N[O],...$},V&&E<JC&&(E++,typeof V=="object"&&(V.placement&&(b=V.placement),V.rects&&(g=V.rects===!0?await d.getElementRects({reference:n,floating:r,strategy:a}):V.rects),{x:y,y:w}=Ym(g,b,h)),S=-1)}return{x:y,y:w,placement:b,strategy:a,middlewareData:N}},eb=n=>({name:"arrow",options:n,async fn(r){const{x:i,y:s,placement:a,rects:u,platform:d,elements:f,middlewareData:h}=r,{element:g,padding:y=0}=Un(n,r)||{};if(g==null)return{};const w=Dg(y),b={x:i,y:s},E=sd(a),N=id(E),S=await d.getDimensions(g),C=E==="y",O=C?"top":"left",P=C?"bottom":"right",T=C?"clientHeight":"clientWidth",L=u.reference[N]+u.reference[E]-b[E]-u.floating[N],$=b[E]-u.reference[E],V=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let W=V?V[T]:0;(!W||!await(d.isElement==null?void 0:d.isElement(V)))&&(W=f.floating[T]||u.floating[N]);const ie=L/2-$/2,le=W/2-S[N]/2-1,de=Er(w[O],le),he=Er(w[P],le),Z=de,U=W-S[N]-he,te=W/2-S[N]/2+ie,q=Nc(Z,te,U),ee=!h.arrow&&Wo(a)!=null&&te!==q&&u.reference[N]/2-(te<Z?de:he)-S[N]/2<0,oe=ee?te<Z?te-Z:te-U:0;return{[E]:b[E]+oe,data:{[E]:q,centerOffset:te-q-oe,...ee&&{alignmentOffset:oe}},reset:ee}}}),tb=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var i,s;const{placement:a,middlewareData:u,rects:d,initialPlacement:f,platform:h,elements:g}=r,{mainAxis:y=!0,crossAxis:w=!0,fallbackPlacements:b,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:S=!0,...C}=Un(n,r);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const O=Bn(a),P=Nn(f),T=Bn(f)===f,L=await(h.isRTL==null?void 0:h.isRTL(g.floating)),$=b||(T||!S?[Pl(f)]:HC(f)),V=N!=="none";!b&&V&&$.push(...QC(f,S,N,L));const W=[f,...$],ie=await h.detectOverflow(r,C),le=[];let de=((s=u.flip)==null?void 0:s.overflows)||[];if(y&&le.push(ie[O]),w){const te=VC(a,d,L);le.push(ie[te[0]],ie[te[1]])}if(de=[...de,{placement:a,overflows:le}],!le.every(te=>te<=0)){var he,Z;const te=(((he=u.flip)==null?void 0:he.index)||0)+1,q=W[te];if(q&&(!(w==="alignment"?P!==Nn(q):!1)||de.every(z=>Nn(z.placement)===P?z.overflows[0]>0:!0)))return{data:{index:te,overflows:de},reset:{placement:q}};let ee=(Z=de.filter(oe=>oe.overflows[0]<=0).sort((oe,z)=>oe.overflows[1]-z.overflows[1])[0])==null?void 0:Z.placement;if(!ee)switch(E){case"bestFit":{var U;const oe=(U=de.filter(z=>{if(V){const B=Nn(z.placement);return B===P||B==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(B=>B>0).reduce((B,G)=>B+G,0)]).sort((z,B)=>z[1]-B[1])[0])==null?void 0:U[0];oe&&(ee=oe);break}case"initialPlacement":ee=f;break}if(a!==ee)return{reset:{placement:ee}}}return{}}}};function Qm(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function qm(n){return $C.some(r=>n[r]>=0)}const nb=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:i,platform:s}=r,{strategy:a="referenceHidden",...u}=Un(n,r);switch(a){case"referenceHidden":{const d=await s.detectOverflow(r,{...u,elementContext:"reference"}),f=Qm(d,i.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:qm(f)}}}case"escaped":{const d=await s.detectOverflow(r,{...u,altBoundary:!0}),f=Qm(d,i.floating);return{data:{escapedOffsets:f,escaped:qm(f)}}}default:return{}}}}},Mg=new Set(["left","top"]);async function rb(n,r){const{placement:i,platform:s,elements:a}=n,u=await(s.isRTL==null?void 0:s.isRTL(a.floating)),d=Bn(i),f=Wo(i),h=Nn(i)==="y",g=Mg.has(d)?-1:1,y=u&&h?-1:1,w=Un(r,n);let{mainAxis:b,crossAxis:E,alignmentAxis:N}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return f&&typeof N=="number"&&(E=f==="end"?N*-1:N),h?{x:E*y,y:b*g}:{x:b*g,y:E*y}}const ob=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var i,s;const{x:a,y:u,placement:d,middlewareData:f}=r,h=await rb(r,n);return d===((i=f.offset)==null?void 0:i.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:a+h.x,y:u+h.y,data:{...h,placement:d}}}}},ib=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:i,y:s,placement:a,platform:u}=r,{mainAxis:d=!0,crossAxis:f=!1,limiter:h={fn:O=>{let{x:P,y:T}=O;return{x:P,y:T}}},...g}=Un(n,r),y={x:i,y:s},w=await u.detectOverflow(r,g),b=Nn(Bn(a)),E=od(b);let N=y[E],S=y[b];if(d){const O=E==="y"?"top":"left",P=E==="y"?"bottom":"right",T=N+w[O],L=N-w[P];N=Nc(T,N,L)}if(f){const O=b==="y"?"top":"left",P=b==="y"?"bottom":"right",T=S+w[O],L=S-w[P];S=Nc(T,S,L)}const C=h.fn({...r,[E]:N,[b]:S});return{...C,data:{x:C.x-i,y:C.y-s,enabled:{[E]:d,[b]:f}}}}}},sb=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:i,y:s,placement:a,rects:u,middlewareData:d}=r,{offset:f=0,mainAxis:h=!0,crossAxis:g=!0}=Un(n,r),y={x:i,y:s},w=Nn(a),b=od(w);let E=y[b],N=y[w];const S=Un(f,r),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const T=b==="y"?"height":"width",L=u.reference[b]-u.floating[T]+C.mainAxis,$=u.reference[b]+u.reference[T]-C.mainAxis;E<L?E=L:E>$&&(E=$)}if(g){var O,P;const T=b==="y"?"width":"height",L=Mg.has(Bn(a)),$=u.reference[w]-u.floating[T]+(L&&((O=d.offset)==null?void 0:O[w])||0)+(L?0:C.crossAxis),V=u.reference[w]+u.reference[T]+(L?0:((P=d.offset)==null?void 0:P[w])||0)-(L?C.crossAxis:0);N<$?N=$:N>V&&(N=V)}return{[b]:E,[w]:N}}}},lb=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var i,s;const{placement:a,rects:u,platform:d,elements:f}=r,{apply:h=()=>{},...g}=Un(n,r),y=await d.detectOverflow(r,g),w=Bn(a),b=Wo(a),E=Nn(a)==="y",{width:N,height:S}=u.floating;let C,O;w==="top"||w==="bottom"?(C=w,O=b===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(O=w,C=b==="end"?"top":"bottom");const P=S-y.top-y.bottom,T=N-y.left-y.right,L=Er(S-y[C],P),$=Er(N-y[O],T),V=!r.middlewareData.shift;let W=L,ie=$;if((i=r.middlewareData.shift)!=null&&i.enabled.x&&(ie=T),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(W=P),V&&!b){const de=Dt(y.left,0),he=Dt(y.right,0),Z=Dt(y.top,0),U=Dt(y.bottom,0);E?ie=N-2*(de!==0||he!==0?de+he:Dt(y.left,y.right)):W=S-2*(Z!==0||U!==0?Z+U:Dt(y.top,y.bottom))}await h({...r,availableWidth:ie,availableHeight:W});const le=await d.getDimensions(f.floating);return N!==le.width||S!==le.height?{reset:{rects:!0}}:{}}}};function ea(){return typeof window<"u"}function Vo(n){return Fg(n)?(n.nodeName||"").toLowerCase():"#document"}function Mt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Pn(n){var r;return(r=(Fg(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function Fg(n){return ea()?n instanceof Node||n instanceof Mt(n).Node:!1}function ln(n){return ea()?n instanceof Element||n instanceof Mt(n).Element:!1}function Vn(n){return ea()?n instanceof HTMLElement||n instanceof Mt(n).HTMLElement:!1}function Xm(n){return!ea()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Mt(n).ShadowRoot}function Vi(n){const{overflow:r,overflowX:i,overflowY:s,display:a}=an(n);return/auto|scroll|overlay|hidden|clip/.test(r+s+i)&&a!=="inline"&&a!=="contents"}function ab(n){return/^(table|td|th)$/.test(Vo(n))}function ta(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const ub=/transform|translate|scale|rotate|perspective|filter/,cb=/paint|layout|strict|content/,Ur=n=>!!n&&n!=="none";let lc;function ld(n){const r=ln(n)?an(n):n;return Ur(r.transform)||Ur(r.translate)||Ur(r.scale)||Ur(r.rotate)||Ur(r.perspective)||!ad()&&(Ur(r.backdropFilter)||Ur(r.filter))||ub.test(r.willChange||"")||cb.test(r.contain||"")}function db(n){let r=Cr(n);for(;Vn(r)&&!Mo(r);){if(ld(r))return r;if(ta(r))return null;r=Cr(r)}return null}function ad(){return lc==null&&(lc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),lc}function Mo(n){return/^(html|body|#document)$/.test(Vo(n))}function an(n){return Mt(n).getComputedStyle(n)}function na(n){return ln(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Cr(n){if(Vo(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Xm(n)&&n.host||Pn(n);return Xm(r)?r.host:r}function zg(n){const r=Cr(n);return Mo(r)?n.ownerDocument?n.ownerDocument.body:n.body:Vn(r)&&Vi(r)?r:zg(r)}function Mi(n,r,i){var s;r===void 0&&(r=[]),i===void 0&&(i=!0);const a=zg(n),u=a===((s=n.ownerDocument)==null?void 0:s.body),d=Mt(a);if(u){const f=kc(d);return r.concat(d,d.visualViewport||[],Vi(a)?a:[],f&&i?Mi(f):[])}else return r.concat(a,Mi(a,[],i))}function kc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ug(n){const r=an(n);let i=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const a=Vn(n),u=a?n.offsetWidth:i,d=a?n.offsetHeight:s,f=kl(i)!==u||kl(s)!==d;return f&&(i=u,s=d),{width:i,height:s,$:f}}function ud(n){return ln(n)?n:n.contextElement}function Ao(n){const r=ud(n);if(!Vn(r))return Rn(1);const i=r.getBoundingClientRect(),{width:s,height:a,$:u}=Ug(r);let d=(u?kl(i.width):i.width)/s,f=(u?kl(i.height):i.height)/a;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}const fb=Rn(0);function Bg(n){const r=Mt(n);return!ad()||!r.visualViewport?fb:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function pb(n,r,i){return r===void 0&&(r=!1),!i||r&&i!==Mt(n)?!1:r}function Yr(n,r,i,s){r===void 0&&(r=!1),i===void 0&&(i=!1);const a=n.getBoundingClientRect(),u=ud(n);let d=Rn(1);r&&(s?ln(s)&&(d=Ao(s)):d=Ao(n));const f=pb(u,i,s)?Bg(u):Rn(0);let h=(a.left+f.x)/d.x,g=(a.top+f.y)/d.y,y=a.width/d.x,w=a.height/d.y;if(u){const b=Mt(u),E=s&&ln(s)?Mt(s):s;let N=b,S=kc(N);for(;S&&s&&E!==N;){const C=Ao(S),O=S.getBoundingClientRect(),P=an(S),T=O.left+(S.clientLeft+parseFloat(P.paddingLeft))*C.x,L=O.top+(S.clientTop+parseFloat(P.paddingTop))*C.y;h*=C.x,g*=C.y,y*=C.x,w*=C.y,h+=T,g+=L,N=Mt(S),S=kc(N)}}return Tl({width:y,height:w,x:h,y:g})}function ra(n,r){const i=na(n).scrollLeft;return r?r.left+i:Yr(Pn(n)).left+i}function $g(n,r){const i=n.getBoundingClientRect(),s=i.left+r.scrollLeft-ra(n,i),a=i.top+r.scrollTop;return{x:s,y:a}}function mb(n){let{elements:r,rect:i,offsetParent:s,strategy:a}=n;const u=a==="fixed",d=Pn(s),f=r?ta(r.floating):!1;if(s===d||f&&u)return i;let h={scrollLeft:0,scrollTop:0},g=Rn(1);const y=Rn(0),w=Vn(s);if((w||!w&&!u)&&((Vo(s)!=="body"||Vi(d))&&(h=na(s)),w)){const E=Yr(s);g=Ao(s),y.x=E.x+s.clientLeft,y.y=E.y+s.clientTop}const b=d&&!w&&!u?$g(d,h):Rn(0);return{width:i.width*g.x,height:i.height*g.y,x:i.x*g.x-h.scrollLeft*g.x+y.x+b.x,y:i.y*g.y-h.scrollTop*g.y+y.y+b.y}}function hb(n){return Array.from(n.getClientRects())}function gb(n){const r=Pn(n),i=na(n),s=n.ownerDocument.body,a=Dt(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),u=Dt(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let d=-i.scrollLeft+ra(n);const f=-i.scrollTop;return an(s).direction==="rtl"&&(d+=Dt(r.clientWidth,s.clientWidth)-a),{width:a,height:u,x:d,y:f}}const Jm=25;function vb(n,r){const i=Mt(n),s=Pn(n),a=i.visualViewport;let u=s.clientWidth,d=s.clientHeight,f=0,h=0;if(a){u=a.width,d=a.height;const y=ad();(!y||y&&r==="fixed")&&(f=a.offsetLeft,h=a.offsetTop)}const g=ra(s);if(g<=0){const y=s.ownerDocument,w=y.body,b=getComputedStyle(w),E=y.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,N=Math.abs(s.clientWidth-w.clientWidth-E);N<=Jm&&(u-=N)}else g<=Jm&&(u+=g);return{width:u,height:d,x:f,y:h}}function yb(n,r){const i=Yr(n,!0,r==="fixed"),s=i.top+n.clientTop,a=i.left+n.clientLeft,u=Vn(n)?Ao(n):Rn(1),d=n.clientWidth*u.x,f=n.clientHeight*u.y,h=a*u.x,g=s*u.y;return{width:d,height:f,x:h,y:g}}function Zm(n,r,i){let s;if(r==="viewport")s=vb(n,i);else if(r==="document")s=gb(Pn(n));else if(ln(r))s=yb(r,i);else{const a=Bg(n);s={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return Tl(s)}function Wg(n,r){const i=Cr(n);return i===r||!ln(i)||Mo(i)?!1:an(i).position==="fixed"||Wg(i,r)}function xb(n,r){const i=r.get(n);if(i)return i;let s=Mi(n,[],!1).filter(f=>ln(f)&&Vo(f)!=="body"),a=null;const u=an(n).position==="fixed";let d=u?Cr(n):n;for(;ln(d)&&!Mo(d);){const f=an(d),h=ld(d);!h&&f.position==="fixed"&&(a=null),(u?!h&&!a:!h&&f.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Vi(d)&&!h&&Wg(n,d))?s=s.filter(y=>y!==d):a=f,d=Cr(d)}return r.set(n,s),s}function wb(n){let{element:r,boundary:i,rootBoundary:s,strategy:a}=n;const d=[...i==="clippingAncestors"?ta(r)?[]:xb(r,this._c):[].concat(i),s],f=Zm(r,d[0],a);let h=f.top,g=f.right,y=f.bottom,w=f.left;for(let b=1;b<d.length;b++){const E=Zm(r,d[b],a);h=Dt(E.top,h),g=Er(E.right,g),y=Er(E.bottom,y),w=Dt(E.left,w)}return{width:g-w,height:y-h,x:w,y:h}}function Sb(n){const{width:r,height:i}=Ug(n);return{width:r,height:i}}function Eb(n,r,i){const s=Vn(r),a=Pn(r),u=i==="fixed",d=Yr(n,!0,u,r);let f={scrollLeft:0,scrollTop:0};const h=Rn(0);function g(){h.x=ra(a)}if(s||!s&&!u)if((Vo(r)!=="body"||Vi(a))&&(f=na(r)),s){const E=Yr(r,!0,u,r);h.x=E.x+r.clientLeft,h.y=E.y+r.clientTop}else a&&g();u&&!s&&a&&g();const y=a&&!s&&!u?$g(a,f):Rn(0),w=d.left+f.scrollLeft-h.x-y.x,b=d.top+f.scrollTop-h.y-y.y;return{x:w,y:b,width:d.width,height:d.height}}function ac(n){return an(n).position==="static"}function eh(n,r){if(!Vn(n)||an(n).position==="fixed")return null;if(r)return r(n);let i=n.offsetParent;return Pn(n)===i&&(i=i.ownerDocument.body),i}function Vg(n,r){const i=Mt(n);if(ta(n))return i;if(!Vn(n)){let a=Cr(n);for(;a&&!Mo(a);){if(ln(a)&&!ac(a))return a;a=Cr(a)}return i}let s=eh(n,r);for(;s&&ab(s)&&ac(s);)s=eh(s,r);return s&&Mo(s)&&ac(s)&&!ld(s)?i:s||db(n)||i}const Cb=async function(n){const r=this.getOffsetParent||Vg,i=this.getDimensions,s=await i(n.floating);return{reference:Eb(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function bb(n){return an(n).direction==="rtl"}const Nb={convertOffsetParentRelativeRectToViewportRelativeRect:mb,getDocumentElement:Pn,getClippingRect:wb,getOffsetParent:Vg,getElementRects:Cb,getClientRects:hb,getDimensions:Sb,getScale:Ao,isElement:ln,isRTL:bb};function Hg(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function Rb(n,r){let i=null,s;const a=Pn(n);function u(){var f;clearTimeout(s),(f=i)==null||f.disconnect(),i=null}function d(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),u();const g=n.getBoundingClientRect(),{left:y,top:w,width:b,height:E}=g;if(f||r(),!b||!E)return;const N=fl(w),S=fl(a.clientWidth-(y+b)),C=fl(a.clientHeight-(w+E)),O=fl(y),T={rootMargin:-N+"px "+-S+"px "+-C+"px "+-O+"px",threshold:Dt(0,Er(1,h))||1};let L=!0;function $(V){const W=V[0].intersectionRatio;if(W!==h){if(!L)return d();W?d(!1,W):s=setTimeout(()=>{d(!1,1e-7)},1e3)}W===1&&!Hg(g,n.getBoundingClientRect())&&d(),L=!1}try{i=new IntersectionObserver($,{...T,root:a.ownerDocument})}catch{i=new IntersectionObserver($,T)}i.observe(n)}return d(!0),u}function kb(n,r,i,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=s,g=ud(n),y=a||u?[...g?Mi(g):[],...r?Mi(r):[]]:[];y.forEach(O=>{a&&O.addEventListener("scroll",i,{passive:!0}),u&&O.addEventListener("resize",i)});const w=g&&f?Rb(g,i):null;let b=-1,E=null;d&&(E=new ResizeObserver(O=>{let[P]=O;P&&P.target===g&&E&&r&&(E.unobserve(r),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var T;(T=E)==null||T.observe(r)})),i()}),g&&!h&&E.observe(g),r&&E.observe(r));let N,S=h?Yr(n):null;h&&C();function C(){const O=Yr(n);S&&!Hg(S,O)&&i(),S=O,N=requestAnimationFrame(C)}return i(),()=>{var O;y.forEach(P=>{a&&P.removeEventListener("scroll",i),u&&P.removeEventListener("resize",i)}),w==null||w(),(O=E)==null||O.disconnect(),E=null,h&&cancelAnimationFrame(N)}}const Pb=ob,Tb=ib,jb=tb,Ob=lb,_b=nb,th=eb,Ab=sb,Lb=(n,r,i)=>{const s=new Map,a={platform:Nb,...i},u={...a.platform,_c:s};return ZC(n,r,{...a,platform:u})};var Ib=typeof document<"u",Db=function(){},wl=Ib?v.useLayoutEffect:Db;function jl(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let i,s,a;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==r.length)return!1;for(s=i;s--!==0;)if(!jl(n[s],r[s]))return!1;return!0}if(a=Object.keys(n),i=a.length,i!==Object.keys(r).length)return!1;for(s=i;s--!==0;)if(!{}.hasOwnProperty.call(r,a[s]))return!1;for(s=i;s--!==0;){const u=a[s];if(!(u==="_owner"&&n.$$typeof)&&!jl(n[u],r[u]))return!1}return!0}return n!==n&&r!==r}function Kg(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function nh(n,r){const i=Kg(n);return Math.round(r*i)/i}function uc(n){const r=v.useRef(n);return wl(()=>{r.current=n}),r}function Mb(n){n===void 0&&(n={});const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a,elements:{reference:u,floating:d}={},transform:f=!0,whileElementsMounted:h,open:g}=n,[y,w]=v.useState({x:0,y:0,strategy:i,placement:r,middlewareData:{},isPositioned:!1}),[b,E]=v.useState(s);jl(b,s)||E(s);const[N,S]=v.useState(null),[C,O]=v.useState(null),P=v.useCallback(z=>{z!==V.current&&(V.current=z,S(z))},[]),T=v.useCallback(z=>{z!==W.current&&(W.current=z,O(z))},[]),L=u||N,$=d||C,V=v.useRef(null),W=v.useRef(null),ie=v.useRef(y),le=h!=null,de=uc(h),he=uc(a),Z=uc(g),U=v.useCallback(()=>{if(!V.current||!W.current)return;const z={placement:r,strategy:i,middleware:b};he.current&&(z.platform=he.current),Lb(V.current,W.current,z).then(B=>{const G={...B,isPositioned:Z.current!==!1};te.current&&!jl(ie.current,G)&&(ie.current=G,Fi.flushSync(()=>{w(G)}))})},[b,r,i,he,Z]);wl(()=>{g===!1&&ie.current.isPositioned&&(ie.current.isPositioned=!1,w(z=>({...z,isPositioned:!1})))},[g]);const te=v.useRef(!1);wl(()=>(te.current=!0,()=>{te.current=!1}),[]),wl(()=>{if(L&&(V.current=L),$&&(W.current=$),L&&$){if(de.current)return de.current(L,$,U);U()}},[L,$,U,de,le]);const q=v.useMemo(()=>({reference:V,floating:W,setReference:P,setFloating:T}),[P,T]),ee=v.useMemo(()=>({reference:L,floating:$}),[L,$]),oe=v.useMemo(()=>{const z={position:i,left:0,top:0};if(!ee.floating)return z;const B=nh(ee.floating,y.x),G=nh(ee.floating,y.y);return f?{...z,transform:"translate("+B+"px, "+G+"px)",...Kg(ee.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:B,top:G}},[i,f,ee.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:U,refs:q,elements:ee,floatingStyles:oe}),[y,U,q,ee,oe])}const Fb=n=>{function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:s,padding:a}=typeof n=="function"?n(i):n;return s&&r(s)?s.current!=null?th({element:s.current,padding:a}).fn(i):{}:s?th({element:s,padding:a}).fn(i):{}}}},zb=(n,r)=>{const i=Pb(n);return{name:i.name,fn:i.fn,options:[n,r]}},Ub=(n,r)=>{const i=Tb(n);return{name:i.name,fn:i.fn,options:[n,r]}},Bb=(n,r)=>({fn:Ab(n).fn,options:[n,r]}),$b=(n,r)=>{const i=jb(n);return{name:i.name,fn:i.fn,options:[n,r]}},Wb=(n,r)=>{const i=Ob(n);return{name:i.name,fn:i.fn,options:[n,r]}},Vb=(n,r)=>{const i=_b(n);return{name:i.name,fn:i.fn,options:[n,r]}},Hb=(n,r)=>{const i=Fb(n);return{name:i.name,fn:i.fn,options:[n,r]}};var Kb="Arrow",Gg=v.forwardRef((n,r)=>{const{children:i,width:s=10,height:a=5,...u}=n;return m.jsx(Ie.svg,{...u,ref:r,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gg.displayName=Kb;var Gb=Gg;function Yb(n){const[r,i]=v.useState(void 0);return gt(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let d,f;if("borderBoxSize"in u){const h=u.borderBoxSize,g=Array.isArray(h)?h[0]:h;d=g.inlineSize,f=g.blockSize}else d=n.offsetWidth,f=n.offsetHeight;i({width:d,height:f})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else i(void 0)},[n]),r}var cd="Popper",[Yg,Qg]=Gl(cd),[Qb,qg]=Yg(cd),Xg=n=>{const{__scopePopper:r,children:i}=n,[s,a]=v.useState(null);return m.jsx(Qb,{scope:r,anchor:s,onAnchorChange:a,children:i})};Xg.displayName=cd;var Jg="PopperAnchor",Zg=v.forwardRef((n,r)=>{const{__scopePopper:i,virtualRef:s,...a}=n,u=qg(Jg,i),d=v.useRef(null),f=qe(r,d),h=v.useRef(null);return v.useEffect(()=>{const g=h.current;h.current=(s==null?void 0:s.current)||d.current,g!==h.current&&u.onAnchorChange(h.current)}),s?null:m.jsx(Ie.div,{...a,ref:f})});Zg.displayName=Jg;var dd="PopperContent",[qb,Xb]=Yg(dd),ev=v.forwardRef((n,r)=>{var Q,pe,we,Ce,Ne,ke;const{__scopePopper:i,side:s="bottom",sideOffset:a=0,align:u="center",alignOffset:d=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:E="optimized",onPlaced:N,...S}=n,C=qg(dd,i),[O,P]=v.useState(null),T=qe(r,Ge=>P(Ge)),[L,$]=v.useState(null),V=Yb(L),W=(V==null?void 0:V.width)??0,ie=(V==null?void 0:V.height)??0,le=s+(u!=="center"?"-"+u:""),de=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},he=Array.isArray(g)?g:[g],Z=he.length>0,U={padding:de,boundary:he.filter(Zb),altBoundary:Z},{refs:te,floatingStyles:q,placement:ee,isPositioned:oe,middlewareData:z}=Mb({strategy:"fixed",placement:le,whileElementsMounted:(...Ge)=>kb(...Ge,{animationFrame:E==="always"}),elements:{reference:C.anchor},middleware:[zb({mainAxis:a+ie,alignmentAxis:d}),h&&Ub({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Bb():void 0,...U}),h&&$b({...U}),Wb({...U,apply:({elements:Ge,rects:ct,availableWidth:dn,availableHeight:Kt})=>{const{width:Gt,height:Hn}=ct.reference,fn=Ge.floating.style;fn.setProperty("--radix-popper-available-width",`${dn}px`),fn.setProperty("--radix-popper-available-height",`${Kt}px`),fn.setProperty("--radix-popper-anchor-width",`${Gt}px`),fn.setProperty("--radix-popper-anchor-height",`${Hn}px`)}}),L&&Hb({element:L,padding:f}),eN({arrowWidth:W,arrowHeight:ie}),b&&Vb({strategy:"referenceHidden",...U})]}),[B,G]=rv(ee),j=Vr(N);gt(()=>{oe&&(j==null||j())},[oe,j]);const F=(Q=z.arrow)==null?void 0:Q.x,ne=(pe=z.arrow)==null?void 0:pe.y,re=((we=z.arrow)==null?void 0:we.centerOffset)!==0,[me,xe]=v.useState();return gt(()=>{O&&xe(window.getComputedStyle(O).zIndex)},[O]),m.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:oe?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(Ce=z.transformOrigin)==null?void 0:Ce.x,(Ne=z.transformOrigin)==null?void 0:Ne.y].join(" "),...((ke=z.hide)==null?void 0:ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:m.jsx(qb,{scope:i,placedSide:B,onArrowChange:$,arrowX:F,arrowY:ne,shouldHideArrow:re,children:m.jsx(Ie.div,{"data-side":B,"data-align":G,...S,ref:T,style:{...S.style,animation:oe?void 0:"none"}})})})});ev.displayName=dd;var tv="PopperArrow",Jb={top:"bottom",right:"left",bottom:"top",left:"right"},nv=v.forwardRef(function(r,i){const{__scopePopper:s,...a}=r,u=Xb(tv,s),d=Jb[u.placedSide];return m.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:m.jsx(Gb,{...a,ref:i,style:{...a.style,display:"block"}})})});nv.displayName=tv;function Zb(n){return n!==null}var eN=n=>({name:"transformOrigin",options:n,fn(r){var C,O,P;const{placement:i,rects:s,middlewareData:a}=r,d=((C=a.arrow)==null?void 0:C.centerOffset)!==0,f=d?0:n.arrowWidth,h=d?0:n.arrowHeight,[g,y]=rv(i),w={start:"0%",center:"50%",end:"100%"}[y],b=(((O=a.arrow)==null?void 0:O.x)??0)+f/2,E=(((P=a.arrow)==null?void 0:P.y)??0)+h/2;let N="",S="";return g==="bottom"?(N=d?w:`${b}px`,S=`${-h}px`):g==="top"?(N=d?w:`${b}px`,S=`${s.floating.height+h}px`):g==="right"?(N=`${-h}px`,S=d?w:`${E}px`):g==="left"&&(N=`${s.floating.width+h}px`,S=d?w:`${E}px`),{data:{x:N,y:S}}}});function rv(n){const[r,i="center"]=n.split("-");return[r,i]}var tN=Xg,nN=Zg,rN=ev,oN=nv;function iN(n){const r=v.useRef({value:n,previous:n});return v.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var ov=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),sN="VisuallyHidden",lN=v.forwardRef((n,r)=>m.jsx(Ie.span,{...n,ref:r,style:{...ov,...n.style}}));lN.displayName=sN;var aN=[" ","Enter","ArrowUp","ArrowDown"],uN=[" ","Enter"],Qr="Select",[oa,ia,cN]=zC(Qr),[Ho]=Gl(Qr,[cN,Qg]),sa=Qg(),[dN,br]=Ho(Qr),[fN,pN]=Ho(Qr),iv=n=>{const{__scopeSelect:r,children:i,open:s,defaultOpen:a,onOpenChange:u,value:d,defaultValue:f,onValueChange:h,dir:g,name:y,autoComplete:w,disabled:b,required:E,form:N}=n,S=sa(r),[C,O]=v.useState(null),[P,T]=v.useState(null),[L,$]=v.useState(!1),V=BC(g),[W,ie]=Ec({prop:s,defaultProp:a??!1,onChange:u,caller:Qr}),[le,de]=Ec({prop:d,defaultProp:f,onChange:h,caller:Qr}),he=v.useRef(null),Z=C?N||!!C.closest("form"):!0,[U,te]=v.useState(new Set),q=Array.from(U).map(ee=>ee.props.value).join(";");return m.jsx(tN,{...S,children:m.jsxs(dN,{required:E,scope:r,trigger:C,onTriggerChange:O,valueNode:P,onValueNodeChange:T,valueNodeHasChildren:L,onValueNodeHasChildrenChange:$,contentId:Oo(),value:le,onValueChange:de,open:W,onOpenChange:ie,dir:V,triggerPointerDownPosRef:he,disabled:b,children:[m.jsx(oa.Provider,{scope:r,children:m.jsx(fN,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(ee=>{te(oe=>new Set(oe).add(ee))},[]),onNativeOptionRemove:v.useCallback(ee=>{te(oe=>{const z=new Set(oe);return z.delete(ee),z})},[]),children:i})}),Z?m.jsxs(kv,{"aria-hidden":!0,required:E,tabIndex:-1,name:y,autoComplete:w,value:le,onChange:ee=>de(ee.target.value),disabled:b,form:N,children:[le===void 0?m.jsx("option",{value:""}):null,Array.from(U)]},q):null]})})};iv.displayName=Qr;var sv="SelectTrigger",lv=v.forwardRef((n,r)=>{const{__scopeSelect:i,disabled:s=!1,...a}=n,u=sa(i),d=br(sv,i),f=d.disabled||s,h=qe(r,d.onTriggerChange),g=ia(i),y=v.useRef("touch"),[w,b,E]=Tv(S=>{const C=g().filter(T=>!T.disabled),O=C.find(T=>T.value===d.value),P=jv(C,S,O);P!==void 0&&d.onValueChange(P.value)}),N=S=>{f||(d.onOpenChange(!0),E()),S&&(d.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return m.jsx(nN,{asChild:!0,...u,children:m.jsx(Ie.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":Pv(d.value)?"":void 0,...a,ref:h,onClick:ze(a.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&N(S)}),onPointerDown:ze(a.onPointerDown,S=>{y.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(N(S),S.preventDefault())}),onKeyDown:ze(a.onKeyDown,S=>{const C=w.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(C&&S.key===" ")&&aN.includes(S.key)&&(N(),S.preventDefault())})})})});lv.displayName=sv;var av="SelectValue",uv=v.forwardRef((n,r)=>{const{__scopeSelect:i,className:s,style:a,children:u,placeholder:d="",...f}=n,h=br(av,i),{onValueNodeHasChildrenChange:g}=h,y=u!==void 0,w=qe(r,h.onValueNodeChange);return gt(()=>{g(y)},[g,y]),m.jsx(Ie.span,{...f,ref:w,style:{pointerEvents:"none"},children:Pv(h.value)?m.jsx(m.Fragment,{children:d}):u})});uv.displayName=av;var mN="SelectIcon",cv=v.forwardRef((n,r)=>{const{__scopeSelect:i,children:s,...a}=n;return m.jsx(Ie.span,{"aria-hidden":!0,...a,ref:r,children:s||"▼"})});cv.displayName=mN;var hN="SelectPortal",dv=n=>m.jsx(Zc,{asChild:!0,...n});dv.displayName=hN;var qr="SelectContent",fv=v.forwardRef((n,r)=>{const i=br(qr,n.__scopeSelect),[s,a]=v.useState();if(gt(()=>{a(new DocumentFragment)},[]),!i.open){const u=s;return u?Fi.createPortal(m.jsx(pv,{scope:n.__scopeSelect,children:m.jsx(oa.Slot,{scope:n.__scopeSelect,children:m.jsx("div",{children:n.children})})}),u):null}return m.jsx(mv,{...n,ref:r})});fv.displayName=qr;var on=10,[pv,Nr]=Ho(qr),gN="SelectContentImpl",vN=Di("SelectContent.RemoveScroll"),mv=v.forwardRef((n,r)=>{const{__scopeSelect:i,position:s="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:u,onPointerDownOutside:d,side:f,sideOffset:h,align:g,alignOffset:y,arrowPadding:w,collisionBoundary:b,collisionPadding:E,sticky:N,hideWhenDetached:S,avoidCollisions:C,...O}=n,P=br(qr,i),[T,L]=v.useState(null),[$,V]=v.useState(null),W=qe(r,Q=>L(Q)),[ie,le]=v.useState(null),[de,he]=v.useState(null),Z=ia(i),[U,te]=v.useState(!1),q=v.useRef(!1);v.useEffect(()=>{if(T)return hg(T)},[T]),sg();const ee=v.useCallback(Q=>{const[pe,...we]=Z().map(ke=>ke.ref.current),[Ce]=we.slice(-1),Ne=document.activeElement;for(const ke of Q)if(ke===Ne||(ke==null||ke.scrollIntoView({block:"nearest"}),ke===pe&&$&&($.scrollTop=0),ke===Ce&&$&&($.scrollTop=$.scrollHeight),ke==null||ke.focus(),document.activeElement!==Ne))return},[Z,$]),oe=v.useCallback(()=>ee([ie,T]),[ee,ie,T]);v.useEffect(()=>{U&&oe()},[U,oe]);const{onOpenChange:z,triggerPointerDownPosRef:B}=P;v.useEffect(()=>{if(T){let Q={x:0,y:0};const pe=Ce=>{var Ne,ke;Q={x:Math.abs(Math.round(Ce.pageX)-(((Ne=B.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(Ce.pageY)-(((ke=B.current)==null?void 0:ke.y)??0))}},we=Ce=>{Q.x<=10&&Q.y<=10?Ce.preventDefault():T.contains(Ce.target)||z(!1),document.removeEventListener("pointermove",pe),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",pe),document.addEventListener("pointerup",we,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",pe),document.removeEventListener("pointerup",we,{capture:!0})}}},[T,z,B]),v.useEffect(()=>{const Q=()=>z(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[z]);const[G,j]=Tv(Q=>{const pe=Z().filter(Ne=>!Ne.disabled),we=pe.find(Ne=>Ne.ref.current===document.activeElement),Ce=jv(pe,Q,we);Ce&&setTimeout(()=>Ce.ref.current.focus())}),F=v.useCallback((Q,pe,we)=>{const Ce=!q.current&&!we;(P.value!==void 0&&P.value===pe||Ce)&&(le(Q),Ce&&(q.current=!0))},[P.value]),ne=v.useCallback(()=>T==null?void 0:T.focus(),[T]),re=v.useCallback((Q,pe,we)=>{const Ce=!q.current&&!we;(P.value!==void 0&&P.value===pe||Ce)&&he(Q)},[P.value]),me=s==="popper"?Pc:hv,xe=me===Pc?{side:f,sideOffset:h,align:g,alignOffset:y,arrowPadding:w,collisionBoundary:b,collisionPadding:E,sticky:N,hideWhenDetached:S,avoidCollisions:C}:{};return m.jsx(pv,{scope:i,content:T,viewport:$,onViewportChange:V,itemRefCallback:F,selectedItem:ie,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:oe,selectedItemText:de,position:s,isPositioned:U,searchRef:G,children:m.jsx(ed,{as:vN,allowPinchZoom:!0,children:m.jsx(Jc,{asChild:!0,trapped:P.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:ze(a,Q=>{var pe;(pe=P.trigger)==null||pe.focus({preventScroll:!0}),Q.preventDefault()}),children:m.jsx(Xc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:m.jsx(me,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:Q=>Q.preventDefault(),...O,...xe,onPlaced:()=>te(!0),ref:W,style:{display:"flex",flexDirection:"column",outline:"none",...O.style},onKeyDown:ze(O.onKeyDown,Q=>{const pe=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!pe&&Q.key.length===1&&j(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let Ce=Z().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const Ne=Q.target,ke=Ce.indexOf(Ne);Ce=Ce.slice(ke+1)}setTimeout(()=>ee(Ce)),Q.preventDefault()}})})})})})})});mv.displayName=gN;var yN="SelectItemAlignedPosition",hv=v.forwardRef((n,r)=>{const{__scopeSelect:i,onPlaced:s,...a}=n,u=br(qr,i),d=Nr(qr,i),[f,h]=v.useState(null),[g,y]=v.useState(null),w=qe(r,W=>y(W)),b=ia(i),E=v.useRef(!1),N=v.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:O,focusSelectedItem:P}=d,T=v.useCallback(()=>{if(u.trigger&&u.valueNode&&f&&g&&S&&C&&O){const W=u.trigger.getBoundingClientRect(),ie=g.getBoundingClientRect(),le=u.valueNode.getBoundingClientRect(),de=O.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=de.left-ie.left,ke=le.left-Ne,Ge=W.left-ke,ct=W.width+Ge,dn=Math.max(ct,ie.width),Kt=window.innerWidth-on,Gt=Hm(ke,[on,Math.max(on,Kt-dn)]);f.style.minWidth=ct+"px",f.style.left=Gt+"px"}else{const Ne=ie.right-de.right,ke=window.innerWidth-le.right-Ne,Ge=window.innerWidth-W.right-ke,ct=W.width+Ge,dn=Math.max(ct,ie.width),Kt=window.innerWidth-on,Gt=Hm(ke,[on,Math.max(on,Kt-dn)]);f.style.minWidth=ct+"px",f.style.right=Gt+"px"}const he=b(),Z=window.innerHeight-on*2,U=S.scrollHeight,te=window.getComputedStyle(g),q=parseInt(te.borderTopWidth,10),ee=parseInt(te.paddingTop,10),oe=parseInt(te.borderBottomWidth,10),z=parseInt(te.paddingBottom,10),B=q+ee+U+z+oe,G=Math.min(C.offsetHeight*5,B),j=window.getComputedStyle(S),F=parseInt(j.paddingTop,10),ne=parseInt(j.paddingBottom,10),re=W.top+W.height/2-on,me=Z-re,xe=C.offsetHeight/2,Q=C.offsetTop+xe,pe=q+ee+Q,we=B-pe;if(pe<=re){const Ne=he.length>0&&C===he[he.length-1].ref.current;f.style.bottom="0px";const ke=g.clientHeight-S.offsetTop-S.offsetHeight,Ge=Math.max(me,xe+(Ne?ne:0)+ke+oe),ct=pe+Ge;f.style.height=ct+"px"}else{const Ne=he.length>0&&C===he[0].ref.current;f.style.top="0px";const Ge=Math.max(re,q+S.offsetTop+(Ne?F:0)+xe)+we;f.style.height=Ge+"px",S.scrollTop=pe-re+S.offsetTop}f.style.margin=`${on}px 0`,f.style.minHeight=G+"px",f.style.maxHeight=Z+"px",s==null||s(),requestAnimationFrame(()=>E.current=!0)}},[b,u.trigger,u.valueNode,f,g,S,C,O,u.dir,s]);gt(()=>T(),[T]);const[L,$]=v.useState();gt(()=>{g&&$(window.getComputedStyle(g).zIndex)},[g]);const V=v.useCallback(W=>{W&&N.current===!0&&(T(),P==null||P(),N.current=!1)},[T,P]);return m.jsx(wN,{scope:i,contentWrapper:f,shouldExpandOnScrollRef:E,onScrollButtonChange:V,children:m.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:m.jsx(Ie.div,{...a,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});hv.displayName=yN;var xN="SelectPopperPosition",Pc=v.forwardRef((n,r)=>{const{__scopeSelect:i,align:s="start",collisionPadding:a=on,...u}=n,d=sa(i);return m.jsx(rN,{...d,...u,ref:r,align:s,collisionPadding:a,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Pc.displayName=xN;var[wN,fd]=Ho(qr,{}),Tc="SelectViewport",gv=v.forwardRef((n,r)=>{const{__scopeSelect:i,nonce:s,...a}=n,u=Nr(Tc,i),d=fd(Tc,i),f=qe(r,u.onViewportChange),h=v.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),m.jsx(oa.Slot,{scope:i,children:m.jsx(Ie.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ze(a.onScroll,g=>{const y=g.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:b}=d;if(b!=null&&b.current&&w){const E=Math.abs(h.current-y.scrollTop);if(E>0){const N=window.innerHeight-on*2,S=parseFloat(w.style.minHeight),C=parseFloat(w.style.height),O=Math.max(S,C);if(O<N){const P=O+E,T=Math.min(N,P),L=P-T;w.style.height=T+"px",w.style.bottom==="0px"&&(y.scrollTop=L>0?L:0,w.style.justifyContent="flex-end")}}}h.current=y.scrollTop})})})]})});gv.displayName=Tc;var vv="SelectGroup",[SN,EN]=Ho(vv),CN=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n,a=Oo();return m.jsx(SN,{scope:i,id:a,children:m.jsx(Ie.div,{role:"group","aria-labelledby":a,...s,ref:r})})});CN.displayName=vv;var yv="SelectLabel",xv=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n,a=EN(yv,i);return m.jsx(Ie.div,{id:a.id,...s,ref:r})});xv.displayName=yv;var Ol="SelectItem",[bN,wv]=Ho(Ol),Sv=v.forwardRef((n,r)=>{const{__scopeSelect:i,value:s,disabled:a=!1,textValue:u,...d}=n,f=br(Ol,i),h=Nr(Ol,i),g=f.value===s,[y,w]=v.useState(u??""),[b,E]=v.useState(!1),N=qe(r,P=>{var T;return(T=h.itemRefCallback)==null?void 0:T.call(h,P,s,a)}),S=Oo(),C=v.useRef("touch"),O=()=>{a||(f.onValueChange(s),f.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx(bN,{scope:i,value:s,disabled:a,textId:S,isSelected:g,onItemTextChange:v.useCallback(P=>{w(T=>T||((P==null?void 0:P.textContent)??"").trim())},[]),children:m.jsx(oa.ItemSlot,{scope:i,value:s,disabled:a,textValue:y,children:m.jsx(Ie.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":g&&b,"data-state":g?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...d,ref:N,onFocus:ze(d.onFocus,()=>E(!0)),onBlur:ze(d.onBlur,()=>E(!1)),onClick:ze(d.onClick,()=>{C.current!=="mouse"&&O()}),onPointerUp:ze(d.onPointerUp,()=>{C.current==="mouse"&&O()}),onPointerDown:ze(d.onPointerDown,P=>{C.current=P.pointerType}),onPointerMove:ze(d.onPointerMove,P=>{var T;C.current=P.pointerType,a?(T=h.onItemLeave)==null||T.call(h):C.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ze(d.onPointerLeave,P=>{var T;P.currentTarget===document.activeElement&&((T=h.onItemLeave)==null||T.call(h))}),onKeyDown:ze(d.onKeyDown,P=>{var L;((L=h.searchRef)==null?void 0:L.current)!==""&&P.key===" "||(uN.includes(P.key)&&O(),P.key===" "&&P.preventDefault())})})})})});Sv.displayName=Ol;var _i="SelectItemText",Ev=v.forwardRef((n,r)=>{const{__scopeSelect:i,className:s,style:a,...u}=n,d=br(_i,i),f=Nr(_i,i),h=wv(_i,i),g=pN(_i,i),[y,w]=v.useState(null),b=qe(r,O=>w(O),h.onItemTextChange,O=>{var P;return(P=f.itemTextRefCallback)==null?void 0:P.call(f,O,h.value,h.disabled)}),E=y==null?void 0:y.textContent,N=v.useMemo(()=>m.jsx("option",{value:h.value,disabled:h.disabled,children:E},h.value),[h.disabled,h.value,E]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=g;return gt(()=>(S(N),()=>C(N)),[S,C,N]),m.jsxs(m.Fragment,{children:[m.jsx(Ie.span,{id:h.textId,...u,ref:b}),h.isSelected&&d.valueNode&&!d.valueNodeHasChildren?Fi.createPortal(u.children,d.valueNode):null]})});Ev.displayName=_i;var Cv="SelectItemIndicator",bv=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n;return wv(Cv,i).isSelected?m.jsx(Ie.span,{"aria-hidden":!0,...s,ref:r}):null});bv.displayName=Cv;var jc="SelectScrollUpButton",NN=v.forwardRef((n,r)=>{const i=Nr(jc,n.__scopeSelect),s=fd(jc,n.__scopeSelect),[a,u]=v.useState(!1),d=qe(r,s.onScrollButtonChange);return gt(()=>{if(i.viewport&&i.isPositioned){let f=function(){const g=h.scrollTop>0;u(g)};const h=i.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[i.viewport,i.isPositioned]),a?m.jsx(Nv,{...n,ref:d,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=i;f&&h&&(f.scrollTop=f.scrollTop-h.offsetHeight)}}):null});NN.displayName=jc;var Oc="SelectScrollDownButton",RN=v.forwardRef((n,r)=>{const i=Nr(Oc,n.__scopeSelect),s=fd(Oc,n.__scopeSelect),[a,u]=v.useState(!1),d=qe(r,s.onScrollButtonChange);return gt(()=>{if(i.viewport&&i.isPositioned){let f=function(){const g=h.scrollHeight-h.clientHeight,y=Math.ceil(h.scrollTop)<g;u(y)};const h=i.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[i.viewport,i.isPositioned]),a?m.jsx(Nv,{...n,ref:d,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=i;f&&h&&(f.scrollTop=f.scrollTop+h.offsetHeight)}}):null});RN.displayName=Oc;var Nv=v.forwardRef((n,r)=>{const{__scopeSelect:i,onAutoScroll:s,...a}=n,u=Nr("SelectScrollButton",i),d=v.useRef(null),f=ia(i),h=v.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return v.useEffect(()=>()=>h(),[h]),gt(()=>{var y;const g=f().find(w=>w.ref.current===document.activeElement);(y=g==null?void 0:g.ref.current)==null||y.scrollIntoView({block:"nearest"})},[f]),m.jsx(Ie.div,{"aria-hidden":!0,...a,ref:r,style:{flexShrink:0,...a.style},onPointerDown:ze(a.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(s,50))}),onPointerMove:ze(a.onPointerMove,()=>{var g;(g=u.onItemLeave)==null||g.call(u),d.current===null&&(d.current=window.setInterval(s,50))}),onPointerLeave:ze(a.onPointerLeave,()=>{h()})})}),kN="SelectSeparator",Rv=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n;return m.jsx(Ie.div,{"aria-hidden":!0,...s,ref:r})});Rv.displayName=kN;var _c="SelectArrow",PN=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n,a=sa(i),u=br(_c,i),d=Nr(_c,i);return u.open&&d.position==="popper"?m.jsx(oN,{...a,...s,ref:r}):null});PN.displayName=_c;var TN="SelectBubbleInput",kv=v.forwardRef(({__scopeSelect:n,value:r,...i},s)=>{const a=v.useRef(null),u=qe(s,a),d=iN(r);return v.useEffect(()=>{const f=a.current;if(!f)return;const h=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(h,"value").set;if(d!==r&&y){const w=new Event("change",{bubbles:!0});y.call(f,r),f.dispatchEvent(w)}},[d,r]),m.jsx(Ie.select,{...i,style:{...ov,...i.style},ref:u,defaultValue:r})});kv.displayName=TN;function Pv(n){return n===""||n===void 0}function Tv(n){const r=Vr(n),i=v.useRef(""),s=v.useRef(0),a=v.useCallback(d=>{const f=i.current+d;r(f),(function h(g){i.current=g,window.clearTimeout(s.current),g!==""&&(s.current=window.setTimeout(()=>h(""),1e3))})(f)},[r]),u=v.useCallback(()=>{i.current="",window.clearTimeout(s.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(s.current),[]),[i,a,u]}function jv(n,r,i){const a=r.length>1&&Array.from(r).every(g=>g===r[0])?r[0]:r,u=i?n.indexOf(i):-1;let d=jN(n,Math.max(u,0));a.length===1&&(d=d.filter(g=>g!==i));const h=d.find(g=>g.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==i?h:void 0}function jN(n,r){return n.map((i,s)=>n[(r+s)%n.length])}var ON=iv,Ov=lv,_N=uv,AN=cv,LN=dv,_v=fv,IN=gv,Av=xv,Lv=Sv,DN=Ev,MN=bv,Iv=Rv;const Ac=ON,Lc=_N,_l=v.forwardRef(({className:n,children:r,...i},s)=>m.jsxs(Ov,{ref:s,className:Te("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...i,children:[r,m.jsx(AN,{asChild:!0,children:m.jsx("i",{className:"ri-arrow-down-s-line text-sm opacity-50"})})]}));_l.displayName=Ov.displayName;const Al=v.forwardRef(({className:n,children:r,position:i="popper",...s},a)=>m.jsx(LN,{children:m.jsx(_v,{ref:a,className:Te("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:i,...s,children:m.jsx(IN,{className:Te("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r})})}));Al.displayName=_v.displayName;const FN=v.forwardRef(({className:n,...r},i)=>m.jsx(Av,{ref:i,className:Te("px-2 py-1.5 text-xs font-semibold",n),...r}));FN.displayName=Av.displayName;const Ll=v.forwardRef(({className:n,children:r,...i},s)=>m.jsxs(Lv,{ref:s,className:Te("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...i,children:[m.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(MN,{children:m.jsx("i",{className:"ri-check-line text-sm"})})}),m.jsx(DN,{children:r})]}));Ll.displayName=Lv.displayName;const zN=v.forwardRef(({className:n,...r},i)=>m.jsx(Iv,{ref:i,className:Te("-mx-1 my-1 h-px bg-muted",n),...r}));zN.displayName=Iv.displayName;const UN=["none","bearer","api_key","basic","oauth2_cc"],rh={none:'{"type":"none"}',bearer:'{"type":"bearer","token":"YOUR_TOKEN"}',api_key:'{"type":"api_key","key":"YOUR_KEY","in":"header","name":"X-API-Key"}',basic:'{"type":"basic","username":"user","password":"pass"}',oauth2_cc:'{"type":"oauth2_cc","tokenUrl":"https://auth.example.com/token","clientId":"id","clientSecret":"secret","scopes":[]}'},oh={groupId:"",name:"",description:"",remoteUrl:"",baseEndpoint:"",authType:"none",authConfig:'{"type":"none"}',cacheTtl:"3600",enabled:!0};function BN(){const[n,r]=v.useState([]),[i,s]=v.useState([]),[a,u]=v.useState(!0),[d,f]=v.useState(!1),[h,g]=v.useState("create"),[y,w]=v.useState(null),[b,E]=v.useState(oh),[N,S]=v.useState(!1),[C,O]=v.useState(""),[P,T]=v.useState(null),[L,$]=v.useState(!1);async function V(){try{const[U,te]=await Promise.all([Yc(),Hl()]);r(U),s(te)}catch{ut.error("Failed to load data")}finally{u(!1)}}v.useEffect(()=>{V()},[]);function W(){var U;g("create"),w(null),E({...oh,groupId:((U=i[0])==null?void 0:U.id)??""}),O(""),f(!0)}function ie(U){g("edit"),w(U.id),E({groupId:U.groupId,name:U.name,description:U.description??"",remoteUrl:U.remoteUrl,baseEndpoint:U.baseEndpoint??"",authType:U.authType,authConfig:JSON.stringify(U.authConfig,null,2),cacheTtl:String(U.cacheTtl),enabled:U.enabled}),O(""),f(!0)}function le(U,te){E(q=>({...q,[U]:te})),U==="authType"&&E(q=>({...q,authType:te,authConfig:rh[te]}))}async function de(U){U.preventDefault(),O("");let te;try{te=JSON.parse(b.authConfig)}catch{O("Auth config must be valid JSON");return}S(!0);try{const q={groupId:b.groupId,name:b.name.trim(),description:b.description.trim(),remoteUrl:b.remoteUrl.trim(),baseEndpoint:b.baseEndpoint.trim()||void 0,authType:b.authType,authConfig:te,cacheTtl:parseInt(b.cacheTtl,10)||3600};h==="create"?(await q1(q),ut.success("OAS entry created")):(await X1(y,{...q,enabled:b.enabled}),ut.success("OAS entry updated")),f(!1),V()}catch(q){ut.error(Gc(q,`Failed to ${h} OAS entry`))}finally{S(!1)}}async function he(){if(P){$(!0);try{await J1(P.id),ut.success("OAS entry deleted"),T(null),V()}catch{ut.error("Failed to delete OAS entry")}finally{$(!1)}}}const Z=U=>{var te;return((te=i.find(q=>q.id===U))==null?void 0:te.name)??U.slice(0,8)};return m.jsxs("div",{className:"p-6 space-y-6",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"OAS Entries"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Registered OpenAPI services with encrypted auth configs"})]}),m.jsxs(Be,{onClick:W,disabled:i.length===0,children:[m.jsx("i",{className:"ri-upload-cloud-line"}),"Import OAS"]})]}),i.length===0&&!a&&m.jsxs("div",{className:"rounded-md border border-yellow-200 bg-yellow-50 px-4 py-3 text-sm text-yellow-800 flex items-center gap-2",children:[m.jsx("i",{className:"ri-alert-line"}),"Create a group first before importing OAS entries."]}),a?m.jsx("div",{className:"flex justify-center py-12",children:m.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):n.length===0?m.jsxs("div",{className:"rounded-lg border border-dashed py-12 text-center text-muted-foreground",children:[m.jsx("i",{className:"ri-file-code-line text-3xl block mb-2"}),m.jsx("p",{className:"text-sm",children:"No OAS entries yet."})]}):m.jsx("div",{className:"rounded-lg border",children:m.jsxs(Xl,{children:[m.jsx(Jl,{children:m.jsxs(Gr,{children:[m.jsx(lt,{children:"Name"}),m.jsx(lt,{children:"Group"}),m.jsx(lt,{children:"Auth"}),m.jsx(lt,{children:"Status"}),m.jsx(lt,{children:"Remote URL"}),m.jsx(lt,{children:"Updated"}),m.jsx(lt,{className:"w-24"})]})}),m.jsx(Zl,{children:n.map(U=>m.jsxs(Gr,{children:[m.jsx(at,{className:"font-mono font-medium",children:U.name}),m.jsx(at,{children:m.jsx(Ai,{variant:"secondary",children:Z(U.groupId)})}),m.jsx(at,{children:m.jsx(Ai,{variant:"outline",children:U.authType})}),m.jsx(at,{children:m.jsx(Ai,{variant:U.enabled?"success":"secondary",children:U.enabled?"enabled":"disabled"})}),m.jsx(at,{className:"text-xs text-muted-foreground max-w-[200px] truncate",children:U.remoteUrl}),m.jsx(at,{className:"text-xs text-muted-foreground",children:bl(U.updatedAt)}),m.jsx(at,{children:m.jsxs("div",{className:"flex gap-1",children:[m.jsx(Be,{variant:"ghost",size:"icon",onClick:()=>ie(U),children:m.jsx("i",{className:"ri-edit-line"})}),m.jsx(Be,{variant:"ghost",size:"icon",className:"text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>T(U),children:m.jsx("i",{className:"ri-delete-bin-line"})})]})})]},U.id))})]})}),m.jsx(Do,{open:d,onOpenChange:f,children:m.jsxs(Kr,{className:"sm:max-w-xl max-h-[90vh] overflow-y-auto",children:[m.jsxs(yr,{children:[m.jsx(wr,{children:h==="create"?"Import OAS Entry":"Edit OAS Entry"}),m.jsx(Sr,{children:h==="create"?"Register a new OpenAPI service. Auth config is encrypted at rest.":"Update the OAS entry details."})]}),m.jsxs("form",{onSubmit:de,className:"space-y-4",children:[m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-1.5",children:[m.jsxs(st,{htmlFor:"oname",children:["Name ",m.jsx("span",{className:"text-destructive",children:"*"})]}),m.jsx(sn,{id:"oname",placeholder:"payments-api",value:b.name,onChange:U=>le("name",U.target.value),required:!0,disabled:h==="edit"})]}),m.jsxs("div",{className:"space-y-1.5",children:[m.jsxs(st,{children:["Group ",m.jsx("span",{className:"text-destructive",children:"*"})]}),m.jsxs(Ac,{value:b.groupId,onValueChange:U=>le("groupId",U),children:[m.jsx(_l,{children:m.jsx(Lc,{placeholder:"Select group"})}),m.jsx(Al,{children:i.map(U=>m.jsx(Ll,{value:U.id,children:U.name},U.id))})]})]})]}),m.jsxs("div",{className:"space-y-1.5",children:[m.jsx(st,{htmlFor:"odesc",children:"Description"}),m.jsx(sn,{id:"odesc",placeholder:"Optional description",value:b.description,onChange:U=>le("description",U.target.value)})]}),m.jsxs("div",{className:"space-y-1.5",children:[m.jsxs(st,{htmlFor:"ourl",children:["Remote OAS URL ",m.jsx("span",{className:"text-destructive",children:"*"})]}),m.jsx(sn,{id:"ourl",placeholder:"https://api.example.com/openapi.json",type:"url",value:b.remoteUrl,onChange:U=>le("remoteUrl",U.target.value),required:!0})]}),m.jsxs("div",{className:"space-y-1.5",children:[m.jsx(st,{htmlFor:"obase",children:"Base Endpoint Override"}),m.jsx(sn,{id:"obase",placeholder:"https://api.example.com (optional)",type:"url",value:b.baseEndpoint,onChange:U=>le("baseEndpoint",U.target.value)})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-1.5",children:[m.jsxs(st,{children:["Auth Type ",m.jsx("span",{className:"text-destructive",children:"*"})]}),m.jsxs(Ac,{value:b.authType,onValueChange:U=>le("authType",U),children:[m.jsx(_l,{children:m.jsx(Lc,{})}),m.jsx(Al,{children:UN.map(U=>m.jsx(Ll,{value:U,children:U},U))})]})]}),m.jsxs("div",{className:"space-y-1.5",children:[m.jsx(st,{htmlFor:"ottl",children:"Cache TTL (seconds)"}),m.jsx(sn,{id:"ottl",type:"number",min:"0",placeholder:"3600",value:b.cacheTtl,onChange:U=>le("cacheTtl",U.target.value)})]})]}),m.jsxs("div",{className:"space-y-1.5",children:[m.jsxs(st,{htmlFor:"oauth",children:["Auth Config (JSON) ",m.jsx("span",{className:"text-destructive",children:"*"})]}),m.jsx(Kl,{id:"oauth",placeholder:rh[b.authType],value:b.authConfig,onChange:U=>le("authConfig",U.target.value),rows:4,className:"font-mono text-xs",required:!0})]}),h==="edit"&&m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"checkbox",id:"oenabled",checked:b.enabled,onChange:U=>le("enabled",U.target.checked),className:"h-4 w-4 rounded"}),m.jsx(st,{htmlFor:"oenabled",className:"cursor-pointer",children:"Enabled"})]}),C&&m.jsxs("p",{className:"text-sm text-destructive flex items-center gap-1",children:[m.jsx("i",{className:"ri-error-warning-line"}),C]}),m.jsxs(xr,{children:[m.jsx(Be,{type:"button",variant:"outline",onClick:()=>f(!1),children:"Cancel"}),m.jsxs(Be,{type:"submit",disabled:N,children:[N&&m.jsx("i",{className:"ri-loader-4-line animate-spin"}),h==="create"?"Import":"Save changes"]})]})]})]})}),m.jsx(Do,{open:!!P,onOpenChange:U=>!U&&T(null),children:m.jsxs(Kr,{className:"sm:max-w-md",children:[m.jsxs(yr,{children:[m.jsx(wr,{children:"Delete OAS entry?"}),m.jsxs(Sr,{children:["This will permanently delete ",m.jsx("strong",{children:P==null?void 0:P.name}),". Clients using this service will lose access. This action cannot be undone."]})]}),m.jsxs(xr,{children:[m.jsx(Be,{variant:"outline",onClick:()=>T(null),children:"Cancel"}),m.jsxs(Be,{variant:"destructive",onClick:he,disabled:L,children:[L&&m.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Delete"]})]})]})})]})}function $N(n){return n.revokedAt?{label:"revoked",variant:"destructive"}:n.expiresAt&&new Date(n.expiresAt)<new Date?{label:"expired",variant:"warning"}:{label:"active",variant:"success"}}function WN(){var te;const[n,r]=v.useState([]),[i,s]=v.useState(""),[a,u]=v.useState([]),[d,f]=v.useState(!0),[h,g]=v.useState(!1),[y,w]=v.useState(!1),[b,E]=v.useState(""),[N,S]=v.useState("86400"),[C,O]=v.useState(!1),[P,T]=v.useState(null),[L,$]=v.useState(!1),[V,W]=v.useState(null),[ie,le]=v.useState(!1);v.useEffect(()=>{Hl().then(q=>{r(q),q.length>0&&s(q[0].id)}).finally(()=>f(!1))},[]),v.useEffect(()=>{i&&(g(!0),vl(i).then(u).catch(()=>ut.error("Failed to load tokens")).finally(()=>g(!1)))},[i]);async function de(q){if(q.preventDefault(),!!i){O(!0);try{const ee=await Y1(i,{name:b.trim(),ttlSec:parseInt(N,10)||void 0});T(ee.jwt),E("");const oe=await vl(i);u(oe)}catch(ee){ut.error(Gc(ee,"Failed to issue token"))}finally{O(!1)}}}async function he(){if(V){le(!0);try{await Q1(V.id),ut.success("Token revoked"),W(null);const q=await vl(i);u(q)}catch{ut.error("Failed to revoke token")}finally{le(!1)}}}v.useEffect(()=>{if(!L)return;const q=setTimeout(()=>$(!1),2e3);return()=>clearTimeout(q)},[L]);function Z(){P&&navigator.clipboard.writeText(P).then(()=>$(!0))}function U(){w(!1),T(null),$(!1)}return d?m.jsx("div",{className:"flex h-full items-center justify-center",children:m.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):m.jsxs("div",{className:"p-6 space-y-6",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Tokens"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Group JWTs (RS256) for client authentication"})]}),m.jsxs(Be,{onClick:()=>{w(!0),T(null)},disabled:!i,children:[m.jsx("i",{className:"ri-key-2-line"}),"Issue Token"]})]}),n.length===0?m.jsxs("div",{className:"rounded-md border border-yellow-200 bg-yellow-50 px-4 py-3 text-sm text-yellow-800 flex items-center gap-2",children:[m.jsx("i",{className:"ri-alert-line"}),"Create a group first to issue tokens."]}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(st,{className:"shrink-0 text-sm",children:"Group:"}),m.jsx("div",{className:"w-56",children:m.jsxs(Ac,{value:i,onValueChange:s,children:[m.jsx(_l,{children:m.jsx(Lc,{})}),m.jsx(Al,{children:n.map(q=>m.jsx(Ll,{value:q.id,children:q.name},q.id))})]})})]}),h?m.jsx("div",{className:"flex justify-center py-12",children:m.jsx("i",{className:"ri-loader-4-line animate-spin text-2xl text-muted-foreground"})}):a.length===0?m.jsxs("div",{className:"rounded-lg border border-dashed py-12 text-center text-muted-foreground",children:[m.jsx("i",{className:"ri-key-line text-3xl block mb-2"}),m.jsx("p",{className:"text-sm",children:"No tokens for this group."})]}):m.jsx("div",{className:"rounded-lg border",children:m.jsxs(Xl,{children:[m.jsx(Jl,{children:m.jsxs(Gr,{children:[m.jsx(lt,{children:"Name"}),m.jsx(lt,{children:"Status"}),m.jsx(lt,{children:"Expires"}),m.jsx(lt,{children:"Created"}),m.jsx(lt,{className:"w-20"})]})}),m.jsx(Zl,{children:a.map(q=>{const{label:ee,variant:oe}=$N(q);return m.jsxs(Gr,{children:[m.jsx(at,{className:"font-mono font-medium",children:q.name}),m.jsx(at,{children:m.jsx(Ai,{variant:oe,children:ee})}),m.jsx(at,{className:"text-xs text-muted-foreground",children:q.expiresAt?bl(q.expiresAt):m.jsx("span",{className:"italic",children:"never"})}),m.jsx(at,{className:"text-xs text-muted-foreground",children:bl(q.createdAt)}),m.jsx(at,{children:!q.revokedAt&&m.jsx(Be,{variant:"ghost",size:"icon",className:"text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>W(q),children:m.jsx("i",{className:"ri-forbid-line"})})})]},q.id)})})]})})]}),m.jsx(Do,{open:y,onOpenChange:q=>!q&&U(),children:m.jsx(Kr,{className:"sm:max-w-md",children:P?m.jsxs(m.Fragment,{children:[m.jsxs(yr,{children:[m.jsxs(wr,{className:"flex items-center gap-2 text-green-700",children:[m.jsx("i",{className:"ri-checkbox-circle-line text-lg"}),"Token issued!"]}),m.jsxs(Sr,{children:["Copy your JWT now — ",m.jsx("strong",{children:"it will not be shown again"}),"."]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx(Kl,{readOnly:!0,value:P,rows:4,className:"font-mono text-xs break-all bg-muted"}),m.jsxs(Be,{className:"w-full",variant:"outline",onClick:Z,children:[m.jsx("i",{className:L?"ri-checkbox-circle-line text-green-600":"ri-clipboard-line"}),L?"Copied!":"Copy to clipboard"]})]}),m.jsx(xr,{children:m.jsx(Be,{onClick:U,children:"Done"})})]}):m.jsxs(m.Fragment,{children:[m.jsxs(yr,{children:[m.jsx(wr,{children:"Issue Token"}),m.jsxs(Sr,{children:["Issue a new RS256-signed JWT for group ",m.jsx("strong",{children:(te=n.find(q=>q.id===i))==null?void 0:te.name}),"."]})]}),m.jsxs("form",{onSubmit:de,className:"space-y-4",children:[m.jsxs("div",{className:"space-y-1.5",children:[m.jsxs(st,{htmlFor:"tname",children:["Token name ",m.jsx("span",{className:"text-destructive",children:"*"})]}),m.jsx(sn,{id:"tname",placeholder:"agent-prod",value:b,onChange:q=>E(q.target.value),required:!0})]}),m.jsxs("div",{className:"space-y-1.5",children:[m.jsx(st,{htmlFor:"tttl",children:"TTL (seconds)"}),m.jsx(sn,{id:"tttl",type:"number",min:"0",placeholder:"86400",value:N,onChange:q=>S(q.target.value)}),m.jsx("p",{className:"text-xs text-muted-foreground",children:"0 = never expires"})]}),m.jsxs(xr,{children:[m.jsx(Be,{type:"button",variant:"outline",onClick:U,children:"Cancel"}),m.jsxs(Be,{type:"submit",disabled:C,children:[C&&m.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Issue"]})]})]})]})})}),m.jsx(Do,{open:!!V,onOpenChange:q=>!q&&W(null),children:m.jsxs(Kr,{className:"sm:max-w-md",children:[m.jsxs(yr,{children:[m.jsx(wr,{children:"Revoke token?"}),m.jsxs(Sr,{children:["This will immediately revoke ",m.jsx("strong",{children:V==null?void 0:V.name}),". Any client using this token will lose access. This action cannot be undone."]})]}),m.jsxs(xr,{children:[m.jsx(Be,{variant:"outline",onClick:()=>W(null),children:"Cancel"}),m.jsxs(Be,{variant:"destructive",onClick:he,disabled:ie,children:[ie&&m.jsx("i",{className:"ri-loader-4-line animate-spin"}),"Revoke"]})]})]})})]})}function VN({children:n}){return yh()?m.jsx(m.Fragment,{children:n}):m.jsx(fc,{to:"/login",replace:!0})}function HN(){return m.jsxs(F0,{basename:"/admin-ui",children:[m.jsx(vw,{position:"top-right",richColors:!0,closeButton:!0}),m.jsxs(j0,{children:[m.jsx(zn,{path:"/login",element:m.jsx(nE,{})}),m.jsxs(zn,{element:m.jsx(VN,{children:m.jsx(fS,{})}),children:[m.jsx(zn,{index:!0,element:m.jsx(fc,{to:"/dashboard",replace:!0})}),m.jsx(zn,{path:"/dashboard",element:m.jsx(oE,{})}),m.jsx(zn,{path:"/groups",element:m.jsx(FC,{})}),m.jsx(zn,{path:"/oas",element:m.jsx(BN,{})}),m.jsx(zn,{path:"/tokens",element:m.jsx(WN,{})})]}),m.jsx(zn,{path:"*",element:m.jsx(fc,{to:"/dashboard",replace:!0})})]})]})}Mx.createRoot(document.getElementById("root")).render(m.jsx(v.StrictMode,{children:m.jsx(HN,{})}));
|