@stackable-labs/embeddables 1.21.3 → 1.21.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.js +1583 -1569
- package/dist/embeddables/src/lib/extensionClassSafelist.d.ts +13 -0
- package/dist/embeddables.css +1 -1
- package/dist/react.js +512 -498
- package/dist/stackable-widget.external.js +18 -18
- package/dist/stackable-widget.js +51 -51
- package/dist/ui/src/components/badge.d.ts +4 -1
- package/package.json +1 -1
package/dist/stackable-widget.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var QE=Object.defineProperty;var qE=(Wn,$t,fn)=>$t in Wn?QE(Wn,$t,{enumerable:!0,configurable:!0,writable:!0,value:fn}):Wn[$t]=fn;var tu=(Wn,$t,fn)=>qE(Wn,typeof $t!="symbol"?$t+"":$t,fn);(function(){"use strict";function Wn(n,o){for(var i=0;i<o.length;i++){const a=o[i];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in n)){const u=Object.getOwnPropertyDescriptor(a,l);u&&Object.defineProperty(n,l,u.get?u:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function $t(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var fn={exports:{}},Xr={},Qs={exports:{}},_e={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var XE=Object.defineProperty;var QE=(Wn,$t,fn)=>$t in Wn?XE(Wn,$t,{enumerable:!0
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var nu;function hv(){if(nu)return _e;nu=1;var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,k={};function S(A,B,be){this.props=A,this.context=B,this.refs=k,this.updater=be||C}S.prototype.isReactComponent={},S.prototype.setState=function(A,B){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,B,"setState")},S.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function N(){}N.prototype=S.prototype;function R(A,B,be){this.props=A,this.context=B,this.refs=k,this.updater=be||C}var T=R.prototype=new N;T.constructor=R,_(T,S.prototype),T.isPureReactComponent=!0;var I=Array.isArray,U=Object.prototype.hasOwnProperty,$={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function D(A,B,be){var ye,fe={},de=null,Q=null;if(B!=null)for(ye in B.ref!==void 0&&(Q=B.ref),B.key!==void 0&&(de=""+B.key),B)U.call(B,ye)&&!O.hasOwnProperty(ye)&&(fe[ye]=B[ye]);var ue=arguments.length-2;if(ue===1)fe.children=be;else if(1<ue){for(var le=Array(ue),Ce=0;Ce<ue;Ce++)le[Ce]=arguments[Ce+2];fe.children=le}if(A&&A.defaultProps)for(ye in ue=A.defaultProps,ue)fe[ye]===void 0&&(fe[ye]=ue[ye]);return{$$typeof:n,type:A,key:de,ref:Q,props:fe,_owner:$.current}}function Y(A,B){return{$$typeof:n,type:A.type,key:B,ref:A.ref,props:A.props,_owner:A._owner}}function te(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ne(A){var B={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(be){return B[be]})}var se=/\/+/g;function ve(A,B){return typeof A=="object"&&A!==null&&A.key!=null?ne(""+A.key):B.toString(36)}function xe(A,B,be,ye,fe){var de=typeof A;(de==="undefined"||de==="boolean")&&(A=null);var Q=!1;if(A===null)Q=!0;else switch(de){case"string":case"number":Q=!0;break;case"object":switch(A.$$typeof){case n:case o:Q=!0}}if(Q)return Q=A,fe=fe(Q),A=ye===""?"."+ve(Q,0):ye,I(fe)?(be="",A!=null&&(be=A.replace(se,"$&/")+"/"),xe(fe,B,be,"",function(Ce){return Ce})):fe!=null&&(te(fe)&&(fe=Y(fe,be+(!fe.key||Q&&Q.key===fe.key?"":(""+fe.key).replace(se,"$&/")+"/")+A)),B.push(fe)),1;if(Q=0,ye=ye===""?".":ye+":",I(A))for(var ue=0;ue<A.length;ue++){de=A[ue];var le=ye+ve(de,ue);Q+=xe(de,B,be,le,fe)}else if(le=b(A),typeof le=="function")for(A=le.call(A),ue=0;!(de=A.next()).done;)de=de.value,le=ye+ve(de,ue++),Q+=xe(de,B,be,le,fe);else if(de==="object")throw B=String(A),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return Q}function Se(A,B,be){if(A==null)return A;var ye=[],fe=0;return xe(A,ye,"","",function(de){return B.call(be,de,fe++)}),ye}function Z(A){if(A._status===-1){var B=A._result;B=B(),B.then(function(be){(A._status===0||A._status===-1)&&(A._status=1,A._result=be)},function(be){(A._status===0||A._status===-1)&&(A._status=2,A._result=be)}),A._status===-1&&(A._status=0,A._result=B)}if(A._status===1)return A._result.default;throw A._result}var ae={current:null},H={transition:null},X={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:H,ReactCurrentOwner:$};function F(){throw Error("act(...) is not supported in production builds of React.")}return _e.Children={map:Se,forEach:function(A,B,be){Se(A,function(){B.apply(this,arguments)},be)},count:function(A){var B=0;return Se(A,function(){B++}),B},toArray:function(A){return Se(A,function(B){return B})||[]},only:function(A){if(!te(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},_e.Component=S,_e.Fragment=i,_e.Profiler=l,_e.PureComponent=R,_e.StrictMode=a,_e.Suspense=h,_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,_e.act=F,_e.cloneElement=function(A,B,be){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var ye=_({},A.props),fe=A.key,de=A.ref,Q=A._owner;if(B!=null){if(B.ref!==void 0&&(de=B.ref,Q=$.current),B.key!==void 0&&(fe=""+B.key),A.type&&A.type.defaultProps)var ue=A.type.defaultProps;for(le in B)U.call(B,le)&&!O.hasOwnProperty(le)&&(ye[le]=B[le]===void 0&&ue!==void 0?ue[le]:B[le])}var le=arguments.length-2;if(le===1)ye.children=be;else if(1<le){ue=Array(le);for(var Ce=0;Ce<le;Ce++)ue[Ce]=arguments[Ce+2];ye.children=ue}return{$$typeof:n,type:A.type,key:fe,ref:de,props:ye,_owner:Q}},_e.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:u,_context:A},A.Consumer=A},_e.createElement=D,_e.createFactory=function(A){var B=D.bind(null,A);return B.type=A,B},_e.createRef=function(){return{current:null}},_e.forwardRef=function(A){return{$$typeof:p,render:A}},_e.isValidElement=te,_e.lazy=function(A){return{$$typeof:w,_payload:{_status:-1,_result:A},_init:Z}},_e.memo=function(A,B){return{$$typeof:v,type:A,compare:B===void 0?null:B}},_e.startTransition=function(A){var B=H.transition;H.transition={};try{A()}finally{H.transition=B}},_e.unstable_act=F,_e.useCallback=function(A,B){return ae.current.useCallback(A,B)},_e.useContext=function(A){return ae.current.useContext(A)},_e.useDebugValue=function(){},_e.useDeferredValue=function(A){return ae.current.useDeferredValue(A)},_e.useEffect=function(A,B){return ae.current.useEffect(A,B)},_e.useId=function(){return ae.current.useId()},_e.useImperativeHandle=function(A,B,be){return ae.current.useImperativeHandle(A,B,be)},_e.useInsertionEffect=function(A,B){return ae.current.useInsertionEffect(A,B)},_e.useLayoutEffect=function(A,B){return ae.current.useLayoutEffect(A,B)},_e.useMemo=function(A,B){return ae.current.useMemo(A,B)},_e.useReducer=function(A,B,be){return ae.current.useReducer(A,B,be)},_e.useRef=function(A){return ae.current.useRef(A)},_e.useState=function(A){return ae.current.useState(A)},_e.useSyncExternalStore=function(A,B,be){return ae.current.useSyncExternalStore(A,B,be)},_e.useTransition=function(){return ae.current.useTransition()},_e.version="18.3.1",_e}var ru;function Yo(){return ru||(ru=1,Qs.exports=hv()),Qs.exports}/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var XE=Object.defineProperty;var QE=(Wn,$t,fn)=>$t in Wn?XE(Wn,$t,{enumerable:!0
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var ou;function mv(){if(ou)return Xr;ou=1;var n=Yo(),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(p,h,v){var w,x={},b=null,C=null;v!==void 0&&(b=""+v),h.key!==void 0&&(b=""+h.key),h.ref!==void 0&&(C=h.ref);for(w in h)a.call(h,w)&&!u.hasOwnProperty(w)&&(x[w]=h[w]);if(p&&p.defaultProps)for(w in h=p.defaultProps,h)x[w]===void 0&&(x[w]=h[w]);return{$$typeof:o,type:p,key:b,ref:C,props:x,_owner:l.current}}return Xr.Fragment=i,Xr.jsx=f,Xr.jsxs=f,Xr}var iu;function gv(){return iu||(iu=1,fn.exports=mv()),fn.exports}var g=gv(),Xo={},qs={exports:{}},lt={},Zs={exports:{}},Js={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var XE=Object.defineProperty;var QE=(Wn,$t,fn)=>$t in Wn?XE(Wn,$t,{enumerable:!0
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var su;function vv(){return su||(su=1,(function(n){function o(H,X){var F=H.length;H.push(X);e:for(;0<F;){var A=F-1>>>1,B=H[A];if(0<l(B,X))H[A]=X,H[F]=B,F=A;else break e}}function i(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var X=H[0],F=H.pop();if(F!==X){H[0]=F;e:for(var A=0,B=H.length,be=B>>>1;A<be;){var ye=2*(A+1)-1,fe=H[ye],de=ye+1,Q=H[de];if(0>l(fe,F))de<B&&0>l(Q,fe)?(H[A]=Q,H[de]=F,A=de):(H[A]=fe,H[ye]=F,A=ye);else if(de<B&&0>l(Q,F))H[A]=Q,H[de]=F,A=de;else break e}}return X}function l(H,X){var F=H.sortIndex-X.sortIndex;return F!==0?F:H.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var h=[],v=[],w=1,x=null,b=3,C=!1,_=!1,k=!1,S=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,R=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(H){for(var X=i(v);X!==null;){if(X.callback===null)a(v);else if(X.startTime<=H)a(v),X.sortIndex=X.expirationTime,o(h,X);else break;X=i(v)}}function I(H){if(k=!1,T(H),!_)if(i(h)!==null)_=!0,Z(U);else{var X=i(v);X!==null&&ae(I,X.startTime-H)}}function U(H,X){_=!1,k&&(k=!1,N(D),D=-1),C=!0;var F=b;try{for(T(X),x=i(h);x!==null&&(!(x.expirationTime>X)||H&&!ne());){var A=x.callback;if(typeof A=="function"){x.callback=null,b=x.priorityLevel;var B=A(x.expirationTime<=X);X=n.unstable_now(),typeof B=="function"?x.callback=B:x===i(h)&&a(h),T(X)}else a(h);x=i(h)}if(x!==null)var be=!0;else{var ye=i(v);ye!==null&&ae(I,ye.startTime-X),be=!1}return be}finally{x=null,b=F,C=!1}}var $=!1,O=null,D=-1,Y=5,te=-1;function ne(){return!(n.unstable_now()-te<Y)}function se(){if(O!==null){var H=n.unstable_now();te=H;var X=!0;try{X=O(!0,H)}finally{X?ve():($=!1,O=null)}}else $=!1}var ve;if(typeof R=="function")ve=function(){R(se)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,Se=xe.port2;xe.port1.onmessage=se,ve=function(){Se.postMessage(null)}}else ve=function(){S(se,0)};function Z(H){O=H,$||($=!0,ve())}function ae(H,X){D=S(function(){H(n.unstable_now())},X)}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(H){H.callback=null},n.unstable_continueExecution=function(){_||C||(_=!0,Z(U))},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_getFirstCallbackNode=function(){return i(h)},n.unstable_next=function(H){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var F=b;b=X;try{return H()}finally{b=F}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(H,X){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var F=b;b=H;try{return X()}finally{b=F}},n.unstable_scheduleCallback=function(H,X,F){var A=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?A+F:A):F=A,H){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=F+B,H={id:w++,callback:X,priorityLevel:H,startTime:F,expirationTime:B,sortIndex:-1},F>A?(H.sortIndex=F,o(v,H),i(h)===null&&H===i(v)&&(k?(N(D),D=-1):k=!0,ae(I,F-A))):(H.sortIndex=B,o(h,H),_||C||(_=!0,Z(U))),H},n.unstable_shouldYield=ne,n.unstable_wrapCallback=function(H){var X=b;return function(){var F=b;b=X;try{return H.apply(this,arguments)}finally{b=F}}}})(Js)),Js}var au;function yv(){return au||(au=1,Zs.exports=vv()),Zs.exports}/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,14 +30,14 @@ var XE=Object.defineProperty;var QE=(Wn,$t,fn)=>$t in Wn?XE(Wn,$t,{enumerable:!0
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var lu;function wv(){if(lu)return
|
|
33
|
+
*/var lu;function wv(){if(lu)return lt;lu=1;var n=Yo(),o=yv();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,v=/^[: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]*$/,w={},x={};function b(e){return h.call(x,e)?!0:h.call(w,e)?!1:v.test(e)?x[e]=!0:(w[e]=!0,!1)}function C(e,t,r,s){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,t,r,s){if(t===null||typeof t>"u"||C(e,t,r,s))return!0;if(s)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function k(e,t,r,s,c,d,y){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=c,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=y}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];S[t]=new k(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new k(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){S[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function R(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(N,R);S[t]=new k(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(N,R);S[t]=new k(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(N,R);S[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});function T(e,t,r,s){var c=S.hasOwnProperty(t)?S[t]:null;(c!==null?c.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_(t,r,c,s)&&(r=null),s||c===null?b(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):c.mustUseProperty?e[c.propertyName]=r===null?c.type===3?!1:"":r:(t=c.attributeName,s=c.attributeNamespace,r===null?e.removeAttribute(t):(c=c.type,r=c===3||c===4&&r===!0?"":""+r,s?e.setAttributeNS(s,t,r):e.setAttribute(t,r))))}var I=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),$=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),ne=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),xe=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),H=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var F=Object.assign,A;function B(e){if(A===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return`
|
|
34
34
|
`+A+e}var be=!1;function ye(e,t){if(!e||be)return"";be=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(L){var s=L}Reflect.construct(e,[],t)}else{try{t.call()}catch(L){s=L}e.call(t.prototype)}else{try{throw Error()}catch(L){s=L}e()}}catch(L){if(L&&s&&typeof L.stack=="string"){for(var c=L.stack.split(`
|
|
35
35
|
`),d=s.stack.split(`
|
|
36
36
|
`),y=c.length-1,E=d.length-1;1<=y&&0<=E&&c[y]!==d[E];)E--;for(;1<=y&&0<=E;y--,E--)if(c[y]!==d[E]){if(y!==1||E!==1)do if(y--,E--,0>E||c[y]!==d[E]){var P=`
|
|
37
|
-
`+c[y].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=y&&0<=E);break}}}finally{be=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?B(e):""}function fe(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=ye(e.type,!1),e;case 11:return e=ye(e.type.render,!1),e;case 1:return e=ye(e.type,!0),e;default:return""}}function de(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 O:return"Fragment";case $:return"Portal";case Y:return"Profiler";case D:return"StrictMode";case ge:return"Suspense";case xe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ne:return(e.displayName||"Context")+".Consumer";case te:return(e._context.displayName||"Context")+".Provider";case se:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Se:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return de(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 de(t);case 8:return t===D?"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 ue(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ae(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ce(e){var t=ae(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){s=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ne(e){e._valueTracker||(e._valueTracker=Ce(e))}function Re(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=ae(e)?e.checked?"true":"false":e.value),e=s,e!==r?(t.setValue(e),!0):!1}function $e(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 Ke(e,t){var r=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function kn(e,t){var r=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;r=ue(t.value!=null?t.value:r),e._wrapperState={initialChecked:s,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Sn(e,t){t=t.checked,t!=null&&T(e,"checked",t,!1)}function nn(e,t){Sn(e,t);var r=ue(t.value),s=t.type;if(r!=null)s==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cn(e,t.type,r):t.hasOwnProperty("defaultValue")&&Cn(e,t.type,ue(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ui(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Cn(e,t,r){(t!=="number"||$e(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ao=Array.isArray;function Cr(e,t,r,s){if(e=e.options,t){t={};for(var c=0;c<r.length;c++)t["$"+r[c]]=!0;for(r=0;r<e.length;r++)c=t.hasOwnProperty("$"+e[r].value),e[r].selected!==c&&(e[r].selected=c),c&&s&&(e[r].defaultSelected=!0)}else{for(r=""+ue(r),t=null,c=0;c<e.length;c++){if(e[c].value===r){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function ua(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ch(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(i(92));if(ao(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ue(r)}}function Eh(e,t){var r=ue(t.value),s=ue(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),s!=null&&(e.defaultValue=""+s)}function _h(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Nh(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 da(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hi,Rh=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,s,c){MSApp.execUnsafeLocalFunction(function(){return e(t,r,s,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Hi=Hi||document.createElement("div"),Hi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function co(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var uo={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},JS=["Webkit","ms","Moz","O"];Object.keys(uo).forEach(function(e){JS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uo[t]=uo[e]})});function Ph(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||uo.hasOwnProperty(e)&&uo[e]?(""+t).trim():t+"px"}function Th(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var s=r.indexOf("--")===0,c=Ph(r,t[r],s);r==="float"&&(r="cssFloat"),s?e.setProperty(r,c):e[r]=c}}var eC=F({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 fa(e,t){if(t){if(eC[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 pa(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 ha=null;function ma(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ga=null,Er=null,_r=null;function jh(e){if(e=Io(e)){if(typeof ga!="function")throw Error(i(280));var t=e.stateNode;t&&(t=ds(t),ga(e.stateNode,e.type,t))}}function Ah(e){Er?_r?_r.push(e):_r=[e]:Er=e}function Ih(){if(Er){var e=Er,t=_r;if(_r=Er=null,jh(e),t)for(e=0;e<t.length;e++)jh(t[e])}}function Mh(e,t){return e(t)}function zh(){}var va=!1;function Lh(e,t,r){if(va)return e(t,r);va=!0;try{return Mh(e,t,r)}finally{va=!1,(Er!==null||_r!==null)&&(zh(),Ih())}}function fo(e,t){var r=e.stateNode;if(r===null)return null;var s=ds(r);if(s===null)return null;r=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(i(231,t,typeof r));return r}var ya=!1;if(p)try{var po={};Object.defineProperty(po,"passive",{get:function(){ya=!0}}),window.addEventListener("test",po,po),window.removeEventListener("test",po,po)}catch{ya=!1}function tC(e,t,r,s,c,d,y,E,P){var L=Array.prototype.slice.call(arguments,3);try{t.apply(r,L)}catch(V){this.onError(V)}}var ho=!1,Bi=null,Wi=!1,wa=null,nC={onError:function(e){ho=!0,Bi=e}};function rC(e,t,r,s,c,d,y,E,P){ho=!1,Bi=null,tC.apply(nC,arguments)}function oC(e,t,r,s,c,d,y,E,P){if(rC.apply(this,arguments),ho){if(ho){var L=Bi;ho=!1,Bi=null}else throw Error(i(198));Wi||(Wi=!0,wa=L)}}function Jn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Oh(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 Dh(e){if(Jn(e)!==e)throw Error(i(188))}function iC(e){var t=e.alternate;if(!t){if(t=Jn(e),t===null)throw Error(i(188));return t!==e?null:e}for(var r=e,s=t;;){var c=r.return;if(c===null)break;var d=c.alternate;if(d===null){if(s=c.return,s!==null){r=s;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===r)return Dh(c),e;if(d===s)return Dh(c),t;d=d.sibling}throw Error(i(188))}if(r.return!==s.return)r=c,s=d;else{for(var y=!1,E=c.child;E;){if(E===r){y=!0,r=c,s=d;break}if(E===s){y=!0,s=c,r=d;break}E=E.sibling}if(!y){for(E=d.child;E;){if(E===r){y=!0,r=d,s=c;break}if(E===s){y=!0,s=d,r=c;break}E=E.sibling}if(!y)throw Error(i(189))}}if(r.alternate!==s)throw Error(i(190))}if(r.tag!==3)throw Error(i(188));return r.stateNode.current===r?e:t}function Fh(e){return e=iC(e),e!==null?$h(e):null}function $h(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$h(e);if(t!==null)return t;e=e.sibling}return null}var Uh=o.unstable_scheduleCallback,Hh=o.unstable_cancelCallback,sC=o.unstable_shouldYield,lC=o.unstable_requestPaint,Be=o.unstable_now,aC=o.unstable_getCurrentPriorityLevel,xa=o.unstable_ImmediatePriority,Bh=o.unstable_UserBlockingPriority,Vi=o.unstable_NormalPriority,cC=o.unstable_LowPriority,Wh=o.unstable_IdlePriority,Gi=null,Gt=null;function uC(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:pC,dC=Math.log,fC=Math.LN2;function pC(e){return e>>>=0,e===0?32:31-(dC(e)/fC|0)|0}var Ki=64,Yi=4194304;function mo(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 Xi(e,t){var r=e.pendingLanes;if(r===0)return 0;var s=0,c=e.suspendedLanes,d=e.pingedLanes,y=r&268435455;if(y!==0){var E=y&~c;E!==0?s=mo(E):(d&=y,d!==0&&(s=mo(d)))}else y=r&~c,y!==0?s=mo(y):d!==0&&(s=mo(d));if(s===0)return 0;if(t!==0&&t!==s&&(t&c)===0&&(c=s&-s,d=t&-t,c>=d||c===16&&(d&4194240)!==0))return t;if((s&4)!==0&&(s|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)r=31-It(t),c=1<<r,s|=e[r],t&=~c;return s}function hC(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 mC(e,t){for(var r=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes;0<d;){var y=31-It(d),E=1<<y,P=c[y];P===-1?((E&r)===0||(E&s)!==0)&&(c[y]=hC(E,t)):P<=t&&(e.expiredLanes|=E),d&=~E}}function ba(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Vh(){var e=Ki;return Ki<<=1,(Ki&4194240)===0&&(Ki=64),e}function ka(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function go(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=r}function gC(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<r;){var c=31-It(r),d=1<<c;t[c]=0,s[c]=-1,e[c]=-1,r&=~d}}function Sa(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var s=31-It(r),c=1<<s;c&t|e[s]&t&&(e[s]|=t),r&=~c}}var Ie=0;function Gh(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Kh,Ca,Yh,Xh,Qh,Ea=!1,Qi=[],En=null,_n=null,Nn=null,vo=new Map,yo=new Map,Rn=[],vC="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 qh(e,t){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":_n=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":vo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yo.delete(t.pointerId)}}function wo(e,t,r,s,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:s,nativeEvent:d,targetContainers:[c]},t!==null&&(t=Io(t),t!==null&&Ca(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function yC(e,t,r,s,c){switch(t){case"focusin":return En=wo(En,e,t,r,s,c),!0;case"dragenter":return _n=wo(_n,e,t,r,s,c),!0;case"mouseover":return Nn=wo(Nn,e,t,r,s,c),!0;case"pointerover":var d=c.pointerId;return vo.set(d,wo(vo.get(d)||null,e,t,r,s,c)),!0;case"gotpointercapture":return d=c.pointerId,yo.set(d,wo(yo.get(d)||null,e,t,r,s,c)),!0}return!1}function Zh(e){var t=er(e.target);if(t!==null){var r=Jn(t);if(r!==null){if(t=r.tag,t===13){if(t=Oh(r),t!==null){e.blockedOn=t,Qh(e.priority,function(){Yh(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Na(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var s=new r.constructor(r.type,r);ha=s,r.target.dispatchEvent(s),ha=null}else return t=Io(r),t!==null&&Ca(t),e.blockedOn=r,!1;t.shift()}return!0}function Jh(e,t,r){qi(e)&&r.delete(t)}function wC(){Ea=!1,En!==null&&qi(En)&&(En=null),_n!==null&&qi(_n)&&(_n=null),Nn!==null&&qi(Nn)&&(Nn=null),vo.forEach(Jh),yo.forEach(Jh)}function xo(e,t){e.blockedOn===t&&(e.blockedOn=null,Ea||(Ea=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wC)))}function bo(e){function t(c){return xo(c,e)}if(0<Qi.length){xo(Qi[0],e);for(var r=1;r<Qi.length;r++){var s=Qi[r];s.blockedOn===e&&(s.blockedOn=null)}}for(En!==null&&xo(En,e),_n!==null&&xo(_n,e),Nn!==null&&xo(Nn,e),vo.forEach(t),yo.forEach(t),r=0;r<Rn.length;r++)s=Rn[r],s.blockedOn===e&&(s.blockedOn=null);for(;0<Rn.length&&(r=Rn[0],r.blockedOn===null);)Zh(r),r.blockedOn===null&&Rn.shift()}var Nr=I.ReactCurrentBatchConfig,Zi=!0;function xC(e,t,r,s){var c=Ie,d=Nr.transition;Nr.transition=null;try{Ie=1,_a(e,t,r,s)}finally{Ie=c,Nr.transition=d}}function bC(e,t,r,s){var c=Ie,d=Nr.transition;Nr.transition=null;try{Ie=4,_a(e,t,r,s)}finally{Ie=c,Nr.transition=d}}function _a(e,t,r,s){if(Zi){var c=Na(e,t,r,s);if(c===null)Wa(e,t,s,Ji,r),qh(e,s);else if(yC(c,e,t,r,s))s.stopPropagation();else if(qh(e,s),t&4&&-1<vC.indexOf(e)){for(;c!==null;){var d=Io(c);if(d!==null&&Kh(d),d=Na(e,t,r,s),d===null&&Wa(e,t,s,Ji,r),d===c)break;c=d}c!==null&&s.stopPropagation()}else Wa(e,t,s,null,r)}}var Ji=null;function Na(e,t,r,s){if(Ji=null,e=ma(s),e=er(e),e!==null)if(t=Jn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Oh(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ji=e,null}function em(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(aC()){case xa:return 1;case Bh:return 4;case Vi:case cC:return 16;case Wh:return 536870912;default:return 16}default:return 16}}var Pn=null,Ra=null,es=null;function tm(){if(es)return es;var e,t=Ra,r=t.length,s,c="value"in Pn?Pn.value:Pn.textContent,d=c.length;for(e=0;e<r&&t[e]===c[e];e++);var y=r-e;for(s=1;s<=y&&t[r-s]===c[d-s];s++);return es=c.slice(e,1<s?1-s:void 0)}function ts(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 ns(){return!0}function nm(){return!1}function yt(e){function t(r,s,c,d,y){this._reactName=r,this._targetInst=c,this.type=s,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(r=e[E],this[E]=r?r(d):d[E]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ns:nm,this.isPropagationStopped=nm,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ns)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),t}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pa=yt(Rr),ko=F({},Rr,{view:0,detail:0}),kC=yt(ko),Ta,ja,So,rs=F({},ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ia,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!==So&&(So&&e.type==="mousemove"?(Ta=e.screenX-So.screenX,ja=e.screenY-So.screenY):ja=Ta=0,So=e),Ta)},movementY:function(e){return"movementY"in e?e.movementY:ja}}),rm=yt(rs),SC=F({},rs,{dataTransfer:0}),CC=yt(SC),EC=F({},ko,{relatedTarget:0}),Aa=yt(EC),_C=F({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),NC=yt(_C),RC=F({},Rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),PC=yt(RC),TC=F({},Rr,{data:0}),om=yt(TC),jC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AC={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"},IC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=IC[e])?!!t[e]:!1}function Ia(){return MC}var zC=F({},ko,{key:function(e){if(e.key){var t=jC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?AC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ia,charCode:function(e){return e.type==="keypress"?ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),LC=yt(zC),OC=F({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),im=yt(OC),DC=F({},ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ia}),FC=yt(DC),$C=F({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),UC=yt($C),HC=F({},rs,{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}),BC=yt(HC),WC=[9,13,27,32],Ma=p&&"CompositionEvent"in window,Co=null;p&&"documentMode"in document&&(Co=document.documentMode);var VC=p&&"TextEvent"in window&&!Co,sm=p&&(!Ma||Co&&8<Co&&11>=Co),lm=" ",am=!1;function cm(e,t){switch(e){case"keyup":return WC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function um(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pr=!1;function GC(e,t){switch(e){case"compositionend":return um(t);case"keypress":return t.which!==32?null:(am=!0,lm);case"textInput":return e=t.data,e===lm&&am?null:e;default:return null}}function KC(e,t){if(Pr)return e==="compositionend"||!Ma&&cm(e,t)?(e=tm(),es=Ra=Pn=null,Pr=!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 sm&&t.locale!=="ko"?null:t.data;default:return null}}var YC={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 dm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!YC[e.type]:t==="textarea"}function fm(e,t,r,s){Ah(s),t=as(t,"onChange"),0<t.length&&(r=new Pa("onChange","change",null,r,s),e.push({event:r,listeners:t}))}var Eo=null,_o=null;function XC(e){Tm(e,0)}function os(e){var t=Mr(e);if(Re(t))return e}function QC(e,t){if(e==="change")return t}var pm=!1;if(p){var za;if(p){var La="oninput"in document;if(!La){var hm=document.createElement("div");hm.setAttribute("oninput","return;"),La=typeof hm.oninput=="function"}za=La}else za=!1;pm=za&&(!document.documentMode||9<document.documentMode)}function mm(){Eo&&(Eo.detachEvent("onpropertychange",gm),_o=Eo=null)}function gm(e){if(e.propertyName==="value"&&os(_o)){var t=[];fm(t,_o,e,ma(e)),Lh(XC,t)}}function qC(e,t,r){e==="focusin"?(mm(),Eo=t,_o=r,Eo.attachEvent("onpropertychange",gm)):e==="focusout"&&mm()}function ZC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return os(_o)}function JC(e,t){if(e==="click")return os(t)}function eE(e,t){if(e==="input"||e==="change")return os(t)}function tE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:tE;function No(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var c=r[s];if(!h.call(t,c)||!Mt(e[c],t[c]))return!1}return!0}function vm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ym(e,t){var r=vm(e);e=0;for(var s;r;){if(r.nodeType===3){if(s=e+r.textContent.length,e<=t&&s>=t)return{node:r,offset:t-e};e=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=vm(r)}}function wm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xm(){for(var e=window,t=$e();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=$e(e.document)}return t}function Oa(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 nE(e){var t=xm(),r=e.focusedElem,s=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&wm(r.ownerDocument.documentElement,r)){if(s!==null&&Oa(r)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=r.textContent.length,d=Math.min(s.start,c);s=s.end===void 0?d:Math.min(s.end,c),!e.extend&&d>s&&(c=s,s=d,d=c),c=ym(r,d);var y=ym(r,s);c&&y&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==y.node||e.focusOffset!==y.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),d>s?(e.addRange(t),e.extend(y.node,y.offset)):(t.setEnd(y.node,y.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var rE=p&&"documentMode"in document&&11>=document.documentMode,Tr=null,Da=null,Ro=null,Fa=!1;function bm(e,t,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Fa||Tr==null||Tr!==$e(s)||(s=Tr,"selectionStart"in s&&Oa(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ro&&No(Ro,s)||(Ro=s,s=as(Da,"onSelect"),0<s.length&&(t=new Pa("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=Tr)))}function is(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var jr={animationend:is("Animation","AnimationEnd"),animationiteration:is("Animation","AnimationIteration"),animationstart:is("Animation","AnimationStart"),transitionend:is("Transition","TransitionEnd")},$a={},km={};p&&(km=document.createElement("div").style,"AnimationEvent"in window||(delete jr.animationend.animation,delete jr.animationiteration.animation,delete jr.animationstart.animation),"TransitionEvent"in window||delete jr.transitionend.transition);function ss(e){if($a[e])return $a[e];if(!jr[e])return e;var t=jr[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in km)return $a[e]=t[r];return e}var Sm=ss("animationend"),Cm=ss("animationiteration"),Em=ss("animationstart"),_m=ss("transitionend"),Nm=new Map,Rm="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 Tn(e,t){Nm.set(e,t),u(t,[e])}for(var Ua=0;Ua<Rm.length;Ua++){var Ha=Rm[Ua],oE=Ha.toLowerCase(),iE=Ha[0].toUpperCase()+Ha.slice(1);Tn(oE,"on"+iE)}Tn(Sm,"onAnimationEnd"),Tn(Cm,"onAnimationIteration"),Tn(Em,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(_m,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("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 Po="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(" "),sE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Po));function Pm(e,t,r){var s=e.type||"unknown-event";e.currentTarget=r,oC(s,t,void 0,e),e.currentTarget=null}function Tm(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var s=e[r],c=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var y=s.length-1;0<=y;y--){var E=s[y],P=E.instance,L=E.currentTarget;if(E=E.listener,P!==d&&c.isPropagationStopped())break e;Pm(c,E,L),d=P}else for(y=0;y<s.length;y++){if(E=s[y],P=E.instance,L=E.currentTarget,E=E.listener,P!==d&&c.isPropagationStopped())break e;Pm(c,E,L),d=P}}}if(Wi)throw e=wa,Wi=!1,wa=null,e}function ze(e,t){var r=t[Qa];r===void 0&&(r=t[Qa]=new Set);var s=e+"__bubble";r.has(s)||(jm(t,e,2,!1),r.add(s))}function Ba(e,t,r){var s=0;t&&(s|=4),jm(r,e,s,t)}var ls="_reactListening"+Math.random().toString(36).slice(2);function To(e){if(!e[ls]){e[ls]=!0,l.forEach(function(r){r!=="selectionchange"&&(sE.has(r)||Ba(r,!1,e),Ba(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ls]||(t[ls]=!0,Ba("selectionchange",!1,t))}}function jm(e,t,r,s){switch(em(t)){case 1:var c=xC;break;case 4:c=bC;break;default:c=_a}r=c.bind(null,t,r,e),c=void 0,!ya||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(t,r,{capture:!0,passive:c}):e.addEventListener(t,r,!0):c!==void 0?e.addEventListener(t,r,{passive:c}):e.addEventListener(t,r,!1)}function Wa(e,t,r,s,c){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var y=s.tag;if(y===3||y===4){var E=s.stateNode.containerInfo;if(E===c||E.nodeType===8&&E.parentNode===c)break;if(y===4)for(y=s.return;y!==null;){var P=y.tag;if((P===3||P===4)&&(P=y.stateNode.containerInfo,P===c||P.nodeType===8&&P.parentNode===c))return;y=y.return}for(;E!==null;){if(y=er(E),y===null)return;if(P=y.tag,P===5||P===6){s=d=y;continue e}E=E.parentNode}}s=s.return}Lh(function(){var L=d,V=ma(r),G=[];e:{var W=Nm.get(e);if(W!==void 0){var q=Pa,re=e;switch(e){case"keypress":if(ts(r)===0)break e;case"keydown":case"keyup":q=LC;break;case"focusin":re="focus",q=Aa;break;case"focusout":re="blur",q=Aa;break;case"beforeblur":case"afterblur":q=Aa;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=rm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=CC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=FC;break;case Sm:case Cm:case Em:q=NC;break;case _m:q=UC;break;case"scroll":q=kC;break;case"wheel":q=BC;break;case"copy":case"cut":case"paste":q=PC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=im}var ie=(t&4)!==0,We=!ie&&e==="scroll",M=ie?W!==null?W+"Capture":null:W;ie=[];for(var j=L,z;j!==null;){z=j;var K=z.stateNode;if(z.tag===5&&K!==null&&(z=K,M!==null&&(K=fo(j,M),K!=null&&ie.push(jo(j,K,z)))),We)break;j=j.return}0<ie.length&&(W=new q(W,re,null,r,V),G.push({event:W,listeners:ie}))}}if((t&7)===0){e:{if(W=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",W&&r!==ha&&(re=r.relatedTarget||r.fromElement)&&(er(re)||re[rn]))break e;if((q||W)&&(W=V.window===V?V:(W=V.ownerDocument)?W.defaultView||W.parentWindow:window,q?(re=r.relatedTarget||r.toElement,q=L,re=re?er(re):null,re!==null&&(We=Jn(re),re!==We||re.tag!==5&&re.tag!==6)&&(re=null)):(q=null,re=L),q!==re)){if(ie=rm,K="onMouseLeave",M="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ie=im,K="onPointerLeave",M="onPointerEnter",j="pointer"),We=q==null?W:Mr(q),z=re==null?W:Mr(re),W=new ie(K,j+"leave",q,r,V),W.target=We,W.relatedTarget=z,K=null,er(V)===L&&(ie=new ie(M,j+"enter",re,r,V),ie.target=z,ie.relatedTarget=We,K=ie),We=K,q&&re)t:{for(ie=q,M=re,j=0,z=ie;z;z=Ar(z))j++;for(z=0,K=M;K;K=Ar(K))z++;for(;0<j-z;)ie=Ar(ie),j--;for(;0<z-j;)M=Ar(M),z--;for(;j--;){if(ie===M||M!==null&&ie===M.alternate)break t;ie=Ar(ie),M=Ar(M)}ie=null}else ie=null;q!==null&&Am(G,W,q,ie,!1),re!==null&&We!==null&&Am(G,We,re,ie,!0)}}e:{if(W=L?Mr(L):window,q=W.nodeName&&W.nodeName.toLowerCase(),q==="select"||q==="input"&&W.type==="file")var ce=QC;else if(dm(W))if(pm)ce=eE;else{ce=ZC;var he=qC}else(q=W.nodeName)&&q.toLowerCase()==="input"&&(W.type==="checkbox"||W.type==="radio")&&(ce=JC);if(ce&&(ce=ce(e,L))){fm(G,ce,r,V);break e}he&&he(e,W,L),e==="focusout"&&(he=W._wrapperState)&&he.controlled&&W.type==="number"&&Cn(W,"number",W.value)}switch(he=L?Mr(L):window,e){case"focusin":(dm(he)||he.contentEditable==="true")&&(Tr=he,Da=L,Ro=null);break;case"focusout":Ro=Da=Tr=null;break;case"mousedown":Fa=!0;break;case"contextmenu":case"mouseup":case"dragend":Fa=!1,bm(G,r,V);break;case"selectionchange":if(rE)break;case"keydown":case"keyup":bm(G,r,V)}var me;if(Ma)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Pr?cm(e,r)&&(ke="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ke="onCompositionStart");ke&&(sm&&r.locale!=="ko"&&(Pr||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Pr&&(me=tm()):(Pn=V,Ra="value"in Pn?Pn.value:Pn.textContent,Pr=!0)),he=as(L,ke),0<he.length&&(ke=new om(ke,e,null,r,V),G.push({event:ke,listeners:he}),me?ke.data=me:(me=um(r),me!==null&&(ke.data=me)))),(me=VC?GC(e,r):KC(e,r))&&(L=as(L,"onBeforeInput"),0<L.length&&(V=new om("onBeforeInput","beforeinput",null,r,V),G.push({event:V,listeners:L}),V.data=me))}Tm(G,t)})}function jo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function as(e,t){for(var r=t+"Capture",s=[];e!==null;){var c=e,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=fo(e,r),d!=null&&s.unshift(jo(e,d,c)),d=fo(e,t),d!=null&&s.push(jo(e,d,c))),e=e.return}return s}function Ar(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Am(e,t,r,s,c){for(var d=t._reactName,y=[];r!==null&&r!==s;){var E=r,P=E.alternate,L=E.stateNode;if(P!==null&&P===s)break;E.tag===5&&L!==null&&(E=L,c?(P=fo(r,d),P!=null&&y.unshift(jo(r,P,E))):c||(P=fo(r,d),P!=null&&y.push(jo(r,P,E)))),r=r.return}y.length!==0&&e.push({event:t,listeners:y})}var lE=/\r\n?/g,aE=/\u0000|\uFFFD/g;function Im(e){return(typeof e=="string"?e:""+e).replace(lE,`
|
|
38
|
-
`).replace(aE,"")}function cs(e,t,r){if(t=Im(t),Im(e)!==t&&r)throw Error(i(425))}function us(){}var Va=null,Ga=null;function Ka(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 Ya=typeof setTimeout=="function"?setTimeout:void 0,cE=typeof clearTimeout=="function"?clearTimeout:void 0,Mm=typeof Promise=="function"?Promise:void 0,uE=typeof queueMicrotask=="function"?queueMicrotask:typeof Mm<"u"?function(e){return Mm.resolve(null).then(e).catch(dE)}:Ya;function dE(e){setTimeout(function(){throw e})}function Xa(e,t){var r=t,s=0;do{var c=r.nextSibling;if(e.removeChild(r),c&&c.nodeType===8)if(r=c.data,r==="/$"){if(s===0){e.removeChild(c),bo(t);return}s--}else r!=="$"&&r!=="$?"&&r!=="$!"||s++;r=c}while(r);bo(t)}function jn(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 zm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ir=Math.random().toString(36).slice(2),Kt="__reactFiber$"+Ir,Ao="__reactProps$"+Ir,rn="__reactContainer$"+Ir,Qa="__reactEvents$"+Ir,fE="__reactListeners$"+Ir,pE="__reactHandles$"+Ir;function er(e){var t=e[Kt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[rn]||r[Kt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=zm(e);e!==null;){if(r=e[Kt])return r;e=zm(e)}return t}e=r,r=e.parentNode}return null}function Io(e){return e=e[Kt]||e[rn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ds(e){return e[Ao]||null}var qa=[],zr=-1;function An(e){return{current:e}}function Le(e){0>zr||(e.current=qa[zr],qa[zr]=null,zr--)}function Me(e,t){zr++,qa[zr]=e.current,e.current=t}var In={},nt=An(In),ut=An(!1),tr=In;function Lr(e,t){var r=e.type.contextTypes;if(!r)return In;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in r)c[d]=t[d];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function dt(e){return e=e.childContextTypes,e!=null}function fs(){Le(ut),Le(nt)}function Lm(e,t,r){if(nt.current!==In)throw Error(i(168));Me(nt,t),Me(ut,r)}function Om(e,t,r){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return r;s=s.getChildContext();for(var c in s)if(!(c in t))throw Error(i(108,Q(e)||"Unknown",c));return F({},r,s)}function ps(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,tr=nt.current,Me(nt,e),Me(ut,ut.current),!0}function Dm(e,t,r){var s=e.stateNode;if(!s)throw Error(i(169));r?(e=Om(e,t,tr),s.__reactInternalMemoizedMergedChildContext=e,Le(ut),Le(nt),Me(nt,e)):Le(ut),Me(ut,r)}var on=null,hs=!1,Za=!1;function Fm(e){on===null?on=[e]:on.push(e)}function hE(e){hs=!0,Fm(e)}function Mn(){if(!Za&&on!==null){Za=!0;var e=0,t=Ie;try{var r=on;for(Ie=1;e<r.length;e++){var s=r[e];do s=s(!0);while(s!==null)}on=null,hs=!1}catch(c){throw on!==null&&(on=on.slice(e+1)),Uh(xa,Mn),c}finally{Ie=t,Za=!1}}return null}var Or=[],Dr=0,ms=null,gs=0,St=[],Ct=0,nr=null,sn=1,ln="";function rr(e,t){Or[Dr++]=gs,Or[Dr++]=ms,ms=e,gs=t}function $m(e,t,r){St[Ct++]=sn,St[Ct++]=ln,St[Ct++]=nr,nr=e;var s=sn;e=ln;var c=32-It(s)-1;s&=~(1<<c),r+=1;var d=32-It(t)+c;if(30<d){var y=c-c%5;d=(s&(1<<y)-1).toString(32),s>>=y,c-=y,sn=1<<32-It(t)+c|r<<c|s,ln=d+e}else sn=1<<d|r<<c|s,ln=e}function Ja(e){e.return!==null&&(rr(e,1),$m(e,1,0))}function ec(e){for(;e===ms;)ms=Or[--Dr],Or[Dr]=null,gs=Or[--Dr],Or[Dr]=null;for(;e===nr;)nr=St[--Ct],St[Ct]=null,ln=St[--Ct],St[Ct]=null,sn=St[--Ct],St[Ct]=null}var wt=null,xt=null,Oe=!1,zt=null;function Um(e,t){var r=Rt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Hm(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,wt=e,xt=jn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wt=e,xt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=nr!==null?{id:sn,overflow:ln}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Rt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,wt=e,xt=null,!0):!1;default:return!1}}function tc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function nc(e){if(Oe){var t=xt;if(t){var r=t;if(!Hm(e,t)){if(tc(e))throw Error(i(418));t=jn(r.nextSibling);var s=wt;t&&Hm(e,t)?Um(s,r):(e.flags=e.flags&-4097|2,Oe=!1,wt=e)}}else{if(tc(e))throw Error(i(418));e.flags=e.flags&-4097|2,Oe=!1,wt=e}}}function Bm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wt=e}function vs(e){if(e!==wt)return!1;if(!Oe)return Bm(e),Oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ka(e.type,e.memoizedProps)),t&&(t=xt)){if(tc(e))throw Wm(),Error(i(418));for(;t;)Um(e,t),t=jn(t.nextSibling)}if(Bm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){xt=jn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}xt=null}}else xt=wt?jn(e.stateNode.nextSibling):null;return!0}function Wm(){for(var e=xt;e;)e=jn(e.nextSibling)}function Fr(){xt=wt=null,Oe=!1}function rc(e){zt===null?zt=[e]:zt.push(e)}var mE=I.ReactCurrentBatchConfig;function Mo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(i(309));var s=r.stateNode}if(!s)throw Error(i(147,e));var c=s,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(y){var E=c.refs;y===null?delete E[d]:E[d]=y},t._stringRef=d,t)}if(typeof e!="string")throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function ys(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Vm(e){var t=e._init;return t(e._payload)}function Gm(e){function t(M,j){if(e){var z=M.deletions;z===null?(M.deletions=[j],M.flags|=16):z.push(j)}}function r(M,j){if(!e)return null;for(;j!==null;)t(M,j),j=j.sibling;return null}function s(M,j){for(M=new Map;j!==null;)j.key!==null?M.set(j.key,j):M.set(j.index,j),j=j.sibling;return M}function c(M,j){return M=Hn(M,j),M.index=0,M.sibling=null,M}function d(M,j,z){return M.index=z,e?(z=M.alternate,z!==null?(z=z.index,z<j?(M.flags|=2,j):z):(M.flags|=2,j)):(M.flags|=1048576,j)}function y(M){return e&&M.alternate===null&&(M.flags|=2),M}function E(M,j,z,K){return j===null||j.tag!==6?(j=Yc(z,M.mode,K),j.return=M,j):(j=c(j,z),j.return=M,j)}function P(M,j,z,K){var ce=z.type;return ce===O?V(M,j,z.props.children,K,z.key):j!==null&&(j.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Z&&Vm(ce)===j.type)?(K=c(j,z.props),K.ref=Mo(M,j,z),K.return=M,K):(K=Hs(z.type,z.key,z.props,null,M.mode,K),K.ref=Mo(M,j,z),K.return=M,K)}function L(M,j,z,K){return j===null||j.tag!==4||j.stateNode.containerInfo!==z.containerInfo||j.stateNode.implementation!==z.implementation?(j=Xc(z,M.mode,K),j.return=M,j):(j=c(j,z.children||[]),j.return=M,j)}function V(M,j,z,K,ce){return j===null||j.tag!==7?(j=dr(z,M.mode,K,ce),j.return=M,j):(j=c(j,z),j.return=M,j)}function G(M,j,z){if(typeof j=="string"&&j!==""||typeof j=="number")return j=Yc(""+j,M.mode,z),j.return=M,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case U:return z=Hs(j.type,j.key,j.props,null,M.mode,z),z.ref=Mo(M,null,j),z.return=M,z;case $:return j=Xc(j,M.mode,z),j.return=M,j;case Z:var K=j._init;return G(M,K(j._payload),z)}if(ao(j)||X(j))return j=dr(j,M.mode,z,null),j.return=M,j;ys(M,j)}return null}function W(M,j,z,K){var ce=j!==null?j.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return ce!==null?null:E(M,j,""+z,K);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case U:return z.key===ce?P(M,j,z,K):null;case $:return z.key===ce?L(M,j,z,K):null;case Z:return ce=z._init,W(M,j,ce(z._payload),K)}if(ao(z)||X(z))return ce!==null?null:V(M,j,z,K,null);ys(M,z)}return null}function q(M,j,z,K,ce){if(typeof K=="string"&&K!==""||typeof K=="number")return M=M.get(z)||null,E(j,M,""+K,ce);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case U:return M=M.get(K.key===null?z:K.key)||null,P(j,M,K,ce);case $:return M=M.get(K.key===null?z:K.key)||null,L(j,M,K,ce);case Z:var he=K._init;return q(M,j,z,he(K._payload),ce)}if(ao(K)||X(K))return M=M.get(z)||null,V(j,M,K,ce,null);ys(j,K)}return null}function re(M,j,z,K){for(var ce=null,he=null,me=j,ke=j=0,Ze=null;me!==null&&ke<z.length;ke++){me.index>ke?(Ze=me,me=null):Ze=me.sibling;var je=W(M,me,z[ke],K);if(je===null){me===null&&(me=Ze);break}e&&me&&je.alternate===null&&t(M,me),j=d(je,j,ke),he===null?ce=je:he.sibling=je,he=je,me=Ze}if(ke===z.length)return r(M,me),Oe&&rr(M,ke),ce;if(me===null){for(;ke<z.length;ke++)me=G(M,z[ke],K),me!==null&&(j=d(me,j,ke),he===null?ce=me:he.sibling=me,he=me);return Oe&&rr(M,ke),ce}for(me=s(M,me);ke<z.length;ke++)Ze=q(me,M,ke,z[ke],K),Ze!==null&&(e&&Ze.alternate!==null&&me.delete(Ze.key===null?ke:Ze.key),j=d(Ze,j,ke),he===null?ce=Ze:he.sibling=Ze,he=Ze);return e&&me.forEach(function(Bn){return t(M,Bn)}),Oe&&rr(M,ke),ce}function ie(M,j,z,K){var ce=X(z);if(typeof ce!="function")throw Error(i(150));if(z=ce.call(z),z==null)throw Error(i(151));for(var he=ce=null,me=j,ke=j=0,Ze=null,je=z.next();me!==null&&!je.done;ke++,je=z.next()){me.index>ke?(Ze=me,me=null):Ze=me.sibling;var Bn=W(M,me,je.value,K);if(Bn===null){me===null&&(me=Ze);break}e&&me&&Bn.alternate===null&&t(M,me),j=d(Bn,j,ke),he===null?ce=Bn:he.sibling=Bn,he=Bn,me=Ze}if(je.done)return r(M,me),Oe&&rr(M,ke),ce;if(me===null){for(;!je.done;ke++,je=z.next())je=G(M,je.value,K),je!==null&&(j=d(je,j,ke),he===null?ce=je:he.sibling=je,he=je);return Oe&&rr(M,ke),ce}for(me=s(M,me);!je.done;ke++,je=z.next())je=q(me,M,ke,je.value,K),je!==null&&(e&&je.alternate!==null&&me.delete(je.key===null?ke:je.key),j=d(je,j,ke),he===null?ce=je:he.sibling=je,he=je);return e&&me.forEach(function(YE){return t(M,YE)}),Oe&&rr(M,ke),ce}function We(M,j,z,K){if(typeof z=="object"&&z!==null&&z.type===O&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case U:e:{for(var ce=z.key,he=j;he!==null;){if(he.key===ce){if(ce=z.type,ce===O){if(he.tag===7){r(M,he.sibling),j=c(he,z.props.children),j.return=M,M=j;break e}}else if(he.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Z&&Vm(ce)===he.type){r(M,he.sibling),j=c(he,z.props),j.ref=Mo(M,he,z),j.return=M,M=j;break e}r(M,he);break}else t(M,he);he=he.sibling}z.type===O?(j=dr(z.props.children,M.mode,K,z.key),j.return=M,M=j):(K=Hs(z.type,z.key,z.props,null,M.mode,K),K.ref=Mo(M,j,z),K.return=M,M=K)}return y(M);case $:e:{for(he=z.key;j!==null;){if(j.key===he)if(j.tag===4&&j.stateNode.containerInfo===z.containerInfo&&j.stateNode.implementation===z.implementation){r(M,j.sibling),j=c(j,z.children||[]),j.return=M,M=j;break e}else{r(M,j);break}else t(M,j);j=j.sibling}j=Xc(z,M.mode,K),j.return=M,M=j}return y(M);case Z:return he=z._init,We(M,j,he(z._payload),K)}if(ao(z))return re(M,j,z,K);if(X(z))return ie(M,j,z,K);ys(M,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,j!==null&&j.tag===6?(r(M,j.sibling),j=c(j,z),j.return=M,M=j):(r(M,j),j=Yc(z,M.mode,K),j.return=M,M=j),y(M)):r(M,j)}return We}var $r=Gm(!0),Km=Gm(!1),ws=An(null),xs=null,Ur=null,oc=null;function ic(){oc=Ur=xs=null}function sc(e){var t=ws.current;Le(ws),e._currentValue=t}function lc(e,t,r){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===r)break;e=e.return}}function Hr(e,t){xs=e,oc=Ur=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ft=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(oc!==e)if(e={context:e,memoizedValue:t,next:null},Ur===null){if(xs===null)throw Error(i(308));Ur=e,xs.dependencies={lanes:0,firstContext:e}}else Ur=Ur.next=e;return t}var or=null;function ac(e){or===null?or=[e]:or.push(e)}function Ym(e,t,r,s){var c=t.interleaved;return c===null?(r.next=r,ac(t)):(r.next=c.next,c.next=r),t.interleaved=r,an(e,s)}function an(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var zn=!1;function cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xm(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 cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,r){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Te&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,an(e,r)}return c=s.interleaved,c===null?(t.next=t,ac(s)):(t.next=c.next,c.next=t),s.interleaved=t,an(e,r)}function bs(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Sa(e,r)}}function Qm(e,t){var r=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var c=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var y={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};d===null?c=d=y:d=d.next=y,r=r.next}while(r!==null);d===null?c=d=t:d=d.next=t}else c=d=t;r={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:s.shared,effects:s.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ks(e,t,r,s){var c=e.updateQueue;zn=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,E=c.shared.pending;if(E!==null){c.shared.pending=null;var P=E,L=P.next;P.next=null,y===null?d=L:y.next=L,y=P;var V=e.alternate;V!==null&&(V=V.updateQueue,E=V.lastBaseUpdate,E!==y&&(E===null?V.firstBaseUpdate=L:E.next=L,V.lastBaseUpdate=P))}if(d!==null){var G=c.baseState;y=0,V=L=P=null,E=d;do{var W=E.lane,q=E.eventTime;if((s&W)===W){V!==null&&(V=V.next={eventTime:q,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var re=e,ie=E;switch(W=t,q=r,ie.tag){case 1:if(re=ie.payload,typeof re=="function"){G=re.call(q,G,W);break e}G=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=ie.payload,W=typeof re=="function"?re.call(q,G,W):re,W==null)break e;G=F({},G,W);break e;case 2:zn=!0}}E.callback!==null&&E.lane!==0&&(e.flags|=64,W=c.effects,W===null?c.effects=[E]:W.push(E))}else q={eventTime:q,lane:W,tag:E.tag,payload:E.payload,callback:E.callback,next:null},V===null?(L=V=q,P=G):V=V.next=q,y|=W;if(E=E.next,E===null){if(E=c.shared.pending,E===null)break;W=E,E=W.next,W.next=null,c.lastBaseUpdate=W,c.shared.pending=null}}while(!0);if(V===null&&(P=G),c.baseState=P,c.firstBaseUpdate=L,c.lastBaseUpdate=V,t=c.shared.interleaved,t!==null){c=t;do y|=c.lane,c=c.next;while(c!==t)}else d===null&&(c.shared.lanes=0);lr|=y,e.lanes=y,e.memoizedState=G}}function qm(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],c=s.callback;if(c!==null){if(s.callback=null,s=r,typeof c!="function")throw Error(i(191,c));c.call(s)}}}var zo={},Yt=An(zo),Lo=An(zo),Oo=An(zo);function ir(e){if(e===zo)throw Error(i(174));return e}function uc(e,t){switch(Me(Oo,t),Me(Lo,e),Me(Yt,zo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:da(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=da(t,e)}Le(Yt),Me(Yt,t)}function Br(){Le(Yt),Le(Lo),Le(Oo)}function Zm(e){ir(Oo.current);var t=ir(Yt.current),r=da(t,e.type);t!==r&&(Me(Lo,e),Me(Yt,r))}function dc(e){Lo.current===e&&(Le(Yt),Le(Lo))}var De=An(0);function Ss(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==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 fc=[];function pc(){for(var e=0;e<fc.length;e++)fc[e]._workInProgressVersionPrimary=null;fc.length=0}var Cs=I.ReactCurrentDispatcher,hc=I.ReactCurrentBatchConfig,sr=0,Fe=null,Ye=null,Qe=null,Es=!1,Do=!1,Fo=0,gE=0;function rt(){throw Error(i(321))}function mc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Mt(e[r],t[r]))return!1;return!0}function gc(e,t,r,s,c,d){if(sr=d,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cs.current=e===null||e.memoizedState===null?xE:bE,e=r(s,c),Do){d=0;do{if(Do=!1,Fo=0,25<=d)throw Error(i(301));d+=1,Qe=Ye=null,t.updateQueue=null,Cs.current=kE,e=r(s,c)}while(Do)}if(Cs.current=Rs,t=Ye!==null&&Ye.next!==null,sr=0,Qe=Ye=Fe=null,Es=!1,t)throw Error(i(300));return e}function vc(){var e=Fo!==0;return Fo=0,e}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Fe.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function _t(){if(Ye===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=Qe===null?Fe.memoizedState:Qe.next;if(t!==null)Qe=t,Ye=e;else{if(e===null)throw Error(i(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},Qe===null?Fe.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function $o(e,t){return typeof t=="function"?t(e):t}function yc(e){var t=_t(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var s=Ye,c=s.baseQueue,d=r.pending;if(d!==null){if(c!==null){var y=c.next;c.next=d.next,d.next=y}s.baseQueue=c=d,r.pending=null}if(c!==null){d=c.next,s=s.baseState;var E=y=null,P=null,L=d;do{var V=L.lane;if((sr&V)===V)P!==null&&(P=P.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),s=L.hasEagerState?L.eagerState:e(s,L.action);else{var G={lane:V,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};P===null?(E=P=G,y=s):P=P.next=G,Fe.lanes|=V,lr|=V}L=L.next}while(L!==null&&L!==d);P===null?y=s:P.next=E,Mt(s,t.memoizedState)||(ft=!0),t.memoizedState=s,t.baseState=y,t.baseQueue=P,r.lastRenderedState=s}if(e=r.interleaved,e!==null){c=e;do d=c.lane,Fe.lanes|=d,lr|=d,c=c.next;while(c!==e)}else c===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wc(e){var t=_t(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var s=r.dispatch,c=r.pending,d=t.memoizedState;if(c!==null){r.pending=null;var y=c=c.next;do d=e(d,y.action),y=y.next;while(y!==c);Mt(d,t.memoizedState)||(ft=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,s]}function Jm(){}function eg(e,t){var r=Fe,s=_t(),c=t(),d=!Mt(s.memoizedState,c);if(d&&(s.memoizedState=c,ft=!0),s=s.queue,xc(rg.bind(null,r,s,e),[e]),s.getSnapshot!==t||d||Qe!==null&&Qe.memoizedState.tag&1){if(r.flags|=2048,Uo(9,ng.bind(null,r,s,c,t),void 0,null),qe===null)throw Error(i(349));(sr&30)!==0||tg(r,t,c)}return c}function tg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function ng(e,t,r,s){t.value=r,t.getSnapshot=s,og(t)&&ig(e)}function rg(e,t,r){return r(function(){og(t)&&ig(e)})}function og(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Mt(e,r)}catch{return!0}}function ig(e){var t=an(e,1);t!==null&&Ft(t,e,1,-1)}function sg(e){var t=Xt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e},t.queue=e,e=e.dispatch=wE.bind(null,Fe,e),[t.memoizedState,e]}function Uo(e,t,r,s){return e={tag:e,create:t,destroy:r,deps:s,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(s=r.next,r.next=e,e.next=s,t.lastEffect=e)),e}function lg(){return _t().memoizedState}function _s(e,t,r,s){var c=Xt();Fe.flags|=e,c.memoizedState=Uo(1|t,r,void 0,s===void 0?null:s)}function Ns(e,t,r,s){var c=_t();s=s===void 0?null:s;var d=void 0;if(Ye!==null){var y=Ye.memoizedState;if(d=y.destroy,s!==null&&mc(s,y.deps)){c.memoizedState=Uo(t,r,d,s);return}}Fe.flags|=e,c.memoizedState=Uo(1|t,r,d,s)}function ag(e,t){return _s(8390656,8,e,t)}function xc(e,t){return Ns(2048,8,e,t)}function cg(e,t){return Ns(4,2,e,t)}function ug(e,t){return Ns(4,4,e,t)}function dg(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 fg(e,t,r){return r=r!=null?r.concat([e]):null,Ns(4,4,dg.bind(null,t,e),r)}function bc(){}function pg(e,t){var r=_t();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&mc(t,s[1])?s[0]:(r.memoizedState=[e,t],e)}function hg(e,t){var r=_t();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&mc(t,s[1])?s[0]:(e=e(),r.memoizedState=[e,t],e)}function mg(e,t,r){return(sr&21)===0?(e.baseState&&(e.baseState=!1,ft=!0),e.memoizedState=r):(Mt(r,t)||(r=Vh(),Fe.lanes|=r,lr|=r,e.baseState=!0),t)}function vE(e,t){var r=Ie;Ie=r!==0&&4>r?r:4,e(!0);var s=hc.transition;hc.transition={};try{e(!1),t()}finally{Ie=r,hc.transition=s}}function gg(){return _t().memoizedState}function yE(e,t,r){var s=$n(e);if(r={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null},vg(e))yg(t,r);else if(r=Ym(e,t,r,s),r!==null){var c=lt();Ft(r,e,s,c),wg(r,t,s)}}function wE(e,t,r){var s=$n(e),c={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null};if(vg(e))yg(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,E=d(y,r);if(c.hasEagerState=!0,c.eagerState=E,Mt(E,y)){var P=t.interleaved;P===null?(c.next=c,ac(t)):(c.next=P.next,P.next=c),t.interleaved=c;return}}catch{}finally{}r=Ym(e,t,c,s),r!==null&&(c=lt(),Ft(r,e,s,c),wg(r,t,s))}}function vg(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function yg(e,t){Do=Es=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function wg(e,t,r){if((r&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Sa(e,r)}}var Rs={readContext:Et,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},xE={readContext:Et,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:ag,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,_s(4194308,4,dg.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){return _s(4,2,e,t)},useMemo:function(e,t){var r=Xt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var s=Xt();return t=r!==void 0?r(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=yE.bind(null,Fe,e),[s.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:sg,useDebugValue:bc,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=sg(!1),t=e[0];return e=vE.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var s=Fe,c=Xt();if(Oe){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),qe===null)throw Error(i(349));(sr&30)!==0||tg(s,t,r)}c.memoizedState=r;var d={value:r,getSnapshot:t};return c.queue=d,ag(rg.bind(null,s,d,e),[e]),s.flags|=2048,Uo(9,ng.bind(null,s,d,r,t),void 0,null),r},useId:function(){var e=Xt(),t=qe.identifierPrefix;if(Oe){var r=ln,s=sn;r=(s&~(1<<32-It(s)-1)).toString(32)+r,t=":"+t+"R"+r,r=Fo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=gE++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},bE={readContext:Et,useCallback:pg,useContext:Et,useEffect:xc,useImperativeHandle:fg,useInsertionEffect:cg,useLayoutEffect:ug,useMemo:hg,useReducer:yc,useRef:lg,useState:function(){return yc($o)},useDebugValue:bc,useDeferredValue:function(e){var t=_t();return mg(t,Ye.memoizedState,e)},useTransition:function(){var e=yc($o)[0],t=_t().memoizedState;return[e,t]},useMutableSource:Jm,useSyncExternalStore:eg,useId:gg,unstable_isNewReconciler:!1},kE={readContext:Et,useCallback:pg,useContext:Et,useEffect:xc,useImperativeHandle:fg,useInsertionEffect:cg,useLayoutEffect:ug,useMemo:hg,useReducer:wc,useRef:lg,useState:function(){return wc($o)},useDebugValue:bc,useDeferredValue:function(e){var t=_t();return Ye===null?t.memoizedState=e:mg(t,Ye.memoizedState,e)},useTransition:function(){var e=wc($o)[0],t=_t().memoizedState;return[e,t]},useMutableSource:Jm,useSyncExternalStore:eg,useId:gg,unstable_isNewReconciler:!1};function Lt(e,t){if(e&&e.defaultProps){t=F({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function kc(e,t,r,s){t=e.memoizedState,r=r(s,t),r=r==null?t:F({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ps={isMounted:function(e){return(e=e._reactInternals)?Jn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var s=lt(),c=$n(e),d=cn(s,c);d.payload=t,r!=null&&(d.callback=r),t=Ln(e,d,c),t!==null&&(Ft(t,e,c,s),bs(t,e,c))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var s=lt(),c=$n(e),d=cn(s,c);d.tag=1,d.payload=t,r!=null&&(d.callback=r),t=Ln(e,d,c),t!==null&&(Ft(t,e,c,s),bs(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=lt(),s=$n(e),c=cn(r,s);c.tag=2,t!=null&&(c.callback=t),t=Ln(e,c,s),t!==null&&(Ft(t,e,s,r),bs(t,e,s))}};function xg(e,t,r,s,c,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,y):t.prototype&&t.prototype.isPureReactComponent?!No(r,s)||!No(c,d):!0}function bg(e,t,r){var s=!1,c=In,d=t.contextType;return typeof d=="object"&&d!==null?d=Et(d):(c=dt(t)?tr:nt.current,s=t.contextTypes,d=(s=s!=null)?Lr(e,c):In),t=new t(r,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ps,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=d),t}function kg(e,t,r,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,s),t.state!==e&&Ps.enqueueReplaceState(t,t.state,null)}function Sc(e,t,r,s){var c=e.stateNode;c.props=r,c.state=e.memoizedState,c.refs={},cc(e);var d=t.contextType;typeof d=="object"&&d!==null?c.context=Et(d):(d=dt(t)?tr:nt.current,c.context=Lr(e,d)),c.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(kc(e,t,d,r),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&&Ps.enqueueReplaceState(c,c.state,null),ks(e,r,c,s),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function Wr(e,t){try{var r="",s=t;do r+=fe(s),s=s.return;while(s);var c=r}catch(d){c=`
|
|
37
|
+
`+c[y].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=y&&0<=E);break}}}finally{be=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?B(e):""}function fe(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=ye(e.type,!1),e;case 11:return e=ye(e.type.render,!1),e;case 1:return e=ye(e.type,!0),e;default:return""}}function de(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 O:return"Fragment";case $:return"Portal";case Y:return"Profiler";case D:return"StrictMode";case ve:return"Suspense";case xe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ne:return(e.displayName||"Context")+".Consumer";case te:return(e._context.displayName||"Context")+".Provider";case se:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Se:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return de(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 de(t);case 8:return t===D?"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 ue(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function le(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ce(e){var t=le(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){s=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ne(e){e._valueTracker||(e._valueTracker=Ce(e))}function Re(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=le(e)?e.checked?"true":"false":e.value),e=s,e!==r?(t.setValue(e),!0):!1}function $e(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 Ke(e,t){var r=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function kn(e,t){var r=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;r=ue(t.value!=null?t.value:r),e._wrapperState={initialChecked:s,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Sn(e,t){t=t.checked,t!=null&&T(e,"checked",t,!1)}function nn(e,t){Sn(e,t);var r=ue(t.value),s=t.type;if(r!=null)s==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cn(e,t.type,r):t.hasOwnProperty("defaultValue")&&Cn(e,t.type,ue(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ui(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Cn(e,t,r){(t!=="number"||$e(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var lo=Array.isArray;function Cr(e,t,r,s){if(e=e.options,t){t={};for(var c=0;c<r.length;c++)t["$"+r[c]]=!0;for(r=0;r<e.length;r++)c=t.hasOwnProperty("$"+e[r].value),e[r].selected!==c&&(e[r].selected=c),c&&s&&(e[r].defaultSelected=!0)}else{for(r=""+ue(r),t=null,c=0;c<e.length;c++){if(e[c].value===r){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function dl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ch(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(i(92));if(lo(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ue(r)}}function Eh(e,t){var r=ue(t.value),s=ue(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),s!=null&&(e.defaultValue=""+s)}function _h(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Nh(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 fl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hi,Rh=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,s,c){MSApp.execUnsafeLocalFunction(function(){return e(t,r,s,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Hi=Hi||document.createElement("div"),Hi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function co(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var uo={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},eC=["Webkit","ms","Moz","O"];Object.keys(uo).forEach(function(e){eC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uo[t]=uo[e]})});function Ph(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||uo.hasOwnProperty(e)&&uo[e]?(""+t).trim():t+"px"}function Th(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var s=r.indexOf("--")===0,c=Ph(r,t[r],s);r==="float"&&(r="cssFloat"),s?e.setProperty(r,c):e[r]=c}}var tC=F({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 pl(e,t){if(t){if(tC[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 hl(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 ml=null;function gl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vl=null,Er=null,_r=null;function jh(e){if(e=Io(e)){if(typeof vl!="function")throw Error(i(280));var t=e.stateNode;t&&(t=ds(t),vl(e.stateNode,e.type,t))}}function Ah(e){Er?_r?_r.push(e):_r=[e]:Er=e}function Ih(){if(Er){var e=Er,t=_r;if(_r=Er=null,jh(e),t)for(e=0;e<t.length;e++)jh(t[e])}}function zh(e,t){return e(t)}function Mh(){}var yl=!1;function Lh(e,t,r){if(yl)return e(t,r);yl=!0;try{return zh(e,t,r)}finally{yl=!1,(Er!==null||_r!==null)&&(Mh(),Ih())}}function fo(e,t){var r=e.stateNode;if(r===null)return null;var s=ds(r);if(s===null)return null;r=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(i(231,t,typeof r));return r}var wl=!1;if(p)try{var po={};Object.defineProperty(po,"passive",{get:function(){wl=!0}}),window.addEventListener("test",po,po),window.removeEventListener("test",po,po)}catch{wl=!1}function nC(e,t,r,s,c,d,y,E,P){var L=Array.prototype.slice.call(arguments,3);try{t.apply(r,L)}catch(V){this.onError(V)}}var ho=!1,Bi=null,Wi=!1,xl=null,rC={onError:function(e){ho=!0,Bi=e}};function oC(e,t,r,s,c,d,y,E,P){ho=!1,Bi=null,nC.apply(rC,arguments)}function iC(e,t,r,s,c,d,y,E,P){if(oC.apply(this,arguments),ho){if(ho){var L=Bi;ho=!1,Bi=null}else throw Error(i(198));Wi||(Wi=!0,xl=L)}}function Jn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Oh(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 Dh(e){if(Jn(e)!==e)throw Error(i(188))}function sC(e){var t=e.alternate;if(!t){if(t=Jn(e),t===null)throw Error(i(188));return t!==e?null:e}for(var r=e,s=t;;){var c=r.return;if(c===null)break;var d=c.alternate;if(d===null){if(s=c.return,s!==null){r=s;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===r)return Dh(c),e;if(d===s)return Dh(c),t;d=d.sibling}throw Error(i(188))}if(r.return!==s.return)r=c,s=d;else{for(var y=!1,E=c.child;E;){if(E===r){y=!0,r=c,s=d;break}if(E===s){y=!0,s=c,r=d;break}E=E.sibling}if(!y){for(E=d.child;E;){if(E===r){y=!0,r=d,s=c;break}if(E===s){y=!0,s=d,r=c;break}E=E.sibling}if(!y)throw Error(i(189))}}if(r.alternate!==s)throw Error(i(190))}if(r.tag!==3)throw Error(i(188));return r.stateNode.current===r?e:t}function Fh(e){return e=sC(e),e!==null?$h(e):null}function $h(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$h(e);if(t!==null)return t;e=e.sibling}return null}var Uh=o.unstable_scheduleCallback,Hh=o.unstable_cancelCallback,aC=o.unstable_shouldYield,lC=o.unstable_requestPaint,Be=o.unstable_now,cC=o.unstable_getCurrentPriorityLevel,bl=o.unstable_ImmediatePriority,Bh=o.unstable_UserBlockingPriority,Vi=o.unstable_NormalPriority,uC=o.unstable_LowPriority,Wh=o.unstable_IdlePriority,Gi=null,Gt=null;function dC(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:hC,fC=Math.log,pC=Math.LN2;function hC(e){return e>>>=0,e===0?32:31-(fC(e)/pC|0)|0}var Ki=64,Yi=4194304;function mo(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 Xi(e,t){var r=e.pendingLanes;if(r===0)return 0;var s=0,c=e.suspendedLanes,d=e.pingedLanes,y=r&268435455;if(y!==0){var E=y&~c;E!==0?s=mo(E):(d&=y,d!==0&&(s=mo(d)))}else y=r&~c,y!==0?s=mo(y):d!==0&&(s=mo(d));if(s===0)return 0;if(t!==0&&t!==s&&(t&c)===0&&(c=s&-s,d=t&-t,c>=d||c===16&&(d&4194240)!==0))return t;if((s&4)!==0&&(s|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)r=31-It(t),c=1<<r,s|=e[r],t&=~c;return s}function mC(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 gC(e,t){for(var r=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes;0<d;){var y=31-It(d),E=1<<y,P=c[y];P===-1?((E&r)===0||(E&s)!==0)&&(c[y]=mC(E,t)):P<=t&&(e.expiredLanes|=E),d&=~E}}function kl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Vh(){var e=Ki;return Ki<<=1,(Ki&4194240)===0&&(Ki=64),e}function Sl(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function go(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=r}function vC(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<r;){var c=31-It(r),d=1<<c;t[c]=0,s[c]=-1,e[c]=-1,r&=~d}}function Cl(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var s=31-It(r),c=1<<s;c&t|e[s]&t&&(e[s]|=t),r&=~c}}var Ie=0;function Gh(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Kh,El,Yh,Xh,Qh,_l=!1,Qi=[],En=null,_n=null,Nn=null,vo=new Map,yo=new Map,Rn=[],yC="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 qh(e,t){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":_n=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":vo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yo.delete(t.pointerId)}}function wo(e,t,r,s,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:s,nativeEvent:d,targetContainers:[c]},t!==null&&(t=Io(t),t!==null&&El(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function wC(e,t,r,s,c){switch(t){case"focusin":return En=wo(En,e,t,r,s,c),!0;case"dragenter":return _n=wo(_n,e,t,r,s,c),!0;case"mouseover":return Nn=wo(Nn,e,t,r,s,c),!0;case"pointerover":var d=c.pointerId;return vo.set(d,wo(vo.get(d)||null,e,t,r,s,c)),!0;case"gotpointercapture":return d=c.pointerId,yo.set(d,wo(yo.get(d)||null,e,t,r,s,c)),!0}return!1}function Zh(e){var t=er(e.target);if(t!==null){var r=Jn(t);if(r!==null){if(t=r.tag,t===13){if(t=Oh(r),t!==null){e.blockedOn=t,Qh(e.priority,function(){Yh(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Rl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var s=new r.constructor(r.type,r);ml=s,r.target.dispatchEvent(s),ml=null}else return t=Io(r),t!==null&&El(t),e.blockedOn=r,!1;t.shift()}return!0}function Jh(e,t,r){qi(e)&&r.delete(t)}function xC(){_l=!1,En!==null&&qi(En)&&(En=null),_n!==null&&qi(_n)&&(_n=null),Nn!==null&&qi(Nn)&&(Nn=null),vo.forEach(Jh),yo.forEach(Jh)}function xo(e,t){e.blockedOn===t&&(e.blockedOn=null,_l||(_l=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,xC)))}function bo(e){function t(c){return xo(c,e)}if(0<Qi.length){xo(Qi[0],e);for(var r=1;r<Qi.length;r++){var s=Qi[r];s.blockedOn===e&&(s.blockedOn=null)}}for(En!==null&&xo(En,e),_n!==null&&xo(_n,e),Nn!==null&&xo(Nn,e),vo.forEach(t),yo.forEach(t),r=0;r<Rn.length;r++)s=Rn[r],s.blockedOn===e&&(s.blockedOn=null);for(;0<Rn.length&&(r=Rn[0],r.blockedOn===null);)Zh(r),r.blockedOn===null&&Rn.shift()}var Nr=I.ReactCurrentBatchConfig,Zi=!0;function bC(e,t,r,s){var c=Ie,d=Nr.transition;Nr.transition=null;try{Ie=1,Nl(e,t,r,s)}finally{Ie=c,Nr.transition=d}}function kC(e,t,r,s){var c=Ie,d=Nr.transition;Nr.transition=null;try{Ie=4,Nl(e,t,r,s)}finally{Ie=c,Nr.transition=d}}function Nl(e,t,r,s){if(Zi){var c=Rl(e,t,r,s);if(c===null)Vl(e,t,s,Ji,r),qh(e,s);else if(wC(c,e,t,r,s))s.stopPropagation();else if(qh(e,s),t&4&&-1<yC.indexOf(e)){for(;c!==null;){var d=Io(c);if(d!==null&&Kh(d),d=Rl(e,t,r,s),d===null&&Vl(e,t,s,Ji,r),d===c)break;c=d}c!==null&&s.stopPropagation()}else Vl(e,t,s,null,r)}}var Ji=null;function Rl(e,t,r,s){if(Ji=null,e=gl(s),e=er(e),e!==null)if(t=Jn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Oh(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ji=e,null}function em(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(cC()){case bl:return 1;case Bh:return 4;case Vi:case uC:return 16;case Wh:return 536870912;default:return 16}default:return 16}}var Pn=null,Pl=null,es=null;function tm(){if(es)return es;var e,t=Pl,r=t.length,s,c="value"in Pn?Pn.value:Pn.textContent,d=c.length;for(e=0;e<r&&t[e]===c[e];e++);var y=r-e;for(s=1;s<=y&&t[r-s]===c[d-s];s++);return es=c.slice(e,1<s?1-s:void 0)}function ts(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 ns(){return!0}function nm(){return!1}function yt(e){function t(r,s,c,d,y){this._reactName=r,this._targetInst=c,this.type=s,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(r=e[E],this[E]=r?r(d):d[E]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ns:nm,this.isPropagationStopped=nm,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ns)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),t}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tl=yt(Rr),ko=F({},Rr,{view:0,detail:0}),SC=yt(ko),jl,Al,So,rs=F({},ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zl,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!==So&&(So&&e.type==="mousemove"?(jl=e.screenX-So.screenX,Al=e.screenY-So.screenY):Al=jl=0,So=e),jl)},movementY:function(e){return"movementY"in e?e.movementY:Al}}),rm=yt(rs),CC=F({},rs,{dataTransfer:0}),EC=yt(CC),_C=F({},ko,{relatedTarget:0}),Il=yt(_C),NC=F({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),RC=yt(NC),PC=F({},Rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TC=yt(PC),jC=F({},Rr,{data:0}),om=yt(jC),AC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IC={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"},zC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zC[e])?!!t[e]:!1}function zl(){return MC}var LC=F({},ko,{key:function(e){if(e.key){var t=AC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?IC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zl,charCode:function(e){return e.type==="keypress"?ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),OC=yt(LC),DC=F({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),im=yt(DC),FC=F({},ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zl}),$C=yt(FC),UC=F({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),HC=yt(UC),BC=F({},rs,{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}),WC=yt(BC),VC=[9,13,27,32],Ml=p&&"CompositionEvent"in window,Co=null;p&&"documentMode"in document&&(Co=document.documentMode);var GC=p&&"TextEvent"in window&&!Co,sm=p&&(!Ml||Co&&8<Co&&11>=Co),am=" ",lm=!1;function cm(e,t){switch(e){case"keyup":return VC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function um(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pr=!1;function KC(e,t){switch(e){case"compositionend":return um(t);case"keypress":return t.which!==32?null:(lm=!0,am);case"textInput":return e=t.data,e===am&&lm?null:e;default:return null}}function YC(e,t){if(Pr)return e==="compositionend"||!Ml&&cm(e,t)?(e=tm(),es=Pl=Pn=null,Pr=!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 sm&&t.locale!=="ko"?null:t.data;default:return null}}var XC={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 dm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!XC[e.type]:t==="textarea"}function fm(e,t,r,s){Ah(s),t=ls(t,"onChange"),0<t.length&&(r=new Tl("onChange","change",null,r,s),e.push({event:r,listeners:t}))}var Eo=null,_o=null;function QC(e){Tm(e,0)}function os(e){var t=zr(e);if(Re(t))return e}function qC(e,t){if(e==="change")return t}var pm=!1;if(p){var Ll;if(p){var Ol="oninput"in document;if(!Ol){var hm=document.createElement("div");hm.setAttribute("oninput","return;"),Ol=typeof hm.oninput=="function"}Ll=Ol}else Ll=!1;pm=Ll&&(!document.documentMode||9<document.documentMode)}function mm(){Eo&&(Eo.detachEvent("onpropertychange",gm),_o=Eo=null)}function gm(e){if(e.propertyName==="value"&&os(_o)){var t=[];fm(t,_o,e,gl(e)),Lh(QC,t)}}function ZC(e,t,r){e==="focusin"?(mm(),Eo=t,_o=r,Eo.attachEvent("onpropertychange",gm)):e==="focusout"&&mm()}function JC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return os(_o)}function eE(e,t){if(e==="click")return os(t)}function tE(e,t){if(e==="input"||e==="change")return os(t)}function nE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:nE;function No(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var c=r[s];if(!h.call(t,c)||!zt(e[c],t[c]))return!1}return!0}function vm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ym(e,t){var r=vm(e);e=0;for(var s;r;){if(r.nodeType===3){if(s=e+r.textContent.length,e<=t&&s>=t)return{node:r,offset:t-e};e=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=vm(r)}}function wm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xm(){for(var e=window,t=$e();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=$e(e.document)}return t}function Dl(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 rE(e){var t=xm(),r=e.focusedElem,s=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&wm(r.ownerDocument.documentElement,r)){if(s!==null&&Dl(r)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=r.textContent.length,d=Math.min(s.start,c);s=s.end===void 0?d:Math.min(s.end,c),!e.extend&&d>s&&(c=s,s=d,d=c),c=ym(r,d);var y=ym(r,s);c&&y&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==y.node||e.focusOffset!==y.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),d>s?(e.addRange(t),e.extend(y.node,y.offset)):(t.setEnd(y.node,y.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var oE=p&&"documentMode"in document&&11>=document.documentMode,Tr=null,Fl=null,Ro=null,$l=!1;function bm(e,t,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$l||Tr==null||Tr!==$e(s)||(s=Tr,"selectionStart"in s&&Dl(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ro&&No(Ro,s)||(Ro=s,s=ls(Fl,"onSelect"),0<s.length&&(t=new Tl("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=Tr)))}function is(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var jr={animationend:is("Animation","AnimationEnd"),animationiteration:is("Animation","AnimationIteration"),animationstart:is("Animation","AnimationStart"),transitionend:is("Transition","TransitionEnd")},Ul={},km={};p&&(km=document.createElement("div").style,"AnimationEvent"in window||(delete jr.animationend.animation,delete jr.animationiteration.animation,delete jr.animationstart.animation),"TransitionEvent"in window||delete jr.transitionend.transition);function ss(e){if(Ul[e])return Ul[e];if(!jr[e])return e;var t=jr[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in km)return Ul[e]=t[r];return e}var Sm=ss("animationend"),Cm=ss("animationiteration"),Em=ss("animationstart"),_m=ss("transitionend"),Nm=new Map,Rm="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 Tn(e,t){Nm.set(e,t),u(t,[e])}for(var Hl=0;Hl<Rm.length;Hl++){var Bl=Rm[Hl],iE=Bl.toLowerCase(),sE=Bl[0].toUpperCase()+Bl.slice(1);Tn(iE,"on"+sE)}Tn(Sm,"onAnimationEnd"),Tn(Cm,"onAnimationIteration"),Tn(Em,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(_m,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("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 Po="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(" "),aE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Po));function Pm(e,t,r){var s=e.type||"unknown-event";e.currentTarget=r,iC(s,t,void 0,e),e.currentTarget=null}function Tm(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var s=e[r],c=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var y=s.length-1;0<=y;y--){var E=s[y],P=E.instance,L=E.currentTarget;if(E=E.listener,P!==d&&c.isPropagationStopped())break e;Pm(c,E,L),d=P}else for(y=0;y<s.length;y++){if(E=s[y],P=E.instance,L=E.currentTarget,E=E.listener,P!==d&&c.isPropagationStopped())break e;Pm(c,E,L),d=P}}}if(Wi)throw e=xl,Wi=!1,xl=null,e}function Me(e,t){var r=t[ql];r===void 0&&(r=t[ql]=new Set);var s=e+"__bubble";r.has(s)||(jm(t,e,2,!1),r.add(s))}function Wl(e,t,r){var s=0;t&&(s|=4),jm(r,e,s,t)}var as="_reactListening"+Math.random().toString(36).slice(2);function To(e){if(!e[as]){e[as]=!0,a.forEach(function(r){r!=="selectionchange"&&(aE.has(r)||Wl(r,!1,e),Wl(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[as]||(t[as]=!0,Wl("selectionchange",!1,t))}}function jm(e,t,r,s){switch(em(t)){case 1:var c=bC;break;case 4:c=kC;break;default:c=Nl}r=c.bind(null,t,r,e),c=void 0,!wl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(t,r,{capture:!0,passive:c}):e.addEventListener(t,r,!0):c!==void 0?e.addEventListener(t,r,{passive:c}):e.addEventListener(t,r,!1)}function Vl(e,t,r,s,c){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var y=s.tag;if(y===3||y===4){var E=s.stateNode.containerInfo;if(E===c||E.nodeType===8&&E.parentNode===c)break;if(y===4)for(y=s.return;y!==null;){var P=y.tag;if((P===3||P===4)&&(P=y.stateNode.containerInfo,P===c||P.nodeType===8&&P.parentNode===c))return;y=y.return}for(;E!==null;){if(y=er(E),y===null)return;if(P=y.tag,P===5||P===6){s=d=y;continue e}E=E.parentNode}}s=s.return}Lh(function(){var L=d,V=gl(r),G=[];e:{var W=Nm.get(e);if(W!==void 0){var q=Tl,re=e;switch(e){case"keypress":if(ts(r)===0)break e;case"keydown":case"keyup":q=OC;break;case"focusin":re="focus",q=Il;break;case"focusout":re="blur",q=Il;break;case"beforeblur":case"afterblur":q=Il;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=rm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=EC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=$C;break;case Sm:case Cm:case Em:q=RC;break;case _m:q=HC;break;case"scroll":q=SC;break;case"wheel":q=WC;break;case"copy":case"cut":case"paste":q=TC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=im}var ie=(t&4)!==0,We=!ie&&e==="scroll",z=ie?W!==null?W+"Capture":null:W;ie=[];for(var j=L,M;j!==null;){M=j;var K=M.stateNode;if(M.tag===5&&K!==null&&(M=K,z!==null&&(K=fo(j,z),K!=null&&ie.push(jo(j,K,M)))),We)break;j=j.return}0<ie.length&&(W=new q(W,re,null,r,V),G.push({event:W,listeners:ie}))}}if((t&7)===0){e:{if(W=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",W&&r!==ml&&(re=r.relatedTarget||r.fromElement)&&(er(re)||re[rn]))break e;if((q||W)&&(W=V.window===V?V:(W=V.ownerDocument)?W.defaultView||W.parentWindow:window,q?(re=r.relatedTarget||r.toElement,q=L,re=re?er(re):null,re!==null&&(We=Jn(re),re!==We||re.tag!==5&&re.tag!==6)&&(re=null)):(q=null,re=L),q!==re)){if(ie=rm,K="onMouseLeave",z="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ie=im,K="onPointerLeave",z="onPointerEnter",j="pointer"),We=q==null?W:zr(q),M=re==null?W:zr(re),W=new ie(K,j+"leave",q,r,V),W.target=We,W.relatedTarget=M,K=null,er(V)===L&&(ie=new ie(z,j+"enter",re,r,V),ie.target=M,ie.relatedTarget=We,K=ie),We=K,q&&re)t:{for(ie=q,z=re,j=0,M=ie;M;M=Ar(M))j++;for(M=0,K=z;K;K=Ar(K))M++;for(;0<j-M;)ie=Ar(ie),j--;for(;0<M-j;)z=Ar(z),M--;for(;j--;){if(ie===z||z!==null&&ie===z.alternate)break t;ie=Ar(ie),z=Ar(z)}ie=null}else ie=null;q!==null&&Am(G,W,q,ie,!1),re!==null&&We!==null&&Am(G,We,re,ie,!0)}}e:{if(W=L?zr(L):window,q=W.nodeName&&W.nodeName.toLowerCase(),q==="select"||q==="input"&&W.type==="file")var ce=qC;else if(dm(W))if(pm)ce=tE;else{ce=JC;var he=ZC}else(q=W.nodeName)&&q.toLowerCase()==="input"&&(W.type==="checkbox"||W.type==="radio")&&(ce=eE);if(ce&&(ce=ce(e,L))){fm(G,ce,r,V);break e}he&&he(e,W,L),e==="focusout"&&(he=W._wrapperState)&&he.controlled&&W.type==="number"&&Cn(W,"number",W.value)}switch(he=L?zr(L):window,e){case"focusin":(dm(he)||he.contentEditable==="true")&&(Tr=he,Fl=L,Ro=null);break;case"focusout":Ro=Fl=Tr=null;break;case"mousedown":$l=!0;break;case"contextmenu":case"mouseup":case"dragend":$l=!1,bm(G,r,V);break;case"selectionchange":if(oE)break;case"keydown":case"keyup":bm(G,r,V)}var me;if(Ml)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Pr?cm(e,r)&&(ke="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ke="onCompositionStart");ke&&(sm&&r.locale!=="ko"&&(Pr||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Pr&&(me=tm()):(Pn=V,Pl="value"in Pn?Pn.value:Pn.textContent,Pr=!0)),he=ls(L,ke),0<he.length&&(ke=new om(ke,e,null,r,V),G.push({event:ke,listeners:he}),me?ke.data=me:(me=um(r),me!==null&&(ke.data=me)))),(me=GC?KC(e,r):YC(e,r))&&(L=ls(L,"onBeforeInput"),0<L.length&&(V=new om("onBeforeInput","beforeinput",null,r,V),G.push({event:V,listeners:L}),V.data=me))}Tm(G,t)})}function jo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ls(e,t){for(var r=t+"Capture",s=[];e!==null;){var c=e,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=fo(e,r),d!=null&&s.unshift(jo(e,d,c)),d=fo(e,t),d!=null&&s.push(jo(e,d,c))),e=e.return}return s}function Ar(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Am(e,t,r,s,c){for(var d=t._reactName,y=[];r!==null&&r!==s;){var E=r,P=E.alternate,L=E.stateNode;if(P!==null&&P===s)break;E.tag===5&&L!==null&&(E=L,c?(P=fo(r,d),P!=null&&y.unshift(jo(r,P,E))):c||(P=fo(r,d),P!=null&&y.push(jo(r,P,E)))),r=r.return}y.length!==0&&e.push({event:t,listeners:y})}var lE=/\r\n?/g,cE=/\u0000|\uFFFD/g;function Im(e){return(typeof e=="string"?e:""+e).replace(lE,`
|
|
38
|
+
`).replace(cE,"")}function cs(e,t,r){if(t=Im(t),Im(e)!==t&&r)throw Error(i(425))}function us(){}var Gl=null,Kl=null;function Yl(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 Xl=typeof setTimeout=="function"?setTimeout:void 0,uE=typeof clearTimeout=="function"?clearTimeout:void 0,zm=typeof Promise=="function"?Promise:void 0,dE=typeof queueMicrotask=="function"?queueMicrotask:typeof zm<"u"?function(e){return zm.resolve(null).then(e).catch(fE)}:Xl;function fE(e){setTimeout(function(){throw e})}function Ql(e,t){var r=t,s=0;do{var c=r.nextSibling;if(e.removeChild(r),c&&c.nodeType===8)if(r=c.data,r==="/$"){if(s===0){e.removeChild(c),bo(t);return}s--}else r!=="$"&&r!=="$?"&&r!=="$!"||s++;r=c}while(r);bo(t)}function jn(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 Mm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ir=Math.random().toString(36).slice(2),Kt="__reactFiber$"+Ir,Ao="__reactProps$"+Ir,rn="__reactContainer$"+Ir,ql="__reactEvents$"+Ir,pE="__reactListeners$"+Ir,hE="__reactHandles$"+Ir;function er(e){var t=e[Kt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[rn]||r[Kt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Mm(e);e!==null;){if(r=e[Kt])return r;e=Mm(e)}return t}e=r,r=e.parentNode}return null}function Io(e){return e=e[Kt]||e[rn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ds(e){return e[Ao]||null}var Zl=[],Mr=-1;function An(e){return{current:e}}function Le(e){0>Mr||(e.current=Zl[Mr],Zl[Mr]=null,Mr--)}function ze(e,t){Mr++,Zl[Mr]=e.current,e.current=t}var In={},nt=An(In),ut=An(!1),tr=In;function Lr(e,t){var r=e.type.contextTypes;if(!r)return In;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in r)c[d]=t[d];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function dt(e){return e=e.childContextTypes,e!=null}function fs(){Le(ut),Le(nt)}function Lm(e,t,r){if(nt.current!==In)throw Error(i(168));ze(nt,t),ze(ut,r)}function Om(e,t,r){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return r;s=s.getChildContext();for(var c in s)if(!(c in t))throw Error(i(108,Q(e)||"Unknown",c));return F({},r,s)}function ps(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,tr=nt.current,ze(nt,e),ze(ut,ut.current),!0}function Dm(e,t,r){var s=e.stateNode;if(!s)throw Error(i(169));r?(e=Om(e,t,tr),s.__reactInternalMemoizedMergedChildContext=e,Le(ut),Le(nt),ze(nt,e)):Le(ut),ze(ut,r)}var on=null,hs=!1,Jl=!1;function Fm(e){on===null?on=[e]:on.push(e)}function mE(e){hs=!0,Fm(e)}function zn(){if(!Jl&&on!==null){Jl=!0;var e=0,t=Ie;try{var r=on;for(Ie=1;e<r.length;e++){var s=r[e];do s=s(!0);while(s!==null)}on=null,hs=!1}catch(c){throw on!==null&&(on=on.slice(e+1)),Uh(bl,zn),c}finally{Ie=t,Jl=!1}}return null}var Or=[],Dr=0,ms=null,gs=0,St=[],Ct=0,nr=null,sn=1,an="";function rr(e,t){Or[Dr++]=gs,Or[Dr++]=ms,ms=e,gs=t}function $m(e,t,r){St[Ct++]=sn,St[Ct++]=an,St[Ct++]=nr,nr=e;var s=sn;e=an;var c=32-It(s)-1;s&=~(1<<c),r+=1;var d=32-It(t)+c;if(30<d){var y=c-c%5;d=(s&(1<<y)-1).toString(32),s>>=y,c-=y,sn=1<<32-It(t)+c|r<<c|s,an=d+e}else sn=1<<d|r<<c|s,an=e}function ec(e){e.return!==null&&(rr(e,1),$m(e,1,0))}function tc(e){for(;e===ms;)ms=Or[--Dr],Or[Dr]=null,gs=Or[--Dr],Or[Dr]=null;for(;e===nr;)nr=St[--Ct],St[Ct]=null,an=St[--Ct],St[Ct]=null,sn=St[--Ct],St[Ct]=null}var wt=null,xt=null,Oe=!1,Mt=null;function Um(e,t){var r=Rt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Hm(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,wt=e,xt=jn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wt=e,xt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=nr!==null?{id:sn,overflow:an}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Rt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,wt=e,xt=null,!0):!1;default:return!1}}function nc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rc(e){if(Oe){var t=xt;if(t){var r=t;if(!Hm(e,t)){if(nc(e))throw Error(i(418));t=jn(r.nextSibling);var s=wt;t&&Hm(e,t)?Um(s,r):(e.flags=e.flags&-4097|2,Oe=!1,wt=e)}}else{if(nc(e))throw Error(i(418));e.flags=e.flags&-4097|2,Oe=!1,wt=e}}}function Bm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wt=e}function vs(e){if(e!==wt)return!1;if(!Oe)return Bm(e),Oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yl(e.type,e.memoizedProps)),t&&(t=xt)){if(nc(e))throw Wm(),Error(i(418));for(;t;)Um(e,t),t=jn(t.nextSibling)}if(Bm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){xt=jn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}xt=null}}else xt=wt?jn(e.stateNode.nextSibling):null;return!0}function Wm(){for(var e=xt;e;)e=jn(e.nextSibling)}function Fr(){xt=wt=null,Oe=!1}function oc(e){Mt===null?Mt=[e]:Mt.push(e)}var gE=I.ReactCurrentBatchConfig;function zo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(i(309));var s=r.stateNode}if(!s)throw Error(i(147,e));var c=s,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(y){var E=c.refs;y===null?delete E[d]:E[d]=y},t._stringRef=d,t)}if(typeof e!="string")throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function ys(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Vm(e){var t=e._init;return t(e._payload)}function Gm(e){function t(z,j){if(e){var M=z.deletions;M===null?(z.deletions=[j],z.flags|=16):M.push(j)}}function r(z,j){if(!e)return null;for(;j!==null;)t(z,j),j=j.sibling;return null}function s(z,j){for(z=new Map;j!==null;)j.key!==null?z.set(j.key,j):z.set(j.index,j),j=j.sibling;return z}function c(z,j){return z=Hn(z,j),z.index=0,z.sibling=null,z}function d(z,j,M){return z.index=M,e?(M=z.alternate,M!==null?(M=M.index,M<j?(z.flags|=2,j):M):(z.flags|=2,j)):(z.flags|=1048576,j)}function y(z){return e&&z.alternate===null&&(z.flags|=2),z}function E(z,j,M,K){return j===null||j.tag!==6?(j=Xc(M,z.mode,K),j.return=z,j):(j=c(j,M),j.return=z,j)}function P(z,j,M,K){var ce=M.type;return ce===O?V(z,j,M.props.children,K,M.key):j!==null&&(j.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Z&&Vm(ce)===j.type)?(K=c(j,M.props),K.ref=zo(z,j,M),K.return=z,K):(K=Hs(M.type,M.key,M.props,null,z.mode,K),K.ref=zo(z,j,M),K.return=z,K)}function L(z,j,M,K){return j===null||j.tag!==4||j.stateNode.containerInfo!==M.containerInfo||j.stateNode.implementation!==M.implementation?(j=Qc(M,z.mode,K),j.return=z,j):(j=c(j,M.children||[]),j.return=z,j)}function V(z,j,M,K,ce){return j===null||j.tag!==7?(j=dr(M,z.mode,K,ce),j.return=z,j):(j=c(j,M),j.return=z,j)}function G(z,j,M){if(typeof j=="string"&&j!==""||typeof j=="number")return j=Xc(""+j,z.mode,M),j.return=z,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case U:return M=Hs(j.type,j.key,j.props,null,z.mode,M),M.ref=zo(z,null,j),M.return=z,M;case $:return j=Qc(j,z.mode,M),j.return=z,j;case Z:var K=j._init;return G(z,K(j._payload),M)}if(lo(j)||X(j))return j=dr(j,z.mode,M,null),j.return=z,j;ys(z,j)}return null}function W(z,j,M,K){var ce=j!==null?j.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ce!==null?null:E(z,j,""+M,K);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case U:return M.key===ce?P(z,j,M,K):null;case $:return M.key===ce?L(z,j,M,K):null;case Z:return ce=M._init,W(z,j,ce(M._payload),K)}if(lo(M)||X(M))return ce!==null?null:V(z,j,M,K,null);ys(z,M)}return null}function q(z,j,M,K,ce){if(typeof K=="string"&&K!==""||typeof K=="number")return z=z.get(M)||null,E(j,z,""+K,ce);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case U:return z=z.get(K.key===null?M:K.key)||null,P(j,z,K,ce);case $:return z=z.get(K.key===null?M:K.key)||null,L(j,z,K,ce);case Z:var he=K._init;return q(z,j,M,he(K._payload),ce)}if(lo(K)||X(K))return z=z.get(M)||null,V(j,z,K,ce,null);ys(j,K)}return null}function re(z,j,M,K){for(var ce=null,he=null,me=j,ke=j=0,Ze=null;me!==null&&ke<M.length;ke++){me.index>ke?(Ze=me,me=null):Ze=me.sibling;var je=W(z,me,M[ke],K);if(je===null){me===null&&(me=Ze);break}e&&me&&je.alternate===null&&t(z,me),j=d(je,j,ke),he===null?ce=je:he.sibling=je,he=je,me=Ze}if(ke===M.length)return r(z,me),Oe&&rr(z,ke),ce;if(me===null){for(;ke<M.length;ke++)me=G(z,M[ke],K),me!==null&&(j=d(me,j,ke),he===null?ce=me:he.sibling=me,he=me);return Oe&&rr(z,ke),ce}for(me=s(z,me);ke<M.length;ke++)Ze=q(me,z,ke,M[ke],K),Ze!==null&&(e&&Ze.alternate!==null&&me.delete(Ze.key===null?ke:Ze.key),j=d(Ze,j,ke),he===null?ce=Ze:he.sibling=Ze,he=Ze);return e&&me.forEach(function(Bn){return t(z,Bn)}),Oe&&rr(z,ke),ce}function ie(z,j,M,K){var ce=X(M);if(typeof ce!="function")throw Error(i(150));if(M=ce.call(M),M==null)throw Error(i(151));for(var he=ce=null,me=j,ke=j=0,Ze=null,je=M.next();me!==null&&!je.done;ke++,je=M.next()){me.index>ke?(Ze=me,me=null):Ze=me.sibling;var Bn=W(z,me,je.value,K);if(Bn===null){me===null&&(me=Ze);break}e&&me&&Bn.alternate===null&&t(z,me),j=d(Bn,j,ke),he===null?ce=Bn:he.sibling=Bn,he=Bn,me=Ze}if(je.done)return r(z,me),Oe&&rr(z,ke),ce;if(me===null){for(;!je.done;ke++,je=M.next())je=G(z,je.value,K),je!==null&&(j=d(je,j,ke),he===null?ce=je:he.sibling=je,he=je);return Oe&&rr(z,ke),ce}for(me=s(z,me);!je.done;ke++,je=M.next())je=q(me,z,ke,je.value,K),je!==null&&(e&&je.alternate!==null&&me.delete(je.key===null?ke:je.key),j=d(je,j,ke),he===null?ce=je:he.sibling=je,he=je);return e&&me.forEach(function(XE){return t(z,XE)}),Oe&&rr(z,ke),ce}function We(z,j,M,K){if(typeof M=="object"&&M!==null&&M.type===O&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case U:e:{for(var ce=M.key,he=j;he!==null;){if(he.key===ce){if(ce=M.type,ce===O){if(he.tag===7){r(z,he.sibling),j=c(he,M.props.children),j.return=z,z=j;break e}}else if(he.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Z&&Vm(ce)===he.type){r(z,he.sibling),j=c(he,M.props),j.ref=zo(z,he,M),j.return=z,z=j;break e}r(z,he);break}else t(z,he);he=he.sibling}M.type===O?(j=dr(M.props.children,z.mode,K,M.key),j.return=z,z=j):(K=Hs(M.type,M.key,M.props,null,z.mode,K),K.ref=zo(z,j,M),K.return=z,z=K)}return y(z);case $:e:{for(he=M.key;j!==null;){if(j.key===he)if(j.tag===4&&j.stateNode.containerInfo===M.containerInfo&&j.stateNode.implementation===M.implementation){r(z,j.sibling),j=c(j,M.children||[]),j.return=z,z=j;break e}else{r(z,j);break}else t(z,j);j=j.sibling}j=Qc(M,z.mode,K),j.return=z,z=j}return y(z);case Z:return he=M._init,We(z,j,he(M._payload),K)}if(lo(M))return re(z,j,M,K);if(X(M))return ie(z,j,M,K);ys(z,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,j!==null&&j.tag===6?(r(z,j.sibling),j=c(j,M),j.return=z,z=j):(r(z,j),j=Xc(M,z.mode,K),j.return=z,z=j),y(z)):r(z,j)}return We}var $r=Gm(!0),Km=Gm(!1),ws=An(null),xs=null,Ur=null,ic=null;function sc(){ic=Ur=xs=null}function ac(e){var t=ws.current;Le(ws),e._currentValue=t}function lc(e,t,r){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===r)break;e=e.return}}function Hr(e,t){xs=e,ic=Ur=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ft=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(ic!==e)if(e={context:e,memoizedValue:t,next:null},Ur===null){if(xs===null)throw Error(i(308));Ur=e,xs.dependencies={lanes:0,firstContext:e}}else Ur=Ur.next=e;return t}var or=null;function cc(e){or===null?or=[e]:or.push(e)}function Ym(e,t,r,s){var c=t.interleaved;return c===null?(r.next=r,cc(t)):(r.next=c.next,c.next=r),t.interleaved=r,ln(e,s)}function ln(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Mn=!1;function uc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xm(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 cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,r){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Te&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,ln(e,r)}return c=s.interleaved,c===null?(t.next=t,cc(s)):(t.next=c.next,c.next=t),s.interleaved=t,ln(e,r)}function bs(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Cl(e,r)}}function Qm(e,t){var r=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var c=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var y={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};d===null?c=d=y:d=d.next=y,r=r.next}while(r!==null);d===null?c=d=t:d=d.next=t}else c=d=t;r={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:s.shared,effects:s.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ks(e,t,r,s){var c=e.updateQueue;Mn=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,E=c.shared.pending;if(E!==null){c.shared.pending=null;var P=E,L=P.next;P.next=null,y===null?d=L:y.next=L,y=P;var V=e.alternate;V!==null&&(V=V.updateQueue,E=V.lastBaseUpdate,E!==y&&(E===null?V.firstBaseUpdate=L:E.next=L,V.lastBaseUpdate=P))}if(d!==null){var G=c.baseState;y=0,V=L=P=null,E=d;do{var W=E.lane,q=E.eventTime;if((s&W)===W){V!==null&&(V=V.next={eventTime:q,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var re=e,ie=E;switch(W=t,q=r,ie.tag){case 1:if(re=ie.payload,typeof re=="function"){G=re.call(q,G,W);break e}G=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=ie.payload,W=typeof re=="function"?re.call(q,G,W):re,W==null)break e;G=F({},G,W);break e;case 2:Mn=!0}}E.callback!==null&&E.lane!==0&&(e.flags|=64,W=c.effects,W===null?c.effects=[E]:W.push(E))}else q={eventTime:q,lane:W,tag:E.tag,payload:E.payload,callback:E.callback,next:null},V===null?(L=V=q,P=G):V=V.next=q,y|=W;if(E=E.next,E===null){if(E=c.shared.pending,E===null)break;W=E,E=W.next,W.next=null,c.lastBaseUpdate=W,c.shared.pending=null}}while(!0);if(V===null&&(P=G),c.baseState=P,c.firstBaseUpdate=L,c.lastBaseUpdate=V,t=c.shared.interleaved,t!==null){c=t;do y|=c.lane,c=c.next;while(c!==t)}else d===null&&(c.shared.lanes=0);ar|=y,e.lanes=y,e.memoizedState=G}}function qm(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],c=s.callback;if(c!==null){if(s.callback=null,s=r,typeof c!="function")throw Error(i(191,c));c.call(s)}}}var Mo={},Yt=An(Mo),Lo=An(Mo),Oo=An(Mo);function ir(e){if(e===Mo)throw Error(i(174));return e}function dc(e,t){switch(ze(Oo,t),ze(Lo,e),ze(Yt,Mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fl(t,e)}Le(Yt),ze(Yt,t)}function Br(){Le(Yt),Le(Lo),Le(Oo)}function Zm(e){ir(Oo.current);var t=ir(Yt.current),r=fl(t,e.type);t!==r&&(ze(Lo,e),ze(Yt,r))}function fc(e){Lo.current===e&&(Le(Yt),Le(Lo))}var De=An(0);function Ss(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==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 pc=[];function hc(){for(var e=0;e<pc.length;e++)pc[e]._workInProgressVersionPrimary=null;pc.length=0}var Cs=I.ReactCurrentDispatcher,mc=I.ReactCurrentBatchConfig,sr=0,Fe=null,Ye=null,Qe=null,Es=!1,Do=!1,Fo=0,vE=0;function rt(){throw Error(i(321))}function gc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!zt(e[r],t[r]))return!1;return!0}function vc(e,t,r,s,c,d){if(sr=d,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cs.current=e===null||e.memoizedState===null?bE:kE,e=r(s,c),Do){d=0;do{if(Do=!1,Fo=0,25<=d)throw Error(i(301));d+=1,Qe=Ye=null,t.updateQueue=null,Cs.current=SE,e=r(s,c)}while(Do)}if(Cs.current=Rs,t=Ye!==null&&Ye.next!==null,sr=0,Qe=Ye=Fe=null,Es=!1,t)throw Error(i(300));return e}function yc(){var e=Fo!==0;return Fo=0,e}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Fe.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function _t(){if(Ye===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=Qe===null?Fe.memoizedState:Qe.next;if(t!==null)Qe=t,Ye=e;else{if(e===null)throw Error(i(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},Qe===null?Fe.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function $o(e,t){return typeof t=="function"?t(e):t}function wc(e){var t=_t(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var s=Ye,c=s.baseQueue,d=r.pending;if(d!==null){if(c!==null){var y=c.next;c.next=d.next,d.next=y}s.baseQueue=c=d,r.pending=null}if(c!==null){d=c.next,s=s.baseState;var E=y=null,P=null,L=d;do{var V=L.lane;if((sr&V)===V)P!==null&&(P=P.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),s=L.hasEagerState?L.eagerState:e(s,L.action);else{var G={lane:V,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};P===null?(E=P=G,y=s):P=P.next=G,Fe.lanes|=V,ar|=V}L=L.next}while(L!==null&&L!==d);P===null?y=s:P.next=E,zt(s,t.memoizedState)||(ft=!0),t.memoizedState=s,t.baseState=y,t.baseQueue=P,r.lastRenderedState=s}if(e=r.interleaved,e!==null){c=e;do d=c.lane,Fe.lanes|=d,ar|=d,c=c.next;while(c!==e)}else c===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function xc(e){var t=_t(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var s=r.dispatch,c=r.pending,d=t.memoizedState;if(c!==null){r.pending=null;var y=c=c.next;do d=e(d,y.action),y=y.next;while(y!==c);zt(d,t.memoizedState)||(ft=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,s]}function Jm(){}function eg(e,t){var r=Fe,s=_t(),c=t(),d=!zt(s.memoizedState,c);if(d&&(s.memoizedState=c,ft=!0),s=s.queue,bc(rg.bind(null,r,s,e),[e]),s.getSnapshot!==t||d||Qe!==null&&Qe.memoizedState.tag&1){if(r.flags|=2048,Uo(9,ng.bind(null,r,s,c,t),void 0,null),qe===null)throw Error(i(349));(sr&30)!==0||tg(r,t,c)}return c}function tg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function ng(e,t,r,s){t.value=r,t.getSnapshot=s,og(t)&&ig(e)}function rg(e,t,r){return r(function(){og(t)&&ig(e)})}function og(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!zt(e,r)}catch{return!0}}function ig(e){var t=ln(e,1);t!==null&&Ft(t,e,1,-1)}function sg(e){var t=Xt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e},t.queue=e,e=e.dispatch=xE.bind(null,Fe,e),[t.memoizedState,e]}function Uo(e,t,r,s){return e={tag:e,create:t,destroy:r,deps:s,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(s=r.next,r.next=e,e.next=s,t.lastEffect=e)),e}function ag(){return _t().memoizedState}function _s(e,t,r,s){var c=Xt();Fe.flags|=e,c.memoizedState=Uo(1|t,r,void 0,s===void 0?null:s)}function Ns(e,t,r,s){var c=_t();s=s===void 0?null:s;var d=void 0;if(Ye!==null){var y=Ye.memoizedState;if(d=y.destroy,s!==null&&gc(s,y.deps)){c.memoizedState=Uo(t,r,d,s);return}}Fe.flags|=e,c.memoizedState=Uo(1|t,r,d,s)}function lg(e,t){return _s(8390656,8,e,t)}function bc(e,t){return Ns(2048,8,e,t)}function cg(e,t){return Ns(4,2,e,t)}function ug(e,t){return Ns(4,4,e,t)}function dg(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 fg(e,t,r){return r=r!=null?r.concat([e]):null,Ns(4,4,dg.bind(null,t,e),r)}function kc(){}function pg(e,t){var r=_t();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&gc(t,s[1])?s[0]:(r.memoizedState=[e,t],e)}function hg(e,t){var r=_t();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&gc(t,s[1])?s[0]:(e=e(),r.memoizedState=[e,t],e)}function mg(e,t,r){return(sr&21)===0?(e.baseState&&(e.baseState=!1,ft=!0),e.memoizedState=r):(zt(r,t)||(r=Vh(),Fe.lanes|=r,ar|=r,e.baseState=!0),t)}function yE(e,t){var r=Ie;Ie=r!==0&&4>r?r:4,e(!0);var s=mc.transition;mc.transition={};try{e(!1),t()}finally{Ie=r,mc.transition=s}}function gg(){return _t().memoizedState}function wE(e,t,r){var s=$n(e);if(r={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null},vg(e))yg(t,r);else if(r=Ym(e,t,r,s),r!==null){var c=at();Ft(r,e,s,c),wg(r,t,s)}}function xE(e,t,r){var s=$n(e),c={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null};if(vg(e))yg(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,E=d(y,r);if(c.hasEagerState=!0,c.eagerState=E,zt(E,y)){var P=t.interleaved;P===null?(c.next=c,cc(t)):(c.next=P.next,P.next=c),t.interleaved=c;return}}catch{}finally{}r=Ym(e,t,c,s),r!==null&&(c=at(),Ft(r,e,s,c),wg(r,t,s))}}function vg(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function yg(e,t){Do=Es=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function wg(e,t,r){if((r&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Cl(e,r)}}var Rs={readContext:Et,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},bE={readContext:Et,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:lg,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,_s(4194308,4,dg.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){return _s(4,2,e,t)},useMemo:function(e,t){var r=Xt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var s=Xt();return t=r!==void 0?r(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=wE.bind(null,Fe,e),[s.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:sg,useDebugValue:kc,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=sg(!1),t=e[0];return e=yE.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var s=Fe,c=Xt();if(Oe){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),qe===null)throw Error(i(349));(sr&30)!==0||tg(s,t,r)}c.memoizedState=r;var d={value:r,getSnapshot:t};return c.queue=d,lg(rg.bind(null,s,d,e),[e]),s.flags|=2048,Uo(9,ng.bind(null,s,d,r,t),void 0,null),r},useId:function(){var e=Xt(),t=qe.identifierPrefix;if(Oe){var r=an,s=sn;r=(s&~(1<<32-It(s)-1)).toString(32)+r,t=":"+t+"R"+r,r=Fo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=vE++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kE={readContext:Et,useCallback:pg,useContext:Et,useEffect:bc,useImperativeHandle:fg,useInsertionEffect:cg,useLayoutEffect:ug,useMemo:hg,useReducer:wc,useRef:ag,useState:function(){return wc($o)},useDebugValue:kc,useDeferredValue:function(e){var t=_t();return mg(t,Ye.memoizedState,e)},useTransition:function(){var e=wc($o)[0],t=_t().memoizedState;return[e,t]},useMutableSource:Jm,useSyncExternalStore:eg,useId:gg,unstable_isNewReconciler:!1},SE={readContext:Et,useCallback:pg,useContext:Et,useEffect:bc,useImperativeHandle:fg,useInsertionEffect:cg,useLayoutEffect:ug,useMemo:hg,useReducer:xc,useRef:ag,useState:function(){return xc($o)},useDebugValue:kc,useDeferredValue:function(e){var t=_t();return Ye===null?t.memoizedState=e:mg(t,Ye.memoizedState,e)},useTransition:function(){var e=xc($o)[0],t=_t().memoizedState;return[e,t]},useMutableSource:Jm,useSyncExternalStore:eg,useId:gg,unstable_isNewReconciler:!1};function Lt(e,t){if(e&&e.defaultProps){t=F({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Sc(e,t,r,s){t=e.memoizedState,r=r(s,t),r=r==null?t:F({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ps={isMounted:function(e){return(e=e._reactInternals)?Jn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var s=at(),c=$n(e),d=cn(s,c);d.payload=t,r!=null&&(d.callback=r),t=Ln(e,d,c),t!==null&&(Ft(t,e,c,s),bs(t,e,c))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var s=at(),c=$n(e),d=cn(s,c);d.tag=1,d.payload=t,r!=null&&(d.callback=r),t=Ln(e,d,c),t!==null&&(Ft(t,e,c,s),bs(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=at(),s=$n(e),c=cn(r,s);c.tag=2,t!=null&&(c.callback=t),t=Ln(e,c,s),t!==null&&(Ft(t,e,s,r),bs(t,e,s))}};function xg(e,t,r,s,c,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,y):t.prototype&&t.prototype.isPureReactComponent?!No(r,s)||!No(c,d):!0}function bg(e,t,r){var s=!1,c=In,d=t.contextType;return typeof d=="object"&&d!==null?d=Et(d):(c=dt(t)?tr:nt.current,s=t.contextTypes,d=(s=s!=null)?Lr(e,c):In),t=new t(r,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ps,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=d),t}function kg(e,t,r,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,s),t.state!==e&&Ps.enqueueReplaceState(t,t.state,null)}function Cc(e,t,r,s){var c=e.stateNode;c.props=r,c.state=e.memoizedState,c.refs={},uc(e);var d=t.contextType;typeof d=="object"&&d!==null?c.context=Et(d):(d=dt(t)?tr:nt.current,c.context=Lr(e,d)),c.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(Sc(e,t,d,r),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&&Ps.enqueueReplaceState(c,c.state,null),ks(e,r,c,s),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function Wr(e,t){try{var r="",s=t;do r+=fe(s),s=s.return;while(s);var c=r}catch(d){c=`
|
|
39
39
|
Error generating stack: `+d.message+`
|
|
40
|
-
`+d.stack}return{value:e,source:t,stack:c,digest:null}}function Cc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Ec(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var SE=typeof WeakMap=="function"?WeakMap:Map;function Sg(e,t,r){r=cn(-1,r),r.tag=3,r.payload={element:null};var s=t.value;return r.callback=function(){Ls||(Ls=!0,$c=s),Ec(e,t)},r}function Cg(e,t,r){r=cn(-1,r),r.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var c=t.value;r.payload=function(){return s(c)},r.callback=function(){Ec(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(r.callback=function(){Ec(e,t),typeof s!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var y=t.stack;this.componentDidCatch(t.value,{componentStack:y!==null?y:""})}),r}function Eg(e,t,r){var s=e.pingCache;if(s===null){s=e.pingCache=new SE;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(r)||(c.add(r),e=OE.bind(null,e,t,r),t.then(e,e))}function _g(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 Ng(e,t,r,s,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=cn(-1,1),t.tag=2,Ln(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var CE=I.ReactCurrentOwner,ft=!1;function st(e,t,r,s){t.child=e===null?Km(t,null,r,s):$r(t,e.child,r,s)}function Rg(e,t,r,s,c){r=r.render;var d=t.ref;return Hr(t,c),s=gc(e,t,r,s,d,c),r=vc(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,un(e,t,c)):(Oe&&r&&Ja(t),t.flags|=1,st(e,t,s,c),t.child)}function Pg(e,t,r,s,c){if(e===null){var d=r.type;return typeof d=="function"&&!Kc(d)&&d.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=d,Tg(e,t,d,s,c)):(e=Hs(r.type,null,s,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&c)===0){var y=d.memoizedProps;if(r=r.compare,r=r!==null?r:No,r(y,s)&&e.ref===t.ref)return un(e,t,c)}return t.flags|=1,e=Hn(d,s),e.ref=t.ref,e.return=t,t.child=e}function Tg(e,t,r,s,c){if(e!==null){var d=e.memoizedProps;if(No(d,s)&&e.ref===t.ref)if(ft=!1,t.pendingProps=s=d,(e.lanes&c)!==0)(e.flags&131072)!==0&&(ft=!0);else return t.lanes=e.lanes,un(e,t,c)}return _c(e,t,r,s,c)}function jg(e,t,r){var s=t.pendingProps,c=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Me(Gr,bt),bt|=r;else{if((r&1073741824)===0)return e=d!==null?d.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Me(Gr,bt),bt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=d!==null?d.baseLanes:r,Me(Gr,bt),bt|=s}else d!==null?(s=d.baseLanes|r,t.memoizedState=null):s=r,Me(Gr,bt),bt|=s;return st(e,t,c,r),t.child}function Ag(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function _c(e,t,r,s,c){var d=dt(r)?tr:nt.current;return d=Lr(t,d),Hr(t,c),r=gc(e,t,r,s,d,c),s=vc(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,un(e,t,c)):(Oe&&s&&Ja(t),t.flags|=1,st(e,t,r,c),t.child)}function Ig(e,t,r,s,c){if(dt(r)){var d=!0;ps(t)}else d=!1;if(Hr(t,c),t.stateNode===null)js(e,t),bg(t,r,s),Sc(t,r,s,c),s=!0;else if(e===null){var y=t.stateNode,E=t.memoizedProps;y.props=E;var P=y.context,L=r.contextType;typeof L=="object"&&L!==null?L=Et(L):(L=dt(r)?tr:nt.current,L=Lr(t,L));var V=r.getDerivedStateFromProps,G=typeof V=="function"||typeof y.getSnapshotBeforeUpdate=="function";G||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(E!==s||P!==L)&&kg(t,y,s,L),zn=!1;var W=t.memoizedState;y.state=W,ks(t,s,y,c),P=t.memoizedState,E!==s||W!==P||ut.current||zn?(typeof V=="function"&&(kc(t,r,V,s),P=t.memoizedState),(E=zn||xg(t,r,E,s,W,P,L))?(G||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(t.flags|=4194308)):(typeof y.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=P),y.props=s,y.state=P,y.context=L,s=E):(typeof y.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{y=t.stateNode,Xm(e,t),E=t.memoizedProps,L=t.type===t.elementType?E:Lt(t.type,E),y.props=L,G=t.pendingProps,W=y.context,P=r.contextType,typeof P=="object"&&P!==null?P=Et(P):(P=dt(r)?tr:nt.current,P=Lr(t,P));var q=r.getDerivedStateFromProps;(V=typeof q=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(E!==G||W!==P)&&kg(t,y,s,P),zn=!1,W=t.memoizedState,y.state=W,ks(t,s,y,c);var re=t.memoizedState;E!==G||W!==re||ut.current||zn?(typeof q=="function"&&(kc(t,r,q,s),re=t.memoizedState),(L=zn||xg(t,r,L,s,W,re,P)||!1)?(V||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(s,re,P),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(s,re,P)),typeof y.componentDidUpdate=="function"&&(t.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof y.componentDidUpdate!="function"||E===e.memoizedProps&&W===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&W===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=re),y.props=s,y.state=re,y.context=P,s=L):(typeof y.componentDidUpdate!="function"||E===e.memoizedProps&&W===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&W===e.memoizedState||(t.flags|=1024),s=!1)}return Nc(e,t,r,s,d,c)}function Nc(e,t,r,s,c,d){Ag(e,t);var y=(t.flags&128)!==0;if(!s&&!y)return c&&Dm(t,r,!1),un(e,t,d);s=t.stateNode,CE.current=t;var E=y&&typeof r.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&y?(t.child=$r(t,e.child,null,d),t.child=$r(t,null,E,d)):st(e,t,E,d),t.memoizedState=s.state,c&&Dm(t,r,!0),t.child}function Mg(e){var t=e.stateNode;t.pendingContext?Lm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lm(e,t.context,!1),uc(e,t.containerInfo)}function zg(e,t,r,s,c){return Fr(),rc(c),t.flags|=256,st(e,t,r,s),t.child}var Rc={dehydrated:null,treeContext:null,retryLane:0};function Pc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lg(e,t,r){var s=t.pendingProps,c=De.current,d=!1,y=(t.flags&128)!==0,E;if((E=y)||(E=e!==null&&e.memoizedState===null?!1:(c&2)!==0),E?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Me(De,c&1),e===null)return nc(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):(y=s.children,e=s.fallback,d?(s=t.mode,d=t.child,y={mode:"hidden",children:y},(s&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=y):d=Bs(y,s,0,null),e=dr(e,s,r,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Pc(r),t.memoizedState=Rc,e):Tc(t,y));if(c=e.memoizedState,c!==null&&(E=c.dehydrated,E!==null))return EE(e,t,y,s,E,c,r);if(d){d=s.fallback,y=t.mode,c=e.child,E=c.sibling;var P={mode:"hidden",children:s.children};return(y&1)===0&&t.child!==c?(s=t.child,s.childLanes=0,s.pendingProps=P,t.deletions=null):(s=Hn(c,P),s.subtreeFlags=c.subtreeFlags&14680064),E!==null?d=Hn(E,d):(d=dr(d,y,r,null),d.flags|=2),d.return=t,s.return=t,s.sibling=d,t.child=s,s=d,d=t.child,y=e.child.memoizedState,y=y===null?Pc(r):{baseLanes:y.baseLanes|r,cachePool:null,transitions:y.transitions},d.memoizedState=y,d.childLanes=e.childLanes&~r,t.memoizedState=Rc,s}return d=e.child,e=d.sibling,s=Hn(d,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=r),s.return=t,s.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=s,t.memoizedState=null,s}function Tc(e,t){return t=Bs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ts(e,t,r,s){return s!==null&&rc(s),$r(t,e.child,null,r),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function EE(e,t,r,s,c,d,y){if(r)return t.flags&256?(t.flags&=-257,s=Cc(Error(i(422))),Ts(e,t,y,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=s.fallback,c=t.mode,s=Bs({mode:"visible",children:s.children},c,0,null),d=dr(d,c,y,null),d.flags|=2,s.return=t,d.return=t,s.sibling=d,t.child=s,(t.mode&1)!==0&&$r(t,e.child,null,y),t.child.memoizedState=Pc(y),t.memoizedState=Rc,d);if((t.mode&1)===0)return Ts(e,t,y,null);if(c.data==="$!"){if(s=c.nextSibling&&c.nextSibling.dataset,s)var E=s.dgst;return s=E,d=Error(i(419)),s=Cc(d,s,void 0),Ts(e,t,y,s)}if(E=(y&e.childLanes)!==0,ft||E){if(s=qe,s!==null){switch(y&-y){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&(s.suspendedLanes|y))!==0?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,an(e,c),Ft(s,e,c,-1))}return Gc(),s=Cc(Error(i(421))),Ts(e,t,y,s)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=DE.bind(null,e),c._reactRetry=t,null):(e=d.treeContext,xt=jn(c.nextSibling),wt=t,Oe=!0,zt=null,e!==null&&(St[Ct++]=sn,St[Ct++]=ln,St[Ct++]=nr,sn=e.id,ln=e.overflow,nr=t),t=Tc(t,s.children),t.flags|=4096,t)}function Og(e,t,r){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),lc(e.return,t,r)}function jc(e,t,r,s,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=r,d.tailMode=c)}function Dg(e,t,r){var s=t.pendingProps,c=s.revealOrder,d=s.tail;if(st(e,t,s.children,r),s=De.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Og(e,r,t);else if(e.tag===19)Og(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Me(De,s),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(r=t.child,c=null;r!==null;)e=r.alternate,e!==null&&Ss(e)===null&&(c=r),r=r.sibling;r=c,r===null?(c=t.child,t.child=null):(c=r.sibling,r.sibling=null),jc(t,!1,c,r,d);break;case"backwards":for(r=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Ss(e)===null){t.child=c;break}e=c.sibling,c.sibling=r,r=c,c=e}jc(t,!0,r,null,d);break;case"together":jc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function js(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function un(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),lr|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,r=Hn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Hn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function _E(e,t,r){switch(t.tag){case 3:Mg(t),Fr();break;case 5:Zm(t);break;case 1:dt(t.type)&&ps(t);break;case 4:uc(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,c=t.memoizedProps.value;Me(ws,s._currentValue),s._currentValue=c;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Me(De,De.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Lg(e,t,r):(Me(De,De.current&1),e=un(e,t,r),e!==null?e.sibling:null);Me(De,De.current&1);break;case 19:if(s=(r&t.childLanes)!==0,(e.flags&128)!==0){if(s)return Dg(e,t,r);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Me(De,De.current),s)break;return null;case 22:case 23:return t.lanes=0,jg(e,t,r)}return un(e,t,r)}var Fg,Ac,$g,Ug;Fg=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ac=function(){},$g=function(e,t,r,s){var c=e.memoizedProps;if(c!==s){e=t.stateNode,ir(Yt.current);var d=null;switch(r){case"input":c=Ke(e,c),s=Ke(e,s),d=[];break;case"select":c=F({},c,{value:void 0}),s=F({},s,{value:void 0}),d=[];break;case"textarea":c=ua(e,c),s=ua(e,s),d=[];break;default:typeof c.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=us)}fa(r,s);var y;r=null;for(L in c)if(!s.hasOwnProperty(L)&&c.hasOwnProperty(L)&&c[L]!=null)if(L==="style"){var E=c[L];for(y in E)E.hasOwnProperty(y)&&(r||(r={}),r[y]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(a.hasOwnProperty(L)?d||(d=[]):(d=d||[]).push(L,null));for(L in s){var P=s[L];if(E=c!=null?c[L]:void 0,s.hasOwnProperty(L)&&P!==E&&(P!=null||E!=null))if(L==="style")if(E){for(y in E)!E.hasOwnProperty(y)||P&&P.hasOwnProperty(y)||(r||(r={}),r[y]="");for(y in P)P.hasOwnProperty(y)&&E[y]!==P[y]&&(r||(r={}),r[y]=P[y])}else r||(d||(d=[]),d.push(L,r)),r=P;else L==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,E=E?E.__html:void 0,P!=null&&E!==P&&(d=d||[]).push(L,P)):L==="children"?typeof P!="string"&&typeof P!="number"||(d=d||[]).push(L,""+P):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(a.hasOwnProperty(L)?(P!=null&&L==="onScroll"&&ze("scroll",e),d||E===P||(d=[])):(d=d||[]).push(L,P))}r&&(d=d||[]).push("style",r);var L=d;(t.updateQueue=L)&&(t.flags|=4)}},Ug=function(e,t,r,s){r!==s&&(t.flags|=4)};function Ho(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,s=0;if(t)for(var c=e.child;c!==null;)r|=c.lanes|c.childLanes,s|=c.subtreeFlags&14680064,s|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)r|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=r,t}function NE(e,t,r){var s=t.pendingProps;switch(ec(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return dt(t.type)&&fs(),ot(t),null;case 3:return s=t.stateNode,Br(),Le(ut),Le(nt),pc(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(vs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zt!==null&&(Bc(zt),zt=null))),Ac(e,t),ot(t),null;case 5:dc(t);var c=ir(Oo.current);if(r=t.type,e!==null&&t.stateNode!=null)$g(e,t,r,s,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return ot(t),null}if(e=ir(Yt.current),vs(t)){s=t.stateNode,r=t.type;var d=t.memoizedProps;switch(s[Kt]=t,s[Ao]=d,e=(t.mode&1)!==0,r){case"dialog":ze("cancel",s),ze("close",s);break;case"iframe":case"object":case"embed":ze("load",s);break;case"video":case"audio":for(c=0;c<Po.length;c++)ze(Po[c],s);break;case"source":ze("error",s);break;case"img":case"image":case"link":ze("error",s),ze("load",s);break;case"details":ze("toggle",s);break;case"input":kn(s,d),ze("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!d.multiple},ze("invalid",s);break;case"textarea":Ch(s,d),ze("invalid",s)}fa(r,d),c=null;for(var y in d)if(d.hasOwnProperty(y)){var E=d[y];y==="children"?typeof E=="string"?s.textContent!==E&&(d.suppressHydrationWarning!==!0&&cs(s.textContent,E,e),c=["children",E]):typeof E=="number"&&s.textContent!==""+E&&(d.suppressHydrationWarning!==!0&&cs(s.textContent,E,e),c=["children",""+E]):a.hasOwnProperty(y)&&E!=null&&y==="onScroll"&&ze("scroll",s)}switch(r){case"input":Ne(s),Ui(s,d,!0);break;case"textarea":Ne(s),_h(s);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(s.onclick=us)}s=c,t.updateQueue=s,s!==null&&(t.flags|=4)}else{y=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Nh(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=y.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=y.createElement(r,{is:s.is}):(e=y.createElement(r),r==="select"&&(y=e,s.multiple?y.multiple=!0:s.size&&(y.size=s.size))):e=y.createElementNS(e,r),e[Kt]=t,e[Ao]=s,Fg(e,t,!1,!1),t.stateNode=e;e:{switch(y=pa(r,s),r){case"dialog":ze("cancel",e),ze("close",e),c=s;break;case"iframe":case"object":case"embed":ze("load",e),c=s;break;case"video":case"audio":for(c=0;c<Po.length;c++)ze(Po[c],e);c=s;break;case"source":ze("error",e),c=s;break;case"img":case"image":case"link":ze("error",e),ze("load",e),c=s;break;case"details":ze("toggle",e),c=s;break;case"input":kn(e,s),c=Ke(e,s),ze("invalid",e);break;case"option":c=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},c=F({},s,{value:void 0}),ze("invalid",e);break;case"textarea":Ch(e,s),c=ua(e,s),ze("invalid",e);break;default:c=s}fa(r,c),E=c;for(d in E)if(E.hasOwnProperty(d)){var P=E[d];d==="style"?Th(e,P):d==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&Rh(e,P)):d==="children"?typeof P=="string"?(r!=="textarea"||P!=="")&&co(e,P):typeof P=="number"&&co(e,""+P):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(a.hasOwnProperty(d)?P!=null&&d==="onScroll"&&ze("scroll",e):P!=null&&T(e,d,P,y))}switch(r){case"input":Ne(e),Ui(e,s,!1);break;case"textarea":Ne(e),_h(e);break;case"option":s.value!=null&&e.setAttribute("value",""+ue(s.value));break;case"select":e.multiple=!!s.multiple,d=s.value,d!=null?Cr(e,!!s.multiple,d,!1):s.defaultValue!=null&&Cr(e,!!s.multiple,s.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=us)}switch(r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ot(t),null;case 6:if(e&&t.stateNode!=null)Ug(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(r=ir(Oo.current),ir(Yt.current),vs(t)){if(s=t.stateNode,r=t.memoizedProps,s[Kt]=t,(d=s.nodeValue!==r)&&(e=wt,e!==null))switch(e.tag){case 3:cs(s.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&cs(s.nodeValue,r,(e.mode&1)!==0)}d&&(t.flags|=4)}else s=(r.nodeType===9?r:r.ownerDocument).createTextNode(s),s[Kt]=t,t.stateNode=s}return ot(t),null;case 13:if(Le(De),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Oe&&xt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Wm(),Fr(),t.flags|=98560,d=!1;else if(d=vs(t),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[Kt]=t}else Fr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),d=!1}else zt!==null&&(Bc(zt),zt=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(De.current&1)!==0?Xe===0&&(Xe=3):Gc())),t.updateQueue!==null&&(t.flags|=4),ot(t),null);case 4:return Br(),Ac(e,t),e===null&&To(t.stateNode.containerInfo),ot(t),null;case 10:return sc(t.type._context),ot(t),null;case 17:return dt(t.type)&&fs(),ot(t),null;case 19:if(Le(De),d=t.memoizedState,d===null)return ot(t),null;if(s=(t.flags&128)!==0,y=d.rendering,y===null)if(s)Ho(d,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(y=Ss(e),y!==null){for(t.flags|=128,Ho(d,!1),s=y.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=r,r=t.child;r!==null;)d=r,e=s,d.flags&=14680066,y=d.alternate,y===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=y.childLanes,d.lanes=y.lanes,d.child=y.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=y.memoizedProps,d.memoizedState=y.memoizedState,d.updateQueue=y.updateQueue,d.type=y.type,e=y.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Me(De,De.current&1|2),t.child}e=e.sibling}d.tail!==null&&Be()>Kr&&(t.flags|=128,s=!0,Ho(d,!1),t.lanes=4194304)}else{if(!s)if(e=Ss(y),e!==null){if(t.flags|=128,s=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ho(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!Oe)return ot(t),null}else 2*Be()-d.renderingStartTime>Kr&&r!==1073741824&&(t.flags|=128,s=!0,Ho(d,!1),t.lanes=4194304);d.isBackwards?(y.sibling=t.child,t.child=y):(r=d.last,r!==null?r.sibling=y:t.child=y,d.last=y)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Be(),t.sibling=null,r=De.current,Me(De,s?r&1|2:r&1),t):(ot(t),null);case 22:case 23:return Vc(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(bt&1073741824)!==0&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function RE(e,t){switch(ec(t),t.tag){case 1:return dt(t.type)&&fs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Br(),Le(ut),Le(nt),pc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return dc(t),null;case 13:if(Le(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(De),null;case 4:return Br(),null;case 10:return sc(t.type._context),null;case 22:case 23:return Vc(),null;case 24:return null;default:return null}}var As=!1,it=!1,PE=typeof WeakSet=="function"?WeakSet:Set,J=null;function Vr(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(s){Ue(e,t,s)}else r.current=null}function Ic(e,t,r){try{r()}catch(s){Ue(e,t,s)}}var Hg=!1;function TE(e,t){if(Va=Zi,e=xm(),Oa(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var c=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var y=0,E=-1,P=-1,L=0,V=0,G=e,W=null;t:for(;;){for(var q;G!==r||c!==0&&G.nodeType!==3||(E=y+c),G!==d||s!==0&&G.nodeType!==3||(P=y+s),G.nodeType===3&&(y+=G.nodeValue.length),(q=G.firstChild)!==null;)W=G,G=q;for(;;){if(G===e)break t;if(W===r&&++L===c&&(E=y),W===d&&++V===s&&(P=y),(q=G.nextSibling)!==null)break;G=W,W=G.parentNode}G=q}r=E===-1||P===-1?null:{start:E,end:P}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ga={focusedElem:e,selectionRange:r},Zi=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var re=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(re!==null){var ie=re.memoizedProps,We=re.memoizedState,M=t.stateNode,j=M.getSnapshotBeforeUpdate(t.elementType===t.type?ie:Lt(t.type,ie),We);M.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var z=t.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(K){Ue(t,t.return,K)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return re=Hg,Hg=!1,re}function Bo(e,t,r){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var c=s=s.next;do{if((c.tag&e)===e){var d=c.destroy;c.destroy=void 0,d!==void 0&&Ic(t,r,d)}c=c.next}while(c!==s)}}function Is(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var s=r.create;r.destroy=s()}r=r.next}while(r!==t)}}function Mc(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Bg(e){var t=e.alternate;t!==null&&(e.alternate=null,Bg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kt],delete t[Ao],delete t[Qa],delete t[fE],delete t[pE])),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 Wg(e){return e.tag===5||e.tag===3||e.tag===4}function Vg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wg(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 zc(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=us));else if(s!==4&&(e=e.child,e!==null))for(zc(e,t,r),e=e.sibling;e!==null;)zc(e,t,r),e=e.sibling}function Lc(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Lc(e,t,r),e=e.sibling;e!==null;)Lc(e,t,r),e=e.sibling}var Je=null,Ot=!1;function On(e,t,r){for(r=r.child;r!==null;)Gg(e,t,r),r=r.sibling}function Gg(e,t,r){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Gi,r)}catch{}switch(r.tag){case 5:it||Vr(r,t);case 6:var s=Je,c=Ot;Je=null,On(e,t,r),Je=s,Ot=c,Je!==null&&(Ot?(e=Je,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Je.removeChild(r.stateNode));break;case 18:Je!==null&&(Ot?(e=Je,r=r.stateNode,e.nodeType===8?Xa(e.parentNode,r):e.nodeType===1&&Xa(e,r),bo(e)):Xa(Je,r.stateNode));break;case 4:s=Je,c=Ot,Je=r.stateNode.containerInfo,Ot=!0,On(e,t,r),Je=s,Ot=c;break;case 0:case 11:case 14:case 15:if(!it&&(s=r.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){c=s=s.next;do{var d=c,y=d.destroy;d=d.tag,y!==void 0&&((d&2)!==0||(d&4)!==0)&&Ic(r,t,y),c=c.next}while(c!==s)}On(e,t,r);break;case 1:if(!it&&(Vr(r,t),s=r.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=r.memoizedProps,s.state=r.memoizedState,s.componentWillUnmount()}catch(E){Ue(r,t,E)}On(e,t,r);break;case 21:On(e,t,r);break;case 22:r.mode&1?(it=(s=it)||r.memoizedState!==null,On(e,t,r),it=s):On(e,t,r);break;default:On(e,t,r)}}function Kg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new PE),t.forEach(function(s){var c=FE.bind(null,e,s);r.has(s)||(r.add(s),s.then(c,c))})}}function Dt(e,t){var r=t.deletions;if(r!==null)for(var s=0;s<r.length;s++){var c=r[s];try{var d=e,y=t,E=y;e:for(;E!==null;){switch(E.tag){case 5:Je=E.stateNode,Ot=!1;break e;case 3:Je=E.stateNode.containerInfo,Ot=!0;break e;case 4:Je=E.stateNode.containerInfo,Ot=!0;break e}E=E.return}if(Je===null)throw Error(i(160));Gg(d,y,c),Je=null,Ot=!1;var P=c.alternate;P!==null&&(P.return=null),c.return=null}catch(L){Ue(c,t,L)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Yg(t,e),t=t.sibling}function Yg(e,t){var r=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),Qt(e),s&4){try{Bo(3,e,e.return),Is(3,e)}catch(ie){Ue(e,e.return,ie)}try{Bo(5,e,e.return)}catch(ie){Ue(e,e.return,ie)}}break;case 1:Dt(t,e),Qt(e),s&512&&r!==null&&Vr(r,r.return);break;case 5:if(Dt(t,e),Qt(e),s&512&&r!==null&&Vr(r,r.return),e.flags&32){var c=e.stateNode;try{co(c,"")}catch(ie){Ue(e,e.return,ie)}}if(s&4&&(c=e.stateNode,c!=null)){var d=e.memoizedProps,y=r!==null?r.memoizedProps:d,E=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{E==="input"&&d.type==="radio"&&d.name!=null&&Sn(c,d),pa(E,y);var L=pa(E,d);for(y=0;y<P.length;y+=2){var V=P[y],G=P[y+1];V==="style"?Th(c,G):V==="dangerouslySetInnerHTML"?Rh(c,G):V==="children"?co(c,G):T(c,V,G,L)}switch(E){case"input":nn(c,d);break;case"textarea":Eh(c,d);break;case"select":var W=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var q=d.value;q!=null?Cr(c,!!d.multiple,q,!1):W!==!!d.multiple&&(d.defaultValue!=null?Cr(c,!!d.multiple,d.defaultValue,!0):Cr(c,!!d.multiple,d.multiple?[]:"",!1))}c[Ao]=d}catch(ie){Ue(e,e.return,ie)}}break;case 6:if(Dt(t,e),Qt(e),s&4){if(e.stateNode===null)throw Error(i(162));c=e.stateNode,d=e.memoizedProps;try{c.nodeValue=d}catch(ie){Ue(e,e.return,ie)}}break;case 3:if(Dt(t,e),Qt(e),s&4&&r!==null&&r.memoizedState.isDehydrated)try{bo(t.containerInfo)}catch(ie){Ue(e,e.return,ie)}break;case 4:Dt(t,e),Qt(e);break;case 13:Dt(t,e),Qt(e),c=e.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(Fc=Be())),s&4&&Kg(e);break;case 22:if(V=r!==null&&r.memoizedState!==null,e.mode&1?(it=(L=it)||V,Dt(t,e),it=L):Dt(t,e),Qt(e),s&8192){if(L=e.memoizedState!==null,(e.stateNode.isHidden=L)&&!V&&(e.mode&1)!==0)for(J=e,V=e.child;V!==null;){for(G=J=V;J!==null;){switch(W=J,q=W.child,W.tag){case 0:case 11:case 14:case 15:Bo(4,W,W.return);break;case 1:Vr(W,W.return);var re=W.stateNode;if(typeof re.componentWillUnmount=="function"){s=W,r=W.return;try{t=s,re.props=t.memoizedProps,re.state=t.memoizedState,re.componentWillUnmount()}catch(ie){Ue(s,r,ie)}}break;case 5:Vr(W,W.return);break;case 22:if(W.memoizedState!==null){qg(G);continue}}q!==null?(q.return=W,J=q):qg(G)}V=V.sibling}e:for(V=null,G=e;;){if(G.tag===5){if(V===null){V=G;try{c=G.stateNode,L?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(E=G.stateNode,P=G.memoizedProps.style,y=P!=null&&P.hasOwnProperty("display")?P.display:null,E.style.display=Ph("display",y))}catch(ie){Ue(e,e.return,ie)}}}else if(G.tag===6){if(V===null)try{G.stateNode.nodeValue=L?"":G.memoizedProps}catch(ie){Ue(e,e.return,ie)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===e)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===e)break e;for(;G.sibling===null;){if(G.return===null||G.return===e)break e;V===G&&(V=null),G=G.return}V===G&&(V=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Dt(t,e),Qt(e),s&4&&Kg(e);break;case 21:break;default:Dt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Wg(r)){var s=r;break e}r=r.return}throw Error(i(160))}switch(s.tag){case 5:var c=s.stateNode;s.flags&32&&(co(c,""),s.flags&=-33);var d=Vg(e);Lc(e,d,c);break;case 3:case 4:var y=s.stateNode.containerInfo,E=Vg(e);zc(e,E,y);break;default:throw Error(i(161))}}catch(P){Ue(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jE(e,t,r){J=e,Xg(e)}function Xg(e,t,r){for(var s=(e.mode&1)!==0;J!==null;){var c=J,d=c.child;if(c.tag===22&&s){var y=c.memoizedState!==null||As;if(!y){var E=c.alternate,P=E!==null&&E.memoizedState!==null||it;E=As;var L=it;if(As=y,(it=P)&&!L)for(J=c;J!==null;)y=J,P=y.child,y.tag===22&&y.memoizedState!==null?Zg(c):P!==null?(P.return=y,J=P):Zg(c);for(;d!==null;)J=d,Xg(d),d=d.sibling;J=c,As=E,it=L}Qg(e)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,J=d):Qg(e)}}function Qg(e){for(;J!==null;){var t=J;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:it||Is(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!it)if(r===null)s.componentDidMount();else{var c=t.elementType===t.type?r.memoizedProps:Lt(t.type,r.memoizedProps);s.componentDidUpdate(c,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&qm(t,d,s);break;case 3:var y=t.updateQueue;if(y!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}qm(t,y,r)}break;case 5:var E=t.stateNode;if(r===null&&t.flags&4){r=E;var P=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&r.focus();break;case"img":P.src&&(r.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var L=t.alternate;if(L!==null){var V=L.memoizedState;if(V!==null){var G=V.dehydrated;G!==null&&bo(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}it||t.flags&512&&Mc(t)}catch(W){Ue(t,t.return,W)}}if(t===e){J=null;break}if(r=t.sibling,r!==null){r.return=t.return,J=r;break}J=t.return}}function qg(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var r=t.sibling;if(r!==null){r.return=t.return,J=r;break}J=t.return}}function Zg(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Is(4,t)}catch(P){Ue(t,r,P)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var c=t.return;try{s.componentDidMount()}catch(P){Ue(t,c,P)}}var d=t.return;try{Mc(t)}catch(P){Ue(t,d,P)}break;case 5:var y=t.return;try{Mc(t)}catch(P){Ue(t,y,P)}}}catch(P){Ue(t,t.return,P)}if(t===e){J=null;break}var E=t.sibling;if(E!==null){E.return=t.return,J=E;break}J=t.return}}var AE=Math.ceil,Ms=I.ReactCurrentDispatcher,Oc=I.ReactCurrentOwner,Nt=I.ReactCurrentBatchConfig,Te=0,qe=null,Ve=null,et=0,bt=0,Gr=An(0),Xe=0,Wo=null,lr=0,zs=0,Dc=0,Vo=null,pt=null,Fc=0,Kr=1/0,dn=null,Ls=!1,$c=null,Dn=null,Os=!1,Fn=null,Ds=0,Go=0,Uc=null,Fs=-1,$s=0;function lt(){return(Te&6)!==0?Be():Fs!==-1?Fs:Fs=Be()}function $n(e){return(e.mode&1)===0?1:(Te&2)!==0&&et!==0?et&-et:mE.transition!==null?($s===0&&($s=Vh()),$s):(e=Ie,e!==0||(e=window.event,e=e===void 0?16:em(e.type)),e)}function Ft(e,t,r,s){if(50<Go)throw Go=0,Uc=null,Error(i(185));go(e,r,s),((Te&2)===0||e!==qe)&&(e===qe&&((Te&2)===0&&(zs|=r),Xe===4&&Un(e,et)),ht(e,s),r===1&&Te===0&&(t.mode&1)===0&&(Kr=Be()+500,hs&&Mn()))}function ht(e,t){var r=e.callbackNode;mC(e,t);var s=Xi(e,e===qe?et:0);if(s===0)r!==null&&Hh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(r!=null&&Hh(r),t===1)e.tag===0?hE(ev.bind(null,e)):Fm(ev.bind(null,e)),uE(function(){(Te&6)===0&&Mn()}),r=null;else{switch(Gh(s)){case 1:r=xa;break;case 4:r=Bh;break;case 16:r=Vi;break;case 536870912:r=Wh;break;default:r=Vi}r=av(r,Jg.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Jg(e,t){if(Fs=-1,$s=0,(Te&6)!==0)throw Error(i(327));var r=e.callbackNode;if(Yr()&&e.callbackNode!==r)return null;var s=Xi(e,e===qe?et:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=Us(e,s);else{t=s;var c=Te;Te|=2;var d=nv();(qe!==e||et!==t)&&(dn=null,Kr=Be()+500,cr(e,t));do try{zE();break}catch(E){tv(e,E)}while(!0);ic(),Ms.current=d,Te=c,Ve!==null?t=0:(qe=null,et=0,t=Xe)}if(t!==0){if(t===2&&(c=ba(e),c!==0&&(s=c,t=Hc(e,c))),t===1)throw r=Wo,cr(e,0),Un(e,s),ht(e,Be()),r;if(t===6)Un(e,s);else{if(c=e.current.alternate,(s&30)===0&&!IE(c)&&(t=Us(e,s),t===2&&(d=ba(e),d!==0&&(s=d,t=Hc(e,d))),t===1))throw r=Wo,cr(e,0),Un(e,s),ht(e,Be()),r;switch(e.finishedWork=c,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:ur(e,pt,dn);break;case 3:if(Un(e,s),(s&130023424)===s&&(t=Fc+500-Be(),10<t)){if(Xi(e,0)!==0)break;if(c=e.suspendedLanes,(c&s)!==s){lt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Ya(ur.bind(null,e,pt,dn),t);break}ur(e,pt,dn);break;case 4:if(Un(e,s),(s&4194240)===s)break;for(t=e.eventTimes,c=-1;0<s;){var y=31-It(s);d=1<<y,y=t[y],y>c&&(c=y),s&=~d}if(s=c,s=Be()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*AE(s/1960))-s,10<s){e.timeoutHandle=Ya(ur.bind(null,e,pt,dn),s);break}ur(e,pt,dn);break;case 5:ur(e,pt,dn);break;default:throw Error(i(329))}}}return ht(e,Be()),e.callbackNode===r?Jg.bind(null,e):null}function Hc(e,t){var r=Vo;return e.current.memoizedState.isDehydrated&&(cr(e,t).flags|=256),e=Us(e,t),e!==2&&(t=pt,pt=r,t!==null&&Bc(t)),e}function Bc(e){pt===null?pt=e:pt.push.apply(pt,e)}function IE(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var s=0;s<r.length;s++){var c=r[s],d=c.getSnapshot;c=c.value;try{if(!Mt(d(),c))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Un(e,t){for(t&=~Dc,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-It(t),s=1<<r;e[r]=-1,t&=~s}}function ev(e){if((Te&6)!==0)throw Error(i(327));Yr();var t=Xi(e,0);if((t&1)===0)return ht(e,Be()),null;var r=Us(e,t);if(e.tag!==0&&r===2){var s=ba(e);s!==0&&(t=s,r=Hc(e,s))}if(r===1)throw r=Wo,cr(e,0),Un(e,t),ht(e,Be()),r;if(r===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ur(e,pt,dn),ht(e,Be()),null}function Wc(e,t){var r=Te;Te|=1;try{return e(t)}finally{Te=r,Te===0&&(Kr=Be()+500,hs&&Mn())}}function ar(e){Fn!==null&&Fn.tag===0&&(Te&6)===0&&Yr();var t=Te;Te|=1;var r=Nt.transition,s=Ie;try{if(Nt.transition=null,Ie=1,e)return e()}finally{Ie=s,Nt.transition=r,Te=t,(Te&6)===0&&Mn()}}function Vc(){bt=Gr.current,Le(Gr)}function cr(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,cE(r)),Ve!==null)for(r=Ve.return;r!==null;){var s=r;switch(ec(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&fs();break;case 3:Br(),Le(ut),Le(nt),pc();break;case 5:dc(s);break;case 4:Br();break;case 13:Le(De);break;case 19:Le(De);break;case 10:sc(s.type._context);break;case 22:case 23:Vc()}r=r.return}if(qe=e,Ve=e=Hn(e.current,null),et=bt=t,Xe=0,Wo=null,Dc=zs=lr=0,pt=Vo=null,or!==null){for(t=0;t<or.length;t++)if(r=or[t],s=r.interleaved,s!==null){r.interleaved=null;var c=s.next,d=r.pending;if(d!==null){var y=d.next;d.next=c,s.next=y}r.pending=s}or=null}return e}function tv(e,t){do{var r=Ve;try{if(ic(),Cs.current=Rs,Es){for(var s=Fe.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}Es=!1}if(sr=0,Qe=Ye=Fe=null,Do=!1,Fo=0,Oc.current=null,r===null||r.return===null){Xe=1,Wo=t,Ve=null;break}e:{var d=e,y=r.return,E=r,P=t;if(t=et,E.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var L=P,V=E,G=V.tag;if((V.mode&1)===0&&(G===0||G===11||G===15)){var W=V.alternate;W?(V.updateQueue=W.updateQueue,V.memoizedState=W.memoizedState,V.lanes=W.lanes):(V.updateQueue=null,V.memoizedState=null)}var q=_g(y);if(q!==null){q.flags&=-257,Ng(q,y,E,d,t),q.mode&1&&Eg(d,L,t),t=q,P=L;var re=t.updateQueue;if(re===null){var ie=new Set;ie.add(P),t.updateQueue=ie}else re.add(P);break e}else{if((t&1)===0){Eg(d,L,t),Gc();break e}P=Error(i(426))}}else if(Oe&&E.mode&1){var We=_g(y);if(We!==null){(We.flags&65536)===0&&(We.flags|=256),Ng(We,y,E,d,t),rc(Wr(P,E));break e}}d=P=Wr(P,E),Xe!==4&&(Xe=2),Vo===null?Vo=[d]:Vo.push(d),d=y;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var M=Sg(d,P,t);Qm(d,M);break e;case 1:E=P;var j=d.type,z=d.stateNode;if((d.flags&128)===0&&(typeof j.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(Dn===null||!Dn.has(z)))){d.flags|=65536,t&=-t,d.lanes|=t;var K=Cg(d,E,t);Qm(d,K);break e}}d=d.return}while(d!==null)}ov(r)}catch(ce){t=ce,Ve===r&&r!==null&&(Ve=r=r.return);continue}break}while(!0)}function nv(){var e=Ms.current;return Ms.current=Rs,e===null?Rs:e}function Gc(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),qe===null||(lr&268435455)===0&&(zs&268435455)===0||Un(qe,et)}function Us(e,t){var r=Te;Te|=2;var s=nv();(qe!==e||et!==t)&&(dn=null,cr(e,t));do try{ME();break}catch(c){tv(e,c)}while(!0);if(ic(),Te=r,Ms.current=s,Ve!==null)throw Error(i(261));return qe=null,et=0,Xe}function ME(){for(;Ve!==null;)rv(Ve)}function zE(){for(;Ve!==null&&!sC();)rv(Ve)}function rv(e){var t=lv(e.alternate,e,bt);e.memoizedProps=e.pendingProps,t===null?ov(e):Ve=t,Oc.current=null}function ov(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=NE(r,t,bt),r!==null){Ve=r;return}}else{if(r=RE(r,t),r!==null){r.flags&=32767,Ve=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,Ve=null;return}}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);Xe===0&&(Xe=5)}function ur(e,t,r){var s=Ie,c=Nt.transition;try{Nt.transition=null,Ie=1,LE(e,t,r,s)}finally{Nt.transition=c,Ie=s}return null}function LE(e,t,r,s){do Yr();while(Fn!==null);if((Te&6)!==0)throw Error(i(327));r=e.finishedWork;var c=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var d=r.lanes|r.childLanes;if(gC(e,d),e===qe&&(Ve=qe=null,et=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Os||(Os=!0,av(Vi,function(){return Yr(),null})),d=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||d){d=Nt.transition,Nt.transition=null;var y=Ie;Ie=1;var E=Te;Te|=4,Oc.current=null,TE(e,r),Yg(r,e),nE(Ga),Zi=!!Va,Ga=Va=null,e.current=r,jE(r),lC(),Te=E,Ie=y,Nt.transition=d}else e.current=r;if(Os&&(Os=!1,Fn=e,Ds=c),d=e.pendingLanes,d===0&&(Dn=null),uC(r.stateNode),ht(e,Be()),t!==null)for(s=e.onRecoverableError,r=0;r<t.length;r++)c=t[r],s(c.value,{componentStack:c.stack,digest:c.digest});if(Ls)throw Ls=!1,e=$c,$c=null,e;return(Ds&1)!==0&&e.tag!==0&&Yr(),d=e.pendingLanes,(d&1)!==0?e===Uc?Go++:(Go=0,Uc=e):Go=0,Mn(),null}function Yr(){if(Fn!==null){var e=Gh(Ds),t=Nt.transition,r=Ie;try{if(Nt.transition=null,Ie=16>e?16:e,Fn===null)var s=!1;else{if(e=Fn,Fn=null,Ds=0,(Te&6)!==0)throw Error(i(331));var c=Te;for(Te|=4,J=e.current;J!==null;){var d=J,y=d.child;if((J.flags&16)!==0){var E=d.deletions;if(E!==null){for(var P=0;P<E.length;P++){var L=E[P];for(J=L;J!==null;){var V=J;switch(V.tag){case 0:case 11:case 15:Bo(8,V,d)}var G=V.child;if(G!==null)G.return=V,J=G;else for(;J!==null;){V=J;var W=V.sibling,q=V.return;if(Bg(V),V===L){J=null;break}if(W!==null){W.return=q,J=W;break}J=q}}}var re=d.alternate;if(re!==null){var ie=re.child;if(ie!==null){re.child=null;do{var We=ie.sibling;ie.sibling=null,ie=We}while(ie!==null)}}J=d}}if((d.subtreeFlags&2064)!==0&&y!==null)y.return=d,J=y;else e:for(;J!==null;){if(d=J,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:Bo(9,d,d.return)}var M=d.sibling;if(M!==null){M.return=d.return,J=M;break e}J=d.return}}var j=e.current;for(J=j;J!==null;){y=J;var z=y.child;if((y.subtreeFlags&2064)!==0&&z!==null)z.return=y,J=z;else e:for(y=j;J!==null;){if(E=J,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:Is(9,E)}}catch(ce){Ue(E,E.return,ce)}if(E===y){J=null;break e}var K=E.sibling;if(K!==null){K.return=E.return,J=K;break e}J=E.return}}if(Te=c,Mn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Gi,e)}catch{}s=!0}return s}finally{Ie=r,Nt.transition=t}}return!1}function iv(e,t,r){t=Wr(r,t),t=Sg(e,t,1),e=Ln(e,t,1),t=lt(),e!==null&&(go(e,1,t),ht(e,t))}function Ue(e,t,r){if(e.tag===3)iv(e,e,r);else for(;t!==null;){if(t.tag===3){iv(t,e,r);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Dn===null||!Dn.has(s))){e=Wr(r,e),e=Cg(t,e,1),t=Ln(t,e,1),e=lt(),t!==null&&(go(t,1,e),ht(t,e));break}}t=t.return}}function OE(e,t,r){var s=e.pingCache;s!==null&&s.delete(t),t=lt(),e.pingedLanes|=e.suspendedLanes&r,qe===e&&(et&r)===r&&(Xe===4||Xe===3&&(et&130023424)===et&&500>Be()-Fc?cr(e,0):Dc|=r),ht(e,t)}function sv(e,t){t===0&&((e.mode&1)===0?t=1:(t=Yi,Yi<<=1,(Yi&130023424)===0&&(Yi=4194304)));var r=lt();e=an(e,t),e!==null&&(go(e,t,r),ht(e,r))}function DE(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),sv(e,r)}function FE(e,t){var r=0;switch(e.tag){case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(r=c.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),sv(e,r)}var lv;lv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)ft=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return ft=!1,_E(e,t,r);ft=(e.flags&131072)!==0}else ft=!1,Oe&&(t.flags&1048576)!==0&&$m(t,gs,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;js(e,t),e=t.pendingProps;var c=Lr(t,nt.current);Hr(t,r),c=gc(null,t,s,e,c,r);var d=vc();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,dt(s)?(d=!0,ps(t)):d=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,cc(t),c.updater=Ps,t.stateNode=c,c._reactInternals=t,Sc(t,s,e,r),t=Nc(null,t,s,!0,d,r)):(t.tag=0,Oe&&d&&Ja(t),st(null,t,c,r),t=t.child),t;case 16:s=t.elementType;e:{switch(js(e,t),e=t.pendingProps,c=s._init,s=c(s._payload),t.type=s,c=t.tag=UE(s),e=Lt(s,e),c){case 0:t=_c(null,t,s,e,r);break e;case 1:t=Ig(null,t,s,e,r);break e;case 11:t=Rg(null,t,s,e,r);break e;case 14:t=Pg(null,t,s,Lt(s.type,e),r);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Lt(s,c),_c(e,t,s,c,r);case 1:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Lt(s,c),Ig(e,t,s,c,r);case 3:e:{if(Mg(t),e===null)throw Error(i(387));s=t.pendingProps,d=t.memoizedState,c=d.element,Xm(e,t),ks(t,s,null,r);var y=t.memoizedState;if(s=y.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){c=Wr(Error(i(423)),t),t=zg(e,t,s,r,c);break e}else if(s!==c){c=Wr(Error(i(424)),t),t=zg(e,t,s,r,c);break e}else for(xt=jn(t.stateNode.containerInfo.firstChild),wt=t,Oe=!0,zt=null,r=Km(t,null,s,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Fr(),s===c){t=un(e,t,r);break e}st(e,t,s,r)}t=t.child}return t;case 5:return Zm(t),e===null&&nc(t),s=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,y=c.children,Ka(s,c)?y=null:d!==null&&Ka(s,d)&&(t.flags|=32),Ag(e,t),st(e,t,y,r),t.child;case 6:return e===null&&nc(t),null;case 13:return Lg(e,t,r);case 4:return uc(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=$r(t,null,s,r):st(e,t,s,r),t.child;case 11:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Lt(s,c),Rg(e,t,s,c,r);case 7:return st(e,t,t.pendingProps,r),t.child;case 8:return st(e,t,t.pendingProps.children,r),t.child;case 12:return st(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(s=t.type._context,c=t.pendingProps,d=t.memoizedProps,y=c.value,Me(ws,s._currentValue),s._currentValue=y,d!==null)if(Mt(d.value,y)){if(d.children===c.children&&!ut.current){t=un(e,t,r);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var E=d.dependencies;if(E!==null){y=d.child;for(var P=E.firstContext;P!==null;){if(P.context===s){if(d.tag===1){P=cn(-1,r&-r),P.tag=2;var L=d.updateQueue;if(L!==null){L=L.shared;var V=L.pending;V===null?P.next=P:(P.next=V.next,V.next=P),L.pending=P}}d.lanes|=r,P=d.alternate,P!==null&&(P.lanes|=r),lc(d.return,r,t),E.lanes|=r;break}P=P.next}}else if(d.tag===10)y=d.type===t.type?null:d.child;else if(d.tag===18){if(y=d.return,y===null)throw Error(i(341));y.lanes|=r,E=y.alternate,E!==null&&(E.lanes|=r),lc(y,r,t),y=d.sibling}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===t){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}st(e,t,c.children,r),t=t.child}return t;case 9:return c=t.type,s=t.pendingProps.children,Hr(t,r),c=Et(c),s=s(c),t.flags|=1,st(e,t,s,r),t.child;case 14:return s=t.type,c=Lt(s,t.pendingProps),c=Lt(s.type,c),Pg(e,t,s,c,r);case 15:return Tg(e,t,t.type,t.pendingProps,r);case 17:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Lt(s,c),js(e,t),t.tag=1,dt(s)?(e=!0,ps(t)):e=!1,Hr(t,r),bg(t,s,c),Sc(t,s,c,r),Nc(null,t,s,!0,e,r);case 19:return Dg(e,t,r);case 22:return jg(e,t,r)}throw Error(i(156,t.tag))};function av(e,t){return Uh(e,t)}function $E(e,t,r,s){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,r,s){return new $E(e,t,r,s)}function Kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function UE(e){if(typeof e=="function")return Kc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===se)return 11;if(e===Se)return 14}return 2}function Hn(e,t){var r=e.alternate;return r===null?(r=Rt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Hs(e,t,r,s,c,d){var y=2;if(s=e,typeof e=="function")Kc(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case O:return dr(r.children,c,d,t);case D:y=8,c|=8;break;case Y:return e=Rt(12,r,t,c|2),e.elementType=Y,e.lanes=d,e;case ge:return e=Rt(13,r,t,c),e.elementType=ge,e.lanes=d,e;case xe:return e=Rt(19,r,t,c),e.elementType=xe,e.lanes=d,e;case le:return Bs(r,c,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case te:y=10;break e;case ne:y=9;break e;case se:y=11;break e;case Se:y=14;break e;case Z:y=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Rt(y,r,t,c),t.elementType=e,t.type=s,t.lanes=d,t}function dr(e,t,r,s){return e=Rt(7,e,s,t),e.lanes=r,e}function Bs(e,t,r,s){return e=Rt(22,e,s,t),e.elementType=le,e.lanes=r,e.stateNode={isHidden:!1},e}function Yc(e,t,r){return e=Rt(6,e,null,t),e.lanes=r,e}function Xc(e,t,r){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function HE(e,t,r,s,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=ka(0),this.expirationTimes=ka(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ka(0),this.identifierPrefix=s,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Qc(e,t,r,s,c,d,y,E,P){return e=new HE(e,t,r,E,P),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Rt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:s,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},cc(d),e}function BE(e,t,r){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:s==null?null:""+s,children:e,containerInfo:t,implementation:r}}function cv(e){if(!e)return In;e=e._reactInternals;e:{if(Jn(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(dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var r=e.type;if(dt(r))return Om(e,r,t)}return t}function uv(e,t,r,s,c,d,y,E,P){return e=Qc(r,s,!0,e,c,d,y,E,P),e.context=cv(null),r=e.current,s=lt(),c=$n(r),d=cn(s,c),d.callback=t??null,Ln(r,d,c),e.current.lanes=c,go(e,c,s),ht(e,s),e}function Ws(e,t,r,s){var c=t.current,d=lt(),y=$n(c);return r=cv(r),t.context===null?t.context=r:t.pendingContext=r,t=cn(d,y),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Ln(c,t,y),e!==null&&(Ft(e,c,y,d),bs(e,c,y)),y}function Vs(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 dv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function qc(e,t){dv(e,t),(e=e.alternate)&&dv(e,t)}function WE(){return null}var fv=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zc(e){this._internalRoot=e}Gs.prototype.render=Zc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Ws(e,t,null,null)},Gs.prototype.unmount=Zc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ar(function(){Ws(null,e,null,null)}),t[rn]=null}};function Gs(e){this._internalRoot=e}Gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xh();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Rn.length&&t!==0&&t<Rn[r].priority;r++);Rn.splice(r,0,e),r===0&&Zh(e)}};function Jc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pv(){}function VE(e,t,r,s,c){if(c){if(typeof s=="function"){var d=s;s=function(){var L=Vs(y);d.call(L)}}var y=uv(t,s,e,0,null,!1,!1,"",pv);return e._reactRootContainer=y,e[rn]=y.current,To(e.nodeType===8?e.parentNode:e),ar(),y}for(;c=e.lastChild;)e.removeChild(c);if(typeof s=="function"){var E=s;s=function(){var L=Vs(P);E.call(L)}}var P=Qc(e,0,!1,null,null,!1,!1,"",pv);return e._reactRootContainer=P,e[rn]=P.current,To(e.nodeType===8?e.parentNode:e),ar(function(){Ws(t,P,r,s)}),P}function Ys(e,t,r,s,c){var d=r._reactRootContainer;if(d){var y=d;if(typeof c=="function"){var E=c;c=function(){var P=Vs(y);E.call(P)}}Ws(t,y,e,c)}else y=VE(r,t,e,c,s);return Vs(y)}Kh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=mo(t.pendingLanes);r!==0&&(Sa(t,r|1),ht(t,Be()),(Te&6)===0&&(Kr=Be()+500,Mn()))}break;case 13:ar(function(){var s=an(e,1);if(s!==null){var c=lt();Ft(s,e,1,c)}}),qc(e,1)}},Ca=function(e){if(e.tag===13){var t=an(e,134217728);if(t!==null){var r=lt();Ft(t,e,134217728,r)}qc(e,134217728)}},Yh=function(e){if(e.tag===13){var t=$n(e),r=an(e,t);if(r!==null){var s=lt();Ft(r,e,t,s)}qc(e,t)}},Xh=function(){return Ie},Qh=function(e,t){var r=Ie;try{return Ie=e,t()}finally{Ie=r}},ga=function(e,t,r){switch(t){case"input":if(nn(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var s=r[t];if(s!==e&&s.form===e.form){var c=ds(s);if(!c)throw Error(i(90));Re(s),nn(s,c)}}}break;case"textarea":Eh(e,r);break;case"select":t=r.value,t!=null&&Cr(e,!!r.multiple,t,!1)}},Mh=Wc,zh=ar;var GE={usingClientEntryPoint:!1,Events:[Io,Mr,ds,Ah,Ih,Wc]},Ko={findFiberByHostInstance:er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},KE={bundleType:Ko.bundleType,version:Ko.version,rendererPackageName:Ko.rendererPackageName,rendererConfig:Ko.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Fh(e),e===null?null:e.stateNode},findFiberByHostInstance:Ko.findFiberByHostInstance||WE,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 Xs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xs.isDisabled&&Xs.supportsFiber)try{Gi=Xs.inject(KE),Gt=Xs}catch{}}return at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GE,at.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jc(t))throw Error(i(200));return BE(e,t,null,r)},at.createRoot=function(e,t){if(!Jc(e))throw Error(i(299));var r=!1,s="",c=fv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Qc(e,1,!1,null,null,r,!1,s,c),e[rn]=t.current,To(e.nodeType===8?e.parentNode:e),new Zc(t)},at.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=Fh(t),e=e===null?null:e.stateNode,e},at.flushSync=function(e){return ar(e)},at.hydrate=function(e,t,r){if(!Ks(t))throw Error(i(200));return Ys(null,e,t,!0,r)},at.hydrateRoot=function(e,t,r){if(!Jc(e))throw Error(i(405));var s=r!=null&&r.hydratedSources||null,c=!1,d="",y=fv;if(r!=null&&(r.unstable_strictMode===!0&&(c=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(y=r.onRecoverableError)),t=uv(t,null,e,1,r??null,c,!1,d,y),e[rn]=t.current,To(e),s)for(e=0;e<s.length;e++)r=s[e],c=r._getVersion,c=c(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,c]:t.mutableSourceEagerHydrationData.push(r,c);return new Gs(t)},at.render=function(e,t,r){if(!Ks(t))throw Error(i(200));return Ys(null,e,t,!1,r)},at.unmountComponentAtNode=function(e){if(!Ks(e))throw Error(i(40));return e._reactRootContainer?(ar(function(){Ys(null,null,e,!1,function(){e._reactRootContainer=null,e[rn]=null})}),!0):!1},at.unstable_batchedUpdates=Wc,at.unstable_renderSubtreeIntoContainer=function(e,t,r,s){if(!Ks(r))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Ys(e,t,r,!1,s)},at.version="18.3.1-next-f1338f8080-20240426",at}var au;function cu(){if(au)return qs.exports;au=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(o){console.error(o)}}return n(),qs.exports=wv(),qs.exports}var uu;function xv(){if(uu)return Xo;uu=1;var n=cu();return Xo.createRoot=n.createRoot,Xo.hydrateRoot=n.hydrateRoot,Xo}var bv=xv();const kv='/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans,ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);--default-mono-font-family:var(--font-geist-mono,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-colored:0 0 #0000;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*,:before,:after{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}:host{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.right-8{right:calc(var(--spacing) * 8)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-8{bottom:calc(var(--spacing) * 8)}.bottom-24{bottom:calc(var(--spacing) * 24)}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-1000{z-index:1000}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mt-2\\.5{margin-top:calc(var(--spacing) * -2.5)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-4{margin-right:calc(var(--spacing) * 4)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-2\\.5{margin-left:calc(var(--spacing) * -2.5)}.flex{display:flex}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-12{height:calc(var(--spacing) * 12)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-\\[700px\\]{height:700px}.h-auto{height:auto}.h-full{height:100%}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-6{width:calc(var(--spacing) * 6)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-\\[900px\\]{width:900px}.w-full{width:100%}.max-w-\\[200px\\]{max-width:200px}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-12{gap:calc(var(--spacing) * 12)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--border)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-border{border-color:var(--border)}.border-transparent{border-color:#0000}.border-zinc-200{border-color:#e4e4e4}.bg-background{background-color:var(--background)}.bg-foreground\\/35{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\\/35{background-color:color-mix(in oklab,var(--foreground) 35%,transparent)}}.bg-foreground\\/70{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\\/70{background-color:color-mix(in oklab,var(--foreground) 70%,transparent)}}.bg-muted{background-color:var(--muted)}.bg-transparent{background-color:#0000}.bg-white{background-color:#fff}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.text-center{text-align:center}.text-left{text-align:left}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-foreground,.text-foreground\\/70{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\\/70{color:color-mix(in oklab,var(--foreground) 70%,transparent)}}.text-foreground\\/75{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\\/75{color:color-mix(in oklab,var(--foreground) 75%,transparent)}}.text-muted-foreground{color:var(--muted-foreground)}.text-zinc-300{color:#d4d4d4}.text-zinc-500{color:#727272}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_0_0_1px_rgba\\(255\\,255\\,255\\,0\\.16\\)\\,0_0_0_1px_rgba\\(0\\,0\\,0\\,0\\.22\\)\\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,#ffffff29), 0 0 0 1px var(--tw-shadow-color,#00000038);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-zinc-200{--tw-ring-color:oklch(92% 0 0)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.group-hover\\/resize\\:bg-foreground\\/55:is(:where(.group\\/resize):hover *){background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.group-hover\\/resize\\:bg-foreground\\/55:is(:where(.group\\/resize):hover *){background-color:color-mix(in oklab,var(--foreground) 55%,transparent)}}.group-hover\\/resize\\:opacity-100:is(:where(.group\\/resize):hover *){opacity:1}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-accent\\/70:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-accent\\/70:hover{background-color:color-mix(in oklab,var(--accent) 70%,transparent)}}.hover\\:text-foreground:hover{color:var(--foreground)}.hover\\:text-zinc-900:hover{color:#181818}.hover\\:opacity-100:hover{opacity:1}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-ring\\/40:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-ring\\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 40%, transparent)}}.dark\\:border-zinc-300:is(.dark *){border-color:#d4d4d4}.dark\\:bg-background:is(.dark *){background-color:var(--background)}.dark\\:bg-white:is(.dark *){background-color:#fff}.dark\\:ring-zinc-300:is(.dark *){--tw-ring-color:oklch(87.1% 0 0)}@media(hover:hover){.dark\\:group-hover\\/resize\\:bg-white:is(.dark *):is(:where(.group\\/resize):hover *){background-color:#fff}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:host{--radius:.625rem;--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08)}:host([theme=dark]),:host(.dark){--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439)}@keyframes sparkle-swipe-in{0%{opacity:0;color:#facc15;filter:drop-shadow(-8px 8px #a855f700)}28%{opacity:1;color:#d8b4fe;filter:drop-shadow(-2px 2px 8px #a855f7cc)}55%{color:#a855f7;filter:drop-shadow(3px -3px 10px #a855f7f2)}to{opacity:1;color:#facc15;filter:drop-shadow(0 0 #a855f700)}}@keyframes sparkle-twinkle{0%,to{opacity:.82;filter:drop-shadow(0 0 #facc1500)}50%{opacity:1;filter:drop-shadow(0 0 7px #facc1580)}}.sparkle-icon{color:#facc15;vertical-align:middle;transform-origin:50%;will-change:transform,filter,color,opacity;line-height:1;animation:1.15s cubic-bezier(.22,1,.36,1) sparkle-swipe-in,2.1s ease-in-out 1.15s infinite sparkle-twinkle;display:inline-block;transform:rotate(10deg)}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}';var m=Yo();const mt=$t(m),du=Wn({__proto__:null,default:mt},[m]),Sv=()=>{try{return"fb9f368c-3c1e-4502-998e-e54bdcd1c82f"}catch{return"dev"}},Vn=new Map,Cv=async(n,o)=>{const i=Vn.get(n.id);if(i)return i;if(!n.bundleUrl)return console.warn(`[SandboxManager] Extension ${n.id} is missing bundleUrl — skipping sandbox creation`),null;const l=document.createElement("iframe");if(l.setAttribute("sandbox","allow-scripts allow-same-origin"),l.style.display="none",l.style.width="0",l.style.height="0",l.style.border="none",n.bundleUrl.startsWith("http")&&!n.bundleUrl.endsWith(".js")){const p=new URL(n.bundleUrl);p.searchParams.set("__extensionId",n.id),l.src=p.toString(),console.warn(`[SandboxManager] Creating dev sandbox for ${n.id}, injecting __extensionId via query param, url: ${p.toString()}`)}else{let p="";try{const v=Sv();p=await(await fetch(`${n.bundleUrl}?_b=${v}`)).text()}catch(v){console.error(`[SandboxManager] Failed to fetch bundle for ${n.id}:`,v)}const h=`<!DOCTYPE html>
|
|
40
|
+
`+d.stack}return{value:e,source:t,stack:c,digest:null}}function Ec(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function _c(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var CE=typeof WeakMap=="function"?WeakMap:Map;function Sg(e,t,r){r=cn(-1,r),r.tag=3,r.payload={element:null};var s=t.value;return r.callback=function(){Ls||(Ls=!0,Uc=s),_c(e,t)},r}function Cg(e,t,r){r=cn(-1,r),r.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var c=t.value;r.payload=function(){return s(c)},r.callback=function(){_c(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(r.callback=function(){_c(e,t),typeof s!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var y=t.stack;this.componentDidCatch(t.value,{componentStack:y!==null?y:""})}),r}function Eg(e,t,r){var s=e.pingCache;if(s===null){s=e.pingCache=new CE;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(r)||(c.add(r),e=DE.bind(null,e,t,r),t.then(e,e))}function _g(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 Ng(e,t,r,s,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=cn(-1,1),t.tag=2,Ln(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var EE=I.ReactCurrentOwner,ft=!1;function st(e,t,r,s){t.child=e===null?Km(t,null,r,s):$r(t,e.child,r,s)}function Rg(e,t,r,s,c){r=r.render;var d=t.ref;return Hr(t,c),s=vc(e,t,r,s,d,c),r=yc(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,un(e,t,c)):(Oe&&r&&ec(t),t.flags|=1,st(e,t,s,c),t.child)}function Pg(e,t,r,s,c){if(e===null){var d=r.type;return typeof d=="function"&&!Yc(d)&&d.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=d,Tg(e,t,d,s,c)):(e=Hs(r.type,null,s,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&c)===0){var y=d.memoizedProps;if(r=r.compare,r=r!==null?r:No,r(y,s)&&e.ref===t.ref)return un(e,t,c)}return t.flags|=1,e=Hn(d,s),e.ref=t.ref,e.return=t,t.child=e}function Tg(e,t,r,s,c){if(e!==null){var d=e.memoizedProps;if(No(d,s)&&e.ref===t.ref)if(ft=!1,t.pendingProps=s=d,(e.lanes&c)!==0)(e.flags&131072)!==0&&(ft=!0);else return t.lanes=e.lanes,un(e,t,c)}return Nc(e,t,r,s,c)}function jg(e,t,r){var s=t.pendingProps,c=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(Gr,bt),bt|=r;else{if((r&1073741824)===0)return e=d!==null?d.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ze(Gr,bt),bt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=d!==null?d.baseLanes:r,ze(Gr,bt),bt|=s}else d!==null?(s=d.baseLanes|r,t.memoizedState=null):s=r,ze(Gr,bt),bt|=s;return st(e,t,c,r),t.child}function Ag(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Nc(e,t,r,s,c){var d=dt(r)?tr:nt.current;return d=Lr(t,d),Hr(t,c),r=vc(e,t,r,s,d,c),s=yc(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,un(e,t,c)):(Oe&&s&&ec(t),t.flags|=1,st(e,t,r,c),t.child)}function Ig(e,t,r,s,c){if(dt(r)){var d=!0;ps(t)}else d=!1;if(Hr(t,c),t.stateNode===null)js(e,t),bg(t,r,s),Cc(t,r,s,c),s=!0;else if(e===null){var y=t.stateNode,E=t.memoizedProps;y.props=E;var P=y.context,L=r.contextType;typeof L=="object"&&L!==null?L=Et(L):(L=dt(r)?tr:nt.current,L=Lr(t,L));var V=r.getDerivedStateFromProps,G=typeof V=="function"||typeof y.getSnapshotBeforeUpdate=="function";G||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(E!==s||P!==L)&&kg(t,y,s,L),Mn=!1;var W=t.memoizedState;y.state=W,ks(t,s,y,c),P=t.memoizedState,E!==s||W!==P||ut.current||Mn?(typeof V=="function"&&(Sc(t,r,V,s),P=t.memoizedState),(E=Mn||xg(t,r,E,s,W,P,L))?(G||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(t.flags|=4194308)):(typeof y.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=P),y.props=s,y.state=P,y.context=L,s=E):(typeof y.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{y=t.stateNode,Xm(e,t),E=t.memoizedProps,L=t.type===t.elementType?E:Lt(t.type,E),y.props=L,G=t.pendingProps,W=y.context,P=r.contextType,typeof P=="object"&&P!==null?P=Et(P):(P=dt(r)?tr:nt.current,P=Lr(t,P));var q=r.getDerivedStateFromProps;(V=typeof q=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(E!==G||W!==P)&&kg(t,y,s,P),Mn=!1,W=t.memoizedState,y.state=W,ks(t,s,y,c);var re=t.memoizedState;E!==G||W!==re||ut.current||Mn?(typeof q=="function"&&(Sc(t,r,q,s),re=t.memoizedState),(L=Mn||xg(t,r,L,s,W,re,P)||!1)?(V||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(s,re,P),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(s,re,P)),typeof y.componentDidUpdate=="function"&&(t.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof y.componentDidUpdate!="function"||E===e.memoizedProps&&W===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&W===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=re),y.props=s,y.state=re,y.context=P,s=L):(typeof y.componentDidUpdate!="function"||E===e.memoizedProps&&W===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&W===e.memoizedState||(t.flags|=1024),s=!1)}return Rc(e,t,r,s,d,c)}function Rc(e,t,r,s,c,d){Ag(e,t);var y=(t.flags&128)!==0;if(!s&&!y)return c&&Dm(t,r,!1),un(e,t,d);s=t.stateNode,EE.current=t;var E=y&&typeof r.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&y?(t.child=$r(t,e.child,null,d),t.child=$r(t,null,E,d)):st(e,t,E,d),t.memoizedState=s.state,c&&Dm(t,r,!0),t.child}function zg(e){var t=e.stateNode;t.pendingContext?Lm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lm(e,t.context,!1),dc(e,t.containerInfo)}function Mg(e,t,r,s,c){return Fr(),oc(c),t.flags|=256,st(e,t,r,s),t.child}var Pc={dehydrated:null,treeContext:null,retryLane:0};function Tc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lg(e,t,r){var s=t.pendingProps,c=De.current,d=!1,y=(t.flags&128)!==0,E;if((E=y)||(E=e!==null&&e.memoizedState===null?!1:(c&2)!==0),E?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),ze(De,c&1),e===null)return rc(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):(y=s.children,e=s.fallback,d?(s=t.mode,d=t.child,y={mode:"hidden",children:y},(s&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=y):d=Bs(y,s,0,null),e=dr(e,s,r,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Tc(r),t.memoizedState=Pc,e):jc(t,y));if(c=e.memoizedState,c!==null&&(E=c.dehydrated,E!==null))return _E(e,t,y,s,E,c,r);if(d){d=s.fallback,y=t.mode,c=e.child,E=c.sibling;var P={mode:"hidden",children:s.children};return(y&1)===0&&t.child!==c?(s=t.child,s.childLanes=0,s.pendingProps=P,t.deletions=null):(s=Hn(c,P),s.subtreeFlags=c.subtreeFlags&14680064),E!==null?d=Hn(E,d):(d=dr(d,y,r,null),d.flags|=2),d.return=t,s.return=t,s.sibling=d,t.child=s,s=d,d=t.child,y=e.child.memoizedState,y=y===null?Tc(r):{baseLanes:y.baseLanes|r,cachePool:null,transitions:y.transitions},d.memoizedState=y,d.childLanes=e.childLanes&~r,t.memoizedState=Pc,s}return d=e.child,e=d.sibling,s=Hn(d,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=r),s.return=t,s.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=s,t.memoizedState=null,s}function jc(e,t){return t=Bs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ts(e,t,r,s){return s!==null&&oc(s),$r(t,e.child,null,r),e=jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _E(e,t,r,s,c,d,y){if(r)return t.flags&256?(t.flags&=-257,s=Ec(Error(i(422))),Ts(e,t,y,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=s.fallback,c=t.mode,s=Bs({mode:"visible",children:s.children},c,0,null),d=dr(d,c,y,null),d.flags|=2,s.return=t,d.return=t,s.sibling=d,t.child=s,(t.mode&1)!==0&&$r(t,e.child,null,y),t.child.memoizedState=Tc(y),t.memoizedState=Pc,d);if((t.mode&1)===0)return Ts(e,t,y,null);if(c.data==="$!"){if(s=c.nextSibling&&c.nextSibling.dataset,s)var E=s.dgst;return s=E,d=Error(i(419)),s=Ec(d,s,void 0),Ts(e,t,y,s)}if(E=(y&e.childLanes)!==0,ft||E){if(s=qe,s!==null){switch(y&-y){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&(s.suspendedLanes|y))!==0?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,ln(e,c),Ft(s,e,c,-1))}return Kc(),s=Ec(Error(i(421))),Ts(e,t,y,s)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=FE.bind(null,e),c._reactRetry=t,null):(e=d.treeContext,xt=jn(c.nextSibling),wt=t,Oe=!0,Mt=null,e!==null&&(St[Ct++]=sn,St[Ct++]=an,St[Ct++]=nr,sn=e.id,an=e.overflow,nr=t),t=jc(t,s.children),t.flags|=4096,t)}function Og(e,t,r){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),lc(e.return,t,r)}function Ac(e,t,r,s,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=r,d.tailMode=c)}function Dg(e,t,r){var s=t.pendingProps,c=s.revealOrder,d=s.tail;if(st(e,t,s.children,r),s=De.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Og(e,r,t);else if(e.tag===19)Og(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(ze(De,s),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(r=t.child,c=null;r!==null;)e=r.alternate,e!==null&&Ss(e)===null&&(c=r),r=r.sibling;r=c,r===null?(c=t.child,t.child=null):(c=r.sibling,r.sibling=null),Ac(t,!1,c,r,d);break;case"backwards":for(r=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Ss(e)===null){t.child=c;break}e=c.sibling,c.sibling=r,r=c,c=e}Ac(t,!0,r,null,d);break;case"together":Ac(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function js(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function un(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ar|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,r=Hn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Hn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function NE(e,t,r){switch(t.tag){case 3:zg(t),Fr();break;case 5:Zm(t);break;case 1:dt(t.type)&&ps(t);break;case 4:dc(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,c=t.memoizedProps.value;ze(ws,s._currentValue),s._currentValue=c;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(ze(De,De.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Lg(e,t,r):(ze(De,De.current&1),e=un(e,t,r),e!==null?e.sibling:null);ze(De,De.current&1);break;case 19:if(s=(r&t.childLanes)!==0,(e.flags&128)!==0){if(s)return Dg(e,t,r);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ze(De,De.current),s)break;return null;case 22:case 23:return t.lanes=0,jg(e,t,r)}return un(e,t,r)}var Fg,Ic,$g,Ug;Fg=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ic=function(){},$g=function(e,t,r,s){var c=e.memoizedProps;if(c!==s){e=t.stateNode,ir(Yt.current);var d=null;switch(r){case"input":c=Ke(e,c),s=Ke(e,s),d=[];break;case"select":c=F({},c,{value:void 0}),s=F({},s,{value:void 0}),d=[];break;case"textarea":c=dl(e,c),s=dl(e,s),d=[];break;default:typeof c.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=us)}pl(r,s);var y;r=null;for(L in c)if(!s.hasOwnProperty(L)&&c.hasOwnProperty(L)&&c[L]!=null)if(L==="style"){var E=c[L];for(y in E)E.hasOwnProperty(y)&&(r||(r={}),r[y]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?d||(d=[]):(d=d||[]).push(L,null));for(L in s){var P=s[L];if(E=c!=null?c[L]:void 0,s.hasOwnProperty(L)&&P!==E&&(P!=null||E!=null))if(L==="style")if(E){for(y in E)!E.hasOwnProperty(y)||P&&P.hasOwnProperty(y)||(r||(r={}),r[y]="");for(y in P)P.hasOwnProperty(y)&&E[y]!==P[y]&&(r||(r={}),r[y]=P[y])}else r||(d||(d=[]),d.push(L,r)),r=P;else L==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,E=E?E.__html:void 0,P!=null&&E!==P&&(d=d||[]).push(L,P)):L==="children"?typeof P!="string"&&typeof P!="number"||(d=d||[]).push(L,""+P):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(l.hasOwnProperty(L)?(P!=null&&L==="onScroll"&&Me("scroll",e),d||E===P||(d=[])):(d=d||[]).push(L,P))}r&&(d=d||[]).push("style",r);var L=d;(t.updateQueue=L)&&(t.flags|=4)}},Ug=function(e,t,r,s){r!==s&&(t.flags|=4)};function Ho(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,s=0;if(t)for(var c=e.child;c!==null;)r|=c.lanes|c.childLanes,s|=c.subtreeFlags&14680064,s|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)r|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=r,t}function RE(e,t,r){var s=t.pendingProps;switch(tc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return dt(t.type)&&fs(),ot(t),null;case 3:return s=t.stateNode,Br(),Le(ut),Le(nt),hc(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(vs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mt!==null&&(Wc(Mt),Mt=null))),Ic(e,t),ot(t),null;case 5:fc(t);var c=ir(Oo.current);if(r=t.type,e!==null&&t.stateNode!=null)$g(e,t,r,s,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return ot(t),null}if(e=ir(Yt.current),vs(t)){s=t.stateNode,r=t.type;var d=t.memoizedProps;switch(s[Kt]=t,s[Ao]=d,e=(t.mode&1)!==0,r){case"dialog":Me("cancel",s),Me("close",s);break;case"iframe":case"object":case"embed":Me("load",s);break;case"video":case"audio":for(c=0;c<Po.length;c++)Me(Po[c],s);break;case"source":Me("error",s);break;case"img":case"image":case"link":Me("error",s),Me("load",s);break;case"details":Me("toggle",s);break;case"input":kn(s,d),Me("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!d.multiple},Me("invalid",s);break;case"textarea":Ch(s,d),Me("invalid",s)}pl(r,d),c=null;for(var y in d)if(d.hasOwnProperty(y)){var E=d[y];y==="children"?typeof E=="string"?s.textContent!==E&&(d.suppressHydrationWarning!==!0&&cs(s.textContent,E,e),c=["children",E]):typeof E=="number"&&s.textContent!==""+E&&(d.suppressHydrationWarning!==!0&&cs(s.textContent,E,e),c=["children",""+E]):l.hasOwnProperty(y)&&E!=null&&y==="onScroll"&&Me("scroll",s)}switch(r){case"input":Ne(s),Ui(s,d,!0);break;case"textarea":Ne(s),_h(s);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(s.onclick=us)}s=c,t.updateQueue=s,s!==null&&(t.flags|=4)}else{y=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Nh(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=y.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=y.createElement(r,{is:s.is}):(e=y.createElement(r),r==="select"&&(y=e,s.multiple?y.multiple=!0:s.size&&(y.size=s.size))):e=y.createElementNS(e,r),e[Kt]=t,e[Ao]=s,Fg(e,t,!1,!1),t.stateNode=e;e:{switch(y=hl(r,s),r){case"dialog":Me("cancel",e),Me("close",e),c=s;break;case"iframe":case"object":case"embed":Me("load",e),c=s;break;case"video":case"audio":for(c=0;c<Po.length;c++)Me(Po[c],e);c=s;break;case"source":Me("error",e),c=s;break;case"img":case"image":case"link":Me("error",e),Me("load",e),c=s;break;case"details":Me("toggle",e),c=s;break;case"input":kn(e,s),c=Ke(e,s),Me("invalid",e);break;case"option":c=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},c=F({},s,{value:void 0}),Me("invalid",e);break;case"textarea":Ch(e,s),c=dl(e,s),Me("invalid",e);break;default:c=s}pl(r,c),E=c;for(d in E)if(E.hasOwnProperty(d)){var P=E[d];d==="style"?Th(e,P):d==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&Rh(e,P)):d==="children"?typeof P=="string"?(r!=="textarea"||P!=="")&&co(e,P):typeof P=="number"&&co(e,""+P):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(l.hasOwnProperty(d)?P!=null&&d==="onScroll"&&Me("scroll",e):P!=null&&T(e,d,P,y))}switch(r){case"input":Ne(e),Ui(e,s,!1);break;case"textarea":Ne(e),_h(e);break;case"option":s.value!=null&&e.setAttribute("value",""+ue(s.value));break;case"select":e.multiple=!!s.multiple,d=s.value,d!=null?Cr(e,!!s.multiple,d,!1):s.defaultValue!=null&&Cr(e,!!s.multiple,s.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=us)}switch(r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ot(t),null;case 6:if(e&&t.stateNode!=null)Ug(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(r=ir(Oo.current),ir(Yt.current),vs(t)){if(s=t.stateNode,r=t.memoizedProps,s[Kt]=t,(d=s.nodeValue!==r)&&(e=wt,e!==null))switch(e.tag){case 3:cs(s.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&cs(s.nodeValue,r,(e.mode&1)!==0)}d&&(t.flags|=4)}else s=(r.nodeType===9?r:r.ownerDocument).createTextNode(s),s[Kt]=t,t.stateNode=s}return ot(t),null;case 13:if(Le(De),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Oe&&xt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Wm(),Fr(),t.flags|=98560,d=!1;else if(d=vs(t),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[Kt]=t}else Fr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),d=!1}else Mt!==null&&(Wc(Mt),Mt=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(De.current&1)!==0?Xe===0&&(Xe=3):Kc())),t.updateQueue!==null&&(t.flags|=4),ot(t),null);case 4:return Br(),Ic(e,t),e===null&&To(t.stateNode.containerInfo),ot(t),null;case 10:return ac(t.type._context),ot(t),null;case 17:return dt(t.type)&&fs(),ot(t),null;case 19:if(Le(De),d=t.memoizedState,d===null)return ot(t),null;if(s=(t.flags&128)!==0,y=d.rendering,y===null)if(s)Ho(d,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(y=Ss(e),y!==null){for(t.flags|=128,Ho(d,!1),s=y.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=r,r=t.child;r!==null;)d=r,e=s,d.flags&=14680066,y=d.alternate,y===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=y.childLanes,d.lanes=y.lanes,d.child=y.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=y.memoizedProps,d.memoizedState=y.memoizedState,d.updateQueue=y.updateQueue,d.type=y.type,e=y.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ze(De,De.current&1|2),t.child}e=e.sibling}d.tail!==null&&Be()>Kr&&(t.flags|=128,s=!0,Ho(d,!1),t.lanes=4194304)}else{if(!s)if(e=Ss(y),e!==null){if(t.flags|=128,s=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ho(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!Oe)return ot(t),null}else 2*Be()-d.renderingStartTime>Kr&&r!==1073741824&&(t.flags|=128,s=!0,Ho(d,!1),t.lanes=4194304);d.isBackwards?(y.sibling=t.child,t.child=y):(r=d.last,r!==null?r.sibling=y:t.child=y,d.last=y)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Be(),t.sibling=null,r=De.current,ze(De,s?r&1|2:r&1),t):(ot(t),null);case 22:case 23:return Gc(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(bt&1073741824)!==0&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function PE(e,t){switch(tc(t),t.tag){case 1:return dt(t.type)&&fs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Br(),Le(ut),Le(nt),hc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return fc(t),null;case 13:if(Le(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(De),null;case 4:return Br(),null;case 10:return ac(t.type._context),null;case 22:case 23:return Gc(),null;case 24:return null;default:return null}}var As=!1,it=!1,TE=typeof WeakSet=="function"?WeakSet:Set,J=null;function Vr(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(s){Ue(e,t,s)}else r.current=null}function zc(e,t,r){try{r()}catch(s){Ue(e,t,s)}}var Hg=!1;function jE(e,t){if(Gl=Zi,e=xm(),Dl(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var c=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var y=0,E=-1,P=-1,L=0,V=0,G=e,W=null;t:for(;;){for(var q;G!==r||c!==0&&G.nodeType!==3||(E=y+c),G!==d||s!==0&&G.nodeType!==3||(P=y+s),G.nodeType===3&&(y+=G.nodeValue.length),(q=G.firstChild)!==null;)W=G,G=q;for(;;){if(G===e)break t;if(W===r&&++L===c&&(E=y),W===d&&++V===s&&(P=y),(q=G.nextSibling)!==null)break;G=W,W=G.parentNode}G=q}r=E===-1||P===-1?null:{start:E,end:P}}else r=null}r=r||{start:0,end:0}}else r=null;for(Kl={focusedElem:e,selectionRange:r},Zi=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var re=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(re!==null){var ie=re.memoizedProps,We=re.memoizedState,z=t.stateNode,j=z.getSnapshotBeforeUpdate(t.elementType===t.type?ie:Lt(t.type,ie),We);z.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var M=t.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(K){Ue(t,t.return,K)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return re=Hg,Hg=!1,re}function Bo(e,t,r){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var c=s=s.next;do{if((c.tag&e)===e){var d=c.destroy;c.destroy=void 0,d!==void 0&&zc(t,r,d)}c=c.next}while(c!==s)}}function Is(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var s=r.create;r.destroy=s()}r=r.next}while(r!==t)}}function Mc(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Bg(e){var t=e.alternate;t!==null&&(e.alternate=null,Bg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kt],delete t[Ao],delete t[ql],delete t[pE],delete t[hE])),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 Wg(e){return e.tag===5||e.tag===3||e.tag===4}function Vg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wg(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 Lc(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=us));else if(s!==4&&(e=e.child,e!==null))for(Lc(e,t,r),e=e.sibling;e!==null;)Lc(e,t,r),e=e.sibling}function Oc(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Oc(e,t,r),e=e.sibling;e!==null;)Oc(e,t,r),e=e.sibling}var Je=null,Ot=!1;function On(e,t,r){for(r=r.child;r!==null;)Gg(e,t,r),r=r.sibling}function Gg(e,t,r){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Gi,r)}catch{}switch(r.tag){case 5:it||Vr(r,t);case 6:var s=Je,c=Ot;Je=null,On(e,t,r),Je=s,Ot=c,Je!==null&&(Ot?(e=Je,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Je.removeChild(r.stateNode));break;case 18:Je!==null&&(Ot?(e=Je,r=r.stateNode,e.nodeType===8?Ql(e.parentNode,r):e.nodeType===1&&Ql(e,r),bo(e)):Ql(Je,r.stateNode));break;case 4:s=Je,c=Ot,Je=r.stateNode.containerInfo,Ot=!0,On(e,t,r),Je=s,Ot=c;break;case 0:case 11:case 14:case 15:if(!it&&(s=r.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){c=s=s.next;do{var d=c,y=d.destroy;d=d.tag,y!==void 0&&((d&2)!==0||(d&4)!==0)&&zc(r,t,y),c=c.next}while(c!==s)}On(e,t,r);break;case 1:if(!it&&(Vr(r,t),s=r.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=r.memoizedProps,s.state=r.memoizedState,s.componentWillUnmount()}catch(E){Ue(r,t,E)}On(e,t,r);break;case 21:On(e,t,r);break;case 22:r.mode&1?(it=(s=it)||r.memoizedState!==null,On(e,t,r),it=s):On(e,t,r);break;default:On(e,t,r)}}function Kg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new TE),t.forEach(function(s){var c=$E.bind(null,e,s);r.has(s)||(r.add(s),s.then(c,c))})}}function Dt(e,t){var r=t.deletions;if(r!==null)for(var s=0;s<r.length;s++){var c=r[s];try{var d=e,y=t,E=y;e:for(;E!==null;){switch(E.tag){case 5:Je=E.stateNode,Ot=!1;break e;case 3:Je=E.stateNode.containerInfo,Ot=!0;break e;case 4:Je=E.stateNode.containerInfo,Ot=!0;break e}E=E.return}if(Je===null)throw Error(i(160));Gg(d,y,c),Je=null,Ot=!1;var P=c.alternate;P!==null&&(P.return=null),c.return=null}catch(L){Ue(c,t,L)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Yg(t,e),t=t.sibling}function Yg(e,t){var r=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),Qt(e),s&4){try{Bo(3,e,e.return),Is(3,e)}catch(ie){Ue(e,e.return,ie)}try{Bo(5,e,e.return)}catch(ie){Ue(e,e.return,ie)}}break;case 1:Dt(t,e),Qt(e),s&512&&r!==null&&Vr(r,r.return);break;case 5:if(Dt(t,e),Qt(e),s&512&&r!==null&&Vr(r,r.return),e.flags&32){var c=e.stateNode;try{co(c,"")}catch(ie){Ue(e,e.return,ie)}}if(s&4&&(c=e.stateNode,c!=null)){var d=e.memoizedProps,y=r!==null?r.memoizedProps:d,E=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{E==="input"&&d.type==="radio"&&d.name!=null&&Sn(c,d),hl(E,y);var L=hl(E,d);for(y=0;y<P.length;y+=2){var V=P[y],G=P[y+1];V==="style"?Th(c,G):V==="dangerouslySetInnerHTML"?Rh(c,G):V==="children"?co(c,G):T(c,V,G,L)}switch(E){case"input":nn(c,d);break;case"textarea":Eh(c,d);break;case"select":var W=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var q=d.value;q!=null?Cr(c,!!d.multiple,q,!1):W!==!!d.multiple&&(d.defaultValue!=null?Cr(c,!!d.multiple,d.defaultValue,!0):Cr(c,!!d.multiple,d.multiple?[]:"",!1))}c[Ao]=d}catch(ie){Ue(e,e.return,ie)}}break;case 6:if(Dt(t,e),Qt(e),s&4){if(e.stateNode===null)throw Error(i(162));c=e.stateNode,d=e.memoizedProps;try{c.nodeValue=d}catch(ie){Ue(e,e.return,ie)}}break;case 3:if(Dt(t,e),Qt(e),s&4&&r!==null&&r.memoizedState.isDehydrated)try{bo(t.containerInfo)}catch(ie){Ue(e,e.return,ie)}break;case 4:Dt(t,e),Qt(e);break;case 13:Dt(t,e),Qt(e),c=e.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||($c=Be())),s&4&&Kg(e);break;case 22:if(V=r!==null&&r.memoizedState!==null,e.mode&1?(it=(L=it)||V,Dt(t,e),it=L):Dt(t,e),Qt(e),s&8192){if(L=e.memoizedState!==null,(e.stateNode.isHidden=L)&&!V&&(e.mode&1)!==0)for(J=e,V=e.child;V!==null;){for(G=J=V;J!==null;){switch(W=J,q=W.child,W.tag){case 0:case 11:case 14:case 15:Bo(4,W,W.return);break;case 1:Vr(W,W.return);var re=W.stateNode;if(typeof re.componentWillUnmount=="function"){s=W,r=W.return;try{t=s,re.props=t.memoizedProps,re.state=t.memoizedState,re.componentWillUnmount()}catch(ie){Ue(s,r,ie)}}break;case 5:Vr(W,W.return);break;case 22:if(W.memoizedState!==null){qg(G);continue}}q!==null?(q.return=W,J=q):qg(G)}V=V.sibling}e:for(V=null,G=e;;){if(G.tag===5){if(V===null){V=G;try{c=G.stateNode,L?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(E=G.stateNode,P=G.memoizedProps.style,y=P!=null&&P.hasOwnProperty("display")?P.display:null,E.style.display=Ph("display",y))}catch(ie){Ue(e,e.return,ie)}}}else if(G.tag===6){if(V===null)try{G.stateNode.nodeValue=L?"":G.memoizedProps}catch(ie){Ue(e,e.return,ie)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===e)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===e)break e;for(;G.sibling===null;){if(G.return===null||G.return===e)break e;V===G&&(V=null),G=G.return}V===G&&(V=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Dt(t,e),Qt(e),s&4&&Kg(e);break;case 21:break;default:Dt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Wg(r)){var s=r;break e}r=r.return}throw Error(i(160))}switch(s.tag){case 5:var c=s.stateNode;s.flags&32&&(co(c,""),s.flags&=-33);var d=Vg(e);Oc(e,d,c);break;case 3:case 4:var y=s.stateNode.containerInfo,E=Vg(e);Lc(e,E,y);break;default:throw Error(i(161))}}catch(P){Ue(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function AE(e,t,r){J=e,Xg(e)}function Xg(e,t,r){for(var s=(e.mode&1)!==0;J!==null;){var c=J,d=c.child;if(c.tag===22&&s){var y=c.memoizedState!==null||As;if(!y){var E=c.alternate,P=E!==null&&E.memoizedState!==null||it;E=As;var L=it;if(As=y,(it=P)&&!L)for(J=c;J!==null;)y=J,P=y.child,y.tag===22&&y.memoizedState!==null?Zg(c):P!==null?(P.return=y,J=P):Zg(c);for(;d!==null;)J=d,Xg(d),d=d.sibling;J=c,As=E,it=L}Qg(e)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,J=d):Qg(e)}}function Qg(e){for(;J!==null;){var t=J;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:it||Is(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!it)if(r===null)s.componentDidMount();else{var c=t.elementType===t.type?r.memoizedProps:Lt(t.type,r.memoizedProps);s.componentDidUpdate(c,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&qm(t,d,s);break;case 3:var y=t.updateQueue;if(y!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}qm(t,y,r)}break;case 5:var E=t.stateNode;if(r===null&&t.flags&4){r=E;var P=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&r.focus();break;case"img":P.src&&(r.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var L=t.alternate;if(L!==null){var V=L.memoizedState;if(V!==null){var G=V.dehydrated;G!==null&&bo(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}it||t.flags&512&&Mc(t)}catch(W){Ue(t,t.return,W)}}if(t===e){J=null;break}if(r=t.sibling,r!==null){r.return=t.return,J=r;break}J=t.return}}function qg(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var r=t.sibling;if(r!==null){r.return=t.return,J=r;break}J=t.return}}function Zg(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Is(4,t)}catch(P){Ue(t,r,P)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var c=t.return;try{s.componentDidMount()}catch(P){Ue(t,c,P)}}var d=t.return;try{Mc(t)}catch(P){Ue(t,d,P)}break;case 5:var y=t.return;try{Mc(t)}catch(P){Ue(t,y,P)}}}catch(P){Ue(t,t.return,P)}if(t===e){J=null;break}var E=t.sibling;if(E!==null){E.return=t.return,J=E;break}J=t.return}}var IE=Math.ceil,zs=I.ReactCurrentDispatcher,Dc=I.ReactCurrentOwner,Nt=I.ReactCurrentBatchConfig,Te=0,qe=null,Ve=null,et=0,bt=0,Gr=An(0),Xe=0,Wo=null,ar=0,Ms=0,Fc=0,Vo=null,pt=null,$c=0,Kr=1/0,dn=null,Ls=!1,Uc=null,Dn=null,Os=!1,Fn=null,Ds=0,Go=0,Hc=null,Fs=-1,$s=0;function at(){return(Te&6)!==0?Be():Fs!==-1?Fs:Fs=Be()}function $n(e){return(e.mode&1)===0?1:(Te&2)!==0&&et!==0?et&-et:gE.transition!==null?($s===0&&($s=Vh()),$s):(e=Ie,e!==0||(e=window.event,e=e===void 0?16:em(e.type)),e)}function Ft(e,t,r,s){if(50<Go)throw Go=0,Hc=null,Error(i(185));go(e,r,s),((Te&2)===0||e!==qe)&&(e===qe&&((Te&2)===0&&(Ms|=r),Xe===4&&Un(e,et)),ht(e,s),r===1&&Te===0&&(t.mode&1)===0&&(Kr=Be()+500,hs&&zn()))}function ht(e,t){var r=e.callbackNode;gC(e,t);var s=Xi(e,e===qe?et:0);if(s===0)r!==null&&Hh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(r!=null&&Hh(r),t===1)e.tag===0?mE(ev.bind(null,e)):Fm(ev.bind(null,e)),dE(function(){(Te&6)===0&&zn()}),r=null;else{switch(Gh(s)){case 1:r=bl;break;case 4:r=Bh;break;case 16:r=Vi;break;case 536870912:r=Wh;break;default:r=Vi}r=lv(r,Jg.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Jg(e,t){if(Fs=-1,$s=0,(Te&6)!==0)throw Error(i(327));var r=e.callbackNode;if(Yr()&&e.callbackNode!==r)return null;var s=Xi(e,e===qe?et:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=Us(e,s);else{t=s;var c=Te;Te|=2;var d=nv();(qe!==e||et!==t)&&(dn=null,Kr=Be()+500,cr(e,t));do try{LE();break}catch(E){tv(e,E)}while(!0);sc(),zs.current=d,Te=c,Ve!==null?t=0:(qe=null,et=0,t=Xe)}if(t!==0){if(t===2&&(c=kl(e),c!==0&&(s=c,t=Bc(e,c))),t===1)throw r=Wo,cr(e,0),Un(e,s),ht(e,Be()),r;if(t===6)Un(e,s);else{if(c=e.current.alternate,(s&30)===0&&!zE(c)&&(t=Us(e,s),t===2&&(d=kl(e),d!==0&&(s=d,t=Bc(e,d))),t===1))throw r=Wo,cr(e,0),Un(e,s),ht(e,Be()),r;switch(e.finishedWork=c,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:ur(e,pt,dn);break;case 3:if(Un(e,s),(s&130023424)===s&&(t=$c+500-Be(),10<t)){if(Xi(e,0)!==0)break;if(c=e.suspendedLanes,(c&s)!==s){at(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Xl(ur.bind(null,e,pt,dn),t);break}ur(e,pt,dn);break;case 4:if(Un(e,s),(s&4194240)===s)break;for(t=e.eventTimes,c=-1;0<s;){var y=31-It(s);d=1<<y,y=t[y],y>c&&(c=y),s&=~d}if(s=c,s=Be()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*IE(s/1960))-s,10<s){e.timeoutHandle=Xl(ur.bind(null,e,pt,dn),s);break}ur(e,pt,dn);break;case 5:ur(e,pt,dn);break;default:throw Error(i(329))}}}return ht(e,Be()),e.callbackNode===r?Jg.bind(null,e):null}function Bc(e,t){var r=Vo;return e.current.memoizedState.isDehydrated&&(cr(e,t).flags|=256),e=Us(e,t),e!==2&&(t=pt,pt=r,t!==null&&Wc(t)),e}function Wc(e){pt===null?pt=e:pt.push.apply(pt,e)}function zE(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var s=0;s<r.length;s++){var c=r[s],d=c.getSnapshot;c=c.value;try{if(!zt(d(),c))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Un(e,t){for(t&=~Fc,t&=~Ms,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-It(t),s=1<<r;e[r]=-1,t&=~s}}function ev(e){if((Te&6)!==0)throw Error(i(327));Yr();var t=Xi(e,0);if((t&1)===0)return ht(e,Be()),null;var r=Us(e,t);if(e.tag!==0&&r===2){var s=kl(e);s!==0&&(t=s,r=Bc(e,s))}if(r===1)throw r=Wo,cr(e,0),Un(e,t),ht(e,Be()),r;if(r===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ur(e,pt,dn),ht(e,Be()),null}function Vc(e,t){var r=Te;Te|=1;try{return e(t)}finally{Te=r,Te===0&&(Kr=Be()+500,hs&&zn())}}function lr(e){Fn!==null&&Fn.tag===0&&(Te&6)===0&&Yr();var t=Te;Te|=1;var r=Nt.transition,s=Ie;try{if(Nt.transition=null,Ie=1,e)return e()}finally{Ie=s,Nt.transition=r,Te=t,(Te&6)===0&&zn()}}function Gc(){bt=Gr.current,Le(Gr)}function cr(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,uE(r)),Ve!==null)for(r=Ve.return;r!==null;){var s=r;switch(tc(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&fs();break;case 3:Br(),Le(ut),Le(nt),hc();break;case 5:fc(s);break;case 4:Br();break;case 13:Le(De);break;case 19:Le(De);break;case 10:ac(s.type._context);break;case 22:case 23:Gc()}r=r.return}if(qe=e,Ve=e=Hn(e.current,null),et=bt=t,Xe=0,Wo=null,Fc=Ms=ar=0,pt=Vo=null,or!==null){for(t=0;t<or.length;t++)if(r=or[t],s=r.interleaved,s!==null){r.interleaved=null;var c=s.next,d=r.pending;if(d!==null){var y=d.next;d.next=c,s.next=y}r.pending=s}or=null}return e}function tv(e,t){do{var r=Ve;try{if(sc(),Cs.current=Rs,Es){for(var s=Fe.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}Es=!1}if(sr=0,Qe=Ye=Fe=null,Do=!1,Fo=0,Dc.current=null,r===null||r.return===null){Xe=1,Wo=t,Ve=null;break}e:{var d=e,y=r.return,E=r,P=t;if(t=et,E.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var L=P,V=E,G=V.tag;if((V.mode&1)===0&&(G===0||G===11||G===15)){var W=V.alternate;W?(V.updateQueue=W.updateQueue,V.memoizedState=W.memoizedState,V.lanes=W.lanes):(V.updateQueue=null,V.memoizedState=null)}var q=_g(y);if(q!==null){q.flags&=-257,Ng(q,y,E,d,t),q.mode&1&&Eg(d,L,t),t=q,P=L;var re=t.updateQueue;if(re===null){var ie=new Set;ie.add(P),t.updateQueue=ie}else re.add(P);break e}else{if((t&1)===0){Eg(d,L,t),Kc();break e}P=Error(i(426))}}else if(Oe&&E.mode&1){var We=_g(y);if(We!==null){(We.flags&65536)===0&&(We.flags|=256),Ng(We,y,E,d,t),oc(Wr(P,E));break e}}d=P=Wr(P,E),Xe!==4&&(Xe=2),Vo===null?Vo=[d]:Vo.push(d),d=y;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var z=Sg(d,P,t);Qm(d,z);break e;case 1:E=P;var j=d.type,M=d.stateNode;if((d.flags&128)===0&&(typeof j.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Dn===null||!Dn.has(M)))){d.flags|=65536,t&=-t,d.lanes|=t;var K=Cg(d,E,t);Qm(d,K);break e}}d=d.return}while(d!==null)}ov(r)}catch(ce){t=ce,Ve===r&&r!==null&&(Ve=r=r.return);continue}break}while(!0)}function nv(){var e=zs.current;return zs.current=Rs,e===null?Rs:e}function Kc(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),qe===null||(ar&268435455)===0&&(Ms&268435455)===0||Un(qe,et)}function Us(e,t){var r=Te;Te|=2;var s=nv();(qe!==e||et!==t)&&(dn=null,cr(e,t));do try{ME();break}catch(c){tv(e,c)}while(!0);if(sc(),Te=r,zs.current=s,Ve!==null)throw Error(i(261));return qe=null,et=0,Xe}function ME(){for(;Ve!==null;)rv(Ve)}function LE(){for(;Ve!==null&&!aC();)rv(Ve)}function rv(e){var t=av(e.alternate,e,bt);e.memoizedProps=e.pendingProps,t===null?ov(e):Ve=t,Dc.current=null}function ov(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=RE(r,t,bt),r!==null){Ve=r;return}}else{if(r=PE(r,t),r!==null){r.flags&=32767,Ve=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,Ve=null;return}}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);Xe===0&&(Xe=5)}function ur(e,t,r){var s=Ie,c=Nt.transition;try{Nt.transition=null,Ie=1,OE(e,t,r,s)}finally{Nt.transition=c,Ie=s}return null}function OE(e,t,r,s){do Yr();while(Fn!==null);if((Te&6)!==0)throw Error(i(327));r=e.finishedWork;var c=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var d=r.lanes|r.childLanes;if(vC(e,d),e===qe&&(Ve=qe=null,et=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Os||(Os=!0,lv(Vi,function(){return Yr(),null})),d=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||d){d=Nt.transition,Nt.transition=null;var y=Ie;Ie=1;var E=Te;Te|=4,Dc.current=null,jE(e,r),Yg(r,e),rE(Kl),Zi=!!Gl,Kl=Gl=null,e.current=r,AE(r),lC(),Te=E,Ie=y,Nt.transition=d}else e.current=r;if(Os&&(Os=!1,Fn=e,Ds=c),d=e.pendingLanes,d===0&&(Dn=null),dC(r.stateNode),ht(e,Be()),t!==null)for(s=e.onRecoverableError,r=0;r<t.length;r++)c=t[r],s(c.value,{componentStack:c.stack,digest:c.digest});if(Ls)throw Ls=!1,e=Uc,Uc=null,e;return(Ds&1)!==0&&e.tag!==0&&Yr(),d=e.pendingLanes,(d&1)!==0?e===Hc?Go++:(Go=0,Hc=e):Go=0,zn(),null}function Yr(){if(Fn!==null){var e=Gh(Ds),t=Nt.transition,r=Ie;try{if(Nt.transition=null,Ie=16>e?16:e,Fn===null)var s=!1;else{if(e=Fn,Fn=null,Ds=0,(Te&6)!==0)throw Error(i(331));var c=Te;for(Te|=4,J=e.current;J!==null;){var d=J,y=d.child;if((J.flags&16)!==0){var E=d.deletions;if(E!==null){for(var P=0;P<E.length;P++){var L=E[P];for(J=L;J!==null;){var V=J;switch(V.tag){case 0:case 11:case 15:Bo(8,V,d)}var G=V.child;if(G!==null)G.return=V,J=G;else for(;J!==null;){V=J;var W=V.sibling,q=V.return;if(Bg(V),V===L){J=null;break}if(W!==null){W.return=q,J=W;break}J=q}}}var re=d.alternate;if(re!==null){var ie=re.child;if(ie!==null){re.child=null;do{var We=ie.sibling;ie.sibling=null,ie=We}while(ie!==null)}}J=d}}if((d.subtreeFlags&2064)!==0&&y!==null)y.return=d,J=y;else e:for(;J!==null;){if(d=J,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:Bo(9,d,d.return)}var z=d.sibling;if(z!==null){z.return=d.return,J=z;break e}J=d.return}}var j=e.current;for(J=j;J!==null;){y=J;var M=y.child;if((y.subtreeFlags&2064)!==0&&M!==null)M.return=y,J=M;else e:for(y=j;J!==null;){if(E=J,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:Is(9,E)}}catch(ce){Ue(E,E.return,ce)}if(E===y){J=null;break e}var K=E.sibling;if(K!==null){K.return=E.return,J=K;break e}J=E.return}}if(Te=c,zn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Gi,e)}catch{}s=!0}return s}finally{Ie=r,Nt.transition=t}}return!1}function iv(e,t,r){t=Wr(r,t),t=Sg(e,t,1),e=Ln(e,t,1),t=at(),e!==null&&(go(e,1,t),ht(e,t))}function Ue(e,t,r){if(e.tag===3)iv(e,e,r);else for(;t!==null;){if(t.tag===3){iv(t,e,r);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Dn===null||!Dn.has(s))){e=Wr(r,e),e=Cg(t,e,1),t=Ln(t,e,1),e=at(),t!==null&&(go(t,1,e),ht(t,e));break}}t=t.return}}function DE(e,t,r){var s=e.pingCache;s!==null&&s.delete(t),t=at(),e.pingedLanes|=e.suspendedLanes&r,qe===e&&(et&r)===r&&(Xe===4||Xe===3&&(et&130023424)===et&&500>Be()-$c?cr(e,0):Fc|=r),ht(e,t)}function sv(e,t){t===0&&((e.mode&1)===0?t=1:(t=Yi,Yi<<=1,(Yi&130023424)===0&&(Yi=4194304)));var r=at();e=ln(e,t),e!==null&&(go(e,t,r),ht(e,r))}function FE(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),sv(e,r)}function $E(e,t){var r=0;switch(e.tag){case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(r=c.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),sv(e,r)}var av;av=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)ft=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return ft=!1,NE(e,t,r);ft=(e.flags&131072)!==0}else ft=!1,Oe&&(t.flags&1048576)!==0&&$m(t,gs,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;js(e,t),e=t.pendingProps;var c=Lr(t,nt.current);Hr(t,r),c=vc(null,t,s,e,c,r);var d=yc();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,dt(s)?(d=!0,ps(t)):d=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,uc(t),c.updater=Ps,t.stateNode=c,c._reactInternals=t,Cc(t,s,e,r),t=Rc(null,t,s,!0,d,r)):(t.tag=0,Oe&&d&&ec(t),st(null,t,c,r),t=t.child),t;case 16:s=t.elementType;e:{switch(js(e,t),e=t.pendingProps,c=s._init,s=c(s._payload),t.type=s,c=t.tag=HE(s),e=Lt(s,e),c){case 0:t=Nc(null,t,s,e,r);break e;case 1:t=Ig(null,t,s,e,r);break e;case 11:t=Rg(null,t,s,e,r);break e;case 14:t=Pg(null,t,s,Lt(s.type,e),r);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Lt(s,c),Nc(e,t,s,c,r);case 1:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Lt(s,c),Ig(e,t,s,c,r);case 3:e:{if(zg(t),e===null)throw Error(i(387));s=t.pendingProps,d=t.memoizedState,c=d.element,Xm(e,t),ks(t,s,null,r);var y=t.memoizedState;if(s=y.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){c=Wr(Error(i(423)),t),t=Mg(e,t,s,r,c);break e}else if(s!==c){c=Wr(Error(i(424)),t),t=Mg(e,t,s,r,c);break e}else for(xt=jn(t.stateNode.containerInfo.firstChild),wt=t,Oe=!0,Mt=null,r=Km(t,null,s,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Fr(),s===c){t=un(e,t,r);break e}st(e,t,s,r)}t=t.child}return t;case 5:return Zm(t),e===null&&rc(t),s=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,y=c.children,Yl(s,c)?y=null:d!==null&&Yl(s,d)&&(t.flags|=32),Ag(e,t),st(e,t,y,r),t.child;case 6:return e===null&&rc(t),null;case 13:return Lg(e,t,r);case 4:return dc(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=$r(t,null,s,r):st(e,t,s,r),t.child;case 11:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Lt(s,c),Rg(e,t,s,c,r);case 7:return st(e,t,t.pendingProps,r),t.child;case 8:return st(e,t,t.pendingProps.children,r),t.child;case 12:return st(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(s=t.type._context,c=t.pendingProps,d=t.memoizedProps,y=c.value,ze(ws,s._currentValue),s._currentValue=y,d!==null)if(zt(d.value,y)){if(d.children===c.children&&!ut.current){t=un(e,t,r);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var E=d.dependencies;if(E!==null){y=d.child;for(var P=E.firstContext;P!==null;){if(P.context===s){if(d.tag===1){P=cn(-1,r&-r),P.tag=2;var L=d.updateQueue;if(L!==null){L=L.shared;var V=L.pending;V===null?P.next=P:(P.next=V.next,V.next=P),L.pending=P}}d.lanes|=r,P=d.alternate,P!==null&&(P.lanes|=r),lc(d.return,r,t),E.lanes|=r;break}P=P.next}}else if(d.tag===10)y=d.type===t.type?null:d.child;else if(d.tag===18){if(y=d.return,y===null)throw Error(i(341));y.lanes|=r,E=y.alternate,E!==null&&(E.lanes|=r),lc(y,r,t),y=d.sibling}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===t){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}st(e,t,c.children,r),t=t.child}return t;case 9:return c=t.type,s=t.pendingProps.children,Hr(t,r),c=Et(c),s=s(c),t.flags|=1,st(e,t,s,r),t.child;case 14:return s=t.type,c=Lt(s,t.pendingProps),c=Lt(s.type,c),Pg(e,t,s,c,r);case 15:return Tg(e,t,t.type,t.pendingProps,r);case 17:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Lt(s,c),js(e,t),t.tag=1,dt(s)?(e=!0,ps(t)):e=!1,Hr(t,r),bg(t,s,c),Cc(t,s,c,r),Rc(null,t,s,!0,e,r);case 19:return Dg(e,t,r);case 22:return jg(e,t,r)}throw Error(i(156,t.tag))};function lv(e,t){return Uh(e,t)}function UE(e,t,r,s){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,r,s){return new UE(e,t,r,s)}function Yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HE(e){if(typeof e=="function")return Yc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===se)return 11;if(e===Se)return 14}return 2}function Hn(e,t){var r=e.alternate;return r===null?(r=Rt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Hs(e,t,r,s,c,d){var y=2;if(s=e,typeof e=="function")Yc(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case O:return dr(r.children,c,d,t);case D:y=8,c|=8;break;case Y:return e=Rt(12,r,t,c|2),e.elementType=Y,e.lanes=d,e;case ve:return e=Rt(13,r,t,c),e.elementType=ve,e.lanes=d,e;case xe:return e=Rt(19,r,t,c),e.elementType=xe,e.lanes=d,e;case ae:return Bs(r,c,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case te:y=10;break e;case ne:y=9;break e;case se:y=11;break e;case Se:y=14;break e;case Z:y=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Rt(y,r,t,c),t.elementType=e,t.type=s,t.lanes=d,t}function dr(e,t,r,s){return e=Rt(7,e,s,t),e.lanes=r,e}function Bs(e,t,r,s){return e=Rt(22,e,s,t),e.elementType=ae,e.lanes=r,e.stateNode={isHidden:!1},e}function Xc(e,t,r){return e=Rt(6,e,null,t),e.lanes=r,e}function Qc(e,t,r){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function BE(e,t,r,s,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=Sl(0),this.expirationTimes=Sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sl(0),this.identifierPrefix=s,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function qc(e,t,r,s,c,d,y,E,P){return e=new BE(e,t,r,E,P),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Rt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:s,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},uc(d),e}function WE(e,t,r){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:s==null?null:""+s,children:e,containerInfo:t,implementation:r}}function cv(e){if(!e)return In;e=e._reactInternals;e:{if(Jn(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(dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var r=e.type;if(dt(r))return Om(e,r,t)}return t}function uv(e,t,r,s,c,d,y,E,P){return e=qc(r,s,!0,e,c,d,y,E,P),e.context=cv(null),r=e.current,s=at(),c=$n(r),d=cn(s,c),d.callback=t??null,Ln(r,d,c),e.current.lanes=c,go(e,c,s),ht(e,s),e}function Ws(e,t,r,s){var c=t.current,d=at(),y=$n(c);return r=cv(r),t.context===null?t.context=r:t.pendingContext=r,t=cn(d,y),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Ln(c,t,y),e!==null&&(Ft(e,c,y,d),bs(e,c,y)),y}function Vs(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 dv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Zc(e,t){dv(e,t),(e=e.alternate)&&dv(e,t)}function VE(){return null}var fv=typeof reportError=="function"?reportError:function(e){console.error(e)};function Jc(e){this._internalRoot=e}Gs.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Ws(e,t,null,null)},Gs.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lr(function(){Ws(null,e,null,null)}),t[rn]=null}};function Gs(e){this._internalRoot=e}Gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xh();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Rn.length&&t!==0&&t<Rn[r].priority;r++);Rn.splice(r,0,e),r===0&&Zh(e)}};function eu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pv(){}function GE(e,t,r,s,c){if(c){if(typeof s=="function"){var d=s;s=function(){var L=Vs(y);d.call(L)}}var y=uv(t,s,e,0,null,!1,!1,"",pv);return e._reactRootContainer=y,e[rn]=y.current,To(e.nodeType===8?e.parentNode:e),lr(),y}for(;c=e.lastChild;)e.removeChild(c);if(typeof s=="function"){var E=s;s=function(){var L=Vs(P);E.call(L)}}var P=qc(e,0,!1,null,null,!1,!1,"",pv);return e._reactRootContainer=P,e[rn]=P.current,To(e.nodeType===8?e.parentNode:e),lr(function(){Ws(t,P,r,s)}),P}function Ys(e,t,r,s,c){var d=r._reactRootContainer;if(d){var y=d;if(typeof c=="function"){var E=c;c=function(){var P=Vs(y);E.call(P)}}Ws(t,y,e,c)}else y=GE(r,t,e,c,s);return Vs(y)}Kh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=mo(t.pendingLanes);r!==0&&(Cl(t,r|1),ht(t,Be()),(Te&6)===0&&(Kr=Be()+500,zn()))}break;case 13:lr(function(){var s=ln(e,1);if(s!==null){var c=at();Ft(s,e,1,c)}}),Zc(e,1)}},El=function(e){if(e.tag===13){var t=ln(e,134217728);if(t!==null){var r=at();Ft(t,e,134217728,r)}Zc(e,134217728)}},Yh=function(e){if(e.tag===13){var t=$n(e),r=ln(e,t);if(r!==null){var s=at();Ft(r,e,t,s)}Zc(e,t)}},Xh=function(){return Ie},Qh=function(e,t){var r=Ie;try{return Ie=e,t()}finally{Ie=r}},vl=function(e,t,r){switch(t){case"input":if(nn(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var s=r[t];if(s!==e&&s.form===e.form){var c=ds(s);if(!c)throw Error(i(90));Re(s),nn(s,c)}}}break;case"textarea":Eh(e,r);break;case"select":t=r.value,t!=null&&Cr(e,!!r.multiple,t,!1)}},zh=Vc,Mh=lr;var KE={usingClientEntryPoint:!1,Events:[Io,zr,ds,Ah,Ih,Vc]},Ko={findFiberByHostInstance:er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},YE={bundleType:Ko.bundleType,version:Ko.version,rendererPackageName:Ko.rendererPackageName,rendererConfig:Ko.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Fh(e),e===null?null:e.stateNode},findFiberByHostInstance:Ko.findFiberByHostInstance||VE,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 Xs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xs.isDisabled&&Xs.supportsFiber)try{Gi=Xs.inject(YE),Gt=Xs}catch{}}return lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KE,lt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!eu(t))throw Error(i(200));return WE(e,t,null,r)},lt.createRoot=function(e,t){if(!eu(e))throw Error(i(299));var r=!1,s="",c=fv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=qc(e,1,!1,null,null,r,!1,s,c),e[rn]=t.current,To(e.nodeType===8?e.parentNode:e),new Jc(t)},lt.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=Fh(t),e=e===null?null:e.stateNode,e},lt.flushSync=function(e){return lr(e)},lt.hydrate=function(e,t,r){if(!Ks(t))throw Error(i(200));return Ys(null,e,t,!0,r)},lt.hydrateRoot=function(e,t,r){if(!eu(e))throw Error(i(405));var s=r!=null&&r.hydratedSources||null,c=!1,d="",y=fv;if(r!=null&&(r.unstable_strictMode===!0&&(c=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(y=r.onRecoverableError)),t=uv(t,null,e,1,r??null,c,!1,d,y),e[rn]=t.current,To(e),s)for(e=0;e<s.length;e++)r=s[e],c=r._getVersion,c=c(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,c]:t.mutableSourceEagerHydrationData.push(r,c);return new Gs(t)},lt.render=function(e,t,r){if(!Ks(t))throw Error(i(200));return Ys(null,e,t,!1,r)},lt.unmountComponentAtNode=function(e){if(!Ks(e))throw Error(i(40));return e._reactRootContainer?(lr(function(){Ys(null,null,e,!1,function(){e._reactRootContainer=null,e[rn]=null})}),!0):!1},lt.unstable_batchedUpdates=Vc,lt.unstable_renderSubtreeIntoContainer=function(e,t,r,s){if(!Ks(r))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Ys(e,t,r,!1,s)},lt.version="18.3.1-next-f1338f8080-20240426",lt}var cu;function uu(){if(cu)return qs.exports;cu=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(o){console.error(o)}}return n(),qs.exports=wv(),qs.exports}var du;function xv(){if(du)return Xo;du=1;var n=uu();return Xo.createRoot=n.createRoot,Xo.hydrateRoot=n.hydrateRoot,Xo}var bv=xv();const kv='/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--color-red-100:oklch(93.6% .032 17.717);--color-red-800:oklch(44.4% .177 26.899);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-800:oklch(43.2% .095 166.913);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-800:oklch(43.8% .218 303.724);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-800:oklch(45.9% .187 3.815);--color-gray-800:oklch(27.8% .033 256.848);--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans,ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);--default-mono-font-family:var(--font-geist-mono,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-colored:0 0 #0000;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*,:before,:after{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}:host{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.right-8{right:calc(var(--spacing) * 8)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-8{bottom:calc(var(--spacing) * 8)}.bottom-24{bottom:calc(var(--spacing) * 24)}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-1000{z-index:1000}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.-mt-2\\.5{margin-top:calc(var(--spacing) * -2.5)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-4{margin-right:calc(var(--spacing) * 4)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-2\\.5{margin-left:calc(var(--spacing) * -2.5)}.flex{display:flex}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-12{height:calc(var(--spacing) * 12)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-48{height:calc(var(--spacing) * 48)}.h-64{height:calc(var(--spacing) * 64)}.h-\\[700px\\]{height:700px}.h-auto{height:auto}.h-full{height:100%}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-6{width:calc(var(--spacing) * 6)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-48{width:calc(var(--spacing) * 48)}.w-\\[900px\\]{width:900px}.w-full{width:100%}.max-w-\\[200px\\]{max-width:200px}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-12{gap:calc(var(--spacing) * 12)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--border)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-border{border-color:var(--border)}.border-transparent{border-color:#0000}.border-zinc-200{border-color:#e4e4e4}.bg-amber-100{background-color:var(--color-amber-100)}.bg-background{background-color:var(--background)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-foreground\\/35{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\\/35{background-color:color-mix(in oklab,var(--foreground) 35%,transparent)}}.bg-foreground\\/70{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground\\/70{background-color:color-mix(in oklab,var(--foreground) 70%,transparent)}}.bg-gray-100{background-color:#f3f4f6}.bg-muted{background-color:var(--muted)}.bg-pink-100{background-color:var(--color-pink-100)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-100{background-color:var(--color-red-100)}.bg-transparent{background-color:#0000}.bg-white{background-color:#fff}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.text-center{text-align:center}.text-left{text-align:left}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-amber-800{color:var(--color-amber-800)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-800{color:var(--color-emerald-800)}.text-foreground,.text-foreground\\/70{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\\/70{color:color-mix(in oklab,var(--foreground) 70%,transparent)}}.text-foreground\\/75{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\\/75{color:color-mix(in oklab,var(--foreground) 75%,transparent)}}.text-gray-800{color:var(--color-gray-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-pink-800{color:var(--color-pink-800)}.text-purple-800{color:var(--color-purple-800)}.text-red-800{color:var(--color-red-800)}.text-zinc-300{color:#d4d4d4}.text-zinc-500{color:#727272}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_0_0_1px_rgba\\(255\\,255\\,255\\,0\\.16\\)\\,0_0_0_1px_rgba\\(0\\,0\\,0\\,0\\.22\\)\\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,#ffffff29), 0 0 0 1px var(--tw-shadow-color,#00000038);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-zinc-200{--tw-ring-color:oklch(92% 0 0)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media(hover:hover){.group-hover\\/resize\\:bg-foreground\\/55:is(:where(.group\\/resize):hover *){background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.group-hover\\/resize\\:bg-foreground\\/55:is(:where(.group\\/resize):hover *){background-color:color-mix(in oklab,var(--foreground) 55%,transparent)}}.group-hover\\/resize\\:opacity-100:is(:where(.group\\/resize):hover *){opacity:1}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-accent\\/70:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-accent\\/70:hover{background-color:color-mix(in oklab,var(--accent) 70%,transparent)}}.hover\\:text-foreground:hover{color:var(--foreground)}.hover\\:text-zinc-900:hover{color:#181818}.hover\\:opacity-100:hover{opacity:1}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-ring\\/40:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-ring\\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 40%, transparent)}}.dark\\:border-zinc-300:is(.dark *){border-color:#d4d4d4}.dark\\:bg-background:is(.dark *){background-color:var(--background)}.dark\\:bg-white:is(.dark *){background-color:#fff}.dark\\:ring-zinc-300:is(.dark *){--tw-ring-color:oklch(87.1% 0 0)}@media(hover:hover){.dark\\:group-hover\\/resize\\:bg-white:is(.dark *):is(:where(.group\\/resize):hover *){background-color:#fff}}.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-90[data-state=open]>svg{rotate:90deg}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:host{--radius:.625rem;--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08)}:host([theme=dark]),:host(.dark){--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439)}@keyframes sparkle-swipe-in{0%{opacity:0;color:#facc15;filter:drop-shadow(-8px 8px #a855f700)}28%{opacity:1;color:#d8b4fe;filter:drop-shadow(-2px 2px 8px #a855f7cc)}55%{color:#a855f7;filter:drop-shadow(3px -3px 10px #a855f7f2)}to{opacity:1;color:#facc15;filter:drop-shadow(0 0 #a855f700)}}@keyframes sparkle-twinkle{0%,to{opacity:.82;filter:drop-shadow(0 0 #facc1500)}50%{opacity:1;filter:drop-shadow(0 0 7px #facc1580)}}.sparkle-icon{color:#facc15;vertical-align:middle;transform-origin:50%;will-change:transform,filter,color,opacity;line-height:1;animation:1.15s cubic-bezier(.22,1,.36,1) sparkle-swipe-in,2.1s ease-in-out 1.15s infinite sparkle-twinkle;display:inline-block;transform:rotate(10deg)}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}';var m=Yo();const mt=$t(m),fu=Wn({__proto__:null,default:mt},[m]),Sv=()=>{try{return"d7ba0b0a-697b-4229-9adb-5749af6c74bc"}catch{return"dev"}},Vn=new Map,Cv=async(n,o)=>{const i=Vn.get(n.id);if(i)return i;if(!n.bundleUrl)return console.warn(`[SandboxManager] Extension ${n.id} is missing bundleUrl — skipping sandbox creation`),null;const a=document.createElement("iframe");if(a.setAttribute("sandbox","allow-scripts allow-same-origin"),a.style.display="none",a.style.width="0",a.style.height="0",a.style.border="none",n.bundleUrl.startsWith("http")&&!n.bundleUrl.endsWith(".js")){const p=new URL(n.bundleUrl);p.searchParams.set("__extensionId",n.id),a.src=p.toString(),console.warn(`[SandboxManager] Creating dev sandbox for ${n.id}, injecting __extensionId via query param, url: ${p.toString()}`)}else{let p="";try{const v=Sv();p=await(await fetch(`${n.bundleUrl}?_b=${v}`)).text()}catch(v){console.error(`[SandboxManager] Failed to fetch bundle for ${n.id}:`,v)}const h=`<!DOCTYPE html>
|
|
41
41
|
<html>
|
|
42
42
|
<head>
|
|
43
43
|
<meta charset="utf-8">
|
|
@@ -48,12 +48,12 @@ Error generating stack: `+d.message+`
|
|
|
48
48
|
<script>var __STACKABLE_EXTENSION_ID__ = ${JSON.stringify(n.id)}; var process = { env: { NODE_ENV: "production" } };<\/script>
|
|
49
49
|
<script type="module">${p}<\/script>
|
|
50
50
|
</body>
|
|
51
|
-
</html>`;l.srcdoc=h,console.warn(`[SandboxManager] Creating srcdoc sandbox for ${n.id}, srcdoc starts with: ${h.substring(0,300)}`)}o.appendChild(l);const u={extensionId:n.id,iframe:l,manifest:n.manifest,ready:!1,messageHandlers:new Set},f=p=>{const h=p.data;!h||typeof h!="object"||!("type"in h)||("extensionId"in h?h.extensionId:void 0)!==n.id||(h.type==="extension-ready"&&(u.ready=!0),u.messageHandlers.forEach(w=>w(h)))};return window.addEventListener("message",f),Vn.set(n.id,u),u},Qo=(n,o)=>{const i=Vn.get(n);if(!(i!=null&&i.iframe.contentWindow)){console.warn(`Sandbox not found for extension: ${n}`);return}i.iframe.contentWindow.postMessage(o,"*")},fr=n=>Vn.get(n),Ev=n=>{const o=Vn.get(n);o&&(o.iframe.remove(),o.messageHandlers.clear(),Vn.delete(n))},_v=()=>Vn,Nv=["ui-card","ui-card-content","ui-card-header","ui-button","ui-text","ui-heading","ui-badge","ui-input","ui-textarea","ui-select","ui-select-option","ui-checkbox","ui-switch","ui-label","ui-radio-group","ui-radio-group-item","ui-stack","ui-inline","ui-separator","ui-tabs","ui-tabs-list","ui-tabs-trigger","ui-tabs-content","ui-scroll-area","ui-avatar","ui-icon","ui-link","ui-menu","ui-menu-item","ui-skeleton","ui-tooltip","ui-progress","ui-alert","ui-collapsible","ui-collapsible-trigger","ui-collapsible-content"],Rv={"ui-card":["className","onClick"],"ui-card-content":["className"],"ui-card-header":["className"],"ui-button":["variant","size","disabled","onClick","type","className","title"],"ui-text":["className","tone"],"ui-heading":["level","className"],"ui-badge":["variant","tone","className"],"ui-input":["type","placeholder","value","onChange","disabled","className","id"],"ui-textarea":["placeholder","value","onChange","disabled","rows","className","id"],"ui-select":["value","defaultValue","onChange","placeholder","disabled","className"],"ui-select-option":["value","disabled","className"],"ui-checkbox":["checked","onChange","disabled","className","id"],"ui-switch":["checked","onChange","disabled","size","className","id"],"ui-label":["htmlFor","className"],"ui-radio-group":["value","defaultValue","onChange","className"],"ui-radio-group-item":["value","disabled","className","id"],"ui-stack":["gap","direction","align","className"],"ui-inline":["gap","align","className"],"ui-separator":["className"],"ui-tabs":["defaultValue","className"],"ui-tabs-list":["className"],"ui-tabs-trigger":["value","className"],"ui-tabs-content":["value","className"],"ui-scroll-area":["className"],"ui-avatar":["src","alt","className"],"ui-icon":["name","size","className"],"ui-link":["href","target","rel","className"],"ui-menu-item":["icon","label","description","onClick","className"],"ui-menu":["title","className"],"ui-skeleton":["width","height","className"],"ui-tooltip":["content","className"],"ui-progress":["value","className"],"ui-alert":["variant","title","className"],"ui-collapsible":["defaultOpen","className"],"ui-collapsible-trigger":["className"],"ui-collapsible-content":["className"]},Pv={"ui-tabs":["ui-tabs-list","ui-tabs-content"],"ui-tabs-list":["ui-tabs-trigger"],"ui-card":["ui-card-header","ui-card-content"],"ui-menu":["ui-menu-item"],"ui-select":["ui-select-option"],"ui-radio-group":["ui-radio-group-item"],"ui-collapsible":["ui-collapsible-trigger","ui-collapsible-content"]},Tv={"context.read":"context:read","data.query":"data:query","data.fetch":"data:fetch","actions.toast":"actions:toast","actions.invoke":"actions:invoke"},fu={ADMIN:"org:super_admin"},pu={ADMIN:"org:admin",OWNER:"org:owner"},jv=[fu.ADMIN,pu.ADMIN,pu.OWNER];[...Object.values(fu),...Object.values(jv)];const Av=n=>{const o=async i=>{const l=i.data;if((l==null?void 0:l.type)!=="capability-request")return;const a=l;console.warn("[CapabilityRPC] raw message data:",JSON.stringify(i.data));const u=a.extensionId;if(!u||!fr(u)){const h=[..._v().keys()];console.warn(`Received capability request from unknown source (extensionId: "${u??"undefined"}", registered: [${h.join(", ")}], capability: ${a.capability})`);return}const f=fr(u);if(!f)return;const p=Tv[a.capability];if(p&&!f.manifest.permissions.includes(p)){const h={type:"capability-response",id:a.id,success:!1,error:`Permission denied: '${p}' not granted for extension '${u}'`};Qo(u,h);return}try{let h;switch(a.capability){case"data.query":h=await n["data.query"](a.payload);break;case"data.fetch":h=await n["data.fetch"](u,a.payload);break;case"actions.toast":h=await n["actions.toast"](a.payload);break;case"actions.invoke":h=await n["actions.invoke"](a.payload);break;case"context.read":h=await n["context.read"]();break;default:throw new Error(`Unknown capability: ${a.capability}`)}const v={type:"capability-response",id:a.id,success:!0,data:h};Qo(u,v)}catch(h){const v={type:"capability-response",id:a.id,success:!1,error:h instanceof Error?h.message:"Unknown error"};Qo(u,v)}};return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},hu=m.createContext({extensions:[],components:{},ready:!1}),Iv=({extensions:n,capabilityHandlers:o,components:i={},children:l})=>{const[a,u]=m.useState(!1),f=m.useRef(null),p=m.useRef(null);return m.useEffect(()=>{if(!f.current)return;let h=!1;return(async()=>{const w=f.current;if(w){console.log("[ExtensionProvider] Initializing with",n.length,"extensions"),p.current=Av(o);for(const x of n)x.enabled&&!h&&(console.log("[ExtensionProvider] Creating sandbox for",x.id,"bundleUrl:",x.bundleUrl),await Cv(x,w),console.log("[ExtensionProvider] Sandbox created for",x.id));h||(console.log("[ExtensionProvider] Ready"),u(!0))}})(),()=>{var w;h=!0;for(const x of n)Ev(x.id);(w=p.current)==null||w.call(p)}},[n,o]),g.jsxs(hu.Provider,{value:{extensions:n,components:i,ready:a},children:[g.jsx("div",{ref:f,style:{display:"none"}}),l]})},Mv=()=>m.useContext(hu),zv=n=>Nv.includes(n),Lv=(n,o)=>{const i={},l=[];if(!o)return{filtered:i,stripped:l};const a=Rv[n];for(const[u,f]of Object.entries(o)){if(u==="data-onchange-id"){i[u]=f;continue}a!=null&&a.includes(u)?i[u]=f:l.push(u)}return{filtered:i,stripped:l}},Ov=(n,o)=>{const i=Pv[n];if(!i||!o)return[];const l=[];for(const a of o)a.type!=="text"&&(!a.tag||a.tag==="__fragment"||i.includes(a.tag)||l.push(a.tag));return l},qo=({target:n,context:o,className:i,separator:l,fallback:a=null,render:u})=>{const{extensions:f,components:p,ready:h}=Mv(),[v,w]=m.useState({}),x=m.useRef(""),b=m.useMemo(()=>f.filter(S=>S.enabled&&S.manifest.targets.includes(n)),[f.map(S=>S.id).join(","),n]),C=m.useCallback((S,N,R=0)=>{var D,Y,te;if(S.type==="text")return S.text||null;if(!S.tag)return null;if(S.tag==="__fragment")return g.jsx(mt.Fragment,{children:(D=S.children)==null?void 0:D.map((ne,se)=>C(ne,N,se))},R);if(!zv(S.tag))return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${S.tag}>`),null;const T=p[S.tag];if(!T)return S.tag.startsWith("ui-")?(console.warn(`[ExtensionSlot] Unregistered UI tag: <${S.tag}>`),null):g.jsx(mt.Fragment,{children:(Y=S.children)==null?void 0:Y.map((ne,se)=>C(ne,N,se))},R);const{filtered:I,stripped:U}=Lv(S.tag,S.attrs);U.length>0&&console.warn(`[ExtensionSlot] Attributes not allowed on <${S.tag}>, stripped: ${U.join(", ")}`);const $=Ov(S.tag,S.children);if($.length>0&&console.warn(`[ExtensionSlot] Invalid children in <${S.tag}>: ${$.join(", ")}`),S.actionId){const ne=S.actionId;I.onClick=()=>{const se=N;se==null||se.postMessage({type:"action-invoke",surfaceId:n,actionId:ne},"*")}}if(I["data-onchange-id"]){const ne=I["data-onchange-id"];delete I["data-onchange-id"],I.onChange=se=>{const ge=N;ge==null||ge.postMessage({type:"action-invoke",surfaceId:n,actionId:ne,value:se.target.value},"*")}}const O=(te=S.children)==null?void 0:te.map((ne,se)=>C(ne,N,se));return m.createElement(T,{...I,key:R},O&&O.length>0?O:void 0)},[n,p]);if(m.useEffect(()=>{const S=b.map(R=>R.id).join(",");if(x.current!==S&&(x.current=S,w({})),!h||b.length===0)return;const N=R=>{const T=R.data;if(!(!T||typeof T!="object"||!b.some(U=>{const $=fr(U.id);return $&&R.source===$.iframe.contentWindow}))){if(T.type==="surface-update"&&T.surfaceId===n){const U=b.find(O=>{const D=fr(O.id);return D&&R.source===D.iframe.contentWindow});if(!U)return;const $=C(T.tree,R.source??null);w(O=>({...O,[U.id]:$}))}T.type==="surface-ready"&&T.surfaceId===n&&o&&b.forEach(U=>{var O;const $=fr(U.id);(O=$==null?void 0:$.iframe.contentWindow)==null||O.postMessage({type:"context-update",surfaceId:n,context:o},"*")})}};return window.addEventListener("message",N),b.forEach(R=>{var I;const T=fr(R.id);(I=T==null?void 0:T.iframe.contentWindow)==null||I.postMessage({type:"surface-render",surfaceId:n,context:o},"*")}),()=>{window.removeEventListener("message",N)}},[h,b,n,o,C]),!h)return null;if(b.length===0)return a?g.jsx("div",{"data-extension-slot":n,title:n,className:i,children:a}):null;const _=b.map(S=>({id:S.id,children:v[S.id]})).filter(S=>!!S.children),k=_.length>0?_.flatMap((S,N,R)=>{const T=u?u({extensionId:S.id,children:S.children,index:N,total:R.length}):g.jsx(mt.Fragment,{children:S.children},S.id),I=g.jsx(mt.Fragment,{children:T},`extension:${S.id}`);if(N===0||!l)return[I];const U=R[N-1],$=typeof l=="function"?l({index:N,total:R.length,previousExtensionId:U.id,extensionId:S.id}):l;return[g.jsx(mt.Fragment,{children:$},`separator:${U.id}:${S.id}:${N}`),I]}):a;return g.jsx("div",{"data-extension-slot":n,title:n,className:i,children:k})},Dv=n=>{try{const{hostname:o}=new URL(n);return o==="localhost"||o==="127.0.0.1"||o.endsWith(".trycloudflare.com")||o.endsWith(".ngrok-free.app")}catch{return!1}},mu=n=>{const i=new URLSearchParams(n).getAll("_stackable_dev");if(i.length===0)return[];try{const l=[];for(const a of i){const u=a.split(",");for(const f of u){const p=f.indexOf(":");if(p===-1)continue;const h=f.slice(0,p),v=f.slice(p+1);h&&v&&Dv(v)&&l.push({extensionId:h,bundleUrl:v})}}return l}catch{return[]}},Fv=(n,o)=>o.length===0?n:n.map(i=>{const l=o.find(a=>a.extensionId===i.id);return l?(console.log(`[Stackable] Dev override active for ${i.id} → ${l.bundleUrl}`),{...i,bundleUrl:l.bundleUrl}):i});/**
|
|
51
|
+
</html>`;a.srcdoc=h,console.warn(`[SandboxManager] Creating srcdoc sandbox for ${n.id}, srcdoc starts with: ${h.substring(0,300)}`)}o.appendChild(a);const u={extensionId:n.id,iframe:a,manifest:n.manifest,ready:!1,messageHandlers:new Set},f=p=>{const h=p.data;!h||typeof h!="object"||!("type"in h)||("extensionId"in h?h.extensionId:void 0)!==n.id||(h.type==="extension-ready"&&(u.ready=!0),u.messageHandlers.forEach(w=>w(h)))};return window.addEventListener("message",f),Vn.set(n.id,u),u},Qo=(n,o)=>{const i=Vn.get(n);if(!(i!=null&&i.iframe.contentWindow)){console.warn(`Sandbox not found for extension: ${n}`);return}i.iframe.contentWindow.postMessage(o,"*")},fr=n=>Vn.get(n),Ev=n=>{const o=Vn.get(n);o&&(o.iframe.remove(),o.messageHandlers.clear(),Vn.delete(n))},_v=()=>Vn,Nv=["ui-card","ui-card-content","ui-card-header","ui-button","ui-text","ui-heading","ui-badge","ui-input","ui-textarea","ui-select","ui-select-option","ui-checkbox","ui-switch","ui-label","ui-radio-group","ui-radio-group-item","ui-stack","ui-inline","ui-separator","ui-tabs","ui-tabs-list","ui-tabs-trigger","ui-tabs-content","ui-scroll-area","ui-avatar","ui-icon","ui-link","ui-menu","ui-menu-item","ui-skeleton","ui-tooltip","ui-progress","ui-alert","ui-collapsible","ui-collapsible-trigger","ui-collapsible-content"],Rv={"ui-card":["className","onClick"],"ui-card-content":["className"],"ui-card-header":["className"],"ui-button":["variant","size","disabled","onClick","type","className","title"],"ui-text":["className","tone"],"ui-heading":["level","className"],"ui-badge":["variant","hue","tone","className"],"ui-input":["type","placeholder","value","onChange","disabled","className","id"],"ui-textarea":["placeholder","value","onChange","disabled","rows","className","id"],"ui-select":["value","defaultValue","onChange","placeholder","disabled","className"],"ui-select-option":["value","disabled","className"],"ui-checkbox":["checked","onChange","disabled","className","id"],"ui-switch":["checked","onChange","disabled","size","className","id"],"ui-label":["htmlFor","className"],"ui-radio-group":["value","defaultValue","onChange","className"],"ui-radio-group-item":["value","disabled","className","id"],"ui-stack":["gap","direction","align","className"],"ui-inline":["gap","align","className"],"ui-separator":["className"],"ui-tabs":["defaultValue","className"],"ui-tabs-list":["className"],"ui-tabs-trigger":["value","className"],"ui-tabs-content":["value","className"],"ui-scroll-area":["className"],"ui-avatar":["src","alt","className"],"ui-icon":["name","size","className"],"ui-link":["href","target","rel","className"],"ui-menu-item":["icon","label","description","onClick","className"],"ui-menu":["title","className"],"ui-skeleton":["width","height","className"],"ui-tooltip":["content","className"],"ui-progress":["value","className"],"ui-alert":["variant","title","className"],"ui-collapsible":["defaultOpen","className"],"ui-collapsible-trigger":["className"],"ui-collapsible-content":["className"]},Pv={"ui-tabs":["ui-tabs-list","ui-tabs-content"],"ui-tabs-list":["ui-tabs-trigger"],"ui-card":["ui-card-header","ui-card-content"],"ui-menu":["ui-menu-item"],"ui-select":["ui-select-option"],"ui-radio-group":["ui-radio-group-item","ui-label","ui-inline"],"ui-collapsible":["ui-collapsible-trigger","ui-collapsible-content"]},Tv={"context.read":"context:read","data.query":"data:query","data.fetch":"data:fetch","actions.toast":"actions:toast","actions.invoke":"actions:invoke"},pu={ADMIN:"org:super_admin"},hu={ADMIN:"org:admin",OWNER:"org:owner"},jv=[pu.ADMIN,hu.ADMIN,hu.OWNER];[...Object.values(pu),...Object.values(jv)];const Av=n=>{const o=async i=>{const a=i.data;if((a==null?void 0:a.type)!=="capability-request")return;const l=a;console.warn("[CapabilityRPC] raw message data:",JSON.stringify(i.data));const u=l.extensionId;if(!u||!fr(u)){const h=[..._v().keys()];console.warn(`Received capability request from unknown source (extensionId: "${u??"undefined"}", registered: [${h.join(", ")}], capability: ${l.capability})`);return}const f=fr(u);if(!f)return;const p=Tv[l.capability];if(p&&!f.manifest.permissions.includes(p)){const h={type:"capability-response",id:l.id,success:!1,error:`Permission denied: '${p}' not granted for extension '${u}'`};Qo(u,h);return}try{let h;switch(l.capability){case"data.query":h=await n["data.query"](l.payload);break;case"data.fetch":h=await n["data.fetch"](u,l.payload);break;case"actions.toast":h=await n["actions.toast"](l.payload);break;case"actions.invoke":h=await n["actions.invoke"](l.payload);break;case"context.read":h=await n["context.read"]();break;default:throw new Error(`Unknown capability: ${l.capability}`)}const v={type:"capability-response",id:l.id,success:!0,data:h};Qo(u,v)}catch(h){const v={type:"capability-response",id:l.id,success:!1,error:h instanceof Error?h.message:"Unknown error"};Qo(u,v)}};return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},mu=m.createContext({extensions:[],components:{},ready:!1}),Iv=({extensions:n,capabilityHandlers:o,components:i={},children:a})=>{const[l,u]=m.useState(!1),f=m.useRef(null),p=m.useRef(null);return m.useEffect(()=>{if(!f.current)return;let h=!1;return(async()=>{const w=f.current;if(w){console.log("[ExtensionProvider] Initializing with",n.length,"extensions"),p.current=Av(o);for(const x of n)x.enabled&&!h&&(console.log("[ExtensionProvider] Creating sandbox for",x.id,"bundleUrl:",x.bundleUrl),await Cv(x,w),console.log("[ExtensionProvider] Sandbox created for",x.id));h||(console.log("[ExtensionProvider] Ready"),u(!0))}})(),()=>{var w;h=!0;for(const x of n)Ev(x.id);(w=p.current)==null||w.call(p)}},[n,o]),g.jsxs(mu.Provider,{value:{extensions:n,components:i,ready:l},children:[g.jsx("div",{ref:f,style:{display:"none"}}),a]})},zv=()=>m.useContext(mu),Mv=n=>Nv.includes(n),Lv=(n,o)=>{const i={},a=[];if(!o)return{filtered:i,stripped:a};const l=Rv[n];for(const[u,f]of Object.entries(o)){if(u==="data-onchange-id"){i[u]=f;continue}l!=null&&l.includes(u)?i[u]=f:a.push(u)}return{filtered:i,stripped:a}},Ov=(n,o)=>{const i=Pv[n];if(!i||!o)return[];const a=[];for(const l of o)l.type!=="text"&&(!l.tag||l.tag==="__fragment"||i.includes(l.tag)||a.push(l.tag));return a},qo=({target:n,context:o,className:i,separator:a,fallback:l=null,render:u})=>{const{extensions:f,components:p,ready:h}=zv(),[v,w]=m.useState({}),x=m.useRef(""),b=m.useMemo(()=>f.filter(S=>S.enabled&&S.manifest.targets.includes(n)),[f.map(S=>S.id).join(","),n]),C=m.useCallback((S,N,R=0)=>{var D,Y,te;if(S.type==="text")return S.text||null;if(!S.tag)return null;if(S.tag==="__fragment")return g.jsx(mt.Fragment,{children:(D=S.children)==null?void 0:D.map((ne,se)=>C(ne,N,se))},R);if(!Mv(S.tag))return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${S.tag}>`),null;const T=p[S.tag];if(!T)return S.tag.startsWith("ui-")?(console.warn(`[ExtensionSlot] Unregistered UI tag: <${S.tag}>`),null):g.jsx(mt.Fragment,{children:(Y=S.children)==null?void 0:Y.map((ne,se)=>C(ne,N,se))},R);const{filtered:I,stripped:U}=Lv(S.tag,S.attrs);U.length>0&&console.warn(`[ExtensionSlot] Attributes not allowed on <${S.tag}>, stripped: ${U.join(", ")}`);const $=Ov(S.tag,S.children);if($.length>0&&console.warn(`[ExtensionSlot] Invalid children in <${S.tag}>: ${$.join(", ")}`),S.actionId){const ne=S.actionId;I.onClick=()=>{const se=N;se==null||se.postMessage({type:"action-invoke",surfaceId:n,actionId:ne},"*")}}if(I["data-onchange-id"]){const ne=I["data-onchange-id"];delete I["data-onchange-id"],I.onChange=se=>{const ve=N;ve==null||ve.postMessage({type:"action-invoke",surfaceId:n,actionId:ne,value:se.target.value},"*")}}const O=(te=S.children)==null?void 0:te.map((ne,se)=>C(ne,N,se));return m.createElement(T,{...I,key:R},O&&O.length>0?O:void 0)},[n,p]);if(m.useEffect(()=>{const S=b.map(R=>R.id).join(",");if(x.current!==S&&(x.current=S,w({})),!h||b.length===0)return;const N=R=>{const T=R.data;if(!(!T||typeof T!="object"||!b.some(U=>{const $=fr(U.id);return $&&R.source===$.iframe.contentWindow}))){if(T.type==="surface-update"&&T.surfaceId===n){const U=b.find(O=>{const D=fr(O.id);return D&&R.source===D.iframe.contentWindow});if(!U)return;const $=C(T.tree,R.source??null);w(O=>({...O,[U.id]:$}))}T.type==="surface-ready"&&T.surfaceId===n&&o&&b.forEach(U=>{var O;const $=fr(U.id);(O=$==null?void 0:$.iframe.contentWindow)==null||O.postMessage({type:"context-update",surfaceId:n,context:o},"*")})}};return window.addEventListener("message",N),b.forEach(R=>{var I;const T=fr(R.id);(I=T==null?void 0:T.iframe.contentWindow)==null||I.postMessage({type:"surface-render",surfaceId:n,context:o},"*")}),()=>{window.removeEventListener("message",N)}},[h,b,n,o,C]),!h)return null;if(b.length===0)return l?g.jsx("div",{"data-extension-slot":n,title:n,className:i,children:l}):null;const _=b.map(S=>({id:S.id,children:v[S.id]})).filter(S=>!!S.children),k=_.length>0?_.flatMap((S,N,R)=>{const T=u?u({extensionId:S.id,children:S.children,index:N,total:R.length}):g.jsx(mt.Fragment,{children:S.children},S.id),I=g.jsx(mt.Fragment,{children:T},`extension:${S.id}`);if(N===0||!a)return[I];const U=R[N-1],$=typeof a=="function"?a({index:N,total:R.length,previousExtensionId:U.id,extensionId:S.id}):a;return[g.jsx(mt.Fragment,{children:$},`separator:${U.id}:${S.id}:${N}`),I]}):l;return g.jsx("div",{"data-extension-slot":n,title:n,className:i,children:k})},Dv=n=>{try{const{hostname:o}=new URL(n);return o==="localhost"||o==="127.0.0.1"||o.endsWith(".trycloudflare.com")||o.endsWith(".ngrok-free.app")}catch{return!1}},gu=n=>{const i=new URLSearchParams(n).getAll("_stackable_dev");if(i.length===0)return[];try{const a=[];for(const l of i){const u=l.split(",");for(const f of u){const p=f.indexOf(":");if(p===-1)continue;const h=f.slice(0,p),v=f.slice(p+1);h&&v&&Dv(v)&&a.push({extensionId:h,bundleUrl:v})}}return a}catch{return[]}},Fv=(n,o)=>o.length===0?n:n.map(i=>{const a=o.find(l=>l.extensionId===i.id);return a?(console.log(`[Stackable] Dev override active for ${i.id} → ${a.bundleUrl}`),{...i,bundleUrl:a.bundleUrl}):i});/**
|
|
52
52
|
* @license lucide-react v0.577.0 - ISC
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const
|
|
56
|
+
*/const vu=(...n)=>n.filter((o,i,a)=>!!o&&o.trim()!==""&&a.indexOf(o)===i).join(" ").trim();/**
|
|
57
57
|
* @license lucide-react v0.577.0 - ISC
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
@@ -63,12 +63,12 @@ Error generating stack: `+d.message+`
|
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const Uv=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,i,
|
|
66
|
+
*/const Uv=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,i,a)=>a?a.toUpperCase():i.toLowerCase());/**
|
|
67
67
|
* @license lucide-react v0.577.0 - ISC
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const
|
|
71
|
+
*/const yu=n=>{const o=Uv(n);return o.charAt(0).toUpperCase()+o.slice(1)};/**
|
|
72
72
|
* @license lucide-react v0.577.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
@@ -83,12 +83,12 @@ Error generating stack: `+d.message+`
|
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const Wv=m.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:
|
|
86
|
+
*/const Wv=m.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:l="",children:u,iconNode:f,...p},h)=>m.createElement("svg",{ref:h,...Hv,width:o,height:o,stroke:n,strokeWidth:a?Number(i)*24/Number(o):i,className:vu("lucide",l),...!u&&!Bv(p)&&{"aria-hidden":"true"},...p},[...f.map(([v,w])=>m.createElement(v,w)),...Array.isArray(u)?u:[u]]));/**
|
|
87
87
|
* @license lucide-react v0.577.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const Ae=(n,o)=>{const i=m.forwardRef(({className:l
|
|
91
|
+
*/const Ae=(n,o)=>{const i=m.forwardRef(({className:a,...l},u)=>m.createElement(Wv,{ref:u,iconNode:o,className:vu(`lucide-${$v(yu(n))}`,`lucide-${n}`,a),...l}));return i.displayName=yu(n),i};/**
|
|
92
92
|
* @license lucide-react v0.577.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
@@ -113,12 +113,12 @@ Error generating stack: `+d.message+`
|
|
|
113
113
|
*
|
|
114
114
|
* This source code is licensed under the ISC license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const
|
|
116
|
+
*/const wu=Ae("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
117
117
|
* @license lucide-react v0.577.0 - ISC
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the ISC license.
|
|
120
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const
|
|
121
|
+
*/const xu=Ae("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
122
122
|
* @license lucide-react v0.577.0 - ISC
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the ISC license.
|
|
@@ -128,7 +128,7 @@ Error generating stack: `+d.message+`
|
|
|
128
128
|
*
|
|
129
129
|
* This source code is licensed under the ISC license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const
|
|
131
|
+
*/const ea=Ae("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
132
132
|
* @license lucide-react v0.577.0 - ISC
|
|
133
133
|
*
|
|
134
134
|
* This source code is licensed under the ISC license.
|
|
@@ -158,27 +158,27 @@ Error generating stack: `+d.message+`
|
|
|
158
158
|
*
|
|
159
159
|
* This source code is licensed under the ISC license.
|
|
160
160
|
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const
|
|
161
|
+
*/const e0=Ae("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
162
162
|
* @license lucide-react v0.577.0 - ISC
|
|
163
163
|
*
|
|
164
164
|
* This source code is licensed under the ISC license.
|
|
165
165
|
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const
|
|
166
|
+
*/const t0=Ae("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);/**
|
|
167
167
|
* @license lucide-react v0.577.0 - ISC
|
|
168
168
|
*
|
|
169
169
|
* This source code is licensed under the ISC license.
|
|
170
170
|
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const
|
|
171
|
+
*/const n0=Ae("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
|
|
172
172
|
* @license lucide-react v0.577.0 - ISC
|
|
173
173
|
*
|
|
174
174
|
* This source code is licensed under the ISC license.
|
|
175
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const
|
|
176
|
+
*/const r0=Ae("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
177
177
|
* @license lucide-react v0.577.0 - ISC
|
|
178
178
|
*
|
|
179
179
|
* This source code is licensed under the ISC license.
|
|
180
180
|
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const
|
|
181
|
+
*/const ta=Ae("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
182
182
|
* @license lucide-react v0.577.0 - ISC
|
|
183
183
|
*
|
|
184
184
|
* This source code is licensed under the ISC license.
|
|
@@ -188,17 +188,17 @@ Error generating stack: `+d.message+`
|
|
|
188
188
|
*
|
|
189
189
|
* This source code is licensed under the ISC license.
|
|
190
190
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const
|
|
191
|
+
*/const na=Ae("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);/**
|
|
192
192
|
* @license lucide-react v0.577.0 - ISC
|
|
193
193
|
*
|
|
194
194
|
* This source code is licensed under the ISC license.
|
|
195
195
|
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const
|
|
196
|
+
*/const o0=Ae("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
|
|
197
197
|
* @license lucide-react v0.577.0 - ISC
|
|
198
198
|
*
|
|
199
199
|
* This source code is licensed under the ISC license.
|
|
200
200
|
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const
|
|
201
|
+
*/const i0=Ae("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);/**
|
|
202
202
|
* @license lucide-react v0.577.0 - ISC
|
|
203
203
|
*
|
|
204
204
|
* This source code is licensed under the ISC license.
|
|
@@ -208,77 +208,77 @@ Error generating stack: `+d.message+`
|
|
|
208
208
|
*
|
|
209
209
|
* This source code is licensed under the ISC license.
|
|
210
210
|
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const
|
|
211
|
+
*/const s0=Ae("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
212
212
|
* @license lucide-react v0.577.0 - ISC
|
|
213
213
|
*
|
|
214
214
|
* This source code is licensed under the ISC license.
|
|
215
215
|
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const
|
|
216
|
+
*/const a0=Ae("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);/**
|
|
217
217
|
* @license lucide-react v0.577.0 - ISC
|
|
218
218
|
*
|
|
219
219
|
* This source code is licensed under the ISC license.
|
|
220
220
|
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const
|
|
221
|
+
*/const l0=Ae("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
222
222
|
* @license lucide-react v0.577.0 - ISC
|
|
223
223
|
*
|
|
224
224
|
* This source code is licensed under the ISC license.
|
|
225
225
|
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const
|
|
226
|
+
*/const c0=Ae("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]]);/**
|
|
227
227
|
* @license lucide-react v0.577.0 - ISC
|
|
228
228
|
*
|
|
229
229
|
* This source code is licensed under the ISC license.
|
|
230
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const
|
|
231
|
+
*/const u0=Ae("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/**
|
|
232
232
|
* @license lucide-react v0.577.0 - ISC
|
|
233
233
|
*
|
|
234
234
|
* This source code is licensed under the ISC license.
|
|
235
235
|
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const
|
|
236
|
+
*/const d0=Ae("truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
|
|
237
237
|
* @license lucide-react v0.577.0 - ISC
|
|
238
238
|
*
|
|
239
239
|
* This source code is licensed under the ISC license.
|
|
240
240
|
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const Cu=Ae("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Eu(n){var o,i,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(o=0;o<a;o++)n[o]&&(i=Eu(n[o]))&&(l&&(l+=" "),l+=i)}else for(i in n)n[i]&&(l&&(l+=" "),l+=i);return l}function _u(){for(var n,o,i=0,l="",a=arguments.length;i<a;i++)(n=arguments[i])&&(o=Eu(n))&&(l&&(l+=" "),l+=o);return l}const fy=(n,o)=>{const i=new Array(n.length+o.length);for(let l=0;l<n.length;l++)i[l]=n[l];for(let l=0;l<o.length;l++)i[n.length+l]=o[l];return i},py=(n,o)=>({classGroupId:n,validator:o}),Nu=(n=new Map,o=null,i)=>({nextPart:n,validators:o,classGroupId:i}),Zo="-",Ru=[],hy="arbitrary..",my=n=>{const o=vy(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return gy(f);const p=f.split(Zo),h=p[0]===""&&p.length>1?1:0;return Pu(p,h,o)},getConflictingClassGroupIds:(f,p)=>{if(p){const h=l[f],v=i[f];return h?v?fy(v,h):h:v||Ru}return i[f]||Ru}}},Pu=(n,o,i)=>{if(n.length-o===0)return i.classGroupId;const a=n[o],u=i.nextPart.get(a);if(u){const v=Pu(n,o+1,u);if(v)return v}const f=i.validators;if(f===null)return;const p=o===0?n.join(Zo):n.slice(o).join(Zo),h=f.length;for(let v=0;v<h;v++){const w=f[v];if(w.validator(p))return w.classGroupId}},gy=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=n.slice(1,-1),i=o.indexOf(":"),l=o.slice(0,i);return l?hy+l:void 0})(),vy=n=>{const{theme:o,classGroups:i}=n;return yy(i,o)},yy=(n,o)=>{const i=Nu();for(const l in n){const a=n[l];nl(a,i,l,o)}return i},nl=(n,o,i,l)=>{const a=n.length;for(let u=0;u<a;u++){const f=n[u];wy(f,o,i,l)}},wy=(n,o,i,l)=>{if(typeof n=="string"){xy(n,o,i);return}if(typeof n=="function"){by(n,o,i,l);return}ky(n,o,i,l)},xy=(n,o,i)=>{const l=n===""?o:Tu(o,n);l.classGroupId=i},by=(n,o,i,l)=>{if(Sy(n)){nl(n(l),o,i,l);return}o.validators===null&&(o.validators=[]),o.validators.push(py(i,n))},ky=(n,o,i,l)=>{const a=Object.entries(n),u=a.length;for(let f=0;f<u;f++){const[p,h]=a[f];nl(h,Tu(o,p),i,l)}},Tu=(n,o)=>{let i=n;const l=o.split(Zo),a=l.length;for(let u=0;u<a;u++){const f=l[u];let p=i.nextPart.get(f);p||(p=Nu(),i.nextPart.set(f,p)),i=p}return i},Sy=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,Cy=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,i=Object.create(null),l=Object.create(null);const a=(u,f)=>{i[u]=f,o++,o>n&&(o=0,l=i,i=Object.create(null))};return{get(u){let f=i[u];if(f!==void 0)return f;if((f=l[u])!==void 0)return a(u,f),f},set(u,f){u in i?i[u]=f:a(u,f)}}},rl="!",ju=":",Ey=[],Au=(n,o,i,l,a)=>({modifiers:n,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:l,isExternal:a}),_y=n=>{const{prefix:o,experimentalParseClassName:i}=n;let l=a=>{const u=[];let f=0,p=0,h=0,v;const w=a.length;for(let k=0;k<w;k++){const S=a[k];if(f===0&&p===0){if(S===ju){u.push(a.slice(h,k)),h=k+1;continue}if(S==="/"){v=k;continue}}S==="["?f++:S==="]"?f--:S==="("?p++:S===")"&&p--}const x=u.length===0?a:a.slice(h);let b=x,C=!1;x.endsWith(rl)?(b=x.slice(0,-1),C=!0):x.startsWith(rl)&&(b=x.slice(1),C=!0);const _=v&&v>h?v-h:void 0;return Au(u,C,b,_)};if(o){const a=o+ju,u=l;l=f=>f.startsWith(a)?u(f.slice(a.length)):Au(Ey,!1,f,void 0,!0)}if(i){const a=l;l=u=>i({className:u,parseClassName:a})}return l},Ny=n=>{const o=new Map;return n.orderSensitiveModifiers.forEach((i,l)=>{o.set(i,1e6+l)}),i=>{const l=[];let a=[];for(let u=0;u<i.length;u++){const f=i[u],p=f[0]==="[",h=o.has(f);p||h?(a.length>0&&(a.sort(),l.push(...a),a=[]),l.push(f)):a.push(f)}return a.length>0&&(a.sort(),l.push(...a)),l}},Ry=n=>({cache:Cy(n.cacheSize),parseClassName:_y(n),sortModifiers:Ny(n),...my(n)}),Py=/\s+/,Ty=(n,o)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:a,sortModifiers:u}=o,f=[],p=n.trim().split(Py);let h="";for(let v=p.length-1;v>=0;v-=1){const w=p[v],{isExternal:x,modifiers:b,hasImportantModifier:C,baseClassName:_,maybePostfixModifierPosition:k}=i(w);if(x){h=w+(h.length>0?" "+h:h);continue}let S=!!k,N=l(S?_.substring(0,k):_);if(!N){if(!S){h=w+(h.length>0?" "+h:h);continue}if(N=l(_),!N){h=w+(h.length>0?" "+h:h);continue}S=!1}const R=b.length===0?"":b.length===1?b[0]:u(b).join(":"),T=C?R+rl:R,I=T+N;if(f.indexOf(I)>-1)continue;f.push(I);const U=a(N,S);for(let $=0;$<U.length;++$){const O=U[$];f.push(T+O)}h=w+(h.length>0?" "+h:h)}return h},jy=(...n)=>{let o=0,i,l,a="";for(;o<n.length;)(i=n[o++])&&(l=Iu(i))&&(a&&(a+=" "),a+=l);return a},Iu=n=>{if(typeof n=="string")return n;let o,i="";for(let l=0;l<n.length;l++)n[l]&&(o=Iu(n[l]))&&(i&&(i+=" "),i+=o);return i},Ay=(n,...o)=>{let i,l,a,u;const f=h=>{const v=o.reduce((w,x)=>x(w),n());return i=Ry(v),l=i.cache.get,a=i.cache.set,u=p,p(h)},p=h=>{const v=l(h);if(v)return v;const w=Ty(h,i);return a(h,w),w};return u=f,(...h)=>u(jy(...h))},Iy=[],Ge=n=>{const o=i=>i[n]||Iy;return o.isThemeGetter=!0,o},Mu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,My=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,zy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ly=/\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$/,Oy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pn=n=>My.test(n),Ee=n=>!!n&&!Number.isNaN(Number(n)),hn=n=>!!n&&Number.isInteger(Number(n)),ol=n=>n.endsWith("%")&&Ee(n.slice(0,-1)),qt=n=>zy.test(n),Lu=()=>!0,$y=n=>Ly.test(n)&&!Oy.test(n),il=()=>!1,Uy=n=>Dy.test(n),Hy=n=>Fy.test(n),By=n=>!ee(n)&&!oe(n),Wy=n=>mn(n,Hu,il),ee=n=>Mu.test(n),Gn=n=>mn(n,Bu,$y),Ou=n=>mn(n,Zy,Ee),Vy=n=>mn(n,Vu,Lu),Gy=n=>mn(n,Wu,il),Du=n=>mn(n,$u,il),Ky=n=>mn(n,Uu,Hy),Jo=n=>mn(n,Gu,Uy),oe=n=>zu.test(n),Qr=n=>Kn(n,Bu),Yy=n=>Kn(n,Wu),Fu=n=>Kn(n,$u),Xy=n=>Kn(n,Hu),Qy=n=>Kn(n,Uu),ei=n=>Kn(n,Gu,!0),qy=n=>Kn(n,Vu,!0),mn=(n,o,i)=>{const l=Mu.exec(n);return l?l[1]?o(l[1]):i(l[2]):!1},Kn=(n,o,i=!1)=>{const l=zu.exec(n);return l?l[1]?o(l[1]):i:!1},$u=n=>n==="position"||n==="percentage",Uu=n=>n==="image"||n==="url",Hu=n=>n==="length"||n==="size"||n==="bg-size",Bu=n=>n==="length",Zy=n=>n==="number",Wu=n=>n==="family-name",Vu=n=>n==="number"||n==="weight",Gu=n=>n==="shadow",Jy=Ay(()=>{const n=Ge("color"),o=Ge("font"),i=Ge("text"),l=Ge("font-weight"),a=Ge("tracking"),u=Ge("leading"),f=Ge("breakpoint"),p=Ge("container"),h=Ge("spacing"),v=Ge("radius"),w=Ge("shadow"),x=Ge("inset-shadow"),b=Ge("text-shadow"),C=Ge("drop-shadow"),_=Ge("blur"),k=Ge("perspective"),S=Ge("aspect"),N=Ge("ease"),R=Ge("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...I(),oe,ee],$=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],D=()=>[oe,ee,h],Y=()=>[pn,"full","auto",...D()],te=()=>[hn,"none","subgrid",oe,ee],ne=()=>["auto",{span:["full",hn,oe,ee]},hn,oe,ee],se=()=>[hn,"auto",oe,ee],ge=()=>["auto","min","max","fr",oe,ee],xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Se=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...D()],le=()=>[pn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],H=()=>[pn,"screen","full","dvw","lvw","svw","min","max","fit",...D()],X=()=>[pn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],F=()=>[n,oe,ee],A=()=>[...I(),Fu,Du,{position:[oe,ee]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",Xy,Wy,{size:[oe,ee]}],ye=()=>[ol,Qr,Gn],fe=()=>["","none","full",v,oe,ee],de=()=>["",Ee,Qr,Gn],Q=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[Ee,ol,Fu,Du],Ce=()=>["","none",_,oe,ee],Ne=()=>["none",Ee,oe,ee],Re=()=>["none",Ee,oe,ee],$e=()=>[Ee,oe,ee],Ke=()=>[pn,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qt],breakpoint:[qt],color:[Lu],container:[qt],"drop-shadow":[qt],ease:["in","out","in-out"],font:[By],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qt],shadow:[qt],spacing:["px",Ee],text:[qt],"text-shadow":[qt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pn,ee,oe,S]}],container:["container"],columns:[{columns:[Ee,ee,oe,p]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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"],sr:["sr-only","not-sr-only"],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:U()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[hn,"auto",oe,ee]}],basis:[{basis:[pn,"full","auto",p,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,pn,"auto","initial","none",ee]}],grow:[{grow:["",Ee,oe,ee]}],shrink:[{shrink:["",Ee,oe,ee]}],order:[{order:[hn,"first","last","none",oe,ee]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...xe(),"normal"]}],"justify-items":[{"justify-items":[...Se(),"normal"]}],"justify-self":[{"justify-self":["auto",...Se()]}],"align-content":[{content:["normal",...xe()]}],"align-items":[{items:[...Se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Se(),{baseline:["","last"]}]}],"place-content":[{"place-content":xe()}],"place-items":[{"place-items":[...Se(),"baseline"]}],"place-self":[{"place-self":["auto",...Se()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mbs:[{mbs:Z()}],mbe:[{mbe:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],"inline-size":[{inline:["auto",...H()]}],"min-inline-size":[{"min-inline":["auto",...H()]}],"max-inline-size":[{"max-inline":["none",...H()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[p,"screen",...le()]}],"min-w":[{"min-w":[p,"screen","none",...le()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh",...le()]}],"font-size":[{text:["base",i,Qr,Gn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,qy,Vy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ol,ee]}],"font-family":[{font:[Yy,Gy,o]}],"font-features":[{"font-features":[ee]}],"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:[a,oe,ee]}],"line-clamp":[{"line-clamp":[Ee,"none",oe,Ou]}],leading:[{leading:[u,...D()]}],"list-image":[{"list-image":["none",oe,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",oe,Gn]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Ee,"auto",oe,ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hn,oe,ee],radial:["",oe,ee],conic:[hn,oe,ee]},Qy,Ky]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:fe()}],"rounded-s":[{"rounded-s":fe()}],"rounded-e":[{"rounded-e":fe()}],"rounded-t":[{"rounded-t":fe()}],"rounded-r":[{"rounded-r":fe()}],"rounded-b":[{"rounded-b":fe()}],"rounded-l":[{"rounded-l":fe()}],"rounded-ss":[{"rounded-ss":fe()}],"rounded-se":[{"rounded-se":fe()}],"rounded-ee":[{"rounded-ee":fe()}],"rounded-es":[{"rounded-es":fe()}],"rounded-tl":[{"rounded-tl":fe()}],"rounded-tr":[{"rounded-tr":fe()}],"rounded-br":[{"rounded-br":fe()}],"rounded-bl":[{"rounded-bl":fe()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-bs":[{"border-bs":de()}],"border-w-be":[{"border-be":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,oe,ee]}],"outline-w":[{outline:["",Ee,Qr,Gn]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",w,ei,Jo]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",x,ei,Jo]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Ee,Gn]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",b,ei,Jo]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Ee,oe,ee]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[oe,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,ee]}],filter:[{filter:["","none",oe,ee]}],blur:[{blur:Ce()}],brightness:[{brightness:[Ee,oe,ee]}],contrast:[{contrast:[Ee,oe,ee]}],"drop-shadow":[{"drop-shadow":["","none",C,ei,Jo]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Ee,oe,ee]}],"hue-rotate":[{"hue-rotate":[Ee,oe,ee]}],invert:[{invert:["",Ee,oe,ee]}],saturate:[{saturate:[Ee,oe,ee]}],sepia:[{sepia:["",Ee,oe,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,ee]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,oe,ee]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,oe,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,oe,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,oe,ee]}],"backdrop-invert":[{"backdrop-invert":["",Ee,oe,ee]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,oe,ee]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,oe,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,oe,ee]}],"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:["","all","colors","opacity","shadow","transform","none",oe,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",oe,ee]}],ease:[{ease:["linear","initial",N,oe,ee]}],delay:[{delay:[Ee,oe,ee]}],animate:[{animate:["none",R,oe,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,oe,ee]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[oe,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",oe,ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",oe,ee]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Ee,Qr,Gn,Ou]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ve=(...n)=>Jy(_u(n));function qr({className:n,...o}){return g.jsx("div",{"data-slot":"card",className:ve("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",n),...o})}function e0({className:n,...o}){return g.jsx("div",{"data-slot":"card-header",className:ve("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",n),...o})}function Zr({className:n,...o}){return g.jsx("div",{"data-slot":"card-content",className:ve("px-6",n),...o})}const Ku=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Yu=_u,ti=(n,o)=>i=>{var l;if((o==null?void 0:o.variants)==null)return Yu(n,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:a,defaultVariants:u}=o,f=Object.keys(a).map(v=>{const w=i==null?void 0:i[v],x=u==null?void 0:u[v];if(w===null)return null;const b=Ku(w)||Ku(x);return a[v][b]}),p=i&&Object.entries(i).reduce((v,w)=>{let[x,b]=w;return b===void 0||(v[x]=b),v},{}),h=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((v,w)=>{let{class:x,className:b,...C}=w;return Object.entries(C).every(_=>{let[k,S]=_;return Array.isArray(S)?S.includes({...u,...p}[k]):{...u,...p}[k]===S})?[...v,x,b]:v},[]);return Yu(n,f,h,i==null?void 0:i.class,i==null?void 0:i.className)};var Jr=cu();const t0=$t(Jr);function Xu(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function Qu(...n){return o=>{let i=!1;const l=n.map(a=>{const u=Xu(a,o);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let a=0;a<l.length;a++){const u=l[a];typeof u=="function"?u():Xu(n[a],null)}}}}function Pe(...n){return m.useCallback(Qu(...n),n)}function eo(n){const o=n0(n),i=m.forwardRef((l,a)=>{const{children:u,...f}=l,p=m.Children.toArray(u),h=p.find(o0);if(h){const v=h.props.children,w=p.map(x=>x===h?m.Children.count(v)>1?m.Children.only(null):m.isValidElement(v)?v.props.children:null:x);return g.jsx(o,{...f,ref:a,children:m.isValidElement(v)?m.cloneElement(v,void 0,w):null})}return g.jsx(o,{...f,ref:a,children:u})});return i.displayName=`${n}.Slot`,i}var qu=eo("Slot");function n0(n){const o=m.forwardRef((i,l)=>{const{children:a,...u}=i;if(m.isValidElement(a)){const f=s0(a),p=i0(u,a.props);return a.type!==m.Fragment&&(p.ref=l?Qu(l,f):f),m.cloneElement(a,p)}return m.Children.count(a)>1?m.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var Zu=Symbol("radix.slottable");function r0(n){const o=({children:i})=>g.jsx(g.Fragment,{children:i});return o.displayName=`${n}.Slottable`,o.__radixId=Zu,o}function o0(n){return m.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Zu}function i0(n,o){const i={...o};for(const l in o){const a=n[l],u=o[l];/^on[A-Z]/.test(l)?a&&u?i[l]=(...p)=>{const h=u(...p);return a(...p),h}:a&&(i[l]=a):l==="style"?i[l]={...a,...u}:l==="className"&&(i[l]=[a,u].filter(Boolean).join(" "))}return{...n,...i}}function s0(n){var l,a;let o=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?n.ref:(o=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var l0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=l0.reduce((n,o)=>{const i=eo(`Primitive.${o}`),l=m.forwardRef((a,u)=>{const{asChild:f,...p}=a,h=f?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(h,{...p,ref:u})});return l.displayName=`Primitive.${o}`,{...n,[o]:l}},{});function a0(n,o){n&&Jr.flushSync(()=>n.dispatchEvent(o))}var Ju=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"}),c0="VisuallyHidden",ed=m.forwardRef((n,o)=>g.jsx(pe.span,{...n,ref:o,style:{...Ju,...n.style}}));ed.displayName=c0;var u0=ed;function ct(n,o=[]){let i=[];function l(u,f){const p=m.createContext(f),h=i.length;i=[...i,f];const v=x=>{var N;const{scope:b,children:C,..._}=x,k=((N=b==null?void 0:b[n])==null?void 0:N[h])||p,S=m.useMemo(()=>_,Object.values(_));return g.jsx(k.Provider,{value:S,children:C})};v.displayName=u+"Provider";function w(x,b){var k;const C=((k=b==null?void 0:b[n])==null?void 0:k[h])||p,_=m.useContext(C);if(_)return _;if(f!==void 0)return f;throw new Error(`\`${x}\` must be used within \`${u}\``)}return[v,w]}const a=()=>{const u=i.map(f=>m.createContext(f));return function(p){const h=(p==null?void 0:p[n])||u;return m.useMemo(()=>({[`__scope${n}`]:{...p,[n]:h}}),[p,h])}};return a.scopeName=n,[l,d0(a,...o)]}function d0(...n){const o=n[0];if(n.length===1)return o;const i=()=>{const l=n.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(u){const f=l.reduce((p,{useScope:h,scopeName:v})=>{const x=h(u)[`__scope${v}`];return{...p,...x}},{});return m.useMemo(()=>({[`__scope${o.scopeName}`]:f}),[f])}};return i.scopeName=o.scopeName,i}function td(n){const o=n+"CollectionProvider",[i,l]=ct(o),[a,u]=i(o,{collectionRef:{current:null},itemMap:new Map}),f=k=>{const{scope:S,children:N}=k,R=mt.useRef(null),T=mt.useRef(new Map).current;return g.jsx(a,{scope:S,itemMap:T,collectionRef:R,children:N})};f.displayName=o;const p=n+"CollectionSlot",h=eo(p),v=mt.forwardRef((k,S)=>{const{scope:N,children:R}=k,T=u(p,N),I=Pe(S,T.collectionRef);return g.jsx(h,{ref:I,children:R})});v.displayName=p;const w=n+"CollectionItemSlot",x="data-radix-collection-item",b=eo(w),C=mt.forwardRef((k,S)=>{const{scope:N,children:R,...T}=k,I=mt.useRef(null),U=Pe(S,I),$=u(w,N);return mt.useEffect(()=>($.itemMap.set(I,{ref:I,...T}),()=>void $.itemMap.delete(I))),g.jsx(b,{[x]:"",ref:U,children:R})});C.displayName=w;function _(k){const S=u(n+"CollectionConsumer",k);return mt.useCallback(()=>{const R=S.collectionRef.current;if(!R)return[];const T=Array.from(R.querySelectorAll(`[${x}]`));return Array.from(S.itemMap.values()).sort(($,O)=>T.indexOf($.ref.current)-T.indexOf(O.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:f,Slot:v,ItemSlot:C},_,l]}function we(n,o,{checkForDefaultPrevented:i=!0}={}){return function(a){if(n==null||n(a),i===!1||!a.defaultPrevented)return o==null?void 0:o(a)}}var He=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},f0=du[" useInsertionEffect ".trim().toString()]||He;function Zt({prop:n,defaultProp:o,onChange:i=()=>{},caller:l}){const[a,u,f]=p0({defaultProp:o,onChange:i}),p=n!==void 0,h=p?n:a;{const w=m.useRef(n!==void 0);m.useEffect(()=>{const x=w.current;x!==p&&console.warn(`${l} is changing from ${x?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),w.current=p},[p,l])}const v=m.useCallback(w=>{var x;if(p){const b=h0(w)?w(n):w;b!==n&&((x=f.current)==null||x.call(f,b))}else u(w)},[p,n,u,f]);return[h,v]}function p0({defaultProp:n,onChange:o}){const[i,l]=m.useState(n),a=m.useRef(i),u=m.useRef(o);return f0(()=>{u.current=o},[o]),m.useEffect(()=>{var f;a.current!==i&&((f=u.current)==null||f.call(u,i),a.current=i)},[i,a]),[i,l,u]}function h0(n){return typeof n=="function"}function m0(n,o){return m.useReducer((i,l)=>o[i][l]??i,n)}var Pt=n=>{const{present:o,children:i}=n,l=g0(o),a=typeof i=="function"?i({present:l.isPresent}):m.Children.only(i),u=Pe(l.ref,v0(a));return typeof i=="function"||l.isPresent?m.cloneElement(a,{ref:u}):null};Pt.displayName="Presence";function g0(n){const[o,i]=m.useState(),l=m.useRef(null),a=m.useRef(n),u=m.useRef("none"),f=n?"mounted":"unmounted",[p,h]=m0(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const v=ni(l.current);u.current=p==="mounted"?v:"none"},[p]),He(()=>{const v=l.current,w=a.current;if(w!==n){const b=u.current,C=ni(v);n?h("MOUNT"):C==="none"||(v==null?void 0:v.display)==="none"?h("UNMOUNT"):h(w&&b!==C?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,h]),He(()=>{if(o){let v;const w=o.ownerDocument.defaultView??window,x=C=>{const k=ni(l.current).includes(CSS.escape(C.animationName));if(C.target===o&&k&&(h("ANIMATION_END"),!a.current)){const S=o.style.animationFillMode;o.style.animationFillMode="forwards",v=w.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=S)})}},b=C=>{C.target===o&&(u.current=ni(l.current))};return o.addEventListener("animationstart",b),o.addEventListener("animationcancel",x),o.addEventListener("animationend",x),()=>{w.clearTimeout(v),o.removeEventListener("animationstart",b),o.removeEventListener("animationcancel",x),o.removeEventListener("animationend",x)}}else h("ANIMATION_END")},[o,h]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:m.useCallback(v=>{l.current=v?getComputedStyle(v):null,i(v)},[])}}function ni(n){return(n==null?void 0:n.animationName)||"none"}function v0(n){var l,a;let o=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?n.ref:(o=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var y0=du[" useId ".trim().toString()]||(()=>{}),w0=0;function Yn(n){const[o,i]=m.useState(y0());return He(()=>{i(l=>l??String(w0++))},[n]),n||(o?`radix-${o}`:"")}var ri="Collapsible",[x0]=ct(ri),[b0,sl]=x0(ri),nd=m.forwardRef((n,o)=>{const{__scopeCollapsible:i,open:l,defaultOpen:a,disabled:u,onOpenChange:f,...p}=n,[h,v]=Zt({prop:l,defaultProp:a??!1,onChange:f,caller:ri});return g.jsx(b0,{scope:i,disabled:u,contentId:Yn(),open:h,onOpenToggle:m.useCallback(()=>v(w=>!w),[v]),children:g.jsx(pe.div,{"data-state":al(h),"data-disabled":u?"":void 0,...p,ref:o})})});nd.displayName=ri;var rd="CollapsibleTrigger",od=m.forwardRef((n,o)=>{const{__scopeCollapsible:i,...l}=n,a=sl(rd,i);return g.jsx(pe.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":al(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...l,ref:o,onClick:we(n.onClick,a.onOpenToggle)})});od.displayName=rd;var ll="CollapsibleContent",id=m.forwardRef((n,o)=>{const{forceMount:i,...l}=n,a=sl(ll,n.__scopeCollapsible);return g.jsx(Pt,{present:i||a.open,children:({present:u})=>g.jsx(k0,{...l,ref:o,present:u})})});id.displayName=ll;var k0=m.forwardRef((n,o)=>{const{__scopeCollapsible:i,present:l,children:a,...u}=n,f=sl(ll,i),[p,h]=m.useState(l),v=m.useRef(null),w=Pe(o,v),x=m.useRef(0),b=x.current,C=m.useRef(0),_=C.current,k=f.open||p,S=m.useRef(k),N=m.useRef(void 0);return m.useEffect(()=>{const R=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(R)},[]),He(()=>{const R=v.current;if(R){N.current=N.current||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const T=R.getBoundingClientRect();x.current=T.height,C.current=T.width,S.current||(R.style.transitionDuration=N.current.transitionDuration,R.style.animationName=N.current.animationName),h(l)}},[f.open,l]),g.jsx(pe.div,{"data-state":al(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!k,...u,ref:w,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...n.style},children:k&&a})});function al(n){return n?"open":"closed"}var S0=nd,C0=m.createContext(void 0);function to(n){const o=m.useContext(C0);return n||o||"ltr"}function tt(n){const o=m.useRef(n);return m.useEffect(()=>{o.current=n}),m.useMemo(()=>(...i)=>{var l;return(l=o.current)==null?void 0:l.call(o,...i)},[])}function E0(n,o=globalThis==null?void 0:globalThis.document){const i=tt(n);m.useEffect(()=>{const l=a=>{a.key==="Escape"&&i(a)};return o.addEventListener("keydown",l,{capture:!0}),()=>o.removeEventListener("keydown",l,{capture:!0})},[i,o])}var _0="DismissableLayer",cl="dismissableLayer.update",N0="dismissableLayer.pointerDownOutside",R0="dismissableLayer.focusOutside",sd,ld=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ul=m.forwardRef((n,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:f,onDismiss:p,...h}=n,v=m.useContext(ld),[w,x]=m.useState(null),b=(w==null?void 0:w.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=m.useState({}),_=Pe(o,O=>x(O)),k=Array.from(v.layers),[S]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),N=k.indexOf(S),R=w?k.indexOf(w):-1,T=v.layersWithOutsidePointerEventsDisabled.size>0,I=R>=N,U=j0(O=>{const D=O.target,Y=[...v.branches].some(te=>te.contains(D));!I||Y||(a==null||a(O),f==null||f(O),O.defaultPrevented||p==null||p())},b),$=A0(O=>{const D=O.target;[...v.branches].some(te=>te.contains(D))||(u==null||u(O),f==null||f(O),O.defaultPrevented||p==null||p())},b);return E0(O=>{R===v.layers.size-1&&(l==null||l(O),!O.defaultPrevented&&p&&(O.preventDefault(),p()))},b),m.useEffect(()=>{if(w)return i&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(sd=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(w)),v.layers.add(w),ad(),()=>{i&&v.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=sd)}},[w,b,i,v]),m.useEffect(()=>()=>{w&&(v.layers.delete(w),v.layersWithOutsidePointerEventsDisabled.delete(w),ad())},[w,v]),m.useEffect(()=>{const O=()=>C({});return document.addEventListener(cl,O),()=>document.removeEventListener(cl,O)},[]),g.jsx(pe.div,{...h,ref:_,style:{pointerEvents:T?I?"auto":"none":void 0,...n.style},onFocusCapture:we(n.onFocusCapture,$.onFocusCapture),onBlurCapture:we(n.onBlurCapture,$.onBlurCapture),onPointerDownCapture:we(n.onPointerDownCapture,U.onPointerDownCapture)})});ul.displayName=_0;var P0="DismissableLayerBranch",T0=m.forwardRef((n,o)=>{const i=m.useContext(ld),l=m.useRef(null),a=Pe(o,l);return m.useEffect(()=>{const u=l.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),g.jsx(pe.div,{...n,ref:a})});T0.displayName=P0;function j0(n,o=globalThis==null?void 0:globalThis.document){const i=tt(n),l=m.useRef(!1),a=m.useRef(()=>{});return m.useEffect(()=>{const u=p=>{if(p.target&&!l.current){let h=function(){cd(N0,i,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",a.current),a.current=h,o.addEventListener("click",a.current,{once:!0})):h()}else o.removeEventListener("click",a.current);l.current=!1},f=window.setTimeout(()=>{o.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),o.removeEventListener("pointerdown",u),o.removeEventListener("click",a.current)}},[o,i]),{onPointerDownCapture:()=>l.current=!0}}function A0(n,o=globalThis==null?void 0:globalThis.document){const i=tt(n),l=m.useRef(!1);return m.useEffect(()=>{const a=u=>{u.target&&!l.current&&cd(R0,i,{originalEvent:u},{discrete:!1})};return o.addEventListener("focusin",a),()=>o.removeEventListener("focusin",a)},[o,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function ad(){const n=new CustomEvent(cl);document.dispatchEvent(n)}function cd(n,o,i,{discrete:l}){const a=i.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});o&&a.addEventListener(n,o,{once:!0}),l?a0(a,u):a.dispatchEvent(u)}var dl="focusScope.autoFocusOnMount",fl="focusScope.autoFocusOnUnmount",ud={bubbles:!1,cancelable:!0},I0="FocusScope",dd=m.forwardRef((n,o)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...f}=n,[p,h]=m.useState(null),v=tt(a),w=tt(u),x=m.useRef(null),b=Pe(o,k=>h(k)),C=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(l){let k=function(T){if(C.paused||!p)return;const I=T.target;p.contains(I)?x.current=I:gn(x.current,{select:!0})},S=function(T){if(C.paused||!p)return;const I=T.relatedTarget;I!==null&&(p.contains(I)||gn(x.current,{select:!0}))},N=function(T){if(document.activeElement===document.body)for(const U of T)U.removedNodes.length>0&&gn(p)};document.addEventListener("focusin",k),document.addEventListener("focusout",S);const R=new MutationObserver(N);return p&&R.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",S),R.disconnect()}}},[l,p,C.paused]),m.useEffect(()=>{if(p){hd.add(C);const k=document.activeElement;if(!p.contains(k)){const N=new CustomEvent(dl,ud);p.addEventListener(dl,v),p.dispatchEvent(N),N.defaultPrevented||(M0(F0(fd(p)),{select:!0}),document.activeElement===k&&gn(p))}return()=>{p.removeEventListener(dl,v),setTimeout(()=>{const N=new CustomEvent(fl,ud);p.addEventListener(fl,w),p.dispatchEvent(N),N.defaultPrevented||gn(k??document.body,{select:!0}),p.removeEventListener(fl,w),hd.remove(C)},0)}}},[p,v,w,C]);const _=m.useCallback(k=>{if(!i&&!l||C.paused)return;const S=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,N=document.activeElement;if(S&&N){const R=k.currentTarget,[T,I]=z0(R);T&&I?!k.shiftKey&&N===I?(k.preventDefault(),i&&gn(T,{select:!0})):k.shiftKey&&N===T&&(k.preventDefault(),i&&gn(I,{select:!0})):N===R&&k.preventDefault()}},[i,l,C.paused]);return g.jsx(pe.div,{tabIndex:-1,...f,ref:b,onKeyDown:_})});dd.displayName=I0;function M0(n,{select:o=!1}={}){const i=document.activeElement;for(const l of n)if(gn(l,{select:o}),document.activeElement!==i)return}function z0(n){const o=fd(n),i=pd(o,n),l=pd(o.reverse(),n);return[i,l]}function fd(n){const o=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const a=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||a?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)o.push(i.currentNode);return o}function pd(n,o){for(const i of n)if(!L0(i,{upTo:o}))return i}function L0(n,{upTo:o}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(o!==void 0&&n===o)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function O0(n){return n instanceof HTMLInputElement&&"select"in n}function gn(n,{select:o=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&O0(n)&&o&&n.select()}}var hd=D0();function D0(){let n=[];return{add(o){const i=n[0];o!==i&&(i==null||i.pause()),n=md(n,o),n.unshift(o)},remove(o){var i;n=md(n,o),(i=n[0])==null||i.resume()}}}function md(n,o){const i=[...n],l=i.indexOf(o);return l!==-1&&i.splice(l,1),i}function F0(n){return n.filter(o=>o.tagName!=="A")}var $0="Portal",pl=m.forwardRef((n,o)=>{var p;const{container:i,...l}=n,[a,u]=m.useState(!1);He(()=>u(!0),[]);const f=i||a&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?t0.createPortal(g.jsx(pe.div,{...l,ref:o}),f):null});pl.displayName=$0;var hl=0;function U0(){m.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??gd()),document.body.insertAdjacentElement("beforeend",n[1]??gd()),hl++,()=>{hl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),hl--}},[])}function gd(){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 Ut=function(){return Ut=Object.assign||function(o){for(var i,l=1,a=arguments.length;l<a;l++){i=arguments[l];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(o[u]=i[u])}return o},Ut.apply(this,arguments)};function vd(n,o){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&o.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,l=Object.getOwnPropertySymbols(n);a<l.length;a++)o.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(n,l[a])&&(i[l[a]]=n[l[a]]);return i}function H0(n,o,i){if(i||arguments.length===2)for(var l=0,a=o.length,u;l<a;l++)(u||!(l in o))&&(u||(u=Array.prototype.slice.call(o,0,l)),u[l]=o[l]);return n.concat(u||Array.prototype.slice.call(o))}typeof SuppressedError=="function"&&SuppressedError;var oi="right-scroll-bar-position",ii="width-before-scroll-bar",B0="with-scroll-bars-hidden",W0="--removed-body-scroll-bar-size";function ml(n,o){return typeof n=="function"?n(o):n&&(n.current=o),n}function V0(n,o){var i=m.useState(function(){return{value:n,callback:o,facade:{get current(){return i.value},set current(l){var a=i.value;a!==l&&(i.value=l,i.callback(l,a))}}}})[0];return i.callback=o,i.facade}var G0=typeof window<"u"?m.useLayoutEffect:m.useEffect,yd=new WeakMap;function K0(n,o){var i=V0(null,function(l){return n.forEach(function(a){return ml(a,l)})});return G0(function(){var l=yd.get(i);if(l){var a=new Set(l),u=new Set(n),f=i.current;a.forEach(function(p){u.has(p)||ml(p,null)}),u.forEach(function(p){a.has(p)||ml(p,f)})}yd.set(i,n)},[n]),i}function Y0(n){return n}function X0(n,o){o===void 0&&(o=Y0);var i=[],l=!1,a={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:n},useMedium:function(u){var f=o(u,l);return i.push(f),function(){i=i.filter(function(p){return p!==f})}},assignSyncMedium:function(u){for(l=!0;i.length;){var f=i;i=[],f.forEach(u)}i={push:function(p){return u(p)},filter:function(){return i}}},assignMedium:function(u){l=!0;var f=[];if(i.length){var p=i;i=[],p.forEach(u),f=i}var h=function(){var w=f;f=[],w.forEach(u)},v=function(){return Promise.resolve().then(h)};v(),i={push:function(w){f.push(w),v()},filter:function(w){return f=f.filter(w),i}}}};return a}function Q0(n){n===void 0&&(n={});var o=X0(null);return o.options=Ut({async:!0,ssr:!1},n),o}var wd=function(n){var o=n.sideCar,i=vd(n,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=o.read();if(!l)throw new Error("Sidecar medium not found");return m.createElement(l,Ut({},i))};wd.isSideCarExport=!0;function q0(n,o){return n.useMedium(o),wd}var xd=Q0(),gl=function(){},si=m.forwardRef(function(n,o){var i=m.useRef(null),l=m.useState({onScrollCapture:gl,onWheelCapture:gl,onTouchMoveCapture:gl}),a=l[0],u=l[1],f=n.forwardProps,p=n.children,h=n.className,v=n.removeScrollBar,w=n.enabled,x=n.shards,b=n.sideCar,C=n.noRelative,_=n.noIsolation,k=n.inert,S=n.allowPinchZoom,N=n.as,R=N===void 0?"div":N,T=n.gapMode,I=vd(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=b,$=K0([i,o]),O=Ut(Ut({},I),a);return m.createElement(m.Fragment,null,w&&m.createElement(U,{sideCar:xd,removeScrollBar:v,shards:x,noRelative:C,noIsolation:_,inert:k,setCallbacks:u,allowPinchZoom:!!S,lockRef:i,gapMode:T}),f?m.cloneElement(m.Children.only(p),Ut(Ut({},O),{ref:$})):m.createElement(R,Ut({},O,{className:h,ref:$}),p))});si.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},si.classNames={fullWidth:ii,zeroRight:oi};var Z0=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function J0(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var o=Z0();return o&&n.setAttribute("nonce",o),n}function ew(n,o){n.styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o))}function tw(n){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(n)}var nw=function(){var n=0,o=null;return{add:function(i){n==0&&(o=J0())&&(ew(o,i),tw(o)),n++},remove:function(){n--,!n&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},rw=function(){var n=nw();return function(o,i){m.useEffect(function(){return n.add(o),function(){n.remove()}},[o&&i])}},bd=function(){var n=rw(),o=function(i){var l=i.styles,a=i.dynamic;return n(l,a),null};return o},ow={left:0,top:0,right:0,gap:0},vl=function(n){return parseInt(n||"",10)||0},iw=function(n){var o=window.getComputedStyle(document.body),i=o[n==="padding"?"paddingLeft":"marginLeft"],l=o[n==="padding"?"paddingTop":"marginTop"],a=o[n==="padding"?"paddingRight":"marginRight"];return[vl(i),vl(l),vl(a)]},sw=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return ow;var o=iw(n),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,l-i+o[2]-o[0])}},lw=bd(),pr="data-scroll-locked",aw=function(n,o,i,l){var a=n.left,u=n.top,f=n.right,p=n.gap;return i===void 0&&(i="margin"),`
|
|
242
|
-
.`.concat(
|
|
243
|
-
overflow: hidden `).concat(
|
|
244
|
-
padding-right: `).concat(p,"px ").concat(
|
|
241
|
+
*/const Cu=Ae("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Eu(n){var o,i,a="";if(typeof n=="string"||typeof n=="number")a+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(o=0;o<l;o++)n[o]&&(i=Eu(n[o]))&&(a&&(a+=" "),a+=i)}else for(i in n)n[i]&&(a&&(a+=" "),a+=i);return a}function _u(){for(var n,o,i=0,a="",l=arguments.length;i<l;i++)(n=arguments[i])&&(o=Eu(n))&&(a&&(a+=" "),a+=o);return a}const f0=(n,o)=>{const i=new Array(n.length+o.length);for(let a=0;a<n.length;a++)i[a]=n[a];for(let a=0;a<o.length;a++)i[n.length+a]=o[a];return i},p0=(n,o)=>({classGroupId:n,validator:o}),Nu=(n=new Map,o=null,i)=>({nextPart:n,validators:o,classGroupId:i}),Zo="-",Ru=[],h0="arbitrary..",m0=n=>{const o=v0(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return g0(f);const p=f.split(Zo),h=p[0]===""&&p.length>1?1:0;return Pu(p,h,o)},getConflictingClassGroupIds:(f,p)=>{if(p){const h=a[f],v=i[f];return h?v?f0(v,h):h:v||Ru}return i[f]||Ru}}},Pu=(n,o,i)=>{if(n.length-o===0)return i.classGroupId;const l=n[o],u=i.nextPart.get(l);if(u){const v=Pu(n,o+1,u);if(v)return v}const f=i.validators;if(f===null)return;const p=o===0?n.join(Zo):n.slice(o).join(Zo),h=f.length;for(let v=0;v<h;v++){const w=f[v];if(w.validator(p))return w.classGroupId}},g0=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=n.slice(1,-1),i=o.indexOf(":"),a=o.slice(0,i);return a?h0+a:void 0})(),v0=n=>{const{theme:o,classGroups:i}=n;return y0(i,o)},y0=(n,o)=>{const i=Nu();for(const a in n){const l=n[a];ra(l,i,a,o)}return i},ra=(n,o,i,a)=>{const l=n.length;for(let u=0;u<l;u++){const f=n[u];w0(f,o,i,a)}},w0=(n,o,i,a)=>{if(typeof n=="string"){x0(n,o,i);return}if(typeof n=="function"){b0(n,o,i,a);return}k0(n,o,i,a)},x0=(n,o,i)=>{const a=n===""?o:Tu(o,n);a.classGroupId=i},b0=(n,o,i,a)=>{if(S0(n)){ra(n(a),o,i,a);return}o.validators===null&&(o.validators=[]),o.validators.push(p0(i,n))},k0=(n,o,i,a)=>{const l=Object.entries(n),u=l.length;for(let f=0;f<u;f++){const[p,h]=l[f];ra(h,Tu(o,p),i,a)}},Tu=(n,o)=>{let i=n;const a=o.split(Zo),l=a.length;for(let u=0;u<l;u++){const f=a[u];let p=i.nextPart.get(f);p||(p=Nu(),i.nextPart.set(f,p)),i=p}return i},S0=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,C0=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,i=Object.create(null),a=Object.create(null);const l=(u,f)=>{i[u]=f,o++,o>n&&(o=0,a=i,i=Object.create(null))};return{get(u){let f=i[u];if(f!==void 0)return f;if((f=a[u])!==void 0)return l(u,f),f},set(u,f){u in i?i[u]=f:l(u,f)}}},oa="!",ju=":",E0=[],Au=(n,o,i,a,l)=>({modifiers:n,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a,isExternal:l}),_0=n=>{const{prefix:o,experimentalParseClassName:i}=n;let a=l=>{const u=[];let f=0,p=0,h=0,v;const w=l.length;for(let k=0;k<w;k++){const S=l[k];if(f===0&&p===0){if(S===ju){u.push(l.slice(h,k)),h=k+1;continue}if(S==="/"){v=k;continue}}S==="["?f++:S==="]"?f--:S==="("?p++:S===")"&&p--}const x=u.length===0?l:l.slice(h);let b=x,C=!1;x.endsWith(oa)?(b=x.slice(0,-1),C=!0):x.startsWith(oa)&&(b=x.slice(1),C=!0);const _=v&&v>h?v-h:void 0;return Au(u,C,b,_)};if(o){const l=o+ju,u=a;a=f=>f.startsWith(l)?u(f.slice(l.length)):Au(E0,!1,f,void 0,!0)}if(i){const l=a;a=u=>i({className:u,parseClassName:l})}return a},N0=n=>{const o=new Map;return n.orderSensitiveModifiers.forEach((i,a)=>{o.set(i,1e6+a)}),i=>{const a=[];let l=[];for(let u=0;u<i.length;u++){const f=i[u],p=f[0]==="[",h=o.has(f);p||h?(l.length>0&&(l.sort(),a.push(...l),l=[]),a.push(f)):l.push(f)}return l.length>0&&(l.sort(),a.push(...l)),a}},R0=n=>({cache:C0(n.cacheSize),parseClassName:_0(n),sortModifiers:N0(n),...m0(n)}),P0=/\s+/,T0=(n,o)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:l,sortModifiers:u}=o,f=[],p=n.trim().split(P0);let h="";for(let v=p.length-1;v>=0;v-=1){const w=p[v],{isExternal:x,modifiers:b,hasImportantModifier:C,baseClassName:_,maybePostfixModifierPosition:k}=i(w);if(x){h=w+(h.length>0?" "+h:h);continue}let S=!!k,N=a(S?_.substring(0,k):_);if(!N){if(!S){h=w+(h.length>0?" "+h:h);continue}if(N=a(_),!N){h=w+(h.length>0?" "+h:h);continue}S=!1}const R=b.length===0?"":b.length===1?b[0]:u(b).join(":"),T=C?R+oa:R,I=T+N;if(f.indexOf(I)>-1)continue;f.push(I);const U=l(N,S);for(let $=0;$<U.length;++$){const O=U[$];f.push(T+O)}h=w+(h.length>0?" "+h:h)}return h},j0=(...n)=>{let o=0,i,a,l="";for(;o<n.length;)(i=n[o++])&&(a=Iu(i))&&(l&&(l+=" "),l+=a);return l},Iu=n=>{if(typeof n=="string")return n;let o,i="";for(let a=0;a<n.length;a++)n[a]&&(o=Iu(n[a]))&&(i&&(i+=" "),i+=o);return i},A0=(n,...o)=>{let i,a,l,u;const f=h=>{const v=o.reduce((w,x)=>x(w),n());return i=R0(v),a=i.cache.get,l=i.cache.set,u=p,p(h)},p=h=>{const v=a(h);if(v)return v;const w=T0(h,i);return l(h,w),w};return u=f,(...h)=>u(j0(...h))},I0=[],Ge=n=>{const o=i=>i[n]||I0;return o.isThemeGetter=!0,o},zu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,z0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,M0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,L0=/\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$/,O0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,D0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,F0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pn=n=>z0.test(n),Ee=n=>!!n&&!Number.isNaN(Number(n)),hn=n=>!!n&&Number.isInteger(Number(n)),ia=n=>n.endsWith("%")&&Ee(n.slice(0,-1)),qt=n=>M0.test(n),Lu=()=>!0,$0=n=>L0.test(n)&&!O0.test(n),sa=()=>!1,U0=n=>D0.test(n),H0=n=>F0.test(n),B0=n=>!ee(n)&&!oe(n),W0=n=>mn(n,Hu,sa),ee=n=>zu.test(n),Gn=n=>mn(n,Bu,$0),Ou=n=>mn(n,Z0,Ee),V0=n=>mn(n,Vu,Lu),G0=n=>mn(n,Wu,sa),Du=n=>mn(n,$u,sa),K0=n=>mn(n,Uu,H0),Jo=n=>mn(n,Gu,U0),oe=n=>Mu.test(n),Qr=n=>Kn(n,Bu),Y0=n=>Kn(n,Wu),Fu=n=>Kn(n,$u),X0=n=>Kn(n,Hu),Q0=n=>Kn(n,Uu),ei=n=>Kn(n,Gu,!0),q0=n=>Kn(n,Vu,!0),mn=(n,o,i)=>{const a=zu.exec(n);return a?a[1]?o(a[1]):i(a[2]):!1},Kn=(n,o,i=!1)=>{const a=Mu.exec(n);return a?a[1]?o(a[1]):i:!1},$u=n=>n==="position"||n==="percentage",Uu=n=>n==="image"||n==="url",Hu=n=>n==="length"||n==="size"||n==="bg-size",Bu=n=>n==="length",Z0=n=>n==="number",Wu=n=>n==="family-name",Vu=n=>n==="number"||n==="weight",Gu=n=>n==="shadow",J0=A0(()=>{const n=Ge("color"),o=Ge("font"),i=Ge("text"),a=Ge("font-weight"),l=Ge("tracking"),u=Ge("leading"),f=Ge("breakpoint"),p=Ge("container"),h=Ge("spacing"),v=Ge("radius"),w=Ge("shadow"),x=Ge("inset-shadow"),b=Ge("text-shadow"),C=Ge("drop-shadow"),_=Ge("blur"),k=Ge("perspective"),S=Ge("aspect"),N=Ge("ease"),R=Ge("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...I(),oe,ee],$=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],D=()=>[oe,ee,h],Y=()=>[pn,"full","auto",...D()],te=()=>[hn,"none","subgrid",oe,ee],ne=()=>["auto",{span:["full",hn,oe,ee]},hn,oe,ee],se=()=>[hn,"auto",oe,ee],ve=()=>["auto","min","max","fr",oe,ee],xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Se=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...D()],ae=()=>[pn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],H=()=>[pn,"screen","full","dvw","lvw","svw","min","max","fit",...D()],X=()=>[pn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],F=()=>[n,oe,ee],A=()=>[...I(),Fu,Du,{position:[oe,ee]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",X0,W0,{size:[oe,ee]}],ye=()=>[ia,Qr,Gn],fe=()=>["","none","full",v,oe,ee],de=()=>["",Ee,Qr,Gn],Q=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[Ee,ia,Fu,Du],Ce=()=>["","none",_,oe,ee],Ne=()=>["none",Ee,oe,ee],Re=()=>["none",Ee,oe,ee],$e=()=>[Ee,oe,ee],Ke=()=>[pn,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qt],breakpoint:[qt],color:[Lu],container:[qt],"drop-shadow":[qt],ease:["in","out","in-out"],font:[B0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qt],shadow:[qt],spacing:["px",Ee],text:[qt],"text-shadow":[qt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pn,ee,oe,S]}],container:["container"],columns:[{columns:[Ee,ee,oe,p]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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"],sr:["sr-only","not-sr-only"],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:U()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[hn,"auto",oe,ee]}],basis:[{basis:[pn,"full","auto",p,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,pn,"auto","initial","none",ee]}],grow:[{grow:["",Ee,oe,ee]}],shrink:[{shrink:["",Ee,oe,ee]}],order:[{order:[hn,"first","last","none",oe,ee]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...xe(),"normal"]}],"justify-items":[{"justify-items":[...Se(),"normal"]}],"justify-self":[{"justify-self":["auto",...Se()]}],"align-content":[{content:["normal",...xe()]}],"align-items":[{items:[...Se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Se(),{baseline:["","last"]}]}],"place-content":[{"place-content":xe()}],"place-items":[{"place-items":[...Se(),"baseline"]}],"place-self":[{"place-self":["auto",...Se()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mbs:[{mbs:Z()}],mbe:[{mbe:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],"inline-size":[{inline:["auto",...H()]}],"min-inline-size":[{"min-inline":["auto",...H()]}],"max-inline-size":[{"max-inline":["none",...H()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[p,"screen",...ae()]}],"min-w":[{"min-w":[p,"screen","none",...ae()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh",...ae()]}],"font-size":[{text:["base",i,Qr,Gn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,q0,V0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ia,ee]}],"font-family":[{font:[Y0,G0,o]}],"font-features":[{"font-features":[ee]}],"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:[l,oe,ee]}],"line-clamp":[{"line-clamp":[Ee,"none",oe,Ou]}],leading:[{leading:[u,...D()]}],"list-image":[{"list-image":["none",oe,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",oe,Gn]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Ee,"auto",oe,ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hn,oe,ee],radial:["",oe,ee],conic:[hn,oe,ee]},Q0,K0]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:fe()}],"rounded-s":[{"rounded-s":fe()}],"rounded-e":[{"rounded-e":fe()}],"rounded-t":[{"rounded-t":fe()}],"rounded-r":[{"rounded-r":fe()}],"rounded-b":[{"rounded-b":fe()}],"rounded-l":[{"rounded-l":fe()}],"rounded-ss":[{"rounded-ss":fe()}],"rounded-se":[{"rounded-se":fe()}],"rounded-ee":[{"rounded-ee":fe()}],"rounded-es":[{"rounded-es":fe()}],"rounded-tl":[{"rounded-tl":fe()}],"rounded-tr":[{"rounded-tr":fe()}],"rounded-br":[{"rounded-br":fe()}],"rounded-bl":[{"rounded-bl":fe()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-bs":[{"border-bs":de()}],"border-w-be":[{"border-be":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,oe,ee]}],"outline-w":[{outline:["",Ee,Qr,Gn]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",w,ei,Jo]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",x,ei,Jo]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Ee,Gn]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",b,ei,Jo]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Ee,oe,ee]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[oe,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,ee]}],filter:[{filter:["","none",oe,ee]}],blur:[{blur:Ce()}],brightness:[{brightness:[Ee,oe,ee]}],contrast:[{contrast:[Ee,oe,ee]}],"drop-shadow":[{"drop-shadow":["","none",C,ei,Jo]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Ee,oe,ee]}],"hue-rotate":[{"hue-rotate":[Ee,oe,ee]}],invert:[{invert:["",Ee,oe,ee]}],saturate:[{saturate:[Ee,oe,ee]}],sepia:[{sepia:["",Ee,oe,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,ee]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,oe,ee]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,oe,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,oe,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,oe,ee]}],"backdrop-invert":[{"backdrop-invert":["",Ee,oe,ee]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,oe,ee]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,oe,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,oe,ee]}],"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:["","all","colors","opacity","shadow","transform","none",oe,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",oe,ee]}],ease:[{ease:["linear","initial",N,oe,ee]}],delay:[{delay:[Ee,oe,ee]}],animate:[{animate:["none",R,oe,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,oe,ee]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[oe,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",oe,ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",oe,ee]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Ee,Qr,Gn,Ou]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ge=(...n)=>J0(_u(n));function qr({className:n,...o}){return g.jsx("div",{"data-slot":"card",className:ge("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",n),...o})}function ey({className:n,...o}){return g.jsx("div",{"data-slot":"card-header",className:ge("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",n),...o})}function Zr({className:n,...o}){return g.jsx("div",{"data-slot":"card-content",className:ge("px-6",n),...o})}const Ku=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Yu=_u,ti=(n,o)=>i=>{var a;if((o==null?void 0:o.variants)==null)return Yu(n,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:l,defaultVariants:u}=o,f=Object.keys(l).map(v=>{const w=i==null?void 0:i[v],x=u==null?void 0:u[v];if(w===null)return null;const b=Ku(w)||Ku(x);return l[v][b]}),p=i&&Object.entries(i).reduce((v,w)=>{let[x,b]=w;return b===void 0||(v[x]=b),v},{}),h=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((v,w)=>{let{class:x,className:b,...C}=w;return Object.entries(C).every(_=>{let[k,S]=_;return Array.isArray(S)?S.includes({...u,...p}[k]):{...u,...p}[k]===S})?[...v,x,b]:v},[]);return Yu(n,f,h,i==null?void 0:i.class,i==null?void 0:i.className)};var Jr=uu();const ty=$t(Jr);function Xu(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function Qu(...n){return o=>{let i=!1;const a=n.map(l=>{const u=Xu(l,o);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let l=0;l<a.length;l++){const u=a[l];typeof u=="function"?u():Xu(n[l],null)}}}}function Pe(...n){return m.useCallback(Qu(...n),n)}function eo(n){const o=ny(n),i=m.forwardRef((a,l)=>{const{children:u,...f}=a,p=m.Children.toArray(u),h=p.find(oy);if(h){const v=h.props.children,w=p.map(x=>x===h?m.Children.count(v)>1?m.Children.only(null):m.isValidElement(v)?v.props.children:null:x);return g.jsx(o,{...f,ref:l,children:m.isValidElement(v)?m.cloneElement(v,void 0,w):null})}return g.jsx(o,{...f,ref:l,children:u})});return i.displayName=`${n}.Slot`,i}var qu=eo("Slot");function ny(n){const o=m.forwardRef((i,a)=>{const{children:l,...u}=i;if(m.isValidElement(l)){const f=sy(l),p=iy(u,l.props);return l.type!==m.Fragment&&(p.ref=a?Qu(a,f):f),m.cloneElement(l,p)}return m.Children.count(l)>1?m.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var Zu=Symbol("radix.slottable");function ry(n){const o=({children:i})=>g.jsx(g.Fragment,{children:i});return o.displayName=`${n}.Slottable`,o.__radixId=Zu,o}function oy(n){return m.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Zu}function iy(n,o){const i={...o};for(const a in o){const l=n[a],u=o[a];/^on[A-Z]/.test(a)?l&&u?i[a]=(...p)=>{const h=u(...p);return l(...p),h}:l&&(i[a]=l):a==="style"?i[a]={...l,...u}:a==="className"&&(i[a]=[l,u].filter(Boolean).join(" "))}return{...n,...i}}function sy(n){var a,l;let o=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?n.ref:(o=(l=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var ay=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=ay.reduce((n,o)=>{const i=eo(`Primitive.${o}`),a=m.forwardRef((l,u)=>{const{asChild:f,...p}=l,h=f?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(h,{...p,ref:u})});return a.displayName=`Primitive.${o}`,{...n,[o]:a}},{});function ly(n,o){n&&Jr.flushSync(()=>n.dispatchEvent(o))}var Ju=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"}),cy="VisuallyHidden",ed=m.forwardRef((n,o)=>g.jsx(pe.span,{...n,ref:o,style:{...Ju,...n.style}}));ed.displayName=cy;var uy=ed;function ct(n,o=[]){let i=[];function a(u,f){const p=m.createContext(f),h=i.length;i=[...i,f];const v=x=>{var N;const{scope:b,children:C,..._}=x,k=((N=b==null?void 0:b[n])==null?void 0:N[h])||p,S=m.useMemo(()=>_,Object.values(_));return g.jsx(k.Provider,{value:S,children:C})};v.displayName=u+"Provider";function w(x,b){var k;const C=((k=b==null?void 0:b[n])==null?void 0:k[h])||p,_=m.useContext(C);if(_)return _;if(f!==void 0)return f;throw new Error(`\`${x}\` must be used within \`${u}\``)}return[v,w]}const l=()=>{const u=i.map(f=>m.createContext(f));return function(p){const h=(p==null?void 0:p[n])||u;return m.useMemo(()=>({[`__scope${n}`]:{...p,[n]:h}}),[p,h])}};return l.scopeName=n,[a,dy(l,...o)]}function dy(...n){const o=n[0];if(n.length===1)return o;const i=()=>{const a=n.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(u){const f=a.reduce((p,{useScope:h,scopeName:v})=>{const x=h(u)[`__scope${v}`];return{...p,...x}},{});return m.useMemo(()=>({[`__scope${o.scopeName}`]:f}),[f])}};return i.scopeName=o.scopeName,i}function td(n){const o=n+"CollectionProvider",[i,a]=ct(o),[l,u]=i(o,{collectionRef:{current:null},itemMap:new Map}),f=k=>{const{scope:S,children:N}=k,R=mt.useRef(null),T=mt.useRef(new Map).current;return g.jsx(l,{scope:S,itemMap:T,collectionRef:R,children:N})};f.displayName=o;const p=n+"CollectionSlot",h=eo(p),v=mt.forwardRef((k,S)=>{const{scope:N,children:R}=k,T=u(p,N),I=Pe(S,T.collectionRef);return g.jsx(h,{ref:I,children:R})});v.displayName=p;const w=n+"CollectionItemSlot",x="data-radix-collection-item",b=eo(w),C=mt.forwardRef((k,S)=>{const{scope:N,children:R,...T}=k,I=mt.useRef(null),U=Pe(S,I),$=u(w,N);return mt.useEffect(()=>($.itemMap.set(I,{ref:I,...T}),()=>void $.itemMap.delete(I))),g.jsx(b,{[x]:"",ref:U,children:R})});C.displayName=w;function _(k){const S=u(n+"CollectionConsumer",k);return mt.useCallback(()=>{const R=S.collectionRef.current;if(!R)return[];const T=Array.from(R.querySelectorAll(`[${x}]`));return Array.from(S.itemMap.values()).sort(($,O)=>T.indexOf($.ref.current)-T.indexOf(O.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:f,Slot:v,ItemSlot:C},_,a]}function we(n,o,{checkForDefaultPrevented:i=!0}={}){return function(l){if(n==null||n(l),i===!1||!l.defaultPrevented)return o==null?void 0:o(l)}}var He=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},fy=fu[" useInsertionEffect ".trim().toString()]||He;function Zt({prop:n,defaultProp:o,onChange:i=()=>{},caller:a}){const[l,u,f]=py({defaultProp:o,onChange:i}),p=n!==void 0,h=p?n:l;{const w=m.useRef(n!==void 0);m.useEffect(()=>{const x=w.current;x!==p&&console.warn(`${a} is changing from ${x?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),w.current=p},[p,a])}const v=m.useCallback(w=>{var x;if(p){const b=hy(w)?w(n):w;b!==n&&((x=f.current)==null||x.call(f,b))}else u(w)},[p,n,u,f]);return[h,v]}function py({defaultProp:n,onChange:o}){const[i,a]=m.useState(n),l=m.useRef(i),u=m.useRef(o);return fy(()=>{u.current=o},[o]),m.useEffect(()=>{var f;l.current!==i&&((f=u.current)==null||f.call(u,i),l.current=i)},[i,l]),[i,a,u]}function hy(n){return typeof n=="function"}function my(n,o){return m.useReducer((i,a)=>o[i][a]??i,n)}var Pt=n=>{const{present:o,children:i}=n,a=gy(o),l=typeof i=="function"?i({present:a.isPresent}):m.Children.only(i),u=Pe(a.ref,vy(l));return typeof i=="function"||a.isPresent?m.cloneElement(l,{ref:u}):null};Pt.displayName="Presence";function gy(n){const[o,i]=m.useState(),a=m.useRef(null),l=m.useRef(n),u=m.useRef("none"),f=n?"mounted":"unmounted",[p,h]=my(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const v=ni(a.current);u.current=p==="mounted"?v:"none"},[p]),He(()=>{const v=a.current,w=l.current;if(w!==n){const b=u.current,C=ni(v);n?h("MOUNT"):C==="none"||(v==null?void 0:v.display)==="none"?h("UNMOUNT"):h(w&&b!==C?"ANIMATION_OUT":"UNMOUNT"),l.current=n}},[n,h]),He(()=>{if(o){let v;const w=o.ownerDocument.defaultView??window,x=C=>{const k=ni(a.current).includes(CSS.escape(C.animationName));if(C.target===o&&k&&(h("ANIMATION_END"),!l.current)){const S=o.style.animationFillMode;o.style.animationFillMode="forwards",v=w.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=S)})}},b=C=>{C.target===o&&(u.current=ni(a.current))};return o.addEventListener("animationstart",b),o.addEventListener("animationcancel",x),o.addEventListener("animationend",x),()=>{w.clearTimeout(v),o.removeEventListener("animationstart",b),o.removeEventListener("animationcancel",x),o.removeEventListener("animationend",x)}}else h("ANIMATION_END")},[o,h]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:m.useCallback(v=>{a.current=v?getComputedStyle(v):null,i(v)},[])}}function ni(n){return(n==null?void 0:n.animationName)||"none"}function vy(n){var a,l;let o=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?n.ref:(o=(l=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var yy=fu[" useId ".trim().toString()]||(()=>{}),wy=0;function Yn(n){const[o,i]=m.useState(yy());return He(()=>{i(a=>a??String(wy++))},[n]),n||(o?`radix-${o}`:"")}var ri="Collapsible",[xy]=ct(ri),[by,aa]=xy(ri),nd=m.forwardRef((n,o)=>{const{__scopeCollapsible:i,open:a,defaultOpen:l,disabled:u,onOpenChange:f,...p}=n,[h,v]=Zt({prop:a,defaultProp:l??!1,onChange:f,caller:ri});return g.jsx(by,{scope:i,disabled:u,contentId:Yn(),open:h,onOpenToggle:m.useCallback(()=>v(w=>!w),[v]),children:g.jsx(pe.div,{"data-state":ca(h),"data-disabled":u?"":void 0,...p,ref:o})})});nd.displayName=ri;var rd="CollapsibleTrigger",od=m.forwardRef((n,o)=>{const{__scopeCollapsible:i,...a}=n,l=aa(rd,i);return g.jsx(pe.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":ca(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...a,ref:o,onClick:we(n.onClick,l.onOpenToggle)})});od.displayName=rd;var la="CollapsibleContent",id=m.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=aa(la,n.__scopeCollapsible);return g.jsx(Pt,{present:i||l.open,children:({present:u})=>g.jsx(ky,{...a,ref:o,present:u})})});id.displayName=la;var ky=m.forwardRef((n,o)=>{const{__scopeCollapsible:i,present:a,children:l,...u}=n,f=aa(la,i),[p,h]=m.useState(a),v=m.useRef(null),w=Pe(o,v),x=m.useRef(0),b=x.current,C=m.useRef(0),_=C.current,k=f.open||p,S=m.useRef(k),N=m.useRef(void 0);return m.useEffect(()=>{const R=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(R)},[]),He(()=>{const R=v.current;if(R){N.current=N.current||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const T=R.getBoundingClientRect();x.current=T.height,C.current=T.width,S.current||(R.style.transitionDuration=N.current.transitionDuration,R.style.animationName=N.current.animationName),h(a)}},[f.open,a]),g.jsx(pe.div,{"data-state":ca(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!k,...u,ref:w,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...n.style},children:k&&l})});function ca(n){return n?"open":"closed"}var Sy=nd,Cy=m.createContext(void 0);function to(n){const o=m.useContext(Cy);return n||o||"ltr"}function tt(n){const o=m.useRef(n);return m.useEffect(()=>{o.current=n}),m.useMemo(()=>(...i)=>{var a;return(a=o.current)==null?void 0:a.call(o,...i)},[])}function Ey(n,o=globalThis==null?void 0:globalThis.document){const i=tt(n);m.useEffect(()=>{const a=l=>{l.key==="Escape"&&i(l)};return o.addEventListener("keydown",a,{capture:!0}),()=>o.removeEventListener("keydown",a,{capture:!0})},[i,o])}var _y="DismissableLayer",ua="dismissableLayer.update",Ny="dismissableLayer.pointerDownOutside",Ry="dismissableLayer.focusOutside",sd,ad=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),da=m.forwardRef((n,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,onDismiss:p,...h}=n,v=m.useContext(ad),[w,x]=m.useState(null),b=(w==null?void 0:w.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=m.useState({}),_=Pe(o,O=>x(O)),k=Array.from(v.layers),[S]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),N=k.indexOf(S),R=w?k.indexOf(w):-1,T=v.layersWithOutsidePointerEventsDisabled.size>0,I=R>=N,U=jy(O=>{const D=O.target,Y=[...v.branches].some(te=>te.contains(D));!I||Y||(l==null||l(O),f==null||f(O),O.defaultPrevented||p==null||p())},b),$=Ay(O=>{const D=O.target;[...v.branches].some(te=>te.contains(D))||(u==null||u(O),f==null||f(O),O.defaultPrevented||p==null||p())},b);return Ey(O=>{R===v.layers.size-1&&(a==null||a(O),!O.defaultPrevented&&p&&(O.preventDefault(),p()))},b),m.useEffect(()=>{if(w)return i&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(sd=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(w)),v.layers.add(w),ld(),()=>{i&&v.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=sd)}},[w,b,i,v]),m.useEffect(()=>()=>{w&&(v.layers.delete(w),v.layersWithOutsidePointerEventsDisabled.delete(w),ld())},[w,v]),m.useEffect(()=>{const O=()=>C({});return document.addEventListener(ua,O),()=>document.removeEventListener(ua,O)},[]),g.jsx(pe.div,{...h,ref:_,style:{pointerEvents:T?I?"auto":"none":void 0,...n.style},onFocusCapture:we(n.onFocusCapture,$.onFocusCapture),onBlurCapture:we(n.onBlurCapture,$.onBlurCapture),onPointerDownCapture:we(n.onPointerDownCapture,U.onPointerDownCapture)})});da.displayName=_y;var Py="DismissableLayerBranch",Ty=m.forwardRef((n,o)=>{const i=m.useContext(ad),a=m.useRef(null),l=Pe(o,a);return m.useEffect(()=>{const u=a.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),g.jsx(pe.div,{...n,ref:l})});Ty.displayName=Py;function jy(n,o=globalThis==null?void 0:globalThis.document){const i=tt(n),a=m.useRef(!1),l=m.useRef(()=>{});return m.useEffect(()=>{const u=p=>{if(p.target&&!a.current){let h=function(){cd(Ny,i,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",l.current),l.current=h,o.addEventListener("click",l.current,{once:!0})):h()}else o.removeEventListener("click",l.current);a.current=!1},f=window.setTimeout(()=>{o.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),o.removeEventListener("pointerdown",u),o.removeEventListener("click",l.current)}},[o,i]),{onPointerDownCapture:()=>a.current=!0}}function Ay(n,o=globalThis==null?void 0:globalThis.document){const i=tt(n),a=m.useRef(!1);return m.useEffect(()=>{const l=u=>{u.target&&!a.current&&cd(Ry,i,{originalEvent:u},{discrete:!1})};return o.addEventListener("focusin",l),()=>o.removeEventListener("focusin",l)},[o,i]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function ld(){const n=new CustomEvent(ua);document.dispatchEvent(n)}function cd(n,o,i,{discrete:a}){const l=i.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});o&&l.addEventListener(n,o,{once:!0}),a?ly(l,u):l.dispatchEvent(u)}var fa="focusScope.autoFocusOnMount",pa="focusScope.autoFocusOnUnmount",ud={bubbles:!1,cancelable:!0},Iy="FocusScope",dd=m.forwardRef((n,o)=>{const{loop:i=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...f}=n,[p,h]=m.useState(null),v=tt(l),w=tt(u),x=m.useRef(null),b=Pe(o,k=>h(k)),C=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(a){let k=function(T){if(C.paused||!p)return;const I=T.target;p.contains(I)?x.current=I:gn(x.current,{select:!0})},S=function(T){if(C.paused||!p)return;const I=T.relatedTarget;I!==null&&(p.contains(I)||gn(x.current,{select:!0}))},N=function(T){if(document.activeElement===document.body)for(const U of T)U.removedNodes.length>0&&gn(p)};document.addEventListener("focusin",k),document.addEventListener("focusout",S);const R=new MutationObserver(N);return p&&R.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",S),R.disconnect()}}},[a,p,C.paused]),m.useEffect(()=>{if(p){hd.add(C);const k=document.activeElement;if(!p.contains(k)){const N=new CustomEvent(fa,ud);p.addEventListener(fa,v),p.dispatchEvent(N),N.defaultPrevented||(zy(Fy(fd(p)),{select:!0}),document.activeElement===k&&gn(p))}return()=>{p.removeEventListener(fa,v),setTimeout(()=>{const N=new CustomEvent(pa,ud);p.addEventListener(pa,w),p.dispatchEvent(N),N.defaultPrevented||gn(k??document.body,{select:!0}),p.removeEventListener(pa,w),hd.remove(C)},0)}}},[p,v,w,C]);const _=m.useCallback(k=>{if(!i&&!a||C.paused)return;const S=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,N=document.activeElement;if(S&&N){const R=k.currentTarget,[T,I]=My(R);T&&I?!k.shiftKey&&N===I?(k.preventDefault(),i&&gn(T,{select:!0})):k.shiftKey&&N===T&&(k.preventDefault(),i&&gn(I,{select:!0})):N===R&&k.preventDefault()}},[i,a,C.paused]);return g.jsx(pe.div,{tabIndex:-1,...f,ref:b,onKeyDown:_})});dd.displayName=Iy;function zy(n,{select:o=!1}={}){const i=document.activeElement;for(const a of n)if(gn(a,{select:o}),document.activeElement!==i)return}function My(n){const o=fd(n),i=pd(o,n),a=pd(o.reverse(),n);return[i,a]}function fd(n){const o=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const l=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||l?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)o.push(i.currentNode);return o}function pd(n,o){for(const i of n)if(!Ly(i,{upTo:o}))return i}function Ly(n,{upTo:o}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(o!==void 0&&n===o)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Oy(n){return n instanceof HTMLInputElement&&"select"in n}function gn(n,{select:o=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&Oy(n)&&o&&n.select()}}var hd=Dy();function Dy(){let n=[];return{add(o){const i=n[0];o!==i&&(i==null||i.pause()),n=md(n,o),n.unshift(o)},remove(o){var i;n=md(n,o),(i=n[0])==null||i.resume()}}}function md(n,o){const i=[...n],a=i.indexOf(o);return a!==-1&&i.splice(a,1),i}function Fy(n){return n.filter(o=>o.tagName!=="A")}var $y="Portal",ha=m.forwardRef((n,o)=>{var p;const{container:i,...a}=n,[l,u]=m.useState(!1);He(()=>u(!0),[]);const f=i||l&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?ty.createPortal(g.jsx(pe.div,{...a,ref:o}),f):null});ha.displayName=$y;var ma=0;function Uy(){m.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??gd()),document.body.insertAdjacentElement("beforeend",n[1]??gd()),ma++,()=>{ma===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),ma--}},[])}function gd(){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 Ut=function(){return Ut=Object.assign||function(o){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(o[u]=i[u])}return o},Ut.apply(this,arguments)};function vd(n,o){var i={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(i[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(n);l<a.length;l++)o.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(n,a[l])&&(i[a[l]]=n[a[l]]);return i}function Hy(n,o,i){if(i||arguments.length===2)for(var a=0,l=o.length,u;a<l;a++)(u||!(a in o))&&(u||(u=Array.prototype.slice.call(o,0,a)),u[a]=o[a]);return n.concat(u||Array.prototype.slice.call(o))}typeof SuppressedError=="function"&&SuppressedError;var oi="right-scroll-bar-position",ii="width-before-scroll-bar",By="with-scroll-bars-hidden",Wy="--removed-body-scroll-bar-size";function ga(n,o){return typeof n=="function"?n(o):n&&(n.current=o),n}function Vy(n,o){var i=m.useState(function(){return{value:n,callback:o,facade:{get current(){return i.value},set current(a){var l=i.value;l!==a&&(i.value=a,i.callback(a,l))}}}})[0];return i.callback=o,i.facade}var Gy=typeof window<"u"?m.useLayoutEffect:m.useEffect,yd=new WeakMap;function Ky(n,o){var i=Vy(null,function(a){return n.forEach(function(l){return ga(l,a)})});return Gy(function(){var a=yd.get(i);if(a){var l=new Set(a),u=new Set(n),f=i.current;l.forEach(function(p){u.has(p)||ga(p,null)}),u.forEach(function(p){l.has(p)||ga(p,f)})}yd.set(i,n)},[n]),i}function Yy(n){return n}function Xy(n,o){o===void 0&&(o=Yy);var i=[],a=!1,l={read:function(){if(a)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 f=o(u,a);return i.push(f),function(){i=i.filter(function(p){return p!==f})}},assignSyncMedium:function(u){for(a=!0;i.length;){var f=i;i=[],f.forEach(u)}i={push:function(p){return u(p)},filter:function(){return i}}},assignMedium:function(u){a=!0;var f=[];if(i.length){var p=i;i=[],p.forEach(u),f=i}var h=function(){var w=f;f=[],w.forEach(u)},v=function(){return Promise.resolve().then(h)};v(),i={push:function(w){f.push(w),v()},filter:function(w){return f=f.filter(w),i}}}};return l}function Qy(n){n===void 0&&(n={});var o=Xy(null);return o.options=Ut({async:!0,ssr:!1},n),o}var wd=function(n){var o=n.sideCar,i=vd(n,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=o.read();if(!a)throw new Error("Sidecar medium not found");return m.createElement(a,Ut({},i))};wd.isSideCarExport=!0;function qy(n,o){return n.useMedium(o),wd}var xd=Qy(),va=function(){},si=m.forwardRef(function(n,o){var i=m.useRef(null),a=m.useState({onScrollCapture:va,onWheelCapture:va,onTouchMoveCapture:va}),l=a[0],u=a[1],f=n.forwardProps,p=n.children,h=n.className,v=n.removeScrollBar,w=n.enabled,x=n.shards,b=n.sideCar,C=n.noRelative,_=n.noIsolation,k=n.inert,S=n.allowPinchZoom,N=n.as,R=N===void 0?"div":N,T=n.gapMode,I=vd(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=b,$=Ky([i,o]),O=Ut(Ut({},I),l);return m.createElement(m.Fragment,null,w&&m.createElement(U,{sideCar:xd,removeScrollBar:v,shards:x,noRelative:C,noIsolation:_,inert:k,setCallbacks:u,allowPinchZoom:!!S,lockRef:i,gapMode:T}),f?m.cloneElement(m.Children.only(p),Ut(Ut({},O),{ref:$})):m.createElement(R,Ut({},O,{className:h,ref:$}),p))});si.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},si.classNames={fullWidth:ii,zeroRight:oi};var Zy=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jy(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var o=Zy();return o&&n.setAttribute("nonce",o),n}function ew(n,o){n.styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o))}function tw(n){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(n)}var nw=function(){var n=0,o=null;return{add:function(i){n==0&&(o=Jy())&&(ew(o,i),tw(o)),n++},remove:function(){n--,!n&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},rw=function(){var n=nw();return function(o,i){m.useEffect(function(){return n.add(o),function(){n.remove()}},[o&&i])}},bd=function(){var n=rw(),o=function(i){var a=i.styles,l=i.dynamic;return n(a,l),null};return o},ow={left:0,top:0,right:0,gap:0},ya=function(n){return parseInt(n||"",10)||0},iw=function(n){var o=window.getComputedStyle(document.body),i=o[n==="padding"?"paddingLeft":"marginLeft"],a=o[n==="padding"?"paddingTop":"marginTop"],l=o[n==="padding"?"paddingRight":"marginRight"];return[ya(i),ya(a),ya(l)]},sw=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return ow;var o=iw(n),i=document.documentElement.clientWidth,a=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,a-i+o[2]-o[0])}},aw=bd(),pr="data-scroll-locked",lw=function(n,o,i,a){var l=n.left,u=n.top,f=n.right,p=n.gap;return i===void 0&&(i="margin"),`
|
|
242
|
+
.`.concat(By,` {
|
|
243
|
+
overflow: hidden `).concat(a,`;
|
|
244
|
+
padding-right: `).concat(p,"px ").concat(a,`;
|
|
245
245
|
}
|
|
246
246
|
body[`).concat(pr,`] {
|
|
247
|
-
overflow: hidden `).concat(
|
|
247
|
+
overflow: hidden `).concat(a,`;
|
|
248
248
|
overscroll-behavior: contain;
|
|
249
|
-
`).concat([o&&"position: relative ".concat(
|
|
250
|
-
padding-left: `.concat(
|
|
249
|
+
`).concat([o&&"position: relative ".concat(a,";"),i==="margin"&&`
|
|
250
|
+
padding-left: `.concat(l,`px;
|
|
251
251
|
padding-top: `).concat(u,`px;
|
|
252
252
|
padding-right: `).concat(f,`px;
|
|
253
253
|
margin-left:0;
|
|
254
254
|
margin-top:0;
|
|
255
|
-
margin-right: `).concat(p,"px ").concat(
|
|
256
|
-
`),i==="padding"&&"padding-right: ".concat(p,"px ").concat(
|
|
255
|
+
margin-right: `).concat(p,"px ").concat(a,`;
|
|
256
|
+
`),i==="padding"&&"padding-right: ".concat(p,"px ").concat(a,";")].filter(Boolean).join(""),`
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
.`).concat(oi,` {
|
|
260
|
-
right: `).concat(p,"px ").concat(
|
|
260
|
+
right: `).concat(p,"px ").concat(a,`;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
.`).concat(ii,` {
|
|
264
|
-
margin-right: `).concat(p,"px ").concat(
|
|
264
|
+
margin-right: `).concat(p,"px ").concat(a,`;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
.`).concat(oi," .").concat(oi,` {
|
|
268
|
-
right: 0 `).concat(
|
|
268
|
+
right: 0 `).concat(a,`;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.`).concat(ii," .").concat(ii,` {
|
|
272
|
-
margin-right: 0 `).concat(
|
|
272
|
+
margin-right: 0 `).concat(a,`;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
body[`).concat(pr,`] {
|
|
276
|
-
`).concat(
|
|
276
|
+
`).concat(Wy,": ").concat(p,`px;
|
|
277
277
|
}
|
|
278
|
-
`)},kd=function(){var n=parseInt(document.body.getAttribute(pr)||"0",10);return isFinite(n)?n:0},cw=function(){m.useEffect(function(){return document.body.setAttribute(pr,(kd()+1).toString()),function(){var n=kd()-1;n<=0?document.body.removeAttribute(pr):document.body.setAttribute(pr,n.toString())}},[])},uw=function(n){var o=n.noRelative,i=n.noImportant,
|
|
278
|
+
`)},kd=function(){var n=parseInt(document.body.getAttribute(pr)||"0",10);return isFinite(n)?n:0},cw=function(){m.useEffect(function(){return document.body.setAttribute(pr,(kd()+1).toString()),function(){var n=kd()-1;n<=0?document.body.removeAttribute(pr):document.body.setAttribute(pr,n.toString())}},[])},uw=function(n){var o=n.noRelative,i=n.noImportant,a=n.gapMode,l=a===void 0?"margin":a;cw();var u=m.useMemo(function(){return sw(l)},[l]);return m.createElement(aw,{styles:lw(u,!o,l,i?"":"!important")})},wa=!1;if(typeof window<"u")try{var ai=Object.defineProperty({},"passive",{get:function(){return wa=!0,!0}});window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{wa=!1}var hr=wa?{passive:!1}:!1,dw=function(n){return n.tagName==="TEXTAREA"},Sd=function(n,o){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[o]!=="hidden"&&!(i.overflowY===i.overflowX&&!dw(n)&&i[o]==="visible")},fw=function(n){return Sd(n,"overflowY")},pw=function(n){return Sd(n,"overflowX")},Cd=function(n,o){var i=o.ownerDocument,a=o;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var l=Ed(n,a);if(l){var u=_d(n,a),f=u[1],p=u[2];if(f>p)return!0}a=a.parentNode}while(a&&a!==i.body);return!1},hw=function(n){var o=n.scrollTop,i=n.scrollHeight,a=n.clientHeight;return[o,i,a]},mw=function(n){var o=n.scrollLeft,i=n.scrollWidth,a=n.clientWidth;return[o,i,a]},Ed=function(n,o){return n==="v"?fw(o):pw(o)},_d=function(n,o){return n==="v"?hw(o):mw(o)},gw=function(n,o){return n==="h"&&o==="rtl"?-1:1},vw=function(n,o,i,a,l){var u=gw(n,window.getComputedStyle(o).direction),f=u*a,p=i.target,h=o.contains(p),v=!1,w=f>0,x=0,b=0;do{if(!p)break;var C=_d(n,p),_=C[0],k=C[1],S=C[2],N=k-S-u*_;(_||N)&&Ed(n,p)&&(x+=N,b+=_);var R=p.parentNode;p=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!h&&p!==document.body||h&&(o.contains(p)||o===p));return(w&&Math.abs(x)<1||!w&&Math.abs(b)<1)&&(v=!0),v},li=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Nd=function(n){return[n.deltaX,n.deltaY]},Rd=function(n){return n&&"current"in n?n.current:n},yw=function(n,o){return n[0]===o[0]&&n[1]===o[1]},ww=function(n){return`
|
|
279
279
|
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
280
280
|
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
281
|
-
`)},xw=0,mr=[];function bw(n){var o=m.useRef([]),i=m.useRef([0,0]),
|
|
281
|
+
`)},xw=0,mr=[];function bw(n){var o=m.useRef([]),i=m.useRef([0,0]),a=m.useRef(),l=m.useState(xw++)[0],u=m.useState(bd)[0],f=m.useRef(n);m.useEffect(function(){f.current=n},[n]),m.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(l));var k=Hy([n.lockRef.current],(n.shards||[]).map(Rd),!0).filter(Boolean);return k.forEach(function(S){return S.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),k.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(l))})}}},[n.inert,n.lockRef.current,n.shards]);var p=m.useCallback(function(k,S){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!f.current.allowPinchZoom;var N=li(k),R=i.current,T="deltaX"in k?k.deltaX:R[0]-N[0],I="deltaY"in k?k.deltaY:R[1]-N[1],U,$=k.target,O=Math.abs(T)>Math.abs(I)?"h":"v";if("touches"in k&&O==="h"&&$.type==="range")return!1;var D=window.getSelection(),Y=D&&D.anchorNode,te=Y?Y===$||Y.contains($):!1;if(te)return!1;var ne=Cd(O,$);if(!ne)return!0;if(ne?U=O:(U=O==="v"?"h":"v",ne=Cd(O,$)),!ne)return!1;if(!a.current&&"changedTouches"in k&&(T||I)&&(a.current=U),!U)return!0;var se=a.current||U;return vw(se,S,k,se==="h"?T:I)},[]),h=m.useCallback(function(k){var S=k;if(!(!mr.length||mr[mr.length-1]!==u)){var N="deltaY"in S?Nd(S):li(S),R=o.current.filter(function(U){return U.name===S.type&&(U.target===S.target||S.target===U.shadowParent)&&yw(U.delta,N)})[0];if(R&&R.should){S.cancelable&&S.preventDefault();return}if(!R){var T=(f.current.shards||[]).map(Rd).filter(Boolean).filter(function(U){return U.contains(S.target)}),I=T.length>0?p(S,T[0]):!f.current.noIsolation;I&&S.cancelable&&S.preventDefault()}}},[]),v=m.useCallback(function(k,S,N,R){var T={name:k,delta:S,target:N,should:R,shadowParent:kw(N)};o.current.push(T),setTimeout(function(){o.current=o.current.filter(function(I){return I!==T})},1)},[]),w=m.useCallback(function(k){i.current=li(k),a.current=void 0},[]),x=m.useCallback(function(k){v(k.type,Nd(k),k.target,p(k,n.lockRef.current))},[]),b=m.useCallback(function(k){v(k.type,li(k),k.target,p(k,n.lockRef.current))},[]);m.useEffect(function(){return mr.push(u),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:b}),document.addEventListener("wheel",h,hr),document.addEventListener("touchmove",h,hr),document.addEventListener("touchstart",w,hr),function(){mr=mr.filter(function(k){return k!==u}),document.removeEventListener("wheel",h,hr),document.removeEventListener("touchmove",h,hr),document.removeEventListener("touchstart",w,hr)}},[]);var C=n.removeScrollBar,_=n.inert;return m.createElement(m.Fragment,null,_?m.createElement(u,{styles:ww(l)}):null,C?m.createElement(uw,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function kw(n){for(var o=null;n!==null;)n instanceof ShadowRoot&&(o=n.host,n=n.host),n=n.parentNode;return o}const Sw=qy(xd,bw);var Pd=m.forwardRef(function(n,o){return m.createElement(si,Ut({},n,{ref:o,sideCar:Sw}))});Pd.classNames=si.classNames;var Cw=function(n){if(typeof document>"u")return null;var o=Array.isArray(n)?n[0]:n;return o.ownerDocument.body},gr=new WeakMap,ci=new WeakMap,ui={},xa=0,Td=function(n){return n&&(n.host||Td(n.parentNode))},Ew=function(n,o){return o.map(function(i){if(n.contains(i))return i;var a=Td(i);return a&&n.contains(a)?a:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},_w=function(n,o,i,a){var l=Ew(o,Array.isArray(n)?n:[n]);ui[i]||(ui[i]=new WeakMap);var u=ui[i],f=[],p=new Set,h=new Set(l),v=function(x){!x||p.has(x)||(p.add(x),v(x.parentNode))};l.forEach(v);var w=function(x){!x||h.has(x)||Array.prototype.forEach.call(x.children,function(b){if(p.has(b))w(b);else try{var C=b.getAttribute(a),_=C!==null&&C!=="false",k=(gr.get(b)||0)+1,S=(u.get(b)||0)+1;gr.set(b,k),u.set(b,S),f.push(b),k===1&&_&&ci.set(b,!0),S===1&&b.setAttribute(i,"true"),_||b.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return w(o),p.clear(),xa++,function(){f.forEach(function(x){var b=gr.get(x)-1,C=u.get(x)-1;gr.set(x,b),u.set(x,C),b||(ci.has(x)||x.removeAttribute(a),ci.delete(x)),C||x.removeAttribute(i)}),xa--,xa||(gr=new WeakMap,gr=new WeakMap,ci=new WeakMap,ui={})}},Nw=function(n,o,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(n)?n:[n]),l=Cw(n);return l?(a.push.apply(a,Array.from(l.querySelectorAll("[aria-live], script"))),_w(a,l,i,"aria-hidden")):function(){return null}},ba={exports:{}},ka={};/**
|
|
282
282
|
* @license React
|
|
283
283
|
* use-sync-external-store-shim.production.js
|
|
284
284
|
*
|
|
@@ -286,16 +286,16 @@ Error generating stack: `+d.message+`
|
|
|
286
286
|
*
|
|
287
287
|
* This source code is licensed under the MIT license found in the
|
|
288
288
|
* LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/var jd;function Rw(){if(jd)return bl;jd=1;var n=Yo();function o(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}var i=typeof Object.is=="function"?Object.is:o,l=n.useState,a=n.useEffect,u=n.useLayoutEffect,f=n.useDebugValue;function p(x,b){var C=b(),_=l({inst:{value:C,getSnapshot:b}}),k=_[0].inst,S=_[1];return u(function(){k.value=C,k.getSnapshot=b,h(k)&&S({inst:k})},[x,C,b]),a(function(){return h(k)&&S({inst:k}),x(function(){h(k)&&S({inst:k})})},[x]),f(C),C}function h(x){var b=x.getSnapshot;x=x.value;try{var C=b();return!i(x,C)}catch{return!0}}function v(x,b){return b()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:p;return bl.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:w,bl}var Ad;function Pw(){return Ad||(Ad=1,xl.exports=Rw()),xl.exports}var Tw=Pw();function jw(){return Tw.useSyncExternalStore(Aw,()=>!0,()=>!1)}function Aw(){return()=>{}}var kl="Avatar",[Iw]=ct(kl),[Mw,Id]=Iw(kl),Md=m.forwardRef((n,o)=>{const{__scopeAvatar:i,...l}=n,[a,u]=m.useState("idle");return g.jsx(Mw,{scope:i,imageLoadingStatus:a,onImageLoadingStatusChange:u,children:g.jsx(pe.span,{...l,ref:o})})});Md.displayName=kl;var zd="AvatarImage",Ld=m.forwardRef((n,o)=>{const{__scopeAvatar:i,src:l,onLoadingStatusChange:a=()=>{},...u}=n,f=Id(zd,i),p=zw(l,u),h=tt(v=>{a(v),f.onImageLoadingStatusChange(v)});return He(()=>{p!=="idle"&&h(p)},[p,h]),p==="loaded"?g.jsx(pe.img,{...u,ref:o,src:l}):null});Ld.displayName=zd;var Od="AvatarFallback",Dd=m.forwardRef((n,o)=>{const{__scopeAvatar:i,delayMs:l,...a}=n,u=Id(Od,i),[f,p]=m.useState(l===void 0);return m.useEffect(()=>{if(l!==void 0){const h=window.setTimeout(()=>p(!0),l);return()=>window.clearTimeout(h)}},[l]),f&&u.imageLoadingStatus!=="loaded"?g.jsx(pe.span,{...a,ref:o}):null});Dd.displayName=Od;function Fd(n,o){return n?o?(n.src!==o&&(n.src=o),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function zw(n,{referrerPolicy:o,crossOrigin:i}){const l=jw(),a=m.useRef(null),u=l?(a.current||(a.current=new window.Image),a.current):null,[f,p]=m.useState(()=>Fd(u,n));return He(()=>{p(Fd(u,n))},[u,n]),He(()=>{const h=x=>()=>{p(x)};if(!u)return;const v=h("loaded"),w=h("error");return u.addEventListener("load",v),u.addEventListener("error",w),o&&(u.referrerPolicy=o),typeof i=="string"&&(u.crossOrigin=i),()=>{u.removeEventListener("load",v),u.removeEventListener("error",w)}},[u,i,o]),f}var Lw=Md,Ow=Ld,Dw=Dd;function di(n){const o=m.useRef({value:n,previous:n});return m.useMemo(()=>(o.current.value!==n&&(o.current.previous=o.current.value,o.current.value=n),o.current.previous),[n])}function fi(n){const[o,i]=m.useState(void 0);return He(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const l=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let f,p;if("borderBoxSize"in u){const h=u.borderBoxSize,v=Array.isArray(h)?h[0]:h;f=v.inlineSize,p=v.blockSize}else f=n.offsetWidth,p=n.offsetHeight;i({width:f,height:p})});return l.observe(n,{box:"border-box"}),()=>l.unobserve(n)}else i(void 0)},[n]),o}var pi="Checkbox",[Fw]=ct(pi),[$w,Sl]=Fw(pi);function Uw(n){const{__scopeCheckbox:o,checked:i,children:l,defaultChecked:a,disabled:u,form:f,name:p,onCheckedChange:h,required:v,value:w="on",internal_do_not_use_render:x}=n,[b,C]=Zt({prop:i,defaultProp:a??!1,onChange:h,caller:pi}),[_,k]=m.useState(null),[S,N]=m.useState(null),R=m.useRef(!1),T=_?!!f||!!_.closest("form"):!0,I={checked:b,disabled:u,setChecked:C,control:_,setControl:k,name:p,form:f,value:w,hasConsumerStoppedPropagationRef:R,required:v,defaultChecked:vn(a)?!1:a,isFormControl:T,bubbleInput:S,setBubbleInput:N};return g.jsx($w,{scope:o,...I,children:Hw(x)?x(I):l})}var $d="CheckboxTrigger",Ud=m.forwardRef(({__scopeCheckbox:n,onKeyDown:o,onClick:i,...l},a)=>{const{control:u,value:f,disabled:p,checked:h,required:v,setControl:w,setChecked:x,hasConsumerStoppedPropagationRef:b,isFormControl:C,bubbleInput:_}=Sl($d,n),k=Pe(a,w),S=m.useRef(h);return m.useEffect(()=>{const N=u==null?void 0:u.form;if(N){const R=()=>x(S.current);return N.addEventListener("reset",R),()=>N.removeEventListener("reset",R)}},[u,x]),g.jsx(pe.button,{type:"button",role:"checkbox","aria-checked":vn(h)?"mixed":h,"aria-required":v,"data-state":Kd(h),"data-disabled":p?"":void 0,disabled:p,value:f,...l,ref:k,onKeyDown:we(o,N=>{N.key==="Enter"&&N.preventDefault()}),onClick:we(i,N=>{x(R=>vn(R)?!0:!R),_&&C&&(b.current=N.isPropagationStopped(),b.current||N.stopPropagation())})})});Ud.displayName=$d;var Hd=m.forwardRef((n,o)=>{const{__scopeCheckbox:i,name:l,checked:a,defaultChecked:u,required:f,disabled:p,value:h,onCheckedChange:v,form:w,...x}=n;return g.jsx(Uw,{__scopeCheckbox:i,checked:a,defaultChecked:u,disabled:p,required:f,onCheckedChange:v,name:l,form:w,value:h,internal_do_not_use_render:({isFormControl:b})=>g.jsxs(g.Fragment,{children:[g.jsx(Ud,{...x,ref:o,__scopeCheckbox:i}),b&&g.jsx(Gd,{__scopeCheckbox:i})]})})});Hd.displayName=pi;var Bd="CheckboxIndicator",Wd=m.forwardRef((n,o)=>{const{__scopeCheckbox:i,forceMount:l,...a}=n,u=Sl(Bd,i);return g.jsx(Pt,{present:l||vn(u.checked)||u.checked===!0,children:g.jsx(pe.span,{"data-state":Kd(u.checked),"data-disabled":u.disabled?"":void 0,...a,ref:o,style:{pointerEvents:"none",...n.style}})})});Wd.displayName=Bd;var Vd="CheckboxBubbleInput",Gd=m.forwardRef(({__scopeCheckbox:n,...o},i)=>{const{control:l,hasConsumerStoppedPropagationRef:a,checked:u,defaultChecked:f,required:p,disabled:h,name:v,value:w,form:x,bubbleInput:b,setBubbleInput:C}=Sl(Vd,n),_=Pe(i,C),k=di(u),S=fi(l);m.useEffect(()=>{const R=b;if(!R)return;const T=window.HTMLInputElement.prototype,U=Object.getOwnPropertyDescriptor(T,"checked").set,$=!a.current;if(k!==u&&U){const O=new Event("click",{bubbles:$});R.indeterminate=vn(u),U.call(R,vn(u)?!1:u),R.dispatchEvent(O)}},[b,k,u,a]);const N=m.useRef(vn(u)?!1:u);return g.jsx(pe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??N.current,required:p,disabled:h,name:v,value:w,form:x,...o,tabIndex:-1,ref:_,style:{...o.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Gd.displayName=Vd;function Hw(n){return typeof n=="function"}function vn(n){return n==="indeterminate"}function Kd(n){return vn(n)?"indeterminate":n?"checked":"unchecked"}const Bw=["top","right","bottom","left"],yn=Math.min,gt=Math.max,hi=Math.round,mi=Math.floor,Ht=n=>({x:n,y:n}),Ww={left:"right",right:"left",bottom:"top",top:"bottom"};function Cl(n,o,i){return gt(n,yn(o,i))}function Jt(n,o){return typeof n=="function"?n(o):n}function en(n){return n.split("-")[0]}function vr(n){return n.split("-")[1]}function El(n){return n==="x"?"y":"x"}function _l(n){return n==="y"?"height":"width"}function Bt(n){const o=n[0];return o==="t"||o==="b"?"y":"x"}function Nl(n){return El(Bt(n))}function Vw(n,o,i){i===void 0&&(i=!1);const l=vr(n),a=Nl(n),u=_l(a);let f=a==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return o.reference[u]>o.floating[u]&&(f=gi(f)),[f,gi(f)]}function Gw(n){const o=gi(n);return[Rl(n),o,Rl(o)]}function Rl(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Yd=["left","right"],Xd=["right","left"],Kw=["top","bottom"],Yw=["bottom","top"];function Xw(n,o,i){switch(n){case"top":case"bottom":return i?o?Xd:Yd:o?Yd:Xd;case"left":case"right":return o?Kw:Yw;default:return[]}}function Qw(n,o,i,l){const a=vr(n);let u=Xw(en(n),i==="start",l);return a&&(u=u.map(f=>f+"-"+a),o&&(u=u.concat(u.map(Rl)))),u}function gi(n){const o=en(n);return Ww[o]+n.slice(o.length)}function qw(n){return{top:0,right:0,bottom:0,left:0,...n}}function Qd(n){return typeof n!="number"?qw(n):{top:n,right:n,bottom:n,left:n}}function vi(n){const{x:o,y:i,width:l,height:a}=n;return{width:l,height:a,top:i,left:o,right:o+l,bottom:i+a,x:o,y:i}}function qd(n,o,i){let{reference:l,floating:a}=n;const u=Bt(o),f=Nl(o),p=_l(f),h=en(o),v=u==="y",w=l.x+l.width/2-a.width/2,x=l.y+l.height/2-a.height/2,b=l[p]/2-a[p]/2;let C;switch(h){case"top":C={x:w,y:l.y-a.height};break;case"bottom":C={x:w,y:l.y+l.height};break;case"right":C={x:l.x+l.width,y:x};break;case"left":C={x:l.x-a.width,y:x};break;default:C={x:l.x,y:l.y}}switch(vr(o)){case"start":C[f]-=b*(i&&v?-1:1);break;case"end":C[f]+=b*(i&&v?-1:1);break}return C}async function Zw(n,o){var i;o===void 0&&(o={});const{x:l,y:a,platform:u,rects:f,elements:p,strategy:h}=n,{boundary:v="clippingAncestors",rootBoundary:w="viewport",elementContext:x="floating",altBoundary:b=!1,padding:C=0}=Jt(o,n),_=Qd(C),S=p[b?x==="floating"?"reference":"floating":x],N=vi(await u.getClippingRect({element:(i=await(u.isElement==null?void 0:u.isElement(S)))==null||i?S:S.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(p.floating)),boundary:v,rootBoundary:w,strategy:h})),R=x==="floating"?{x:l,y:a,width:f.floating.width,height:f.floating.height}:f.reference,T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p.floating)),I=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},U=vi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:R,offsetParent:T,strategy:h}):R);return{top:(N.top-U.top+_.top)/I.y,bottom:(U.bottom-N.bottom+_.bottom)/I.y,left:(N.left-U.left+_.left)/I.x,right:(U.right-N.right+_.right)/I.x}}const Jw=50,ex=async(n,o,i)=>{const{placement:l="bottom",strategy:a="absolute",middleware:u=[],platform:f}=i,p=f.detectOverflow?f:{...f,detectOverflow:Zw},h=await(f.isRTL==null?void 0:f.isRTL(o));let v=await f.getElementRects({reference:n,floating:o,strategy:a}),{x:w,y:x}=qd(v,l,h),b=l,C=0;const _={};for(let k=0;k<u.length;k++){const S=u[k];if(!S)continue;const{name:N,fn:R}=S,{x:T,y:I,data:U,reset:$}=await R({x:w,y:x,initialPlacement:l,placement:b,strategy:a,middlewareData:_,rects:v,platform:p,elements:{reference:n,floating:o}});w=T??w,x=I??x,_[N]={..._[N],...U},$&&C<Jw&&(C++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(v=$.rects===!0?await f.getElementRects({reference:n,floating:o,strategy:a}):$.rects),{x:w,y:x}=qd(v,b,h)),k=-1)}return{x:w,y:x,placement:b,strategy:a,middlewareData:_}},tx=n=>({name:"arrow",options:n,async fn(o){const{x:i,y:l,placement:a,rects:u,platform:f,elements:p,middlewareData:h}=o,{element:v,padding:w=0}=Jt(n,o)||{};if(v==null)return{};const x=Qd(w),b={x:i,y:l},C=Nl(a),_=_l(C),k=await f.getDimensions(v),S=C==="y",N=S?"top":"left",R=S?"bottom":"right",T=S?"clientHeight":"clientWidth",I=u.reference[_]+u.reference[C]-b[C]-u.floating[_],U=b[C]-u.reference[C],$=await(f.getOffsetParent==null?void 0:f.getOffsetParent(v));let O=$?$[T]:0;(!O||!await(f.isElement==null?void 0:f.isElement($)))&&(O=p.floating[T]||u.floating[_]);const D=I/2-U/2,Y=O/2-k[_]/2-1,te=yn(x[N],Y),ne=yn(x[R],Y),se=te,ge=O-k[_]-ne,xe=O/2-k[_]/2+D,Se=Cl(se,xe,ge),Z=!h.arrow&&vr(a)!=null&&xe!==Se&&u.reference[_]/2-(xe<se?te:ne)-k[_]/2<0,le=Z?xe<se?xe-se:xe-ge:0;return{[C]:b[C]+le,data:{[C]:Se,centerOffset:xe-Se-le,...Z&&{alignmentOffset:le}},reset:Z}}}),nx=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var i,l;const{placement:a,middlewareData:u,rects:f,initialPlacement:p,platform:h,elements:v}=o,{mainAxis:w=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:k=!0,...S}=Jt(n,o);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const N=en(a),R=Bt(p),T=en(p)===p,I=await(h.isRTL==null?void 0:h.isRTL(v.floating)),U=b||(T||!k?[gi(p)]:Gw(p)),$=_!=="none";!b&&$&&U.push(...Qw(p,k,_,I));const O=[p,...U],D=await h.detectOverflow(o,S),Y=[];let te=((l=u.flip)==null?void 0:l.overflows)||[];if(w&&Y.push(D[N]),x){const xe=Vw(a,f,I);Y.push(D[xe[0]],D[xe[1]])}if(te=[...te,{placement:a,overflows:Y}],!Y.every(xe=>xe<=0)){var ne,se;const xe=(((ne=u.flip)==null?void 0:ne.index)||0)+1,Se=O[xe];if(Se&&(!(x==="alignment"?R!==Bt(Se):!1)||te.every(H=>Bt(H.placement)===R?H.overflows[0]>0:!0)))return{data:{index:xe,overflows:te},reset:{placement:Se}};let Z=(se=te.filter(le=>le.overflows[0]<=0).sort((le,H)=>le.overflows[1]-H.overflows[1])[0])==null?void 0:se.placement;if(!Z)switch(C){case"bestFit":{var ge;const le=(ge=te.filter(H=>{if($){const X=Bt(H.placement);return X===R||X==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(X=>X>0).reduce((X,F)=>X+F,0)]).sort((H,X)=>H[1]-X[1])[0])==null?void 0:ge[0];le&&(Z=le);break}case"initialPlacement":Z=p;break}if(a!==Z)return{reset:{placement:Z}}}return{}}}};function Zd(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function Jd(n){return Bw.some(o=>n[o]>=0)}const rx=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:i,platform:l}=o,{strategy:a="referenceHidden",...u}=Jt(n,o);switch(a){case"referenceHidden":{const f=await l.detectOverflow(o,{...u,elementContext:"reference"}),p=Zd(f,i.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Jd(p)}}}case"escaped":{const f=await l.detectOverflow(o,{...u,altBoundary:!0}),p=Zd(f,i.floating);return{data:{escapedOffsets:p,escaped:Jd(p)}}}default:return{}}}}},ef=new Set(["left","top"]);async function ox(n,o){const{placement:i,platform:l,elements:a}=n,u=await(l.isRTL==null?void 0:l.isRTL(a.floating)),f=en(i),p=vr(i),h=Bt(i)==="y",v=ef.has(f)?-1:1,w=u&&h?-1:1,x=Jt(o,n);let{mainAxis:b,crossAxis:C,alignmentAxis:_}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return p&&typeof _=="number"&&(C=p==="end"?_*-1:_),h?{x:C*w,y:b*v}:{x:b*v,y:C*w}}const ix=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var i,l;const{x:a,y:u,placement:f,middlewareData:p}=o,h=await ox(o,n);return f===((i=p.offset)==null?void 0:i.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:a+h.x,y:u+h.y,data:{...h,placement:f}}}}},sx=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){const{x:i,y:l,placement:a,platform:u}=o,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:N=>{let{x:R,y:T}=N;return{x:R,y:T}}},...v}=Jt(n,o),w={x:i,y:l},x=await u.detectOverflow(o,v),b=Bt(en(a)),C=El(b);let _=w[C],k=w[b];if(f){const N=C==="y"?"top":"left",R=C==="y"?"bottom":"right",T=_+x[N],I=_-x[R];_=Cl(T,_,I)}if(p){const N=b==="y"?"top":"left",R=b==="y"?"bottom":"right",T=k+x[N],I=k-x[R];k=Cl(T,k,I)}const S=h.fn({...o,[C]:_,[b]:k});return{...S,data:{x:S.x-i,y:S.y-l,enabled:{[C]:f,[b]:p}}}}}},lx=function(n){return n===void 0&&(n={}),{options:n,fn(o){const{x:i,y:l,placement:a,rects:u,middlewareData:f}=o,{offset:p=0,mainAxis:h=!0,crossAxis:v=!0}=Jt(n,o),w={x:i,y:l},x=Bt(a),b=El(x);let C=w[b],_=w[x];const k=Jt(p,o),S=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(h){const T=b==="y"?"height":"width",I=u.reference[b]-u.floating[T]+S.mainAxis,U=u.reference[b]+u.reference[T]-S.mainAxis;C<I?C=I:C>U&&(C=U)}if(v){var N,R;const T=b==="y"?"width":"height",I=ef.has(en(a)),U=u.reference[x]-u.floating[T]+(I&&((N=f.offset)==null?void 0:N[x])||0)+(I?0:S.crossAxis),$=u.reference[x]+u.reference[T]+(I?0:((R=f.offset)==null?void 0:R[x])||0)-(I?S.crossAxis:0);_<U?_=U:_>$&&(_=$)}return{[b]:C,[x]:_}}}},ax=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var i,l;const{placement:a,rects:u,platform:f,elements:p}=o,{apply:h=()=>{},...v}=Jt(n,o),w=await f.detectOverflow(o,v),x=en(a),b=vr(a),C=Bt(a)==="y",{width:_,height:k}=u.floating;let S,N;x==="top"||x==="bottom"?(S=x,N=b===(await(f.isRTL==null?void 0:f.isRTL(p.floating))?"start":"end")?"left":"right"):(N=x,S=b==="end"?"top":"bottom");const R=k-w.top-w.bottom,T=_-w.left-w.right,I=yn(k-w[S],R),U=yn(_-w[N],T),$=!o.middlewareData.shift;let O=I,D=U;if((i=o.middlewareData.shift)!=null&&i.enabled.x&&(D=T),(l=o.middlewareData.shift)!=null&&l.enabled.y&&(O=R),$&&!b){const te=gt(w.left,0),ne=gt(w.right,0),se=gt(w.top,0),ge=gt(w.bottom,0);C?D=_-2*(te!==0||ne!==0?te+ne:gt(w.left,w.right)):O=k-2*(se!==0||ge!==0?se+ge:gt(w.top,w.bottom))}await h({...o,availableWidth:D,availableHeight:O});const Y=await f.getDimensions(p.floating);return _!==Y.width||k!==Y.height?{reset:{rects:!0}}:{}}}};function yi(){return typeof window<"u"}function yr(n){return tf(n)?(n.nodeName||"").toLowerCase():"#document"}function vt(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Wt(n){var o;return(o=(tf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function tf(n){return yi()?n instanceof Node||n instanceof vt(n).Node:!1}function Tt(n){return yi()?n instanceof Element||n instanceof vt(n).Element:!1}function tn(n){return yi()?n instanceof HTMLElement||n instanceof vt(n).HTMLElement:!1}function nf(n){return!yi()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof vt(n).ShadowRoot}function no(n){const{overflow:o,overflowX:i,overflowY:l,display:a}=jt(n);return/auto|scroll|overlay|hidden|clip/.test(o+l+i)&&a!=="inline"&&a!=="contents"}function cx(n){return/^(table|td|th)$/.test(yr(n))}function wi(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const ux=/transform|translate|scale|rotate|perspective|filter/,dx=/paint|layout|strict|content/,Xn=n=>!!n&&n!=="none";let Pl;function Tl(n){const o=Tt(n)?jt(n):n;return Xn(o.transform)||Xn(o.translate)||Xn(o.scale)||Xn(o.rotate)||Xn(o.perspective)||!jl()&&(Xn(o.backdropFilter)||Xn(o.filter))||ux.test(o.willChange||"")||dx.test(o.contain||"")}function fx(n){let o=wn(n);for(;tn(o)&&!wr(o);){if(Tl(o))return o;if(wi(o))return null;o=wn(o)}return null}function jl(){return Pl==null&&(Pl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Pl}function wr(n){return/^(html|body|#document)$/.test(yr(n))}function jt(n){return vt(n).getComputedStyle(n)}function xi(n){return Tt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function wn(n){if(yr(n)==="html")return n;const o=n.assignedSlot||n.parentNode||nf(n)&&n.host||Wt(n);return nf(o)?o.host:o}function rf(n){const o=wn(n);return wr(o)?n.ownerDocument?n.ownerDocument.body:n.body:tn(o)&&no(o)?o:rf(o)}function ro(n,o,i){var l;o===void 0&&(o=[]),i===void 0&&(i=!0);const a=rf(n),u=a===((l=n.ownerDocument)==null?void 0:l.body),f=vt(a);if(u){const p=Al(f);return o.concat(f,f.visualViewport||[],no(a)?a:[],p&&i?ro(p):[])}else return o.concat(a,ro(a,[],i))}function Al(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function of(n){const o=jt(n);let i=parseFloat(o.width)||0,l=parseFloat(o.height)||0;const a=tn(n),u=a?n.offsetWidth:i,f=a?n.offsetHeight:l,p=hi(i)!==u||hi(l)!==f;return p&&(i=u,l=f),{width:i,height:l,$:p}}function Il(n){return Tt(n)?n:n.contextElement}function xr(n){const o=Il(n);if(!tn(o))return Ht(1);const i=o.getBoundingClientRect(),{width:l,height:a,$:u}=of(o);let f=(u?hi(i.width):i.width)/l,p=(u?hi(i.height):i.height)/a;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const px=Ht(0);function sf(n){const o=vt(n);return!jl()||!o.visualViewport?px:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function hx(n,o,i){return o===void 0&&(o=!1),!i||o&&i!==vt(n)?!1:o}function Qn(n,o,i,l){o===void 0&&(o=!1),i===void 0&&(i=!1);const a=n.getBoundingClientRect(),u=Il(n);let f=Ht(1);o&&(l?Tt(l)&&(f=xr(l)):f=xr(n));const p=hx(u,i,l)?sf(u):Ht(0);let h=(a.left+p.x)/f.x,v=(a.top+p.y)/f.y,w=a.width/f.x,x=a.height/f.y;if(u){const b=vt(u),C=l&&Tt(l)?vt(l):l;let _=b,k=Al(_);for(;k&&l&&C!==_;){const S=xr(k),N=k.getBoundingClientRect(),R=jt(k),T=N.left+(k.clientLeft+parseFloat(R.paddingLeft))*S.x,I=N.top+(k.clientTop+parseFloat(R.paddingTop))*S.y;h*=S.x,v*=S.y,w*=S.x,x*=S.y,h+=T,v+=I,_=vt(k),k=Al(_)}}return vi({width:w,height:x,x:h,y:v})}function bi(n,o){const i=xi(n).scrollLeft;return o?o.left+i:Qn(Wt(n)).left+i}function lf(n,o){const i=n.getBoundingClientRect(),l=i.left+o.scrollLeft-bi(n,i),a=i.top+o.scrollTop;return{x:l,y:a}}function mx(n){let{elements:o,rect:i,offsetParent:l,strategy:a}=n;const u=a==="fixed",f=Wt(l),p=o?wi(o.floating):!1;if(l===f||p&&u)return i;let h={scrollLeft:0,scrollTop:0},v=Ht(1);const w=Ht(0),x=tn(l);if((x||!x&&!u)&&((yr(l)!=="body"||no(f))&&(h=xi(l)),x)){const C=Qn(l);v=xr(l),w.x=C.x+l.clientLeft,w.y=C.y+l.clientTop}const b=f&&!x&&!u?lf(f,h):Ht(0);return{width:i.width*v.x,height:i.height*v.y,x:i.x*v.x-h.scrollLeft*v.x+w.x+b.x,y:i.y*v.y-h.scrollTop*v.y+w.y+b.y}}function gx(n){return Array.from(n.getClientRects())}function vx(n){const o=Wt(n),i=xi(n),l=n.ownerDocument.body,a=gt(o.scrollWidth,o.clientWidth,l.scrollWidth,l.clientWidth),u=gt(o.scrollHeight,o.clientHeight,l.scrollHeight,l.clientHeight);let f=-i.scrollLeft+bi(n);const p=-i.scrollTop;return jt(l).direction==="rtl"&&(f+=gt(o.clientWidth,l.clientWidth)-a),{width:a,height:u,x:f,y:p}}const af=25;function yx(n,o){const i=vt(n),l=Wt(n),a=i.visualViewport;let u=l.clientWidth,f=l.clientHeight,p=0,h=0;if(a){u=a.width,f=a.height;const w=jl();(!w||w&&o==="fixed")&&(p=a.offsetLeft,h=a.offsetTop)}const v=bi(l);if(v<=0){const w=l.ownerDocument,x=w.body,b=getComputedStyle(x),C=w.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,_=Math.abs(l.clientWidth-x.clientWidth-C);_<=af&&(u-=_)}else v<=af&&(u+=v);return{width:u,height:f,x:p,y:h}}function wx(n,o){const i=Qn(n,!0,o==="fixed"),l=i.top+n.clientTop,a=i.left+n.clientLeft,u=tn(n)?xr(n):Ht(1),f=n.clientWidth*u.x,p=n.clientHeight*u.y,h=a*u.x,v=l*u.y;return{width:f,height:p,x:h,y:v}}function cf(n,o,i){let l;if(o==="viewport")l=yx(n,i);else if(o==="document")l=vx(Wt(n));else if(Tt(o))l=wx(o,i);else{const a=sf(n);l={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return vi(l)}function uf(n,o){const i=wn(n);return i===o||!Tt(i)||wr(i)?!1:jt(i).position==="fixed"||uf(i,o)}function xx(n,o){const i=o.get(n);if(i)return i;let l=ro(n,[],!1).filter(p=>Tt(p)&&yr(p)!=="body"),a=null;const u=jt(n).position==="fixed";let f=u?wn(n):n;for(;Tt(f)&&!wr(f);){const p=jt(f),h=Tl(f);!h&&p.position==="fixed"&&(a=null),(u?!h&&!a:!h&&p.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||no(f)&&!h&&uf(n,f))?l=l.filter(w=>w!==f):a=p,f=wn(f)}return o.set(n,l),l}function bx(n){let{element:o,boundary:i,rootBoundary:l,strategy:a}=n;const f=[...i==="clippingAncestors"?wi(o)?[]:xx(o,this._c):[].concat(i),l],p=cf(o,f[0],a);let h=p.top,v=p.right,w=p.bottom,x=p.left;for(let b=1;b<f.length;b++){const C=cf(o,f[b],a);h=gt(C.top,h),v=yn(C.right,v),w=yn(C.bottom,w),x=gt(C.left,x)}return{width:v-x,height:w-h,x,y:h}}function kx(n){const{width:o,height:i}=of(n);return{width:o,height:i}}function Sx(n,o,i){const l=tn(o),a=Wt(o),u=i==="fixed",f=Qn(n,!0,u,o);let p={scrollLeft:0,scrollTop:0};const h=Ht(0);function v(){h.x=bi(a)}if(l||!l&&!u)if((yr(o)!=="body"||no(a))&&(p=xi(o)),l){const C=Qn(o,!0,u,o);h.x=C.x+o.clientLeft,h.y=C.y+o.clientTop}else a&&v();u&&!l&&a&&v();const w=a&&!l&&!u?lf(a,p):Ht(0),x=f.left+p.scrollLeft-h.x-w.x,b=f.top+p.scrollTop-h.y-w.y;return{x,y:b,width:f.width,height:f.height}}function Ml(n){return jt(n).position==="static"}function df(n,o){if(!tn(n)||jt(n).position==="fixed")return null;if(o)return o(n);let i=n.offsetParent;return Wt(n)===i&&(i=i.ownerDocument.body),i}function ff(n,o){const i=vt(n);if(wi(n))return i;if(!tn(n)){let a=wn(n);for(;a&&!wr(a);){if(Tt(a)&&!Ml(a))return a;a=wn(a)}return i}let l=df(n,o);for(;l&&cx(l)&&Ml(l);)l=df(l,o);return l&&wr(l)&&Ml(l)&&!Tl(l)?i:l||fx(n)||i}const Cx=async function(n){const o=this.getOffsetParent||ff,i=this.getDimensions,l=await i(n.floating);return{reference:Sx(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Ex(n){return jt(n).direction==="rtl"}const _x={convertOffsetParentRelativeRectToViewportRelativeRect:mx,getDocumentElement:Wt,getClippingRect:bx,getOffsetParent:ff,getElementRects:Cx,getClientRects:gx,getDimensions:kx,getScale:xr,isElement:Tt,isRTL:Ex};function pf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function Nx(n,o){let i=null,l;const a=Wt(n);function u(){var p;clearTimeout(l),(p=i)==null||p.disconnect(),i=null}function f(p,h){p===void 0&&(p=!1),h===void 0&&(h=1),u();const v=n.getBoundingClientRect(),{left:w,top:x,width:b,height:C}=v;if(p||o(),!b||!C)return;const _=mi(x),k=mi(a.clientWidth-(w+b)),S=mi(a.clientHeight-(x+C)),N=mi(w),T={rootMargin:-_+"px "+-k+"px "+-S+"px "+-N+"px",threshold:gt(0,yn(1,h))||1};let I=!0;function U($){const O=$[0].intersectionRatio;if(O!==h){if(!I)return f();O?f(!1,O):l=setTimeout(()=>{f(!1,1e-7)},1e3)}O===1&&!pf(v,n.getBoundingClientRect())&&f(),I=!1}try{i=new IntersectionObserver(U,{...T,root:a.ownerDocument})}catch{i=new IntersectionObserver(U,T)}i.observe(n)}return f(!0),u}function Rx(n,o,i,l){l===void 0&&(l={});const{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=l,v=Il(n),w=a||u?[...v?ro(v):[],...o?ro(o):[]]:[];w.forEach(N=>{a&&N.addEventListener("scroll",i,{passive:!0}),u&&N.addEventListener("resize",i)});const x=v&&p?Nx(v,i):null;let b=-1,C=null;f&&(C=new ResizeObserver(N=>{let[R]=N;R&&R.target===v&&C&&o&&(C.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var T;(T=C)==null||T.observe(o)})),i()}),v&&!h&&C.observe(v),o&&C.observe(o));let _,k=h?Qn(n):null;h&&S();function S(){const N=Qn(n);k&&!pf(k,N)&&i(),k=N,_=requestAnimationFrame(S)}return i(),()=>{var N;w.forEach(R=>{a&&R.removeEventListener("scroll",i),u&&R.removeEventListener("resize",i)}),x==null||x(),(N=C)==null||N.disconnect(),C=null,h&&cancelAnimationFrame(_)}}const Px=ix,Tx=sx,jx=nx,Ax=ax,Ix=rx,hf=tx,Mx=lx,zx=(n,o,i)=>{const l=new Map,a={platform:_x,...i},u={...a.platform,_c:l};return ex(n,o,{...a,platform:u})};var Lx=typeof document<"u",Ox=function(){},ki=Lx?m.useLayoutEffect:Ox;function Si(n,o){if(n===o)return!0;if(typeof n!=typeof o)return!1;if(typeof n=="function"&&n.toString()===o.toString())return!0;let i,l,a;if(n&&o&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==o.length)return!1;for(l=i;l--!==0;)if(!Si(n[l],o[l]))return!1;return!0}if(a=Object.keys(n),i=a.length,i!==Object.keys(o).length)return!1;for(l=i;l--!==0;)if(!{}.hasOwnProperty.call(o,a[l]))return!1;for(l=i;l--!==0;){const u=a[l];if(!(u==="_owner"&&n.$$typeof)&&!Si(n[u],o[u]))return!1}return!0}return n!==n&&o!==o}function mf(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function gf(n,o){const i=mf(n);return Math.round(o*i)/i}function zl(n){const o=m.useRef(n);return ki(()=>{o.current=n}),o}function Dx(n){n===void 0&&(n={});const{placement:o="bottom",strategy:i="absolute",middleware:l=[],platform:a,elements:{reference:u,floating:f}={},transform:p=!0,whileElementsMounted:h,open:v}=n,[w,x]=m.useState({x:0,y:0,strategy:i,placement:o,middlewareData:{},isPositioned:!1}),[b,C]=m.useState(l);Si(b,l)||C(l);const[_,k]=m.useState(null),[S,N]=m.useState(null),R=m.useCallback(H=>{H!==$.current&&($.current=H,k(H))},[]),T=m.useCallback(H=>{H!==O.current&&(O.current=H,N(H))},[]),I=u||_,U=f||S,$=m.useRef(null),O=m.useRef(null),D=m.useRef(w),Y=h!=null,te=zl(h),ne=zl(a),se=zl(v),ge=m.useCallback(()=>{if(!$.current||!O.current)return;const H={placement:o,strategy:i,middleware:b};ne.current&&(H.platform=ne.current),zx($.current,O.current,H).then(X=>{const F={...X,isPositioned:se.current!==!1};xe.current&&!Si(D.current,F)&&(D.current=F,Jr.flushSync(()=>{x(F)}))})},[b,o,i,ne,se]);ki(()=>{v===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,x(H=>({...H,isPositioned:!1})))},[v]);const xe=m.useRef(!1);ki(()=>(xe.current=!0,()=>{xe.current=!1}),[]),ki(()=>{if(I&&($.current=I),U&&(O.current=U),I&&U){if(te.current)return te.current(I,U,ge);ge()}},[I,U,ge,te,Y]);const Se=m.useMemo(()=>({reference:$,floating:O,setReference:R,setFloating:T}),[R,T]),Z=m.useMemo(()=>({reference:I,floating:U}),[I,U]),le=m.useMemo(()=>{const H={position:i,left:0,top:0};if(!Z.floating)return H;const X=gf(Z.floating,w.x),F=gf(Z.floating,w.y);return p?{...H,transform:"translate("+X+"px, "+F+"px)",...mf(Z.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:X,top:F}},[i,p,Z.floating,w.x,w.y]);return m.useMemo(()=>({...w,update:ge,refs:Se,elements:Z,floatingStyles:le}),[w,ge,Se,Z,le])}const Fx=n=>{function o(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:l,padding:a}=typeof n=="function"?n(i):n;return l&&o(l)?l.current!=null?hf({element:l.current,padding:a}).fn(i):{}:l?hf({element:l,padding:a}).fn(i):{}}}},$x=(n,o)=>{const i=Px(n);return{name:i.name,fn:i.fn,options:[n,o]}},Ux=(n,o)=>{const i=Tx(n);return{name:i.name,fn:i.fn,options:[n,o]}},Hx=(n,o)=>({fn:Mx(n).fn,options:[n,o]}),Bx=(n,o)=>{const i=jx(n);return{name:i.name,fn:i.fn,options:[n,o]}},Wx=(n,o)=>{const i=Ax(n);return{name:i.name,fn:i.fn,options:[n,o]}},Vx=(n,o)=>{const i=Ix(n);return{name:i.name,fn:i.fn,options:[n,o]}},Gx=(n,o)=>{const i=Fx(n);return{name:i.name,fn:i.fn,options:[n,o]}};var Kx="Arrow",vf=m.forwardRef((n,o)=>{const{children:i,width:l=10,height:a=5,...u}=n;return g.jsx(pe.svg,{...u,ref:o,width:l,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});vf.displayName=Kx;var Yx=vf,Ll="Popper",[yf,Ci]=ct(Ll),[Xx,wf]=yf(Ll),xf=n=>{const{__scopePopper:o,children:i}=n,[l,a]=m.useState(null);return g.jsx(Xx,{scope:o,anchor:l,onAnchorChange:a,children:i})};xf.displayName=Ll;var bf="PopperAnchor",kf=m.forwardRef((n,o)=>{const{__scopePopper:i,virtualRef:l,...a}=n,u=wf(bf,i),f=m.useRef(null),p=Pe(o,f),h=m.useRef(null);return m.useEffect(()=>{const v=h.current;h.current=(l==null?void 0:l.current)||f.current,v!==h.current&&u.onAnchorChange(h.current)}),l?null:g.jsx(pe.div,{...a,ref:p})});kf.displayName=bf;var Ol="PopperContent",[Qx,qx]=yf(Ol),Sf=m.forwardRef((n,o)=>{var Q,ue,ae,Ce,Ne,Re;const{__scopePopper:i,side:l="bottom",sideOffset:a=0,align:u="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:h=!0,collisionBoundary:v=[],collisionPadding:w=0,sticky:x="partial",hideWhenDetached:b=!1,updatePositionStrategy:C="optimized",onPlaced:_,...k}=n,S=wf(Ol,i),[N,R]=m.useState(null),T=Pe(o,$e=>R($e)),[I,U]=m.useState(null),$=fi(I),O=($==null?void 0:$.width)??0,D=($==null?void 0:$.height)??0,Y=l+(u!=="center"?"-"+u:""),te=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},ne=Array.isArray(v)?v:[v],se=ne.length>0,ge={padding:te,boundary:ne.filter(Jx),altBoundary:se},{refs:xe,floatingStyles:Se,placement:Z,isPositioned:le,middlewareData:H}=Dx({strategy:"fixed",placement:Y,whileElementsMounted:(...$e)=>Rx(...$e,{animationFrame:C==="always"}),elements:{reference:S.anchor},middleware:[$x({mainAxis:a+D,alignmentAxis:f}),h&&Ux({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?Hx():void 0,...ge}),h&&Bx({...ge}),Wx({...ge,apply:({elements:$e,rects:Ke,availableWidth:kn,availableHeight:Sn})=>{const{width:nn,height:Ui}=Ke.reference,Cn=$e.floating.style;Cn.setProperty("--radix-popper-available-width",`${kn}px`),Cn.setProperty("--radix-popper-available-height",`${Sn}px`),Cn.setProperty("--radix-popper-anchor-width",`${nn}px`),Cn.setProperty("--radix-popper-anchor-height",`${Ui}px`)}}),I&&Gx({element:I,padding:p}),e1({arrowWidth:O,arrowHeight:D}),b&&Vx({strategy:"referenceHidden",...ge})]}),[X,F]=_f(Z),A=tt(_);He(()=>{le&&(A==null||A())},[le,A]);const B=(Q=H.arrow)==null?void 0:Q.x,be=(ue=H.arrow)==null?void 0:ue.y,ye=((ae=H.arrow)==null?void 0:ae.centerOffset)!==0,[fe,de]=m.useState();return He(()=>{N&&de(window.getComputedStyle(N).zIndex)},[N]),g.jsx("div",{ref:xe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:le?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(Ce=H.transformOrigin)==null?void 0:Ce.x,(Ne=H.transformOrigin)==null?void 0:Ne.y].join(" "),...((Re=H.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:g.jsx(Qx,{scope:i,placedSide:X,onArrowChange:U,arrowX:B,arrowY:be,shouldHideArrow:ye,children:g.jsx(pe.div,{"data-side":X,"data-align":F,...k,ref:T,style:{...k.style,animation:le?void 0:"none"}})})})});Sf.displayName=Ol;var Cf="PopperArrow",Zx={top:"bottom",right:"left",bottom:"top",left:"right"},Ef=m.forwardRef(function(o,i){const{__scopePopper:l,...a}=o,u=qx(Cf,l),f=Zx[u.placedSide];return g.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]: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:g.jsx(Yx,{...a,ref:i,style:{...a.style,display:"block"}})})});Ef.displayName=Cf;function Jx(n){return n!==null}var e1=n=>({name:"transformOrigin",options:n,fn(o){var S,N,R;const{placement:i,rects:l,middlewareData:a}=o,f=((S=a.arrow)==null?void 0:S.centerOffset)!==0,p=f?0:n.arrowWidth,h=f?0:n.arrowHeight,[v,w]=_f(i),x={start:"0%",center:"50%",end:"100%"}[w],b=(((N=a.arrow)==null?void 0:N.x)??0)+p/2,C=(((R=a.arrow)==null?void 0:R.y)??0)+h/2;let _="",k="";return v==="bottom"?(_=f?x:`${b}px`,k=`${-h}px`):v==="top"?(_=f?x:`${b}px`,k=`${l.floating.height+h}px`):v==="right"?(_=`${-h}px`,k=f?x:`${C}px`):v==="left"&&(_=`${l.floating.width+h}px`,k=f?x:`${C}px`),{data:{x:_,y:k}}}});function _f(n){const[o,i="center"]=n.split("-");return[o,i]}var Nf=xf,Rf=kf,Pf=Sf,Tf=Ef,Dl="rovingFocusGroup.onEntryFocus",t1={bubbles:!1,cancelable:!0},oo="RovingFocusGroup",[Fl,jf,n1]=td(oo),[r1,Ei]=ct(oo,[n1]),[o1,i1]=r1(oo),Af=m.forwardRef((n,o)=>g.jsx(Fl.Provider,{scope:n.__scopeRovingFocusGroup,children:g.jsx(Fl.Slot,{scope:n.__scopeRovingFocusGroup,children:g.jsx(s1,{...n,ref:o})})}));Af.displayName=oo;var s1=m.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:i,orientation:l,loop:a=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:v,preventScrollOnEntryFocus:w=!1,...x}=n,b=m.useRef(null),C=Pe(o,b),_=to(u),[k,S]=Zt({prop:f,defaultProp:p??null,onChange:h,caller:oo}),[N,R]=m.useState(!1),T=tt(v),I=jf(i),U=m.useRef(!1),[$,O]=m.useState(0);return m.useEffect(()=>{const D=b.current;if(D)return D.addEventListener(Dl,T),()=>D.removeEventListener(Dl,T)},[T]),g.jsx(o1,{scope:i,orientation:l,dir:_,loop:a,currentTabStopId:k,onItemFocus:m.useCallback(D=>S(D),[S]),onItemShiftTab:m.useCallback(()=>R(!0),[]),onFocusableItemAdd:m.useCallback(()=>O(D=>D+1),[]),onFocusableItemRemove:m.useCallback(()=>O(D=>D-1),[]),children:g.jsx(pe.div,{tabIndex:N||$===0?-1:0,"data-orientation":l,...x,ref:C,style:{outline:"none",...n.style},onMouseDown:we(n.onMouseDown,()=>{U.current=!0}),onFocus:we(n.onFocus,D=>{const Y=!U.current;if(D.target===D.currentTarget&&Y&&!N){const te=new CustomEvent(Dl,t1);if(D.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ne=I().filter(Z=>Z.focusable),se=ne.find(Z=>Z.active),ge=ne.find(Z=>Z.id===k),Se=[se,ge,...ne].filter(Boolean).map(Z=>Z.ref.current);zf(Se,w)}}U.current=!1}),onBlur:we(n.onBlur,()=>R(!1))})})}),If="RovingFocusGroupItem",Mf=m.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:i,focusable:l=!0,active:a=!1,tabStopId:u,children:f,...p}=n,h=Yn(),v=u||h,w=i1(If,i),x=w.currentTabStopId===v,b=jf(i),{onFocusableItemAdd:C,onFocusableItemRemove:_,currentTabStopId:k}=w;return m.useEffect(()=>{if(l)return C(),()=>_()},[l,C,_]),g.jsx(Fl.ItemSlot,{scope:i,id:v,focusable:l,active:a,children:g.jsx(pe.span,{tabIndex:x?0:-1,"data-orientation":w.orientation,...p,ref:o,onMouseDown:we(n.onMouseDown,S=>{l?w.onItemFocus(v):S.preventDefault()}),onFocus:we(n.onFocus,()=>w.onItemFocus(v)),onKeyDown:we(n.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){w.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const N=c1(S,w.orientation,w.dir);if(N!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let T=b().filter(I=>I.focusable).map(I=>I.ref.current);if(N==="last")T.reverse();else if(N==="prev"||N==="next"){N==="prev"&&T.reverse();const I=T.indexOf(S.currentTarget);T=w.loop?u1(T,I+1):T.slice(I+1)}setTimeout(()=>zf(T))}}),children:typeof f=="function"?f({isCurrentTabStop:x,hasTabStop:k!=null}):f})})});Mf.displayName=If;var l1={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function a1(n,o){return o!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function c1(n,o,i){const l=a1(n.key,i);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return l1[l]}function zf(n,o=!1){const i=document.activeElement;for(const l of n)if(l===i||(l.focus({preventScroll:o}),document.activeElement!==i))return}function u1(n,o){return n.map((i,l)=>n[(o+l)%n.length])}var Lf=Af,Of=Mf,d1="Label",Df=m.forwardRef((n,o)=>g.jsx(pe.label,{...n,ref:o,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())}}));Df.displayName=d1;var f1=Df;function $l(n,[o,i]){return Math.min(i,Math.max(o,n))}var Ul="Progress",Hl=100,[p1]=ct(Ul),[h1,m1]=p1(Ul),Ff=m.forwardRef((n,o)=>{const{__scopeProgress:i,value:l=null,max:a,getValueLabel:u=g1,...f}=n;(a||a===0)&&!Bf(a)&&console.error(v1(`${a}`,"Progress"));const p=Bf(a)?a:Hl;l!==null&&!Wf(l,p)&&console.error(y1(`${l}`,"Progress"));const h=Wf(l,p)?l:null,v=_i(h)?u(h,p):void 0;return g.jsx(h1,{scope:i,value:h,max:p,children:g.jsx(pe.div,{"aria-valuemax":p,"aria-valuemin":0,"aria-valuenow":_i(h)?h:void 0,"aria-valuetext":v,role:"progressbar","data-state":Hf(h,p),"data-value":h??void 0,"data-max":p,...f,ref:o})})});Ff.displayName=Ul;var $f="ProgressIndicator",Uf=m.forwardRef((n,o)=>{const{__scopeProgress:i,...l}=n,a=m1($f,i);return g.jsx(pe.div,{"data-state":Hf(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...l,ref:o})});Uf.displayName=$f;function g1(n,o){return`${Math.round(n/o*100)}%`}function Hf(n,o){return n==null?"indeterminate":n===o?"complete":"loading"}function _i(n){return typeof n=="number"}function Bf(n){return _i(n)&&!isNaN(n)&&n>0}function Wf(n,o){return _i(n)&&!isNaN(n)&&n<=o&&n>=0}function v1(n,o){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Hl}\`.`}function y1(n,o){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${o}\`. The \`value\` prop must be:
|
|
289
|
+
*/var jd;function Rw(){if(jd)return ka;jd=1;var n=Yo();function o(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}var i=typeof Object.is=="function"?Object.is:o,a=n.useState,l=n.useEffect,u=n.useLayoutEffect,f=n.useDebugValue;function p(x,b){var C=b(),_=a({inst:{value:C,getSnapshot:b}}),k=_[0].inst,S=_[1];return u(function(){k.value=C,k.getSnapshot=b,h(k)&&S({inst:k})},[x,C,b]),l(function(){return h(k)&&S({inst:k}),x(function(){h(k)&&S({inst:k})})},[x]),f(C),C}function h(x){var b=x.getSnapshot;x=x.value;try{var C=b();return!i(x,C)}catch{return!0}}function v(x,b){return b()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:p;return ka.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:w,ka}var Ad;function Pw(){return Ad||(Ad=1,ba.exports=Rw()),ba.exports}var Tw=Pw();function jw(){return Tw.useSyncExternalStore(Aw,()=>!0,()=>!1)}function Aw(){return()=>{}}var Sa="Avatar",[Iw]=ct(Sa),[zw,Id]=Iw(Sa),zd=m.forwardRef((n,o)=>{const{__scopeAvatar:i,...a}=n,[l,u]=m.useState("idle");return g.jsx(zw,{scope:i,imageLoadingStatus:l,onImageLoadingStatusChange:u,children:g.jsx(pe.span,{...a,ref:o})})});zd.displayName=Sa;var Md="AvatarImage",Ld=m.forwardRef((n,o)=>{const{__scopeAvatar:i,src:a,onLoadingStatusChange:l=()=>{},...u}=n,f=Id(Md,i),p=Mw(a,u),h=tt(v=>{l(v),f.onImageLoadingStatusChange(v)});return He(()=>{p!=="idle"&&h(p)},[p,h]),p==="loaded"?g.jsx(pe.img,{...u,ref:o,src:a}):null});Ld.displayName=Md;var Od="AvatarFallback",Dd=m.forwardRef((n,o)=>{const{__scopeAvatar:i,delayMs:a,...l}=n,u=Id(Od,i),[f,p]=m.useState(a===void 0);return m.useEffect(()=>{if(a!==void 0){const h=window.setTimeout(()=>p(!0),a);return()=>window.clearTimeout(h)}},[a]),f&&u.imageLoadingStatus!=="loaded"?g.jsx(pe.span,{...l,ref:o}):null});Dd.displayName=Od;function Fd(n,o){return n?o?(n.src!==o&&(n.src=o),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Mw(n,{referrerPolicy:o,crossOrigin:i}){const a=jw(),l=m.useRef(null),u=a?(l.current||(l.current=new window.Image),l.current):null,[f,p]=m.useState(()=>Fd(u,n));return He(()=>{p(Fd(u,n))},[u,n]),He(()=>{const h=x=>()=>{p(x)};if(!u)return;const v=h("loaded"),w=h("error");return u.addEventListener("load",v),u.addEventListener("error",w),o&&(u.referrerPolicy=o),typeof i=="string"&&(u.crossOrigin=i),()=>{u.removeEventListener("load",v),u.removeEventListener("error",w)}},[u,i,o]),f}var Lw=zd,Ow=Ld,Dw=Dd;function di(n){const o=m.useRef({value:n,previous:n});return m.useMemo(()=>(o.current.value!==n&&(o.current.previous=o.current.value,o.current.value=n),o.current.previous),[n])}function fi(n){const[o,i]=m.useState(void 0);return He(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const a=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let f,p;if("borderBoxSize"in u){const h=u.borderBoxSize,v=Array.isArray(h)?h[0]:h;f=v.inlineSize,p=v.blockSize}else f=n.offsetWidth,p=n.offsetHeight;i({width:f,height:p})});return a.observe(n,{box:"border-box"}),()=>a.unobserve(n)}else i(void 0)},[n]),o}var pi="Checkbox",[Fw]=ct(pi),[$w,Ca]=Fw(pi);function Uw(n){const{__scopeCheckbox:o,checked:i,children:a,defaultChecked:l,disabled:u,form:f,name:p,onCheckedChange:h,required:v,value:w="on",internal_do_not_use_render:x}=n,[b,C]=Zt({prop:i,defaultProp:l??!1,onChange:h,caller:pi}),[_,k]=m.useState(null),[S,N]=m.useState(null),R=m.useRef(!1),T=_?!!f||!!_.closest("form"):!0,I={checked:b,disabled:u,setChecked:C,control:_,setControl:k,name:p,form:f,value:w,hasConsumerStoppedPropagationRef:R,required:v,defaultChecked:vn(l)?!1:l,isFormControl:T,bubbleInput:S,setBubbleInput:N};return g.jsx($w,{scope:o,...I,children:Hw(x)?x(I):a})}var $d="CheckboxTrigger",Ud=m.forwardRef(({__scopeCheckbox:n,onKeyDown:o,onClick:i,...a},l)=>{const{control:u,value:f,disabled:p,checked:h,required:v,setControl:w,setChecked:x,hasConsumerStoppedPropagationRef:b,isFormControl:C,bubbleInput:_}=Ca($d,n),k=Pe(l,w),S=m.useRef(h);return m.useEffect(()=>{const N=u==null?void 0:u.form;if(N){const R=()=>x(S.current);return N.addEventListener("reset",R),()=>N.removeEventListener("reset",R)}},[u,x]),g.jsx(pe.button,{type:"button",role:"checkbox","aria-checked":vn(h)?"mixed":h,"aria-required":v,"data-state":Kd(h),"data-disabled":p?"":void 0,disabled:p,value:f,...a,ref:k,onKeyDown:we(o,N=>{N.key==="Enter"&&N.preventDefault()}),onClick:we(i,N=>{x(R=>vn(R)?!0:!R),_&&C&&(b.current=N.isPropagationStopped(),b.current||N.stopPropagation())})})});Ud.displayName=$d;var Hd=m.forwardRef((n,o)=>{const{__scopeCheckbox:i,name:a,checked:l,defaultChecked:u,required:f,disabled:p,value:h,onCheckedChange:v,form:w,...x}=n;return g.jsx(Uw,{__scopeCheckbox:i,checked:l,defaultChecked:u,disabled:p,required:f,onCheckedChange:v,name:a,form:w,value:h,internal_do_not_use_render:({isFormControl:b})=>g.jsxs(g.Fragment,{children:[g.jsx(Ud,{...x,ref:o,__scopeCheckbox:i}),b&&g.jsx(Gd,{__scopeCheckbox:i})]})})});Hd.displayName=pi;var Bd="CheckboxIndicator",Wd=m.forwardRef((n,o)=>{const{__scopeCheckbox:i,forceMount:a,...l}=n,u=Ca(Bd,i);return g.jsx(Pt,{present:a||vn(u.checked)||u.checked===!0,children:g.jsx(pe.span,{"data-state":Kd(u.checked),"data-disabled":u.disabled?"":void 0,...l,ref:o,style:{pointerEvents:"none",...n.style}})})});Wd.displayName=Bd;var Vd="CheckboxBubbleInput",Gd=m.forwardRef(({__scopeCheckbox:n,...o},i)=>{const{control:a,hasConsumerStoppedPropagationRef:l,checked:u,defaultChecked:f,required:p,disabled:h,name:v,value:w,form:x,bubbleInput:b,setBubbleInput:C}=Ca(Vd,n),_=Pe(i,C),k=di(u),S=fi(a);m.useEffect(()=>{const R=b;if(!R)return;const T=window.HTMLInputElement.prototype,U=Object.getOwnPropertyDescriptor(T,"checked").set,$=!l.current;if(k!==u&&U){const O=new Event("click",{bubbles:$});R.indeterminate=vn(u),U.call(R,vn(u)?!1:u),R.dispatchEvent(O)}},[b,k,u,l]);const N=m.useRef(vn(u)?!1:u);return g.jsx(pe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??N.current,required:p,disabled:h,name:v,value:w,form:x,...o,tabIndex:-1,ref:_,style:{...o.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Gd.displayName=Vd;function Hw(n){return typeof n=="function"}function vn(n){return n==="indeterminate"}function Kd(n){return vn(n)?"indeterminate":n?"checked":"unchecked"}const Bw=["top","right","bottom","left"],yn=Math.min,gt=Math.max,hi=Math.round,mi=Math.floor,Ht=n=>({x:n,y:n}),Ww={left:"right",right:"left",bottom:"top",top:"bottom"};function Ea(n,o,i){return gt(n,yn(o,i))}function Jt(n,o){return typeof n=="function"?n(o):n}function en(n){return n.split("-")[0]}function vr(n){return n.split("-")[1]}function _a(n){return n==="x"?"y":"x"}function Na(n){return n==="y"?"height":"width"}function Bt(n){const o=n[0];return o==="t"||o==="b"?"y":"x"}function Ra(n){return _a(Bt(n))}function Vw(n,o,i){i===void 0&&(i=!1);const a=vr(n),l=Ra(n),u=Na(l);let f=l==="x"?a===(i?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[u]>o.floating[u]&&(f=gi(f)),[f,gi(f)]}function Gw(n){const o=gi(n);return[Pa(n),o,Pa(o)]}function Pa(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Yd=["left","right"],Xd=["right","left"],Kw=["top","bottom"],Yw=["bottom","top"];function Xw(n,o,i){switch(n){case"top":case"bottom":return i?o?Xd:Yd:o?Yd:Xd;case"left":case"right":return o?Kw:Yw;default:return[]}}function Qw(n,o,i,a){const l=vr(n);let u=Xw(en(n),i==="start",a);return l&&(u=u.map(f=>f+"-"+l),o&&(u=u.concat(u.map(Pa)))),u}function gi(n){const o=en(n);return Ww[o]+n.slice(o.length)}function qw(n){return{top:0,right:0,bottom:0,left:0,...n}}function Qd(n){return typeof n!="number"?qw(n):{top:n,right:n,bottom:n,left:n}}function vi(n){const{x:o,y:i,width:a,height:l}=n;return{width:a,height:l,top:i,left:o,right:o+a,bottom:i+l,x:o,y:i}}function qd(n,o,i){let{reference:a,floating:l}=n;const u=Bt(o),f=Ra(o),p=Na(f),h=en(o),v=u==="y",w=a.x+a.width/2-l.width/2,x=a.y+a.height/2-l.height/2,b=a[p]/2-l[p]/2;let C;switch(h){case"top":C={x:w,y:a.y-l.height};break;case"bottom":C={x:w,y:a.y+a.height};break;case"right":C={x:a.x+a.width,y:x};break;case"left":C={x:a.x-l.width,y:x};break;default:C={x:a.x,y:a.y}}switch(vr(o)){case"start":C[f]-=b*(i&&v?-1:1);break;case"end":C[f]+=b*(i&&v?-1:1);break}return C}async function Zw(n,o){var i;o===void 0&&(o={});const{x:a,y:l,platform:u,rects:f,elements:p,strategy:h}=n,{boundary:v="clippingAncestors",rootBoundary:w="viewport",elementContext:x="floating",altBoundary:b=!1,padding:C=0}=Jt(o,n),_=Qd(C),S=p[b?x==="floating"?"reference":"floating":x],N=vi(await u.getClippingRect({element:(i=await(u.isElement==null?void 0:u.isElement(S)))==null||i?S:S.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(p.floating)),boundary:v,rootBoundary:w,strategy:h})),R=x==="floating"?{x:a,y:l,width:f.floating.width,height:f.floating.height}:f.reference,T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p.floating)),I=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},U=vi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:R,offsetParent:T,strategy:h}):R);return{top:(N.top-U.top+_.top)/I.y,bottom:(U.bottom-N.bottom+_.bottom)/I.y,left:(N.left-U.left+_.left)/I.x,right:(U.right-N.right+_.right)/I.x}}const Jw=50,ex=async(n,o,i)=>{const{placement:a="bottom",strategy:l="absolute",middleware:u=[],platform:f}=i,p=f.detectOverflow?f:{...f,detectOverflow:Zw},h=await(f.isRTL==null?void 0:f.isRTL(o));let v=await f.getElementRects({reference:n,floating:o,strategy:l}),{x:w,y:x}=qd(v,a,h),b=a,C=0;const _={};for(let k=0;k<u.length;k++){const S=u[k];if(!S)continue;const{name:N,fn:R}=S,{x:T,y:I,data:U,reset:$}=await R({x:w,y:x,initialPlacement:a,placement:b,strategy:l,middlewareData:_,rects:v,platform:p,elements:{reference:n,floating:o}});w=T??w,x=I??x,_[N]={..._[N],...U},$&&C<Jw&&(C++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(v=$.rects===!0?await f.getElementRects({reference:n,floating:o,strategy:l}):$.rects),{x:w,y:x}=qd(v,b,h)),k=-1)}return{x:w,y:x,placement:b,strategy:l,middlewareData:_}},tx=n=>({name:"arrow",options:n,async fn(o){const{x:i,y:a,placement:l,rects:u,platform:f,elements:p,middlewareData:h}=o,{element:v,padding:w=0}=Jt(n,o)||{};if(v==null)return{};const x=Qd(w),b={x:i,y:a},C=Ra(l),_=Na(C),k=await f.getDimensions(v),S=C==="y",N=S?"top":"left",R=S?"bottom":"right",T=S?"clientHeight":"clientWidth",I=u.reference[_]+u.reference[C]-b[C]-u.floating[_],U=b[C]-u.reference[C],$=await(f.getOffsetParent==null?void 0:f.getOffsetParent(v));let O=$?$[T]:0;(!O||!await(f.isElement==null?void 0:f.isElement($)))&&(O=p.floating[T]||u.floating[_]);const D=I/2-U/2,Y=O/2-k[_]/2-1,te=yn(x[N],Y),ne=yn(x[R],Y),se=te,ve=O-k[_]-ne,xe=O/2-k[_]/2+D,Se=Ea(se,xe,ve),Z=!h.arrow&&vr(l)!=null&&xe!==Se&&u.reference[_]/2-(xe<se?te:ne)-k[_]/2<0,ae=Z?xe<se?xe-se:xe-ve:0;return{[C]:b[C]+ae,data:{[C]:Se,centerOffset:xe-Se-ae,...Z&&{alignmentOffset:ae}},reset:Z}}}),nx=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var i,a;const{placement:l,middlewareData:u,rects:f,initialPlacement:p,platform:h,elements:v}=o,{mainAxis:w=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:k=!0,...S}=Jt(n,o);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const N=en(l),R=Bt(p),T=en(p)===p,I=await(h.isRTL==null?void 0:h.isRTL(v.floating)),U=b||(T||!k?[gi(p)]:Gw(p)),$=_!=="none";!b&&$&&U.push(...Qw(p,k,_,I));const O=[p,...U],D=await h.detectOverflow(o,S),Y=[];let te=((a=u.flip)==null?void 0:a.overflows)||[];if(w&&Y.push(D[N]),x){const xe=Vw(l,f,I);Y.push(D[xe[0]],D[xe[1]])}if(te=[...te,{placement:l,overflows:Y}],!Y.every(xe=>xe<=0)){var ne,se;const xe=(((ne=u.flip)==null?void 0:ne.index)||0)+1,Se=O[xe];if(Se&&(!(x==="alignment"?R!==Bt(Se):!1)||te.every(H=>Bt(H.placement)===R?H.overflows[0]>0:!0)))return{data:{index:xe,overflows:te},reset:{placement:Se}};let Z=(se=te.filter(ae=>ae.overflows[0]<=0).sort((ae,H)=>ae.overflows[1]-H.overflows[1])[0])==null?void 0:se.placement;if(!Z)switch(C){case"bestFit":{var ve;const ae=(ve=te.filter(H=>{if($){const X=Bt(H.placement);return X===R||X==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(X=>X>0).reduce((X,F)=>X+F,0)]).sort((H,X)=>H[1]-X[1])[0])==null?void 0:ve[0];ae&&(Z=ae);break}case"initialPlacement":Z=p;break}if(l!==Z)return{reset:{placement:Z}}}return{}}}};function Zd(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function Jd(n){return Bw.some(o=>n[o]>=0)}const rx=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:i,platform:a}=o,{strategy:l="referenceHidden",...u}=Jt(n,o);switch(l){case"referenceHidden":{const f=await a.detectOverflow(o,{...u,elementContext:"reference"}),p=Zd(f,i.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Jd(p)}}}case"escaped":{const f=await a.detectOverflow(o,{...u,altBoundary:!0}),p=Zd(f,i.floating);return{data:{escapedOffsets:p,escaped:Jd(p)}}}default:return{}}}}},ef=new Set(["left","top"]);async function ox(n,o){const{placement:i,platform:a,elements:l}=n,u=await(a.isRTL==null?void 0:a.isRTL(l.floating)),f=en(i),p=vr(i),h=Bt(i)==="y",v=ef.has(f)?-1:1,w=u&&h?-1:1,x=Jt(o,n);let{mainAxis:b,crossAxis:C,alignmentAxis:_}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return p&&typeof _=="number"&&(C=p==="end"?_*-1:_),h?{x:C*w,y:b*v}:{x:b*v,y:C*w}}const ix=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var i,a;const{x:l,y:u,placement:f,middlewareData:p}=o,h=await ox(o,n);return f===((i=p.offset)==null?void 0:i.placement)&&(a=p.arrow)!=null&&a.alignmentOffset?{}:{x:l+h.x,y:u+h.y,data:{...h,placement:f}}}}},sx=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){const{x:i,y:a,placement:l,platform:u}=o,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:N=>{let{x:R,y:T}=N;return{x:R,y:T}}},...v}=Jt(n,o),w={x:i,y:a},x=await u.detectOverflow(o,v),b=Bt(en(l)),C=_a(b);let _=w[C],k=w[b];if(f){const N=C==="y"?"top":"left",R=C==="y"?"bottom":"right",T=_+x[N],I=_-x[R];_=Ea(T,_,I)}if(p){const N=b==="y"?"top":"left",R=b==="y"?"bottom":"right",T=k+x[N],I=k-x[R];k=Ea(T,k,I)}const S=h.fn({...o,[C]:_,[b]:k});return{...S,data:{x:S.x-i,y:S.y-a,enabled:{[C]:f,[b]:p}}}}}},ax=function(n){return n===void 0&&(n={}),{options:n,fn(o){const{x:i,y:a,placement:l,rects:u,middlewareData:f}=o,{offset:p=0,mainAxis:h=!0,crossAxis:v=!0}=Jt(n,o),w={x:i,y:a},x=Bt(l),b=_a(x);let C=w[b],_=w[x];const k=Jt(p,o),S=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(h){const T=b==="y"?"height":"width",I=u.reference[b]-u.floating[T]+S.mainAxis,U=u.reference[b]+u.reference[T]-S.mainAxis;C<I?C=I:C>U&&(C=U)}if(v){var N,R;const T=b==="y"?"width":"height",I=ef.has(en(l)),U=u.reference[x]-u.floating[T]+(I&&((N=f.offset)==null?void 0:N[x])||0)+(I?0:S.crossAxis),$=u.reference[x]+u.reference[T]+(I?0:((R=f.offset)==null?void 0:R[x])||0)-(I?S.crossAxis:0);_<U?_=U:_>$&&(_=$)}return{[b]:C,[x]:_}}}},lx=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var i,a;const{placement:l,rects:u,platform:f,elements:p}=o,{apply:h=()=>{},...v}=Jt(n,o),w=await f.detectOverflow(o,v),x=en(l),b=vr(l),C=Bt(l)==="y",{width:_,height:k}=u.floating;let S,N;x==="top"||x==="bottom"?(S=x,N=b===(await(f.isRTL==null?void 0:f.isRTL(p.floating))?"start":"end")?"left":"right"):(N=x,S=b==="end"?"top":"bottom");const R=k-w.top-w.bottom,T=_-w.left-w.right,I=yn(k-w[S],R),U=yn(_-w[N],T),$=!o.middlewareData.shift;let O=I,D=U;if((i=o.middlewareData.shift)!=null&&i.enabled.x&&(D=T),(a=o.middlewareData.shift)!=null&&a.enabled.y&&(O=R),$&&!b){const te=gt(w.left,0),ne=gt(w.right,0),se=gt(w.top,0),ve=gt(w.bottom,0);C?D=_-2*(te!==0||ne!==0?te+ne:gt(w.left,w.right)):O=k-2*(se!==0||ve!==0?se+ve:gt(w.top,w.bottom))}await h({...o,availableWidth:D,availableHeight:O});const Y=await f.getDimensions(p.floating);return _!==Y.width||k!==Y.height?{reset:{rects:!0}}:{}}}};function yi(){return typeof window<"u"}function yr(n){return tf(n)?(n.nodeName||"").toLowerCase():"#document"}function vt(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Wt(n){var o;return(o=(tf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function tf(n){return yi()?n instanceof Node||n instanceof vt(n).Node:!1}function Tt(n){return yi()?n instanceof Element||n instanceof vt(n).Element:!1}function tn(n){return yi()?n instanceof HTMLElement||n instanceof vt(n).HTMLElement:!1}function nf(n){return!yi()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof vt(n).ShadowRoot}function no(n){const{overflow:o,overflowX:i,overflowY:a,display:l}=jt(n);return/auto|scroll|overlay|hidden|clip/.test(o+a+i)&&l!=="inline"&&l!=="contents"}function cx(n){return/^(table|td|th)$/.test(yr(n))}function wi(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const ux=/transform|translate|scale|rotate|perspective|filter/,dx=/paint|layout|strict|content/,Xn=n=>!!n&&n!=="none";let Ta;function ja(n){const o=Tt(n)?jt(n):n;return Xn(o.transform)||Xn(o.translate)||Xn(o.scale)||Xn(o.rotate)||Xn(o.perspective)||!Aa()&&(Xn(o.backdropFilter)||Xn(o.filter))||ux.test(o.willChange||"")||dx.test(o.contain||"")}function fx(n){let o=wn(n);for(;tn(o)&&!wr(o);){if(ja(o))return o;if(wi(o))return null;o=wn(o)}return null}function Aa(){return Ta==null&&(Ta=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ta}function wr(n){return/^(html|body|#document)$/.test(yr(n))}function jt(n){return vt(n).getComputedStyle(n)}function xi(n){return Tt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function wn(n){if(yr(n)==="html")return n;const o=n.assignedSlot||n.parentNode||nf(n)&&n.host||Wt(n);return nf(o)?o.host:o}function rf(n){const o=wn(n);return wr(o)?n.ownerDocument?n.ownerDocument.body:n.body:tn(o)&&no(o)?o:rf(o)}function ro(n,o,i){var a;o===void 0&&(o=[]),i===void 0&&(i=!0);const l=rf(n),u=l===((a=n.ownerDocument)==null?void 0:a.body),f=vt(l);if(u){const p=Ia(f);return o.concat(f,f.visualViewport||[],no(l)?l:[],p&&i?ro(p):[])}else return o.concat(l,ro(l,[],i))}function Ia(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function of(n){const o=jt(n);let i=parseFloat(o.width)||0,a=parseFloat(o.height)||0;const l=tn(n),u=l?n.offsetWidth:i,f=l?n.offsetHeight:a,p=hi(i)!==u||hi(a)!==f;return p&&(i=u,a=f),{width:i,height:a,$:p}}function za(n){return Tt(n)?n:n.contextElement}function xr(n){const o=za(n);if(!tn(o))return Ht(1);const i=o.getBoundingClientRect(),{width:a,height:l,$:u}=of(o);let f=(u?hi(i.width):i.width)/a,p=(u?hi(i.height):i.height)/l;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const px=Ht(0);function sf(n){const o=vt(n);return!Aa()||!o.visualViewport?px:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function hx(n,o,i){return o===void 0&&(o=!1),!i||o&&i!==vt(n)?!1:o}function Qn(n,o,i,a){o===void 0&&(o=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),u=za(n);let f=Ht(1);o&&(a?Tt(a)&&(f=xr(a)):f=xr(n));const p=hx(u,i,a)?sf(u):Ht(0);let h=(l.left+p.x)/f.x,v=(l.top+p.y)/f.y,w=l.width/f.x,x=l.height/f.y;if(u){const b=vt(u),C=a&&Tt(a)?vt(a):a;let _=b,k=Ia(_);for(;k&&a&&C!==_;){const S=xr(k),N=k.getBoundingClientRect(),R=jt(k),T=N.left+(k.clientLeft+parseFloat(R.paddingLeft))*S.x,I=N.top+(k.clientTop+parseFloat(R.paddingTop))*S.y;h*=S.x,v*=S.y,w*=S.x,x*=S.y,h+=T,v+=I,_=vt(k),k=Ia(_)}}return vi({width:w,height:x,x:h,y:v})}function bi(n,o){const i=xi(n).scrollLeft;return o?o.left+i:Qn(Wt(n)).left+i}function af(n,o){const i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-bi(n,i),l=i.top+o.scrollTop;return{x:a,y:l}}function mx(n){let{elements:o,rect:i,offsetParent:a,strategy:l}=n;const u=l==="fixed",f=Wt(a),p=o?wi(o.floating):!1;if(a===f||p&&u)return i;let h={scrollLeft:0,scrollTop:0},v=Ht(1);const w=Ht(0),x=tn(a);if((x||!x&&!u)&&((yr(a)!=="body"||no(f))&&(h=xi(a)),x)){const C=Qn(a);v=xr(a),w.x=C.x+a.clientLeft,w.y=C.y+a.clientTop}const b=f&&!x&&!u?af(f,h):Ht(0);return{width:i.width*v.x,height:i.height*v.y,x:i.x*v.x-h.scrollLeft*v.x+w.x+b.x,y:i.y*v.y-h.scrollTop*v.y+w.y+b.y}}function gx(n){return Array.from(n.getClientRects())}function vx(n){const o=Wt(n),i=xi(n),a=n.ownerDocument.body,l=gt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),u=gt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let f=-i.scrollLeft+bi(n);const p=-i.scrollTop;return jt(a).direction==="rtl"&&(f+=gt(o.clientWidth,a.clientWidth)-l),{width:l,height:u,x:f,y:p}}const lf=25;function yx(n,o){const i=vt(n),a=Wt(n),l=i.visualViewport;let u=a.clientWidth,f=a.clientHeight,p=0,h=0;if(l){u=l.width,f=l.height;const w=Aa();(!w||w&&o==="fixed")&&(p=l.offsetLeft,h=l.offsetTop)}const v=bi(a);if(v<=0){const w=a.ownerDocument,x=w.body,b=getComputedStyle(x),C=w.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,_=Math.abs(a.clientWidth-x.clientWidth-C);_<=lf&&(u-=_)}else v<=lf&&(u+=v);return{width:u,height:f,x:p,y:h}}function wx(n,o){const i=Qn(n,!0,o==="fixed"),a=i.top+n.clientTop,l=i.left+n.clientLeft,u=tn(n)?xr(n):Ht(1),f=n.clientWidth*u.x,p=n.clientHeight*u.y,h=l*u.x,v=a*u.y;return{width:f,height:p,x:h,y:v}}function cf(n,o,i){let a;if(o==="viewport")a=yx(n,i);else if(o==="document")a=vx(Wt(n));else if(Tt(o))a=wx(o,i);else{const l=sf(n);a={x:o.x-l.x,y:o.y-l.y,width:o.width,height:o.height}}return vi(a)}function uf(n,o){const i=wn(n);return i===o||!Tt(i)||wr(i)?!1:jt(i).position==="fixed"||uf(i,o)}function xx(n,o){const i=o.get(n);if(i)return i;let a=ro(n,[],!1).filter(p=>Tt(p)&&yr(p)!=="body"),l=null;const u=jt(n).position==="fixed";let f=u?wn(n):n;for(;Tt(f)&&!wr(f);){const p=jt(f),h=ja(f);!h&&p.position==="fixed"&&(l=null),(u?!h&&!l:!h&&p.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||no(f)&&!h&&uf(n,f))?a=a.filter(w=>w!==f):l=p,f=wn(f)}return o.set(n,a),a}function bx(n){let{element:o,boundary:i,rootBoundary:a,strategy:l}=n;const f=[...i==="clippingAncestors"?wi(o)?[]:xx(o,this._c):[].concat(i),a],p=cf(o,f[0],l);let h=p.top,v=p.right,w=p.bottom,x=p.left;for(let b=1;b<f.length;b++){const C=cf(o,f[b],l);h=gt(C.top,h),v=yn(C.right,v),w=yn(C.bottom,w),x=gt(C.left,x)}return{width:v-x,height:w-h,x,y:h}}function kx(n){const{width:o,height:i}=of(n);return{width:o,height:i}}function Sx(n,o,i){const a=tn(o),l=Wt(o),u=i==="fixed",f=Qn(n,!0,u,o);let p={scrollLeft:0,scrollTop:0};const h=Ht(0);function v(){h.x=bi(l)}if(a||!a&&!u)if((yr(o)!=="body"||no(l))&&(p=xi(o)),a){const C=Qn(o,!0,u,o);h.x=C.x+o.clientLeft,h.y=C.y+o.clientTop}else l&&v();u&&!a&&l&&v();const w=l&&!a&&!u?af(l,p):Ht(0),x=f.left+p.scrollLeft-h.x-w.x,b=f.top+p.scrollTop-h.y-w.y;return{x,y:b,width:f.width,height:f.height}}function Ma(n){return jt(n).position==="static"}function df(n,o){if(!tn(n)||jt(n).position==="fixed")return null;if(o)return o(n);let i=n.offsetParent;return Wt(n)===i&&(i=i.ownerDocument.body),i}function ff(n,o){const i=vt(n);if(wi(n))return i;if(!tn(n)){let l=wn(n);for(;l&&!wr(l);){if(Tt(l)&&!Ma(l))return l;l=wn(l)}return i}let a=df(n,o);for(;a&&cx(a)&&Ma(a);)a=df(a,o);return a&&wr(a)&&Ma(a)&&!ja(a)?i:a||fx(n)||i}const Cx=async function(n){const o=this.getOffsetParent||ff,i=this.getDimensions,a=await i(n.floating);return{reference:Sx(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Ex(n){return jt(n).direction==="rtl"}const _x={convertOffsetParentRelativeRectToViewportRelativeRect:mx,getDocumentElement:Wt,getClippingRect:bx,getOffsetParent:ff,getElementRects:Cx,getClientRects:gx,getDimensions:kx,getScale:xr,isElement:Tt,isRTL:Ex};function pf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function Nx(n,o){let i=null,a;const l=Wt(n);function u(){var p;clearTimeout(a),(p=i)==null||p.disconnect(),i=null}function f(p,h){p===void 0&&(p=!1),h===void 0&&(h=1),u();const v=n.getBoundingClientRect(),{left:w,top:x,width:b,height:C}=v;if(p||o(),!b||!C)return;const _=mi(x),k=mi(l.clientWidth-(w+b)),S=mi(l.clientHeight-(x+C)),N=mi(w),T={rootMargin:-_+"px "+-k+"px "+-S+"px "+-N+"px",threshold:gt(0,yn(1,h))||1};let I=!0;function U($){const O=$[0].intersectionRatio;if(O!==h){if(!I)return f();O?f(!1,O):a=setTimeout(()=>{f(!1,1e-7)},1e3)}O===1&&!pf(v,n.getBoundingClientRect())&&f(),I=!1}try{i=new IntersectionObserver(U,{...T,root:l.ownerDocument})}catch{i=new IntersectionObserver(U,T)}i.observe(n)}return f(!0),u}function Rx(n,o,i,a){a===void 0&&(a={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,v=za(n),w=l||u?[...v?ro(v):[],...o?ro(o):[]]:[];w.forEach(N=>{l&&N.addEventListener("scroll",i,{passive:!0}),u&&N.addEventListener("resize",i)});const x=v&&p?Nx(v,i):null;let b=-1,C=null;f&&(C=new ResizeObserver(N=>{let[R]=N;R&&R.target===v&&C&&o&&(C.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var T;(T=C)==null||T.observe(o)})),i()}),v&&!h&&C.observe(v),o&&C.observe(o));let _,k=h?Qn(n):null;h&&S();function S(){const N=Qn(n);k&&!pf(k,N)&&i(),k=N,_=requestAnimationFrame(S)}return i(),()=>{var N;w.forEach(R=>{l&&R.removeEventListener("scroll",i),u&&R.removeEventListener("resize",i)}),x==null||x(),(N=C)==null||N.disconnect(),C=null,h&&cancelAnimationFrame(_)}}const Px=ix,Tx=sx,jx=nx,Ax=lx,Ix=rx,hf=tx,zx=ax,Mx=(n,o,i)=>{const a=new Map,l={platform:_x,...i},u={...l.platform,_c:a};return ex(n,o,{...l,platform:u})};var Lx=typeof document<"u",Ox=function(){},ki=Lx?m.useLayoutEffect:Ox;function Si(n,o){if(n===o)return!0;if(typeof n!=typeof o)return!1;if(typeof n=="function"&&n.toString()===o.toString())return!0;let i,a,l;if(n&&o&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==o.length)return!1;for(a=i;a--!==0;)if(!Si(n[a],o[a]))return!1;return!0}if(l=Object.keys(n),i=l.length,i!==Object.keys(o).length)return!1;for(a=i;a--!==0;)if(!{}.hasOwnProperty.call(o,l[a]))return!1;for(a=i;a--!==0;){const u=l[a];if(!(u==="_owner"&&n.$$typeof)&&!Si(n[u],o[u]))return!1}return!0}return n!==n&&o!==o}function mf(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function gf(n,o){const i=mf(n);return Math.round(o*i)/i}function La(n){const o=m.useRef(n);return ki(()=>{o.current=n}),o}function Dx(n){n===void 0&&(n={});const{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:l,elements:{reference:u,floating:f}={},transform:p=!0,whileElementsMounted:h,open:v}=n,[w,x]=m.useState({x:0,y:0,strategy:i,placement:o,middlewareData:{},isPositioned:!1}),[b,C]=m.useState(a);Si(b,a)||C(a);const[_,k]=m.useState(null),[S,N]=m.useState(null),R=m.useCallback(H=>{H!==$.current&&($.current=H,k(H))},[]),T=m.useCallback(H=>{H!==O.current&&(O.current=H,N(H))},[]),I=u||_,U=f||S,$=m.useRef(null),O=m.useRef(null),D=m.useRef(w),Y=h!=null,te=La(h),ne=La(l),se=La(v),ve=m.useCallback(()=>{if(!$.current||!O.current)return;const H={placement:o,strategy:i,middleware:b};ne.current&&(H.platform=ne.current),Mx($.current,O.current,H).then(X=>{const F={...X,isPositioned:se.current!==!1};xe.current&&!Si(D.current,F)&&(D.current=F,Jr.flushSync(()=>{x(F)}))})},[b,o,i,ne,se]);ki(()=>{v===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,x(H=>({...H,isPositioned:!1})))},[v]);const xe=m.useRef(!1);ki(()=>(xe.current=!0,()=>{xe.current=!1}),[]),ki(()=>{if(I&&($.current=I),U&&(O.current=U),I&&U){if(te.current)return te.current(I,U,ve);ve()}},[I,U,ve,te,Y]);const Se=m.useMemo(()=>({reference:$,floating:O,setReference:R,setFloating:T}),[R,T]),Z=m.useMemo(()=>({reference:I,floating:U}),[I,U]),ae=m.useMemo(()=>{const H={position:i,left:0,top:0};if(!Z.floating)return H;const X=gf(Z.floating,w.x),F=gf(Z.floating,w.y);return p?{...H,transform:"translate("+X+"px, "+F+"px)",...mf(Z.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:X,top:F}},[i,p,Z.floating,w.x,w.y]);return m.useMemo(()=>({...w,update:ve,refs:Se,elements:Z,floatingStyles:ae}),[w,ve,Se,Z,ae])}const Fx=n=>{function o(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:a,padding:l}=typeof n=="function"?n(i):n;return a&&o(a)?a.current!=null?hf({element:a.current,padding:l}).fn(i):{}:a?hf({element:a,padding:l}).fn(i):{}}}},$x=(n,o)=>{const i=Px(n);return{name:i.name,fn:i.fn,options:[n,o]}},Ux=(n,o)=>{const i=Tx(n);return{name:i.name,fn:i.fn,options:[n,o]}},Hx=(n,o)=>({fn:zx(n).fn,options:[n,o]}),Bx=(n,o)=>{const i=jx(n);return{name:i.name,fn:i.fn,options:[n,o]}},Wx=(n,o)=>{const i=Ax(n);return{name:i.name,fn:i.fn,options:[n,o]}},Vx=(n,o)=>{const i=Ix(n);return{name:i.name,fn:i.fn,options:[n,o]}},Gx=(n,o)=>{const i=Fx(n);return{name:i.name,fn:i.fn,options:[n,o]}};var Kx="Arrow",vf=m.forwardRef((n,o)=>{const{children:i,width:a=10,height:l=5,...u}=n;return g.jsx(pe.svg,{...u,ref:o,width:a,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});vf.displayName=Kx;var Yx=vf,Oa="Popper",[yf,Ci]=ct(Oa),[Xx,wf]=yf(Oa),xf=n=>{const{__scopePopper:o,children:i}=n,[a,l]=m.useState(null);return g.jsx(Xx,{scope:o,anchor:a,onAnchorChange:l,children:i})};xf.displayName=Oa;var bf="PopperAnchor",kf=m.forwardRef((n,o)=>{const{__scopePopper:i,virtualRef:a,...l}=n,u=wf(bf,i),f=m.useRef(null),p=Pe(o,f),h=m.useRef(null);return m.useEffect(()=>{const v=h.current;h.current=(a==null?void 0:a.current)||f.current,v!==h.current&&u.onAnchorChange(h.current)}),a?null:g.jsx(pe.div,{...l,ref:p})});kf.displayName=bf;var Da="PopperContent",[Qx,qx]=yf(Da),Sf=m.forwardRef((n,o)=>{var Q,ue,le,Ce,Ne,Re;const{__scopePopper:i,side:a="bottom",sideOffset:l=0,align:u="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:h=!0,collisionBoundary:v=[],collisionPadding:w=0,sticky:x="partial",hideWhenDetached:b=!1,updatePositionStrategy:C="optimized",onPlaced:_,...k}=n,S=wf(Da,i),[N,R]=m.useState(null),T=Pe(o,$e=>R($e)),[I,U]=m.useState(null),$=fi(I),O=($==null?void 0:$.width)??0,D=($==null?void 0:$.height)??0,Y=a+(u!=="center"?"-"+u:""),te=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},ne=Array.isArray(v)?v:[v],se=ne.length>0,ve={padding:te,boundary:ne.filter(Jx),altBoundary:se},{refs:xe,floatingStyles:Se,placement:Z,isPositioned:ae,middlewareData:H}=Dx({strategy:"fixed",placement:Y,whileElementsMounted:(...$e)=>Rx(...$e,{animationFrame:C==="always"}),elements:{reference:S.anchor},middleware:[$x({mainAxis:l+D,alignmentAxis:f}),h&&Ux({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?Hx():void 0,...ve}),h&&Bx({...ve}),Wx({...ve,apply:({elements:$e,rects:Ke,availableWidth:kn,availableHeight:Sn})=>{const{width:nn,height:Ui}=Ke.reference,Cn=$e.floating.style;Cn.setProperty("--radix-popper-available-width",`${kn}px`),Cn.setProperty("--radix-popper-available-height",`${Sn}px`),Cn.setProperty("--radix-popper-anchor-width",`${nn}px`),Cn.setProperty("--radix-popper-anchor-height",`${Ui}px`)}}),I&&Gx({element:I,padding:p}),e1({arrowWidth:O,arrowHeight:D}),b&&Vx({strategy:"referenceHidden",...ve})]}),[X,F]=_f(Z),A=tt(_);He(()=>{ae&&(A==null||A())},[ae,A]);const B=(Q=H.arrow)==null?void 0:Q.x,be=(ue=H.arrow)==null?void 0:ue.y,ye=((le=H.arrow)==null?void 0:le.centerOffset)!==0,[fe,de]=m.useState();return He(()=>{N&&de(window.getComputedStyle(N).zIndex)},[N]),g.jsx("div",{ref:xe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:ae?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(Ce=H.transformOrigin)==null?void 0:Ce.x,(Ne=H.transformOrigin)==null?void 0:Ne.y].join(" "),...((Re=H.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:g.jsx(Qx,{scope:i,placedSide:X,onArrowChange:U,arrowX:B,arrowY:be,shouldHideArrow:ye,children:g.jsx(pe.div,{"data-side":X,"data-align":F,...k,ref:T,style:{...k.style,animation:ae?void 0:"none"}})})})});Sf.displayName=Da;var Cf="PopperArrow",Zx={top:"bottom",right:"left",bottom:"top",left:"right"},Ef=m.forwardRef(function(o,i){const{__scopePopper:a,...l}=o,u=qx(Cf,a),f=Zx[u.placedSide];return g.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]: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:g.jsx(Yx,{...l,ref:i,style:{...l.style,display:"block"}})})});Ef.displayName=Cf;function Jx(n){return n!==null}var e1=n=>({name:"transformOrigin",options:n,fn(o){var S,N,R;const{placement:i,rects:a,middlewareData:l}=o,f=((S=l.arrow)==null?void 0:S.centerOffset)!==0,p=f?0:n.arrowWidth,h=f?0:n.arrowHeight,[v,w]=_f(i),x={start:"0%",center:"50%",end:"100%"}[w],b=(((N=l.arrow)==null?void 0:N.x)??0)+p/2,C=(((R=l.arrow)==null?void 0:R.y)??0)+h/2;let _="",k="";return v==="bottom"?(_=f?x:`${b}px`,k=`${-h}px`):v==="top"?(_=f?x:`${b}px`,k=`${a.floating.height+h}px`):v==="right"?(_=`${-h}px`,k=f?x:`${C}px`):v==="left"&&(_=`${a.floating.width+h}px`,k=f?x:`${C}px`),{data:{x:_,y:k}}}});function _f(n){const[o,i="center"]=n.split("-");return[o,i]}var Nf=xf,Rf=kf,Pf=Sf,Tf=Ef,Fa="rovingFocusGroup.onEntryFocus",t1={bubbles:!1,cancelable:!0},oo="RovingFocusGroup",[$a,jf,n1]=td(oo),[r1,Ei]=ct(oo,[n1]),[o1,i1]=r1(oo),Af=m.forwardRef((n,o)=>g.jsx($a.Provider,{scope:n.__scopeRovingFocusGroup,children:g.jsx($a.Slot,{scope:n.__scopeRovingFocusGroup,children:g.jsx(s1,{...n,ref:o})})}));Af.displayName=oo;var s1=m.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:i,orientation:a,loop:l=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:v,preventScrollOnEntryFocus:w=!1,...x}=n,b=m.useRef(null),C=Pe(o,b),_=to(u),[k,S]=Zt({prop:f,defaultProp:p??null,onChange:h,caller:oo}),[N,R]=m.useState(!1),T=tt(v),I=jf(i),U=m.useRef(!1),[$,O]=m.useState(0);return m.useEffect(()=>{const D=b.current;if(D)return D.addEventListener(Fa,T),()=>D.removeEventListener(Fa,T)},[T]),g.jsx(o1,{scope:i,orientation:a,dir:_,loop:l,currentTabStopId:k,onItemFocus:m.useCallback(D=>S(D),[S]),onItemShiftTab:m.useCallback(()=>R(!0),[]),onFocusableItemAdd:m.useCallback(()=>O(D=>D+1),[]),onFocusableItemRemove:m.useCallback(()=>O(D=>D-1),[]),children:g.jsx(pe.div,{tabIndex:N||$===0?-1:0,"data-orientation":a,...x,ref:C,style:{outline:"none",...n.style},onMouseDown:we(n.onMouseDown,()=>{U.current=!0}),onFocus:we(n.onFocus,D=>{const Y=!U.current;if(D.target===D.currentTarget&&Y&&!N){const te=new CustomEvent(Fa,t1);if(D.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ne=I().filter(Z=>Z.focusable),se=ne.find(Z=>Z.active),ve=ne.find(Z=>Z.id===k),Se=[se,ve,...ne].filter(Boolean).map(Z=>Z.ref.current);Mf(Se,w)}}U.current=!1}),onBlur:we(n.onBlur,()=>R(!1))})})}),If="RovingFocusGroupItem",zf=m.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:i,focusable:a=!0,active:l=!1,tabStopId:u,children:f,...p}=n,h=Yn(),v=u||h,w=i1(If,i),x=w.currentTabStopId===v,b=jf(i),{onFocusableItemAdd:C,onFocusableItemRemove:_,currentTabStopId:k}=w;return m.useEffect(()=>{if(a)return C(),()=>_()},[a,C,_]),g.jsx($a.ItemSlot,{scope:i,id:v,focusable:a,active:l,children:g.jsx(pe.span,{tabIndex:x?0:-1,"data-orientation":w.orientation,...p,ref:o,onMouseDown:we(n.onMouseDown,S=>{a?w.onItemFocus(v):S.preventDefault()}),onFocus:we(n.onFocus,()=>w.onItemFocus(v)),onKeyDown:we(n.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){w.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const N=c1(S,w.orientation,w.dir);if(N!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let T=b().filter(I=>I.focusable).map(I=>I.ref.current);if(N==="last")T.reverse();else if(N==="prev"||N==="next"){N==="prev"&&T.reverse();const I=T.indexOf(S.currentTarget);T=w.loop?u1(T,I+1):T.slice(I+1)}setTimeout(()=>Mf(T))}}),children:typeof f=="function"?f({isCurrentTabStop:x,hasTabStop:k!=null}):f})})});zf.displayName=If;var a1={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function l1(n,o){return o!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function c1(n,o,i){const a=l1(n.key,i);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return a1[a]}function Mf(n,o=!1){const i=document.activeElement;for(const a of n)if(a===i||(a.focus({preventScroll:o}),document.activeElement!==i))return}function u1(n,o){return n.map((i,a)=>n[(o+a)%n.length])}var Lf=Af,Of=zf,d1="Label",Df=m.forwardRef((n,o)=>g.jsx(pe.label,{...n,ref:o,onMouseDown:i=>{var l;i.target.closest("button, input, select, textarea")||((l=n.onMouseDown)==null||l.call(n,i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));Df.displayName=d1;var f1=Df;function Ua(n,[o,i]){return Math.min(i,Math.max(o,n))}var Ha="Progress",Ba=100,[p1]=ct(Ha),[h1,m1]=p1(Ha),Ff=m.forwardRef((n,o)=>{const{__scopeProgress:i,value:a=null,max:l,getValueLabel:u=g1,...f}=n;(l||l===0)&&!Bf(l)&&console.error(v1(`${l}`,"Progress"));const p=Bf(l)?l:Ba;a!==null&&!Wf(a,p)&&console.error(y1(`${a}`,"Progress"));const h=Wf(a,p)?a:null,v=_i(h)?u(h,p):void 0;return g.jsx(h1,{scope:i,value:h,max:p,children:g.jsx(pe.div,{"aria-valuemax":p,"aria-valuemin":0,"aria-valuenow":_i(h)?h:void 0,"aria-valuetext":v,role:"progressbar","data-state":Hf(h,p),"data-value":h??void 0,"data-max":p,...f,ref:o})})});Ff.displayName=Ha;var $f="ProgressIndicator",Uf=m.forwardRef((n,o)=>{const{__scopeProgress:i,...a}=n,l=m1($f,i);return g.jsx(pe.div,{"data-state":Hf(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...a,ref:o})});Uf.displayName=$f;function g1(n,o){return`${Math.round(n/o*100)}%`}function Hf(n,o){return n==null?"indeterminate":n===o?"complete":"loading"}function _i(n){return typeof n=="number"}function Bf(n){return _i(n)&&!isNaN(n)&&n>0}function Wf(n,o){return _i(n)&&!isNaN(n)&&n<=o&&n>=0}function v1(n,o){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ba}\`.`}function y1(n,o){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${o}\`. The \`value\` prop must be:
|
|
290
290
|
- a positive number
|
|
291
|
-
- less than the value passed to \`max\` (or ${
|
|
291
|
+
- less than the value passed to \`max\` (or ${Ba} if no \`max\` prop is set)
|
|
292
292
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
293
293
|
|
|
294
|
-
Defaulting to \`null\`.`}var w1=Ff,x1=Uf,Bl="Radio",[b1,Vf]=ct(Bl),[k1,S1]=b1(Bl),Gf=m.forwardRef((n,o)=>{const{__scopeRadio:i,name:l,checked:a=!1,required:u,disabled:f,value:p="on",onCheck:h,form:v,...w}=n,[x,b]=m.useState(null),C=Pe(o,S=>b(S)),_=m.useRef(!1),k=x?v||!!x.closest("form"):!0;return g.jsxs(k1,{scope:i,checked:a,disabled:f,children:[g.jsx(pe.button,{type:"button",role:"radio","aria-checked":a,"data-state":Qf(a),"data-disabled":f?"":void 0,disabled:f,value:p,...w,ref:C,onClick:we(n.onClick,S=>{a||h==null||h(),k&&(_.current=S.isPropagationStopped(),_.current||S.stopPropagation())})}),k&&g.jsx(Xf,{control:x,bubbles:!_.current,name:l,value:p,checked:a,required:u,disabled:f,form:v,style:{transform:"translateX(-100%)"}})]})});Gf.displayName=Bl;var Kf="RadioIndicator",Yf=m.forwardRef((n,o)=>{const{__scopeRadio:i,forceMount:l,...a}=n,u=S1(Kf,i);return g.jsx(Pt,{present:l||u.checked,children:g.jsx(pe.span,{"data-state":Qf(u.checked),"data-disabled":u.disabled?"":void 0,...a,ref:o})})});Yf.displayName=Kf;var C1="RadioBubbleInput",Xf=m.forwardRef(({__scopeRadio:n,control:o,checked:i,bubbles:l=!0,...a},u)=>{const f=m.useRef(null),p=Pe(f,u),h=di(i),v=fi(o);return m.useEffect(()=>{const w=f.current;if(!w)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set;if(h!==i&&C){const _=new Event("click",{bubbles:l});C.call(w,i),w.dispatchEvent(_)}},[h,i,l]),g.jsx(pe.input,{type:"radio","aria-hidden":!0,defaultChecked:i,...a,tabIndex:-1,ref:p,style:{...a.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Xf.displayName=C1;function Qf(n){return n?"checked":"unchecked"}var E1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ni="RadioGroup",[_1]=ct(Ni,[Ei,Vf]),qf=Ei(),Zf=Vf(),[N1,R1]=_1(Ni),Jf=m.forwardRef((n,o)=>{const{__scopeRadioGroup:i,name:l,defaultValue:a,value:u,required:f=!1,disabled:p=!1,orientation:h,dir:v,loop:w=!0,onValueChange:x,...b}=n,C=qf(i),_=to(v),[k,S]=Zt({prop:u,defaultProp:a??null,onChange:x,caller:Ni});return g.jsx(N1,{scope:i,name:l,required:f,disabled:p,value:k,onValueChange:S,children:g.jsx(Lf,{asChild:!0,...C,orientation:h,dir:_,loop:w,children:g.jsx(pe.div,{role:"radiogroup","aria-required":f,"aria-orientation":h,"data-disabled":p?"":void 0,dir:_,...b,ref:o})})})});Jf.displayName=Ni;var ep="RadioGroupItem",tp=m.forwardRef((n,o)=>{const{__scopeRadioGroup:i,disabled:l,...a}=n,u=R1(ep,i),f=u.disabled||l,p=qf(i),h=Zf(i),v=m.useRef(null),w=Pe(o,v),x=u.value===a.value,b=m.useRef(!1);return m.useEffect(()=>{const C=k=>{E1.includes(k.key)&&(b.current=!0)},_=()=>b.current=!1;return document.addEventListener("keydown",C),document.addEventListener("keyup",_),()=>{document.removeEventListener("keydown",C),document.removeEventListener("keyup",_)}},[]),g.jsx(Of,{asChild:!0,...p,focusable:!f,active:x,children:g.jsx(Gf,{disabled:f,required:u.required,checked:x,...h,...a,name:u.name,ref:w,onCheck:()=>u.onValueChange(a.value),onKeyDown:we(C=>{C.key==="Enter"&&C.preventDefault()}),onFocus:we(a.onFocus,()=>{var C;b.current&&((C=v.current)==null||C.click())})})})});tp.displayName=ep;var P1="RadioGroupIndicator",np=m.forwardRef((n,o)=>{const{__scopeRadioGroup:i,...l}=n,a=Zf(i);return g.jsx(Yf,{...a,...l,ref:o})});np.displayName=P1;var T1=Jf,j1=tp,A1=np;function I1(n,o){return m.useReducer((i,l)=>o[i][l]??i,n)}var Wl="ScrollArea",[rp]=ct(Wl),[M1,kt]=rp(Wl),op=m.forwardRef((n,o)=>{const{__scopeScrollArea:i,type:l="hover",dir:a,scrollHideDelay:u=600,...f}=n,[p,h]=m.useState(null),[v,w]=m.useState(null),[x,b]=m.useState(null),[C,_]=m.useState(null),[k,S]=m.useState(null),[N,R]=m.useState(0),[T,I]=m.useState(0),[U,$]=m.useState(!1),[O,D]=m.useState(!1),Y=Pe(o,ne=>h(ne)),te=to(a);return g.jsx(M1,{scope:i,type:l,dir:te,scrollHideDelay:u,scrollArea:p,viewport:v,onViewportChange:w,content:x,onContentChange:b,scrollbarX:C,onScrollbarXChange:_,scrollbarXEnabled:U,onScrollbarXEnabledChange:$,scrollbarY:k,onScrollbarYChange:S,scrollbarYEnabled:O,onScrollbarYEnabledChange:D,onCornerWidthChange:R,onCornerHeightChange:I,children:g.jsx(pe.div,{dir:te,...f,ref:Y,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":T+"px",...n.style}})})});op.displayName=Wl;var ip="ScrollAreaViewport",sp=m.forwardRef((n,o)=>{const{__scopeScrollArea:i,children:l,nonce:a,...u}=n,f=kt(ip,i),p=m.useRef(null),h=Pe(o,p,f.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),g.jsx(pe.div,{"data-radix-scroll-area-viewport":"",...u,ref:h,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...n.style},children:g.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});sp.displayName=ip;var Vt="ScrollAreaScrollbar",lp=m.forwardRef((n,o)=>{const{forceMount:i,...l}=n,a=kt(Vt,n.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:f}=a,p=n.orientation==="horizontal";return m.useEffect(()=>(p?u(!0):f(!0),()=>{p?u(!1):f(!1)}),[p,u,f]),a.type==="hover"?g.jsx(z1,{...l,ref:o,forceMount:i}):a.type==="scroll"?g.jsx(L1,{...l,ref:o,forceMount:i}):a.type==="auto"?g.jsx(ap,{...l,ref:o,forceMount:i}):a.type==="always"?g.jsx(Vl,{...l,ref:o}):null});lp.displayName=Vt;var z1=m.forwardRef((n,o)=>{const{forceMount:i,...l}=n,a=kt(Vt,n.__scopeScrollArea),[u,f]=m.useState(!1);return m.useEffect(()=>{const p=a.scrollArea;let h=0;if(p){const v=()=>{window.clearTimeout(h),f(!0)},w=()=>{h=window.setTimeout(()=>f(!1),a.scrollHideDelay)};return p.addEventListener("pointerenter",v),p.addEventListener("pointerleave",w),()=>{window.clearTimeout(h),p.removeEventListener("pointerenter",v),p.removeEventListener("pointerleave",w)}}},[a.scrollArea,a.scrollHideDelay]),g.jsx(Pt,{present:i||u,children:g.jsx(ap,{"data-state":u?"visible":"hidden",...l,ref:o})})}),L1=m.forwardRef((n,o)=>{const{forceMount:i,...l}=n,a=kt(Vt,n.__scopeScrollArea),u=n.orientation==="horizontal",f=ji(()=>h("SCROLL_END"),100),[p,h]=I1("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return m.useEffect(()=>{if(p==="idle"){const v=window.setTimeout(()=>h("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(v)}},[p,a.scrollHideDelay,h]),m.useEffect(()=>{const v=a.viewport,w=u?"scrollLeft":"scrollTop";if(v){let x=v[w];const b=()=>{const C=v[w];x!==C&&(h("SCROLL"),f()),x=C};return v.addEventListener("scroll",b),()=>v.removeEventListener("scroll",b)}},[a.viewport,u,h,f]),g.jsx(Pt,{present:i||p!=="hidden",children:g.jsx(Vl,{"data-state":p==="hidden"?"hidden":"visible",...l,ref:o,onPointerEnter:we(n.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:we(n.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),ap=m.forwardRef((n,o)=>{const i=kt(Vt,n.__scopeScrollArea),{forceMount:l,...a}=n,[u,f]=m.useState(!1),p=n.orientation==="horizontal",h=ji(()=>{if(i.viewport){const v=i.viewport.offsetWidth<i.viewport.scrollWidth,w=i.viewport.offsetHeight<i.viewport.scrollHeight;f(p?v:w)}},10);return br(i.viewport,h),br(i.content,h),g.jsx(Pt,{present:l||u,children:g.jsx(Vl,{"data-state":u?"visible":"hidden",...a,ref:o})})}),Vl=m.forwardRef((n,o)=>{const{orientation:i="vertical",...l}=n,a=kt(Vt,n.__scopeScrollArea),u=m.useRef(null),f=m.useRef(0),[p,h]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),v=pp(p.viewport,p.content),w={...l,sizes:p,onSizesChange:h,hasThumb:v>0&&v<1,onThumbChange:b=>u.current=b,onThumbPointerUp:()=>f.current=0,onThumbPointerDown:b=>f.current=b};function x(b,C){return H1(b,f.current,p,C)}return i==="horizontal"?g.jsx(O1,{...w,ref:o,onThumbPositionChange:()=>{if(a.viewport&&u.current){const b=a.viewport.scrollLeft,C=hp(b,p,a.dir);u.current.style.transform=`translate3d(${C}px, 0, 0)`}},onWheelScroll:b=>{a.viewport&&(a.viewport.scrollLeft=b)},onDragScroll:b=>{a.viewport&&(a.viewport.scrollLeft=x(b,a.dir))}}):i==="vertical"?g.jsx(D1,{...w,ref:o,onThumbPositionChange:()=>{if(a.viewport&&u.current){const b=a.viewport.scrollTop,C=hp(b,p);u.current.style.transform=`translate3d(0, ${C}px, 0)`}},onWheelScroll:b=>{a.viewport&&(a.viewport.scrollTop=b)},onDragScroll:b=>{a.viewport&&(a.viewport.scrollTop=x(b))}}):null}),O1=m.forwardRef((n,o)=>{const{sizes:i,onSizesChange:l,...a}=n,u=kt(Vt,n.__scopeScrollArea),[f,p]=m.useState(),h=m.useRef(null),v=Pe(o,h,u.onScrollbarXChange);return m.useEffect(()=>{h.current&&p(getComputedStyle(h.current))},[h]),g.jsx(up,{"data-orientation":"horizontal",...a,ref:v,sizes:i,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ti(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.x),onDragScroll:w=>n.onDragScroll(w.x),onWheelScroll:(w,x)=>{if(u.viewport){const b=u.viewport.scrollLeft+w.deltaX;n.onWheelScroll(b),gp(b,x)&&w.preventDefault()}},onResize:()=>{h.current&&u.viewport&&f&&l({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Pi(f.paddingLeft),paddingEnd:Pi(f.paddingRight)}})}})}),D1=m.forwardRef((n,o)=>{const{sizes:i,onSizesChange:l,...a}=n,u=kt(Vt,n.__scopeScrollArea),[f,p]=m.useState(),h=m.useRef(null),v=Pe(o,h,u.onScrollbarYChange);return m.useEffect(()=>{h.current&&p(getComputedStyle(h.current))},[h]),g.jsx(up,{"data-orientation":"vertical",...a,ref:v,sizes:i,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ti(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.y),onDragScroll:w=>n.onDragScroll(w.y),onWheelScroll:(w,x)=>{if(u.viewport){const b=u.viewport.scrollTop+w.deltaY;n.onWheelScroll(b),gp(b,x)&&w.preventDefault()}},onResize:()=>{h.current&&u.viewport&&f&&l({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Pi(f.paddingTop),paddingEnd:Pi(f.paddingBottom)}})}})}),[F1,cp]=rp(Vt),up=m.forwardRef((n,o)=>{const{__scopeScrollArea:i,sizes:l,hasThumb:a,onThumbChange:u,onThumbPointerUp:f,onThumbPointerDown:p,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:w,onResize:x,...b}=n,C=kt(Vt,i),[_,k]=m.useState(null),S=Pe(o,Y=>k(Y)),N=m.useRef(null),R=m.useRef(""),T=C.viewport,I=l.content-l.viewport,U=tt(w),$=tt(h),O=ji(x,10);function D(Y){if(N.current){const te=Y.clientX-N.current.left,ne=Y.clientY-N.current.top;v({x:te,y:ne})}}return m.useEffect(()=>{const Y=te=>{const ne=te.target;(_==null?void 0:_.contains(ne))&&U(te,I)};return document.addEventListener("wheel",Y,{passive:!1}),()=>document.removeEventListener("wheel",Y,{passive:!1})},[T,_,I,U]),m.useEffect($,[l,$]),br(_,O),br(C.content,O),g.jsx(F1,{scope:i,scrollbar:_,hasThumb:a,onThumbChange:tt(u),onThumbPointerUp:tt(f),onThumbPositionChange:$,onThumbPointerDown:tt(p),children:g.jsx(pe.div,{...b,ref:S,style:{position:"absolute",...b.style},onPointerDown:we(n.onPointerDown,Y=>{Y.button===0&&(Y.target.setPointerCapture(Y.pointerId),N.current=_.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C.viewport&&(C.viewport.style.scrollBehavior="auto"),D(Y))}),onPointerMove:we(n.onPointerMove,D),onPointerUp:we(n.onPointerUp,Y=>{const te=Y.target;te.hasPointerCapture(Y.pointerId)&&te.releasePointerCapture(Y.pointerId),document.body.style.webkitUserSelect=R.current,C.viewport&&(C.viewport.style.scrollBehavior=""),N.current=null})})})}),Ri="ScrollAreaThumb",dp=m.forwardRef((n,o)=>{const{forceMount:i,...l}=n,a=cp(Ri,n.__scopeScrollArea);return g.jsx(Pt,{present:i||a.hasThumb,children:g.jsx($1,{ref:o,...l})})}),$1=m.forwardRef((n,o)=>{const{__scopeScrollArea:i,style:l,...a}=n,u=kt(Ri,i),f=cp(Ri,i),{onThumbPositionChange:p}=f,h=Pe(o,x=>f.onThumbChange(x)),v=m.useRef(void 0),w=ji(()=>{v.current&&(v.current(),v.current=void 0)},100);return m.useEffect(()=>{const x=u.viewport;if(x){const b=()=>{if(w(),!v.current){const C=B1(x,p);v.current=C,p()}};return p(),x.addEventListener("scroll",b),()=>x.removeEventListener("scroll",b)}},[u.viewport,w,p]),g.jsx(pe.div,{"data-state":f.hasThumb?"visible":"hidden",...a,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:we(n.onPointerDownCapture,x=>{const C=x.target.getBoundingClientRect(),_=x.clientX-C.left,k=x.clientY-C.top;f.onThumbPointerDown({x:_,y:k})}),onPointerUp:we(n.onPointerUp,f.onThumbPointerUp)})});dp.displayName=Ri;var Gl="ScrollAreaCorner",fp=m.forwardRef((n,o)=>{const i=kt(Gl,n.__scopeScrollArea),l=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&l?g.jsx(U1,{...n,ref:o}):null});fp.displayName=Gl;var U1=m.forwardRef((n,o)=>{const{__scopeScrollArea:i,...l}=n,a=kt(Gl,i),[u,f]=m.useState(0),[p,h]=m.useState(0),v=!!(u&&p);return br(a.scrollbarX,()=>{var x;const w=((x=a.scrollbarX)==null?void 0:x.offsetHeight)||0;a.onCornerHeightChange(w),h(w)}),br(a.scrollbarY,()=>{var x;const w=((x=a.scrollbarY)==null?void 0:x.offsetWidth)||0;a.onCornerWidthChange(w),f(w)}),v?g.jsx(pe.div,{...l,ref:o,style:{width:u,height:p,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function Pi(n){return n?parseInt(n,10):0}function pp(n,o){const i=n/o;return isNaN(i)?0:i}function Ti(n){const o=pp(n.viewport,n.content),i=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,l=(n.scrollbar.size-i)*o;return Math.max(l,18)}function H1(n,o,i,l="ltr"){const a=Ti(i),u=a/2,f=o||u,p=a-f,h=i.scrollbar.paddingStart+f,v=i.scrollbar.size-i.scrollbar.paddingEnd-p,w=i.content-i.viewport,x=l==="ltr"?[0,w]:[w*-1,0];return mp([h,v],x)(n)}function hp(n,o,i="ltr"){const l=Ti(o),a=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,u=o.scrollbar.size-a,f=o.content-o.viewport,p=u-l,h=i==="ltr"?[0,f]:[f*-1,0],v=$l(n,h);return mp([0,f],[0,p])(v)}function mp(n,o){return i=>{if(n[0]===n[1]||o[0]===o[1])return o[0];const l=(o[1]-o[0])/(n[1]-n[0]);return o[0]+l*(i-n[0])}}function gp(n,o){return n>0&&n<o}var B1=(n,o=()=>{})=>{let i={left:n.scrollLeft,top:n.scrollTop},l=0;return(function a(){const u={left:n.scrollLeft,top:n.scrollTop},f=i.left!==u.left,p=i.top!==u.top;(f||p)&&o(),i=u,l=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(l)};function ji(n,o){const i=tt(n),l=m.useRef(0);return m.useEffect(()=>()=>window.clearTimeout(l.current),[]),m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(i,o)},[i,o])}function br(n,o){const i=tt(o);He(()=>{let l=0;if(n){const a=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(i)});return a.observe(n),()=>{window.cancelAnimationFrame(l),a.unobserve(n)}}},[n,i])}var W1=op,V1=sp,G1=fp,K1=[" ","Enter","ArrowUp","ArrowDown"],Y1=[" ","Enter"],qn="Select",[Ai,Ii,X1]=td(qn),[kr]=ct(qn,[X1,Ci]),Mi=Ci(),[Q1,xn]=kr(qn),[q1,Z1]=kr(qn),vp=n=>{const{__scopeSelect:o,children:i,open:l,defaultOpen:a,onOpenChange:u,value:f,defaultValue:p,onValueChange:h,dir:v,name:w,autoComplete:x,disabled:b,required:C,form:_}=n,k=Mi(o),[S,N]=m.useState(null),[R,T]=m.useState(null),[I,U]=m.useState(!1),$=to(v),[O,D]=Zt({prop:l,defaultProp:a??!1,onChange:u,caller:qn}),[Y,te]=Zt({prop:f,defaultProp:p,onChange:h,caller:qn}),ne=m.useRef(null),se=S?_||!!S.closest("form"):!0,[ge,xe]=m.useState(new Set),Se=Array.from(ge).map(Z=>Z.props.value).join(";");return g.jsx(Nf,{...k,children:g.jsxs(Q1,{required:C,scope:o,trigger:S,onTriggerChange:N,valueNode:R,onValueNodeChange:T,valueNodeHasChildren:I,onValueNodeHasChildrenChange:U,contentId:Yn(),value:Y,onValueChange:te,open:O,onOpenChange:D,dir:$,triggerPointerDownPosRef:ne,disabled:b,children:[g.jsx(Ai.Provider,{scope:o,children:g.jsx(q1,{scope:n.__scopeSelect,onNativeOptionAdd:m.useCallback(Z=>{xe(le=>new Set(le).add(Z))},[]),onNativeOptionRemove:m.useCallback(Z=>{xe(le=>{const H=new Set(le);return H.delete(Z),H})},[]),children:i})}),se?g.jsxs(Fp,{"aria-hidden":!0,required:C,tabIndex:-1,name:w,autoComplete:x,value:Y,onChange:Z=>te(Z.target.value),disabled:b,form:_,children:[Y===void 0?g.jsx("option",{value:""}):null,Array.from(ge)]},Se):null]})})};vp.displayName=qn;var yp="SelectTrigger",wp=m.forwardRef((n,o)=>{const{__scopeSelect:i,disabled:l=!1,...a}=n,u=Mi(i),f=xn(yp,i),p=f.disabled||l,h=Pe(o,f.onTriggerChange),v=Ii(i),w=m.useRef("touch"),[x,b,C]=Up(k=>{const S=v().filter(T=>!T.disabled),N=S.find(T=>T.value===f.value),R=Hp(S,k,N);R!==void 0&&f.onValueChange(R.value)}),_=k=>{p||(f.onOpenChange(!0),C()),k&&(f.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})};return g.jsx(Rf,{asChild:!0,...u,children:g.jsx(pe.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":$p(f.value)?"":void 0,...a,ref:h,onClick:we(a.onClick,k=>{k.currentTarget.focus(),w.current!=="mouse"&&_(k)}),onPointerDown:we(a.onPointerDown,k=>{w.current=k.pointerType;const S=k.target;S.hasPointerCapture(k.pointerId)&&S.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(_(k),k.preventDefault())}),onKeyDown:we(a.onKeyDown,k=>{const S=x.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&b(k.key),!(S&&k.key===" ")&&K1.includes(k.key)&&(_(),k.preventDefault())})})})});wp.displayName=yp;var xp="SelectValue",bp=m.forwardRef((n,o)=>{const{__scopeSelect:i,className:l,style:a,children:u,placeholder:f="",...p}=n,h=xn(xp,i),{onValueNodeHasChildrenChange:v}=h,w=u!==void 0,x=Pe(o,h.onValueNodeChange);return He(()=>{v(w)},[v,w]),g.jsx(pe.span,{...p,ref:x,style:{pointerEvents:"none"},children:$p(h.value)?g.jsx(g.Fragment,{children:f}):u})});bp.displayName=xp;var J1="SelectIcon",kp=m.forwardRef((n,o)=>{const{__scopeSelect:i,children:l,...a}=n;return g.jsx(pe.span,{"aria-hidden":!0,...a,ref:o,children:l||"▼"})});kp.displayName=J1;var eb="SelectPortal",Sp=n=>g.jsx(pl,{asChild:!0,...n});Sp.displayName=eb;var Zn="SelectContent",Cp=m.forwardRef((n,o)=>{const i=xn(Zn,n.__scopeSelect),[l,a]=m.useState();if(He(()=>{a(new DocumentFragment)},[]),!i.open){const u=l;return u?Jr.createPortal(g.jsx(Ep,{scope:n.__scopeSelect,children:g.jsx(Ai.Slot,{scope:n.__scopeSelect,children:g.jsx("div",{children:n.children})})}),u):null}return g.jsx(_p,{...n,ref:o})});Cp.displayName=Zn;var At=10,[Ep,bn]=kr(Zn),tb="SelectContentImpl",nb=eo("SelectContent.RemoveScroll"),_p=m.forwardRef((n,o)=>{const{__scopeSelect:i,position:l="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:u,onPointerDownOutside:f,side:p,sideOffset:h,align:v,alignOffset:w,arrowPadding:x,collisionBoundary:b,collisionPadding:C,sticky:_,hideWhenDetached:k,avoidCollisions:S,...N}=n,R=xn(Zn,i),[T,I]=m.useState(null),[U,$]=m.useState(null),O=Pe(o,Q=>I(Q)),[D,Y]=m.useState(null),[te,ne]=m.useState(null),se=Ii(i),[ge,xe]=m.useState(!1),Se=m.useRef(!1);m.useEffect(()=>{if(T)return Nw(T)},[T]),U0();const Z=m.useCallback(Q=>{const[ue,...ae]=se().map(Re=>Re.ref.current),[Ce]=ae.slice(-1),Ne=document.activeElement;for(const Re of Q)if(Re===Ne||(Re==null||Re.scrollIntoView({block:"nearest"}),Re===ue&&U&&(U.scrollTop=0),Re===Ce&&U&&(U.scrollTop=U.scrollHeight),Re==null||Re.focus(),document.activeElement!==Ne))return},[se,U]),le=m.useCallback(()=>Z([D,T]),[Z,D,T]);m.useEffect(()=>{ge&&le()},[ge,le]);const{onOpenChange:H,triggerPointerDownPosRef:X}=R;m.useEffect(()=>{if(T){let Q={x:0,y:0};const ue=Ce=>{var Ne,Re;Q={x:Math.abs(Math.round(Ce.pageX)-(((Ne=X.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(Ce.pageY)-(((Re=X.current)==null?void 0:Re.y)??0))}},ae=Ce=>{Q.x<=10&&Q.y<=10?Ce.preventDefault():T.contains(Ce.target)||H(!1),document.removeEventListener("pointermove",ue),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",ae,{capture:!0})}}},[T,H,X]),m.useEffect(()=>{const Q=()=>H(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[H]);const[F,A]=Up(Q=>{const ue=se().filter(Ne=>!Ne.disabled),ae=ue.find(Ne=>Ne.ref.current===document.activeElement),Ce=Hp(ue,Q,ae);Ce&&setTimeout(()=>Ce.ref.current.focus())}),B=m.useCallback((Q,ue,ae)=>{const Ce=!Se.current&&!ae;(R.value!==void 0&&R.value===ue||Ce)&&(Y(Q),Ce&&(Se.current=!0))},[R.value]),be=m.useCallback(()=>T==null?void 0:T.focus(),[T]),ye=m.useCallback((Q,ue,ae)=>{const Ce=!Se.current&&!ae;(R.value!==void 0&&R.value===ue||Ce)&&ne(Q)},[R.value]),fe=l==="popper"?Kl:Np,de=fe===Kl?{side:p,sideOffset:h,align:v,alignOffset:w,arrowPadding:x,collisionBoundary:b,collisionPadding:C,sticky:_,hideWhenDetached:k,avoidCollisions:S}:{};return g.jsx(Ep,{scope:i,content:T,viewport:U,onViewportChange:$,itemRefCallback:B,selectedItem:D,onItemLeave:be,itemTextRefCallback:ye,focusSelectedItem:le,selectedItemText:te,position:l,isPositioned:ge,searchRef:F,children:g.jsx(Pd,{as:nb,allowPinchZoom:!0,children:g.jsx(dd,{asChild:!0,trapped:R.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:we(a,Q=>{var ue;(ue=R.trigger)==null||ue.focus({preventScroll:!0}),Q.preventDefault()}),children:g.jsx(ul,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:g.jsx(fe,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:Q=>Q.preventDefault(),...N,...de,onPlaced:()=>xe(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:we(N.onKeyDown,Q=>{const ue=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!ue&&Q.key.length===1&&A(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let Ce=se().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,Re=Ce.indexOf(Ne);Ce=Ce.slice(Re+1)}setTimeout(()=>Z(Ce)),Q.preventDefault()}})})})})})})});_p.displayName=tb;var rb="SelectItemAlignedPosition",Np=m.forwardRef((n,o)=>{const{__scopeSelect:i,onPlaced:l,...a}=n,u=xn(Zn,i),f=bn(Zn,i),[p,h]=m.useState(null),[v,w]=m.useState(null),x=Pe(o,O=>w(O)),b=Ii(i),C=m.useRef(!1),_=m.useRef(!0),{viewport:k,selectedItem:S,selectedItemText:N,focusSelectedItem:R}=f,T=m.useCallback(()=>{if(u.trigger&&u.valueNode&&p&&v&&k&&S&&N){const O=u.trigger.getBoundingClientRect(),D=v.getBoundingClientRect(),Y=u.valueNode.getBoundingClientRect(),te=N.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=te.left-D.left,Re=Y.left-Ne,$e=O.left-Re,Ke=O.width+$e,kn=Math.max(Ke,D.width),Sn=window.innerWidth-At,nn=$l(Re,[At,Math.max(At,Sn-kn)]);p.style.minWidth=Ke+"px",p.style.left=nn+"px"}else{const Ne=D.right-te.right,Re=window.innerWidth-Y.right-Ne,$e=window.innerWidth-O.right-Re,Ke=O.width+$e,kn=Math.max(Ke,D.width),Sn=window.innerWidth-At,nn=$l(Re,[At,Math.max(At,Sn-kn)]);p.style.minWidth=Ke+"px",p.style.right=nn+"px"}const ne=b(),se=window.innerHeight-At*2,ge=k.scrollHeight,xe=window.getComputedStyle(v),Se=parseInt(xe.borderTopWidth,10),Z=parseInt(xe.paddingTop,10),le=parseInt(xe.borderBottomWidth,10),H=parseInt(xe.paddingBottom,10),X=Se+Z+ge+H+le,F=Math.min(S.offsetHeight*5,X),A=window.getComputedStyle(k),B=parseInt(A.paddingTop,10),be=parseInt(A.paddingBottom,10),ye=O.top+O.height/2-At,fe=se-ye,de=S.offsetHeight/2,Q=S.offsetTop+de,ue=Se+Z+Q,ae=X-ue;if(ue<=ye){const Ne=ne.length>0&&S===ne[ne.length-1].ref.current;p.style.bottom="0px";const Re=v.clientHeight-k.offsetTop-k.offsetHeight,$e=Math.max(fe,de+(Ne?be:0)+Re+le),Ke=ue+$e;p.style.height=Ke+"px"}else{const Ne=ne.length>0&&S===ne[0].ref.current;p.style.top="0px";const $e=Math.max(ye,Se+k.offsetTop+(Ne?B:0)+de)+ae;p.style.height=$e+"px",k.scrollTop=ue-ye+k.offsetTop}p.style.margin=`${At}px 0`,p.style.minHeight=F+"px",p.style.maxHeight=se+"px",l==null||l(),requestAnimationFrame(()=>C.current=!0)}},[b,u.trigger,u.valueNode,p,v,k,S,N,u.dir,l]);He(()=>T(),[T]);const[I,U]=m.useState();He(()=>{v&&U(window.getComputedStyle(v).zIndex)},[v]);const $=m.useCallback(O=>{O&&_.current===!0&&(T(),R==null||R(),_.current=!1)},[T,R]);return g.jsx(ib,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:C,onScrollButtonChange:$,children:g.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:I},children:g.jsx(pe.div,{...a,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Np.displayName=rb;var ob="SelectPopperPosition",Kl=m.forwardRef((n,o)=>{const{__scopeSelect:i,align:l="start",collisionPadding:a=At,...u}=n,f=Mi(i);return g.jsx(Pf,{...f,...u,ref:o,align:l,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)"}})});Kl.displayName=ob;var[ib,Yl]=kr(Zn,{}),Xl="SelectViewport",Rp=m.forwardRef((n,o)=>{const{__scopeSelect:i,nonce:l,...a}=n,u=bn(Xl,i),f=Yl(Xl,i),p=Pe(o,u.onViewportChange),h=m.useRef(0);return g.jsxs(g.Fragment,{children:[g.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:l}),g.jsx(Ai.Slot,{scope:i,children:g.jsx(pe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:we(a.onScroll,v=>{const w=v.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:b}=f;if(b!=null&&b.current&&x){const C=Math.abs(h.current-w.scrollTop);if(C>0){const _=window.innerHeight-At*2,k=parseFloat(x.style.minHeight),S=parseFloat(x.style.height),N=Math.max(k,S);if(N<_){const R=N+C,T=Math.min(_,R),I=R-T;x.style.height=T+"px",x.style.bottom==="0px"&&(w.scrollTop=I>0?I:0,x.style.justifyContent="flex-end")}}}h.current=w.scrollTop})})})]})});Rp.displayName=Xl;var Pp="SelectGroup",[sb,lb]=kr(Pp),ab=m.forwardRef((n,o)=>{const{__scopeSelect:i,...l}=n,a=Yn();return g.jsx(sb,{scope:i,id:a,children:g.jsx(pe.div,{role:"group","aria-labelledby":a,...l,ref:o})})});ab.displayName=Pp;var Tp="SelectLabel",cb=m.forwardRef((n,o)=>{const{__scopeSelect:i,...l}=n,a=lb(Tp,i);return g.jsx(pe.div,{id:a.id,...l,ref:o})});cb.displayName=Tp;var zi="SelectItem",[ub,jp]=kr(zi),Ap=m.forwardRef((n,o)=>{const{__scopeSelect:i,value:l,disabled:a=!1,textValue:u,...f}=n,p=xn(zi,i),h=bn(zi,i),v=p.value===l,[w,x]=m.useState(u??""),[b,C]=m.useState(!1),_=Pe(o,R=>{var T;return(T=h.itemRefCallback)==null?void 0:T.call(h,R,l,a)}),k=Yn(),S=m.useRef("touch"),N=()=>{a||(p.onValueChange(l),p.onOpenChange(!1))};if(l==="")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 g.jsx(ub,{scope:i,value:l,disabled:a,textId:k,isSelected:v,onItemTextChange:m.useCallback(R=>{x(T=>T||((R==null?void 0:R.textContent)??"").trim())},[]),children:g.jsx(Ai.ItemSlot,{scope:i,value:l,disabled:a,textValue:w,children:g.jsx(pe.div,{role:"option","aria-labelledby":k,"data-highlighted":b?"":void 0,"aria-selected":v&&b,"data-state":v?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...f,ref:_,onFocus:we(f.onFocus,()=>C(!0)),onBlur:we(f.onBlur,()=>C(!1)),onClick:we(f.onClick,()=>{S.current!=="mouse"&&N()}),onPointerUp:we(f.onPointerUp,()=>{S.current==="mouse"&&N()}),onPointerDown:we(f.onPointerDown,R=>{S.current=R.pointerType}),onPointerMove:we(f.onPointerMove,R=>{var T;S.current=R.pointerType,a?(T=h.onItemLeave)==null||T.call(h):S.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:we(f.onPointerLeave,R=>{var T;R.currentTarget===document.activeElement&&((T=h.onItemLeave)==null||T.call(h))}),onKeyDown:we(f.onKeyDown,R=>{var I;((I=h.searchRef)==null?void 0:I.current)!==""&&R.key===" "||(Y1.includes(R.key)&&N(),R.key===" "&&R.preventDefault())})})})})});Ap.displayName=zi;var io="SelectItemText",Ip=m.forwardRef((n,o)=>{const{__scopeSelect:i,className:l,style:a,...u}=n,f=xn(io,i),p=bn(io,i),h=jp(io,i),v=Z1(io,i),[w,x]=m.useState(null),b=Pe(o,N=>x(N),h.onItemTextChange,N=>{var R;return(R=p.itemTextRefCallback)==null?void 0:R.call(p,N,h.value,h.disabled)}),C=w==null?void 0:w.textContent,_=m.useMemo(()=>g.jsx("option",{value:h.value,disabled:h.disabled,children:C},h.value),[h.disabled,h.value,C]),{onNativeOptionAdd:k,onNativeOptionRemove:S}=v;return He(()=>(k(_),()=>S(_)),[k,S,_]),g.jsxs(g.Fragment,{children:[g.jsx(pe.span,{id:h.textId,...u,ref:b}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Jr.createPortal(u.children,f.valueNode):null]})});Ip.displayName=io;var Mp="SelectItemIndicator",zp=m.forwardRef((n,o)=>{const{__scopeSelect:i,...l}=n;return jp(Mp,i).isSelected?g.jsx(pe.span,{"aria-hidden":!0,...l,ref:o}):null});zp.displayName=Mp;var Ql="SelectScrollUpButton",Lp=m.forwardRef((n,o)=>{const i=bn(Ql,n.__scopeSelect),l=Yl(Ql,n.__scopeSelect),[a,u]=m.useState(!1),f=Pe(o,l.onScrollButtonChange);return He(()=>{if(i.viewport&&i.isPositioned){let p=function(){const v=h.scrollTop>0;u(v)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),a?g.jsx(Dp,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop-h.offsetHeight)}}):null});Lp.displayName=Ql;var ql="SelectScrollDownButton",Op=m.forwardRef((n,o)=>{const i=bn(ql,n.__scopeSelect),l=Yl(ql,n.__scopeSelect),[a,u]=m.useState(!1),f=Pe(o,l.onScrollButtonChange);return He(()=>{if(i.viewport&&i.isPositioned){let p=function(){const v=h.scrollHeight-h.clientHeight,w=Math.ceil(h.scrollTop)<v;u(w)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),a?g.jsx(Dp,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop+h.offsetHeight)}}):null});Op.displayName=ql;var Dp=m.forwardRef((n,o)=>{const{__scopeSelect:i,onAutoScroll:l,...a}=n,u=bn("SelectScrollButton",i),f=m.useRef(null),p=Ii(i),h=m.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return m.useEffect(()=>()=>h(),[h]),He(()=>{var w;const v=p().find(x=>x.ref.current===document.activeElement);(w=v==null?void 0:v.ref.current)==null||w.scrollIntoView({block:"nearest"})},[p]),g.jsx(pe.div,{"aria-hidden":!0,...a,ref:o,style:{flexShrink:0,...a.style},onPointerDown:we(a.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(l,50))}),onPointerMove:we(a.onPointerMove,()=>{var v;(v=u.onItemLeave)==null||v.call(u),f.current===null&&(f.current=window.setInterval(l,50))}),onPointerLeave:we(a.onPointerLeave,()=>{h()})})}),db="SelectSeparator",fb=m.forwardRef((n,o)=>{const{__scopeSelect:i,...l}=n;return g.jsx(pe.div,{"aria-hidden":!0,...l,ref:o})});fb.displayName=db;var Zl="SelectArrow",pb=m.forwardRef((n,o)=>{const{__scopeSelect:i,...l}=n,a=Mi(i),u=xn(Zl,i),f=bn(Zl,i);return u.open&&f.position==="popper"?g.jsx(Tf,{...a,...l,ref:o}):null});pb.displayName=Zl;var hb="SelectBubbleInput",Fp=m.forwardRef(({__scopeSelect:n,value:o,...i},l)=>{const a=m.useRef(null),u=Pe(l,a),f=di(o);return m.useEffect(()=>{const p=a.current;if(!p)return;const h=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(h,"value").set;if(f!==o&&w){const x=new Event("change",{bubbles:!0});w.call(p,o),p.dispatchEvent(x)}},[f,o]),g.jsx(pe.select,{...i,style:{...Ju,...i.style},ref:u,defaultValue:o})});Fp.displayName=hb;function $p(n){return n===""||n===void 0}function Up(n){const o=tt(n),i=m.useRef(""),l=m.useRef(0),a=m.useCallback(f=>{const p=i.current+f;o(p),(function h(v){i.current=v,window.clearTimeout(l.current),v!==""&&(l.current=window.setTimeout(()=>h(""),1e3))})(p)},[o]),u=m.useCallback(()=>{i.current="",window.clearTimeout(l.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(l.current),[]),[i,a,u]}function Hp(n,o,i){const a=o.length>1&&Array.from(o).every(v=>v===o[0])?o[0]:o,u=i?n.indexOf(i):-1;let f=mb(n,Math.max(u,0));a.length===1&&(f=f.filter(v=>v!==i));const h=f.find(v=>v.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==i?h:void 0}function mb(n,o){return n.map((i,l)=>n[(o+l)%n.length])}var gb=vp,vb=wp,yb=bp,wb=kp,xb=Sp,bb=Cp,kb=Rp,Sb=Ap,Cb=Ip,Eb=zp,_b=Lp,Nb=Op,Rb="Separator",Bp="horizontal",Pb=["horizontal","vertical"],Wp=m.forwardRef((n,o)=>{const{decorative:i,orientation:l=Bp,...a}=n,u=Tb(l)?l:Bp,p=i?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return g.jsx(pe.div,{"data-orientation":u,...p,...a,ref:o})});Wp.displayName=Rb;function Tb(n){return Pb.includes(n)}var jb=Wp,Li="Switch",[Ab]=ct(Li),[Ib,Mb]=Ab(Li),Vp=m.forwardRef((n,o)=>{const{__scopeSwitch:i,name:l,checked:a,defaultChecked:u,required:f,disabled:p,value:h="on",onCheckedChange:v,form:w,...x}=n,[b,C]=m.useState(null),_=Pe(o,T=>C(T)),k=m.useRef(!1),S=b?w||!!b.closest("form"):!0,[N,R]=Zt({prop:a,defaultProp:u??!1,onChange:v,caller:Li});return g.jsxs(Ib,{scope:i,checked:N,disabled:p,children:[g.jsx(pe.button,{type:"button",role:"switch","aria-checked":N,"aria-required":f,"data-state":Xp(N),"data-disabled":p?"":void 0,disabled:p,value:h,...x,ref:_,onClick:we(n.onClick,T=>{R(I=>!I),S&&(k.current=T.isPropagationStopped(),k.current||T.stopPropagation())})}),S&&g.jsx(Yp,{control:b,bubbles:!k.current,name:l,value:h,checked:N,required:f,disabled:p,form:w,style:{transform:"translateX(-100%)"}})]})});Vp.displayName=Li;var Gp="SwitchThumb",Kp=m.forwardRef((n,o)=>{const{__scopeSwitch:i,...l}=n,a=Mb(Gp,i);return g.jsx(pe.span,{"data-state":Xp(a.checked),"data-disabled":a.disabled?"":void 0,...l,ref:o})});Kp.displayName=Gp;var zb="SwitchBubbleInput",Yp=m.forwardRef(({__scopeSwitch:n,control:o,checked:i,bubbles:l=!0,...a},u)=>{const f=m.useRef(null),p=Pe(f,u),h=di(i),v=fi(o);return m.useEffect(()=>{const w=f.current;if(!w)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set;if(h!==i&&C){const _=new Event("click",{bubbles:l});C.call(w,i),w.dispatchEvent(_)}},[h,i,l]),g.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...a,tabIndex:-1,ref:p,style:{...a.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Yp.displayName=zb;function Xp(n){return n?"checked":"unchecked"}var Lb=Vp,Ob=Kp,Oi="Tabs",[Db]=ct(Oi,[Ei]),Qp=Ei(),[Fb,Jl]=Db(Oi),qp=m.forwardRef((n,o)=>{const{__scopeTabs:i,value:l,onValueChange:a,defaultValue:u,orientation:f="horizontal",dir:p,activationMode:h="automatic",...v}=n,w=to(p),[x,b]=Zt({prop:l,onChange:a,defaultProp:u??"",caller:Oi});return g.jsx(Fb,{scope:i,baseId:Yn(),value:x,onValueChange:b,orientation:f,dir:w,activationMode:h,children:g.jsx(pe.div,{dir:w,"data-orientation":f,...v,ref:o})})});qp.displayName=Oi;var Zp="TabsList",Jp=m.forwardRef((n,o)=>{const{__scopeTabs:i,loop:l=!0,...a}=n,u=Jl(Zp,i),f=Qp(i);return g.jsx(Lf,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:l,children:g.jsx(pe.div,{role:"tablist","aria-orientation":u.orientation,...a,ref:o})})});Jp.displayName=Zp;var eh="TabsTrigger",th=m.forwardRef((n,o)=>{const{__scopeTabs:i,value:l,disabled:a=!1,...u}=n,f=Jl(eh,i),p=Qp(i),h=oh(f.baseId,l),v=ih(f.baseId,l),w=l===f.value;return g.jsx(Of,{asChild:!0,...p,focusable:!a,active:w,children:g.jsx(pe.button,{type:"button",role:"tab","aria-selected":w,"aria-controls":v,"data-state":w?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:h,...u,ref:o,onMouseDown:we(n.onMouseDown,x=>{!a&&x.button===0&&x.ctrlKey===!1?f.onValueChange(l):x.preventDefault()}),onKeyDown:we(n.onKeyDown,x=>{[" ","Enter"].includes(x.key)&&f.onValueChange(l)}),onFocus:we(n.onFocus,()=>{const x=f.activationMode!=="manual";!w&&!a&&x&&f.onValueChange(l)})})})});th.displayName=eh;var nh="TabsContent",rh=m.forwardRef((n,o)=>{const{__scopeTabs:i,value:l,forceMount:a,children:u,...f}=n,p=Jl(nh,i),h=oh(p.baseId,l),v=ih(p.baseId,l),w=l===p.value,x=m.useRef(w);return m.useEffect(()=>{const b=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(b)},[]),g.jsx(Pt,{present:a||w,children:({present:b})=>g.jsx(pe.div,{"data-state":w?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":h,hidden:!b,id:v,tabIndex:0,...f,ref:o,style:{...n.style,animationDuration:x.current?"0s":void 0},children:b&&u})})});rh.displayName=nh;function oh(n,o){return`${n}-trigger-${o}`}function ih(n,o){return`${n}-content-${o}`}var $b=qp,Ub=Jp,Hb=th,Bb=rh,[Di]=ct("Tooltip",[Ci]),Fi=Ci(),sh="TooltipProvider",Wb=700,ea="tooltip.open",[Vb,ta]=Di(sh),lh=n=>{const{__scopeTooltip:o,delayDuration:i=Wb,skipDelayDuration:l=300,disableHoverableContent:a=!1,children:u}=n,f=m.useRef(!0),p=m.useRef(!1),h=m.useRef(0);return m.useEffect(()=>{const v=h.current;return()=>window.clearTimeout(v)},[]),g.jsx(Vb,{scope:o,isOpenDelayedRef:f,delayDuration:i,onOpen:m.useCallback(()=>{window.clearTimeout(h.current),f.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>f.current=!0,l)},[l]),isPointerInTransitRef:p,onPointerInTransitChange:m.useCallback(v=>{p.current=v},[]),disableHoverableContent:a,children:u})};lh.displayName=sh;var so="Tooltip",[Gb,lo]=Di(so),ah=n=>{const{__scopeTooltip:o,children:i,open:l,defaultOpen:a,onOpenChange:u,disableHoverableContent:f,delayDuration:p}=n,h=ta(so,n.__scopeTooltip),v=Fi(o),[w,x]=m.useState(null),b=Yn(),C=m.useRef(0),_=f??h.disableHoverableContent,k=p??h.delayDuration,S=m.useRef(!1),[N,R]=Zt({prop:l,defaultProp:a??!1,onChange:O=>{O?(h.onOpen(),document.dispatchEvent(new CustomEvent(ea))):h.onClose(),u==null||u(O)},caller:so}),T=m.useMemo(()=>N?S.current?"delayed-open":"instant-open":"closed",[N]),I=m.useCallback(()=>{window.clearTimeout(C.current),C.current=0,S.current=!1,R(!0)},[R]),U=m.useCallback(()=>{window.clearTimeout(C.current),C.current=0,R(!1)},[R]),$=m.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>{S.current=!0,R(!0),C.current=0},k)},[k,R]);return m.useEffect(()=>()=>{C.current&&(window.clearTimeout(C.current),C.current=0)},[]),g.jsx(Nf,{...v,children:g.jsx(Gb,{scope:o,contentId:b,open:N,stateAttribute:T,trigger:w,onTriggerChange:x,onTriggerEnter:m.useCallback(()=>{h.isOpenDelayedRef.current?$():I()},[h.isOpenDelayedRef,$,I]),onTriggerLeave:m.useCallback(()=>{_?U():(window.clearTimeout(C.current),C.current=0)},[U,_]),onOpen:I,onClose:U,disableHoverableContent:_,children:i})})};ah.displayName=so;var na="TooltipTrigger",ch=m.forwardRef((n,o)=>{const{__scopeTooltip:i,...l}=n,a=lo(na,i),u=ta(na,i),f=Fi(i),p=m.useRef(null),h=Pe(o,p,a.onTriggerChange),v=m.useRef(!1),w=m.useRef(!1),x=m.useCallback(()=>v.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),g.jsx(Rf,{asChild:!0,...f,children:g.jsx(pe.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:h,onPointerMove:we(n.onPointerMove,b=>{b.pointerType!=="touch"&&!w.current&&!u.isPointerInTransitRef.current&&(a.onTriggerEnter(),w.current=!0)}),onPointerLeave:we(n.onPointerLeave,()=>{a.onTriggerLeave(),w.current=!1}),onPointerDown:we(n.onPointerDown,()=>{a.open&&a.onClose(),v.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:we(n.onFocus,()=>{v.current||a.onOpen()}),onBlur:we(n.onBlur,a.onClose),onClick:we(n.onClick,a.onClose)})})});ch.displayName=na;var ra="TooltipPortal",[Kb,Yb]=Di(ra,{forceMount:void 0}),uh=n=>{const{__scopeTooltip:o,forceMount:i,children:l,container:a}=n,u=lo(ra,o);return g.jsx(Kb,{scope:o,forceMount:i,children:g.jsx(Pt,{present:i||u.open,children:g.jsx(pl,{asChild:!0,container:a,children:l})})})};uh.displayName=ra;var Sr="TooltipContent",dh=m.forwardRef((n,o)=>{const i=Yb(Sr,n.__scopeTooltip),{forceMount:l=i.forceMount,side:a="top",...u}=n,f=lo(Sr,n.__scopeTooltip);return g.jsx(Pt,{present:l||f.open,children:f.disableHoverableContent?g.jsx(fh,{side:a,...u,ref:o}):g.jsx(Xb,{side:a,...u,ref:o})})}),Xb=m.forwardRef((n,o)=>{const i=lo(Sr,n.__scopeTooltip),l=ta(Sr,n.__scopeTooltip),a=m.useRef(null),u=Pe(o,a),[f,p]=m.useState(null),{trigger:h,onClose:v}=i,w=a.current,{onPointerInTransitChange:x}=l,b=m.useCallback(()=>{p(null),x(!1)},[x]),C=m.useCallback((_,k)=>{const S=_.currentTarget,N={x:_.clientX,y:_.clientY},R=Jb(N,S.getBoundingClientRect()),T=ek(N,R),I=tk(k.getBoundingClientRect()),U=rk([...T,...I]);p(U),x(!0)},[x]);return m.useEffect(()=>()=>b(),[b]),m.useEffect(()=>{if(h&&w){const _=S=>C(S,w),k=S=>C(S,h);return h.addEventListener("pointerleave",_),w.addEventListener("pointerleave",k),()=>{h.removeEventListener("pointerleave",_),w.removeEventListener("pointerleave",k)}}},[h,w,C,b]),m.useEffect(()=>{if(f){const _=k=>{const S=k.target,N={x:k.clientX,y:k.clientY},R=(h==null?void 0:h.contains(S))||(w==null?void 0:w.contains(S)),T=!nk(N,f);R?b():T&&(b(),v())};return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}},[h,w,f,v,b]),g.jsx(fh,{...n,ref:u})}),[Qb,qb]=Di(so,{isInside:!1}),Zb=r0("TooltipContent"),fh=m.forwardRef((n,o)=>{const{__scopeTooltip:i,children:l,"aria-label":a,onEscapeKeyDown:u,onPointerDownOutside:f,...p}=n,h=lo(Sr,i),v=Fi(i),{onClose:w}=h;return m.useEffect(()=>(document.addEventListener(ea,w),()=>document.removeEventListener(ea,w)),[w]),m.useEffect(()=>{if(h.trigger){const x=b=>{const C=b.target;C!=null&&C.contains(h.trigger)&&w()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[h.trigger,w]),g.jsx(ul,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:x=>x.preventDefault(),onDismiss:w,children:g.jsxs(Pf,{"data-state":h.stateAttribute,...v,...p,ref:o,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(Zb,{children:l}),g.jsx(Qb,{scope:i,isInside:!0,children:g.jsx(u0,{id:h.contentId,role:"tooltip",children:a||l})})]})})});dh.displayName=Sr;var ph="TooltipArrow",hh=m.forwardRef((n,o)=>{const{__scopeTooltip:i,...l}=n,a=Fi(i);return qb(ph,i).isInside?null:g.jsx(Tf,{...a,...l,ref:o})});hh.displayName=ph;function Jb(n,o){const i=Math.abs(o.top-n.y),l=Math.abs(o.bottom-n.y),a=Math.abs(o.right-n.x),u=Math.abs(o.left-n.x);switch(Math.min(i,l,a,u)){case u:return"left";case a:return"right";case i:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function ek(n,o,i=5){const l=[];switch(o){case"top":l.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":l.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":l.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":l.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return l}function tk(n){const{top:o,right:i,bottom:l,left:a}=n;return[{x:a,y:o},{x:i,y:o},{x:i,y:l},{x:a,y:l}]}function nk(n,o){const{x:i,y:l}=n;let a=!1;for(let u=0,f=o.length-1;u<o.length;f=u++){const p=o[u],h=o[f],v=p.x,w=p.y,x=h.x,b=h.y;w>l!=b>l&&i<(x-v)*(l-w)/(b-w)+v&&(a=!a)}return a}function rk(n){const o=n.slice();return o.sort((i,l)=>i.x<l.x?-1:i.x>l.x?1:i.y<l.y?-1:i.y>l.y?1:0),ok(o)}function ok(n){if(n.length<=1)return n.slice();const o=[];for(let l=0;l<n.length;l++){const a=n[l];for(;o.length>=2;){const u=o[o.length-1],f=o[o.length-2];if((u.x-f.x)*(a.y-f.y)>=(u.y-f.y)*(a.x-f.x))o.pop();else break}o.push(a)}o.pop();const i=[];for(let l=n.length-1;l>=0;l--){const a=n[l];for(;i.length>=2;){const u=i[i.length-1],f=i[i.length-2];if((u.x-f.x)*(a.y-f.y)>=(u.y-f.y)*(a.x-f.x))i.pop();else break}i.push(a)}return i.pop(),o.length===1&&i.length===1&&o[0].x===i[0].x&&o[0].y===i[0].y?o:o.concat(i)}var ik=lh,sk=ah,lk=ch,ak=uh,ck=dh,uk=hh;const dk=ti("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function mh({className:n,variant:o="default",size:i="default",asChild:l=!1,...a}){const u=l?qu:"button";return g.jsx(u,{"data-slot":"button","data-variant":o,"data-size":i,className:ve(dk({variant:o,size:i,className:n})),...a})}const fk=ti("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function pk({className:n,variant:o="default",asChild:i=!1,...l}){const a=i?qu:"span";return g.jsx(a,{"data-slot":"badge","data-variant":o,className:ve(fk({variant:o}),n),...l})}function hk({className:n,type:o,...i}){return g.jsx("input",{type:o,"data-slot":"input",className:ve("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",n),...i})}function mk({className:n,...o}){return g.jsx("textarea",{"data-slot":"textarea",className:ve("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",n),...o})}function gk({...n}){return g.jsx(gb,{"data-slot":"select",...n})}function vk({...n}){return g.jsx(yb,{"data-slot":"select-value",...n})}function yk({className:n,size:o="default",children:i,...l}){return g.jsxs(vb,{"data-slot":"select-trigger","data-size":o,className:ve("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",n),...l,children:[i,g.jsx(wb,{asChild:!0,children:g.jsx(wu,{className:"size-4 opacity-50"})})]})}function wk({className:n,children:o,position:i="item-aligned",align:l="center",...a}){return g.jsx(xb,{children:g.jsxs(bb,{"data-slot":"select-content",className:ve("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",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,align:l,...a,children:[g.jsx(bk,{}),g.jsx(kb,{className:ve("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o}),g.jsx(kk,{})]})})}function xk({className:n,children:o,...i}){return g.jsxs(Sb,{"data-slot":"select-item",className:ve("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),...i,children:[g.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:g.jsx(Eb,{children:g.jsx(yu,{className:"size-4"})})}),g.jsx(Cb,{children:o})]})}function bk({className:n,...o}){return g.jsx(_b,{"data-slot":"select-scroll-up-button",className:ve("flex cursor-default items-center justify-center py-1",n),...o,children:g.jsx(Qv,{className:"size-4"})})}function kk({className:n,...o}){return g.jsx(Nb,{"data-slot":"select-scroll-down-button",className:ve("flex cursor-default items-center justify-center py-1",n),...o,children:g.jsx(wu,{className:"size-4"})})}function Sk({className:n,...o}){return g.jsx(Hd,{"data-slot":"checkbox",className:ve("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",n),...o,children:g.jsx(Wd,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:g.jsx(yu,{className:"size-3.5"})})})}function Ck({className:n,size:o="default",...i}){return g.jsx(Lb,{"data-slot":"switch","data-size":o,className:ve("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",n),...i,children:g.jsx(Ob,{"data-slot":"switch-thumb",className:ve("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})})}function Ek({className:n,...o}){return g.jsx(f1,{"data-slot":"label",className:ve("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),...o})}function _k({className:n,...o}){return g.jsx(T1,{"data-slot":"radio-group",className:ve("grid gap-3",n),...o})}function Nk({className:n,...o}){return g.jsx(j1,{"data-slot":"radio-group-item",className:ve("aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",n),...o,children:g.jsx(A1,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:g.jsx(ey,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"})})})}function Rk({className:n,orientation:o="horizontal",decorative:i=!0,...l}){return g.jsx(jb,{"data-slot":"separator",decorative:i,orientation:o,className:ve("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",n),...l})}function Pk({className:n,orientation:o="horizontal",...i}){return g.jsx($b,{"data-slot":"tabs","data-orientation":o,orientation:o,className:ve("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",n),...i})}const Tk=ti("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function jk({className:n,variant:o="default",...i}){return g.jsx(Ub,{"data-slot":"tabs-list","data-variant":o,className:ve(Tk({variant:o}),n),...i})}function Ak({className:n,...o}){return g.jsx(Hb,{"data-slot":"tabs-trigger",className:ve("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",n),...o})}function Ik({className:n,...o}){return g.jsx(Bb,{"data-slot":"tabs-content",className:ve("flex-1 outline-none",n),...o})}function Mk({className:n,children:o,...i}){return g.jsxs(W1,{"data-slot":"scroll-area",className:ve("relative",n),...i,children:[g.jsx(V1,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:o}),g.jsx(zk,{}),g.jsx(G1,{})]})}function zk({className:n,orientation:o="vertical",...i}){return g.jsx(lp,{"data-slot":"scroll-area-scrollbar",orientation:o,className:ve("flex touch-none p-px transition-colors select-none",o==="vertical"&&"h-full w-2.5 border-l border-l-transparent",o==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...i,children:g.jsx(dp,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function oa({className:n,size:o="default",...i}){return g.jsx(Lw,{"data-slot":"avatar","data-size":o,className:ve("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",n),...i})}function ia({className:n,...o}){return g.jsx(Ow,{"data-slot":"avatar-image",className:ve("aspect-square size-full",n),...o})}function sa({className:n,...o}){return g.jsx(Dw,{"data-slot":"avatar-fallback",className:ve("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",n),...o})}function Lk({className:n,...o}){return g.jsx("div",{"data-slot":"skeleton",className:ve("animate-pulse rounded-md bg-accent",n),...o})}function Ok({delayDuration:n=0,...o}){return g.jsx(ik,{"data-slot":"tooltip-provider",delayDuration:n,...o})}function Dk({...n}){return g.jsx(sk,{"data-slot":"tooltip",...n})}function Fk({...n}){return g.jsx(lk,{"data-slot":"tooltip-trigger",...n})}function $k({className:n,sideOffset:o=0,children:i,...l}){return g.jsx(ak,{children:g.jsxs(ck,{"data-slot":"tooltip-content",sideOffset:o,className:ve("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",n),...l,children:[i,g.jsx(uk,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function Uk({className:n,value:o,...i}){return g.jsx(w1,{"data-slot":"progress",className:ve("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",n),...i,children:g.jsx(x1,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(o||0)}%)`}})})}const Hk=ti("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function Bk({className:n,variant:o,...i}){return g.jsx("div",{"data-slot":"alert",role:"alert",className:ve(Hk({variant:o}),n),...i})}function Wk({className:n,...o}){return g.jsx("div",{"data-slot":"alert-title",className:ve("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",n),...o})}function Vk({className:n,...o}){return g.jsx("div",{"data-slot":"alert-description",className:ve("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",n),...o})}function Gk({...n}){return g.jsx(S0,{"data-slot":"collapsible",...n})}function Kk({...n}){return g.jsx(od,{"data-slot":"collapsible-trigger",...n})}function Yk({...n}){return g.jsx(id,{"data-slot":"collapsible-content",...n})}const gh={"arrow-left":Gv,calendar:Yv,"check-circle-2":qv,"chevron-left":Xv,"chevron-right":xu,clock:ty,"credit-card":ny,"external-link":ry,"help-circle":Zv,info:el,"loader-2":ku,mail:tl,"map-pin":oy,"message-circle":iy,"message-square":Su,package:sy,phone:ly,search:ay,"shopping-bag":cy,sparkles:uy,truck:dy,user:Cu,"x-circle":Jv,"alert-circle":bu,"book-open":Kv},vh={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},yh=n=>typeof n=="number"?vh[String(n)]??"gap-2":typeof n=="string"?vh[n.trim()]??"gap-2":"gap-2",Xk=({children:n,className:o,onClick:i})=>g.jsx(qr,{className:o,onClick:i,children:n}),Qk=({children:n,className:o})=>g.jsx(Zr,{className:o,children:n}),qk=({children:n,className:o})=>g.jsx(e0,{className:o,children:n}),Zk=({children:n,className:o,onClick:i,variant:l,size:a,disabled:u,title:f})=>g.jsx(mh,{className:o,variant:l,size:a,onClick:i,disabled:u,title:f,children:n}),Jk=({children:n,className:o,variant:i})=>g.jsx(pk,{className:o,variant:i,children:n}),eS=({className:n,onChange:o,...i})=>g.jsx(hk,{className:n,onChange:o,...i}),tS=({className:n,onChange:o,...i})=>g.jsx(mk,{className:n,onChange:o,...i}),nS=({children:n,className:o,value:i,defaultValue:l,onChange:a,placeholder:u,disabled:f})=>g.jsxs(gk,{value:i,defaultValue:l,onValueChange:p=>{const h=a;h==null||h({target:{value:p}})},disabled:f,children:[g.jsx(yk,{className:o,children:g.jsx(vk,{placeholder:u})}),g.jsx(wk,{children:n})]}),rS=({children:n,value:o,disabled:i,className:l})=>g.jsx(xk,{value:o,disabled:i,className:l,children:n}),oS=({checked:n,onChange:o,disabled:i,className:l,id:a})=>g.jsx(Sk,{checked:n==="true"||n===!0,onCheckedChange:u=>{const f=o;f==null||f({target:{value:String(u)}})},disabled:i,className:l,id:a}),iS=({checked:n,onChange:o,disabled:i,size:l,className:a,id:u})=>g.jsx(Ck,{checked:n==="true"||n===!0,onCheckedChange:f=>{const p=o;p==null||p({target:{value:String(f)}})},disabled:i,size:l,className:a,id:u}),sS=({children:n,htmlFor:o,className:i})=>g.jsx(Ek,{htmlFor:o,className:i,children:n}),lS=({children:n,value:o,defaultValue:i,onChange:l,className:a})=>g.jsx(_k,{value:o,defaultValue:i,onValueChange:u=>{const f=l;f==null||f({target:{value:u}})},className:a,children:n}),aS=({value:n,disabled:o,className:i,id:l})=>g.jsx(Nk,{value:n,disabled:o,className:i,id:l}),cS=({className:n})=>g.jsx(Rk,{className:n}),uS=({children:n,className:o})=>g.jsx(Pk,{className:o,children:n}),dS=({children:n,className:o})=>g.jsx(jk,{className:o,children:n}),fS=({children:n,className:o})=>g.jsx(Ak,{className:o,value:"",children:n}),pS=({children:n,className:o})=>g.jsx(Ik,{className:o,value:"",children:n}),hS=({children:n,className:o})=>g.jsx(Mk,{className:o,children:n}),mS=({src:n,alt:o,className:i})=>{var l;return g.jsxs(oa,{className:i,children:[g.jsx(ia,{src:n,alt:o}),g.jsx(sa,{children:((l=o==null?void 0:o.charAt(0))==null?void 0:l.toUpperCase())||"?"})]})},gS=({width:n,height:o,className:i})=>g.jsx(Lk,{className:i,style:{width:n,height:o}}),vS=({children:n,content:o,className:i})=>g.jsx(Ok,{children:g.jsxs(Dk,{children:[g.jsx(Fk,{asChild:!0,children:g.jsx("span",{className:i,children:n})}),g.jsx($k,{children:g.jsx("p",{children:String(o)})})]})}),yS=({value:n,className:o})=>g.jsx(Uk,{value:typeof n=="string"?Number(n):n,className:o}),wS={default:el,destructive:bu},xS=({children:n,variant:o,title:i,className:l})=>{const a=o,u=wS[a||"default"]||el;return g.jsxs(Bk,{variant:a,className:l,children:[g.jsx(u,{className:"size-4"}),i?g.jsx(Wk,{children:String(i)}):null,n?g.jsx(Vk,{children:n}):null]})},bS=({children:n,defaultOpen:o,className:i})=>g.jsx(Gk,{defaultOpen:o==="true"||o===!0,className:i,children:n}),kS=({children:n,className:o})=>g.jsx(Kk,{className:o,children:n}),SS=({children:n,className:o})=>g.jsx(Yk,{className:o,children:n}),CS=({children:n,className:o})=>g.jsx("p",{className:ve("text-sm",o),children:n}),ES=({children:n,className:o,level:i})=>{const l=`h${i||"2"}`;return g.jsx(l,{className:ve("font-semibold tracking-tight",o),children:n})},_S=({children:n,className:o,direction:i,gap:l})=>{const a=i==="row"?"flex-row":"flex-col",u=yh(l);return g.jsx("div",{className:ve("flex",a,u,o),children:n})},NS=({children:n,className:o,gap:i})=>{const l=yh(i);return g.jsx("div",{className:ve("flex flex-row items-center",l,o),children:n})},RS=({children:n,className:o,href:i,target:l,rel:a})=>g.jsx("a",{href:i,target:l,rel:a,className:o,children:n}),PS=({title:n,children:o,className:i})=>g.jsxs(qr,{className:ve("overflow-hidden p-0 gap-0 shadow-sm",i),children:[n?g.jsx(Zr,{className:"px-6 py-3",children:g.jsx("h3",{className:"text-xs font-semibold tracking-wider text-muted-foreground",children:String(n)})}):null,g.jsx("div",{className:"flex flex-col gap-0 divide-y divide-border",children:o})]}),TS=({icon:n,label:o,description:i,onClick:l,className:a})=>{const u=n,f="size-5",p=u?gh[u]:null;return g.jsxs("button",{type:"button",className:ve("w-full h-auto px-6 py-6 flex items-center gap-2 justify-start cursor-pointer text-left rounded-none transition-colors hover:bg-accent/70",a),onClick:l,children:[p&&g.jsx(p,{className:`${f} shrink-0 text-muted-foreground`}),g.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0 items-start",children:[o?g.jsx("p",{className:"font-medium text-sm text-foreground",children:String(o)}):null,i?g.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:String(i)}):null]}),g.jsx(xu,{className:"mr-1 size-4 shrink-0 text-muted-foreground"})]})},jS=({name:n,size:o,className:i})=>{const a={sm:"size-3",md:"size-5",lg:"size-6"}[o]??"size-4",u=n,f=gh[u],p=u==="sparkles"?"sparkle-icon":"";return f?g.jsx(f,{className:ve(a,p,i)}):g.jsx("span",{className:ve("inline-block",a,p,i),"data-icon":u})},AS=()=>({"ui-card":Xk,"ui-card-content":Qk,"ui-card-header":qk,"ui-button":Zk,"ui-text":CS,"ui-heading":ES,"ui-badge":Jk,"ui-input":eS,"ui-textarea":tS,"ui-select":nS,"ui-select-option":rS,"ui-checkbox":oS,"ui-switch":iS,"ui-label":sS,"ui-radio-group":lS,"ui-radio-group-item":aS,"ui-stack":_S,"ui-inline":NS,"ui-separator":cS,"ui-tabs":uS,"ui-tabs-list":dS,"ui-tabs-trigger":fS,"ui-tabs-content":pS,"ui-scroll-area":hS,"ui-avatar":mS,"ui-icon":jS,"ui-link":RS,"ui-menu-item":TS,"ui-menu":PS,"ui-skeleton":gS,"ui-tooltip":vS,"ui-progress":yS,"ui-alert":xS,"ui-collapsible":bS,"ui-collapsible-trigger":kS,"ui-collapsible-content":SS}),wh="/api/ecommerce",xh=async(n,o)=>{const i=o?`${o.replace(/\/$/,"")}${wh}`:wh,l=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}),a=await l.json();if(!l.ok)throw new Error(a.error||"API request failed");return a.data},IS=({className:n})=>g.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 190 190",version:"1.1",className:n,children:[g.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:g.jsx("path",{d:"M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z",fill:"rgb(15,13,25)"})}),g.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:g.jsx("path",{d:"M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z",fill:"rgb(232,218,234)"})}),g.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:g.jsx("path",{d:"M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z",fill:"rgb(15,13,25)"})}),g.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:g.jsx("path",{d:"M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z",fill:"rgb(252,248,161)"})})]}),bh="stackable-dev-badge-styles",MS=()=>{if(typeof document>"u"||document.getElementById(bh))return;const n=document.createElement("style");n.id=bh,n.textContent=`
|
|
294
|
+
Defaulting to \`null\`.`}var w1=Ff,x1=Uf,Wa="Radio",[b1,Vf]=ct(Wa),[k1,S1]=b1(Wa),Gf=m.forwardRef((n,o)=>{const{__scopeRadio:i,name:a,checked:l=!1,required:u,disabled:f,value:p="on",onCheck:h,form:v,...w}=n,[x,b]=m.useState(null),C=Pe(o,S=>b(S)),_=m.useRef(!1),k=x?v||!!x.closest("form"):!0;return g.jsxs(k1,{scope:i,checked:l,disabled:f,children:[g.jsx(pe.button,{type:"button",role:"radio","aria-checked":l,"data-state":Qf(l),"data-disabled":f?"":void 0,disabled:f,value:p,...w,ref:C,onClick:we(n.onClick,S=>{l||h==null||h(),k&&(_.current=S.isPropagationStopped(),_.current||S.stopPropagation())})}),k&&g.jsx(Xf,{control:x,bubbles:!_.current,name:a,value:p,checked:l,required:u,disabled:f,form:v,style:{transform:"translateX(-100%)"}})]})});Gf.displayName=Wa;var Kf="RadioIndicator",Yf=m.forwardRef((n,o)=>{const{__scopeRadio:i,forceMount:a,...l}=n,u=S1(Kf,i);return g.jsx(Pt,{present:a||u.checked,children:g.jsx(pe.span,{"data-state":Qf(u.checked),"data-disabled":u.disabled?"":void 0,...l,ref:o})})});Yf.displayName=Kf;var C1="RadioBubbleInput",Xf=m.forwardRef(({__scopeRadio:n,control:o,checked:i,bubbles:a=!0,...l},u)=>{const f=m.useRef(null),p=Pe(f,u),h=di(i),v=fi(o);return m.useEffect(()=>{const w=f.current;if(!w)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set;if(h!==i&&C){const _=new Event("click",{bubbles:a});C.call(w,i),w.dispatchEvent(_)}},[h,i,a]),g.jsx(pe.input,{type:"radio","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:p,style:{...l.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Xf.displayName=C1;function Qf(n){return n?"checked":"unchecked"}var E1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ni="RadioGroup",[_1]=ct(Ni,[Ei,Vf]),qf=Ei(),Zf=Vf(),[N1,R1]=_1(Ni),Jf=m.forwardRef((n,o)=>{const{__scopeRadioGroup:i,name:a,defaultValue:l,value:u,required:f=!1,disabled:p=!1,orientation:h,dir:v,loop:w=!0,onValueChange:x,...b}=n,C=qf(i),_=to(v),[k,S]=Zt({prop:u,defaultProp:l??null,onChange:x,caller:Ni});return g.jsx(N1,{scope:i,name:a,required:f,disabled:p,value:k,onValueChange:S,children:g.jsx(Lf,{asChild:!0,...C,orientation:h,dir:_,loop:w,children:g.jsx(pe.div,{role:"radiogroup","aria-required":f,"aria-orientation":h,"data-disabled":p?"":void 0,dir:_,...b,ref:o})})})});Jf.displayName=Ni;var ep="RadioGroupItem",tp=m.forwardRef((n,o)=>{const{__scopeRadioGroup:i,disabled:a,...l}=n,u=R1(ep,i),f=u.disabled||a,p=qf(i),h=Zf(i),v=m.useRef(null),w=Pe(o,v),x=u.value===l.value,b=m.useRef(!1);return m.useEffect(()=>{const C=k=>{E1.includes(k.key)&&(b.current=!0)},_=()=>b.current=!1;return document.addEventListener("keydown",C),document.addEventListener("keyup",_),()=>{document.removeEventListener("keydown",C),document.removeEventListener("keyup",_)}},[]),g.jsx(Of,{asChild:!0,...p,focusable:!f,active:x,children:g.jsx(Gf,{disabled:f,required:u.required,checked:x,...h,...l,name:u.name,ref:w,onCheck:()=>u.onValueChange(l.value),onKeyDown:we(C=>{C.key==="Enter"&&C.preventDefault()}),onFocus:we(l.onFocus,()=>{var C;b.current&&((C=v.current)==null||C.click())})})})});tp.displayName=ep;var P1="RadioGroupIndicator",np=m.forwardRef((n,o)=>{const{__scopeRadioGroup:i,...a}=n,l=Zf(i);return g.jsx(Yf,{...l,...a,ref:o})});np.displayName=P1;var T1=Jf,j1=tp,A1=np;function I1(n,o){return m.useReducer((i,a)=>o[i][a]??i,n)}var Va="ScrollArea",[rp]=ct(Va),[z1,kt]=rp(Va),op=m.forwardRef((n,o)=>{const{__scopeScrollArea:i,type:a="hover",dir:l,scrollHideDelay:u=600,...f}=n,[p,h]=m.useState(null),[v,w]=m.useState(null),[x,b]=m.useState(null),[C,_]=m.useState(null),[k,S]=m.useState(null),[N,R]=m.useState(0),[T,I]=m.useState(0),[U,$]=m.useState(!1),[O,D]=m.useState(!1),Y=Pe(o,ne=>h(ne)),te=to(l);return g.jsx(z1,{scope:i,type:a,dir:te,scrollHideDelay:u,scrollArea:p,viewport:v,onViewportChange:w,content:x,onContentChange:b,scrollbarX:C,onScrollbarXChange:_,scrollbarXEnabled:U,onScrollbarXEnabledChange:$,scrollbarY:k,onScrollbarYChange:S,scrollbarYEnabled:O,onScrollbarYEnabledChange:D,onCornerWidthChange:R,onCornerHeightChange:I,children:g.jsx(pe.div,{dir:te,...f,ref:Y,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":T+"px",...n.style}})})});op.displayName=Va;var ip="ScrollAreaViewport",sp=m.forwardRef((n,o)=>{const{__scopeScrollArea:i,children:a,nonce:l,...u}=n,f=kt(ip,i),p=m.useRef(null),h=Pe(o,p,f.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),g.jsx(pe.div,{"data-radix-scroll-area-viewport":"",...u,ref:h,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...n.style},children:g.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});sp.displayName=ip;var Vt="ScrollAreaScrollbar",ap=m.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=kt(Vt,n.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:f}=l,p=n.orientation==="horizontal";return m.useEffect(()=>(p?u(!0):f(!0),()=>{p?u(!1):f(!1)}),[p,u,f]),l.type==="hover"?g.jsx(M1,{...a,ref:o,forceMount:i}):l.type==="scroll"?g.jsx(L1,{...a,ref:o,forceMount:i}):l.type==="auto"?g.jsx(lp,{...a,ref:o,forceMount:i}):l.type==="always"?g.jsx(Ga,{...a,ref:o}):null});ap.displayName=Vt;var M1=m.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=kt(Vt,n.__scopeScrollArea),[u,f]=m.useState(!1);return m.useEffect(()=>{const p=l.scrollArea;let h=0;if(p){const v=()=>{window.clearTimeout(h),f(!0)},w=()=>{h=window.setTimeout(()=>f(!1),l.scrollHideDelay)};return p.addEventListener("pointerenter",v),p.addEventListener("pointerleave",w),()=>{window.clearTimeout(h),p.removeEventListener("pointerenter",v),p.removeEventListener("pointerleave",w)}}},[l.scrollArea,l.scrollHideDelay]),g.jsx(Pt,{present:i||u,children:g.jsx(lp,{"data-state":u?"visible":"hidden",...a,ref:o})})}),L1=m.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=kt(Vt,n.__scopeScrollArea),u=n.orientation==="horizontal",f=ji(()=>h("SCROLL_END"),100),[p,h]=I1("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return m.useEffect(()=>{if(p==="idle"){const v=window.setTimeout(()=>h("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(v)}},[p,l.scrollHideDelay,h]),m.useEffect(()=>{const v=l.viewport,w=u?"scrollLeft":"scrollTop";if(v){let x=v[w];const b=()=>{const C=v[w];x!==C&&(h("SCROLL"),f()),x=C};return v.addEventListener("scroll",b),()=>v.removeEventListener("scroll",b)}},[l.viewport,u,h,f]),g.jsx(Pt,{present:i||p!=="hidden",children:g.jsx(Ga,{"data-state":p==="hidden"?"hidden":"visible",...a,ref:o,onPointerEnter:we(n.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:we(n.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),lp=m.forwardRef((n,o)=>{const i=kt(Vt,n.__scopeScrollArea),{forceMount:a,...l}=n,[u,f]=m.useState(!1),p=n.orientation==="horizontal",h=ji(()=>{if(i.viewport){const v=i.viewport.offsetWidth<i.viewport.scrollWidth,w=i.viewport.offsetHeight<i.viewport.scrollHeight;f(p?v:w)}},10);return br(i.viewport,h),br(i.content,h),g.jsx(Pt,{present:a||u,children:g.jsx(Ga,{"data-state":u?"visible":"hidden",...l,ref:o})})}),Ga=m.forwardRef((n,o)=>{const{orientation:i="vertical",...a}=n,l=kt(Vt,n.__scopeScrollArea),u=m.useRef(null),f=m.useRef(0),[p,h]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),v=pp(p.viewport,p.content),w={...a,sizes:p,onSizesChange:h,hasThumb:v>0&&v<1,onThumbChange:b=>u.current=b,onThumbPointerUp:()=>f.current=0,onThumbPointerDown:b=>f.current=b};function x(b,C){return H1(b,f.current,p,C)}return i==="horizontal"?g.jsx(O1,{...w,ref:o,onThumbPositionChange:()=>{if(l.viewport&&u.current){const b=l.viewport.scrollLeft,C=hp(b,p,l.dir);u.current.style.transform=`translate3d(${C}px, 0, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollLeft=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollLeft=x(b,l.dir))}}):i==="vertical"?g.jsx(D1,{...w,ref:o,onThumbPositionChange:()=>{if(l.viewport&&u.current){const b=l.viewport.scrollTop,C=hp(b,p);u.current.style.transform=`translate3d(0, ${C}px, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollTop=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollTop=x(b))}}):null}),O1=m.forwardRef((n,o)=>{const{sizes:i,onSizesChange:a,...l}=n,u=kt(Vt,n.__scopeScrollArea),[f,p]=m.useState(),h=m.useRef(null),v=Pe(o,h,u.onScrollbarXChange);return m.useEffect(()=>{h.current&&p(getComputedStyle(h.current))},[h]),g.jsx(up,{"data-orientation":"horizontal",...l,ref:v,sizes:i,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ti(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.x),onDragScroll:w=>n.onDragScroll(w.x),onWheelScroll:(w,x)=>{if(u.viewport){const b=u.viewport.scrollLeft+w.deltaX;n.onWheelScroll(b),gp(b,x)&&w.preventDefault()}},onResize:()=>{h.current&&u.viewport&&f&&a({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Pi(f.paddingLeft),paddingEnd:Pi(f.paddingRight)}})}})}),D1=m.forwardRef((n,o)=>{const{sizes:i,onSizesChange:a,...l}=n,u=kt(Vt,n.__scopeScrollArea),[f,p]=m.useState(),h=m.useRef(null),v=Pe(o,h,u.onScrollbarYChange);return m.useEffect(()=>{h.current&&p(getComputedStyle(h.current))},[h]),g.jsx(up,{"data-orientation":"vertical",...l,ref:v,sizes:i,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ti(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.y),onDragScroll:w=>n.onDragScroll(w.y),onWheelScroll:(w,x)=>{if(u.viewport){const b=u.viewport.scrollTop+w.deltaY;n.onWheelScroll(b),gp(b,x)&&w.preventDefault()}},onResize:()=>{h.current&&u.viewport&&f&&a({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Pi(f.paddingTop),paddingEnd:Pi(f.paddingBottom)}})}})}),[F1,cp]=rp(Vt),up=m.forwardRef((n,o)=>{const{__scopeScrollArea:i,sizes:a,hasThumb:l,onThumbChange:u,onThumbPointerUp:f,onThumbPointerDown:p,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:w,onResize:x,...b}=n,C=kt(Vt,i),[_,k]=m.useState(null),S=Pe(o,Y=>k(Y)),N=m.useRef(null),R=m.useRef(""),T=C.viewport,I=a.content-a.viewport,U=tt(w),$=tt(h),O=ji(x,10);function D(Y){if(N.current){const te=Y.clientX-N.current.left,ne=Y.clientY-N.current.top;v({x:te,y:ne})}}return m.useEffect(()=>{const Y=te=>{const ne=te.target;(_==null?void 0:_.contains(ne))&&U(te,I)};return document.addEventListener("wheel",Y,{passive:!1}),()=>document.removeEventListener("wheel",Y,{passive:!1})},[T,_,I,U]),m.useEffect($,[a,$]),br(_,O),br(C.content,O),g.jsx(F1,{scope:i,scrollbar:_,hasThumb:l,onThumbChange:tt(u),onThumbPointerUp:tt(f),onThumbPositionChange:$,onThumbPointerDown:tt(p),children:g.jsx(pe.div,{...b,ref:S,style:{position:"absolute",...b.style},onPointerDown:we(n.onPointerDown,Y=>{Y.button===0&&(Y.target.setPointerCapture(Y.pointerId),N.current=_.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C.viewport&&(C.viewport.style.scrollBehavior="auto"),D(Y))}),onPointerMove:we(n.onPointerMove,D),onPointerUp:we(n.onPointerUp,Y=>{const te=Y.target;te.hasPointerCapture(Y.pointerId)&&te.releasePointerCapture(Y.pointerId),document.body.style.webkitUserSelect=R.current,C.viewport&&(C.viewport.style.scrollBehavior=""),N.current=null})})})}),Ri="ScrollAreaThumb",dp=m.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=cp(Ri,n.__scopeScrollArea);return g.jsx(Pt,{present:i||l.hasThumb,children:g.jsx($1,{ref:o,...a})})}),$1=m.forwardRef((n,o)=>{const{__scopeScrollArea:i,style:a,...l}=n,u=kt(Ri,i),f=cp(Ri,i),{onThumbPositionChange:p}=f,h=Pe(o,x=>f.onThumbChange(x)),v=m.useRef(void 0),w=ji(()=>{v.current&&(v.current(),v.current=void 0)},100);return m.useEffect(()=>{const x=u.viewport;if(x){const b=()=>{if(w(),!v.current){const C=B1(x,p);v.current=C,p()}};return p(),x.addEventListener("scroll",b),()=>x.removeEventListener("scroll",b)}},[u.viewport,w,p]),g.jsx(pe.div,{"data-state":f.hasThumb?"visible":"hidden",...l,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:we(n.onPointerDownCapture,x=>{const C=x.target.getBoundingClientRect(),_=x.clientX-C.left,k=x.clientY-C.top;f.onThumbPointerDown({x:_,y:k})}),onPointerUp:we(n.onPointerUp,f.onThumbPointerUp)})});dp.displayName=Ri;var Ka="ScrollAreaCorner",fp=m.forwardRef((n,o)=>{const i=kt(Ka,n.__scopeScrollArea),a=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&a?g.jsx(U1,{...n,ref:o}):null});fp.displayName=Ka;var U1=m.forwardRef((n,o)=>{const{__scopeScrollArea:i,...a}=n,l=kt(Ka,i),[u,f]=m.useState(0),[p,h]=m.useState(0),v=!!(u&&p);return br(l.scrollbarX,()=>{var x;const w=((x=l.scrollbarX)==null?void 0:x.offsetHeight)||0;l.onCornerHeightChange(w),h(w)}),br(l.scrollbarY,()=>{var x;const w=((x=l.scrollbarY)==null?void 0:x.offsetWidth)||0;l.onCornerWidthChange(w),f(w)}),v?g.jsx(pe.div,{...a,ref:o,style:{width:u,height:p,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function Pi(n){return n?parseInt(n,10):0}function pp(n,o){const i=n/o;return isNaN(i)?0:i}function Ti(n){const o=pp(n.viewport,n.content),i=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,a=(n.scrollbar.size-i)*o;return Math.max(a,18)}function H1(n,o,i,a="ltr"){const l=Ti(i),u=l/2,f=o||u,p=l-f,h=i.scrollbar.paddingStart+f,v=i.scrollbar.size-i.scrollbar.paddingEnd-p,w=i.content-i.viewport,x=a==="ltr"?[0,w]:[w*-1,0];return mp([h,v],x)(n)}function hp(n,o,i="ltr"){const a=Ti(o),l=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,u=o.scrollbar.size-l,f=o.content-o.viewport,p=u-a,h=i==="ltr"?[0,f]:[f*-1,0],v=Ua(n,h);return mp([0,f],[0,p])(v)}function mp(n,o){return i=>{if(n[0]===n[1]||o[0]===o[1])return o[0];const a=(o[1]-o[0])/(n[1]-n[0]);return o[0]+a*(i-n[0])}}function gp(n,o){return n>0&&n<o}var B1=(n,o=()=>{})=>{let i={left:n.scrollLeft,top:n.scrollTop},a=0;return(function l(){const u={left:n.scrollLeft,top:n.scrollTop},f=i.left!==u.left,p=i.top!==u.top;(f||p)&&o(),i=u,a=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(a)};function ji(n,o){const i=tt(n),a=m.useRef(0);return m.useEffect(()=>()=>window.clearTimeout(a.current),[]),m.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(i,o)},[i,o])}function br(n,o){const i=tt(o);He(()=>{let a=0;if(n){const l=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(i)});return l.observe(n),()=>{window.cancelAnimationFrame(a),l.unobserve(n)}}},[n,i])}var W1=op,V1=sp,G1=fp,K1=[" ","Enter","ArrowUp","ArrowDown"],Y1=[" ","Enter"],qn="Select",[Ai,Ii,X1]=td(qn),[kr]=ct(qn,[X1,Ci]),zi=Ci(),[Q1,xn]=kr(qn),[q1,Z1]=kr(qn),vp=n=>{const{__scopeSelect:o,children:i,open:a,defaultOpen:l,onOpenChange:u,value:f,defaultValue:p,onValueChange:h,dir:v,name:w,autoComplete:x,disabled:b,required:C,form:_}=n,k=zi(o),[S,N]=m.useState(null),[R,T]=m.useState(null),[I,U]=m.useState(!1),$=to(v),[O,D]=Zt({prop:a,defaultProp:l??!1,onChange:u,caller:qn}),[Y,te]=Zt({prop:f,defaultProp:p,onChange:h,caller:qn}),ne=m.useRef(null),se=S?_||!!S.closest("form"):!0,[ve,xe]=m.useState(new Set),Se=Array.from(ve).map(Z=>Z.props.value).join(";");return g.jsx(Nf,{...k,children:g.jsxs(Q1,{required:C,scope:o,trigger:S,onTriggerChange:N,valueNode:R,onValueNodeChange:T,valueNodeHasChildren:I,onValueNodeHasChildrenChange:U,contentId:Yn(),value:Y,onValueChange:te,open:O,onOpenChange:D,dir:$,triggerPointerDownPosRef:ne,disabled:b,children:[g.jsx(Ai.Provider,{scope:o,children:g.jsx(q1,{scope:n.__scopeSelect,onNativeOptionAdd:m.useCallback(Z=>{xe(ae=>new Set(ae).add(Z))},[]),onNativeOptionRemove:m.useCallback(Z=>{xe(ae=>{const H=new Set(ae);return H.delete(Z),H})},[]),children:i})}),se?g.jsxs(Fp,{"aria-hidden":!0,required:C,tabIndex:-1,name:w,autoComplete:x,value:Y,onChange:Z=>te(Z.target.value),disabled:b,form:_,children:[Y===void 0?g.jsx("option",{value:""}):null,Array.from(ve)]},Se):null]})})};vp.displayName=qn;var yp="SelectTrigger",wp=m.forwardRef((n,o)=>{const{__scopeSelect:i,disabled:a=!1,...l}=n,u=zi(i),f=xn(yp,i),p=f.disabled||a,h=Pe(o,f.onTriggerChange),v=Ii(i),w=m.useRef("touch"),[x,b,C]=Up(k=>{const S=v().filter(T=>!T.disabled),N=S.find(T=>T.value===f.value),R=Hp(S,k,N);R!==void 0&&f.onValueChange(R.value)}),_=k=>{p||(f.onOpenChange(!0),C()),k&&(f.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})};return g.jsx(Rf,{asChild:!0,...u,children:g.jsx(pe.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":$p(f.value)?"":void 0,...l,ref:h,onClick:we(l.onClick,k=>{k.currentTarget.focus(),w.current!=="mouse"&&_(k)}),onPointerDown:we(l.onPointerDown,k=>{w.current=k.pointerType;const S=k.target;S.hasPointerCapture(k.pointerId)&&S.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(_(k),k.preventDefault())}),onKeyDown:we(l.onKeyDown,k=>{const S=x.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&b(k.key),!(S&&k.key===" ")&&K1.includes(k.key)&&(_(),k.preventDefault())})})})});wp.displayName=yp;var xp="SelectValue",bp=m.forwardRef((n,o)=>{const{__scopeSelect:i,className:a,style:l,children:u,placeholder:f="",...p}=n,h=xn(xp,i),{onValueNodeHasChildrenChange:v}=h,w=u!==void 0,x=Pe(o,h.onValueNodeChange);return He(()=>{v(w)},[v,w]),g.jsx(pe.span,{...p,ref:x,style:{pointerEvents:"none"},children:$p(h.value)?g.jsx(g.Fragment,{children:f}):u})});bp.displayName=xp;var J1="SelectIcon",kp=m.forwardRef((n,o)=>{const{__scopeSelect:i,children:a,...l}=n;return g.jsx(pe.span,{"aria-hidden":!0,...l,ref:o,children:a||"▼"})});kp.displayName=J1;var eb="SelectPortal",Sp=n=>g.jsx(ha,{asChild:!0,...n});Sp.displayName=eb;var Zn="SelectContent",Cp=m.forwardRef((n,o)=>{const i=xn(Zn,n.__scopeSelect),[a,l]=m.useState();if(He(()=>{l(new DocumentFragment)},[]),!i.open){const u=a;return u?Jr.createPortal(g.jsx(Ep,{scope:n.__scopeSelect,children:g.jsx(Ai.Slot,{scope:n.__scopeSelect,children:g.jsx("div",{children:n.children})})}),u):null}return g.jsx(_p,{...n,ref:o})});Cp.displayName=Zn;var At=10,[Ep,bn]=kr(Zn),tb="SelectContentImpl",nb=eo("SelectContent.RemoveScroll"),_p=m.forwardRef((n,o)=>{const{__scopeSelect:i,position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,side:p,sideOffset:h,align:v,alignOffset:w,arrowPadding:x,collisionBoundary:b,collisionPadding:C,sticky:_,hideWhenDetached:k,avoidCollisions:S,...N}=n,R=xn(Zn,i),[T,I]=m.useState(null),[U,$]=m.useState(null),O=Pe(o,Q=>I(Q)),[D,Y]=m.useState(null),[te,ne]=m.useState(null),se=Ii(i),[ve,xe]=m.useState(!1),Se=m.useRef(!1);m.useEffect(()=>{if(T)return Nw(T)},[T]),Uy();const Z=m.useCallback(Q=>{const[ue,...le]=se().map(Re=>Re.ref.current),[Ce]=le.slice(-1),Ne=document.activeElement;for(const Re of Q)if(Re===Ne||(Re==null||Re.scrollIntoView({block:"nearest"}),Re===ue&&U&&(U.scrollTop=0),Re===Ce&&U&&(U.scrollTop=U.scrollHeight),Re==null||Re.focus(),document.activeElement!==Ne))return},[se,U]),ae=m.useCallback(()=>Z([D,T]),[Z,D,T]);m.useEffect(()=>{ve&&ae()},[ve,ae]);const{onOpenChange:H,triggerPointerDownPosRef:X}=R;m.useEffect(()=>{if(T){let Q={x:0,y:0};const ue=Ce=>{var Ne,Re;Q={x:Math.abs(Math.round(Ce.pageX)-(((Ne=X.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(Ce.pageY)-(((Re=X.current)==null?void 0:Re.y)??0))}},le=Ce=>{Q.x<=10&&Q.y<=10?Ce.preventDefault():T.contains(Ce.target)||H(!1),document.removeEventListener("pointermove",ue),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",le,{capture:!0})}}},[T,H,X]),m.useEffect(()=>{const Q=()=>H(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[H]);const[F,A]=Up(Q=>{const ue=se().filter(Ne=>!Ne.disabled),le=ue.find(Ne=>Ne.ref.current===document.activeElement),Ce=Hp(ue,Q,le);Ce&&setTimeout(()=>Ce.ref.current.focus())}),B=m.useCallback((Q,ue,le)=>{const Ce=!Se.current&&!le;(R.value!==void 0&&R.value===ue||Ce)&&(Y(Q),Ce&&(Se.current=!0))},[R.value]),be=m.useCallback(()=>T==null?void 0:T.focus(),[T]),ye=m.useCallback((Q,ue,le)=>{const Ce=!Se.current&&!le;(R.value!==void 0&&R.value===ue||Ce)&&ne(Q)},[R.value]),fe=a==="popper"?Ya:Np,de=fe===Ya?{side:p,sideOffset:h,align:v,alignOffset:w,arrowPadding:x,collisionBoundary:b,collisionPadding:C,sticky:_,hideWhenDetached:k,avoidCollisions:S}:{};return g.jsx(Ep,{scope:i,content:T,viewport:U,onViewportChange:$,itemRefCallback:B,selectedItem:D,onItemLeave:be,itemTextRefCallback:ye,focusSelectedItem:ae,selectedItemText:te,position:a,isPositioned:ve,searchRef:F,children:g.jsx(Pd,{as:nb,allowPinchZoom:!0,children:g.jsx(dd,{asChild:!0,trapped:R.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:we(l,Q=>{var ue;(ue=R.trigger)==null||ue.focus({preventScroll:!0}),Q.preventDefault()}),children:g.jsx(da,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:g.jsx(fe,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:Q=>Q.preventDefault(),...N,...de,onPlaced:()=>xe(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:we(N.onKeyDown,Q=>{const ue=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!ue&&Q.key.length===1&&A(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let Ce=se().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,Re=Ce.indexOf(Ne);Ce=Ce.slice(Re+1)}setTimeout(()=>Z(Ce)),Q.preventDefault()}})})})})})})});_p.displayName=tb;var rb="SelectItemAlignedPosition",Np=m.forwardRef((n,o)=>{const{__scopeSelect:i,onPlaced:a,...l}=n,u=xn(Zn,i),f=bn(Zn,i),[p,h]=m.useState(null),[v,w]=m.useState(null),x=Pe(o,O=>w(O)),b=Ii(i),C=m.useRef(!1),_=m.useRef(!0),{viewport:k,selectedItem:S,selectedItemText:N,focusSelectedItem:R}=f,T=m.useCallback(()=>{if(u.trigger&&u.valueNode&&p&&v&&k&&S&&N){const O=u.trigger.getBoundingClientRect(),D=v.getBoundingClientRect(),Y=u.valueNode.getBoundingClientRect(),te=N.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=te.left-D.left,Re=Y.left-Ne,$e=O.left-Re,Ke=O.width+$e,kn=Math.max(Ke,D.width),Sn=window.innerWidth-At,nn=Ua(Re,[At,Math.max(At,Sn-kn)]);p.style.minWidth=Ke+"px",p.style.left=nn+"px"}else{const Ne=D.right-te.right,Re=window.innerWidth-Y.right-Ne,$e=window.innerWidth-O.right-Re,Ke=O.width+$e,kn=Math.max(Ke,D.width),Sn=window.innerWidth-At,nn=Ua(Re,[At,Math.max(At,Sn-kn)]);p.style.minWidth=Ke+"px",p.style.right=nn+"px"}const ne=b(),se=window.innerHeight-At*2,ve=k.scrollHeight,xe=window.getComputedStyle(v),Se=parseInt(xe.borderTopWidth,10),Z=parseInt(xe.paddingTop,10),ae=parseInt(xe.borderBottomWidth,10),H=parseInt(xe.paddingBottom,10),X=Se+Z+ve+H+ae,F=Math.min(S.offsetHeight*5,X),A=window.getComputedStyle(k),B=parseInt(A.paddingTop,10),be=parseInt(A.paddingBottom,10),ye=O.top+O.height/2-At,fe=se-ye,de=S.offsetHeight/2,Q=S.offsetTop+de,ue=Se+Z+Q,le=X-ue;if(ue<=ye){const Ne=ne.length>0&&S===ne[ne.length-1].ref.current;p.style.bottom="0px";const Re=v.clientHeight-k.offsetTop-k.offsetHeight,$e=Math.max(fe,de+(Ne?be:0)+Re+ae),Ke=ue+$e;p.style.height=Ke+"px"}else{const Ne=ne.length>0&&S===ne[0].ref.current;p.style.top="0px";const $e=Math.max(ye,Se+k.offsetTop+(Ne?B:0)+de)+le;p.style.height=$e+"px",k.scrollTop=ue-ye+k.offsetTop}p.style.margin=`${At}px 0`,p.style.minHeight=F+"px",p.style.maxHeight=se+"px",a==null||a(),requestAnimationFrame(()=>C.current=!0)}},[b,u.trigger,u.valueNode,p,v,k,S,N,u.dir,a]);He(()=>T(),[T]);const[I,U]=m.useState();He(()=>{v&&U(window.getComputedStyle(v).zIndex)},[v]);const $=m.useCallback(O=>{O&&_.current===!0&&(T(),R==null||R(),_.current=!1)},[T,R]);return g.jsx(ib,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:C,onScrollButtonChange:$,children:g.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:I},children:g.jsx(pe.div,{...l,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});Np.displayName=rb;var ob="SelectPopperPosition",Ya=m.forwardRef((n,o)=>{const{__scopeSelect:i,align:a="start",collisionPadding:l=At,...u}=n,f=zi(i);return g.jsx(Pf,{...f,...u,ref:o,align:a,collisionPadding:l,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)"}})});Ya.displayName=ob;var[ib,Xa]=kr(Zn,{}),Qa="SelectViewport",Rp=m.forwardRef((n,o)=>{const{__scopeSelect:i,nonce:a,...l}=n,u=bn(Qa,i),f=Xa(Qa,i),p=Pe(o,u.onViewportChange),h=m.useRef(0);return g.jsxs(g.Fragment,{children:[g.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:a}),g.jsx(Ai.Slot,{scope:i,children:g.jsx(pe.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:we(l.onScroll,v=>{const w=v.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:b}=f;if(b!=null&&b.current&&x){const C=Math.abs(h.current-w.scrollTop);if(C>0){const _=window.innerHeight-At*2,k=parseFloat(x.style.minHeight),S=parseFloat(x.style.height),N=Math.max(k,S);if(N<_){const R=N+C,T=Math.min(_,R),I=R-T;x.style.height=T+"px",x.style.bottom==="0px"&&(w.scrollTop=I>0?I:0,x.style.justifyContent="flex-end")}}}h.current=w.scrollTop})})})]})});Rp.displayName=Qa;var Pp="SelectGroup",[sb,ab]=kr(Pp),lb=m.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=Yn();return g.jsx(sb,{scope:i,id:l,children:g.jsx(pe.div,{role:"group","aria-labelledby":l,...a,ref:o})})});lb.displayName=Pp;var Tp="SelectLabel",cb=m.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=ab(Tp,i);return g.jsx(pe.div,{id:l.id,...a,ref:o})});cb.displayName=Tp;var Mi="SelectItem",[ub,jp]=kr(Mi),Ap=m.forwardRef((n,o)=>{const{__scopeSelect:i,value:a,disabled:l=!1,textValue:u,...f}=n,p=xn(Mi,i),h=bn(Mi,i),v=p.value===a,[w,x]=m.useState(u??""),[b,C]=m.useState(!1),_=Pe(o,R=>{var T;return(T=h.itemRefCallback)==null?void 0:T.call(h,R,a,l)}),k=Yn(),S=m.useRef("touch"),N=()=>{l||(p.onValueChange(a),p.onOpenChange(!1))};if(a==="")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 g.jsx(ub,{scope:i,value:a,disabled:l,textId:k,isSelected:v,onItemTextChange:m.useCallback(R=>{x(T=>T||((R==null?void 0:R.textContent)??"").trim())},[]),children:g.jsx(Ai.ItemSlot,{scope:i,value:a,disabled:l,textValue:w,children:g.jsx(pe.div,{role:"option","aria-labelledby":k,"data-highlighted":b?"":void 0,"aria-selected":v&&b,"data-state":v?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...f,ref:_,onFocus:we(f.onFocus,()=>C(!0)),onBlur:we(f.onBlur,()=>C(!1)),onClick:we(f.onClick,()=>{S.current!=="mouse"&&N()}),onPointerUp:we(f.onPointerUp,()=>{S.current==="mouse"&&N()}),onPointerDown:we(f.onPointerDown,R=>{S.current=R.pointerType}),onPointerMove:we(f.onPointerMove,R=>{var T;S.current=R.pointerType,l?(T=h.onItemLeave)==null||T.call(h):S.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:we(f.onPointerLeave,R=>{var T;R.currentTarget===document.activeElement&&((T=h.onItemLeave)==null||T.call(h))}),onKeyDown:we(f.onKeyDown,R=>{var I;((I=h.searchRef)==null?void 0:I.current)!==""&&R.key===" "||(Y1.includes(R.key)&&N(),R.key===" "&&R.preventDefault())})})})})});Ap.displayName=Mi;var io="SelectItemText",Ip=m.forwardRef((n,o)=>{const{__scopeSelect:i,className:a,style:l,...u}=n,f=xn(io,i),p=bn(io,i),h=jp(io,i),v=Z1(io,i),[w,x]=m.useState(null),b=Pe(o,N=>x(N),h.onItemTextChange,N=>{var R;return(R=p.itemTextRefCallback)==null?void 0:R.call(p,N,h.value,h.disabled)}),C=w==null?void 0:w.textContent,_=m.useMemo(()=>g.jsx("option",{value:h.value,disabled:h.disabled,children:C},h.value),[h.disabled,h.value,C]),{onNativeOptionAdd:k,onNativeOptionRemove:S}=v;return He(()=>(k(_),()=>S(_)),[k,S,_]),g.jsxs(g.Fragment,{children:[g.jsx(pe.span,{id:h.textId,...u,ref:b}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Jr.createPortal(u.children,f.valueNode):null]})});Ip.displayName=io;var zp="SelectItemIndicator",Mp=m.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n;return jp(zp,i).isSelected?g.jsx(pe.span,{"aria-hidden":!0,...a,ref:o}):null});Mp.displayName=zp;var qa="SelectScrollUpButton",Lp=m.forwardRef((n,o)=>{const i=bn(qa,n.__scopeSelect),a=Xa(qa,n.__scopeSelect),[l,u]=m.useState(!1),f=Pe(o,a.onScrollButtonChange);return He(()=>{if(i.viewport&&i.isPositioned){let p=function(){const v=h.scrollTop>0;u(v)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?g.jsx(Dp,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop-h.offsetHeight)}}):null});Lp.displayName=qa;var Za="SelectScrollDownButton",Op=m.forwardRef((n,o)=>{const i=bn(Za,n.__scopeSelect),a=Xa(Za,n.__scopeSelect),[l,u]=m.useState(!1),f=Pe(o,a.onScrollButtonChange);return He(()=>{if(i.viewport&&i.isPositioned){let p=function(){const v=h.scrollHeight-h.clientHeight,w=Math.ceil(h.scrollTop)<v;u(w)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?g.jsx(Dp,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop+h.offsetHeight)}}):null});Op.displayName=Za;var Dp=m.forwardRef((n,o)=>{const{__scopeSelect:i,onAutoScroll:a,...l}=n,u=bn("SelectScrollButton",i),f=m.useRef(null),p=Ii(i),h=m.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return m.useEffect(()=>()=>h(),[h]),He(()=>{var w;const v=p().find(x=>x.ref.current===document.activeElement);(w=v==null?void 0:v.ref.current)==null||w.scrollIntoView({block:"nearest"})},[p]),g.jsx(pe.div,{"aria-hidden":!0,...l,ref:o,style:{flexShrink:0,...l.style},onPointerDown:we(l.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(a,50))}),onPointerMove:we(l.onPointerMove,()=>{var v;(v=u.onItemLeave)==null||v.call(u),f.current===null&&(f.current=window.setInterval(a,50))}),onPointerLeave:we(l.onPointerLeave,()=>{h()})})}),db="SelectSeparator",fb=m.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n;return g.jsx(pe.div,{"aria-hidden":!0,...a,ref:o})});fb.displayName=db;var Ja="SelectArrow",pb=m.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=zi(i),u=xn(Ja,i),f=bn(Ja,i);return u.open&&f.position==="popper"?g.jsx(Tf,{...l,...a,ref:o}):null});pb.displayName=Ja;var hb="SelectBubbleInput",Fp=m.forwardRef(({__scopeSelect:n,value:o,...i},a)=>{const l=m.useRef(null),u=Pe(a,l),f=di(o);return m.useEffect(()=>{const p=l.current;if(!p)return;const h=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(h,"value").set;if(f!==o&&w){const x=new Event("change",{bubbles:!0});w.call(p,o),p.dispatchEvent(x)}},[f,o]),g.jsx(pe.select,{...i,style:{...Ju,...i.style},ref:u,defaultValue:o})});Fp.displayName=hb;function $p(n){return n===""||n===void 0}function Up(n){const o=tt(n),i=m.useRef(""),a=m.useRef(0),l=m.useCallback(f=>{const p=i.current+f;o(p),(function h(v){i.current=v,window.clearTimeout(a.current),v!==""&&(a.current=window.setTimeout(()=>h(""),1e3))})(p)},[o]),u=m.useCallback(()=>{i.current="",window.clearTimeout(a.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(a.current),[]),[i,l,u]}function Hp(n,o,i){const l=o.length>1&&Array.from(o).every(v=>v===o[0])?o[0]:o,u=i?n.indexOf(i):-1;let f=mb(n,Math.max(u,0));l.length===1&&(f=f.filter(v=>v!==i));const h=f.find(v=>v.textValue.toLowerCase().startsWith(l.toLowerCase()));return h!==i?h:void 0}function mb(n,o){return n.map((i,a)=>n[(o+a)%n.length])}var gb=vp,vb=wp,yb=bp,wb=kp,xb=Sp,bb=Cp,kb=Rp,Sb=Ap,Cb=Ip,Eb=Mp,_b=Lp,Nb=Op,Rb="Separator",Bp="horizontal",Pb=["horizontal","vertical"],Wp=m.forwardRef((n,o)=>{const{decorative:i,orientation:a=Bp,...l}=n,u=Tb(a)?a:Bp,p=i?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return g.jsx(pe.div,{"data-orientation":u,...p,...l,ref:o})});Wp.displayName=Rb;function Tb(n){return Pb.includes(n)}var jb=Wp,Li="Switch",[Ab]=ct(Li),[Ib,zb]=Ab(Li),Vp=m.forwardRef((n,o)=>{const{__scopeSwitch:i,name:a,checked:l,defaultChecked:u,required:f,disabled:p,value:h="on",onCheckedChange:v,form:w,...x}=n,[b,C]=m.useState(null),_=Pe(o,T=>C(T)),k=m.useRef(!1),S=b?w||!!b.closest("form"):!0,[N,R]=Zt({prop:l,defaultProp:u??!1,onChange:v,caller:Li});return g.jsxs(Ib,{scope:i,checked:N,disabled:p,children:[g.jsx(pe.button,{type:"button",role:"switch","aria-checked":N,"aria-required":f,"data-state":Xp(N),"data-disabled":p?"":void 0,disabled:p,value:h,...x,ref:_,onClick:we(n.onClick,T=>{R(I=>!I),S&&(k.current=T.isPropagationStopped(),k.current||T.stopPropagation())})}),S&&g.jsx(Yp,{control:b,bubbles:!k.current,name:a,value:h,checked:N,required:f,disabled:p,form:w,style:{transform:"translateX(-100%)"}})]})});Vp.displayName=Li;var Gp="SwitchThumb",Kp=m.forwardRef((n,o)=>{const{__scopeSwitch:i,...a}=n,l=zb(Gp,i);return g.jsx(pe.span,{"data-state":Xp(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:o})});Kp.displayName=Gp;var Mb="SwitchBubbleInput",Yp=m.forwardRef(({__scopeSwitch:n,control:o,checked:i,bubbles:a=!0,...l},u)=>{const f=m.useRef(null),p=Pe(f,u),h=di(i),v=fi(o);return m.useEffect(()=>{const w=f.current;if(!w)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set;if(h!==i&&C){const _=new Event("click",{bubbles:a});C.call(w,i),w.dispatchEvent(_)}},[h,i,a]),g.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:p,style:{...l.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Yp.displayName=Mb;function Xp(n){return n?"checked":"unchecked"}var Lb=Vp,Ob=Kp,Oi="Tabs",[Db]=ct(Oi,[Ei]),Qp=Ei(),[Fb,el]=Db(Oi),qp=m.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,onValueChange:l,defaultValue:u,orientation:f="horizontal",dir:p,activationMode:h="automatic",...v}=n,w=to(p),[x,b]=Zt({prop:a,onChange:l,defaultProp:u??"",caller:Oi});return g.jsx(Fb,{scope:i,baseId:Yn(),value:x,onValueChange:b,orientation:f,dir:w,activationMode:h,children:g.jsx(pe.div,{dir:w,"data-orientation":f,...v,ref:o})})});qp.displayName=Oi;var Zp="TabsList",Jp=m.forwardRef((n,o)=>{const{__scopeTabs:i,loop:a=!0,...l}=n,u=el(Zp,i),f=Qp(i);return g.jsx(Lf,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:a,children:g.jsx(pe.div,{role:"tablist","aria-orientation":u.orientation,...l,ref:o})})});Jp.displayName=Zp;var eh="TabsTrigger",th=m.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,disabled:l=!1,...u}=n,f=el(eh,i),p=Qp(i),h=oh(f.baseId,a),v=ih(f.baseId,a),w=a===f.value;return g.jsx(Of,{asChild:!0,...p,focusable:!l,active:w,children:g.jsx(pe.button,{type:"button",role:"tab","aria-selected":w,"aria-controls":v,"data-state":w?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:h,...u,ref:o,onMouseDown:we(n.onMouseDown,x=>{!l&&x.button===0&&x.ctrlKey===!1?f.onValueChange(a):x.preventDefault()}),onKeyDown:we(n.onKeyDown,x=>{[" ","Enter"].includes(x.key)&&f.onValueChange(a)}),onFocus:we(n.onFocus,()=>{const x=f.activationMode!=="manual";!w&&!l&&x&&f.onValueChange(a)})})})});th.displayName=eh;var nh="TabsContent",rh=m.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,forceMount:l,children:u,...f}=n,p=el(nh,i),h=oh(p.baseId,a),v=ih(p.baseId,a),w=a===p.value,x=m.useRef(w);return m.useEffect(()=>{const b=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(b)},[]),g.jsx(Pt,{present:l||w,children:({present:b})=>g.jsx(pe.div,{"data-state":w?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":h,hidden:!b,id:v,tabIndex:0,...f,ref:o,style:{...n.style,animationDuration:x.current?"0s":void 0},children:b&&u})})});rh.displayName=nh;function oh(n,o){return`${n}-trigger-${o}`}function ih(n,o){return`${n}-content-${o}`}var $b=qp,Ub=Jp,Hb=th,Bb=rh,[Di]=ct("Tooltip",[Ci]),Fi=Ci(),sh="TooltipProvider",Wb=700,tl="tooltip.open",[Vb,nl]=Di(sh),ah=n=>{const{__scopeTooltip:o,delayDuration:i=Wb,skipDelayDuration:a=300,disableHoverableContent:l=!1,children:u}=n,f=m.useRef(!0),p=m.useRef(!1),h=m.useRef(0);return m.useEffect(()=>{const v=h.current;return()=>window.clearTimeout(v)},[]),g.jsx(Vb,{scope:o,isOpenDelayedRef:f,delayDuration:i,onOpen:m.useCallback(()=>{window.clearTimeout(h.current),f.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>f.current=!0,a)},[a]),isPointerInTransitRef:p,onPointerInTransitChange:m.useCallback(v=>{p.current=v},[]),disableHoverableContent:l,children:u})};ah.displayName=sh;var so="Tooltip",[Gb,ao]=Di(so),lh=n=>{const{__scopeTooltip:o,children:i,open:a,defaultOpen:l,onOpenChange:u,disableHoverableContent:f,delayDuration:p}=n,h=nl(so,n.__scopeTooltip),v=Fi(o),[w,x]=m.useState(null),b=Yn(),C=m.useRef(0),_=f??h.disableHoverableContent,k=p??h.delayDuration,S=m.useRef(!1),[N,R]=Zt({prop:a,defaultProp:l??!1,onChange:O=>{O?(h.onOpen(),document.dispatchEvent(new CustomEvent(tl))):h.onClose(),u==null||u(O)},caller:so}),T=m.useMemo(()=>N?S.current?"delayed-open":"instant-open":"closed",[N]),I=m.useCallback(()=>{window.clearTimeout(C.current),C.current=0,S.current=!1,R(!0)},[R]),U=m.useCallback(()=>{window.clearTimeout(C.current),C.current=0,R(!1)},[R]),$=m.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>{S.current=!0,R(!0),C.current=0},k)},[k,R]);return m.useEffect(()=>()=>{C.current&&(window.clearTimeout(C.current),C.current=0)},[]),g.jsx(Nf,{...v,children:g.jsx(Gb,{scope:o,contentId:b,open:N,stateAttribute:T,trigger:w,onTriggerChange:x,onTriggerEnter:m.useCallback(()=>{h.isOpenDelayedRef.current?$():I()},[h.isOpenDelayedRef,$,I]),onTriggerLeave:m.useCallback(()=>{_?U():(window.clearTimeout(C.current),C.current=0)},[U,_]),onOpen:I,onClose:U,disableHoverableContent:_,children:i})})};lh.displayName=so;var rl="TooltipTrigger",ch=m.forwardRef((n,o)=>{const{__scopeTooltip:i,...a}=n,l=ao(rl,i),u=nl(rl,i),f=Fi(i),p=m.useRef(null),h=Pe(o,p,l.onTriggerChange),v=m.useRef(!1),w=m.useRef(!1),x=m.useCallback(()=>v.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),g.jsx(Rf,{asChild:!0,...f,children:g.jsx(pe.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...a,ref:h,onPointerMove:we(n.onPointerMove,b=>{b.pointerType!=="touch"&&!w.current&&!u.isPointerInTransitRef.current&&(l.onTriggerEnter(),w.current=!0)}),onPointerLeave:we(n.onPointerLeave,()=>{l.onTriggerLeave(),w.current=!1}),onPointerDown:we(n.onPointerDown,()=>{l.open&&l.onClose(),v.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:we(n.onFocus,()=>{v.current||l.onOpen()}),onBlur:we(n.onBlur,l.onClose),onClick:we(n.onClick,l.onClose)})})});ch.displayName=rl;var ol="TooltipPortal",[Kb,Yb]=Di(ol,{forceMount:void 0}),uh=n=>{const{__scopeTooltip:o,forceMount:i,children:a,container:l}=n,u=ao(ol,o);return g.jsx(Kb,{scope:o,forceMount:i,children:g.jsx(Pt,{present:i||u.open,children:g.jsx(ha,{asChild:!0,container:l,children:a})})})};uh.displayName=ol;var Sr="TooltipContent",dh=m.forwardRef((n,o)=>{const i=Yb(Sr,n.__scopeTooltip),{forceMount:a=i.forceMount,side:l="top",...u}=n,f=ao(Sr,n.__scopeTooltip);return g.jsx(Pt,{present:a||f.open,children:f.disableHoverableContent?g.jsx(fh,{side:l,...u,ref:o}):g.jsx(Xb,{side:l,...u,ref:o})})}),Xb=m.forwardRef((n,o)=>{const i=ao(Sr,n.__scopeTooltip),a=nl(Sr,n.__scopeTooltip),l=m.useRef(null),u=Pe(o,l),[f,p]=m.useState(null),{trigger:h,onClose:v}=i,w=l.current,{onPointerInTransitChange:x}=a,b=m.useCallback(()=>{p(null),x(!1)},[x]),C=m.useCallback((_,k)=>{const S=_.currentTarget,N={x:_.clientX,y:_.clientY},R=Jb(N,S.getBoundingClientRect()),T=ek(N,R),I=tk(k.getBoundingClientRect()),U=rk([...T,...I]);p(U),x(!0)},[x]);return m.useEffect(()=>()=>b(),[b]),m.useEffect(()=>{if(h&&w){const _=S=>C(S,w),k=S=>C(S,h);return h.addEventListener("pointerleave",_),w.addEventListener("pointerleave",k),()=>{h.removeEventListener("pointerleave",_),w.removeEventListener("pointerleave",k)}}},[h,w,C,b]),m.useEffect(()=>{if(f){const _=k=>{const S=k.target,N={x:k.clientX,y:k.clientY},R=(h==null?void 0:h.contains(S))||(w==null?void 0:w.contains(S)),T=!nk(N,f);R?b():T&&(b(),v())};return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}},[h,w,f,v,b]),g.jsx(fh,{...n,ref:u})}),[Qb,qb]=Di(so,{isInside:!1}),Zb=ry("TooltipContent"),fh=m.forwardRef((n,o)=>{const{__scopeTooltip:i,children:a,"aria-label":l,onEscapeKeyDown:u,onPointerDownOutside:f,...p}=n,h=ao(Sr,i),v=Fi(i),{onClose:w}=h;return m.useEffect(()=>(document.addEventListener(tl,w),()=>document.removeEventListener(tl,w)),[w]),m.useEffect(()=>{if(h.trigger){const x=b=>{const C=b.target;C!=null&&C.contains(h.trigger)&&w()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[h.trigger,w]),g.jsx(da,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:x=>x.preventDefault(),onDismiss:w,children:g.jsxs(Pf,{"data-state":h.stateAttribute,...v,...p,ref:o,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(Zb,{children:a}),g.jsx(Qb,{scope:i,isInside:!0,children:g.jsx(uy,{id:h.contentId,role:"tooltip",children:l||a})})]})})});dh.displayName=Sr;var ph="TooltipArrow",hh=m.forwardRef((n,o)=>{const{__scopeTooltip:i,...a}=n,l=Fi(i);return qb(ph,i).isInside?null:g.jsx(Tf,{...l,...a,ref:o})});hh.displayName=ph;function Jb(n,o){const i=Math.abs(o.top-n.y),a=Math.abs(o.bottom-n.y),l=Math.abs(o.right-n.x),u=Math.abs(o.left-n.x);switch(Math.min(i,a,l,u)){case u:return"left";case l:return"right";case i:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function ek(n,o,i=5){const a=[];switch(o){case"top":a.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":a.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":a.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":a.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return a}function tk(n){const{top:o,right:i,bottom:a,left:l}=n;return[{x:l,y:o},{x:i,y:o},{x:i,y:a},{x:l,y:a}]}function nk(n,o){const{x:i,y:a}=n;let l=!1;for(let u=0,f=o.length-1;u<o.length;f=u++){const p=o[u],h=o[f],v=p.x,w=p.y,x=h.x,b=h.y;w>a!=b>a&&i<(x-v)*(a-w)/(b-w)+v&&(l=!l)}return l}function rk(n){const o=n.slice();return o.sort((i,a)=>i.x<a.x?-1:i.x>a.x?1:i.y<a.y?-1:i.y>a.y?1:0),ok(o)}function ok(n){if(n.length<=1)return n.slice();const o=[];for(let a=0;a<n.length;a++){const l=n[a];for(;o.length>=2;){const u=o[o.length-1],f=o[o.length-2];if((u.x-f.x)*(l.y-f.y)>=(u.y-f.y)*(l.x-f.x))o.pop();else break}o.push(l)}o.pop();const i=[];for(let a=n.length-1;a>=0;a--){const l=n[a];for(;i.length>=2;){const u=i[i.length-1],f=i[i.length-2];if((u.x-f.x)*(l.y-f.y)>=(u.y-f.y)*(l.x-f.x))i.pop();else break}i.push(l)}return i.pop(),o.length===1&&i.length===1&&o[0].x===i[0].x&&o[0].y===i[0].y?o:o.concat(i)}var ik=ah,sk=lh,ak=ch,lk=uh,ck=dh,uk=hh;const dk=ti("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all cursor-pointer outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function mh({className:n,variant:o="default",size:i="default",asChild:a=!1,...l}){const u=a?qu:"button";return g.jsx(u,{"data-slot":"button","data-variant":o,"data-size":i,className:ge(dk({variant:o,size:i,className:n})),...l})}const fk={amber:"bg-amber-100 text-amber-800",blue:"bg-blue-100 text-blue-800",emerald:"bg-emerald-100 text-emerald-800",red:"bg-red-100 text-red-800",purple:"bg-purple-100 text-purple-800",pink:"bg-pink-100 text-pink-800",gray:"bg-gray-100 text-gray-800"},pk=ti("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function hk({className:n,variant:o="default",hue:i,asChild:a=!1,...l}){const u=a?qu:"span",f=i?fk[i]:void 0;return g.jsx(u,{"data-slot":"badge","data-variant":o,className:ge(pk({variant:o}),f,n),...l})}function mk({className:n,type:o,...i}){return g.jsx("input",{type:o,"data-slot":"input",className:ge("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",n),...i})}function gk({className:n,...o}){return g.jsx("textarea",{"data-slot":"textarea",className:ge("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",n),...o})}function vk({...n}){return g.jsx(gb,{"data-slot":"select",...n})}function yk({...n}){return g.jsx(yb,{"data-slot":"select-value",...n})}function wk({className:n,size:o="default",children:i,...a}){return g.jsxs(vb,{"data-slot":"select-trigger","data-size":o,className:ge("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",n),...a,children:[i,g.jsx(wb,{asChild:!0,children:g.jsx(xu,{className:"size-4 opacity-50"})})]})}function xk({className:n,children:o,position:i="item-aligned",align:a="center",...l}){return g.jsx(xb,{children:g.jsxs(bb,{"data-slot":"select-content",className:ge("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",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,align:a,...l,children:[g.jsx(kk,{}),g.jsx(kb,{className:ge("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o}),g.jsx(Sk,{})]})})}function bk({className:n,children:o,...i}){return g.jsxs(Sb,{"data-slot":"select-item",className:ge("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),...i,children:[g.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:g.jsx(Eb,{children:g.jsx(wu,{className:"size-4"})})}),g.jsx(Cb,{children:o})]})}function kk({className:n,...o}){return g.jsx(_b,{"data-slot":"select-scroll-up-button",className:ge("flex cursor-default items-center justify-center py-1",n),...o,children:g.jsx(Qv,{className:"size-4"})})}function Sk({className:n,...o}){return g.jsx(Nb,{"data-slot":"select-scroll-down-button",className:ge("flex cursor-default items-center justify-center py-1",n),...o,children:g.jsx(xu,{className:"size-4"})})}function Ck({className:n,...o}){return g.jsx(Hd,{"data-slot":"checkbox",className:ge("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",n),...o,children:g.jsx(Wd,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:g.jsx(wu,{className:"size-3.5"})})})}function Ek({className:n,size:o="default",...i}){return g.jsx(Lb,{"data-slot":"switch","data-size":o,className:ge("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",n),...i,children:g.jsx(Ob,{"data-slot":"switch-thumb",className:ge("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})})}function _k({className:n,...o}){return g.jsx(f1,{"data-slot":"label",className:ge("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),...o})}function Nk({className:n,...o}){return g.jsx(T1,{"data-slot":"radio-group",className:ge("grid gap-3",n),...o})}function Rk({className:n,...o}){return g.jsx(j1,{"data-slot":"radio-group-item",className:ge("aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",n),...o,children:g.jsx(A1,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:g.jsx(e0,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"})})})}function Pk({className:n,orientation:o="horizontal",decorative:i=!0,...a}){return g.jsx(jb,{"data-slot":"separator",decorative:i,orientation:o,className:ge("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",n),...a})}function Tk({className:n,orientation:o="horizontal",...i}){return g.jsx($b,{"data-slot":"tabs","data-orientation":o,orientation:o,className:ge("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",n),...i})}const jk=ti("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function Ak({className:n,variant:o="default",...i}){return g.jsx(Ub,{"data-slot":"tabs-list","data-variant":o,className:ge(jk({variant:o}),n),...i})}function Ik({className:n,...o}){return g.jsx(Hb,{"data-slot":"tabs-trigger",className:ge("cursor-pointer relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",n),...o})}function zk({className:n,...o}){return g.jsx(Bb,{"data-slot":"tabs-content",className:ge("flex-1 outline-none",n),...o})}function Mk({className:n,children:o,...i}){return g.jsxs(W1,{"data-slot":"scroll-area",className:ge("relative",n),...i,children:[g.jsx(V1,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:o}),g.jsx(Lk,{}),g.jsx(G1,{})]})}function Lk({className:n,orientation:o="vertical",...i}){return g.jsx(ap,{"data-slot":"scroll-area-scrollbar",orientation:o,className:ge("flex touch-none p-px transition-colors select-none",o==="vertical"&&"h-full w-2.5 border-l border-l-transparent",o==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...i,children:g.jsx(dp,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function il({className:n,size:o="default",...i}){return g.jsx(Lw,{"data-slot":"avatar","data-size":o,className:ge("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",n),...i})}function sl({className:n,...o}){return g.jsx(Ow,{"data-slot":"avatar-image",className:ge("aspect-square size-full",n),...o})}function al({className:n,...o}){return g.jsx(Dw,{"data-slot":"avatar-fallback",className:ge("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",n),...o})}function Ok({className:n,...o}){return g.jsx("div",{"data-slot":"skeleton",className:ge("animate-pulse rounded-md bg-accent",n),...o})}function Dk({delayDuration:n=0,...o}){return g.jsx(ik,{"data-slot":"tooltip-provider",delayDuration:n,...o})}function Fk({...n}){return g.jsx(sk,{"data-slot":"tooltip",...n})}function $k({...n}){return g.jsx(ak,{"data-slot":"tooltip-trigger",...n})}function Uk({className:n,sideOffset:o=0,children:i,...a}){return g.jsx(lk,{children:g.jsxs(ck,{"data-slot":"tooltip-content",sideOffset:o,className:ge("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",n),...a,children:[i,g.jsx(uk,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function Hk({className:n,value:o,...i}){return g.jsx(w1,{"data-slot":"progress",className:ge("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",n),...i,children:g.jsx(x1,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(o||0)}%)`}})})}const Bk=ti("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function Wk({className:n,variant:o,...i}){return g.jsx("div",{"data-slot":"alert",role:"alert",className:ge(Bk({variant:o}),n),...i})}function Vk({className:n,...o}){return g.jsx("div",{"data-slot":"alert-title",className:ge("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",n),...o})}function Gk({className:n,...o}){return g.jsx("div",{"data-slot":"alert-description",className:ge("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",n),...o})}function Kk({...n}){return g.jsx(Sy,{"data-slot":"collapsible",...n})}function Yk({...n}){return g.jsx(od,{"data-slot":"collapsible-trigger",...n})}function Xk({...n}){return g.jsx(id,{"data-slot":"collapsible-content",...n})}const gh={"arrow-left":Gv,calendar:Yv,"check-circle-2":qv,"chevron-left":Xv,"chevron-right":ea,clock:t0,"credit-card":n0,"external-link":r0,"help-circle":Zv,info:ta,"loader-2":ku,mail:na,"map-pin":o0,"message-circle":i0,"message-square":Su,package:s0,phone:a0,search:l0,"shopping-bag":c0,sparkles:u0,truck:d0,user:Cu,"x-circle":Jv,"alert-circle":bu,"book-open":Kv},vh={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},yh=n=>typeof n=="number"?vh[String(n)]??"gap-2":typeof n=="string"?vh[n.trim()]??"gap-2":"gap-2",Qk=({children:n,className:o,onClick:i})=>g.jsx(qr,{className:o,onClick:i,children:n}),qk=({children:n,className:o})=>g.jsx(Zr,{className:o,children:n}),Zk=({children:n,className:o})=>g.jsx(ey,{className:o,children:n}),Jk=({children:n,className:o,onClick:i,variant:a,size:l,disabled:u,title:f})=>g.jsx(mh,{className:o,variant:a,size:l,onClick:i,disabled:u,title:f,children:n}),eS=({children:n,className:o,variant:i,hue:a})=>g.jsx(hk,{className:o,variant:i,hue:a,children:n}),tS=({className:n,onChange:o,...i})=>g.jsx(mk,{className:n,onChange:o,...i}),nS=({className:n,onChange:o,...i})=>g.jsx(gk,{className:n,onChange:o,...i}),rS=({children:n,className:o,value:i,defaultValue:a,onChange:l,placeholder:u,disabled:f})=>g.jsxs(vk,{value:i,defaultValue:a,onValueChange:p=>{const h=l;h==null||h({target:{value:p}})},disabled:f,children:[g.jsx(wk,{className:o,children:g.jsx(yk,{placeholder:u})}),g.jsx(xk,{style:{zIndex:"calc(var(--widget-z, 1000) + 1)"},children:n})]}),oS=({children:n,value:o,disabled:i,className:a})=>g.jsx(bk,{value:o,disabled:i,className:a,children:n}),iS=({checked:n,onChange:o,disabled:i,className:a,id:l})=>{const u=n!==void 0,f=o;return g.jsx(Ck,{...u?{checked:n==="true"||n===!0}:{},onCheckedChange:p=>f==null?void 0:f({target:{value:String(p)}}),disabled:i,className:a,id:l})},sS=({checked:n,onChange:o,disabled:i,size:a,className:l,id:u})=>{const f=n!==void 0,p=o;return g.jsx(Ek,{...f?{checked:n==="true"||n===!0}:{},onCheckedChange:h=>p==null?void 0:p({target:{value:String(h)}}),disabled:i,size:a,className:l,id:u})},aS=({children:n,htmlFor:o,className:i})=>g.jsx(_k,{htmlFor:o,className:i,children:n}),lS=({children:n,value:o,defaultValue:i,onChange:a,className:l})=>g.jsx(Nk,{value:o,defaultValue:i,onValueChange:u=>{const f=a;f==null||f({target:{value:u}})},className:l,children:n}),cS=({value:n,disabled:o,className:i,id:a})=>g.jsx(Rk,{value:n,disabled:o,className:i,id:a}),uS=({className:n})=>g.jsx(Pk,{className:n}),dS=({children:n,defaultValue:o,className:i})=>g.jsx(Tk,{defaultValue:o,className:i,children:n}),fS=({children:n,className:o})=>g.jsx(Ak,{className:o,children:n}),pS=({children:n,value:o,className:i})=>g.jsx(Ik,{className:i,value:o,children:n}),hS=({children:n,value:o,className:i})=>g.jsx(zk,{className:i,value:o,children:n}),mS=({children:n,className:o})=>g.jsx(Mk,{className:o,children:n}),gS=({src:n,alt:o,className:i})=>{var a;return g.jsxs(il,{className:i,children:[g.jsx(sl,{src:n,alt:o}),g.jsx(al,{children:((a=o==null?void 0:o.charAt(0))==null?void 0:a.toUpperCase())||"?"})]})},vS=({width:n,height:o,className:i})=>g.jsx(Ok,{className:i,style:{width:n,height:o}}),yS=({children:n,content:o,className:i})=>g.jsx(Dk,{children:g.jsxs(Fk,{children:[g.jsx($k,{asChild:!0,children:g.jsx("span",{className:i,children:n})}),g.jsx(Uk,{children:g.jsx("p",{children:String(o)})})]})}),wS=({value:n,className:o})=>g.jsx(Hk,{value:typeof n=="string"?Number(n):n,className:o}),xS={default:ta,destructive:bu},bS=({children:n,variant:o,title:i,className:a})=>{const l=o,u=xS[l||"default"]||ta;return g.jsxs(Wk,{variant:l,className:a,children:[g.jsx(u,{className:"size-4"}),i?g.jsx(Vk,{children:String(i)}):null,n?g.jsx(Gk,{children:n}):null]})},kS=({children:n,defaultOpen:o,className:i})=>g.jsx(Kk,{defaultOpen:o==="true"||o===!0,className:i,children:n}),SS=({children:n,className:o})=>g.jsxs(Yk,{className:ge("flex items-center gap-1 cursor-pointer text-sm font-medium [&[data-state=open]>svg]:rotate-90",o),children:[g.jsx(ea,{className:"size-4 shrink-0 transition-transform duration-200"}),n]}),CS=({children:n,className:o})=>g.jsx(Xk,{className:o,children:n}),ES=({children:n,className:o})=>g.jsx("p",{className:ge("text-sm",o),children:n}),_S=({children:n,className:o,level:i})=>{const a=`h${i||"2"}`;return g.jsx(a,{className:ge("font-semibold tracking-tight",o),children:n})},NS=({children:n,className:o,direction:i,gap:a})=>{const l=i==="row"?"flex-row":"flex-col",u=yh(a);return g.jsx("div",{className:ge("flex",l,u,o),children:n})},RS=({children:n,className:o,gap:i})=>{const a=yh(i);return g.jsx("div",{className:ge("flex flex-row items-center",a,o),children:n})},PS=({children:n,className:o,href:i,target:a,rel:l})=>g.jsx("a",{href:i,target:a,rel:l,className:o,children:n}),TS=({title:n,children:o,className:i})=>g.jsxs(qr,{className:ge("overflow-hidden p-0 gap-0 shadow-sm",i),children:[n?g.jsx(Zr,{className:"px-6 py-3",children:g.jsx("h3",{className:"text-xs font-semibold tracking-wider text-muted-foreground",children:String(n)})}):null,g.jsx("div",{className:"flex flex-col gap-0 divide-y divide-border",children:o})]}),jS=({icon:n,label:o,description:i,onClick:a,className:l})=>{const u=n,f="size-5",p=u?gh[u]:null;return g.jsxs("button",{type:"button",className:ge("w-full h-auto px-6 py-6 flex items-center gap-2 justify-start cursor-pointer text-left rounded-none transition-colors hover:bg-accent/70",l),onClick:a,children:[p&&g.jsx(p,{className:`${f} shrink-0 text-muted-foreground`}),g.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0 items-start",children:[o?g.jsx("p",{className:"font-medium text-sm text-foreground",children:String(o)}):null,i?g.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:String(i)}):null]}),g.jsx(ea,{className:"mr-1 size-4 shrink-0 text-muted-foreground"})]})},AS=({name:n,size:o,className:i})=>{const l={sm:"size-3",md:"size-5",lg:"size-6"}[o]??"size-4",u=n,f=gh[u],p=u==="sparkles"?"sparkle-icon":"";return f?g.jsx(f,{className:ge(l,p,i)}):g.jsx("span",{className:ge("inline-block",l,p,i),"data-icon":u})},IS=()=>({"ui-card":Qk,"ui-card-content":qk,"ui-card-header":Zk,"ui-button":Jk,"ui-text":ES,"ui-heading":_S,"ui-badge":eS,"ui-input":tS,"ui-textarea":nS,"ui-select":rS,"ui-select-option":oS,"ui-checkbox":iS,"ui-switch":sS,"ui-label":aS,"ui-radio-group":lS,"ui-radio-group-item":cS,"ui-stack":NS,"ui-inline":RS,"ui-separator":uS,"ui-tabs":dS,"ui-tabs-list":fS,"ui-tabs-trigger":pS,"ui-tabs-content":hS,"ui-scroll-area":mS,"ui-avatar":gS,"ui-icon":AS,"ui-link":PS,"ui-menu-item":jS,"ui-menu":TS,"ui-skeleton":vS,"ui-tooltip":yS,"ui-progress":wS,"ui-alert":bS,"ui-collapsible":kS,"ui-collapsible-trigger":SS,"ui-collapsible-content":CS}),wh="/api/ecommerce",xh=async(n,o)=>{const i=o?`${o.replace(/\/$/,"")}${wh}`:wh,a=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}),l=await a.json();if(!a.ok)throw new Error(l.error||"API request failed");return l.data},zS=({className:n})=>g.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 190 190",version:"1.1",className:n,children:[g.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:g.jsx("path",{d:"M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z",fill:"rgb(15,13,25)"})}),g.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:g.jsx("path",{d:"M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z",fill:"rgb(232,218,234)"})}),g.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:g.jsx("path",{d:"M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z",fill:"rgb(15,13,25)"})}),g.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:g.jsx("path",{d:"M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z",fill:"rgb(252,248,161)"})})]}),bh="stackable-dev-badge-styles",MS=()=>{if(typeof document>"u"||document.getElementById(bh))return;const n=document.createElement("style");n.id=bh,n.textContent=`
|
|
295
295
|
@keyframes stackable-icon-wiggle {
|
|
296
296
|
0% { transform: rotate(0deg); }
|
|
297
297
|
70% { transform: rotate(200deg); }
|
|
298
298
|
85% { transform: rotate(175deg); }
|
|
299
299
|
100% { transform: rotate(180deg); }
|
|
300
300
|
}
|
|
301
|
-
`,document.head.appendChild(n)},zS=({className:n="",extensions:o=[]})=>{const[i,l]=m.useState([]),[a,u]=m.useState(!1),[f,p]=m.useState(!1),h=m.useRef(null);if(m.useEffect(()=>{MS()},[]),m.useEffect(()=>{if(typeof window>"u")return;const w=()=>{const b=mu(window.location.search);l(b)};w();const x=()=>w();return window.addEventListener("popstate",x),()=>window.removeEventListener("popstate",x)},[]),i.length===0)return null;const v=w=>{if(w.stopPropagation(),typeof window>"u")return;const x=new URL(window.location.href);x.searchParams.delete("_stackable_dev"),window.location.href=x.toString()};return g.jsxs("div",{className:n,style:{position:"fixed",bottom:"16px",left:"50%",transform:f?"translate(-50%, -2px)":"translate(-50%, 0)",zIndex:2147483647,fontFamily:"system-ui, -apple-system, sans-serif",transition:"transform 0.15s ease",display:"flex",flexDirection:"column",alignItems:"center"},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[a&&g.jsx("div",{style:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderBottom:"1px solid #eab308",borderRadius:"8px 8px 0 0",boxShadow:"0 -4px 16px -4px rgba(0,0,0,0.12), 0 -2px 6px -4px rgba(0,0,0,0.08)",padding:"8px 0",width:"420px",maxWidth:"90vw"},children:i.map((w,x)=>{var b;return g.jsxs("div",{style:{padding:"8px 12px",borderBottom:x<i.length-1?"1px solid #f3f4f6":"none"},children:[g.jsx("div",{style:{fontSize:"12px",fontWeight:600,color:"#111",fontFamily:"ui-monospace, SFMono-Regular, monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:((b=o.find(C=>C.id===w.extensionId))==null?void 0:b.manifest.name)||w.extensionId}),g.jsxs("div",{style:{fontSize:"11px",color:"#6b7280",fontFamily:"ui-monospace, SFMono-Regular, monospace",marginTop:"2px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:w.bundleUrl,children:["→ ",w.bundleUrl]})]},w.extensionId)})}),g.jsxs("div",{onClick:()=>u(!a),style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#eab308",color:"#000",padding:"8px 12px",borderRadius:a?"0 0 8px 8px":"8px",boxShadow:f?"0 12px 24px -4px rgba(0,0,0,0.18), 0 6px 10px -4px rgba(0,0,0,0.12)":"0 8px 16px -4px rgba(0,0,0,0.12), 0 4px 6px -4px rgba(0,0,0,0.08)",fontSize:"14px",fontWeight:500,cursor:"pointer",userSelect:"none",transition:"box-shadow 0.15s ease, border-radius 0.1s ease"},children:[g.jsx("span",{ref:h,style:{display:"inline-flex",animation:f&&!a?"stackable-icon-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both":"none"},children:g.jsx(IS,{className:"w-6 h-6"})}),g.jsx("span",{children:"Dev Mode"}),g.jsxs("span",{style:{fontSize:"12px",opacity:.75},children:["(",i.length," extension",i.length>1?"s":"",")"]}),g.jsx("button",{onClick:v,style:{marginLeft:"4px",backgroundColor:"rgba(0, 0, 0, 0.15)",border:"none",borderRadius:"4px",cursor:"pointer",padding:"2px 8px",fontSize:"12px",fontWeight:500,color:"inherit",fontFamily:"inherit",transition:"background-color 0.1s ease"},onMouseOver:w=>{w.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.25)"},onMouseOut:w=>{w.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.15)"},children:"Clear"})]})]})},$i=(n,o)=>n?`${n.replace(/\/$/,"")}${o}`:o,la=n=>n.startsWith("http")&&!n.endsWith(".js"),LS=async(n,o,i)=>{const l=new Map;return await Promise.all(n.filter(a=>a.manifest.permissions.includes("data:fetch")).map(async a=>{const u=a.bundleUrl?la(a.bundleUrl):!1,f=$i(o,"/proxy-token"),p=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:i,extensionId:a.id,devMode:u})});if(p.ok){const{token:h,encryptionKey:v}=await p.json();l.set(a.id,{token:h,encryptionKey:v})}else console.warn(`[embeddables] Failed to obtain proxy token for extension ${a.id} (${p.status}) — data.fetch calls will be unavailable for this extension`)})),l},OS=n=>typeof n=="object"&&n!==null&&n.encrypted===!0&&Array.isArray(n.data),DS=({instanceId:n,apiBase:o,hostBase:i,appId:l,children:a,customerId:u,customerEmail:f})=>{const[p,h]=m.useState([]),[v,w]=m.useState(new Map),[x,b]=m.useState(!1);m.useEffect(()=>{(async()=>{const k=n;try{if(!k){console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"),h([]),b(!0);return}if(!o||!l){console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"),h([]),b(!0);return}const S=await fetch($i(o,`/instances/${l}/${k}`));if(!S.ok){console.warn(`[ExtensionSetup] Instance not found or failed to load: ${k}`),h([]),b(!0);return}const N=await S.json(),R=mu(typeof window<"u"?window.location.search:""),T=Fv(N,R),I=await LS(T,o,l);h(T),w(new Map(I))}catch(S){console.error("Failed to load extensions:",S)}finally{b(!0)}})()},[n,l,o]),m.useEffect(()=>{if(!o||!l||p.length===0)return;const k=setInterval(async()=>{const S=[];await Promise.all(p.filter(N=>N.manifest.permissions.includes("data:fetch")).map(async N=>{const R=N.bundleUrl?la(N.bundleUrl):!1,T=$i(o,"/proxy-token"),I=await fetch(T,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:l,extensionId:N.id,devMode:R})});if(I.ok){const{token:U,encryptionKey:$}=await I.json();S.push([N.id,{token:U,encryptionKey:$}])}else console.warn(`[embeddables] Proxy token refresh failed for extension ${N.id} (${I.status}) — using stale token`)})),S.length>0&&w(N=>{const R=new Map(N);for(const[T,I]of S)R.set(T,I);return R})},3300*1e3);return()=>clearInterval(k)},[p,o,l]),m.useEffect(()=>{if(v.size===0)return;const _=k=>{const S=k.data;if((S==null?void 0:S.type)!=="extension-ready")return;const N=S.extensionId,R=p.find(I=>I.id===N);if(!(R!=null&&R.bundleUrl)||la(R.bundleUrl))return;const T=v.get(N);T&&Qo(N,{type:"extension-encryption-key",encryptionKey:T.encryptionKey})};return window.addEventListener("message",_),()=>window.removeEventListener("message",_)},[p,v]);const C=m.useMemo(()=>({"data.query":async _=>xh(_,i),"data.fetch":async(_,k)=>{const S=v.get(_);if(!S)return{status:0,ok:!1,data:{error:"data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"}};const N=OS(k)?k:{url:k.url,method:k.method??"GET",headers:k.headers??{},body:k.body??null},R=$i(o,"/proxy"),T=await fetch(R,{method:"POST",headers:{"Content-Type":"application/json","X-Extension-Id":_,"X-Application-Id":l??"",Authorization:`Bearer ${S.token}`},body:JSON.stringify(N)}),I=await T.json();return{status:I.status??T.status,ok:I.ok??T.ok,data:I.data}},"actions.toast":async _=>{if(console.log(`[Toast] ${_.type||"info"}: ${_.message}`),typeof window<"u"){const k=new CustomEvent("ext-toast",{detail:_});window.dispatchEvent(k)}},"actions.invoke":async _=>{if(_.action==="newConversation")return window.dispatchEvent(new CustomEvent("ext-new-conversation",{detail:_})),{success:!0};throw new Error(`Unknown action: ${_.action}`)},"context.read":async()=>({customerId:u??"",customerEmail:f??""})}),[o,l,i,u,f,v]);return x?g.jsxs(g.Fragment,{children:[g.jsx(Iv,{extensions:p,capabilityHandlers:C,components:AS(),children:a}),g.jsx(zS,{extensions:p})]}):null},FS={dark:"dark",light:"widget-theme-light"},$S=({children:n,theme:o="inherit"})=>g.jsx("div",{"data-id":"widget-body",className:FS[o],children:g.jsx("div",{className:"h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300",children:g.jsx("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground",children:n})})}),US=({onClick:n,icon:o=Vv})=>g.jsx("div",{className:"fixed bottom-8 right-8 z-50",children:g.jsx(mh,{className:"h-12 w-12 rounded-full",size:"icon",onClick:n,children:g.jsx(o,{className:"h-6 w-6"})})}),HS=({children:n,icon:o,theme:i})=>{const[l,a]=m.useState(!1),u=()=>{a(!l)};return g.jsxs(g.Fragment,{children:[g.jsx(US,{onClick:u,icon:o}),l&&g.jsx("div",{"data-id":"widget-container",className:"overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl",children:g.jsx($S,{theme:i,children:n})})]})},BS=({href:n,children:o})=>g.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",children:o}),WS=(n,o)=>{const[i,l]=m.useState(null),[a,u]=m.useState(!1),[f,p]=m.useState(null);return m.useEffect(()=>{if(!n){l(null);return}(async()=>{u(!0),p(null);try{const v=await xh({action:"getCustomer",customerId:n},o);l(v)}catch(v){p(v)}finally{u(!1)}})()},[n,o]),{customer:i,loading:a,error:f}},VS=({customerId:n,customerEmail:o,hostBase:i,children:l})=>{var h,v;const{customer:a,loading:u,error:f}=WS(n,i);if(u)return g.jsx(qr,{className:"border-none shadow-none bg-transparent",children:g.jsx(Zr,{className:"flex items-center justify-center p-6",children:g.jsx(ku,{className:"h-6 w-6 animate-spin text-muted-foreground"})})});if(f||!a){const w=o?o.split("@")[0]:n?`Customer ${n.slice(-4)}`:"Customer",x=w.split(/[\s._-]+/).map(b=>b[0]).join("").slice(0,2).toUpperCase();return g.jsx(qr,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:g.jsxs(Zr,{className:"p-4 pb-0 pt-2",children:[g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsxs(oa,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[g.jsx(ia,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(w)}&background=7c3aed&color=fff&size=128`,alt:w}),g.jsx(sa,{className:"text-lg",children:x})]}),g.jsxs("div",{className:"text-center w-full space-y-1",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-xs text-foreground/70 font-medium tracking-wide",children:"Welcome,"}),g.jsx("h2",{className:"text-lg font-bold text-foreground leading-tight",children:w})]}),o&&g.jsx("div",{className:"pt-2 flex flex-col items-center gap-1",children:g.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75",children:[g.jsx(tl,{className:"h-3 w-3","aria-hidden":"true"}),g.jsx("span",{className:"truncate max-w-[200px]",children:o})]})}),g.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:l})]})]}),g.jsx("p",{className:"pt-2 text-center text-xs text-muted-foreground",children:"Using fallback profile (customer API returned no data)"})]})})}const p=`${((h=a.first_name)==null?void 0:h[0])||""}${((v=a.last_name)==null?void 0:v[0])||""}`;return g.jsx(qr,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:g.jsx(Zr,{className:"p-4 pb-0 pt-2",children:g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsxs(oa,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[g.jsx(ia,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(a.name)}&background=7c3aed&color=fff&size=128`,alt:a.name}),g.jsx(sa,{className:"text-lg",children:p})]}),g.jsxs("div",{className:"text-center w-full space-y-1",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-xs text-foreground/70 font-medium tracking-wide",children:"Welcome,"}),g.jsx("h2",{className:"text-lg font-bold text-foreground leading-tight",children:a.name})]}),g.jsx("div",{className:"pt-2 flex flex-col items-center gap-1",children:g.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75",children:[g.jsx(tl,{className:"h-3 w-3","aria-hidden":"true"}),g.jsx("span",{className:"truncate max-w-[200px]",children:a.email})]})}),g.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:l})]})]})})})},kh=(n,o)=>{m.useEffect(()=>{const i=o.current;if(!i)return;let l=document.getElementById(n);l||(l=document.createElement("div"),l.id=n,l.style.cssText="position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;",document.body.appendChild(l));const a=new MutationObserver(()=>{for(;l.firstChild;)i.appendChild(document.adoptNode(l.firstChild))});return a.observe(l,{childList:!0,subtree:!0}),()=>{a.disconnect(),l==null||l.remove()}},[n,o])},GS=({customization:n})=>{const o=m.useRef(null);return kh("widget_conversations",o),m.useEffect(()=>{!window.zE||!o.current||n&&window.zE("messenger:set","customization",{conversationList:n})},[n]),g.jsx("div",{ref:o,className:"h-full overflow-hidden"})},KS=({customization:n})=>{const o=m.useRef(null);return kh("widget_messages",o),m.useEffect(()=>{!window.zE||!o.current||n&&window.zE("messenger:set","customization",{messageLog:n})},[n]),g.jsx("div",{ref:o,className:"h-full overflow-hidden"})},aa=25,ca=75,YS=({header:n,buttons:o,hostBase:i,customerId:l="",customerEmail:a="",primaryPercent:u=50})=>{const f=Math.max(aa,Math.min(ca,u)),[p,h]=m.useState("account"),[v,w]=m.useState(f),[x,b]=m.useState(!1),[C,_]=m.useState(!1),[k,S]=m.useState(!1),N=m.useRef(null),R=m.useCallback(()=>!window.zE||!document.getElementById("widget_conversations")||!document.getElementById("widget_messages")?!1:(window.zE("messenger","render",{mode:"embedded",conversationList:{targetElement:"#widget_conversations"},messageLog:{targetElement:"#widget_messages"}}),window.zE("messenger:set","customization",{common:{hideHeader:!1},conversationList:{hideHeader:!0,hideNewConversationButton:!0},messageLog:{hideHeader:!0}}),!0),[]);m.useEffect(()=>{if(R()){_(!0);return}const $=setInterval(()=>{R()&&(_(!0),clearInterval($))},100),O=setTimeout(()=>{clearInterval($),console.warn("Zendesk widget failed to load after 10 seconds")},1e4);return()=>{clearInterval($),clearTimeout(O)}},[R]);const T=m.useCallback($=>{const{detail:O}=$;if(!window.zE||!O.payload||(O==null?void 0:O.action)!=="newConversation")return!1;window.zE("messenger:ui","newConversation",O.payload)},[]);m.useEffect(()=>(window.addEventListener("ext-new-conversation",T),()=>{window.removeEventListener("ext-new-conversation",T)}),[T]),m.useEffect(()=>{if(!k)return;const $=D=>{if(!N.current)return;const Y=N.current.getBoundingClientRect();if((x?Y.width:Y.height)===0)return;const ne=x?(D.clientX-Y.left)/Y.width*100:(D.clientY-Y.top)/Y.height*100,se=Math.max(aa,Math.min(ca,ne));w(se)},O=()=>{S(!1),document.body.style.cursor="",document.body.style.userSelect=""};return document.body.style.cursor=x?"col-resize":"row-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",$),window.addEventListener("mouseup",O),window.addEventListener("blur",O),()=>{window.removeEventListener("mousemove",$),window.removeEventListener("mouseup",O),window.removeEventListener("blur",O),document.body.style.cursor="",document.body.style.userSelect=""}},[k,x]),m.useEffect(()=>{if(!N.current)return;const $=N.current,O=()=>{const Y=getComputedStyle($).flexDirection==="row";b(Y)};O();const D=new ResizeObserver(O);return D.observe($),()=>{D.disconnect()}},[]);const I=m.useCallback($=>{if($.detail===2){w(f);return}$.preventDefault(),S(!0)},[f]),U={customerId:l,customerEmail:a};return g.jsxs("div",{"data-component":"zendesk-wrapper",className:"flex-1 flex flex-col z-10 overflow-hidden",style:{containerType:"inline-size"},children:[g.jsx("style",{children:'@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'}),g.jsxs("div",{ref:N,"data-id":"panel-layout",className:"relative flex-1 overflow-hidden flex flex-col",children:[g.jsxs("div",{"data-id":"primary-panel",className:"min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",style:{flexBasis:`${v}%`},children:[g.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[g.jsx("h2",{className:"font-semibold text-sm text-foreground",children:p==="account"?"My Account":"My Conversations"}),g.jsxs("div",{className:"flex items-center gap-1",children:[n&&g.jsx("div",{className:"flex mr-1 gap-1",children:n}),g.jsxs("div",{className:"flex rounded-lg bg-muted p-1",children:[o,g.jsx("button",{onClick:()=>h("account"),className:ve("rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",p==="account"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"My Account",children:g.jsx(Cu,{className:"h-4 w-4"})}),g.jsx("button",{onClick:()=>h("conversations"),className:ve("rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",p==="conversations"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"Conversations",children:g.jsx(Su,{className:"h-4 w-4"})})]})]})]}),g.jsxs("div",{className:"flex-1 overflow-y-auto p-4 relative",children:[g.jsxs("div",{className:ve("flex flex-col gap-2",p==="conversations"&&"hidden"),children:[g.jsx(VS,{customerId:l,customerEmail:a,hostBase:i,children:g.jsx(qo,{target:"slot.header",context:U,className:"flex-none"})}),g.jsx(qo,{target:"slot.content",context:U,className:"flex flex-col gap-2"})]}),g.jsx("div",{className:ve("h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",p==="account"&&"hidden"),children:g.jsx(GS,{})})]})]}),g.jsxs("div",{"data-id":"secondary-panel",className:"min-h-0 min-w-0 flex-none flex flex-col bg-white",style:{flexBasis:`${100-v}%`},children:[g.jsx("div",{className:"flex-1 overflow-hidden",children:g.jsx(KS,{})}),g.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500",children:[g.jsx(qo,{target:"slot.footer",context:U,className:"flex items-center gap-1",fallback:g.jsxs(g.Fragment,{children:[g.jsx("div",{children:"powered by"}),g.jsx(BS,{href:"https://zendesk.com",children:"Zendesk"})]})}),g.jsx(qo,{target:"slot.footer-links",context:U,className:"flex items-center gap-1",separator:g.jsx("span",{className:"text-zinc-300",children:"/"}),render:({children:$,index:O})=>g.jsxs(g.Fragment,{children:[O===0&&g.jsx("span",{className:"text-zinc-300",children:"+"}),$]})})]})]}),g.jsx("div",{className:ve("group/resize absolute z-20 flex items-center justify-center",x?"top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize":"w-full h-3 -mt-2.5 cursor-row-resize"),style:x?{left:`${v}%`}:{top:`${v}%`},onMouseDown:I,role:"separator","aria-label":"Resize panels","aria-orientation":x?"vertical":"horizontal","aria-valuemin":aa,"aria-valuemax":ca,"aria-valuenow":Math.round(v),children:g.jsx("div",{className:ve("rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",x?"h-20 w-0.5":"h-0.5 w-20",k?"bg-foreground/70 dark:bg-white opacity-100":"opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100")})}),k&&g.jsx("div",{className:ve("absolute inset-0 z-40",x?"cursor-col-resize":"cursor-row-resize"),onMouseUp:()=>S(!1)})]})]})},XS="ze-snippet",Sh=n=>`https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(n)}`,QS=(n,o={})=>{if(typeof window>"u"||typeof document>"u"||!n)return Promise.resolve();const{autorender:i=!1,scriptId:l=XS}=o;window.zEMessenger={autorender:i};const a=document.getElementById(l);if(a){if(a.getAttribute("src")===Sh(n))return Promise.resolve();a.remove()}return new Promise((u,f)=>{const p=document.createElement("script");p.id=l,p.src=Sh(n),p.async=!0,p.onload=()=>u(),p.onerror=()=>f(new Error("Failed to load Zendesk snippet")),document.head.appendChild(p)})},qS=({snippetKey:n,instanceId:o,hostBase:i,apiBase:l,appId:a,theme:u,customerId:f,customerEmail:p})=>{const h=u==="dark"||u==="light"?u:"inherit";return m.useEffect(()=>{n&&QS(n).catch(v=>{console.error("[StackableWidget] Failed to load Zendesk snippet:",v)})},[n]),g.jsx(DS,{instanceId:o,apiBase:l,hostBase:i,appId:a,customerId:f,customerEmail:p,children:g.jsx(HS,{theme:h,children:g.jsx(YS,{hostBase:i,customerId:f,customerEmail:p,primaryPercent:40})})})};class ZS extends HTMLElement{constructor(){super();eu(this,"mountNode");eu(this,"root");const i=this.attachShadow({mode:"open"}),l=document.createElement("style");l.textContent=kv,i.appendChild(l),this.mountNode=document.createElement("div"),i.appendChild(this.mountNode)}static get observedAttributes(){return["instance","host-base","api-base","app-id","theme","customer-id","customer-email","snippet-key"]}connectedCallback(){this.root=bv.createRoot(this.mountNode),this.renderWidget()}disconnectedCallback(){var i;(i=this.root)==null||i.unmount(),this.root=void 0}attributeChangedCallback(){this.renderWidget()}renderWidget(){if(!this.root)return;const i=this.getAttribute("theme")??"";this.mountNode.classList.toggle("dark",i==="dark"),this.root.render(g.jsx(qS,{instanceId:this.getAttribute("instance")??"",snippetKey:this.getAttribute("snippet-key")??"",hostBase:this.getAttribute("host-base")??"",apiBase:this.getAttribute("api-base")??void 0,appId:this.getAttribute("app-id")??"",theme:i,customerId:this.getAttribute("customer-id")??void 0,customerEmail:this.getAttribute("customer-email")??void 0}))}}customElements.get("stackable-widget")||customElements.define("stackable-widget",ZS)})();
|
|
301
|
+
`,document.head.appendChild(n)},LS=({className:n="",extensions:o=[]})=>{const[i,a]=m.useState([]),[l,u]=m.useState(!1),[f,p]=m.useState(!1),h=m.useRef(null);if(m.useEffect(()=>{MS()},[]),m.useEffect(()=>{if(typeof window>"u")return;const w=()=>{const b=gu(window.location.search);a(b)};w();const x=()=>w();return window.addEventListener("popstate",x),()=>window.removeEventListener("popstate",x)},[]),i.length===0)return null;const v=w=>{if(w.stopPropagation(),typeof window>"u")return;const x=new URL(window.location.href);x.searchParams.delete("_stackable_dev"),window.location.href=x.toString()};return g.jsxs("div",{className:n,style:{position:"fixed",bottom:"16px",left:"50%",transform:f?"translate(-50%, -2px)":"translate(-50%, 0)",zIndex:2147483647,fontFamily:"system-ui, -apple-system, sans-serif",transition:"transform 0.15s ease",display:"flex",flexDirection:"column",alignItems:"center"},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[l&&g.jsx("div",{style:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderBottom:"1px solid #eab308",borderRadius:"8px 8px 0 0",boxShadow:"0 -4px 16px -4px rgba(0,0,0,0.12), 0 -2px 6px -4px rgba(0,0,0,0.08)",padding:"8px 0",width:"420px",maxWidth:"90vw"},children:i.map((w,x)=>{var b;return g.jsxs("div",{style:{padding:"8px 12px",borderBottom:x<i.length-1?"1px solid #f3f4f6":"none"},children:[g.jsx("div",{style:{fontSize:"12px",fontWeight:600,color:"#111",fontFamily:"ui-monospace, SFMono-Regular, monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:((b=o.find(C=>C.id===w.extensionId))==null?void 0:b.manifest.name)||w.extensionId}),g.jsxs("div",{style:{fontSize:"11px",color:"#6b7280",fontFamily:"ui-monospace, SFMono-Regular, monospace",marginTop:"2px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:w.bundleUrl,children:["→ ",w.bundleUrl]})]},w.extensionId)})}),g.jsxs("div",{onClick:()=>u(!l),style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#eab308",color:"#000",padding:"8px 12px",borderRadius:l?"0 0 8px 8px":"8px",boxShadow:f?"0 12px 24px -4px rgba(0,0,0,0.18), 0 6px 10px -4px rgba(0,0,0,0.12)":"0 8px 16px -4px rgba(0,0,0,0.12), 0 4px 6px -4px rgba(0,0,0,0.08)",fontSize:"14px",fontWeight:500,cursor:"pointer",userSelect:"none",transition:"box-shadow 0.15s ease, border-radius 0.1s ease"},children:[g.jsx("span",{ref:h,style:{display:"inline-flex",animation:f&&!l?"stackable-icon-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both":"none"},children:g.jsx(zS,{className:"w-6 h-6"})}),g.jsx("span",{children:"Dev Mode"}),g.jsxs("span",{style:{fontSize:"12px",opacity:.75},children:["(",i.length," extension",i.length>1?"s":"",")"]}),g.jsx("button",{onClick:v,style:{marginLeft:"4px",backgroundColor:"rgba(0, 0, 0, 0.15)",border:"none",borderRadius:"4px",cursor:"pointer",padding:"2px 8px",fontSize:"12px",fontWeight:500,color:"inherit",fontFamily:"inherit",transition:"background-color 0.1s ease"},onMouseOver:w=>{w.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.25)"},onMouseOut:w=>{w.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.15)"},children:"Clear"})]})]})},$i=(n,o)=>n?`${n.replace(/\/$/,"")}${o}`:o,ll=n=>n.startsWith("http")&&!n.endsWith(".js"),OS=async(n,o,i)=>{const a=new Map;return await Promise.all(n.filter(l=>l.manifest.permissions.includes("data:fetch")).map(async l=>{const u=l.bundleUrl?ll(l.bundleUrl):!1,f=$i(o,"/proxy-token"),p=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:i,extensionId:l.id,devMode:u})});if(p.ok){const{token:h,encryptionKey:v}=await p.json();a.set(l.id,{token:h,encryptionKey:v})}else console.warn(`[embeddables] Failed to obtain proxy token for extension ${l.id} (${p.status}) — data.fetch calls will be unavailable for this extension`)})),a},DS=n=>typeof n=="object"&&n!==null&&n.encrypted===!0&&Array.isArray(n.data),FS=({instanceId:n,apiBase:o,hostBase:i,appId:a,children:l,customerId:u,customerEmail:f})=>{const[p,h]=m.useState([]),[v,w]=m.useState(new Map),[x,b]=m.useState(!1);m.useEffect(()=>{(async()=>{const k=n;try{if(!k){console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"),h([]),b(!0);return}if(!o||!a){console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"),h([]),b(!0);return}const S=await fetch($i(o,`/instances/${a}/${k}`));if(!S.ok){console.warn(`[ExtensionSetup] Instance not found or failed to load: ${k}`),h([]),b(!0);return}const N=await S.json(),R=gu(typeof window<"u"?window.location.search:""),T=Fv(N,R),I=await OS(T,o,a);h(T),w(new Map(I))}catch(S){console.error("Failed to load extensions:",S)}finally{b(!0)}})()},[n,a,o]),m.useEffect(()=>{if(!o||!a||p.length===0)return;const k=setInterval(async()=>{const S=[];await Promise.all(p.filter(N=>N.manifest.permissions.includes("data:fetch")).map(async N=>{const R=N.bundleUrl?ll(N.bundleUrl):!1,T=$i(o,"/proxy-token"),I=await fetch(T,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:a,extensionId:N.id,devMode:R})});if(I.ok){const{token:U,encryptionKey:$}=await I.json();S.push([N.id,{token:U,encryptionKey:$}])}else console.warn(`[embeddables] Proxy token refresh failed for extension ${N.id} (${I.status}) — using stale token`)})),S.length>0&&w(N=>{const R=new Map(N);for(const[T,I]of S)R.set(T,I);return R})},3300*1e3);return()=>clearInterval(k)},[p,o,a]),m.useEffect(()=>{if(v.size===0)return;const _=k=>{const S=k.data;if((S==null?void 0:S.type)!=="extension-ready")return;const N=S.extensionId,R=p.find(I=>I.id===N);if(!(R!=null&&R.bundleUrl)||ll(R.bundleUrl))return;const T=v.get(N);T&&Qo(N,{type:"extension-encryption-key",encryptionKey:T.encryptionKey})};return window.addEventListener("message",_),()=>window.removeEventListener("message",_)},[p,v]);const C=m.useMemo(()=>({"data.query":async _=>xh(_,i),"data.fetch":async(_,k)=>{const S=v.get(_);if(!S)return{status:0,ok:!1,data:{error:"data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"}};const N=DS(k)?k:{url:k.url,method:k.method??"GET",headers:k.headers??{},body:k.body??null},R=$i(o,"/proxy"),T=await fetch(R,{method:"POST",headers:{"Content-Type":"application/json","X-Extension-Id":_,"X-Application-Id":a??"",Authorization:`Bearer ${S.token}`},body:JSON.stringify(N)}),I=await T.json();return{status:I.status??T.status,ok:I.ok??T.ok,data:I.data}},"actions.toast":async _=>{if(console.log(`[Toast] ${_.type||"info"}: ${_.message}`),typeof window<"u"){const k=new CustomEvent("ext-toast",{detail:_});window.dispatchEvent(k)}},"actions.invoke":async _=>{if(_.action==="newConversation")return window.dispatchEvent(new CustomEvent("ext-new-conversation",{detail:_})),{success:!0};throw new Error(`Unknown action: ${_.action}`)},"context.read":async()=>({customerId:u??"",customerEmail:f??""})}),[o,a,i,u,f,v]);return x?g.jsxs(g.Fragment,{children:[g.jsx(Iv,{extensions:p,capabilityHandlers:C,components:IS(),children:l}),g.jsx(LS,{extensions:p})]}):null},$S={dark:"dark",light:"widget-theme-light"},US=({children:n,theme:o="inherit"})=>g.jsx("div",{"data-id":"widget-body",className:$S[o],children:g.jsx("div",{className:"h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300",children:g.jsx("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground",children:n})})}),HS=({onClick:n,icon:o=Vv})=>g.jsx("div",{className:"fixed bottom-8 right-8 z-50",children:g.jsx(mh,{className:"h-12 w-12 rounded-full",size:"icon",onClick:n,children:g.jsx(o,{className:"h-6 w-6"})})}),BS=({children:n,icon:o,theme:i})=>{const[a,l]=m.useState(!1),u=()=>{l(!a)};return g.jsxs(g.Fragment,{children:[g.jsx(HS,{onClick:u,icon:o}),a&&g.jsx("div",{"data-id":"widget-container",className:"overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl",style:{"--widget-z":1e3},children:g.jsx(US,{theme:i,children:n})})]})},WS=({href:n,children:o})=>g.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",children:o}),VS=(n,o)=>{const[i,a]=m.useState(null),[l,u]=m.useState(!1),[f,p]=m.useState(null);return m.useEffect(()=>{if(!n){a(null);return}(async()=>{u(!0),p(null);try{const v=await xh({action:"getCustomer",customerId:n},o);a(v)}catch(v){p(v)}finally{u(!1)}})()},[n,o]),{customer:i,loading:l,error:f}},GS=({customerId:n,customerEmail:o,hostBase:i,children:a})=>{var h,v;const{customer:l,loading:u,error:f}=VS(n,i);if(u)return g.jsx(qr,{className:"border-none shadow-none bg-transparent",children:g.jsx(Zr,{className:"flex items-center justify-center p-6",children:g.jsx(ku,{className:"h-6 w-6 animate-spin text-muted-foreground"})})});if(f||!l){const w=o?o.split("@")[0]:n?`Customer ${n.slice(-4)}`:"Customer",x=w.split(/[\s._-]+/).map(b=>b[0]).join("").slice(0,2).toUpperCase();return g.jsx(qr,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:g.jsxs(Zr,{className:"p-4 pb-0 pt-2",children:[g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsxs(il,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[g.jsx(sl,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(w)}&background=7c3aed&color=fff&size=128`,alt:w}),g.jsx(al,{className:"text-lg",children:x})]}),g.jsxs("div",{className:"text-center w-full space-y-1",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-xs text-foreground/70 font-medium tracking-wide",children:"Welcome,"}),g.jsx("h2",{className:"text-lg font-bold text-foreground leading-tight",children:w})]}),o&&g.jsx("div",{className:"pt-2 flex flex-col items-center gap-1",children:g.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75",children:[g.jsx(na,{className:"h-3 w-3","aria-hidden":"true"}),g.jsx("span",{className:"truncate max-w-[200px]",children:o})]})}),g.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:a})]})]}),g.jsx("p",{className:"pt-2 text-center text-xs text-muted-foreground",children:"Using fallback profile (customer API returned no data)"})]})})}const p=`${((h=l.first_name)==null?void 0:h[0])||""}${((v=l.last_name)==null?void 0:v[0])||""}`;return g.jsx(qr,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:g.jsx(Zr,{className:"p-4 pb-0 pt-2",children:g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsxs(il,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[g.jsx(sl,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(l.name)}&background=7c3aed&color=fff&size=128`,alt:l.name}),g.jsx(al,{className:"text-lg",children:p})]}),g.jsxs("div",{className:"text-center w-full space-y-1",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-xs text-foreground/70 font-medium tracking-wide",children:"Welcome,"}),g.jsx("h2",{className:"text-lg font-bold text-foreground leading-tight",children:l.name})]}),g.jsx("div",{className:"pt-2 flex flex-col items-center gap-1",children:g.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75",children:[g.jsx(na,{className:"h-3 w-3","aria-hidden":"true"}),g.jsx("span",{className:"truncate max-w-[200px]",children:l.email})]})}),g.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:a})]})]})})})},kh=(n,o)=>{m.useEffect(()=>{const i=o.current;if(!i)return;let a=document.getElementById(n);a||(a=document.createElement("div"),a.id=n,a.style.cssText="position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;",document.body.appendChild(a));const l=new MutationObserver(()=>{for(;a.firstChild;)i.appendChild(document.adoptNode(a.firstChild))});return l.observe(a,{childList:!0,subtree:!0}),()=>{l.disconnect(),a==null||a.remove()}},[n,o])},KS=({customization:n})=>{const o=m.useRef(null);return kh("widget_conversations",o),m.useEffect(()=>{!window.zE||!o.current||n&&window.zE("messenger:set","customization",{conversationList:n})},[n]),g.jsx("div",{ref:o,className:"h-full overflow-hidden"})},YS=({customization:n})=>{const o=m.useRef(null);return kh("widget_messages",o),m.useEffect(()=>{!window.zE||!o.current||n&&window.zE("messenger:set","customization",{messageLog:n})},[n]),g.jsx("div",{ref:o,className:"h-full overflow-hidden"})},cl=25,ul=75,XS=({header:n,buttons:o,hostBase:i,customerId:a="",customerEmail:l="",primaryPercent:u=50})=>{const f=Math.max(cl,Math.min(ul,u)),[p,h]=m.useState("account"),[v,w]=m.useState(f),[x,b]=m.useState(!1),[C,_]=m.useState(!1),[k,S]=m.useState(!1),N=m.useRef(null),R=m.useCallback(()=>!window.zE||!document.getElementById("widget_conversations")||!document.getElementById("widget_messages")?!1:(window.zE("messenger","render",{mode:"embedded",conversationList:{targetElement:"#widget_conversations"},messageLog:{targetElement:"#widget_messages"}}),window.zE("messenger:set","customization",{common:{hideHeader:!1},conversationList:{hideHeader:!0,hideNewConversationButton:!0},messageLog:{hideHeader:!0}}),!0),[]);m.useEffect(()=>{if(R()){_(!0);return}const $=setInterval(()=>{R()&&(_(!0),clearInterval($))},100),O=setTimeout(()=>{clearInterval($),console.warn("Zendesk widget failed to load after 10 seconds")},1e4);return()=>{clearInterval($),clearTimeout(O)}},[R]);const T=m.useCallback($=>{const{detail:O}=$;if(!window.zE||!O.payload||(O==null?void 0:O.action)!=="newConversation")return!1;window.zE("messenger:ui","newConversation",O.payload)},[]);m.useEffect(()=>(window.addEventListener("ext-new-conversation",T),()=>{window.removeEventListener("ext-new-conversation",T)}),[T]),m.useEffect(()=>{if(!k)return;const $=D=>{if(!N.current)return;const Y=N.current.getBoundingClientRect();if((x?Y.width:Y.height)===0)return;const ne=x?(D.clientX-Y.left)/Y.width*100:(D.clientY-Y.top)/Y.height*100,se=Math.max(cl,Math.min(ul,ne));w(se)},O=()=>{S(!1),document.body.style.cursor="",document.body.style.userSelect=""};return document.body.style.cursor=x?"col-resize":"row-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",$),window.addEventListener("mouseup",O),window.addEventListener("blur",O),()=>{window.removeEventListener("mousemove",$),window.removeEventListener("mouseup",O),window.removeEventListener("blur",O),document.body.style.cursor="",document.body.style.userSelect=""}},[k,x]),m.useEffect(()=>{if(!N.current)return;const $=N.current,O=()=>{const Y=getComputedStyle($).flexDirection==="row";b(Y)};O();const D=new ResizeObserver(O);return D.observe($),()=>{D.disconnect()}},[]);const I=m.useCallback($=>{if($.detail===2){w(f);return}$.preventDefault(),S(!0)},[f]),U={customerId:a,customerEmail:l};return g.jsxs("div",{"data-component":"zendesk-wrapper",className:"flex-1 flex flex-col z-10 overflow-hidden",style:{containerType:"inline-size"},children:[g.jsx("style",{children:'@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'}),g.jsxs("div",{ref:N,"data-id":"panel-layout",className:"relative flex-1 overflow-hidden flex flex-col",children:[g.jsxs("div",{"data-id":"primary-panel",className:"min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",style:{flexBasis:`${v}%`},children:[g.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[g.jsx("h2",{className:"font-semibold text-sm text-foreground",children:p==="account"?"My Account":"My Conversations"}),g.jsxs("div",{className:"flex items-center gap-1",children:[n&&g.jsx("div",{className:"flex mr-1 gap-1",children:n}),g.jsxs("div",{className:"flex rounded-lg bg-muted p-1",children:[o,g.jsx("button",{onClick:()=>h("account"),className:ge("rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",p==="account"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"My Account",children:g.jsx(Cu,{className:"h-4 w-4"})}),g.jsx("button",{onClick:()=>h("conversations"),className:ge("rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",p==="conversations"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"Conversations",children:g.jsx(Su,{className:"h-4 w-4"})})]})]})]}),g.jsxs("div",{className:"flex-1 overflow-y-auto p-4 relative",children:[g.jsxs("div",{className:ge("flex flex-col gap-2",p==="conversations"&&"hidden"),children:[g.jsx(GS,{customerId:a,customerEmail:l,hostBase:i,children:g.jsx(qo,{target:"slot.header",context:U,className:"flex-none"})}),g.jsx(qo,{target:"slot.content",context:U,className:"flex flex-col gap-2"})]}),g.jsx("div",{className:ge("h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",p==="account"&&"hidden"),children:g.jsx(KS,{})})]})]}),g.jsxs("div",{"data-id":"secondary-panel",className:"min-h-0 min-w-0 flex-none flex flex-col bg-white",style:{flexBasis:`${100-v}%`},children:[g.jsx("div",{className:"flex-1 overflow-hidden",children:g.jsx(YS,{})}),g.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500",children:[g.jsx(qo,{target:"slot.footer",context:U,className:"flex items-center gap-1",fallback:g.jsxs(g.Fragment,{children:[g.jsx("div",{children:"powered by"}),g.jsx(WS,{href:"https://zendesk.com",children:"Zendesk"})]})}),g.jsx(qo,{target:"slot.footer-links",context:U,className:"flex items-center gap-1",separator:g.jsx("span",{className:"text-zinc-300",children:"/"}),render:({children:$,index:O})=>g.jsxs(g.Fragment,{children:[O===0&&g.jsx("span",{className:"text-zinc-300",children:"+"}),$]})})]})]}),g.jsx("div",{className:ge("group/resize absolute z-20 flex items-center justify-center",x?"top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize":"w-full h-3 -mt-2.5 cursor-row-resize"),style:x?{left:`${v}%`}:{top:`${v}%`},onMouseDown:I,role:"separator","aria-label":"Resize panels","aria-orientation":x?"vertical":"horizontal","aria-valuemin":cl,"aria-valuemax":ul,"aria-valuenow":Math.round(v),children:g.jsx("div",{className:ge("rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",x?"h-20 w-0.5":"h-0.5 w-20",k?"bg-foreground/70 dark:bg-white opacity-100":"opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100")})}),k&&g.jsx("div",{className:ge("absolute inset-0 z-40",x?"cursor-col-resize":"cursor-row-resize"),onMouseUp:()=>S(!1)})]})]})},QS="ze-snippet",Sh=n=>`https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(n)}`,qS=(n,o={})=>{if(typeof window>"u"||typeof document>"u"||!n)return Promise.resolve();const{autorender:i=!1,scriptId:a=QS}=o;window.zEMessenger={autorender:i};const l=document.getElementById(a);if(l){if(l.getAttribute("src")===Sh(n))return Promise.resolve();l.remove()}return new Promise((u,f)=>{const p=document.createElement("script");p.id=a,p.src=Sh(n),p.async=!0,p.onload=()=>u(),p.onerror=()=>f(new Error("Failed to load Zendesk snippet")),document.head.appendChild(p)})},ZS=({snippetKey:n,instanceId:o,hostBase:i,apiBase:a,appId:l,theme:u,customerId:f,customerEmail:p})=>{const h=u==="dark"||u==="light"?u:"inherit";return m.useEffect(()=>{n&&qS(n).catch(v=>{console.error("[StackableWidget] Failed to load Zendesk snippet:",v)})},[n]),g.jsx(FS,{instanceId:o,apiBase:a,hostBase:i,appId:l,customerId:f,customerEmail:p,children:g.jsx(BS,{theme:h,children:g.jsx(XS,{hostBase:i,customerId:f,customerEmail:p,primaryPercent:40})})})};class JS extends HTMLElement{constructor(){super();tu(this,"mountNode");tu(this,"root");const i=this.attachShadow({mode:"open"}),a=document.createElement("style");a.textContent=kv,i.appendChild(a),this.mountNode=document.createElement("div"),i.appendChild(this.mountNode)}static get observedAttributes(){return["instance","host-base","api-base","app-id","theme","customer-id","customer-email","snippet-key"]}connectedCallback(){this.root=bv.createRoot(this.mountNode),this.renderWidget()}disconnectedCallback(){var i;(i=this.root)==null||i.unmount(),this.root=void 0}attributeChangedCallback(){this.renderWidget()}renderWidget(){if(!this.root)return;const i=this.getAttribute("theme")??"";this.mountNode.classList.toggle("dark",i==="dark"),this.root.render(g.jsx(ZS,{instanceId:this.getAttribute("instance")??"",snippetKey:this.getAttribute("snippet-key")??"",hostBase:this.getAttribute("host-base")??"",apiBase:this.getAttribute("api-base")??void 0,appId:this.getAttribute("app-id")??"",theme:i,customerId:this.getAttribute("customer-id")??void 0,customerEmail:this.getAttribute("customer-email")??void 0}))}}customElements.get("stackable-widget")||customElements.define("stackable-widget",JS)})();
|