@stackable-labs/embeddables 1.21.4 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stackable-widget.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var F2=Object.defineProperty;var $2=(pr,nn,An)=>nn in pr?F2(pr,nn,{enumerable:!0,configurable:!0,writable:!0,value:An}):pr[nn]=An;var Su=(pr,nn,An)=>$2(pr,typeof nn!="symbol"?nn+"":nn,An);(function(){"use strict";function pr(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 nn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var An={exports:{}},Co={},_a={exports:{}},Te={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var QE=Object.defineProperty;var qE=(Wn,$t,fn)=>$t in Wn?QE(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 Cu;function _v(){if(Cu)return Te;Cu=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"),m=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),h=Symbol.iterator;function k(I){return I===null||typeof I!="object"?null:(I=h&&I[h]||I["@@iterator"],typeof I=="function"?I:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,b={};function S(I,U,ee){this.props=I,this.context=U,this.refs=b,this.updater=ee||C}S.prototype.isReactComponent={},S.prototype.setState=function(I,U){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,U,"setState")},S.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function E(){}E.prototype=S.prototype;function R(I,U,ee){this.props=I,this.context=U,this.refs=b,this.updater=ee||C}var P=R.prototype=new E;P.constructor=R,N(P,S.prototype),P.isPureReactComponent=!0;var j=Array.isArray,H=Object.prototype.hasOwnProperty,D={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function $(I,U,ee){var re,ne={},se=null,Z=null;if(U!=null)for(re in U.ref!==void 0&&(Z=U.ref),U.key!==void 0&&(se=""+U.key),U)H.call(U,re)&&!F.hasOwnProperty(re)&&(ne[re]=U[re]);var J=arguments.length-2;if(J===1)ne.children=ee;else if(1<J){for(var ce=Array(J),Ce=0;Ce<J;Ce++)ce[Ce]=arguments[Ce+2];ne.children=ce}if(I&&I.defaultProps)for(re in J=I.defaultProps,J)ne[re]===void 0&&(ne[re]=J[re]);return{$$typeof:n,type:I,key:se,ref:Z,props:ne,_owner:D.current}}function X(I,U){return{$$typeof:n,type:I.type,key:U,ref:I.ref,props:I.props,_owner:I._owner}}function ie(I){return typeof I=="object"&&I!==null&&I.$$typeof===n}function ae(I){var U={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ee){return U[ee]})}var le=/\/+/g;function me(I,U){return typeof I=="object"&&I!==null&&I.key!=null?ae(""+I.key):U.toString(36)}function ve(I,U,ee,re,ne){var se=typeof I;(se==="undefined"||se==="boolean")&&(I=null);var Z=!1;if(I===null)Z=!0;else switch(se){case"string":case"number":Z=!0;break;case"object":switch(I.$$typeof){case n:case o:Z=!0}}if(Z)return Z=I,ne=ne(Z),I=re===""?"."+me(Z,0):re,j(ne)?(ee="",I!=null&&(ee=I.replace(le,"$&/")+"/"),ve(ne,U,ee,"",function(Ce){return Ce})):ne!=null&&(ie(ne)&&(ne=X(ne,ee+(!ne.key||Z&&Z.key===ne.key?"":(""+ne.key).replace(le,"$&/")+"/")+I)),U.push(ne)),1;if(Z=0,re=re===""?".":re+":",j(I))for(var J=0;J<I.length;J++){se=I[J];var ce=re+me(se,J);Z+=ve(se,U,ee,ce,ne)}else if(ce=k(I),typeof ce=="function")for(I=ce.call(I),J=0;!(se=I.next()).done;)se=se.value,ce=re+me(se,J++),Z+=ve(se,U,ee,ce,ne);else if(se==="object")throw U=String(I),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Z}function Se(I,U,ee){if(I==null)return I;var re=[],ne=0;return ve(I,re,"","",function(se){return U.call(ee,se,ne++)}),re}function G(I){if(I._status===-1){var U=I._result;U=U(),U.then(function(ee){(I._status===0||I._status===-1)&&(I._status=1,I._result=ee)},function(ee){(I._status===0||I._status===-1)&&(I._status=2,I._result=ee)}),I._status===-1&&(I._status=0,I._result=U)}if(I._status===1)return I._result.default;throw I._result}var te={current:null},B={transition:null},q={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:B,ReactCurrentOwner:D};function O(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:Se,forEach:function(I,U,ee){Se(I,function(){U.apply(this,arguments)},ee)},count:function(I){var U=0;return Se(I,function(){U++}),U},toArray:function(I){return Se(I,function(U){return U})||[]},only:function(I){if(!ie(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Te.Component=S,Te.Fragment=i,Te.Profiler=l,Te.PureComponent=R,Te.StrictMode=a,Te.Suspense=m,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,Te.act=O,Te.cloneElement=function(I,U,ee){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var re=N({},I.props),ne=I.key,se=I.ref,Z=I._owner;if(U!=null){if(U.ref!==void 0&&(se=U.ref,Z=D.current),U.key!==void 0&&(ne=""+U.key),I.type&&I.type.defaultProps)var J=I.type.defaultProps;for(ce in U)H.call(U,ce)&&!F.hasOwnProperty(ce)&&(re[ce]=U[ce]===void 0&&J!==void 0?J[ce]:U[ce])}var ce=arguments.length-2;if(ce===1)re.children=ee;else if(1<ce){J=Array(ce);for(var Ce=0;Ce<ce;Ce++)J[Ce]=arguments[Ce+2];re.children=J}return{$$typeof:n,type:I.type,key:ne,ref:se,props:re,_owner:Z}},Te.createContext=function(I){return I={$$typeof:f,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:u,_context:I},I.Consumer=I},Te.createElement=$,Te.createFactory=function(I){var U=$.bind(null,I);return U.type=I,U},Te.createRef=function(){return{current:null}},Te.forwardRef=function(I){return{$$typeof:p,render:I}},Te.isValidElement=ie,Te.lazy=function(I){return{$$typeof:w,_payload:{_status:-1,_result:I},_init:G}},Te.memo=function(I,U){return{$$typeof:v,type:I,compare:U===void 0?null:U}},Te.startTransition=function(I){var U=B.transition;B.transition={};try{I()}finally{B.transition=U}},Te.unstable_act=O,Te.useCallback=function(I,U){return te.current.useCallback(I,U)},Te.useContext=function(I){return te.current.useContext(I)},Te.useDebugValue=function(){},Te.useDeferredValue=function(I){return te.current.useDeferredValue(I)},Te.useEffect=function(I,U){return te.current.useEffect(I,U)},Te.useId=function(){return te.current.useId()},Te.useImperativeHandle=function(I,U,ee){return te.current.useImperativeHandle(I,U,ee)},Te.useInsertionEffect=function(I,U){return te.current.useInsertionEffect(I,U)},Te.useLayoutEffect=function(I,U){return te.current.useLayoutEffect(I,U)},Te.useMemo=function(I,U){return te.current.useMemo(I,U)},Te.useReducer=function(I,U,ee){return te.current.useReducer(I,U,ee)},Te.useRef=function(I){return te.current.useRef(I)},Te.useState=function(I){return te.current.useState(I)},Te.useSyncExternalStore=function(I,U,ee){return te.current.useSyncExternalStore(I,U,ee)},Te.useTransition=function(){return te.current.useTransition()},Te.version="18.3.1",Te}var Eu;function bi(){return Eu||(Eu=1,_a.exports=_v()),_a.exports}/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var QE=Object.defineProperty;var qE=(Wn,$t,fn)=>$t in Wn?QE(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 _u;function Nv(){if(_u)return Co;_u=1;var n=bi(),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,m,v){var w,h={},k=null,C=null;v!==void 0&&(k=""+v),m.key!==void 0&&(k=""+m.key),m.ref!==void 0&&(C=m.ref);for(w in m)a.call(m,w)&&!u.hasOwnProperty(w)&&(h[w]=m[w]);if(p&&p.defaultProps)for(w in m=p.defaultProps,m)h[w]===void 0&&(h[w]=m[w]);return{$$typeof:o,type:p,key:k,ref:C,props:h,_owner:l.current}}return Co.Fragment=i,Co.jsx=f,Co.jsxs=f,Co}var Nu;function Rv(){return Nu||(Nu=1,An.exports=Nv()),An.exports}var y=Rv(),ki={},Na={exports:{}},wt={},Ra={exports:{}},Pa={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var QE=Object.defineProperty;var qE=(Wn,$t,fn)=>$t in Wn?QE(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 Ru;function Pv(){return Ru||(Ru=1,(function(n){function o(B,q){var O=B.length;B.push(q);e:for(;0<O;){var I=O-1>>>1,U=B[I];if(0<l(U,q))B[I]=q,B[O]=U,O=I;else break e}}function i(B){return B.length===0?null:B[0]}function a(B){if(B.length===0)return null;var q=B[0],O=B.pop();if(O!==q){B[0]=O;e:for(var I=0,U=B.length,ee=U>>>1;I<ee;){var re=2*(I+1)-1,ne=B[re],se=re+1,Z=B[se];if(0>l(ne,O))se<U&&0>l(Z,ne)?(B[I]=Z,B[se]=O,I=se):(B[I]=ne,B[re]=O,I=re);else if(se<U&&0>l(Z,O))B[I]=Z,B[se]=O,I=se;else break e}}return q}function l(B,q){var O=B.sortIndex-q.sortIndex;return O!==0?O:B.id-q.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 m=[],v=[],w=1,h=null,k=3,C=!1,N=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,E=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 P(B){for(var q=i(v);q!==null;){if(q.callback===null)a(v);else if(q.startTime<=B)a(v),q.sortIndex=q.expirationTime,o(m,q);else break;q=i(v)}}function j(B){if(b=!1,P(B),!N)if(i(m)!==null)N=!0,G(H);else{var q=i(v);q!==null&&te(j,q.startTime-B)}}function H(B,q){N=!1,b&&(b=!1,E($),$=-1),C=!0;var O=k;try{for(P(q),h=i(m);h!==null&&(!(h.expirationTime>q)||B&&!ae());){var I=h.callback;if(typeof I=="function"){h.callback=null,k=h.priorityLevel;var U=I(h.expirationTime<=q);q=n.unstable_now(),typeof U=="function"?h.callback=U:h===i(m)&&a(m),P(q)}else a(m);h=i(m)}if(h!==null)var ee=!0;else{var re=i(v);re!==null&&te(j,re.startTime-q),ee=!1}return ee}finally{h=null,k=O,C=!1}}var D=!1,F=null,$=-1,X=5,ie=-1;function ae(){return!(n.unstable_now()-ie<X)}function le(){if(F!==null){var B=n.unstable_now();ie=B;var q=!0;try{q=F(!0,B)}finally{q?me():(D=!1,F=null)}}else D=!1}var me;if(typeof R=="function")me=function(){R(le)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,Se=ve.port2;ve.port1.onmessage=le,me=function(){Se.postMessage(null)}}else me=function(){S(le,0)};function G(B){F=B,D||(D=!0,me())}function te(B,q){$=S(function(){B(n.unstable_now())},q)}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(B){B.callback=null},n.unstable_continueExecution=function(){N||C||(N=!0,G(H))},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_getFirstCallbackNode=function(){return i(m)},n.unstable_next=function(B){switch(k){case 1:case 2:case 3:var q=3;break;default:q=k}var O=k;k=q;try{return B()}finally{k=O}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(B,q){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var O=k;k=B;try{return q()}finally{k=O}},n.unstable_scheduleCallback=function(B,q,O){var I=n.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?I+O:I):O=I,B){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=O+U,B={id:w++,callback:q,priorityLevel:B,startTime:O,expirationTime:U,sortIndex:-1},O>I?(B.sortIndex=O,o(v,B),i(m)===null&&B===i(v)&&(b?(E($),$=-1):b=!0,te(j,O-I))):(B.sortIndex=U,o(m,B),N||C||(N=!0,G(H))),B},n.unstable_shouldYield=ae,n.unstable_wrapCallback=function(B){var q=k;return function(){var O=k;k=q;try{return B.apply(this,arguments)}finally{k=O}}}})(Pa)),Pa}var Pu;function Tv(){return Pu||(Pu=1,Ra.exports=Pv()),Ra.exports}/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,14 +30,14 @@ var QE=Object.defineProperty;var qE=(Wn,$t,fn)=>$t in Wn?QE(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
|
|
34
|
-
`+
|
|
33
|
+
*/var Tu;function Av(){if(Tu)return wt;Tu=1;var n=bi(),o=Tv();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"),m=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={},h={};function k(e){return m.call(h,e)?!0:m.call(w,e)?!1:v.test(e)?h[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 N(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 b(e,t,r,s,c,d,x){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=x}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new b(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 b(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new b(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 b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var E=/[\-:]([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(E,R);S[t]=new b(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(E,R);S[t]=new b(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(E,R);S[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});function P(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")&&(N(t,r,c,s)&&(r=null),s||c===null?k(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 j=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=Symbol.for("react.element"),D=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),ae=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),B=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var O=Object.assign,I;function U(e){if(I===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return`
|
|
34
|
+
`+I+e}var ee=!1;function re(e,t){if(!e||ee)return"";ee=!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
|
-
`),
|
|
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=`
|
|
36
|
+
`),x=c.length-1,_=d.length-1;1<=x&&0<=_&&c[x]!==d[_];)_--;for(;1<=x&&0<=_;x--,_--)if(c[x]!==d[_]){if(x!==1||_!==1)do if(x--,_--,0>_||c[x]!==d[_]){var T=`
|
|
37
|
+
`+c[x].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),T}while(1<=x&&0<=_);break}}}finally{ee=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?U(e):""}function ne(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function se(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 F:return"Fragment";case D:return"Portal";case X:return"Profiler";case $:return"StrictMode";case me:return"Suspense";case ve:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ae:return(e.displayName||"Context")+".Consumer";case ie:return(e._context.displayName||"Context")+".Provider";case le: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:se(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}function Z(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 se(t);case 8:return t===$?"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 J(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ce(e){var t=ce(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(x){s=""+x,d.call(this,x)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(x){s=""+x},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=ce(e)?e.checked?"true":"false":e.value),e=s,e!==r?(t.setValue(e),!0):!1}function Fe(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 Be(e,t){var r=t.checked;return O({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function un(e,t){var r=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;r=J(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 Kt(e,t){t=t.checked,t!=null&&P(e,"checked",t,!1)}function gt(e,t){Kt(e,t);var r=J(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")?tt(e,t.type,r):t.hasOwnProperty("defaultValue")&&tt(e,t.type,J(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kr(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 tt(e,t,r){(t!=="number"||Fe(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Sr=Array.isArray;function Bn(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=""+J(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 st(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return O({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bn(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(Sr(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:J(r)}}function gs(e,t){var r=J(t.value),s=J(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 vs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Cr(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 Oo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Cr(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Er,Jr=(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(Er=Er||document.createElement("div"),Er.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Er.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zt(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Hn={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},Un=["Webkit","ms","Moz","O"];Object.keys(Hn).forEach(function(e){Un.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hn[t]=Hn[e]})});function ys(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Hn.hasOwnProperty(e)&&Hn[e]?(""+t).trim():t+"px"}function ws(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var s=r.indexOf("--")===0,c=ys(r,t[r],s);r==="float"&&(r="cssFloat"),s?e.setProperty(r,c):e[r]=c}}var xs=O({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 eo(e,t){if(t){if(xs[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 Do(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 _r=null;function Lt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fo=null,Vn=null,kn=null;function $o(e){if(e=si(e)){if(typeof Fo!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Bs(t),Fo(e.stateNode,e.type,t))}}function _e(e){Vn?kn?kn.push(e):kn=[e]:Vn=e}function Ge(){if(Vn){var e=Vn,t=kn;if(kn=Vn=null,$o(e),t)for(e=0;e<t.length;e++)$o(t[e])}}function Ze(e,t){return e(t)}function dt(){}var Wn=!1;function Xe(e,t,r){if(Wn)return e(t,r);Wn=!0;try{return Ze(e,t,r)}finally{Wn=!1,(Vn!==null||kn!==null)&&(dt(),Ge())}}function nt(e,t){var r=e.stateNode;if(r===null)return null;var s=Bs(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 Gn=!1;if(p)try{var at={};Object.defineProperty(at,"passive",{get:function(){Gn=!0}}),window.addEventListener("test",at,at),window.removeEventListener("test",at,at)}catch{Gn=!1}function Pt(e,t,r,s,c,d,x,_,T){var L=Array.prototype.slice.call(arguments,3);try{t.apply(r,L)}catch(W){this.onError(W)}}var Yn=!1,Ot=null,Bo=!1,Hl=null,GC={onError:function(e){Yn=!0,Ot=e}};function YC(e,t,r,s,c,d,x,_,T){Yn=!1,Ot=null,Pt.apply(GC,arguments)}function KC(e,t,r,s,c,d,x,_,T){if(YC.apply(this,arguments),Yn){if(Yn){var L=Ot;Yn=!1,Ot=null}else throw Error(i(198));Bo||(Bo=!0,Hl=L)}}function Nr(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 Xm(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 Qm(e){if(Nr(e)!==e)throw Error(i(188))}function XC(e){var t=e.alternate;if(!t){if(t=Nr(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 Qm(c),e;if(d===s)return Qm(c),t;d=d.sibling}throw Error(i(188))}if(r.return!==s.return)r=c,s=d;else{for(var x=!1,_=c.child;_;){if(_===r){x=!0,r=c,s=d;break}if(_===s){x=!0,s=c,r=d;break}_=_.sibling}if(!x){for(_=d.child;_;){if(_===r){x=!0,r=d,s=c;break}if(_===s){x=!0,s=d,r=c;break}_=_.sibling}if(!x)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 qm(e){return e=XC(e),e!==null?Zm(e):null}function Zm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Zm(e);if(t!==null)return t;e=e.sibling}return null}var Jm=o.unstable_scheduleCallback,eh=o.unstable_cancelCallback,QC=o.unstable_shouldYield,qC=o.unstable_requestPaint,Ye=o.unstable_now,ZC=o.unstable_getCurrentPriorityLevel,Ul=o.unstable_ImmediatePriority,th=o.unstable_UserBlockingPriority,bs=o.unstable_NormalPriority,JC=o.unstable_LowPriority,nh=o.unstable_IdlePriority,ks=null,dn=null;function eE(e){if(dn&&typeof dn.onCommitFiberRoot=="function")try{dn.onCommitFiberRoot(ks,e,void 0,(e.current.flags&128)===128)}catch{}}var Xt=Math.clz32?Math.clz32:rE,tE=Math.log,nE=Math.LN2;function rE(e){return e>>>=0,e===0?32:31-(tE(e)/nE|0)|0}var Ss=64,Cs=4194304;function Ho(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 Es(e,t){var r=e.pendingLanes;if(r===0)return 0;var s=0,c=e.suspendedLanes,d=e.pingedLanes,x=r&268435455;if(x!==0){var _=x&~c;_!==0?s=Ho(_):(d&=x,d!==0&&(s=Ho(d)))}else x=r&~c,x!==0?s=Ho(x):d!==0&&(s=Ho(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-Xt(t),c=1<<r,s|=e[r],t&=~c;return s}function oE(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 iE(e,t){for(var r=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes;0<d;){var x=31-Xt(d),_=1<<x,T=c[x];T===-1?((_&r)===0||(_&s)!==0)&&(c[x]=oE(_,t)):T<=t&&(e.expiredLanes|=_),d&=~_}}function Vl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rh(){var e=Ss;return Ss<<=1,(Ss&4194240)===0&&(Ss=64),e}function Wl(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Uo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=r}function sE(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-Xt(r),d=1<<c;t[c]=0,s[c]=-1,e[c]=-1,r&=~d}}function Gl(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var s=31-Xt(r),c=1<<s;c&t|e[s]&t&&(e[s]|=t),r&=~c}}var ze=0;function oh(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ih,Yl,sh,ah,lh,Kl=!1,_s=[],Kn=null,Xn=null,Qn=null,Vo=new Map,Wo=new Map,qn=[],aE="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 ch(e,t){switch(e){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":Vo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wo.delete(t.pointerId)}}function Go(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=si(t),t!==null&&Yl(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function lE(e,t,r,s,c){switch(t){case"focusin":return Kn=Go(Kn,e,t,r,s,c),!0;case"dragenter":return Xn=Go(Xn,e,t,r,s,c),!0;case"mouseover":return Qn=Go(Qn,e,t,r,s,c),!0;case"pointerover":var d=c.pointerId;return Vo.set(d,Go(Vo.get(d)||null,e,t,r,s,c)),!0;case"gotpointercapture":return d=c.pointerId,Wo.set(d,Go(Wo.get(d)||null,e,t,r,s,c)),!0}return!1}function uh(e){var t=Rr(e.target);if(t!==null){var r=Nr(t);if(r!==null){if(t=r.tag,t===13){if(t=Xm(r),t!==null){e.blockedOn=t,lh(e.priority,function(){sh(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 Ns(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ql(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var s=new r.constructor(r.type,r);_r=s,r.target.dispatchEvent(s),_r=null}else return t=si(r),t!==null&&Yl(t),e.blockedOn=r,!1;t.shift()}return!0}function dh(e,t,r){Ns(e)&&r.delete(t)}function cE(){Kl=!1,Kn!==null&&Ns(Kn)&&(Kn=null),Xn!==null&&Ns(Xn)&&(Xn=null),Qn!==null&&Ns(Qn)&&(Qn=null),Vo.forEach(dh),Wo.forEach(dh)}function Yo(e,t){e.blockedOn===t&&(e.blockedOn=null,Kl||(Kl=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,cE)))}function Ko(e){function t(c){return Yo(c,e)}if(0<_s.length){Yo(_s[0],e);for(var r=1;r<_s.length;r++){var s=_s[r];s.blockedOn===e&&(s.blockedOn=null)}}for(Kn!==null&&Yo(Kn,e),Xn!==null&&Yo(Xn,e),Qn!==null&&Yo(Qn,e),Vo.forEach(t),Wo.forEach(t),r=0;r<qn.length;r++)s=qn[r],s.blockedOn===e&&(s.blockedOn=null);for(;0<qn.length&&(r=qn[0],r.blockedOn===null);)uh(r),r.blockedOn===null&&qn.shift()}var to=j.ReactCurrentBatchConfig,Rs=!0;function uE(e,t,r,s){var c=ze,d=to.transition;to.transition=null;try{ze=1,Xl(e,t,r,s)}finally{ze=c,to.transition=d}}function dE(e,t,r,s){var c=ze,d=to.transition;to.transition=null;try{ze=4,Xl(e,t,r,s)}finally{ze=c,to.transition=d}}function Xl(e,t,r,s){if(Rs){var c=Ql(e,t,r,s);if(c===null)pc(e,t,s,Ps,r),ch(e,s);else if(lE(c,e,t,r,s))s.stopPropagation();else if(ch(e,s),t&4&&-1<aE.indexOf(e)){for(;c!==null;){var d=si(c);if(d!==null&&ih(d),d=Ql(e,t,r,s),d===null&&pc(e,t,s,Ps,r),d===c)break;c=d}c!==null&&s.stopPropagation()}else pc(e,t,s,null,r)}}var Ps=null;function Ql(e,t,r,s){if(Ps=null,e=Lt(s),e=Rr(e),e!==null)if(t=Nr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Xm(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 Ps=e,null}function fh(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(ZC()){case Ul:return 1;case th:return 4;case bs:case JC:return 16;case nh:return 536870912;default:return 16}default:return 16}}var Zn=null,ql=null,Ts=null;function ph(){if(Ts)return Ts;var e,t=ql,r=t.length,s,c="value"in Zn?Zn.value:Zn.textContent,d=c.length;for(e=0;e<r&&t[e]===c[e];e++);var x=r-e;for(s=1;s<=x&&t[r-s]===c[d-s];s++);return Ts=c.slice(e,1<s?1-s:void 0)}function As(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 Is(){return!0}function mh(){return!1}function Tt(e){function t(r,s,c,d,x){this._reactName=r,this._targetInst=c,this.type=s,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(r=e[_],this[_]=r?r(d):d[_]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Is:mh,this.isPropagationStopped=mh,this}return O(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=Is)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Is)},persist:function(){},isPersistent:Is}),t}var no={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zl=Tt(no),Xo=O({},no,{view:0,detail:0}),fE=Tt(Xo),Jl,ec,Qo,js=O({},Xo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nc,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!==Qo&&(Qo&&e.type==="mousemove"?(Jl=e.screenX-Qo.screenX,ec=e.screenY-Qo.screenY):ec=Jl=0,Qo=e),Jl)},movementY:function(e){return"movementY"in e?e.movementY:ec}}),hh=Tt(js),pE=O({},js,{dataTransfer:0}),mE=Tt(pE),hE=O({},Xo,{relatedTarget:0}),tc=Tt(hE),gE=O({},no,{animationName:0,elapsedTime:0,pseudoElement:0}),vE=Tt(gE),yE=O({},no,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wE=Tt(yE),xE=O({},no,{data:0}),gh=Tt(xE),bE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kE={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"},SE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=SE[e])?!!t[e]:!1}function nc(){return CE}var EE=O({},Xo,{key:function(e){if(e.key){var t=bE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=As(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nc,charCode:function(e){return e.type==="keypress"?As(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?As(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_E=Tt(EE),NE=O({},js,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vh=Tt(NE),RE=O({},Xo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nc}),PE=Tt(RE),TE=O({},no,{propertyName:0,elapsedTime:0,pseudoElement:0}),AE=Tt(TE),IE=O({},js,{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}),jE=Tt(IE),ME=[9,13,27,32],rc=p&&"CompositionEvent"in window,qo=null;p&&"documentMode"in document&&(qo=document.documentMode);var zE=p&&"TextEvent"in window&&!qo,yh=p&&(!rc||qo&&8<qo&&11>=qo),wh=" ",xh=!1;function bh(e,t){switch(e){case"keyup":return ME.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ro=!1;function LE(e,t){switch(e){case"compositionend":return kh(t);case"keypress":return t.which!==32?null:(xh=!0,wh);case"textInput":return e=t.data,e===wh&&xh?null:e;default:return null}}function OE(e,t){if(ro)return e==="compositionend"||!rc&&bh(e,t)?(e=ph(),Ts=ql=Zn=null,ro=!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 yh&&t.locale!=="ko"?null:t.data;default:return null}}var DE={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 Sh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!DE[e.type]:t==="textarea"}function Ch(e,t,r,s){_e(s),t=Ds(t,"onChange"),0<t.length&&(r=new Zl("onChange","change",null,r,s),e.push({event:r,listeners:t}))}var Zo=null,Jo=null;function FE(e){Hh(e,0)}function Ms(e){var t=lo(e);if(Re(t))return e}function $E(e,t){if(e==="change")return t}var Eh=!1;if(p){var oc;if(p){var ic="oninput"in document;if(!ic){var _h=document.createElement("div");_h.setAttribute("oninput","return;"),ic=typeof _h.oninput=="function"}oc=ic}else oc=!1;Eh=oc&&(!document.documentMode||9<document.documentMode)}function Nh(){Zo&&(Zo.detachEvent("onpropertychange",Rh),Jo=Zo=null)}function Rh(e){if(e.propertyName==="value"&&Ms(Jo)){var t=[];Ch(t,Jo,e,Lt(e)),Xe(FE,t)}}function BE(e,t,r){e==="focusin"?(Nh(),Zo=t,Jo=r,Zo.attachEvent("onpropertychange",Rh)):e==="focusout"&&Nh()}function HE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ms(Jo)}function UE(e,t){if(e==="click")return Ms(t)}function VE(e,t){if(e==="input"||e==="change")return Ms(t)}function WE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:WE;function ei(e,t){if(Qt(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(!m.call(t,c)||!Qt(e[c],t[c]))return!1}return!0}function Ph(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Th(e,t){var r=Ph(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=Ph(r)}}function Ah(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ah(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ih(){for(var e=window,t=Fe();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Fe(e.document)}return t}function sc(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 GE(e){var t=Ih(),r=e.focusedElem,s=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ah(r.ownerDocument.documentElement,r)){if(s!==null&&sc(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=Th(r,d);var x=Th(r,s);c&&x&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),d>s?(e.addRange(t),e.extend(x.node,x.offset)):(t.setEnd(x.node,x.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 YE=p&&"documentMode"in document&&11>=document.documentMode,oo=null,ac=null,ti=null,lc=!1;function jh(e,t,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;lc||oo==null||oo!==Fe(s)||(s=oo,"selectionStart"in s&&sc(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}),ti&&ei(ti,s)||(ti=s,s=Ds(ac,"onSelect"),0<s.length&&(t=new Zl("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=oo)))}function zs(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var io={animationend:zs("Animation","AnimationEnd"),animationiteration:zs("Animation","AnimationIteration"),animationstart:zs("Animation","AnimationStart"),transitionend:zs("Transition","TransitionEnd")},cc={},Mh={};p&&(Mh=document.createElement("div").style,"AnimationEvent"in window||(delete io.animationend.animation,delete io.animationiteration.animation,delete io.animationstart.animation),"TransitionEvent"in window||delete io.transitionend.transition);function Ls(e){if(cc[e])return cc[e];if(!io[e])return e;var t=io[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Mh)return cc[e]=t[r];return e}var zh=Ls("animationend"),Lh=Ls("animationiteration"),Oh=Ls("animationstart"),Dh=Ls("transitionend"),Fh=new Map,$h="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 Jn(e,t){Fh.set(e,t),u(t,[e])}for(var uc=0;uc<$h.length;uc++){var dc=$h[uc],KE=dc.toLowerCase(),XE=dc[0].toUpperCase()+dc.slice(1);Jn(KE,"on"+XE)}Jn(zh,"onAnimationEnd"),Jn(Lh,"onAnimationIteration"),Jn(Oh,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(Dh,"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 ni="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(" "),QE=new Set("cancel close invalid load scroll toggle".split(" ").concat(ni));function Bh(e,t,r){var s=e.type||"unknown-event";e.currentTarget=r,KC(s,t,void 0,e),e.currentTarget=null}function Hh(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 x=s.length-1;0<=x;x--){var _=s[x],T=_.instance,L=_.currentTarget;if(_=_.listener,T!==d&&c.isPropagationStopped())break e;Bh(c,_,L),d=T}else for(x=0;x<s.length;x++){if(_=s[x],T=_.instance,L=_.currentTarget,_=_.listener,T!==d&&c.isPropagationStopped())break e;Bh(c,_,L),d=T}}}if(Bo)throw e=Hl,Bo=!1,Hl=null,e}function Oe(e,t){var r=t[wc];r===void 0&&(r=t[wc]=new Set);var s=e+"__bubble";r.has(s)||(Uh(t,e,2,!1),r.add(s))}function fc(e,t,r){var s=0;t&&(s|=4),Uh(r,e,s,t)}var Os="_reactListening"+Math.random().toString(36).slice(2);function ri(e){if(!e[Os]){e[Os]=!0,a.forEach(function(r){r!=="selectionchange"&&(QE.has(r)||fc(r,!1,e),fc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Os]||(t[Os]=!0,fc("selectionchange",!1,t))}}function Uh(e,t,r,s){switch(fh(t)){case 1:var c=uE;break;case 4:c=dE;break;default:c=Xl}r=c.bind(null,t,r,e),c=void 0,!Gn||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 pc(e,t,r,s,c){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var x=s.tag;if(x===3||x===4){var _=s.stateNode.containerInfo;if(_===c||_.nodeType===8&&_.parentNode===c)break;if(x===4)for(x=s.return;x!==null;){var T=x.tag;if((T===3||T===4)&&(T=x.stateNode.containerInfo,T===c||T.nodeType===8&&T.parentNode===c))return;x=x.return}for(;_!==null;){if(x=Rr(_),x===null)return;if(T=x.tag,T===5||T===6){s=d=x;continue e}_=_.parentNode}}s=s.return}Xe(function(){var L=d,W=Lt(r),Y=[];e:{var V=Fh.get(e);if(V!==void 0){var oe=Zl,fe=e;switch(e){case"keypress":if(As(r)===0)break e;case"keydown":case"keyup":oe=_E;break;case"focusin":fe="focus",oe=tc;break;case"focusout":fe="blur",oe=tc;break;case"beforeblur":case"afterblur":oe=tc;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":oe=hh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=mE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=PE;break;case zh:case Lh:case Oh:oe=vE;break;case Dh:oe=AE;break;case"scroll":oe=fE;break;case"wheel":oe=jE;break;case"copy":case"cut":case"paste":oe=wE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=vh}var he=(t&4)!==0,Ke=!he&&e==="scroll",M=he?V!==null?V+"Capture":null:V;he=[];for(var A=L,z;A!==null;){z=A;var Q=z.stateNode;if(z.tag===5&&Q!==null&&(z=Q,M!==null&&(Q=nt(A,M),Q!=null&&he.push(oi(A,Q,z)))),Ke)break;A=A.return}0<he.length&&(V=new oe(V,fe,null,r,W),Y.push({event:V,listeners:he}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",V&&r!==_r&&(fe=r.relatedTarget||r.fromElement)&&(Rr(fe)||fe[Sn]))break e;if((oe||V)&&(V=W.window===W?W:(V=W.ownerDocument)?V.defaultView||V.parentWindow:window,oe?(fe=r.relatedTarget||r.toElement,oe=L,fe=fe?Rr(fe):null,fe!==null&&(Ke=Nr(fe),fe!==Ke||fe.tag!==5&&fe.tag!==6)&&(fe=null)):(oe=null,fe=L),oe!==fe)){if(he=hh,Q="onMouseLeave",M="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(he=vh,Q="onPointerLeave",M="onPointerEnter",A="pointer"),Ke=oe==null?V:lo(oe),z=fe==null?V:lo(fe),V=new he(Q,A+"leave",oe,r,W),V.target=Ke,V.relatedTarget=z,Q=null,Rr(W)===L&&(he=new he(M,A+"enter",fe,r,W),he.target=z,he.relatedTarget=Ke,Q=he),Ke=Q,oe&&fe)t:{for(he=oe,M=fe,A=0,z=he;z;z=so(z))A++;for(z=0,Q=M;Q;Q=so(Q))z++;for(;0<A-z;)he=so(he),A--;for(;0<z-A;)M=so(M),z--;for(;A--;){if(he===M||M!==null&&he===M.alternate)break t;he=so(he),M=so(M)}he=null}else he=null;oe!==null&&Vh(Y,V,oe,he,!1),fe!==null&&Ke!==null&&Vh(Y,Ke,fe,he,!0)}}e:{if(V=L?lo(L):window,oe=V.nodeName&&V.nodeName.toLowerCase(),oe==="select"||oe==="input"&&V.type==="file")var ge=$E;else if(Sh(V))if(Eh)ge=VE;else{ge=HE;var we=BE}else(oe=V.nodeName)&&oe.toLowerCase()==="input"&&(V.type==="checkbox"||V.type==="radio")&&(ge=UE);if(ge&&(ge=ge(e,L))){Ch(Y,ge,r,W);break e}we&&we(e,V,L),e==="focusout"&&(we=V._wrapperState)&&we.controlled&&V.type==="number"&&tt(V,"number",V.value)}switch(we=L?lo(L):window,e){case"focusin":(Sh(we)||we.contentEditable==="true")&&(oo=we,ac=L,ti=null);break;case"focusout":ti=ac=oo=null;break;case"mousedown":lc=!0;break;case"contextmenu":case"mouseup":case"dragend":lc=!1,jh(Y,r,W);break;case"selectionchange":if(YE)break;case"keydown":case"keyup":jh(Y,r,W)}var xe;if(rc)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else ro?bh(e,r)&&(Ee="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ee="onCompositionStart");Ee&&(yh&&r.locale!=="ko"&&(ro||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&ro&&(xe=ph()):(Zn=W,ql="value"in Zn?Zn.value:Zn.textContent,ro=!0)),we=Ds(L,Ee),0<we.length&&(Ee=new gh(Ee,e,null,r,W),Y.push({event:Ee,listeners:we}),xe?Ee.data=xe:(xe=kh(r),xe!==null&&(Ee.data=xe)))),(xe=zE?LE(e,r):OE(e,r))&&(L=Ds(L,"onBeforeInput"),0<L.length&&(W=new gh("onBeforeInput","beforeinput",null,r,W),Y.push({event:W,listeners:L}),W.data=xe))}Hh(Y,t)})}function oi(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ds(e,t){for(var r=t+"Capture",s=[];e!==null;){var c=e,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=nt(e,r),d!=null&&s.unshift(oi(e,d,c)),d=nt(e,t),d!=null&&s.push(oi(e,d,c))),e=e.return}return s}function so(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Vh(e,t,r,s,c){for(var d=t._reactName,x=[];r!==null&&r!==s;){var _=r,T=_.alternate,L=_.stateNode;if(T!==null&&T===s)break;_.tag===5&&L!==null&&(_=L,c?(T=nt(r,d),T!=null&&x.unshift(oi(r,T,_))):c||(T=nt(r,d),T!=null&&x.push(oi(r,T,_)))),r=r.return}x.length!==0&&e.push({event:t,listeners:x})}var qE=/\r\n?/g,ZE=/\u0000|\uFFFD/g;function Wh(e){return(typeof e=="string"?e:""+e).replace(qE,`
|
|
38
|
+
`).replace(ZE,"")}function Fs(e,t,r){if(t=Wh(t),Wh(e)!==t&&r)throw Error(i(425))}function $s(){}var mc=null,hc=null;function gc(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 vc=typeof setTimeout=="function"?setTimeout:void 0,JE=typeof clearTimeout=="function"?clearTimeout:void 0,Gh=typeof Promise=="function"?Promise:void 0,e2=typeof queueMicrotask=="function"?queueMicrotask:typeof Gh<"u"?function(e){return Gh.resolve(null).then(e).catch(t2)}:vc;function t2(e){setTimeout(function(){throw e})}function yc(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),Ko(t);return}s--}else r!=="$"&&r!=="$?"&&r!=="$!"||s++;r=c}while(r);Ko(t)}function er(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Yh(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 ao=Math.random().toString(36).slice(2),fn="__reactFiber$"+ao,ii="__reactProps$"+ao,Sn="__reactContainer$"+ao,wc="__reactEvents$"+ao,n2="__reactListeners$"+ao,r2="__reactHandles$"+ao;function Rr(e){var t=e[fn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Sn]||r[fn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Yh(e);e!==null;){if(r=e[fn])return r;e=Yh(e)}return t}e=r,r=e.parentNode}return null}function si(e){return e=e[fn]||e[Sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Bs(e){return e[ii]||null}var xc=[],co=-1;function tr(e){return{current:e}}function De(e){0>co||(e.current=xc[co],xc[co]=null,co--)}function Le(e,t){co++,xc[co]=e.current,e.current=t}var nr={},ft=tr(nr),kt=tr(!1),Pr=nr;function uo(e,t){var r=e.type.contextTypes;if(!r)return nr;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 St(e){return e=e.childContextTypes,e!=null}function Hs(){De(kt),De(ft)}function Kh(e,t,r){if(ft.current!==nr)throw Error(i(168));Le(ft,t),Le(kt,r)}function Xh(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,Z(e)||"Unknown",c));return O({},r,s)}function Us(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nr,Pr=ft.current,Le(ft,e),Le(kt,kt.current),!0}function Qh(e,t,r){var s=e.stateNode;if(!s)throw Error(i(169));r?(e=Xh(e,t,Pr),s.__reactInternalMemoizedMergedChildContext=e,De(kt),De(ft),Le(ft,e)):De(kt),Le(kt,r)}var Cn=null,Vs=!1,bc=!1;function qh(e){Cn===null?Cn=[e]:Cn.push(e)}function o2(e){Vs=!0,qh(e)}function rr(){if(!bc&&Cn!==null){bc=!0;var e=0,t=ze;try{var r=Cn;for(ze=1;e<r.length;e++){var s=r[e];do s=s(!0);while(s!==null)}Cn=null,Vs=!1}catch(c){throw Cn!==null&&(Cn=Cn.slice(e+1)),Jm(Ul,rr),c}finally{ze=t,bc=!1}}return null}var fo=[],po=0,Ws=null,Gs=0,Dt=[],Ft=0,Tr=null,En=1,_n="";function Ar(e,t){fo[po++]=Gs,fo[po++]=Ws,Ws=e,Gs=t}function Zh(e,t,r){Dt[Ft++]=En,Dt[Ft++]=_n,Dt[Ft++]=Tr,Tr=e;var s=En;e=_n;var c=32-Xt(s)-1;s&=~(1<<c),r+=1;var d=32-Xt(t)+c;if(30<d){var x=c-c%5;d=(s&(1<<x)-1).toString(32),s>>=x,c-=x,En=1<<32-Xt(t)+c|r<<c|s,_n=d+e}else En=1<<d|r<<c|s,_n=e}function kc(e){e.return!==null&&(Ar(e,1),Zh(e,1,0))}function Sc(e){for(;e===Ws;)Ws=fo[--po],fo[po]=null,Gs=fo[--po],fo[po]=null;for(;e===Tr;)Tr=Dt[--Ft],Dt[Ft]=null,_n=Dt[--Ft],Dt[Ft]=null,En=Dt[--Ft],Dt[Ft]=null}var At=null,It=null,$e=!1,qt=null;function Jh(e,t){var r=Ut(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 eg(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,At=e,It=er(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,At=e,It=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Tr!==null?{id:En,overflow:_n}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Ut(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,At=e,It=null,!0):!1;default:return!1}}function Cc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ec(e){if($e){var t=It;if(t){var r=t;if(!eg(e,t)){if(Cc(e))throw Error(i(418));t=er(r.nextSibling);var s=At;t&&eg(e,t)?Jh(s,r):(e.flags=e.flags&-4097|2,$e=!1,At=e)}}else{if(Cc(e))throw Error(i(418));e.flags=e.flags&-4097|2,$e=!1,At=e}}}function tg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;At=e}function Ys(e){if(e!==At)return!1;if(!$e)return tg(e),$e=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!gc(e.type,e.memoizedProps)),t&&(t=It)){if(Cc(e))throw ng(),Error(i(418));for(;t;)Jh(e,t),t=er(t.nextSibling)}if(tg(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){It=er(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}It=null}}else It=At?er(e.stateNode.nextSibling):null;return!0}function ng(){for(var e=It;e;)e=er(e.nextSibling)}function mo(){It=At=null,$e=!1}function _c(e){qt===null?qt=[e]:qt.push(e)}var i2=j.ReactCurrentBatchConfig;function ai(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(x){var _=c.refs;x===null?delete _[d]:_[d]=x},t._stringRef=d,t)}if(typeof e!="string")throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function Ks(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rg(e){var t=e._init;return t(e._payload)}function og(e){function t(M,A){if(e){var z=M.deletions;z===null?(M.deletions=[A],M.flags|=16):z.push(A)}}function r(M,A){if(!e)return null;for(;A!==null;)t(M,A),A=A.sibling;return null}function s(M,A){for(M=new Map;A!==null;)A.key!==null?M.set(A.key,A):M.set(A.index,A),A=A.sibling;return M}function c(M,A){return M=dr(M,A),M.index=0,M.sibling=null,M}function d(M,A,z){return M.index=z,e?(z=M.alternate,z!==null?(z=z.index,z<A?(M.flags|=2,A):z):(M.flags|=2,A)):(M.flags|=1048576,A)}function x(M){return e&&M.alternate===null&&(M.flags|=2),M}function _(M,A,z,Q){return A===null||A.tag!==6?(A=vu(z,M.mode,Q),A.return=M,A):(A=c(A,z),A.return=M,A)}function T(M,A,z,Q){var ge=z.type;return ge===F?W(M,A,z.props.children,Q,z.key):A!==null&&(A.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===G&&rg(ge)===A.type)?(Q=c(A,z.props),Q.ref=ai(M,A,z),Q.return=M,Q):(Q=ya(z.type,z.key,z.props,null,M.mode,Q),Q.ref=ai(M,A,z),Q.return=M,Q)}function L(M,A,z,Q){return A===null||A.tag!==4||A.stateNode.containerInfo!==z.containerInfo||A.stateNode.implementation!==z.implementation?(A=yu(z,M.mode,Q),A.return=M,A):(A=c(A,z.children||[]),A.return=M,A)}function W(M,A,z,Q,ge){return A===null||A.tag!==7?(A=Fr(z,M.mode,Q,ge),A.return=M,A):(A=c(A,z),A.return=M,A)}function Y(M,A,z){if(typeof A=="string"&&A!==""||typeof A=="number")return A=vu(""+A,M.mode,z),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case H:return z=ya(A.type,A.key,A.props,null,M.mode,z),z.ref=ai(M,null,A),z.return=M,z;case D:return A=yu(A,M.mode,z),A.return=M,A;case G:var Q=A._init;return Y(M,Q(A._payload),z)}if(Sr(A)||q(A))return A=Fr(A,M.mode,z,null),A.return=M,A;Ks(M,A)}return null}function V(M,A,z,Q){var ge=A!==null?A.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return ge!==null?null:_(M,A,""+z,Q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case H:return z.key===ge?T(M,A,z,Q):null;case D:return z.key===ge?L(M,A,z,Q):null;case G:return ge=z._init,V(M,A,ge(z._payload),Q)}if(Sr(z)||q(z))return ge!==null?null:W(M,A,z,Q,null);Ks(M,z)}return null}function oe(M,A,z,Q,ge){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return M=M.get(z)||null,_(A,M,""+Q,ge);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case H:return M=M.get(Q.key===null?z:Q.key)||null,T(A,M,Q,ge);case D:return M=M.get(Q.key===null?z:Q.key)||null,L(A,M,Q,ge);case G:var we=Q._init;return oe(M,A,z,we(Q._payload),ge)}if(Sr(Q)||q(Q))return M=M.get(z)||null,W(A,M,Q,ge,null);Ks(A,Q)}return null}function fe(M,A,z,Q){for(var ge=null,we=null,xe=A,Ee=A=0,it=null;xe!==null&&Ee<z.length;Ee++){xe.index>Ee?(it=xe,xe=null):it=xe.sibling;var Me=V(M,xe,z[Ee],Q);if(Me===null){xe===null&&(xe=it);break}e&&xe&&Me.alternate===null&&t(M,xe),A=d(Me,A,Ee),we===null?ge=Me:we.sibling=Me,we=Me,xe=it}if(Ee===z.length)return r(M,xe),$e&&Ar(M,Ee),ge;if(xe===null){for(;Ee<z.length;Ee++)xe=Y(M,z[Ee],Q),xe!==null&&(A=d(xe,A,Ee),we===null?ge=xe:we.sibling=xe,we=xe);return $e&&Ar(M,Ee),ge}for(xe=s(M,xe);Ee<z.length;Ee++)it=oe(xe,M,Ee,z[Ee],Q),it!==null&&(e&&it.alternate!==null&&xe.delete(it.key===null?Ee:it.key),A=d(it,A,Ee),we===null?ge=it:we.sibling=it,we=it);return e&&xe.forEach(function(fr){return t(M,fr)}),$e&&Ar(M,Ee),ge}function he(M,A,z,Q){var ge=q(z);if(typeof ge!="function")throw Error(i(150));if(z=ge.call(z),z==null)throw Error(i(151));for(var we=ge=null,xe=A,Ee=A=0,it=null,Me=z.next();xe!==null&&!Me.done;Ee++,Me=z.next()){xe.index>Ee?(it=xe,xe=null):it=xe.sibling;var fr=V(M,xe,Me.value,Q);if(fr===null){xe===null&&(xe=it);break}e&&xe&&fr.alternate===null&&t(M,xe),A=d(fr,A,Ee),we===null?ge=fr:we.sibling=fr,we=fr,xe=it}if(Me.done)return r(M,xe),$e&&Ar(M,Ee),ge;if(xe===null){for(;!Me.done;Ee++,Me=z.next())Me=Y(M,Me.value,Q),Me!==null&&(A=d(Me,A,Ee),we===null?ge=Me:we.sibling=Me,we=Me);return $e&&Ar(M,Ee),ge}for(xe=s(M,xe);!Me.done;Ee++,Me=z.next())Me=oe(xe,M,Ee,Me.value,Q),Me!==null&&(e&&Me.alternate!==null&&xe.delete(Me.key===null?Ee:Me.key),A=d(Me,A,Ee),we===null?ge=Me:we.sibling=Me,we=Me);return e&&xe.forEach(function(D2){return t(M,D2)}),$e&&Ar(M,Ee),ge}function Ke(M,A,z,Q){if(typeof z=="object"&&z!==null&&z.type===F&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case H:e:{for(var ge=z.key,we=A;we!==null;){if(we.key===ge){if(ge=z.type,ge===F){if(we.tag===7){r(M,we.sibling),A=c(we,z.props.children),A.return=M,M=A;break e}}else if(we.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===G&&rg(ge)===we.type){r(M,we.sibling),A=c(we,z.props),A.ref=ai(M,we,z),A.return=M,M=A;break e}r(M,we);break}else t(M,we);we=we.sibling}z.type===F?(A=Fr(z.props.children,M.mode,Q,z.key),A.return=M,M=A):(Q=ya(z.type,z.key,z.props,null,M.mode,Q),Q.ref=ai(M,A,z),Q.return=M,M=Q)}return x(M);case D:e:{for(we=z.key;A!==null;){if(A.key===we)if(A.tag===4&&A.stateNode.containerInfo===z.containerInfo&&A.stateNode.implementation===z.implementation){r(M,A.sibling),A=c(A,z.children||[]),A.return=M,M=A;break e}else{r(M,A);break}else t(M,A);A=A.sibling}A=yu(z,M.mode,Q),A.return=M,M=A}return x(M);case G:return we=z._init,Ke(M,A,we(z._payload),Q)}if(Sr(z))return fe(M,A,z,Q);if(q(z))return he(M,A,z,Q);Ks(M,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,A!==null&&A.tag===6?(r(M,A.sibling),A=c(A,z),A.return=M,M=A):(r(M,A),A=vu(z,M.mode,Q),A.return=M,M=A),x(M)):r(M,A)}return Ke}var ho=og(!0),ig=og(!1),Xs=tr(null),Qs=null,go=null,Nc=null;function Rc(){Nc=go=Qs=null}function Pc(e){var t=Xs.current;De(Xs),e._currentValue=t}function Tc(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 vo(e,t){Qs=e,Nc=go=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ct=!0),e.firstContext=null)}function $t(e){var t=e._currentValue;if(Nc!==e)if(e={context:e,memoizedValue:t,next:null},go===null){if(Qs===null)throw Error(i(308));go=e,Qs.dependencies={lanes:0,firstContext:e}}else go=go.next=e;return t}var Ir=null;function Ac(e){Ir===null?Ir=[e]:Ir.push(e)}function sg(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,Nn(e,s)}function Nn(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 or=!1;function Ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ag(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 Rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,r){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ie&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,Nn(e,r)}return c=s.interleaved,c===null?(t.next=t,Ac(s)):(t.next=c.next,c.next=t),s.interleaved=t,Nn(e,r)}function qs(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,Gl(e,r)}}function lg(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 x={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};d===null?c=d=x:d=d.next=x,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 Zs(e,t,r,s){var c=e.updateQueue;or=!1;var d=c.firstBaseUpdate,x=c.lastBaseUpdate,_=c.shared.pending;if(_!==null){c.shared.pending=null;var T=_,L=T.next;T.next=null,x===null?d=L:x.next=L,x=T;var W=e.alternate;W!==null&&(W=W.updateQueue,_=W.lastBaseUpdate,_!==x&&(_===null?W.firstBaseUpdate=L:_.next=L,W.lastBaseUpdate=T))}if(d!==null){var Y=c.baseState;x=0,W=L=T=null,_=d;do{var V=_.lane,oe=_.eventTime;if((s&V)===V){W!==null&&(W=W.next={eventTime:oe,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var fe=e,he=_;switch(V=t,oe=r,he.tag){case 1:if(fe=he.payload,typeof fe=="function"){Y=fe.call(oe,Y,V);break e}Y=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=he.payload,V=typeof fe=="function"?fe.call(oe,Y,V):fe,V==null)break e;Y=O({},Y,V);break e;case 2:or=!0}}_.callback!==null&&_.lane!==0&&(e.flags|=64,V=c.effects,V===null?c.effects=[_]:V.push(_))}else oe={eventTime:oe,lane:V,tag:_.tag,payload:_.payload,callback:_.callback,next:null},W===null?(L=W=oe,T=Y):W=W.next=oe,x|=V;if(_=_.next,_===null){if(_=c.shared.pending,_===null)break;V=_,_=V.next,V.next=null,c.lastBaseUpdate=V,c.shared.pending=null}}while(!0);if(W===null&&(T=Y),c.baseState=T,c.firstBaseUpdate=L,c.lastBaseUpdate=W,t=c.shared.interleaved,t!==null){c=t;do x|=c.lane,c=c.next;while(c!==t)}else d===null&&(c.shared.lanes=0);zr|=x,e.lanes=x,e.memoizedState=Y}}function cg(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 li={},pn=tr(li),ci=tr(li),ui=tr(li);function jr(e){if(e===li)throw Error(i(174));return e}function jc(e,t){switch(Le(ui,t),Le(ci,e),Le(pn,li),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oo(t,e)}De(pn),Le(pn,t)}function yo(){De(pn),De(ci),De(ui)}function ug(e){jr(ui.current);var t=jr(pn.current),r=Oo(t,e.type);t!==r&&(Le(ci,e),Le(pn,r))}function Mc(e){ci.current===e&&(De(pn),De(ci))}var He=tr(0);function Js(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 zc=[];function Lc(){for(var e=0;e<zc.length;e++)zc[e]._workInProgressVersionPrimary=null;zc.length=0}var ea=j.ReactCurrentDispatcher,Oc=j.ReactCurrentBatchConfig,Mr=0,Ue=null,Je=null,rt=null,ta=!1,di=!1,fi=0,s2=0;function pt(){throw Error(i(321))}function Dc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Qt(e[r],t[r]))return!1;return!0}function Fc(e,t,r,s,c,d){if(Mr=d,Ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ea.current=e===null||e.memoizedState===null?u2:d2,e=r(s,c),di){d=0;do{if(di=!1,fi=0,25<=d)throw Error(i(301));d+=1,rt=Je=null,t.updateQueue=null,ea.current=f2,e=r(s,c)}while(di)}if(ea.current=oa,t=Je!==null&&Je.next!==null,Mr=0,rt=Je=Ue=null,ta=!1,t)throw Error(i(300));return e}function $c(){var e=fi!==0;return fi=0,e}function mn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?Ue.memoizedState=rt=e:rt=rt.next=e,rt}function Bt(){if(Je===null){var e=Ue.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=rt===null?Ue.memoizedState:rt.next;if(t!==null)rt=t,Je=e;else{if(e===null)throw Error(i(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},rt===null?Ue.memoizedState=rt=e:rt=rt.next=e}return rt}function pi(e,t){return typeof t=="function"?t(e):t}function Bc(e){var t=Bt(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var s=Je,c=s.baseQueue,d=r.pending;if(d!==null){if(c!==null){var x=c.next;c.next=d.next,d.next=x}s.baseQueue=c=d,r.pending=null}if(c!==null){d=c.next,s=s.baseState;var _=x=null,T=null,L=d;do{var W=L.lane;if((Mr&W)===W)T!==null&&(T=T.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 Y={lane:W,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};T===null?(_=T=Y,x=s):T=T.next=Y,Ue.lanes|=W,zr|=W}L=L.next}while(L!==null&&L!==d);T===null?x=s:T.next=_,Qt(s,t.memoizedState)||(Ct=!0),t.memoizedState=s,t.baseState=x,t.baseQueue=T,r.lastRenderedState=s}if(e=r.interleaved,e!==null){c=e;do d=c.lane,Ue.lanes|=d,zr|=d,c=c.next;while(c!==e)}else c===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Hc(e){var t=Bt(),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 x=c=c.next;do d=e(d,x.action),x=x.next;while(x!==c);Qt(d,t.memoizedState)||(Ct=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,s]}function dg(){}function fg(e,t){var r=Ue,s=Bt(),c=t(),d=!Qt(s.memoizedState,c);if(d&&(s.memoizedState=c,Ct=!0),s=s.queue,Uc(hg.bind(null,r,s,e),[e]),s.getSnapshot!==t||d||rt!==null&&rt.memoizedState.tag&1){if(r.flags|=2048,mi(9,mg.bind(null,r,s,c,t),void 0,null),ot===null)throw Error(i(349));(Mr&30)!==0||pg(r,t,c)}return c}function pg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function mg(e,t,r,s){t.value=r,t.getSnapshot=s,gg(t)&&vg(e)}function hg(e,t,r){return r(function(){gg(t)&&vg(e)})}function gg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Qt(e,r)}catch{return!0}}function vg(e){var t=Nn(e,1);t!==null&&tn(t,e,1,-1)}function yg(e){var t=mn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:e},t.queue=e,e=e.dispatch=c2.bind(null,Ue,e),[t.memoizedState,e]}function mi(e,t,r,s){return e={tag:e,create:t,destroy:r,deps:s,next:null},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.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 wg(){return Bt().memoizedState}function na(e,t,r,s){var c=mn();Ue.flags|=e,c.memoizedState=mi(1|t,r,void 0,s===void 0?null:s)}function ra(e,t,r,s){var c=Bt();s=s===void 0?null:s;var d=void 0;if(Je!==null){var x=Je.memoizedState;if(d=x.destroy,s!==null&&Dc(s,x.deps)){c.memoizedState=mi(t,r,d,s);return}}Ue.flags|=e,c.memoizedState=mi(1|t,r,d,s)}function xg(e,t){return na(8390656,8,e,t)}function Uc(e,t){return ra(2048,8,e,t)}function bg(e,t){return ra(4,2,e,t)}function kg(e,t){return ra(4,4,e,t)}function Sg(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 Cg(e,t,r){return r=r!=null?r.concat([e]):null,ra(4,4,Sg.bind(null,t,e),r)}function Vc(){}function Eg(e,t){var r=Bt();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&Dc(t,s[1])?s[0]:(r.memoizedState=[e,t],e)}function _g(e,t){var r=Bt();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&Dc(t,s[1])?s[0]:(e=e(),r.memoizedState=[e,t],e)}function Ng(e,t,r){return(Mr&21)===0?(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=r):(Qt(r,t)||(r=rh(),Ue.lanes|=r,zr|=r,e.baseState=!0),t)}function a2(e,t){var r=ze;ze=r!==0&&4>r?r:4,e(!0);var s=Oc.transition;Oc.transition={};try{e(!1),t()}finally{ze=r,Oc.transition=s}}function Rg(){return Bt().memoizedState}function l2(e,t,r){var s=cr(e);if(r={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null},Pg(e))Tg(t,r);else if(r=sg(e,t,r,s),r!==null){var c=yt();tn(r,e,s,c),Ag(r,t,s)}}function c2(e,t,r){var s=cr(e),c={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null};if(Pg(e))Tg(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var x=t.lastRenderedState,_=d(x,r);if(c.hasEagerState=!0,c.eagerState=_,Qt(_,x)){var T=t.interleaved;T===null?(c.next=c,Ac(t)):(c.next=T.next,T.next=c),t.interleaved=c;return}}catch{}finally{}r=sg(e,t,c,s),r!==null&&(c=yt(),tn(r,e,s,c),Ag(r,t,s))}}function Pg(e){var t=e.alternate;return e===Ue||t!==null&&t===Ue}function Tg(e,t){di=ta=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ag(e,t,r){if((r&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Gl(e,r)}}var oa={readContext:$t,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},u2={readContext:$t,useCallback:function(e,t){return mn().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:xg,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,na(4194308,4,Sg.bind(null,t,e),r)},useLayoutEffect:function(e,t){return na(4194308,4,e,t)},useInsertionEffect:function(e,t){return na(4,2,e,t)},useMemo:function(e,t){var r=mn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var s=mn();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=l2.bind(null,Ue,e),[s.memoizedState,e]},useRef:function(e){var t=mn();return e={current:e},t.memoizedState=e},useState:yg,useDebugValue:Vc,useDeferredValue:function(e){return mn().memoizedState=e},useTransition:function(){var e=yg(!1),t=e[0];return e=a2.bind(null,e[1]),mn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var s=Ue,c=mn();if($e){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),ot===null)throw Error(i(349));(Mr&30)!==0||pg(s,t,r)}c.memoizedState=r;var d={value:r,getSnapshot:t};return c.queue=d,xg(hg.bind(null,s,d,e),[e]),s.flags|=2048,mi(9,mg.bind(null,s,d,r,t),void 0,null),r},useId:function(){var e=mn(),t=ot.identifierPrefix;if($e){var r=_n,s=En;r=(s&~(1<<32-Xt(s)-1)).toString(32)+r,t=":"+t+"R"+r,r=fi++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=s2++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},d2={readContext:$t,useCallback:Eg,useContext:$t,useEffect:Uc,useImperativeHandle:Cg,useInsertionEffect:bg,useLayoutEffect:kg,useMemo:_g,useReducer:Bc,useRef:wg,useState:function(){return Bc(pi)},useDebugValue:Vc,useDeferredValue:function(e){var t=Bt();return Ng(t,Je.memoizedState,e)},useTransition:function(){var e=Bc(pi)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:dg,useSyncExternalStore:fg,useId:Rg,unstable_isNewReconciler:!1},f2={readContext:$t,useCallback:Eg,useContext:$t,useEffect:Uc,useImperativeHandle:Cg,useInsertionEffect:bg,useLayoutEffect:kg,useMemo:_g,useReducer:Hc,useRef:wg,useState:function(){return Hc(pi)},useDebugValue:Vc,useDeferredValue:function(e){var t=Bt();return Je===null?t.memoizedState=e:Ng(t,Je.memoizedState,e)},useTransition:function(){var e=Hc(pi)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:dg,useSyncExternalStore:fg,useId:Rg,unstable_isNewReconciler:!1};function Zt(e,t){if(e&&e.defaultProps){t=O({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Wc(e,t,r,s){t=e.memoizedState,r=r(s,t),r=r==null?t:O({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ia={isMounted:function(e){return(e=e._reactInternals)?Nr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var s=yt(),c=cr(e),d=Rn(s,c);d.payload=t,r!=null&&(d.callback=r),t=ir(e,d,c),t!==null&&(tn(t,e,c,s),qs(t,e,c))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var s=yt(),c=cr(e),d=Rn(s,c);d.tag=1,d.payload=t,r!=null&&(d.callback=r),t=ir(e,d,c),t!==null&&(tn(t,e,c,s),qs(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=yt(),s=cr(e),c=Rn(r,s);c.tag=2,t!=null&&(c.callback=t),t=ir(e,c,s),t!==null&&(tn(t,e,s,r),qs(t,e,s))}};function Ig(e,t,r,s,c,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,x):t.prototype&&t.prototype.isPureReactComponent?!ei(r,s)||!ei(c,d):!0}function jg(e,t,r){var s=!1,c=nr,d=t.contextType;return typeof d=="object"&&d!==null?d=$t(d):(c=St(t)?Pr:ft.current,s=t.contextTypes,d=(s=s!=null)?uo(e,c):nr),t=new t(r,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ia,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=d),t}function Mg(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&&ia.enqueueReplaceState(t,t.state,null)}function Gc(e,t,r,s){var c=e.stateNode;c.props=r,c.state=e.memoizedState,c.refs={},Ic(e);var d=t.contextType;typeof d=="object"&&d!==null?c.context=$t(d):(d=St(t)?Pr:ft.current,c.context=uo(e,d)),c.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(Wc(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&&ia.enqueueReplaceState(c,c.state,null),Zs(e,r,c,s),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function wo(e,t){try{var r="",s=t;do r+=ne(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 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>
|
|
40
|
+
`+d.stack}return{value:e,source:t,stack:c,digest:null}}function Yc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Kc(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var p2=typeof WeakMap=="function"?WeakMap:Map;function zg(e,t,r){r=Rn(-1,r),r.tag=3,r.payload={element:null};var s=t.value;return r.callback=function(){fa||(fa=!0,cu=s),Kc(e,t)},r}function Lg(e,t,r){r=Rn(-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(){Kc(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(r.callback=function(){Kc(e,t),typeof s!="function"&&(ar===null?ar=new Set([this]):ar.add(this));var x=t.stack;this.componentDidCatch(t.value,{componentStack:x!==null?x:""})}),r}function Og(e,t,r){var s=e.pingCache;if(s===null){s=e.pingCache=new p2;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=N2.bind(null,e,t,r),t.then(e,e))}function Dg(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 Fg(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=Rn(-1,1),t.tag=2,ir(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var m2=j.ReactCurrentOwner,Ct=!1;function vt(e,t,r,s){t.child=e===null?ig(t,null,r,s):ho(t,e.child,r,s)}function $g(e,t,r,s,c){r=r.render;var d=t.ref;return vo(t,c),s=Fc(e,t,r,s,d,c),r=$c(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Pn(e,t,c)):($e&&r&&kc(t),t.flags|=1,vt(e,t,s,c),t.child)}function Bg(e,t,r,s,c){if(e===null){var d=r.type;return typeof d=="function"&&!gu(d)&&d.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=d,Hg(e,t,d,s,c)):(e=ya(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 x=d.memoizedProps;if(r=r.compare,r=r!==null?r:ei,r(x,s)&&e.ref===t.ref)return Pn(e,t,c)}return t.flags|=1,e=dr(d,s),e.ref=t.ref,e.return=t,t.child=e}function Hg(e,t,r,s,c){if(e!==null){var d=e.memoizedProps;if(ei(d,s)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=s=d,(e.lanes&c)!==0)(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,Pn(e,t,c)}return Xc(e,t,r,s,c)}function Ug(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},Le(bo,jt),jt|=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,Le(bo,jt),jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=d!==null?d.baseLanes:r,Le(bo,jt),jt|=s}else d!==null?(s=d.baseLanes|r,t.memoizedState=null):s=r,Le(bo,jt),jt|=s;return vt(e,t,c,r),t.child}function Vg(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Xc(e,t,r,s,c){var d=St(r)?Pr:ft.current;return d=uo(t,d),vo(t,c),r=Fc(e,t,r,s,d,c),s=$c(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Pn(e,t,c)):($e&&s&&kc(t),t.flags|=1,vt(e,t,r,c),t.child)}function Wg(e,t,r,s,c){if(St(r)){var d=!0;Us(t)}else d=!1;if(vo(t,c),t.stateNode===null)aa(e,t),jg(t,r,s),Gc(t,r,s,c),s=!0;else if(e===null){var x=t.stateNode,_=t.memoizedProps;x.props=_;var T=x.context,L=r.contextType;typeof L=="object"&&L!==null?L=$t(L):(L=St(r)?Pr:ft.current,L=uo(t,L));var W=r.getDerivedStateFromProps,Y=typeof W=="function"||typeof x.getSnapshotBeforeUpdate=="function";Y||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(_!==s||T!==L)&&Mg(t,x,s,L),or=!1;var V=t.memoizedState;x.state=V,Zs(t,s,x,c),T=t.memoizedState,_!==s||V!==T||kt.current||or?(typeof W=="function"&&(Wc(t,r,W,s),T=t.memoizedState),(_=or||Ig(t,r,_,s,V,T,L))?(Y||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(t.flags|=4194308)):(typeof x.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=T),x.props=s,x.state=T,x.context=L,s=_):(typeof x.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{x=t.stateNode,ag(e,t),_=t.memoizedProps,L=t.type===t.elementType?_:Zt(t.type,_),x.props=L,Y=t.pendingProps,V=x.context,T=r.contextType,typeof T=="object"&&T!==null?T=$t(T):(T=St(r)?Pr:ft.current,T=uo(t,T));var oe=r.getDerivedStateFromProps;(W=typeof oe=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(_!==Y||V!==T)&&Mg(t,x,s,T),or=!1,V=t.memoizedState,x.state=V,Zs(t,s,x,c);var fe=t.memoizedState;_!==Y||V!==fe||kt.current||or?(typeof oe=="function"&&(Wc(t,r,oe,s),fe=t.memoizedState),(L=or||Ig(t,r,L,s,V,fe,T)||!1)?(W||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(s,fe,T),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(s,fe,T)),typeof x.componentDidUpdate=="function"&&(t.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof x.componentDidUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=fe),x.props=s,x.state=fe,x.context=T,s=L):(typeof x.componentDidUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),s=!1)}return Qc(e,t,r,s,d,c)}function Qc(e,t,r,s,c,d){Vg(e,t);var x=(t.flags&128)!==0;if(!s&&!x)return c&&Qh(t,r,!1),Pn(e,t,d);s=t.stateNode,m2.current=t;var _=x&&typeof r.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&x?(t.child=ho(t,e.child,null,d),t.child=ho(t,null,_,d)):vt(e,t,_,d),t.memoizedState=s.state,c&&Qh(t,r,!0),t.child}function Gg(e){var t=e.stateNode;t.pendingContext?Kh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Kh(e,t.context,!1),jc(e,t.containerInfo)}function Yg(e,t,r,s,c){return mo(),_c(c),t.flags|=256,vt(e,t,r,s),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0};function Zc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Kg(e,t,r){var s=t.pendingProps,c=He.current,d=!1,x=(t.flags&128)!==0,_;if((_=x)||(_=e!==null&&e.memoizedState===null?!1:(c&2)!==0),_?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Le(He,c&1),e===null)return Ec(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(x=s.children,e=s.fallback,d?(s=t.mode,d=t.child,x={mode:"hidden",children:x},(s&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=x):d=wa(x,s,0,null),e=Fr(e,s,r,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Zc(r),t.memoizedState=qc,e):Jc(t,x));if(c=e.memoizedState,c!==null&&(_=c.dehydrated,_!==null))return h2(e,t,x,s,_,c,r);if(d){d=s.fallback,x=t.mode,c=e.child,_=c.sibling;var T={mode:"hidden",children:s.children};return(x&1)===0&&t.child!==c?(s=t.child,s.childLanes=0,s.pendingProps=T,t.deletions=null):(s=dr(c,T),s.subtreeFlags=c.subtreeFlags&14680064),_!==null?d=dr(_,d):(d=Fr(d,x,r,null),d.flags|=2),d.return=t,s.return=t,s.sibling=d,t.child=s,s=d,d=t.child,x=e.child.memoizedState,x=x===null?Zc(r):{baseLanes:x.baseLanes|r,cachePool:null,transitions:x.transitions},d.memoizedState=x,d.childLanes=e.childLanes&~r,t.memoizedState=qc,s}return d=e.child,e=d.sibling,s=dr(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=wa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sa(e,t,r,s){return s!==null&&_c(s),ho(t,e.child,null,r),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function h2(e,t,r,s,c,d,x){if(r)return t.flags&256?(t.flags&=-257,s=Yc(Error(i(422))),sa(e,t,x,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=s.fallback,c=t.mode,s=wa({mode:"visible",children:s.children},c,0,null),d=Fr(d,c,x,null),d.flags|=2,s.return=t,d.return=t,s.sibling=d,t.child=s,(t.mode&1)!==0&&ho(t,e.child,null,x),t.child.memoizedState=Zc(x),t.memoizedState=qc,d);if((t.mode&1)===0)return sa(e,t,x,null);if(c.data==="$!"){if(s=c.nextSibling&&c.nextSibling.dataset,s)var _=s.dgst;return s=_,d=Error(i(419)),s=Yc(d,s,void 0),sa(e,t,x,s)}if(_=(x&e.childLanes)!==0,Ct||_){if(s=ot,s!==null){switch(x&-x){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(s.suspendedLanes|x))!==0?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,Nn(e,c),tn(s,e,c,-1))}return hu(),s=Yc(Error(i(421))),sa(e,t,x,s)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=R2.bind(null,e),c._reactRetry=t,null):(e=d.treeContext,It=er(c.nextSibling),At=t,$e=!0,qt=null,e!==null&&(Dt[Ft++]=En,Dt[Ft++]=_n,Dt[Ft++]=Tr,En=e.id,_n=e.overflow,Tr=t),t=Jc(t,s.children),t.flags|=4096,t)}function Xg(e,t,r){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Tc(e.return,t,r)}function eu(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 Qg(e,t,r){var s=t.pendingProps,c=s.revealOrder,d=s.tail;if(vt(e,t,s.children,r),s=He.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&&Xg(e,r,t);else if(e.tag===19)Xg(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(Le(He,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&&Js(e)===null&&(c=r),r=r.sibling;r=c,r===null?(c=t.child,t.child=null):(c=r.sibling,r.sibling=null),eu(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&&Js(e)===null){t.child=c;break}e=c.sibling,c.sibling=r,r=c,c=e}eu(t,!0,r,null,d);break;case"together":eu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function aa(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),zr|=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=dr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=dr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function g2(e,t,r){switch(t.tag){case 3:Gg(t),mo();break;case 5:ug(t);break;case 1:St(t.type)&&Us(t);break;case 4:jc(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,c=t.memoizedProps.value;Le(Xs,s._currentValue),s._currentValue=c;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Le(He,He.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Kg(e,t,r):(Le(He,He.current&1),e=Pn(e,t,r),e!==null?e.sibling:null);Le(He,He.current&1);break;case 19:if(s=(r&t.childLanes)!==0,(e.flags&128)!==0){if(s)return Qg(e,t,r);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Le(He,He.current),s)break;return null;case 22:case 23:return t.lanes=0,Ug(e,t,r)}return Pn(e,t,r)}var qg,tu,Zg,Jg;qg=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}},tu=function(){},Zg=function(e,t,r,s){var c=e.memoizedProps;if(c!==s){e=t.stateNode,jr(pn.current);var d=null;switch(r){case"input":c=Be(e,c),s=Be(e,s),d=[];break;case"select":c=O({},c,{value:void 0}),s=O({},s,{value:void 0}),d=[];break;case"textarea":c=st(e,c),s=st(e,s),d=[];break;default:typeof c.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=$s)}eo(r,s);var x;r=null;for(L in c)if(!s.hasOwnProperty(L)&&c.hasOwnProperty(L)&&c[L]!=null)if(L==="style"){var _=c[L];for(x in _)_.hasOwnProperty(x)&&(r||(r={}),r[x]="")}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 T=s[L];if(_=c!=null?c[L]:void 0,s.hasOwnProperty(L)&&T!==_&&(T!=null||_!=null))if(L==="style")if(_){for(x in _)!_.hasOwnProperty(x)||T&&T.hasOwnProperty(x)||(r||(r={}),r[x]="");for(x in T)T.hasOwnProperty(x)&&_[x]!==T[x]&&(r||(r={}),r[x]=T[x])}else r||(d||(d=[]),d.push(L,r)),r=T;else L==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,_=_?_.__html:void 0,T!=null&&_!==T&&(d=d||[]).push(L,T)):L==="children"?typeof T!="string"&&typeof T!="number"||(d=d||[]).push(L,""+T):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(l.hasOwnProperty(L)?(T!=null&&L==="onScroll"&&Oe("scroll",e),d||_===T||(d=[])):(d=d||[]).push(L,T))}r&&(d=d||[]).push("style",r);var L=d;(t.updateQueue=L)&&(t.flags|=4)}},Jg=function(e,t,r,s){r!==s&&(t.flags|=4)};function hi(e,t){if(!$e)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 mt(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 v2(e,t,r){var s=t.pendingProps;switch(Sc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return St(t.type)&&Hs(),mt(t),null;case 3:return s=t.stateNode,yo(),De(kt),De(ft),Lc(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ys(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qt!==null&&(fu(qt),qt=null))),tu(e,t),mt(t),null;case 5:Mc(t);var c=jr(ui.current);if(r=t.type,e!==null&&t.stateNode!=null)Zg(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 mt(t),null}if(e=jr(pn.current),Ys(t)){s=t.stateNode,r=t.type;var d=t.memoizedProps;switch(s[fn]=t,s[ii]=d,e=(t.mode&1)!==0,r){case"dialog":Oe("cancel",s),Oe("close",s);break;case"iframe":case"object":case"embed":Oe("load",s);break;case"video":case"audio":for(c=0;c<ni.length;c++)Oe(ni[c],s);break;case"source":Oe("error",s);break;case"img":case"image":case"link":Oe("error",s),Oe("load",s);break;case"details":Oe("toggle",s);break;case"input":un(s,d),Oe("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!d.multiple},Oe("invalid",s);break;case"textarea":bn(s,d),Oe("invalid",s)}eo(r,d),c=null;for(var x in d)if(d.hasOwnProperty(x)){var _=d[x];x==="children"?typeof _=="string"?s.textContent!==_&&(d.suppressHydrationWarning!==!0&&Fs(s.textContent,_,e),c=["children",_]):typeof _=="number"&&s.textContent!==""+_&&(d.suppressHydrationWarning!==!0&&Fs(s.textContent,_,e),c=["children",""+_]):l.hasOwnProperty(x)&&_!=null&&x==="onScroll"&&Oe("scroll",s)}switch(r){case"input":Ne(s),kr(s,d,!0);break;case"textarea":Ne(s),vs(s);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(s.onclick=$s)}s=c,t.updateQueue=s,s!==null&&(t.flags|=4)}else{x=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Cr(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=x.createElement(r,{is:s.is}):(e=x.createElement(r),r==="select"&&(x=e,s.multiple?x.multiple=!0:s.size&&(x.size=s.size))):e=x.createElementNS(e,r),e[fn]=t,e[ii]=s,qg(e,t,!1,!1),t.stateNode=e;e:{switch(x=Do(r,s),r){case"dialog":Oe("cancel",e),Oe("close",e),c=s;break;case"iframe":case"object":case"embed":Oe("load",e),c=s;break;case"video":case"audio":for(c=0;c<ni.length;c++)Oe(ni[c],e);c=s;break;case"source":Oe("error",e),c=s;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),c=s;break;case"details":Oe("toggle",e),c=s;break;case"input":un(e,s),c=Be(e,s),Oe("invalid",e);break;case"option":c=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},c=O({},s,{value:void 0}),Oe("invalid",e);break;case"textarea":bn(e,s),c=st(e,s),Oe("invalid",e);break;default:c=s}eo(r,c),_=c;for(d in _)if(_.hasOwnProperty(d)){var T=_[d];d==="style"?ws(e,T):d==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&Jr(e,T)):d==="children"?typeof T=="string"?(r!=="textarea"||T!=="")&&zt(e,T):typeof T=="number"&&zt(e,""+T):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(l.hasOwnProperty(d)?T!=null&&d==="onScroll"&&Oe("scroll",e):T!=null&&P(e,d,T,x))}switch(r){case"input":Ne(e),kr(e,s,!1);break;case"textarea":Ne(e),vs(e);break;case"option":s.value!=null&&e.setAttribute("value",""+J(s.value));break;case"select":e.multiple=!!s.multiple,d=s.value,d!=null?Bn(e,!!s.multiple,d,!1):s.defaultValue!=null&&Bn(e,!!s.multiple,s.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=$s)}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 mt(t),null;case 6:if(e&&t.stateNode!=null)Jg(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(r=jr(ui.current),jr(pn.current),Ys(t)){if(s=t.stateNode,r=t.memoizedProps,s[fn]=t,(d=s.nodeValue!==r)&&(e=At,e!==null))switch(e.tag){case 3:Fs(s.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fs(s.nodeValue,r,(e.mode&1)!==0)}d&&(t.flags|=4)}else s=(r.nodeType===9?r:r.ownerDocument).createTextNode(s),s[fn]=t,t.stateNode=s}return mt(t),null;case 13:if(De(He),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($e&&It!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ng(),mo(),t.flags|=98560,d=!1;else if(d=Ys(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[fn]=t}else mo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;mt(t),d=!1}else qt!==null&&(fu(qt),qt=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||(He.current&1)!==0?et===0&&(et=3):hu())),t.updateQueue!==null&&(t.flags|=4),mt(t),null);case 4:return yo(),tu(e,t),e===null&&ri(t.stateNode.containerInfo),mt(t),null;case 10:return Pc(t.type._context),mt(t),null;case 17:return St(t.type)&&Hs(),mt(t),null;case 19:if(De(He),d=t.memoizedState,d===null)return mt(t),null;if(s=(t.flags&128)!==0,x=d.rendering,x===null)if(s)hi(d,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(x=Js(e),x!==null){for(t.flags|=128,hi(d,!1),s=x.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,x=d.alternate,x===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=x.childLanes,d.lanes=x.lanes,d.child=x.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=x.memoizedProps,d.memoizedState=x.memoizedState,d.updateQueue=x.updateQueue,d.type=x.type,e=x.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Le(He,He.current&1|2),t.child}e=e.sibling}d.tail!==null&&Ye()>ko&&(t.flags|=128,s=!0,hi(d,!1),t.lanes=4194304)}else{if(!s)if(e=Js(x),e!==null){if(t.flags|=128,s=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),hi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!x.alternate&&!$e)return mt(t),null}else 2*Ye()-d.renderingStartTime>ko&&r!==1073741824&&(t.flags|=128,s=!0,hi(d,!1),t.lanes=4194304);d.isBackwards?(x.sibling=t.child,t.child=x):(r=d.last,r!==null?r.sibling=x:t.child=x,d.last=x)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Ye(),t.sibling=null,r=He.current,Le(He,s?r&1|2:r&1),t):(mt(t),null);case 22:case 23:return mu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(jt&1073741824)!==0&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function y2(e,t){switch(Sc(t),t.tag){case 1:return St(t.type)&&Hs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),De(kt),De(ft),Lc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Mc(t),null;case 13:if(De(He),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));mo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(He),null;case 4:return yo(),null;case 10:return Pc(t.type._context),null;case 22:case 23:return mu(),null;case 24:return null;default:return null}}var la=!1,ht=!1,w2=typeof WeakSet=="function"?WeakSet:Set,ue=null;function xo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(s){Ve(e,t,s)}else r.current=null}function nu(e,t,r){try{r()}catch(s){Ve(e,t,s)}}var ev=!1;function x2(e,t){if(mc=Rs,e=Ih(),sc(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 x=0,_=-1,T=-1,L=0,W=0,Y=e,V=null;t:for(;;){for(var oe;Y!==r||c!==0&&Y.nodeType!==3||(_=x+c),Y!==d||s!==0&&Y.nodeType!==3||(T=x+s),Y.nodeType===3&&(x+=Y.nodeValue.length),(oe=Y.firstChild)!==null;)V=Y,Y=oe;for(;;){if(Y===e)break t;if(V===r&&++L===c&&(_=x),V===d&&++W===s&&(T=x),(oe=Y.nextSibling)!==null)break;Y=V,V=Y.parentNode}Y=oe}r=_===-1||T===-1?null:{start:_,end:T}}else r=null}r=r||{start:0,end:0}}else r=null;for(hc={focusedElem:e,selectionRange:r},Rs=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;try{var fe=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(fe!==null){var he=fe.memoizedProps,Ke=fe.memoizedState,M=t.stateNode,A=M.getSnapshotBeforeUpdate(t.elementType===t.type?he:Zt(t.type,he),Ke);M.__reactInternalSnapshotBeforeUpdate=A}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(Q){Ve(t,t.return,Q)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return fe=ev,ev=!1,fe}function gi(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&&nu(t,r,d)}c=c.next}while(c!==s)}}function ca(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 ru(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 tv(e){var t=e.alternate;t!==null&&(e.alternate=null,tv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fn],delete t[ii],delete t[wc],delete t[n2],delete t[r2])),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 nv(e){return e.tag===5||e.tag===3||e.tag===4}function rv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nv(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 ou(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=$s));else if(s!==4&&(e=e.child,e!==null))for(ou(e,t,r),e=e.sibling;e!==null;)ou(e,t,r),e=e.sibling}function iu(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(iu(e,t,r),e=e.sibling;e!==null;)iu(e,t,r),e=e.sibling}var lt=null,Jt=!1;function sr(e,t,r){for(r=r.child;r!==null;)ov(e,t,r),r=r.sibling}function ov(e,t,r){if(dn&&typeof dn.onCommitFiberUnmount=="function")try{dn.onCommitFiberUnmount(ks,r)}catch{}switch(r.tag){case 5:ht||xo(r,t);case 6:var s=lt,c=Jt;lt=null,sr(e,t,r),lt=s,Jt=c,lt!==null&&(Jt?(e=lt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):lt.removeChild(r.stateNode));break;case 18:lt!==null&&(Jt?(e=lt,r=r.stateNode,e.nodeType===8?yc(e.parentNode,r):e.nodeType===1&&yc(e,r),Ko(e)):yc(lt,r.stateNode));break;case 4:s=lt,c=Jt,lt=r.stateNode.containerInfo,Jt=!0,sr(e,t,r),lt=s,Jt=c;break;case 0:case 11:case 14:case 15:if(!ht&&(s=r.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){c=s=s.next;do{var d=c,x=d.destroy;d=d.tag,x!==void 0&&((d&2)!==0||(d&4)!==0)&&nu(r,t,x),c=c.next}while(c!==s)}sr(e,t,r);break;case 1:if(!ht&&(xo(r,t),s=r.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=r.memoizedProps,s.state=r.memoizedState,s.componentWillUnmount()}catch(_){Ve(r,t,_)}sr(e,t,r);break;case 21:sr(e,t,r);break;case 22:r.mode&1?(ht=(s=ht)||r.memoizedState!==null,sr(e,t,r),ht=s):sr(e,t,r);break;default:sr(e,t,r)}}function iv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new w2),t.forEach(function(s){var c=P2.bind(null,e,s);r.has(s)||(r.add(s),s.then(c,c))})}}function en(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,x=t,_=x;e:for(;_!==null;){switch(_.tag){case 5:lt=_.stateNode,Jt=!1;break e;case 3:lt=_.stateNode.containerInfo,Jt=!0;break e;case 4:lt=_.stateNode.containerInfo,Jt=!0;break e}_=_.return}if(lt===null)throw Error(i(160));ov(d,x,c),lt=null,Jt=!1;var T=c.alternate;T!==null&&(T.return=null),c.return=null}catch(L){Ve(c,t,L)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)sv(t,e),t=t.sibling}function sv(e,t){var r=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),hn(e),s&4){try{gi(3,e,e.return),ca(3,e)}catch(he){Ve(e,e.return,he)}try{gi(5,e,e.return)}catch(he){Ve(e,e.return,he)}}break;case 1:en(t,e),hn(e),s&512&&r!==null&&xo(r,r.return);break;case 5:if(en(t,e),hn(e),s&512&&r!==null&&xo(r,r.return),e.flags&32){var c=e.stateNode;try{zt(c,"")}catch(he){Ve(e,e.return,he)}}if(s&4&&(c=e.stateNode,c!=null)){var d=e.memoizedProps,x=r!==null?r.memoizedProps:d,_=e.type,T=e.updateQueue;if(e.updateQueue=null,T!==null)try{_==="input"&&d.type==="radio"&&d.name!=null&&Kt(c,d),Do(_,x);var L=Do(_,d);for(x=0;x<T.length;x+=2){var W=T[x],Y=T[x+1];W==="style"?ws(c,Y):W==="dangerouslySetInnerHTML"?Jr(c,Y):W==="children"?zt(c,Y):P(c,W,Y,L)}switch(_){case"input":gt(c,d);break;case"textarea":gs(c,d);break;case"select":var V=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var oe=d.value;oe!=null?Bn(c,!!d.multiple,oe,!1):V!==!!d.multiple&&(d.defaultValue!=null?Bn(c,!!d.multiple,d.defaultValue,!0):Bn(c,!!d.multiple,d.multiple?[]:"",!1))}c[ii]=d}catch(he){Ve(e,e.return,he)}}break;case 6:if(en(t,e),hn(e),s&4){if(e.stateNode===null)throw Error(i(162));c=e.stateNode,d=e.memoizedProps;try{c.nodeValue=d}catch(he){Ve(e,e.return,he)}}break;case 3:if(en(t,e),hn(e),s&4&&r!==null&&r.memoizedState.isDehydrated)try{Ko(t.containerInfo)}catch(he){Ve(e,e.return,he)}break;case 4:en(t,e),hn(e);break;case 13:en(t,e),hn(e),c=e.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(lu=Ye())),s&4&&iv(e);break;case 22:if(W=r!==null&&r.memoizedState!==null,e.mode&1?(ht=(L=ht)||W,en(t,e),ht=L):en(t,e),hn(e),s&8192){if(L=e.memoizedState!==null,(e.stateNode.isHidden=L)&&!W&&(e.mode&1)!==0)for(ue=e,W=e.child;W!==null;){for(Y=ue=W;ue!==null;){switch(V=ue,oe=V.child,V.tag){case 0:case 11:case 14:case 15:gi(4,V,V.return);break;case 1:xo(V,V.return);var fe=V.stateNode;if(typeof fe.componentWillUnmount=="function"){s=V,r=V.return;try{t=s,fe.props=t.memoizedProps,fe.state=t.memoizedState,fe.componentWillUnmount()}catch(he){Ve(s,r,he)}}break;case 5:xo(V,V.return);break;case 22:if(V.memoizedState!==null){cv(Y);continue}}oe!==null?(oe.return=V,ue=oe):cv(Y)}W=W.sibling}e:for(W=null,Y=e;;){if(Y.tag===5){if(W===null){W=Y;try{c=Y.stateNode,L?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(_=Y.stateNode,T=Y.memoizedProps.style,x=T!=null&&T.hasOwnProperty("display")?T.display:null,_.style.display=ys("display",x))}catch(he){Ve(e,e.return,he)}}}else if(Y.tag===6){if(W===null)try{Y.stateNode.nodeValue=L?"":Y.memoizedProps}catch(he){Ve(e,e.return,he)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===e)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===e)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===e)break e;W===Y&&(W=null),Y=Y.return}W===Y&&(W=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:en(t,e),hn(e),s&4&&iv(e);break;case 21:break;default:en(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(nv(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&&(zt(c,""),s.flags&=-33);var d=rv(e);iu(e,d,c);break;case 3:case 4:var x=s.stateNode.containerInfo,_=rv(e);ou(e,_,x);break;default:throw Error(i(161))}}catch(T){Ve(e,e.return,T)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function b2(e,t,r){ue=e,av(e)}function av(e,t,r){for(var s=(e.mode&1)!==0;ue!==null;){var c=ue,d=c.child;if(c.tag===22&&s){var x=c.memoizedState!==null||la;if(!x){var _=c.alternate,T=_!==null&&_.memoizedState!==null||ht;_=la;var L=ht;if(la=x,(ht=T)&&!L)for(ue=c;ue!==null;)x=ue,T=x.child,x.tag===22&&x.memoizedState!==null?uv(c):T!==null?(T.return=x,ue=T):uv(c);for(;d!==null;)ue=d,av(d),d=d.sibling;ue=c,la=_,ht=L}lv(e)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,ue=d):lv(e)}}function lv(e){for(;ue!==null;){var t=ue;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ht||ca(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!ht)if(r===null)s.componentDidMount();else{var c=t.elementType===t.type?r.memoizedProps:Zt(t.type,r.memoizedProps);s.componentDidUpdate(c,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&cg(t,d,s);break;case 3:var x=t.updateQueue;if(x!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}cg(t,x,r)}break;case 5:var _=t.stateNode;if(r===null&&t.flags&4){r=_;var T=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&r.focus();break;case"img":T.src&&(r.src=T.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 W=L.memoizedState;if(W!==null){var Y=W.dehydrated;Y!==null&&Ko(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ht||t.flags&512&&ru(t)}catch(V){Ve(t,t.return,V)}}if(t===e){ue=null;break}if(r=t.sibling,r!==null){r.return=t.return,ue=r;break}ue=t.return}}function cv(e){for(;ue!==null;){var t=ue;if(t===e){ue=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ue=r;break}ue=t.return}}function uv(e){for(;ue!==null;){var t=ue;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ca(4,t)}catch(T){Ve(t,r,T)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var c=t.return;try{s.componentDidMount()}catch(T){Ve(t,c,T)}}var d=t.return;try{ru(t)}catch(T){Ve(t,d,T)}break;case 5:var x=t.return;try{ru(t)}catch(T){Ve(t,x,T)}}}catch(T){Ve(t,t.return,T)}if(t===e){ue=null;break}var _=t.sibling;if(_!==null){_.return=t.return,ue=_;break}ue=t.return}}var k2=Math.ceil,ua=j.ReactCurrentDispatcher,su=j.ReactCurrentOwner,Ht=j.ReactCurrentBatchConfig,Ie=0,ot=null,Qe=null,ct=0,jt=0,bo=tr(0),et=0,vi=null,zr=0,da=0,au=0,yi=null,Et=null,lu=0,ko=1/0,Tn=null,fa=!1,cu=null,ar=null,pa=!1,lr=null,ma=0,wi=0,uu=null,ha=-1,ga=0;function yt(){return(Ie&6)!==0?Ye():ha!==-1?ha:ha=Ye()}function cr(e){return(e.mode&1)===0?1:(Ie&2)!==0&&ct!==0?ct&-ct:i2.transition!==null?(ga===0&&(ga=rh()),ga):(e=ze,e!==0||(e=window.event,e=e===void 0?16:fh(e.type)),e)}function tn(e,t,r,s){if(50<wi)throw wi=0,uu=null,Error(i(185));Uo(e,r,s),((Ie&2)===0||e!==ot)&&(e===ot&&((Ie&2)===0&&(da|=r),et===4&&ur(e,ct)),_t(e,s),r===1&&Ie===0&&(t.mode&1)===0&&(ko=Ye()+500,Vs&&rr()))}function _t(e,t){var r=e.callbackNode;iE(e,t);var s=Es(e,e===ot?ct:0);if(s===0)r!==null&&eh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(r!=null&&eh(r),t===1)e.tag===0?o2(fv.bind(null,e)):qh(fv.bind(null,e)),e2(function(){(Ie&6)===0&&rr()}),r=null;else{switch(oh(s)){case 1:r=Ul;break;case 4:r=th;break;case 16:r=bs;break;case 536870912:r=nh;break;default:r=bs}r=xv(r,dv.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function dv(e,t){if(ha=-1,ga=0,(Ie&6)!==0)throw Error(i(327));var r=e.callbackNode;if(So()&&e.callbackNode!==r)return null;var s=Es(e,e===ot?ct:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=va(e,s);else{t=s;var c=Ie;Ie|=2;var d=mv();(ot!==e||ct!==t)&&(Tn=null,ko=Ye()+500,Or(e,t));do try{E2();break}catch(_){pv(e,_)}while(!0);Rc(),ua.current=d,Ie=c,Qe!==null?t=0:(ot=null,ct=0,t=et)}if(t!==0){if(t===2&&(c=Vl(e),c!==0&&(s=c,t=du(e,c))),t===1)throw r=vi,Or(e,0),ur(e,s),_t(e,Ye()),r;if(t===6)ur(e,s);else{if(c=e.current.alternate,(s&30)===0&&!S2(c)&&(t=va(e,s),t===2&&(d=Vl(e),d!==0&&(s=d,t=du(e,d))),t===1))throw r=vi,Or(e,0),ur(e,s),_t(e,Ye()),r;switch(e.finishedWork=c,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:Dr(e,Et,Tn);break;case 3:if(ur(e,s),(s&130023424)===s&&(t=lu+500-Ye(),10<t)){if(Es(e,0)!==0)break;if(c=e.suspendedLanes,(c&s)!==s){yt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=vc(Dr.bind(null,e,Et,Tn),t);break}Dr(e,Et,Tn);break;case 4:if(ur(e,s),(s&4194240)===s)break;for(t=e.eventTimes,c=-1;0<s;){var x=31-Xt(s);d=1<<x,x=t[x],x>c&&(c=x),s&=~d}if(s=c,s=Ye()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*k2(s/1960))-s,10<s){e.timeoutHandle=vc(Dr.bind(null,e,Et,Tn),s);break}Dr(e,Et,Tn);break;case 5:Dr(e,Et,Tn);break;default:throw Error(i(329))}}}return _t(e,Ye()),e.callbackNode===r?dv.bind(null,e):null}function du(e,t){var r=yi;return e.current.memoizedState.isDehydrated&&(Or(e,t).flags|=256),e=va(e,t),e!==2&&(t=Et,Et=r,t!==null&&fu(t)),e}function fu(e){Et===null?Et=e:Et.push.apply(Et,e)}function S2(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(!Qt(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 ur(e,t){for(t&=~au,t&=~da,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Xt(t),s=1<<r;e[r]=-1,t&=~s}}function fv(e){if((Ie&6)!==0)throw Error(i(327));So();var t=Es(e,0);if((t&1)===0)return _t(e,Ye()),null;var r=va(e,t);if(e.tag!==0&&r===2){var s=Vl(e);s!==0&&(t=s,r=du(e,s))}if(r===1)throw r=vi,Or(e,0),ur(e,t),_t(e,Ye()),r;if(r===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dr(e,Et,Tn),_t(e,Ye()),null}function pu(e,t){var r=Ie;Ie|=1;try{return e(t)}finally{Ie=r,Ie===0&&(ko=Ye()+500,Vs&&rr())}}function Lr(e){lr!==null&&lr.tag===0&&(Ie&6)===0&&So();var t=Ie;Ie|=1;var r=Ht.transition,s=ze;try{if(Ht.transition=null,ze=1,e)return e()}finally{ze=s,Ht.transition=r,Ie=t,(Ie&6)===0&&rr()}}function mu(){jt=bo.current,De(bo)}function Or(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,JE(r)),Qe!==null)for(r=Qe.return;r!==null;){var s=r;switch(Sc(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Hs();break;case 3:yo(),De(kt),De(ft),Lc();break;case 5:Mc(s);break;case 4:yo();break;case 13:De(He);break;case 19:De(He);break;case 10:Pc(s.type._context);break;case 22:case 23:mu()}r=r.return}if(ot=e,Qe=e=dr(e.current,null),ct=jt=t,et=0,vi=null,au=da=zr=0,Et=yi=null,Ir!==null){for(t=0;t<Ir.length;t++)if(r=Ir[t],s=r.interleaved,s!==null){r.interleaved=null;var c=s.next,d=r.pending;if(d!==null){var x=d.next;d.next=c,s.next=x}r.pending=s}Ir=null}return e}function pv(e,t){do{var r=Qe;try{if(Rc(),ea.current=oa,ta){for(var s=Ue.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}ta=!1}if(Mr=0,rt=Je=Ue=null,di=!1,fi=0,su.current=null,r===null||r.return===null){et=1,vi=t,Qe=null;break}e:{var d=e,x=r.return,_=r,T=t;if(t=ct,_.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var L=T,W=_,Y=W.tag;if((W.mode&1)===0&&(Y===0||Y===11||Y===15)){var V=W.alternate;V?(W.updateQueue=V.updateQueue,W.memoizedState=V.memoizedState,W.lanes=V.lanes):(W.updateQueue=null,W.memoizedState=null)}var oe=Dg(x);if(oe!==null){oe.flags&=-257,Fg(oe,x,_,d,t),oe.mode&1&&Og(d,L,t),t=oe,T=L;var fe=t.updateQueue;if(fe===null){var he=new Set;he.add(T),t.updateQueue=he}else fe.add(T);break e}else{if((t&1)===0){Og(d,L,t),hu();break e}T=Error(i(426))}}else if($e&&_.mode&1){var Ke=Dg(x);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),Fg(Ke,x,_,d,t),_c(wo(T,_));break e}}d=T=wo(T,_),et!==4&&(et=2),yi===null?yi=[d]:yi.push(d),d=x;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var M=zg(d,T,t);lg(d,M);break e;case 1:_=T;var A=d.type,z=d.stateNode;if((d.flags&128)===0&&(typeof A.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(ar===null||!ar.has(z)))){d.flags|=65536,t&=-t,d.lanes|=t;var Q=Lg(d,_,t);lg(d,Q);break e}}d=d.return}while(d!==null)}gv(r)}catch(ge){t=ge,Qe===r&&r!==null&&(Qe=r=r.return);continue}break}while(!0)}function mv(){var e=ua.current;return ua.current=oa,e===null?oa:e}function hu(){(et===0||et===3||et===2)&&(et=4),ot===null||(zr&268435455)===0&&(da&268435455)===0||ur(ot,ct)}function va(e,t){var r=Ie;Ie|=2;var s=mv();(ot!==e||ct!==t)&&(Tn=null,Or(e,t));do try{C2();break}catch(c){pv(e,c)}while(!0);if(Rc(),Ie=r,ua.current=s,Qe!==null)throw Error(i(261));return ot=null,ct=0,et}function C2(){for(;Qe!==null;)hv(Qe)}function E2(){for(;Qe!==null&&!QC();)hv(Qe)}function hv(e){var t=wv(e.alternate,e,jt);e.memoizedProps=e.pendingProps,t===null?gv(e):Qe=t,su.current=null}function gv(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=v2(r,t,jt),r!==null){Qe=r;return}}else{if(r=y2(r,t),r!==null){r.flags&=32767,Qe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{et=6,Qe=null;return}}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);et===0&&(et=5)}function Dr(e,t,r){var s=ze,c=Ht.transition;try{Ht.transition=null,ze=1,_2(e,t,r,s)}finally{Ht.transition=c,ze=s}return null}function _2(e,t,r,s){do So();while(lr!==null);if((Ie&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(sE(e,d),e===ot&&(Qe=ot=null,ct=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||pa||(pa=!0,xv(bs,function(){return So(),null})),d=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||d){d=Ht.transition,Ht.transition=null;var x=ze;ze=1;var _=Ie;Ie|=4,su.current=null,x2(e,r),sv(r,e),GE(hc),Rs=!!mc,hc=mc=null,e.current=r,b2(r),qC(),Ie=_,ze=x,Ht.transition=d}else e.current=r;if(pa&&(pa=!1,lr=e,ma=c),d=e.pendingLanes,d===0&&(ar=null),eE(r.stateNode),_t(e,Ye()),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(fa)throw fa=!1,e=cu,cu=null,e;return(ma&1)!==0&&e.tag!==0&&So(),d=e.pendingLanes,(d&1)!==0?e===uu?wi++:(wi=0,uu=e):wi=0,rr(),null}function So(){if(lr!==null){var e=oh(ma),t=Ht.transition,r=ze;try{if(Ht.transition=null,ze=16>e?16:e,lr===null)var s=!1;else{if(e=lr,lr=null,ma=0,(Ie&6)!==0)throw Error(i(331));var c=Ie;for(Ie|=4,ue=e.current;ue!==null;){var d=ue,x=d.child;if((ue.flags&16)!==0){var _=d.deletions;if(_!==null){for(var T=0;T<_.length;T++){var L=_[T];for(ue=L;ue!==null;){var W=ue;switch(W.tag){case 0:case 11:case 15:gi(8,W,d)}var Y=W.child;if(Y!==null)Y.return=W,ue=Y;else for(;ue!==null;){W=ue;var V=W.sibling,oe=W.return;if(tv(W),W===L){ue=null;break}if(V!==null){V.return=oe,ue=V;break}ue=oe}}}var fe=d.alternate;if(fe!==null){var he=fe.child;if(he!==null){fe.child=null;do{var Ke=he.sibling;he.sibling=null,he=Ke}while(he!==null)}}ue=d}}if((d.subtreeFlags&2064)!==0&&x!==null)x.return=d,ue=x;else e:for(;ue!==null;){if(d=ue,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:gi(9,d,d.return)}var M=d.sibling;if(M!==null){M.return=d.return,ue=M;break e}ue=d.return}}var A=e.current;for(ue=A;ue!==null;){x=ue;var z=x.child;if((x.subtreeFlags&2064)!==0&&z!==null)z.return=x,ue=z;else e:for(x=A;ue!==null;){if(_=ue,(_.flags&2048)!==0)try{switch(_.tag){case 0:case 11:case 15:ca(9,_)}}catch(ge){Ve(_,_.return,ge)}if(_===x){ue=null;break e}var Q=_.sibling;if(Q!==null){Q.return=_.return,ue=Q;break e}ue=_.return}}if(Ie=c,rr(),dn&&typeof dn.onPostCommitFiberRoot=="function")try{dn.onPostCommitFiberRoot(ks,e)}catch{}s=!0}return s}finally{ze=r,Ht.transition=t}}return!1}function vv(e,t,r){t=wo(r,t),t=zg(e,t,1),e=ir(e,t,1),t=yt(),e!==null&&(Uo(e,1,t),_t(e,t))}function Ve(e,t,r){if(e.tag===3)vv(e,e,r);else for(;t!==null;){if(t.tag===3){vv(t,e,r);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ar===null||!ar.has(s))){e=wo(r,e),e=Lg(t,e,1),t=ir(t,e,1),e=yt(),t!==null&&(Uo(t,1,e),_t(t,e));break}}t=t.return}}function N2(e,t,r){var s=e.pingCache;s!==null&&s.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&r,ot===e&&(ct&r)===r&&(et===4||et===3&&(ct&130023424)===ct&&500>Ye()-lu?Or(e,0):au|=r),_t(e,t)}function yv(e,t){t===0&&((e.mode&1)===0?t=1:(t=Cs,Cs<<=1,(Cs&130023424)===0&&(Cs=4194304)));var r=yt();e=Nn(e,t),e!==null&&(Uo(e,t,r),_t(e,r))}function R2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),yv(e,r)}function P2(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),yv(e,r)}var wv;wv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)Ct=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ct=!1,g2(e,t,r);Ct=(e.flags&131072)!==0}else Ct=!1,$e&&(t.flags&1048576)!==0&&Zh(t,Gs,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;aa(e,t),e=t.pendingProps;var c=uo(t,ft.current);vo(t,r),c=Fc(null,t,s,e,c,r);var d=$c();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,St(s)?(d=!0,Us(t)):d=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Ic(t),c.updater=ia,t.stateNode=c,c._reactInternals=t,Gc(t,s,e,r),t=Qc(null,t,s,!0,d,r)):(t.tag=0,$e&&d&&kc(t),vt(null,t,c,r),t=t.child),t;case 16:s=t.elementType;e:{switch(aa(e,t),e=t.pendingProps,c=s._init,s=c(s._payload),t.type=s,c=t.tag=A2(s),e=Zt(s,e),c){case 0:t=Xc(null,t,s,e,r);break e;case 1:t=Wg(null,t,s,e,r);break e;case 11:t=$g(null,t,s,e,r);break e;case 14:t=Bg(null,t,s,Zt(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:Zt(s,c),Xc(e,t,s,c,r);case 1:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),Wg(e,t,s,c,r);case 3:e:{if(Gg(t),e===null)throw Error(i(387));s=t.pendingProps,d=t.memoizedState,c=d.element,ag(e,t),Zs(t,s,null,r);var x=t.memoizedState;if(s=x.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){c=wo(Error(i(423)),t),t=Yg(e,t,s,r,c);break e}else if(s!==c){c=wo(Error(i(424)),t),t=Yg(e,t,s,r,c);break e}else for(It=er(t.stateNode.containerInfo.firstChild),At=t,$e=!0,qt=null,r=ig(t,null,s,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(mo(),s===c){t=Pn(e,t,r);break e}vt(e,t,s,r)}t=t.child}return t;case 5:return ug(t),e===null&&Ec(t),s=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,x=c.children,gc(s,c)?x=null:d!==null&&gc(s,d)&&(t.flags|=32),Vg(e,t),vt(e,t,x,r),t.child;case 6:return e===null&&Ec(t),null;case 13:return Kg(e,t,r);case 4:return jc(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=ho(t,null,s,r):vt(e,t,s,r),t.child;case 11:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),$g(e,t,s,c,r);case 7:return vt(e,t,t.pendingProps,r),t.child;case 8:return vt(e,t,t.pendingProps.children,r),t.child;case 12:return vt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(s=t.type._context,c=t.pendingProps,d=t.memoizedProps,x=c.value,Le(Xs,s._currentValue),s._currentValue=x,d!==null)if(Qt(d.value,x)){if(d.children===c.children&&!kt.current){t=Pn(e,t,r);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var _=d.dependencies;if(_!==null){x=d.child;for(var T=_.firstContext;T!==null;){if(T.context===s){if(d.tag===1){T=Rn(-1,r&-r),T.tag=2;var L=d.updateQueue;if(L!==null){L=L.shared;var W=L.pending;W===null?T.next=T:(T.next=W.next,W.next=T),L.pending=T}}d.lanes|=r,T=d.alternate,T!==null&&(T.lanes|=r),Tc(d.return,r,t),_.lanes|=r;break}T=T.next}}else if(d.tag===10)x=d.type===t.type?null:d.child;else if(d.tag===18){if(x=d.return,x===null)throw Error(i(341));x.lanes|=r,_=x.alternate,_!==null&&(_.lanes|=r),Tc(x,r,t),x=d.sibling}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===t){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}vt(e,t,c.children,r),t=t.child}return t;case 9:return c=t.type,s=t.pendingProps.children,vo(t,r),c=$t(c),s=s(c),t.flags|=1,vt(e,t,s,r),t.child;case 14:return s=t.type,c=Zt(s,t.pendingProps),c=Zt(s.type,c),Bg(e,t,s,c,r);case 15:return Hg(e,t,t.type,t.pendingProps,r);case 17:return s=t.type,c=t.pendingProps,c=t.elementType===s?c:Zt(s,c),aa(e,t),t.tag=1,St(s)?(e=!0,Us(t)):e=!1,vo(t,r),jg(t,s,c),Gc(t,s,c,r),Qc(null,t,s,!0,e,r);case 19:return Qg(e,t,r);case 22:return Ug(e,t,r)}throw Error(i(156,t.tag))};function xv(e,t){return Jm(e,t)}function T2(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 Ut(e,t,r,s){return new T2(e,t,r,s)}function gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function A2(e){if(typeof e=="function")return gu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===le)return 11;if(e===Se)return 14}return 2}function dr(e,t){var r=e.alternate;return r===null?(r=Ut(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 ya(e,t,r,s,c,d){var x=2;if(s=e,typeof e=="function")gu(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case F:return Fr(r.children,c,d,t);case $:x=8,c|=8;break;case X:return e=Ut(12,r,t,c|2),e.elementType=X,e.lanes=d,e;case me:return e=Ut(13,r,t,c),e.elementType=me,e.lanes=d,e;case ve:return e=Ut(19,r,t,c),e.elementType=ve,e.lanes=d,e;case te:return wa(r,c,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ie:x=10;break e;case ae:x=9;break e;case le:x=11;break e;case Se:x=14;break e;case G:x=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ut(x,r,t,c),t.elementType=e,t.type=s,t.lanes=d,t}function Fr(e,t,r,s){return e=Ut(7,e,s,t),e.lanes=r,e}function wa(e,t,r,s){return e=Ut(22,e,s,t),e.elementType=te,e.lanes=r,e.stateNode={isHidden:!1},e}function vu(e,t,r){return e=Ut(6,e,null,t),e.lanes=r,e}function yu(e,t,r){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function I2(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=Wl(0),this.expirationTimes=Wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.identifierPrefix=s,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function wu(e,t,r,s,c,d,x,_,T){return e=new I2(e,t,r,_,T),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Ut(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:s,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ic(d),e}function j2(e,t,r){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:s==null?null:""+s,children:e,containerInfo:t,implementation:r}}function bv(e){if(!e)return nr;e=e._reactInternals;e:{if(Nr(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(St(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(St(r))return Xh(e,r,t)}return t}function kv(e,t,r,s,c,d,x,_,T){return e=wu(r,s,!0,e,c,d,x,_,T),e.context=bv(null),r=e.current,s=yt(),c=cr(r),d=Rn(s,c),d.callback=t??null,ir(r,d,c),e.current.lanes=c,Uo(e,c,s),_t(e,s),e}function xa(e,t,r,s){var c=t.current,d=yt(),x=cr(c);return r=bv(r),t.context===null?t.context=r:t.pendingContext=r,t=Rn(d,x),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=ir(c,t,x),e!==null&&(tn(e,c,x,d),qs(e,c,x)),x}function ba(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 Sv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function xu(e,t){Sv(e,t),(e=e.alternate)&&Sv(e,t)}function M2(){return null}var Cv=typeof reportError=="function"?reportError:function(e){console.error(e)};function bu(e){this._internalRoot=e}ka.prototype.render=bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));xa(e,t,null,null)},ka.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lr(function(){xa(null,e,null,null)}),t[Sn]=null}};function ka(e){this._internalRoot=e}ka.prototype.unstable_scheduleHydration=function(e){if(e){var t=ah();e={blockedOn:null,target:e,priority:t};for(var r=0;r<qn.length&&t!==0&&t<qn[r].priority;r++);qn.splice(r,0,e),r===0&&uh(e)}};function ku(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ev(){}function z2(e,t,r,s,c){if(c){if(typeof s=="function"){var d=s;s=function(){var L=ba(x);d.call(L)}}var x=kv(t,s,e,0,null,!1,!1,"",Ev);return e._reactRootContainer=x,e[Sn]=x.current,ri(e.nodeType===8?e.parentNode:e),Lr(),x}for(;c=e.lastChild;)e.removeChild(c);if(typeof s=="function"){var _=s;s=function(){var L=ba(T);_.call(L)}}var T=wu(e,0,!1,null,null,!1,!1,"",Ev);return e._reactRootContainer=T,e[Sn]=T.current,ri(e.nodeType===8?e.parentNode:e),Lr(function(){xa(t,T,r,s)}),T}function Ca(e,t,r,s,c){var d=r._reactRootContainer;if(d){var x=d;if(typeof c=="function"){var _=c;c=function(){var T=ba(x);_.call(T)}}xa(t,x,e,c)}else x=z2(r,t,e,c,s);return ba(x)}ih=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Ho(t.pendingLanes);r!==0&&(Gl(t,r|1),_t(t,Ye()),(Ie&6)===0&&(ko=Ye()+500,rr()))}break;case 13:Lr(function(){var s=Nn(e,1);if(s!==null){var c=yt();tn(s,e,1,c)}}),xu(e,1)}},Yl=function(e){if(e.tag===13){var t=Nn(e,134217728);if(t!==null){var r=yt();tn(t,e,134217728,r)}xu(e,134217728)}},sh=function(e){if(e.tag===13){var t=cr(e),r=Nn(e,t);if(r!==null){var s=yt();tn(r,e,t,s)}xu(e,t)}},ah=function(){return ze},lh=function(e,t){var r=ze;try{return ze=e,t()}finally{ze=r}},Fo=function(e,t,r){switch(t){case"input":if(gt(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=Bs(s);if(!c)throw Error(i(90));Re(s),gt(s,c)}}}break;case"textarea":gs(e,r);break;case"select":t=r.value,t!=null&&Bn(e,!!r.multiple,t,!1)}},Ze=pu,dt=Lr;var L2={usingClientEntryPoint:!1,Events:[si,lo,Bs,_e,Ge,pu]},xi={findFiberByHostInstance:Rr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},O2={bundleType:xi.bundleType,version:xi.version,rendererPackageName:xi.rendererPackageName,rendererConfig:xi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qm(e),e===null?null:e.stateNode},findFiberByHostInstance:xi.findFiberByHostInstance||M2,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 Ea=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ea.isDisabled&&Ea.supportsFiber)try{ks=Ea.inject(O2),dn=Ea}catch{}}return wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L2,wt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ku(t))throw Error(i(200));return j2(e,t,null,r)},wt.createRoot=function(e,t){if(!ku(e))throw Error(i(299));var r=!1,s="",c=Cv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=wu(e,1,!1,null,null,r,!1,s,c),e[Sn]=t.current,ri(e.nodeType===8?e.parentNode:e),new bu(t)},wt.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=qm(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return Lr(e)},wt.hydrate=function(e,t,r){if(!Sa(t))throw Error(i(200));return Ca(null,e,t,!0,r)},wt.hydrateRoot=function(e,t,r){if(!ku(e))throw Error(i(405));var s=r!=null&&r.hydratedSources||null,c=!1,d="",x=Cv;if(r!=null&&(r.unstable_strictMode===!0&&(c=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(x=r.onRecoverableError)),t=kv(t,null,e,1,r??null,c,!1,d,x),e[Sn]=t.current,ri(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 ka(t)},wt.render=function(e,t,r){if(!Sa(t))throw Error(i(200));return Ca(null,e,t,!1,r)},wt.unmountComponentAtNode=function(e){if(!Sa(e))throw Error(i(40));return e._reactRootContainer?(Lr(function(){Ca(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1},wt.unstable_batchedUpdates=pu,wt.unstable_renderSubtreeIntoContainer=function(e,t,r,s){if(!Sa(r))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Ca(e,t,r,!1,s)},wt.version="18.3.1-next-f1338f8080-20240426",wt}var Au;function Iu(){if(Au)return Na.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(),Na.exports=Av(),Na.exports}var ju;function Iv(){if(ju)return ki;ju=1;var n=Iu();return ki.createRoot=n.createRoot,ki.hydrateRoot=n.hydrateRoot,ki}var jv=Iv();const Mv='/*! 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}.visible{visibility:visible}.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-muted-foreground{color:var(--muted-foreground)!important}.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 g=bi();const K=nn(g),Mu=pr({__proto__:null,default:K},[g]),zv=()=>{try{return"600b0702-014f-4376-a0e8-e1ca38ec84a8"}catch{return"dev"}},mr=new Map,Lv=async(n,o)=>{const i=mr.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=zv();p=await(await fetch(`${n.bundleUrl}?_b=${v}`)).text()}catch(v){console.error(`[SandboxManager] Failed to fetch bundle for ${n.id}:`,v)}const m=`<!DOCTYPE html>
|
|
41
41
|
<html>
|
|
42
42
|
<head>
|
|
43
43
|
<meta charset="utf-8">
|
|
@@ -48,202 +48,212 @@ 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>`;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});/**
|
|
51
|
+
</html>`;a.srcdoc=m,console.warn(`[SandboxManager] Creating srcdoc sandbox for ${n.id}, srcdoc starts with: ${m.substring(0,300)}`)}o.appendChild(a);const u={extensionId:n.id,iframe:a,manifest:n.manifest,ready:!1,messageHandlers:new Set},f=p=>{const m=p.data;!m||typeof m!="object"||!("type"in m)||("extensionId"in m?m.extensionId:void 0)!==n.id||(m.type==="extension-ready"&&(u.ready=!0),u.messageHandlers.forEach(w=>w(m)))};return window.addEventListener("message",f),mr.set(n.id,u),u},Si=(n,o)=>{const i=mr.get(n);if(!(i!=null&&i.iframe.contentWindow)){console.warn(`Sandbox not found for extension: ${n}`);return}i.iframe.contentWindow.postMessage(o,"*")},$r=n=>mr.get(n),Ov=n=>{const o=mr.get(n);o&&(o.iframe.remove(),o.messageHandlers.clear(),mr.delete(n))},Dv=()=>mr,Fv=["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"],$v={"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"]},Bv={"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"]},Hv={"context.read":"context:read","data.query":"data:query","data.fetch":"data:fetch","actions.toast":"actions:toast","actions.invoke":"actions:invoke"},zu={ADMIN:"org:super_admin"},Lu={ADMIN:"org:admin",OWNER:"org:owner"},Uv=[zu.ADMIN,Lu.ADMIN,Lu.OWNER];[...Object.values(zu),...Object.values(Uv)];const Vv=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||!$r(u)){const m=[...Dv().keys()];console.warn(`Received capability request from unknown source (extensionId: "${u??"undefined"}", registered: [${m.join(", ")}], capability: ${l.capability})`);return}const f=$r(u);if(!f)return;const p=Hv[l.capability];if(p&&!f.manifest.permissions.includes(p)){const m={type:"capability-response",id:l.id,success:!1,error:`Permission denied: '${p}' not granted for extension '${u}'`};Si(u,m);return}try{let m;switch(l.capability){case"data.query":m=await n["data.query"](l.payload);break;case"data.fetch":m=await n["data.fetch"](u,l.payload);break;case"actions.toast":m=await n["actions.toast"](u,l.payload);break;case"actions.invoke":m=await n["actions.invoke"](l.payload);break;case"context.read":m=await n["context.read"]();break;default:throw new Error(`Unknown capability: ${l.capability}`)}const v={type:"capability-response",id:l.id,success:!0,data:m};Si(u,v)}catch(m){const v={type:"capability-response",id:l.id,success:!1,error:m instanceof Error?m.message:"Unknown error"};Si(u,v)}};return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},Ou=g.createContext({extensions:[],components:{},ready:!1}),Wv=({extensions:n,capabilityHandlers:o,components:i={},children:a})=>{const[l,u]=g.useState(!1),f=g.useRef(null),p=g.useRef(null);return g.useEffect(()=>{if(!f.current)return;let m=!1;return(async()=>{const w=f.current;if(w){console.log("[ExtensionProvider] Initializing with",n.length,"extensions"),p.current=Vv(o);for(const h of n)h.enabled&&!m&&(console.log("[ExtensionProvider] Creating sandbox for",h.id,"bundleUrl:",h.bundleUrl),await Lv(h,w),console.log("[ExtensionProvider] Sandbox created for",h.id));m||(console.log("[ExtensionProvider] Ready"),u(!0))}})(),()=>{var w;m=!0;for(const h of n)Ov(h.id);(w=p.current)==null||w.call(p)}},[n,o]),y.jsxs(Ou.Provider,{value:{extensions:n,components:i,ready:l},children:[y.jsx("div",{ref:f,style:{display:"none"}}),a]})},Gv=()=>g.useContext(Ou),Yv=n=>Fv.includes(n),Kv=(n,o)=>{const i={},a=[];if(!o)return{filtered:i,stripped:a};const l=$v[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}},Xv=(n,o)=>{const i=Bv[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},Ci=({target:n,context:o,className:i,separator:a,fallback:l=null,render:u})=>{const{extensions:f,components:p,ready:m}=Gv(),[v,w]=g.useState({}),h=g.useRef(""),k=g.useMemo(()=>f.filter(S=>S.enabled&&S.manifest.targets.includes(n)),[f.map(S=>S.id).join(","),n]),C=g.useCallback((S,E,R=0)=>{var $,X,ie;if(S.type==="text")return S.text||null;if(!S.tag)return null;if(S.tag==="__fragment")return y.jsx(K.Fragment,{children:($=S.children)==null?void 0:$.map((ae,le)=>C(ae,E,le))},R);if(!Yv(S.tag))return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${S.tag}>`),null;const P=p[S.tag];if(!P)return S.tag.startsWith("ui-")?(console.warn(`[ExtensionSlot] Unregistered UI tag: <${S.tag}>`),null):y.jsx(K.Fragment,{children:(X=S.children)==null?void 0:X.map((ae,le)=>C(ae,E,le))},R);const{filtered:j,stripped:H}=Kv(S.tag,S.attrs);H.length>0&&console.warn(`[ExtensionSlot] Attributes not allowed on <${S.tag}>, stripped: ${H.join(", ")}`);const D=Xv(S.tag,S.children);if(D.length>0&&console.warn(`[ExtensionSlot] Invalid children in <${S.tag}>: ${D.join(", ")}`),S.actionId){const ae=S.actionId;j.onClick=()=>{const le=E;le==null||le.postMessage({type:"action-invoke",surfaceId:n,actionId:ae},"*")}}if(j["data-onchange-id"]){const ae=j["data-onchange-id"];delete j["data-onchange-id"],j.onChange=le=>{const me=E;me==null||me.postMessage({type:"action-invoke",surfaceId:n,actionId:ae,value:le.target.value},"*")}}const F=(ie=S.children)==null?void 0:ie.map((ae,le)=>C(ae,E,le));return g.createElement(P,{...j,key:R},F&&F.length>0?F:void 0)},[n,p]);if(g.useEffect(()=>{const S=k.map(R=>R.id).join(",");if(h.current!==S&&(h.current=S,w({})),!m||k.length===0)return;const E=R=>{const P=R.data;if(!(!P||typeof P!="object"||!k.some(H=>{const D=$r(H.id);return D&&R.source===D.iframe.contentWindow}))){if(P.type==="surface-update"&&P.surfaceId===n){const H=k.find(F=>{const $=$r(F.id);return $&&R.source===$.iframe.contentWindow});if(!H)return;const D=C(P.tree,R.source??null);w(F=>({...F,[H.id]:D}))}P.type==="surface-ready"&&P.surfaceId===n&&o&&k.forEach(H=>{var F;const D=$r(H.id);(F=D==null?void 0:D.iframe.contentWindow)==null||F.postMessage({type:"context-update",surfaceId:n,context:o},"*")})}};return window.addEventListener("message",E),k.forEach(R=>{var j;const P=$r(R.id);(j=P==null?void 0:P.iframe.contentWindow)==null||j.postMessage({type:"surface-render",surfaceId:n,context:o},"*")}),()=>{window.removeEventListener("message",E)}},[m,k,n,o,C]),!m)return null;if(k.length===0)return l?y.jsx("div",{"data-extension-slot":n,title:n,className:i,children:l}):null;const N=k.map(S=>({id:S.id,children:v[S.id]})).filter(S=>!!S.children),b=N.length>0?N.flatMap((S,E,R)=>{const P=u?u({extensionId:S.id,children:S.children,index:E,total:R.length}):y.jsx(K.Fragment,{children:S.children},S.id),j=y.jsx(K.Fragment,{children:P},`extension:${S.id}`);if(E===0||!a)return[j];const H=R[E-1],D=typeof a=="function"?a({index:E,total:R.length,previousExtensionId:H.id,extensionId:S.id}):a;return[y.jsx(K.Fragment,{children:D},`separator:${H.id}:${S.id}:${E}`),j]}):l;return y.jsx("div",{"data-extension-slot":n,title:n,className:i,children:b})};var Eo=Iu();const Du=nn(Eo);function Qv(n){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",o.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}const qv=n=>{switch(n){case"success":return e0;case"info":return n0;case"warning":return t0;case"error":return r0;default:return null}},Zv=Array(12).fill(0),Jv=({visible:n,className:o})=>K.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":n},K.createElement("div",{className:"sonner-spinner"},Zv.map((i,a)=>K.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),e0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),t0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),n0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),r0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),o0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},K.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),i0=()=>{const[n,o]=K.useState(document.hidden);return K.useEffect(()=>{const i=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),n};let Ta=1;class s0{constructor(){this.subscribe=o=>(this.subscribers.push(o),()=>{const i=this.subscribers.indexOf(o);this.subscribers.splice(i,1)}),this.publish=o=>{this.subscribers.forEach(i=>i(o))},this.addToast=o=>{this.publish(o),this.toasts=[...this.toasts,o]},this.create=o=>{var i;const{message:a,...l}=o,u=typeof(o==null?void 0:o.id)=="number"||((i=o.id)==null?void 0:i.length)>0?o.id:Ta++,f=this.toasts.find(m=>m.id===u),p=o.dismissible===void 0?!0:o.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),f?this.toasts=this.toasts.map(m=>m.id===u?(this.publish({...m,...o,id:u,title:a}),{...m,...o,id:u,dismissible:p,title:a}):m):this.addToast({title:a,...l,dismissible:p,id:u}),u},this.dismiss=o=>(o?(this.dismissedToasts.add(o),requestAnimationFrame(()=>this.subscribers.forEach(i=>i({id:o,dismiss:!0})))):this.toasts.forEach(i=>{this.subscribers.forEach(a=>a({id:i.id,dismiss:!0}))}),o),this.message=(o,i)=>this.create({...i,message:o}),this.error=(o,i)=>this.create({...i,message:o,type:"error"}),this.success=(o,i)=>this.create({...i,type:"success",message:o}),this.info=(o,i)=>this.create({...i,type:"info",message:o}),this.warning=(o,i)=>this.create({...i,type:"warning",message:o}),this.loading=(o,i)=>this.create({...i,type:"loading",message:o}),this.promise=(o,i)=>{if(!i)return;let a;i.loading!==void 0&&(a=this.create({...i,promise:o,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const l=Promise.resolve(o instanceof Function?o():o);let u=a!==void 0,f;const p=l.then(async v=>{if(f=["resolve",v],K.isValidElement(v))u=!1,this.create({id:a,type:"default",message:v});else if(l0(v)&&!v.ok){u=!1;const h=typeof i.error=="function"?await i.error(`HTTP error! status: ${v.status}`):i.error,k=typeof i.description=="function"?await i.description(`HTTP error! status: ${v.status}`):i.description,N=typeof h=="object"&&!K.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:k,...N})}else if(v instanceof Error){u=!1;const h=typeof i.error=="function"?await i.error(v):i.error,k=typeof i.description=="function"?await i.description(v):i.description,N=typeof h=="object"&&!K.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:k,...N})}else if(i.success!==void 0){u=!1;const h=typeof i.success=="function"?await i.success(v):i.success,k=typeof i.description=="function"?await i.description(v):i.description,N=typeof h=="object"&&!K.isValidElement(h)?h:{message:h};this.create({id:a,type:"success",description:k,...N})}}).catch(async v=>{if(f=["reject",v],i.error!==void 0){u=!1;const w=typeof i.error=="function"?await i.error(v):i.error,h=typeof i.description=="function"?await i.description(v):i.description,C=typeof w=="object"&&!K.isValidElement(w)?w:{message:w};this.create({id:a,type:"error",description:h,...C})}}).finally(()=>{u&&(this.dismiss(a),a=void 0),i.finally==null||i.finally.call(i)}),m=()=>new Promise((v,w)=>p.then(()=>f[0]==="reject"?w(f[1]):v(f[1])).catch(w));return typeof a!="string"&&typeof a!="number"?{unwrap:m}:Object.assign(a,{unwrap:m})},this.custom=(o,i)=>{const a=(i==null?void 0:i.id)||Ta++;return this.create({jsx:o(a),id:a,...i}),a},this.getActiveToasts=()=>this.toasts.filter(o=>!this.dismissedToasts.has(o.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const xt=new s0,a0=(n,o)=>{const i=(o==null?void 0:o.id)||Ta++;return xt.addToast({title:n,...o,id:i}),i},l0=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",c0=a0,u0=()=>xt.toasts,d0=()=>xt.getActiveToasts(),Br=Object.assign(c0,{success:xt.success,info:xt.info,warning:xt.warning,error:xt.error,custom:xt.custom,message:xt.message,promise:xt.promise,dismiss:xt.dismiss,loading:xt.loading},{getHistory:u0,getToasts:d0});Qv("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ei(n){return n.label!==void 0}const f0=3,p0="24px",m0="16px",Fu=4e3,h0=356,g0=14,v0=45,y0=200;function rn(...n){return n.filter(Boolean).join(" ")}function w0(n){const[o,i]=n.split("-"),a=[];return o&&a.push(o),i&&a.push(i),a}const x0=n=>{var o,i,a,l,u,f,p,m,v;const{invert:w,toast:h,unstyled:k,interacting:C,setHeights:N,visibleToasts:b,heights:S,index:E,toasts:R,expanded:P,removeToast:j,defaultRichColors:H,closeButton:D,style:F,cancelButtonStyle:$,actionButtonStyle:X,className:ie="",descriptionClassName:ae="",duration:le,position:me,gap:ve,expandByDefault:Se,classNames:G,icons:te,closeButtonAriaLabel:B="Close toast"}=n,[q,O]=K.useState(null),[I,U]=K.useState(null),[ee,re]=K.useState(!1),[ne,se]=K.useState(!1),[Z,J]=K.useState(!1),[ce,Ce]=K.useState(!1),[Ne,Re]=K.useState(!1),[Fe,Be]=K.useState(0),[un,Kt]=K.useState(0),gt=K.useRef(h.duration||le||Fu),kr=K.useRef(null),tt=K.useRef(null),Sr=E===0,Bn=E+1<=b,st=h.type,bn=h.dismissible!==!1,gs=h.className||"",vs=h.descriptionClassName||"",Cr=K.useMemo(()=>S.findIndex(_e=>_e.toastId===h.id)||0,[S,h.id]),Oo=K.useMemo(()=>{var _e;return(_e=h.closeButton)!=null?_e:D},[h.closeButton,D]),Er=K.useMemo(()=>h.duration||le||Fu,[h.duration,le]),Jr=K.useRef(0),zt=K.useRef(0),Hn=K.useRef(0),Un=K.useRef(null),[ys,ws]=me.split("-"),xs=K.useMemo(()=>S.reduce((_e,Ge,Ze)=>Ze>=Cr?_e:_e+Ge.height,0),[S,Cr]),eo=i0(),Do=h.invert||w,_r=st==="loading";zt.current=K.useMemo(()=>Cr*ve+xs,[Cr,xs]),K.useEffect(()=>{gt.current=Er},[Er]),K.useEffect(()=>{re(!0)},[]),K.useEffect(()=>{const _e=tt.current;if(_e){const Ge=_e.getBoundingClientRect().height;return Kt(Ge),N(Ze=>[{toastId:h.id,height:Ge,position:h.position},...Ze]),()=>N(Ze=>Ze.filter(dt=>dt.toastId!==h.id))}},[N,h.id]),K.useLayoutEffect(()=>{if(!ee)return;const _e=tt.current,Ge=_e.style.height;_e.style.height="auto";const Ze=_e.getBoundingClientRect().height;_e.style.height=Ge,Kt(Ze),N(dt=>dt.find(Xe=>Xe.toastId===h.id)?dt.map(Xe=>Xe.toastId===h.id?{...Xe,height:Ze}:Xe):[{toastId:h.id,height:Ze,position:h.position},...dt])},[ee,h.title,h.description,N,h.id,h.jsx,h.action,h.cancel]);const Lt=K.useCallback(()=>{se(!0),Be(zt.current),N(_e=>_e.filter(Ge=>Ge.toastId!==h.id)),setTimeout(()=>{j(h)},y0)},[h,j,N,zt]);K.useEffect(()=>{if(h.promise&&st==="loading"||h.duration===1/0||h.type==="loading")return;let _e;return P||C||eo?(()=>{if(Hn.current<Jr.current){const dt=new Date().getTime()-Jr.current;gt.current=gt.current-dt}Hn.current=new Date().getTime()})():(()=>{gt.current!==1/0&&(Jr.current=new Date().getTime(),_e=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),Lt()},gt.current))})(),()=>clearTimeout(_e)},[P,C,h,st,eo,Lt]),K.useEffect(()=>{h.delete&&(Lt(),h.onDismiss==null||h.onDismiss.call(h,h))},[Lt,h.delete]);function Fo(){var _e;if(te!=null&&te.loading){var Ge;return K.createElement("div",{className:rn(G==null?void 0:G.loader,h==null||(Ge=h.classNames)==null?void 0:Ge.loader,"sonner-loader"),"data-visible":st==="loading"},te.loading)}return K.createElement(Jv,{className:rn(G==null?void 0:G.loader,h==null||(_e=h.classNames)==null?void 0:_e.loader),visible:st==="loading"})}const Vn=h.icon||(te==null?void 0:te[st])||qv(st);var kn,$o;return K.createElement("li",{tabIndex:0,ref:tt,className:rn(ie,gs,G==null?void 0:G.toast,h==null||(o=h.classNames)==null?void 0:o.toast,G==null?void 0:G.default,G==null?void 0:G[st],h==null||(i=h.classNames)==null?void 0:i[st]),"data-sonner-toast":"","data-rich-colors":(kn=h.richColors)!=null?kn:H,"data-styled":!(h.jsx||h.unstyled||k),"data-mounted":ee,"data-promise":!!h.promise,"data-swiped":Ne,"data-removed":ne,"data-visible":Bn,"data-y-position":ys,"data-x-position":ws,"data-index":E,"data-front":Sr,"data-swiping":Z,"data-dismissible":bn,"data-type":st,"data-invert":Do,"data-swipe-out":ce,"data-swipe-direction":I,"data-expanded":!!(P||Se&&ee),"data-testid":h.testId,style:{"--index":E,"--toasts-before":E,"--z-index":R.length-E,"--offset":`${ne?Fe:zt.current}px`,"--initial-height":Se?"auto":`${un}px`,...F,...h.style},onDragEnd:()=>{J(!1),O(null),Un.current=null},onPointerDown:_e=>{_e.button!==2&&(_r||!bn||(kr.current=new Date,Be(zt.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(J(!0),Un.current={x:_e.clientX,y:_e.clientY})))},onPointerUp:()=>{var _e,Ge,Ze;if(ce||!bn)return;Un.current=null;const dt=Number(((_e=tt.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Wn=Number(((Ge=tt.current)==null?void 0:Ge.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Xe=new Date().getTime()-((Ze=kr.current)==null?void 0:Ze.getTime()),nt=q==="x"?dt:Wn,Gn=Math.abs(nt)/Xe;if(Math.abs(nt)>=v0||Gn>.11){Be(zt.current),h.onDismiss==null||h.onDismiss.call(h,h),U(q==="x"?dt>0?"right":"left":Wn>0?"down":"up"),Lt(),Ce(!0);return}else{var at,Pt;(at=tt.current)==null||at.style.setProperty("--swipe-amount-x","0px"),(Pt=tt.current)==null||Pt.style.setProperty("--swipe-amount-y","0px")}Re(!1),J(!1),O(null)},onPointerMove:_e=>{var Ge,Ze,dt;if(!Un.current||!bn||((Ge=window.getSelection())==null?void 0:Ge.toString().length)>0)return;const Xe=_e.clientY-Un.current.y,nt=_e.clientX-Un.current.x;var Gn;const at=(Gn=n.swipeDirections)!=null?Gn:w0(me);!q&&(Math.abs(nt)>1||Math.abs(Xe)>1)&&O(Math.abs(nt)>Math.abs(Xe)?"x":"y");let Pt={x:0,y:0};const Yn=Ot=>1/(1.5+Math.abs(Ot)/20);if(q==="y"){if(at.includes("top")||at.includes("bottom"))if(at.includes("top")&&Xe<0||at.includes("bottom")&&Xe>0)Pt.y=Xe;else{const Ot=Xe*Yn(Xe);Pt.y=Math.abs(Ot)<Math.abs(Xe)?Ot:Xe}}else if(q==="x"&&(at.includes("left")||at.includes("right")))if(at.includes("left")&&nt<0||at.includes("right")&&nt>0)Pt.x=nt;else{const Ot=nt*Yn(nt);Pt.x=Math.abs(Ot)<Math.abs(nt)?Ot:nt}(Math.abs(Pt.x)>0||Math.abs(Pt.y)>0)&&Re(!0),(Ze=tt.current)==null||Ze.style.setProperty("--swipe-amount-x",`${Pt.x}px`),(dt=tt.current)==null||dt.style.setProperty("--swipe-amount-y",`${Pt.y}px`)}},Oo&&!h.jsx&&st!=="loading"?K.createElement("button",{"aria-label":B,"data-disabled":_r,"data-close-button":!0,onClick:_r||!bn?()=>{}:()=>{Lt(),h.onDismiss==null||h.onDismiss.call(h,h)},className:rn(G==null?void 0:G.closeButton,h==null||(a=h.classNames)==null?void 0:a.closeButton)},($o=te==null?void 0:te.close)!=null?$o:o0):null,(st||h.icon||h.promise)&&h.icon!==null&&((te==null?void 0:te[st])!==null||h.icon)?K.createElement("div",{"data-icon":"",className:rn(G==null?void 0:G.icon,h==null||(l=h.classNames)==null?void 0:l.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Fo():null,h.type!=="loading"?Vn:null):null,K.createElement("div",{"data-content":"",className:rn(G==null?void 0:G.content,h==null||(u=h.classNames)==null?void 0:u.content)},K.createElement("div",{"data-title":"",className:rn(G==null?void 0:G.title,h==null||(f=h.classNames)==null?void 0:f.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?K.createElement("div",{"data-description":"",className:rn(ae,vs,G==null?void 0:G.description,h==null||(p=h.classNames)==null?void 0:p.description)},typeof h.description=="function"?h.description():h.description):null),K.isValidElement(h.cancel)?h.cancel:h.cancel&&Ei(h.cancel)?K.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||$,onClick:_e=>{Ei(h.cancel)&&bn&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,_e),Lt())},className:rn(G==null?void 0:G.cancelButton,h==null||(m=h.classNames)==null?void 0:m.cancelButton)},h.cancel.label):null,K.isValidElement(h.action)?h.action:h.action&&Ei(h.action)?K.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||X,onClick:_e=>{Ei(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,_e),!_e.defaultPrevented&&Lt())},className:rn(G==null?void 0:G.actionButton,h==null||(v=h.classNames)==null?void 0:v.actionButton)},h.action.label):null)};function $u(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function b0(n,o){const i={};return[n,o].forEach((a,l)=>{const u=l===1,f=u?"--mobile-offset":"--offset",p=u?m0:p0;function m(v){["top","right","bottom","left"].forEach(w=>{i[`${f}-${w}`]=typeof v=="number"?`${v}px`:v})}typeof a=="number"||typeof a=="string"?m(a):typeof a=="object"?["top","right","bottom","left"].forEach(v=>{a[v]===void 0?i[`${f}-${v}`]=p:i[`${f}-${v}`]=typeof a[v]=="number"?`${a[v]}px`:a[v]}):m(p)}),i}const k0=K.forwardRef(function(o,i){const{id:a,invert:l,position:u="bottom-right",hotkey:f=["altKey","KeyT"],expand:p,closeButton:m,className:v,offset:w,mobileOffset:h,theme:k="light",richColors:C,duration:N,style:b,visibleToasts:S=f0,toastOptions:E,dir:R=$u(),gap:P=g0,icons:j,containerAriaLabel:H="Notifications"}=o,[D,F]=K.useState([]),$=K.useMemo(()=>a?D.filter(ee=>ee.toasterId===a):D.filter(ee=>!ee.toasterId),[D,a]),X=K.useMemo(()=>Array.from(new Set([u].concat($.filter(ee=>ee.position).map(ee=>ee.position)))),[$,u]),[ie,ae]=K.useState([]),[le,me]=K.useState(!1),[ve,Se]=K.useState(!1),[G,te]=K.useState(k!=="system"?k:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=K.useRef(null),q=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=K.useRef(null),I=K.useRef(!1),U=K.useCallback(ee=>{F(re=>{var ne;return(ne=re.find(se=>se.id===ee.id))!=null&&ne.delete||xt.dismiss(ee.id),re.filter(({id:se})=>se!==ee.id)})},[]);return K.useEffect(()=>xt.subscribe(ee=>{if(ee.dismiss){requestAnimationFrame(()=>{F(re=>re.map(ne=>ne.id===ee.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{Du.flushSync(()=>{F(re=>{const ne=re.findIndex(se=>se.id===ee.id);return ne!==-1?[...re.slice(0,ne),{...re[ne],...ee},...re.slice(ne+1)]:[ee,...re]})})})}),[D]),K.useEffect(()=>{if(k!=="system"){te(k);return}if(k==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;const ee=window.matchMedia("(prefers-color-scheme: dark)");try{ee.addEventListener("change",({matches:re})=>{te(re?"dark":"light")})}catch{ee.addListener(({matches:ne})=>{try{te(ne?"dark":"light")}catch(se){console.error(se)}})}},[k]),K.useEffect(()=>{D.length<=1&&me(!1)},[D]),K.useEffect(()=>{const ee=re=>{var ne;if(f.every(J=>re[J]||re.code===J)){var Z;me(!0),(Z=B.current)==null||Z.focus()}re.code==="Escape"&&(document.activeElement===B.current||(ne=B.current)!=null&&ne.contains(document.activeElement))&&me(!1)};return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[f]),K.useEffect(()=>{if(B.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,I.current=!1)}},[B.current]),K.createElement("section",{ref:i,"aria-label":`${H} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},X.map((ee,re)=>{var ne;const[se,Z]=ee.split("-");return $.length?K.createElement("ol",{key:ee,dir:R==="auto"?$u():R,tabIndex:-1,ref:B,className:v,"data-sonner-toaster":!0,"data-sonner-theme":G,"data-y-position":se,"data-x-position":Z,style:{"--front-toast-height":`${((ne=ie[0])==null?void 0:ne.height)||0}px`,"--width":`${h0}px`,"--gap":`${P}px`,...b,...b0(w,h)},onBlur:J=>{I.current&&!J.currentTarget.contains(J.relatedTarget)&&(I.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||I.current||(I.current=!0,O.current=J.relatedTarget)},onMouseEnter:()=>me(!0),onMouseMove:()=>me(!0),onMouseLeave:()=>{ve||me(!1)},onDragEnd:()=>me(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||Se(!0)},onPointerUp:()=>Se(!1)},$.filter(J=>!J.position&&re===0||J.position===ee).map((J,ce)=>{var Ce,Ne;return K.createElement(x0,{key:J.id,icons:j,index:ce,toast:J,defaultRichColors:C,duration:(Ce=E==null?void 0:E.duration)!=null?Ce:N,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:l,visibleToasts:S,closeButton:(Ne=E==null?void 0:E.closeButton)!=null?Ne:m,interacting:ve,position:ee,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,closeButtonAriaLabel:E==null?void 0:E.closeButtonAriaLabel,removeToast:U,toasts:$.filter(Re=>Re.position==J.position),heights:ie.filter(Re=>Re.position==J.position),setHeights:ae,expandByDefault:p,gap:P,expanded:le,swipeDirections:o.swipeDirections})})):null}))}),S0=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}},Bu=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 m=f.slice(0,p),v=f.slice(p+1);m&&v&&S0(v)&&a.push({extensionId:m,bundleUrl:v})}}return a}catch{return[]}},C0=async(n,o)=>o.length===0?n:Promise.all(n.map(async i=>{const a=o.find(l=>l.extensionId===i.id);if(!a)return i;console.log(`[Stackable] Dev override active for ${i.id} → ${a.bundleUrl}`);try{const l=await fetch(`${a.bundleUrl}/manifest.json`);if(l.ok){const u=await l.json();return console.log(`[Stackable] Dev manifest loaded for ${i.id}`,u.permissions),{...i,bundleUrl:a.bundleUrl,manifest:u}}}catch{console.warn(`[Stackable] Could not fetch dev manifest for ${i.id}, using registry manifest`)}return{...i,bundleUrl:a.bundleUrl}}));/**
|
|
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 Hu=(...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.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const
|
|
61
|
+
*/const E0=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
62
62
|
* @license lucide-react v0.577.0 - ISC
|
|
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
|
|
66
|
+
*/const _0=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 Uu=n=>{const o=_0(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.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
76
|
+
*/var N0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
77
77
|
* @license lucide-react v0.577.0 - ISC
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the ISC license.
|
|
80
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const
|
|
81
|
+
*/const R0=n=>{for(const o in n)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};/**
|
|
82
82
|
* @license lucide-react v0.577.0 - ISC
|
|
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
|
|
86
|
+
*/const P0=g.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:l="",children:u,iconNode:f,...p},m)=>g.createElement("svg",{ref:m,...N0,width:o,height:o,stroke:n,strokeWidth:a?Number(i)*24/Number(o):i,className:Hu("lucide",l),...!u&&!R0(p)&&{"aria-hidden":"true"},...p},[...f.map(([v,w])=>g.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
|
|
91
|
+
*/const je=(n,o)=>{const i=g.forwardRef(({className:a,...l},u)=>g.createElement(P0,{ref:u,iconNode:o,className:Hu(`lucide-${E0(Uu(n))}`,`lucide-${n}`,a),...l}));return i.displayName=Uu(n),i};/**
|
|
92
92
|
* @license lucide-react v0.577.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const
|
|
96
|
+
*/const T0=je("airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]);/**
|
|
97
97
|
* @license lucide-react v0.577.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
101
|
+
*/const A0=je("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
102
102
|
* @license lucide-react v0.577.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const
|
|
106
|
+
*/const I0=je("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
107
107
|
* @license lucide-react v0.577.0 - ISC
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const
|
|
111
|
+
*/const j0=je("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
|
|
112
112
|
* @license lucide-react v0.577.0 - ISC
|
|
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 Vu=je("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 Wu=je("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.
|
|
125
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const
|
|
126
|
+
*/const M0=je("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
127
127
|
* @license lucide-react v0.577.0 - ISC
|
|
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 Aa=je("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.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const
|
|
136
|
+
*/const z0=je("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
137
137
|
* @license lucide-react v0.577.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const
|
|
141
|
+
*/const Gu=je("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
142
142
|
* @license lucide-react v0.577.0 - ISC
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the ISC license.
|
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const
|
|
146
|
+
*/const Yu=je("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
147
147
|
* @license lucide-react v0.577.0 - ISC
|
|
148
148
|
*
|
|
149
149
|
* This source code is licensed under the ISC license.
|
|
150
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const
|
|
151
|
+
*/const L0=je("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
152
152
|
* @license lucide-react v0.577.0 - ISC
|
|
153
153
|
*
|
|
154
154
|
* This source code is licensed under the ISC license.
|
|
155
155
|
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const
|
|
156
|
+
*/const O0=je("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
157
157
|
* @license lucide-react v0.577.0 - ISC
|
|
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 D0=je("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 F0=je("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 $0=je("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 B0=je("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 _i=je("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.
|
|
185
185
|
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const
|
|
186
|
+
*/const Ia=je("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
187
187
|
* @license lucide-react v0.577.0 - ISC
|
|
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 ja=je("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 H0=je("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 U0=je("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.
|
|
205
205
|
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const
|
|
206
|
+
*/const Ku=je("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/**
|
|
207
207
|
* @license lucide-react v0.577.0 - ISC
|
|
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 V0=je("octagon-x",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
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 W0=je("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"}]]);/**
|
|
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 G0=je("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"}]]);/**
|
|
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 Y0=je("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
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 K0=je("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"}]]);/**
|
|
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 X0=je("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"}]]);/**
|
|
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,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
|
-
|
|
241
|
+
*/const Q0=je("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
242
|
+
* @license lucide-react v0.577.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const q0=je("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"}]]);/**
|
|
247
|
+
* @license lucide-react v0.577.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const Xu=je("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 Qu(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=Qu(n[o]))&&(a&&(a+=" "),a+=i)}else for(i in n)n[i]&&(a&&(a+=" "),a+=i);return a}function qu(){for(var n,o,i=0,a="",l=arguments.length;i<l;i++)(n=arguments[i])&&(o=Qu(n))&&(a&&(a+=" "),a+=o);return a}const Z0=(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},J0=(n,o)=>({classGroupId:n,validator:o}),Zu=(n=new Map,o=null,i)=>({nextPart:n,validators:o,classGroupId:i}),Ni="-",Ju=[],ey="arbitrary..",ty=n=>{const o=ry(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return ny(f);const p=f.split(Ni),m=p[0]===""&&p.length>1?1:0;return ed(p,m,o)},getConflictingClassGroupIds:(f,p)=>{if(p){const m=a[f],v=i[f];return m?v?Z0(v,m):m:v||Ju}return i[f]||Ju}}},ed=(n,o,i)=>{if(n.length-o===0)return i.classGroupId;const l=n[o],u=i.nextPart.get(l);if(u){const v=ed(n,o+1,u);if(v)return v}const f=i.validators;if(f===null)return;const p=o===0?n.join(Ni):n.slice(o).join(Ni),m=f.length;for(let v=0;v<m;v++){const w=f[v];if(w.validator(p))return w.classGroupId}},ny=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?ey+a:void 0})(),ry=n=>{const{theme:o,classGroups:i}=n;return oy(i,o)},oy=(n,o)=>{const i=Zu();for(const a in n){const l=n[a];Ma(l,i,a,o)}return i},Ma=(n,o,i,a)=>{const l=n.length;for(let u=0;u<l;u++){const f=n[u];iy(f,o,i,a)}},iy=(n,o,i,a)=>{if(typeof n=="string"){sy(n,o,i);return}if(typeof n=="function"){ay(n,o,i,a);return}ly(n,o,i,a)},sy=(n,o,i)=>{const a=n===""?o:td(o,n);a.classGroupId=i},ay=(n,o,i,a)=>{if(cy(n)){Ma(n(a),o,i,a);return}o.validators===null&&(o.validators=[]),o.validators.push(J0(i,n))},ly=(n,o,i,a)=>{const l=Object.entries(n),u=l.length;for(let f=0;f<u;f++){const[p,m]=l[f];Ma(m,td(o,p),i,a)}},td=(n,o)=>{let i=n;const a=o.split(Ni),l=a.length;for(let u=0;u<l;u++){const f=a[u];let p=i.nextPart.get(f);p||(p=Zu(),i.nextPart.set(f,p)),i=p}return i},cy=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,uy=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)}}},za="!",nd=":",dy=[],rd=(n,o,i,a,l)=>({modifiers:n,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a,isExternal:l}),fy=n=>{const{prefix:o,experimentalParseClassName:i}=n;let a=l=>{const u=[];let f=0,p=0,m=0,v;const w=l.length;for(let b=0;b<w;b++){const S=l[b];if(f===0&&p===0){if(S===nd){u.push(l.slice(m,b)),m=b+1;continue}if(S==="/"){v=b;continue}}S==="["?f++:S==="]"?f--:S==="("?p++:S===")"&&p--}const h=u.length===0?l:l.slice(m);let k=h,C=!1;h.endsWith(za)?(k=h.slice(0,-1),C=!0):h.startsWith(za)&&(k=h.slice(1),C=!0);const N=v&&v>m?v-m:void 0;return rd(u,C,k,N)};if(o){const l=o+nd,u=a;a=f=>f.startsWith(l)?u(f.slice(l.length)):rd(dy,!1,f,void 0,!0)}if(i){const l=a;a=u=>i({className:u,parseClassName:l})}return a},py=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]==="[",m=o.has(f);p||m?(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}},my=n=>({cache:uy(n.cacheSize),parseClassName:fy(n),sortModifiers:py(n),...ty(n)}),hy=/\s+/,gy=(n,o)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:l,sortModifiers:u}=o,f=[],p=n.trim().split(hy);let m="";for(let v=p.length-1;v>=0;v-=1){const w=p[v],{isExternal:h,modifiers:k,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:b}=i(w);if(h){m=w+(m.length>0?" "+m:m);continue}let S=!!b,E=a(S?N.substring(0,b):N);if(!E){if(!S){m=w+(m.length>0?" "+m:m);continue}if(E=a(N),!E){m=w+(m.length>0?" "+m:m);continue}S=!1}const R=k.length===0?"":k.length===1?k[0]:u(k).join(":"),P=C?R+za:R,j=P+E;if(f.indexOf(j)>-1)continue;f.push(j);const H=l(E,S);for(let D=0;D<H.length;++D){const F=H[D];f.push(P+F)}m=w+(m.length>0?" "+m:m)}return m},vy=(...n)=>{let o=0,i,a,l="";for(;o<n.length;)(i=n[o++])&&(a=od(i))&&(l&&(l+=" "),l+=a);return l},od=n=>{if(typeof n=="string")return n;let o,i="";for(let a=0;a<n.length;a++)n[a]&&(o=od(n[a]))&&(i&&(i+=" "),i+=o);return i},yy=(n,...o)=>{let i,a,l,u;const f=m=>{const v=o.reduce((w,h)=>h(w),n());return i=my(v),a=i.cache.get,l=i.cache.set,u=p,p(m)},p=m=>{const v=a(m);if(v)return v;const w=gy(m,i);return l(m,w),w};return u=f,(...m)=>u(vy(...m))},wy=[],qe=n=>{const o=i=>i[n]||wy;return o.isThemeGetter=!0,o},id=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xy=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,by=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ky=/\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$/,Sy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ey=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,In=n=>xy.test(n),Pe=n=>!!n&&!Number.isNaN(Number(n)),jn=n=>!!n&&Number.isInteger(Number(n)),La=n=>n.endsWith("%")&&Pe(n.slice(0,-1)),gn=n=>by.test(n),ad=()=>!0,_y=n=>ky.test(n)&&!Sy.test(n),Oa=()=>!1,Ny=n=>Cy.test(n),Ry=n=>Ey.test(n),Py=n=>!de(n)&&!pe(n),Ty=n=>Mn(n,pd,Oa),de=n=>id.test(n),hr=n=>Mn(n,md,_y),ld=n=>Mn(n,Dy,Pe),Ay=n=>Mn(n,gd,ad),Iy=n=>Mn(n,hd,Oa),cd=n=>Mn(n,dd,Oa),jy=n=>Mn(n,fd,Ry),Ri=n=>Mn(n,vd,Ny),pe=n=>sd.test(n),_o=n=>gr(n,md),My=n=>gr(n,hd),ud=n=>gr(n,dd),zy=n=>gr(n,pd),Ly=n=>gr(n,fd),Pi=n=>gr(n,vd,!0),Oy=n=>gr(n,gd,!0),Mn=(n,o,i)=>{const a=id.exec(n);return a?a[1]?o(a[1]):i(a[2]):!1},gr=(n,o,i=!1)=>{const a=sd.exec(n);return a?a[1]?o(a[1]):i:!1},dd=n=>n==="position"||n==="percentage",fd=n=>n==="image"||n==="url",pd=n=>n==="length"||n==="size"||n==="bg-size",md=n=>n==="length",Dy=n=>n==="number",hd=n=>n==="family-name",gd=n=>n==="number"||n==="weight",vd=n=>n==="shadow",Fy=yy(()=>{const n=qe("color"),o=qe("font"),i=qe("text"),a=qe("font-weight"),l=qe("tracking"),u=qe("leading"),f=qe("breakpoint"),p=qe("container"),m=qe("spacing"),v=qe("radius"),w=qe("shadow"),h=qe("inset-shadow"),k=qe("text-shadow"),C=qe("drop-shadow"),N=qe("blur"),b=qe("perspective"),S=qe("aspect"),E=qe("ease"),R=qe("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...j(),pe,de],D=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],$=()=>[pe,de,m],X=()=>[In,"full","auto",...$()],ie=()=>[jn,"none","subgrid",pe,de],ae=()=>["auto",{span:["full",jn,pe,de]},jn,pe,de],le=()=>[jn,"auto",pe,de],me=()=>["auto","min","max","fr",pe,de],ve=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Se=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...$()],te=()=>[In,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],B=()=>[In,"screen","full","dvw","lvw","svw","min","max","fit",...$()],q=()=>[In,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],O=()=>[n,pe,de],I=()=>[...j(),ud,cd,{position:[pe,de]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",zy,Ty,{size:[pe,de]}],re=()=>[La,_o,hr],ne=()=>["","none","full",v,pe,de],se=()=>["",Pe,_o,hr],Z=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[Pe,La,ud,cd],Ce=()=>["","none",N,pe,de],Ne=()=>["none",Pe,pe,de],Re=()=>["none",Pe,pe,de],Fe=()=>[Pe,pe,de],Be=()=>[In,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gn],breakpoint:[gn],color:[ad],container:[gn],"drop-shadow":[gn],ease:["in","out","in-out"],font:[Py],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gn],shadow:[gn],spacing:["px",Pe],text:[gn],"text-shadow":[gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",In,de,pe,S]}],container:["container"],columns:[{columns:[Pe,de,pe,p]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:H()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{"inset-s":X(),start:X()}],end:[{"inset-e":X(),end:X()}],"inset-bs":[{"inset-bs":X()}],"inset-be":[{"inset-be":X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[jn,"auto",pe,de]}],basis:[{basis:[In,"full","auto",p,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,In,"auto","initial","none",de]}],grow:[{grow:["",Pe,pe,de]}],shrink:[{shrink:["",Pe,pe,de]}],order:[{order:[jn,"first","last","none",pe,de]}],"grid-cols":[{"grid-cols":ie()}],"col-start-end":[{col:ae()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":ie()}],"row-start-end":[{row:ae()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...ve(),"normal"]}],"justify-items":[{"justify-items":[...Se(),"normal"]}],"justify-self":[{"justify-self":["auto",...Se()]}],"align-content":[{content:["normal",...ve()]}],"align-items":[{items:[...Se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ve()}],"place-items":[{"place-items":[...Se(),"baseline"]}],"place-self":[{"place-self":["auto",...Se()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...q()]}],"min-block-size":[{"min-block":["auto",...q()]}],"max-block-size":[{"max-block":["none",...q()]}],w:[{w:[p,"screen",...te()]}],"min-w":[{"min-w":[p,"screen","none",...te()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",i,_o,hr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Oy,Ay]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",La,de]}],"font-family":[{font:[My,Iy,o]}],"font-features":[{"font-features":[de]}],"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,pe,de]}],"line-clamp":[{"line-clamp":[Pe,"none",pe,ld]}],leading:[{leading:[u,...$()]}],"list-image":[{"list-image":["none",pe,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",pe,hr]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Pe,"auto",pe,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,de]}],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",pe,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jn,pe,de],radial:["",pe,de],conic:[jn,pe,de]},Ly,jy]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-bs":[{"border-bs":se()}],"border-w-be":[{"border-be":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,pe,de]}],"outline-w":[{outline:["",Pe,_o,hr]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",w,Pi,Ri]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",h,Pi,Ri]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Pe,hr]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",k,Pi,Ri]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Pe,pe,de]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"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":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[pe,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":j()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,de]}],filter:[{filter:["","none",pe,de]}],blur:[{blur:Ce()}],brightness:[{brightness:[Pe,pe,de]}],contrast:[{contrast:[Pe,pe,de]}],"drop-shadow":[{"drop-shadow":["","none",C,Pi,Ri]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Pe,pe,de]}],"hue-rotate":[{"hue-rotate":[Pe,pe,de]}],invert:[{invert:["",Pe,pe,de]}],saturate:[{saturate:[Pe,pe,de]}],sepia:[{sepia:["",Pe,pe,de]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,de]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,pe,de]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,pe,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,pe,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,pe,de]}],"backdrop-invert":[{"backdrop-invert":["",Pe,pe,de]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,pe,de]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,pe,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,pe,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",pe,de]}],ease:[{ease:["linear","initial",E,pe,de]}],delay:[{delay:[Pe,pe,de]}],animate:[{animate:["none",R,pe,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,pe,de]}],"perspective-origin":[{"perspective-origin":H()}],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:Fe()}],"skew-x":[{"skew-x":Fe()}],"skew-y":[{"skew-y":Fe()}],transform:[{transform:[pe,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Be()}],"translate-x":[{"translate-x":Be()}],"translate-y":[{"translate-y":Be()}],"translate-z":[{"translate-z":Be()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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",pe,de]}],"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":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",pe,de]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Pe,_o,hr,ld]}],stroke:[{stroke:["none",...O()]}],"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"]}}),be=(...n)=>Fy(qu(n));function No({className:n,...o}){return y.jsx("div",{"data-slot":"card",className:be("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",n),...o})}function $y({className:n,...o}){return y.jsx("div",{"data-slot":"card-header",className:be("@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 Ro({className:n,...o}){return y.jsx("div",{"data-slot":"card-content",className:be("px-6",n),...o})}const yd=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,wd=qu,Ti=(n,o)=>i=>{var a;if((o==null?void 0:o.variants)==null)return wd(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],h=u==null?void 0:u[v];if(w===null)return null;const k=yd(w)||yd(h);return l[v][k]}),p=i&&Object.entries(i).reduce((v,w)=>{let[h,k]=w;return k===void 0||(v[h]=k),v},{}),m=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((v,w)=>{let{class:h,className:k,...C}=w;return Object.entries(C).every(N=>{let[b,S]=N;return Array.isArray(S)?S.includes({...u,...p}[b]):{...u,...p}[b]===S})?[...v,h,k]:v},[]);return wd(n,f,m,i==null?void 0:i.class,i==null?void 0:i.className)};function xd(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function bd(...n){return o=>{let i=!1;const a=n.map(l=>{const u=xd(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():xd(n[l],null)}}}}function Ae(...n){return g.useCallback(bd(...n),n)}function Po(n){const o=By(n),i=g.forwardRef((a,l)=>{const{children:u,...f}=a,p=g.Children.toArray(u),m=p.find(Uy);if(m){const v=m.props.children,w=p.map(h=>h===m?g.Children.count(v)>1?g.Children.only(null):g.isValidElement(v)?v.props.children:null:h);return y.jsx(o,{...f,ref:l,children:g.isValidElement(v)?g.cloneElement(v,void 0,w):null})}return y.jsx(o,{...f,ref:l,children:u})});return i.displayName=`${n}.Slot`,i}var kd=Po("Slot");function By(n){const o=g.forwardRef((i,a)=>{const{children:l,...u}=i;if(g.isValidElement(l)){const f=Wy(l),p=Vy(u,l.props);return l.type!==g.Fragment&&(p.ref=a?bd(a,f):f),g.cloneElement(l,p)}return g.Children.count(l)>1?g.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var Sd=Symbol("radix.slottable");function Hy(n){const o=({children:i})=>y.jsx(y.Fragment,{children:i});return o.displayName=`${n}.Slottable`,o.__radixId=Sd,o}function Uy(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Sd}function Vy(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 m=u(...p);return l(...p),m}:l&&(i[a]=l):a==="style"?i[a]={...l,...u}:a==="className"&&(i[a]=[l,u].filter(Boolean).join(" "))}return{...n,...i}}function Wy(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 Gy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=Gy.reduce((n,o)=>{const i=Po(`Primitive.${o}`),a=g.forwardRef((l,u)=>{const{asChild:f,...p}=l,m=f?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(m,{...p,ref:u})});return a.displayName=`Primitive.${o}`,{...n,[o]:a}},{});function Yy(n,o){n&&Eo.flushSync(()=>n.dispatchEvent(o))}var Cd=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"}),Ky="VisuallyHidden",Ed=g.forwardRef((n,o)=>y.jsx(ye.span,{...n,ref:o,style:{...Cd,...n.style}}));Ed.displayName=Ky;var Xy=Ed;function bt(n,o=[]){let i=[];function a(u,f){const p=g.createContext(f),m=i.length;i=[...i,f];const v=h=>{var E;const{scope:k,children:C,...N}=h,b=((E=k==null?void 0:k[n])==null?void 0:E[m])||p,S=g.useMemo(()=>N,Object.values(N));return y.jsx(b.Provider,{value:S,children:C})};v.displayName=u+"Provider";function w(h,k){var b;const C=((b=k==null?void 0:k[n])==null?void 0:b[m])||p,N=g.useContext(C);if(N)return N;if(f!==void 0)return f;throw new Error(`\`${h}\` must be used within \`${u}\``)}return[v,w]}const l=()=>{const u=i.map(f=>g.createContext(f));return function(p){const m=(p==null?void 0:p[n])||u;return g.useMemo(()=>({[`__scope${n}`]:{...p,[n]:m}}),[p,m])}};return l.scopeName=n,[a,Qy(l,...o)]}function Qy(...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:m,scopeName:v})=>{const h=m(u)[`__scope${v}`];return{...p,...h}},{});return g.useMemo(()=>({[`__scope${o.scopeName}`]:f}),[f])}};return i.scopeName=o.scopeName,i}function _d(n){const o=n+"CollectionProvider",[i,a]=bt(o),[l,u]=i(o,{collectionRef:{current:null},itemMap:new Map}),f=b=>{const{scope:S,children:E}=b,R=K.useRef(null),P=K.useRef(new Map).current;return y.jsx(l,{scope:S,itemMap:P,collectionRef:R,children:E})};f.displayName=o;const p=n+"CollectionSlot",m=Po(p),v=K.forwardRef((b,S)=>{const{scope:E,children:R}=b,P=u(p,E),j=Ae(S,P.collectionRef);return y.jsx(m,{ref:j,children:R})});v.displayName=p;const w=n+"CollectionItemSlot",h="data-radix-collection-item",k=Po(w),C=K.forwardRef((b,S)=>{const{scope:E,children:R,...P}=b,j=K.useRef(null),H=Ae(S,j),D=u(w,E);return K.useEffect(()=>(D.itemMap.set(j,{ref:j,...P}),()=>void D.itemMap.delete(j))),y.jsx(k,{[h]:"",ref:H,children:R})});C.displayName=w;function N(b){const S=u(n+"CollectionConsumer",b);return K.useCallback(()=>{const R=S.collectionRef.current;if(!R)return[];const P=Array.from(R.querySelectorAll(`[${h}]`));return Array.from(S.itemMap.values()).sort((D,F)=>P.indexOf(D.ref.current)-P.indexOf(F.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:f,Slot:v,ItemSlot:C},N,a]}function ke(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 We=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},qy=Mu[" useInsertionEffect ".trim().toString()]||We;function vn({prop:n,defaultProp:o,onChange:i=()=>{},caller:a}){const[l,u,f]=Zy({defaultProp:o,onChange:i}),p=n!==void 0,m=p?n:l;{const w=g.useRef(n!==void 0);g.useEffect(()=>{const h=w.current;h!==p&&console.warn(`${a} is changing from ${h?"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=g.useCallback(w=>{var h;if(p){const k=Jy(w)?w(n):w;k!==n&&((h=f.current)==null||h.call(f,k))}else u(w)},[p,n,u,f]);return[m,v]}function Zy({defaultProp:n,onChange:o}){const[i,a]=g.useState(n),l=g.useRef(i),u=g.useRef(o);return qy(()=>{u.current=o},[o]),g.useEffect(()=>{var f;l.current!==i&&((f=u.current)==null||f.call(u,i),l.current=i)},[i,l]),[i,a,u]}function Jy(n){return typeof n=="function"}function ew(n,o){return g.useReducer((i,a)=>o[i][a]??i,n)}var Vt=n=>{const{present:o,children:i}=n,a=tw(o),l=typeof i=="function"?i({present:a.isPresent}):g.Children.only(i),u=Ae(a.ref,nw(l));return typeof i=="function"||a.isPresent?g.cloneElement(l,{ref:u}):null};Vt.displayName="Presence";function tw(n){const[o,i]=g.useState(),a=g.useRef(null),l=g.useRef(n),u=g.useRef("none"),f=n?"mounted":"unmounted",[p,m]=ew(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const v=Ai(a.current);u.current=p==="mounted"?v:"none"},[p]),We(()=>{const v=a.current,w=l.current;if(w!==n){const k=u.current,C=Ai(v);n?m("MOUNT"):C==="none"||(v==null?void 0:v.display)==="none"?m("UNMOUNT"):m(w&&k!==C?"ANIMATION_OUT":"UNMOUNT"),l.current=n}},[n,m]),We(()=>{if(o){let v;const w=o.ownerDocument.defaultView??window,h=C=>{const b=Ai(a.current).includes(CSS.escape(C.animationName));if(C.target===o&&b&&(m("ANIMATION_END"),!l.current)){const S=o.style.animationFillMode;o.style.animationFillMode="forwards",v=w.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=S)})}},k=C=>{C.target===o&&(u.current=Ai(a.current))};return o.addEventListener("animationstart",k),o.addEventListener("animationcancel",h),o.addEventListener("animationend",h),()=>{w.clearTimeout(v),o.removeEventListener("animationstart",k),o.removeEventListener("animationcancel",h),o.removeEventListener("animationend",h)}}else m("ANIMATION_END")},[o,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:g.useCallback(v=>{a.current=v?getComputedStyle(v):null,i(v)},[])}}function Ai(n){return(n==null?void 0:n.animationName)||"none"}function nw(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 rw=Mu[" useId ".trim().toString()]||(()=>{}),ow=0;function vr(n){const[o,i]=g.useState(rw());return We(()=>{i(a=>a??String(ow++))},[n]),n||(o?`radix-${o}`:"")}var Ii="Collapsible",[iw]=bt(Ii),[sw,Da]=iw(Ii),Nd=g.forwardRef((n,o)=>{const{__scopeCollapsible:i,open:a,defaultOpen:l,disabled:u,onOpenChange:f,...p}=n,[m,v]=vn({prop:a,defaultProp:l??!1,onChange:f,caller:Ii});return y.jsx(sw,{scope:i,disabled:u,contentId:vr(),open:m,onOpenToggle:g.useCallback(()=>v(w=>!w),[v]),children:y.jsx(ye.div,{"data-state":$a(m),"data-disabled":u?"":void 0,...p,ref:o})})});Nd.displayName=Ii;var Rd="CollapsibleTrigger",Pd=g.forwardRef((n,o)=>{const{__scopeCollapsible:i,...a}=n,l=Da(Rd,i);return y.jsx(ye.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":$a(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...a,ref:o,onClick:ke(n.onClick,l.onOpenToggle)})});Pd.displayName=Rd;var Fa="CollapsibleContent",Td=g.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Da(Fa,n.__scopeCollapsible);return y.jsx(Vt,{present:i||l.open,children:({present:u})=>y.jsx(aw,{...a,ref:o,present:u})})});Td.displayName=Fa;var aw=g.forwardRef((n,o)=>{const{__scopeCollapsible:i,present:a,children:l,...u}=n,f=Da(Fa,i),[p,m]=g.useState(a),v=g.useRef(null),w=Ae(o,v),h=g.useRef(0),k=h.current,C=g.useRef(0),N=C.current,b=f.open||p,S=g.useRef(b),E=g.useRef(void 0);return g.useEffect(()=>{const R=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(R)},[]),We(()=>{const R=v.current;if(R){E.current=E.current||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const P=R.getBoundingClientRect();h.current=P.height,C.current=P.width,S.current||(R.style.transitionDuration=E.current.transitionDuration,R.style.animationName=E.current.animationName),m(a)}},[f.open,a]),y.jsx(ye.div,{"data-state":$a(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!b,...u,ref:w,style:{"--radix-collapsible-content-height":k?`${k}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...n.style},children:b&&l})});function $a(n){return n?"open":"closed"}var lw=Nd,cw=g.createContext(void 0);function To(n){const o=g.useContext(cw);return n||o||"ltr"}function ut(n){const o=g.useRef(n);return g.useEffect(()=>{o.current=n}),g.useMemo(()=>(...i)=>{var a;return(a=o.current)==null?void 0:a.call(o,...i)},[])}function uw(n,o=globalThis==null?void 0:globalThis.document){const i=ut(n);g.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 dw="DismissableLayer",Ba="dismissableLayer.update",fw="dismissableLayer.pointerDownOutside",pw="dismissableLayer.focusOutside",Ad,Id=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ha=g.forwardRef((n,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,onDismiss:p,...m}=n,v=g.useContext(Id),[w,h]=g.useState(null),k=(w==null?void 0:w.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=g.useState({}),N=Ae(o,F=>h(F)),b=Array.from(v.layers),[S]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),E=b.indexOf(S),R=w?b.indexOf(w):-1,P=v.layersWithOutsidePointerEventsDisabled.size>0,j=R>=E,H=gw(F=>{const $=F.target,X=[...v.branches].some(ie=>ie.contains($));!j||X||(l==null||l(F),f==null||f(F),F.defaultPrevented||p==null||p())},k),D=vw(F=>{const $=F.target;[...v.branches].some(ie=>ie.contains($))||(u==null||u(F),f==null||f(F),F.defaultPrevented||p==null||p())},k);return uw(F=>{R===v.layers.size-1&&(a==null||a(F),!F.defaultPrevented&&p&&(F.preventDefault(),p()))},k),g.useEffect(()=>{if(w)return i&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Ad=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(w)),v.layers.add(w),jd(),()=>{i&&v.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=Ad)}},[w,k,i,v]),g.useEffect(()=>()=>{w&&(v.layers.delete(w),v.layersWithOutsidePointerEventsDisabled.delete(w),jd())},[w,v]),g.useEffect(()=>{const F=()=>C({});return document.addEventListener(Ba,F),()=>document.removeEventListener(Ba,F)},[]),y.jsx(ye.div,{...m,ref:N,style:{pointerEvents:P?j?"auto":"none":void 0,...n.style},onFocusCapture:ke(n.onFocusCapture,D.onFocusCapture),onBlurCapture:ke(n.onBlurCapture,D.onBlurCapture),onPointerDownCapture:ke(n.onPointerDownCapture,H.onPointerDownCapture)})});Ha.displayName=dw;var mw="DismissableLayerBranch",hw=g.forwardRef((n,o)=>{const i=g.useContext(Id),a=g.useRef(null),l=Ae(o,a);return g.useEffect(()=>{const u=a.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),y.jsx(ye.div,{...n,ref:l})});hw.displayName=mw;function gw(n,o=globalThis==null?void 0:globalThis.document){const i=ut(n),a=g.useRef(!1),l=g.useRef(()=>{});return g.useEffect(()=>{const u=p=>{if(p.target&&!a.current){let m=function(){Md(fw,i,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",l.current),l.current=m,o.addEventListener("click",l.current,{once:!0})):m()}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 vw(n,o=globalThis==null?void 0:globalThis.document){const i=ut(n),a=g.useRef(!1);return g.useEffect(()=>{const l=u=>{u.target&&!a.current&&Md(pw,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 jd(){const n=new CustomEvent(Ba);document.dispatchEvent(n)}function Md(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?Yy(l,u):l.dispatchEvent(u)}var Ua="focusScope.autoFocusOnMount",Va="focusScope.autoFocusOnUnmount",zd={bubbles:!1,cancelable:!0},yw="FocusScope",Ld=g.forwardRef((n,o)=>{const{loop:i=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...f}=n,[p,m]=g.useState(null),v=ut(l),w=ut(u),h=g.useRef(null),k=Ae(o,b=>m(b)),C=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(a){let b=function(P){if(C.paused||!p)return;const j=P.target;p.contains(j)?h.current=j:zn(h.current,{select:!0})},S=function(P){if(C.paused||!p)return;const j=P.relatedTarget;j!==null&&(p.contains(j)||zn(h.current,{select:!0}))},E=function(P){if(document.activeElement===document.body)for(const H of P)H.removedNodes.length>0&&zn(p)};document.addEventListener("focusin",b),document.addEventListener("focusout",S);const R=new MutationObserver(E);return p&&R.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",S),R.disconnect()}}},[a,p,C.paused]),g.useEffect(()=>{if(p){Fd.add(C);const b=document.activeElement;if(!p.contains(b)){const E=new CustomEvent(Ua,zd);p.addEventListener(Ua,v),p.dispatchEvent(E),E.defaultPrevented||(ww(Cw(Od(p)),{select:!0}),document.activeElement===b&&zn(p))}return()=>{p.removeEventListener(Ua,v),setTimeout(()=>{const E=new CustomEvent(Va,zd);p.addEventListener(Va,w),p.dispatchEvent(E),E.defaultPrevented||zn(b??document.body,{select:!0}),p.removeEventListener(Va,w),Fd.remove(C)},0)}}},[p,v,w,C]);const N=g.useCallback(b=>{if(!i&&!a||C.paused)return;const S=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,E=document.activeElement;if(S&&E){const R=b.currentTarget,[P,j]=xw(R);P&&j?!b.shiftKey&&E===j?(b.preventDefault(),i&&zn(P,{select:!0})):b.shiftKey&&E===P&&(b.preventDefault(),i&&zn(j,{select:!0})):E===R&&b.preventDefault()}},[i,a,C.paused]);return y.jsx(ye.div,{tabIndex:-1,...f,ref:k,onKeyDown:N})});Ld.displayName=yw;function ww(n,{select:o=!1}={}){const i=document.activeElement;for(const a of n)if(zn(a,{select:o}),document.activeElement!==i)return}function xw(n){const o=Od(n),i=Dd(o,n),a=Dd(o.reverse(),n);return[i,a]}function Od(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 Dd(n,o){for(const i of n)if(!bw(i,{upTo:o}))return i}function bw(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 kw(n){return n instanceof HTMLInputElement&&"select"in n}function zn(n,{select:o=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&kw(n)&&o&&n.select()}}var Fd=Sw();function Sw(){let n=[];return{add(o){const i=n[0];o!==i&&(i==null||i.pause()),n=$d(n,o),n.unshift(o)},remove(o){var i;n=$d(n,o),(i=n[0])==null||i.resume()}}}function $d(n,o){const i=[...n],a=i.indexOf(o);return a!==-1&&i.splice(a,1),i}function Cw(n){return n.filter(o=>o.tagName!=="A")}var Ew="Portal",Wa=g.forwardRef((n,o)=>{var p;const{container:i,...a}=n,[l,u]=g.useState(!1);We(()=>u(!0),[]);const f=i||l&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?Du.createPortal(y.jsx(ye.div,{...a,ref:o}),f):null});Wa.displayName=Ew;var Ga=0;function _w(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Bd()),document.body.insertAdjacentElement("beforeend",n[1]??Bd()),Ga++,()=>{Ga===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ga--}},[])}function Bd(){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 on=function(){return on=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},on.apply(this,arguments)};function Hd(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 Nw(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 ji="right-scroll-bar-position",Mi="width-before-scroll-bar",Rw="with-scroll-bars-hidden",Pw="--removed-body-scroll-bar-size";function Ya(n,o){return typeof n=="function"?n(o):n&&(n.current=o),n}function Tw(n,o){var i=g.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 Aw=typeof window<"u"?g.useLayoutEffect:g.useEffect,Ud=new WeakMap;function Iw(n,o){var i=Tw(null,function(a){return n.forEach(function(l){return Ya(l,a)})});return Aw(function(){var a=Ud.get(i);if(a){var l=new Set(a),u=new Set(n),f=i.current;l.forEach(function(p){u.has(p)||Ya(p,null)}),u.forEach(function(p){l.has(p)||Ya(p,f)})}Ud.set(i,n)},[n]),i}function jw(n){return n}function Mw(n,o){o===void 0&&(o=jw);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 m=function(){var w=f;f=[],w.forEach(u)},v=function(){return Promise.resolve().then(m)};v(),i={push:function(w){f.push(w),v()},filter:function(w){return f=f.filter(w),i}}}};return l}function zw(n){n===void 0&&(n={});var o=Mw(null);return o.options=on({async:!0,ssr:!1},n),o}var Vd=function(n){var o=n.sideCar,i=Hd(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 g.createElement(a,on({},i))};Vd.isSideCarExport=!0;function Lw(n,o){return n.useMedium(o),Vd}var Wd=zw(),Ka=function(){},zi=g.forwardRef(function(n,o){var i=g.useRef(null),a=g.useState({onScrollCapture:Ka,onWheelCapture:Ka,onTouchMoveCapture:Ka}),l=a[0],u=a[1],f=n.forwardProps,p=n.children,m=n.className,v=n.removeScrollBar,w=n.enabled,h=n.shards,k=n.sideCar,C=n.noRelative,N=n.noIsolation,b=n.inert,S=n.allowPinchZoom,E=n.as,R=E===void 0?"div":E,P=n.gapMode,j=Hd(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),H=k,D=Iw([i,o]),F=on(on({},j),l);return g.createElement(g.Fragment,null,w&&g.createElement(H,{sideCar:Wd,removeScrollBar:v,shards:h,noRelative:C,noIsolation:N,inert:b,setCallbacks:u,allowPinchZoom:!!S,lockRef:i,gapMode:P}),f?g.cloneElement(g.Children.only(p),on(on({},F),{ref:D})):g.createElement(R,on({},F,{className:m,ref:D}),p))});zi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zi.classNames={fullWidth:Mi,zeroRight:ji};var Ow=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Dw(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var o=Ow();return o&&n.setAttribute("nonce",o),n}function Fw(n,o){n.styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o))}function $w(n){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(n)}var Bw=function(){var n=0,o=null;return{add:function(i){n==0&&(o=Dw())&&(Fw(o,i),$w(o)),n++},remove:function(){n--,!n&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},Hw=function(){var n=Bw();return function(o,i){g.useEffect(function(){return n.add(o),function(){n.remove()}},[o&&i])}},Gd=function(){var n=Hw(),o=function(i){var a=i.styles,l=i.dynamic;return n(a,l),null};return o},Uw={left:0,top:0,right:0,gap:0},Xa=function(n){return parseInt(n||"",10)||0},Vw=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[Xa(i),Xa(a),Xa(l)]},Ww=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Uw;var o=Vw(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])}},Gw=Gd(),Hr="data-scroll-locked",Yw=function(n,o,i,a){var l=n.left,u=n.top,f=n.right,p=n.gap;return i===void 0&&(i="margin"),`
|
|
252
|
+
.`.concat(Rw,` {
|
|
243
253
|
overflow: hidden `).concat(a,`;
|
|
244
254
|
padding-right: `).concat(p,"px ").concat(a,`;
|
|
245
255
|
}
|
|
246
|
-
body[`).concat(
|
|
256
|
+
body[`).concat(Hr,`] {
|
|
247
257
|
overflow: hidden `).concat(a,`;
|
|
248
258
|
overscroll-behavior: contain;
|
|
249
259
|
`).concat([o&&"position: relative ".concat(a,";"),i==="margin"&&`
|
|
@@ -256,29 +266,29 @@ Error generating stack: `+d.message+`
|
|
|
256
266
|
`),i==="padding"&&"padding-right: ".concat(p,"px ").concat(a,";")].filter(Boolean).join(""),`
|
|
257
267
|
}
|
|
258
268
|
|
|
259
|
-
.`).concat(
|
|
269
|
+
.`).concat(ji,` {
|
|
260
270
|
right: `).concat(p,"px ").concat(a,`;
|
|
261
271
|
}
|
|
262
272
|
|
|
263
|
-
.`).concat(
|
|
273
|
+
.`).concat(Mi,` {
|
|
264
274
|
margin-right: `).concat(p,"px ").concat(a,`;
|
|
265
275
|
}
|
|
266
276
|
|
|
267
|
-
.`).concat(
|
|
277
|
+
.`).concat(ji," .").concat(ji,` {
|
|
268
278
|
right: 0 `).concat(a,`;
|
|
269
279
|
}
|
|
270
280
|
|
|
271
|
-
.`).concat(
|
|
281
|
+
.`).concat(Mi," .").concat(Mi,` {
|
|
272
282
|
margin-right: 0 `).concat(a,`;
|
|
273
283
|
}
|
|
274
284
|
|
|
275
|
-
body[`).concat(
|
|
276
|
-
`).concat(
|
|
285
|
+
body[`).concat(Hr,`] {
|
|
286
|
+
`).concat(Pw,": ").concat(p,`px;
|
|
277
287
|
}
|
|
278
|
-
`)},
|
|
288
|
+
`)},Yd=function(){var n=parseInt(document.body.getAttribute(Hr)||"0",10);return isFinite(n)?n:0},Kw=function(){g.useEffect(function(){return document.body.setAttribute(Hr,(Yd()+1).toString()),function(){var n=Yd()-1;n<=0?document.body.removeAttribute(Hr):document.body.setAttribute(Hr,n.toString())}},[])},Xw=function(n){var o=n.noRelative,i=n.noImportant,a=n.gapMode,l=a===void 0?"margin":a;Kw();var u=g.useMemo(function(){return Ww(l)},[l]);return g.createElement(Gw,{styles:Yw(u,!o,l,i?"":"!important")})},Qa=!1;if(typeof window<"u")try{var Li=Object.defineProperty({},"passive",{get:function(){return Qa=!0,!0}});window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{Qa=!1}var Ur=Qa?{passive:!1}:!1,Qw=function(n){return n.tagName==="TEXTAREA"},Kd=function(n,o){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[o]!=="hidden"&&!(i.overflowY===i.overflowX&&!Qw(n)&&i[o]==="visible")},qw=function(n){return Kd(n,"overflowY")},Zw=function(n){return Kd(n,"overflowX")},Xd=function(n,o){var i=o.ownerDocument,a=o;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var l=Qd(n,a);if(l){var u=qd(n,a),f=u[1],p=u[2];if(f>p)return!0}a=a.parentNode}while(a&&a!==i.body);return!1},Jw=function(n){var o=n.scrollTop,i=n.scrollHeight,a=n.clientHeight;return[o,i,a]},ex=function(n){var o=n.scrollLeft,i=n.scrollWidth,a=n.clientWidth;return[o,i,a]},Qd=function(n,o){return n==="v"?qw(o):Zw(o)},qd=function(n,o){return n==="v"?Jw(o):ex(o)},tx=function(n,o){return n==="h"&&o==="rtl"?-1:1},nx=function(n,o,i,a,l){var u=tx(n,window.getComputedStyle(o).direction),f=u*a,p=i.target,m=o.contains(p),v=!1,w=f>0,h=0,k=0;do{if(!p)break;var C=qd(n,p),N=C[0],b=C[1],S=C[2],E=b-S-u*N;(N||E)&&Qd(n,p)&&(h+=E,k+=N);var R=p.parentNode;p=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!m&&p!==document.body||m&&(o.contains(p)||o===p));return(w&&Math.abs(h)<1||!w&&Math.abs(k)<1)&&(v=!0),v},Oi=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Zd=function(n){return[n.deltaX,n.deltaY]},Jd=function(n){return n&&"current"in n?n.current:n},rx=function(n,o){return n[0]===o[0]&&n[1]===o[1]},ox=function(n){return`
|
|
279
289
|
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
280
290
|
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
281
|
-
`)},
|
|
291
|
+
`)},ix=0,Vr=[];function sx(n){var o=g.useRef([]),i=g.useRef([0,0]),a=g.useRef(),l=g.useState(ix++)[0],u=g.useState(Gd)[0],f=g.useRef(n);g.useEffect(function(){f.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(l));var b=Nw([n.lockRef.current],(n.shards||[]).map(Jd),!0).filter(Boolean);return b.forEach(function(S){return S.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),b.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(l))})}}},[n.inert,n.lockRef.current,n.shards]);var p=g.useCallback(function(b,S){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!f.current.allowPinchZoom;var E=Oi(b),R=i.current,P="deltaX"in b?b.deltaX:R[0]-E[0],j="deltaY"in b?b.deltaY:R[1]-E[1],H,D=b.target,F=Math.abs(P)>Math.abs(j)?"h":"v";if("touches"in b&&F==="h"&&D.type==="range")return!1;var $=window.getSelection(),X=$&&$.anchorNode,ie=X?X===D||X.contains(D):!1;if(ie)return!1;var ae=Xd(F,D);if(!ae)return!0;if(ae?H=F:(H=F==="v"?"h":"v",ae=Xd(F,D)),!ae)return!1;if(!a.current&&"changedTouches"in b&&(P||j)&&(a.current=H),!H)return!0;var le=a.current||H;return nx(le,S,b,le==="h"?P:j)},[]),m=g.useCallback(function(b){var S=b;if(!(!Vr.length||Vr[Vr.length-1]!==u)){var E="deltaY"in S?Zd(S):Oi(S),R=o.current.filter(function(H){return H.name===S.type&&(H.target===S.target||S.target===H.shadowParent)&&rx(H.delta,E)})[0];if(R&&R.should){S.cancelable&&S.preventDefault();return}if(!R){var P=(f.current.shards||[]).map(Jd).filter(Boolean).filter(function(H){return H.contains(S.target)}),j=P.length>0?p(S,P[0]):!f.current.noIsolation;j&&S.cancelable&&S.preventDefault()}}},[]),v=g.useCallback(function(b,S,E,R){var P={name:b,delta:S,target:E,should:R,shadowParent:ax(E)};o.current.push(P),setTimeout(function(){o.current=o.current.filter(function(j){return j!==P})},1)},[]),w=g.useCallback(function(b){i.current=Oi(b),a.current=void 0},[]),h=g.useCallback(function(b){v(b.type,Zd(b),b.target,p(b,n.lockRef.current))},[]),k=g.useCallback(function(b){v(b.type,Oi(b),b.target,p(b,n.lockRef.current))},[]);g.useEffect(function(){return Vr.push(u),n.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:k}),document.addEventListener("wheel",m,Ur),document.addEventListener("touchmove",m,Ur),document.addEventListener("touchstart",w,Ur),function(){Vr=Vr.filter(function(b){return b!==u}),document.removeEventListener("wheel",m,Ur),document.removeEventListener("touchmove",m,Ur),document.removeEventListener("touchstart",w,Ur)}},[]);var C=n.removeScrollBar,N=n.inert;return g.createElement(g.Fragment,null,N?g.createElement(u,{styles:ox(l)}):null,C?g.createElement(Xw,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function ax(n){for(var o=null;n!==null;)n instanceof ShadowRoot&&(o=n.host,n=n.host),n=n.parentNode;return o}const lx=Lw(Wd,sx);var ef=g.forwardRef(function(n,o){return g.createElement(zi,on({},n,{ref:o,sideCar:lx}))});ef.classNames=zi.classNames;var cx=function(n){if(typeof document>"u")return null;var o=Array.isArray(n)?n[0]:n;return o.ownerDocument.body},Wr=new WeakMap,Di=new WeakMap,Fi={},qa=0,tf=function(n){return n&&(n.host||tf(n.parentNode))},ux=function(n,o){return o.map(function(i){if(n.contains(i))return i;var a=tf(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})},dx=function(n,o,i,a){var l=ux(o,Array.isArray(n)?n:[n]);Fi[i]||(Fi[i]=new WeakMap);var u=Fi[i],f=[],p=new Set,m=new Set(l),v=function(h){!h||p.has(h)||(p.add(h),v(h.parentNode))};l.forEach(v);var w=function(h){!h||m.has(h)||Array.prototype.forEach.call(h.children,function(k){if(p.has(k))w(k);else try{var C=k.getAttribute(a),N=C!==null&&C!=="false",b=(Wr.get(k)||0)+1,S=(u.get(k)||0)+1;Wr.set(k,b),u.set(k,S),f.push(k),b===1&&N&&Di.set(k,!0),S===1&&k.setAttribute(i,"true"),N||k.setAttribute(a,"true")}catch(E){console.error("aria-hidden: cannot operate on ",k,E)}})};return w(o),p.clear(),qa++,function(){f.forEach(function(h){var k=Wr.get(h)-1,C=u.get(h)-1;Wr.set(h,k),u.set(h,C),k||(Di.has(h)||h.removeAttribute(a),Di.delete(h)),C||h.removeAttribute(i)}),qa--,qa||(Wr=new WeakMap,Wr=new WeakMap,Di=new WeakMap,Fi={})}},fx=function(n,o,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(n)?n:[n]),l=cx(n);return l?(a.push.apply(a,Array.from(l.querySelectorAll("[aria-live], script"))),dx(a,l,i,"aria-hidden")):function(){return null}},Za={exports:{}},Ja={};/**
|
|
282
292
|
* @license React
|
|
283
293
|
* use-sync-external-store-shim.production.js
|
|
284
294
|
*
|
|
@@ -286,16 +296,16 @@ Error generating stack: `+d.message+`
|
|
|
286
296
|
*
|
|
287
297
|
* This source code is licensed under the MIT license found in the
|
|
288
298
|
* LICENSE file in the root directory of this source tree.
|
|
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:
|
|
299
|
+
*/var nf;function px(){if(nf)return Ja;nf=1;var n=bi();function o(h,k){return h===k&&(h!==0||1/h===1/k)||h!==h&&k!==k}var i=typeof Object.is=="function"?Object.is:o,a=n.useState,l=n.useEffect,u=n.useLayoutEffect,f=n.useDebugValue;function p(h,k){var C=k(),N=a({inst:{value:C,getSnapshot:k}}),b=N[0].inst,S=N[1];return u(function(){b.value=C,b.getSnapshot=k,m(b)&&S({inst:b})},[h,C,k]),l(function(){return m(b)&&S({inst:b}),h(function(){m(b)&&S({inst:b})})},[h]),f(C),C}function m(h){var k=h.getSnapshot;h=h.value;try{var C=k();return!i(h,C)}catch{return!0}}function v(h,k){return k()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:p;return Ja.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:w,Ja}var rf;function mx(){return rf||(rf=1,Za.exports=px()),Za.exports}var hx=mx();function gx(){return hx.useSyncExternalStore(vx,()=>!0,()=>!1)}function vx(){return()=>{}}var el="Avatar",[yx]=bt(el),[wx,of]=yx(el),sf=g.forwardRef((n,o)=>{const{__scopeAvatar:i,...a}=n,[l,u]=g.useState("idle");return y.jsx(wx,{scope:i,imageLoadingStatus:l,onImageLoadingStatusChange:u,children:y.jsx(ye.span,{...a,ref:o})})});sf.displayName=el;var af="AvatarImage",lf=g.forwardRef((n,o)=>{const{__scopeAvatar:i,src:a,onLoadingStatusChange:l=()=>{},...u}=n,f=of(af,i),p=xx(a,u),m=ut(v=>{l(v),f.onImageLoadingStatusChange(v)});return We(()=>{p!=="idle"&&m(p)},[p,m]),p==="loaded"?y.jsx(ye.img,{...u,ref:o,src:a}):null});lf.displayName=af;var cf="AvatarFallback",uf=g.forwardRef((n,o)=>{const{__scopeAvatar:i,delayMs:a,...l}=n,u=of(cf,i),[f,p]=g.useState(a===void 0);return g.useEffect(()=>{if(a!==void 0){const m=window.setTimeout(()=>p(!0),a);return()=>window.clearTimeout(m)}},[a]),f&&u.imageLoadingStatus!=="loaded"?y.jsx(ye.span,{...l,ref:o}):null});uf.displayName=cf;function df(n,o){return n?o?(n.src!==o&&(n.src=o),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function xx(n,{referrerPolicy:o,crossOrigin:i}){const a=gx(),l=g.useRef(null),u=a?(l.current||(l.current=new window.Image),l.current):null,[f,p]=g.useState(()=>df(u,n));return We(()=>{p(df(u,n))},[u,n]),We(()=>{const m=h=>()=>{p(h)};if(!u)return;const v=m("loaded"),w=m("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 bx=sf,kx=lf,Sx=uf;function $i(n){const o=g.useRef({value:n,previous:n});return g.useMemo(()=>(o.current.value!==n&&(o.current.previous=o.current.value,o.current.value=n),o.current.previous),[n])}function Bi(n){const[o,i]=g.useState(void 0);return We(()=>{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 m=u.borderBoxSize,v=Array.isArray(m)?m[0]:m;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 Hi="Checkbox",[Cx]=bt(Hi),[Ex,tl]=Cx(Hi);function _x(n){const{__scopeCheckbox:o,checked:i,children:a,defaultChecked:l,disabled:u,form:f,name:p,onCheckedChange:m,required:v,value:w="on",internal_do_not_use_render:h}=n,[k,C]=vn({prop:i,defaultProp:l??!1,onChange:m,caller:Hi}),[N,b]=g.useState(null),[S,E]=g.useState(null),R=g.useRef(!1),P=N?!!f||!!N.closest("form"):!0,j={checked:k,disabled:u,setChecked:C,control:N,setControl:b,name:p,form:f,value:w,hasConsumerStoppedPropagationRef:R,required:v,defaultChecked:Ln(l)?!1:l,isFormControl:P,bubbleInput:S,setBubbleInput:E};return y.jsx(Ex,{scope:o,...j,children:Nx(h)?h(j):a})}var ff="CheckboxTrigger",pf=g.forwardRef(({__scopeCheckbox:n,onKeyDown:o,onClick:i,...a},l)=>{const{control:u,value:f,disabled:p,checked:m,required:v,setControl:w,setChecked:h,hasConsumerStoppedPropagationRef:k,isFormControl:C,bubbleInput:N}=tl(ff,n),b=Ae(l,w),S=g.useRef(m);return g.useEffect(()=>{const E=u==null?void 0:u.form;if(E){const R=()=>h(S.current);return E.addEventListener("reset",R),()=>E.removeEventListener("reset",R)}},[u,h]),y.jsx(ye.button,{type:"button",role:"checkbox","aria-checked":Ln(m)?"mixed":m,"aria-required":v,"data-state":wf(m),"data-disabled":p?"":void 0,disabled:p,value:f,...a,ref:b,onKeyDown:ke(o,E=>{E.key==="Enter"&&E.preventDefault()}),onClick:ke(i,E=>{h(R=>Ln(R)?!0:!R),N&&C&&(k.current=E.isPropagationStopped(),k.current||E.stopPropagation())})})});pf.displayName=ff;var mf=g.forwardRef((n,o)=>{const{__scopeCheckbox:i,name:a,checked:l,defaultChecked:u,required:f,disabled:p,value:m,onCheckedChange:v,form:w,...h}=n;return y.jsx(_x,{__scopeCheckbox:i,checked:l,defaultChecked:u,disabled:p,required:f,onCheckedChange:v,name:a,form:w,value:m,internal_do_not_use_render:({isFormControl:k})=>y.jsxs(y.Fragment,{children:[y.jsx(pf,{...h,ref:o,__scopeCheckbox:i}),k&&y.jsx(yf,{__scopeCheckbox:i})]})})});mf.displayName=Hi;var hf="CheckboxIndicator",gf=g.forwardRef((n,o)=>{const{__scopeCheckbox:i,forceMount:a,...l}=n,u=tl(hf,i);return y.jsx(Vt,{present:a||Ln(u.checked)||u.checked===!0,children:y.jsx(ye.span,{"data-state":wf(u.checked),"data-disabled":u.disabled?"":void 0,...l,ref:o,style:{pointerEvents:"none",...n.style}})})});gf.displayName=hf;var vf="CheckboxBubbleInput",yf=g.forwardRef(({__scopeCheckbox:n,...o},i)=>{const{control:a,hasConsumerStoppedPropagationRef:l,checked:u,defaultChecked:f,required:p,disabled:m,name:v,value:w,form:h,bubbleInput:k,setBubbleInput:C}=tl(vf,n),N=Ae(i,C),b=$i(u),S=Bi(a);g.useEffect(()=>{const R=k;if(!R)return;const P=window.HTMLInputElement.prototype,H=Object.getOwnPropertyDescriptor(P,"checked").set,D=!l.current;if(b!==u&&H){const F=new Event("click",{bubbles:D});R.indeterminate=Ln(u),H.call(R,Ln(u)?!1:u),R.dispatchEvent(F)}},[k,b,u,l]);const E=g.useRef(Ln(u)?!1:u);return y.jsx(ye.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??E.current,required:p,disabled:m,name:v,value:w,form:h,...o,tabIndex:-1,ref:N,style:{...o.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});yf.displayName=vf;function Nx(n){return typeof n=="function"}function Ln(n){return n==="indeterminate"}function wf(n){return Ln(n)?"indeterminate":n?"checked":"unchecked"}const Rx=["top","right","bottom","left"],On=Math.min,Nt=Math.max,Ui=Math.round,Vi=Math.floor,sn=n=>({x:n,y:n}),Px={left:"right",right:"left",bottom:"top",top:"bottom"};function nl(n,o,i){return Nt(n,On(o,i))}function yn(n,o){return typeof n=="function"?n(o):n}function wn(n){return n.split("-")[0]}function Gr(n){return n.split("-")[1]}function rl(n){return n==="x"?"y":"x"}function ol(n){return n==="y"?"height":"width"}function an(n){const o=n[0];return o==="t"||o==="b"?"y":"x"}function il(n){return rl(an(n))}function Tx(n,o,i){i===void 0&&(i=!1);const a=Gr(n),l=il(n),u=ol(l);let f=l==="x"?a===(i?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[u]>o.floating[u]&&(f=Wi(f)),[f,Wi(f)]}function Ax(n){const o=Wi(n);return[sl(n),o,sl(o)]}function sl(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const xf=["left","right"],bf=["right","left"],Ix=["top","bottom"],jx=["bottom","top"];function Mx(n,o,i){switch(n){case"top":case"bottom":return i?o?bf:xf:o?xf:bf;case"left":case"right":return o?Ix:jx;default:return[]}}function zx(n,o,i,a){const l=Gr(n);let u=Mx(wn(n),i==="start",a);return l&&(u=u.map(f=>f+"-"+l),o&&(u=u.concat(u.map(sl)))),u}function Wi(n){const o=wn(n);return Px[o]+n.slice(o.length)}function Lx(n){return{top:0,right:0,bottom:0,left:0,...n}}function kf(n){return typeof n!="number"?Lx(n):{top:n,right:n,bottom:n,left:n}}function Gi(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 Sf(n,o,i){let{reference:a,floating:l}=n;const u=an(o),f=il(o),p=ol(f),m=wn(o),v=u==="y",w=a.x+a.width/2-l.width/2,h=a.y+a.height/2-l.height/2,k=a[p]/2-l[p]/2;let C;switch(m){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:h};break;case"left":C={x:a.x-l.width,y:h};break;default:C={x:a.x,y:a.y}}switch(Gr(o)){case"start":C[f]-=k*(i&&v?-1:1);break;case"end":C[f]+=k*(i&&v?-1:1);break}return C}async function Ox(n,o){var i;o===void 0&&(o={});const{x:a,y:l,platform:u,rects:f,elements:p,strategy:m}=n,{boundary:v="clippingAncestors",rootBoundary:w="viewport",elementContext:h="floating",altBoundary:k=!1,padding:C=0}=yn(o,n),N=kf(C),S=p[k?h==="floating"?"reference":"floating":h],E=Gi(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:m})),R=h==="floating"?{x:a,y:l,width:f.floating.width,height:f.floating.height}:f.reference,P=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p.floating)),j=await(u.isElement==null?void 0:u.isElement(P))?await(u.getScale==null?void 0:u.getScale(P))||{x:1,y:1}:{x:1,y:1},H=Gi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:R,offsetParent:P,strategy:m}):R);return{top:(E.top-H.top+N.top)/j.y,bottom:(H.bottom-E.bottom+N.bottom)/j.y,left:(E.left-H.left+N.left)/j.x,right:(H.right-E.right+N.right)/j.x}}const Dx=50,Fx=async(n,o,i)=>{const{placement:a="bottom",strategy:l="absolute",middleware:u=[],platform:f}=i,p=f.detectOverflow?f:{...f,detectOverflow:Ox},m=await(f.isRTL==null?void 0:f.isRTL(o));let v=await f.getElementRects({reference:n,floating:o,strategy:l}),{x:w,y:h}=Sf(v,a,m),k=a,C=0;const N={};for(let b=0;b<u.length;b++){const S=u[b];if(!S)continue;const{name:E,fn:R}=S,{x:P,y:j,data:H,reset:D}=await R({x:w,y:h,initialPlacement:a,placement:k,strategy:l,middlewareData:N,rects:v,platform:p,elements:{reference:n,floating:o}});w=P??w,h=j??h,N[E]={...N[E],...H},D&&C<Dx&&(C++,typeof D=="object"&&(D.placement&&(k=D.placement),D.rects&&(v=D.rects===!0?await f.getElementRects({reference:n,floating:o,strategy:l}):D.rects),{x:w,y:h}=Sf(v,k,m)),b=-1)}return{x:w,y:h,placement:k,strategy:l,middlewareData:N}},$x=n=>({name:"arrow",options:n,async fn(o){const{x:i,y:a,placement:l,rects:u,platform:f,elements:p,middlewareData:m}=o,{element:v,padding:w=0}=yn(n,o)||{};if(v==null)return{};const h=kf(w),k={x:i,y:a},C=il(l),N=ol(C),b=await f.getDimensions(v),S=C==="y",E=S?"top":"left",R=S?"bottom":"right",P=S?"clientHeight":"clientWidth",j=u.reference[N]+u.reference[C]-k[C]-u.floating[N],H=k[C]-u.reference[C],D=await(f.getOffsetParent==null?void 0:f.getOffsetParent(v));let F=D?D[P]:0;(!F||!await(f.isElement==null?void 0:f.isElement(D)))&&(F=p.floating[P]||u.floating[N]);const $=j/2-H/2,X=F/2-b[N]/2-1,ie=On(h[E],X),ae=On(h[R],X),le=ie,me=F-b[N]-ae,ve=F/2-b[N]/2+$,Se=nl(le,ve,me),G=!m.arrow&&Gr(l)!=null&&ve!==Se&&u.reference[N]/2-(ve<le?ie:ae)-b[N]/2<0,te=G?ve<le?ve-le:ve-me:0;return{[C]:k[C]+te,data:{[C]:Se,centerOffset:ve-Se-te,...G&&{alignmentOffset:te}},reset:G}}}),Bx=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:m,elements:v}=o,{mainAxis:w=!0,crossAxis:h=!0,fallbackPlacements:k,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:b=!0,...S}=yn(n,o);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const E=wn(l),R=an(p),P=wn(p)===p,j=await(m.isRTL==null?void 0:m.isRTL(v.floating)),H=k||(P||!b?[Wi(p)]:Ax(p)),D=N!=="none";!k&&D&&H.push(...zx(p,b,N,j));const F=[p,...H],$=await m.detectOverflow(o,S),X=[];let ie=((a=u.flip)==null?void 0:a.overflows)||[];if(w&&X.push($[E]),h){const ve=Tx(l,f,j);X.push($[ve[0]],$[ve[1]])}if(ie=[...ie,{placement:l,overflows:X}],!X.every(ve=>ve<=0)){var ae,le;const ve=(((ae=u.flip)==null?void 0:ae.index)||0)+1,Se=F[ve];if(Se&&(!(h==="alignment"?R!==an(Se):!1)||ie.every(B=>an(B.placement)===R?B.overflows[0]>0:!0)))return{data:{index:ve,overflows:ie},reset:{placement:Se}};let G=(le=ie.filter(te=>te.overflows[0]<=0).sort((te,B)=>te.overflows[1]-B.overflows[1])[0])==null?void 0:le.placement;if(!G)switch(C){case"bestFit":{var me;const te=(me=ie.filter(B=>{if(D){const q=an(B.placement);return q===R||q==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(q=>q>0).reduce((q,O)=>q+O,0)]).sort((B,q)=>B[1]-q[1])[0])==null?void 0:me[0];te&&(G=te);break}case"initialPlacement":G=p;break}if(l!==G)return{reset:{placement:G}}}return{}}}};function Cf(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function Ef(n){return Rx.some(o=>n[o]>=0)}const Hx=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:i,platform:a}=o,{strategy:l="referenceHidden",...u}=yn(n,o);switch(l){case"referenceHidden":{const f=await a.detectOverflow(o,{...u,elementContext:"reference"}),p=Cf(f,i.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Ef(p)}}}case"escaped":{const f=await a.detectOverflow(o,{...u,altBoundary:!0}),p=Cf(f,i.floating);return{data:{escapedOffsets:p,escaped:Ef(p)}}}default:return{}}}}},_f=new Set(["left","top"]);async function Ux(n,o){const{placement:i,platform:a,elements:l}=n,u=await(a.isRTL==null?void 0:a.isRTL(l.floating)),f=wn(i),p=Gr(i),m=an(i)==="y",v=_f.has(f)?-1:1,w=u&&m?-1:1,h=yn(o,n);let{mainAxis:k,crossAxis:C,alignmentAxis:N}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return p&&typeof N=="number"&&(C=p==="end"?N*-1:N),m?{x:C*w,y:k*v}:{x:k*v,y:C*w}}const Vx=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,m=await Ux(o,n);return f===((i=p.offset)==null?void 0:i.placement)&&(a=p.arrow)!=null&&a.alignmentOffset?{}:{x:l+m.x,y:u+m.y,data:{...m,placement:f}}}}},Wx=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:m={fn:E=>{let{x:R,y:P}=E;return{x:R,y:P}}},...v}=yn(n,o),w={x:i,y:a},h=await u.detectOverflow(o,v),k=an(wn(l)),C=rl(k);let N=w[C],b=w[k];if(f){const E=C==="y"?"top":"left",R=C==="y"?"bottom":"right",P=N+h[E],j=N-h[R];N=nl(P,N,j)}if(p){const E=k==="y"?"top":"left",R=k==="y"?"bottom":"right",P=b+h[E],j=b-h[R];b=nl(P,b,j)}const S=m.fn({...o,[C]:N,[k]:b});return{...S,data:{x:S.x-i,y:S.y-a,enabled:{[C]:f,[k]:p}}}}}},Gx=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:m=!0,crossAxis:v=!0}=yn(n,o),w={x:i,y:a},h=an(l),k=rl(h);let C=w[k],N=w[h];const b=yn(p,o),S=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(m){const P=k==="y"?"height":"width",j=u.reference[k]-u.floating[P]+S.mainAxis,H=u.reference[k]+u.reference[P]-S.mainAxis;C<j?C=j:C>H&&(C=H)}if(v){var E,R;const P=k==="y"?"width":"height",j=_f.has(wn(l)),H=u.reference[h]-u.floating[P]+(j&&((E=f.offset)==null?void 0:E[h])||0)+(j?0:S.crossAxis),D=u.reference[h]+u.reference[P]+(j?0:((R=f.offset)==null?void 0:R[h])||0)-(j?S.crossAxis:0);N<H?N=H:N>D&&(N=D)}return{[k]:C,[h]:N}}}},Yx=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:m=()=>{},...v}=yn(n,o),w=await f.detectOverflow(o,v),h=wn(l),k=Gr(l),C=an(l)==="y",{width:N,height:b}=u.floating;let S,E;h==="top"||h==="bottom"?(S=h,E=k===(await(f.isRTL==null?void 0:f.isRTL(p.floating))?"start":"end")?"left":"right"):(E=h,S=k==="end"?"top":"bottom");const R=b-w.top-w.bottom,P=N-w.left-w.right,j=On(b-w[S],R),H=On(N-w[E],P),D=!o.middlewareData.shift;let F=j,$=H;if((i=o.middlewareData.shift)!=null&&i.enabled.x&&($=P),(a=o.middlewareData.shift)!=null&&a.enabled.y&&(F=R),D&&!k){const ie=Nt(w.left,0),ae=Nt(w.right,0),le=Nt(w.top,0),me=Nt(w.bottom,0);C?$=N-2*(ie!==0||ae!==0?ie+ae:Nt(w.left,w.right)):F=b-2*(le!==0||me!==0?le+me:Nt(w.top,w.bottom))}await m({...o,availableWidth:$,availableHeight:F});const X=await f.getDimensions(p.floating);return N!==X.width||b!==X.height?{reset:{rects:!0}}:{}}}};function Yi(){return typeof window<"u"}function Yr(n){return Nf(n)?(n.nodeName||"").toLowerCase():"#document"}function Rt(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function ln(n){var o;return(o=(Nf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Nf(n){return Yi()?n instanceof Node||n instanceof Rt(n).Node:!1}function Wt(n){return Yi()?n instanceof Element||n instanceof Rt(n).Element:!1}function xn(n){return Yi()?n instanceof HTMLElement||n instanceof Rt(n).HTMLElement:!1}function Rf(n){return!Yi()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Rt(n).ShadowRoot}function Ao(n){const{overflow:o,overflowX:i,overflowY:a,display:l}=Gt(n);return/auto|scroll|overlay|hidden|clip/.test(o+a+i)&&l!=="inline"&&l!=="contents"}function Kx(n){return/^(table|td|th)$/.test(Yr(n))}function Ki(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const Xx=/transform|translate|scale|rotate|perspective|filter/,Qx=/paint|layout|strict|content/,yr=n=>!!n&&n!=="none";let al;function ll(n){const o=Wt(n)?Gt(n):n;return yr(o.transform)||yr(o.translate)||yr(o.scale)||yr(o.rotate)||yr(o.perspective)||!cl()&&(yr(o.backdropFilter)||yr(o.filter))||Xx.test(o.willChange||"")||Qx.test(o.contain||"")}function qx(n){let o=Dn(n);for(;xn(o)&&!Kr(o);){if(ll(o))return o;if(Ki(o))return null;o=Dn(o)}return null}function cl(){return al==null&&(al=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),al}function Kr(n){return/^(html|body|#document)$/.test(Yr(n))}function Gt(n){return Rt(n).getComputedStyle(n)}function Xi(n){return Wt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dn(n){if(Yr(n)==="html")return n;const o=n.assignedSlot||n.parentNode||Rf(n)&&n.host||ln(n);return Rf(o)?o.host:o}function Pf(n){const o=Dn(n);return Kr(o)?n.ownerDocument?n.ownerDocument.body:n.body:xn(o)&&Ao(o)?o:Pf(o)}function Io(n,o,i){var a;o===void 0&&(o=[]),i===void 0&&(i=!0);const l=Pf(n),u=l===((a=n.ownerDocument)==null?void 0:a.body),f=Rt(l);if(u){const p=ul(f);return o.concat(f,f.visualViewport||[],Ao(l)?l:[],p&&i?Io(p):[])}else return o.concat(l,Io(l,[],i))}function ul(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Tf(n){const o=Gt(n);let i=parseFloat(o.width)||0,a=parseFloat(o.height)||0;const l=xn(n),u=l?n.offsetWidth:i,f=l?n.offsetHeight:a,p=Ui(i)!==u||Ui(a)!==f;return p&&(i=u,a=f),{width:i,height:a,$:p}}function dl(n){return Wt(n)?n:n.contextElement}function Xr(n){const o=dl(n);if(!xn(o))return sn(1);const i=o.getBoundingClientRect(),{width:a,height:l,$:u}=Tf(o);let f=(u?Ui(i.width):i.width)/a,p=(u?Ui(i.height):i.height)/l;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const Zx=sn(0);function Af(n){const o=Rt(n);return!cl()||!o.visualViewport?Zx:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Jx(n,o,i){return o===void 0&&(o=!1),!i||o&&i!==Rt(n)?!1:o}function wr(n,o,i,a){o===void 0&&(o=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),u=dl(n);let f=sn(1);o&&(a?Wt(a)&&(f=Xr(a)):f=Xr(n));const p=Jx(u,i,a)?Af(u):sn(0);let m=(l.left+p.x)/f.x,v=(l.top+p.y)/f.y,w=l.width/f.x,h=l.height/f.y;if(u){const k=Rt(u),C=a&&Wt(a)?Rt(a):a;let N=k,b=ul(N);for(;b&&a&&C!==N;){const S=Xr(b),E=b.getBoundingClientRect(),R=Gt(b),P=E.left+(b.clientLeft+parseFloat(R.paddingLeft))*S.x,j=E.top+(b.clientTop+parseFloat(R.paddingTop))*S.y;m*=S.x,v*=S.y,w*=S.x,h*=S.y,m+=P,v+=j,N=Rt(b),b=ul(N)}}return Gi({width:w,height:h,x:m,y:v})}function Qi(n,o){const i=Xi(n).scrollLeft;return o?o.left+i:wr(ln(n)).left+i}function If(n,o){const i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-Qi(n,i),l=i.top+o.scrollTop;return{x:a,y:l}}function e1(n){let{elements:o,rect:i,offsetParent:a,strategy:l}=n;const u=l==="fixed",f=ln(a),p=o?Ki(o.floating):!1;if(a===f||p&&u)return i;let m={scrollLeft:0,scrollTop:0},v=sn(1);const w=sn(0),h=xn(a);if((h||!h&&!u)&&((Yr(a)!=="body"||Ao(f))&&(m=Xi(a)),h)){const C=wr(a);v=Xr(a),w.x=C.x+a.clientLeft,w.y=C.y+a.clientTop}const k=f&&!h&&!u?If(f,m):sn(0);return{width:i.width*v.x,height:i.height*v.y,x:i.x*v.x-m.scrollLeft*v.x+w.x+k.x,y:i.y*v.y-m.scrollTop*v.y+w.y+k.y}}function t1(n){return Array.from(n.getClientRects())}function n1(n){const o=ln(n),i=Xi(n),a=n.ownerDocument.body,l=Nt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),u=Nt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let f=-i.scrollLeft+Qi(n);const p=-i.scrollTop;return Gt(a).direction==="rtl"&&(f+=Nt(o.clientWidth,a.clientWidth)-l),{width:l,height:u,x:f,y:p}}const jf=25;function r1(n,o){const i=Rt(n),a=ln(n),l=i.visualViewport;let u=a.clientWidth,f=a.clientHeight,p=0,m=0;if(l){u=l.width,f=l.height;const w=cl();(!w||w&&o==="fixed")&&(p=l.offsetLeft,m=l.offsetTop)}const v=Qi(a);if(v<=0){const w=a.ownerDocument,h=w.body,k=getComputedStyle(h),C=w.compatMode==="CSS1Compat"&&parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0,N=Math.abs(a.clientWidth-h.clientWidth-C);N<=jf&&(u-=N)}else v<=jf&&(u+=v);return{width:u,height:f,x:p,y:m}}function o1(n,o){const i=wr(n,!0,o==="fixed"),a=i.top+n.clientTop,l=i.left+n.clientLeft,u=xn(n)?Xr(n):sn(1),f=n.clientWidth*u.x,p=n.clientHeight*u.y,m=l*u.x,v=a*u.y;return{width:f,height:p,x:m,y:v}}function Mf(n,o,i){let a;if(o==="viewport")a=r1(n,i);else if(o==="document")a=n1(ln(n));else if(Wt(o))a=o1(o,i);else{const l=Af(n);a={x:o.x-l.x,y:o.y-l.y,width:o.width,height:o.height}}return Gi(a)}function zf(n,o){const i=Dn(n);return i===o||!Wt(i)||Kr(i)?!1:Gt(i).position==="fixed"||zf(i,o)}function i1(n,o){const i=o.get(n);if(i)return i;let a=Io(n,[],!1).filter(p=>Wt(p)&&Yr(p)!=="body"),l=null;const u=Gt(n).position==="fixed";let f=u?Dn(n):n;for(;Wt(f)&&!Kr(f);){const p=Gt(f),m=ll(f);!m&&p.position==="fixed"&&(l=null),(u?!m&&!l:!m&&p.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||Ao(f)&&!m&&zf(n,f))?a=a.filter(w=>w!==f):l=p,f=Dn(f)}return o.set(n,a),a}function s1(n){let{element:o,boundary:i,rootBoundary:a,strategy:l}=n;const f=[...i==="clippingAncestors"?Ki(o)?[]:i1(o,this._c):[].concat(i),a],p=Mf(o,f[0],l);let m=p.top,v=p.right,w=p.bottom,h=p.left;for(let k=1;k<f.length;k++){const C=Mf(o,f[k],l);m=Nt(C.top,m),v=On(C.right,v),w=On(C.bottom,w),h=Nt(C.left,h)}return{width:v-h,height:w-m,x:h,y:m}}function a1(n){const{width:o,height:i}=Tf(n);return{width:o,height:i}}function l1(n,o,i){const a=xn(o),l=ln(o),u=i==="fixed",f=wr(n,!0,u,o);let p={scrollLeft:0,scrollTop:0};const m=sn(0);function v(){m.x=Qi(l)}if(a||!a&&!u)if((Yr(o)!=="body"||Ao(l))&&(p=Xi(o)),a){const C=wr(o,!0,u,o);m.x=C.x+o.clientLeft,m.y=C.y+o.clientTop}else l&&v();u&&!a&&l&&v();const w=l&&!a&&!u?If(l,p):sn(0),h=f.left+p.scrollLeft-m.x-w.x,k=f.top+p.scrollTop-m.y-w.y;return{x:h,y:k,width:f.width,height:f.height}}function fl(n){return Gt(n).position==="static"}function Lf(n,o){if(!xn(n)||Gt(n).position==="fixed")return null;if(o)return o(n);let i=n.offsetParent;return ln(n)===i&&(i=i.ownerDocument.body),i}function Of(n,o){const i=Rt(n);if(Ki(n))return i;if(!xn(n)){let l=Dn(n);for(;l&&!Kr(l);){if(Wt(l)&&!fl(l))return l;l=Dn(l)}return i}let a=Lf(n,o);for(;a&&Kx(a)&&fl(a);)a=Lf(a,o);return a&&Kr(a)&&fl(a)&&!ll(a)?i:a||qx(n)||i}const c1=async function(n){const o=this.getOffsetParent||Of,i=this.getDimensions,a=await i(n.floating);return{reference:l1(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function u1(n){return Gt(n).direction==="rtl"}const d1={convertOffsetParentRelativeRectToViewportRelativeRect:e1,getDocumentElement:ln,getClippingRect:s1,getOffsetParent:Of,getElementRects:c1,getClientRects:t1,getDimensions:a1,getScale:Xr,isElement:Wt,isRTL:u1};function Df(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function f1(n,o){let i=null,a;const l=ln(n);function u(){var p;clearTimeout(a),(p=i)==null||p.disconnect(),i=null}function f(p,m){p===void 0&&(p=!1),m===void 0&&(m=1),u();const v=n.getBoundingClientRect(),{left:w,top:h,width:k,height:C}=v;if(p||o(),!k||!C)return;const N=Vi(h),b=Vi(l.clientWidth-(w+k)),S=Vi(l.clientHeight-(h+C)),E=Vi(w),P={rootMargin:-N+"px "+-b+"px "+-S+"px "+-E+"px",threshold:Nt(0,On(1,m))||1};let j=!0;function H(D){const F=D[0].intersectionRatio;if(F!==m){if(!j)return f();F?f(!1,F):a=setTimeout(()=>{f(!1,1e-7)},1e3)}F===1&&!Df(v,n.getBoundingClientRect())&&f(),j=!1}try{i=new IntersectionObserver(H,{...P,root:l.ownerDocument})}catch{i=new IntersectionObserver(H,P)}i.observe(n)}return f(!0),u}function p1(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:m=!1}=a,v=dl(n),w=l||u?[...v?Io(v):[],...o?Io(o):[]]:[];w.forEach(E=>{l&&E.addEventListener("scroll",i,{passive:!0}),u&&E.addEventListener("resize",i)});const h=v&&p?f1(v,i):null;let k=-1,C=null;f&&(C=new ResizeObserver(E=>{let[R]=E;R&&R.target===v&&C&&o&&(C.unobserve(o),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var P;(P=C)==null||P.observe(o)})),i()}),v&&!m&&C.observe(v),o&&C.observe(o));let N,b=m?wr(n):null;m&&S();function S(){const E=wr(n);b&&!Df(b,E)&&i(),b=E,N=requestAnimationFrame(S)}return i(),()=>{var E;w.forEach(R=>{l&&R.removeEventListener("scroll",i),u&&R.removeEventListener("resize",i)}),h==null||h(),(E=C)==null||E.disconnect(),C=null,m&&cancelAnimationFrame(N)}}const m1=Vx,h1=Wx,g1=Bx,v1=Yx,y1=Hx,Ff=$x,w1=Gx,x1=(n,o,i)=>{const a=new Map,l={platform:d1,...i},u={...l.platform,_c:a};return Fx(n,o,{...l,platform:u})};var b1=typeof document<"u",k1=function(){},qi=b1?g.useLayoutEffect:k1;function Zi(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(!Zi(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)&&!Zi(n[u],o[u]))return!1}return!0}return n!==n&&o!==o}function $f(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Bf(n,o){const i=$f(n);return Math.round(o*i)/i}function pl(n){const o=g.useRef(n);return qi(()=>{o.current=n}),o}function S1(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:m,open:v}=n,[w,h]=g.useState({x:0,y:0,strategy:i,placement:o,middlewareData:{},isPositioned:!1}),[k,C]=g.useState(a);Zi(k,a)||C(a);const[N,b]=g.useState(null),[S,E]=g.useState(null),R=g.useCallback(B=>{B!==D.current&&(D.current=B,b(B))},[]),P=g.useCallback(B=>{B!==F.current&&(F.current=B,E(B))},[]),j=u||N,H=f||S,D=g.useRef(null),F=g.useRef(null),$=g.useRef(w),X=m!=null,ie=pl(m),ae=pl(l),le=pl(v),me=g.useCallback(()=>{if(!D.current||!F.current)return;const B={placement:o,strategy:i,middleware:k};ae.current&&(B.platform=ae.current),x1(D.current,F.current,B).then(q=>{const O={...q,isPositioned:le.current!==!1};ve.current&&!Zi($.current,O)&&($.current=O,Eo.flushSync(()=>{h(O)}))})},[k,o,i,ae,le]);qi(()=>{v===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[v]);const ve=g.useRef(!1);qi(()=>(ve.current=!0,()=>{ve.current=!1}),[]),qi(()=>{if(j&&(D.current=j),H&&(F.current=H),j&&H){if(ie.current)return ie.current(j,H,me);me()}},[j,H,me,ie,X]);const Se=g.useMemo(()=>({reference:D,floating:F,setReference:R,setFloating:P}),[R,P]),G=g.useMemo(()=>({reference:j,floating:H}),[j,H]),te=g.useMemo(()=>{const B={position:i,left:0,top:0};if(!G.floating)return B;const q=Bf(G.floating,w.x),O=Bf(G.floating,w.y);return p?{...B,transform:"translate("+q+"px, "+O+"px)",...$f(G.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:q,top:O}},[i,p,G.floating,w.x,w.y]);return g.useMemo(()=>({...w,update:me,refs:Se,elements:G,floatingStyles:te}),[w,me,Se,G,te])}const C1=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?Ff({element:a.current,padding:l}).fn(i):{}:a?Ff({element:a,padding:l}).fn(i):{}}}},E1=(n,o)=>{const i=m1(n);return{name:i.name,fn:i.fn,options:[n,o]}},_1=(n,o)=>{const i=h1(n);return{name:i.name,fn:i.fn,options:[n,o]}},N1=(n,o)=>({fn:w1(n).fn,options:[n,o]}),R1=(n,o)=>{const i=g1(n);return{name:i.name,fn:i.fn,options:[n,o]}},P1=(n,o)=>{const i=v1(n);return{name:i.name,fn:i.fn,options:[n,o]}},T1=(n,o)=>{const i=y1(n);return{name:i.name,fn:i.fn,options:[n,o]}},A1=(n,o)=>{const i=C1(n);return{name:i.name,fn:i.fn,options:[n,o]}};var I1="Arrow",Hf=g.forwardRef((n,o)=>{const{children:i,width:a=10,height:l=5,...u}=n;return y.jsx(ye.svg,{...u,ref:o,width:a,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hf.displayName=I1;var j1=Hf,ml="Popper",[Uf,Ji]=bt(ml),[M1,Vf]=Uf(ml),Wf=n=>{const{__scopePopper:o,children:i}=n,[a,l]=g.useState(null);return y.jsx(M1,{scope:o,anchor:a,onAnchorChange:l,children:i})};Wf.displayName=ml;var Gf="PopperAnchor",Yf=g.forwardRef((n,o)=>{const{__scopePopper:i,virtualRef:a,...l}=n,u=Vf(Gf,i),f=g.useRef(null),p=Ae(o,f),m=g.useRef(null);return g.useEffect(()=>{const v=m.current;m.current=(a==null?void 0:a.current)||f.current,v!==m.current&&u.onAnchorChange(m.current)}),a?null:y.jsx(ye.div,{...l,ref:p})});Yf.displayName=Gf;var hl="PopperContent",[z1,L1]=Uf(hl),Kf=g.forwardRef((n,o)=>{var Z,J,ce,Ce,Ne,Re;const{__scopePopper:i,side:a="bottom",sideOffset:l=0,align:u="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:v=[],collisionPadding:w=0,sticky:h="partial",hideWhenDetached:k=!1,updatePositionStrategy:C="optimized",onPlaced:N,...b}=n,S=Vf(hl,i),[E,R]=g.useState(null),P=Ae(o,Fe=>R(Fe)),[j,H]=g.useState(null),D=Bi(j),F=(D==null?void 0:D.width)??0,$=(D==null?void 0:D.height)??0,X=a+(u!=="center"?"-"+u:""),ie=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},ae=Array.isArray(v)?v:[v],le=ae.length>0,me={padding:ie,boundary:ae.filter(D1),altBoundary:le},{refs:ve,floatingStyles:Se,placement:G,isPositioned:te,middlewareData:B}=S1({strategy:"fixed",placement:X,whileElementsMounted:(...Fe)=>p1(...Fe,{animationFrame:C==="always"}),elements:{reference:S.anchor},middleware:[E1({mainAxis:l+$,alignmentAxis:f}),m&&_1({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?N1():void 0,...me}),m&&R1({...me}),P1({...me,apply:({elements:Fe,rects:Be,availableWidth:un,availableHeight:Kt})=>{const{width:gt,height:kr}=Be.reference,tt=Fe.floating.style;tt.setProperty("--radix-popper-available-width",`${un}px`),tt.setProperty("--radix-popper-available-height",`${Kt}px`),tt.setProperty("--radix-popper-anchor-width",`${gt}px`),tt.setProperty("--radix-popper-anchor-height",`${kr}px`)}}),j&&A1({element:j,padding:p}),F1({arrowWidth:F,arrowHeight:$}),k&&T1({strategy:"referenceHidden",...me})]}),[q,O]=qf(G),I=ut(N);We(()=>{te&&(I==null||I())},[te,I]);const U=(Z=B.arrow)==null?void 0:Z.x,ee=(J=B.arrow)==null?void 0:J.y,re=((ce=B.arrow)==null?void 0:ce.centerOffset)!==0,[ne,se]=g.useState();return We(()=>{E&&se(window.getComputedStyle(E).zIndex)},[E]),y.jsx("div",{ref:ve.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:te?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(Ce=B.transformOrigin)==null?void 0:Ce.x,(Ne=B.transformOrigin)==null?void 0:Ne.y].join(" "),...((Re=B.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:y.jsx(z1,{scope:i,placedSide:q,onArrowChange:H,arrowX:U,arrowY:ee,shouldHideArrow:re,children:y.jsx(ye.div,{"data-side":q,"data-align":O,...b,ref:P,style:{...b.style,animation:te?void 0:"none"}})})})});Kf.displayName=hl;var Xf="PopperArrow",O1={top:"bottom",right:"left",bottom:"top",left:"right"},Qf=g.forwardRef(function(o,i){const{__scopePopper:a,...l}=o,u=L1(Xf,a),f=O1[u.placedSide];return y.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:y.jsx(j1,{...l,ref:i,style:{...l.style,display:"block"}})})});Qf.displayName=Xf;function D1(n){return n!==null}var F1=n=>({name:"transformOrigin",options:n,fn(o){var S,E,R;const{placement:i,rects:a,middlewareData:l}=o,f=((S=l.arrow)==null?void 0:S.centerOffset)!==0,p=f?0:n.arrowWidth,m=f?0:n.arrowHeight,[v,w]=qf(i),h={start:"0%",center:"50%",end:"100%"}[w],k=(((E=l.arrow)==null?void 0:E.x)??0)+p/2,C=(((R=l.arrow)==null?void 0:R.y)??0)+m/2;let N="",b="";return v==="bottom"?(N=f?h:`${k}px`,b=`${-m}px`):v==="top"?(N=f?h:`${k}px`,b=`${a.floating.height+m}px`):v==="right"?(N=`${-m}px`,b=f?h:`${C}px`):v==="left"&&(N=`${a.floating.width+m}px`,b=f?h:`${C}px`),{data:{x:N,y:b}}}});function qf(n){const[o,i="center"]=n.split("-");return[o,i]}var Zf=Wf,Jf=Yf,ep=Kf,tp=Qf,gl="rovingFocusGroup.onEntryFocus",$1={bubbles:!1,cancelable:!0},jo="RovingFocusGroup",[vl,np,B1]=_d(jo),[H1,es]=bt(jo,[B1]),[U1,V1]=H1(jo),rp=g.forwardRef((n,o)=>y.jsx(vl.Provider,{scope:n.__scopeRovingFocusGroup,children:y.jsx(vl.Slot,{scope:n.__scopeRovingFocusGroup,children:y.jsx(W1,{...n,ref:o})})}));rp.displayName=jo;var W1=g.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:i,orientation:a,loop:l=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:v,preventScrollOnEntryFocus:w=!1,...h}=n,k=g.useRef(null),C=Ae(o,k),N=To(u),[b,S]=vn({prop:f,defaultProp:p??null,onChange:m,caller:jo}),[E,R]=g.useState(!1),P=ut(v),j=np(i),H=g.useRef(!1),[D,F]=g.useState(0);return g.useEffect(()=>{const $=k.current;if($)return $.addEventListener(gl,P),()=>$.removeEventListener(gl,P)},[P]),y.jsx(U1,{scope:i,orientation:a,dir:N,loop:l,currentTabStopId:b,onItemFocus:g.useCallback($=>S($),[S]),onItemShiftTab:g.useCallback(()=>R(!0),[]),onFocusableItemAdd:g.useCallback(()=>F($=>$+1),[]),onFocusableItemRemove:g.useCallback(()=>F($=>$-1),[]),children:y.jsx(ye.div,{tabIndex:E||D===0?-1:0,"data-orientation":a,...h,ref:C,style:{outline:"none",...n.style},onMouseDown:ke(n.onMouseDown,()=>{H.current=!0}),onFocus:ke(n.onFocus,$=>{const X=!H.current;if($.target===$.currentTarget&&X&&!E){const ie=new CustomEvent(gl,$1);if($.currentTarget.dispatchEvent(ie),!ie.defaultPrevented){const ae=j().filter(G=>G.focusable),le=ae.find(G=>G.active),me=ae.find(G=>G.id===b),Se=[le,me,...ae].filter(Boolean).map(G=>G.ref.current);sp(Se,w)}}H.current=!1}),onBlur:ke(n.onBlur,()=>R(!1))})})}),op="RovingFocusGroupItem",ip=g.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:i,focusable:a=!0,active:l=!1,tabStopId:u,children:f,...p}=n,m=vr(),v=u||m,w=V1(op,i),h=w.currentTabStopId===v,k=np(i),{onFocusableItemAdd:C,onFocusableItemRemove:N,currentTabStopId:b}=w;return g.useEffect(()=>{if(a)return C(),()=>N()},[a,C,N]),y.jsx(vl.ItemSlot,{scope:i,id:v,focusable:a,active:l,children:y.jsx(ye.span,{tabIndex:h?0:-1,"data-orientation":w.orientation,...p,ref:o,onMouseDown:ke(n.onMouseDown,S=>{a?w.onItemFocus(v):S.preventDefault()}),onFocus:ke(n.onFocus,()=>w.onItemFocus(v)),onKeyDown:ke(n.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){w.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const E=K1(S,w.orientation,w.dir);if(E!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let P=k().filter(j=>j.focusable).map(j=>j.ref.current);if(E==="last")P.reverse();else if(E==="prev"||E==="next"){E==="prev"&&P.reverse();const j=P.indexOf(S.currentTarget);P=w.loop?X1(P,j+1):P.slice(j+1)}setTimeout(()=>sp(P))}}),children:typeof f=="function"?f({isCurrentTabStop:h,hasTabStop:b!=null}):f})})});ip.displayName=op;var G1={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Y1(n,o){return o!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function K1(n,o,i){const a=Y1(n.key,i);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return G1[a]}function sp(n,o=!1){const i=document.activeElement;for(const a of n)if(a===i||(a.focus({preventScroll:o}),document.activeElement!==i))return}function X1(n,o){return n.map((i,a)=>n[(o+a)%n.length])}var ap=rp,lp=ip,Q1="Label",cp=g.forwardRef((n,o)=>y.jsx(ye.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())}}));cp.displayName=Q1;var q1=cp;function yl(n,[o,i]){return Math.min(i,Math.max(o,n))}var wl="Progress",xl=100,[Z1]=bt(wl),[J1,eb]=Z1(wl),up=g.forwardRef((n,o)=>{const{__scopeProgress:i,value:a=null,max:l,getValueLabel:u=tb,...f}=n;(l||l===0)&&!mp(l)&&console.error(nb(`${l}`,"Progress"));const p=mp(l)?l:xl;a!==null&&!hp(a,p)&&console.error(rb(`${a}`,"Progress"));const m=hp(a,p)?a:null,v=ts(m)?u(m,p):void 0;return y.jsx(J1,{scope:i,value:m,max:p,children:y.jsx(ye.div,{"aria-valuemax":p,"aria-valuemin":0,"aria-valuenow":ts(m)?m:void 0,"aria-valuetext":v,role:"progressbar","data-state":pp(m,p),"data-value":m??void 0,"data-max":p,...f,ref:o})})});up.displayName=wl;var dp="ProgressIndicator",fp=g.forwardRef((n,o)=>{const{__scopeProgress:i,...a}=n,l=eb(dp,i);return y.jsx(ye.div,{"data-state":pp(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...a,ref:o})});fp.displayName=dp;function tb(n,o){return`${Math.round(n/o*100)}%`}function pp(n,o){return n==null?"indeterminate":n===o?"complete":"loading"}function ts(n){return typeof n=="number"}function mp(n){return ts(n)&&!isNaN(n)&&n>0}function hp(n,o){return ts(n)&&!isNaN(n)&&n<=o&&n>=0}function nb(n,o){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${xl}\`.`}function rb(n,o){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${o}\`. The \`value\` prop must be:
|
|
290
300
|
- a positive number
|
|
291
|
-
- less than the value passed to \`max\` (or ${
|
|
301
|
+
- less than the value passed to \`max\` (or ${xl} if no \`max\` prop is set)
|
|
292
302
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
293
303
|
|
|
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=`
|
|
304
|
+
Defaulting to \`null\`.`}var ob=up,ib=fp,bl="Radio",[sb,gp]=bt(bl),[ab,lb]=sb(bl),vp=g.forwardRef((n,o)=>{const{__scopeRadio:i,name:a,checked:l=!1,required:u,disabled:f,value:p="on",onCheck:m,form:v,...w}=n,[h,k]=g.useState(null),C=Ae(o,S=>k(S)),N=g.useRef(!1),b=h?v||!!h.closest("form"):!0;return y.jsxs(ab,{scope:i,checked:l,disabled:f,children:[y.jsx(ye.button,{type:"button",role:"radio","aria-checked":l,"data-state":bp(l),"data-disabled":f?"":void 0,disabled:f,value:p,...w,ref:C,onClick:ke(n.onClick,S=>{l||m==null||m(),b&&(N.current=S.isPropagationStopped(),N.current||S.stopPropagation())})}),b&&y.jsx(xp,{control:h,bubbles:!N.current,name:a,value:p,checked:l,required:u,disabled:f,form:v,style:{transform:"translateX(-100%)"}})]})});vp.displayName=bl;var yp="RadioIndicator",wp=g.forwardRef((n,o)=>{const{__scopeRadio:i,forceMount:a,...l}=n,u=lb(yp,i);return y.jsx(Vt,{present:a||u.checked,children:y.jsx(ye.span,{"data-state":bp(u.checked),"data-disabled":u.disabled?"":void 0,...l,ref:o})})});wp.displayName=yp;var cb="RadioBubbleInput",xp=g.forwardRef(({__scopeRadio:n,control:o,checked:i,bubbles:a=!0,...l},u)=>{const f=g.useRef(null),p=Ae(f,u),m=$i(i),v=Bi(o);return g.useEffect(()=>{const w=f.current;if(!w)return;const h=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(h,"checked").set;if(m!==i&&C){const N=new Event("click",{bubbles:a});C.call(w,i),w.dispatchEvent(N)}},[m,i,a]),y.jsx(ye.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}})});xp.displayName=cb;function bp(n){return n?"checked":"unchecked"}var ub=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ns="RadioGroup",[db]=bt(ns,[es,gp]),kp=es(),Sp=gp(),[fb,pb]=db(ns),Cp=g.forwardRef((n,o)=>{const{__scopeRadioGroup:i,name:a,defaultValue:l,value:u,required:f=!1,disabled:p=!1,orientation:m,dir:v,loop:w=!0,onValueChange:h,...k}=n,C=kp(i),N=To(v),[b,S]=vn({prop:u,defaultProp:l??null,onChange:h,caller:ns});return y.jsx(fb,{scope:i,name:a,required:f,disabled:p,value:b,onValueChange:S,children:y.jsx(ap,{asChild:!0,...C,orientation:m,dir:N,loop:w,children:y.jsx(ye.div,{role:"radiogroup","aria-required":f,"aria-orientation":m,"data-disabled":p?"":void 0,dir:N,...k,ref:o})})})});Cp.displayName=ns;var Ep="RadioGroupItem",_p=g.forwardRef((n,o)=>{const{__scopeRadioGroup:i,disabled:a,...l}=n,u=pb(Ep,i),f=u.disabled||a,p=kp(i),m=Sp(i),v=g.useRef(null),w=Ae(o,v),h=u.value===l.value,k=g.useRef(!1);return g.useEffect(()=>{const C=b=>{ub.includes(b.key)&&(k.current=!0)},N=()=>k.current=!1;return document.addEventListener("keydown",C),document.addEventListener("keyup",N),()=>{document.removeEventListener("keydown",C),document.removeEventListener("keyup",N)}},[]),y.jsx(lp,{asChild:!0,...p,focusable:!f,active:h,children:y.jsx(vp,{disabled:f,required:u.required,checked:h,...m,...l,name:u.name,ref:w,onCheck:()=>u.onValueChange(l.value),onKeyDown:ke(C=>{C.key==="Enter"&&C.preventDefault()}),onFocus:ke(l.onFocus,()=>{var C;k.current&&((C=v.current)==null||C.click())})})})});_p.displayName=Ep;var mb="RadioGroupIndicator",Np=g.forwardRef((n,o)=>{const{__scopeRadioGroup:i,...a}=n,l=Sp(i);return y.jsx(wp,{...l,...a,ref:o})});Np.displayName=mb;var hb=Cp,gb=_p,vb=Np;function yb(n,o){return g.useReducer((i,a)=>o[i][a]??i,n)}var kl="ScrollArea",[Rp]=bt(kl),[wb,Mt]=Rp(kl),Pp=g.forwardRef((n,o)=>{const{__scopeScrollArea:i,type:a="hover",dir:l,scrollHideDelay:u=600,...f}=n,[p,m]=g.useState(null),[v,w]=g.useState(null),[h,k]=g.useState(null),[C,N]=g.useState(null),[b,S]=g.useState(null),[E,R]=g.useState(0),[P,j]=g.useState(0),[H,D]=g.useState(!1),[F,$]=g.useState(!1),X=Ae(o,ae=>m(ae)),ie=To(l);return y.jsx(wb,{scope:i,type:a,dir:ie,scrollHideDelay:u,scrollArea:p,viewport:v,onViewportChange:w,content:h,onContentChange:k,scrollbarX:C,onScrollbarXChange:N,scrollbarXEnabled:H,onScrollbarXEnabledChange:D,scrollbarY:b,onScrollbarYChange:S,scrollbarYEnabled:F,onScrollbarYEnabledChange:$,onCornerWidthChange:R,onCornerHeightChange:j,children:y.jsx(ye.div,{dir:ie,...f,ref:X,style:{position:"relative","--radix-scroll-area-corner-width":E+"px","--radix-scroll-area-corner-height":P+"px",...n.style}})})});Pp.displayName=kl;var Tp="ScrollAreaViewport",Ap=g.forwardRef((n,o)=>{const{__scopeScrollArea:i,children:a,nonce:l,...u}=n,f=Mt(Tp,i),p=g.useRef(null),m=Ae(o,p,f.onViewportChange);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(ye.div,{"data-radix-scroll-area-viewport":"",...u,ref:m,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...n.style},children:y.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});Ap.displayName=Tp;var cn="ScrollAreaScrollbar",Ip=g.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Mt(cn,n.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:f}=l,p=n.orientation==="horizontal";return g.useEffect(()=>(p?u(!0):f(!0),()=>{p?u(!1):f(!1)}),[p,u,f]),l.type==="hover"?y.jsx(xb,{...a,ref:o,forceMount:i}):l.type==="scroll"?y.jsx(bb,{...a,ref:o,forceMount:i}):l.type==="auto"?y.jsx(jp,{...a,ref:o,forceMount:i}):l.type==="always"?y.jsx(Sl,{...a,ref:o}):null});Ip.displayName=cn;var xb=g.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Mt(cn,n.__scopeScrollArea),[u,f]=g.useState(!1);return g.useEffect(()=>{const p=l.scrollArea;let m=0;if(p){const v=()=>{window.clearTimeout(m),f(!0)},w=()=>{m=window.setTimeout(()=>f(!1),l.scrollHideDelay)};return p.addEventListener("pointerenter",v),p.addEventListener("pointerleave",w),()=>{window.clearTimeout(m),p.removeEventListener("pointerenter",v),p.removeEventListener("pointerleave",w)}}},[l.scrollArea,l.scrollHideDelay]),y.jsx(Vt,{present:i||u,children:y.jsx(jp,{"data-state":u?"visible":"hidden",...a,ref:o})})}),bb=g.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Mt(cn,n.__scopeScrollArea),u=n.orientation==="horizontal",f=ss(()=>m("SCROLL_END"),100),[p,m]=yb("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 g.useEffect(()=>{if(p==="idle"){const v=window.setTimeout(()=>m("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(v)}},[p,l.scrollHideDelay,m]),g.useEffect(()=>{const v=l.viewport,w=u?"scrollLeft":"scrollTop";if(v){let h=v[w];const k=()=>{const C=v[w];h!==C&&(m("SCROLL"),f()),h=C};return v.addEventListener("scroll",k),()=>v.removeEventListener("scroll",k)}},[l.viewport,u,m,f]),y.jsx(Vt,{present:i||p!=="hidden",children:y.jsx(Sl,{"data-state":p==="hidden"?"hidden":"visible",...a,ref:o,onPointerEnter:ke(n.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:ke(n.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),jp=g.forwardRef((n,o)=>{const i=Mt(cn,n.__scopeScrollArea),{forceMount:a,...l}=n,[u,f]=g.useState(!1),p=n.orientation==="horizontal",m=ss(()=>{if(i.viewport){const v=i.viewport.offsetWidth<i.viewport.scrollWidth,w=i.viewport.offsetHeight<i.viewport.scrollHeight;f(p?v:w)}},10);return Qr(i.viewport,m),Qr(i.content,m),y.jsx(Vt,{present:a||u,children:y.jsx(Sl,{"data-state":u?"visible":"hidden",...l,ref:o})})}),Sl=g.forwardRef((n,o)=>{const{orientation:i="vertical",...a}=n,l=Mt(cn,n.__scopeScrollArea),u=g.useRef(null),f=g.useRef(0),[p,m]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),v=Dp(p.viewport,p.content),w={...a,sizes:p,onSizesChange:m,hasThumb:v>0&&v<1,onThumbChange:k=>u.current=k,onThumbPointerUp:()=>f.current=0,onThumbPointerDown:k=>f.current=k};function h(k,C){return Nb(k,f.current,p,C)}return i==="horizontal"?y.jsx(kb,{...w,ref:o,onThumbPositionChange:()=>{if(l.viewport&&u.current){const k=l.viewport.scrollLeft,C=Fp(k,p,l.dir);u.current.style.transform=`translate3d(${C}px, 0, 0)`}},onWheelScroll:k=>{l.viewport&&(l.viewport.scrollLeft=k)},onDragScroll:k=>{l.viewport&&(l.viewport.scrollLeft=h(k,l.dir))}}):i==="vertical"?y.jsx(Sb,{...w,ref:o,onThumbPositionChange:()=>{if(l.viewport&&u.current){const k=l.viewport.scrollTop,C=Fp(k,p);u.current.style.transform=`translate3d(0, ${C}px, 0)`}},onWheelScroll:k=>{l.viewport&&(l.viewport.scrollTop=k)},onDragScroll:k=>{l.viewport&&(l.viewport.scrollTop=h(k))}}):null}),kb=g.forwardRef((n,o)=>{const{sizes:i,onSizesChange:a,...l}=n,u=Mt(cn,n.__scopeScrollArea),[f,p]=g.useState(),m=g.useRef(null),v=Ae(o,m,u.onScrollbarXChange);return g.useEffect(()=>{m.current&&p(getComputedStyle(m.current))},[m]),y.jsx(zp,{"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":is(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.x),onDragScroll:w=>n.onDragScroll(w.x),onWheelScroll:(w,h)=>{if(u.viewport){const k=u.viewport.scrollLeft+w.deltaX;n.onWheelScroll(k),Bp(k,h)&&w.preventDefault()}},onResize:()=>{m.current&&u.viewport&&f&&a({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:m.current.clientWidth,paddingStart:os(f.paddingLeft),paddingEnd:os(f.paddingRight)}})}})}),Sb=g.forwardRef((n,o)=>{const{sizes:i,onSizesChange:a,...l}=n,u=Mt(cn,n.__scopeScrollArea),[f,p]=g.useState(),m=g.useRef(null),v=Ae(o,m,u.onScrollbarYChange);return g.useEffect(()=>{m.current&&p(getComputedStyle(m.current))},[m]),y.jsx(zp,{"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":is(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.y),onDragScroll:w=>n.onDragScroll(w.y),onWheelScroll:(w,h)=>{if(u.viewport){const k=u.viewport.scrollTop+w.deltaY;n.onWheelScroll(k),Bp(k,h)&&w.preventDefault()}},onResize:()=>{m.current&&u.viewport&&f&&a({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:m.current.clientHeight,paddingStart:os(f.paddingTop),paddingEnd:os(f.paddingBottom)}})}})}),[Cb,Mp]=Rp(cn),zp=g.forwardRef((n,o)=>{const{__scopeScrollArea:i,sizes:a,hasThumb:l,onThumbChange:u,onThumbPointerUp:f,onThumbPointerDown:p,onThumbPositionChange:m,onDragScroll:v,onWheelScroll:w,onResize:h,...k}=n,C=Mt(cn,i),[N,b]=g.useState(null),S=Ae(o,X=>b(X)),E=g.useRef(null),R=g.useRef(""),P=C.viewport,j=a.content-a.viewport,H=ut(w),D=ut(m),F=ss(h,10);function $(X){if(E.current){const ie=X.clientX-E.current.left,ae=X.clientY-E.current.top;v({x:ie,y:ae})}}return g.useEffect(()=>{const X=ie=>{const ae=ie.target;(N==null?void 0:N.contains(ae))&&H(ie,j)};return document.addEventListener("wheel",X,{passive:!1}),()=>document.removeEventListener("wheel",X,{passive:!1})},[P,N,j,H]),g.useEffect(D,[a,D]),Qr(N,F),Qr(C.content,F),y.jsx(Cb,{scope:i,scrollbar:N,hasThumb:l,onThumbChange:ut(u),onThumbPointerUp:ut(f),onThumbPositionChange:D,onThumbPointerDown:ut(p),children:y.jsx(ye.div,{...k,ref:S,style:{position:"absolute",...k.style},onPointerDown:ke(n.onPointerDown,X=>{X.button===0&&(X.target.setPointerCapture(X.pointerId),E.current=N.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C.viewport&&(C.viewport.style.scrollBehavior="auto"),$(X))}),onPointerMove:ke(n.onPointerMove,$),onPointerUp:ke(n.onPointerUp,X=>{const ie=X.target;ie.hasPointerCapture(X.pointerId)&&ie.releasePointerCapture(X.pointerId),document.body.style.webkitUserSelect=R.current,C.viewport&&(C.viewport.style.scrollBehavior=""),E.current=null})})})}),rs="ScrollAreaThumb",Lp=g.forwardRef((n,o)=>{const{forceMount:i,...a}=n,l=Mp(rs,n.__scopeScrollArea);return y.jsx(Vt,{present:i||l.hasThumb,children:y.jsx(Eb,{ref:o,...a})})}),Eb=g.forwardRef((n,o)=>{const{__scopeScrollArea:i,style:a,...l}=n,u=Mt(rs,i),f=Mp(rs,i),{onThumbPositionChange:p}=f,m=Ae(o,h=>f.onThumbChange(h)),v=g.useRef(void 0),w=ss(()=>{v.current&&(v.current(),v.current=void 0)},100);return g.useEffect(()=>{const h=u.viewport;if(h){const k=()=>{if(w(),!v.current){const C=Rb(h,p);v.current=C,p()}};return p(),h.addEventListener("scroll",k),()=>h.removeEventListener("scroll",k)}},[u.viewport,w,p]),y.jsx(ye.div,{"data-state":f.hasThumb?"visible":"hidden",...l,ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:ke(n.onPointerDownCapture,h=>{const C=h.target.getBoundingClientRect(),N=h.clientX-C.left,b=h.clientY-C.top;f.onThumbPointerDown({x:N,y:b})}),onPointerUp:ke(n.onPointerUp,f.onThumbPointerUp)})});Lp.displayName=rs;var Cl="ScrollAreaCorner",Op=g.forwardRef((n,o)=>{const i=Mt(Cl,n.__scopeScrollArea),a=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&a?y.jsx(_b,{...n,ref:o}):null});Op.displayName=Cl;var _b=g.forwardRef((n,o)=>{const{__scopeScrollArea:i,...a}=n,l=Mt(Cl,i),[u,f]=g.useState(0),[p,m]=g.useState(0),v=!!(u&&p);return Qr(l.scrollbarX,()=>{var h;const w=((h=l.scrollbarX)==null?void 0:h.offsetHeight)||0;l.onCornerHeightChange(w),m(w)}),Qr(l.scrollbarY,()=>{var h;const w=((h=l.scrollbarY)==null?void 0:h.offsetWidth)||0;l.onCornerWidthChange(w),f(w)}),v?y.jsx(ye.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 os(n){return n?parseInt(n,10):0}function Dp(n,o){const i=n/o;return isNaN(i)?0:i}function is(n){const o=Dp(n.viewport,n.content),i=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,a=(n.scrollbar.size-i)*o;return Math.max(a,18)}function Nb(n,o,i,a="ltr"){const l=is(i),u=l/2,f=o||u,p=l-f,m=i.scrollbar.paddingStart+f,v=i.scrollbar.size-i.scrollbar.paddingEnd-p,w=i.content-i.viewport,h=a==="ltr"?[0,w]:[w*-1,0];return $p([m,v],h)(n)}function Fp(n,o,i="ltr"){const a=is(o),l=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,u=o.scrollbar.size-l,f=o.content-o.viewport,p=u-a,m=i==="ltr"?[0,f]:[f*-1,0],v=yl(n,m);return $p([0,f],[0,p])(v)}function $p(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 Bp(n,o){return n>0&&n<o}var Rb=(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 ss(n,o){const i=ut(n),a=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(a.current),[]),g.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(i,o)},[i,o])}function Qr(n,o){const i=ut(o);We(()=>{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 Pb=Pp,Tb=Ap,Ab=Op,Ib=[" ","Enter","ArrowUp","ArrowDown"],jb=[" ","Enter"],xr="Select",[as,ls,Mb]=_d(xr),[qr]=bt(xr,[Mb,Ji]),cs=Ji(),[zb,Fn]=qr(xr),[Lb,Ob]=qr(xr),Hp=n=>{const{__scopeSelect:o,children:i,open:a,defaultOpen:l,onOpenChange:u,value:f,defaultValue:p,onValueChange:m,dir:v,name:w,autoComplete:h,disabled:k,required:C,form:N}=n,b=cs(o),[S,E]=g.useState(null),[R,P]=g.useState(null),[j,H]=g.useState(!1),D=To(v),[F,$]=vn({prop:a,defaultProp:l??!1,onChange:u,caller:xr}),[X,ie]=vn({prop:f,defaultProp:p,onChange:m,caller:xr}),ae=g.useRef(null),le=S?N||!!S.closest("form"):!0,[me,ve]=g.useState(new Set),Se=Array.from(me).map(G=>G.props.value).join(";");return y.jsx(Zf,{...b,children:y.jsxs(zb,{required:C,scope:o,trigger:S,onTriggerChange:E,valueNode:R,onValueNodeChange:P,valueNodeHasChildren:j,onValueNodeHasChildrenChange:H,contentId:vr(),value:X,onValueChange:ie,open:F,onOpenChange:$,dir:D,triggerPointerDownPosRef:ae,disabled:k,children:[y.jsx(as.Provider,{scope:o,children:y.jsx(Lb,{scope:n.__scopeSelect,onNativeOptionAdd:g.useCallback(G=>{ve(te=>new Set(te).add(G))},[]),onNativeOptionRemove:g.useCallback(G=>{ve(te=>{const B=new Set(te);return B.delete(G),B})},[]),children:i})}),le?y.jsxs(um,{"aria-hidden":!0,required:C,tabIndex:-1,name:w,autoComplete:h,value:X,onChange:G=>ie(G.target.value),disabled:k,form:N,children:[X===void 0?y.jsx("option",{value:""}):null,Array.from(me)]},Se):null]})})};Hp.displayName=xr;var Up="SelectTrigger",Vp=g.forwardRef((n,o)=>{const{__scopeSelect:i,disabled:a=!1,...l}=n,u=cs(i),f=Fn(Up,i),p=f.disabled||a,m=Ae(o,f.onTriggerChange),v=ls(i),w=g.useRef("touch"),[h,k,C]=fm(b=>{const S=v().filter(P=>!P.disabled),E=S.find(P=>P.value===f.value),R=pm(S,b,E);R!==void 0&&f.onValueChange(R.value)}),N=b=>{p||(f.onOpenChange(!0),C()),b&&(f.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return y.jsx(Jf,{asChild:!0,...u,children:y.jsx(ye.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":dm(f.value)?"":void 0,...l,ref:m,onClick:ke(l.onClick,b=>{b.currentTarget.focus(),w.current!=="mouse"&&N(b)}),onPointerDown:ke(l.onPointerDown,b=>{w.current=b.pointerType;const S=b.target;S.hasPointerCapture(b.pointerId)&&S.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(N(b),b.preventDefault())}),onKeyDown:ke(l.onKeyDown,b=>{const S=h.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&k(b.key),!(S&&b.key===" ")&&Ib.includes(b.key)&&(N(),b.preventDefault())})})})});Vp.displayName=Up;var Wp="SelectValue",Gp=g.forwardRef((n,o)=>{const{__scopeSelect:i,className:a,style:l,children:u,placeholder:f="",...p}=n,m=Fn(Wp,i),{onValueNodeHasChildrenChange:v}=m,w=u!==void 0,h=Ae(o,m.onValueNodeChange);return We(()=>{v(w)},[v,w]),y.jsx(ye.span,{...p,ref:h,style:{pointerEvents:"none"},children:dm(m.value)?y.jsx(y.Fragment,{children:f}):u})});Gp.displayName=Wp;var Db="SelectIcon",Yp=g.forwardRef((n,o)=>{const{__scopeSelect:i,children:a,...l}=n;return y.jsx(ye.span,{"aria-hidden":!0,...l,ref:o,children:a||"▼"})});Yp.displayName=Db;var Fb="SelectPortal",Kp=n=>y.jsx(Wa,{asChild:!0,...n});Kp.displayName=Fb;var br="SelectContent",Xp=g.forwardRef((n,o)=>{const i=Fn(br,n.__scopeSelect),[a,l]=g.useState();if(We(()=>{l(new DocumentFragment)},[]),!i.open){const u=a;return u?Eo.createPortal(y.jsx(Qp,{scope:n.__scopeSelect,children:y.jsx(as.Slot,{scope:n.__scopeSelect,children:y.jsx("div",{children:n.children})})}),u):null}return y.jsx(qp,{...n,ref:o})});Xp.displayName=br;var Yt=10,[Qp,$n]=qr(br),$b="SelectContentImpl",Bb=Po("SelectContent.RemoveScroll"),qp=g.forwardRef((n,o)=>{const{__scopeSelect:i,position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,side:p,sideOffset:m,align:v,alignOffset:w,arrowPadding:h,collisionBoundary:k,collisionPadding:C,sticky:N,hideWhenDetached:b,avoidCollisions:S,...E}=n,R=Fn(br,i),[P,j]=g.useState(null),[H,D]=g.useState(null),F=Ae(o,Z=>j(Z)),[$,X]=g.useState(null),[ie,ae]=g.useState(null),le=ls(i),[me,ve]=g.useState(!1),Se=g.useRef(!1);g.useEffect(()=>{if(P)return fx(P)},[P]),_w();const G=g.useCallback(Z=>{const[J,...ce]=le().map(Re=>Re.ref.current),[Ce]=ce.slice(-1),Ne=document.activeElement;for(const Re of Z)if(Re===Ne||(Re==null||Re.scrollIntoView({block:"nearest"}),Re===J&&H&&(H.scrollTop=0),Re===Ce&&H&&(H.scrollTop=H.scrollHeight),Re==null||Re.focus(),document.activeElement!==Ne))return},[le,H]),te=g.useCallback(()=>G([$,P]),[G,$,P]);g.useEffect(()=>{me&&te()},[me,te]);const{onOpenChange:B,triggerPointerDownPosRef:q}=R;g.useEffect(()=>{if(P){let Z={x:0,y:0};const J=Ce=>{var Ne,Re;Z={x:Math.abs(Math.round(Ce.pageX)-(((Ne=q.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(Ce.pageY)-(((Re=q.current)==null?void 0:Re.y)??0))}},ce=Ce=>{Z.x<=10&&Z.y<=10?Ce.preventDefault():P.contains(Ce.target)||B(!1),document.removeEventListener("pointermove",J),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",ce,{capture:!0})}}},[P,B,q]),g.useEffect(()=>{const Z=()=>B(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[B]);const[O,I]=fm(Z=>{const J=le().filter(Ne=>!Ne.disabled),ce=J.find(Ne=>Ne.ref.current===document.activeElement),Ce=pm(J,Z,ce);Ce&&setTimeout(()=>Ce.ref.current.focus())}),U=g.useCallback((Z,J,ce)=>{const Ce=!Se.current&&!ce;(R.value!==void 0&&R.value===J||Ce)&&(X(Z),Ce&&(Se.current=!0))},[R.value]),ee=g.useCallback(()=>P==null?void 0:P.focus(),[P]),re=g.useCallback((Z,J,ce)=>{const Ce=!Se.current&&!ce;(R.value!==void 0&&R.value===J||Ce)&&ae(Z)},[R.value]),ne=a==="popper"?El:Zp,se=ne===El?{side:p,sideOffset:m,align:v,alignOffset:w,arrowPadding:h,collisionBoundary:k,collisionPadding:C,sticky:N,hideWhenDetached:b,avoidCollisions:S}:{};return y.jsx(Qp,{scope:i,content:P,viewport:H,onViewportChange:D,itemRefCallback:U,selectedItem:$,onItemLeave:ee,itemTextRefCallback:re,focusSelectedItem:te,selectedItemText:ie,position:a,isPositioned:me,searchRef:O,children:y.jsx(ef,{as:Bb,allowPinchZoom:!0,children:y.jsx(Ld,{asChild:!0,trapped:R.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:ke(l,Z=>{var J;(J=R.trigger)==null||J.focus({preventScroll:!0}),Z.preventDefault()}),children:y.jsx(Ha,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:y.jsx(ne,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:Z=>Z.preventDefault(),...E,...se,onPlaced:()=>ve(!0),ref:F,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:ke(E.onKeyDown,Z=>{const J=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!J&&Z.key.length===1&&I(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let Ce=le().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const Ne=Z.target,Re=Ce.indexOf(Ne);Ce=Ce.slice(Re+1)}setTimeout(()=>G(Ce)),Z.preventDefault()}})})})})})})});qp.displayName=$b;var Hb="SelectItemAlignedPosition",Zp=g.forwardRef((n,o)=>{const{__scopeSelect:i,onPlaced:a,...l}=n,u=Fn(br,i),f=$n(br,i),[p,m]=g.useState(null),[v,w]=g.useState(null),h=Ae(o,F=>w(F)),k=ls(i),C=g.useRef(!1),N=g.useRef(!0),{viewport:b,selectedItem:S,selectedItemText:E,focusSelectedItem:R}=f,P=g.useCallback(()=>{if(u.trigger&&u.valueNode&&p&&v&&b&&S&&E){const F=u.trigger.getBoundingClientRect(),$=v.getBoundingClientRect(),X=u.valueNode.getBoundingClientRect(),ie=E.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=ie.left-$.left,Re=X.left-Ne,Fe=F.left-Re,Be=F.width+Fe,un=Math.max(Be,$.width),Kt=window.innerWidth-Yt,gt=yl(Re,[Yt,Math.max(Yt,Kt-un)]);p.style.minWidth=Be+"px",p.style.left=gt+"px"}else{const Ne=$.right-ie.right,Re=window.innerWidth-X.right-Ne,Fe=window.innerWidth-F.right-Re,Be=F.width+Fe,un=Math.max(Be,$.width),Kt=window.innerWidth-Yt,gt=yl(Re,[Yt,Math.max(Yt,Kt-un)]);p.style.minWidth=Be+"px",p.style.right=gt+"px"}const ae=k(),le=window.innerHeight-Yt*2,me=b.scrollHeight,ve=window.getComputedStyle(v),Se=parseInt(ve.borderTopWidth,10),G=parseInt(ve.paddingTop,10),te=parseInt(ve.borderBottomWidth,10),B=parseInt(ve.paddingBottom,10),q=Se+G+me+B+te,O=Math.min(S.offsetHeight*5,q),I=window.getComputedStyle(b),U=parseInt(I.paddingTop,10),ee=parseInt(I.paddingBottom,10),re=F.top+F.height/2-Yt,ne=le-re,se=S.offsetHeight/2,Z=S.offsetTop+se,J=Se+G+Z,ce=q-J;if(J<=re){const Ne=ae.length>0&&S===ae[ae.length-1].ref.current;p.style.bottom="0px";const Re=v.clientHeight-b.offsetTop-b.offsetHeight,Fe=Math.max(ne,se+(Ne?ee:0)+Re+te),Be=J+Fe;p.style.height=Be+"px"}else{const Ne=ae.length>0&&S===ae[0].ref.current;p.style.top="0px";const Fe=Math.max(re,Se+b.offsetTop+(Ne?U:0)+se)+ce;p.style.height=Fe+"px",b.scrollTop=J-re+b.offsetTop}p.style.margin=`${Yt}px 0`,p.style.minHeight=O+"px",p.style.maxHeight=le+"px",a==null||a(),requestAnimationFrame(()=>C.current=!0)}},[k,u.trigger,u.valueNode,p,v,b,S,E,u.dir,a]);We(()=>P(),[P]);const[j,H]=g.useState();We(()=>{v&&H(window.getComputedStyle(v).zIndex)},[v]);const D=g.useCallback(F=>{F&&N.current===!0&&(P(),R==null||R(),N.current=!1)},[P,R]);return y.jsx(Vb,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:C,onScrollButtonChange:D,children:y.jsx("div",{ref:m,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:y.jsx(ye.div,{...l,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});Zp.displayName=Hb;var Ub="SelectPopperPosition",El=g.forwardRef((n,o)=>{const{__scopeSelect:i,align:a="start",collisionPadding:l=Yt,...u}=n,f=cs(i);return y.jsx(ep,{...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)"}})});El.displayName=Ub;var[Vb,_l]=qr(br,{}),Nl="SelectViewport",Jp=g.forwardRef((n,o)=>{const{__scopeSelect:i,nonce:a,...l}=n,u=$n(Nl,i),f=_l(Nl,i),p=Ae(o,u.onViewportChange),m=g.useRef(0);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(as.Slot,{scope:i,children:y.jsx(ye.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:ke(l.onScroll,v=>{const w=v.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:k}=f;if(k!=null&&k.current&&h){const C=Math.abs(m.current-w.scrollTop);if(C>0){const N=window.innerHeight-Yt*2,b=parseFloat(h.style.minHeight),S=parseFloat(h.style.height),E=Math.max(b,S);if(E<N){const R=E+C,P=Math.min(N,R),j=R-P;h.style.height=P+"px",h.style.bottom==="0px"&&(w.scrollTop=j>0?j:0,h.style.justifyContent="flex-end")}}}m.current=w.scrollTop})})})]})});Jp.displayName=Nl;var em="SelectGroup",[Wb,Gb]=qr(em),Yb=g.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=vr();return y.jsx(Wb,{scope:i,id:l,children:y.jsx(ye.div,{role:"group","aria-labelledby":l,...a,ref:o})})});Yb.displayName=em;var tm="SelectLabel",Kb=g.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=Gb(tm,i);return y.jsx(ye.div,{id:l.id,...a,ref:o})});Kb.displayName=tm;var us="SelectItem",[Xb,nm]=qr(us),rm=g.forwardRef((n,o)=>{const{__scopeSelect:i,value:a,disabled:l=!1,textValue:u,...f}=n,p=Fn(us,i),m=$n(us,i),v=p.value===a,[w,h]=g.useState(u??""),[k,C]=g.useState(!1),N=Ae(o,R=>{var P;return(P=m.itemRefCallback)==null?void 0:P.call(m,R,a,l)}),b=vr(),S=g.useRef("touch"),E=()=>{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 y.jsx(Xb,{scope:i,value:a,disabled:l,textId:b,isSelected:v,onItemTextChange:g.useCallback(R=>{h(P=>P||((R==null?void 0:R.textContent)??"").trim())},[]),children:y.jsx(as.ItemSlot,{scope:i,value:a,disabled:l,textValue:w,children:y.jsx(ye.div,{role:"option","aria-labelledby":b,"data-highlighted":k?"":void 0,"aria-selected":v&&k,"data-state":v?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...f,ref:N,onFocus:ke(f.onFocus,()=>C(!0)),onBlur:ke(f.onBlur,()=>C(!1)),onClick:ke(f.onClick,()=>{S.current!=="mouse"&&E()}),onPointerUp:ke(f.onPointerUp,()=>{S.current==="mouse"&&E()}),onPointerDown:ke(f.onPointerDown,R=>{S.current=R.pointerType}),onPointerMove:ke(f.onPointerMove,R=>{var P;S.current=R.pointerType,l?(P=m.onItemLeave)==null||P.call(m):S.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ke(f.onPointerLeave,R=>{var P;R.currentTarget===document.activeElement&&((P=m.onItemLeave)==null||P.call(m))}),onKeyDown:ke(f.onKeyDown,R=>{var j;((j=m.searchRef)==null?void 0:j.current)!==""&&R.key===" "||(jb.includes(R.key)&&E(),R.key===" "&&R.preventDefault())})})})})});rm.displayName=us;var Mo="SelectItemText",om=g.forwardRef((n,o)=>{const{__scopeSelect:i,className:a,style:l,...u}=n,f=Fn(Mo,i),p=$n(Mo,i),m=nm(Mo,i),v=Ob(Mo,i),[w,h]=g.useState(null),k=Ae(o,E=>h(E),m.onItemTextChange,E=>{var R;return(R=p.itemTextRefCallback)==null?void 0:R.call(p,E,m.value,m.disabled)}),C=w==null?void 0:w.textContent,N=g.useMemo(()=>y.jsx("option",{value:m.value,disabled:m.disabled,children:C},m.value),[m.disabled,m.value,C]),{onNativeOptionAdd:b,onNativeOptionRemove:S}=v;return We(()=>(b(N),()=>S(N)),[b,S,N]),y.jsxs(y.Fragment,{children:[y.jsx(ye.span,{id:m.textId,...u,ref:k}),m.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Eo.createPortal(u.children,f.valueNode):null]})});om.displayName=Mo;var im="SelectItemIndicator",sm=g.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n;return nm(im,i).isSelected?y.jsx(ye.span,{"aria-hidden":!0,...a,ref:o}):null});sm.displayName=im;var Rl="SelectScrollUpButton",am=g.forwardRef((n,o)=>{const i=$n(Rl,n.__scopeSelect),a=_l(Rl,n.__scopeSelect),[l,u]=g.useState(!1),f=Ae(o,a.onScrollButtonChange);return We(()=>{if(i.viewport&&i.isPositioned){let p=function(){const v=m.scrollTop>0;u(v)};const m=i.viewport;return p(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?y.jsx(cm,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:m}=i;p&&m&&(p.scrollTop=p.scrollTop-m.offsetHeight)}}):null});am.displayName=Rl;var Pl="SelectScrollDownButton",lm=g.forwardRef((n,o)=>{const i=$n(Pl,n.__scopeSelect),a=_l(Pl,n.__scopeSelect),[l,u]=g.useState(!1),f=Ae(o,a.onScrollButtonChange);return We(()=>{if(i.viewport&&i.isPositioned){let p=function(){const v=m.scrollHeight-m.clientHeight,w=Math.ceil(m.scrollTop)<v;u(w)};const m=i.viewport;return p(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?y.jsx(cm,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:m}=i;p&&m&&(p.scrollTop=p.scrollTop+m.offsetHeight)}}):null});lm.displayName=Pl;var cm=g.forwardRef((n,o)=>{const{__scopeSelect:i,onAutoScroll:a,...l}=n,u=$n("SelectScrollButton",i),f=g.useRef(null),p=ls(i),m=g.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return g.useEffect(()=>()=>m(),[m]),We(()=>{var w;const v=p().find(h=>h.ref.current===document.activeElement);(w=v==null?void 0:v.ref.current)==null||w.scrollIntoView({block:"nearest"})},[p]),y.jsx(ye.div,{"aria-hidden":!0,...l,ref:o,style:{flexShrink:0,...l.style},onPointerDown:ke(l.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(a,50))}),onPointerMove:ke(l.onPointerMove,()=>{var v;(v=u.onItemLeave)==null||v.call(u),f.current===null&&(f.current=window.setInterval(a,50))}),onPointerLeave:ke(l.onPointerLeave,()=>{m()})})}),Qb="SelectSeparator",qb=g.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n;return y.jsx(ye.div,{"aria-hidden":!0,...a,ref:o})});qb.displayName=Qb;var Tl="SelectArrow",Zb=g.forwardRef((n,o)=>{const{__scopeSelect:i,...a}=n,l=cs(i),u=Fn(Tl,i),f=$n(Tl,i);return u.open&&f.position==="popper"?y.jsx(tp,{...l,...a,ref:o}):null});Zb.displayName=Tl;var Jb="SelectBubbleInput",um=g.forwardRef(({__scopeSelect:n,value:o,...i},a)=>{const l=g.useRef(null),u=Ae(a,l),f=$i(o);return g.useEffect(()=>{const p=l.current;if(!p)return;const m=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(m,"value").set;if(f!==o&&w){const h=new Event("change",{bubbles:!0});w.call(p,o),p.dispatchEvent(h)}},[f,o]),y.jsx(ye.select,{...i,style:{...Cd,...i.style},ref:u,defaultValue:o})});um.displayName=Jb;function dm(n){return n===""||n===void 0}function fm(n){const o=ut(n),i=g.useRef(""),a=g.useRef(0),l=g.useCallback(f=>{const p=i.current+f;o(p),(function m(v){i.current=v,window.clearTimeout(a.current),v!==""&&(a.current=window.setTimeout(()=>m(""),1e3))})(p)},[o]),u=g.useCallback(()=>{i.current="",window.clearTimeout(a.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(a.current),[]),[i,l,u]}function pm(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=ek(n,Math.max(u,0));l.length===1&&(f=f.filter(v=>v!==i));const m=f.find(v=>v.textValue.toLowerCase().startsWith(l.toLowerCase()));return m!==i?m:void 0}function ek(n,o){return n.map((i,a)=>n[(o+a)%n.length])}var tk=Hp,nk=Vp,rk=Gp,ok=Yp,ik=Kp,sk=Xp,ak=Jp,lk=rm,ck=om,uk=sm,dk=am,fk=lm,pk="Separator",mm="horizontal",mk=["horizontal","vertical"],hm=g.forwardRef((n,o)=>{const{decorative:i,orientation:a=mm,...l}=n,u=hk(a)?a:mm,p=i?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return y.jsx(ye.div,{"data-orientation":u,...p,...l,ref:o})});hm.displayName=pk;function hk(n){return mk.includes(n)}var gk=hm,ds="Switch",[vk]=bt(ds),[yk,wk]=vk(ds),gm=g.forwardRef((n,o)=>{const{__scopeSwitch:i,name:a,checked:l,defaultChecked:u,required:f,disabled:p,value:m="on",onCheckedChange:v,form:w,...h}=n,[k,C]=g.useState(null),N=Ae(o,P=>C(P)),b=g.useRef(!1),S=k?w||!!k.closest("form"):!0,[E,R]=vn({prop:l,defaultProp:u??!1,onChange:v,caller:ds});return y.jsxs(yk,{scope:i,checked:E,disabled:p,children:[y.jsx(ye.button,{type:"button",role:"switch","aria-checked":E,"aria-required":f,"data-state":xm(E),"data-disabled":p?"":void 0,disabled:p,value:m,...h,ref:N,onClick:ke(n.onClick,P=>{R(j=>!j),S&&(b.current=P.isPropagationStopped(),b.current||P.stopPropagation())})}),S&&y.jsx(wm,{control:k,bubbles:!b.current,name:a,value:m,checked:E,required:f,disabled:p,form:w,style:{transform:"translateX(-100%)"}})]})});gm.displayName=ds;var vm="SwitchThumb",ym=g.forwardRef((n,o)=>{const{__scopeSwitch:i,...a}=n,l=wk(vm,i);return y.jsx(ye.span,{"data-state":xm(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:o})});ym.displayName=vm;var xk="SwitchBubbleInput",wm=g.forwardRef(({__scopeSwitch:n,control:o,checked:i,bubbles:a=!0,...l},u)=>{const f=g.useRef(null),p=Ae(f,u),m=$i(i),v=Bi(o);return g.useEffect(()=>{const w=f.current;if(!w)return;const h=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(h,"checked").set;if(m!==i&&C){const N=new Event("click",{bubbles:a});C.call(w,i),w.dispatchEvent(N)}},[m,i,a]),y.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}})});wm.displayName=xk;function xm(n){return n?"checked":"unchecked"}var bk=gm,kk=ym,fs="Tabs",[Sk]=bt(fs,[es]),bm=es(),[Ck,Al]=Sk(fs),km=g.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,onValueChange:l,defaultValue:u,orientation:f="horizontal",dir:p,activationMode:m="automatic",...v}=n,w=To(p),[h,k]=vn({prop:a,onChange:l,defaultProp:u??"",caller:fs});return y.jsx(Ck,{scope:i,baseId:vr(),value:h,onValueChange:k,orientation:f,dir:w,activationMode:m,children:y.jsx(ye.div,{dir:w,"data-orientation":f,...v,ref:o})})});km.displayName=fs;var Sm="TabsList",Cm=g.forwardRef((n,o)=>{const{__scopeTabs:i,loop:a=!0,...l}=n,u=Al(Sm,i),f=bm(i);return y.jsx(ap,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:a,children:y.jsx(ye.div,{role:"tablist","aria-orientation":u.orientation,...l,ref:o})})});Cm.displayName=Sm;var Em="TabsTrigger",_m=g.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,disabled:l=!1,...u}=n,f=Al(Em,i),p=bm(i),m=Pm(f.baseId,a),v=Tm(f.baseId,a),w=a===f.value;return y.jsx(lp,{asChild:!0,...p,focusable:!l,active:w,children:y.jsx(ye.button,{type:"button",role:"tab","aria-selected":w,"aria-controls":v,"data-state":w?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:m,...u,ref:o,onMouseDown:ke(n.onMouseDown,h=>{!l&&h.button===0&&h.ctrlKey===!1?f.onValueChange(a):h.preventDefault()}),onKeyDown:ke(n.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&f.onValueChange(a)}),onFocus:ke(n.onFocus,()=>{const h=f.activationMode!=="manual";!w&&!l&&h&&f.onValueChange(a)})})})});_m.displayName=Em;var Nm="TabsContent",Rm=g.forwardRef((n,o)=>{const{__scopeTabs:i,value:a,forceMount:l,children:u,...f}=n,p=Al(Nm,i),m=Pm(p.baseId,a),v=Tm(p.baseId,a),w=a===p.value,h=g.useRef(w);return g.useEffect(()=>{const k=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(k)},[]),y.jsx(Vt,{present:l||w,children:({present:k})=>y.jsx(ye.div,{"data-state":w?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":m,hidden:!k,id:v,tabIndex:0,...f,ref:o,style:{...n.style,animationDuration:h.current?"0s":void 0},children:k&&u})})});Rm.displayName=Nm;function Pm(n,o){return`${n}-trigger-${o}`}function Tm(n,o){return`${n}-content-${o}`}var Ek=km,_k=Cm,Nk=_m,Rk=Rm,[ps]=bt("Tooltip",[Ji]),ms=Ji(),Am="TooltipProvider",Pk=700,Il="tooltip.open",[Tk,jl]=ps(Am),Im=n=>{const{__scopeTooltip:o,delayDuration:i=Pk,skipDelayDuration:a=300,disableHoverableContent:l=!1,children:u}=n,f=g.useRef(!0),p=g.useRef(!1),m=g.useRef(0);return g.useEffect(()=>{const v=m.current;return()=>window.clearTimeout(v)},[]),y.jsx(Tk,{scope:o,isOpenDelayedRef:f,delayDuration:i,onOpen:g.useCallback(()=>{window.clearTimeout(m.current),f.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>f.current=!0,a)},[a]),isPointerInTransitRef:p,onPointerInTransitChange:g.useCallback(v=>{p.current=v},[]),disableHoverableContent:l,children:u})};Im.displayName=Am;var zo="Tooltip",[Ak,Lo]=ps(zo),jm=n=>{const{__scopeTooltip:o,children:i,open:a,defaultOpen:l,onOpenChange:u,disableHoverableContent:f,delayDuration:p}=n,m=jl(zo,n.__scopeTooltip),v=ms(o),[w,h]=g.useState(null),k=vr(),C=g.useRef(0),N=f??m.disableHoverableContent,b=p??m.delayDuration,S=g.useRef(!1),[E,R]=vn({prop:a,defaultProp:l??!1,onChange:F=>{F?(m.onOpen(),document.dispatchEvent(new CustomEvent(Il))):m.onClose(),u==null||u(F)},caller:zo}),P=g.useMemo(()=>E?S.current?"delayed-open":"instant-open":"closed",[E]),j=g.useCallback(()=>{window.clearTimeout(C.current),C.current=0,S.current=!1,R(!0)},[R]),H=g.useCallback(()=>{window.clearTimeout(C.current),C.current=0,R(!1)},[R]),D=g.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>{S.current=!0,R(!0),C.current=0},b)},[b,R]);return g.useEffect(()=>()=>{C.current&&(window.clearTimeout(C.current),C.current=0)},[]),y.jsx(Zf,{...v,children:y.jsx(Ak,{scope:o,contentId:k,open:E,stateAttribute:P,trigger:w,onTriggerChange:h,onTriggerEnter:g.useCallback(()=>{m.isOpenDelayedRef.current?D():j()},[m.isOpenDelayedRef,D,j]),onTriggerLeave:g.useCallback(()=>{N?H():(window.clearTimeout(C.current),C.current=0)},[H,N]),onOpen:j,onClose:H,disableHoverableContent:N,children:i})})};jm.displayName=zo;var Ml="TooltipTrigger",Mm=g.forwardRef((n,o)=>{const{__scopeTooltip:i,...a}=n,l=Lo(Ml,i),u=jl(Ml,i),f=ms(i),p=g.useRef(null),m=Ae(o,p,l.onTriggerChange),v=g.useRef(!1),w=g.useRef(!1),h=g.useCallback(()=>v.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),y.jsx(Jf,{asChild:!0,...f,children:y.jsx(ye.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...a,ref:m,onPointerMove:ke(n.onPointerMove,k=>{k.pointerType!=="touch"&&!w.current&&!u.isPointerInTransitRef.current&&(l.onTriggerEnter(),w.current=!0)}),onPointerLeave:ke(n.onPointerLeave,()=>{l.onTriggerLeave(),w.current=!1}),onPointerDown:ke(n.onPointerDown,()=>{l.open&&l.onClose(),v.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ke(n.onFocus,()=>{v.current||l.onOpen()}),onBlur:ke(n.onBlur,l.onClose),onClick:ke(n.onClick,l.onClose)})})});Mm.displayName=Ml;var zl="TooltipPortal",[Ik,jk]=ps(zl,{forceMount:void 0}),zm=n=>{const{__scopeTooltip:o,forceMount:i,children:a,container:l}=n,u=Lo(zl,o);return y.jsx(Ik,{scope:o,forceMount:i,children:y.jsx(Vt,{present:i||u.open,children:y.jsx(Wa,{asChild:!0,container:l,children:a})})})};zm.displayName=zl;var Zr="TooltipContent",Lm=g.forwardRef((n,o)=>{const i=jk(Zr,n.__scopeTooltip),{forceMount:a=i.forceMount,side:l="top",...u}=n,f=Lo(Zr,n.__scopeTooltip);return y.jsx(Vt,{present:a||f.open,children:f.disableHoverableContent?y.jsx(Om,{side:l,...u,ref:o}):y.jsx(Mk,{side:l,...u,ref:o})})}),Mk=g.forwardRef((n,o)=>{const i=Lo(Zr,n.__scopeTooltip),a=jl(Zr,n.__scopeTooltip),l=g.useRef(null),u=Ae(o,l),[f,p]=g.useState(null),{trigger:m,onClose:v}=i,w=l.current,{onPointerInTransitChange:h}=a,k=g.useCallback(()=>{p(null),h(!1)},[h]),C=g.useCallback((N,b)=>{const S=N.currentTarget,E={x:N.clientX,y:N.clientY},R=Dk(E,S.getBoundingClientRect()),P=Fk(E,R),j=$k(b.getBoundingClientRect()),H=Hk([...P,...j]);p(H),h(!0)},[h]);return g.useEffect(()=>()=>k(),[k]),g.useEffect(()=>{if(m&&w){const N=S=>C(S,w),b=S=>C(S,m);return m.addEventListener("pointerleave",N),w.addEventListener("pointerleave",b),()=>{m.removeEventListener("pointerleave",N),w.removeEventListener("pointerleave",b)}}},[m,w,C,k]),g.useEffect(()=>{if(f){const N=b=>{const S=b.target,E={x:b.clientX,y:b.clientY},R=(m==null?void 0:m.contains(S))||(w==null?void 0:w.contains(S)),P=!Bk(E,f);R?k():P&&(k(),v())};return document.addEventListener("pointermove",N),()=>document.removeEventListener("pointermove",N)}},[m,w,f,v,k]),y.jsx(Om,{...n,ref:u})}),[zk,Lk]=ps(zo,{isInside:!1}),Ok=Hy("TooltipContent"),Om=g.forwardRef((n,o)=>{const{__scopeTooltip:i,children:a,"aria-label":l,onEscapeKeyDown:u,onPointerDownOutside:f,...p}=n,m=Lo(Zr,i),v=ms(i),{onClose:w}=m;return g.useEffect(()=>(document.addEventListener(Il,w),()=>document.removeEventListener(Il,w)),[w]),g.useEffect(()=>{if(m.trigger){const h=k=>{const C=k.target;C!=null&&C.contains(m.trigger)&&w()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[m.trigger,w]),y.jsx(Ha,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:h=>h.preventDefault(),onDismiss:w,children:y.jsxs(ep,{"data-state":m.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:[y.jsx(Ok,{children:a}),y.jsx(zk,{scope:i,isInside:!0,children:y.jsx(Xy,{id:m.contentId,role:"tooltip",children:l||a})})]})})});Lm.displayName=Zr;var Dm="TooltipArrow",Fm=g.forwardRef((n,o)=>{const{__scopeTooltip:i,...a}=n,l=ms(i);return Lk(Dm,i).isInside?null:y.jsx(tp,{...l,...a,ref:o})});Fm.displayName=Dm;function Dk(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 Fk(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 $k(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 Bk(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],m=o[f],v=p.x,w=p.y,h=m.x,k=m.y;w>a!=k>a&&i<(h-v)*(a-w)/(k-w)+v&&(l=!l)}return l}function Hk(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),Uk(o)}function Uk(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 Vk=Im,Wk=jm,Gk=Mm,Yk=zm,Kk=Lm,Xk=Fm;const Qk=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 $m({className:n,variant:o="default",size:i="default",asChild:a=!1,...l}){const u=a?kd:"button";return y.jsx(u,{"data-slot":"button","data-variant":o,"data-size":i,className:be(Qk({variant:o,size:i,className:n})),...l})}const qk={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"},Zk=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 Jk({className:n,variant:o="default",hue:i,asChild:a=!1,...l}){const u=a?kd:"span",f=i?qk[i]:void 0;return y.jsx(u,{"data-slot":"badge","data-variant":o,className:be(Zk({variant:o}),f,n),...l})}function eS({className:n,type:o,...i}){return y.jsx("input",{type:o,"data-slot":"input",className:be("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 tS({className:n,...o}){return y.jsx("textarea",{"data-slot":"textarea",className:be("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 nS({...n}){return y.jsx(tk,{"data-slot":"select",...n})}function rS({...n}){return y.jsx(rk,{"data-slot":"select-value",...n})}function oS({className:n,size:o="default",children:i,...a}){return y.jsxs(nk,{"data-slot":"select-trigger","data-size":o,className:be("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,y.jsx(ok,{asChild:!0,children:y.jsx(Wu,{className:"size-4 opacity-50"})})]})}function iS({className:n,children:o,position:i="item-aligned",align:a="center",...l}){return y.jsx(ik,{children:y.jsxs(sk,{"data-slot":"select-content",className:be("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:[y.jsx(aS,{}),y.jsx(ak,{className:be("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o}),y.jsx(lS,{})]})})}function sS({className:n,children:o,...i}){return y.jsxs(lk,{"data-slot":"select-item",className:be("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:[y.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:y.jsx(uk,{children:y.jsx(Vu,{className:"size-4"})})}),y.jsx(ck,{children:o})]})}function aS({className:n,...o}){return y.jsx(dk,{"data-slot":"select-scroll-up-button",className:be("flex cursor-default items-center justify-center py-1",n),...o,children:y.jsx(z0,{className:"size-4"})})}function lS({className:n,...o}){return y.jsx(fk,{"data-slot":"select-scroll-down-button",className:be("flex cursor-default items-center justify-center py-1",n),...o,children:y.jsx(Wu,{className:"size-4"})})}function cS({className:n,...o}){return y.jsx(mf,{"data-slot":"checkbox",className:be("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:y.jsx(gf,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:y.jsx(Vu,{className:"size-3.5"})})})}function uS({className:n,size:o="default",...i}){return y.jsx(bk,{"data-slot":"switch","data-size":o,className:be("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:y.jsx(kk,{"data-slot":"switch-thumb",className:be("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 dS({className:n,...o}){return y.jsx(q1,{"data-slot":"label",className:be("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 fS({className:n,...o}){return y.jsx(hb,{"data-slot":"radio-group",className:be("grid gap-3",n),...o})}function pS({className:n,...o}){return y.jsx(gb,{"data-slot":"radio-group-item",className:be("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:y.jsx(vb,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:y.jsx(D0,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"})})})}function mS({className:n,orientation:o="horizontal",decorative:i=!0,...a}){return y.jsx(gk,{"data-slot":"separator",decorative:i,orientation:o,className:be("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 hS({className:n,orientation:o="horizontal",...i}){return y.jsx(Ek,{"data-slot":"tabs","data-orientation":o,orientation:o,className:be("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",n),...i})}const gS=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 vS({className:n,variant:o="default",...i}){return y.jsx(_k,{"data-slot":"tabs-list","data-variant":o,className:be(gS({variant:o}),n),...i})}function yS({className:n,...o}){return y.jsx(Nk,{"data-slot":"tabs-trigger",className:be("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 wS({className:n,...o}){return y.jsx(Rk,{"data-slot":"tabs-content",className:be("flex-1 outline-none",n),...o})}function xS({className:n,children:o,...i}){return y.jsxs(Pb,{"data-slot":"scroll-area",className:be("relative",n),...i,children:[y.jsx(Tb,{"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}),y.jsx(bS,{}),y.jsx(Ab,{})]})}function bS({className:n,orientation:o="vertical",...i}){return y.jsx(Ip,{"data-slot":"scroll-area-scrollbar",orientation:o,className:be("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:y.jsx(Lp,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function Ll({className:n,size:o="default",...i}){return y.jsx(bx,{"data-slot":"avatar","data-size":o,className:be("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 Ol({className:n,...o}){return y.jsx(kx,{"data-slot":"avatar-image",className:be("aspect-square size-full",n),...o})}function Dl({className:n,...o}){return y.jsx(Sx,{"data-slot":"avatar-fallback",className:be("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 kS({className:n,...o}){return y.jsx("div",{"data-slot":"skeleton",className:be("animate-pulse rounded-md bg-accent",n),...o})}function SS({delayDuration:n=0,...o}){return y.jsx(Vk,{"data-slot":"tooltip-provider",delayDuration:n,...o})}function CS({...n}){return y.jsx(Wk,{"data-slot":"tooltip",...n})}function ES({...n}){return y.jsx(Gk,{"data-slot":"tooltip-trigger",...n})}function _S({className:n,sideOffset:o=0,children:i,...a}){return y.jsx(Yk,{children:y.jsxs(Kk,{"data-slot":"tooltip-content",sideOffset:o,className:be("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,y.jsx(Xk,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function NS({className:n,value:o,...i}){return y.jsx(ob,{"data-slot":"progress",className:be("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",n),...i,children:y.jsx(ib,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(o||0)}%)`}})})}const RS=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 PS({className:n,variant:o,...i}){return y.jsx("div",{"data-slot":"alert",role:"alert",className:be(RS({variant:o}),n),...i})}function TS({className:n,...o}){return y.jsx("div",{"data-slot":"alert-title",className:be("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",n),...o})}function AS({className:n,...o}){return y.jsx("div",{"data-slot":"alert-description",className:be("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",n),...o})}function IS({...n}){return y.jsx(lw,{"data-slot":"collapsible",...n})}function jS({...n}){return y.jsx(Pd,{"data-slot":"collapsible-trigger",...n})}function MS({...n}){return y.jsx(Td,{"data-slot":"collapsible-content",...n})}const Bm={"arrow-left":A0,calendar:j0,"check-circle-2":Yu,"chevron-left":M0,"chevron-right":Aa,clock:F0,"credit-card":$0,"external-link":B0,"help-circle":L0,info:_i,"loader-2":Ia,mail:ja,"map-pin":H0,"message-circle":U0,"message-square":Ku,package:W0,phone:G0,search:Y0,"shopping-bag":K0,sparkles:X0,truck:q0,user:Xu,"x-circle":O0,"alert-circle":Gu,"book-open":I0},Hm={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"},Um=n=>typeof n=="number"?Hm[String(n)]??"gap-2":typeof n=="string"?Hm[n.trim()]??"gap-2":"gap-2",zS=({children:n,className:o,onClick:i})=>y.jsx(No,{className:o,onClick:i,children:n}),LS=({children:n,className:o})=>y.jsx(Ro,{className:o,children:n}),OS=({children:n,className:o})=>y.jsx($y,{className:o,children:n}),DS=({children:n,className:o,onClick:i,variant:a,size:l,disabled:u,title:f})=>y.jsx($m,{className:o,variant:a,size:l,onClick:i,disabled:u,title:f,children:n}),FS=({children:n,className:o,variant:i,hue:a})=>y.jsx(Jk,{className:o,variant:i,hue:a,children:n}),$S=({className:n,onChange:o,...i})=>y.jsx(eS,{className:n,onChange:o,...i}),BS=({className:n,onChange:o,...i})=>y.jsx(tS,{className:n,onChange:o,...i}),HS=({children:n,className:o,value:i,defaultValue:a,onChange:l,placeholder:u,disabled:f})=>y.jsxs(nS,{value:i,defaultValue:a,onValueChange:p=>{const m=l;m==null||m({target:{value:p}})},disabled:f,children:[y.jsx(oS,{className:o,children:y.jsx(rS,{placeholder:u})}),y.jsx(iS,{style:{zIndex:"calc(var(--widget-z, 1000) + 1)"},children:n})]}),US=({children:n,value:o,disabled:i,className:a})=>y.jsx(sS,{value:o,disabled:i,className:a,children:n}),VS=({checked:n,onChange:o,disabled:i,className:a,id:l})=>{const u=n!==void 0,f=o;return y.jsx(cS,{...u?{checked:n==="true"||n===!0}:{},onCheckedChange:p=>f==null?void 0:f({target:{value:String(p)}}),disabled:i,className:a,id:l})},WS=({checked:n,onChange:o,disabled:i,size:a,className:l,id:u})=>{const f=n!==void 0,p=o;return y.jsx(uS,{...f?{checked:n==="true"||n===!0}:{},onCheckedChange:m=>p==null?void 0:p({target:{value:String(m)}}),disabled:i,size:a,className:l,id:u})},GS=({children:n,htmlFor:o,className:i})=>y.jsx(dS,{htmlFor:o,className:i,children:n}),YS=({children:n,value:o,defaultValue:i,onChange:a,className:l})=>y.jsx(fS,{value:o,defaultValue:i,onValueChange:u=>{const f=a;f==null||f({target:{value:u}})},className:l,children:n}),KS=({value:n,disabled:o,className:i,id:a})=>y.jsx(pS,{value:n,disabled:o,className:i,id:a}),XS=({className:n})=>y.jsx(mS,{className:n}),QS=({children:n,defaultValue:o,className:i})=>y.jsx(hS,{defaultValue:o,className:i,children:n}),qS=({children:n,className:o})=>y.jsx(vS,{className:o,children:n}),ZS=({children:n,value:o,className:i})=>y.jsx(yS,{className:i,value:o,children:n}),JS=({children:n,value:o,className:i})=>y.jsx(wS,{className:i,value:o,children:n}),eC=({children:n,className:o})=>y.jsx(xS,{className:o,children:n}),tC=({src:n,alt:o,className:i})=>{var a;return y.jsxs(Ll,{className:i,children:[y.jsx(Ol,{src:n,alt:o}),y.jsx(Dl,{children:((a=o==null?void 0:o.charAt(0))==null?void 0:a.toUpperCase())||"?"})]})},nC=({width:n,height:o,className:i})=>y.jsx(kS,{className:i,style:{width:n,height:o}}),rC=({children:n,content:o,className:i})=>y.jsx(SS,{children:y.jsxs(CS,{children:[y.jsx(ES,{asChild:!0,children:y.jsx("span",{className:i,children:n})}),y.jsx(_S,{children:y.jsx("p",{children:String(o)})})]})}),oC=({value:n,className:o})=>y.jsx(NS,{value:typeof n=="string"?Number(n):n,className:o}),iC={default:_i,destructive:Gu},sC=({children:n,variant:o,title:i,className:a})=>{const l=o,u=iC[l||"default"]||_i;return y.jsxs(PS,{variant:l,className:a,children:[y.jsx(u,{className:"size-4"}),i?y.jsx(TS,{children:String(i)}):null,n?y.jsx(AS,{children:n}):null]})},aC=({children:n,defaultOpen:o,className:i})=>y.jsx(IS,{defaultOpen:o==="true"||o===!0,className:i,children:n}),lC=({children:n,className:o})=>y.jsxs(jS,{className:be("flex items-center gap-1 cursor-pointer text-sm font-medium [&[data-state=open]>svg]:rotate-90",o),children:[y.jsx(Aa,{className:"size-4 shrink-0 transition-transform duration-200"}),n]}),cC=({children:n,className:o})=>y.jsx(MS,{className:o,children:n}),uC=({children:n,className:o})=>y.jsx("p",{className:be("text-sm",o),children:n}),dC=({children:n,className:o,level:i})=>{const a=`h${i||"2"}`;return y.jsx(a,{className:be("font-semibold tracking-tight",o),children:n})},fC=({children:n,className:o,direction:i,gap:a})=>{const l=i==="row"?"flex-row":"flex-col",u=Um(a);return y.jsx("div",{className:be("flex",l,u,o),children:n})},pC=({children:n,className:o,gap:i})=>{const a=Um(i);return y.jsx("div",{className:be("flex flex-row items-center",a,o),children:n})},mC=({children:n,className:o,href:i,target:a,rel:l})=>y.jsx("a",{href:i,target:a,rel:l,className:o,children:n}),hC=({title:n,children:o,className:i})=>y.jsxs(No,{className:be("overflow-hidden p-0 gap-0 shadow-sm",i),children:[n?y.jsx(Ro,{className:"px-6 py-3",children:y.jsx("h3",{className:"text-xs font-semibold tracking-wider text-muted-foreground",children:String(n)})}):null,y.jsx("div",{className:"flex flex-col gap-0 divide-y divide-border",children:o})]}),gC=({icon:n,label:o,description:i,onClick:a,className:l})=>{const u=n,f="size-5",p=u?Bm[u]:null;return y.jsxs("button",{type:"button",className:be("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&&y.jsx(p,{className:`${f} shrink-0 text-muted-foreground`}),y.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0 items-start",children:[o?y.jsx("p",{className:"font-medium text-sm text-foreground",children:String(o)}):null,i?y.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:String(i)}):null]}),y.jsx(Aa,{className:"mr-1 size-4 shrink-0 text-muted-foreground"})]})},vC=({name:n,size:o,className:i})=>{const l={sm:"size-3",md:"size-5",lg:"size-6"}[o]??"size-4",u=n,f=Bm[u],p=u==="sparkles"?"sparkle-icon":"";return f?y.jsx(f,{className:be(l,p,i)}):y.jsx("span",{className:be("inline-block",l,p,i),"data-icon":u})},yC=()=>({"ui-card":zS,"ui-card-content":LS,"ui-card-header":OS,"ui-button":DS,"ui-text":uC,"ui-heading":dC,"ui-badge":FS,"ui-input":$S,"ui-textarea":BS,"ui-select":HS,"ui-select-option":US,"ui-checkbox":VS,"ui-switch":WS,"ui-label":GS,"ui-radio-group":YS,"ui-radio-group-item":KS,"ui-stack":fC,"ui-inline":pC,"ui-separator":XS,"ui-tabs":QS,"ui-tabs-list":qS,"ui-tabs-trigger":ZS,"ui-tabs-content":JS,"ui-scroll-area":eC,"ui-avatar":tC,"ui-icon":vC,"ui-link":mC,"ui-menu-item":gC,"ui-menu":hC,"ui-skeleton":nC,"ui-tooltip":rC,"ui-progress":oC,"ui-alert":sC,"ui-collapsible":aC,"ui-collapsible-trigger":lC,"ui-collapsible-content":cC}),Vm="/api/ecommerce",Wm=async(n,o)=>{const i=o?`${o.replace(/\/$/,"")}${Vm}`:Vm,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},wC=({className:n})=>y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 190 190",version:"1.1",className:n,children:[y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.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)"})}),y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.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)"})}),y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.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)"})}),y.jsx("g",{transform:"matrix(1,0,0,1,-160.365,27.97)",children:y.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)"})})]}),Gm="stackable-dev-badge-styles",xC=()=>{if(typeof document>"u"||document.getElementById(Gm))return;const n=document.createElement("style");n.id=Gm,n.textContent=`
|
|
295
305
|
@keyframes stackable-icon-wiggle {
|
|
296
306
|
0% { transform: rotate(0deg); }
|
|
297
307
|
70% { transform: rotate(200deg); }
|
|
298
308
|
85% { transform: rotate(175deg); }
|
|
299
309
|
100% { transform: rotate(180deg); }
|
|
300
310
|
}
|
|
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)})();
|
|
311
|
+
`,document.head.appendChild(n)},bC=({className:n="",extensions:o=[]})=>{const[i,a]=g.useState([]),[l,u]=g.useState(!1),[f,p]=g.useState(!1),m=g.useRef(null);if(g.useEffect(()=>{xC()},[]),g.useEffect(()=>{if(typeof window>"u")return;const w=()=>{const k=Bu(window.location.search);a(k)};w();const h=()=>w();return window.addEventListener("popstate",h),()=>window.removeEventListener("popstate",h)},[]),i.length===0)return null;const v=w=>{if(w.stopPropagation(),typeof window>"u")return;const h=new URL(window.location.href);h.searchParams.delete("_stackable_dev"),window.location.href=h.toString()};return y.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&&y.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,h)=>{var k;return y.jsxs("div",{style:{padding:"8px 12px",borderBottom:h<i.length-1?"1px solid #f3f4f6":"none"},children:[y.jsx("div",{style:{fontSize:"12px",fontWeight:600,color:"#111",fontFamily:"ui-monospace, SFMono-Regular, monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:((k=o.find(C=>C.id===w.extensionId))==null?void 0:k.manifest.name)||w.extensionId}),y.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)})}),y.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:[y.jsx("span",{ref:m,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:y.jsx(wC,{className:"w-6 h-6"})}),y.jsx("span",{children:"Dev Mode"}),y.jsxs("span",{style:{fontSize:"12px",opacity:.75},children:["(",i.length," extension",i.length>1?"s":"",")"]}),y.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"})]})]})},kC=800,hs=(n,o)=>n?`${n.replace(/\/$/,"")}${o}`:o,Fl=n=>n.startsWith("http")&&!n.endsWith(".js"),SC=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?Fl(l.bundleUrl):!1,f=hs(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:m,encryptionKey:v}=await p.json();a.set(l.id,{token:m,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},CC=n=>typeof n=="object"&&n!==null&&n.encrypted===!0&&Array.isArray(n.data),EC=({instanceId:n,apiBase:o,hostBase:i,appId:a,children:l,customerId:u,customerEmail:f})=>{const[p,m]=g.useState([]),[v,w]=g.useState(new Map),[h,k]=g.useState(!1);g.useEffect(()=>{(async()=>{const b=n;try{if(!b){console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"),m([]),k(!0);return}if(!o||!a){console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"),m([]),k(!0);return}const S=await fetch(hs(o,`/instances/${a}/${b}`));if(!S.ok){console.warn(`[ExtensionSetup] Instance not found or failed to load: ${b}`),m([]),k(!0);return}const E=await S.json(),R=Bu(typeof window<"u"?window.location.search:""),P=await C0(E,R),j=await SC(P,o,a);m(P),w(new Map(j))}catch(S){console.error("Failed to load extensions:",S)}finally{k(!0)}})()},[n,a,o]),g.useEffect(()=>{if(!o||!a||p.length===0)return;const b=setInterval(async()=>{const S=[];await Promise.all(p.filter(E=>E.manifest.permissions.includes("data:fetch")).map(async E=>{const R=E.bundleUrl?Fl(E.bundleUrl):!1,P=hs(o,"/proxy-token"),j=await fetch(P,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:a,extensionId:E.id,devMode:R})});if(j.ok){const{token:H,encryptionKey:D}=await j.json();S.push([E.id,{token:H,encryptionKey:D}])}else console.warn(`[embeddables] Proxy token refresh failed for extension ${E.id} (${j.status}) — using stale token`)})),S.length>0&&w(E=>{const R=new Map(E);for(const[P,j]of S)R.set(P,j);return R})},3300*1e3);return()=>clearInterval(b)},[p,o,a]),g.useEffect(()=>{if(v.size===0)return;const N=b=>{const S=b.data;if((S==null?void 0:S.type)!=="extension-ready")return;const E=S.extensionId,R=p.find(j=>j.id===E);if(!(R!=null&&R.bundleUrl)||Fl(R.bundleUrl))return;const P=v.get(E);P&&Si(E,{type:"extension-encryption-key",encryptionKey:P.encryptionKey})};return window.addEventListener("message",N),()=>window.removeEventListener("message",N)},[p,v]);const C=g.useMemo(()=>({"data.query":async N=>Wm(N,i),"data.fetch":async(N,b)=>{const S=v.get(N);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 E=CC(b)?b:{url:b.url,method:b.method??"GET",headers:b.headers??{},body:b.body??null},R=hs(o,"/proxy"),P=await fetch(R,{method:"POST",headers:{"Content-Type":"application/json","X-Extension-Id":N,"X-Application-Id":a??"",Authorization:`Bearer ${S.token}`},body:JSON.stringify(E)}),j=await P.json();return{status:j.status??P.status,ok:j.ok??P.ok,data:j.data}},"actions.toast":async(N,b)=>{const S={...b.description&&{description:b.description},...b.duration&&{duration:b.duration},...b.position&&{position:b.position},...b.dismissible!=null&&{dismissible:b.dismissible},...b.closeButton!=null&&{closeButton:b.closeButton}};if(b.fetch){const E=P=>new Promise(j=>setTimeout(j,P)),R=Promise.all([C["data.fetch"](N,b.fetch),E(kC)]).then(([P])=>P);Br.promise(R,{loading:b.loading??b.message,success:b.success??b.message,error:b.error??"Something went wrong",...S});return}switch(b.type){case"success":{Br.success(b.message,S);break}case"error":{Br.error(b.message,S);break}case"warning":{Br.warning(b.message,S);break}case"info":{Br.info(b.message,S);break}default:Br(b.message,S)}},"actions.invoke":async N=>{if(N.action==="newConversation")return window.dispatchEvent(new CustomEvent("ext-new-conversation",{detail:N})),{success:!0};throw new Error(`Unknown action: ${N.action}`)},"context.read":async()=>({customerId:u??"",customerEmail:f??""})}),[o,a,i,u,f,v]);return h?y.jsxs(y.Fragment,{children:[y.jsx(Wv,{extensions:p,capabilityHandlers:C,components:yC(),children:l}),y.jsx(bC,{extensions:p})]}):null};var _C=(n,o,i,a,l,u,f,p)=>{let m=document.documentElement,v=["light","dark"];function w(C){(Array.isArray(n)?n:[n]).forEach(N=>{let b=N==="class",S=b&&u?l.map(E=>u[E]||E):l;b?(m.classList.remove(...S),m.classList.add(u&&u[C]?u[C]:C)):m.setAttribute(N,C)}),h(C)}function h(C){p&&v.includes(C)&&(m.style.colorScheme=C)}function k(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)w(a);else try{let C=localStorage.getItem(o)||i,N=f&&C==="system"?k():C;w(N)}catch{}},NC=g.createContext(void 0),RC={setTheme:n=>{},themes:[]},PC=()=>{var n;return(n=g.useContext(NC))!=null?n:RC};g.memo(({forcedTheme:n,storageKey:o,attribute:i,enableSystem:a,enableColorScheme:l,defaultTheme:u,value:f,themes:p,nonce:m,scriptProps:v})=>{let w=JSON.stringify([i,o,u,n,p,f,a,l]).slice(1,-1);return g.createElement("script",{...v,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${_C.toString()})(${w})`}})});const TC=({...n})=>{const{theme:o="system"}=PC();return y.jsx(k0,{theme:o,className:"toaster group",icons:{success:y.jsx(Yu,{className:"size-4"}),info:y.jsx(_i,{className:"size-4"}),warning:y.jsx(Q0,{className:"size-4"}),error:y.jsx(V0,{className:"size-4"}),loading:y.jsx(Ia,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...n})},AC={dark:"dark",light:"widget-theme-light"},IC={dark:"dark",light:"light"},jC=({children:n,theme:o="inherit"})=>y.jsxs("div",{"data-id":"widget-body",className:AC[o],style:{position:"relative",transform:"translateZ(0)"},children:[y.jsx("div",{className:"h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300",children:y.jsx("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground",children:n})}),y.jsx(TC,{position:"bottom-center",theme:IC[o]??"system",toastOptions:{descriptionClassName:"!text-muted-foreground"}})]}),MC=({onClick:n,icon:o=T0})=>y.jsx("div",{className:"fixed bottom-8 right-8 z-50",children:y.jsx($m,{className:"h-12 w-12 rounded-full",size:"icon",onClick:n,children:y.jsx(o,{className:"h-6 w-6"})})}),zC=({children:n,icon:o,theme:i})=>{const[a,l]=g.useState(!1),u=()=>{l(!a)};return y.jsxs(y.Fragment,{children:[y.jsx(MC,{onClick:u,icon:o}),a&&y.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:y.jsx(jC,{theme:i,children:n})})]})},LC=({href:n,children:o})=>y.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}),OC=(n,o)=>{const[i,a]=g.useState(null),[l,u]=g.useState(!1),[f,p]=g.useState(null);return g.useEffect(()=>{if(!n){a(null);return}(async()=>{u(!0),p(null);try{const v=await Wm({action:"getCustomer",customerId:n},o);a(v)}catch(v){p(v)}finally{u(!1)}})()},[n,o]),{customer:i,loading:l,error:f}},DC=({customerId:n,customerEmail:o,hostBase:i,children:a})=>{var m,v;const{customer:l,loading:u,error:f}=OC(n,i);if(u)return y.jsx(No,{className:"border-none shadow-none bg-transparent",children:y.jsx(Ro,{className:"flex items-center justify-center p-6",children:y.jsx(Ia,{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",h=w.split(/[\s._-]+/).map(k=>k[0]).join("").slice(0,2).toUpperCase();return y.jsx(No,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:y.jsxs(Ro,{className:"p-4 pb-0 pt-2",children:[y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs(Ll,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[y.jsx(Ol,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(w)}&background=7c3aed&color=fff&size=128`,alt:w}),y.jsx(Dl,{className:"text-lg",children:h})]}),y.jsxs("div",{className:"text-center w-full space-y-1",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-xs text-foreground/70 font-medium tracking-wide",children:"Welcome,"}),y.jsx("h2",{className:"text-lg font-bold text-foreground leading-tight",children:w})]}),o&&y.jsx("div",{className:"pt-2 flex flex-col items-center gap-1",children:y.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75",children:[y.jsx(ja,{className:"h-3 w-3","aria-hidden":"true"}),y.jsx("span",{className:"truncate max-w-[200px]",children:o})]})}),y.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:a})]})]}),y.jsx("p",{className:"pt-2 text-center text-xs text-muted-foreground",children:"Using fallback profile (customer API returned no data)"})]})})}const p=`${((m=l.first_name)==null?void 0:m[0])||""}${((v=l.last_name)==null?void 0:v[0])||""}`;return y.jsx(No,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:y.jsx(Ro,{className:"p-4 pb-0 pt-2",children:y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs(Ll,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[y.jsx(Ol,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(l.name)}&background=7c3aed&color=fff&size=128`,alt:l.name}),y.jsx(Dl,{className:"text-lg",children:p})]}),y.jsxs("div",{className:"text-center w-full space-y-1",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-xs text-foreground/70 font-medium tracking-wide",children:"Welcome,"}),y.jsx("h2",{className:"text-lg font-bold text-foreground leading-tight",children:l.name})]}),y.jsx("div",{className:"pt-2 flex flex-col items-center gap-1",children:y.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75",children:[y.jsx(ja,{className:"h-3 w-3","aria-hidden":"true"}),y.jsx("span",{className:"truncate max-w-[200px]",children:l.email})]})}),y.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:a})]})]})})})},Ym=(n,o)=>{g.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])},FC=({customization:n})=>{const o=g.useRef(null);return Ym("widget_conversations",o),g.useEffect(()=>{!window.zE||!o.current||n&&window.zE("messenger:set","customization",{conversationList:n})},[n]),y.jsx("div",{ref:o,className:"h-full overflow-hidden"})},$C=({customization:n})=>{const o=g.useRef(null);return Ym("widget_messages",o),g.useEffect(()=>{!window.zE||!o.current||n&&window.zE("messenger:set","customization",{messageLog:n})},[n]),y.jsx("div",{ref:o,className:"h-full overflow-hidden"})},$l=25,Bl=75,BC=({header:n,buttons:o,hostBase:i,customerId:a="",customerEmail:l="",primaryPercent:u=50})=>{const f=Math.max($l,Math.min(Bl,u)),[p,m]=g.useState("account"),[v,w]=g.useState(f),[h,k]=g.useState(!1),[C,N]=g.useState(!1),[b,S]=g.useState(!1),E=g.useRef(null),R=g.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),[]);g.useEffect(()=>{if(R()){N(!0);return}const D=setInterval(()=>{R()&&(N(!0),clearInterval(D))},100),F=setTimeout(()=>{clearInterval(D),console.warn("Zendesk widget failed to load after 10 seconds")},1e4);return()=>{clearInterval(D),clearTimeout(F)}},[R]);const P=g.useCallback(D=>{const{detail:F}=D;if(!window.zE||!F.payload||(F==null?void 0:F.action)!=="newConversation")return!1;window.zE("messenger:ui","newConversation",F.payload)},[]);g.useEffect(()=>(window.addEventListener("ext-new-conversation",P),()=>{window.removeEventListener("ext-new-conversation",P)}),[P]),g.useEffect(()=>{if(!b)return;const D=$=>{if(!E.current)return;const X=E.current.getBoundingClientRect();if((h?X.width:X.height)===0)return;const ae=h?($.clientX-X.left)/X.width*100:($.clientY-X.top)/X.height*100,le=Math.max($l,Math.min(Bl,ae));w(le)},F=()=>{S(!1),document.body.style.cursor="",document.body.style.userSelect=""};return document.body.style.cursor=h?"col-resize":"row-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",D),window.addEventListener("mouseup",F),window.addEventListener("blur",F),()=>{window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",F),window.removeEventListener("blur",F),document.body.style.cursor="",document.body.style.userSelect=""}},[b,h]),g.useEffect(()=>{if(!E.current)return;const D=E.current,F=()=>{const X=getComputedStyle(D).flexDirection==="row";k(X)};F();const $=new ResizeObserver(F);return $.observe(D),()=>{$.disconnect()}},[]);const j=g.useCallback(D=>{if(D.detail===2){w(f);return}D.preventDefault(),S(!0)},[f]),H={customerId:a,customerEmail:l};return y.jsxs("div",{"data-component":"zendesk-wrapper",className:"flex-1 flex flex-col z-10 overflow-hidden",style:{containerType:"inline-size"},children:[y.jsx("style",{children:'@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'}),y.jsxs("div",{ref:E,"data-id":"panel-layout",className:"relative flex-1 overflow-hidden flex flex-col",children:[y.jsxs("div",{"data-id":"primary-panel",className:"min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",style:{flexBasis:`${v}%`},children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[y.jsx("h2",{className:"font-semibold text-sm text-foreground",children:p==="account"?"My Account":"My Conversations"}),y.jsxs("div",{className:"flex items-center gap-1",children:[n&&y.jsx("div",{className:"flex mr-1 gap-1",children:n}),y.jsxs("div",{className:"flex rounded-lg bg-muted p-1",children:[o,y.jsx("button",{onClick:()=>m("account"),className:be("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:y.jsx(Xu,{className:"h-4 w-4"})}),y.jsx("button",{onClick:()=>m("conversations"),className:be("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:y.jsx(Ku,{className:"h-4 w-4"})})]})]})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto p-4 relative",children:[y.jsxs("div",{className:be("flex flex-col gap-2",p==="conversations"&&"hidden"),children:[y.jsx(DC,{customerId:a,customerEmail:l,hostBase:i,children:y.jsx(Ci,{target:"slot.header",context:H,className:"flex-none"})}),y.jsx(Ci,{target:"slot.content",context:H,className:"flex flex-col gap-2"})]}),y.jsx("div",{className:be("h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",p==="account"&&"hidden"),children:y.jsx(FC,{})})]})]}),y.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:[y.jsx("div",{className:"flex-1 overflow-hidden",children:y.jsx($C,{})}),y.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500",children:[y.jsx(Ci,{target:"slot.footer",context:H,className:"flex items-center gap-1",fallback:y.jsxs(y.Fragment,{children:[y.jsx("div",{children:"powered by"}),y.jsx(LC,{href:"https://zendesk.com",children:"Zendesk"})]})}),y.jsx(Ci,{target:"slot.footer-links",context:H,className:"flex items-center gap-1",separator:y.jsx("span",{className:"text-zinc-300",children:"/"}),render:({children:D,index:F})=>y.jsxs(y.Fragment,{children:[F===0&&y.jsx("span",{className:"text-zinc-300",children:"+"}),D]})})]})]}),y.jsx("div",{className:be("group/resize absolute z-20 flex items-center justify-center",h?"top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize":"w-full h-3 -mt-2.5 cursor-row-resize"),style:h?{left:`${v}%`}:{top:`${v}%`},onMouseDown:j,role:"separator","aria-label":"Resize panels","aria-orientation":h?"vertical":"horizontal","aria-valuemin":$l,"aria-valuemax":Bl,"aria-valuenow":Math.round(v),children:y.jsx("div",{className:be("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",h?"h-20 w-0.5":"h-0.5 w-20",b?"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")})}),b&&y.jsx("div",{className:be("absolute inset-0 z-40",h?"cursor-col-resize":"cursor-row-resize"),onMouseUp:()=>S(!1)})]})]})},HC="ze-snippet",Km=n=>`https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(n)}`,UC=(n,o={})=>{if(typeof window>"u"||typeof document>"u"||!n)return Promise.resolve();const{autorender:i=!1,scriptId:a=HC}=o;window.zEMessenger={autorender:i};const l=document.getElementById(a);if(l){if(l.getAttribute("src")===Km(n))return Promise.resolve();l.remove()}return new Promise((u,f)=>{const p=document.createElement("script");p.id=a,p.src=Km(n),p.async=!0,p.onload=()=>u(),p.onerror=()=>f(new Error("Failed to load Zendesk snippet")),document.head.appendChild(p)})},VC=({snippetKey:n,instanceId:o,hostBase:i,apiBase:a,appId:l,theme:u,customerId:f,customerEmail:p})=>{const m=u==="dark"||u==="light"?u:"inherit";return g.useEffect(()=>{n&&UC(n).catch(v=>{console.error("[StackableWidget] Failed to load Zendesk snippet:",v)})},[n]),y.jsx(EC,{instanceId:o,apiBase:a,hostBase:i,appId:l,customerId:f,customerEmail:p,children:y.jsx(zC,{theme:m,children:y.jsx(BC,{hostBase:i,customerId:f,customerEmail:p,primaryPercent:40})})})};class WC extends HTMLElement{constructor(){super();Su(this,"mountNode");Su(this,"root");const i=this.attachShadow({mode:"open"}),a=document.createElement("style");a.textContent=Mv,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=jv.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(y.jsx(VC,{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",WC)})();
|