@stackable-labs/embeddables 1.98.0 → 1.100.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.
@@ -1,4 +1,4 @@
1
- var q_=Object.defineProperty;var G_=(gr,Vt,Mn)=>Vt in gr?q_(gr,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):gr[Vt]=Mn;var ld=(gr,Vt,Mn)=>G_(gr,typeof Vt!="symbol"?Vt+"":Vt,Mn);(function(){"use strict";function gr(n,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in n)){const c=Object.getOwnPropertyDescriptor(s,l);c&&Object.defineProperty(n,l,c.get?c:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Vt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Mn={exports:{}},Lo={},Fa={exports:{}},Pe={};/**
1
+ var K_=Object.defineProperty;var X_=(vr,Vt,Mn)=>Vt in vr?K_(vr,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):vr[Vt]=Mn;var ld=(vr,Vt,Mn)=>X_(vr,typeof Vt!="symbol"?Vt+"":Vt,Mn);(function(){"use strict";function vr(n,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in n)){const c=Object.getOwnPropertyDescriptor(s,l);c&&Object.defineProperty(n,l,c.get?c:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Vt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Mn={exports:{}},zo={},Fa={exports:{}},Ie={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var q_=Object.defineProperty;var G_=(gr,Vt,Mn)=>Vt in gr?q_(gr,Vt,{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 cd;function Q0(){if(cd)return Pe;cd=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),m=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=m&&_[m]||_["@@iterator"],typeof _=="function"?_:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,S={};function C(_,O,H){this.props=_,this.context=O,this.refs=S,this.updater=H||k}C.prototype.isReactComponent={},C.prototype.setState=function(_,O){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,O,"setState")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function N(){}N.prototype=C.prototype;function R(_,O,H){this.props=_,this.context=O,this.refs=S,this.updater=H||k}var P=R.prototype=new N;P.constructor=R,E(P,C.prototype),P.isPureReactComponent=!0;var M=Array.isArray,W=Object.prototype.hasOwnProperty,z={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function j(_,O,H){var J,ee={},ce=null,ie=null;if(O!=null)for(J in O.ref!==void 0&&(ie=O.ref),O.key!==void 0&&(ce=""+O.key),O)W.call(O,J)&&!D.hasOwnProperty(J)&&(ee[J]=O[J]);var re=arguments.length-2;if(re===1)ee.children=H;else if(1<re){for(var de=Array(re),ye=0;ye<re;ye++)de[ye]=arguments[ye+2];ee.children=de}if(_&&_.defaultProps)for(J in re=_.defaultProps,re)ee[J]===void 0&&(ee[J]=re[J]);return{$$typeof:n,type:_,key:ce,ref:ie,props:ee,_owner:z.current}}function q(_,O){return{$$typeof:n,type:_.type,key:O,ref:_.ref,props:_.props,_owner:_._owner}}function Z(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function U(_){var O={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(H){return O[H]})}var K=/\/+/g;function X(_,O){return typeof _=="object"&&_!==null&&_.key!=null?U(""+_.key):O.toString(36)}function Y(_,O,H,J,ee){var ce=typeof _;(ce==="undefined"||ce==="boolean")&&(_=null);var ie=!1;if(_===null)ie=!0;else switch(ce){case"string":case"number":ie=!0;break;case"object":switch(_.$$typeof){case n:case r:ie=!0}}if(ie)return ie=_,ee=ee(ie),_=J===""?"."+X(ie,0):J,M(ee)?(H="",_!=null&&(H=_.replace(K,"$&/")+"/"),Y(ee,O,H,"",function(ye){return ye})):ee!=null&&(Z(ee)&&(ee=q(ee,H+(!ee.key||ie&&ie.key===ee.key?"":(""+ee.key).replace(K,"$&/")+"/")+_)),O.push(ee)),1;if(ie=0,J=J===""?".":J+":",M(_))for(var re=0;re<_.length;re++){ce=_[re];var de=J+X(ce,re);ie+=Y(ce,O,H,de,ee)}else if(de=x(_),typeof de=="function")for(_=de.call(_),re=0;!(ce=_.next()).done;)ce=ce.value,de=J+X(ce,re++),ie+=Y(ce,O,H,de,ee);else if(ce==="object")throw O=String(_),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.");return ie}function ue(_,O,H){if(_==null)return _;var J=[],ee=0;return Y(_,J,"","",function(ce){return O.call(H,ce,ee++)}),J}function Q(_){if(_._status===-1){var O=_._result;O=O(),O.then(function(H){(_._status===0||_._status===-1)&&(_._status=1,_._result=H)},function(H){(_._status===0||_._status===-1)&&(_._status=2,_._result=H)}),_._status===-1&&(_._status=0,_._result=O)}if(_._status===1)return _._result.default;throw _._result}var ne={current:null},G={transition:null},F={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:G,ReactCurrentOwner:z};function I(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:ue,forEach:function(_,O,H){ue(_,function(){O.apply(this,arguments)},H)},count:function(_){var O=0;return ue(_,function(){O++}),O},toArray:function(_){return ue(_,function(O){return O})||[]},only:function(_){if(!Z(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Pe.Component=C,Pe.Fragment=i,Pe.Profiler=l,Pe.PureComponent=R,Pe.StrictMode=s,Pe.Suspense=p,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,Pe.act=I,Pe.cloneElement=function(_,O,H){if(_==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_+".");var J=E({},_.props),ee=_.key,ce=_.ref,ie=_._owner;if(O!=null){if(O.ref!==void 0&&(ce=O.ref,ie=z.current),O.key!==void 0&&(ee=""+O.key),_.type&&_.type.defaultProps)var re=_.type.defaultProps;for(de in O)W.call(O,de)&&!D.hasOwnProperty(de)&&(J[de]=O[de]===void 0&&re!==void 0?re[de]:O[de])}var de=arguments.length-2;if(de===1)J.children=H;else if(1<de){re=Array(de);for(var ye=0;ye<de;ye++)re[ye]=arguments[ye+2];J.children=re}return{$$typeof:n,type:_.type,key:ee,ref:ce,props:J,_owner:ie}},Pe.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_.Provider={$$typeof:c,_context:_},_.Consumer=_},Pe.createElement=j,Pe.createFactory=function(_){var O=j.bind(null,_);return O.type=_,O},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(_){return{$$typeof:f,render:_}},Pe.isValidElement=Z,Pe.lazy=function(_){return{$$typeof:w,_payload:{_status:-1,_result:_},_init:Q}},Pe.memo=function(_,O){return{$$typeof:g,type:_,compare:O===void 0?null:O}},Pe.startTransition=function(_){var O=G.transition;G.transition={};try{_()}finally{G.transition=O}},Pe.unstable_act=I,Pe.useCallback=function(_,O){return ne.current.useCallback(_,O)},Pe.useContext=function(_){return ne.current.useContext(_)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(_){return ne.current.useDeferredValue(_)},Pe.useEffect=function(_,O){return ne.current.useEffect(_,O)},Pe.useId=function(){return ne.current.useId()},Pe.useImperativeHandle=function(_,O,H){return ne.current.useImperativeHandle(_,O,H)},Pe.useInsertionEffect=function(_,O){return ne.current.useInsertionEffect(_,O)},Pe.useLayoutEffect=function(_,O){return ne.current.useLayoutEffect(_,O)},Pe.useMemo=function(_,O){return ne.current.useMemo(_,O)},Pe.useReducer=function(_,O,H){return ne.current.useReducer(_,O,H)},Pe.useRef=function(_){return ne.current.useRef(_)},Pe.useState=function(_){return ne.current.useState(_)},Pe.useSyncExternalStore=function(_,O,H){return ne.current.useSyncExternalStore(_,O,H)},Pe.useTransition=function(){return ne.current.useTransition()},Pe.version="18.3.1",Pe}var ud;function Li(){return ud||(ud=1,Fa.exports=Q0()),Fa.exports}/**
9
+ */var cd;function Z0(){if(cd)return Ie;cd=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),m=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=m&&_[m]||_["@@iterator"],typeof _=="function"?_:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,S={};function C(_,O,H){this.props=_,this.context=O,this.refs=S,this.updater=H||k}C.prototype.isReactComponent={},C.prototype.setState=function(_,O){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,O,"setState")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function N(){}N.prototype=C.prototype;function R(_,O,H){this.props=_,this.context=O,this.refs=S,this.updater=H||k}var P=R.prototype=new N;P.constructor=R,E(P,C.prototype),P.isPureReactComponent=!0;var M=Array.isArray,W=Object.prototype.hasOwnProperty,z={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function j(_,O,H){var J,ee={},ce=null,ie=null;if(O!=null)for(J in O.ref!==void 0&&(ie=O.ref),O.key!==void 0&&(ce=""+O.key),O)W.call(O,J)&&!D.hasOwnProperty(J)&&(ee[J]=O[J]);var re=arguments.length-2;if(re===1)ee.children=H;else if(1<re){for(var de=Array(re),ye=0;ye<re;ye++)de[ye]=arguments[ye+2];ee.children=de}if(_&&_.defaultProps)for(J in re=_.defaultProps,re)ee[J]===void 0&&(ee[J]=re[J]);return{$$typeof:n,type:_,key:ce,ref:ie,props:ee,_owner:z.current}}function q(_,O){return{$$typeof:n,type:_.type,key:O,ref:_.ref,props:_.props,_owner:_._owner}}function Z(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function U(_){var O={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(H){return O[H]})}var K=/\/+/g;function X(_,O){return typeof _=="object"&&_!==null&&_.key!=null?U(""+_.key):O.toString(36)}function Y(_,O,H,J,ee){var ce=typeof _;(ce==="undefined"||ce==="boolean")&&(_=null);var ie=!1;if(_===null)ie=!0;else switch(ce){case"string":case"number":ie=!0;break;case"object":switch(_.$$typeof){case n:case r:ie=!0}}if(ie)return ie=_,ee=ee(ie),_=J===""?"."+X(ie,0):J,M(ee)?(H="",_!=null&&(H=_.replace(K,"$&/")+"/"),Y(ee,O,H,"",function(ye){return ye})):ee!=null&&(Z(ee)&&(ee=q(ee,H+(!ee.key||ie&&ie.key===ee.key?"":(""+ee.key).replace(K,"$&/")+"/")+_)),O.push(ee)),1;if(ie=0,J=J===""?".":J+":",M(_))for(var re=0;re<_.length;re++){ce=_[re];var de=J+X(ce,re);ie+=Y(ce,O,H,de,ee)}else if(de=x(_),typeof de=="function")for(_=de.call(_),re=0;!(ce=_.next()).done;)ce=ce.value,de=J+X(ce,re++),ie+=Y(ce,O,H,de,ee);else if(ce==="object")throw O=String(_),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.");return ie}function ue(_,O,H){if(_==null)return _;var J=[],ee=0;return Y(_,J,"","",function(ce){return O.call(H,ce,ee++)}),J}function Q(_){if(_._status===-1){var O=_._result;O=O(),O.then(function(H){(_._status===0||_._status===-1)&&(_._status=1,_._result=H)},function(H){(_._status===0||_._status===-1)&&(_._status=2,_._result=H)}),_._status===-1&&(_._status=0,_._result=O)}if(_._status===1)return _._result.default;throw _._result}var ne={current:null},G={transition:null},F={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:G,ReactCurrentOwner:z};function I(){throw Error("act(...) is not supported in production builds of React.")}return Ie.Children={map:ue,forEach:function(_,O,H){ue(_,function(){O.apply(this,arguments)},H)},count:function(_){var O=0;return ue(_,function(){O++}),O},toArray:function(_){return ue(_,function(O){return O})||[]},only:function(_){if(!Z(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Ie.Component=C,Ie.Fragment=i,Ie.Profiler=l,Ie.PureComponent=R,Ie.StrictMode=s,Ie.Suspense=p,Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,Ie.act=I,Ie.cloneElement=function(_,O,H){if(_==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_+".");var J=E({},_.props),ee=_.key,ce=_.ref,ie=_._owner;if(O!=null){if(O.ref!==void 0&&(ce=O.ref,ie=z.current),O.key!==void 0&&(ee=""+O.key),_.type&&_.type.defaultProps)var re=_.type.defaultProps;for(de in O)W.call(O,de)&&!D.hasOwnProperty(de)&&(J[de]=O[de]===void 0&&re!==void 0?re[de]:O[de])}var de=arguments.length-2;if(de===1)J.children=H;else if(1<de){re=Array(de);for(var ye=0;ye<de;ye++)re[ye]=arguments[ye+2];J.children=re}return{$$typeof:n,type:_.type,key:ee,ref:ce,props:J,_owner:ie}},Ie.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_.Provider={$$typeof:c,_context:_},_.Consumer=_},Ie.createElement=j,Ie.createFactory=function(_){var O=j.bind(null,_);return O.type=_,O},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(_){return{$$typeof:f,render:_}},Ie.isValidElement=Z,Ie.lazy=function(_){return{$$typeof:w,_payload:{_status:-1,_result:_},_init:Q}},Ie.memo=function(_,O){return{$$typeof:g,type:_,compare:O===void 0?null:O}},Ie.startTransition=function(_){var O=G.transition;G.transition={};try{_()}finally{G.transition=O}},Ie.unstable_act=I,Ie.useCallback=function(_,O){return ne.current.useCallback(_,O)},Ie.useContext=function(_){return ne.current.useContext(_)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(_){return ne.current.useDeferredValue(_)},Ie.useEffect=function(_,O){return ne.current.useEffect(_,O)},Ie.useId=function(){return ne.current.useId()},Ie.useImperativeHandle=function(_,O,H){return ne.current.useImperativeHandle(_,O,H)},Ie.useInsertionEffect=function(_,O){return ne.current.useInsertionEffect(_,O)},Ie.useLayoutEffect=function(_,O){return ne.current.useLayoutEffect(_,O)},Ie.useMemo=function(_,O){return ne.current.useMemo(_,O)},Ie.useReducer=function(_,O,H){return ne.current.useReducer(_,O,H)},Ie.useRef=function(_){return ne.current.useRef(_)},Ie.useState=function(_){return ne.current.useState(_)},Ie.useSyncExternalStore=function(_,O,H){return ne.current.useSyncExternalStore(_,O,H)},Ie.useTransition=function(){return ne.current.useTransition()},Ie.version="18.3.1",Ie}var ud;function Li(){return ud||(ud=1,Fa.exports=Z0()),Fa.exports}/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var q_=Object.defineProperty;var G_=(gr,Vt,Mn)=>Vt in gr?q_(gr,Vt,{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 dd;function Z0(){if(dd)return Lo;dd=1;var n=Li(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(f,p,g){var w,m={},x=null,k=null;g!==void 0&&(x=""+g),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(k=p.ref);for(w in p)s.call(p,w)&&!c.hasOwnProperty(w)&&(m[w]=p[w]);if(f&&f.defaultProps)for(w in p=f.defaultProps,p)m[w]===void 0&&(m[w]=p[w]);return{$$typeof:r,type:f,key:x,ref:k,props:m,_owner:l.current}}return Lo.Fragment=i,Lo.jsx=d,Lo.jsxs=d,Lo}var fd;function J0(){return fd||(fd=1,Mn.exports=Z0()),Mn.exports}var y=J0(),zi={},Ba={exports:{}},wt={},$a={exports:{}},Ua={};/**
17
+ */var dd;function J0(){if(dd)return zo;dd=1;var n=Li(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(f,p,g){var w,m={},x=null,k=null;g!==void 0&&(x=""+g),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(k=p.ref);for(w in p)s.call(p,w)&&!c.hasOwnProperty(w)&&(m[w]=p[w]);if(f&&f.defaultProps)for(w in p=f.defaultProps,p)m[w]===void 0&&(m[w]=p[w]);return{$$typeof:r,type:f,key:x,ref:k,props:m,_owner:l.current}}return zo.Fragment=i,zo.jsx=d,zo.jsxs=d,zo}var fd;function ey(){return fd||(fd=1,Mn.exports=J0()),Mn.exports}var y=ey(),zi={},Ba={exports:{}},wt={},$a={exports:{}},Ua={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var q_=Object.defineProperty;var G_=(gr,Vt,Mn)=>Vt in gr?q_(gr,Vt,{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 pd;function ey(){return pd||(pd=1,(function(n){function r(G,F){var I=G.length;G.push(F);e:for(;0<I;){var _=I-1>>>1,O=G[_];if(0<l(O,F))G[_]=F,G[I]=O,I=_;else break e}}function i(G){return G.length===0?null:G[0]}function s(G){if(G.length===0)return null;var F=G[0],I=G.pop();if(I!==F){G[0]=I;e:for(var _=0,O=G.length,H=O>>>1;_<H;){var J=2*(_+1)-1,ee=G[J],ce=J+1,ie=G[ce];if(0>l(ee,I))ce<O&&0>l(ie,ee)?(G[_]=ie,G[ce]=I,_=ce):(G[_]=ee,G[J]=I,_=J);else if(ce<O&&0>l(ie,I))G[_]=ie,G[ce]=I,_=ce;else break e}}return F}function l(G,F){var I=G.sortIndex-F.sortIndex;return I!==0?I:G.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();n.unstable_now=function(){return d.now()-f}}var p=[],g=[],w=1,m=null,x=3,k=!1,E=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(G){for(var F=i(g);F!==null;){if(F.callback===null)s(g);else if(F.startTime<=G)s(g),F.sortIndex=F.expirationTime,r(p,F);else break;F=i(g)}}function M(G){if(S=!1,P(G),!E)if(i(p)!==null)E=!0,Q(W);else{var F=i(g);F!==null&&ne(M,F.startTime-G)}}function W(G,F){E=!1,S&&(S=!1,N(j),j=-1),k=!0;var I=x;try{for(P(F),m=i(p);m!==null&&(!(m.expirationTime>F)||G&&!U());){var _=m.callback;if(typeof _=="function"){m.callback=null,x=m.priorityLevel;var O=_(m.expirationTime<=F);F=n.unstable_now(),typeof O=="function"?m.callback=O:m===i(p)&&s(p),P(F)}else s(p);m=i(p)}if(m!==null)var H=!0;else{var J=i(g);J!==null&&ne(M,J.startTime-F),H=!1}return H}finally{m=null,x=I,k=!1}}var z=!1,D=null,j=-1,q=5,Z=-1;function U(){return!(n.unstable_now()-Z<q)}function K(){if(D!==null){var G=n.unstable_now();Z=G;var F=!0;try{F=D(!0,G)}finally{F?X():(z=!1,D=null)}}else z=!1}var X;if(typeof R=="function")X=function(){R(K)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,ue=Y.port2;Y.port1.onmessage=K,X=function(){ue.postMessage(null)}}else X=function(){C(K,0)};function Q(G){D=G,z||(z=!0,X())}function ne(G,F){j=C(function(){G(n.unstable_now())},F)}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(G){G.callback=null},n.unstable_continueExecution=function(){E||k||(E=!0,Q(W))},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_getFirstCallbackNode=function(){return i(p)},n.unstable_next=function(G){switch(x){case 1:case 2:case 3:var F=3;break;default:F=x}var I=x;x=F;try{return G()}finally{x=I}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(G,F){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var I=x;x=G;try{return F()}finally{x=I}},n.unstable_scheduleCallback=function(G,F,I){var _=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?_+I:_):I=_,G){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=I+O,G={id:w++,callback:F,priorityLevel:G,startTime:I,expirationTime:O,sortIndex:-1},I>_?(G.sortIndex=I,r(g,G),i(p)===null&&G===i(g)&&(S?(N(j),j=-1):S=!0,ne(M,I-_))):(G.sortIndex=O,r(p,G),E||k||(E=!0,Q(W))),G},n.unstable_shouldYield=U,n.unstable_wrapCallback=function(G){var F=x;return function(){var I=x;x=F;try{return G.apply(this,arguments)}finally{x=I}}}})(Ua)),Ua}var hd;function ty(){return hd||(hd=1,$a.exports=ey()),$a.exports}/**
25
+ */var pd;function ty(){return pd||(pd=1,(function(n){function r(G,F){var I=G.length;G.push(F);e:for(;0<I;){var _=I-1>>>1,O=G[_];if(0<l(O,F))G[_]=F,G[I]=O,I=_;else break e}}function i(G){return G.length===0?null:G[0]}function s(G){if(G.length===0)return null;var F=G[0],I=G.pop();if(I!==F){G[0]=I;e:for(var _=0,O=G.length,H=O>>>1;_<H;){var J=2*(_+1)-1,ee=G[J],ce=J+1,ie=G[ce];if(0>l(ee,I))ce<O&&0>l(ie,ee)?(G[_]=ie,G[ce]=I,_=ce):(G[_]=ee,G[J]=I,_=J);else if(ce<O&&0>l(ie,I))G[_]=ie,G[ce]=I,_=ce;else break e}}return F}function l(G,F){var I=G.sortIndex-F.sortIndex;return I!==0?I:G.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();n.unstable_now=function(){return d.now()-f}}var p=[],g=[],w=1,m=null,x=3,k=!1,E=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(G){for(var F=i(g);F!==null;){if(F.callback===null)s(g);else if(F.startTime<=G)s(g),F.sortIndex=F.expirationTime,r(p,F);else break;F=i(g)}}function M(G){if(S=!1,P(G),!E)if(i(p)!==null)E=!0,Q(W);else{var F=i(g);F!==null&&ne(M,F.startTime-G)}}function W(G,F){E=!1,S&&(S=!1,N(j),j=-1),k=!0;var I=x;try{for(P(F),m=i(p);m!==null&&(!(m.expirationTime>F)||G&&!U());){var _=m.callback;if(typeof _=="function"){m.callback=null,x=m.priorityLevel;var O=_(m.expirationTime<=F);F=n.unstable_now(),typeof O=="function"?m.callback=O:m===i(p)&&s(p),P(F)}else s(p);m=i(p)}if(m!==null)var H=!0;else{var J=i(g);J!==null&&ne(M,J.startTime-F),H=!1}return H}finally{m=null,x=I,k=!1}}var z=!1,D=null,j=-1,q=5,Z=-1;function U(){return!(n.unstable_now()-Z<q)}function K(){if(D!==null){var G=n.unstable_now();Z=G;var F=!0;try{F=D(!0,G)}finally{F?X():(z=!1,D=null)}}else z=!1}var X;if(typeof R=="function")X=function(){R(K)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,ue=Y.port2;Y.port1.onmessage=K,X=function(){ue.postMessage(null)}}else X=function(){C(K,0)};function Q(G){D=G,z||(z=!0,X())}function ne(G,F){j=C(function(){G(n.unstable_now())},F)}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(G){G.callback=null},n.unstable_continueExecution=function(){E||k||(E=!0,Q(W))},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_getFirstCallbackNode=function(){return i(p)},n.unstable_next=function(G){switch(x){case 1:case 2:case 3:var F=3;break;default:F=x}var I=x;x=F;try{return G()}finally{x=I}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(G,F){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var I=x;x=G;try{return F()}finally{x=I}},n.unstable_scheduleCallback=function(G,F,I){var _=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?_+I:_):I=_,G){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=I+O,G={id:w++,callback:F,priorityLevel:G,startTime:I,expirationTime:O,sortIndex:-1},I>_?(G.sortIndex=I,r(g,G),i(p)===null&&G===i(g)&&(S?(N(j),j=-1):S=!0,ne(M,I-_))):(G.sortIndex=O,r(p,G),E||k||(E=!0,Q(W))),G},n.unstable_shouldYield=U,n.unstable_wrapCallback=function(G){var F=x;return function(){var I=x;x=F;try{return G.apply(this,arguments)}finally{x=I}}}})(Ua)),Ua}var hd;function ny(){return hd||(hd=1,$a.exports=ty()),$a.exports}/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var q_=Object.defineProperty;var G_=(gr,Vt,Mn)=>Vt in gr?q_(gr,Vt,{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 md;function ny(){if(md)return wt;md=1;var n=Li(),r=ty();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function c(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w={},m={};function x(e){return p.call(m,e)?!0:p.call(w,e)?!1:g.test(e)?m[e]=!0:(w[e]=!0,!1)}function k(e,t,o,a){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E(e,t,o,a){if(t===null||typeof t>"u"||k(e,t,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function S(e,t,o,a,u,h,b){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=u,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=h,this.removeEmptyString=b}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new S(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new S(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new S(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new S(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){C[e]=new S(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new S(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new S(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new S(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new S(e,5,!1,e.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function R(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(N,R);C[t]=new S(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(N,R);C[t]=new S(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(N,R);C[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!0,!0)});function P(e,t,o,a){var u=C.hasOwnProperty(t)?C[t]:null;(u!==null?u.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(E(t,o,u,a)&&(o=null),a||u===null?x(t)&&(o===null?e.removeAttribute(t):e.setAttribute(t,""+o)):u.mustUseProperty?e[u.propertyName]=o===null?u.type===3?!1:"":o:(t=u.attributeName,a=u.attributeNamespace,o===null?e.removeAttribute(t):(u=u.type,o=u===3||u===4&&o===!0?"":""+o,a?e.setAttributeNS(a,t,o):e.setAttribute(t,o))))}var M=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,W=Symbol.for("react.element"),z=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),U=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),G=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=G&&e[G]||e["@@iterator"],typeof e=="function"?e:null)}var I=Object.assign,_;function O(e){if(_===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||""}return`
33
+ */var md;function ry(){if(md)return wt;md=1;var n=Li(),r=ny();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function c(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w={},m={};function x(e){return p.call(m,e)?!0:p.call(w,e)?!1:g.test(e)?m[e]=!0:(w[e]=!0,!1)}function k(e,t,o,a){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E(e,t,o,a){if(t===null||typeof t>"u"||k(e,t,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function S(e,t,o,a,u,h,b){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=u,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=h,this.removeEmptyString=b}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new S(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new S(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new S(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new S(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){C[e]=new S(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new S(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new S(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new S(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new S(e,5,!1,e.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function R(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(N,R);C[t]=new S(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(N,R);C[t]=new S(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(N,R);C[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!0,!0)});function P(e,t,o,a){var u=C.hasOwnProperty(t)?C[t]:null;(u!==null?u.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(E(t,o,u,a)&&(o=null),a||u===null?x(t)&&(o===null?e.removeAttribute(t):e.setAttribute(t,""+o)):u.mustUseProperty?e[u.propertyName]=o===null?u.type===3?!1:"":o:(t=u.attributeName,a=u.attributeNamespace,o===null?e.removeAttribute(t):(u=u.type,o=u===3||u===4&&o===!0?"":""+o,a?e.setAttributeNS(a,t,o):e.setAttribute(t,o))))}var M=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,W=Symbol.for("react.element"),z=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),U=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),G=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=G&&e[G]||e["@@iterator"],typeof e=="function"?e:null)}var I=Object.assign,_;function O(e){if(_===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||""}return`
34
34
  `+_+e}var H=!1;function J(e,t){if(!e||H)return"";H=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(V){var a=V}Reflect.construct(e,[],t)}else{try{t.call()}catch(V){a=V}e.call(t.prototype)}else{try{throw Error()}catch(V){a=V}e()}}catch(V){if(V&&a&&typeof V.stack=="string"){for(var u=V.stack.split(`
35
35
  `),h=a.stack.split(`
36
36
  `),b=u.length-1,T=h.length-1;1<=b&&0<=T&&u[b]!==h[T];)T--;for(;1<=b&&0<=T;b--,T--)if(u[b]!==h[T]){if(b!==1||T!==1)do if(b--,T--,0>T||u[b]!==h[T]){var A=`
37
- `+u[b].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),A}while(1<=b&&0<=T);break}}}finally{H=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?O(e):""}function ee(e){switch(e.tag){case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 2:case 15:return e=J(e.type,!1),e;case 11:return e=J(e.type.render,!1),e;case 1:return e=J(e.type,!0),e;default:return""}}function ce(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case z:return"Portal";case q:return"Profiler";case j:return"StrictMode";case X:return"Suspense";case Y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case U:return(e.displayName||"Context")+".Consumer";case Z:return(e._context.displayName||"Context")+".Provider";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ue:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}function ie(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(t);case 8:return t===j?"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 re(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function de(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ye(e){var t=de(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,h=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(b){a=""+b,h.call(this,b)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _e(e){e._valueTracker||(e._valueTracker=ye(e))}function Re(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),a="";return e&&(a=de(e)?e.checked?"true":"false":e.value),e=a,e!==o?(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 $e(e,t){var o=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function fn(e,t){var o=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;o=re(t.value!=null?t.value:o),e._wrapperState={initialChecked:a,initialValue:o,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 o=re(t.value),a=t.type;if(o!=null)a==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tt(e,t.type,o):t.hasOwnProperty("defaultValue")&&tt(e,t.type,re(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _r(e,t,o){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function tt(e,t,o){(t!=="number"||Fe(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Rr=Array.isArray;function Vn(e,t,o,a){if(e=e.options,t){t={};for(var u=0;u<o.length;u++)t["$"+o[u]]=!0;for(o=0;o<e.length;o++)u=t.hasOwnProperty("$"+e[o].value),e[o].selected!==u&&(e[o].selected=u),u&&a&&(e[o].defaultSelected=!0)}else{for(o=""+re(o),t=null,u=0;u<e.length;u++){if(e[u].value===o){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function st(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sn(e,t){var o=t.value;if(o==null){if(o=t.children,t=t.defaultValue,o!=null){if(t!=null)throw Error(i(92));if(Rr(o)){if(1<o.length)throw Error(i(93));o=o[0]}t=o}t==null&&(t=""),o=t}e._wrapperState={initialValue:re(o)}}function Ts(e,t){var o=re(t.value),a=re(t.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),t.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),a!=null&&(e.defaultValue=""+a)}function Ps(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Tr(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 Qo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Tr(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Pr,uo=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,o,a,u){MSApp.execUnsafeLocalFunction(function(){return e(t,o,a,u)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Pr=Pr||document.createElement("div"),Pr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lt(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var Wn={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},qn=["Webkit","ms","Moz","O"];Object.keys(Wn).forEach(function(e){qn.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wn[t]=Wn[e]})});function Is(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||Wn.hasOwnProperty(e)&&Wn[e]?(""+t).trim():t+"px"}function As(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=o.indexOf("--")===0,u=Is(o,t[o],a);o==="float"&&(o="cssFloat"),a?e.setProperty(o,u):e[o]=u}}var Ms=I({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 fo(e,t){if(t){if(Ms[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 Zo(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 Ir=null;function zt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jo=null,Gn=null,Cn=null;function ei(e){if(e=xi(e)){if(typeof Jo!="function")throw Error(i(280));var t=e.stateNode;t&&(t=ea(t),Jo(e.stateNode,e.type,t))}}function Ne(e){Gn?Cn?Cn.push(e):Cn=[e]:Gn=e}function qe(){if(Gn){var e=Gn,t=Cn;if(Cn=Gn=null,ei(e),t)for(e=0;e<t.length;e++)ei(t[e])}}function Ze(e,t){return e(t)}function dt(){}var Yn=!1;function Ke(e,t,o){if(Yn)return e(t,o);Yn=!0;try{return Ze(e,t,o)}finally{Yn=!1,(Gn!==null||Cn!==null)&&(dt(),qe())}}function nt(e,t){var o=e.stateNode;if(o===null)return null;var a=ea(o);if(a===null)return null;o=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,t,typeof o));return o}var Kn=!1;if(f)try{var at={};Object.defineProperty(at,"passive",{get:function(){Kn=!0}}),window.addEventListener("test",at,at),window.removeEventListener("test",at,at)}catch{Kn=!1}function Tt(e,t,o,a,u,h,b,T,A){var V=Array.prototype.slice.call(arguments,3);try{t.apply(o,V)}catch(oe){this.onError(oe)}}var Xn=!1,Ot=null,ti=!1,_c=null,JE={onError:function(e){Xn=!0,Ot=e}};function eN(e,t,o,a,u,h,b,T,A){Xn=!1,Ot=null,Tt.apply(JE,arguments)}function tN(e,t,o,a,u,h,b,T,A){if(eN.apply(this,arguments),Xn){if(Xn){var V=Ot;Xn=!1,Ot=null}else throw Error(i(198));ti||(ti=!0,_c=V)}}function Ar(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function xg(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 bg(e){if(Ar(e)!==e)throw Error(i(188))}function nN(e){var t=e.alternate;if(!t){if(t=Ar(e),t===null)throw Error(i(188));return t!==e?null:e}for(var o=e,a=t;;){var u=o.return;if(u===null)break;var h=u.alternate;if(h===null){if(a=u.return,a!==null){o=a;continue}break}if(u.child===h.child){for(h=u.child;h;){if(h===o)return bg(u),e;if(h===a)return bg(u),t;h=h.sibling}throw Error(i(188))}if(o.return!==a.return)o=u,a=h;else{for(var b=!1,T=u.child;T;){if(T===o){b=!0,o=u,a=h;break}if(T===a){b=!0,a=u,o=h;break}T=T.sibling}if(!b){for(T=h.child;T;){if(T===o){b=!0,o=h,a=u;break}if(T===a){b=!0,a=h,o=u;break}T=T.sibling}if(!b)throw Error(i(189))}}if(o.alternate!==a)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:t}function kg(e){return e=nN(e),e!==null?Sg(e):null}function Sg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Sg(e);if(t!==null)return t;e=e.sibling}return null}var Cg=r.unstable_scheduleCallback,Eg=r.unstable_cancelCallback,rN=r.unstable_shouldYield,oN=r.unstable_requestPaint,Ge=r.unstable_now,iN=r.unstable_getCurrentPriorityLevel,Rc=r.unstable_ImmediatePriority,Ng=r.unstable_UserBlockingPriority,js=r.unstable_NormalPriority,sN=r.unstable_LowPriority,_g=r.unstable_IdlePriority,Ls=null,pn=null;function aN(e){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(Ls,e,void 0,(e.current.flags&128)===128)}catch{}}var Xt=Math.clz32?Math.clz32:uN,lN=Math.log,cN=Math.LN2;function uN(e){return e>>>=0,e===0?32:31-(lN(e)/cN|0)|0}var zs=64,Os=4194304;function ni(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 Ds(e,t){var o=e.pendingLanes;if(o===0)return 0;var a=0,u=e.suspendedLanes,h=e.pingedLanes,b=o&268435455;if(b!==0){var T=b&~u;T!==0?a=ni(T):(h&=b,h!==0&&(a=ni(h)))}else b=o&~u,b!==0?a=ni(b):h!==0&&(a=ni(h));if(a===0)return 0;if(t!==0&&t!==a&&(t&u)===0&&(u=a&-a,h=t&-t,u>=h||u===16&&(h&4194240)!==0))return t;if((a&4)!==0&&(a|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)o=31-Xt(t),u=1<<o,a|=e[o],t&=~u;return a}function dN(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 fN(e,t){for(var o=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,h=e.pendingLanes;0<h;){var b=31-Xt(h),T=1<<b,A=u[b];A===-1?((T&o)===0||(T&a)!==0)&&(u[b]=dN(T,t)):A<=t&&(e.expiredLanes|=T),h&=~T}}function Tc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rg(){var e=zs;return zs<<=1,(zs&4194240)===0&&(zs=64),e}function Pc(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function ri(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=o}function pN(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<o;){var u=31-Xt(o),h=1<<u;t[u]=0,a[u]=-1,e[u]=-1,o&=~h}}function Ic(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var a=31-Xt(o),u=1<<a;u&t|e[a]&t&&(e[a]|=t),o&=~u}}var Le=0;function Tg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Pg,Ac,Ig,Ag,Mg,Mc=!1,Fs=[],Qn=null,Zn=null,Jn=null,oi=new Map,ii=new Map,er=[],hN="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 jg(e,t){switch(e){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":oi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function si(e,t,o,a,u,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:o,eventSystemFlags:a,nativeEvent:h,targetContainers:[u]},t!==null&&(t=xi(t),t!==null&&Ac(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function mN(e,t,o,a,u){switch(t){case"focusin":return Qn=si(Qn,e,t,o,a,u),!0;case"dragenter":return Zn=si(Zn,e,t,o,a,u),!0;case"mouseover":return Jn=si(Jn,e,t,o,a,u),!0;case"pointerover":var h=u.pointerId;return oi.set(h,si(oi.get(h)||null,e,t,o,a,u)),!0;case"gotpointercapture":return h=u.pointerId,ii.set(h,si(ii.get(h)||null,e,t,o,a,u)),!0}return!1}function Lg(e){var t=Mr(e.target);if(t!==null){var o=Ar(t);if(o!==null){if(t=o.tag,t===13){if(t=xg(o),t!==null){e.blockedOn=t,Mg(e.priority,function(){Ig(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=Lc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var a=new o.constructor(o.type,o);Ir=a,o.target.dispatchEvent(a),Ir=null}else return t=xi(o),t!==null&&Ac(t),e.blockedOn=o,!1;t.shift()}return!0}function zg(e,t,o){Bs(e)&&o.delete(t)}function gN(){Mc=!1,Qn!==null&&Bs(Qn)&&(Qn=null),Zn!==null&&Bs(Zn)&&(Zn=null),Jn!==null&&Bs(Jn)&&(Jn=null),oi.forEach(zg),ii.forEach(zg)}function ai(e,t){e.blockedOn===t&&(e.blockedOn=null,Mc||(Mc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,gN)))}function li(e){function t(u){return ai(u,e)}if(0<Fs.length){ai(Fs[0],e);for(var o=1;o<Fs.length;o++){var a=Fs[o];a.blockedOn===e&&(a.blockedOn=null)}}for(Qn!==null&&ai(Qn,e),Zn!==null&&ai(Zn,e),Jn!==null&&ai(Jn,e),oi.forEach(t),ii.forEach(t),o=0;o<er.length;o++)a=er[o],a.blockedOn===e&&(a.blockedOn=null);for(;0<er.length&&(o=er[0],o.blockedOn===null);)Lg(o),o.blockedOn===null&&er.shift()}var po=M.ReactCurrentBatchConfig,$s=!0;function vN(e,t,o,a){var u=Le,h=po.transition;po.transition=null;try{Le=1,jc(e,t,o,a)}finally{Le=u,po.transition=h}}function yN(e,t,o,a){var u=Le,h=po.transition;po.transition=null;try{Le=4,jc(e,t,o,a)}finally{Le=u,po.transition=h}}function jc(e,t,o,a){if($s){var u=Lc(e,t,o,a);if(u===null)Zc(e,t,a,Us,o),jg(e,a);else if(mN(u,e,t,o,a))a.stopPropagation();else if(jg(e,a),t&4&&-1<hN.indexOf(e)){for(;u!==null;){var h=xi(u);if(h!==null&&Pg(h),h=Lc(e,t,o,a),h===null&&Zc(e,t,a,Us,o),h===u)break;u=h}u!==null&&a.stopPropagation()}else Zc(e,t,a,null,o)}}var Us=null;function Lc(e,t,o,a){if(Us=null,e=zt(a),e=Mr(e),e!==null)if(t=Ar(e),t===null)e=null;else if(o=t.tag,o===13){if(e=xg(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Us=e,null}function Og(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(iN()){case Rc:return 1;case Ng:return 4;case js:case sN:return 16;case _g:return 536870912;default:return 16}default:return 16}}var tr=null,zc=null,Hs=null;function Dg(){if(Hs)return Hs;var e,t=zc,o=t.length,a,u="value"in tr?tr.value:tr.textContent,h=u.length;for(e=0;e<o&&t[e]===u[e];e++);var b=o-e;for(a=1;a<=b&&t[o-a]===u[h-a];a++);return Hs=u.slice(e,1<a?1-a:void 0)}function Vs(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 Ws(){return!0}function Fg(){return!1}function Pt(e){function t(o,a,u,h,b){this._reactName=o,this._targetInst=u,this.type=a,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var T in e)e.hasOwnProperty(T)&&(o=e[T],this[T]=o?o(h):h[T]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Ws:Fg,this.isPropagationStopped=Fg,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Ws)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Ws)},persist:function(){},isPersistent:Ws}),t}var ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oc=Pt(ho),ci=I({},ho,{view:0,detail:0}),wN=Pt(ci),Dc,Fc,ui,qs=I({},ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$c,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!==ui&&(ui&&e.type==="mousemove"?(Dc=e.screenX-ui.screenX,Fc=e.screenY-ui.screenY):Fc=Dc=0,ui=e),Dc)},movementY:function(e){return"movementY"in e?e.movementY:Fc}}),Bg=Pt(qs),xN=I({},qs,{dataTransfer:0}),bN=Pt(xN),kN=I({},ci,{relatedTarget:0}),Bc=Pt(kN),SN=I({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),CN=Pt(SN),EN=I({},ho,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),NN=Pt(EN),_N=I({},ho,{data:0}),$g=Pt(_N),RN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TN={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"},PN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function IN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=PN[e])?!!t[e]:!1}function $c(){return IN}var AN=I({},ci,{key:function(e){if(e.key){var t=RN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TN[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$c,charCode:function(e){return e.type==="keypress"?Vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),MN=Pt(AN),jN=I({},qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ug=Pt(jN),LN=I({},ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$c}),zN=Pt(LN),ON=I({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),DN=Pt(ON),FN=I({},qs,{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}),BN=Pt(FN),$N=[9,13,27,32],Uc=f&&"CompositionEvent"in window,di=null;f&&"documentMode"in document&&(di=document.documentMode);var UN=f&&"TextEvent"in window&&!di,Hg=f&&(!Uc||di&&8<di&&11>=di),Vg=" ",Wg=!1;function qg(e,t){switch(e){case"keyup":return $N.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mo=!1;function HN(e,t){switch(e){case"compositionend":return Gg(t);case"keypress":return t.which!==32?null:(Wg=!0,Vg);case"textInput":return e=t.data,e===Vg&&Wg?null:e;default:return null}}function VN(e,t){if(mo)return e==="compositionend"||!Uc&&qg(e,t)?(e=Dg(),Hs=zc=tr=null,mo=!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 Hg&&t.locale!=="ko"?null:t.data;default:return null}}var WN={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 Yg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!WN[e.type]:t==="textarea"}function Kg(e,t,o,a){Ne(a),t=Qs(t,"onChange"),0<t.length&&(o=new Oc("onChange","change",null,o,a),e.push({event:o,listeners:t}))}var fi=null,pi=null;function qN(e){pv(e,0)}function Gs(e){var t=xo(e);if(Re(t))return e}function GN(e,t){if(e==="change")return t}var Xg=!1;if(f){var Hc;if(f){var Vc="oninput"in document;if(!Vc){var Qg=document.createElement("div");Qg.setAttribute("oninput","return;"),Vc=typeof Qg.oninput=="function"}Hc=Vc}else Hc=!1;Xg=Hc&&(!document.documentMode||9<document.documentMode)}function Zg(){fi&&(fi.detachEvent("onpropertychange",Jg),pi=fi=null)}function Jg(e){if(e.propertyName==="value"&&Gs(pi)){var t=[];Kg(t,pi,e,zt(e)),Ke(qN,t)}}function YN(e,t,o){e==="focusin"?(Zg(),fi=t,pi=o,fi.attachEvent("onpropertychange",Jg)):e==="focusout"&&Zg()}function KN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gs(pi)}function XN(e,t){if(e==="click")return Gs(t)}function QN(e,t){if(e==="input"||e==="change")return Gs(t)}function ZN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:ZN;function hi(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var u=o[a];if(!p.call(t,u)||!Qt(e[u],t[u]))return!1}return!0}function ev(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tv(e,t){var o=ev(e);e=0;for(var a;o;){if(o.nodeType===3){if(a=e+o.textContent.length,e<=t&&a>=t)return{node:o,offset:t-e};e=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=ev(o)}}function nv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rv(){for(var e=window,t=Fe();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch{o=!1}if(o)e=t.contentWindow;else break;t=Fe(e.document)}return t}function Wc(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 JN(e){var t=rv(),o=e.focusedElem,a=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&nv(o.ownerDocument.documentElement,o)){if(a!==null&&Wc(o)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=o.textContent.length,h=Math.min(a.start,u);a=a.end===void 0?h:Math.min(a.end,u),!e.extend&&h>a&&(u=a,a=h,h=u),u=tv(o,h);var b=tv(o,a);u&&b&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==b.node||e.focusOffset!==b.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),h>a?(e.addRange(t),e.extend(b.node,b.offset)):(t.setEnd(b.node,b.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<t.length;o++)e=t[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var e_=f&&"documentMode"in document&&11>=document.documentMode,go=null,qc=null,mi=null,Gc=!1;function ov(e,t,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Gc||go==null||go!==Fe(a)||(a=go,"selectionStart"in a&&Wc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),mi&&hi(mi,a)||(mi=a,a=Qs(qc,"onSelect"),0<a.length&&(t=new Oc("onSelect","select",null,t,o),e.push({event:t,listeners:a}),t.target=go)))}function Ys(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var vo={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},Yc={},iv={};f&&(iv=document.createElement("div").style,"AnimationEvent"in window||(delete vo.animationend.animation,delete vo.animationiteration.animation,delete vo.animationstart.animation),"TransitionEvent"in window||delete vo.transitionend.transition);function Ks(e){if(Yc[e])return Yc[e];if(!vo[e])return e;var t=vo[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in iv)return Yc[e]=t[o];return e}var sv=Ks("animationend"),av=Ks("animationiteration"),lv=Ks("animationstart"),cv=Ks("transitionend"),uv=new Map,dv="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 nr(e,t){uv.set(e,t),c(t,[e])}for(var Kc=0;Kc<dv.length;Kc++){var Xc=dv[Kc],t_=Xc.toLowerCase(),n_=Xc[0].toUpperCase()+Xc.slice(1);nr(t_,"on"+n_)}nr(sv,"onAnimationEnd"),nr(av,"onAnimationIteration"),nr(lv,"onAnimationStart"),nr("dblclick","onDoubleClick"),nr("focusin","onFocus"),nr("focusout","onBlur"),nr(cv,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gi="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(" "),r_=new Set("cancel close invalid load scroll toggle".split(" ").concat(gi));function fv(e,t,o){var a=e.type||"unknown-event";e.currentTarget=o,tN(a,t,void 0,e),e.currentTarget=null}function pv(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var a=e[o],u=a.event;a=a.listeners;e:{var h=void 0;if(t)for(var b=a.length-1;0<=b;b--){var T=a[b],A=T.instance,V=T.currentTarget;if(T=T.listener,A!==h&&u.isPropagationStopped())break e;fv(u,T,V),h=A}else for(b=0;b<a.length;b++){if(T=a[b],A=T.instance,V=T.currentTarget,T=T.listener,A!==h&&u.isPropagationStopped())break e;fv(u,T,V),h=A}}}if(ti)throw e=_c,ti=!1,_c=null,e}function Oe(e,t){var o=t[ou];o===void 0&&(o=t[ou]=new Set);var a=e+"__bubble";o.has(a)||(hv(t,e,2,!1),o.add(a))}function Qc(e,t,o){var a=0;t&&(a|=4),hv(o,e,a,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function vi(e){if(!e[Xs]){e[Xs]=!0,s.forEach(function(o){o!=="selectionchange"&&(r_.has(o)||Qc(o,!1,e),Qc(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,Qc("selectionchange",!1,t))}}function hv(e,t,o,a){switch(Og(t)){case 1:var u=vN;break;case 4:u=yN;break;default:u=jc}o=u.bind(null,t,o,e),u=void 0,!Kn||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,o,{capture:!0,passive:u}):e.addEventListener(t,o,!0):u!==void 0?e.addEventListener(t,o,{passive:u}):e.addEventListener(t,o,!1)}function Zc(e,t,o,a,u){var h=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var b=a.tag;if(b===3||b===4){var T=a.stateNode.containerInfo;if(T===u||T.nodeType===8&&T.parentNode===u)break;if(b===4)for(b=a.return;b!==null;){var A=b.tag;if((A===3||A===4)&&(A=b.stateNode.containerInfo,A===u||A.nodeType===8&&A.parentNode===u))return;b=b.return}for(;T!==null;){if(b=Mr(T),b===null)return;if(A=b.tag,A===5||A===6){a=h=b;continue e}T=T.parentNode}}a=a.return}Ke(function(){var V=h,oe=zt(o),se=[];e:{var te=uv.get(e);if(te!==void 0){var fe=Oc,me=e;switch(e){case"keypress":if(Vs(o)===0)break e;case"keydown":case"keyup":fe=MN;break;case"focusin":me="focus",fe=Bc;break;case"focusout":me="blur",fe=Bc;break;case"beforeblur":case"afterblur":fe=Bc;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=Bg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=bN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=zN;break;case sv:case av:case lv:fe=CN;break;case cv:fe=DN;break;case"scroll":fe=wN;break;case"wheel":fe=BN;break;case"copy":case"cut":case"paste":fe=NN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Ug}var ve=(t&4)!==0,Ye=!ve&&e==="scroll",B=ve?te!==null?te+"Capture":null:te;ve=[];for(var L=V,$;L!==null;){$=L;var le=$.stateNode;if($.tag===5&&le!==null&&($=le,B!==null&&(le=nt(L,B),le!=null&&ve.push(yi(L,le,$)))),Ye)break;L=L.return}0<ve.length&&(te=new fe(te,me,null,o,oe),se.push({event:te,listeners:ve}))}}if((t&7)===0){e:{if(te=e==="mouseover"||e==="pointerover",fe=e==="mouseout"||e==="pointerout",te&&o!==Ir&&(me=o.relatedTarget||o.fromElement)&&(Mr(me)||me[En]))break e;if((fe||te)&&(te=oe.window===oe?oe:(te=oe.ownerDocument)?te.defaultView||te.parentWindow:window,fe?(me=o.relatedTarget||o.toElement,fe=V,me=me?Mr(me):null,me!==null&&(Ye=Ar(me),me!==Ye||me.tag!==5&&me.tag!==6)&&(me=null)):(fe=null,me=V),fe!==me)){if(ve=Bg,le="onMouseLeave",B="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(ve=Ug,le="onPointerLeave",B="onPointerEnter",L="pointer"),Ye=fe==null?te:xo(fe),$=me==null?te:xo(me),te=new ve(le,L+"leave",fe,o,oe),te.target=Ye,te.relatedTarget=$,le=null,Mr(oe)===V&&(ve=new ve(B,L+"enter",me,o,oe),ve.target=$,ve.relatedTarget=Ye,le=ve),Ye=le,fe&&me)t:{for(ve=fe,B=me,L=0,$=ve;$;$=yo($))L++;for($=0,le=B;le;le=yo(le))$++;for(;0<L-$;)ve=yo(ve),L--;for(;0<$-L;)B=yo(B),$--;for(;L--;){if(ve===B||B!==null&&ve===B.alternate)break t;ve=yo(ve),B=yo(B)}ve=null}else ve=null;fe!==null&&mv(se,te,fe,ve,!1),me!==null&&Ye!==null&&mv(se,Ye,me,ve,!0)}}e:{if(te=V?xo(V):window,fe=te.nodeName&&te.nodeName.toLowerCase(),fe==="select"||fe==="input"&&te.type==="file")var xe=GN;else if(Yg(te))if(Xg)xe=QN;else{xe=KN;var ke=YN}else(fe=te.nodeName)&&fe.toLowerCase()==="input"&&(te.type==="checkbox"||te.type==="radio")&&(xe=XN);if(xe&&(xe=xe(e,V))){Kg(se,xe,o,oe);break e}ke&&ke(e,te,V),e==="focusout"&&(ke=te._wrapperState)&&ke.controlled&&te.type==="number"&&tt(te,"number",te.value)}switch(ke=V?xo(V):window,e){case"focusin":(Yg(ke)||ke.contentEditable==="true")&&(go=ke,qc=V,mi=null);break;case"focusout":mi=qc=go=null;break;case"mousedown":Gc=!0;break;case"contextmenu":case"mouseup":case"dragend":Gc=!1,ov(se,o,oe);break;case"selectionchange":if(e_)break;case"keydown":case"keyup":ov(se,o,oe)}var Se;if(Uc)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 mo?qg(e,o)&&(Ee="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Ee="onCompositionStart");Ee&&(Hg&&o.locale!=="ko"&&(mo||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&mo&&(Se=Dg()):(tr=oe,zc="value"in tr?tr.value:tr.textContent,mo=!0)),ke=Qs(V,Ee),0<ke.length&&(Ee=new $g(Ee,e,null,o,oe),se.push({event:Ee,listeners:ke}),Se?Ee.data=Se:(Se=Gg(o),Se!==null&&(Ee.data=Se)))),(Se=UN?HN(e,o):VN(e,o))&&(V=Qs(V,"onBeforeInput"),0<V.length&&(oe=new $g("onBeforeInput","beforeinput",null,o,oe),se.push({event:oe,listeners:V}),oe.data=Se))}pv(se,t)})}function yi(e,t,o){return{instance:e,listener:t,currentTarget:o}}function Qs(e,t){for(var o=t+"Capture",a=[];e!==null;){var u=e,h=u.stateNode;u.tag===5&&h!==null&&(u=h,h=nt(e,o),h!=null&&a.unshift(yi(e,h,u)),h=nt(e,t),h!=null&&a.push(yi(e,h,u))),e=e.return}return a}function yo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mv(e,t,o,a,u){for(var h=t._reactName,b=[];o!==null&&o!==a;){var T=o,A=T.alternate,V=T.stateNode;if(A!==null&&A===a)break;T.tag===5&&V!==null&&(T=V,u?(A=nt(o,h),A!=null&&b.unshift(yi(o,A,T))):u||(A=nt(o,h),A!=null&&b.push(yi(o,A,T)))),o=o.return}b.length!==0&&e.push({event:t,listeners:b})}var o_=/\r\n?/g,i_=/\u0000|\uFFFD/g;function gv(e){return(typeof e=="string"?e:""+e).replace(o_,`
38
- `).replace(i_,"")}function Zs(e,t,o){if(t=gv(t),gv(e)!==t&&o)throw Error(i(425))}function Js(){}var Jc=null,eu=null;function tu(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 nu=typeof setTimeout=="function"?setTimeout:void 0,s_=typeof clearTimeout=="function"?clearTimeout:void 0,vv=typeof Promise=="function"?Promise:void 0,a_=typeof queueMicrotask=="function"?queueMicrotask:typeof vv<"u"?function(e){return vv.resolve(null).then(e).catch(l_)}:nu;function l_(e){setTimeout(function(){throw e})}function ru(e,t){var o=t,a=0;do{var u=o.nextSibling;if(e.removeChild(o),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(a===0){e.removeChild(u),li(t);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=u}while(o);li(t)}function rr(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 yv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(t===0)return e;t--}else o==="/$"&&t++}e=e.previousSibling}return null}var wo=Math.random().toString(36).slice(2),hn="__reactFiber$"+wo,wi="__reactProps$"+wo,En="__reactContainer$"+wo,ou="__reactEvents$"+wo,c_="__reactListeners$"+wo,u_="__reactHandles$"+wo;function Mr(e){var t=e[hn];if(t)return t;for(var o=e.parentNode;o;){if(t=o[En]||o[hn]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=yv(e);e!==null;){if(o=e[hn])return o;e=yv(e)}return t}e=o,o=e.parentNode}return null}function xi(e){return e=e[hn]||e[En],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ea(e){return e[wi]||null}var iu=[],bo=-1;function or(e){return{current:e}}function De(e){0>bo||(e.current=iu[bo],iu[bo]=null,bo--)}function ze(e,t){bo++,iu[bo]=e.current,e.current=t}var ir={},ft=or(ir),kt=or(!1),jr=ir;function ko(e,t){var o=e.type.contextTypes;if(!o)return ir;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var u={},h;for(h in o)u[h]=t[h];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function St(e){return e=e.childContextTypes,e!=null}function ta(){De(kt),De(ft)}function wv(e,t,o){if(ft.current!==ir)throw Error(i(168));ze(ft,t),ze(kt,o)}function xv(e,t,o){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var u in a)if(!(u in t))throw Error(i(108,ie(e)||"Unknown",u));return I({},o,a)}function na(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ir,jr=ft.current,ze(ft,e),ze(kt,kt.current),!0}function bv(e,t,o){var a=e.stateNode;if(!a)throw Error(i(169));o?(e=xv(e,t,jr),a.__reactInternalMemoizedMergedChildContext=e,De(kt),De(ft),ze(ft,e)):De(kt),ze(kt,o)}var Nn=null,ra=!1,su=!1;function kv(e){Nn===null?Nn=[e]:Nn.push(e)}function d_(e){ra=!0,kv(e)}function sr(){if(!su&&Nn!==null){su=!0;var e=0,t=Le;try{var o=Nn;for(Le=1;e<o.length;e++){var a=o[e];do a=a(!0);while(a!==null)}Nn=null,ra=!1}catch(u){throw Nn!==null&&(Nn=Nn.slice(e+1)),Cg(Rc,sr),u}finally{Le=t,su=!1}}return null}var So=[],Co=0,oa=null,ia=0,Dt=[],Ft=0,Lr=null,_n=1,Rn="";function zr(e,t){So[Co++]=ia,So[Co++]=oa,oa=e,ia=t}function Sv(e,t,o){Dt[Ft++]=_n,Dt[Ft++]=Rn,Dt[Ft++]=Lr,Lr=e;var a=_n;e=Rn;var u=32-Xt(a)-1;a&=~(1<<u),o+=1;var h=32-Xt(t)+u;if(30<h){var b=u-u%5;h=(a&(1<<b)-1).toString(32),a>>=b,u-=b,_n=1<<32-Xt(t)+u|o<<u|a,Rn=h+e}else _n=1<<h|o<<u|a,Rn=e}function au(e){e.return!==null&&(zr(e,1),Sv(e,1,0))}function lu(e){for(;e===oa;)oa=So[--Co],So[Co]=null,ia=So[--Co],So[Co]=null;for(;e===Lr;)Lr=Dt[--Ft],Dt[Ft]=null,Rn=Dt[--Ft],Dt[Ft]=null,_n=Dt[--Ft],Dt[Ft]=null}var It=null,At=null,Be=!1,Zt=null;function Cv(e,t){var o=Ht(5,null,null,0);o.elementType="DELETED",o.stateNode=t,o.return=e,t=e.deletions,t===null?(e.deletions=[o],e.flags|=16):t.push(o)}function Ev(e,t){switch(e.tag){case 5:var o=e.type;return t=t.nodeType!==1||o.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,It=e,At=rr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,It=e,At=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(o=Lr!==null?{id:_n,overflow:Rn}:null,e.memoizedState={dehydrated:t,treeContext:o,retryLane:1073741824},o=Ht(18,null,null,0),o.stateNode=t,o.return=e,e.child=o,It=e,At=null,!0):!1;default:return!1}}function cu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uu(e){if(Be){var t=At;if(t){var o=t;if(!Ev(e,t)){if(cu(e))throw Error(i(418));t=rr(o.nextSibling);var a=It;t&&Ev(e,t)?Cv(a,o):(e.flags=e.flags&-4097|2,Be=!1,It=e)}}else{if(cu(e))throw Error(i(418));e.flags=e.flags&-4097|2,Be=!1,It=e}}}function Nv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;It=e}function sa(e){if(e!==It)return!1;if(!Be)return Nv(e),Be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tu(e.type,e.memoizedProps)),t&&(t=At)){if(cu(e))throw _v(),Error(i(418));for(;t;)Cv(e,t),t=rr(t.nextSibling)}if(Nv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(t===0){At=rr(e.nextSibling);break e}t--}else o!=="$"&&o!=="$!"&&o!=="$?"||t++}e=e.nextSibling}At=null}}else At=It?rr(e.stateNode.nextSibling):null;return!0}function _v(){for(var e=At;e;)e=rr(e.nextSibling)}function Eo(){At=It=null,Be=!1}function du(e){Zt===null?Zt=[e]:Zt.push(e)}var f_=M.ReactCurrentBatchConfig;function bi(e,t,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var a=o.stateNode}if(!a)throw Error(i(147,e));var u=a,h=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===h?t.ref:(t=function(b){var T=u.refs;b===null?delete T[h]:T[h]=b},t._stringRef=h,t)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function aa(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Rv(e){var t=e._init;return t(e._payload)}function Tv(e){function t(B,L){if(e){var $=B.deletions;$===null?(B.deletions=[L],B.flags|=16):$.push(L)}}function o(B,L){if(!e)return null;for(;L!==null;)t(B,L),L=L.sibling;return null}function a(B,L){for(B=new Map;L!==null;)L.key!==null?B.set(L.key,L):B.set(L.index,L),L=L.sibling;return B}function u(B,L){return B=hr(B,L),B.index=0,B.sibling=null,B}function h(B,L,$){return B.index=$,e?($=B.alternate,$!==null?($=$.index,$<L?(B.flags|=2,L):$):(B.flags|=2,L)):(B.flags|=1048576,L)}function b(B){return e&&B.alternate===null&&(B.flags|=2),B}function T(B,L,$,le){return L===null||L.tag!==6?(L=nd($,B.mode,le),L.return=B,L):(L=u(L,$),L.return=B,L)}function A(B,L,$,le){var xe=$.type;return xe===D?oe(B,L,$.props.children,le,$.key):L!==null&&(L.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Q&&Rv(xe)===L.type)?(le=u(L,$.props),le.ref=bi(B,L,$),le.return=B,le):(le=Ia($.type,$.key,$.props,null,B.mode,le),le.ref=bi(B,L,$),le.return=B,le)}function V(B,L,$,le){return L===null||L.tag!==4||L.stateNode.containerInfo!==$.containerInfo||L.stateNode.implementation!==$.implementation?(L=rd($,B.mode,le),L.return=B,L):(L=u(L,$.children||[]),L.return=B,L)}function oe(B,L,$,le,xe){return L===null||L.tag!==7?(L=Vr($,B.mode,le,xe),L.return=B,L):(L=u(L,$),L.return=B,L)}function se(B,L,$){if(typeof L=="string"&&L!==""||typeof L=="number")return L=nd(""+L,B.mode,$),L.return=B,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case W:return $=Ia(L.type,L.key,L.props,null,B.mode,$),$.ref=bi(B,null,L),$.return=B,$;case z:return L=rd(L,B.mode,$),L.return=B,L;case Q:var le=L._init;return se(B,le(L._payload),$)}if(Rr(L)||F(L))return L=Vr(L,B.mode,$,null),L.return=B,L;aa(B,L)}return null}function te(B,L,$,le){var xe=L!==null?L.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return xe!==null?null:T(B,L,""+$,le);if(typeof $=="object"&&$!==null){switch($.$$typeof){case W:return $.key===xe?A(B,L,$,le):null;case z:return $.key===xe?V(B,L,$,le):null;case Q:return xe=$._init,te(B,L,xe($._payload),le)}if(Rr($)||F($))return xe!==null?null:oe(B,L,$,le,null);aa(B,$)}return null}function fe(B,L,$,le,xe){if(typeof le=="string"&&le!==""||typeof le=="number")return B=B.get($)||null,T(L,B,""+le,xe);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case W:return B=B.get(le.key===null?$:le.key)||null,A(L,B,le,xe);case z:return B=B.get(le.key===null?$:le.key)||null,V(L,B,le,xe);case Q:var ke=le._init;return fe(B,L,$,ke(le._payload),xe)}if(Rr(le)||F(le))return B=B.get($)||null,oe(L,B,le,xe,null);aa(L,le)}return null}function me(B,L,$,le){for(var xe=null,ke=null,Se=L,Ee=L=0,it=null;Se!==null&&Ee<$.length;Ee++){Se.index>Ee?(it=Se,Se=null):it=Se.sibling;var je=te(B,Se,$[Ee],le);if(je===null){Se===null&&(Se=it);break}e&&Se&&je.alternate===null&&t(B,Se),L=h(je,L,Ee),ke===null?xe=je:ke.sibling=je,ke=je,Se=it}if(Ee===$.length)return o(B,Se),Be&&zr(B,Ee),xe;if(Se===null){for(;Ee<$.length;Ee++)Se=se(B,$[Ee],le),Se!==null&&(L=h(Se,L,Ee),ke===null?xe=Se:ke.sibling=Se,ke=Se);return Be&&zr(B,Ee),xe}for(Se=a(B,Se);Ee<$.length;Ee++)it=fe(Se,B,Ee,$[Ee],le),it!==null&&(e&&it.alternate!==null&&Se.delete(it.key===null?Ee:it.key),L=h(it,L,Ee),ke===null?xe=it:ke.sibling=it,ke=it);return e&&Se.forEach(function(mr){return t(B,mr)}),Be&&zr(B,Ee),xe}function ve(B,L,$,le){var xe=F($);if(typeof xe!="function")throw Error(i(150));if($=xe.call($),$==null)throw Error(i(151));for(var ke=xe=null,Se=L,Ee=L=0,it=null,je=$.next();Se!==null&&!je.done;Ee++,je=$.next()){Se.index>Ee?(it=Se,Se=null):it=Se.sibling;var mr=te(B,Se,je.value,le);if(mr===null){Se===null&&(Se=it);break}e&&Se&&mr.alternate===null&&t(B,Se),L=h(mr,L,Ee),ke===null?xe=mr:ke.sibling=mr,ke=mr,Se=it}if(je.done)return o(B,Se),Be&&zr(B,Ee),xe;if(Se===null){for(;!je.done;Ee++,je=$.next())je=se(B,je.value,le),je!==null&&(L=h(je,L,Ee),ke===null?xe=je:ke.sibling=je,ke=je);return Be&&zr(B,Ee),xe}for(Se=a(B,Se);!je.done;Ee++,je=$.next())je=fe(Se,B,Ee,je.value,le),je!==null&&(e&&je.alternate!==null&&Se.delete(je.key===null?Ee:je.key),L=h(je,L,Ee),ke===null?xe=je:ke.sibling=je,ke=je);return e&&Se.forEach(function(W_){return t(B,W_)}),Be&&zr(B,Ee),xe}function Ye(B,L,$,le){if(typeof $=="object"&&$!==null&&$.type===D&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case W:e:{for(var xe=$.key,ke=L;ke!==null;){if(ke.key===xe){if(xe=$.type,xe===D){if(ke.tag===7){o(B,ke.sibling),L=u(ke,$.props.children),L.return=B,B=L;break e}}else if(ke.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Q&&Rv(xe)===ke.type){o(B,ke.sibling),L=u(ke,$.props),L.ref=bi(B,ke,$),L.return=B,B=L;break e}o(B,ke);break}else t(B,ke);ke=ke.sibling}$.type===D?(L=Vr($.props.children,B.mode,le,$.key),L.return=B,B=L):(le=Ia($.type,$.key,$.props,null,B.mode,le),le.ref=bi(B,L,$),le.return=B,B=le)}return b(B);case z:e:{for(ke=$.key;L!==null;){if(L.key===ke)if(L.tag===4&&L.stateNode.containerInfo===$.containerInfo&&L.stateNode.implementation===$.implementation){o(B,L.sibling),L=u(L,$.children||[]),L.return=B,B=L;break e}else{o(B,L);break}else t(B,L);L=L.sibling}L=rd($,B.mode,le),L.return=B,B=L}return b(B);case Q:return ke=$._init,Ye(B,L,ke($._payload),le)}if(Rr($))return me(B,L,$,le);if(F($))return ve(B,L,$,le);aa(B,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,L!==null&&L.tag===6?(o(B,L.sibling),L=u(L,$),L.return=B,B=L):(o(B,L),L=nd($,B.mode,le),L.return=B,B=L),b(B)):o(B,L)}return Ye}var No=Tv(!0),Pv=Tv(!1),la=or(null),ca=null,_o=null,fu=null;function pu(){fu=_o=ca=null}function hu(e){var t=la.current;De(la),e._currentValue=t}function mu(e,t,o){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===o)break;e=e.return}}function Ro(e,t){ca=e,fu=_o=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ct=!0),e.firstContext=null)}function Bt(e){var t=e._currentValue;if(fu!==e)if(e={context:e,memoizedValue:t,next:null},_o===null){if(ca===null)throw Error(i(308));_o=e,ca.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var Or=null;function gu(e){Or===null?Or=[e]:Or.push(e)}function Iv(e,t,o,a){var u=t.interleaved;return u===null?(o.next=o,gu(t)):(o.next=u.next,u.next=o),t.interleaved=o,Tn(e,a)}function Tn(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var ar=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Av(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 Pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lr(e,t,o){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Me&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,Tn(e,o)}return u=a.interleaved,u===null?(t.next=t,gu(a)):(t.next=u.next,u.next=t),a.interleaved=t,Tn(e,o)}function ua(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,o|=a,t.lanes=o,Ic(e,o)}}function Mv(e,t){var o=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var u=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var b={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};h===null?u=h=b:h=h.next=b,o=o.next}while(o!==null);h===null?u=h=t:h=h.next=t}else u=h=t;o={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:h,shared:a.shared,effects:a.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function da(e,t,o,a){var u=e.updateQueue;ar=!1;var h=u.firstBaseUpdate,b=u.lastBaseUpdate,T=u.shared.pending;if(T!==null){u.shared.pending=null;var A=T,V=A.next;A.next=null,b===null?h=V:b.next=V,b=A;var oe=e.alternate;oe!==null&&(oe=oe.updateQueue,T=oe.lastBaseUpdate,T!==b&&(T===null?oe.firstBaseUpdate=V:T.next=V,oe.lastBaseUpdate=A))}if(h!==null){var se=u.baseState;b=0,oe=V=A=null,T=h;do{var te=T.lane,fe=T.eventTime;if((a&te)===te){oe!==null&&(oe=oe.next={eventTime:fe,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var me=e,ve=T;switch(te=t,fe=o,ve.tag){case 1:if(me=ve.payload,typeof me=="function"){se=me.call(fe,se,te);break e}se=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ve.payload,te=typeof me=="function"?me.call(fe,se,te):me,te==null)break e;se=I({},se,te);break e;case 2:ar=!0}}T.callback!==null&&T.lane!==0&&(e.flags|=64,te=u.effects,te===null?u.effects=[T]:te.push(T))}else fe={eventTime:fe,lane:te,tag:T.tag,payload:T.payload,callback:T.callback,next:null},oe===null?(V=oe=fe,A=se):oe=oe.next=fe,b|=te;if(T=T.next,T===null){if(T=u.shared.pending,T===null)break;te=T,T=te.next,te.next=null,u.lastBaseUpdate=te,u.shared.pending=null}}while(!0);if(oe===null&&(A=se),u.baseState=A,u.firstBaseUpdate=V,u.lastBaseUpdate=oe,t=u.shared.interleaved,t!==null){u=t;do b|=u.lane,u=u.next;while(u!==t)}else h===null&&(u.shared.lanes=0);Br|=b,e.lanes=b,e.memoizedState=se}}function jv(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],u=a.callback;if(u!==null){if(a.callback=null,a=o,typeof u!="function")throw Error(i(191,u));u.call(a)}}}var ki={},mn=or(ki),Si=or(ki),Ci=or(ki);function Dr(e){if(e===ki)throw Error(i(174));return e}function yu(e,t){switch(ze(Ci,t),ze(Si,e),ze(mn,ki),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qo(t,e)}De(mn),ze(mn,t)}function To(){De(mn),De(Si),De(Ci)}function Lv(e){Dr(Ci.current);var t=Dr(mn.current),o=Qo(t,e.type);t!==o&&(ze(Si,e),ze(mn,o))}function wu(e){Si.current===e&&(De(mn),De(Si))}var Ue=or(0);function fa(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=[];function bu(){for(var e=0;e<xu.length;e++)xu[e]._workInProgressVersionPrimary=null;xu.length=0}var pa=M.ReactCurrentDispatcher,ku=M.ReactCurrentBatchConfig,Fr=0,He=null,Je=null,rt=null,ha=!1,Ei=!1,Ni=0,p_=0;function pt(){throw Error(i(321))}function Su(e,t){if(t===null)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!Qt(e[o],t[o]))return!1;return!0}function Cu(e,t,o,a,u,h){if(Fr=h,He=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pa.current=e===null||e.memoizedState===null?v_:y_,e=o(a,u),Ei){h=0;do{if(Ei=!1,Ni=0,25<=h)throw Error(i(301));h+=1,rt=Je=null,t.updateQueue=null,pa.current=w_,e=o(a,u)}while(Ei)}if(pa.current=va,t=Je!==null&&Je.next!==null,Fr=0,rt=Je=He=null,ha=!1,t)throw Error(i(300));return e}function Eu(){var e=Ni!==0;return Ni=0,e}function gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?He.memoizedState=rt=e:rt=rt.next=e,rt}function $t(){if(Je===null){var e=He.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=rt===null?He.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?He.memoizedState=rt=e:rt=rt.next=e}return rt}function _i(e,t){return typeof t=="function"?t(e):t}function Nu(e){var t=$t(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var a=Je,u=a.baseQueue,h=o.pending;if(h!==null){if(u!==null){var b=u.next;u.next=h.next,h.next=b}a.baseQueue=u=h,o.pending=null}if(u!==null){h=u.next,a=a.baseState;var T=b=null,A=null,V=h;do{var oe=V.lane;if((Fr&oe)===oe)A!==null&&(A=A.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),a=V.hasEagerState?V.eagerState:e(a,V.action);else{var se={lane:oe,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};A===null?(T=A=se,b=a):A=A.next=se,He.lanes|=oe,Br|=oe}V=V.next}while(V!==null&&V!==h);A===null?b=a:A.next=T,Qt(a,t.memoizedState)||(Ct=!0),t.memoizedState=a,t.baseState=b,t.baseQueue=A,o.lastRenderedState=a}if(e=o.interleaved,e!==null){u=e;do h=u.lane,He.lanes|=h,Br|=h,u=u.next;while(u!==e)}else u===null&&(o.lanes=0);return[t.memoizedState,o.dispatch]}function _u(e){var t=$t(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var a=o.dispatch,u=o.pending,h=t.memoizedState;if(u!==null){o.pending=null;var b=u=u.next;do h=e(h,b.action),b=b.next;while(b!==u);Qt(h,t.memoizedState)||(Ct=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),o.lastRenderedState=h}return[h,a]}function zv(){}function Ov(e,t){var o=He,a=$t(),u=t(),h=!Qt(a.memoizedState,u);if(h&&(a.memoizedState=u,Ct=!0),a=a.queue,Ru(Bv.bind(null,o,a,e),[e]),a.getSnapshot!==t||h||rt!==null&&rt.memoizedState.tag&1){if(o.flags|=2048,Ri(9,Fv.bind(null,o,a,u,t),void 0,null),ot===null)throw Error(i(349));(Fr&30)!==0||Dv(o,t,u)}return u}function Dv(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function Fv(e,t,o,a){t.value=o,t.getSnapshot=a,$v(t)&&Uv(e)}function Bv(e,t,o){return o(function(){$v(t)&&Uv(e)})}function $v(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Qt(e,o)}catch{return!0}}function Uv(e){var t=Tn(e,1);t!==null&&nn(t,e,1,-1)}function Hv(e){var t=gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:e},t.queue=e,e=e.dispatch=g_.bind(null,He,e),[t.memoizedState,e]}function Ri(e,t,o,a){return e={tag:e,create:t,destroy:o,deps:a,next:null},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.updateQueue=t,t.lastEffect=e.next=e):(o=t.lastEffect,o===null?t.lastEffect=e.next=e:(a=o.next,o.next=e,e.next=a,t.lastEffect=e)),e}function Vv(){return $t().memoizedState}function ma(e,t,o,a){var u=gn();He.flags|=e,u.memoizedState=Ri(1|t,o,void 0,a===void 0?null:a)}function ga(e,t,o,a){var u=$t();a=a===void 0?null:a;var h=void 0;if(Je!==null){var b=Je.memoizedState;if(h=b.destroy,a!==null&&Su(a,b.deps)){u.memoizedState=Ri(t,o,h,a);return}}He.flags|=e,u.memoizedState=Ri(1|t,o,h,a)}function Wv(e,t){return ma(8390656,8,e,t)}function Ru(e,t){return ga(2048,8,e,t)}function qv(e,t){return ga(4,2,e,t)}function Gv(e,t){return ga(4,4,e,t)}function Yv(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 Kv(e,t,o){return o=o!=null?o.concat([e]):null,ga(4,4,Yv.bind(null,t,e),o)}function Tu(){}function Xv(e,t){var o=$t();t=t===void 0?null:t;var a=o.memoizedState;return a!==null&&t!==null&&Su(t,a[1])?a[0]:(o.memoizedState=[e,t],e)}function Qv(e,t){var o=$t();t=t===void 0?null:t;var a=o.memoizedState;return a!==null&&t!==null&&Su(t,a[1])?a[0]:(e=e(),o.memoizedState=[e,t],e)}function Zv(e,t,o){return(Fr&21)===0?(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=o):(Qt(o,t)||(o=Rg(),He.lanes|=o,Br|=o,e.baseState=!0),t)}function h_(e,t){var o=Le;Le=o!==0&&4>o?o:4,e(!0);var a=ku.transition;ku.transition={};try{e(!1),t()}finally{Le=o,ku.transition=a}}function Jv(){return $t().memoizedState}function m_(e,t,o){var a=fr(e);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},e0(e))t0(t,o);else if(o=Iv(e,t,o,a),o!==null){var u=yt();nn(o,e,a,u),n0(o,t,a)}}function g_(e,t,o){var a=fr(e),u={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(e0(e))t0(t,u);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var b=t.lastRenderedState,T=h(b,o);if(u.hasEagerState=!0,u.eagerState=T,Qt(T,b)){var A=t.interleaved;A===null?(u.next=u,gu(t)):(u.next=A.next,A.next=u),t.interleaved=u;return}}catch{}finally{}o=Iv(e,t,u,a),o!==null&&(u=yt(),nn(o,e,a,u),n0(o,t,a))}}function e0(e){var t=e.alternate;return e===He||t!==null&&t===He}function t0(e,t){Ei=ha=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function n0(e,t,o){if((o&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,o|=a,t.lanes=o,Ic(e,o)}}var va={readContext:Bt,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},v_={readContext:Bt,useCallback:function(e,t){return gn().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:Wv,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,ma(4194308,4,Yv.bind(null,t,e),o)},useLayoutEffect:function(e,t){return ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var o=gn();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var a=gn();return t=o!==void 0?o(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=m_.bind(null,He,e),[a.memoizedState,e]},useRef:function(e){var t=gn();return e={current:e},t.memoizedState=e},useState:Hv,useDebugValue:Tu,useDeferredValue:function(e){return gn().memoizedState=e},useTransition:function(){var e=Hv(!1),t=e[0];return e=h_.bind(null,e[1]),gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var a=He,u=gn();if(Be){if(o===void 0)throw Error(i(407));o=o()}else{if(o=t(),ot===null)throw Error(i(349));(Fr&30)!==0||Dv(a,t,o)}u.memoizedState=o;var h={value:o,getSnapshot:t};return u.queue=h,Wv(Bv.bind(null,a,h,e),[e]),a.flags|=2048,Ri(9,Fv.bind(null,a,h,o,t),void 0,null),o},useId:function(){var e=gn(),t=ot.identifierPrefix;if(Be){var o=Rn,a=_n;o=(a&~(1<<32-Xt(a)-1)).toString(32)+o,t=":"+t+"R"+o,o=Ni++,0<o&&(t+="H"+o.toString(32)),t+=":"}else o=p_++,t=":"+t+"r"+o.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},y_={readContext:Bt,useCallback:Xv,useContext:Bt,useEffect:Ru,useImperativeHandle:Kv,useInsertionEffect:qv,useLayoutEffect:Gv,useMemo:Qv,useReducer:Nu,useRef:Vv,useState:function(){return Nu(_i)},useDebugValue:Tu,useDeferredValue:function(e){var t=$t();return Zv(t,Je.memoizedState,e)},useTransition:function(){var e=Nu(_i)[0],t=$t().memoizedState;return[e,t]},useMutableSource:zv,useSyncExternalStore:Ov,useId:Jv,unstable_isNewReconciler:!1},w_={readContext:Bt,useCallback:Xv,useContext:Bt,useEffect:Ru,useImperativeHandle:Kv,useInsertionEffect:qv,useLayoutEffect:Gv,useMemo:Qv,useReducer:_u,useRef:Vv,useState:function(){return _u(_i)},useDebugValue:Tu,useDeferredValue:function(e){var t=$t();return Je===null?t.memoizedState=e:Zv(t,Je.memoizedState,e)},useTransition:function(){var e=_u(_i)[0],t=$t().memoizedState;return[e,t]},useMutableSource:zv,useSyncExternalStore:Ov,useId:Jv,unstable_isNewReconciler:!1};function Jt(e,t){if(e&&e.defaultProps){t=I({},t),e=e.defaultProps;for(var o in e)t[o]===void 0&&(t[o]=e[o]);return t}return t}function Pu(e,t,o,a){t=e.memoizedState,o=o(a,t),o=o==null?t:I({},t,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var ya={isMounted:function(e){return(e=e._reactInternals)?Ar(e)===e:!1},enqueueSetState:function(e,t,o){e=e._reactInternals;var a=yt(),u=fr(e),h=Pn(a,u);h.payload=t,o!=null&&(h.callback=o),t=lr(e,h,u),t!==null&&(nn(t,e,u,a),ua(t,e,u))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var a=yt(),u=fr(e),h=Pn(a,u);h.tag=1,h.payload=t,o!=null&&(h.callback=o),t=lr(e,h,u),t!==null&&(nn(t,e,u,a),ua(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=yt(),a=fr(e),u=Pn(o,a);u.tag=2,t!=null&&(u.callback=t),t=lr(e,u,a),t!==null&&(nn(t,e,a,o),ua(t,e,a))}};function r0(e,t,o,a,u,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,h,b):t.prototype&&t.prototype.isPureReactComponent?!hi(o,a)||!hi(u,h):!0}function o0(e,t,o){var a=!1,u=ir,h=t.contextType;return typeof h=="object"&&h!==null?h=Bt(h):(u=St(t)?jr:ft.current,a=t.contextTypes,h=(a=a!=null)?ko(e,u):ir),t=new t(o,h),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ya,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=h),t}function i0(e,t,o,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,a),t.state!==e&&ya.enqueueReplaceState(t,t.state,null)}function Iu(e,t,o,a){var u=e.stateNode;u.props=o,u.state=e.memoizedState,u.refs={},vu(e);var h=t.contextType;typeof h=="object"&&h!==null?u.context=Bt(h):(h=St(t)?jr:ft.current,u.context=ko(e,h)),u.state=e.memoizedState,h=t.getDerivedStateFromProps,typeof h=="function"&&(Pu(e,t,h,o),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&ya.enqueueReplaceState(u,u.state,null),da(e,o,u,a),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function Po(e,t){try{var o="",a=t;do o+=ee(a),a=a.return;while(a);var u=o}catch(h){u=`
37
+ `+u[b].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),A}while(1<=b&&0<=T);break}}}finally{H=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?O(e):""}function ee(e){switch(e.tag){case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 2:case 15:return e=J(e.type,!1),e;case 11:return e=J(e.type.render,!1),e;case 1:return e=J(e.type,!0),e;default:return""}}function ce(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case z:return"Portal";case q:return"Profiler";case j:return"StrictMode";case X:return"Suspense";case Y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case U:return(e.displayName||"Context")+".Consumer";case Z:return(e._context.displayName||"Context")+".Provider";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ue:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}function ie(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(t);case 8:return t===j?"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 re(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function de(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ye(e){var t=de(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,h=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(b){a=""+b,h.call(this,b)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _e(e){e._valueTracker||(e._valueTracker=ye(e))}function Re(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),a="";return e&&(a=de(e)?e.checked?"true":"false":e.value),e=a,e!==o?(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 $e(e,t){var o=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function fn(e,t){var o=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;o=re(t.value!=null?t.value:o),e._wrapperState={initialChecked:a,initialValue:o,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 o=re(t.value),a=t.type;if(o!=null)a==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tt(e,t.type,o):t.hasOwnProperty("defaultValue")&&tt(e,t.type,re(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tr(e,t,o){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function tt(e,t,o){(t!=="number"||Fe(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Pr=Array.isArray;function Wn(e,t,o,a){if(e=e.options,t){t={};for(var u=0;u<o.length;u++)t["$"+o[u]]=!0;for(o=0;o<e.length;o++)u=t.hasOwnProperty("$"+e[o].value),e[o].selected!==u&&(e[o].selected=u),u&&a&&(e[o].defaultSelected=!0)}else{for(o=""+re(o),t=null,u=0;u<e.length;u++){if(e[u].value===o){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function st(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sn(e,t){var o=t.value;if(o==null){if(o=t.children,t=t.defaultValue,o!=null){if(t!=null)throw Error(i(92));if(Pr(o)){if(1<o.length)throw Error(i(93));o=o[0]}t=o}t==null&&(t=""),o=t}e._wrapperState={initialValue:re(o)}}function Ts(e,t){var o=re(t.value),a=re(t.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),t.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),a!=null&&(e.defaultValue=""+a)}function Ps(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ir(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 Qo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ir(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ar,fo=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,o,a,u){MSApp.execUnsafeLocalFunction(function(){return e(t,o,a,u)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ar=Ar||document.createElement("div"),Ar.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ar.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lt(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var qn={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},Gn=["Webkit","ms","Moz","O"];Object.keys(qn).forEach(function(e){Gn.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qn[t]=qn[e]})});function Is(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||qn.hasOwnProperty(e)&&qn[e]?(""+t).trim():t+"px"}function As(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=o.indexOf("--")===0,u=Is(o,t[o],a);o==="float"&&(o="cssFloat"),a?e.setProperty(o,u):e[o]=u}}var Ms=I({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 po(e,t){if(t){if(Ms[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 Zo(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 Mr=null;function zt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jo=null,Yn=null,Cn=null;function ei(e){if(e=xi(e)){if(typeof Jo!="function")throw Error(i(280));var t=e.stateNode;t&&(t=ea(t),Jo(e.stateNode,e.type,t))}}function Ne(e){Yn?Cn?Cn.push(e):Cn=[e]:Yn=e}function qe(){if(Yn){var e=Yn,t=Cn;if(Cn=Yn=null,ei(e),t)for(e=0;e<t.length;e++)ei(t[e])}}function Ze(e,t){return e(t)}function dt(){}var Kn=!1;function Ke(e,t,o){if(Kn)return e(t,o);Kn=!0;try{return Ze(e,t,o)}finally{Kn=!1,(Yn!==null||Cn!==null)&&(dt(),qe())}}function nt(e,t){var o=e.stateNode;if(o===null)return null;var a=ea(o);if(a===null)return null;o=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,t,typeof o));return o}var Xn=!1;if(f)try{var at={};Object.defineProperty(at,"passive",{get:function(){Xn=!0}}),window.addEventListener("test",at,at),window.removeEventListener("test",at,at)}catch{Xn=!1}function Tt(e,t,o,a,u,h,b,T,A){var V=Array.prototype.slice.call(arguments,3);try{t.apply(o,V)}catch(oe){this.onError(oe)}}var Qn=!1,Ot=null,ti=!1,_c=null,nN={onError:function(e){Qn=!0,Ot=e}};function rN(e,t,o,a,u,h,b,T,A){Qn=!1,Ot=null,Tt.apply(nN,arguments)}function oN(e,t,o,a,u,h,b,T,A){if(rN.apply(this,arguments),Qn){if(Qn){var V=Ot;Qn=!1,Ot=null}else throw Error(i(198));ti||(ti=!0,_c=V)}}function jr(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function bg(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 kg(e){if(jr(e)!==e)throw Error(i(188))}function iN(e){var t=e.alternate;if(!t){if(t=jr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var o=e,a=t;;){var u=o.return;if(u===null)break;var h=u.alternate;if(h===null){if(a=u.return,a!==null){o=a;continue}break}if(u.child===h.child){for(h=u.child;h;){if(h===o)return kg(u),e;if(h===a)return kg(u),t;h=h.sibling}throw Error(i(188))}if(o.return!==a.return)o=u,a=h;else{for(var b=!1,T=u.child;T;){if(T===o){b=!0,o=u,a=h;break}if(T===a){b=!0,a=u,o=h;break}T=T.sibling}if(!b){for(T=h.child;T;){if(T===o){b=!0,o=h,a=u;break}if(T===a){b=!0,a=h,o=u;break}T=T.sibling}if(!b)throw Error(i(189))}}if(o.alternate!==a)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:t}function Sg(e){return e=iN(e),e!==null?Cg(e):null}function Cg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Cg(e);if(t!==null)return t;e=e.sibling}return null}var Eg=r.unstable_scheduleCallback,Ng=r.unstable_cancelCallback,sN=r.unstable_shouldYield,aN=r.unstable_requestPaint,Ge=r.unstable_now,lN=r.unstable_getCurrentPriorityLevel,Rc=r.unstable_ImmediatePriority,_g=r.unstable_UserBlockingPriority,js=r.unstable_NormalPriority,cN=r.unstable_LowPriority,Rg=r.unstable_IdlePriority,Ls=null,pn=null;function uN(e){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(Ls,e,void 0,(e.current.flags&128)===128)}catch{}}var Xt=Math.clz32?Math.clz32:pN,dN=Math.log,fN=Math.LN2;function pN(e){return e>>>=0,e===0?32:31-(dN(e)/fN|0)|0}var zs=64,Os=4194304;function ni(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 Ds(e,t){var o=e.pendingLanes;if(o===0)return 0;var a=0,u=e.suspendedLanes,h=e.pingedLanes,b=o&268435455;if(b!==0){var T=b&~u;T!==0?a=ni(T):(h&=b,h!==0&&(a=ni(h)))}else b=o&~u,b!==0?a=ni(b):h!==0&&(a=ni(h));if(a===0)return 0;if(t!==0&&t!==a&&(t&u)===0&&(u=a&-a,h=t&-t,u>=h||u===16&&(h&4194240)!==0))return t;if((a&4)!==0&&(a|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)o=31-Xt(t),u=1<<o,a|=e[o],t&=~u;return a}function hN(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 mN(e,t){for(var o=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,h=e.pendingLanes;0<h;){var b=31-Xt(h),T=1<<b,A=u[b];A===-1?((T&o)===0||(T&a)!==0)&&(u[b]=hN(T,t)):A<=t&&(e.expiredLanes|=T),h&=~T}}function Tc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Tg(){var e=zs;return zs<<=1,(zs&4194240)===0&&(zs=64),e}function Pc(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function ri(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=o}function gN(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<o;){var u=31-Xt(o),h=1<<u;t[u]=0,a[u]=-1,e[u]=-1,o&=~h}}function Ic(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var a=31-Xt(o),u=1<<a;u&t|e[a]&t&&(e[a]|=t),o&=~u}}var Le=0;function Pg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ig,Ac,Ag,Mg,jg,Mc=!1,Fs=[],Zn=null,Jn=null,er=null,oi=new Map,ii=new Map,tr=[],vN="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 Lg(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":oi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function si(e,t,o,a,u,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:o,eventSystemFlags:a,nativeEvent:h,targetContainers:[u]},t!==null&&(t=xi(t),t!==null&&Ac(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function yN(e,t,o,a,u){switch(t){case"focusin":return Zn=si(Zn,e,t,o,a,u),!0;case"dragenter":return Jn=si(Jn,e,t,o,a,u),!0;case"mouseover":return er=si(er,e,t,o,a,u),!0;case"pointerover":var h=u.pointerId;return oi.set(h,si(oi.get(h)||null,e,t,o,a,u)),!0;case"gotpointercapture":return h=u.pointerId,ii.set(h,si(ii.get(h)||null,e,t,o,a,u)),!0}return!1}function zg(e){var t=Lr(e.target);if(t!==null){var o=jr(t);if(o!==null){if(t=o.tag,t===13){if(t=bg(o),t!==null){e.blockedOn=t,jg(e.priority,function(){Ag(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=Lc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var a=new o.constructor(o.type,o);Mr=a,o.target.dispatchEvent(a),Mr=null}else return t=xi(o),t!==null&&Ac(t),e.blockedOn=o,!1;t.shift()}return!0}function Og(e,t,o){Bs(e)&&o.delete(t)}function wN(){Mc=!1,Zn!==null&&Bs(Zn)&&(Zn=null),Jn!==null&&Bs(Jn)&&(Jn=null),er!==null&&Bs(er)&&(er=null),oi.forEach(Og),ii.forEach(Og)}function ai(e,t){e.blockedOn===t&&(e.blockedOn=null,Mc||(Mc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,wN)))}function li(e){function t(u){return ai(u,e)}if(0<Fs.length){ai(Fs[0],e);for(var o=1;o<Fs.length;o++){var a=Fs[o];a.blockedOn===e&&(a.blockedOn=null)}}for(Zn!==null&&ai(Zn,e),Jn!==null&&ai(Jn,e),er!==null&&ai(er,e),oi.forEach(t),ii.forEach(t),o=0;o<tr.length;o++)a=tr[o],a.blockedOn===e&&(a.blockedOn=null);for(;0<tr.length&&(o=tr[0],o.blockedOn===null);)zg(o),o.blockedOn===null&&tr.shift()}var ho=M.ReactCurrentBatchConfig,$s=!0;function xN(e,t,o,a){var u=Le,h=ho.transition;ho.transition=null;try{Le=1,jc(e,t,o,a)}finally{Le=u,ho.transition=h}}function bN(e,t,o,a){var u=Le,h=ho.transition;ho.transition=null;try{Le=4,jc(e,t,o,a)}finally{Le=u,ho.transition=h}}function jc(e,t,o,a){if($s){var u=Lc(e,t,o,a);if(u===null)Zc(e,t,a,Us,o),Lg(e,a);else if(yN(u,e,t,o,a))a.stopPropagation();else if(Lg(e,a),t&4&&-1<vN.indexOf(e)){for(;u!==null;){var h=xi(u);if(h!==null&&Ig(h),h=Lc(e,t,o,a),h===null&&Zc(e,t,a,Us,o),h===u)break;u=h}u!==null&&a.stopPropagation()}else Zc(e,t,a,null,o)}}var Us=null;function Lc(e,t,o,a){if(Us=null,e=zt(a),e=Lr(e),e!==null)if(t=jr(e),t===null)e=null;else if(o=t.tag,o===13){if(e=bg(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Us=e,null}function Dg(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(lN()){case Rc:return 1;case _g:return 4;case js:case cN:return 16;case Rg:return 536870912;default:return 16}default:return 16}}var nr=null,zc=null,Hs=null;function Fg(){if(Hs)return Hs;var e,t=zc,o=t.length,a,u="value"in nr?nr.value:nr.textContent,h=u.length;for(e=0;e<o&&t[e]===u[e];e++);var b=o-e;for(a=1;a<=b&&t[o-a]===u[h-a];a++);return Hs=u.slice(e,1<a?1-a:void 0)}function Vs(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 Ws(){return!0}function Bg(){return!1}function Pt(e){function t(o,a,u,h,b){this._reactName=o,this._targetInst=u,this.type=a,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var T in e)e.hasOwnProperty(T)&&(o=e[T],this[T]=o?o(h):h[T]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Ws:Bg,this.isPropagationStopped=Bg,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Ws)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Ws)},persist:function(){},isPersistent:Ws}),t}var mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oc=Pt(mo),ci=I({},mo,{view:0,detail:0}),kN=Pt(ci),Dc,Fc,ui,qs=I({},ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$c,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!==ui&&(ui&&e.type==="mousemove"?(Dc=e.screenX-ui.screenX,Fc=e.screenY-ui.screenY):Fc=Dc=0,ui=e),Dc)},movementY:function(e){return"movementY"in e?e.movementY:Fc}}),$g=Pt(qs),SN=I({},qs,{dataTransfer:0}),CN=Pt(SN),EN=I({},ci,{relatedTarget:0}),Bc=Pt(EN),NN=I({},mo,{animationName:0,elapsedTime:0,pseudoElement:0}),_N=Pt(NN),RN=I({},mo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TN=Pt(RN),PN=I({},mo,{data:0}),Ug=Pt(PN),IN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AN={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"},MN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=MN[e])?!!t[e]:!1}function $c(){return jN}var LN=I({},ci,{key:function(e){if(e.key){var t=IN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?AN[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$c,charCode:function(e){return e.type==="keypress"?Vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zN=Pt(LN),ON=I({},qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hg=Pt(ON),DN=I({},ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$c}),FN=Pt(DN),BN=I({},mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),$N=Pt(BN),UN=I({},qs,{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}),HN=Pt(UN),VN=[9,13,27,32],Uc=f&&"CompositionEvent"in window,di=null;f&&"documentMode"in document&&(di=document.documentMode);var WN=f&&"TextEvent"in window&&!di,Vg=f&&(!Uc||di&&8<di&&11>=di),Wg=" ",qg=!1;function Gg(e,t){switch(e){case"keyup":return VN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var go=!1;function qN(e,t){switch(e){case"compositionend":return Yg(t);case"keypress":return t.which!==32?null:(qg=!0,Wg);case"textInput":return e=t.data,e===Wg&&qg?null:e;default:return null}}function GN(e,t){if(go)return e==="compositionend"||!Uc&&Gg(e,t)?(e=Fg(),Hs=zc=nr=null,go=!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 Vg&&t.locale!=="ko"?null:t.data;default:return null}}var YN={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 Kg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!YN[e.type]:t==="textarea"}function Xg(e,t,o,a){Ne(a),t=Qs(t,"onChange"),0<t.length&&(o=new Oc("onChange","change",null,o,a),e.push({event:o,listeners:t}))}var fi=null,pi=null;function KN(e){hv(e,0)}function Gs(e){var t=bo(e);if(Re(t))return e}function XN(e,t){if(e==="change")return t}var Qg=!1;if(f){var Hc;if(f){var Vc="oninput"in document;if(!Vc){var Zg=document.createElement("div");Zg.setAttribute("oninput","return;"),Vc=typeof Zg.oninput=="function"}Hc=Vc}else Hc=!1;Qg=Hc&&(!document.documentMode||9<document.documentMode)}function Jg(){fi&&(fi.detachEvent("onpropertychange",ev),pi=fi=null)}function ev(e){if(e.propertyName==="value"&&Gs(pi)){var t=[];Xg(t,pi,e,zt(e)),Ke(KN,t)}}function QN(e,t,o){e==="focusin"?(Jg(),fi=t,pi=o,fi.attachEvent("onpropertychange",ev)):e==="focusout"&&Jg()}function ZN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gs(pi)}function JN(e,t){if(e==="click")return Gs(t)}function e_(e,t){if(e==="input"||e==="change")return Gs(t)}function t_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:t_;function hi(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var u=o[a];if(!p.call(t,u)||!Qt(e[u],t[u]))return!1}return!0}function tv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nv(e,t){var o=tv(e);e=0;for(var a;o;){if(o.nodeType===3){if(a=e+o.textContent.length,e<=t&&a>=t)return{node:o,offset:t-e};e=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=tv(o)}}function rv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ov(){for(var e=window,t=Fe();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch{o=!1}if(o)e=t.contentWindow;else break;t=Fe(e.document)}return t}function Wc(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 n_(e){var t=ov(),o=e.focusedElem,a=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&rv(o.ownerDocument.documentElement,o)){if(a!==null&&Wc(o)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=o.textContent.length,h=Math.min(a.start,u);a=a.end===void 0?h:Math.min(a.end,u),!e.extend&&h>a&&(u=a,a=h,h=u),u=nv(o,h);var b=nv(o,a);u&&b&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==b.node||e.focusOffset!==b.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),h>a?(e.addRange(t),e.extend(b.node,b.offset)):(t.setEnd(b.node,b.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<t.length;o++)e=t[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var r_=f&&"documentMode"in document&&11>=document.documentMode,vo=null,qc=null,mi=null,Gc=!1;function iv(e,t,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Gc||vo==null||vo!==Fe(a)||(a=vo,"selectionStart"in a&&Wc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),mi&&hi(mi,a)||(mi=a,a=Qs(qc,"onSelect"),0<a.length&&(t=new Oc("onSelect","select",null,t,o),e.push({event:t,listeners:a}),t.target=vo)))}function Ys(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var yo={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},Yc={},sv={};f&&(sv=document.createElement("div").style,"AnimationEvent"in window||(delete yo.animationend.animation,delete yo.animationiteration.animation,delete yo.animationstart.animation),"TransitionEvent"in window||delete yo.transitionend.transition);function Ks(e){if(Yc[e])return Yc[e];if(!yo[e])return e;var t=yo[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in sv)return Yc[e]=t[o];return e}var av=Ks("animationend"),lv=Ks("animationiteration"),cv=Ks("animationstart"),uv=Ks("transitionend"),dv=new Map,fv="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 rr(e,t){dv.set(e,t),c(t,[e])}for(var Kc=0;Kc<fv.length;Kc++){var Xc=fv[Kc],o_=Xc.toLowerCase(),i_=Xc[0].toUpperCase()+Xc.slice(1);rr(o_,"on"+i_)}rr(av,"onAnimationEnd"),rr(lv,"onAnimationIteration"),rr(cv,"onAnimationStart"),rr("dblclick","onDoubleClick"),rr("focusin","onFocus"),rr("focusout","onBlur"),rr(uv,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gi="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(" "),s_=new Set("cancel close invalid load scroll toggle".split(" ").concat(gi));function pv(e,t,o){var a=e.type||"unknown-event";e.currentTarget=o,oN(a,t,void 0,e),e.currentTarget=null}function hv(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var a=e[o],u=a.event;a=a.listeners;e:{var h=void 0;if(t)for(var b=a.length-1;0<=b;b--){var T=a[b],A=T.instance,V=T.currentTarget;if(T=T.listener,A!==h&&u.isPropagationStopped())break e;pv(u,T,V),h=A}else for(b=0;b<a.length;b++){if(T=a[b],A=T.instance,V=T.currentTarget,T=T.listener,A!==h&&u.isPropagationStopped())break e;pv(u,T,V),h=A}}}if(ti)throw e=_c,ti=!1,_c=null,e}function Oe(e,t){var o=t[ou];o===void 0&&(o=t[ou]=new Set);var a=e+"__bubble";o.has(a)||(mv(t,e,2,!1),o.add(a))}function Qc(e,t,o){var a=0;t&&(a|=4),mv(o,e,a,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function vi(e){if(!e[Xs]){e[Xs]=!0,s.forEach(function(o){o!=="selectionchange"&&(s_.has(o)||Qc(o,!1,e),Qc(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,Qc("selectionchange",!1,t))}}function mv(e,t,o,a){switch(Dg(t)){case 1:var u=xN;break;case 4:u=bN;break;default:u=jc}o=u.bind(null,t,o,e),u=void 0,!Xn||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,o,{capture:!0,passive:u}):e.addEventListener(t,o,!0):u!==void 0?e.addEventListener(t,o,{passive:u}):e.addEventListener(t,o,!1)}function Zc(e,t,o,a,u){var h=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var b=a.tag;if(b===3||b===4){var T=a.stateNode.containerInfo;if(T===u||T.nodeType===8&&T.parentNode===u)break;if(b===4)for(b=a.return;b!==null;){var A=b.tag;if((A===3||A===4)&&(A=b.stateNode.containerInfo,A===u||A.nodeType===8&&A.parentNode===u))return;b=b.return}for(;T!==null;){if(b=Lr(T),b===null)return;if(A=b.tag,A===5||A===6){a=h=b;continue e}T=T.parentNode}}a=a.return}Ke(function(){var V=h,oe=zt(o),se=[];e:{var te=dv.get(e);if(te!==void 0){var fe=Oc,me=e;switch(e){case"keypress":if(Vs(o)===0)break e;case"keydown":case"keyup":fe=zN;break;case"focusin":me="focus",fe=Bc;break;case"focusout":me="blur",fe=Bc;break;case"beforeblur":case"afterblur":fe=Bc;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=$g;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=CN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=FN;break;case av:case lv:case cv:fe=_N;break;case uv:fe=$N;break;case"scroll":fe=kN;break;case"wheel":fe=HN;break;case"copy":case"cut":case"paste":fe=TN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Hg}var ve=(t&4)!==0,Ye=!ve&&e==="scroll",B=ve?te!==null?te+"Capture":null:te;ve=[];for(var L=V,$;L!==null;){$=L;var le=$.stateNode;if($.tag===5&&le!==null&&($=le,B!==null&&(le=nt(L,B),le!=null&&ve.push(yi(L,le,$)))),Ye)break;L=L.return}0<ve.length&&(te=new fe(te,me,null,o,oe),se.push({event:te,listeners:ve}))}}if((t&7)===0){e:{if(te=e==="mouseover"||e==="pointerover",fe=e==="mouseout"||e==="pointerout",te&&o!==Mr&&(me=o.relatedTarget||o.fromElement)&&(Lr(me)||me[En]))break e;if((fe||te)&&(te=oe.window===oe?oe:(te=oe.ownerDocument)?te.defaultView||te.parentWindow:window,fe?(me=o.relatedTarget||o.toElement,fe=V,me=me?Lr(me):null,me!==null&&(Ye=jr(me),me!==Ye||me.tag!==5&&me.tag!==6)&&(me=null)):(fe=null,me=V),fe!==me)){if(ve=$g,le="onMouseLeave",B="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(ve=Hg,le="onPointerLeave",B="onPointerEnter",L="pointer"),Ye=fe==null?te:bo(fe),$=me==null?te:bo(me),te=new ve(le,L+"leave",fe,o,oe),te.target=Ye,te.relatedTarget=$,le=null,Lr(oe)===V&&(ve=new ve(B,L+"enter",me,o,oe),ve.target=$,ve.relatedTarget=Ye,le=ve),Ye=le,fe&&me)t:{for(ve=fe,B=me,L=0,$=ve;$;$=wo($))L++;for($=0,le=B;le;le=wo(le))$++;for(;0<L-$;)ve=wo(ve),L--;for(;0<$-L;)B=wo(B),$--;for(;L--;){if(ve===B||B!==null&&ve===B.alternate)break t;ve=wo(ve),B=wo(B)}ve=null}else ve=null;fe!==null&&gv(se,te,fe,ve,!1),me!==null&&Ye!==null&&gv(se,Ye,me,ve,!0)}}e:{if(te=V?bo(V):window,fe=te.nodeName&&te.nodeName.toLowerCase(),fe==="select"||fe==="input"&&te.type==="file")var xe=XN;else if(Kg(te))if(Qg)xe=e_;else{xe=ZN;var ke=QN}else(fe=te.nodeName)&&fe.toLowerCase()==="input"&&(te.type==="checkbox"||te.type==="radio")&&(xe=JN);if(xe&&(xe=xe(e,V))){Xg(se,xe,o,oe);break e}ke&&ke(e,te,V),e==="focusout"&&(ke=te._wrapperState)&&ke.controlled&&te.type==="number"&&tt(te,"number",te.value)}switch(ke=V?bo(V):window,e){case"focusin":(Kg(ke)||ke.contentEditable==="true")&&(vo=ke,qc=V,mi=null);break;case"focusout":mi=qc=vo=null;break;case"mousedown":Gc=!0;break;case"contextmenu":case"mouseup":case"dragend":Gc=!1,iv(se,o,oe);break;case"selectionchange":if(r_)break;case"keydown":case"keyup":iv(se,o,oe)}var Se;if(Uc)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 go?Gg(e,o)&&(Ee="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Ee="onCompositionStart");Ee&&(Vg&&o.locale!=="ko"&&(go||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&go&&(Se=Fg()):(nr=oe,zc="value"in nr?nr.value:nr.textContent,go=!0)),ke=Qs(V,Ee),0<ke.length&&(Ee=new Ug(Ee,e,null,o,oe),se.push({event:Ee,listeners:ke}),Se?Ee.data=Se:(Se=Yg(o),Se!==null&&(Ee.data=Se)))),(Se=WN?qN(e,o):GN(e,o))&&(V=Qs(V,"onBeforeInput"),0<V.length&&(oe=new Ug("onBeforeInput","beforeinput",null,o,oe),se.push({event:oe,listeners:V}),oe.data=Se))}hv(se,t)})}function yi(e,t,o){return{instance:e,listener:t,currentTarget:o}}function Qs(e,t){for(var o=t+"Capture",a=[];e!==null;){var u=e,h=u.stateNode;u.tag===5&&h!==null&&(u=h,h=nt(e,o),h!=null&&a.unshift(yi(e,h,u)),h=nt(e,t),h!=null&&a.push(yi(e,h,u))),e=e.return}return a}function wo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gv(e,t,o,a,u){for(var h=t._reactName,b=[];o!==null&&o!==a;){var T=o,A=T.alternate,V=T.stateNode;if(A!==null&&A===a)break;T.tag===5&&V!==null&&(T=V,u?(A=nt(o,h),A!=null&&b.unshift(yi(o,A,T))):u||(A=nt(o,h),A!=null&&b.push(yi(o,A,T)))),o=o.return}b.length!==0&&e.push({event:t,listeners:b})}var a_=/\r\n?/g,l_=/\u0000|\uFFFD/g;function vv(e){return(typeof e=="string"?e:""+e).replace(a_,`
38
+ `).replace(l_,"")}function Zs(e,t,o){if(t=vv(t),vv(e)!==t&&o)throw Error(i(425))}function Js(){}var Jc=null,eu=null;function tu(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 nu=typeof setTimeout=="function"?setTimeout:void 0,c_=typeof clearTimeout=="function"?clearTimeout:void 0,yv=typeof Promise=="function"?Promise:void 0,u_=typeof queueMicrotask=="function"?queueMicrotask:typeof yv<"u"?function(e){return yv.resolve(null).then(e).catch(d_)}:nu;function d_(e){setTimeout(function(){throw e})}function ru(e,t){var o=t,a=0;do{var u=o.nextSibling;if(e.removeChild(o),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(a===0){e.removeChild(u),li(t);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=u}while(o);li(t)}function or(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 wv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(t===0)return e;t--}else o==="/$"&&t++}e=e.previousSibling}return null}var xo=Math.random().toString(36).slice(2),hn="__reactFiber$"+xo,wi="__reactProps$"+xo,En="__reactContainer$"+xo,ou="__reactEvents$"+xo,f_="__reactListeners$"+xo,p_="__reactHandles$"+xo;function Lr(e){var t=e[hn];if(t)return t;for(var o=e.parentNode;o;){if(t=o[En]||o[hn]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=wv(e);e!==null;){if(o=e[hn])return o;e=wv(e)}return t}e=o,o=e.parentNode}return null}function xi(e){return e=e[hn]||e[En],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ea(e){return e[wi]||null}var iu=[],ko=-1;function ir(e){return{current:e}}function De(e){0>ko||(e.current=iu[ko],iu[ko]=null,ko--)}function ze(e,t){ko++,iu[ko]=e.current,e.current=t}var sr={},ft=ir(sr),kt=ir(!1),zr=sr;function So(e,t){var o=e.type.contextTypes;if(!o)return sr;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var u={},h;for(h in o)u[h]=t[h];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function St(e){return e=e.childContextTypes,e!=null}function ta(){De(kt),De(ft)}function xv(e,t,o){if(ft.current!==sr)throw Error(i(168));ze(ft,t),ze(kt,o)}function bv(e,t,o){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var u in a)if(!(u in t))throw Error(i(108,ie(e)||"Unknown",u));return I({},o,a)}function na(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sr,zr=ft.current,ze(ft,e),ze(kt,kt.current),!0}function kv(e,t,o){var a=e.stateNode;if(!a)throw Error(i(169));o?(e=bv(e,t,zr),a.__reactInternalMemoizedMergedChildContext=e,De(kt),De(ft),ze(ft,e)):De(kt),ze(kt,o)}var Nn=null,ra=!1,su=!1;function Sv(e){Nn===null?Nn=[e]:Nn.push(e)}function h_(e){ra=!0,Sv(e)}function ar(){if(!su&&Nn!==null){su=!0;var e=0,t=Le;try{var o=Nn;for(Le=1;e<o.length;e++){var a=o[e];do a=a(!0);while(a!==null)}Nn=null,ra=!1}catch(u){throw Nn!==null&&(Nn=Nn.slice(e+1)),Eg(Rc,ar),u}finally{Le=t,su=!1}}return null}var Co=[],Eo=0,oa=null,ia=0,Dt=[],Ft=0,Or=null,_n=1,Rn="";function Dr(e,t){Co[Eo++]=ia,Co[Eo++]=oa,oa=e,ia=t}function Cv(e,t,o){Dt[Ft++]=_n,Dt[Ft++]=Rn,Dt[Ft++]=Or,Or=e;var a=_n;e=Rn;var u=32-Xt(a)-1;a&=~(1<<u),o+=1;var h=32-Xt(t)+u;if(30<h){var b=u-u%5;h=(a&(1<<b)-1).toString(32),a>>=b,u-=b,_n=1<<32-Xt(t)+u|o<<u|a,Rn=h+e}else _n=1<<h|o<<u|a,Rn=e}function au(e){e.return!==null&&(Dr(e,1),Cv(e,1,0))}function lu(e){for(;e===oa;)oa=Co[--Eo],Co[Eo]=null,ia=Co[--Eo],Co[Eo]=null;for(;e===Or;)Or=Dt[--Ft],Dt[Ft]=null,Rn=Dt[--Ft],Dt[Ft]=null,_n=Dt[--Ft],Dt[Ft]=null}var It=null,At=null,Be=!1,Zt=null;function Ev(e,t){var o=Ht(5,null,null,0);o.elementType="DELETED",o.stateNode=t,o.return=e,t=e.deletions,t===null?(e.deletions=[o],e.flags|=16):t.push(o)}function Nv(e,t){switch(e.tag){case 5:var o=e.type;return t=t.nodeType!==1||o.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,It=e,At=or(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,It=e,At=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(o=Or!==null?{id:_n,overflow:Rn}:null,e.memoizedState={dehydrated:t,treeContext:o,retryLane:1073741824},o=Ht(18,null,null,0),o.stateNode=t,o.return=e,e.child=o,It=e,At=null,!0):!1;default:return!1}}function cu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uu(e){if(Be){var t=At;if(t){var o=t;if(!Nv(e,t)){if(cu(e))throw Error(i(418));t=or(o.nextSibling);var a=It;t&&Nv(e,t)?Ev(a,o):(e.flags=e.flags&-4097|2,Be=!1,It=e)}}else{if(cu(e))throw Error(i(418));e.flags=e.flags&-4097|2,Be=!1,It=e}}}function _v(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;It=e}function sa(e){if(e!==It)return!1;if(!Be)return _v(e),Be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tu(e.type,e.memoizedProps)),t&&(t=At)){if(cu(e))throw Rv(),Error(i(418));for(;t;)Ev(e,t),t=or(t.nextSibling)}if(_v(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(t===0){At=or(e.nextSibling);break e}t--}else o!=="$"&&o!=="$!"&&o!=="$?"||t++}e=e.nextSibling}At=null}}else At=It?or(e.stateNode.nextSibling):null;return!0}function Rv(){for(var e=At;e;)e=or(e.nextSibling)}function No(){At=It=null,Be=!1}function du(e){Zt===null?Zt=[e]:Zt.push(e)}var m_=M.ReactCurrentBatchConfig;function bi(e,t,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var a=o.stateNode}if(!a)throw Error(i(147,e));var u=a,h=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===h?t.ref:(t=function(b){var T=u.refs;b===null?delete T[h]:T[h]=b},t._stringRef=h,t)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function aa(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Tv(e){var t=e._init;return t(e._payload)}function Pv(e){function t(B,L){if(e){var $=B.deletions;$===null?(B.deletions=[L],B.flags|=16):$.push(L)}}function o(B,L){if(!e)return null;for(;L!==null;)t(B,L),L=L.sibling;return null}function a(B,L){for(B=new Map;L!==null;)L.key!==null?B.set(L.key,L):B.set(L.index,L),L=L.sibling;return B}function u(B,L){return B=mr(B,L),B.index=0,B.sibling=null,B}function h(B,L,$){return B.index=$,e?($=B.alternate,$!==null?($=$.index,$<L?(B.flags|=2,L):$):(B.flags|=2,L)):(B.flags|=1048576,L)}function b(B){return e&&B.alternate===null&&(B.flags|=2),B}function T(B,L,$,le){return L===null||L.tag!==6?(L=nd($,B.mode,le),L.return=B,L):(L=u(L,$),L.return=B,L)}function A(B,L,$,le){var xe=$.type;return xe===D?oe(B,L,$.props.children,le,$.key):L!==null&&(L.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Q&&Tv(xe)===L.type)?(le=u(L,$.props),le.ref=bi(B,L,$),le.return=B,le):(le=Ia($.type,$.key,$.props,null,B.mode,le),le.ref=bi(B,L,$),le.return=B,le)}function V(B,L,$,le){return L===null||L.tag!==4||L.stateNode.containerInfo!==$.containerInfo||L.stateNode.implementation!==$.implementation?(L=rd($,B.mode,le),L.return=B,L):(L=u(L,$.children||[]),L.return=B,L)}function oe(B,L,$,le,xe){return L===null||L.tag!==7?(L=qr($,B.mode,le,xe),L.return=B,L):(L=u(L,$),L.return=B,L)}function se(B,L,$){if(typeof L=="string"&&L!==""||typeof L=="number")return L=nd(""+L,B.mode,$),L.return=B,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case W:return $=Ia(L.type,L.key,L.props,null,B.mode,$),$.ref=bi(B,null,L),$.return=B,$;case z:return L=rd(L,B.mode,$),L.return=B,L;case Q:var le=L._init;return se(B,le(L._payload),$)}if(Pr(L)||F(L))return L=qr(L,B.mode,$,null),L.return=B,L;aa(B,L)}return null}function te(B,L,$,le){var xe=L!==null?L.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return xe!==null?null:T(B,L,""+$,le);if(typeof $=="object"&&$!==null){switch($.$$typeof){case W:return $.key===xe?A(B,L,$,le):null;case z:return $.key===xe?V(B,L,$,le):null;case Q:return xe=$._init,te(B,L,xe($._payload),le)}if(Pr($)||F($))return xe!==null?null:oe(B,L,$,le,null);aa(B,$)}return null}function fe(B,L,$,le,xe){if(typeof le=="string"&&le!==""||typeof le=="number")return B=B.get($)||null,T(L,B,""+le,xe);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case W:return B=B.get(le.key===null?$:le.key)||null,A(L,B,le,xe);case z:return B=B.get(le.key===null?$:le.key)||null,V(L,B,le,xe);case Q:var ke=le._init;return fe(B,L,$,ke(le._payload),xe)}if(Pr(le)||F(le))return B=B.get($)||null,oe(L,B,le,xe,null);aa(L,le)}return null}function me(B,L,$,le){for(var xe=null,ke=null,Se=L,Ee=L=0,it=null;Se!==null&&Ee<$.length;Ee++){Se.index>Ee?(it=Se,Se=null):it=Se.sibling;var je=te(B,Se,$[Ee],le);if(je===null){Se===null&&(Se=it);break}e&&Se&&je.alternate===null&&t(B,Se),L=h(je,L,Ee),ke===null?xe=je:ke.sibling=je,ke=je,Se=it}if(Ee===$.length)return o(B,Se),Be&&Dr(B,Ee),xe;if(Se===null){for(;Ee<$.length;Ee++)Se=se(B,$[Ee],le),Se!==null&&(L=h(Se,L,Ee),ke===null?xe=Se:ke.sibling=Se,ke=Se);return Be&&Dr(B,Ee),xe}for(Se=a(B,Se);Ee<$.length;Ee++)it=fe(Se,B,Ee,$[Ee],le),it!==null&&(e&&it.alternate!==null&&Se.delete(it.key===null?Ee:it.key),L=h(it,L,Ee),ke===null?xe=it:ke.sibling=it,ke=it);return e&&Se.forEach(function(gr){return t(B,gr)}),Be&&Dr(B,Ee),xe}function ve(B,L,$,le){var xe=F($);if(typeof xe!="function")throw Error(i(150));if($=xe.call($),$==null)throw Error(i(151));for(var ke=xe=null,Se=L,Ee=L=0,it=null,je=$.next();Se!==null&&!je.done;Ee++,je=$.next()){Se.index>Ee?(it=Se,Se=null):it=Se.sibling;var gr=te(B,Se,je.value,le);if(gr===null){Se===null&&(Se=it);break}e&&Se&&gr.alternate===null&&t(B,Se),L=h(gr,L,Ee),ke===null?xe=gr:ke.sibling=gr,ke=gr,Se=it}if(je.done)return o(B,Se),Be&&Dr(B,Ee),xe;if(Se===null){for(;!je.done;Ee++,je=$.next())je=se(B,je.value,le),je!==null&&(L=h(je,L,Ee),ke===null?xe=je:ke.sibling=je,ke=je);return Be&&Dr(B,Ee),xe}for(Se=a(B,Se);!je.done;Ee++,je=$.next())je=fe(Se,B,Ee,je.value,le),je!==null&&(e&&je.alternate!==null&&Se.delete(je.key===null?Ee:je.key),L=h(je,L,Ee),ke===null?xe=je:ke.sibling=je,ke=je);return e&&Se.forEach(function(Y_){return t(B,Y_)}),Be&&Dr(B,Ee),xe}function Ye(B,L,$,le){if(typeof $=="object"&&$!==null&&$.type===D&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case W:e:{for(var xe=$.key,ke=L;ke!==null;){if(ke.key===xe){if(xe=$.type,xe===D){if(ke.tag===7){o(B,ke.sibling),L=u(ke,$.props.children),L.return=B,B=L;break e}}else if(ke.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Q&&Tv(xe)===ke.type){o(B,ke.sibling),L=u(ke,$.props),L.ref=bi(B,ke,$),L.return=B,B=L;break e}o(B,ke);break}else t(B,ke);ke=ke.sibling}$.type===D?(L=qr($.props.children,B.mode,le,$.key),L.return=B,B=L):(le=Ia($.type,$.key,$.props,null,B.mode,le),le.ref=bi(B,L,$),le.return=B,B=le)}return b(B);case z:e:{for(ke=$.key;L!==null;){if(L.key===ke)if(L.tag===4&&L.stateNode.containerInfo===$.containerInfo&&L.stateNode.implementation===$.implementation){o(B,L.sibling),L=u(L,$.children||[]),L.return=B,B=L;break e}else{o(B,L);break}else t(B,L);L=L.sibling}L=rd($,B.mode,le),L.return=B,B=L}return b(B);case Q:return ke=$._init,Ye(B,L,ke($._payload),le)}if(Pr($))return me(B,L,$,le);if(F($))return ve(B,L,$,le);aa(B,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,L!==null&&L.tag===6?(o(B,L.sibling),L=u(L,$),L.return=B,B=L):(o(B,L),L=nd($,B.mode,le),L.return=B,B=L),b(B)):o(B,L)}return Ye}var _o=Pv(!0),Iv=Pv(!1),la=ir(null),ca=null,Ro=null,fu=null;function pu(){fu=Ro=ca=null}function hu(e){var t=la.current;De(la),e._currentValue=t}function mu(e,t,o){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===o)break;e=e.return}}function To(e,t){ca=e,fu=Ro=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ct=!0),e.firstContext=null)}function Bt(e){var t=e._currentValue;if(fu!==e)if(e={context:e,memoizedValue:t,next:null},Ro===null){if(ca===null)throw Error(i(308));Ro=e,ca.dependencies={lanes:0,firstContext:e}}else Ro=Ro.next=e;return t}var Fr=null;function gu(e){Fr===null?Fr=[e]:Fr.push(e)}function Av(e,t,o,a){var u=t.interleaved;return u===null?(o.next=o,gu(t)):(o.next=u.next,u.next=o),t.interleaved=o,Tn(e,a)}function Tn(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var lr=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mv(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 Pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cr(e,t,o){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Me&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,Tn(e,o)}return u=a.interleaved,u===null?(t.next=t,gu(a)):(t.next=u.next,u.next=t),a.interleaved=t,Tn(e,o)}function ua(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,o|=a,t.lanes=o,Ic(e,o)}}function jv(e,t){var o=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var u=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var b={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};h===null?u=h=b:h=h.next=b,o=o.next}while(o!==null);h===null?u=h=t:h=h.next=t}else u=h=t;o={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:h,shared:a.shared,effects:a.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function da(e,t,o,a){var u=e.updateQueue;lr=!1;var h=u.firstBaseUpdate,b=u.lastBaseUpdate,T=u.shared.pending;if(T!==null){u.shared.pending=null;var A=T,V=A.next;A.next=null,b===null?h=V:b.next=V,b=A;var oe=e.alternate;oe!==null&&(oe=oe.updateQueue,T=oe.lastBaseUpdate,T!==b&&(T===null?oe.firstBaseUpdate=V:T.next=V,oe.lastBaseUpdate=A))}if(h!==null){var se=u.baseState;b=0,oe=V=A=null,T=h;do{var te=T.lane,fe=T.eventTime;if((a&te)===te){oe!==null&&(oe=oe.next={eventTime:fe,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var me=e,ve=T;switch(te=t,fe=o,ve.tag){case 1:if(me=ve.payload,typeof me=="function"){se=me.call(fe,se,te);break e}se=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ve.payload,te=typeof me=="function"?me.call(fe,se,te):me,te==null)break e;se=I({},se,te);break e;case 2:lr=!0}}T.callback!==null&&T.lane!==0&&(e.flags|=64,te=u.effects,te===null?u.effects=[T]:te.push(T))}else fe={eventTime:fe,lane:te,tag:T.tag,payload:T.payload,callback:T.callback,next:null},oe===null?(V=oe=fe,A=se):oe=oe.next=fe,b|=te;if(T=T.next,T===null){if(T=u.shared.pending,T===null)break;te=T,T=te.next,te.next=null,u.lastBaseUpdate=te,u.shared.pending=null}}while(!0);if(oe===null&&(A=se),u.baseState=A,u.firstBaseUpdate=V,u.lastBaseUpdate=oe,t=u.shared.interleaved,t!==null){u=t;do b|=u.lane,u=u.next;while(u!==t)}else h===null&&(u.shared.lanes=0);Ur|=b,e.lanes=b,e.memoizedState=se}}function Lv(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],u=a.callback;if(u!==null){if(a.callback=null,a=o,typeof u!="function")throw Error(i(191,u));u.call(a)}}}var ki={},mn=ir(ki),Si=ir(ki),Ci=ir(ki);function Br(e){if(e===ki)throw Error(i(174));return e}function yu(e,t){switch(ze(Ci,t),ze(Si,e),ze(mn,ki),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qo(t,e)}De(mn),ze(mn,t)}function Po(){De(mn),De(Si),De(Ci)}function zv(e){Br(Ci.current);var t=Br(mn.current),o=Qo(t,e.type);t!==o&&(ze(Si,e),ze(mn,o))}function wu(e){Si.current===e&&(De(mn),De(Si))}var Ue=ir(0);function fa(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=[];function bu(){for(var e=0;e<xu.length;e++)xu[e]._workInProgressVersionPrimary=null;xu.length=0}var pa=M.ReactCurrentDispatcher,ku=M.ReactCurrentBatchConfig,$r=0,He=null,Je=null,rt=null,ha=!1,Ei=!1,Ni=0,g_=0;function pt(){throw Error(i(321))}function Su(e,t){if(t===null)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!Qt(e[o],t[o]))return!1;return!0}function Cu(e,t,o,a,u,h){if($r=h,He=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pa.current=e===null||e.memoizedState===null?x_:b_,e=o(a,u),Ei){h=0;do{if(Ei=!1,Ni=0,25<=h)throw Error(i(301));h+=1,rt=Je=null,t.updateQueue=null,pa.current=k_,e=o(a,u)}while(Ei)}if(pa.current=va,t=Je!==null&&Je.next!==null,$r=0,rt=Je=He=null,ha=!1,t)throw Error(i(300));return e}function Eu(){var e=Ni!==0;return Ni=0,e}function gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?He.memoizedState=rt=e:rt=rt.next=e,rt}function $t(){if(Je===null){var e=He.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=rt===null?He.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?He.memoizedState=rt=e:rt=rt.next=e}return rt}function _i(e,t){return typeof t=="function"?t(e):t}function Nu(e){var t=$t(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var a=Je,u=a.baseQueue,h=o.pending;if(h!==null){if(u!==null){var b=u.next;u.next=h.next,h.next=b}a.baseQueue=u=h,o.pending=null}if(u!==null){h=u.next,a=a.baseState;var T=b=null,A=null,V=h;do{var oe=V.lane;if(($r&oe)===oe)A!==null&&(A=A.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),a=V.hasEagerState?V.eagerState:e(a,V.action);else{var se={lane:oe,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};A===null?(T=A=se,b=a):A=A.next=se,He.lanes|=oe,Ur|=oe}V=V.next}while(V!==null&&V!==h);A===null?b=a:A.next=T,Qt(a,t.memoizedState)||(Ct=!0),t.memoizedState=a,t.baseState=b,t.baseQueue=A,o.lastRenderedState=a}if(e=o.interleaved,e!==null){u=e;do h=u.lane,He.lanes|=h,Ur|=h,u=u.next;while(u!==e)}else u===null&&(o.lanes=0);return[t.memoizedState,o.dispatch]}function _u(e){var t=$t(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var a=o.dispatch,u=o.pending,h=t.memoizedState;if(u!==null){o.pending=null;var b=u=u.next;do h=e(h,b.action),b=b.next;while(b!==u);Qt(h,t.memoizedState)||(Ct=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),o.lastRenderedState=h}return[h,a]}function Ov(){}function Dv(e,t){var o=He,a=$t(),u=t(),h=!Qt(a.memoizedState,u);if(h&&(a.memoizedState=u,Ct=!0),a=a.queue,Ru($v.bind(null,o,a,e),[e]),a.getSnapshot!==t||h||rt!==null&&rt.memoizedState.tag&1){if(o.flags|=2048,Ri(9,Bv.bind(null,o,a,u,t),void 0,null),ot===null)throw Error(i(349));($r&30)!==0||Fv(o,t,u)}return u}function Fv(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function Bv(e,t,o,a){t.value=o,t.getSnapshot=a,Uv(t)&&Hv(e)}function $v(e,t,o){return o(function(){Uv(t)&&Hv(e)})}function Uv(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Qt(e,o)}catch{return!0}}function Hv(e){var t=Tn(e,1);t!==null&&nn(t,e,1,-1)}function Vv(e){var t=gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:e},t.queue=e,e=e.dispatch=w_.bind(null,He,e),[t.memoizedState,e]}function Ri(e,t,o,a){return e={tag:e,create:t,destroy:o,deps:a,next:null},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.updateQueue=t,t.lastEffect=e.next=e):(o=t.lastEffect,o===null?t.lastEffect=e.next=e:(a=o.next,o.next=e,e.next=a,t.lastEffect=e)),e}function Wv(){return $t().memoizedState}function ma(e,t,o,a){var u=gn();He.flags|=e,u.memoizedState=Ri(1|t,o,void 0,a===void 0?null:a)}function ga(e,t,o,a){var u=$t();a=a===void 0?null:a;var h=void 0;if(Je!==null){var b=Je.memoizedState;if(h=b.destroy,a!==null&&Su(a,b.deps)){u.memoizedState=Ri(t,o,h,a);return}}He.flags|=e,u.memoizedState=Ri(1|t,o,h,a)}function qv(e,t){return ma(8390656,8,e,t)}function Ru(e,t){return ga(2048,8,e,t)}function Gv(e,t){return ga(4,2,e,t)}function Yv(e,t){return ga(4,4,e,t)}function Kv(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 Xv(e,t,o){return o=o!=null?o.concat([e]):null,ga(4,4,Kv.bind(null,t,e),o)}function Tu(){}function Qv(e,t){var o=$t();t=t===void 0?null:t;var a=o.memoizedState;return a!==null&&t!==null&&Su(t,a[1])?a[0]:(o.memoizedState=[e,t],e)}function Zv(e,t){var o=$t();t=t===void 0?null:t;var a=o.memoizedState;return a!==null&&t!==null&&Su(t,a[1])?a[0]:(e=e(),o.memoizedState=[e,t],e)}function Jv(e,t,o){return($r&21)===0?(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=o):(Qt(o,t)||(o=Tg(),He.lanes|=o,Ur|=o,e.baseState=!0),t)}function v_(e,t){var o=Le;Le=o!==0&&4>o?o:4,e(!0);var a=ku.transition;ku.transition={};try{e(!1),t()}finally{Le=o,ku.transition=a}}function e0(){return $t().memoizedState}function y_(e,t,o){var a=pr(e);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},t0(e))n0(t,o);else if(o=Av(e,t,o,a),o!==null){var u=yt();nn(o,e,a,u),r0(o,t,a)}}function w_(e,t,o){var a=pr(e),u={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(t0(e))n0(t,u);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var b=t.lastRenderedState,T=h(b,o);if(u.hasEagerState=!0,u.eagerState=T,Qt(T,b)){var A=t.interleaved;A===null?(u.next=u,gu(t)):(u.next=A.next,A.next=u),t.interleaved=u;return}}catch{}finally{}o=Av(e,t,u,a),o!==null&&(u=yt(),nn(o,e,a,u),r0(o,t,a))}}function t0(e){var t=e.alternate;return e===He||t!==null&&t===He}function n0(e,t){Ei=ha=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function r0(e,t,o){if((o&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,o|=a,t.lanes=o,Ic(e,o)}}var va={readContext:Bt,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},x_={readContext:Bt,useCallback:function(e,t){return gn().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:qv,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,ma(4194308,4,Kv.bind(null,t,e),o)},useLayoutEffect:function(e,t){return ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var o=gn();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var a=gn();return t=o!==void 0?o(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=y_.bind(null,He,e),[a.memoizedState,e]},useRef:function(e){var t=gn();return e={current:e},t.memoizedState=e},useState:Vv,useDebugValue:Tu,useDeferredValue:function(e){return gn().memoizedState=e},useTransition:function(){var e=Vv(!1),t=e[0];return e=v_.bind(null,e[1]),gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var a=He,u=gn();if(Be){if(o===void 0)throw Error(i(407));o=o()}else{if(o=t(),ot===null)throw Error(i(349));($r&30)!==0||Fv(a,t,o)}u.memoizedState=o;var h={value:o,getSnapshot:t};return u.queue=h,qv($v.bind(null,a,h,e),[e]),a.flags|=2048,Ri(9,Bv.bind(null,a,h,o,t),void 0,null),o},useId:function(){var e=gn(),t=ot.identifierPrefix;if(Be){var o=Rn,a=_n;o=(a&~(1<<32-Xt(a)-1)).toString(32)+o,t=":"+t+"R"+o,o=Ni++,0<o&&(t+="H"+o.toString(32)),t+=":"}else o=g_++,t=":"+t+"r"+o.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},b_={readContext:Bt,useCallback:Qv,useContext:Bt,useEffect:Ru,useImperativeHandle:Xv,useInsertionEffect:Gv,useLayoutEffect:Yv,useMemo:Zv,useReducer:Nu,useRef:Wv,useState:function(){return Nu(_i)},useDebugValue:Tu,useDeferredValue:function(e){var t=$t();return Jv(t,Je.memoizedState,e)},useTransition:function(){var e=Nu(_i)[0],t=$t().memoizedState;return[e,t]},useMutableSource:Ov,useSyncExternalStore:Dv,useId:e0,unstable_isNewReconciler:!1},k_={readContext:Bt,useCallback:Qv,useContext:Bt,useEffect:Ru,useImperativeHandle:Xv,useInsertionEffect:Gv,useLayoutEffect:Yv,useMemo:Zv,useReducer:_u,useRef:Wv,useState:function(){return _u(_i)},useDebugValue:Tu,useDeferredValue:function(e){var t=$t();return Je===null?t.memoizedState=e:Jv(t,Je.memoizedState,e)},useTransition:function(){var e=_u(_i)[0],t=$t().memoizedState;return[e,t]},useMutableSource:Ov,useSyncExternalStore:Dv,useId:e0,unstable_isNewReconciler:!1};function Jt(e,t){if(e&&e.defaultProps){t=I({},t),e=e.defaultProps;for(var o in e)t[o]===void 0&&(t[o]=e[o]);return t}return t}function Pu(e,t,o,a){t=e.memoizedState,o=o(a,t),o=o==null?t:I({},t,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var ya={isMounted:function(e){return(e=e._reactInternals)?jr(e)===e:!1},enqueueSetState:function(e,t,o){e=e._reactInternals;var a=yt(),u=pr(e),h=Pn(a,u);h.payload=t,o!=null&&(h.callback=o),t=cr(e,h,u),t!==null&&(nn(t,e,u,a),ua(t,e,u))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var a=yt(),u=pr(e),h=Pn(a,u);h.tag=1,h.payload=t,o!=null&&(h.callback=o),t=cr(e,h,u),t!==null&&(nn(t,e,u,a),ua(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=yt(),a=pr(e),u=Pn(o,a);u.tag=2,t!=null&&(u.callback=t),t=cr(e,u,a),t!==null&&(nn(t,e,a,o),ua(t,e,a))}};function o0(e,t,o,a,u,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,h,b):t.prototype&&t.prototype.isPureReactComponent?!hi(o,a)||!hi(u,h):!0}function i0(e,t,o){var a=!1,u=sr,h=t.contextType;return typeof h=="object"&&h!==null?h=Bt(h):(u=St(t)?zr:ft.current,a=t.contextTypes,h=(a=a!=null)?So(e,u):sr),t=new t(o,h),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ya,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=h),t}function s0(e,t,o,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,a),t.state!==e&&ya.enqueueReplaceState(t,t.state,null)}function Iu(e,t,o,a){var u=e.stateNode;u.props=o,u.state=e.memoizedState,u.refs={},vu(e);var h=t.contextType;typeof h=="object"&&h!==null?u.context=Bt(h):(h=St(t)?zr:ft.current,u.context=So(e,h)),u.state=e.memoizedState,h=t.getDerivedStateFromProps,typeof h=="function"&&(Pu(e,t,h,o),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&ya.enqueueReplaceState(u,u.state,null),da(e,o,u,a),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function Io(e,t){try{var o="",a=t;do o+=ee(a),a=a.return;while(a);var u=o}catch(h){u=`
39
39
  Error generating stack: `+h.message+`
40
- `+h.stack}return{value:e,source:t,stack:u,digest:null}}function Au(e,t,o){return{value:e,source:null,stack:o??null,digest:t??null}}function Mu(e,t){try{console.error(t.value)}catch(o){setTimeout(function(){throw o})}}var x_=typeof WeakMap=="function"?WeakMap:Map;function s0(e,t,o){o=Pn(-1,o),o.tag=3,o.payload={element:null};var a=t.value;return o.callback=function(){Ea||(Ea=!0,Yu=a),Mu(e,t)},o}function a0(e,t,o){o=Pn(-1,o),o.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var u=t.value;o.payload=function(){return a(u)},o.callback=function(){Mu(e,t)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(o.callback=function(){Mu(e,t),typeof a!="function"&&(ur===null?ur=new Set([this]):ur.add(this));var b=t.stack;this.componentDidCatch(t.value,{componentStack:b!==null?b:""})}),o}function l0(e,t,o){var a=e.pingCache;if(a===null){a=e.pingCache=new x_;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(o)||(u.add(o),e=j_.bind(null,e,t,o),t.then(e,e))}function c0(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 u0(e,t,o,a,u){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(t=Pn(-1,1),t.tag=2,lr(o,t,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=u,e)}var b_=M.ReactCurrentOwner,Ct=!1;function vt(e,t,o,a){t.child=e===null?Pv(t,null,o,a):No(t,e.child,o,a)}function d0(e,t,o,a,u){o=o.render;var h=t.ref;return Ro(t,u),a=Cu(e,t,o,a,h,u),o=Eu(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,In(e,t,u)):(Be&&o&&au(t),t.flags|=1,vt(e,t,a,u),t.child)}function f0(e,t,o,a,u){if(e===null){var h=o.type;return typeof h=="function"&&!td(h)&&h.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=h,p0(e,t,h,a,u)):(e=Ia(o.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,(e.lanes&u)===0){var b=h.memoizedProps;if(o=o.compare,o=o!==null?o:hi,o(b,a)&&e.ref===t.ref)return In(e,t,u)}return t.flags|=1,e=hr(h,a),e.ref=t.ref,e.return=t,t.child=e}function p0(e,t,o,a,u){if(e!==null){var h=e.memoizedProps;if(hi(h,a)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=a=h,(e.lanes&u)!==0)(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,In(e,t,u)}return ju(e,t,o,a,u)}function h0(e,t,o){var a=t.pendingProps,u=a.children,h=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(Ao,Mt),Mt|=o;else{if((o&1073741824)===0)return e=h!==null?h.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ze(Ao,Mt),Mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=h!==null?h.baseLanes:o,ze(Ao,Mt),Mt|=a}else h!==null?(a=h.baseLanes|o,t.memoizedState=null):a=o,ze(Ao,Mt),Mt|=a;return vt(e,t,u,o),t.child}function m0(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function ju(e,t,o,a,u){var h=St(o)?jr:ft.current;return h=ko(t,h),Ro(t,u),o=Cu(e,t,o,a,h,u),a=Eu(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,In(e,t,u)):(Be&&a&&au(t),t.flags|=1,vt(e,t,o,u),t.child)}function g0(e,t,o,a,u){if(St(o)){var h=!0;na(t)}else h=!1;if(Ro(t,u),t.stateNode===null)xa(e,t),o0(t,o,a),Iu(t,o,a,u),a=!0;else if(e===null){var b=t.stateNode,T=t.memoizedProps;b.props=T;var A=b.context,V=o.contextType;typeof V=="object"&&V!==null?V=Bt(V):(V=St(o)?jr:ft.current,V=ko(t,V));var oe=o.getDerivedStateFromProps,se=typeof oe=="function"||typeof b.getSnapshotBeforeUpdate=="function";se||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(T!==a||A!==V)&&i0(t,b,a,V),ar=!1;var te=t.memoizedState;b.state=te,da(t,a,b,u),A=t.memoizedState,T!==a||te!==A||kt.current||ar?(typeof oe=="function"&&(Pu(t,o,oe,a),A=t.memoizedState),(T=ar||r0(t,o,T,a,te,A,V))?(se||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(t.flags|=4194308)):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),b.props=a,b.state=A,b.context=V,a=T):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{b=t.stateNode,Av(e,t),T=t.memoizedProps,V=t.type===t.elementType?T:Jt(t.type,T),b.props=V,se=t.pendingProps,te=b.context,A=o.contextType,typeof A=="object"&&A!==null?A=Bt(A):(A=St(o)?jr:ft.current,A=ko(t,A));var fe=o.getDerivedStateFromProps;(oe=typeof fe=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(T!==se||te!==A)&&i0(t,b,a,A),ar=!1,te=t.memoizedState,b.state=te,da(t,a,b,u);var me=t.memoizedState;T!==se||te!==me||kt.current||ar?(typeof fe=="function"&&(Pu(t,o,fe,a),me=t.memoizedState),(V=ar||r0(t,o,V,a,te,me,A)||!1)?(oe||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(a,me,A),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(a,me,A)),typeof b.componentDidUpdate=="function"&&(t.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof b.componentDidUpdate!="function"||T===e.memoizedProps&&te===e.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&te===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=me),b.props=a,b.state=me,b.context=A,a=V):(typeof b.componentDidUpdate!="function"||T===e.memoizedProps&&te===e.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&te===e.memoizedState||(t.flags|=1024),a=!1)}return Lu(e,t,o,a,h,u)}function Lu(e,t,o,a,u,h){m0(e,t);var b=(t.flags&128)!==0;if(!a&&!b)return u&&bv(t,o,!1),In(e,t,h);a=t.stateNode,b_.current=t;var T=b&&typeof o.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&b?(t.child=No(t,e.child,null,h),t.child=No(t,null,T,h)):vt(e,t,T,h),t.memoizedState=a.state,u&&bv(t,o,!0),t.child}function v0(e){var t=e.stateNode;t.pendingContext?wv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wv(e,t.context,!1),yu(e,t.containerInfo)}function y0(e,t,o,a,u){return Eo(),du(u),t.flags|=256,vt(e,t,o,a),t.child}var zu={dehydrated:null,treeContext:null,retryLane:0};function Ou(e){return{baseLanes:e,cachePool:null,transitions:null}}function w0(e,t,o){var a=t.pendingProps,u=Ue.current,h=!1,b=(t.flags&128)!==0,T;if((T=b)||(T=e!==null&&e.memoizedState===null?!1:(u&2)!==0),T?(h=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),ze(Ue,u&1),e===null)return uu(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):(b=a.children,e=a.fallback,h?(a=t.mode,h=t.child,b={mode:"hidden",children:b},(a&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=b):h=Aa(b,a,0,null),e=Vr(e,a,o,null),h.return=t,e.return=t,h.sibling=e,t.child=h,t.child.memoizedState=Ou(o),t.memoizedState=zu,e):Du(t,b));if(u=e.memoizedState,u!==null&&(T=u.dehydrated,T!==null))return k_(e,t,b,a,T,u,o);if(h){h=a.fallback,b=t.mode,u=e.child,T=u.sibling;var A={mode:"hidden",children:a.children};return(b&1)===0&&t.child!==u?(a=t.child,a.childLanes=0,a.pendingProps=A,t.deletions=null):(a=hr(u,A),a.subtreeFlags=u.subtreeFlags&14680064),T!==null?h=hr(T,h):(h=Vr(h,b,o,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,a=h,h=t.child,b=e.child.memoizedState,b=b===null?Ou(o):{baseLanes:b.baseLanes|o,cachePool:null,transitions:b.transitions},h.memoizedState=b,h.childLanes=e.childLanes&~o,t.memoizedState=zu,a}return h=e.child,e=h.sibling,a=hr(h,{mode:"visible",children:a.children}),(t.mode&1)===0&&(a.lanes=o),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Du(e,t){return t=Aa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wa(e,t,o,a){return a!==null&&du(a),No(t,e.child,null,o),e=Du(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function k_(e,t,o,a,u,h,b){if(o)return t.flags&256?(t.flags&=-257,a=Au(Error(i(422))),wa(e,t,b,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(h=a.fallback,u=t.mode,a=Aa({mode:"visible",children:a.children},u,0,null),h=Vr(h,u,b,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,(t.mode&1)!==0&&No(t,e.child,null,b),t.child.memoizedState=Ou(b),t.memoizedState=zu,h);if((t.mode&1)===0)return wa(e,t,b,null);if(u.data==="$!"){if(a=u.nextSibling&&u.nextSibling.dataset,a)var T=a.dgst;return a=T,h=Error(i(419)),a=Au(h,a,void 0),wa(e,t,b,a)}if(T=(b&e.childLanes)!==0,Ct||T){if(a=ot,a!==null){switch(b&-b){case 4:u=2;break;case 16:u=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:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(a.suspendedLanes|b))!==0?0:u,u!==0&&u!==h.retryLane&&(h.retryLane=u,Tn(e,u),nn(a,e,u,-1))}return ed(),a=Au(Error(i(421))),wa(e,t,b,a)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=L_.bind(null,e),u._reactRetry=t,null):(e=h.treeContext,At=rr(u.nextSibling),It=t,Be=!0,Zt=null,e!==null&&(Dt[Ft++]=_n,Dt[Ft++]=Rn,Dt[Ft++]=Lr,_n=e.id,Rn=e.overflow,Lr=t),t=Du(t,a.children),t.flags|=4096,t)}function x0(e,t,o){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),mu(e.return,t,o)}function Fu(e,t,o,a,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=o,h.tailMode=u)}function b0(e,t,o){var a=t.pendingProps,u=a.revealOrder,h=a.tail;if(vt(e,t,a.children,o),a=Ue.current,(a&2)!==0)a=a&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&&x0(e,o,t);else if(e.tag===19)x0(e,o,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(ze(Ue,a),(t.mode&1)===0)t.memoizedState=null;else switch(u){case"forwards":for(o=t.child,u=null;o!==null;)e=o.alternate,e!==null&&fa(e)===null&&(u=o),o=o.sibling;o=u,o===null?(u=t.child,t.child=null):(u=o.sibling,o.sibling=null),Fu(t,!1,u,o,h);break;case"backwards":for(o=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&fa(e)===null){t.child=u;break}e=u.sibling,u.sibling=o,o=u,u=e}Fu(t,!0,o,null,h);break;case"together":Fu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xa(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function In(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),Br|=t.lanes,(o&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,o=hr(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=hr(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function S_(e,t,o){switch(t.tag){case 3:v0(t),Eo();break;case 5:Lv(t);break;case 1:St(t.type)&&na(t);break;case 4:yu(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,u=t.memoizedProps.value;ze(la,a._currentValue),a._currentValue=u;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(ze(Ue,Ue.current&1),t.flags|=128,null):(o&t.child.childLanes)!==0?w0(e,t,o):(ze(Ue,Ue.current&1),e=In(e,t,o),e!==null?e.sibling:null);ze(Ue,Ue.current&1);break;case 19:if(a=(o&t.childLanes)!==0,(e.flags&128)!==0){if(a)return b0(e,t,o);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ze(Ue,Ue.current),a)break;return null;case 22:case 23:return t.lanes=0,h0(e,t,o)}return In(e,t,o)}var k0,Bu,S0,C0;k0=function(e,t){for(var o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Bu=function(){},S0=function(e,t,o,a){var u=e.memoizedProps;if(u!==a){e=t.stateNode,Dr(mn.current);var h=null;switch(o){case"input":u=$e(e,u),a=$e(e,a),h=[];break;case"select":u=I({},u,{value:void 0}),a=I({},a,{value:void 0}),h=[];break;case"textarea":u=st(e,u),a=st(e,a),h=[];break;default:typeof u.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Js)}fo(o,a);var b;o=null;for(V in u)if(!a.hasOwnProperty(V)&&u.hasOwnProperty(V)&&u[V]!=null)if(V==="style"){var T=u[V];for(b in T)T.hasOwnProperty(b)&&(o||(o={}),o[b]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(l.hasOwnProperty(V)?h||(h=[]):(h=h||[]).push(V,null));for(V in a){var A=a[V];if(T=u!=null?u[V]:void 0,a.hasOwnProperty(V)&&A!==T&&(A!=null||T!=null))if(V==="style")if(T){for(b in T)!T.hasOwnProperty(b)||A&&A.hasOwnProperty(b)||(o||(o={}),o[b]="");for(b in A)A.hasOwnProperty(b)&&T[b]!==A[b]&&(o||(o={}),o[b]=A[b])}else o||(h||(h=[]),h.push(V,o)),o=A;else V==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,T=T?T.__html:void 0,A!=null&&T!==A&&(h=h||[]).push(V,A)):V==="children"?typeof A!="string"&&typeof A!="number"||(h=h||[]).push(V,""+A):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(l.hasOwnProperty(V)?(A!=null&&V==="onScroll"&&Oe("scroll",e),h||T===A||(h=[])):(h=h||[]).push(V,A))}o&&(h=h||[]).push("style",o);var V=h;(t.updateQueue=V)&&(t.flags|=4)}},C0=function(e,t,o,a){o!==a&&(t.flags|=4)};function Ti(e,t){if(!Be)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,a=0;if(t)for(var u=e.child;u!==null;)o|=u.lanes|u.childLanes,a|=u.subtreeFlags&14680064,a|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=o,t}function C_(e,t,o){var a=t.pendingProps;switch(lu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return St(t.type)&&ta(),ht(t),null;case 3:return a=t.stateNode,To(),De(kt),De(ft),bu(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(sa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zt!==null&&(Qu(Zt),Zt=null))),Bu(e,t),ht(t),null;case 5:wu(t);var u=Dr(Ci.current);if(o=t.type,e!==null&&t.stateNode!=null)S0(e,t,o,a,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(i(166));return ht(t),null}if(e=Dr(mn.current),sa(t)){a=t.stateNode,o=t.type;var h=t.memoizedProps;switch(a[hn]=t,a[wi]=h,e=(t.mode&1)!==0,o){case"dialog":Oe("cancel",a),Oe("close",a);break;case"iframe":case"object":case"embed":Oe("load",a);break;case"video":case"audio":for(u=0;u<gi.length;u++)Oe(gi[u],a);break;case"source":Oe("error",a);break;case"img":case"image":case"link":Oe("error",a),Oe("load",a);break;case"details":Oe("toggle",a);break;case"input":fn(a,h),Oe("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!h.multiple},Oe("invalid",a);break;case"textarea":Sn(a,h),Oe("invalid",a)}fo(o,h),u=null;for(var b in h)if(h.hasOwnProperty(b)){var T=h[b];b==="children"?typeof T=="string"?a.textContent!==T&&(h.suppressHydrationWarning!==!0&&Zs(a.textContent,T,e),u=["children",T]):typeof T=="number"&&a.textContent!==""+T&&(h.suppressHydrationWarning!==!0&&Zs(a.textContent,T,e),u=["children",""+T]):l.hasOwnProperty(b)&&T!=null&&b==="onScroll"&&Oe("scroll",a)}switch(o){case"input":_e(a),_r(a,h,!0);break;case"textarea":_e(a),Ps(a);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(a.onclick=Js)}a=u,t.updateQueue=a,a!==null&&(t.flags|=4)}else{b=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Tr(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=b.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=b.createElement(o,{is:a.is}):(e=b.createElement(o),o==="select"&&(b=e,a.multiple?b.multiple=!0:a.size&&(b.size=a.size))):e=b.createElementNS(e,o),e[hn]=t,e[wi]=a,k0(e,t,!1,!1),t.stateNode=e;e:{switch(b=Zo(o,a),o){case"dialog":Oe("cancel",e),Oe("close",e),u=a;break;case"iframe":case"object":case"embed":Oe("load",e),u=a;break;case"video":case"audio":for(u=0;u<gi.length;u++)Oe(gi[u],e);u=a;break;case"source":Oe("error",e),u=a;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),u=a;break;case"details":Oe("toggle",e),u=a;break;case"input":fn(e,a),u=$e(e,a),Oe("invalid",e);break;case"option":u=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},u=I({},a,{value:void 0}),Oe("invalid",e);break;case"textarea":Sn(e,a),u=st(e,a),Oe("invalid",e);break;default:u=a}fo(o,u),T=u;for(h in T)if(T.hasOwnProperty(h)){var A=T[h];h==="style"?As(e,A):h==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&uo(e,A)):h==="children"?typeof A=="string"?(o!=="textarea"||A!=="")&&Lt(e,A):typeof A=="number"&&Lt(e,""+A):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(l.hasOwnProperty(h)?A!=null&&h==="onScroll"&&Oe("scroll",e):A!=null&&P(e,h,A,b))}switch(o){case"input":_e(e),_r(e,a,!1);break;case"textarea":_e(e),Ps(e);break;case"option":a.value!=null&&e.setAttribute("value",""+re(a.value));break;case"select":e.multiple=!!a.multiple,h=a.value,h!=null?Vn(e,!!a.multiple,h,!1):a.defaultValue!=null&&Vn(e,!!a.multiple,a.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=Js)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ht(t),null;case 6:if(e&&t.stateNode!=null)C0(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(i(166));if(o=Dr(Ci.current),Dr(mn.current),sa(t)){if(a=t.stateNode,o=t.memoizedProps,a[hn]=t,(h=a.nodeValue!==o)&&(e=It,e!==null))switch(e.tag){case 3:Zs(a.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zs(a.nodeValue,o,(e.mode&1)!==0)}h&&(t.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[hn]=t,t.stateNode=a}return ht(t),null;case 13:if(De(Ue),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Be&&At!==null&&(t.mode&1)!==0&&(t.flags&128)===0)_v(),Eo(),t.flags|=98560,h=!1;else if(h=sa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!h)throw Error(i(318));if(h=t.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[hn]=t}else Eo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ht(t),h=!1}else Zt!==null&&(Qu(Zt),Zt=null),h=!0;if(!h)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=o,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ue.current&1)!==0?et===0&&(et=3):ed())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return To(),Bu(e,t),e===null&&vi(t.stateNode.containerInfo),ht(t),null;case 10:return hu(t.type._context),ht(t),null;case 17:return St(t.type)&&ta(),ht(t),null;case 19:if(De(Ue),h=t.memoizedState,h===null)return ht(t),null;if(a=(t.flags&128)!==0,b=h.rendering,b===null)if(a)Ti(h,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(b=fa(e),b!==null){for(t.flags|=128,Ti(h,!1),a=b.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=o,o=t.child;o!==null;)h=o,e=a,h.flags&=14680066,b=h.alternate,b===null?(h.childLanes=0,h.lanes=e,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=b.childLanes,h.lanes=b.lanes,h.child=b.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=b.memoizedProps,h.memoizedState=b.memoizedState,h.updateQueue=b.updateQueue,h.type=b.type,e=b.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return ze(Ue,Ue.current&1|2),t.child}e=e.sibling}h.tail!==null&&Ge()>Mo&&(t.flags|=128,a=!0,Ti(h,!1),t.lanes=4194304)}else{if(!a)if(e=fa(b),e!==null){if(t.flags|=128,a=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),Ti(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Be)return ht(t),null}else 2*Ge()-h.renderingStartTime>Mo&&o!==1073741824&&(t.flags|=128,a=!0,Ti(h,!1),t.lanes=4194304);h.isBackwards?(b.sibling=t.child,t.child=b):(o=h.last,o!==null?o.sibling=b:t.child=b,h.last=b)}return h.tail!==null?(t=h.tail,h.rendering=t,h.tail=t.sibling,h.renderingStartTime=Ge(),t.sibling=null,o=Ue.current,ze(Ue,a?o&1|2:o&1),t):(ht(t),null);case 22:case 23:return Ju(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(Mt&1073741824)!==0&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function E_(e,t){switch(lu(t),t.tag){case 1:return St(t.type)&&ta(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return To(),De(kt),De(ft),bu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return wu(t),null;case 13:if(De(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Eo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(Ue),null;case 4:return To(),null;case 10:return hu(t.type._context),null;case 22:case 23:return Ju(),null;case 24:return null;default:return null}}var ba=!1,mt=!1,N_=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Io(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){Ve(e,t,a)}else o.current=null}function $u(e,t,o){try{o()}catch(a){Ve(e,t,a)}}var E0=!1;function __(e,t){if(Jc=$s,e=rv(),Wc(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var u=a.anchorOffset,h=a.focusNode;a=a.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var b=0,T=-1,A=-1,V=0,oe=0,se=e,te=null;t:for(;;){for(var fe;se!==o||u!==0&&se.nodeType!==3||(T=b+u),se!==h||a!==0&&se.nodeType!==3||(A=b+a),se.nodeType===3&&(b+=se.nodeValue.length),(fe=se.firstChild)!==null;)te=se,se=fe;for(;;){if(se===e)break t;if(te===o&&++V===u&&(T=b),te===h&&++oe===a&&(A=b),(fe=se.nextSibling)!==null)break;se=te,te=se.parentNode}se=fe}o=T===-1||A===-1?null:{start:T,end:A}}else o=null}o=o||{start:0,end:0}}else o=null;for(eu={focusedElem:e,selectionRange:o},$s=!1,pe=t;pe!==null;)if(t=pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pe=e;else for(;pe!==null;){t=pe;try{var me=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(me!==null){var ve=me.memoizedProps,Ye=me.memoizedState,B=t.stateNode,L=B.getSnapshotBeforeUpdate(t.elementType===t.type?ve:Jt(t.type,ve),Ye);B.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var $=t.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(le){Ve(t,t.return,le)}if(e=t.sibling,e!==null){e.return=t.return,pe=e;break}pe=t.return}return me=E0,E0=!1,me}function Pi(e,t,o){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var u=a=a.next;do{if((u.tag&e)===e){var h=u.destroy;u.destroy=void 0,h!==void 0&&$u(t,o,h)}u=u.next}while(u!==a)}}function ka(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var a=o.create;o.destroy=a()}o=o.next}while(o!==t)}}function Uu(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function N0(e){var t=e.alternate;t!==null&&(e.alternate=null,N0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hn],delete t[wi],delete t[ou],delete t[c_],delete t[u_])),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 _0(e){return e.tag===5||e.tag===3||e.tag===4}function R0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_0(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 Hu(e,t,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=Js));else if(a!==4&&(e=e.child,e!==null))for(Hu(e,t,o),e=e.sibling;e!==null;)Hu(e,t,o),e=e.sibling}function Vu(e,t,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Vu(e,t,o),e=e.sibling;e!==null;)Vu(e,t,o),e=e.sibling}var lt=null,en=!1;function cr(e,t,o){for(o=o.child;o!==null;)T0(e,t,o),o=o.sibling}function T0(e,t,o){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(Ls,o)}catch{}switch(o.tag){case 5:mt||Io(o,t);case 6:var a=lt,u=en;lt=null,cr(e,t,o),lt=a,en=u,lt!==null&&(en?(e=lt,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):lt.removeChild(o.stateNode));break;case 18:lt!==null&&(en?(e=lt,o=o.stateNode,e.nodeType===8?ru(e.parentNode,o):e.nodeType===1&&ru(e,o),li(e)):ru(lt,o.stateNode));break;case 4:a=lt,u=en,lt=o.stateNode.containerInfo,en=!0,cr(e,t,o),lt=a,en=u;break;case 0:case 11:case 14:case 15:if(!mt&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){u=a=a.next;do{var h=u,b=h.destroy;h=h.tag,b!==void 0&&((h&2)!==0||(h&4)!==0)&&$u(o,t,b),u=u.next}while(u!==a)}cr(e,t,o);break;case 1:if(!mt&&(Io(o,t),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(T){Ve(o,t,T)}cr(e,t,o);break;case 21:cr(e,t,o);break;case 22:o.mode&1?(mt=(a=mt)||o.memoizedState!==null,cr(e,t,o),mt=a):cr(e,t,o);break;default:cr(e,t,o)}}function P0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new N_),t.forEach(function(a){var u=z_.bind(null,e,a);o.has(a)||(o.add(a),a.then(u,u))})}}function tn(e,t){var o=t.deletions;if(o!==null)for(var a=0;a<o.length;a++){var u=o[a];try{var h=e,b=t,T=b;e:for(;T!==null;){switch(T.tag){case 5:lt=T.stateNode,en=!1;break e;case 3:lt=T.stateNode.containerInfo,en=!0;break e;case 4:lt=T.stateNode.containerInfo,en=!0;break e}T=T.return}if(lt===null)throw Error(i(160));T0(h,b,u),lt=null,en=!1;var A=u.alternate;A!==null&&(A.return=null),u.return=null}catch(V){Ve(u,t,V)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)I0(t,e),t=t.sibling}function I0(e,t){var o=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(tn(t,e),vn(e),a&4){try{Pi(3,e,e.return),ka(3,e)}catch(ve){Ve(e,e.return,ve)}try{Pi(5,e,e.return)}catch(ve){Ve(e,e.return,ve)}}break;case 1:tn(t,e),vn(e),a&512&&o!==null&&Io(o,o.return);break;case 5:if(tn(t,e),vn(e),a&512&&o!==null&&Io(o,o.return),e.flags&32){var u=e.stateNode;try{Lt(u,"")}catch(ve){Ve(e,e.return,ve)}}if(a&4&&(u=e.stateNode,u!=null)){var h=e.memoizedProps,b=o!==null?o.memoizedProps:h,T=e.type,A=e.updateQueue;if(e.updateQueue=null,A!==null)try{T==="input"&&h.type==="radio"&&h.name!=null&&Kt(u,h),Zo(T,b);var V=Zo(T,h);for(b=0;b<A.length;b+=2){var oe=A[b],se=A[b+1];oe==="style"?As(u,se):oe==="dangerouslySetInnerHTML"?uo(u,se):oe==="children"?Lt(u,se):P(u,oe,se,V)}switch(T){case"input":gt(u,h);break;case"textarea":Ts(u,h);break;case"select":var te=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!h.multiple;var fe=h.value;fe!=null?Vn(u,!!h.multiple,fe,!1):te!==!!h.multiple&&(h.defaultValue!=null?Vn(u,!!h.multiple,h.defaultValue,!0):Vn(u,!!h.multiple,h.multiple?[]:"",!1))}u[wi]=h}catch(ve){Ve(e,e.return,ve)}}break;case 6:if(tn(t,e),vn(e),a&4){if(e.stateNode===null)throw Error(i(162));u=e.stateNode,h=e.memoizedProps;try{u.nodeValue=h}catch(ve){Ve(e,e.return,ve)}}break;case 3:if(tn(t,e),vn(e),a&4&&o!==null&&o.memoizedState.isDehydrated)try{li(t.containerInfo)}catch(ve){Ve(e,e.return,ve)}break;case 4:tn(t,e),vn(e);break;case 13:tn(t,e),vn(e),u=e.child,u.flags&8192&&(h=u.memoizedState!==null,u.stateNode.isHidden=h,!h||u.alternate!==null&&u.alternate.memoizedState!==null||(Gu=Ge())),a&4&&P0(e);break;case 22:if(oe=o!==null&&o.memoizedState!==null,e.mode&1?(mt=(V=mt)||oe,tn(t,e),mt=V):tn(t,e),vn(e),a&8192){if(V=e.memoizedState!==null,(e.stateNode.isHidden=V)&&!oe&&(e.mode&1)!==0)for(pe=e,oe=e.child;oe!==null;){for(se=pe=oe;pe!==null;){switch(te=pe,fe=te.child,te.tag){case 0:case 11:case 14:case 15:Pi(4,te,te.return);break;case 1:Io(te,te.return);var me=te.stateNode;if(typeof me.componentWillUnmount=="function"){a=te,o=te.return;try{t=a,me.props=t.memoizedProps,me.state=t.memoizedState,me.componentWillUnmount()}catch(ve){Ve(a,o,ve)}}break;case 5:Io(te,te.return);break;case 22:if(te.memoizedState!==null){j0(se);continue}}fe!==null?(fe.return=te,pe=fe):j0(se)}oe=oe.sibling}e:for(oe=null,se=e;;){if(se.tag===5){if(oe===null){oe=se;try{u=se.stateNode,V?(h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(T=se.stateNode,A=se.memoizedProps.style,b=A!=null&&A.hasOwnProperty("display")?A.display:null,T.style.display=Is("display",b))}catch(ve){Ve(e,e.return,ve)}}}else if(se.tag===6){if(oe===null)try{se.stateNode.nodeValue=V?"":se.memoizedProps}catch(ve){Ve(e,e.return,ve)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===e)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===e)break e;for(;se.sibling===null;){if(se.return===null||se.return===e)break e;oe===se&&(oe=null),se=se.return}oe===se&&(oe=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:tn(t,e),vn(e),a&4&&P0(e);break;case 21:break;default:tn(t,e),vn(e)}}function vn(e){var t=e.flags;if(t&2){try{e:{for(var o=e.return;o!==null;){if(_0(o)){var a=o;break e}o=o.return}throw Error(i(160))}switch(a.tag){case 5:var u=a.stateNode;a.flags&32&&(Lt(u,""),a.flags&=-33);var h=R0(e);Vu(e,h,u);break;case 3:case 4:var b=a.stateNode.containerInfo,T=R0(e);Hu(e,T,b);break;default:throw Error(i(161))}}catch(A){Ve(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function R_(e,t,o){pe=e,A0(e)}function A0(e,t,o){for(var a=(e.mode&1)!==0;pe!==null;){var u=pe,h=u.child;if(u.tag===22&&a){var b=u.memoizedState!==null||ba;if(!b){var T=u.alternate,A=T!==null&&T.memoizedState!==null||mt;T=ba;var V=mt;if(ba=b,(mt=A)&&!V)for(pe=u;pe!==null;)b=pe,A=b.child,b.tag===22&&b.memoizedState!==null?L0(u):A!==null?(A.return=b,pe=A):L0(u);for(;h!==null;)pe=h,A0(h),h=h.sibling;pe=u,ba=T,mt=V}M0(e)}else(u.subtreeFlags&8772)!==0&&h!==null?(h.return=u,pe=h):M0(e)}}function M0(e){for(;pe!==null;){var t=pe;if((t.flags&8772)!==0){var o=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:mt||ka(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!mt)if(o===null)a.componentDidMount();else{var u=t.elementType===t.type?o.memoizedProps:Jt(t.type,o.memoizedProps);a.componentDidUpdate(u,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var h=t.updateQueue;h!==null&&jv(t,h,a);break;case 3:var b=t.updateQueue;if(b!==null){if(o=null,t.child!==null)switch(t.child.tag){case 5:o=t.child.stateNode;break;case 1:o=t.child.stateNode}jv(t,b,o)}break;case 5:var T=t.stateNode;if(o===null&&t.flags&4){o=T;var A=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&o.focus();break;case"img":A.src&&(o.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var V=t.alternate;if(V!==null){var oe=V.memoizedState;if(oe!==null){var se=oe.dehydrated;se!==null&&li(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}mt||t.flags&512&&Uu(t)}catch(te){Ve(t,t.return,te)}}if(t===e){pe=null;break}if(o=t.sibling,o!==null){o.return=t.return,pe=o;break}pe=t.return}}function j0(e){for(;pe!==null;){var t=pe;if(t===e){pe=null;break}var o=t.sibling;if(o!==null){o.return=t.return,pe=o;break}pe=t.return}}function L0(e){for(;pe!==null;){var t=pe;try{switch(t.tag){case 0:case 11:case 15:var o=t.return;try{ka(4,t)}catch(A){Ve(t,o,A)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var u=t.return;try{a.componentDidMount()}catch(A){Ve(t,u,A)}}var h=t.return;try{Uu(t)}catch(A){Ve(t,h,A)}break;case 5:var b=t.return;try{Uu(t)}catch(A){Ve(t,b,A)}}}catch(A){Ve(t,t.return,A)}if(t===e){pe=null;break}var T=t.sibling;if(T!==null){T.return=t.return,pe=T;break}pe=t.return}}var T_=Math.ceil,Sa=M.ReactCurrentDispatcher,Wu=M.ReactCurrentOwner,Ut=M.ReactCurrentBatchConfig,Me=0,ot=null,Xe=null,ct=0,Mt=0,Ao=or(0),et=0,Ii=null,Br=0,Ca=0,qu=0,Ai=null,Et=null,Gu=0,Mo=1/0,An=null,Ea=!1,Yu=null,ur=null,Na=!1,dr=null,_a=0,Mi=0,Ku=null,Ra=-1,Ta=0;function yt(){return(Me&6)!==0?Ge():Ra!==-1?Ra:Ra=Ge()}function fr(e){return(e.mode&1)===0?1:(Me&2)!==0&&ct!==0?ct&-ct:f_.transition!==null?(Ta===0&&(Ta=Rg()),Ta):(e=Le,e!==0||(e=window.event,e=e===void 0?16:Og(e.type)),e)}function nn(e,t,o,a){if(50<Mi)throw Mi=0,Ku=null,Error(i(185));ri(e,o,a),((Me&2)===0||e!==ot)&&(e===ot&&((Me&2)===0&&(Ca|=o),et===4&&pr(e,ct)),Nt(e,a),o===1&&Me===0&&(t.mode&1)===0&&(Mo=Ge()+500,ra&&sr()))}function Nt(e,t){var o=e.callbackNode;fN(e,t);var a=Ds(e,e===ot?ct:0);if(a===0)o!==null&&Eg(o),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(o!=null&&Eg(o),t===1)e.tag===0?d_(O0.bind(null,e)):kv(O0.bind(null,e)),a_(function(){(Me&6)===0&&sr()}),o=null;else{switch(Tg(a)){case 1:o=Rc;break;case 4:o=Ng;break;case 16:o=js;break;case 536870912:o=_g;break;default:o=js}o=W0(o,z0.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function z0(e,t){if(Ra=-1,Ta=0,(Me&6)!==0)throw Error(i(327));var o=e.callbackNode;if(jo()&&e.callbackNode!==o)return null;var a=Ds(e,e===ot?ct:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||t)t=Pa(e,a);else{t=a;var u=Me;Me|=2;var h=F0();(ot!==e||ct!==t)&&(An=null,Mo=Ge()+500,Ur(e,t));do try{A_();break}catch(T){D0(e,T)}while(!0);pu(),Sa.current=h,Me=u,Xe!==null?t=0:(ot=null,ct=0,t=et)}if(t!==0){if(t===2&&(u=Tc(e),u!==0&&(a=u,t=Xu(e,u))),t===1)throw o=Ii,Ur(e,0),pr(e,a),Nt(e,Ge()),o;if(t===6)pr(e,a);else{if(u=e.current.alternate,(a&30)===0&&!P_(u)&&(t=Pa(e,a),t===2&&(h=Tc(e),h!==0&&(a=h,t=Xu(e,h))),t===1))throw o=Ii,Ur(e,0),pr(e,a),Nt(e,Ge()),o;switch(e.finishedWork=u,e.finishedLanes=a,t){case 0:case 1:throw Error(i(345));case 2:Hr(e,Et,An);break;case 3:if(pr(e,a),(a&130023424)===a&&(t=Gu+500-Ge(),10<t)){if(Ds(e,0)!==0)break;if(u=e.suspendedLanes,(u&a)!==a){yt(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=nu(Hr.bind(null,e,Et,An),t);break}Hr(e,Et,An);break;case 4:if(pr(e,a),(a&4194240)===a)break;for(t=e.eventTimes,u=-1;0<a;){var b=31-Xt(a);h=1<<b,b=t[b],b>u&&(u=b),a&=~h}if(a=u,a=Ge()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*T_(a/1960))-a,10<a){e.timeoutHandle=nu(Hr.bind(null,e,Et,An),a);break}Hr(e,Et,An);break;case 5:Hr(e,Et,An);break;default:throw Error(i(329))}}}return Nt(e,Ge()),e.callbackNode===o?z0.bind(null,e):null}function Xu(e,t){var o=Ai;return e.current.memoizedState.isDehydrated&&(Ur(e,t).flags|=256),e=Pa(e,t),e!==2&&(t=Et,Et=o,t!==null&&Qu(t)),e}function Qu(e){Et===null?Et=e:Et.push.apply(Et,e)}function P_(e){for(var t=e;;){if(t.flags&16384){var o=t.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var u=o[a],h=u.getSnapshot;u=u.value;try{if(!Qt(h(),u))return!1}catch{return!1}}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pr(e,t){for(t&=~qu,t&=~Ca,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var o=31-Xt(t),a=1<<o;e[o]=-1,t&=~a}}function O0(e){if((Me&6)!==0)throw Error(i(327));jo();var t=Ds(e,0);if((t&1)===0)return Nt(e,Ge()),null;var o=Pa(e,t);if(e.tag!==0&&o===2){var a=Tc(e);a!==0&&(t=a,o=Xu(e,a))}if(o===1)throw o=Ii,Ur(e,0),pr(e,t),Nt(e,Ge()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hr(e,Et,An),Nt(e,Ge()),null}function Zu(e,t){var o=Me;Me|=1;try{return e(t)}finally{Me=o,Me===0&&(Mo=Ge()+500,ra&&sr())}}function $r(e){dr!==null&&dr.tag===0&&(Me&6)===0&&jo();var t=Me;Me|=1;var o=Ut.transition,a=Le;try{if(Ut.transition=null,Le=1,e)return e()}finally{Le=a,Ut.transition=o,Me=t,(Me&6)===0&&sr()}}function Ju(){Mt=Ao.current,De(Ao)}function Ur(e,t){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,s_(o)),Xe!==null)for(o=Xe.return;o!==null;){var a=o;switch(lu(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&ta();break;case 3:To(),De(kt),De(ft),bu();break;case 5:wu(a);break;case 4:To();break;case 13:De(Ue);break;case 19:De(Ue);break;case 10:hu(a.type._context);break;case 22:case 23:Ju()}o=o.return}if(ot=e,Xe=e=hr(e.current,null),ct=Mt=t,et=0,Ii=null,qu=Ca=Br=0,Et=Ai=null,Or!==null){for(t=0;t<Or.length;t++)if(o=Or[t],a=o.interleaved,a!==null){o.interleaved=null;var u=a.next,h=o.pending;if(h!==null){var b=h.next;h.next=u,a.next=b}o.pending=a}Or=null}return e}function D0(e,t){do{var o=Xe;try{if(pu(),pa.current=va,ha){for(var a=He.memoizedState;a!==null;){var u=a.queue;u!==null&&(u.pending=null),a=a.next}ha=!1}if(Fr=0,rt=Je=He=null,Ei=!1,Ni=0,Wu.current=null,o===null||o.return===null){et=1,Ii=t,Xe=null;break}e:{var h=e,b=o.return,T=o,A=t;if(t=ct,T.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var V=A,oe=T,se=oe.tag;if((oe.mode&1)===0&&(se===0||se===11||se===15)){var te=oe.alternate;te?(oe.updateQueue=te.updateQueue,oe.memoizedState=te.memoizedState,oe.lanes=te.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var fe=c0(b);if(fe!==null){fe.flags&=-257,u0(fe,b,T,h,t),fe.mode&1&&l0(h,V,t),t=fe,A=V;var me=t.updateQueue;if(me===null){var ve=new Set;ve.add(A),t.updateQueue=ve}else me.add(A);break e}else{if((t&1)===0){l0(h,V,t),ed();break e}A=Error(i(426))}}else if(Be&&T.mode&1){var Ye=c0(b);if(Ye!==null){(Ye.flags&65536)===0&&(Ye.flags|=256),u0(Ye,b,T,h,t),du(Po(A,T));break e}}h=A=Po(A,T),et!==4&&(et=2),Ai===null?Ai=[h]:Ai.push(h),h=b;do{switch(h.tag){case 3:h.flags|=65536,t&=-t,h.lanes|=t;var B=s0(h,A,t);Mv(h,B);break e;case 1:T=A;var L=h.type,$=h.stateNode;if((h.flags&128)===0&&(typeof L.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(ur===null||!ur.has($)))){h.flags|=65536,t&=-t,h.lanes|=t;var le=a0(h,T,t);Mv(h,le);break e}}h=h.return}while(h!==null)}$0(o)}catch(xe){t=xe,Xe===o&&o!==null&&(Xe=o=o.return);continue}break}while(!0)}function F0(){var e=Sa.current;return Sa.current=va,e===null?va:e}function ed(){(et===0||et===3||et===2)&&(et=4),ot===null||(Br&268435455)===0&&(Ca&268435455)===0||pr(ot,ct)}function Pa(e,t){var o=Me;Me|=2;var a=F0();(ot!==e||ct!==t)&&(An=null,Ur(e,t));do try{I_();break}catch(u){D0(e,u)}while(!0);if(pu(),Me=o,Sa.current=a,Xe!==null)throw Error(i(261));return ot=null,ct=0,et}function I_(){for(;Xe!==null;)B0(Xe)}function A_(){for(;Xe!==null&&!rN();)B0(Xe)}function B0(e){var t=V0(e.alternate,e,Mt);e.memoizedProps=e.pendingProps,t===null?$0(e):Xe=t,Wu.current=null}function $0(e){var t=e;do{var o=t.alternate;if(e=t.return,(t.flags&32768)===0){if(o=C_(o,t,Mt),o!==null){Xe=o;return}}else{if(o=E_(o,t),o!==null){o.flags&=32767,Xe=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{et=6,Xe=null;return}}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);et===0&&(et=5)}function Hr(e,t,o){var a=Le,u=Ut.transition;try{Ut.transition=null,Le=1,M_(e,t,o,a)}finally{Ut.transition=u,Le=a}return null}function M_(e,t,o,a){do jo();while(dr!==null);if((Me&6)!==0)throw Error(i(327));o=e.finishedWork;var u=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var h=o.lanes|o.childLanes;if(pN(e,h),e===ot&&(Xe=ot=null,ct=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Na||(Na=!0,W0(js,function(){return jo(),null})),h=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||h){h=Ut.transition,Ut.transition=null;var b=Le;Le=1;var T=Me;Me|=4,Wu.current=null,__(e,o),I0(o,e),JN(eu),$s=!!Jc,eu=Jc=null,e.current=o,R_(o),oN(),Me=T,Le=b,Ut.transition=h}else e.current=o;if(Na&&(Na=!1,dr=e,_a=u),h=e.pendingLanes,h===0&&(ur=null),aN(o.stateNode),Nt(e,Ge()),t!==null)for(a=e.onRecoverableError,o=0;o<t.length;o++)u=t[o],a(u.value,{componentStack:u.stack,digest:u.digest});if(Ea)throw Ea=!1,e=Yu,Yu=null,e;return(_a&1)!==0&&e.tag!==0&&jo(),h=e.pendingLanes,(h&1)!==0?e===Ku?Mi++:(Mi=0,Ku=e):Mi=0,sr(),null}function jo(){if(dr!==null){var e=Tg(_a),t=Ut.transition,o=Le;try{if(Ut.transition=null,Le=16>e?16:e,dr===null)var a=!1;else{if(e=dr,dr=null,_a=0,(Me&6)!==0)throw Error(i(331));var u=Me;for(Me|=4,pe=e.current;pe!==null;){var h=pe,b=h.child;if((pe.flags&16)!==0){var T=h.deletions;if(T!==null){for(var A=0;A<T.length;A++){var V=T[A];for(pe=V;pe!==null;){var oe=pe;switch(oe.tag){case 0:case 11:case 15:Pi(8,oe,h)}var se=oe.child;if(se!==null)se.return=oe,pe=se;else for(;pe!==null;){oe=pe;var te=oe.sibling,fe=oe.return;if(N0(oe),oe===V){pe=null;break}if(te!==null){te.return=fe,pe=te;break}pe=fe}}}var me=h.alternate;if(me!==null){var ve=me.child;if(ve!==null){me.child=null;do{var Ye=ve.sibling;ve.sibling=null,ve=Ye}while(ve!==null)}}pe=h}}if((h.subtreeFlags&2064)!==0&&b!==null)b.return=h,pe=b;else e:for(;pe!==null;){if(h=pe,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:Pi(9,h,h.return)}var B=h.sibling;if(B!==null){B.return=h.return,pe=B;break e}pe=h.return}}var L=e.current;for(pe=L;pe!==null;){b=pe;var $=b.child;if((b.subtreeFlags&2064)!==0&&$!==null)$.return=b,pe=$;else e:for(b=L;pe!==null;){if(T=pe,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:ka(9,T)}}catch(xe){Ve(T,T.return,xe)}if(T===b){pe=null;break e}var le=T.sibling;if(le!==null){le.return=T.return,pe=le;break e}pe=T.return}}if(Me=u,sr(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(Ls,e)}catch{}a=!0}return a}finally{Le=o,Ut.transition=t}}return!1}function U0(e,t,o){t=Po(o,t),t=s0(e,t,1),e=lr(e,t,1),t=yt(),e!==null&&(ri(e,1,t),Nt(e,t))}function Ve(e,t,o){if(e.tag===3)U0(e,e,o);else for(;t!==null;){if(t.tag===3){U0(t,e,o);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ur===null||!ur.has(a))){e=Po(o,e),e=a0(t,e,1),t=lr(t,e,1),e=yt(),t!==null&&(ri(t,1,e),Nt(t,e));break}}t=t.return}}function j_(e,t,o){var a=e.pingCache;a!==null&&a.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&o,ot===e&&(ct&o)===o&&(et===4||et===3&&(ct&130023424)===ct&&500>Ge()-Gu?Ur(e,0):qu|=o),Nt(e,t)}function H0(e,t){t===0&&((e.mode&1)===0?t=1:(t=Os,Os<<=1,(Os&130023424)===0&&(Os=4194304)));var o=yt();e=Tn(e,t),e!==null&&(ri(e,t,o),Nt(e,o))}function L_(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),H0(e,o)}function z_(e,t){var o=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(o=u.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(t),H0(e,o)}var V0;V0=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)Ct=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return Ct=!1,S_(e,t,o);Ct=(e.flags&131072)!==0}else Ct=!1,Be&&(t.flags&1048576)!==0&&Sv(t,ia,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;xa(e,t),e=t.pendingProps;var u=ko(t,ft.current);Ro(t,o),u=Cu(null,t,a,e,u,o);var h=Eu();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(a)?(h=!0,na(t)):h=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,vu(t),u.updater=ya,t.stateNode=u,u._reactInternals=t,Iu(t,a,e,o),t=Lu(null,t,a,!0,h,o)):(t.tag=0,Be&&h&&au(t),vt(null,t,u,o),t=t.child),t;case 16:a=t.elementType;e:{switch(xa(e,t),e=t.pendingProps,u=a._init,a=u(a._payload),t.type=a,u=t.tag=D_(a),e=Jt(a,e),u){case 0:t=ju(null,t,a,e,o);break e;case 1:t=g0(null,t,a,e,o);break e;case 11:t=d0(null,t,a,e,o);break e;case 14:t=f0(null,t,a,Jt(a.type,e),o);break e}throw Error(i(306,a,""))}return t;case 0:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Jt(a,u),ju(e,t,a,u,o);case 1:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Jt(a,u),g0(e,t,a,u,o);case 3:e:{if(v0(t),e===null)throw Error(i(387));a=t.pendingProps,h=t.memoizedState,u=h.element,Av(e,t),da(t,a,null,o);var b=t.memoizedState;if(a=b.element,h.isDehydrated)if(h={element:a,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){u=Po(Error(i(423)),t),t=y0(e,t,a,o,u);break e}else if(a!==u){u=Po(Error(i(424)),t),t=y0(e,t,a,o,u);break e}else for(At=rr(t.stateNode.containerInfo.firstChild),It=t,Be=!0,Zt=null,o=Pv(t,null,a,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Eo(),a===u){t=In(e,t,o);break e}vt(e,t,a,o)}t=t.child}return t;case 5:return Lv(t),e===null&&uu(t),a=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,b=u.children,tu(a,u)?b=null:h!==null&&tu(a,h)&&(t.flags|=32),m0(e,t),vt(e,t,b,o),t.child;case 6:return e===null&&uu(t),null;case 13:return w0(e,t,o);case 4:return yu(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=No(t,null,a,o):vt(e,t,a,o),t.child;case 11:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Jt(a,u),d0(e,t,a,u,o);case 7:return vt(e,t,t.pendingProps,o),t.child;case 8:return vt(e,t,t.pendingProps.children,o),t.child;case 12:return vt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(a=t.type._context,u=t.pendingProps,h=t.memoizedProps,b=u.value,ze(la,a._currentValue),a._currentValue=b,h!==null)if(Qt(h.value,b)){if(h.children===u.children&&!kt.current){t=In(e,t,o);break e}}else for(h=t.child,h!==null&&(h.return=t);h!==null;){var T=h.dependencies;if(T!==null){b=h.child;for(var A=T.firstContext;A!==null;){if(A.context===a){if(h.tag===1){A=Pn(-1,o&-o),A.tag=2;var V=h.updateQueue;if(V!==null){V=V.shared;var oe=V.pending;oe===null?A.next=A:(A.next=oe.next,oe.next=A),V.pending=A}}h.lanes|=o,A=h.alternate,A!==null&&(A.lanes|=o),mu(h.return,o,t),T.lanes|=o;break}A=A.next}}else if(h.tag===10)b=h.type===t.type?null:h.child;else if(h.tag===18){if(b=h.return,b===null)throw Error(i(341));b.lanes|=o,T=b.alternate,T!==null&&(T.lanes|=o),mu(b,o,t),b=h.sibling}else b=h.child;if(b!==null)b.return=h;else for(b=h;b!==null;){if(b===t){b=null;break}if(h=b.sibling,h!==null){h.return=b.return,b=h;break}b=b.return}h=b}vt(e,t,u.children,o),t=t.child}return t;case 9:return u=t.type,a=t.pendingProps.children,Ro(t,o),u=Bt(u),a=a(u),t.flags|=1,vt(e,t,a,o),t.child;case 14:return a=t.type,u=Jt(a,t.pendingProps),u=Jt(a.type,u),f0(e,t,a,u,o);case 15:return p0(e,t,t.type,t.pendingProps,o);case 17:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Jt(a,u),xa(e,t),t.tag=1,St(a)?(e=!0,na(t)):e=!1,Ro(t,o),o0(t,a,u),Iu(t,a,u,o),Lu(null,t,a,!0,e,o);case 19:return b0(e,t,o);case 22:return h0(e,t,o)}throw Error(i(156,t.tag))};function W0(e,t){return Cg(e,t)}function O_(e,t,o,a){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,o,a){return new O_(e,t,o,a)}function td(e){return e=e.prototype,!(!e||!e.isReactComponent)}function D_(e){if(typeof e=="function")return td(e)?1:0;if(e!=null){if(e=e.$$typeof,e===K)return 11;if(e===ue)return 14}return 2}function hr(e,t){var o=e.alternate;return o===null?(o=Ht(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Ia(e,t,o,a,u,h){var b=2;if(a=e,typeof e=="function")td(e)&&(b=1);else if(typeof e=="string")b=5;else e:switch(e){case D:return Vr(o.children,u,h,t);case j:b=8,u|=8;break;case q:return e=Ht(12,o,t,u|2),e.elementType=q,e.lanes=h,e;case X:return e=Ht(13,o,t,u),e.elementType=X,e.lanes=h,e;case Y:return e=Ht(19,o,t,u),e.elementType=Y,e.lanes=h,e;case ne:return Aa(o,u,h,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:b=10;break e;case U:b=9;break e;case K:b=11;break e;case ue:b=14;break e;case Q:b=16,a=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ht(b,o,t,u),t.elementType=e,t.type=a,t.lanes=h,t}function Vr(e,t,o,a){return e=Ht(7,e,a,t),e.lanes=o,e}function Aa(e,t,o,a){return e=Ht(22,e,a,t),e.elementType=ne,e.lanes=o,e.stateNode={isHidden:!1},e}function nd(e,t,o){return e=Ht(6,e,null,t),e.lanes=o,e}function rd(e,t,o){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function F_(e,t,o,a,u){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=Pc(0),this.expirationTimes=Pc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pc(0),this.identifierPrefix=a,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function od(e,t,o,a,u,h,b,T,A){return e=new F_(e,t,o,T,A),t===1?(t=1,h===!0&&(t|=8)):t=0,h=Ht(3,null,null,t),e.current=h,h.stateNode=e,h.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},vu(h),e}function B_(e,t,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:a==null?null:""+a,children:e,containerInfo:t,implementation:o}}function q0(e){if(!e)return ir;e=e._reactInternals;e:{if(Ar(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 o=e.type;if(St(o))return xv(e,o,t)}return t}function G0(e,t,o,a,u,h,b,T,A){return e=od(o,a,!0,e,u,h,b,T,A),e.context=q0(null),o=e.current,a=yt(),u=fr(o),h=Pn(a,u),h.callback=t??null,lr(o,h,u),e.current.lanes=u,ri(e,u,a),Nt(e,a),e}function Ma(e,t,o,a){var u=t.current,h=yt(),b=fr(u);return o=q0(o),t.context===null?t.context=o:t.pendingContext=o,t=Pn(h,b),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=lr(u,t,b),e!==null&&(nn(e,u,b,h),ua(e,u,b)),b}function ja(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 Y0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function id(e,t){Y0(e,t),(e=e.alternate)&&Y0(e,t)}function $_(){return null}var K0=typeof reportError=="function"?reportError:function(e){console.error(e)};function sd(e){this._internalRoot=e}La.prototype.render=sd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Ma(e,t,null,null)},La.prototype.unmount=sd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$r(function(){Ma(null,e,null,null)}),t[En]=null}};function La(e){this._internalRoot=e}La.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ag();e={blockedOn:null,target:e,priority:t};for(var o=0;o<er.length&&t!==0&&t<er[o].priority;o++);er.splice(o,0,e),o===0&&Lg(e)}};function ad(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function za(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function X0(){}function U_(e,t,o,a,u){if(u){if(typeof a=="function"){var h=a;a=function(){var V=ja(b);h.call(V)}}var b=G0(t,a,e,0,null,!1,!1,"",X0);return e._reactRootContainer=b,e[En]=b.current,vi(e.nodeType===8?e.parentNode:e),$r(),b}for(;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var T=a;a=function(){var V=ja(A);T.call(V)}}var A=od(e,0,!1,null,null,!1,!1,"",X0);return e._reactRootContainer=A,e[En]=A.current,vi(e.nodeType===8?e.parentNode:e),$r(function(){Ma(t,A,o,a)}),A}function Oa(e,t,o,a,u){var h=o._reactRootContainer;if(h){var b=h;if(typeof u=="function"){var T=u;u=function(){var A=ja(b);T.call(A)}}Ma(t,b,e,u)}else b=U_(o,t,e,u,a);return ja(b)}Pg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var o=ni(t.pendingLanes);o!==0&&(Ic(t,o|1),Nt(t,Ge()),(Me&6)===0&&(Mo=Ge()+500,sr()))}break;case 13:$r(function(){var a=Tn(e,1);if(a!==null){var u=yt();nn(a,e,1,u)}}),id(e,1)}},Ac=function(e){if(e.tag===13){var t=Tn(e,134217728);if(t!==null){var o=yt();nn(t,e,134217728,o)}id(e,134217728)}},Ig=function(e){if(e.tag===13){var t=fr(e),o=Tn(e,t);if(o!==null){var a=yt();nn(o,e,t,a)}id(e,t)}},Ag=function(){return Le},Mg=function(e,t){var o=Le;try{return Le=e,t()}finally{Le=o}},Jo=function(e,t,o){switch(t){case"input":if(gt(e,o),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<o.length;t++){var a=o[t];if(a!==e&&a.form===e.form){var u=ea(a);if(!u)throw Error(i(90));Re(a),gt(a,u)}}}break;case"textarea":Ts(e,o);break;case"select":t=o.value,t!=null&&Vn(e,!!o.multiple,t,!1)}},Ze=Zu,dt=$r;var H_={usingClientEntryPoint:!1,Events:[xi,xo,ea,Ne,qe,Zu]},ji={findFiberByHostInstance:Mr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},V_={bundleType:ji.bundleType,version:ji.version,rendererPackageName:ji.rendererPackageName,rendererConfig:ji.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=kg(e),e===null?null:e.stateNode},findFiberByHostInstance:ji.findFiberByHostInstance||$_,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 Da=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Da.isDisabled&&Da.supportsFiber)try{Ls=Da.inject(V_),pn=Da}catch{}}return wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H_,wt.createPortal=function(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ad(t))throw Error(i(200));return B_(e,t,null,o)},wt.createRoot=function(e,t){if(!ad(e))throw Error(i(299));var o=!1,a="",u=K0;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=od(e,1,!1,null,null,o,!1,a,u),e[En]=t.current,vi(e.nodeType===8?e.parentNode:e),new sd(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=kg(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return $r(e)},wt.hydrate=function(e,t,o){if(!za(t))throw Error(i(200));return Oa(null,e,t,!0,o)},wt.hydrateRoot=function(e,t,o){if(!ad(e))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,u=!1,h="",b=K0;if(o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(b=o.onRecoverableError)),t=G0(t,null,e,1,o??null,u,!1,h,b),e[En]=t.current,vi(e),a)for(e=0;e<a.length;e++)o=a[e],u=o._getVersion,u=u(o._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[o,u]:t.mutableSourceEagerHydrationData.push(o,u);return new La(t)},wt.render=function(e,t,o){if(!za(t))throw Error(i(200));return Oa(null,e,t,!1,o)},wt.unmountComponentAtNode=function(e){if(!za(e))throw Error(i(40));return e._reactRootContainer?($r(function(){Oa(null,null,e,!1,function(){e._reactRootContainer=null,e[En]=null})}),!0):!1},wt.unstable_batchedUpdates=Zu,wt.unstable_renderSubtreeIntoContainer=function(e,t,o,a){if(!za(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Oa(e,t,o,!1,a)},wt.version="18.3.1-next-f1338f8080-20240426",wt}var gd;function vd(){if(gd)return Ba.exports;gd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Ba.exports=ny(),Ba.exports}var yd;function ry(){if(yd)return zi;yd=1;var n=vd();return zi.createRoot=n.createRoot,zi.hydrateRoot=n.hydrateRoot,zi}var oy=ry();const iy='/*! tailwindcss v4.2.2 | 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-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--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-ease: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;--ease-out:cubic-bezier(0, 0, .2, 1);--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}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.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)}.block{display:block}.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}.origin-bottom-right{transform-origin:100% 100%}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-115{--tw-scale-x:115%;--tw-scale-y:115%;--tw-scale-z:115%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-125{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.rotate-180{rotate:180deg}.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-destructive{color:var(--destructive)}.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-0{opacity:0}.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}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.running{animation-play-state:running}@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\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.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-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@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}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}';var v=Li();const ae=Vt(v),wd=gr({__proto__:null,default:ae},[v]),sy=()=>{try{return"3c71f776-434b-4c09-a490-928488c2e036"}catch{return"dev"}},vr=new Map,ay=async(n,r)=>{const i=vr.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 s=document.createElement("iframe");s.setAttribute("sandbox","allow-scripts allow-same-origin"),s.style.display="none",s.style.width="0",s.style.height="0",s.style.border="none";const l=n.bundleUrl.startsWith("http")&&!n.bundleUrl.endsWith(".js"),c=l?new URL(n.bundleUrl).origin:"null";if(l){const p=new URL(n.bundleUrl);p.searchParams.set("__extensionId",n.id),s.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 w=sy();p=await(await fetch(`${n.bundleUrl}?_b=${w}`)).text()}catch(w){console.error(`[SandboxManager] Failed to fetch bundle for ${n.id}:`,w)}const g=`<!DOCTYPE html>
40
+ `+h.stack}return{value:e,source:t,stack:u,digest:null}}function Au(e,t,o){return{value:e,source:null,stack:o??null,digest:t??null}}function Mu(e,t){try{console.error(t.value)}catch(o){setTimeout(function(){throw o})}}var S_=typeof WeakMap=="function"?WeakMap:Map;function a0(e,t,o){o=Pn(-1,o),o.tag=3,o.payload={element:null};var a=t.value;return o.callback=function(){Ea||(Ea=!0,Yu=a),Mu(e,t)},o}function l0(e,t,o){o=Pn(-1,o),o.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var u=t.value;o.payload=function(){return a(u)},o.callback=function(){Mu(e,t)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(o.callback=function(){Mu(e,t),typeof a!="function"&&(dr===null?dr=new Set([this]):dr.add(this));var b=t.stack;this.componentDidCatch(t.value,{componentStack:b!==null?b:""})}),o}function c0(e,t,o){var a=e.pingCache;if(a===null){a=e.pingCache=new S_;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(o)||(u.add(o),e=O_.bind(null,e,t,o),t.then(e,e))}function u0(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 d0(e,t,o,a,u){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(t=Pn(-1,1),t.tag=2,cr(o,t,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=u,e)}var C_=M.ReactCurrentOwner,Ct=!1;function vt(e,t,o,a){t.child=e===null?Iv(t,null,o,a):_o(t,e.child,o,a)}function f0(e,t,o,a,u){o=o.render;var h=t.ref;return To(t,u),a=Cu(e,t,o,a,h,u),o=Eu(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,In(e,t,u)):(Be&&o&&au(t),t.flags|=1,vt(e,t,a,u),t.child)}function p0(e,t,o,a,u){if(e===null){var h=o.type;return typeof h=="function"&&!td(h)&&h.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=h,h0(e,t,h,a,u)):(e=Ia(o.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,(e.lanes&u)===0){var b=h.memoizedProps;if(o=o.compare,o=o!==null?o:hi,o(b,a)&&e.ref===t.ref)return In(e,t,u)}return t.flags|=1,e=mr(h,a),e.ref=t.ref,e.return=t,t.child=e}function h0(e,t,o,a,u){if(e!==null){var h=e.memoizedProps;if(hi(h,a)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=a=h,(e.lanes&u)!==0)(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,In(e,t,u)}return ju(e,t,o,a,u)}function m0(e,t,o){var a=t.pendingProps,u=a.children,h=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(Mo,Mt),Mt|=o;else{if((o&1073741824)===0)return e=h!==null?h.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ze(Mo,Mt),Mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=h!==null?h.baseLanes:o,ze(Mo,Mt),Mt|=a}else h!==null?(a=h.baseLanes|o,t.memoizedState=null):a=o,ze(Mo,Mt),Mt|=a;return vt(e,t,u,o),t.child}function g0(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function ju(e,t,o,a,u){var h=St(o)?zr:ft.current;return h=So(t,h),To(t,u),o=Cu(e,t,o,a,h,u),a=Eu(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,In(e,t,u)):(Be&&a&&au(t),t.flags|=1,vt(e,t,o,u),t.child)}function v0(e,t,o,a,u){if(St(o)){var h=!0;na(t)}else h=!1;if(To(t,u),t.stateNode===null)xa(e,t),i0(t,o,a),Iu(t,o,a,u),a=!0;else if(e===null){var b=t.stateNode,T=t.memoizedProps;b.props=T;var A=b.context,V=o.contextType;typeof V=="object"&&V!==null?V=Bt(V):(V=St(o)?zr:ft.current,V=So(t,V));var oe=o.getDerivedStateFromProps,se=typeof oe=="function"||typeof b.getSnapshotBeforeUpdate=="function";se||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(T!==a||A!==V)&&s0(t,b,a,V),lr=!1;var te=t.memoizedState;b.state=te,da(t,a,b,u),A=t.memoizedState,T!==a||te!==A||kt.current||lr?(typeof oe=="function"&&(Pu(t,o,oe,a),A=t.memoizedState),(T=lr||o0(t,o,T,a,te,A,V))?(se||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(t.flags|=4194308)):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),b.props=a,b.state=A,b.context=V,a=T):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{b=t.stateNode,Mv(e,t),T=t.memoizedProps,V=t.type===t.elementType?T:Jt(t.type,T),b.props=V,se=t.pendingProps,te=b.context,A=o.contextType,typeof A=="object"&&A!==null?A=Bt(A):(A=St(o)?zr:ft.current,A=So(t,A));var fe=o.getDerivedStateFromProps;(oe=typeof fe=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(T!==se||te!==A)&&s0(t,b,a,A),lr=!1,te=t.memoizedState,b.state=te,da(t,a,b,u);var me=t.memoizedState;T!==se||te!==me||kt.current||lr?(typeof fe=="function"&&(Pu(t,o,fe,a),me=t.memoizedState),(V=lr||o0(t,o,V,a,te,me,A)||!1)?(oe||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(a,me,A),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(a,me,A)),typeof b.componentDidUpdate=="function"&&(t.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof b.componentDidUpdate!="function"||T===e.memoizedProps&&te===e.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&te===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=me),b.props=a,b.state=me,b.context=A,a=V):(typeof b.componentDidUpdate!="function"||T===e.memoizedProps&&te===e.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&te===e.memoizedState||(t.flags|=1024),a=!1)}return Lu(e,t,o,a,h,u)}function Lu(e,t,o,a,u,h){g0(e,t);var b=(t.flags&128)!==0;if(!a&&!b)return u&&kv(t,o,!1),In(e,t,h);a=t.stateNode,C_.current=t;var T=b&&typeof o.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&b?(t.child=_o(t,e.child,null,h),t.child=_o(t,null,T,h)):vt(e,t,T,h),t.memoizedState=a.state,u&&kv(t,o,!0),t.child}function y0(e){var t=e.stateNode;t.pendingContext?xv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xv(e,t.context,!1),yu(e,t.containerInfo)}function w0(e,t,o,a,u){return No(),du(u),t.flags|=256,vt(e,t,o,a),t.child}var zu={dehydrated:null,treeContext:null,retryLane:0};function Ou(e){return{baseLanes:e,cachePool:null,transitions:null}}function x0(e,t,o){var a=t.pendingProps,u=Ue.current,h=!1,b=(t.flags&128)!==0,T;if((T=b)||(T=e!==null&&e.memoizedState===null?!1:(u&2)!==0),T?(h=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),ze(Ue,u&1),e===null)return uu(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):(b=a.children,e=a.fallback,h?(a=t.mode,h=t.child,b={mode:"hidden",children:b},(a&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=b):h=Aa(b,a,0,null),e=qr(e,a,o,null),h.return=t,e.return=t,h.sibling=e,t.child=h,t.child.memoizedState=Ou(o),t.memoizedState=zu,e):Du(t,b));if(u=e.memoizedState,u!==null&&(T=u.dehydrated,T!==null))return E_(e,t,b,a,T,u,o);if(h){h=a.fallback,b=t.mode,u=e.child,T=u.sibling;var A={mode:"hidden",children:a.children};return(b&1)===0&&t.child!==u?(a=t.child,a.childLanes=0,a.pendingProps=A,t.deletions=null):(a=mr(u,A),a.subtreeFlags=u.subtreeFlags&14680064),T!==null?h=mr(T,h):(h=qr(h,b,o,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,a=h,h=t.child,b=e.child.memoizedState,b=b===null?Ou(o):{baseLanes:b.baseLanes|o,cachePool:null,transitions:b.transitions},h.memoizedState=b,h.childLanes=e.childLanes&~o,t.memoizedState=zu,a}return h=e.child,e=h.sibling,a=mr(h,{mode:"visible",children:a.children}),(t.mode&1)===0&&(a.lanes=o),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Du(e,t){return t=Aa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wa(e,t,o,a){return a!==null&&du(a),_o(t,e.child,null,o),e=Du(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function E_(e,t,o,a,u,h,b){if(o)return t.flags&256?(t.flags&=-257,a=Au(Error(i(422))),wa(e,t,b,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(h=a.fallback,u=t.mode,a=Aa({mode:"visible",children:a.children},u,0,null),h=qr(h,u,b,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,(t.mode&1)!==0&&_o(t,e.child,null,b),t.child.memoizedState=Ou(b),t.memoizedState=zu,h);if((t.mode&1)===0)return wa(e,t,b,null);if(u.data==="$!"){if(a=u.nextSibling&&u.nextSibling.dataset,a)var T=a.dgst;return a=T,h=Error(i(419)),a=Au(h,a,void 0),wa(e,t,b,a)}if(T=(b&e.childLanes)!==0,Ct||T){if(a=ot,a!==null){switch(b&-b){case 4:u=2;break;case 16:u=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:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(a.suspendedLanes|b))!==0?0:u,u!==0&&u!==h.retryLane&&(h.retryLane=u,Tn(e,u),nn(a,e,u,-1))}return ed(),a=Au(Error(i(421))),wa(e,t,b,a)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=D_.bind(null,e),u._reactRetry=t,null):(e=h.treeContext,At=or(u.nextSibling),It=t,Be=!0,Zt=null,e!==null&&(Dt[Ft++]=_n,Dt[Ft++]=Rn,Dt[Ft++]=Or,_n=e.id,Rn=e.overflow,Or=t),t=Du(t,a.children),t.flags|=4096,t)}function b0(e,t,o){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),mu(e.return,t,o)}function Fu(e,t,o,a,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=o,h.tailMode=u)}function k0(e,t,o){var a=t.pendingProps,u=a.revealOrder,h=a.tail;if(vt(e,t,a.children,o),a=Ue.current,(a&2)!==0)a=a&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&&b0(e,o,t);else if(e.tag===19)b0(e,o,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(ze(Ue,a),(t.mode&1)===0)t.memoizedState=null;else switch(u){case"forwards":for(o=t.child,u=null;o!==null;)e=o.alternate,e!==null&&fa(e)===null&&(u=o),o=o.sibling;o=u,o===null?(u=t.child,t.child=null):(u=o.sibling,o.sibling=null),Fu(t,!1,u,o,h);break;case"backwards":for(o=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&fa(e)===null){t.child=u;break}e=u.sibling,u.sibling=o,o=u,u=e}Fu(t,!0,o,null,h);break;case"together":Fu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xa(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function In(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),Ur|=t.lanes,(o&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,o=mr(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=mr(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function N_(e,t,o){switch(t.tag){case 3:y0(t),No();break;case 5:zv(t);break;case 1:St(t.type)&&na(t);break;case 4:yu(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,u=t.memoizedProps.value;ze(la,a._currentValue),a._currentValue=u;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(ze(Ue,Ue.current&1),t.flags|=128,null):(o&t.child.childLanes)!==0?x0(e,t,o):(ze(Ue,Ue.current&1),e=In(e,t,o),e!==null?e.sibling:null);ze(Ue,Ue.current&1);break;case 19:if(a=(o&t.childLanes)!==0,(e.flags&128)!==0){if(a)return k0(e,t,o);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ze(Ue,Ue.current),a)break;return null;case 22:case 23:return t.lanes=0,m0(e,t,o)}return In(e,t,o)}var S0,Bu,C0,E0;S0=function(e,t){for(var o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Bu=function(){},C0=function(e,t,o,a){var u=e.memoizedProps;if(u!==a){e=t.stateNode,Br(mn.current);var h=null;switch(o){case"input":u=$e(e,u),a=$e(e,a),h=[];break;case"select":u=I({},u,{value:void 0}),a=I({},a,{value:void 0}),h=[];break;case"textarea":u=st(e,u),a=st(e,a),h=[];break;default:typeof u.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Js)}po(o,a);var b;o=null;for(V in u)if(!a.hasOwnProperty(V)&&u.hasOwnProperty(V)&&u[V]!=null)if(V==="style"){var T=u[V];for(b in T)T.hasOwnProperty(b)&&(o||(o={}),o[b]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(l.hasOwnProperty(V)?h||(h=[]):(h=h||[]).push(V,null));for(V in a){var A=a[V];if(T=u!=null?u[V]:void 0,a.hasOwnProperty(V)&&A!==T&&(A!=null||T!=null))if(V==="style")if(T){for(b in T)!T.hasOwnProperty(b)||A&&A.hasOwnProperty(b)||(o||(o={}),o[b]="");for(b in A)A.hasOwnProperty(b)&&T[b]!==A[b]&&(o||(o={}),o[b]=A[b])}else o||(h||(h=[]),h.push(V,o)),o=A;else V==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,T=T?T.__html:void 0,A!=null&&T!==A&&(h=h||[]).push(V,A)):V==="children"?typeof A!="string"&&typeof A!="number"||(h=h||[]).push(V,""+A):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(l.hasOwnProperty(V)?(A!=null&&V==="onScroll"&&Oe("scroll",e),h||T===A||(h=[])):(h=h||[]).push(V,A))}o&&(h=h||[]).push("style",o);var V=h;(t.updateQueue=V)&&(t.flags|=4)}},E0=function(e,t,o,a){o!==a&&(t.flags|=4)};function Ti(e,t){if(!Be)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,a=0;if(t)for(var u=e.child;u!==null;)o|=u.lanes|u.childLanes,a|=u.subtreeFlags&14680064,a|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=o,t}function __(e,t,o){var a=t.pendingProps;switch(lu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return St(t.type)&&ta(),ht(t),null;case 3:return a=t.stateNode,Po(),De(kt),De(ft),bu(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(sa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zt!==null&&(Qu(Zt),Zt=null))),Bu(e,t),ht(t),null;case 5:wu(t);var u=Br(Ci.current);if(o=t.type,e!==null&&t.stateNode!=null)C0(e,t,o,a,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(i(166));return ht(t),null}if(e=Br(mn.current),sa(t)){a=t.stateNode,o=t.type;var h=t.memoizedProps;switch(a[hn]=t,a[wi]=h,e=(t.mode&1)!==0,o){case"dialog":Oe("cancel",a),Oe("close",a);break;case"iframe":case"object":case"embed":Oe("load",a);break;case"video":case"audio":for(u=0;u<gi.length;u++)Oe(gi[u],a);break;case"source":Oe("error",a);break;case"img":case"image":case"link":Oe("error",a),Oe("load",a);break;case"details":Oe("toggle",a);break;case"input":fn(a,h),Oe("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!h.multiple},Oe("invalid",a);break;case"textarea":Sn(a,h),Oe("invalid",a)}po(o,h),u=null;for(var b in h)if(h.hasOwnProperty(b)){var T=h[b];b==="children"?typeof T=="string"?a.textContent!==T&&(h.suppressHydrationWarning!==!0&&Zs(a.textContent,T,e),u=["children",T]):typeof T=="number"&&a.textContent!==""+T&&(h.suppressHydrationWarning!==!0&&Zs(a.textContent,T,e),u=["children",""+T]):l.hasOwnProperty(b)&&T!=null&&b==="onScroll"&&Oe("scroll",a)}switch(o){case"input":_e(a),Tr(a,h,!0);break;case"textarea":_e(a),Ps(a);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(a.onclick=Js)}a=u,t.updateQueue=a,a!==null&&(t.flags|=4)}else{b=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ir(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=b.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=b.createElement(o,{is:a.is}):(e=b.createElement(o),o==="select"&&(b=e,a.multiple?b.multiple=!0:a.size&&(b.size=a.size))):e=b.createElementNS(e,o),e[hn]=t,e[wi]=a,S0(e,t,!1,!1),t.stateNode=e;e:{switch(b=Zo(o,a),o){case"dialog":Oe("cancel",e),Oe("close",e),u=a;break;case"iframe":case"object":case"embed":Oe("load",e),u=a;break;case"video":case"audio":for(u=0;u<gi.length;u++)Oe(gi[u],e);u=a;break;case"source":Oe("error",e),u=a;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),u=a;break;case"details":Oe("toggle",e),u=a;break;case"input":fn(e,a),u=$e(e,a),Oe("invalid",e);break;case"option":u=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},u=I({},a,{value:void 0}),Oe("invalid",e);break;case"textarea":Sn(e,a),u=st(e,a),Oe("invalid",e);break;default:u=a}po(o,u),T=u;for(h in T)if(T.hasOwnProperty(h)){var A=T[h];h==="style"?As(e,A):h==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&fo(e,A)):h==="children"?typeof A=="string"?(o!=="textarea"||A!=="")&&Lt(e,A):typeof A=="number"&&Lt(e,""+A):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(l.hasOwnProperty(h)?A!=null&&h==="onScroll"&&Oe("scroll",e):A!=null&&P(e,h,A,b))}switch(o){case"input":_e(e),Tr(e,a,!1);break;case"textarea":_e(e),Ps(e);break;case"option":a.value!=null&&e.setAttribute("value",""+re(a.value));break;case"select":e.multiple=!!a.multiple,h=a.value,h!=null?Wn(e,!!a.multiple,h,!1):a.defaultValue!=null&&Wn(e,!!a.multiple,a.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=Js)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ht(t),null;case 6:if(e&&t.stateNode!=null)E0(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(i(166));if(o=Br(Ci.current),Br(mn.current),sa(t)){if(a=t.stateNode,o=t.memoizedProps,a[hn]=t,(h=a.nodeValue!==o)&&(e=It,e!==null))switch(e.tag){case 3:Zs(a.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zs(a.nodeValue,o,(e.mode&1)!==0)}h&&(t.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[hn]=t,t.stateNode=a}return ht(t),null;case 13:if(De(Ue),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Be&&At!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Rv(),No(),t.flags|=98560,h=!1;else if(h=sa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!h)throw Error(i(318));if(h=t.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[hn]=t}else No(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ht(t),h=!1}else Zt!==null&&(Qu(Zt),Zt=null),h=!0;if(!h)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=o,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ue.current&1)!==0?et===0&&(et=3):ed())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return Po(),Bu(e,t),e===null&&vi(t.stateNode.containerInfo),ht(t),null;case 10:return hu(t.type._context),ht(t),null;case 17:return St(t.type)&&ta(),ht(t),null;case 19:if(De(Ue),h=t.memoizedState,h===null)return ht(t),null;if(a=(t.flags&128)!==0,b=h.rendering,b===null)if(a)Ti(h,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(b=fa(e),b!==null){for(t.flags|=128,Ti(h,!1),a=b.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=o,o=t.child;o!==null;)h=o,e=a,h.flags&=14680066,b=h.alternate,b===null?(h.childLanes=0,h.lanes=e,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=b.childLanes,h.lanes=b.lanes,h.child=b.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=b.memoizedProps,h.memoizedState=b.memoizedState,h.updateQueue=b.updateQueue,h.type=b.type,e=b.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return ze(Ue,Ue.current&1|2),t.child}e=e.sibling}h.tail!==null&&Ge()>jo&&(t.flags|=128,a=!0,Ti(h,!1),t.lanes=4194304)}else{if(!a)if(e=fa(b),e!==null){if(t.flags|=128,a=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),Ti(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Be)return ht(t),null}else 2*Ge()-h.renderingStartTime>jo&&o!==1073741824&&(t.flags|=128,a=!0,Ti(h,!1),t.lanes=4194304);h.isBackwards?(b.sibling=t.child,t.child=b):(o=h.last,o!==null?o.sibling=b:t.child=b,h.last=b)}return h.tail!==null?(t=h.tail,h.rendering=t,h.tail=t.sibling,h.renderingStartTime=Ge(),t.sibling=null,o=Ue.current,ze(Ue,a?o&1|2:o&1),t):(ht(t),null);case 22:case 23:return Ju(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(Mt&1073741824)!==0&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function R_(e,t){switch(lu(t),t.tag){case 1:return St(t.type)&&ta(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Po(),De(kt),De(ft),bu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return wu(t),null;case 13:if(De(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));No()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(Ue),null;case 4:return Po(),null;case 10:return hu(t.type._context),null;case 22:case 23:return Ju(),null;case 24:return null;default:return null}}var ba=!1,mt=!1,T_=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Ao(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){Ve(e,t,a)}else o.current=null}function $u(e,t,o){try{o()}catch(a){Ve(e,t,a)}}var N0=!1;function P_(e,t){if(Jc=$s,e=ov(),Wc(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var u=a.anchorOffset,h=a.focusNode;a=a.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var b=0,T=-1,A=-1,V=0,oe=0,se=e,te=null;t:for(;;){for(var fe;se!==o||u!==0&&se.nodeType!==3||(T=b+u),se!==h||a!==0&&se.nodeType!==3||(A=b+a),se.nodeType===3&&(b+=se.nodeValue.length),(fe=se.firstChild)!==null;)te=se,se=fe;for(;;){if(se===e)break t;if(te===o&&++V===u&&(T=b),te===h&&++oe===a&&(A=b),(fe=se.nextSibling)!==null)break;se=te,te=se.parentNode}se=fe}o=T===-1||A===-1?null:{start:T,end:A}}else o=null}o=o||{start:0,end:0}}else o=null;for(eu={focusedElem:e,selectionRange:o},$s=!1,pe=t;pe!==null;)if(t=pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pe=e;else for(;pe!==null;){t=pe;try{var me=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(me!==null){var ve=me.memoizedProps,Ye=me.memoizedState,B=t.stateNode,L=B.getSnapshotBeforeUpdate(t.elementType===t.type?ve:Jt(t.type,ve),Ye);B.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var $=t.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(le){Ve(t,t.return,le)}if(e=t.sibling,e!==null){e.return=t.return,pe=e;break}pe=t.return}return me=N0,N0=!1,me}function Pi(e,t,o){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var u=a=a.next;do{if((u.tag&e)===e){var h=u.destroy;u.destroy=void 0,h!==void 0&&$u(t,o,h)}u=u.next}while(u!==a)}}function ka(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var a=o.create;o.destroy=a()}o=o.next}while(o!==t)}}function Uu(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function _0(e){var t=e.alternate;t!==null&&(e.alternate=null,_0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hn],delete t[wi],delete t[ou],delete t[f_],delete t[p_])),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 R0(e){return e.tag===5||e.tag===3||e.tag===4}function T0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||R0(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 Hu(e,t,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=Js));else if(a!==4&&(e=e.child,e!==null))for(Hu(e,t,o),e=e.sibling;e!==null;)Hu(e,t,o),e=e.sibling}function Vu(e,t,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Vu(e,t,o),e=e.sibling;e!==null;)Vu(e,t,o),e=e.sibling}var lt=null,en=!1;function ur(e,t,o){for(o=o.child;o!==null;)P0(e,t,o),o=o.sibling}function P0(e,t,o){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(Ls,o)}catch{}switch(o.tag){case 5:mt||Ao(o,t);case 6:var a=lt,u=en;lt=null,ur(e,t,o),lt=a,en=u,lt!==null&&(en?(e=lt,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):lt.removeChild(o.stateNode));break;case 18:lt!==null&&(en?(e=lt,o=o.stateNode,e.nodeType===8?ru(e.parentNode,o):e.nodeType===1&&ru(e,o),li(e)):ru(lt,o.stateNode));break;case 4:a=lt,u=en,lt=o.stateNode.containerInfo,en=!0,ur(e,t,o),lt=a,en=u;break;case 0:case 11:case 14:case 15:if(!mt&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){u=a=a.next;do{var h=u,b=h.destroy;h=h.tag,b!==void 0&&((h&2)!==0||(h&4)!==0)&&$u(o,t,b),u=u.next}while(u!==a)}ur(e,t,o);break;case 1:if(!mt&&(Ao(o,t),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(T){Ve(o,t,T)}ur(e,t,o);break;case 21:ur(e,t,o);break;case 22:o.mode&1?(mt=(a=mt)||o.memoizedState!==null,ur(e,t,o),mt=a):ur(e,t,o);break;default:ur(e,t,o)}}function I0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new T_),t.forEach(function(a){var u=F_.bind(null,e,a);o.has(a)||(o.add(a),a.then(u,u))})}}function tn(e,t){var o=t.deletions;if(o!==null)for(var a=0;a<o.length;a++){var u=o[a];try{var h=e,b=t,T=b;e:for(;T!==null;){switch(T.tag){case 5:lt=T.stateNode,en=!1;break e;case 3:lt=T.stateNode.containerInfo,en=!0;break e;case 4:lt=T.stateNode.containerInfo,en=!0;break e}T=T.return}if(lt===null)throw Error(i(160));P0(h,b,u),lt=null,en=!1;var A=u.alternate;A!==null&&(A.return=null),u.return=null}catch(V){Ve(u,t,V)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)A0(t,e),t=t.sibling}function A0(e,t){var o=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(tn(t,e),vn(e),a&4){try{Pi(3,e,e.return),ka(3,e)}catch(ve){Ve(e,e.return,ve)}try{Pi(5,e,e.return)}catch(ve){Ve(e,e.return,ve)}}break;case 1:tn(t,e),vn(e),a&512&&o!==null&&Ao(o,o.return);break;case 5:if(tn(t,e),vn(e),a&512&&o!==null&&Ao(o,o.return),e.flags&32){var u=e.stateNode;try{Lt(u,"")}catch(ve){Ve(e,e.return,ve)}}if(a&4&&(u=e.stateNode,u!=null)){var h=e.memoizedProps,b=o!==null?o.memoizedProps:h,T=e.type,A=e.updateQueue;if(e.updateQueue=null,A!==null)try{T==="input"&&h.type==="radio"&&h.name!=null&&Kt(u,h),Zo(T,b);var V=Zo(T,h);for(b=0;b<A.length;b+=2){var oe=A[b],se=A[b+1];oe==="style"?As(u,se):oe==="dangerouslySetInnerHTML"?fo(u,se):oe==="children"?Lt(u,se):P(u,oe,se,V)}switch(T){case"input":gt(u,h);break;case"textarea":Ts(u,h);break;case"select":var te=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!h.multiple;var fe=h.value;fe!=null?Wn(u,!!h.multiple,fe,!1):te!==!!h.multiple&&(h.defaultValue!=null?Wn(u,!!h.multiple,h.defaultValue,!0):Wn(u,!!h.multiple,h.multiple?[]:"",!1))}u[wi]=h}catch(ve){Ve(e,e.return,ve)}}break;case 6:if(tn(t,e),vn(e),a&4){if(e.stateNode===null)throw Error(i(162));u=e.stateNode,h=e.memoizedProps;try{u.nodeValue=h}catch(ve){Ve(e,e.return,ve)}}break;case 3:if(tn(t,e),vn(e),a&4&&o!==null&&o.memoizedState.isDehydrated)try{li(t.containerInfo)}catch(ve){Ve(e,e.return,ve)}break;case 4:tn(t,e),vn(e);break;case 13:tn(t,e),vn(e),u=e.child,u.flags&8192&&(h=u.memoizedState!==null,u.stateNode.isHidden=h,!h||u.alternate!==null&&u.alternate.memoizedState!==null||(Gu=Ge())),a&4&&I0(e);break;case 22:if(oe=o!==null&&o.memoizedState!==null,e.mode&1?(mt=(V=mt)||oe,tn(t,e),mt=V):tn(t,e),vn(e),a&8192){if(V=e.memoizedState!==null,(e.stateNode.isHidden=V)&&!oe&&(e.mode&1)!==0)for(pe=e,oe=e.child;oe!==null;){for(se=pe=oe;pe!==null;){switch(te=pe,fe=te.child,te.tag){case 0:case 11:case 14:case 15:Pi(4,te,te.return);break;case 1:Ao(te,te.return);var me=te.stateNode;if(typeof me.componentWillUnmount=="function"){a=te,o=te.return;try{t=a,me.props=t.memoizedProps,me.state=t.memoizedState,me.componentWillUnmount()}catch(ve){Ve(a,o,ve)}}break;case 5:Ao(te,te.return);break;case 22:if(te.memoizedState!==null){L0(se);continue}}fe!==null?(fe.return=te,pe=fe):L0(se)}oe=oe.sibling}e:for(oe=null,se=e;;){if(se.tag===5){if(oe===null){oe=se;try{u=se.stateNode,V?(h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(T=se.stateNode,A=se.memoizedProps.style,b=A!=null&&A.hasOwnProperty("display")?A.display:null,T.style.display=Is("display",b))}catch(ve){Ve(e,e.return,ve)}}}else if(se.tag===6){if(oe===null)try{se.stateNode.nodeValue=V?"":se.memoizedProps}catch(ve){Ve(e,e.return,ve)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===e)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===e)break e;for(;se.sibling===null;){if(se.return===null||se.return===e)break e;oe===se&&(oe=null),se=se.return}oe===se&&(oe=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:tn(t,e),vn(e),a&4&&I0(e);break;case 21:break;default:tn(t,e),vn(e)}}function vn(e){var t=e.flags;if(t&2){try{e:{for(var o=e.return;o!==null;){if(R0(o)){var a=o;break e}o=o.return}throw Error(i(160))}switch(a.tag){case 5:var u=a.stateNode;a.flags&32&&(Lt(u,""),a.flags&=-33);var h=T0(e);Vu(e,h,u);break;case 3:case 4:var b=a.stateNode.containerInfo,T=T0(e);Hu(e,T,b);break;default:throw Error(i(161))}}catch(A){Ve(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function I_(e,t,o){pe=e,M0(e)}function M0(e,t,o){for(var a=(e.mode&1)!==0;pe!==null;){var u=pe,h=u.child;if(u.tag===22&&a){var b=u.memoizedState!==null||ba;if(!b){var T=u.alternate,A=T!==null&&T.memoizedState!==null||mt;T=ba;var V=mt;if(ba=b,(mt=A)&&!V)for(pe=u;pe!==null;)b=pe,A=b.child,b.tag===22&&b.memoizedState!==null?z0(u):A!==null?(A.return=b,pe=A):z0(u);for(;h!==null;)pe=h,M0(h),h=h.sibling;pe=u,ba=T,mt=V}j0(e)}else(u.subtreeFlags&8772)!==0&&h!==null?(h.return=u,pe=h):j0(e)}}function j0(e){for(;pe!==null;){var t=pe;if((t.flags&8772)!==0){var o=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:mt||ka(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!mt)if(o===null)a.componentDidMount();else{var u=t.elementType===t.type?o.memoizedProps:Jt(t.type,o.memoizedProps);a.componentDidUpdate(u,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var h=t.updateQueue;h!==null&&Lv(t,h,a);break;case 3:var b=t.updateQueue;if(b!==null){if(o=null,t.child!==null)switch(t.child.tag){case 5:o=t.child.stateNode;break;case 1:o=t.child.stateNode}Lv(t,b,o)}break;case 5:var T=t.stateNode;if(o===null&&t.flags&4){o=T;var A=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&o.focus();break;case"img":A.src&&(o.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var V=t.alternate;if(V!==null){var oe=V.memoizedState;if(oe!==null){var se=oe.dehydrated;se!==null&&li(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}mt||t.flags&512&&Uu(t)}catch(te){Ve(t,t.return,te)}}if(t===e){pe=null;break}if(o=t.sibling,o!==null){o.return=t.return,pe=o;break}pe=t.return}}function L0(e){for(;pe!==null;){var t=pe;if(t===e){pe=null;break}var o=t.sibling;if(o!==null){o.return=t.return,pe=o;break}pe=t.return}}function z0(e){for(;pe!==null;){var t=pe;try{switch(t.tag){case 0:case 11:case 15:var o=t.return;try{ka(4,t)}catch(A){Ve(t,o,A)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var u=t.return;try{a.componentDidMount()}catch(A){Ve(t,u,A)}}var h=t.return;try{Uu(t)}catch(A){Ve(t,h,A)}break;case 5:var b=t.return;try{Uu(t)}catch(A){Ve(t,b,A)}}}catch(A){Ve(t,t.return,A)}if(t===e){pe=null;break}var T=t.sibling;if(T!==null){T.return=t.return,pe=T;break}pe=t.return}}var A_=Math.ceil,Sa=M.ReactCurrentDispatcher,Wu=M.ReactCurrentOwner,Ut=M.ReactCurrentBatchConfig,Me=0,ot=null,Xe=null,ct=0,Mt=0,Mo=ir(0),et=0,Ii=null,Ur=0,Ca=0,qu=0,Ai=null,Et=null,Gu=0,jo=1/0,An=null,Ea=!1,Yu=null,dr=null,Na=!1,fr=null,_a=0,Mi=0,Ku=null,Ra=-1,Ta=0;function yt(){return(Me&6)!==0?Ge():Ra!==-1?Ra:Ra=Ge()}function pr(e){return(e.mode&1)===0?1:(Me&2)!==0&&ct!==0?ct&-ct:m_.transition!==null?(Ta===0&&(Ta=Tg()),Ta):(e=Le,e!==0||(e=window.event,e=e===void 0?16:Dg(e.type)),e)}function nn(e,t,o,a){if(50<Mi)throw Mi=0,Ku=null,Error(i(185));ri(e,o,a),((Me&2)===0||e!==ot)&&(e===ot&&((Me&2)===0&&(Ca|=o),et===4&&hr(e,ct)),Nt(e,a),o===1&&Me===0&&(t.mode&1)===0&&(jo=Ge()+500,ra&&ar()))}function Nt(e,t){var o=e.callbackNode;mN(e,t);var a=Ds(e,e===ot?ct:0);if(a===0)o!==null&&Ng(o),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(o!=null&&Ng(o),t===1)e.tag===0?h_(D0.bind(null,e)):Sv(D0.bind(null,e)),u_(function(){(Me&6)===0&&ar()}),o=null;else{switch(Pg(a)){case 1:o=Rc;break;case 4:o=_g;break;case 16:o=js;break;case 536870912:o=Rg;break;default:o=js}o=q0(o,O0.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function O0(e,t){if(Ra=-1,Ta=0,(Me&6)!==0)throw Error(i(327));var o=e.callbackNode;if(Lo()&&e.callbackNode!==o)return null;var a=Ds(e,e===ot?ct:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||t)t=Pa(e,a);else{t=a;var u=Me;Me|=2;var h=B0();(ot!==e||ct!==t)&&(An=null,jo=Ge()+500,Vr(e,t));do try{L_();break}catch(T){F0(e,T)}while(!0);pu(),Sa.current=h,Me=u,Xe!==null?t=0:(ot=null,ct=0,t=et)}if(t!==0){if(t===2&&(u=Tc(e),u!==0&&(a=u,t=Xu(e,u))),t===1)throw o=Ii,Vr(e,0),hr(e,a),Nt(e,Ge()),o;if(t===6)hr(e,a);else{if(u=e.current.alternate,(a&30)===0&&!M_(u)&&(t=Pa(e,a),t===2&&(h=Tc(e),h!==0&&(a=h,t=Xu(e,h))),t===1))throw o=Ii,Vr(e,0),hr(e,a),Nt(e,Ge()),o;switch(e.finishedWork=u,e.finishedLanes=a,t){case 0:case 1:throw Error(i(345));case 2:Wr(e,Et,An);break;case 3:if(hr(e,a),(a&130023424)===a&&(t=Gu+500-Ge(),10<t)){if(Ds(e,0)!==0)break;if(u=e.suspendedLanes,(u&a)!==a){yt(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=nu(Wr.bind(null,e,Et,An),t);break}Wr(e,Et,An);break;case 4:if(hr(e,a),(a&4194240)===a)break;for(t=e.eventTimes,u=-1;0<a;){var b=31-Xt(a);h=1<<b,b=t[b],b>u&&(u=b),a&=~h}if(a=u,a=Ge()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*A_(a/1960))-a,10<a){e.timeoutHandle=nu(Wr.bind(null,e,Et,An),a);break}Wr(e,Et,An);break;case 5:Wr(e,Et,An);break;default:throw Error(i(329))}}}return Nt(e,Ge()),e.callbackNode===o?O0.bind(null,e):null}function Xu(e,t){var o=Ai;return e.current.memoizedState.isDehydrated&&(Vr(e,t).flags|=256),e=Pa(e,t),e!==2&&(t=Et,Et=o,t!==null&&Qu(t)),e}function Qu(e){Et===null?Et=e:Et.push.apply(Et,e)}function M_(e){for(var t=e;;){if(t.flags&16384){var o=t.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var u=o[a],h=u.getSnapshot;u=u.value;try{if(!Qt(h(),u))return!1}catch{return!1}}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function hr(e,t){for(t&=~qu,t&=~Ca,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var o=31-Xt(t),a=1<<o;e[o]=-1,t&=~a}}function D0(e){if((Me&6)!==0)throw Error(i(327));Lo();var t=Ds(e,0);if((t&1)===0)return Nt(e,Ge()),null;var o=Pa(e,t);if(e.tag!==0&&o===2){var a=Tc(e);a!==0&&(t=a,o=Xu(e,a))}if(o===1)throw o=Ii,Vr(e,0),hr(e,t),Nt(e,Ge()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wr(e,Et,An),Nt(e,Ge()),null}function Zu(e,t){var o=Me;Me|=1;try{return e(t)}finally{Me=o,Me===0&&(jo=Ge()+500,ra&&ar())}}function Hr(e){fr!==null&&fr.tag===0&&(Me&6)===0&&Lo();var t=Me;Me|=1;var o=Ut.transition,a=Le;try{if(Ut.transition=null,Le=1,e)return e()}finally{Le=a,Ut.transition=o,Me=t,(Me&6)===0&&ar()}}function Ju(){Mt=Mo.current,De(Mo)}function Vr(e,t){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,c_(o)),Xe!==null)for(o=Xe.return;o!==null;){var a=o;switch(lu(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&ta();break;case 3:Po(),De(kt),De(ft),bu();break;case 5:wu(a);break;case 4:Po();break;case 13:De(Ue);break;case 19:De(Ue);break;case 10:hu(a.type._context);break;case 22:case 23:Ju()}o=o.return}if(ot=e,Xe=e=mr(e.current,null),ct=Mt=t,et=0,Ii=null,qu=Ca=Ur=0,Et=Ai=null,Fr!==null){for(t=0;t<Fr.length;t++)if(o=Fr[t],a=o.interleaved,a!==null){o.interleaved=null;var u=a.next,h=o.pending;if(h!==null){var b=h.next;h.next=u,a.next=b}o.pending=a}Fr=null}return e}function F0(e,t){do{var o=Xe;try{if(pu(),pa.current=va,ha){for(var a=He.memoizedState;a!==null;){var u=a.queue;u!==null&&(u.pending=null),a=a.next}ha=!1}if($r=0,rt=Je=He=null,Ei=!1,Ni=0,Wu.current=null,o===null||o.return===null){et=1,Ii=t,Xe=null;break}e:{var h=e,b=o.return,T=o,A=t;if(t=ct,T.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var V=A,oe=T,se=oe.tag;if((oe.mode&1)===0&&(se===0||se===11||se===15)){var te=oe.alternate;te?(oe.updateQueue=te.updateQueue,oe.memoizedState=te.memoizedState,oe.lanes=te.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var fe=u0(b);if(fe!==null){fe.flags&=-257,d0(fe,b,T,h,t),fe.mode&1&&c0(h,V,t),t=fe,A=V;var me=t.updateQueue;if(me===null){var ve=new Set;ve.add(A),t.updateQueue=ve}else me.add(A);break e}else{if((t&1)===0){c0(h,V,t),ed();break e}A=Error(i(426))}}else if(Be&&T.mode&1){var Ye=u0(b);if(Ye!==null){(Ye.flags&65536)===0&&(Ye.flags|=256),d0(Ye,b,T,h,t),du(Io(A,T));break e}}h=A=Io(A,T),et!==4&&(et=2),Ai===null?Ai=[h]:Ai.push(h),h=b;do{switch(h.tag){case 3:h.flags|=65536,t&=-t,h.lanes|=t;var B=a0(h,A,t);jv(h,B);break e;case 1:T=A;var L=h.type,$=h.stateNode;if((h.flags&128)===0&&(typeof L.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(dr===null||!dr.has($)))){h.flags|=65536,t&=-t,h.lanes|=t;var le=l0(h,T,t);jv(h,le);break e}}h=h.return}while(h!==null)}U0(o)}catch(xe){t=xe,Xe===o&&o!==null&&(Xe=o=o.return);continue}break}while(!0)}function B0(){var e=Sa.current;return Sa.current=va,e===null?va:e}function ed(){(et===0||et===3||et===2)&&(et=4),ot===null||(Ur&268435455)===0&&(Ca&268435455)===0||hr(ot,ct)}function Pa(e,t){var o=Me;Me|=2;var a=B0();(ot!==e||ct!==t)&&(An=null,Vr(e,t));do try{j_();break}catch(u){F0(e,u)}while(!0);if(pu(),Me=o,Sa.current=a,Xe!==null)throw Error(i(261));return ot=null,ct=0,et}function j_(){for(;Xe!==null;)$0(Xe)}function L_(){for(;Xe!==null&&!sN();)$0(Xe)}function $0(e){var t=W0(e.alternate,e,Mt);e.memoizedProps=e.pendingProps,t===null?U0(e):Xe=t,Wu.current=null}function U0(e){var t=e;do{var o=t.alternate;if(e=t.return,(t.flags&32768)===0){if(o=__(o,t,Mt),o!==null){Xe=o;return}}else{if(o=R_(o,t),o!==null){o.flags&=32767,Xe=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{et=6,Xe=null;return}}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);et===0&&(et=5)}function Wr(e,t,o){var a=Le,u=Ut.transition;try{Ut.transition=null,Le=1,z_(e,t,o,a)}finally{Ut.transition=u,Le=a}return null}function z_(e,t,o,a){do Lo();while(fr!==null);if((Me&6)!==0)throw Error(i(327));o=e.finishedWork;var u=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var h=o.lanes|o.childLanes;if(gN(e,h),e===ot&&(Xe=ot=null,ct=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Na||(Na=!0,q0(js,function(){return Lo(),null})),h=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||h){h=Ut.transition,Ut.transition=null;var b=Le;Le=1;var T=Me;Me|=4,Wu.current=null,P_(e,o),A0(o,e),n_(eu),$s=!!Jc,eu=Jc=null,e.current=o,I_(o),aN(),Me=T,Le=b,Ut.transition=h}else e.current=o;if(Na&&(Na=!1,fr=e,_a=u),h=e.pendingLanes,h===0&&(dr=null),uN(o.stateNode),Nt(e,Ge()),t!==null)for(a=e.onRecoverableError,o=0;o<t.length;o++)u=t[o],a(u.value,{componentStack:u.stack,digest:u.digest});if(Ea)throw Ea=!1,e=Yu,Yu=null,e;return(_a&1)!==0&&e.tag!==0&&Lo(),h=e.pendingLanes,(h&1)!==0?e===Ku?Mi++:(Mi=0,Ku=e):Mi=0,ar(),null}function Lo(){if(fr!==null){var e=Pg(_a),t=Ut.transition,o=Le;try{if(Ut.transition=null,Le=16>e?16:e,fr===null)var a=!1;else{if(e=fr,fr=null,_a=0,(Me&6)!==0)throw Error(i(331));var u=Me;for(Me|=4,pe=e.current;pe!==null;){var h=pe,b=h.child;if((pe.flags&16)!==0){var T=h.deletions;if(T!==null){for(var A=0;A<T.length;A++){var V=T[A];for(pe=V;pe!==null;){var oe=pe;switch(oe.tag){case 0:case 11:case 15:Pi(8,oe,h)}var se=oe.child;if(se!==null)se.return=oe,pe=se;else for(;pe!==null;){oe=pe;var te=oe.sibling,fe=oe.return;if(_0(oe),oe===V){pe=null;break}if(te!==null){te.return=fe,pe=te;break}pe=fe}}}var me=h.alternate;if(me!==null){var ve=me.child;if(ve!==null){me.child=null;do{var Ye=ve.sibling;ve.sibling=null,ve=Ye}while(ve!==null)}}pe=h}}if((h.subtreeFlags&2064)!==0&&b!==null)b.return=h,pe=b;else e:for(;pe!==null;){if(h=pe,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:Pi(9,h,h.return)}var B=h.sibling;if(B!==null){B.return=h.return,pe=B;break e}pe=h.return}}var L=e.current;for(pe=L;pe!==null;){b=pe;var $=b.child;if((b.subtreeFlags&2064)!==0&&$!==null)$.return=b,pe=$;else e:for(b=L;pe!==null;){if(T=pe,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:ka(9,T)}}catch(xe){Ve(T,T.return,xe)}if(T===b){pe=null;break e}var le=T.sibling;if(le!==null){le.return=T.return,pe=le;break e}pe=T.return}}if(Me=u,ar(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(Ls,e)}catch{}a=!0}return a}finally{Le=o,Ut.transition=t}}return!1}function H0(e,t,o){t=Io(o,t),t=a0(e,t,1),e=cr(e,t,1),t=yt(),e!==null&&(ri(e,1,t),Nt(e,t))}function Ve(e,t,o){if(e.tag===3)H0(e,e,o);else for(;t!==null;){if(t.tag===3){H0(t,e,o);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(dr===null||!dr.has(a))){e=Io(o,e),e=l0(t,e,1),t=cr(t,e,1),e=yt(),t!==null&&(ri(t,1,e),Nt(t,e));break}}t=t.return}}function O_(e,t,o){var a=e.pingCache;a!==null&&a.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&o,ot===e&&(ct&o)===o&&(et===4||et===3&&(ct&130023424)===ct&&500>Ge()-Gu?Vr(e,0):qu|=o),Nt(e,t)}function V0(e,t){t===0&&((e.mode&1)===0?t=1:(t=Os,Os<<=1,(Os&130023424)===0&&(Os=4194304)));var o=yt();e=Tn(e,t),e!==null&&(ri(e,t,o),Nt(e,o))}function D_(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),V0(e,o)}function F_(e,t){var o=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(o=u.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(t),V0(e,o)}var W0;W0=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)Ct=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return Ct=!1,N_(e,t,o);Ct=(e.flags&131072)!==0}else Ct=!1,Be&&(t.flags&1048576)!==0&&Cv(t,ia,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;xa(e,t),e=t.pendingProps;var u=So(t,ft.current);To(t,o),u=Cu(null,t,a,e,u,o);var h=Eu();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(a)?(h=!0,na(t)):h=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,vu(t),u.updater=ya,t.stateNode=u,u._reactInternals=t,Iu(t,a,e,o),t=Lu(null,t,a,!0,h,o)):(t.tag=0,Be&&h&&au(t),vt(null,t,u,o),t=t.child),t;case 16:a=t.elementType;e:{switch(xa(e,t),e=t.pendingProps,u=a._init,a=u(a._payload),t.type=a,u=t.tag=$_(a),e=Jt(a,e),u){case 0:t=ju(null,t,a,e,o);break e;case 1:t=v0(null,t,a,e,o);break e;case 11:t=f0(null,t,a,e,o);break e;case 14:t=p0(null,t,a,Jt(a.type,e),o);break e}throw Error(i(306,a,""))}return t;case 0:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Jt(a,u),ju(e,t,a,u,o);case 1:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Jt(a,u),v0(e,t,a,u,o);case 3:e:{if(y0(t),e===null)throw Error(i(387));a=t.pendingProps,h=t.memoizedState,u=h.element,Mv(e,t),da(t,a,null,o);var b=t.memoizedState;if(a=b.element,h.isDehydrated)if(h={element:a,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){u=Io(Error(i(423)),t),t=w0(e,t,a,o,u);break e}else if(a!==u){u=Io(Error(i(424)),t),t=w0(e,t,a,o,u);break e}else for(At=or(t.stateNode.containerInfo.firstChild),It=t,Be=!0,Zt=null,o=Iv(t,null,a,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(No(),a===u){t=In(e,t,o);break e}vt(e,t,a,o)}t=t.child}return t;case 5:return zv(t),e===null&&uu(t),a=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,b=u.children,tu(a,u)?b=null:h!==null&&tu(a,h)&&(t.flags|=32),g0(e,t),vt(e,t,b,o),t.child;case 6:return e===null&&uu(t),null;case 13:return x0(e,t,o);case 4:return yu(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_o(t,null,a,o):vt(e,t,a,o),t.child;case 11:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Jt(a,u),f0(e,t,a,u,o);case 7:return vt(e,t,t.pendingProps,o),t.child;case 8:return vt(e,t,t.pendingProps.children,o),t.child;case 12:return vt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(a=t.type._context,u=t.pendingProps,h=t.memoizedProps,b=u.value,ze(la,a._currentValue),a._currentValue=b,h!==null)if(Qt(h.value,b)){if(h.children===u.children&&!kt.current){t=In(e,t,o);break e}}else for(h=t.child,h!==null&&(h.return=t);h!==null;){var T=h.dependencies;if(T!==null){b=h.child;for(var A=T.firstContext;A!==null;){if(A.context===a){if(h.tag===1){A=Pn(-1,o&-o),A.tag=2;var V=h.updateQueue;if(V!==null){V=V.shared;var oe=V.pending;oe===null?A.next=A:(A.next=oe.next,oe.next=A),V.pending=A}}h.lanes|=o,A=h.alternate,A!==null&&(A.lanes|=o),mu(h.return,o,t),T.lanes|=o;break}A=A.next}}else if(h.tag===10)b=h.type===t.type?null:h.child;else if(h.tag===18){if(b=h.return,b===null)throw Error(i(341));b.lanes|=o,T=b.alternate,T!==null&&(T.lanes|=o),mu(b,o,t),b=h.sibling}else b=h.child;if(b!==null)b.return=h;else for(b=h;b!==null;){if(b===t){b=null;break}if(h=b.sibling,h!==null){h.return=b.return,b=h;break}b=b.return}h=b}vt(e,t,u.children,o),t=t.child}return t;case 9:return u=t.type,a=t.pendingProps.children,To(t,o),u=Bt(u),a=a(u),t.flags|=1,vt(e,t,a,o),t.child;case 14:return a=t.type,u=Jt(a,t.pendingProps),u=Jt(a.type,u),p0(e,t,a,u,o);case 15:return h0(e,t,t.type,t.pendingProps,o);case 17:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Jt(a,u),xa(e,t),t.tag=1,St(a)?(e=!0,na(t)):e=!1,To(t,o),i0(t,a,u),Iu(t,a,u,o),Lu(null,t,a,!0,e,o);case 19:return k0(e,t,o);case 22:return m0(e,t,o)}throw Error(i(156,t.tag))};function q0(e,t){return Eg(e,t)}function B_(e,t,o,a){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,o,a){return new B_(e,t,o,a)}function td(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $_(e){if(typeof e=="function")return td(e)?1:0;if(e!=null){if(e=e.$$typeof,e===K)return 11;if(e===ue)return 14}return 2}function mr(e,t){var o=e.alternate;return o===null?(o=Ht(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Ia(e,t,o,a,u,h){var b=2;if(a=e,typeof e=="function")td(e)&&(b=1);else if(typeof e=="string")b=5;else e:switch(e){case D:return qr(o.children,u,h,t);case j:b=8,u|=8;break;case q:return e=Ht(12,o,t,u|2),e.elementType=q,e.lanes=h,e;case X:return e=Ht(13,o,t,u),e.elementType=X,e.lanes=h,e;case Y:return e=Ht(19,o,t,u),e.elementType=Y,e.lanes=h,e;case ne:return Aa(o,u,h,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:b=10;break e;case U:b=9;break e;case K:b=11;break e;case ue:b=14;break e;case Q:b=16,a=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ht(b,o,t,u),t.elementType=e,t.type=a,t.lanes=h,t}function qr(e,t,o,a){return e=Ht(7,e,a,t),e.lanes=o,e}function Aa(e,t,o,a){return e=Ht(22,e,a,t),e.elementType=ne,e.lanes=o,e.stateNode={isHidden:!1},e}function nd(e,t,o){return e=Ht(6,e,null,t),e.lanes=o,e}function rd(e,t,o){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function U_(e,t,o,a,u){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=Pc(0),this.expirationTimes=Pc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pc(0),this.identifierPrefix=a,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function od(e,t,o,a,u,h,b,T,A){return e=new U_(e,t,o,T,A),t===1?(t=1,h===!0&&(t|=8)):t=0,h=Ht(3,null,null,t),e.current=h,h.stateNode=e,h.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},vu(h),e}function H_(e,t,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:a==null?null:""+a,children:e,containerInfo:t,implementation:o}}function G0(e){if(!e)return sr;e=e._reactInternals;e:{if(jr(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 o=e.type;if(St(o))return bv(e,o,t)}return t}function Y0(e,t,o,a,u,h,b,T,A){return e=od(o,a,!0,e,u,h,b,T,A),e.context=G0(null),o=e.current,a=yt(),u=pr(o),h=Pn(a,u),h.callback=t??null,cr(o,h,u),e.current.lanes=u,ri(e,u,a),Nt(e,a),e}function Ma(e,t,o,a){var u=t.current,h=yt(),b=pr(u);return o=G0(o),t.context===null?t.context=o:t.pendingContext=o,t=Pn(h,b),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=cr(u,t,b),e!==null&&(nn(e,u,b,h),ua(e,u,b)),b}function ja(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 K0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function id(e,t){K0(e,t),(e=e.alternate)&&K0(e,t)}function V_(){return null}var X0=typeof reportError=="function"?reportError:function(e){console.error(e)};function sd(e){this._internalRoot=e}La.prototype.render=sd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Ma(e,t,null,null)},La.prototype.unmount=sd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hr(function(){Ma(null,e,null,null)}),t[En]=null}};function La(e){this._internalRoot=e}La.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mg();e={blockedOn:null,target:e,priority:t};for(var o=0;o<tr.length&&t!==0&&t<tr[o].priority;o++);tr.splice(o,0,e),o===0&&zg(e)}};function ad(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function za(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Q0(){}function W_(e,t,o,a,u){if(u){if(typeof a=="function"){var h=a;a=function(){var V=ja(b);h.call(V)}}var b=Y0(t,a,e,0,null,!1,!1,"",Q0);return e._reactRootContainer=b,e[En]=b.current,vi(e.nodeType===8?e.parentNode:e),Hr(),b}for(;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var T=a;a=function(){var V=ja(A);T.call(V)}}var A=od(e,0,!1,null,null,!1,!1,"",Q0);return e._reactRootContainer=A,e[En]=A.current,vi(e.nodeType===8?e.parentNode:e),Hr(function(){Ma(t,A,o,a)}),A}function Oa(e,t,o,a,u){var h=o._reactRootContainer;if(h){var b=h;if(typeof u=="function"){var T=u;u=function(){var A=ja(b);T.call(A)}}Ma(t,b,e,u)}else b=W_(o,t,e,u,a);return ja(b)}Ig=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var o=ni(t.pendingLanes);o!==0&&(Ic(t,o|1),Nt(t,Ge()),(Me&6)===0&&(jo=Ge()+500,ar()))}break;case 13:Hr(function(){var a=Tn(e,1);if(a!==null){var u=yt();nn(a,e,1,u)}}),id(e,1)}},Ac=function(e){if(e.tag===13){var t=Tn(e,134217728);if(t!==null){var o=yt();nn(t,e,134217728,o)}id(e,134217728)}},Ag=function(e){if(e.tag===13){var t=pr(e),o=Tn(e,t);if(o!==null){var a=yt();nn(o,e,t,a)}id(e,t)}},Mg=function(){return Le},jg=function(e,t){var o=Le;try{return Le=e,t()}finally{Le=o}},Jo=function(e,t,o){switch(t){case"input":if(gt(e,o),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<o.length;t++){var a=o[t];if(a!==e&&a.form===e.form){var u=ea(a);if(!u)throw Error(i(90));Re(a),gt(a,u)}}}break;case"textarea":Ts(e,o);break;case"select":t=o.value,t!=null&&Wn(e,!!o.multiple,t,!1)}},Ze=Zu,dt=Hr;var q_={usingClientEntryPoint:!1,Events:[xi,bo,ea,Ne,qe,Zu]},ji={findFiberByHostInstance:Lr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},G_={bundleType:ji.bundleType,version:ji.version,rendererPackageName:ji.rendererPackageName,rendererConfig:ji.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sg(e),e===null?null:e.stateNode},findFiberByHostInstance:ji.findFiberByHostInstance||V_,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 Da=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Da.isDisabled&&Da.supportsFiber)try{Ls=Da.inject(G_),pn=Da}catch{}}return wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q_,wt.createPortal=function(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ad(t))throw Error(i(200));return H_(e,t,null,o)},wt.createRoot=function(e,t){if(!ad(e))throw Error(i(299));var o=!1,a="",u=X0;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=od(e,1,!1,null,null,o,!1,a,u),e[En]=t.current,vi(e.nodeType===8?e.parentNode:e),new sd(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=Sg(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return Hr(e)},wt.hydrate=function(e,t,o){if(!za(t))throw Error(i(200));return Oa(null,e,t,!0,o)},wt.hydrateRoot=function(e,t,o){if(!ad(e))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,u=!1,h="",b=X0;if(o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(b=o.onRecoverableError)),t=Y0(t,null,e,1,o??null,u,!1,h,b),e[En]=t.current,vi(e),a)for(e=0;e<a.length;e++)o=a[e],u=o._getVersion,u=u(o._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[o,u]:t.mutableSourceEagerHydrationData.push(o,u);return new La(t)},wt.render=function(e,t,o){if(!za(t))throw Error(i(200));return Oa(null,e,t,!1,o)},wt.unmountComponentAtNode=function(e){if(!za(e))throw Error(i(40));return e._reactRootContainer?(Hr(function(){Oa(null,null,e,!1,function(){e._reactRootContainer=null,e[En]=null})}),!0):!1},wt.unstable_batchedUpdates=Zu,wt.unstable_renderSubtreeIntoContainer=function(e,t,o,a){if(!za(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Oa(e,t,o,!1,a)},wt.version="18.3.1-next-f1338f8080-20240426",wt}var gd;function vd(){if(gd)return Ba.exports;gd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Ba.exports=ry(),Ba.exports}var yd;function oy(){if(yd)return zi;yd=1;var n=vd();return zi.createRoot=n.createRoot,zi.hydrateRoot=n.hydrateRoot,zi}var iy=oy();const sy='/*! tailwindcss v4.2.2 | 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-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--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-ease: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;--ease-out:cubic-bezier(0, 0, .2, 1);--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}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.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)}.block{display:block}.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}.origin-bottom-right{transform-origin:100% 100%}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-115{--tw-scale-x:115%;--tw-scale-y:115%;--tw-scale-z:115%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-125{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.rotate-180{rotate:180deg}.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-destructive{color:var(--destructive)}.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-0{opacity:0}.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}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.running{animation-play-state:running}@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\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.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-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@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}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}';var v=Li();const ae=Vt(v),wd=vr({__proto__:null,default:ae},[v]),ay=()=>{try{return"38a0380e-9c48-494a-ac03-a85f23411868"}catch{return"dev"}},yr=new Map,ly=async(n,r)=>{const i=yr.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 s=document.createElement("iframe");s.setAttribute("sandbox","allow-scripts allow-same-origin"),s.style.display="none",s.style.width="0",s.style.height="0",s.style.border="none";const l=n.bundleUrl.startsWith("http")&&!n.bundleUrl.endsWith(".js"),c=l?new URL(n.bundleUrl).origin:"null";if(l){const p=new URL(n.bundleUrl);p.searchParams.set("__extensionId",n.id),s.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 w=ay();p=await(await fetch(`${n.bundleUrl}?_b=${w}`)).text()}catch(w){console.error(`[SandboxManager] Failed to fetch bundle for ${n.id}:`,w)}const g=`<!DOCTYPE html>
41
41
  <html>
42
42
  <head>
43
43
  <meta charset="utf-8">
@@ -48,7 +48,7 @@ Error generating stack: `+h.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>`;s.srcdoc=g,console.warn(`[SandboxManager] Creating srcdoc sandbox for ${n.id}, srcdoc starts with: ${g.substring(0,300)}`)}r.appendChild(s);const d={manifest:n.manifest,extensionId:n.id,iframe:s,ready:!1,expectedOrigin:c,messageHandlers:new Set},f=p=>{if(p.origin!==d.expectedOrigin)return;const g=p.data;!g||typeof g!="object"||!("type"in g)||("extensionId"in g?g.extensionId:void 0)!==n.id||(g.type==="extension-ready"&&(d.ready=!0),d.messageHandlers.forEach(m=>m(g)))};return window.addEventListener("message",f),vr.set(n.id,d),d},rn=(n,r)=>{const i=vr.get(n);if(!(i!=null&&i.iframe.contentWindow)){console.warn(`Sandbox not found for extension: ${n}`);return}const s=i.expectedOrigin==="null"?"*":i.expectedOrigin;i.iframe.contentWindow.postMessage(r,s)},Wr=n=>vr.get(n),ly=n=>{const r=vr.get(n);r&&(r.iframe.remove(),r.messageHandlers.clear(),vr.delete(n))},qr=()=>vr,Ha=n=>n,cy={SUPER_ADMIN:"super_admin"};new Set(Object.values(cy));const xd={"ui-card":{description:"Card container for grouping related content",icon:"square",category:"layout",attributes:["className","onClick"],children:["ui-card-header","ui-card-content"]},"ui-card-content":{description:"Content area within a Card",icon:"square",category:"layout",attributes:["className"]},"ui-card-header":{description:"Header area within a Card",icon:"square",category:"layout",attributes:["className"]},"ui-button":{description:"Interactive button with variant and size options",icon:"mouse-pointer-click",category:"input",attributes:["variant","size","disabled","onClick","type","className","title"],attributeValues:{variant:["default","destructive","outline","secondary","ghost","link"],size:["default","xs","sm","lg","icon"]}},"ui-text":{description:"Paragraph text",icon:"type",category:"text",attributes:["className","tone"],attributeValues:{tone:["default","muted","destructive"]}},"ui-heading":{description:"Heading element (h1–h6)",icon:"heading",category:"text",attributes:["level","className"],attributeValues:{level:["1","2","3","4","5","6"]}},"ui-badge":{description:"Small label for status, category, or count",icon:"tag",category:"text",attributes:["variant","hue","tone","className"],attributeValues:{variant:["default","secondary","destructive","outline","ghost","link"],hue:["amber","blue","emerald","red","purple","pink","gray"],tone:["default","muted","destructive"]}},"ui-input":{description:"Single-line text input field",icon:"text-cursor-input",category:"input",attributes:["type","placeholder","value","onChange","disabled","className","id"]},"ui-textarea":{description:"Multi-line text input field",icon:"text",category:"input",attributes:["placeholder","value","onChange","disabled","rows","className","id"]},"ui-select":{description:"Dropdown select with options",icon:"chevrons-up-down",category:"input",attributes:["value","defaultValue","onChange","placeholder","disabled","className"],children:["ui-select-option"]},"ui-select-option":{description:"Option within a Select dropdown",icon:"chevrons-up-down",category:"input",attributes:["value","disabled","className"]},"ui-checkbox":{description:"Checkbox toggle for boolean values",icon:"square-check",category:"input",attributes:["checked","onChange","disabled","className","id"]},"ui-switch":{description:"Toggle switch for on/off states",icon:"toggle-left",category:"input",attributes:["checked","onChange","disabled","size","className","id"],attributeValues:{size:["sm","default"]}},"ui-label":{description:"Form label associated with an input",icon:"tag",category:"input",attributes:["htmlFor","className"]},"ui-radio-group":{description:"Group of radio buttons for single selection",icon:"circle-dot",category:"input",attributes:["value","defaultValue","onChange","className"],children:["ui-radio-group-item","ui-label","ui-inline"]},"ui-radio-group-item":{description:"Individual radio button within a RadioGroup",icon:"circle-dot",category:"input",attributes:["value","disabled","className","id"]},"ui-stack":{description:"Vertical or horizontal flex container with gap",icon:"rows-3",category:"layout",attributes:["gap","direction","className"],attributeValues:{direction:["row","column"],gap:["0","1","2","3","4","5","6","8","10","12"]}},"ui-inline":{description:"Horizontal flex container with centered items",icon:"columns-3",category:"layout",attributes:["gap","className"],attributeValues:{gap:["0","1","2","3","4","5","6","8","10","12"]}},"ui-separator":{description:"Horizontal divider line",icon:"minus",category:"layout",attributes:["className"]},"ui-tabs":{description:"Tabbed content container",icon:"panel-top",category:"navigation",attributes:["defaultValue","className"],children:["ui-tabs-list","ui-tabs-content"]},"ui-tabs-list":{description:"Container for tab triggers",icon:"panel-top",category:"navigation",attributes:["className"],children:["ui-tabs-trigger"]},"ui-tabs-trigger":{description:"Clickable tab label within TabsList",icon:"panel-top",category:"navigation",attributes:["value","className"]},"ui-tabs-content":{description:"Content panel shown when its tab is active",icon:"panel-top",category:"navigation",attributes:["value","className"]},"ui-scroll-area":{description:"Scrollable content container",icon:"scroll",category:"layout",attributes:["className"]},"ui-avatar":{description:"User avatar with image and initials fallback",icon:"circle-user",category:"composite",attributes:["src","alt","className"]},"ui-icon":{description:"Icon from the allowed icon set",icon:"sparkles",category:"composite",attributes:["name","size","className"],attributeValues:{size:["sm","md","lg"]}},"ui-qr-code":{description:"QR code rendered from a string payload",icon:"qr-code",category:"composite",attributes:["value","size","variant","level","alt","className"],attributeValues:{size:["sm","md","lg"],variant:["default","inverted"],level:["low","medium","quartile","high"]}},"ui-link":{description:"Hyperlink element",icon:"link",category:"navigation",attributes:["href","target","rel","className"]},"ui-menu":{description:"Card-based menu with clickable items",icon:"menu",category:"navigation",attributes:["title","className"],children:["ui-menu-item"]},"ui-menu-item":{description:"Clickable item within a Menu",icon:"menu",category:"navigation",attributes:["icon","label","description","onClick","className"]},"ui-skeleton":{description:"Loading placeholder with shimmer effect",icon:"loader",category:"feedback",attributes:["width","height","className"]},"ui-tooltip":{description:"Hover tooltip with text content",icon:"message-square",category:"feedback",attributes:["content","className"]},"ui-progress":{description:"Progress bar with percentage value",icon:"bar-chart",category:"feedback",attributes:["value","className"]},"ui-alert":{description:"Alert banner with icon and optional title",icon:"alert-circle",category:"feedback",attributes:["variant","title","className"],attributeValues:{variant:["default","destructive"]}},"ui-collapsible":{description:"Expandable/collapsible content section",icon:"chevrons-down-up",category:"composite",attributes:["defaultOpen","className"],children:["ui-collapsible-trigger","ui-collapsible-content"]},"ui-collapsible-trigger":{description:"Clickable trigger to toggle Collapsible",icon:"chevrons-down-up",category:"composite",attributes:["className"]},"ui-collapsible-content":{description:"Content revealed when Collapsible is open",icon:"chevrons-down-up",category:"composite",attributes:["className"]}},Gr=xd,zo=Object.keys(xd),uy=Object.fromEntries(zo.map(n=>[n,Gr[n].attributes]));Object.fromEntries(zo.filter(n=>Gr[n].attributeValues).map(n=>[n,Gr[n].attributeValues]));const bd=Object.fromEntries(zo.filter(n=>Gr[n].children).map(n=>[n,Gr[n].children]));({...bd},Object.fromEntries(zo.map(n=>[n,Gr[n].category])));const Yr={NEW_CONVERSATION:"newConversation",SET_CONVERSATION_TAGS:"setConversationTags",SET_CONVERSATION_FIELDS:"setConversationFields"},dy=["identity","messaging","settings"],fy={"context.read":"context:read","data.query":"data:query","data.fetch":"data:fetch","actions.toast":"actions:toast","actions.invoke":"actions:invoke","extend.identity":"extend:identity"},py=n=>{const r=async i=>{const s=i.data;if((s==null?void 0:s.type)!=="capability-request")return;const l=s;console.warn("[CapabilityRPC] raw message data:",JSON.stringify(i.data));const c=l.extensionId;if(!c||!Wr(c)){const p=[...qr().keys()];console.warn(`Received capability request from unknown source (extensionId: "${c??"undefined"}", registered: [${p.join(", ")}], capability: ${l.capability})`);return}const d=Wr(c);if(!d)return;const f=fy[l.capability];if(f&&!d.manifest.permissions.includes(f)){const p={type:"capability-response",id:l.id,success:!1,error:`Permission denied: '${f}' not granted for extension '${c}'`};rn(c,p);return}try{let p;switch(l.capability){case"data.query":p=await n["data.query"](l.payload);break;case"data.fetch":p=await n["data.fetch"](c,l.payload);break;case"actions.toast":p=await n["actions.toast"](c,l.payload);break;case"actions.invoke":p=await n["actions.invoke"](l.payload);break;case"context.read":p=await n["context.read"](c);break;case"extend.identity":p=n["extend.identity"]?await n["extend.identity"](c,l.payload):null;break;default:throw new Error(`Unknown capability: ${l.capability}`)}const g={type:"capability-response",id:l.id,success:!0,data:p};rn(c,g)}catch(p){const g={type:"capability-response",id:l.id,success:!1,error:p instanceof Error?p.message:"Unknown error"};rn(c,g)}};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},kd=v.createContext({extensions:[],components:{},ready:!1}),hy=({extensions:n,capabilityHandlers:r,components:i={},children:s})=>{const[l,c]=v.useState(!1),d=v.useRef(null),f=v.useRef(null),p=v.useRef(r);return p.current=r,v.useEffect(()=>{if(!d.current)return;let g=!1;return(async()=>{const m=d.current;if(!m)return;console.log("[ExtensionProvider] Initializing with",n.length,"extensions");const x=new Proxy({},{get:(k,E)=>p.current[E]});f.current=py(x);for(const k of n)k.enabled&&!g&&(console.log("[ExtensionProvider] Creating sandbox for",k.id,"bundleUrl:",k.bundleUrl),await ay(k,m),console.log("[ExtensionProvider] Sandbox created for",k.id));g||(console.log("[ExtensionProvider] Ready"),c(!0))})(),()=>{var m;g=!0;for(const x of n)ly(x.id);(m=f.current)==null||m.call(f)}},[n]),y.jsxs(kd.Provider,{value:{extensions:n,components:i,ready:l},children:[y.jsx("div",{ref:d,style:{display:"none"}}),s]})},Sd=()=>v.useContext(kd),my=n=>zo.includes(n),gy=(n,r={})=>{const{surfaceId:i,logPrefix:s="[NodeRenderer]"}=r,l=(c,d,f=0)=>{var k,E,S;if(c.type==="text")return c.text||null;if(!c.tag)return null;if(c.tag==="__fragment")return y.jsx(ae.Fragment,{children:(k=c.children)==null?void 0:k.map((C,N)=>l(C,d,N))},f);if(!my(c.tag))return console.warn(`${s} Unknown UI tag rejected: <${c.tag}>`),null;const p=n[c.tag];if(!p)return c.tag.startsWith("ui-")?(console.warn(`${s} Unregistered UI tag: <${c.tag}>`),null):y.jsx(ae.Fragment,{children:(E=c.children)==null?void 0:E.map((C,N)=>l(C,d,N))},f);const{filtered:g,stripped:w}=vy(c.tag,c.attrs);w.length>0&&console.warn(`${s} Attributes not allowed on <${c.tag}>, stripped: ${w.join(", ")}`);const m=yy(c.tag,c.children);if(m.length>0&&console.warn(`${s} Invalid children in <${c.tag}>: ${m.join(", ")}`),c.actionId){const C=c.actionId;g.onClick=()=>{const N=d;N==null||N.postMessage({type:"action-invoke",surfaceId:i,actionId:C},"*")}}if(g["data-onchange-id"]){const C=g["data-onchange-id"];delete g["data-onchange-id"],g.onChange=N=>{const R=d;R==null||R.postMessage({type:"action-invoke",surfaceId:i,actionId:C,value:N.target.value},"*")}}const x=(S=c.children)==null?void 0:S.map((C,N)=>l(C,d,N));return v.createElement(p,{...g,key:f},x&&x.length>0?x:void 0)};return l},vy=(n,r)=>{const i={},s=[];if(!r)return{filtered:i,stripped:s};const l=uy[n];for(const[c,d]of Object.entries(r)){if(c==="data-onchange-id"){i[c]=d;continue}l!=null&&l.includes(c)?i[c]=d:s.push(c)}return{filtered:i,stripped:s}},yy=(n,r)=>{const i=bd[n];if(!i||!r)return[];const s=[];for(const l of r)l.type!=="text"&&(!l.tag||l.tag==="__fragment"||i.includes(l.tag)||s.push(l.tag));return s},wy=n=>{const r={...n};for(const i of dy)delete r[i];return r},Oi=({target:n,context:r,className:i,separator:s,fallback:l=null,render:c})=>{const{extensions:d,components:f,ready:p}=Sd(),[g,w]=v.useState({}),m=v.useRef(""),x=v.useMemo(()=>d.filter(C=>C.enabled&&C.manifest.targets.includes(n)),[d.map(C=>C.id).join(","),n]),k=v.useMemo(()=>gy(f,{surfaceId:n,logPrefix:"[ExtensionSlot]"}),[n,f]);if(v.useEffect(()=>{const C=x.map(R=>R.id).join(",");if(m.current!==C&&(m.current=C,w({})),!p||x.length===0)return;const N=R=>{const P=R.data;if(!(!P||typeof P!="object"||!x.some(W=>{const z=Wr(W.id);return z&&R.source===z.iframe.contentWindow}))){if(P.type==="surface-update"&&P.surfaceId===n){const W=x.find(D=>{const j=Wr(D.id);return j&&R.source===j.iframe.contentWindow});if(!W)return;const z=k(P.tree,R.source??null);w(D=>({...D,[W.id]:z}))}if(P.type==="surface-ready"&&P.surfaceId===n&&r){const W=wy(r);x.forEach(z=>{var j;const D=Wr(z.id);(j=D==null?void 0:D.iframe.contentWindow)==null||j.postMessage({type:"context-update",surfaceId:n,context:W},"*")})}}};return window.addEventListener("message",N),x.forEach(R=>{var M;const P=Wr(R.id);(M=P==null?void 0:P.iframe.contentWindow)==null||M.postMessage({type:"surface-render",surfaceId:n,context:r},"*")}),()=>{window.removeEventListener("message",N)}},[p,x,n,r,k]),!p)return null;if(x.length===0)return l?y.jsx("div",{"data-extension-slot":n,title:n,className:i,children:l}):null;const E=x.map(C=>({id:C.id,children:g[C.id]})).filter(C=>!!C.children),S=E.length>0?E.flatMap((C,N,R)=>{const P=c?c({extensionId:C.id,children:C.children,index:N,total:R.length}):y.jsx(ae.Fragment,{children:C.children},C.id),M=y.jsx(ae.Fragment,{children:P},`extension:${C.id}`);if(N===0||!s)return[M];const W=R[N-1],z=typeof s=="function"?s({index:N,total:R.length,previousExtensionId:W.id,extensionId:C.id}):s;return[y.jsx(ae.Fragment,{children:z},`separator:${W.id}:${C.id}:${N}`),M]}):l;return y.jsx("div",{"data-extension-slot":n,title:n,className:i,children:S})};var Oo=vd();const Cd=Vt(Oo);function xy(n){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}const by=n=>{switch(n){case"success":return Cy;case"info":return Ny;case"warning":return Ey;case"error":return _y;default:return null}},ky=Array(12).fill(0),Sy=({visible:n,className:r})=>ae.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},ae.createElement("div",{className:"sonner-spinner"},ky.map((i,s)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Cy=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),Ey=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ae.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"})),Ny=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),_y=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),Ry=ae.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"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ty=()=>{const[n,r]=ae.useState(document.hidden);return ae.useEffect(()=>{const i=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),n};let Va=1;class Py{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const i=this.subscribers.indexOf(r);this.subscribers.splice(i,1)}),this.publish=r=>{this.subscribers.forEach(i=>i(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var i;const{message:s,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((i=r.id)==null?void 0:i.length)>0?r.id:Va++,d=this.toasts.find(p=>p.id===c),f=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...r,id:c,title:s}),{...p,...r,id:c,dismissible:f,title:s}):p):this.addToast({title:s,...l,dismissible:f,id:c}),c},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(i=>i({id:r,dismiss:!0})))):this.toasts.forEach(i=>{this.subscribers.forEach(s=>s({id:i.id,dismiss:!0}))}),r),this.message=(r,i)=>this.create({...i,message:r}),this.error=(r,i)=>this.create({...i,message:r,type:"error"}),this.success=(r,i)=>this.create({...i,type:"success",message:r}),this.info=(r,i)=>this.create({...i,type:"info",message:r}),this.warning=(r,i)=>this.create({...i,type:"warning",message:r}),this.loading=(r,i)=>this.create({...i,type:"loading",message:r}),this.promise=(r,i)=>{if(!i)return;let s;i.loading!==void 0&&(s=this.create({...i,promise:r,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const l=Promise.resolve(r instanceof Function?r():r);let c=s!==void 0,d;const f=l.then(async g=>{if(d=["resolve",g],ae.isValidElement(g))c=!1,this.create({id:s,type:"default",message:g});else if(Ay(g)&&!g.ok){c=!1;const m=typeof i.error=="function"?await i.error(`HTTP error! status: ${g.status}`):i.error,x=typeof i.description=="function"?await i.description(`HTTP error! status: ${g.status}`):i.description,E=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:s,type:"error",description:x,...E})}else if(g instanceof Error){c=!1;const m=typeof i.error=="function"?await i.error(g):i.error,x=typeof i.description=="function"?await i.description(g):i.description,E=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:s,type:"error",description:x,...E})}else if(i.success!==void 0){c=!1;const m=typeof i.success=="function"?await i.success(g):i.success,x=typeof i.description=="function"?await i.description(g):i.description,E=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:s,type:"success",description:x,...E})}}).catch(async g=>{if(d=["reject",g],i.error!==void 0){c=!1;const w=typeof i.error=="function"?await i.error(g):i.error,m=typeof i.description=="function"?await i.description(g):i.description,k=typeof w=="object"&&!ae.isValidElement(w)?w:{message:w};this.create({id:s,type:"error",description:m,...k})}}).finally(()=>{c&&(this.dismiss(s),s=void 0),i.finally==null||i.finally.call(i)}),p=()=>new Promise((g,w)=>f.then(()=>d[0]==="reject"?w(d[1]):g(d[1])).catch(w));return typeof s!="string"&&typeof s!="number"?{unwrap:p}:Object.assign(s,{unwrap:p})},this.custom=(r,i)=>{const s=(i==null?void 0:i.id)||Va++;return this.create({jsx:r(s),id:s,...i}),s},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const xt=new Py,Iy=(n,r)=>{const i=(r==null?void 0:r.id)||Va++;return xt.addToast({title:n,...r,id:i}),i},Ay=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",My=Iy,jy=()=>xt.toasts,Ly=()=>xt.getActiveToasts(),Kr=Object.assign(My,{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:jy,getToasts:Ly});xy("[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 Di(n){return n.label!==void 0}const zy=3,Oy="24px",Dy="16px",Ed=4e3,Fy=356,By=14,$y=45,Uy=200;function on(...n){return n.filter(Boolean).join(" ")}function Hy(n){const[r,i]=n.split("-"),s=[];return r&&s.push(r),i&&s.push(i),s}const Vy=n=>{var r,i,s,l,c,d,f,p,g;const{invert:w,toast:m,unstyled:x,interacting:k,setHeights:E,visibleToasts:S,heights:C,index:N,toasts:R,expanded:P,removeToast:M,defaultRichColors:W,closeButton:z,style:D,cancelButtonStyle:j,actionButtonStyle:q,className:Z="",descriptionClassName:U="",duration:K,position:X,gap:Y,expandByDefault:ue,classNames:Q,icons:ne,closeButtonAriaLabel:G="Close toast"}=n,[F,I]=ae.useState(null),[_,O]=ae.useState(null),[H,J]=ae.useState(!1),[ee,ce]=ae.useState(!1),[ie,re]=ae.useState(!1),[de,ye]=ae.useState(!1),[_e,Re]=ae.useState(!1),[Fe,$e]=ae.useState(0),[fn,Kt]=ae.useState(0),gt=ae.useRef(m.duration||K||Ed),_r=ae.useRef(null),tt=ae.useRef(null),Rr=N===0,Vn=N+1<=S,st=m.type,Sn=m.dismissible!==!1,Ts=m.className||"",Ps=m.descriptionClassName||"",Tr=ae.useMemo(()=>C.findIndex(Ne=>Ne.toastId===m.id)||0,[C,m.id]),Qo=ae.useMemo(()=>{var Ne;return(Ne=m.closeButton)!=null?Ne:z},[m.closeButton,z]),Pr=ae.useMemo(()=>m.duration||K||Ed,[m.duration,K]),uo=ae.useRef(0),Lt=ae.useRef(0),Wn=ae.useRef(0),qn=ae.useRef(null),[Is,As]=X.split("-"),Ms=ae.useMemo(()=>C.reduce((Ne,qe,Ze)=>Ze>=Tr?Ne:Ne+qe.height,0),[C,Tr]),fo=Ty(),Zo=m.invert||w,Ir=st==="loading";Lt.current=ae.useMemo(()=>Tr*Y+Ms,[Tr,Ms]),ae.useEffect(()=>{gt.current=Pr},[Pr]),ae.useEffect(()=>{J(!0)},[]),ae.useEffect(()=>{const Ne=tt.current;if(Ne){const qe=Ne.getBoundingClientRect().height;return Kt(qe),E(Ze=>[{toastId:m.id,height:qe,position:m.position},...Ze]),()=>E(Ze=>Ze.filter(dt=>dt.toastId!==m.id))}},[E,m.id]),ae.useLayoutEffect(()=>{if(!H)return;const Ne=tt.current,qe=Ne.style.height;Ne.style.height="auto";const Ze=Ne.getBoundingClientRect().height;Ne.style.height=qe,Kt(Ze),E(dt=>dt.find(Ke=>Ke.toastId===m.id)?dt.map(Ke=>Ke.toastId===m.id?{...Ke,height:Ze}:Ke):[{toastId:m.id,height:Ze,position:m.position},...dt])},[H,m.title,m.description,E,m.id,m.jsx,m.action,m.cancel]);const zt=ae.useCallback(()=>{ce(!0),$e(Lt.current),E(Ne=>Ne.filter(qe=>qe.toastId!==m.id)),setTimeout(()=>{M(m)},Uy)},[m,M,E,Lt]);ae.useEffect(()=>{if(m.promise&&st==="loading"||m.duration===1/0||m.type==="loading")return;let Ne;return P||k||fo?(()=>{if(Wn.current<uo.current){const dt=new Date().getTime()-uo.current;gt.current=gt.current-dt}Wn.current=new Date().getTime()})():(()=>{gt.current!==1/0&&(uo.current=new Date().getTime(),Ne=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),zt()},gt.current))})(),()=>clearTimeout(Ne)},[P,k,m,st,fo,zt]),ae.useEffect(()=>{m.delete&&(zt(),m.onDismiss==null||m.onDismiss.call(m,m))},[zt,m.delete]);function Jo(){var Ne;if(ne!=null&&ne.loading){var qe;return ae.createElement("div",{className:on(Q==null?void 0:Q.loader,m==null||(qe=m.classNames)==null?void 0:qe.loader,"sonner-loader"),"data-visible":st==="loading"},ne.loading)}return ae.createElement(Sy,{className:on(Q==null?void 0:Q.loader,m==null||(Ne=m.classNames)==null?void 0:Ne.loader),visible:st==="loading"})}const Gn=m.icon||(ne==null?void 0:ne[st])||by(st);var Cn,ei;return ae.createElement("li",{tabIndex:0,ref:tt,className:on(Z,Ts,Q==null?void 0:Q.toast,m==null||(r=m.classNames)==null?void 0:r.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[st],m==null||(i=m.classNames)==null?void 0:i[st]),"data-sonner-toast":"","data-rich-colors":(Cn=m.richColors)!=null?Cn:W,"data-styled":!(m.jsx||m.unstyled||x),"data-mounted":H,"data-promise":!!m.promise,"data-swiped":_e,"data-removed":ee,"data-visible":Vn,"data-y-position":Is,"data-x-position":As,"data-index":N,"data-front":Rr,"data-swiping":ie,"data-dismissible":Sn,"data-type":st,"data-invert":Zo,"data-swipe-out":de,"data-swipe-direction":_,"data-expanded":!!(P||ue&&H),"data-testid":m.testId,style:{"--index":N,"--toasts-before":N,"--z-index":R.length-N,"--offset":`${ee?Fe:Lt.current}px`,"--initial-height":ue?"auto":`${fn}px`,...D,...m.style},onDragEnd:()=>{re(!1),I(null),qn.current=null},onPointerDown:Ne=>{Ne.button!==2&&(Ir||!Sn||(_r.current=new Date,$e(Lt.current),Ne.target.setPointerCapture(Ne.pointerId),Ne.target.tagName!=="BUTTON"&&(re(!0),qn.current={x:Ne.clientX,y:Ne.clientY})))},onPointerUp:()=>{var Ne,qe,Ze;if(de||!Sn)return;qn.current=null;const dt=Number(((Ne=tt.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Yn=Number(((qe=tt.current)==null?void 0:qe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ke=new Date().getTime()-((Ze=_r.current)==null?void 0:Ze.getTime()),nt=F==="x"?dt:Yn,Kn=Math.abs(nt)/Ke;if(Math.abs(nt)>=$y||Kn>.11){$e(Lt.current),m.onDismiss==null||m.onDismiss.call(m,m),O(F==="x"?dt>0?"right":"left":Yn>0?"down":"up"),zt(),ye(!0);return}else{var at,Tt;(at=tt.current)==null||at.style.setProperty("--swipe-amount-x","0px"),(Tt=tt.current)==null||Tt.style.setProperty("--swipe-amount-y","0px")}Re(!1),re(!1),I(null)},onPointerMove:Ne=>{var qe,Ze,dt;if(!qn.current||!Sn||((qe=window.getSelection())==null?void 0:qe.toString().length)>0)return;const Ke=Ne.clientY-qn.current.y,nt=Ne.clientX-qn.current.x;var Kn;const at=(Kn=n.swipeDirections)!=null?Kn:Hy(X);!F&&(Math.abs(nt)>1||Math.abs(Ke)>1)&&I(Math.abs(nt)>Math.abs(Ke)?"x":"y");let Tt={x:0,y:0};const Xn=Ot=>1/(1.5+Math.abs(Ot)/20);if(F==="y"){if(at.includes("top")||at.includes("bottom"))if(at.includes("top")&&Ke<0||at.includes("bottom")&&Ke>0)Tt.y=Ke;else{const Ot=Ke*Xn(Ke);Tt.y=Math.abs(Ot)<Math.abs(Ke)?Ot:Ke}}else if(F==="x"&&(at.includes("left")||at.includes("right")))if(at.includes("left")&&nt<0||at.includes("right")&&nt>0)Tt.x=nt;else{const Ot=nt*Xn(nt);Tt.x=Math.abs(Ot)<Math.abs(nt)?Ot:nt}(Math.abs(Tt.x)>0||Math.abs(Tt.y)>0)&&Re(!0),(Ze=tt.current)==null||Ze.style.setProperty("--swipe-amount-x",`${Tt.x}px`),(dt=tt.current)==null||dt.style.setProperty("--swipe-amount-y",`${Tt.y}px`)}},Qo&&!m.jsx&&st!=="loading"?ae.createElement("button",{"aria-label":G,"data-disabled":Ir,"data-close-button":!0,onClick:Ir||!Sn?()=>{}:()=>{zt(),m.onDismiss==null||m.onDismiss.call(m,m)},className:on(Q==null?void 0:Q.closeButton,m==null||(s=m.classNames)==null?void 0:s.closeButton)},(ei=ne==null?void 0:ne.close)!=null?ei:Ry):null,(st||m.icon||m.promise)&&m.icon!==null&&((ne==null?void 0:ne[st])!==null||m.icon)?ae.createElement("div",{"data-icon":"",className:on(Q==null?void 0:Q.icon,m==null||(l=m.classNames)==null?void 0:l.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Jo():null,m.type!=="loading"?Gn:null):null,ae.createElement("div",{"data-content":"",className:on(Q==null?void 0:Q.content,m==null||(c=m.classNames)==null?void 0:c.content)},ae.createElement("div",{"data-title":"",className:on(Q==null?void 0:Q.title,m==null||(d=m.classNames)==null?void 0:d.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?ae.createElement("div",{"data-description":"",className:on(U,Ps,Q==null?void 0:Q.description,m==null||(f=m.classNames)==null?void 0:f.description)},typeof m.description=="function"?m.description():m.description):null),ae.isValidElement(m.cancel)?m.cancel:m.cancel&&Di(m.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||j,onClick:Ne=>{Di(m.cancel)&&Sn&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,Ne),zt())},className:on(Q==null?void 0:Q.cancelButton,m==null||(p=m.classNames)==null?void 0:p.cancelButton)},m.cancel.label):null,ae.isValidElement(m.action)?m.action:m.action&&Di(m.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||q,onClick:Ne=>{Di(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,Ne),!Ne.defaultPrevented&&zt())},className:on(Q==null?void 0:Q.actionButton,m==null||(g=m.classNames)==null?void 0:g.actionButton)},m.action.label):null)};function Nd(){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 Wy(n,r){const i={};return[n,r].forEach((s,l)=>{const c=l===1,d=c?"--mobile-offset":"--offset",f=c?Dy:Oy;function p(g){["top","right","bottom","left"].forEach(w=>{i[`${d}-${w}`]=typeof g=="number"?`${g}px`:g})}typeof s=="number"||typeof s=="string"?p(s):typeof s=="object"?["top","right","bottom","left"].forEach(g=>{s[g]===void 0?i[`${d}-${g}`]=f:i[`${d}-${g}`]=typeof s[g]=="number"?`${s[g]}px`:s[g]}):p(f)}),i}const qy=ae.forwardRef(function(r,i){const{id:s,invert:l,position:c="bottom-right",hotkey:d=["altKey","KeyT"],expand:f,closeButton:p,className:g,offset:w,mobileOffset:m,theme:x="light",richColors:k,duration:E,style:S,visibleToasts:C=zy,toastOptions:N,dir:R=Nd(),gap:P=By,icons:M,containerAriaLabel:W="Notifications"}=r,[z,D]=ae.useState([]),j=ae.useMemo(()=>s?z.filter(H=>H.toasterId===s):z.filter(H=>!H.toasterId),[z,s]),q=ae.useMemo(()=>Array.from(new Set([c].concat(j.filter(H=>H.position).map(H=>H.position)))),[j,c]),[Z,U]=ae.useState([]),[K,X]=ae.useState(!1),[Y,ue]=ae.useState(!1),[Q,ne]=ae.useState(x!=="system"?x:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=ae.useRef(null),F=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=ae.useRef(null),_=ae.useRef(!1),O=ae.useCallback(H=>{D(J=>{var ee;return(ee=J.find(ce=>ce.id===H.id))!=null&&ee.delete||xt.dismiss(H.id),J.filter(({id:ce})=>ce!==H.id)})},[]);return ae.useEffect(()=>xt.subscribe(H=>{if(H.dismiss){requestAnimationFrame(()=>{D(J=>J.map(ee=>ee.id===H.id?{...ee,delete:!0}:ee))});return}setTimeout(()=>{Cd.flushSync(()=>{D(J=>{const ee=J.findIndex(ce=>ce.id===H.id);return ee!==-1?[...J.slice(0,ee),{...J[ee],...H},...J.slice(ee+1)]:[H,...J]})})})}),[z]),ae.useEffect(()=>{if(x!=="system"){ne(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ne("dark"):ne("light")),typeof window>"u")return;const H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:J})=>{ne(J?"dark":"light")})}catch{H.addListener(({matches:ee})=>{try{ne(ee?"dark":"light")}catch(ce){console.error(ce)}})}},[x]),ae.useEffect(()=>{z.length<=1&&X(!1)},[z]),ae.useEffect(()=>{const H=J=>{var ee;if(d.every(re=>J[re]||J.code===re)){var ie;X(!0),(ie=G.current)==null||ie.focus()}J.code==="Escape"&&(document.activeElement===G.current||(ee=G.current)!=null&&ee.contains(document.activeElement))&&X(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[d]),ae.useEffect(()=>{if(G.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,_.current=!1)}},[G.current]),ae.createElement("section",{ref:i,"aria-label":`${W} ${F}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},q.map((H,J)=>{var ee;const[ce,ie]=H.split("-");return j.length?ae.createElement("ol",{key:H,dir:R==="auto"?Nd():R,tabIndex:-1,ref:G,className:g,"data-sonner-toaster":!0,"data-sonner-theme":Q,"data-y-position":ce,"data-x-position":ie,style:{"--front-toast-height":`${((ee=Z[0])==null?void 0:ee.height)||0}px`,"--width":`${Fy}px`,"--gap":`${P}px`,...S,...Wy(w,m)},onBlur:re=>{_.current&&!re.currentTarget.contains(re.relatedTarget)&&(_.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||_.current||(_.current=!0,I.current=re.relatedTarget)},onMouseEnter:()=>X(!0),onMouseMove:()=>X(!0),onMouseLeave:()=>{Y||X(!1)},onDragEnd:()=>X(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},j.filter(re=>!re.position&&J===0||re.position===H).map((re,de)=>{var ye,_e;return ae.createElement(Vy,{key:re.id,icons:M,index:de,toast:re,defaultRichColors:k,duration:(ye=N==null?void 0:N.duration)!=null?ye:E,className:N==null?void 0:N.className,descriptionClassName:N==null?void 0:N.descriptionClassName,invert:l,visibleToasts:C,closeButton:(_e=N==null?void 0:N.closeButton)!=null?_e:p,interacting:Y,position:H,style:N==null?void 0:N.style,unstyled:N==null?void 0:N.unstyled,classNames:N==null?void 0:N.classNames,cancelButtonStyle:N==null?void 0:N.cancelButtonStyle,actionButtonStyle:N==null?void 0:N.actionButtonStyle,closeButtonAriaLabel:N==null?void 0:N.closeButtonAriaLabel,removeToast:O,toasts:j.filter(Re=>Re.position==re.position),heights:Z.filter(Re=>Re.position==re.position),setHeights:U,expandByDefault:f,gap:P,expanded:K,swipeDirections:r.swipeDirections})})):null}))}),Gy=n=>n.startsWith("http")&&!n.endsWith(".js"),_d=n=>{try{const{hostname:r}=new URL(n);return r==="localhost"||r==="127.0.0.1"||r.endsWith(".trycloudflare.com")||r.endsWith(".ngrok-free.app")}catch{return!1}},Yy=n=>{const r=n.replace(/-/g,"+").replace(/_/g,"/"),i=r+"=".repeat((4-r.length%4)%4);return atob(i)},Ky=(n,r)=>{const i=n.indexOf(":");if(i===-1)return;const s=n.slice(0,i),l=n.slice(i+1);if(!(!s||!l)){if(!l.startsWith("http")){try{const c=JSON.parse(Yy(l));if(c.url&&_d(c.url))return{extensionId:s,bundleUrl:c.url,mode:r,token:c.token}}catch{}return}if(_d(l))return{extensionId:s,bundleUrl:l,mode:r}}},Rd=(n,r,i)=>{const s=n.getAll(r);if(s.length===0)return[];const l=[];for(const c of s){const d=c.split(",");for(const f of d){const p=Ky(f,i);p&&l.push(p)}}return l},Td=n=>{const r=new URLSearchParams(n);try{const i=Rd(r,"_stackable_dev","dev"),s=Rd(r,"_stackable_staging","staging"),l=new Map;for(const c of i)l.set(c.extensionId,c);for(const c of s)l.set(c.extensionId,c);return Array.from(l.values())}catch{return[]}},Xy=async(n,r)=>r.length===0?n:Promise.all(n.map(async i=>{const s=r.find(l=>l.extensionId===i.id);if(!s)return i;console.log(`[Stackable] Dev override active for ${i.id} → ${s.bundleUrl}`);try{const l=await fetch(`${s.bundleUrl}/manifest.json`);if(l.ok){const c=await l.json();return console.log(`[Stackable] Dev manifest loaded for ${i.id}`,c.permissions),{...i,bundleUrl:s.bundleUrl,manifest:c}}}catch{console.warn(`[Stackable] Could not fetch dev manifest for ${i.id}, using registry manifest`)}return{...i,bundleUrl:s.bundleUrl}}));/**
51
+ </html>`;s.srcdoc=g,console.warn(`[SandboxManager] Creating srcdoc sandbox for ${n.id}, srcdoc starts with: ${g.substring(0,300)}`)}r.appendChild(s);const d={manifest:n.manifest,extensionId:n.id,iframe:s,ready:!1,expectedOrigin:c,messageHandlers:new Set},f=p=>{if(p.origin!==d.expectedOrigin)return;const g=p.data;!g||typeof g!="object"||!("type"in g)||("extensionId"in g?g.extensionId:void 0)!==n.id||(g.type==="extension-ready"&&(d.ready=!0),d.messageHandlers.forEach(m=>m(g)))};return window.addEventListener("message",f),yr.set(n.id,d),d},rn=(n,r)=>{const i=yr.get(n);if(!(i!=null&&i.iframe.contentWindow)){console.warn(`Sandbox not found for extension: ${n}`);return}const s=i.expectedOrigin==="null"?"*":i.expectedOrigin;i.iframe.contentWindow.postMessage(r,s)},Gr=n=>yr.get(n),cy=n=>{const r=yr.get(n);r&&(r.iframe.remove(),r.messageHandlers.clear(),yr.delete(n))},Yr=()=>yr,Ha=n=>n,uy={SUPER_ADMIN:"super_admin"};new Set(Object.values(uy));const xd={"ui-card":{description:"Card container for grouping related content",icon:"square",category:"layout",attributes:["className","onClick"],children:["ui-card-header","ui-card-content"]},"ui-card-content":{description:"Content area within a Card",icon:"square",category:"layout",attributes:["className"],childOnly:!0},"ui-card-header":{description:"Header area within a Card",icon:"square",category:"layout",attributes:["className"],childOnly:!0},"ui-button":{description:"Interactive button with variant and size options",icon:"mouse-pointer-click",category:"input",attributes:["variant","size","disabled","onClick","type","className","title"],attributeValues:{variant:["default","destructive","outline","secondary","ghost","link"],size:["default","xs","sm","lg","icon"]}},"ui-text":{description:"Paragraph text",icon:"type",category:"text",attributes:["className","tone"],attributeValues:{tone:["default","muted","destructive"]}},"ui-heading":{description:"Heading element (h1–h6)",icon:"heading",category:"text",attributes:["level","className"],attributeValues:{level:["1","2","3","4","5","6"]}},"ui-badge":{description:"Small label for status, category, or count",icon:"tag",category:"text",attributes:["variant","hue","tone","className"],attributeValues:{variant:["default","secondary","destructive","outline","ghost","link"],hue:["amber","blue","emerald","red","purple","pink","gray"],tone:["default","muted","destructive"]}},"ui-input":{description:"Single-line text input field",icon:"text-cursor-input",category:"input",attributes:["type","placeholder","value","onChange","disabled","className","id"],selfClosing:!0},"ui-textarea":{description:"Multi-line text input field",icon:"text",category:"input",attributes:["placeholder","value","onChange","disabled","rows","className","id"],selfClosing:!0},"ui-select":{description:"Dropdown select with options",icon:"chevrons-up-down",category:"input",attributes:["value","defaultValue","onChange","placeholder","disabled","className"],children:["ui-select-option"]},"ui-select-option":{description:"Option within a Select dropdown",icon:"chevrons-up-down",category:"input",attributes:["value","disabled","className"],childOnly:!0},"ui-checkbox":{description:"Checkbox toggle for boolean values",icon:"square-check",category:"input",attributes:["checked","onChange","disabled","className","id"],selfClosing:!0},"ui-switch":{description:"Toggle switch for on/off states",icon:"toggle-left",category:"input",attributes:["checked","onChange","disabled","size","className","id"],attributeValues:{size:["sm","default"]},selfClosing:!0},"ui-label":{description:"Form label associated with an input",icon:"tag",category:"input",attributes:["htmlFor","className"]},"ui-radio-group":{description:"Group of radio buttons for single selection",icon:"circle-dot",category:"input",attributes:["value","defaultValue","onChange","className"],children:["ui-radio-group-item","ui-label","ui-inline"]},"ui-radio-group-item":{description:"Individual radio button within a RadioGroup",icon:"circle-dot",category:"input",attributes:["value","disabled","className","id"],childOnly:!0},"ui-stack":{description:"Vertical or horizontal flex container with gap",icon:"rows-3",category:"layout",attributes:["gap","direction","className"],attributeValues:{direction:["row","column"],gap:["0","1","2","3","4","5","6","8","10","12"]}},"ui-inline":{description:"Horizontal flex container with centered items",icon:"columns-3",category:"layout",attributes:["gap","className"],attributeValues:{gap:["0","1","2","3","4","5","6","8","10","12"]}},"ui-separator":{description:"Horizontal divider line",icon:"minus",category:"layout",attributes:["className"],selfClosing:!0},"ui-tabs":{description:"Tabbed content container",icon:"panel-top",category:"navigation",attributes:["defaultValue","className"],children:["ui-tabs-list","ui-tabs-content"]},"ui-tabs-list":{description:"Container for tab triggers",icon:"panel-top",category:"navigation",attributes:["className"],children:["ui-tabs-trigger"],childOnly:!0},"ui-tabs-trigger":{description:"Clickable tab label within TabsList",icon:"panel-top",category:"navigation",attributes:["value","className"],childOnly:!0},"ui-tabs-content":{description:"Content panel shown when its tab is active",icon:"panel-top",category:"navigation",attributes:["value","className"],childOnly:!0},"ui-scroll-area":{description:"Scrollable content container",icon:"scroll",category:"layout",attributes:["className"]},"ui-avatar":{description:"User avatar with image and initials fallback",icon:"circle-user",category:"composite",attributes:["src","alt","className"],selfClosing:!0},"ui-icon":{description:"Icon from the allowed icon set",icon:"sparkles",category:"composite",attributes:["name","size","className"],attributeValues:{size:["sm","md","lg"]},selfClosing:!0},"ui-qr-code":{description:"QR code rendered from a string payload",icon:"qr-code",category:"composite",attributes:["value","size","variant","level","alt","className"],attributeValues:{size:["md","sm","lg"],variant:["default","inverted"],level:["medium","low","quartile","high"]},selfClosing:!0},"ui-link":{description:"Hyperlink element",icon:"link",category:"navigation",attributes:["href","target","rel","className"]},"ui-menu":{description:"Card-based menu with clickable items",icon:"menu",category:"navigation",attributes:["title","className"],children:["ui-menu-item"]},"ui-menu-item":{description:"Clickable item within a Menu",icon:"menu",category:"navigation",attributes:["icon","label","description","onClick","className"],childOnly:!0},"ui-skeleton":{description:"Loading placeholder with shimmer effect",icon:"loader",category:"feedback",attributes:["width","height","className"],selfClosing:!0},"ui-tooltip":{description:"Hover tooltip with text content",icon:"message-square",category:"feedback",attributes:["content","className"]},"ui-progress":{description:"Progress bar with percentage value",icon:"bar-chart",category:"feedback",attributes:["value","className"],selfClosing:!0},"ui-alert":{description:"Alert banner with icon and optional title",icon:"alert-circle",category:"feedback",attributes:["variant","title","className"],attributeValues:{variant:["default","destructive"]}},"ui-collapsible":{description:"Expandable/collapsible content section",icon:"chevrons-down-up",category:"composite",attributes:["defaultOpen","className"],children:["ui-collapsible-trigger","ui-collapsible-content"]},"ui-collapsible-trigger":{description:"Clickable trigger to toggle Collapsible",icon:"chevrons-down-up",category:"composite",attributes:["className"],childOnly:!0},"ui-collapsible-content":{description:"Content revealed when Collapsible is open",icon:"chevrons-down-up",category:"composite",attributes:["className"],childOnly:!0}},jn=xd,wr=Object.keys(xd),dy=Object.fromEntries(wr.map(n=>[n,jn[n].attributes]));Object.fromEntries(wr.filter(n=>jn[n].attributeValues).map(n=>[n,jn[n].attributeValues]));const bd=Object.fromEntries(wr.filter(n=>jn[n].children).map(n=>[n,jn[n].children]));({...bd},new Set(wr.filter(n=>jn[n].selfClosing===!0))),new Set(wr.filter(n=>jn[n].childOnly===!0)),Object.fromEntries(wr.map(n=>[n,jn[n].category]));const Kr={NEW_CONVERSATION:"newConversation",SET_CONVERSATION_TAGS:"setConversationTags",SET_CONVERSATION_FIELDS:"setConversationFields"},fy=["identity","messaging","settings"],py={"context.read":"context:read","data.query":"data:query","data.fetch":"data:fetch","actions.toast":"actions:toast","actions.invoke":"actions:invoke","extend.identity":"extend:identity"},hy=n=>{const r=async i=>{const s=i.data;if((s==null?void 0:s.type)!=="capability-request")return;const l=s;console.warn("[CapabilityRPC] raw message data:",JSON.stringify(i.data));const c=l.extensionId;if(!c||!Gr(c)){const p=[...Yr().keys()];console.warn(`Received capability request from unknown source (extensionId: "${c??"undefined"}", registered: [${p.join(", ")}], capability: ${l.capability})`);return}const d=Gr(c);if(!d)return;const f=py[l.capability];if(f&&!d.manifest.permissions.includes(f)){const p={type:"capability-response",id:l.id,success:!1,error:`Permission denied: '${f}' not granted for extension '${c}'`};rn(c,p);return}try{let p;switch(l.capability){case"data.query":p=await n["data.query"](l.payload);break;case"data.fetch":p=await n["data.fetch"](c,l.payload);break;case"actions.toast":p=await n["actions.toast"](c,l.payload);break;case"actions.invoke":p=await n["actions.invoke"](l.payload);break;case"context.read":p=await n["context.read"](c);break;case"extend.identity":p=n["extend.identity"]?await n["extend.identity"](c,l.payload):null;break;default:throw new Error(`Unknown capability: ${l.capability}`)}const g={type:"capability-response",id:l.id,success:!0,data:p};rn(c,g)}catch(p){const g={type:"capability-response",id:l.id,success:!1,error:p instanceof Error?p.message:"Unknown error"};rn(c,g)}};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},kd=v.createContext({extensions:[],components:{},ready:!1}),my=({extensions:n,capabilityHandlers:r,components:i={},children:s})=>{const[l,c]=v.useState(!1),d=v.useRef(null),f=v.useRef(null),p=v.useRef(r);return p.current=r,v.useEffect(()=>{if(!d.current)return;let g=!1;return(async()=>{const m=d.current;if(!m)return;console.log("[ExtensionProvider] Initializing with",n.length,"extensions");const x=new Proxy({},{get:(k,E)=>p.current[E]});f.current=hy(x);for(const k of n)k.enabled&&!g&&(console.log("[ExtensionProvider] Creating sandbox for",k.id,"bundleUrl:",k.bundleUrl),await ly(k,m),console.log("[ExtensionProvider] Sandbox created for",k.id));g||(console.log("[ExtensionProvider] Ready"),c(!0))})(),()=>{var m;g=!0;for(const x of n)cy(x.id);(m=f.current)==null||m.call(f)}},[n]),y.jsxs(kd.Provider,{value:{extensions:n,components:i,ready:l},children:[y.jsx("div",{ref:d,style:{display:"none"}}),s]})},Sd=()=>v.useContext(kd),gy=n=>wr.includes(n),vy=(n,r={})=>{const{surfaceId:i,logPrefix:s="[NodeRenderer]"}=r,l=(c,d,f=0)=>{var k,E,S;if(c.type==="text")return c.text||null;if(!c.tag)return null;if(c.tag==="__fragment")return y.jsx(ae.Fragment,{children:(k=c.children)==null?void 0:k.map((C,N)=>l(C,d,N))},f);if(!gy(c.tag))return console.warn(`${s} Unknown UI tag rejected: <${c.tag}>`),null;const p=n[c.tag];if(!p)return c.tag.startsWith("ui-")?(console.warn(`${s} Unregistered UI tag: <${c.tag}>`),null):y.jsx(ae.Fragment,{children:(E=c.children)==null?void 0:E.map((C,N)=>l(C,d,N))},f);const{filtered:g,stripped:w}=yy(c.tag,c.attrs);w.length>0&&console.warn(`${s} Attributes not allowed on <${c.tag}>, stripped: ${w.join(", ")}`);const m=wy(c.tag,c.children);if(m.length>0&&console.warn(`${s} Invalid children in <${c.tag}>: ${m.join(", ")}`),c.actionId){const C=c.actionId;g.onClick=()=>{const N=d;N==null||N.postMessage({type:"action-invoke",surfaceId:i,actionId:C},"*")}}if(g["data-onchange-id"]){const C=g["data-onchange-id"];delete g["data-onchange-id"],g.onChange=N=>{const R=d;R==null||R.postMessage({type:"action-invoke",surfaceId:i,actionId:C,value:N.target.value},"*")}}const x=(S=c.children)==null?void 0:S.map((C,N)=>l(C,d,N));return v.createElement(p,{...g,key:f},x&&x.length>0?x:void 0)};return l},yy=(n,r)=>{const i={},s=[];if(!r)return{filtered:i,stripped:s};const l=dy[n];for(const[c,d]of Object.entries(r)){if(c==="data-onchange-id"){i[c]=d;continue}l!=null&&l.includes(c)?i[c]=d:s.push(c)}return{filtered:i,stripped:s}},wy=(n,r)=>{const i=bd[n];if(!i||!r)return[];const s=[];for(const l of r)l.type!=="text"&&(!l.tag||l.tag==="__fragment"||i.includes(l.tag)||s.push(l.tag));return s},xy=n=>{const r={...n};for(const i of fy)delete r[i];return r},Oi=({target:n,context:r,className:i,separator:s,fallback:l=null,render:c})=>{const{extensions:d,components:f,ready:p}=Sd(),[g,w]=v.useState({}),m=v.useRef(""),x=v.useMemo(()=>d.filter(C=>C.enabled&&C.manifest.targets.includes(n)),[d.map(C=>C.id).join(","),n]),k=v.useMemo(()=>vy(f,{surfaceId:n,logPrefix:"[ExtensionSlot]"}),[n,f]);if(v.useEffect(()=>{const C=x.map(R=>R.id).join(",");if(m.current!==C&&(m.current=C,w({})),!p||x.length===0)return;const N=R=>{const P=R.data;if(!(!P||typeof P!="object"||!x.some(W=>{const z=Gr(W.id);return z&&R.source===z.iframe.contentWindow}))){if(P.type==="surface-update"&&P.surfaceId===n){const W=x.find(D=>{const j=Gr(D.id);return j&&R.source===j.iframe.contentWindow});if(!W)return;const z=k(P.tree,R.source??null);w(D=>({...D,[W.id]:z}))}if(P.type==="surface-ready"&&P.surfaceId===n&&r){const W=xy(r);x.forEach(z=>{var j;const D=Gr(z.id);(j=D==null?void 0:D.iframe.contentWindow)==null||j.postMessage({type:"context-update",surfaceId:n,context:W},"*")})}}};return window.addEventListener("message",N),x.forEach(R=>{var M;const P=Gr(R.id);(M=P==null?void 0:P.iframe.contentWindow)==null||M.postMessage({type:"surface-render",surfaceId:n,context:r},"*")}),()=>{window.removeEventListener("message",N)}},[p,x,n,r,k]),!p)return null;if(x.length===0)return l?y.jsx("div",{"data-extension-slot":n,title:n,className:i,children:l}):null;const E=x.map(C=>({id:C.id,children:g[C.id]})).filter(C=>!!C.children),S=E.length>0?E.flatMap((C,N,R)=>{const P=c?c({extensionId:C.id,children:C.children,index:N,total:R.length}):y.jsx(ae.Fragment,{children:C.children},C.id),M=y.jsx(ae.Fragment,{children:P},`extension:${C.id}`);if(N===0||!s)return[M];const W=R[N-1],z=typeof s=="function"?s({index:N,total:R.length,previousExtensionId:W.id,extensionId:C.id}):s;return[y.jsx(ae.Fragment,{children:z},`separator:${W.id}:${C.id}:${N}`),M]}):l;return y.jsx("div",{"data-extension-slot":n,title:n,className:i,children:S})};var Oo=vd();const Cd=Vt(Oo);function by(n){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}const ky=n=>{switch(n){case"success":return Ey;case"info":return _y;case"warning":return Ny;case"error":return Ry;default:return null}},Sy=Array(12).fill(0),Cy=({visible:n,className:r})=>ae.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},ae.createElement("div",{className:"sonner-spinner"},Sy.map((i,s)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Ey=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),Ny=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ae.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"})),_y=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),Ry=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),Ty=ae.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"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Py=()=>{const[n,r]=ae.useState(document.hidden);return ae.useEffect(()=>{const i=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),n};let Va=1;class Iy{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const i=this.subscribers.indexOf(r);this.subscribers.splice(i,1)}),this.publish=r=>{this.subscribers.forEach(i=>i(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var i;const{message:s,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((i=r.id)==null?void 0:i.length)>0?r.id:Va++,d=this.toasts.find(p=>p.id===c),f=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...r,id:c,title:s}),{...p,...r,id:c,dismissible:f,title:s}):p):this.addToast({title:s,...l,dismissible:f,id:c}),c},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(i=>i({id:r,dismiss:!0})))):this.toasts.forEach(i=>{this.subscribers.forEach(s=>s({id:i.id,dismiss:!0}))}),r),this.message=(r,i)=>this.create({...i,message:r}),this.error=(r,i)=>this.create({...i,message:r,type:"error"}),this.success=(r,i)=>this.create({...i,type:"success",message:r}),this.info=(r,i)=>this.create({...i,type:"info",message:r}),this.warning=(r,i)=>this.create({...i,type:"warning",message:r}),this.loading=(r,i)=>this.create({...i,type:"loading",message:r}),this.promise=(r,i)=>{if(!i)return;let s;i.loading!==void 0&&(s=this.create({...i,promise:r,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const l=Promise.resolve(r instanceof Function?r():r);let c=s!==void 0,d;const f=l.then(async g=>{if(d=["resolve",g],ae.isValidElement(g))c=!1,this.create({id:s,type:"default",message:g});else if(My(g)&&!g.ok){c=!1;const m=typeof i.error=="function"?await i.error(`HTTP error! status: ${g.status}`):i.error,x=typeof i.description=="function"?await i.description(`HTTP error! status: ${g.status}`):i.description,E=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:s,type:"error",description:x,...E})}else if(g instanceof Error){c=!1;const m=typeof i.error=="function"?await i.error(g):i.error,x=typeof i.description=="function"?await i.description(g):i.description,E=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:s,type:"error",description:x,...E})}else if(i.success!==void 0){c=!1;const m=typeof i.success=="function"?await i.success(g):i.success,x=typeof i.description=="function"?await i.description(g):i.description,E=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:s,type:"success",description:x,...E})}}).catch(async g=>{if(d=["reject",g],i.error!==void 0){c=!1;const w=typeof i.error=="function"?await i.error(g):i.error,m=typeof i.description=="function"?await i.description(g):i.description,k=typeof w=="object"&&!ae.isValidElement(w)?w:{message:w};this.create({id:s,type:"error",description:m,...k})}}).finally(()=>{c&&(this.dismiss(s),s=void 0),i.finally==null||i.finally.call(i)}),p=()=>new Promise((g,w)=>f.then(()=>d[0]==="reject"?w(d[1]):g(d[1])).catch(w));return typeof s!="string"&&typeof s!="number"?{unwrap:p}:Object.assign(s,{unwrap:p})},this.custom=(r,i)=>{const s=(i==null?void 0:i.id)||Va++;return this.create({jsx:r(s),id:s,...i}),s},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const xt=new Iy,Ay=(n,r)=>{const i=(r==null?void 0:r.id)||Va++;return xt.addToast({title:n,...r,id:i}),i},My=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",jy=Ay,Ly=()=>xt.toasts,zy=()=>xt.getActiveToasts(),Xr=Object.assign(jy,{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:Ly,getToasts:zy});by("[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 Di(n){return n.label!==void 0}const Oy=3,Dy="24px",Fy="16px",Ed=4e3,By=356,$y=14,Uy=45,Hy=200;function on(...n){return n.filter(Boolean).join(" ")}function Vy(n){const[r,i]=n.split("-"),s=[];return r&&s.push(r),i&&s.push(i),s}const Wy=n=>{var r,i,s,l,c,d,f,p,g;const{invert:w,toast:m,unstyled:x,interacting:k,setHeights:E,visibleToasts:S,heights:C,index:N,toasts:R,expanded:P,removeToast:M,defaultRichColors:W,closeButton:z,style:D,cancelButtonStyle:j,actionButtonStyle:q,className:Z="",descriptionClassName:U="",duration:K,position:X,gap:Y,expandByDefault:ue,classNames:Q,icons:ne,closeButtonAriaLabel:G="Close toast"}=n,[F,I]=ae.useState(null),[_,O]=ae.useState(null),[H,J]=ae.useState(!1),[ee,ce]=ae.useState(!1),[ie,re]=ae.useState(!1),[de,ye]=ae.useState(!1),[_e,Re]=ae.useState(!1),[Fe,$e]=ae.useState(0),[fn,Kt]=ae.useState(0),gt=ae.useRef(m.duration||K||Ed),Tr=ae.useRef(null),tt=ae.useRef(null),Pr=N===0,Wn=N+1<=S,st=m.type,Sn=m.dismissible!==!1,Ts=m.className||"",Ps=m.descriptionClassName||"",Ir=ae.useMemo(()=>C.findIndex(Ne=>Ne.toastId===m.id)||0,[C,m.id]),Qo=ae.useMemo(()=>{var Ne;return(Ne=m.closeButton)!=null?Ne:z},[m.closeButton,z]),Ar=ae.useMemo(()=>m.duration||K||Ed,[m.duration,K]),fo=ae.useRef(0),Lt=ae.useRef(0),qn=ae.useRef(0),Gn=ae.useRef(null),[Is,As]=X.split("-"),Ms=ae.useMemo(()=>C.reduce((Ne,qe,Ze)=>Ze>=Ir?Ne:Ne+qe.height,0),[C,Ir]),po=Py(),Zo=m.invert||w,Mr=st==="loading";Lt.current=ae.useMemo(()=>Ir*Y+Ms,[Ir,Ms]),ae.useEffect(()=>{gt.current=Ar},[Ar]),ae.useEffect(()=>{J(!0)},[]),ae.useEffect(()=>{const Ne=tt.current;if(Ne){const qe=Ne.getBoundingClientRect().height;return Kt(qe),E(Ze=>[{toastId:m.id,height:qe,position:m.position},...Ze]),()=>E(Ze=>Ze.filter(dt=>dt.toastId!==m.id))}},[E,m.id]),ae.useLayoutEffect(()=>{if(!H)return;const Ne=tt.current,qe=Ne.style.height;Ne.style.height="auto";const Ze=Ne.getBoundingClientRect().height;Ne.style.height=qe,Kt(Ze),E(dt=>dt.find(Ke=>Ke.toastId===m.id)?dt.map(Ke=>Ke.toastId===m.id?{...Ke,height:Ze}:Ke):[{toastId:m.id,height:Ze,position:m.position},...dt])},[H,m.title,m.description,E,m.id,m.jsx,m.action,m.cancel]);const zt=ae.useCallback(()=>{ce(!0),$e(Lt.current),E(Ne=>Ne.filter(qe=>qe.toastId!==m.id)),setTimeout(()=>{M(m)},Hy)},[m,M,E,Lt]);ae.useEffect(()=>{if(m.promise&&st==="loading"||m.duration===1/0||m.type==="loading")return;let Ne;return P||k||po?(()=>{if(qn.current<fo.current){const dt=new Date().getTime()-fo.current;gt.current=gt.current-dt}qn.current=new Date().getTime()})():(()=>{gt.current!==1/0&&(fo.current=new Date().getTime(),Ne=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),zt()},gt.current))})(),()=>clearTimeout(Ne)},[P,k,m,st,po,zt]),ae.useEffect(()=>{m.delete&&(zt(),m.onDismiss==null||m.onDismiss.call(m,m))},[zt,m.delete]);function Jo(){var Ne;if(ne!=null&&ne.loading){var qe;return ae.createElement("div",{className:on(Q==null?void 0:Q.loader,m==null||(qe=m.classNames)==null?void 0:qe.loader,"sonner-loader"),"data-visible":st==="loading"},ne.loading)}return ae.createElement(Cy,{className:on(Q==null?void 0:Q.loader,m==null||(Ne=m.classNames)==null?void 0:Ne.loader),visible:st==="loading"})}const Yn=m.icon||(ne==null?void 0:ne[st])||ky(st);var Cn,ei;return ae.createElement("li",{tabIndex:0,ref:tt,className:on(Z,Ts,Q==null?void 0:Q.toast,m==null||(r=m.classNames)==null?void 0:r.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[st],m==null||(i=m.classNames)==null?void 0:i[st]),"data-sonner-toast":"","data-rich-colors":(Cn=m.richColors)!=null?Cn:W,"data-styled":!(m.jsx||m.unstyled||x),"data-mounted":H,"data-promise":!!m.promise,"data-swiped":_e,"data-removed":ee,"data-visible":Wn,"data-y-position":Is,"data-x-position":As,"data-index":N,"data-front":Pr,"data-swiping":ie,"data-dismissible":Sn,"data-type":st,"data-invert":Zo,"data-swipe-out":de,"data-swipe-direction":_,"data-expanded":!!(P||ue&&H),"data-testid":m.testId,style:{"--index":N,"--toasts-before":N,"--z-index":R.length-N,"--offset":`${ee?Fe:Lt.current}px`,"--initial-height":ue?"auto":`${fn}px`,...D,...m.style},onDragEnd:()=>{re(!1),I(null),Gn.current=null},onPointerDown:Ne=>{Ne.button!==2&&(Mr||!Sn||(Tr.current=new Date,$e(Lt.current),Ne.target.setPointerCapture(Ne.pointerId),Ne.target.tagName!=="BUTTON"&&(re(!0),Gn.current={x:Ne.clientX,y:Ne.clientY})))},onPointerUp:()=>{var Ne,qe,Ze;if(de||!Sn)return;Gn.current=null;const dt=Number(((Ne=tt.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Kn=Number(((qe=tt.current)==null?void 0:qe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ke=new Date().getTime()-((Ze=Tr.current)==null?void 0:Ze.getTime()),nt=F==="x"?dt:Kn,Xn=Math.abs(nt)/Ke;if(Math.abs(nt)>=Uy||Xn>.11){$e(Lt.current),m.onDismiss==null||m.onDismiss.call(m,m),O(F==="x"?dt>0?"right":"left":Kn>0?"down":"up"),zt(),ye(!0);return}else{var at,Tt;(at=tt.current)==null||at.style.setProperty("--swipe-amount-x","0px"),(Tt=tt.current)==null||Tt.style.setProperty("--swipe-amount-y","0px")}Re(!1),re(!1),I(null)},onPointerMove:Ne=>{var qe,Ze,dt;if(!Gn.current||!Sn||((qe=window.getSelection())==null?void 0:qe.toString().length)>0)return;const Ke=Ne.clientY-Gn.current.y,nt=Ne.clientX-Gn.current.x;var Xn;const at=(Xn=n.swipeDirections)!=null?Xn:Vy(X);!F&&(Math.abs(nt)>1||Math.abs(Ke)>1)&&I(Math.abs(nt)>Math.abs(Ke)?"x":"y");let Tt={x:0,y:0};const Qn=Ot=>1/(1.5+Math.abs(Ot)/20);if(F==="y"){if(at.includes("top")||at.includes("bottom"))if(at.includes("top")&&Ke<0||at.includes("bottom")&&Ke>0)Tt.y=Ke;else{const Ot=Ke*Qn(Ke);Tt.y=Math.abs(Ot)<Math.abs(Ke)?Ot:Ke}}else if(F==="x"&&(at.includes("left")||at.includes("right")))if(at.includes("left")&&nt<0||at.includes("right")&&nt>0)Tt.x=nt;else{const Ot=nt*Qn(nt);Tt.x=Math.abs(Ot)<Math.abs(nt)?Ot:nt}(Math.abs(Tt.x)>0||Math.abs(Tt.y)>0)&&Re(!0),(Ze=tt.current)==null||Ze.style.setProperty("--swipe-amount-x",`${Tt.x}px`),(dt=tt.current)==null||dt.style.setProperty("--swipe-amount-y",`${Tt.y}px`)}},Qo&&!m.jsx&&st!=="loading"?ae.createElement("button",{"aria-label":G,"data-disabled":Mr,"data-close-button":!0,onClick:Mr||!Sn?()=>{}:()=>{zt(),m.onDismiss==null||m.onDismiss.call(m,m)},className:on(Q==null?void 0:Q.closeButton,m==null||(s=m.classNames)==null?void 0:s.closeButton)},(ei=ne==null?void 0:ne.close)!=null?ei:Ty):null,(st||m.icon||m.promise)&&m.icon!==null&&((ne==null?void 0:ne[st])!==null||m.icon)?ae.createElement("div",{"data-icon":"",className:on(Q==null?void 0:Q.icon,m==null||(l=m.classNames)==null?void 0:l.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Jo():null,m.type!=="loading"?Yn:null):null,ae.createElement("div",{"data-content":"",className:on(Q==null?void 0:Q.content,m==null||(c=m.classNames)==null?void 0:c.content)},ae.createElement("div",{"data-title":"",className:on(Q==null?void 0:Q.title,m==null||(d=m.classNames)==null?void 0:d.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?ae.createElement("div",{"data-description":"",className:on(U,Ps,Q==null?void 0:Q.description,m==null||(f=m.classNames)==null?void 0:f.description)},typeof m.description=="function"?m.description():m.description):null),ae.isValidElement(m.cancel)?m.cancel:m.cancel&&Di(m.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||j,onClick:Ne=>{Di(m.cancel)&&Sn&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,Ne),zt())},className:on(Q==null?void 0:Q.cancelButton,m==null||(p=m.classNames)==null?void 0:p.cancelButton)},m.cancel.label):null,ae.isValidElement(m.action)?m.action:m.action&&Di(m.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||q,onClick:Ne=>{Di(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,Ne),!Ne.defaultPrevented&&zt())},className:on(Q==null?void 0:Q.actionButton,m==null||(g=m.classNames)==null?void 0:g.actionButton)},m.action.label):null)};function Nd(){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 qy(n,r){const i={};return[n,r].forEach((s,l)=>{const c=l===1,d=c?"--mobile-offset":"--offset",f=c?Fy:Dy;function p(g){["top","right","bottom","left"].forEach(w=>{i[`${d}-${w}`]=typeof g=="number"?`${g}px`:g})}typeof s=="number"||typeof s=="string"?p(s):typeof s=="object"?["top","right","bottom","left"].forEach(g=>{s[g]===void 0?i[`${d}-${g}`]=f:i[`${d}-${g}`]=typeof s[g]=="number"?`${s[g]}px`:s[g]}):p(f)}),i}const Gy=ae.forwardRef(function(r,i){const{id:s,invert:l,position:c="bottom-right",hotkey:d=["altKey","KeyT"],expand:f,closeButton:p,className:g,offset:w,mobileOffset:m,theme:x="light",richColors:k,duration:E,style:S,visibleToasts:C=Oy,toastOptions:N,dir:R=Nd(),gap:P=$y,icons:M,containerAriaLabel:W="Notifications"}=r,[z,D]=ae.useState([]),j=ae.useMemo(()=>s?z.filter(H=>H.toasterId===s):z.filter(H=>!H.toasterId),[z,s]),q=ae.useMemo(()=>Array.from(new Set([c].concat(j.filter(H=>H.position).map(H=>H.position)))),[j,c]),[Z,U]=ae.useState([]),[K,X]=ae.useState(!1),[Y,ue]=ae.useState(!1),[Q,ne]=ae.useState(x!=="system"?x:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=ae.useRef(null),F=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=ae.useRef(null),_=ae.useRef(!1),O=ae.useCallback(H=>{D(J=>{var ee;return(ee=J.find(ce=>ce.id===H.id))!=null&&ee.delete||xt.dismiss(H.id),J.filter(({id:ce})=>ce!==H.id)})},[]);return ae.useEffect(()=>xt.subscribe(H=>{if(H.dismiss){requestAnimationFrame(()=>{D(J=>J.map(ee=>ee.id===H.id?{...ee,delete:!0}:ee))});return}setTimeout(()=>{Cd.flushSync(()=>{D(J=>{const ee=J.findIndex(ce=>ce.id===H.id);return ee!==-1?[...J.slice(0,ee),{...J[ee],...H},...J.slice(ee+1)]:[H,...J]})})})}),[z]),ae.useEffect(()=>{if(x!=="system"){ne(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ne("dark"):ne("light")),typeof window>"u")return;const H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:J})=>{ne(J?"dark":"light")})}catch{H.addListener(({matches:ee})=>{try{ne(ee?"dark":"light")}catch(ce){console.error(ce)}})}},[x]),ae.useEffect(()=>{z.length<=1&&X(!1)},[z]),ae.useEffect(()=>{const H=J=>{var ee;if(d.every(re=>J[re]||J.code===re)){var ie;X(!0),(ie=G.current)==null||ie.focus()}J.code==="Escape"&&(document.activeElement===G.current||(ee=G.current)!=null&&ee.contains(document.activeElement))&&X(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[d]),ae.useEffect(()=>{if(G.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,_.current=!1)}},[G.current]),ae.createElement("section",{ref:i,"aria-label":`${W} ${F}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},q.map((H,J)=>{var ee;const[ce,ie]=H.split("-");return j.length?ae.createElement("ol",{key:H,dir:R==="auto"?Nd():R,tabIndex:-1,ref:G,className:g,"data-sonner-toaster":!0,"data-sonner-theme":Q,"data-y-position":ce,"data-x-position":ie,style:{"--front-toast-height":`${((ee=Z[0])==null?void 0:ee.height)||0}px`,"--width":`${By}px`,"--gap":`${P}px`,...S,...qy(w,m)},onBlur:re=>{_.current&&!re.currentTarget.contains(re.relatedTarget)&&(_.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||_.current||(_.current=!0,I.current=re.relatedTarget)},onMouseEnter:()=>X(!0),onMouseMove:()=>X(!0),onMouseLeave:()=>{Y||X(!1)},onDragEnd:()=>X(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},j.filter(re=>!re.position&&J===0||re.position===H).map((re,de)=>{var ye,_e;return ae.createElement(Wy,{key:re.id,icons:M,index:de,toast:re,defaultRichColors:k,duration:(ye=N==null?void 0:N.duration)!=null?ye:E,className:N==null?void 0:N.className,descriptionClassName:N==null?void 0:N.descriptionClassName,invert:l,visibleToasts:C,closeButton:(_e=N==null?void 0:N.closeButton)!=null?_e:p,interacting:Y,position:H,style:N==null?void 0:N.style,unstyled:N==null?void 0:N.unstyled,classNames:N==null?void 0:N.classNames,cancelButtonStyle:N==null?void 0:N.cancelButtonStyle,actionButtonStyle:N==null?void 0:N.actionButtonStyle,closeButtonAriaLabel:N==null?void 0:N.closeButtonAriaLabel,removeToast:O,toasts:j.filter(Re=>Re.position==re.position),heights:Z.filter(Re=>Re.position==re.position),setHeights:U,expandByDefault:f,gap:P,expanded:K,swipeDirections:r.swipeDirections})})):null}))}),Yy=n=>n.startsWith("http")&&!n.endsWith(".js"),_d=n=>{try{const{hostname:r}=new URL(n);return r==="localhost"||r==="127.0.0.1"||r.endsWith(".trycloudflare.com")||r.endsWith(".ngrok-free.app")}catch{return!1}},Ky=n=>{const r=n.replace(/-/g,"+").replace(/_/g,"/"),i=r+"=".repeat((4-r.length%4)%4);return atob(i)},Xy=(n,r)=>{const i=n.indexOf(":");if(i===-1)return;const s=n.slice(0,i),l=n.slice(i+1);if(!(!s||!l)){if(!l.startsWith("http")){try{const c=JSON.parse(Ky(l));if(c.url&&_d(c.url))return{extensionId:s,bundleUrl:c.url,mode:r,token:c.token}}catch{}return}if(_d(l))return{extensionId:s,bundleUrl:l,mode:r}}},Rd=(n,r,i)=>{const s=n.getAll(r);if(s.length===0)return[];const l=[];for(const c of s){const d=c.split(",");for(const f of d){const p=Xy(f,i);p&&l.push(p)}}return l},Td=n=>{const r=new URLSearchParams(n);try{const i=Rd(r,"_stackable_dev","dev"),s=Rd(r,"_stackable_staging","staging"),l=new Map;for(const c of i)l.set(c.extensionId,c);for(const c of s)l.set(c.extensionId,c);return Array.from(l.values())}catch{return[]}},Qy=async(n,r)=>r.length===0?n:Promise.all(n.map(async i=>{const s=r.find(l=>l.extensionId===i.id);if(!s)return i;console.log(`[Stackable] Dev override active for ${i.id} → ${s.bundleUrl}`);try{const l=await fetch(`${s.bundleUrl}/manifest.json`);if(l.ok){const c=await l.json();return console.log(`[Stackable] Dev manifest loaded for ${i.id}`,c.permissions),{...i,bundleUrl:s.bundleUrl,manifest:c}}}catch{console.warn(`[Stackable] Could not fetch dev manifest for ${i.id}, using registry manifest`)}return{...i,bundleUrl:s.bundleUrl}}));/**
52
52
  * @license lucide-react v0.577.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
@@ -58,232 +58,237 @@ Error generating stack: `+h.message+`
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 Qy=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
61
+ */const Zy=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 Zy=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,i,s)=>s?s.toUpperCase():i.toLowerCase());/**
66
+ */const Jy=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,i,s)=>s?s.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 Id=n=>{const r=Zy(n);return r.charAt(0).toUpperCase()+r.slice(1)};/**
71
+ */const Id=n=>{const r=Jy(n);return r.charAt(0).toUpperCase()+r.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 Jy={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"};/**
76
+ */var ew={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 ew=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};/**
81
+ */const tw=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="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 tw=v.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:l="",children:c,iconNode:d,...f},p)=>v.createElement("svg",{ref:p,...Jy,width:r,height:r,stroke:n,strokeWidth:s?Number(i)*24/Number(r):i,className:Pd("lucide",l),...!c&&!ew(f)&&{"aria-hidden":"true"},...f},[...d.map(([g,w])=>v.createElement(g,w)),...Array.isArray(c)?c:[c]]));/**
86
+ */const nw=v.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:l="",children:c,iconNode:d,...f},p)=>v.createElement("svg",{ref:p,...ew,width:r,height:r,stroke:n,strokeWidth:s?Number(i)*24/Number(r):i,className:Pd("lucide",l),...!c&&!tw(f)&&{"aria-hidden":"true"},...f},[...d.map(([g,w])=>v.createElement(g,w)),...Array.isArray(c)?c:[c]]));/**
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 Ie=(n,r)=>{const i=v.forwardRef(({className:s,...l},c)=>v.createElement(tw,{ref:c,iconNode:r,className:Pd(`lucide-${Qy(Id(n))}`,`lucide-${n}`,s),...l}));return i.displayName=Id(n),i};/**
91
+ */const Te=(n,r)=>{const i=v.forwardRef(({className:s,...l},c)=>v.createElement(nw,{ref:c,iconNode:r,className:Pd(`lucide-${Zy(Id(n))}`,`lucide-${n}`,s),...l}));return i.displayName=Id(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 nw=Ie("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"}]]);/**
96
+ */const rw=Te("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 rw=Ie("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
101
+ */const ow=Te("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 ow=Ie("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"}]]);/**
106
+ */const iw=Te("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 iw=Ie("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
111
+ */const sw=Te("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
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 sw=Ie("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"}]]);/**
116
+ */const aw=Te("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"}]]);/**
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 Ad=Ie("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
121
+ */const Ad=Te("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 Md=Ie("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
126
+ */const Md=Te("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 aw=Ie("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
131
+ */const lw=Te("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
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 Wa=Ie("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
136
+ */const Wa=Te("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
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 lw=Ie("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
141
+ */const cw=Te("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 jd=Ie("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"}]]);/**
146
+ */const jd=Te("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"}]]);/**
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 Ld=Ie("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
151
+ */const Ld=Te("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
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 zd=Ie("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"}]]);/**
156
+ */const zd=Te("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"}]]);/**
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 cw=Ie("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"}]]);/**
161
+ */const uw=Te("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"}]]);/**
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 uw=Ie("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
166
+ */const dw=Te("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
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 dw=Ie("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);/**
171
+ */const fw=Te("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);/**
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 fw=Ie("corner-right-down",[["path",{d:"m10 15 5 5 5-5",key:"1hpjnr"}],["path",{d:"M4 4h7a4 4 0 0 1 4 4v12",key:"wcbgct"}]]);/**
176
+ */const pw=Te("corner-right-down",[["path",{d:"m10 15 5 5 5-5",key:"1hpjnr"}],["path",{d:"M4 4h7a4 4 0 0 1 4 4v12",key:"wcbgct"}]]);/**
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 pw=Ie("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"}]]);/**
181
+ */const hw=Te("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"}]]);/**
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 hw=Ie("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"}]]);/**
186
+ */const mw=Te("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"}]]);/**
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 mw=Ie("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
191
+ */const gw=Te("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
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 gw=Ie("image-off",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]);/**
196
+ */const Od=Te("image-off",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]);/**
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 Fi=Ie("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
201
+ */const Fi=Te("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
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 qa=Ie("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
206
+ */const qa=Te("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 Ga=Ie("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"}]]);/**
211
+ */const Ga=Te("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"}]]);/**
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 vw=Ie("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"}]]);/**
216
+ */const vw=Te("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"}]]);/**
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 Od=Ie("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"}]]);/**
221
+ */const Dd=Te("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"}]]);/**
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 Ya=Ie("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"}]]);/**
226
+ */const Ya=Te("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"}]]);/**
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 yw=Ie("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"}]]);/**
231
+ */const yw=Te("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"}]]);/**
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 ww=Ie("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"}]]);/**
236
+ */const ww=Te("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"}]]);/**
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 xw=Ie("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"}]]);/**
241
+ */const xw=Te("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"}]]);/**
242
242
  * @license lucide-react v0.577.0 - ISC
243
243
  *
244
244
  * This source code is licensed under the ISC license.
245
245
  * See the LICENSE file in the root directory of this source tree.
246
- */const bw=Ie("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
246
+ */const bw=Te("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
247
247
  * @license lucide-react v0.577.0 - ISC
248
248
  *
249
249
  * This source code is licensed under the ISC license.
250
250
  * See the LICENSE file in the root directory of this source tree.
251
- */const kw=Ie("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
251
+ */const kw=Te("qr-code",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
252
252
  * @license lucide-react v0.577.0 - ISC
253
253
  *
254
254
  * This source code is licensed under the ISC license.
255
255
  * See the LICENSE file in the root directory of this source tree.
256
- */const Sw=Ie("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"}]]);/**
256
+ */const Sw=Te("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
257
257
  * @license lucide-react v0.577.0 - ISC
258
258
  *
259
259
  * This source code is licensed under the ISC license.
260
260
  * See the LICENSE file in the root directory of this source tree.
261
- */const Dd=Ie("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"}]]);/**
261
+ */const Cw=Te("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"}]]);/**
262
262
  * @license lucide-react v0.577.0 - ISC
263
263
  *
264
264
  * This source code is licensed under the ISC license.
265
265
  * See the LICENSE file in the root directory of this source tree.
266
- */const Cw=Ie("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"}]]);/**
266
+ */const Fd=Te("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"}]]);/**
267
267
  * @license lucide-react v0.577.0 - ISC
268
268
  *
269
269
  * This source code is licensed under the ISC license.
270
270
  * See the LICENSE file in the root directory of this source tree.
271
- */const Ew=Ie("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"}]]);/**
271
+ */const Ew=Te("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"}]]);/**
272
272
  * @license lucide-react v0.577.0 - ISC
273
273
  *
274
274
  * This source code is licensed under the ISC license.
275
275
  * See the LICENSE file in the root directory of this source tree.
276
- */const Fd=Ie("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"}]]);/**
276
+ */const Nw=Te("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"}]]);/**
277
277
  * @license lucide-react v0.577.0 - ISC
278
278
  *
279
279
  * This source code is licensed under the ISC license.
280
280
  * See the LICENSE file in the root directory of this source tree.
281
- */const Nw=Ie("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Bd(n){var r,i,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(r=0;r<l;r++)n[r]&&(i=Bd(n[r]))&&(s&&(s+=" "),s+=i)}else for(i in n)n[i]&&(s&&(s+=" "),s+=i);return s}function $d(){for(var n,r,i=0,s="",l=arguments.length;i<l;i++)(n=arguments[i])&&(r=Bd(n))&&(s&&(s+=" "),s+=r);return s}const _w=(n,r)=>{const i=new Array(n.length+r.length);for(let s=0;s<n.length;s++)i[s]=n[s];for(let s=0;s<r.length;s++)i[n.length+s]=r[s];return i},Rw=(n,r)=>({classGroupId:n,validator:r}),Ud=(n=new Map,r=null,i)=>({nextPart:n,validators:r,classGroupId:i}),Bi="-",Hd=[],Tw="arbitrary..",Pw=n=>{const r=Aw(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return Iw(d);const f=d.split(Bi),p=f[0]===""&&f.length>1?1:0;return Vd(f,p,r)},getConflictingClassGroupIds:(d,f)=>{if(f){const p=s[d],g=i[d];return p?g?_w(g,p):p:g||Hd}return i[d]||Hd}}},Vd=(n,r,i)=>{if(n.length-r===0)return i.classGroupId;const l=n[r],c=i.nextPart.get(l);if(c){const g=Vd(n,r+1,c);if(g)return g}const d=i.validators;if(d===null)return;const f=r===0?n.join(Bi):n.slice(r).join(Bi),p=d.length;for(let g=0;g<p;g++){const w=d[g];if(w.validator(f))return w.classGroupId}},Iw=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),i=r.indexOf(":"),s=r.slice(0,i);return s?Tw+s:void 0})(),Aw=n=>{const{theme:r,classGroups:i}=n;return Mw(i,r)},Mw=(n,r)=>{const i=Ud();for(const s in n){const l=n[s];Ka(l,i,s,r)}return i},Ka=(n,r,i,s)=>{const l=n.length;for(let c=0;c<l;c++){const d=n[c];jw(d,r,i,s)}},jw=(n,r,i,s)=>{if(typeof n=="string"){Lw(n,r,i);return}if(typeof n=="function"){zw(n,r,i,s);return}Ow(n,r,i,s)},Lw=(n,r,i)=>{const s=n===""?r:Wd(r,n);s.classGroupId=i},zw=(n,r,i,s)=>{if(Dw(n)){Ka(n(s),r,i,s);return}r.validators===null&&(r.validators=[]),r.validators.push(Rw(i,n))},Ow=(n,r,i,s)=>{const l=Object.entries(n),c=l.length;for(let d=0;d<c;d++){const[f,p]=l[d];Ka(p,Wd(r,f),i,s)}},Wd=(n,r)=>{let i=n;const s=r.split(Bi),l=s.length;for(let c=0;c<l;c++){const d=s[c];let f=i.nextPart.get(d);f||(f=Ud(),i.nextPart.set(d,f)),i=f}return i},Dw=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,Fw=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,i=Object.create(null),s=Object.create(null);const l=(c,d)=>{i[c]=d,r++,r>n&&(r=0,s=i,i=Object.create(null))};return{get(c){let d=i[c];if(d!==void 0)return d;if((d=s[c])!==void 0)return l(c,d),d},set(c,d){c in i?i[c]=d:l(c,d)}}},Xa="!",qd=":",Bw=[],Gd=(n,r,i,s,l)=>({modifiers:n,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:s,isExternal:l}),$w=n=>{const{prefix:r,experimentalParseClassName:i}=n;let s=l=>{const c=[];let d=0,f=0,p=0,g;const w=l.length;for(let S=0;S<w;S++){const C=l[S];if(d===0&&f===0){if(C===qd){c.push(l.slice(p,S)),p=S+1;continue}if(C==="/"){g=S;continue}}C==="["?d++:C==="]"?d--:C==="("?f++:C===")"&&f--}const m=c.length===0?l:l.slice(p);let x=m,k=!1;m.endsWith(Xa)?(x=m.slice(0,-1),k=!0):m.startsWith(Xa)&&(x=m.slice(1),k=!0);const E=g&&g>p?g-p:void 0;return Gd(c,k,x,E)};if(r){const l=r+qd,c=s;s=d=>d.startsWith(l)?c(d.slice(l.length)):Gd(Bw,!1,d,void 0,!0)}if(i){const l=s;s=c=>i({className:c,parseClassName:l})}return s},Uw=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((i,s)=>{r.set(i,1e6+s)}),i=>{const s=[];let l=[];for(let c=0;c<i.length;c++){const d=i[c],f=d[0]==="[",p=r.has(d);f||p?(l.length>0&&(l.sort(),s.push(...l),l=[]),s.push(d)):l.push(d)}return l.length>0&&(l.sort(),s.push(...l)),s}},Hw=n=>({cache:Fw(n.cacheSize),parseClassName:$w(n),sortModifiers:Uw(n),...Pw(n)}),Vw=/\s+/,Ww=(n,r)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:c}=r,d=[],f=n.trim().split(Vw);let p="";for(let g=f.length-1;g>=0;g-=1){const w=f[g],{isExternal:m,modifiers:x,hasImportantModifier:k,baseClassName:E,maybePostfixModifierPosition:S}=i(w);if(m){p=w+(p.length>0?" "+p:p);continue}let C=!!S,N=s(C?E.substring(0,S):E);if(!N){if(!C){p=w+(p.length>0?" "+p:p);continue}if(N=s(E),!N){p=w+(p.length>0?" "+p:p);continue}C=!1}const R=x.length===0?"":x.length===1?x[0]:c(x).join(":"),P=k?R+Xa:R,M=P+N;if(d.indexOf(M)>-1)continue;d.push(M);const W=l(N,C);for(let z=0;z<W.length;++z){const D=W[z];d.push(P+D)}p=w+(p.length>0?" "+p:p)}return p},qw=(...n)=>{let r=0,i,s,l="";for(;r<n.length;)(i=n[r++])&&(s=Yd(i))&&(l&&(l+=" "),l+=s);return l},Yd=n=>{if(typeof n=="string")return n;let r,i="";for(let s=0;s<n.length;s++)n[s]&&(r=Yd(n[s]))&&(i&&(i+=" "),i+=r);return i},Gw=(n,...r)=>{let i,s,l,c;const d=p=>{const g=r.reduce((w,m)=>m(w),n());return i=Hw(g),s=i.cache.get,l=i.cache.set,c=f,f(p)},f=p=>{const g=s(p);if(g)return g;const w=Ww(p,i);return l(p,w),w};return c=d,(...p)=>c(qw(...p))},Yw=[],Qe=n=>{const r=i=>i[n]||Yw;return r.isThemeGetter=!0,r},Kd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Kw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Xw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qw=/\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$/,Zw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jn=n=>Kw.test(n),Te=n=>!!n&&!Number.isNaN(Number(n)),Ln=n=>!!n&&Number.isInteger(Number(n)),Qa=n=>n.endsWith("%")&&Te(n.slice(0,-1)),yn=n=>Xw.test(n),Qd=()=>!0,tx=n=>Qw.test(n)&&!Zw.test(n),Za=()=>!1,nx=n=>Jw.test(n),rx=n=>ex.test(n),ox=n=>!he(n)&&!ge(n),ix=n=>zn(n,rf,Za),he=n=>Kd.test(n),yr=n=>zn(n,of,tx),Zd=n=>zn(n,px,Te),sx=n=>zn(n,af,Qd),ax=n=>zn(n,sf,Za),Jd=n=>zn(n,tf,Za),lx=n=>zn(n,nf,rx),$i=n=>zn(n,lf,nx),ge=n=>Xd.test(n),Do=n=>wr(n,of),cx=n=>wr(n,sf),ef=n=>wr(n,tf),ux=n=>wr(n,rf),dx=n=>wr(n,nf),Ui=n=>wr(n,lf,!0),fx=n=>wr(n,af,!0),zn=(n,r,i)=>{const s=Kd.exec(n);return s?s[1]?r(s[1]):i(s[2]):!1},wr=(n,r,i=!1)=>{const s=Xd.exec(n);return s?s[1]?r(s[1]):i:!1},tf=n=>n==="position"||n==="percentage",nf=n=>n==="image"||n==="url",rf=n=>n==="length"||n==="size"||n==="bg-size",of=n=>n==="length",px=n=>n==="number",sf=n=>n==="family-name",af=n=>n==="number"||n==="weight",lf=n=>n==="shadow",hx=Gw(()=>{const n=Qe("color"),r=Qe("font"),i=Qe("text"),s=Qe("font-weight"),l=Qe("tracking"),c=Qe("leading"),d=Qe("breakpoint"),f=Qe("container"),p=Qe("spacing"),g=Qe("radius"),w=Qe("shadow"),m=Qe("inset-shadow"),x=Qe("text-shadow"),k=Qe("drop-shadow"),E=Qe("blur"),S=Qe("perspective"),C=Qe("aspect"),N=Qe("ease"),R=Qe("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...M(),ge,he],z=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],j=()=>[ge,he,p],q=()=>[jn,"full","auto",...j()],Z=()=>[Ln,"none","subgrid",ge,he],U=()=>["auto",{span:["full",Ln,ge,he]},Ln,ge,he],K=()=>[Ln,"auto",ge,he],X=()=>["auto","min","max","fr",ge,he],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...j()],ne=()=>[jn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],G=()=>[jn,"screen","full","dvw","lvw","svw","min","max","fit",...j()],F=()=>[jn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],I=()=>[n,ge,he],_=()=>[...M(),ef,Jd,{position:[ge,he]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",ux,ix,{size:[ge,he]}],J=()=>[Qa,Do,yr],ee=()=>["","none","full",g,ge,he],ce=()=>["",Te,Do,yr],ie=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[Te,Qa,ef,Jd],ye=()=>["","none",E,ge,he],_e=()=>["none",Te,ge,he],Re=()=>["none",Te,ge,he],Fe=()=>[Te,ge,he],$e=()=>[jn,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yn],breakpoint:[yn],color:[Qd],container:[yn],"drop-shadow":[yn],ease:["in","out","in-out"],font:[ox],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yn],shadow:[yn],spacing:["px",Te],text:[yn],"text-shadow":[yn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jn,he,ge,C]}],container:["container"],columns:[{columns:[Te,he,ge,f]}],"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:W()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{"inset-s":q(),start:q()}],end:[{"inset-e":q(),end:q()}],"inset-bs":[{"inset-bs":q()}],"inset-be":[{"inset-be":q()}],top:[{top:q()}],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[Ln,"auto",ge,he]}],basis:[{basis:[jn,"full","auto",f,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,jn,"auto","initial","none",he]}],grow:[{grow:["",Te,ge,he]}],shrink:[{shrink:["",Te,ge,he]}],order:[{order:[Ln,"first","last","none",ge,he]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mbs:[{mbs:Q()}],mbe:[{mbe:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...F()]}],"min-block-size":[{"min-block":["auto",...F()]}],"max-block-size":[{"max-block":["none",...F()]}],w:[{w:[f,"screen",...ne()]}],"min-w":[{"min-w":[f,"screen","none",...ne()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[d]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",i,Do,yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,fx,sx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qa,he]}],"font-family":[{font:[cx,ax,r]}],"font-features":[{"font-features":[he]}],"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,ge,he]}],"line-clamp":[{"line-clamp":[Te,"none",ge,Zd]}],leading:[{leading:[c,...j()]}],"list-image":[{"list-image":["none",ge,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ge,yr]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Te,"auto",ge,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,he]}],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",ge,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ln,ge,he],radial:["",ge,he],conic:[Ln,ge,he]},dx,lx]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-bs":[{"border-bs":ce()}],"border-w-be":[{"border-be":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ge,he]}],"outline-w":[{outline:["",Te,Do,yr]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",w,Ui,$i]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",m,Ui,$i]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Te,yr]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",x,Ui,$i]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Te,ge,he]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"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":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ge,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,he]}],filter:[{filter:["","none",ge,he]}],blur:[{blur:ye()}],brightness:[{brightness:[Te,ge,he]}],contrast:[{contrast:[Te,ge,he]}],"drop-shadow":[{"drop-shadow":["","none",k,Ui,$i]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Te,ge,he]}],"hue-rotate":[{"hue-rotate":[Te,ge,he]}],invert:[{invert:["",Te,ge,he]}],saturate:[{saturate:[Te,ge,he]}],sepia:[{sepia:["",Te,ge,he]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,he]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ge,he]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ge,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ge,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ge,he]}],"backdrop-invert":[{"backdrop-invert":["",Te,ge,he]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ge,he]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ge,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ge,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ge,he]}],ease:[{ease:["linear","initial",N,ge,he]}],delay:[{delay:[Te,ge,he]}],animate:[{animate:["none",R,ge,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ge,he]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],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:[ge,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",ge,he]}],"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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",ge,he]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Te,Do,yr,Zd]}],stroke:[{stroke:["none",...I()]}],"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"]}}),we=(...n)=>hx($d(n));function Fo({className:n,...r}){return y.jsx("div",{"data-slot":"card",className:we("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",n),...r})}function mx({className:n,...r}){return y.jsx("div",{"data-slot":"card-header",className:we("@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),...r})}function Bo({className:n,...r}){return y.jsx("div",{"data-slot":"card-content",className:we("px-6",n),...r})}const cf=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,uf=$d,Hi=(n,r)=>i=>{var s;if((r==null?void 0:r.variants)==null)return uf(n,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:l,defaultVariants:c}=r,d=Object.keys(l).map(g=>{const w=i==null?void 0:i[g],m=c==null?void 0:c[g];if(w===null)return null;const x=cf(w)||cf(m);return l[g][x]}),f=i&&Object.entries(i).reduce((g,w)=>{let[m,x]=w;return x===void 0||(g[m]=x),g},{}),p=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((g,w)=>{let{class:m,className:x,...k}=w;return Object.entries(k).every(E=>{let[S,C]=E;return Array.isArray(C)?C.includes({...c,...f}[S]):{...c,...f}[S]===C})?[...g,m,x]:g},[]);return uf(n,d,p,i==null?void 0:i.class,i==null?void 0:i.className)};function df(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function ff(...n){return r=>{let i=!1;const s=n.map(l=>{const c=df(l,r);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let l=0;l<s.length;l++){const c=s[l];typeof c=="function"?c():df(n[l],null)}}}}function Ae(...n){return v.useCallback(ff(...n),n)}function $o(n){const r=gx(n),i=v.forwardRef((s,l)=>{const{children:c,...d}=s,f=v.Children.toArray(c),p=f.find(yx);if(p){const g=p.props.children,w=f.map(m=>m===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:m);return y.jsx(r,{...d,ref:l,children:v.isValidElement(g)?v.cloneElement(g,void 0,w):null})}return y.jsx(r,{...d,ref:l,children:c})});return i.displayName=`${n}.Slot`,i}var pf=$o("Slot");function gx(n){const r=v.forwardRef((i,s)=>{const{children:l,...c}=i;if(v.isValidElement(l)){const d=xx(l),f=wx(c,l.props);return l.type!==v.Fragment&&(f.ref=s?ff(s,d):d),v.cloneElement(l,f)}return v.Children.count(l)>1?v.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var hf=Symbol("radix.slottable");function vx(n){const r=({children:i})=>y.jsx(y.Fragment,{children:i});return r.displayName=`${n}.Slottable`,r.__radixId=hf,r}function yx(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===hf}function wx(n,r){const i={...r};for(const s in r){const l=n[s],c=r[s];/^on[A-Z]/.test(s)?l&&c?i[s]=(...f)=>{const p=c(...f);return l(...f),p}:l&&(i[s]=l):s==="style"?i[s]={...l,...c}:s==="className"&&(i[s]=[l,c].filter(Boolean).join(" "))}return{...n,...i}}function xx(n){var s,l;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(l=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:l.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var bx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],be=bx.reduce((n,r)=>{const i=$o(`Primitive.${r}`),s=v.forwardRef((l,c)=>{const{asChild:d,...f}=l,p=d?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(p,{...f,ref:c})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function kx(n,r){n&&Oo.flushSync(()=>n.dispatchEvent(r))}var mf=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"}),Sx="VisuallyHidden",gf=v.forwardRef((n,r)=>y.jsx(be.span,{...n,ref:r,style:{...mf,...n.style}}));gf.displayName=Sx;var Cx=gf;function bt(n,r=[]){let i=[];function s(c,d){const f=v.createContext(d),p=i.length;i=[...i,d];const g=m=>{var N;const{scope:x,children:k,...E}=m,S=((N=x==null?void 0:x[n])==null?void 0:N[p])||f,C=v.useMemo(()=>E,Object.values(E));return y.jsx(S.Provider,{value:C,children:k})};g.displayName=c+"Provider";function w(m,x){var S;const k=((S=x==null?void 0:x[n])==null?void 0:S[p])||f,E=v.useContext(k);if(E)return E;if(d!==void 0)return d;throw new Error(`\`${m}\` must be used within \`${c}\``)}return[g,w]}const l=()=>{const c=i.map(d=>v.createContext(d));return function(f){const p=(f==null?void 0:f[n])||c;return v.useMemo(()=>({[`__scope${n}`]:{...f,[n]:p}}),[f,p])}};return l.scopeName=n,[s,Ex(l,...r)]}function Ex(...n){const r=n[0];if(n.length===1)return r;const i=()=>{const s=n.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(c){const d=s.reduce((f,{useScope:p,scopeName:g})=>{const m=p(c)[`__scope${g}`];return{...f,...m}},{});return v.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return i.scopeName=r.scopeName,i}function vf(n){const r=n+"CollectionProvider",[i,s]=bt(r),[l,c]=i(r,{collectionRef:{current:null},itemMap:new Map}),d=S=>{const{scope:C,children:N}=S,R=ae.useRef(null),P=ae.useRef(new Map).current;return y.jsx(l,{scope:C,itemMap:P,collectionRef:R,children:N})};d.displayName=r;const f=n+"CollectionSlot",p=$o(f),g=ae.forwardRef((S,C)=>{const{scope:N,children:R}=S,P=c(f,N),M=Ae(C,P.collectionRef);return y.jsx(p,{ref:M,children:R})});g.displayName=f;const w=n+"CollectionItemSlot",m="data-radix-collection-item",x=$o(w),k=ae.forwardRef((S,C)=>{const{scope:N,children:R,...P}=S,M=ae.useRef(null),W=Ae(C,M),z=c(w,N);return ae.useEffect(()=>(z.itemMap.set(M,{ref:M,...P}),()=>void z.itemMap.delete(M))),y.jsx(x,{[m]:"",ref:W,children:R})});k.displayName=w;function E(S){const C=c(n+"CollectionConsumer",S);return ae.useCallback(()=>{const R=C.collectionRef.current;if(!R)return[];const P=Array.from(R.querySelectorAll(`[${m}]`));return Array.from(C.itemMap.values()).sort((z,D)=>P.indexOf(z.ref.current)-P.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:d,Slot:g,ItemSlot:k},E,s]}function Ce(n,r,{checkForDefaultPrevented:i=!0}={}){return function(l){if(n==null||n(l),i===!1||!l.defaultPrevented)return r==null?void 0:r(l)}}var We=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Nx=wd[" useInsertionEffect ".trim().toString()]||We;function wn({prop:n,defaultProp:r,onChange:i=()=>{},caller:s}){const[l,c,d]=_x({defaultProp:r,onChange:i}),f=n!==void 0,p=f?n:l;{const w=v.useRef(n!==void 0);v.useEffect(()=>{const m=w.current;m!==f&&console.warn(`${s} is changing from ${m?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),w.current=f},[f,s])}const g=v.useCallback(w=>{var m;if(f){const x=Rx(w)?w(n):w;x!==n&&((m=d.current)==null||m.call(d,x))}else c(w)},[f,n,c,d]);return[p,g]}function _x({defaultProp:n,onChange:r}){const[i,s]=v.useState(n),l=v.useRef(i),c=v.useRef(r);return Nx(()=>{c.current=r},[r]),v.useEffect(()=>{var d;l.current!==i&&((d=c.current)==null||d.call(c,i),l.current=i)},[i,l]),[i,s,c]}function Rx(n){return typeof n=="function"}function Tx(n,r){return v.useReducer((i,s)=>r[i][s]??i,n)}var Wt=n=>{const{present:r,children:i}=n,s=Px(r),l=typeof i=="function"?i({present:s.isPresent}):v.Children.only(i),c=Ae(s.ref,Ix(l));return typeof i=="function"||s.isPresent?v.cloneElement(l,{ref:c}):null};Wt.displayName="Presence";function Px(n){const[r,i]=v.useState(),s=v.useRef(null),l=v.useRef(n),c=v.useRef("none"),d=n?"mounted":"unmounted",[f,p]=Tx(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=Vi(s.current);c.current=f==="mounted"?g:"none"},[f]),We(()=>{const g=s.current,w=l.current;if(w!==n){const x=c.current,k=Vi(g);n?p("MOUNT"):k==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(w&&x!==k?"ANIMATION_OUT":"UNMOUNT"),l.current=n}},[n,p]),We(()=>{if(r){let g;const w=r.ownerDocument.defaultView??window,m=k=>{const S=Vi(s.current).includes(CSS.escape(k.animationName));if(k.target===r&&S&&(p("ANIMATION_END"),!l.current)){const C=r.style.animationFillMode;r.style.animationFillMode="forwards",g=w.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=C)})}},x=k=>{k.target===r&&(c.current=Vi(s.current))};return r.addEventListener("animationstart",x),r.addEventListener("animationcancel",m),r.addEventListener("animationend",m),()=>{w.clearTimeout(g),r.removeEventListener("animationstart",x),r.removeEventListener("animationcancel",m),r.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:v.useCallback(g=>{s.current=g?getComputedStyle(g):null,i(g)},[])}}function Vi(n){return(n==null?void 0:n.animationName)||"none"}function Ix(n){var s,l;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(l=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:l.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var Ax=wd[" useId ".trim().toString()]||(()=>{}),Mx=0;function xr(n){const[r,i]=v.useState(Ax());return We(()=>{i(s=>s??String(Mx++))},[n]),n||(r?`radix-${r}`:"")}var Wi="Collapsible",[jx]=bt(Wi),[Lx,Ja]=jx(Wi),yf=v.forwardRef((n,r)=>{const{__scopeCollapsible:i,open:s,defaultOpen:l,disabled:c,onOpenChange:d,...f}=n,[p,g]=wn({prop:s,defaultProp:l??!1,onChange:d,caller:Wi});return y.jsx(Lx,{scope:i,disabled:c,contentId:xr(),open:p,onOpenToggle:v.useCallback(()=>g(w=>!w),[g]),children:y.jsx(be.div,{"data-state":tl(p),"data-disabled":c?"":void 0,...f,ref:r})})});yf.displayName=Wi;var wf="CollapsibleTrigger",xf=v.forwardRef((n,r)=>{const{__scopeCollapsible:i,...s}=n,l=Ja(wf,i);return y.jsx(be.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":tl(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...s,ref:r,onClick:Ce(n.onClick,l.onOpenToggle)})});xf.displayName=wf;var el="CollapsibleContent",bf=v.forwardRef((n,r)=>{const{forceMount:i,...s}=n,l=Ja(el,n.__scopeCollapsible);return y.jsx(Wt,{present:i||l.open,children:({present:c})=>y.jsx(zx,{...s,ref:r,present:c})})});bf.displayName=el;var zx=v.forwardRef((n,r)=>{const{__scopeCollapsible:i,present:s,children:l,...c}=n,d=Ja(el,i),[f,p]=v.useState(s),g=v.useRef(null),w=Ae(r,g),m=v.useRef(0),x=m.current,k=v.useRef(0),E=k.current,S=d.open||f,C=v.useRef(S),N=v.useRef(void 0);return v.useEffect(()=>{const R=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(R)},[]),We(()=>{const R=g.current;if(R){N.current=N.current||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const P=R.getBoundingClientRect();m.current=P.height,k.current=P.width,C.current||(R.style.transitionDuration=N.current.transitionDuration,R.style.animationName=N.current.animationName),p(s)}},[d.open,s]),y.jsx(be.div,{"data-state":tl(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!S,...c,ref:w,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:S&&l})});function tl(n){return n?"open":"closed"}var Ox=yf,Dx=v.createContext(void 0);function Uo(n){const r=v.useContext(Dx);return n||r||"ltr"}function ut(n){const r=v.useRef(n);return v.useEffect(()=>{r.current=n}),v.useMemo(()=>(...i)=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)},[])}function Fx(n,r=globalThis==null?void 0:globalThis.document){const i=ut(n);v.useEffect(()=>{const s=l=>{l.key==="Escape"&&i(l)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[i,r])}var Bx="DismissableLayer",nl="dismissableLayer.update",$x="dismissableLayer.pointerDownOutside",Ux="dismissableLayer.focusOutside",kf,Sf=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rl=v.forwardRef((n,r)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...p}=n,g=v.useContext(Sf),[w,m]=v.useState(null),x=(w==null?void 0:w.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,k]=v.useState({}),E=Ae(r,D=>m(D)),S=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),N=S.indexOf(C),R=w?S.indexOf(w):-1,P=g.layersWithOutsidePointerEventsDisabled.size>0,M=R>=N,W=Wx(D=>{const j=D.target,q=[...g.branches].some(Z=>Z.contains(j));!M||q||(l==null||l(D),d==null||d(D),D.defaultPrevented||f==null||f())},x),z=qx(D=>{const j=D.target;[...g.branches].some(Z=>Z.contains(j))||(c==null||c(D),d==null||d(D),D.defaultPrevented||f==null||f())},x);return Fx(D=>{R===g.layers.size-1&&(s==null||s(D),!D.defaultPrevented&&f&&(D.preventDefault(),f()))},x),v.useEffect(()=>{if(w)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(kf=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(w)),g.layers.add(w),Cf(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=kf)}},[w,x,i,g]),v.useEffect(()=>()=>{w&&(g.layers.delete(w),g.layersWithOutsidePointerEventsDisabled.delete(w),Cf())},[w,g]),v.useEffect(()=>{const D=()=>k({});return document.addEventListener(nl,D),()=>document.removeEventListener(nl,D)},[]),y.jsx(be.div,{...p,ref:E,style:{pointerEvents:P?M?"auto":"none":void 0,...n.style},onFocusCapture:Ce(n.onFocusCapture,z.onFocusCapture),onBlurCapture:Ce(n.onBlurCapture,z.onBlurCapture),onPointerDownCapture:Ce(n.onPointerDownCapture,W.onPointerDownCapture)})});rl.displayName=Bx;var Hx="DismissableLayerBranch",Vx=v.forwardRef((n,r)=>{const i=v.useContext(Sf),s=v.useRef(null),l=Ae(r,s);return v.useEffect(()=>{const c=s.current;if(c)return i.branches.add(c),()=>{i.branches.delete(c)}},[i.branches]),y.jsx(be.div,{...n,ref:l})});Vx.displayName=Hx;function Wx(n,r=globalThis==null?void 0:globalThis.document){const i=ut(n),s=v.useRef(!1),l=v.useRef(()=>{});return v.useEffect(()=>{const c=f=>{if(f.target&&!s.current){let p=function(){Ef($x,i,g,{discrete:!0})};const g={originalEvent:f};f.pointerType==="touch"?(r.removeEventListener("click",l.current),l.current=p,r.addEventListener("click",l.current,{once:!0})):p()}else r.removeEventListener("click",l.current);s.current=!1},d=window.setTimeout(()=>{r.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(d),r.removeEventListener("pointerdown",c),r.removeEventListener("click",l.current)}},[r,i]),{onPointerDownCapture:()=>s.current=!0}}function qx(n,r=globalThis==null?void 0:globalThis.document){const i=ut(n),s=v.useRef(!1);return v.useEffect(()=>{const l=c=>{c.target&&!s.current&&Ef(Ux,i,{originalEvent:c},{discrete:!1})};return r.addEventListener("focusin",l),()=>r.removeEventListener("focusin",l)},[r,i]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Cf(){const n=new CustomEvent(nl);document.dispatchEvent(n)}function Ef(n,r,i,{discrete:s}){const l=i.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});r&&l.addEventListener(n,r,{once:!0}),s?kx(l,c):l.dispatchEvent(c)}var ol="focusScope.autoFocusOnMount",il="focusScope.autoFocusOnUnmount",Nf={bubbles:!1,cancelable:!0},Gx="FocusScope",_f=v.forwardRef((n,r)=>{const{loop:i=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:c,...d}=n,[f,p]=v.useState(null),g=ut(l),w=ut(c),m=v.useRef(null),x=Ae(r,S=>p(S)),k=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(s){let S=function(P){if(k.paused||!f)return;const M=P.target;f.contains(M)?m.current=M:On(m.current,{select:!0})},C=function(P){if(k.paused||!f)return;const M=P.relatedTarget;M!==null&&(f.contains(M)||On(m.current,{select:!0}))},N=function(P){if(document.activeElement===document.body)for(const W of P)W.removedNodes.length>0&&On(f)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const R=new MutationObserver(N);return f&&R.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),R.disconnect()}}},[s,f,k.paused]),v.useEffect(()=>{if(f){Pf.add(k);const S=document.activeElement;if(!f.contains(S)){const N=new CustomEvent(ol,Nf);f.addEventListener(ol,g),f.dispatchEvent(N),N.defaultPrevented||(Yx(Jx(Rf(f)),{select:!0}),document.activeElement===S&&On(f))}return()=>{f.removeEventListener(ol,g),setTimeout(()=>{const N=new CustomEvent(il,Nf);f.addEventListener(il,w),f.dispatchEvent(N),N.defaultPrevented||On(S??document.body,{select:!0}),f.removeEventListener(il,w),Pf.remove(k)},0)}}},[f,g,w,k]);const E=v.useCallback(S=>{if(!i&&!s||k.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,N=document.activeElement;if(C&&N){const R=S.currentTarget,[P,M]=Kx(R);P&&M?!S.shiftKey&&N===M?(S.preventDefault(),i&&On(P,{select:!0})):S.shiftKey&&N===P&&(S.preventDefault(),i&&On(M,{select:!0})):N===R&&S.preventDefault()}},[i,s,k.paused]);return y.jsx(be.div,{tabIndex:-1,...d,ref:x,onKeyDown:E})});_f.displayName=Gx;function Yx(n,{select:r=!1}={}){const i=document.activeElement;for(const s of n)if(On(s,{select:r}),document.activeElement!==i)return}function Kx(n){const r=Rf(n),i=Tf(r,n),s=Tf(r.reverse(),n);return[i,s]}function Rf(n){const r=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const l=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||l?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)r.push(i.currentNode);return r}function Tf(n,r){for(const i of n)if(!Xx(i,{upTo:r}))return i}function Xx(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Qx(n){return n instanceof HTMLInputElement&&"select"in n}function On(n,{select:r=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&Qx(n)&&r&&n.select()}}var Pf=Zx();function Zx(){let n=[];return{add(r){const i=n[0];r!==i&&(i==null||i.pause()),n=If(n,r),n.unshift(r)},remove(r){var i;n=If(n,r),(i=n[0])==null||i.resume()}}}function If(n,r){const i=[...n],s=i.indexOf(r);return s!==-1&&i.splice(s,1),i}function Jx(n){return n.filter(r=>r.tagName!=="A")}var e1="Portal",sl=v.forwardRef((n,r)=>{var f;const{container:i,...s}=n,[l,c]=v.useState(!1);We(()=>c(!0),[]);const d=i||l&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return d?Cd.createPortal(y.jsx(be.div,{...s,ref:r}),d):null});sl.displayName=e1;var al=0;function t1(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Af()),document.body.insertAdjacentElement("beforeend",n[1]??Af()),al++,()=>{al===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),al--}},[])}function Af(){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 sn=function(){return sn=Object.assign||function(r){for(var i,s=1,l=arguments.length;s<l;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},sn.apply(this,arguments)};function Mf(n,r){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(n);l<s.length;l++)r.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(n,s[l])&&(i[s[l]]=n[s[l]]);return i}function n1(n,r,i){if(i||arguments.length===2)for(var s=0,l=r.length,c;s<l;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return n.concat(c||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;var qi="right-scroll-bar-position",Gi="width-before-scroll-bar",r1="with-scroll-bars-hidden",o1="--removed-body-scroll-bar-size";function ll(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function i1(n,r){var i=v.useState(function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(s){var l=i.value;l!==s&&(i.value=s,i.callback(s,l))}}}})[0];return i.callback=r,i.facade}var s1=typeof window<"u"?v.useLayoutEffect:v.useEffect,jf=new WeakMap;function a1(n,r){var i=i1(null,function(s){return n.forEach(function(l){return ll(l,s)})});return s1(function(){var s=jf.get(i);if(s){var l=new Set(s),c=new Set(n),d=i.current;l.forEach(function(f){c.has(f)||ll(f,null)}),c.forEach(function(f){l.has(f)||ll(f,d)})}jf.set(i,n)},[n]),i}function l1(n){return n}function c1(n,r){r===void 0&&(r=l1);var i=[],s=!1,l={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:n},useMedium:function(c){var d=r(c,s);return i.push(d),function(){i=i.filter(function(f){return f!==d})}},assignSyncMedium:function(c){for(s=!0;i.length;){var d=i;i=[],d.forEach(c)}i={push:function(f){return c(f)},filter:function(){return i}}},assignMedium:function(c){s=!0;var d=[];if(i.length){var f=i;i=[],f.forEach(c),d=i}var p=function(){var w=d;d=[],w.forEach(c)},g=function(){return Promise.resolve().then(p)};g(),i={push:function(w){d.push(w),g()},filter:function(w){return d=d.filter(w),i}}}};return l}function u1(n){n===void 0&&(n={});var r=c1(null);return r.options=sn({async:!0,ssr:!1},n),r}var Lf=function(n){var r=n.sideCar,i=Mf(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return v.createElement(s,sn({},i))};Lf.isSideCarExport=!0;function d1(n,r){return n.useMedium(r),Lf}var zf=u1(),cl=function(){},Yi=v.forwardRef(function(n,r){var i=v.useRef(null),s=v.useState({onScrollCapture:cl,onWheelCapture:cl,onTouchMoveCapture:cl}),l=s[0],c=s[1],d=n.forwardProps,f=n.children,p=n.className,g=n.removeScrollBar,w=n.enabled,m=n.shards,x=n.sideCar,k=n.noRelative,E=n.noIsolation,S=n.inert,C=n.allowPinchZoom,N=n.as,R=N===void 0?"div":N,P=n.gapMode,M=Mf(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),W=x,z=a1([i,r]),D=sn(sn({},M),l);return v.createElement(v.Fragment,null,w&&v.createElement(W,{sideCar:zf,removeScrollBar:g,shards:m,noRelative:k,noIsolation:E,inert:S,setCallbacks:c,allowPinchZoom:!!C,lockRef:i,gapMode:P}),d?v.cloneElement(v.Children.only(f),sn(sn({},D),{ref:z})):v.createElement(R,sn({},D,{className:p,ref:z}),f))});Yi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Yi.classNames={fullWidth:Gi,zeroRight:qi};var f1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function p1(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=f1();return r&&n.setAttribute("nonce",r),n}function h1(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function m1(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var g1=function(){var n=0,r=null;return{add:function(i){n==0&&(r=p1())&&(h1(r,i),m1(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},v1=function(){var n=g1();return function(r,i){v.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&i])}},Of=function(){var n=v1(),r=function(i){var s=i.styles,l=i.dynamic;return n(s,l),null};return r},y1={left:0,top:0,right:0,gap:0},ul=function(n){return parseInt(n||"",10)||0},w1=function(n){var r=window.getComputedStyle(document.body),i=r[n==="padding"?"paddingLeft":"marginLeft"],s=r[n==="padding"?"paddingTop":"marginTop"],l=r[n==="padding"?"paddingRight":"marginRight"];return[ul(i),ul(s),ul(l)]},x1=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return y1;var r=w1(n),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-i+r[2]-r[0])}},b1=Of(),Xr="data-scroll-locked",k1=function(n,r,i,s){var l=n.left,c=n.top,d=n.right,f=n.gap;return i===void 0&&(i="margin"),`
282
- .`.concat(r1,` {
281
+ */const Bd=Te("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"}]]);/**
282
+ * @license lucide-react v0.577.0 - ISC
283
+ *
284
+ * This source code is licensed under the ISC license.
285
+ * See the LICENSE file in the root directory of this source tree.
286
+ */const _w=Te("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function $d(n){var r,i,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(r=0;r<l;r++)n[r]&&(i=$d(n[r]))&&(s&&(s+=" "),s+=i)}else for(i in n)n[i]&&(s&&(s+=" "),s+=i);return s}function Ud(){for(var n,r,i=0,s="",l=arguments.length;i<l;i++)(n=arguments[i])&&(r=$d(n))&&(s&&(s+=" "),s+=r);return s}const Rw=(n,r)=>{const i=new Array(n.length+r.length);for(let s=0;s<n.length;s++)i[s]=n[s];for(let s=0;s<r.length;s++)i[n.length+s]=r[s];return i},Tw=(n,r)=>({classGroupId:n,validator:r}),Hd=(n=new Map,r=null,i)=>({nextPart:n,validators:r,classGroupId:i}),Bi="-",Vd=[],Pw="arbitrary..",Iw=n=>{const r=Mw(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return Aw(d);const f=d.split(Bi),p=f[0]===""&&f.length>1?1:0;return Wd(f,p,r)},getConflictingClassGroupIds:(d,f)=>{if(f){const p=s[d],g=i[d];return p?g?Rw(g,p):p:g||Vd}return i[d]||Vd}}},Wd=(n,r,i)=>{if(n.length-r===0)return i.classGroupId;const l=n[r],c=i.nextPart.get(l);if(c){const g=Wd(n,r+1,c);if(g)return g}const d=i.validators;if(d===null)return;const f=r===0?n.join(Bi):n.slice(r).join(Bi),p=d.length;for(let g=0;g<p;g++){const w=d[g];if(w.validator(f))return w.classGroupId}},Aw=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),i=r.indexOf(":"),s=r.slice(0,i);return s?Pw+s:void 0})(),Mw=n=>{const{theme:r,classGroups:i}=n;return jw(i,r)},jw=(n,r)=>{const i=Hd();for(const s in n){const l=n[s];Ka(l,i,s,r)}return i},Ka=(n,r,i,s)=>{const l=n.length;for(let c=0;c<l;c++){const d=n[c];Lw(d,r,i,s)}},Lw=(n,r,i,s)=>{if(typeof n=="string"){zw(n,r,i);return}if(typeof n=="function"){Ow(n,r,i,s);return}Dw(n,r,i,s)},zw=(n,r,i)=>{const s=n===""?r:qd(r,n);s.classGroupId=i},Ow=(n,r,i,s)=>{if(Fw(n)){Ka(n(s),r,i,s);return}r.validators===null&&(r.validators=[]),r.validators.push(Tw(i,n))},Dw=(n,r,i,s)=>{const l=Object.entries(n),c=l.length;for(let d=0;d<c;d++){const[f,p]=l[d];Ka(p,qd(r,f),i,s)}},qd=(n,r)=>{let i=n;const s=r.split(Bi),l=s.length;for(let c=0;c<l;c++){const d=s[c];let f=i.nextPart.get(d);f||(f=Hd(),i.nextPart.set(d,f)),i=f}return i},Fw=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,Bw=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,i=Object.create(null),s=Object.create(null);const l=(c,d)=>{i[c]=d,r++,r>n&&(r=0,s=i,i=Object.create(null))};return{get(c){let d=i[c];if(d!==void 0)return d;if((d=s[c])!==void 0)return l(c,d),d},set(c,d){c in i?i[c]=d:l(c,d)}}},Xa="!",Gd=":",$w=[],Yd=(n,r,i,s,l)=>({modifiers:n,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:s,isExternal:l}),Uw=n=>{const{prefix:r,experimentalParseClassName:i}=n;let s=l=>{const c=[];let d=0,f=0,p=0,g;const w=l.length;for(let S=0;S<w;S++){const C=l[S];if(d===0&&f===0){if(C===Gd){c.push(l.slice(p,S)),p=S+1;continue}if(C==="/"){g=S;continue}}C==="["?d++:C==="]"?d--:C==="("?f++:C===")"&&f--}const m=c.length===0?l:l.slice(p);let x=m,k=!1;m.endsWith(Xa)?(x=m.slice(0,-1),k=!0):m.startsWith(Xa)&&(x=m.slice(1),k=!0);const E=g&&g>p?g-p:void 0;return Yd(c,k,x,E)};if(r){const l=r+Gd,c=s;s=d=>d.startsWith(l)?c(d.slice(l.length)):Yd($w,!1,d,void 0,!0)}if(i){const l=s;s=c=>i({className:c,parseClassName:l})}return s},Hw=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((i,s)=>{r.set(i,1e6+s)}),i=>{const s=[];let l=[];for(let c=0;c<i.length;c++){const d=i[c],f=d[0]==="[",p=r.has(d);f||p?(l.length>0&&(l.sort(),s.push(...l),l=[]),s.push(d)):l.push(d)}return l.length>0&&(l.sort(),s.push(...l)),s}},Vw=n=>({cache:Bw(n.cacheSize),parseClassName:Uw(n),sortModifiers:Hw(n),...Iw(n)}),Ww=/\s+/,qw=(n,r)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:c}=r,d=[],f=n.trim().split(Ww);let p="";for(let g=f.length-1;g>=0;g-=1){const w=f[g],{isExternal:m,modifiers:x,hasImportantModifier:k,baseClassName:E,maybePostfixModifierPosition:S}=i(w);if(m){p=w+(p.length>0?" "+p:p);continue}let C=!!S,N=s(C?E.substring(0,S):E);if(!N){if(!C){p=w+(p.length>0?" "+p:p);continue}if(N=s(E),!N){p=w+(p.length>0?" "+p:p);continue}C=!1}const R=x.length===0?"":x.length===1?x[0]:c(x).join(":"),P=k?R+Xa:R,M=P+N;if(d.indexOf(M)>-1)continue;d.push(M);const W=l(N,C);for(let z=0;z<W.length;++z){const D=W[z];d.push(P+D)}p=w+(p.length>0?" "+p:p)}return p},Gw=(...n)=>{let r=0,i,s,l="";for(;r<n.length;)(i=n[r++])&&(s=Kd(i))&&(l&&(l+=" "),l+=s);return l},Kd=n=>{if(typeof n=="string")return n;let r,i="";for(let s=0;s<n.length;s++)n[s]&&(r=Kd(n[s]))&&(i&&(i+=" "),i+=r);return i},Yw=(n,...r)=>{let i,s,l,c;const d=p=>{const g=r.reduce((w,m)=>m(w),n());return i=Vw(g),s=i.cache.get,l=i.cache.set,c=f,f(p)},f=p=>{const g=s(p);if(g)return g;const w=qw(p,i);return l(p,w),w};return c=d,(...p)=>c(Gw(...p))},Kw=[],Qe=n=>{const r=i=>i[n]||Kw;return r.isThemeGetter=!0,r},Xd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zw=/\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$/,Jw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ln=n=>Xw.test(n),Pe=n=>!!n&&!Number.isNaN(Number(n)),zn=n=>!!n&&Number.isInteger(Number(n)),Qa=n=>n.endsWith("%")&&Pe(n.slice(0,-1)),yn=n=>Qw.test(n),Zd=()=>!0,nx=n=>Zw.test(n)&&!Jw.test(n),Za=()=>!1,rx=n=>ex.test(n),ox=n=>tx.test(n),ix=n=>!he(n)&&!ge(n),sx=n=>On(n,of,Za),he=n=>Xd.test(n),xr=n=>On(n,sf,nx),Jd=n=>On(n,hx,Pe),ax=n=>On(n,lf,Zd),lx=n=>On(n,af,Za),ef=n=>On(n,nf,Za),cx=n=>On(n,rf,ox),$i=n=>On(n,cf,rx),ge=n=>Qd.test(n),Do=n=>br(n,sf),ux=n=>br(n,af),tf=n=>br(n,nf),dx=n=>br(n,of),fx=n=>br(n,rf),Ui=n=>br(n,cf,!0),px=n=>br(n,lf,!0),On=(n,r,i)=>{const s=Xd.exec(n);return s?s[1]?r(s[1]):i(s[2]):!1},br=(n,r,i=!1)=>{const s=Qd.exec(n);return s?s[1]?r(s[1]):i:!1},nf=n=>n==="position"||n==="percentage",rf=n=>n==="image"||n==="url",of=n=>n==="length"||n==="size"||n==="bg-size",sf=n=>n==="length",hx=n=>n==="number",af=n=>n==="family-name",lf=n=>n==="number"||n==="weight",cf=n=>n==="shadow",mx=Yw(()=>{const n=Qe("color"),r=Qe("font"),i=Qe("text"),s=Qe("font-weight"),l=Qe("tracking"),c=Qe("leading"),d=Qe("breakpoint"),f=Qe("container"),p=Qe("spacing"),g=Qe("radius"),w=Qe("shadow"),m=Qe("inset-shadow"),x=Qe("text-shadow"),k=Qe("drop-shadow"),E=Qe("blur"),S=Qe("perspective"),C=Qe("aspect"),N=Qe("ease"),R=Qe("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...M(),ge,he],z=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],j=()=>[ge,he,p],q=()=>[Ln,"full","auto",...j()],Z=()=>[zn,"none","subgrid",ge,he],U=()=>["auto",{span:["full",zn,ge,he]},zn,ge,he],K=()=>[zn,"auto",ge,he],X=()=>["auto","min","max","fr",ge,he],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...j()],ne=()=>[Ln,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],G=()=>[Ln,"screen","full","dvw","lvw","svw","min","max","fit",...j()],F=()=>[Ln,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],I=()=>[n,ge,he],_=()=>[...M(),tf,ef,{position:[ge,he]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",dx,sx,{size:[ge,he]}],J=()=>[Qa,Do,xr],ee=()=>["","none","full",g,ge,he],ce=()=>["",Pe,Do,xr],ie=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[Pe,Qa,tf,ef],ye=()=>["","none",E,ge,he],_e=()=>["none",Pe,ge,he],Re=()=>["none",Pe,ge,he],Fe=()=>[Pe,ge,he],$e=()=>[Ln,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yn],breakpoint:[yn],color:[Zd],container:[yn],"drop-shadow":[yn],ease:["in","out","in-out"],font:[ix],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yn],shadow:[yn],spacing:["px",Pe],text:[yn],"text-shadow":[yn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ln,he,ge,C]}],container:["container"],columns:[{columns:[Pe,he,ge,f]}],"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:W()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{"inset-s":q(),start:q()}],end:[{"inset-e":q(),end:q()}],"inset-bs":[{"inset-bs":q()}],"inset-be":[{"inset-be":q()}],top:[{top:q()}],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[zn,"auto",ge,he]}],basis:[{basis:[Ln,"full","auto",f,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,Ln,"auto","initial","none",he]}],grow:[{grow:["",Pe,ge,he]}],shrink:[{shrink:["",Pe,ge,he]}],order:[{order:[zn,"first","last","none",ge,he]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mbs:[{mbs:Q()}],mbe:[{mbe:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...F()]}],"min-block-size":[{"min-block":["auto",...F()]}],"max-block-size":[{"max-block":["none",...F()]}],w:[{w:[f,"screen",...ne()]}],"min-w":[{"min-w":[f,"screen","none",...ne()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[d]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",i,Do,xr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,px,ax]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qa,he]}],"font-family":[{font:[ux,lx,r]}],"font-features":[{"font-features":[he]}],"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,ge,he]}],"line-clamp":[{"line-clamp":[Pe,"none",ge,Jd]}],leading:[{leading:[c,...j()]}],"list-image":[{"list-image":["none",ge,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",ge,xr]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Pe,"auto",ge,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,he]}],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",ge,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zn,ge,he],radial:["",ge,he],conic:[zn,ge,he]},fx,cx]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-bs":[{"border-bs":ce()}],"border-w-be":[{"border-be":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,ge,he]}],"outline-w":[{outline:["",Pe,Do,xr]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",w,Ui,$i]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",m,Ui,$i]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Pe,xr]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",x,Ui,$i]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Pe,ge,he]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"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":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ge,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,he]}],filter:[{filter:["","none",ge,he]}],blur:[{blur:ye()}],brightness:[{brightness:[Pe,ge,he]}],contrast:[{contrast:[Pe,ge,he]}],"drop-shadow":[{"drop-shadow":["","none",k,Ui,$i]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Pe,ge,he]}],"hue-rotate":[{"hue-rotate":[Pe,ge,he]}],invert:[{invert:["",Pe,ge,he]}],saturate:[{saturate:[Pe,ge,he]}],sepia:[{sepia:["",Pe,ge,he]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,he]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,ge,he]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,ge,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,ge,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,ge,he]}],"backdrop-invert":[{"backdrop-invert":["",Pe,ge,he]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,ge,he]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,ge,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,ge,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",ge,he]}],ease:[{ease:["linear","initial",N,ge,he]}],delay:[{delay:[Pe,ge,he]}],animate:[{animate:["none",R,ge,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ge,he]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],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:[ge,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",ge,he]}],"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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",ge,he]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Pe,Do,xr,Jd]}],stroke:[{stroke:["none",...I()]}],"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"]}}),we=(...n)=>mx(Ud(n));function Fo({className:n,...r}){return y.jsx("div",{"data-slot":"card",className:we("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",n),...r})}function gx({className:n,...r}){return y.jsx("div",{"data-slot":"card-header",className:we("@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),...r})}function Bo({className:n,...r}){return y.jsx("div",{"data-slot":"card-content",className:we("px-6",n),...r})}const uf=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,df=Ud,Hi=(n,r)=>i=>{var s;if((r==null?void 0:r.variants)==null)return df(n,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:l,defaultVariants:c}=r,d=Object.keys(l).map(g=>{const w=i==null?void 0:i[g],m=c==null?void 0:c[g];if(w===null)return null;const x=uf(w)||uf(m);return l[g][x]}),f=i&&Object.entries(i).reduce((g,w)=>{let[m,x]=w;return x===void 0||(g[m]=x),g},{}),p=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((g,w)=>{let{class:m,className:x,...k}=w;return Object.entries(k).every(E=>{let[S,C]=E;return Array.isArray(C)?C.includes({...c,...f}[S]):{...c,...f}[S]===C})?[...g,m,x]:g},[]);return df(n,d,p,i==null?void 0:i.class,i==null?void 0:i.className)};function ff(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function pf(...n){return r=>{let i=!1;const s=n.map(l=>{const c=ff(l,r);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let l=0;l<s.length;l++){const c=s[l];typeof c=="function"?c():ff(n[l],null)}}}}function Ae(...n){return v.useCallback(pf(...n),n)}function $o(n){const r=vx(n),i=v.forwardRef((s,l)=>{const{children:c,...d}=s,f=v.Children.toArray(c),p=f.find(wx);if(p){const g=p.props.children,w=f.map(m=>m===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:m);return y.jsx(r,{...d,ref:l,children:v.isValidElement(g)?v.cloneElement(g,void 0,w):null})}return y.jsx(r,{...d,ref:l,children:c})});return i.displayName=`${n}.Slot`,i}var hf=$o("Slot");function vx(n){const r=v.forwardRef((i,s)=>{const{children:l,...c}=i;if(v.isValidElement(l)){const d=bx(l),f=xx(c,l.props);return l.type!==v.Fragment&&(f.ref=s?pf(s,d):d),v.cloneElement(l,f)}return v.Children.count(l)>1?v.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var mf=Symbol("radix.slottable");function yx(n){const r=({children:i})=>y.jsx(y.Fragment,{children:i});return r.displayName=`${n}.Slottable`,r.__radixId=mf,r}function wx(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===mf}function xx(n,r){const i={...r};for(const s in r){const l=n[s],c=r[s];/^on[A-Z]/.test(s)?l&&c?i[s]=(...f)=>{const p=c(...f);return l(...f),p}:l&&(i[s]=l):s==="style"?i[s]={...l,...c}:s==="className"&&(i[s]=[l,c].filter(Boolean).join(" "))}return{...n,...i}}function bx(n){var s,l;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(l=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:l.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var kx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],be=kx.reduce((n,r)=>{const i=$o(`Primitive.${r}`),s=v.forwardRef((l,c)=>{const{asChild:d,...f}=l,p=d?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(p,{...f,ref:c})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function Sx(n,r){n&&Oo.flushSync(()=>n.dispatchEvent(r))}var gf=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"}),Cx="VisuallyHidden",vf=v.forwardRef((n,r)=>y.jsx(be.span,{...n,ref:r,style:{...gf,...n.style}}));vf.displayName=Cx;var Ex=vf;function bt(n,r=[]){let i=[];function s(c,d){const f=v.createContext(d),p=i.length;i=[...i,d];const g=m=>{var N;const{scope:x,children:k,...E}=m,S=((N=x==null?void 0:x[n])==null?void 0:N[p])||f,C=v.useMemo(()=>E,Object.values(E));return y.jsx(S.Provider,{value:C,children:k})};g.displayName=c+"Provider";function w(m,x){var S;const k=((S=x==null?void 0:x[n])==null?void 0:S[p])||f,E=v.useContext(k);if(E)return E;if(d!==void 0)return d;throw new Error(`\`${m}\` must be used within \`${c}\``)}return[g,w]}const l=()=>{const c=i.map(d=>v.createContext(d));return function(f){const p=(f==null?void 0:f[n])||c;return v.useMemo(()=>({[`__scope${n}`]:{...f,[n]:p}}),[f,p])}};return l.scopeName=n,[s,Nx(l,...r)]}function Nx(...n){const r=n[0];if(n.length===1)return r;const i=()=>{const s=n.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(c){const d=s.reduce((f,{useScope:p,scopeName:g})=>{const m=p(c)[`__scope${g}`];return{...f,...m}},{});return v.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return i.scopeName=r.scopeName,i}function yf(n){const r=n+"CollectionProvider",[i,s]=bt(r),[l,c]=i(r,{collectionRef:{current:null},itemMap:new Map}),d=S=>{const{scope:C,children:N}=S,R=ae.useRef(null),P=ae.useRef(new Map).current;return y.jsx(l,{scope:C,itemMap:P,collectionRef:R,children:N})};d.displayName=r;const f=n+"CollectionSlot",p=$o(f),g=ae.forwardRef((S,C)=>{const{scope:N,children:R}=S,P=c(f,N),M=Ae(C,P.collectionRef);return y.jsx(p,{ref:M,children:R})});g.displayName=f;const w=n+"CollectionItemSlot",m="data-radix-collection-item",x=$o(w),k=ae.forwardRef((S,C)=>{const{scope:N,children:R,...P}=S,M=ae.useRef(null),W=Ae(C,M),z=c(w,N);return ae.useEffect(()=>(z.itemMap.set(M,{ref:M,...P}),()=>void z.itemMap.delete(M))),y.jsx(x,{[m]:"",ref:W,children:R})});k.displayName=w;function E(S){const C=c(n+"CollectionConsumer",S);return ae.useCallback(()=>{const R=C.collectionRef.current;if(!R)return[];const P=Array.from(R.querySelectorAll(`[${m}]`));return Array.from(C.itemMap.values()).sort((z,D)=>P.indexOf(z.ref.current)-P.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:d,Slot:g,ItemSlot:k},E,s]}function Ce(n,r,{checkForDefaultPrevented:i=!0}={}){return function(l){if(n==null||n(l),i===!1||!l.defaultPrevented)return r==null?void 0:r(l)}}var We=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},_x=wd[" useInsertionEffect ".trim().toString()]||We;function wn({prop:n,defaultProp:r,onChange:i=()=>{},caller:s}){const[l,c,d]=Rx({defaultProp:r,onChange:i}),f=n!==void 0,p=f?n:l;{const w=v.useRef(n!==void 0);v.useEffect(()=>{const m=w.current;m!==f&&console.warn(`${s} is changing from ${m?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),w.current=f},[f,s])}const g=v.useCallback(w=>{var m;if(f){const x=Tx(w)?w(n):w;x!==n&&((m=d.current)==null||m.call(d,x))}else c(w)},[f,n,c,d]);return[p,g]}function Rx({defaultProp:n,onChange:r}){const[i,s]=v.useState(n),l=v.useRef(i),c=v.useRef(r);return _x(()=>{c.current=r},[r]),v.useEffect(()=>{var d;l.current!==i&&((d=c.current)==null||d.call(c,i),l.current=i)},[i,l]),[i,s,c]}function Tx(n){return typeof n=="function"}function Px(n,r){return v.useReducer((i,s)=>r[i][s]??i,n)}var Wt=n=>{const{present:r,children:i}=n,s=Ix(r),l=typeof i=="function"?i({present:s.isPresent}):v.Children.only(i),c=Ae(s.ref,Ax(l));return typeof i=="function"||s.isPresent?v.cloneElement(l,{ref:c}):null};Wt.displayName="Presence";function Ix(n){const[r,i]=v.useState(),s=v.useRef(null),l=v.useRef(n),c=v.useRef("none"),d=n?"mounted":"unmounted",[f,p]=Px(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=Vi(s.current);c.current=f==="mounted"?g:"none"},[f]),We(()=>{const g=s.current,w=l.current;if(w!==n){const x=c.current,k=Vi(g);n?p("MOUNT"):k==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(w&&x!==k?"ANIMATION_OUT":"UNMOUNT"),l.current=n}},[n,p]),We(()=>{if(r){let g;const w=r.ownerDocument.defaultView??window,m=k=>{const S=Vi(s.current).includes(CSS.escape(k.animationName));if(k.target===r&&S&&(p("ANIMATION_END"),!l.current)){const C=r.style.animationFillMode;r.style.animationFillMode="forwards",g=w.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=C)})}},x=k=>{k.target===r&&(c.current=Vi(s.current))};return r.addEventListener("animationstart",x),r.addEventListener("animationcancel",m),r.addEventListener("animationend",m),()=>{w.clearTimeout(g),r.removeEventListener("animationstart",x),r.removeEventListener("animationcancel",m),r.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:v.useCallback(g=>{s.current=g?getComputedStyle(g):null,i(g)},[])}}function Vi(n){return(n==null?void 0:n.animationName)||"none"}function Ax(n){var s,l;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(l=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:l.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var Mx=wd[" useId ".trim().toString()]||(()=>{}),jx=0;function kr(n){const[r,i]=v.useState(Mx());return We(()=>{i(s=>s??String(jx++))},[n]),n||(r?`radix-${r}`:"")}var Wi="Collapsible",[Lx]=bt(Wi),[zx,Ja]=Lx(Wi),wf=v.forwardRef((n,r)=>{const{__scopeCollapsible:i,open:s,defaultOpen:l,disabled:c,onOpenChange:d,...f}=n,[p,g]=wn({prop:s,defaultProp:l??!1,onChange:d,caller:Wi});return y.jsx(zx,{scope:i,disabled:c,contentId:kr(),open:p,onOpenToggle:v.useCallback(()=>g(w=>!w),[g]),children:y.jsx(be.div,{"data-state":tl(p),"data-disabled":c?"":void 0,...f,ref:r})})});wf.displayName=Wi;var xf="CollapsibleTrigger",bf=v.forwardRef((n,r)=>{const{__scopeCollapsible:i,...s}=n,l=Ja(xf,i);return y.jsx(be.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":tl(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...s,ref:r,onClick:Ce(n.onClick,l.onOpenToggle)})});bf.displayName=xf;var el="CollapsibleContent",kf=v.forwardRef((n,r)=>{const{forceMount:i,...s}=n,l=Ja(el,n.__scopeCollapsible);return y.jsx(Wt,{present:i||l.open,children:({present:c})=>y.jsx(Ox,{...s,ref:r,present:c})})});kf.displayName=el;var Ox=v.forwardRef((n,r)=>{const{__scopeCollapsible:i,present:s,children:l,...c}=n,d=Ja(el,i),[f,p]=v.useState(s),g=v.useRef(null),w=Ae(r,g),m=v.useRef(0),x=m.current,k=v.useRef(0),E=k.current,S=d.open||f,C=v.useRef(S),N=v.useRef(void 0);return v.useEffect(()=>{const R=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(R)},[]),We(()=>{const R=g.current;if(R){N.current=N.current||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const P=R.getBoundingClientRect();m.current=P.height,k.current=P.width,C.current||(R.style.transitionDuration=N.current.transitionDuration,R.style.animationName=N.current.animationName),p(s)}},[d.open,s]),y.jsx(be.div,{"data-state":tl(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!S,...c,ref:w,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:S&&l})});function tl(n){return n?"open":"closed"}var Dx=wf,Fx=v.createContext(void 0);function Uo(n){const r=v.useContext(Fx);return n||r||"ltr"}function ut(n){const r=v.useRef(n);return v.useEffect(()=>{r.current=n}),v.useMemo(()=>(...i)=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)},[])}function Bx(n,r=globalThis==null?void 0:globalThis.document){const i=ut(n);v.useEffect(()=>{const s=l=>{l.key==="Escape"&&i(l)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[i,r])}var $x="DismissableLayer",nl="dismissableLayer.update",Ux="dismissableLayer.pointerDownOutside",Hx="dismissableLayer.focusOutside",Sf,Cf=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rl=v.forwardRef((n,r)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...p}=n,g=v.useContext(Cf),[w,m]=v.useState(null),x=(w==null?void 0:w.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,k]=v.useState({}),E=Ae(r,D=>m(D)),S=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),N=S.indexOf(C),R=w?S.indexOf(w):-1,P=g.layersWithOutsidePointerEventsDisabled.size>0,M=R>=N,W=qx(D=>{const j=D.target,q=[...g.branches].some(Z=>Z.contains(j));!M||q||(l==null||l(D),d==null||d(D),D.defaultPrevented||f==null||f())},x),z=Gx(D=>{const j=D.target;[...g.branches].some(Z=>Z.contains(j))||(c==null||c(D),d==null||d(D),D.defaultPrevented||f==null||f())},x);return Bx(D=>{R===g.layers.size-1&&(s==null||s(D),!D.defaultPrevented&&f&&(D.preventDefault(),f()))},x),v.useEffect(()=>{if(w)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Sf=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(w)),g.layers.add(w),Ef(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Sf)}},[w,x,i,g]),v.useEffect(()=>()=>{w&&(g.layers.delete(w),g.layersWithOutsidePointerEventsDisabled.delete(w),Ef())},[w,g]),v.useEffect(()=>{const D=()=>k({});return document.addEventListener(nl,D),()=>document.removeEventListener(nl,D)},[]),y.jsx(be.div,{...p,ref:E,style:{pointerEvents:P?M?"auto":"none":void 0,...n.style},onFocusCapture:Ce(n.onFocusCapture,z.onFocusCapture),onBlurCapture:Ce(n.onBlurCapture,z.onBlurCapture),onPointerDownCapture:Ce(n.onPointerDownCapture,W.onPointerDownCapture)})});rl.displayName=$x;var Vx="DismissableLayerBranch",Wx=v.forwardRef((n,r)=>{const i=v.useContext(Cf),s=v.useRef(null),l=Ae(r,s);return v.useEffect(()=>{const c=s.current;if(c)return i.branches.add(c),()=>{i.branches.delete(c)}},[i.branches]),y.jsx(be.div,{...n,ref:l})});Wx.displayName=Vx;function qx(n,r=globalThis==null?void 0:globalThis.document){const i=ut(n),s=v.useRef(!1),l=v.useRef(()=>{});return v.useEffect(()=>{const c=f=>{if(f.target&&!s.current){let p=function(){Nf(Ux,i,g,{discrete:!0})};const g={originalEvent:f};f.pointerType==="touch"?(r.removeEventListener("click",l.current),l.current=p,r.addEventListener("click",l.current,{once:!0})):p()}else r.removeEventListener("click",l.current);s.current=!1},d=window.setTimeout(()=>{r.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(d),r.removeEventListener("pointerdown",c),r.removeEventListener("click",l.current)}},[r,i]),{onPointerDownCapture:()=>s.current=!0}}function Gx(n,r=globalThis==null?void 0:globalThis.document){const i=ut(n),s=v.useRef(!1);return v.useEffect(()=>{const l=c=>{c.target&&!s.current&&Nf(Hx,i,{originalEvent:c},{discrete:!1})};return r.addEventListener("focusin",l),()=>r.removeEventListener("focusin",l)},[r,i]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Ef(){const n=new CustomEvent(nl);document.dispatchEvent(n)}function Nf(n,r,i,{discrete:s}){const l=i.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});r&&l.addEventListener(n,r,{once:!0}),s?Sx(l,c):l.dispatchEvent(c)}var ol="focusScope.autoFocusOnMount",il="focusScope.autoFocusOnUnmount",_f={bubbles:!1,cancelable:!0},Yx="FocusScope",Rf=v.forwardRef((n,r)=>{const{loop:i=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:c,...d}=n,[f,p]=v.useState(null),g=ut(l),w=ut(c),m=v.useRef(null),x=Ae(r,S=>p(S)),k=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(s){let S=function(P){if(k.paused||!f)return;const M=P.target;f.contains(M)?m.current=M:Dn(m.current,{select:!0})},C=function(P){if(k.paused||!f)return;const M=P.relatedTarget;M!==null&&(f.contains(M)||Dn(m.current,{select:!0}))},N=function(P){if(document.activeElement===document.body)for(const W of P)W.removedNodes.length>0&&Dn(f)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const R=new MutationObserver(N);return f&&R.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),R.disconnect()}}},[s,f,k.paused]),v.useEffect(()=>{if(f){If.add(k);const S=document.activeElement;if(!f.contains(S)){const N=new CustomEvent(ol,_f);f.addEventListener(ol,g),f.dispatchEvent(N),N.defaultPrevented||(Kx(e1(Tf(f)),{select:!0}),document.activeElement===S&&Dn(f))}return()=>{f.removeEventListener(ol,g),setTimeout(()=>{const N=new CustomEvent(il,_f);f.addEventListener(il,w),f.dispatchEvent(N),N.defaultPrevented||Dn(S??document.body,{select:!0}),f.removeEventListener(il,w),If.remove(k)},0)}}},[f,g,w,k]);const E=v.useCallback(S=>{if(!i&&!s||k.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,N=document.activeElement;if(C&&N){const R=S.currentTarget,[P,M]=Xx(R);P&&M?!S.shiftKey&&N===M?(S.preventDefault(),i&&Dn(P,{select:!0})):S.shiftKey&&N===P&&(S.preventDefault(),i&&Dn(M,{select:!0})):N===R&&S.preventDefault()}},[i,s,k.paused]);return y.jsx(be.div,{tabIndex:-1,...d,ref:x,onKeyDown:E})});Rf.displayName=Yx;function Kx(n,{select:r=!1}={}){const i=document.activeElement;for(const s of n)if(Dn(s,{select:r}),document.activeElement!==i)return}function Xx(n){const r=Tf(n),i=Pf(r,n),s=Pf(r.reverse(),n);return[i,s]}function Tf(n){const r=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const l=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||l?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)r.push(i.currentNode);return r}function Pf(n,r){for(const i of n)if(!Qx(i,{upTo:r}))return i}function Qx(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Zx(n){return n instanceof HTMLInputElement&&"select"in n}function Dn(n,{select:r=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&Zx(n)&&r&&n.select()}}var If=Jx();function Jx(){let n=[];return{add(r){const i=n[0];r!==i&&(i==null||i.pause()),n=Af(n,r),n.unshift(r)},remove(r){var i;n=Af(n,r),(i=n[0])==null||i.resume()}}}function Af(n,r){const i=[...n],s=i.indexOf(r);return s!==-1&&i.splice(s,1),i}function e1(n){return n.filter(r=>r.tagName!=="A")}var t1="Portal",sl=v.forwardRef((n,r)=>{var f;const{container:i,...s}=n,[l,c]=v.useState(!1);We(()=>c(!0),[]);const d=i||l&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return d?Cd.createPortal(y.jsx(be.div,{...s,ref:r}),d):null});sl.displayName=t1;var al=0;function n1(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Mf()),document.body.insertAdjacentElement("beforeend",n[1]??Mf()),al++,()=>{al===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),al--}},[])}function Mf(){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 sn=function(){return sn=Object.assign||function(r){for(var i,s=1,l=arguments.length;s<l;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},sn.apply(this,arguments)};function jf(n,r){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(n);l<s.length;l++)r.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(n,s[l])&&(i[s[l]]=n[s[l]]);return i}function r1(n,r,i){if(i||arguments.length===2)for(var s=0,l=r.length,c;s<l;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return n.concat(c||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;var qi="right-scroll-bar-position",Gi="width-before-scroll-bar",o1="with-scroll-bars-hidden",i1="--removed-body-scroll-bar-size";function ll(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function s1(n,r){var i=v.useState(function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(s){var l=i.value;l!==s&&(i.value=s,i.callback(s,l))}}}})[0];return i.callback=r,i.facade}var a1=typeof window<"u"?v.useLayoutEffect:v.useEffect,Lf=new WeakMap;function l1(n,r){var i=s1(null,function(s){return n.forEach(function(l){return ll(l,s)})});return a1(function(){var s=Lf.get(i);if(s){var l=new Set(s),c=new Set(n),d=i.current;l.forEach(function(f){c.has(f)||ll(f,null)}),c.forEach(function(f){l.has(f)||ll(f,d)})}Lf.set(i,n)},[n]),i}function c1(n){return n}function u1(n,r){r===void 0&&(r=c1);var i=[],s=!1,l={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:n},useMedium:function(c){var d=r(c,s);return i.push(d),function(){i=i.filter(function(f){return f!==d})}},assignSyncMedium:function(c){for(s=!0;i.length;){var d=i;i=[],d.forEach(c)}i={push:function(f){return c(f)},filter:function(){return i}}},assignMedium:function(c){s=!0;var d=[];if(i.length){var f=i;i=[],f.forEach(c),d=i}var p=function(){var w=d;d=[],w.forEach(c)},g=function(){return Promise.resolve().then(p)};g(),i={push:function(w){d.push(w),g()},filter:function(w){return d=d.filter(w),i}}}};return l}function d1(n){n===void 0&&(n={});var r=u1(null);return r.options=sn({async:!0,ssr:!1},n),r}var zf=function(n){var r=n.sideCar,i=jf(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return v.createElement(s,sn({},i))};zf.isSideCarExport=!0;function f1(n,r){return n.useMedium(r),zf}var Of=d1(),cl=function(){},Yi=v.forwardRef(function(n,r){var i=v.useRef(null),s=v.useState({onScrollCapture:cl,onWheelCapture:cl,onTouchMoveCapture:cl}),l=s[0],c=s[1],d=n.forwardProps,f=n.children,p=n.className,g=n.removeScrollBar,w=n.enabled,m=n.shards,x=n.sideCar,k=n.noRelative,E=n.noIsolation,S=n.inert,C=n.allowPinchZoom,N=n.as,R=N===void 0?"div":N,P=n.gapMode,M=jf(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),W=x,z=l1([i,r]),D=sn(sn({},M),l);return v.createElement(v.Fragment,null,w&&v.createElement(W,{sideCar:Of,removeScrollBar:g,shards:m,noRelative:k,noIsolation:E,inert:S,setCallbacks:c,allowPinchZoom:!!C,lockRef:i,gapMode:P}),d?v.cloneElement(v.Children.only(f),sn(sn({},D),{ref:z})):v.createElement(R,sn({},D,{className:p,ref:z}),f))});Yi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Yi.classNames={fullWidth:Gi,zeroRight:qi};var p1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function h1(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=p1();return r&&n.setAttribute("nonce",r),n}function m1(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function g1(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var v1=function(){var n=0,r=null;return{add:function(i){n==0&&(r=h1())&&(m1(r,i),g1(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},y1=function(){var n=v1();return function(r,i){v.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&i])}},Df=function(){var n=y1(),r=function(i){var s=i.styles,l=i.dynamic;return n(s,l),null};return r},w1={left:0,top:0,right:0,gap:0},ul=function(n){return parseInt(n||"",10)||0},x1=function(n){var r=window.getComputedStyle(document.body),i=r[n==="padding"?"paddingLeft":"marginLeft"],s=r[n==="padding"?"paddingTop":"marginTop"],l=r[n==="padding"?"paddingRight":"marginRight"];return[ul(i),ul(s),ul(l)]},b1=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return w1;var r=x1(n),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-i+r[2]-r[0])}},k1=Df(),Qr="data-scroll-locked",S1=function(n,r,i,s){var l=n.left,c=n.top,d=n.right,f=n.gap;return i===void 0&&(i="margin"),`
287
+ .`.concat(o1,` {
283
288
  overflow: hidden `).concat(s,`;
284
289
  padding-right: `).concat(f,"px ").concat(s,`;
285
290
  }
286
- body[`).concat(Xr,`] {
291
+ body[`).concat(Qr,`] {
287
292
  overflow: hidden `).concat(s,`;
288
293
  overscroll-behavior: contain;
289
294
  `).concat([r&&"position: relative ".concat(s,";"),i==="margin"&&`
@@ -312,13 +317,13 @@ Error generating stack: `+h.message+`
312
317
  margin-right: 0 `).concat(s,`;
313
318
  }
314
319
 
315
- body[`).concat(Xr,`] {
316
- `).concat(o1,": ").concat(f,`px;
320
+ body[`).concat(Qr,`] {
321
+ `).concat(i1,": ").concat(f,`px;
317
322
  }
318
- `)},Df=function(){var n=parseInt(document.body.getAttribute(Xr)||"0",10);return isFinite(n)?n:0},S1=function(){v.useEffect(function(){return document.body.setAttribute(Xr,(Df()+1).toString()),function(){var n=Df()-1;n<=0?document.body.removeAttribute(Xr):document.body.setAttribute(Xr,n.toString())}},[])},C1=function(n){var r=n.noRelative,i=n.noImportant,s=n.gapMode,l=s===void 0?"margin":s;S1();var c=v.useMemo(function(){return x1(l)},[l]);return v.createElement(b1,{styles:k1(c,!r,l,i?"":"!important")})},dl=!1;if(typeof window<"u")try{var Ki=Object.defineProperty({},"passive",{get:function(){return dl=!0,!0}});window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{dl=!1}var Qr=dl?{passive:!1}:!1,E1=function(n){return n.tagName==="TEXTAREA"},Ff=function(n,r){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!E1(n)&&i[r]==="visible")},N1=function(n){return Ff(n,"overflowY")},_1=function(n){return Ff(n,"overflowX")},Bf=function(n,r){var i=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var l=$f(n,s);if(l){var c=Uf(n,s),d=c[1],f=c[2];if(d>f)return!0}s=s.parentNode}while(s&&s!==i.body);return!1},R1=function(n){var r=n.scrollTop,i=n.scrollHeight,s=n.clientHeight;return[r,i,s]},T1=function(n){var r=n.scrollLeft,i=n.scrollWidth,s=n.clientWidth;return[r,i,s]},$f=function(n,r){return n==="v"?N1(r):_1(r)},Uf=function(n,r){return n==="v"?R1(r):T1(r)},P1=function(n,r){return n==="h"&&r==="rtl"?-1:1},I1=function(n,r,i,s,l){var c=P1(n,window.getComputedStyle(r).direction),d=c*s,f=i.target,p=r.contains(f),g=!1,w=d>0,m=0,x=0;do{if(!f)break;var k=Uf(n,f),E=k[0],S=k[1],C=k[2],N=S-C-c*E;(E||N)&&$f(n,f)&&(m+=N,x+=E);var R=f.parentNode;f=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!p&&f!==document.body||p&&(r.contains(f)||r===f));return(w&&Math.abs(m)<1||!w&&Math.abs(x)<1)&&(g=!0),g},Xi=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Hf=function(n){return[n.deltaX,n.deltaY]},Vf=function(n){return n&&"current"in n?n.current:n},A1=function(n,r){return n[0]===r[0]&&n[1]===r[1]},M1=function(n){return`
323
+ `)},Ff=function(){var n=parseInt(document.body.getAttribute(Qr)||"0",10);return isFinite(n)?n:0},C1=function(){v.useEffect(function(){return document.body.setAttribute(Qr,(Ff()+1).toString()),function(){var n=Ff()-1;n<=0?document.body.removeAttribute(Qr):document.body.setAttribute(Qr,n.toString())}},[])},E1=function(n){var r=n.noRelative,i=n.noImportant,s=n.gapMode,l=s===void 0?"margin":s;C1();var c=v.useMemo(function(){return b1(l)},[l]);return v.createElement(k1,{styles:S1(c,!r,l,i?"":"!important")})},dl=!1;if(typeof window<"u")try{var Ki=Object.defineProperty({},"passive",{get:function(){return dl=!0,!0}});window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{dl=!1}var Zr=dl?{passive:!1}:!1,N1=function(n){return n.tagName==="TEXTAREA"},Bf=function(n,r){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!N1(n)&&i[r]==="visible")},_1=function(n){return Bf(n,"overflowY")},R1=function(n){return Bf(n,"overflowX")},$f=function(n,r){var i=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var l=Uf(n,s);if(l){var c=Hf(n,s),d=c[1],f=c[2];if(d>f)return!0}s=s.parentNode}while(s&&s!==i.body);return!1},T1=function(n){var r=n.scrollTop,i=n.scrollHeight,s=n.clientHeight;return[r,i,s]},P1=function(n){var r=n.scrollLeft,i=n.scrollWidth,s=n.clientWidth;return[r,i,s]},Uf=function(n,r){return n==="v"?_1(r):R1(r)},Hf=function(n,r){return n==="v"?T1(r):P1(r)},I1=function(n,r){return n==="h"&&r==="rtl"?-1:1},A1=function(n,r,i,s,l){var c=I1(n,window.getComputedStyle(r).direction),d=c*s,f=i.target,p=r.contains(f),g=!1,w=d>0,m=0,x=0;do{if(!f)break;var k=Hf(n,f),E=k[0],S=k[1],C=k[2],N=S-C-c*E;(E||N)&&Uf(n,f)&&(m+=N,x+=E);var R=f.parentNode;f=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!p&&f!==document.body||p&&(r.contains(f)||r===f));return(w&&Math.abs(m)<1||!w&&Math.abs(x)<1)&&(g=!0),g},Xi=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Vf=function(n){return[n.deltaX,n.deltaY]},Wf=function(n){return n&&"current"in n?n.current:n},M1=function(n,r){return n[0]===r[0]&&n[1]===r[1]},j1=function(n){return`
319
324
  .block-interactivity-`.concat(n,` {pointer-events: none;}
320
325
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
321
- `)},j1=0,Zr=[];function L1(n){var r=v.useRef([]),i=v.useRef([0,0]),s=v.useRef(),l=v.useState(j1++)[0],c=v.useState(Of)[0],d=v.useRef(n);v.useEffect(function(){d.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(l));var S=n1([n.lockRef.current],(n.shards||[]).map(Vf),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(l))})}}},[n.inert,n.lockRef.current,n.shards]);var f=v.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!d.current.allowPinchZoom;var N=Xi(S),R=i.current,P="deltaX"in S?S.deltaX:R[0]-N[0],M="deltaY"in S?S.deltaY:R[1]-N[1],W,z=S.target,D=Math.abs(P)>Math.abs(M)?"h":"v";if("touches"in S&&D==="h"&&z.type==="range")return!1;var j=window.getSelection(),q=j&&j.anchorNode,Z=q?q===z||q.contains(z):!1;if(Z)return!1;var U=Bf(D,z);if(!U)return!0;if(U?W=D:(W=D==="v"?"h":"v",U=Bf(D,z)),!U)return!1;if(!s.current&&"changedTouches"in S&&(P||M)&&(s.current=W),!W)return!0;var K=s.current||W;return I1(K,C,S,K==="h"?P:M)},[]),p=v.useCallback(function(S){var C=S;if(!(!Zr.length||Zr[Zr.length-1]!==c)){var N="deltaY"in C?Hf(C):Xi(C),R=r.current.filter(function(W){return W.name===C.type&&(W.target===C.target||C.target===W.shadowParent)&&A1(W.delta,N)})[0];if(R&&R.should){C.cancelable&&C.preventDefault();return}if(!R){var P=(d.current.shards||[]).map(Vf).filter(Boolean).filter(function(W){return W.contains(C.target)}),M=P.length>0?f(C,P[0]):!d.current.noIsolation;M&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(S,C,N,R){var P={name:S,delta:C,target:N,should:R,shadowParent:z1(N)};r.current.push(P),setTimeout(function(){r.current=r.current.filter(function(M){return M!==P})},1)},[]),w=v.useCallback(function(S){i.current=Xi(S),s.current=void 0},[]),m=v.useCallback(function(S){g(S.type,Hf(S),S.target,f(S,n.lockRef.current))},[]),x=v.useCallback(function(S){g(S.type,Xi(S),S.target,f(S,n.lockRef.current))},[]);v.useEffect(function(){return Zr.push(c),n.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:x}),document.addEventListener("wheel",p,Qr),document.addEventListener("touchmove",p,Qr),document.addEventListener("touchstart",w,Qr),function(){Zr=Zr.filter(function(S){return S!==c}),document.removeEventListener("wheel",p,Qr),document.removeEventListener("touchmove",p,Qr),document.removeEventListener("touchstart",w,Qr)}},[]);var k=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(c,{styles:M1(l)}):null,k?v.createElement(C1,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function z1(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const O1=d1(zf,L1);var Wf=v.forwardRef(function(n,r){return v.createElement(Yi,sn({},n,{ref:r,sideCar:O1}))});Wf.classNames=Yi.classNames;var D1=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},Jr=new WeakMap,Qi=new WeakMap,Zi={},fl=0,qf=function(n){return n&&(n.host||qf(n.parentNode))},F1=function(n,r){return r.map(function(i){if(n.contains(i))return i;var s=qf(i);return s&&n.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},B1=function(n,r,i,s){var l=F1(r,Array.isArray(n)?n:[n]);Zi[i]||(Zi[i]=new WeakMap);var c=Zi[i],d=[],f=new Set,p=new Set(l),g=function(m){!m||f.has(m)||(f.add(m),g(m.parentNode))};l.forEach(g);var w=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(x){if(f.has(x))w(x);else try{var k=x.getAttribute(s),E=k!==null&&k!=="false",S=(Jr.get(x)||0)+1,C=(c.get(x)||0)+1;Jr.set(x,S),c.set(x,C),d.push(x),S===1&&E&&Qi.set(x,!0),C===1&&x.setAttribute(i,"true"),E||x.setAttribute(s,"true")}catch(N){console.error("aria-hidden: cannot operate on ",x,N)}})};return w(r),f.clear(),fl++,function(){d.forEach(function(m){var x=Jr.get(m)-1,k=c.get(m)-1;Jr.set(m,x),c.set(m,k),x||(Qi.has(m)||m.removeAttribute(s),Qi.delete(m)),k||m.removeAttribute(i)}),fl--,fl||(Jr=new WeakMap,Jr=new WeakMap,Qi=new WeakMap,Zi={})}},$1=function(n,r,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),l=D1(n);return l?(s.push.apply(s,Array.from(l.querySelectorAll("[aria-live], script"))),B1(s,l,i,"aria-hidden")):function(){return null}},pl={exports:{}},hl={};/**
326
+ `)},L1=0,Jr=[];function z1(n){var r=v.useRef([]),i=v.useRef([0,0]),s=v.useRef(),l=v.useState(L1++)[0],c=v.useState(Df)[0],d=v.useRef(n);v.useEffect(function(){d.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(l));var S=r1([n.lockRef.current],(n.shards||[]).map(Wf),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(l))})}}},[n.inert,n.lockRef.current,n.shards]);var f=v.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!d.current.allowPinchZoom;var N=Xi(S),R=i.current,P="deltaX"in S?S.deltaX:R[0]-N[0],M="deltaY"in S?S.deltaY:R[1]-N[1],W,z=S.target,D=Math.abs(P)>Math.abs(M)?"h":"v";if("touches"in S&&D==="h"&&z.type==="range")return!1;var j=window.getSelection(),q=j&&j.anchorNode,Z=q?q===z||q.contains(z):!1;if(Z)return!1;var U=$f(D,z);if(!U)return!0;if(U?W=D:(W=D==="v"?"h":"v",U=$f(D,z)),!U)return!1;if(!s.current&&"changedTouches"in S&&(P||M)&&(s.current=W),!W)return!0;var K=s.current||W;return A1(K,C,S,K==="h"?P:M)},[]),p=v.useCallback(function(S){var C=S;if(!(!Jr.length||Jr[Jr.length-1]!==c)){var N="deltaY"in C?Vf(C):Xi(C),R=r.current.filter(function(W){return W.name===C.type&&(W.target===C.target||C.target===W.shadowParent)&&M1(W.delta,N)})[0];if(R&&R.should){C.cancelable&&C.preventDefault();return}if(!R){var P=(d.current.shards||[]).map(Wf).filter(Boolean).filter(function(W){return W.contains(C.target)}),M=P.length>0?f(C,P[0]):!d.current.noIsolation;M&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(S,C,N,R){var P={name:S,delta:C,target:N,should:R,shadowParent:O1(N)};r.current.push(P),setTimeout(function(){r.current=r.current.filter(function(M){return M!==P})},1)},[]),w=v.useCallback(function(S){i.current=Xi(S),s.current=void 0},[]),m=v.useCallback(function(S){g(S.type,Vf(S),S.target,f(S,n.lockRef.current))},[]),x=v.useCallback(function(S){g(S.type,Xi(S),S.target,f(S,n.lockRef.current))},[]);v.useEffect(function(){return Jr.push(c),n.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:x}),document.addEventListener("wheel",p,Zr),document.addEventListener("touchmove",p,Zr),document.addEventListener("touchstart",w,Zr),function(){Jr=Jr.filter(function(S){return S!==c}),document.removeEventListener("wheel",p,Zr),document.removeEventListener("touchmove",p,Zr),document.removeEventListener("touchstart",w,Zr)}},[]);var k=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(c,{styles:j1(l)}):null,k?v.createElement(E1,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function O1(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const D1=f1(Of,z1);var qf=v.forwardRef(function(n,r){return v.createElement(Yi,sn({},n,{ref:r,sideCar:D1}))});qf.classNames=Yi.classNames;var F1=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},eo=new WeakMap,Qi=new WeakMap,Zi={},fl=0,Gf=function(n){return n&&(n.host||Gf(n.parentNode))},B1=function(n,r){return r.map(function(i){if(n.contains(i))return i;var s=Gf(i);return s&&n.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},$1=function(n,r,i,s){var l=B1(r,Array.isArray(n)?n:[n]);Zi[i]||(Zi[i]=new WeakMap);var c=Zi[i],d=[],f=new Set,p=new Set(l),g=function(m){!m||f.has(m)||(f.add(m),g(m.parentNode))};l.forEach(g);var w=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(x){if(f.has(x))w(x);else try{var k=x.getAttribute(s),E=k!==null&&k!=="false",S=(eo.get(x)||0)+1,C=(c.get(x)||0)+1;eo.set(x,S),c.set(x,C),d.push(x),S===1&&E&&Qi.set(x,!0),C===1&&x.setAttribute(i,"true"),E||x.setAttribute(s,"true")}catch(N){console.error("aria-hidden: cannot operate on ",x,N)}})};return w(r),f.clear(),fl++,function(){d.forEach(function(m){var x=eo.get(m)-1,k=c.get(m)-1;eo.set(m,x),c.set(m,k),x||(Qi.has(m)||m.removeAttribute(s),Qi.delete(m)),k||m.removeAttribute(i)}),fl--,fl||(eo=new WeakMap,eo=new WeakMap,Qi=new WeakMap,Zi={})}},U1=function(n,r,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),l=F1(n);return l?(s.push.apply(s,Array.from(l.querySelectorAll("[aria-live], script"))),$1(s,l,i,"aria-hidden")):function(){return null}},pl={exports:{}},hl={};/**
322
327
  * @license React
323
328
  * use-sync-external-store-shim.production.js
324
329
  *
@@ -326,23 +331,23 @@ Error generating stack: `+h.message+`
326
331
  *
327
332
  * This source code is licensed under the MIT license found in the
328
333
  * LICENSE file in the root directory of this source tree.
329
- */var Gf;function U1(){if(Gf)return hl;Gf=1;var n=Li();function r(m,x){return m===x&&(m!==0||1/m===1/x)||m!==m&&x!==x}var i=typeof Object.is=="function"?Object.is:r,s=n.useState,l=n.useEffect,c=n.useLayoutEffect,d=n.useDebugValue;function f(m,x){var k=x(),E=s({inst:{value:k,getSnapshot:x}}),S=E[0].inst,C=E[1];return c(function(){S.value=k,S.getSnapshot=x,p(S)&&C({inst:S})},[m,k,x]),l(function(){return p(S)&&C({inst:S}),m(function(){p(S)&&C({inst:S})})},[m]),d(k),k}function p(m){var x=m.getSnapshot;m=m.value;try{var k=x();return!i(m,k)}catch{return!0}}function g(m,x){return x()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:f;return hl.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:w,hl}var Yf;function H1(){return Yf||(Yf=1,pl.exports=U1()),pl.exports}var V1=H1();function W1(){return V1.useSyncExternalStore(q1,()=>!0,()=>!1)}function q1(){return()=>{}}var ml="Avatar",[G1]=bt(ml),[Y1,Kf]=G1(ml),Xf=v.forwardRef((n,r)=>{const{__scopeAvatar:i,...s}=n,[l,c]=v.useState("idle");return y.jsx(Y1,{scope:i,imageLoadingStatus:l,onImageLoadingStatusChange:c,children:y.jsx(be.span,{...s,ref:r})})});Xf.displayName=ml;var Qf="AvatarImage",Zf=v.forwardRef((n,r)=>{const{__scopeAvatar:i,src:s,onLoadingStatusChange:l=()=>{},...c}=n,d=Kf(Qf,i),f=K1(s,c),p=ut(g=>{l(g),d.onImageLoadingStatusChange(g)});return We(()=>{f!=="idle"&&p(f)},[f,p]),f==="loaded"?y.jsx(be.img,{...c,ref:r,src:s}):null});Zf.displayName=Qf;var Jf="AvatarFallback",ep=v.forwardRef((n,r)=>{const{__scopeAvatar:i,delayMs:s,...l}=n,c=Kf(Jf,i),[d,f]=v.useState(s===void 0);return v.useEffect(()=>{if(s!==void 0){const p=window.setTimeout(()=>f(!0),s);return()=>window.clearTimeout(p)}},[s]),d&&c.imageLoadingStatus!=="loaded"?y.jsx(be.span,{...l,ref:r}):null});ep.displayName=Jf;function tp(n,r){return n?r?(n.src!==r&&(n.src=r),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function K1(n,{referrerPolicy:r,crossOrigin:i}){const s=W1(),l=v.useRef(null),c=s?(l.current||(l.current=new window.Image),l.current):null,[d,f]=v.useState(()=>tp(c,n));return We(()=>{f(tp(c,n))},[c,n]),We(()=>{const p=m=>()=>{f(m)};if(!c)return;const g=p("loaded"),w=p("error");return c.addEventListener("load",g),c.addEventListener("error",w),r&&(c.referrerPolicy=r),typeof i=="string"&&(c.crossOrigin=i),()=>{c.removeEventListener("load",g),c.removeEventListener("error",w)}},[c,i,r]),d}var X1=Xf,Q1=Zf,Z1=ep;function Ji(n){const r=v.useRef({value:n,previous:n});return v.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}function es(n){const[r,i]=v.useState(void 0);return We(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const c=l[0];let d,f;if("borderBoxSize"in c){const p=c.borderBoxSize,g=Array.isArray(p)?p[0]:p;d=g.inlineSize,f=g.blockSize}else d=n.offsetWidth,f=n.offsetHeight;i({width:d,height:f})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else i(void 0)},[n]),r}var ts="Checkbox",[J1]=bt(ts),[eb,gl]=J1(ts);function tb(n){const{__scopeCheckbox:r,checked:i,children:s,defaultChecked:l,disabled:c,form:d,name:f,onCheckedChange:p,required:g,value:w="on",internal_do_not_use_render:m}=n,[x,k]=wn({prop:i,defaultProp:l??!1,onChange:p,caller:ts}),[E,S]=v.useState(null),[C,N]=v.useState(null),R=v.useRef(!1),P=E?!!d||!!E.closest("form"):!0,M={checked:x,disabled:c,setChecked:k,control:E,setControl:S,name:f,form:d,value:w,hasConsumerStoppedPropagationRef:R,required:g,defaultChecked:Dn(l)?!1:l,isFormControl:P,bubbleInput:C,setBubbleInput:N};return y.jsx(eb,{scope:r,...M,children:nb(m)?m(M):s})}var np="CheckboxTrigger",rp=v.forwardRef(({__scopeCheckbox:n,onKeyDown:r,onClick:i,...s},l)=>{const{control:c,value:d,disabled:f,checked:p,required:g,setControl:w,setChecked:m,hasConsumerStoppedPropagationRef:x,isFormControl:k,bubbleInput:E}=gl(np,n),S=Ae(l,w),C=v.useRef(p);return v.useEffect(()=>{const N=c==null?void 0:c.form;if(N){const R=()=>m(C.current);return N.addEventListener("reset",R),()=>N.removeEventListener("reset",R)}},[c,m]),y.jsx(be.button,{type:"button",role:"checkbox","aria-checked":Dn(p)?"mixed":p,"aria-required":g,"data-state":cp(p),"data-disabled":f?"":void 0,disabled:f,value:d,...s,ref:S,onKeyDown:Ce(r,N=>{N.key==="Enter"&&N.preventDefault()}),onClick:Ce(i,N=>{m(R=>Dn(R)?!0:!R),E&&k&&(x.current=N.isPropagationStopped(),x.current||N.stopPropagation())})})});rp.displayName=np;var op=v.forwardRef((n,r)=>{const{__scopeCheckbox:i,name:s,checked:l,defaultChecked:c,required:d,disabled:f,value:p,onCheckedChange:g,form:w,...m}=n;return y.jsx(tb,{__scopeCheckbox:i,checked:l,defaultChecked:c,disabled:f,required:d,onCheckedChange:g,name:s,form:w,value:p,internal_do_not_use_render:({isFormControl:x})=>y.jsxs(y.Fragment,{children:[y.jsx(rp,{...m,ref:r,__scopeCheckbox:i}),x&&y.jsx(lp,{__scopeCheckbox:i})]})})});op.displayName=ts;var ip="CheckboxIndicator",sp=v.forwardRef((n,r)=>{const{__scopeCheckbox:i,forceMount:s,...l}=n,c=gl(ip,i);return y.jsx(Wt,{present:s||Dn(c.checked)||c.checked===!0,children:y.jsx(be.span,{"data-state":cp(c.checked),"data-disabled":c.disabled?"":void 0,...l,ref:r,style:{pointerEvents:"none",...n.style}})})});sp.displayName=ip;var ap="CheckboxBubbleInput",lp=v.forwardRef(({__scopeCheckbox:n,...r},i)=>{const{control:s,hasConsumerStoppedPropagationRef:l,checked:c,defaultChecked:d,required:f,disabled:p,name:g,value:w,form:m,bubbleInput:x,setBubbleInput:k}=gl(ap,n),E=Ae(i,k),S=Ji(c),C=es(s);v.useEffect(()=>{const R=x;if(!R)return;const P=window.HTMLInputElement.prototype,W=Object.getOwnPropertyDescriptor(P,"checked").set,z=!l.current;if(S!==c&&W){const D=new Event("click",{bubbles:z});R.indeterminate=Dn(c),W.call(R,Dn(c)?!1:c),R.dispatchEvent(D)}},[x,S,c,l]);const N=v.useRef(Dn(c)?!1:c);return y.jsx(be.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??N.current,required:f,disabled:p,name:g,value:w,form:m,...r,tabIndex:-1,ref:E,style:{...r.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});lp.displayName=ap;function nb(n){return typeof n=="function"}function Dn(n){return n==="indeterminate"}function cp(n){return Dn(n)?"indeterminate":n?"checked":"unchecked"}const rb=["top","right","bottom","left"],Fn=Math.min,_t=Math.max,ns=Math.round,rs=Math.floor,an=n=>({x:n,y:n}),ob={left:"right",right:"left",bottom:"top",top:"bottom"};function vl(n,r,i){return _t(n,Fn(r,i))}function xn(n,r){return typeof n=="function"?n(r):n}function bn(n){return n.split("-")[0]}function eo(n){return n.split("-")[1]}function yl(n){return n==="x"?"y":"x"}function wl(n){return n==="y"?"height":"width"}function ln(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function xl(n){return yl(ln(n))}function ib(n,r,i){i===void 0&&(i=!1);const s=eo(n),l=xl(n),c=wl(l);let d=l==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[c]>r.floating[c]&&(d=os(d)),[d,os(d)]}function sb(n){const r=os(n);return[bl(n),r,bl(r)]}function bl(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const up=["left","right"],dp=["right","left"],ab=["top","bottom"],lb=["bottom","top"];function cb(n,r,i){switch(n){case"top":case"bottom":return i?r?dp:up:r?up:dp;case"left":case"right":return r?ab:lb;default:return[]}}function ub(n,r,i,s){const l=eo(n);let c=cb(bn(n),i==="start",s);return l&&(c=c.map(d=>d+"-"+l),r&&(c=c.concat(c.map(bl)))),c}function os(n){const r=bn(n);return ob[r]+n.slice(r.length)}function db(n){return{top:0,right:0,bottom:0,left:0,...n}}function fp(n){return typeof n!="number"?db(n):{top:n,right:n,bottom:n,left:n}}function is(n){const{x:r,y:i,width:s,height:l}=n;return{width:s,height:l,top:i,left:r,right:r+s,bottom:i+l,x:r,y:i}}function pp(n,r,i){let{reference:s,floating:l}=n;const c=ln(r),d=xl(r),f=wl(d),p=bn(r),g=c==="y",w=s.x+s.width/2-l.width/2,m=s.y+s.height/2-l.height/2,x=s[f]/2-l[f]/2;let k;switch(p){case"top":k={x:w,y:s.y-l.height};break;case"bottom":k={x:w,y:s.y+s.height};break;case"right":k={x:s.x+s.width,y:m};break;case"left":k={x:s.x-l.width,y:m};break;default:k={x:s.x,y:s.y}}switch(eo(r)){case"start":k[d]-=x*(i&&g?-1:1);break;case"end":k[d]+=x*(i&&g?-1:1);break}return k}async function fb(n,r){var i;r===void 0&&(r={});const{x:s,y:l,platform:c,rects:d,elements:f,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:w="viewport",elementContext:m="floating",altBoundary:x=!1,padding:k=0}=xn(r,n),E=fp(k),C=f[x?m==="floating"?"reference":"floating":m],N=is(await c.getClippingRect({element:(i=await(c.isElement==null?void 0:c.isElement(C)))==null||i?C:C.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:g,rootBoundary:w,strategy:p})),R=m==="floating"?{x:s,y:l,width:d.floating.width,height:d.floating.height}:d.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),M=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},W=is(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:R,offsetParent:P,strategy:p}):R);return{top:(N.top-W.top+E.top)/M.y,bottom:(W.bottom-N.bottom+E.bottom)/M.y,left:(N.left-W.left+E.left)/M.x,right:(W.right-N.right+E.right)/M.x}}const pb=50,hb=async(n,r,i)=>{const{placement:s="bottom",strategy:l="absolute",middleware:c=[],platform:d}=i,f=d.detectOverflow?d:{...d,detectOverflow:fb},p=await(d.isRTL==null?void 0:d.isRTL(r));let g=await d.getElementRects({reference:n,floating:r,strategy:l}),{x:w,y:m}=pp(g,s,p),x=s,k=0;const E={};for(let S=0;S<c.length;S++){const C=c[S];if(!C)continue;const{name:N,fn:R}=C,{x:P,y:M,data:W,reset:z}=await R({x:w,y:m,initialPlacement:s,placement:x,strategy:l,middlewareData:E,rects:g,platform:f,elements:{reference:n,floating:r}});w=P??w,m=M??m,E[N]={...E[N],...W},z&&k<pb&&(k++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(g=z.rects===!0?await d.getElementRects({reference:n,floating:r,strategy:l}):z.rects),{x:w,y:m}=pp(g,x,p)),S=-1)}return{x:w,y:m,placement:x,strategy:l,middlewareData:E}},mb=n=>({name:"arrow",options:n,async fn(r){const{x:i,y:s,placement:l,rects:c,platform:d,elements:f,middlewareData:p}=r,{element:g,padding:w=0}=xn(n,r)||{};if(g==null)return{};const m=fp(w),x={x:i,y:s},k=xl(l),E=wl(k),S=await d.getDimensions(g),C=k==="y",N=C?"top":"left",R=C?"bottom":"right",P=C?"clientHeight":"clientWidth",M=c.reference[E]+c.reference[k]-x[k]-c.floating[E],W=x[k]-c.reference[k],z=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let D=z?z[P]:0;(!D||!await(d.isElement==null?void 0:d.isElement(z)))&&(D=f.floating[P]||c.floating[E]);const j=M/2-W/2,q=D/2-S[E]/2-1,Z=Fn(m[N],q),U=Fn(m[R],q),K=Z,X=D-S[E]-U,Y=D/2-S[E]/2+j,ue=vl(K,Y,X),Q=!p.arrow&&eo(l)!=null&&Y!==ue&&c.reference[E]/2-(Y<K?Z:U)-S[E]/2<0,ne=Q?Y<K?Y-K:Y-X:0;return{[k]:x[k]+ne,data:{[k]:ue,centerOffset:Y-ue-ne,...Q&&{alignmentOffset:ne}},reset:Q}}}),gb=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var i,s;const{placement:l,middlewareData:c,rects:d,initialPlacement:f,platform:p,elements:g}=r,{mainAxis:w=!0,crossAxis:m=!0,fallbackPlacements:x,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...C}=xn(n,r);if((i=c.arrow)!=null&&i.alignmentOffset)return{};const N=bn(l),R=ln(f),P=bn(f)===f,M=await(p.isRTL==null?void 0:p.isRTL(g.floating)),W=x||(P||!S?[os(f)]:sb(f)),z=E!=="none";!x&&z&&W.push(...ub(f,S,E,M));const D=[f,...W],j=await p.detectOverflow(r,C),q=[];let Z=((s=c.flip)==null?void 0:s.overflows)||[];if(w&&q.push(j[N]),m){const Y=ib(l,d,M);q.push(j[Y[0]],j[Y[1]])}if(Z=[...Z,{placement:l,overflows:q}],!q.every(Y=>Y<=0)){var U,K;const Y=(((U=c.flip)==null?void 0:U.index)||0)+1,ue=D[Y];if(ue&&(!(m==="alignment"?R!==ln(ue):!1)||Z.every(G=>ln(G.placement)===R?G.overflows[0]>0:!0)))return{data:{index:Y,overflows:Z},reset:{placement:ue}};let Q=(K=Z.filter(ne=>ne.overflows[0]<=0).sort((ne,G)=>ne.overflows[1]-G.overflows[1])[0])==null?void 0:K.placement;if(!Q)switch(k){case"bestFit":{var X;const ne=(X=Z.filter(G=>{if(z){const F=ln(G.placement);return F===R||F==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(F=>F>0).reduce((F,I)=>F+I,0)]).sort((G,F)=>G[1]-F[1])[0])==null?void 0:X[0];ne&&(Q=ne);break}case"initialPlacement":Q=f;break}if(l!==Q)return{reset:{placement:Q}}}return{}}}};function hp(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function mp(n){return rb.some(r=>n[r]>=0)}const vb=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:i,platform:s}=r,{strategy:l="referenceHidden",...c}=xn(n,r);switch(l){case"referenceHidden":{const d=await s.detectOverflow(r,{...c,elementContext:"reference"}),f=hp(d,i.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:mp(f)}}}case"escaped":{const d=await s.detectOverflow(r,{...c,altBoundary:!0}),f=hp(d,i.floating);return{data:{escapedOffsets:f,escaped:mp(f)}}}default:return{}}}}},gp=new Set(["left","top"]);async function yb(n,r){const{placement:i,platform:s,elements:l}=n,c=await(s.isRTL==null?void 0:s.isRTL(l.floating)),d=bn(i),f=eo(i),p=ln(i)==="y",g=gp.has(d)?-1:1,w=c&&p?-1:1,m=xn(r,n);let{mainAxis:x,crossAxis:k,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return f&&typeof E=="number"&&(k=f==="end"?E*-1:E),p?{x:k*w,y:x*g}:{x:x*g,y:k*w}}const wb=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var i,s;const{x:l,y:c,placement:d,middlewareData:f}=r,p=await yb(r,n);return d===((i=f.offset)==null?void 0:i.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:l+p.x,y:c+p.y,data:{...p,placement:d}}}}},xb=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:i,y:s,placement:l,platform:c}=r,{mainAxis:d=!0,crossAxis:f=!1,limiter:p={fn:N=>{let{x:R,y:P}=N;return{x:R,y:P}}},...g}=xn(n,r),w={x:i,y:s},m=await c.detectOverflow(r,g),x=ln(bn(l)),k=yl(x);let E=w[k],S=w[x];if(d){const N=k==="y"?"top":"left",R=k==="y"?"bottom":"right",P=E+m[N],M=E-m[R];E=vl(P,E,M)}if(f){const N=x==="y"?"top":"left",R=x==="y"?"bottom":"right",P=S+m[N],M=S-m[R];S=vl(P,S,M)}const C=p.fn({...r,[k]:E,[x]:S});return{...C,data:{x:C.x-i,y:C.y-s,enabled:{[k]:d,[x]:f}}}}}},bb=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:i,y:s,placement:l,rects:c,middlewareData:d}=r,{offset:f=0,mainAxis:p=!0,crossAxis:g=!0}=xn(n,r),w={x:i,y:s},m=ln(l),x=yl(m);let k=w[x],E=w[m];const S=xn(f,r),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const P=x==="y"?"height":"width",M=c.reference[x]-c.floating[P]+C.mainAxis,W=c.reference[x]+c.reference[P]-C.mainAxis;k<M?k=M:k>W&&(k=W)}if(g){var N,R;const P=x==="y"?"width":"height",M=gp.has(bn(l)),W=c.reference[m]-c.floating[P]+(M&&((N=d.offset)==null?void 0:N[m])||0)+(M?0:C.crossAxis),z=c.reference[m]+c.reference[P]+(M?0:((R=d.offset)==null?void 0:R[m])||0)-(M?C.crossAxis:0);E<W?E=W:E>z&&(E=z)}return{[x]:k,[m]:E}}}},kb=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var i,s;const{placement:l,rects:c,platform:d,elements:f}=r,{apply:p=()=>{},...g}=xn(n,r),w=await d.detectOverflow(r,g),m=bn(l),x=eo(l),k=ln(l)==="y",{width:E,height:S}=c.floating;let C,N;m==="top"||m==="bottom"?(C=m,N=x===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(N=m,C=x==="end"?"top":"bottom");const R=S-w.top-w.bottom,P=E-w.left-w.right,M=Fn(S-w[C],R),W=Fn(E-w[N],P),z=!r.middlewareData.shift;let D=M,j=W;if((i=r.middlewareData.shift)!=null&&i.enabled.x&&(j=P),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(D=R),z&&!x){const Z=_t(w.left,0),U=_t(w.right,0),K=_t(w.top,0),X=_t(w.bottom,0);k?j=E-2*(Z!==0||U!==0?Z+U:_t(w.left,w.right)):D=S-2*(K!==0||X!==0?K+X:_t(w.top,w.bottom))}await p({...r,availableWidth:j,availableHeight:D});const q=await d.getDimensions(f.floating);return E!==q.width||S!==q.height?{reset:{rects:!0}}:{}}}};function ss(){return typeof window<"u"}function to(n){return vp(n)?(n.nodeName||"").toLowerCase():"#document"}function Rt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function cn(n){var r;return(r=(vp(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function vp(n){return ss()?n instanceof Node||n instanceof Rt(n).Node:!1}function qt(n){return ss()?n instanceof Element||n instanceof Rt(n).Element:!1}function kn(n){return ss()?n instanceof HTMLElement||n instanceof Rt(n).HTMLElement:!1}function yp(n){return!ss()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Rt(n).ShadowRoot}function Ho(n){const{overflow:r,overflowX:i,overflowY:s,display:l}=Gt(n);return/auto|scroll|overlay|hidden|clip/.test(r+s+i)&&l!=="inline"&&l!=="contents"}function Sb(n){return/^(table|td|th)$/.test(to(n))}function as(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const Cb=/transform|translate|scale|rotate|perspective|filter/,Eb=/paint|layout|strict|content/,br=n=>!!n&&n!=="none";let kl;function Sl(n){const r=qt(n)?Gt(n):n;return br(r.transform)||br(r.translate)||br(r.scale)||br(r.rotate)||br(r.perspective)||!Cl()&&(br(r.backdropFilter)||br(r.filter))||Cb.test(r.willChange||"")||Eb.test(r.contain||"")}function Nb(n){let r=Bn(n);for(;kn(r)&&!no(r);){if(Sl(r))return r;if(as(r))return null;r=Bn(r)}return null}function Cl(){return kl==null&&(kl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),kl}function no(n){return/^(html|body|#document)$/.test(to(n))}function Gt(n){return Rt(n).getComputedStyle(n)}function ls(n){return qt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Bn(n){if(to(n)==="html")return n;const r=n.assignedSlot||n.parentNode||yp(n)&&n.host||cn(n);return yp(r)?r.host:r}function wp(n){const r=Bn(n);return no(r)?n.ownerDocument?n.ownerDocument.body:n.body:kn(r)&&Ho(r)?r:wp(r)}function Vo(n,r,i){var s;r===void 0&&(r=[]),i===void 0&&(i=!0);const l=wp(n),c=l===((s=n.ownerDocument)==null?void 0:s.body),d=Rt(l);if(c){const f=El(d);return r.concat(d,d.visualViewport||[],Ho(l)?l:[],f&&i?Vo(f):[])}else return r.concat(l,Vo(l,[],i))}function El(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function xp(n){const r=Gt(n);let i=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const l=kn(n),c=l?n.offsetWidth:i,d=l?n.offsetHeight:s,f=ns(i)!==c||ns(s)!==d;return f&&(i=c,s=d),{width:i,height:s,$:f}}function Nl(n){return qt(n)?n:n.contextElement}function ro(n){const r=Nl(n);if(!kn(r))return an(1);const i=r.getBoundingClientRect(),{width:s,height:l,$:c}=xp(r);let d=(c?ns(i.width):i.width)/s,f=(c?ns(i.height):i.height)/l;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}const _b=an(0);function bp(n){const r=Rt(n);return!Cl()||!r.visualViewport?_b:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Rb(n,r,i){return r===void 0&&(r=!1),!i||r&&i!==Rt(n)?!1:r}function kr(n,r,i,s){r===void 0&&(r=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),c=Nl(n);let d=an(1);r&&(s?qt(s)&&(d=ro(s)):d=ro(n));const f=Rb(c,i,s)?bp(c):an(0);let p=(l.left+f.x)/d.x,g=(l.top+f.y)/d.y,w=l.width/d.x,m=l.height/d.y;if(c){const x=Rt(c),k=s&&qt(s)?Rt(s):s;let E=x,S=El(E);for(;S&&s&&k!==E;){const C=ro(S),N=S.getBoundingClientRect(),R=Gt(S),P=N.left+(S.clientLeft+parseFloat(R.paddingLeft))*C.x,M=N.top+(S.clientTop+parseFloat(R.paddingTop))*C.y;p*=C.x,g*=C.y,w*=C.x,m*=C.y,p+=P,g+=M,E=Rt(S),S=El(E)}}return is({width:w,height:m,x:p,y:g})}function cs(n,r){const i=ls(n).scrollLeft;return r?r.left+i:kr(cn(n)).left+i}function kp(n,r){const i=n.getBoundingClientRect(),s=i.left+r.scrollLeft-cs(n,i),l=i.top+r.scrollTop;return{x:s,y:l}}function Tb(n){let{elements:r,rect:i,offsetParent:s,strategy:l}=n;const c=l==="fixed",d=cn(s),f=r?as(r.floating):!1;if(s===d||f&&c)return i;let p={scrollLeft:0,scrollTop:0},g=an(1);const w=an(0),m=kn(s);if((m||!m&&!c)&&((to(s)!=="body"||Ho(d))&&(p=ls(s)),m)){const k=kr(s);g=ro(s),w.x=k.x+s.clientLeft,w.y=k.y+s.clientTop}const x=d&&!m&&!c?kp(d,p):an(0);return{width:i.width*g.x,height:i.height*g.y,x:i.x*g.x-p.scrollLeft*g.x+w.x+x.x,y:i.y*g.y-p.scrollTop*g.y+w.y+x.y}}function Pb(n){return Array.from(n.getClientRects())}function Ib(n){const r=cn(n),i=ls(n),s=n.ownerDocument.body,l=_t(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),c=_t(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let d=-i.scrollLeft+cs(n);const f=-i.scrollTop;return Gt(s).direction==="rtl"&&(d+=_t(r.clientWidth,s.clientWidth)-l),{width:l,height:c,x:d,y:f}}const Sp=25;function Ab(n,r){const i=Rt(n),s=cn(n),l=i.visualViewport;let c=s.clientWidth,d=s.clientHeight,f=0,p=0;if(l){c=l.width,d=l.height;const w=Cl();(!w||w&&r==="fixed")&&(f=l.offsetLeft,p=l.offsetTop)}const g=cs(s);if(g<=0){const w=s.ownerDocument,m=w.body,x=getComputedStyle(m),k=w.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,E=Math.abs(s.clientWidth-m.clientWidth-k);E<=Sp&&(c-=E)}else g<=Sp&&(c+=g);return{width:c,height:d,x:f,y:p}}function Mb(n,r){const i=kr(n,!0,r==="fixed"),s=i.top+n.clientTop,l=i.left+n.clientLeft,c=kn(n)?ro(n):an(1),d=n.clientWidth*c.x,f=n.clientHeight*c.y,p=l*c.x,g=s*c.y;return{width:d,height:f,x:p,y:g}}function Cp(n,r,i){let s;if(r==="viewport")s=Ab(n,i);else if(r==="document")s=Ib(cn(n));else if(qt(r))s=Mb(r,i);else{const l=bp(n);s={x:r.x-l.x,y:r.y-l.y,width:r.width,height:r.height}}return is(s)}function Ep(n,r){const i=Bn(n);return i===r||!qt(i)||no(i)?!1:Gt(i).position==="fixed"||Ep(i,r)}function jb(n,r){const i=r.get(n);if(i)return i;let s=Vo(n,[],!1).filter(f=>qt(f)&&to(f)!=="body"),l=null;const c=Gt(n).position==="fixed";let d=c?Bn(n):n;for(;qt(d)&&!no(d);){const f=Gt(d),p=Sl(d);!p&&f.position==="fixed"&&(l=null),(c?!p&&!l:!p&&f.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||Ho(d)&&!p&&Ep(n,d))?s=s.filter(w=>w!==d):l=f,d=Bn(d)}return r.set(n,s),s}function Lb(n){let{element:r,boundary:i,rootBoundary:s,strategy:l}=n;const d=[...i==="clippingAncestors"?as(r)?[]:jb(r,this._c):[].concat(i),s],f=Cp(r,d[0],l);let p=f.top,g=f.right,w=f.bottom,m=f.left;for(let x=1;x<d.length;x++){const k=Cp(r,d[x],l);p=_t(k.top,p),g=Fn(k.right,g),w=Fn(k.bottom,w),m=_t(k.left,m)}return{width:g-m,height:w-p,x:m,y:p}}function zb(n){const{width:r,height:i}=xp(n);return{width:r,height:i}}function Ob(n,r,i){const s=kn(r),l=cn(r),c=i==="fixed",d=kr(n,!0,c,r);let f={scrollLeft:0,scrollTop:0};const p=an(0);function g(){p.x=cs(l)}if(s||!s&&!c)if((to(r)!=="body"||Ho(l))&&(f=ls(r)),s){const k=kr(r,!0,c,r);p.x=k.x+r.clientLeft,p.y=k.y+r.clientTop}else l&&g();c&&!s&&l&&g();const w=l&&!s&&!c?kp(l,f):an(0),m=d.left+f.scrollLeft-p.x-w.x,x=d.top+f.scrollTop-p.y-w.y;return{x:m,y:x,width:d.width,height:d.height}}function _l(n){return Gt(n).position==="static"}function Np(n,r){if(!kn(n)||Gt(n).position==="fixed")return null;if(r)return r(n);let i=n.offsetParent;return cn(n)===i&&(i=i.ownerDocument.body),i}function _p(n,r){const i=Rt(n);if(as(n))return i;if(!kn(n)){let l=Bn(n);for(;l&&!no(l);){if(qt(l)&&!_l(l))return l;l=Bn(l)}return i}let s=Np(n,r);for(;s&&Sb(s)&&_l(s);)s=Np(s,r);return s&&no(s)&&_l(s)&&!Sl(s)?i:s||Nb(n)||i}const Db=async function(n){const r=this.getOffsetParent||_p,i=this.getDimensions,s=await i(n.floating);return{reference:Ob(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Fb(n){return Gt(n).direction==="rtl"}const Bb={convertOffsetParentRelativeRectToViewportRelativeRect:Tb,getDocumentElement:cn,getClippingRect:Lb,getOffsetParent:_p,getElementRects:Db,getClientRects:Pb,getDimensions:zb,getScale:ro,isElement:qt,isRTL:Fb};function Rp(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function $b(n,r){let i=null,s;const l=cn(n);function c(){var f;clearTimeout(s),(f=i)==null||f.disconnect(),i=null}function d(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),c();const g=n.getBoundingClientRect(),{left:w,top:m,width:x,height:k}=g;if(f||r(),!x||!k)return;const E=rs(m),S=rs(l.clientWidth-(w+x)),C=rs(l.clientHeight-(m+k)),N=rs(w),P={rootMargin:-E+"px "+-S+"px "+-C+"px "+-N+"px",threshold:_t(0,Fn(1,p))||1};let M=!0;function W(z){const D=z[0].intersectionRatio;if(D!==p){if(!M)return d();D?d(!1,D):s=setTimeout(()=>{d(!1,1e-7)},1e3)}D===1&&!Rp(g,n.getBoundingClientRect())&&d(),M=!1}try{i=new IntersectionObserver(W,{...P,root:l.ownerDocument})}catch{i=new IntersectionObserver(W,P)}i.observe(n)}return d(!0),c}function Ub(n,r,i,s){s===void 0&&(s={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,g=Nl(n),w=l||c?[...g?Vo(g):[],...r?Vo(r):[]]:[];w.forEach(N=>{l&&N.addEventListener("scroll",i,{passive:!0}),c&&N.addEventListener("resize",i)});const m=g&&f?$b(g,i):null;let x=-1,k=null;d&&(k=new ResizeObserver(N=>{let[R]=N;R&&R.target===g&&k&&r&&(k.unobserve(r),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var P;(P=k)==null||P.observe(r)})),i()}),g&&!p&&k.observe(g),r&&k.observe(r));let E,S=p?kr(n):null;p&&C();function C(){const N=kr(n);S&&!Rp(S,N)&&i(),S=N,E=requestAnimationFrame(C)}return i(),()=>{var N;w.forEach(R=>{l&&R.removeEventListener("scroll",i),c&&R.removeEventListener("resize",i)}),m==null||m(),(N=k)==null||N.disconnect(),k=null,p&&cancelAnimationFrame(E)}}const Hb=wb,Vb=xb,Wb=gb,qb=kb,Gb=vb,Tp=mb,Yb=bb,Kb=(n,r,i)=>{const s=new Map,l={platform:Bb,...i},c={...l.platform,_c:s};return hb(n,r,{...l,platform:c})};var Xb=typeof document<"u",Qb=function(){},us=Xb?v.useLayoutEffect:Qb;function ds(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let i,s,l;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==r.length)return!1;for(s=i;s--!==0;)if(!ds(n[s],r[s]))return!1;return!0}if(l=Object.keys(n),i=l.length,i!==Object.keys(r).length)return!1;for(s=i;s--!==0;)if(!{}.hasOwnProperty.call(r,l[s]))return!1;for(s=i;s--!==0;){const c=l[s];if(!(c==="_owner"&&n.$$typeof)&&!ds(n[c],r[c]))return!1}return!0}return n!==n&&r!==r}function Pp(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Ip(n,r){const i=Pp(n);return Math.round(r*i)/i}function Rl(n){const r=v.useRef(n);return us(()=>{r.current=n}),r}function Zb(n){n===void 0&&(n={});const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l,elements:{reference:c,floating:d}={},transform:f=!0,whileElementsMounted:p,open:g}=n,[w,m]=v.useState({x:0,y:0,strategy:i,placement:r,middlewareData:{},isPositioned:!1}),[x,k]=v.useState(s);ds(x,s)||k(s);const[E,S]=v.useState(null),[C,N]=v.useState(null),R=v.useCallback(G=>{G!==z.current&&(z.current=G,S(G))},[]),P=v.useCallback(G=>{G!==D.current&&(D.current=G,N(G))},[]),M=c||E,W=d||C,z=v.useRef(null),D=v.useRef(null),j=v.useRef(w),q=p!=null,Z=Rl(p),U=Rl(l),K=Rl(g),X=v.useCallback(()=>{if(!z.current||!D.current)return;const G={placement:r,strategy:i,middleware:x};U.current&&(G.platform=U.current),Kb(z.current,D.current,G).then(F=>{const I={...F,isPositioned:K.current!==!1};Y.current&&!ds(j.current,I)&&(j.current=I,Oo.flushSync(()=>{m(I)}))})},[x,r,i,U,K]);us(()=>{g===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(G=>({...G,isPositioned:!1})))},[g]);const Y=v.useRef(!1);us(()=>(Y.current=!0,()=>{Y.current=!1}),[]),us(()=>{if(M&&(z.current=M),W&&(D.current=W),M&&W){if(Z.current)return Z.current(M,W,X);X()}},[M,W,X,Z,q]);const ue=v.useMemo(()=>({reference:z,floating:D,setReference:R,setFloating:P}),[R,P]),Q=v.useMemo(()=>({reference:M,floating:W}),[M,W]),ne=v.useMemo(()=>{const G={position:i,left:0,top:0};if(!Q.floating)return G;const F=Ip(Q.floating,w.x),I=Ip(Q.floating,w.y);return f?{...G,transform:"translate("+F+"px, "+I+"px)",...Pp(Q.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:F,top:I}},[i,f,Q.floating,w.x,w.y]);return v.useMemo(()=>({...w,update:X,refs:ue,elements:Q,floatingStyles:ne}),[w,X,ue,Q,ne])}const Jb=n=>{function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:s,padding:l}=typeof n=="function"?n(i):n;return s&&r(s)?s.current!=null?Tp({element:s.current,padding:l}).fn(i):{}:s?Tp({element:s,padding:l}).fn(i):{}}}},ek=(n,r)=>{const i=Hb(n);return{name:i.name,fn:i.fn,options:[n,r]}},tk=(n,r)=>{const i=Vb(n);return{name:i.name,fn:i.fn,options:[n,r]}},nk=(n,r)=>({fn:Yb(n).fn,options:[n,r]}),rk=(n,r)=>{const i=Wb(n);return{name:i.name,fn:i.fn,options:[n,r]}},ok=(n,r)=>{const i=qb(n);return{name:i.name,fn:i.fn,options:[n,r]}},ik=(n,r)=>{const i=Gb(n);return{name:i.name,fn:i.fn,options:[n,r]}},sk=(n,r)=>{const i=Jb(n);return{name:i.name,fn:i.fn,options:[n,r]}};var ak="Arrow",Ap=v.forwardRef((n,r)=>{const{children:i,width:s=10,height:l=5,...c}=n;return y.jsx(be.svg,{...c,ref:r,width:s,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ap.displayName=ak;var lk=Ap,Tl="Popper",[Mp,fs]=bt(Tl),[ck,jp]=Mp(Tl),Lp=n=>{const{__scopePopper:r,children:i}=n,[s,l]=v.useState(null);return y.jsx(ck,{scope:r,anchor:s,onAnchorChange:l,children:i})};Lp.displayName=Tl;var zp="PopperAnchor",Op=v.forwardRef((n,r)=>{const{__scopePopper:i,virtualRef:s,...l}=n,c=jp(zp,i),d=v.useRef(null),f=Ae(r,d),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=(s==null?void 0:s.current)||d.current,g!==p.current&&c.onAnchorChange(p.current)}),s?null:y.jsx(be.div,{...l,ref:f})});Op.displayName=zp;var Pl="PopperContent",[uk,dk]=Mp(Pl),Dp=v.forwardRef((n,r)=>{var ie,re,de,ye,_e,Re;const{__scopePopper:i,side:s="bottom",sideOffset:l=0,align:c="center",alignOffset:d=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:m="partial",hideWhenDetached:x=!1,updatePositionStrategy:k="optimized",onPlaced:E,...S}=n,C=jp(Pl,i),[N,R]=v.useState(null),P=Ae(r,Fe=>R(Fe)),[M,W]=v.useState(null),z=es(M),D=(z==null?void 0:z.width)??0,j=(z==null?void 0:z.height)??0,q=s+(c!=="center"?"-"+c:""),Z=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},U=Array.isArray(g)?g:[g],K=U.length>0,X={padding:Z,boundary:U.filter(pk),altBoundary:K},{refs:Y,floatingStyles:ue,placement:Q,isPositioned:ne,middlewareData:G}=Zb({strategy:"fixed",placement:q,whileElementsMounted:(...Fe)=>Ub(...Fe,{animationFrame:k==="always"}),elements:{reference:C.anchor},middleware:[ek({mainAxis:l+j,alignmentAxis:d}),p&&tk({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?nk():void 0,...X}),p&&rk({...X}),ok({...X,apply:({elements:Fe,rects:$e,availableWidth:fn,availableHeight:Kt})=>{const{width:gt,height:_r}=$e.reference,tt=Fe.floating.style;tt.setProperty("--radix-popper-available-width",`${fn}px`),tt.setProperty("--radix-popper-available-height",`${Kt}px`),tt.setProperty("--radix-popper-anchor-width",`${gt}px`),tt.setProperty("--radix-popper-anchor-height",`${_r}px`)}}),M&&sk({element:M,padding:f}),hk({arrowWidth:D,arrowHeight:j}),x&&ik({strategy:"referenceHidden",...X})]}),[F,I]=$p(Q),_=ut(E);We(()=>{ne&&(_==null||_())},[ne,_]);const O=(ie=G.arrow)==null?void 0:ie.x,H=(re=G.arrow)==null?void 0:re.y,J=((de=G.arrow)==null?void 0:de.centerOffset)!==0,[ee,ce]=v.useState();return We(()=>{N&&ce(window.getComputedStyle(N).zIndex)},[N]),y.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:ne?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(ye=G.transformOrigin)==null?void 0:ye.x,(_e=G.transformOrigin)==null?void 0:_e.y].join(" "),...((Re=G.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:y.jsx(uk,{scope:i,placedSide:F,onArrowChange:W,arrowX:O,arrowY:H,shouldHideArrow:J,children:y.jsx(be.div,{"data-side":F,"data-align":I,...S,ref:P,style:{...S.style,animation:ne?void 0:"none"}})})})});Dp.displayName=Pl;var Fp="PopperArrow",fk={top:"bottom",right:"left",bottom:"top",left:"right"},Bp=v.forwardRef(function(r,i){const{__scopePopper:s,...l}=r,c=dk(Fp,s),d=fk[c.placedSide];return y.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:y.jsx(lk,{...l,ref:i,style:{...l.style,display:"block"}})})});Bp.displayName=Fp;function pk(n){return n!==null}var hk=n=>({name:"transformOrigin",options:n,fn(r){var C,N,R;const{placement:i,rects:s,middlewareData:l}=r,d=((C=l.arrow)==null?void 0:C.centerOffset)!==0,f=d?0:n.arrowWidth,p=d?0:n.arrowHeight,[g,w]=$p(i),m={start:"0%",center:"50%",end:"100%"}[w],x=(((N=l.arrow)==null?void 0:N.x)??0)+f/2,k=(((R=l.arrow)==null?void 0:R.y)??0)+p/2;let E="",S="";return g==="bottom"?(E=d?m:`${x}px`,S=`${-p}px`):g==="top"?(E=d?m:`${x}px`,S=`${s.floating.height+p}px`):g==="right"?(E=`${-p}px`,S=d?m:`${k}px`):g==="left"&&(E=`${s.floating.width+p}px`,S=d?m:`${k}px`),{data:{x:E,y:S}}}});function $p(n){const[r,i="center"]=n.split("-");return[r,i]}var Up=Lp,Hp=Op,Vp=Dp,Wp=Bp,Il="rovingFocusGroup.onEntryFocus",mk={bubbles:!1,cancelable:!0},Wo="RovingFocusGroup",[Al,qp,gk]=vf(Wo),[vk,ps]=bt(Wo,[gk]),[yk,wk]=vk(Wo),Gp=v.forwardRef((n,r)=>y.jsx(Al.Provider,{scope:n.__scopeRovingFocusGroup,children:y.jsx(Al.Slot,{scope:n.__scopeRovingFocusGroup,children:y.jsx(xk,{...n,ref:r})})}));Gp.displayName=Wo;var xk=v.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:i,orientation:s,loop:l=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:w=!1,...m}=n,x=v.useRef(null),k=Ae(r,x),E=Uo(c),[S,C]=wn({prop:d,defaultProp:f??null,onChange:p,caller:Wo}),[N,R]=v.useState(!1),P=ut(g),M=qp(i),W=v.useRef(!1),[z,D]=v.useState(0);return v.useEffect(()=>{const j=x.current;if(j)return j.addEventListener(Il,P),()=>j.removeEventListener(Il,P)},[P]),y.jsx(yk,{scope:i,orientation:s,dir:E,loop:l,currentTabStopId:S,onItemFocus:v.useCallback(j=>C(j),[C]),onItemShiftTab:v.useCallback(()=>R(!0),[]),onFocusableItemAdd:v.useCallback(()=>D(j=>j+1),[]),onFocusableItemRemove:v.useCallback(()=>D(j=>j-1),[]),children:y.jsx(be.div,{tabIndex:N||z===0?-1:0,"data-orientation":s,...m,ref:k,style:{outline:"none",...n.style},onMouseDown:Ce(n.onMouseDown,()=>{W.current=!0}),onFocus:Ce(n.onFocus,j=>{const q=!W.current;if(j.target===j.currentTarget&&q&&!N){const Z=new CustomEvent(Il,mk);if(j.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){const U=M().filter(Q=>Q.focusable),K=U.find(Q=>Q.active),X=U.find(Q=>Q.id===S),ue=[K,X,...U].filter(Boolean).map(Q=>Q.ref.current);Xp(ue,w)}}W.current=!1}),onBlur:Ce(n.onBlur,()=>R(!1))})})}),Yp="RovingFocusGroupItem",Kp=v.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:i,focusable:s=!0,active:l=!1,tabStopId:c,children:d,...f}=n,p=xr(),g=c||p,w=wk(Yp,i),m=w.currentTabStopId===g,x=qp(i),{onFocusableItemAdd:k,onFocusableItemRemove:E,currentTabStopId:S}=w;return v.useEffect(()=>{if(s)return k(),()=>E()},[s,k,E]),y.jsx(Al.ItemSlot,{scope:i,id:g,focusable:s,active:l,children:y.jsx(be.span,{tabIndex:m?0:-1,"data-orientation":w.orientation,...f,ref:r,onMouseDown:Ce(n.onMouseDown,C=>{s?w.onItemFocus(g):C.preventDefault()}),onFocus:Ce(n.onFocus,()=>w.onItemFocus(g)),onKeyDown:Ce(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){w.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const N=Sk(C,w.orientation,w.dir);if(N!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let P=x().filter(M=>M.focusable).map(M=>M.ref.current);if(N==="last")P.reverse();else if(N==="prev"||N==="next"){N==="prev"&&P.reverse();const M=P.indexOf(C.currentTarget);P=w.loop?Ck(P,M+1):P.slice(M+1)}setTimeout(()=>Xp(P))}}),children:typeof d=="function"?d({isCurrentTabStop:m,hasTabStop:S!=null}):d})})});Kp.displayName=Yp;var bk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function kk(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Sk(n,r,i){const s=kk(n.key,i);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return bk[s]}function Xp(n,r=!1){const i=document.activeElement;for(const s of n)if(s===i||(s.focus({preventScroll:r}),document.activeElement!==i))return}function Ck(n,r){return n.map((i,s)=>n[(r+s)%n.length])}var Qp=Gp,Zp=Kp,Ek="Label",Jp=v.forwardRef((n,r)=>y.jsx(be.label,{...n,ref:r,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())}}));Jp.displayName=Ek;var Nk=Jp;function Ml(n,[r,i]){return Math.min(i,Math.max(r,n))}var jl="Progress",Ll=100,[_k]=bt(jl),[Rk,Tk]=_k(jl),eh=v.forwardRef((n,r)=>{const{__scopeProgress:i,value:s=null,max:l,getValueLabel:c=Pk,...d}=n;(l||l===0)&&!oh(l)&&console.error(Ik(`${l}`,"Progress"));const f=oh(l)?l:Ll;s!==null&&!ih(s,f)&&console.error(Ak(`${s}`,"Progress"));const p=ih(s,f)?s:null,g=hs(p)?c(p,f):void 0;return y.jsx(Rk,{scope:i,value:p,max:f,children:y.jsx(be.div,{"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":hs(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":rh(p,f),"data-value":p??void 0,"data-max":f,...d,ref:r})})});eh.displayName=jl;var th="ProgressIndicator",nh=v.forwardRef((n,r)=>{const{__scopeProgress:i,...s}=n,l=Tk(th,i);return y.jsx(be.div,{"data-state":rh(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...s,ref:r})});nh.displayName=th;function Pk(n,r){return`${Math.round(n/r*100)}%`}function rh(n,r){return n==null?"indeterminate":n===r?"complete":"loading"}function hs(n){return typeof n=="number"}function oh(n){return hs(n)&&!isNaN(n)&&n>0}function ih(n,r){return hs(n)&&!isNaN(n)&&n<=r&&n>=0}function Ik(n,r){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ll}\`.`}function Ak(n,r){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${r}\`. The \`value\` prop must be:
334
+ */var Yf;function H1(){if(Yf)return hl;Yf=1;var n=Li();function r(m,x){return m===x&&(m!==0||1/m===1/x)||m!==m&&x!==x}var i=typeof Object.is=="function"?Object.is:r,s=n.useState,l=n.useEffect,c=n.useLayoutEffect,d=n.useDebugValue;function f(m,x){var k=x(),E=s({inst:{value:k,getSnapshot:x}}),S=E[0].inst,C=E[1];return c(function(){S.value=k,S.getSnapshot=x,p(S)&&C({inst:S})},[m,k,x]),l(function(){return p(S)&&C({inst:S}),m(function(){p(S)&&C({inst:S})})},[m]),d(k),k}function p(m){var x=m.getSnapshot;m=m.value;try{var k=x();return!i(m,k)}catch{return!0}}function g(m,x){return x()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:f;return hl.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:w,hl}var Kf;function V1(){return Kf||(Kf=1,pl.exports=H1()),pl.exports}var W1=V1();function q1(){return W1.useSyncExternalStore(G1,()=>!0,()=>!1)}function G1(){return()=>{}}var ml="Avatar",[Y1]=bt(ml),[K1,Xf]=Y1(ml),Qf=v.forwardRef((n,r)=>{const{__scopeAvatar:i,...s}=n,[l,c]=v.useState("idle");return y.jsx(K1,{scope:i,imageLoadingStatus:l,onImageLoadingStatusChange:c,children:y.jsx(be.span,{...s,ref:r})})});Qf.displayName=ml;var Zf="AvatarImage",Jf=v.forwardRef((n,r)=>{const{__scopeAvatar:i,src:s,onLoadingStatusChange:l=()=>{},...c}=n,d=Xf(Zf,i),f=X1(s,c),p=ut(g=>{l(g),d.onImageLoadingStatusChange(g)});return We(()=>{f!=="idle"&&p(f)},[f,p]),f==="loaded"?y.jsx(be.img,{...c,ref:r,src:s}):null});Jf.displayName=Zf;var ep="AvatarFallback",tp=v.forwardRef((n,r)=>{const{__scopeAvatar:i,delayMs:s,...l}=n,c=Xf(ep,i),[d,f]=v.useState(s===void 0);return v.useEffect(()=>{if(s!==void 0){const p=window.setTimeout(()=>f(!0),s);return()=>window.clearTimeout(p)}},[s]),d&&c.imageLoadingStatus!=="loaded"?y.jsx(be.span,{...l,ref:r}):null});tp.displayName=ep;function np(n,r){return n?r?(n.src!==r&&(n.src=r),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function X1(n,{referrerPolicy:r,crossOrigin:i}){const s=q1(),l=v.useRef(null),c=s?(l.current||(l.current=new window.Image),l.current):null,[d,f]=v.useState(()=>np(c,n));return We(()=>{f(np(c,n))},[c,n]),We(()=>{const p=m=>()=>{f(m)};if(!c)return;const g=p("loaded"),w=p("error");return c.addEventListener("load",g),c.addEventListener("error",w),r&&(c.referrerPolicy=r),typeof i=="string"&&(c.crossOrigin=i),()=>{c.removeEventListener("load",g),c.removeEventListener("error",w)}},[c,i,r]),d}var Q1=Qf,Z1=Jf,J1=tp;function Ji(n){const r=v.useRef({value:n,previous:n});return v.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}function es(n){const[r,i]=v.useState(void 0);return We(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const c=l[0];let d,f;if("borderBoxSize"in c){const p=c.borderBoxSize,g=Array.isArray(p)?p[0]:p;d=g.inlineSize,f=g.blockSize}else d=n.offsetWidth,f=n.offsetHeight;i({width:d,height:f})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else i(void 0)},[n]),r}var ts="Checkbox",[eb]=bt(ts),[tb,gl]=eb(ts);function nb(n){const{__scopeCheckbox:r,checked:i,children:s,defaultChecked:l,disabled:c,form:d,name:f,onCheckedChange:p,required:g,value:w="on",internal_do_not_use_render:m}=n,[x,k]=wn({prop:i,defaultProp:l??!1,onChange:p,caller:ts}),[E,S]=v.useState(null),[C,N]=v.useState(null),R=v.useRef(!1),P=E?!!d||!!E.closest("form"):!0,M={checked:x,disabled:c,setChecked:k,control:E,setControl:S,name:f,form:d,value:w,hasConsumerStoppedPropagationRef:R,required:g,defaultChecked:Fn(l)?!1:l,isFormControl:P,bubbleInput:C,setBubbleInput:N};return y.jsx(tb,{scope:r,...M,children:rb(m)?m(M):s})}var rp="CheckboxTrigger",op=v.forwardRef(({__scopeCheckbox:n,onKeyDown:r,onClick:i,...s},l)=>{const{control:c,value:d,disabled:f,checked:p,required:g,setControl:w,setChecked:m,hasConsumerStoppedPropagationRef:x,isFormControl:k,bubbleInput:E}=gl(rp,n),S=Ae(l,w),C=v.useRef(p);return v.useEffect(()=>{const N=c==null?void 0:c.form;if(N){const R=()=>m(C.current);return N.addEventListener("reset",R),()=>N.removeEventListener("reset",R)}},[c,m]),y.jsx(be.button,{type:"button",role:"checkbox","aria-checked":Fn(p)?"mixed":p,"aria-required":g,"data-state":up(p),"data-disabled":f?"":void 0,disabled:f,value:d,...s,ref:S,onKeyDown:Ce(r,N=>{N.key==="Enter"&&N.preventDefault()}),onClick:Ce(i,N=>{m(R=>Fn(R)?!0:!R),E&&k&&(x.current=N.isPropagationStopped(),x.current||N.stopPropagation())})})});op.displayName=rp;var ip=v.forwardRef((n,r)=>{const{__scopeCheckbox:i,name:s,checked:l,defaultChecked:c,required:d,disabled:f,value:p,onCheckedChange:g,form:w,...m}=n;return y.jsx(nb,{__scopeCheckbox:i,checked:l,defaultChecked:c,disabled:f,required:d,onCheckedChange:g,name:s,form:w,value:p,internal_do_not_use_render:({isFormControl:x})=>y.jsxs(y.Fragment,{children:[y.jsx(op,{...m,ref:r,__scopeCheckbox:i}),x&&y.jsx(cp,{__scopeCheckbox:i})]})})});ip.displayName=ts;var sp="CheckboxIndicator",ap=v.forwardRef((n,r)=>{const{__scopeCheckbox:i,forceMount:s,...l}=n,c=gl(sp,i);return y.jsx(Wt,{present:s||Fn(c.checked)||c.checked===!0,children:y.jsx(be.span,{"data-state":up(c.checked),"data-disabled":c.disabled?"":void 0,...l,ref:r,style:{pointerEvents:"none",...n.style}})})});ap.displayName=sp;var lp="CheckboxBubbleInput",cp=v.forwardRef(({__scopeCheckbox:n,...r},i)=>{const{control:s,hasConsumerStoppedPropagationRef:l,checked:c,defaultChecked:d,required:f,disabled:p,name:g,value:w,form:m,bubbleInput:x,setBubbleInput:k}=gl(lp,n),E=Ae(i,k),S=Ji(c),C=es(s);v.useEffect(()=>{const R=x;if(!R)return;const P=window.HTMLInputElement.prototype,W=Object.getOwnPropertyDescriptor(P,"checked").set,z=!l.current;if(S!==c&&W){const D=new Event("click",{bubbles:z});R.indeterminate=Fn(c),W.call(R,Fn(c)?!1:c),R.dispatchEvent(D)}},[x,S,c,l]);const N=v.useRef(Fn(c)?!1:c);return y.jsx(be.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??N.current,required:f,disabled:p,name:g,value:w,form:m,...r,tabIndex:-1,ref:E,style:{...r.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});cp.displayName=lp;function rb(n){return typeof n=="function"}function Fn(n){return n==="indeterminate"}function up(n){return Fn(n)?"indeterminate":n?"checked":"unchecked"}const ob=["top","right","bottom","left"],Bn=Math.min,_t=Math.max,ns=Math.round,rs=Math.floor,an=n=>({x:n,y:n}),ib={left:"right",right:"left",bottom:"top",top:"bottom"};function vl(n,r,i){return _t(n,Bn(r,i))}function xn(n,r){return typeof n=="function"?n(r):n}function bn(n){return n.split("-")[0]}function to(n){return n.split("-")[1]}function yl(n){return n==="x"?"y":"x"}function wl(n){return n==="y"?"height":"width"}function ln(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function xl(n){return yl(ln(n))}function sb(n,r,i){i===void 0&&(i=!1);const s=to(n),l=xl(n),c=wl(l);let d=l==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[c]>r.floating[c]&&(d=os(d)),[d,os(d)]}function ab(n){const r=os(n);return[bl(n),r,bl(r)]}function bl(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const dp=["left","right"],fp=["right","left"],lb=["top","bottom"],cb=["bottom","top"];function ub(n,r,i){switch(n){case"top":case"bottom":return i?r?fp:dp:r?dp:fp;case"left":case"right":return r?lb:cb;default:return[]}}function db(n,r,i,s){const l=to(n);let c=ub(bn(n),i==="start",s);return l&&(c=c.map(d=>d+"-"+l),r&&(c=c.concat(c.map(bl)))),c}function os(n){const r=bn(n);return ib[r]+n.slice(r.length)}function fb(n){return{top:0,right:0,bottom:0,left:0,...n}}function pp(n){return typeof n!="number"?fb(n):{top:n,right:n,bottom:n,left:n}}function is(n){const{x:r,y:i,width:s,height:l}=n;return{width:s,height:l,top:i,left:r,right:r+s,bottom:i+l,x:r,y:i}}function hp(n,r,i){let{reference:s,floating:l}=n;const c=ln(r),d=xl(r),f=wl(d),p=bn(r),g=c==="y",w=s.x+s.width/2-l.width/2,m=s.y+s.height/2-l.height/2,x=s[f]/2-l[f]/2;let k;switch(p){case"top":k={x:w,y:s.y-l.height};break;case"bottom":k={x:w,y:s.y+s.height};break;case"right":k={x:s.x+s.width,y:m};break;case"left":k={x:s.x-l.width,y:m};break;default:k={x:s.x,y:s.y}}switch(to(r)){case"start":k[d]-=x*(i&&g?-1:1);break;case"end":k[d]+=x*(i&&g?-1:1);break}return k}async function pb(n,r){var i;r===void 0&&(r={});const{x:s,y:l,platform:c,rects:d,elements:f,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:w="viewport",elementContext:m="floating",altBoundary:x=!1,padding:k=0}=xn(r,n),E=pp(k),C=f[x?m==="floating"?"reference":"floating":m],N=is(await c.getClippingRect({element:(i=await(c.isElement==null?void 0:c.isElement(C)))==null||i?C:C.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:g,rootBoundary:w,strategy:p})),R=m==="floating"?{x:s,y:l,width:d.floating.width,height:d.floating.height}:d.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),M=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},W=is(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:R,offsetParent:P,strategy:p}):R);return{top:(N.top-W.top+E.top)/M.y,bottom:(W.bottom-N.bottom+E.bottom)/M.y,left:(N.left-W.left+E.left)/M.x,right:(W.right-N.right+E.right)/M.x}}const hb=50,mb=async(n,r,i)=>{const{placement:s="bottom",strategy:l="absolute",middleware:c=[],platform:d}=i,f=d.detectOverflow?d:{...d,detectOverflow:pb},p=await(d.isRTL==null?void 0:d.isRTL(r));let g=await d.getElementRects({reference:n,floating:r,strategy:l}),{x:w,y:m}=hp(g,s,p),x=s,k=0;const E={};for(let S=0;S<c.length;S++){const C=c[S];if(!C)continue;const{name:N,fn:R}=C,{x:P,y:M,data:W,reset:z}=await R({x:w,y:m,initialPlacement:s,placement:x,strategy:l,middlewareData:E,rects:g,platform:f,elements:{reference:n,floating:r}});w=P??w,m=M??m,E[N]={...E[N],...W},z&&k<hb&&(k++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(g=z.rects===!0?await d.getElementRects({reference:n,floating:r,strategy:l}):z.rects),{x:w,y:m}=hp(g,x,p)),S=-1)}return{x:w,y:m,placement:x,strategy:l,middlewareData:E}},gb=n=>({name:"arrow",options:n,async fn(r){const{x:i,y:s,placement:l,rects:c,platform:d,elements:f,middlewareData:p}=r,{element:g,padding:w=0}=xn(n,r)||{};if(g==null)return{};const m=pp(w),x={x:i,y:s},k=xl(l),E=wl(k),S=await d.getDimensions(g),C=k==="y",N=C?"top":"left",R=C?"bottom":"right",P=C?"clientHeight":"clientWidth",M=c.reference[E]+c.reference[k]-x[k]-c.floating[E],W=x[k]-c.reference[k],z=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let D=z?z[P]:0;(!D||!await(d.isElement==null?void 0:d.isElement(z)))&&(D=f.floating[P]||c.floating[E]);const j=M/2-W/2,q=D/2-S[E]/2-1,Z=Bn(m[N],q),U=Bn(m[R],q),K=Z,X=D-S[E]-U,Y=D/2-S[E]/2+j,ue=vl(K,Y,X),Q=!p.arrow&&to(l)!=null&&Y!==ue&&c.reference[E]/2-(Y<K?Z:U)-S[E]/2<0,ne=Q?Y<K?Y-K:Y-X:0;return{[k]:x[k]+ne,data:{[k]:ue,centerOffset:Y-ue-ne,...Q&&{alignmentOffset:ne}},reset:Q}}}),vb=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var i,s;const{placement:l,middlewareData:c,rects:d,initialPlacement:f,platform:p,elements:g}=r,{mainAxis:w=!0,crossAxis:m=!0,fallbackPlacements:x,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...C}=xn(n,r);if((i=c.arrow)!=null&&i.alignmentOffset)return{};const N=bn(l),R=ln(f),P=bn(f)===f,M=await(p.isRTL==null?void 0:p.isRTL(g.floating)),W=x||(P||!S?[os(f)]:ab(f)),z=E!=="none";!x&&z&&W.push(...db(f,S,E,M));const D=[f,...W],j=await p.detectOverflow(r,C),q=[];let Z=((s=c.flip)==null?void 0:s.overflows)||[];if(w&&q.push(j[N]),m){const Y=sb(l,d,M);q.push(j[Y[0]],j[Y[1]])}if(Z=[...Z,{placement:l,overflows:q}],!q.every(Y=>Y<=0)){var U,K;const Y=(((U=c.flip)==null?void 0:U.index)||0)+1,ue=D[Y];if(ue&&(!(m==="alignment"?R!==ln(ue):!1)||Z.every(G=>ln(G.placement)===R?G.overflows[0]>0:!0)))return{data:{index:Y,overflows:Z},reset:{placement:ue}};let Q=(K=Z.filter(ne=>ne.overflows[0]<=0).sort((ne,G)=>ne.overflows[1]-G.overflows[1])[0])==null?void 0:K.placement;if(!Q)switch(k){case"bestFit":{var X;const ne=(X=Z.filter(G=>{if(z){const F=ln(G.placement);return F===R||F==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(F=>F>0).reduce((F,I)=>F+I,0)]).sort((G,F)=>G[1]-F[1])[0])==null?void 0:X[0];ne&&(Q=ne);break}case"initialPlacement":Q=f;break}if(l!==Q)return{reset:{placement:Q}}}return{}}}};function mp(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function gp(n){return ob.some(r=>n[r]>=0)}const yb=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:i,platform:s}=r,{strategy:l="referenceHidden",...c}=xn(n,r);switch(l){case"referenceHidden":{const d=await s.detectOverflow(r,{...c,elementContext:"reference"}),f=mp(d,i.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:gp(f)}}}case"escaped":{const d=await s.detectOverflow(r,{...c,altBoundary:!0}),f=mp(d,i.floating);return{data:{escapedOffsets:f,escaped:gp(f)}}}default:return{}}}}},vp=new Set(["left","top"]);async function wb(n,r){const{placement:i,platform:s,elements:l}=n,c=await(s.isRTL==null?void 0:s.isRTL(l.floating)),d=bn(i),f=to(i),p=ln(i)==="y",g=vp.has(d)?-1:1,w=c&&p?-1:1,m=xn(r,n);let{mainAxis:x,crossAxis:k,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return f&&typeof E=="number"&&(k=f==="end"?E*-1:E),p?{x:k*w,y:x*g}:{x:x*g,y:k*w}}const xb=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var i,s;const{x:l,y:c,placement:d,middlewareData:f}=r,p=await wb(r,n);return d===((i=f.offset)==null?void 0:i.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:l+p.x,y:c+p.y,data:{...p,placement:d}}}}},bb=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:i,y:s,placement:l,platform:c}=r,{mainAxis:d=!0,crossAxis:f=!1,limiter:p={fn:N=>{let{x:R,y:P}=N;return{x:R,y:P}}},...g}=xn(n,r),w={x:i,y:s},m=await c.detectOverflow(r,g),x=ln(bn(l)),k=yl(x);let E=w[k],S=w[x];if(d){const N=k==="y"?"top":"left",R=k==="y"?"bottom":"right",P=E+m[N],M=E-m[R];E=vl(P,E,M)}if(f){const N=x==="y"?"top":"left",R=x==="y"?"bottom":"right",P=S+m[N],M=S-m[R];S=vl(P,S,M)}const C=p.fn({...r,[k]:E,[x]:S});return{...C,data:{x:C.x-i,y:C.y-s,enabled:{[k]:d,[x]:f}}}}}},kb=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:i,y:s,placement:l,rects:c,middlewareData:d}=r,{offset:f=0,mainAxis:p=!0,crossAxis:g=!0}=xn(n,r),w={x:i,y:s},m=ln(l),x=yl(m);let k=w[x],E=w[m];const S=xn(f,r),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const P=x==="y"?"height":"width",M=c.reference[x]-c.floating[P]+C.mainAxis,W=c.reference[x]+c.reference[P]-C.mainAxis;k<M?k=M:k>W&&(k=W)}if(g){var N,R;const P=x==="y"?"width":"height",M=vp.has(bn(l)),W=c.reference[m]-c.floating[P]+(M&&((N=d.offset)==null?void 0:N[m])||0)+(M?0:C.crossAxis),z=c.reference[m]+c.reference[P]+(M?0:((R=d.offset)==null?void 0:R[m])||0)-(M?C.crossAxis:0);E<W?E=W:E>z&&(E=z)}return{[x]:k,[m]:E}}}},Sb=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var i,s;const{placement:l,rects:c,platform:d,elements:f}=r,{apply:p=()=>{},...g}=xn(n,r),w=await d.detectOverflow(r,g),m=bn(l),x=to(l),k=ln(l)==="y",{width:E,height:S}=c.floating;let C,N;m==="top"||m==="bottom"?(C=m,N=x===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(N=m,C=x==="end"?"top":"bottom");const R=S-w.top-w.bottom,P=E-w.left-w.right,M=Bn(S-w[C],R),W=Bn(E-w[N],P),z=!r.middlewareData.shift;let D=M,j=W;if((i=r.middlewareData.shift)!=null&&i.enabled.x&&(j=P),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(D=R),z&&!x){const Z=_t(w.left,0),U=_t(w.right,0),K=_t(w.top,0),X=_t(w.bottom,0);k?j=E-2*(Z!==0||U!==0?Z+U:_t(w.left,w.right)):D=S-2*(K!==0||X!==0?K+X:_t(w.top,w.bottom))}await p({...r,availableWidth:j,availableHeight:D});const q=await d.getDimensions(f.floating);return E!==q.width||S!==q.height?{reset:{rects:!0}}:{}}}};function ss(){return typeof window<"u"}function no(n){return yp(n)?(n.nodeName||"").toLowerCase():"#document"}function Rt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function cn(n){var r;return(r=(yp(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function yp(n){return ss()?n instanceof Node||n instanceof Rt(n).Node:!1}function qt(n){return ss()?n instanceof Element||n instanceof Rt(n).Element:!1}function kn(n){return ss()?n instanceof HTMLElement||n instanceof Rt(n).HTMLElement:!1}function wp(n){return!ss()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Rt(n).ShadowRoot}function Ho(n){const{overflow:r,overflowX:i,overflowY:s,display:l}=Gt(n);return/auto|scroll|overlay|hidden|clip/.test(r+s+i)&&l!=="inline"&&l!=="contents"}function Cb(n){return/^(table|td|th)$/.test(no(n))}function as(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const Eb=/transform|translate|scale|rotate|perspective|filter/,Nb=/paint|layout|strict|content/,Sr=n=>!!n&&n!=="none";let kl;function Sl(n){const r=qt(n)?Gt(n):n;return Sr(r.transform)||Sr(r.translate)||Sr(r.scale)||Sr(r.rotate)||Sr(r.perspective)||!Cl()&&(Sr(r.backdropFilter)||Sr(r.filter))||Eb.test(r.willChange||"")||Nb.test(r.contain||"")}function _b(n){let r=$n(n);for(;kn(r)&&!ro(r);){if(Sl(r))return r;if(as(r))return null;r=$n(r)}return null}function Cl(){return kl==null&&(kl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),kl}function ro(n){return/^(html|body|#document)$/.test(no(n))}function Gt(n){return Rt(n).getComputedStyle(n)}function ls(n){return qt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function $n(n){if(no(n)==="html")return n;const r=n.assignedSlot||n.parentNode||wp(n)&&n.host||cn(n);return wp(r)?r.host:r}function xp(n){const r=$n(n);return ro(r)?n.ownerDocument?n.ownerDocument.body:n.body:kn(r)&&Ho(r)?r:xp(r)}function Vo(n,r,i){var s;r===void 0&&(r=[]),i===void 0&&(i=!0);const l=xp(n),c=l===((s=n.ownerDocument)==null?void 0:s.body),d=Rt(l);if(c){const f=El(d);return r.concat(d,d.visualViewport||[],Ho(l)?l:[],f&&i?Vo(f):[])}else return r.concat(l,Vo(l,[],i))}function El(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function bp(n){const r=Gt(n);let i=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const l=kn(n),c=l?n.offsetWidth:i,d=l?n.offsetHeight:s,f=ns(i)!==c||ns(s)!==d;return f&&(i=c,s=d),{width:i,height:s,$:f}}function Nl(n){return qt(n)?n:n.contextElement}function oo(n){const r=Nl(n);if(!kn(r))return an(1);const i=r.getBoundingClientRect(),{width:s,height:l,$:c}=bp(r);let d=(c?ns(i.width):i.width)/s,f=(c?ns(i.height):i.height)/l;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}const Rb=an(0);function kp(n){const r=Rt(n);return!Cl()||!r.visualViewport?Rb:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Tb(n,r,i){return r===void 0&&(r=!1),!i||r&&i!==Rt(n)?!1:r}function Cr(n,r,i,s){r===void 0&&(r=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),c=Nl(n);let d=an(1);r&&(s?qt(s)&&(d=oo(s)):d=oo(n));const f=Tb(c,i,s)?kp(c):an(0);let p=(l.left+f.x)/d.x,g=(l.top+f.y)/d.y,w=l.width/d.x,m=l.height/d.y;if(c){const x=Rt(c),k=s&&qt(s)?Rt(s):s;let E=x,S=El(E);for(;S&&s&&k!==E;){const C=oo(S),N=S.getBoundingClientRect(),R=Gt(S),P=N.left+(S.clientLeft+parseFloat(R.paddingLeft))*C.x,M=N.top+(S.clientTop+parseFloat(R.paddingTop))*C.y;p*=C.x,g*=C.y,w*=C.x,m*=C.y,p+=P,g+=M,E=Rt(S),S=El(E)}}return is({width:w,height:m,x:p,y:g})}function cs(n,r){const i=ls(n).scrollLeft;return r?r.left+i:Cr(cn(n)).left+i}function Sp(n,r){const i=n.getBoundingClientRect(),s=i.left+r.scrollLeft-cs(n,i),l=i.top+r.scrollTop;return{x:s,y:l}}function Pb(n){let{elements:r,rect:i,offsetParent:s,strategy:l}=n;const c=l==="fixed",d=cn(s),f=r?as(r.floating):!1;if(s===d||f&&c)return i;let p={scrollLeft:0,scrollTop:0},g=an(1);const w=an(0),m=kn(s);if((m||!m&&!c)&&((no(s)!=="body"||Ho(d))&&(p=ls(s)),m)){const k=Cr(s);g=oo(s),w.x=k.x+s.clientLeft,w.y=k.y+s.clientTop}const x=d&&!m&&!c?Sp(d,p):an(0);return{width:i.width*g.x,height:i.height*g.y,x:i.x*g.x-p.scrollLeft*g.x+w.x+x.x,y:i.y*g.y-p.scrollTop*g.y+w.y+x.y}}function Ib(n){return Array.from(n.getClientRects())}function Ab(n){const r=cn(n),i=ls(n),s=n.ownerDocument.body,l=_t(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),c=_t(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let d=-i.scrollLeft+cs(n);const f=-i.scrollTop;return Gt(s).direction==="rtl"&&(d+=_t(r.clientWidth,s.clientWidth)-l),{width:l,height:c,x:d,y:f}}const Cp=25;function Mb(n,r){const i=Rt(n),s=cn(n),l=i.visualViewport;let c=s.clientWidth,d=s.clientHeight,f=0,p=0;if(l){c=l.width,d=l.height;const w=Cl();(!w||w&&r==="fixed")&&(f=l.offsetLeft,p=l.offsetTop)}const g=cs(s);if(g<=0){const w=s.ownerDocument,m=w.body,x=getComputedStyle(m),k=w.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,E=Math.abs(s.clientWidth-m.clientWidth-k);E<=Cp&&(c-=E)}else g<=Cp&&(c+=g);return{width:c,height:d,x:f,y:p}}function jb(n,r){const i=Cr(n,!0,r==="fixed"),s=i.top+n.clientTop,l=i.left+n.clientLeft,c=kn(n)?oo(n):an(1),d=n.clientWidth*c.x,f=n.clientHeight*c.y,p=l*c.x,g=s*c.y;return{width:d,height:f,x:p,y:g}}function Ep(n,r,i){let s;if(r==="viewport")s=Mb(n,i);else if(r==="document")s=Ab(cn(n));else if(qt(r))s=jb(r,i);else{const l=kp(n);s={x:r.x-l.x,y:r.y-l.y,width:r.width,height:r.height}}return is(s)}function Np(n,r){const i=$n(n);return i===r||!qt(i)||ro(i)?!1:Gt(i).position==="fixed"||Np(i,r)}function Lb(n,r){const i=r.get(n);if(i)return i;let s=Vo(n,[],!1).filter(f=>qt(f)&&no(f)!=="body"),l=null;const c=Gt(n).position==="fixed";let d=c?$n(n):n;for(;qt(d)&&!ro(d);){const f=Gt(d),p=Sl(d);!p&&f.position==="fixed"&&(l=null),(c?!p&&!l:!p&&f.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||Ho(d)&&!p&&Np(n,d))?s=s.filter(w=>w!==d):l=f,d=$n(d)}return r.set(n,s),s}function zb(n){let{element:r,boundary:i,rootBoundary:s,strategy:l}=n;const d=[...i==="clippingAncestors"?as(r)?[]:Lb(r,this._c):[].concat(i),s],f=Ep(r,d[0],l);let p=f.top,g=f.right,w=f.bottom,m=f.left;for(let x=1;x<d.length;x++){const k=Ep(r,d[x],l);p=_t(k.top,p),g=Bn(k.right,g),w=Bn(k.bottom,w),m=_t(k.left,m)}return{width:g-m,height:w-p,x:m,y:p}}function Ob(n){const{width:r,height:i}=bp(n);return{width:r,height:i}}function Db(n,r,i){const s=kn(r),l=cn(r),c=i==="fixed",d=Cr(n,!0,c,r);let f={scrollLeft:0,scrollTop:0};const p=an(0);function g(){p.x=cs(l)}if(s||!s&&!c)if((no(r)!=="body"||Ho(l))&&(f=ls(r)),s){const k=Cr(r,!0,c,r);p.x=k.x+r.clientLeft,p.y=k.y+r.clientTop}else l&&g();c&&!s&&l&&g();const w=l&&!s&&!c?Sp(l,f):an(0),m=d.left+f.scrollLeft-p.x-w.x,x=d.top+f.scrollTop-p.y-w.y;return{x:m,y:x,width:d.width,height:d.height}}function _l(n){return Gt(n).position==="static"}function _p(n,r){if(!kn(n)||Gt(n).position==="fixed")return null;if(r)return r(n);let i=n.offsetParent;return cn(n)===i&&(i=i.ownerDocument.body),i}function Rp(n,r){const i=Rt(n);if(as(n))return i;if(!kn(n)){let l=$n(n);for(;l&&!ro(l);){if(qt(l)&&!_l(l))return l;l=$n(l)}return i}let s=_p(n,r);for(;s&&Cb(s)&&_l(s);)s=_p(s,r);return s&&ro(s)&&_l(s)&&!Sl(s)?i:s||_b(n)||i}const Fb=async function(n){const r=this.getOffsetParent||Rp,i=this.getDimensions,s=await i(n.floating);return{reference:Db(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Bb(n){return Gt(n).direction==="rtl"}const $b={convertOffsetParentRelativeRectToViewportRelativeRect:Pb,getDocumentElement:cn,getClippingRect:zb,getOffsetParent:Rp,getElementRects:Fb,getClientRects:Ib,getDimensions:Ob,getScale:oo,isElement:qt,isRTL:Bb};function Tp(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function Ub(n,r){let i=null,s;const l=cn(n);function c(){var f;clearTimeout(s),(f=i)==null||f.disconnect(),i=null}function d(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),c();const g=n.getBoundingClientRect(),{left:w,top:m,width:x,height:k}=g;if(f||r(),!x||!k)return;const E=rs(m),S=rs(l.clientWidth-(w+x)),C=rs(l.clientHeight-(m+k)),N=rs(w),P={rootMargin:-E+"px "+-S+"px "+-C+"px "+-N+"px",threshold:_t(0,Bn(1,p))||1};let M=!0;function W(z){const D=z[0].intersectionRatio;if(D!==p){if(!M)return d();D?d(!1,D):s=setTimeout(()=>{d(!1,1e-7)},1e3)}D===1&&!Tp(g,n.getBoundingClientRect())&&d(),M=!1}try{i=new IntersectionObserver(W,{...P,root:l.ownerDocument})}catch{i=new IntersectionObserver(W,P)}i.observe(n)}return d(!0),c}function Hb(n,r,i,s){s===void 0&&(s={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,g=Nl(n),w=l||c?[...g?Vo(g):[],...r?Vo(r):[]]:[];w.forEach(N=>{l&&N.addEventListener("scroll",i,{passive:!0}),c&&N.addEventListener("resize",i)});const m=g&&f?Ub(g,i):null;let x=-1,k=null;d&&(k=new ResizeObserver(N=>{let[R]=N;R&&R.target===g&&k&&r&&(k.unobserve(r),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var P;(P=k)==null||P.observe(r)})),i()}),g&&!p&&k.observe(g),r&&k.observe(r));let E,S=p?Cr(n):null;p&&C();function C(){const N=Cr(n);S&&!Tp(S,N)&&i(),S=N,E=requestAnimationFrame(C)}return i(),()=>{var N;w.forEach(R=>{l&&R.removeEventListener("scroll",i),c&&R.removeEventListener("resize",i)}),m==null||m(),(N=k)==null||N.disconnect(),k=null,p&&cancelAnimationFrame(E)}}const Vb=xb,Wb=bb,qb=vb,Gb=Sb,Yb=yb,Pp=gb,Kb=kb,Xb=(n,r,i)=>{const s=new Map,l={platform:$b,...i},c={...l.platform,_c:s};return mb(n,r,{...l,platform:c})};var Qb=typeof document<"u",Zb=function(){},us=Qb?v.useLayoutEffect:Zb;function ds(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let i,s,l;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==r.length)return!1;for(s=i;s--!==0;)if(!ds(n[s],r[s]))return!1;return!0}if(l=Object.keys(n),i=l.length,i!==Object.keys(r).length)return!1;for(s=i;s--!==0;)if(!{}.hasOwnProperty.call(r,l[s]))return!1;for(s=i;s--!==0;){const c=l[s];if(!(c==="_owner"&&n.$$typeof)&&!ds(n[c],r[c]))return!1}return!0}return n!==n&&r!==r}function Ip(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Ap(n,r){const i=Ip(n);return Math.round(r*i)/i}function Rl(n){const r=v.useRef(n);return us(()=>{r.current=n}),r}function Jb(n){n===void 0&&(n={});const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l,elements:{reference:c,floating:d}={},transform:f=!0,whileElementsMounted:p,open:g}=n,[w,m]=v.useState({x:0,y:0,strategy:i,placement:r,middlewareData:{},isPositioned:!1}),[x,k]=v.useState(s);ds(x,s)||k(s);const[E,S]=v.useState(null),[C,N]=v.useState(null),R=v.useCallback(G=>{G!==z.current&&(z.current=G,S(G))},[]),P=v.useCallback(G=>{G!==D.current&&(D.current=G,N(G))},[]),M=c||E,W=d||C,z=v.useRef(null),D=v.useRef(null),j=v.useRef(w),q=p!=null,Z=Rl(p),U=Rl(l),K=Rl(g),X=v.useCallback(()=>{if(!z.current||!D.current)return;const G={placement:r,strategy:i,middleware:x};U.current&&(G.platform=U.current),Xb(z.current,D.current,G).then(F=>{const I={...F,isPositioned:K.current!==!1};Y.current&&!ds(j.current,I)&&(j.current=I,Oo.flushSync(()=>{m(I)}))})},[x,r,i,U,K]);us(()=>{g===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(G=>({...G,isPositioned:!1})))},[g]);const Y=v.useRef(!1);us(()=>(Y.current=!0,()=>{Y.current=!1}),[]),us(()=>{if(M&&(z.current=M),W&&(D.current=W),M&&W){if(Z.current)return Z.current(M,W,X);X()}},[M,W,X,Z,q]);const ue=v.useMemo(()=>({reference:z,floating:D,setReference:R,setFloating:P}),[R,P]),Q=v.useMemo(()=>({reference:M,floating:W}),[M,W]),ne=v.useMemo(()=>{const G={position:i,left:0,top:0};if(!Q.floating)return G;const F=Ap(Q.floating,w.x),I=Ap(Q.floating,w.y);return f?{...G,transform:"translate("+F+"px, "+I+"px)",...Ip(Q.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:F,top:I}},[i,f,Q.floating,w.x,w.y]);return v.useMemo(()=>({...w,update:X,refs:ue,elements:Q,floatingStyles:ne}),[w,X,ue,Q,ne])}const ek=n=>{function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:s,padding:l}=typeof n=="function"?n(i):n;return s&&r(s)?s.current!=null?Pp({element:s.current,padding:l}).fn(i):{}:s?Pp({element:s,padding:l}).fn(i):{}}}},tk=(n,r)=>{const i=Vb(n);return{name:i.name,fn:i.fn,options:[n,r]}},nk=(n,r)=>{const i=Wb(n);return{name:i.name,fn:i.fn,options:[n,r]}},rk=(n,r)=>({fn:Kb(n).fn,options:[n,r]}),ok=(n,r)=>{const i=qb(n);return{name:i.name,fn:i.fn,options:[n,r]}},ik=(n,r)=>{const i=Gb(n);return{name:i.name,fn:i.fn,options:[n,r]}},sk=(n,r)=>{const i=Yb(n);return{name:i.name,fn:i.fn,options:[n,r]}},ak=(n,r)=>{const i=ek(n);return{name:i.name,fn:i.fn,options:[n,r]}};var lk="Arrow",Mp=v.forwardRef((n,r)=>{const{children:i,width:s=10,height:l=5,...c}=n;return y.jsx(be.svg,{...c,ref:r,width:s,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Mp.displayName=lk;var ck=Mp,Tl="Popper",[jp,fs]=bt(Tl),[uk,Lp]=jp(Tl),zp=n=>{const{__scopePopper:r,children:i}=n,[s,l]=v.useState(null);return y.jsx(uk,{scope:r,anchor:s,onAnchorChange:l,children:i})};zp.displayName=Tl;var Op="PopperAnchor",Dp=v.forwardRef((n,r)=>{const{__scopePopper:i,virtualRef:s,...l}=n,c=Lp(Op,i),d=v.useRef(null),f=Ae(r,d),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=(s==null?void 0:s.current)||d.current,g!==p.current&&c.onAnchorChange(p.current)}),s?null:y.jsx(be.div,{...l,ref:f})});Dp.displayName=Op;var Pl="PopperContent",[dk,fk]=jp(Pl),Fp=v.forwardRef((n,r)=>{var ie,re,de,ye,_e,Re;const{__scopePopper:i,side:s="bottom",sideOffset:l=0,align:c="center",alignOffset:d=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:m="partial",hideWhenDetached:x=!1,updatePositionStrategy:k="optimized",onPlaced:E,...S}=n,C=Lp(Pl,i),[N,R]=v.useState(null),P=Ae(r,Fe=>R(Fe)),[M,W]=v.useState(null),z=es(M),D=(z==null?void 0:z.width)??0,j=(z==null?void 0:z.height)??0,q=s+(c!=="center"?"-"+c:""),Z=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},U=Array.isArray(g)?g:[g],K=U.length>0,X={padding:Z,boundary:U.filter(hk),altBoundary:K},{refs:Y,floatingStyles:ue,placement:Q,isPositioned:ne,middlewareData:G}=Jb({strategy:"fixed",placement:q,whileElementsMounted:(...Fe)=>Hb(...Fe,{animationFrame:k==="always"}),elements:{reference:C.anchor},middleware:[tk({mainAxis:l+j,alignmentAxis:d}),p&&nk({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?rk():void 0,...X}),p&&ok({...X}),ik({...X,apply:({elements:Fe,rects:$e,availableWidth:fn,availableHeight:Kt})=>{const{width:gt,height:Tr}=$e.reference,tt=Fe.floating.style;tt.setProperty("--radix-popper-available-width",`${fn}px`),tt.setProperty("--radix-popper-available-height",`${Kt}px`),tt.setProperty("--radix-popper-anchor-width",`${gt}px`),tt.setProperty("--radix-popper-anchor-height",`${Tr}px`)}}),M&&ak({element:M,padding:f}),mk({arrowWidth:D,arrowHeight:j}),x&&sk({strategy:"referenceHidden",...X})]}),[F,I]=Up(Q),_=ut(E);We(()=>{ne&&(_==null||_())},[ne,_]);const O=(ie=G.arrow)==null?void 0:ie.x,H=(re=G.arrow)==null?void 0:re.y,J=((de=G.arrow)==null?void 0:de.centerOffset)!==0,[ee,ce]=v.useState();return We(()=>{N&&ce(window.getComputedStyle(N).zIndex)},[N]),y.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:ne?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(ye=G.transformOrigin)==null?void 0:ye.x,(_e=G.transformOrigin)==null?void 0:_e.y].join(" "),...((Re=G.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:y.jsx(dk,{scope:i,placedSide:F,onArrowChange:W,arrowX:O,arrowY:H,shouldHideArrow:J,children:y.jsx(be.div,{"data-side":F,"data-align":I,...S,ref:P,style:{...S.style,animation:ne?void 0:"none"}})})})});Fp.displayName=Pl;var Bp="PopperArrow",pk={top:"bottom",right:"left",bottom:"top",left:"right"},$p=v.forwardRef(function(r,i){const{__scopePopper:s,...l}=r,c=fk(Bp,s),d=pk[c.placedSide];return y.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:y.jsx(ck,{...l,ref:i,style:{...l.style,display:"block"}})})});$p.displayName=Bp;function hk(n){return n!==null}var mk=n=>({name:"transformOrigin",options:n,fn(r){var C,N,R;const{placement:i,rects:s,middlewareData:l}=r,d=((C=l.arrow)==null?void 0:C.centerOffset)!==0,f=d?0:n.arrowWidth,p=d?0:n.arrowHeight,[g,w]=Up(i),m={start:"0%",center:"50%",end:"100%"}[w],x=(((N=l.arrow)==null?void 0:N.x)??0)+f/2,k=(((R=l.arrow)==null?void 0:R.y)??0)+p/2;let E="",S="";return g==="bottom"?(E=d?m:`${x}px`,S=`${-p}px`):g==="top"?(E=d?m:`${x}px`,S=`${s.floating.height+p}px`):g==="right"?(E=`${-p}px`,S=d?m:`${k}px`):g==="left"&&(E=`${s.floating.width+p}px`,S=d?m:`${k}px`),{data:{x:E,y:S}}}});function Up(n){const[r,i="center"]=n.split("-");return[r,i]}var Hp=zp,Vp=Dp,Wp=Fp,qp=$p,Il="rovingFocusGroup.onEntryFocus",gk={bubbles:!1,cancelable:!0},Wo="RovingFocusGroup",[Al,Gp,vk]=yf(Wo),[yk,ps]=bt(Wo,[vk]),[wk,xk]=yk(Wo),Yp=v.forwardRef((n,r)=>y.jsx(Al.Provider,{scope:n.__scopeRovingFocusGroup,children:y.jsx(Al.Slot,{scope:n.__scopeRovingFocusGroup,children:y.jsx(bk,{...n,ref:r})})}));Yp.displayName=Wo;var bk=v.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:i,orientation:s,loop:l=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:w=!1,...m}=n,x=v.useRef(null),k=Ae(r,x),E=Uo(c),[S,C]=wn({prop:d,defaultProp:f??null,onChange:p,caller:Wo}),[N,R]=v.useState(!1),P=ut(g),M=Gp(i),W=v.useRef(!1),[z,D]=v.useState(0);return v.useEffect(()=>{const j=x.current;if(j)return j.addEventListener(Il,P),()=>j.removeEventListener(Il,P)},[P]),y.jsx(wk,{scope:i,orientation:s,dir:E,loop:l,currentTabStopId:S,onItemFocus:v.useCallback(j=>C(j),[C]),onItemShiftTab:v.useCallback(()=>R(!0),[]),onFocusableItemAdd:v.useCallback(()=>D(j=>j+1),[]),onFocusableItemRemove:v.useCallback(()=>D(j=>j-1),[]),children:y.jsx(be.div,{tabIndex:N||z===0?-1:0,"data-orientation":s,...m,ref:k,style:{outline:"none",...n.style},onMouseDown:Ce(n.onMouseDown,()=>{W.current=!0}),onFocus:Ce(n.onFocus,j=>{const q=!W.current;if(j.target===j.currentTarget&&q&&!N){const Z=new CustomEvent(Il,gk);if(j.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){const U=M().filter(Q=>Q.focusable),K=U.find(Q=>Q.active),X=U.find(Q=>Q.id===S),ue=[K,X,...U].filter(Boolean).map(Q=>Q.ref.current);Qp(ue,w)}}W.current=!1}),onBlur:Ce(n.onBlur,()=>R(!1))})})}),Kp="RovingFocusGroupItem",Xp=v.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:i,focusable:s=!0,active:l=!1,tabStopId:c,children:d,...f}=n,p=kr(),g=c||p,w=xk(Kp,i),m=w.currentTabStopId===g,x=Gp(i),{onFocusableItemAdd:k,onFocusableItemRemove:E,currentTabStopId:S}=w;return v.useEffect(()=>{if(s)return k(),()=>E()},[s,k,E]),y.jsx(Al.ItemSlot,{scope:i,id:g,focusable:s,active:l,children:y.jsx(be.span,{tabIndex:m?0:-1,"data-orientation":w.orientation,...f,ref:r,onMouseDown:Ce(n.onMouseDown,C=>{s?w.onItemFocus(g):C.preventDefault()}),onFocus:Ce(n.onFocus,()=>w.onItemFocus(g)),onKeyDown:Ce(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){w.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const N=Ck(C,w.orientation,w.dir);if(N!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let P=x().filter(M=>M.focusable).map(M=>M.ref.current);if(N==="last")P.reverse();else if(N==="prev"||N==="next"){N==="prev"&&P.reverse();const M=P.indexOf(C.currentTarget);P=w.loop?Ek(P,M+1):P.slice(M+1)}setTimeout(()=>Qp(P))}}),children:typeof d=="function"?d({isCurrentTabStop:m,hasTabStop:S!=null}):d})})});Xp.displayName=Kp;var kk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Sk(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Ck(n,r,i){const s=Sk(n.key,i);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return kk[s]}function Qp(n,r=!1){const i=document.activeElement;for(const s of n)if(s===i||(s.focus({preventScroll:r}),document.activeElement!==i))return}function Ek(n,r){return n.map((i,s)=>n[(r+s)%n.length])}var Zp=Yp,Jp=Xp,Nk="Label",eh=v.forwardRef((n,r)=>y.jsx(be.label,{...n,ref:r,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())}}));eh.displayName=Nk;var _k=eh;function Ml(n,[r,i]){return Math.min(i,Math.max(r,n))}var jl="Progress",Ll=100,[Rk]=bt(jl),[Tk,Pk]=Rk(jl),th=v.forwardRef((n,r)=>{const{__scopeProgress:i,value:s=null,max:l,getValueLabel:c=Ik,...d}=n;(l||l===0)&&!ih(l)&&console.error(Ak(`${l}`,"Progress"));const f=ih(l)?l:Ll;s!==null&&!sh(s,f)&&console.error(Mk(`${s}`,"Progress"));const p=sh(s,f)?s:null,g=hs(p)?c(p,f):void 0;return y.jsx(Tk,{scope:i,value:p,max:f,children:y.jsx(be.div,{"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":hs(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":oh(p,f),"data-value":p??void 0,"data-max":f,...d,ref:r})})});th.displayName=jl;var nh="ProgressIndicator",rh=v.forwardRef((n,r)=>{const{__scopeProgress:i,...s}=n,l=Pk(nh,i);return y.jsx(be.div,{"data-state":oh(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...s,ref:r})});rh.displayName=nh;function Ik(n,r){return`${Math.round(n/r*100)}%`}function oh(n,r){return n==null?"indeterminate":n===r?"complete":"loading"}function hs(n){return typeof n=="number"}function ih(n){return hs(n)&&!isNaN(n)&&n>0}function sh(n,r){return hs(n)&&!isNaN(n)&&n<=r&&n>=0}function Ak(n,r){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ll}\`.`}function Mk(n,r){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${r}\`. The \`value\` prop must be:
330
335
  - a positive number
331
336
  - less than the value passed to \`max\` (or ${Ll} if no \`max\` prop is set)
332
337
  - \`null\` or \`undefined\` if the progress is indeterminate.
333
338
 
334
- Defaulting to \`null\`.`}var Mk=eh,jk=nh,zl="Radio",[Lk,sh]=bt(zl),[zk,Ok]=Lk(zl),ah=v.forwardRef((n,r)=>{const{__scopeRadio:i,name:s,checked:l=!1,required:c,disabled:d,value:f="on",onCheck:p,form:g,...w}=n,[m,x]=v.useState(null),k=Ae(r,C=>x(C)),E=v.useRef(!1),S=m?g||!!m.closest("form"):!0;return y.jsxs(zk,{scope:i,checked:l,disabled:d,children:[y.jsx(be.button,{type:"button",role:"radio","aria-checked":l,"data-state":dh(l),"data-disabled":d?"":void 0,disabled:d,value:f,...w,ref:k,onClick:Ce(n.onClick,C=>{l||p==null||p(),S&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),S&&y.jsx(uh,{control:m,bubbles:!E.current,name:s,value:f,checked:l,required:c,disabled:d,form:g,style:{transform:"translateX(-100%)"}})]})});ah.displayName=zl;var lh="RadioIndicator",ch=v.forwardRef((n,r)=>{const{__scopeRadio:i,forceMount:s,...l}=n,c=Ok(lh,i);return y.jsx(Wt,{present:s||c.checked,children:y.jsx(be.span,{"data-state":dh(c.checked),"data-disabled":c.disabled?"":void 0,...l,ref:r})})});ch.displayName=lh;var Dk="RadioBubbleInput",uh=v.forwardRef(({__scopeRadio:n,control:r,checked:i,bubbles:s=!0,...l},c)=>{const d=v.useRef(null),f=Ae(d,c),p=Ji(i),g=es(r);return v.useEffect(()=>{const w=d.current;if(!w)return;const m=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(m,"checked").set;if(p!==i&&k){const E=new Event("click",{bubbles:s});k.call(w,i),w.dispatchEvent(E)}},[p,i,s]),y.jsx(be.input,{type:"radio","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:f,style:{...l.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});uh.displayName=Dk;function dh(n){return n?"checked":"unchecked"}var Fk=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ms="RadioGroup",[Bk]=bt(ms,[ps,sh]),fh=ps(),ph=sh(),[$k,Uk]=Bk(ms),hh=v.forwardRef((n,r)=>{const{__scopeRadioGroup:i,name:s,defaultValue:l,value:c,required:d=!1,disabled:f=!1,orientation:p,dir:g,loop:w=!0,onValueChange:m,...x}=n,k=fh(i),E=Uo(g),[S,C]=wn({prop:c,defaultProp:l??null,onChange:m,caller:ms});return y.jsx($k,{scope:i,name:s,required:d,disabled:f,value:S,onValueChange:C,children:y.jsx(Qp,{asChild:!0,...k,orientation:p,dir:E,loop:w,children:y.jsx(be.div,{role:"radiogroup","aria-required":d,"aria-orientation":p,"data-disabled":f?"":void 0,dir:E,...x,ref:r})})})});hh.displayName=ms;var mh="RadioGroupItem",gh=v.forwardRef((n,r)=>{const{__scopeRadioGroup:i,disabled:s,...l}=n,c=Uk(mh,i),d=c.disabled||s,f=fh(i),p=ph(i),g=v.useRef(null),w=Ae(r,g),m=c.value===l.value,x=v.useRef(!1);return v.useEffect(()=>{const k=S=>{Fk.includes(S.key)&&(x.current=!0)},E=()=>x.current=!1;return document.addEventListener("keydown",k),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",k),document.removeEventListener("keyup",E)}},[]),y.jsx(Zp,{asChild:!0,...f,focusable:!d,active:m,children:y.jsx(ah,{disabled:d,required:c.required,checked:m,...p,...l,name:c.name,ref:w,onCheck:()=>c.onValueChange(l.value),onKeyDown:Ce(k=>{k.key==="Enter"&&k.preventDefault()}),onFocus:Ce(l.onFocus,()=>{var k;x.current&&((k=g.current)==null||k.click())})})})});gh.displayName=mh;var Hk="RadioGroupIndicator",vh=v.forwardRef((n,r)=>{const{__scopeRadioGroup:i,...s}=n,l=ph(i);return y.jsx(ch,{...l,...s,ref:r})});vh.displayName=Hk;var Vk=hh,Wk=gh,qk=vh;function Gk(n,r){return v.useReducer((i,s)=>r[i][s]??i,n)}var Ol="ScrollArea",[yh]=bt(Ol),[Yk,jt]=yh(Ol),wh=v.forwardRef((n,r)=>{const{__scopeScrollArea:i,type:s="hover",dir:l,scrollHideDelay:c=600,...d}=n,[f,p]=v.useState(null),[g,w]=v.useState(null),[m,x]=v.useState(null),[k,E]=v.useState(null),[S,C]=v.useState(null),[N,R]=v.useState(0),[P,M]=v.useState(0),[W,z]=v.useState(!1),[D,j]=v.useState(!1),q=Ae(r,U=>p(U)),Z=Uo(l);return y.jsx(Yk,{scope:i,type:s,dir:Z,scrollHideDelay:c,scrollArea:f,viewport:g,onViewportChange:w,content:m,onContentChange:x,scrollbarX:k,onScrollbarXChange:E,scrollbarXEnabled:W,onScrollbarXEnabledChange:z,scrollbarY:S,onScrollbarYChange:C,scrollbarYEnabled:D,onScrollbarYEnabledChange:j,onCornerWidthChange:R,onCornerHeightChange:M,children:y.jsx(be.div,{dir:Z,...d,ref:q,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":P+"px",...n.style}})})});wh.displayName=Ol;var xh="ScrollAreaViewport",bh=v.forwardRef((n,r)=>{const{__scopeScrollArea:i,children:s,nonce:l,...c}=n,d=jt(xh,i),f=v.useRef(null),p=Ae(r,f,d.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(be.div,{"data-radix-scroll-area-viewport":"",...c,ref:p,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...n.style},children:y.jsx("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});bh.displayName=xh;var un="ScrollAreaScrollbar",kh=v.forwardRef((n,r)=>{const{forceMount:i,...s}=n,l=jt(un,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:d}=l,f=n.orientation==="horizontal";return v.useEffect(()=>(f?c(!0):d(!0),()=>{f?c(!1):d(!1)}),[f,c,d]),l.type==="hover"?y.jsx(Kk,{...s,ref:r,forceMount:i}):l.type==="scroll"?y.jsx(Xk,{...s,ref:r,forceMount:i}):l.type==="auto"?y.jsx(Sh,{...s,ref:r,forceMount:i}):l.type==="always"?y.jsx(Dl,{...s,ref:r}):null});kh.displayName=un;var Kk=v.forwardRef((n,r)=>{const{forceMount:i,...s}=n,l=jt(un,n.__scopeScrollArea),[c,d]=v.useState(!1);return v.useEffect(()=>{const f=l.scrollArea;let p=0;if(f){const g=()=>{window.clearTimeout(p),d(!0)},w=()=>{p=window.setTimeout(()=>d(!1),l.scrollHideDelay)};return f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",w),()=>{window.clearTimeout(p),f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",w)}}},[l.scrollArea,l.scrollHideDelay]),y.jsx(Wt,{present:i||c,children:y.jsx(Sh,{"data-state":c?"visible":"hidden",...s,ref:r})})}),Xk=v.forwardRef((n,r)=>{const{forceMount:i,...s}=n,l=jt(un,n.__scopeScrollArea),c=n.orientation==="horizontal",d=ws(()=>p("SCROLL_END"),100),[f,p]=Gk("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 v.useEffect(()=>{if(f==="idle"){const g=window.setTimeout(()=>p("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(g)}},[f,l.scrollHideDelay,p]),v.useEffect(()=>{const g=l.viewport,w=c?"scrollLeft":"scrollTop";if(g){let m=g[w];const x=()=>{const k=g[w];m!==k&&(p("SCROLL"),d()),m=k};return g.addEventListener("scroll",x),()=>g.removeEventListener("scroll",x)}},[l.viewport,c,p,d]),y.jsx(Wt,{present:i||f!=="hidden",children:y.jsx(Dl,{"data-state":f==="hidden"?"hidden":"visible",...s,ref:r,onPointerEnter:Ce(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:Ce(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),Sh=v.forwardRef((n,r)=>{const i=jt(un,n.__scopeScrollArea),{forceMount:s,...l}=n,[c,d]=v.useState(!1),f=n.orientation==="horizontal",p=ws(()=>{if(i.viewport){const g=i.viewport.offsetWidth<i.viewport.scrollWidth,w=i.viewport.offsetHeight<i.viewport.scrollHeight;d(f?g:w)}},10);return oo(i.viewport,p),oo(i.content,p),y.jsx(Wt,{present:s||c,children:y.jsx(Dl,{"data-state":c?"visible":"hidden",...l,ref:r})})}),Dl=v.forwardRef((n,r)=>{const{orientation:i="vertical",...s}=n,l=jt(un,n.__scopeScrollArea),c=v.useRef(null),d=v.useRef(0),[f,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=Rh(f.viewport,f.content),w={...s,sizes:f,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:x=>c.current=x,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:x=>d.current=x};function m(x,k){return nS(x,d.current,f,k)}return i==="horizontal"?y.jsx(Qk,{...w,ref:r,onThumbPositionChange:()=>{if(l.viewport&&c.current){const x=l.viewport.scrollLeft,k=Th(x,f,l.dir);c.current.style.transform=`translate3d(${k}px, 0, 0)`}},onWheelScroll:x=>{l.viewport&&(l.viewport.scrollLeft=x)},onDragScroll:x=>{l.viewport&&(l.viewport.scrollLeft=m(x,l.dir))}}):i==="vertical"?y.jsx(Zk,{...w,ref:r,onThumbPositionChange:()=>{if(l.viewport&&c.current){const x=l.viewport.scrollTop,k=Th(x,f);c.current.style.transform=`translate3d(0, ${k}px, 0)`}},onWheelScroll:x=>{l.viewport&&(l.viewport.scrollTop=x)},onDragScroll:x=>{l.viewport&&(l.viewport.scrollTop=m(x))}}):null}),Qk=v.forwardRef((n,r)=>{const{sizes:i,onSizesChange:s,...l}=n,c=jt(un,n.__scopeScrollArea),[d,f]=v.useState(),p=v.useRef(null),g=Ae(r,p,c.onScrollbarXChange);return v.useEffect(()=>{p.current&&f(getComputedStyle(p.current))},[p]),y.jsx(Eh,{"data-orientation":"horizontal",...l,ref:g,sizes:i,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ys(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.x),onDragScroll:w=>n.onDragScroll(w.x),onWheelScroll:(w,m)=>{if(c.viewport){const x=c.viewport.scrollLeft+w.deltaX;n.onWheelScroll(x),Ih(x,m)&&w.preventDefault()}},onResize:()=>{p.current&&c.viewport&&d&&s({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:vs(d.paddingLeft),paddingEnd:vs(d.paddingRight)}})}})}),Zk=v.forwardRef((n,r)=>{const{sizes:i,onSizesChange:s,...l}=n,c=jt(un,n.__scopeScrollArea),[d,f]=v.useState(),p=v.useRef(null),g=Ae(r,p,c.onScrollbarYChange);return v.useEffect(()=>{p.current&&f(getComputedStyle(p.current))},[p]),y.jsx(Eh,{"data-orientation":"vertical",...l,ref:g,sizes:i,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ys(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.y),onDragScroll:w=>n.onDragScroll(w.y),onWheelScroll:(w,m)=>{if(c.viewport){const x=c.viewport.scrollTop+w.deltaY;n.onWheelScroll(x),Ih(x,m)&&w.preventDefault()}},onResize:()=>{p.current&&c.viewport&&d&&s({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:vs(d.paddingTop),paddingEnd:vs(d.paddingBottom)}})}})}),[Jk,Ch]=yh(un),Eh=v.forwardRef((n,r)=>{const{__scopeScrollArea:i,sizes:s,hasThumb:l,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:f,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:w,onResize:m,...x}=n,k=jt(un,i),[E,S]=v.useState(null),C=Ae(r,q=>S(q)),N=v.useRef(null),R=v.useRef(""),P=k.viewport,M=s.content-s.viewport,W=ut(w),z=ut(p),D=ws(m,10);function j(q){if(N.current){const Z=q.clientX-N.current.left,U=q.clientY-N.current.top;g({x:Z,y:U})}}return v.useEffect(()=>{const q=Z=>{const U=Z.target;(E==null?void 0:E.contains(U))&&W(Z,M)};return document.addEventListener("wheel",q,{passive:!1}),()=>document.removeEventListener("wheel",q,{passive:!1})},[P,E,M,W]),v.useEffect(z,[s,z]),oo(E,D),oo(k.content,D),y.jsx(Jk,{scope:i,scrollbar:E,hasThumb:l,onThumbChange:ut(c),onThumbPointerUp:ut(d),onThumbPositionChange:z,onThumbPointerDown:ut(f),children:y.jsx(be.div,{...x,ref:C,style:{position:"absolute",...x.style},onPointerDown:Ce(n.onPointerDown,q=>{q.button===0&&(q.target.setPointerCapture(q.pointerId),N.current=E.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k.viewport&&(k.viewport.style.scrollBehavior="auto"),j(q))}),onPointerMove:Ce(n.onPointerMove,j),onPointerUp:Ce(n.onPointerUp,q=>{const Z=q.target;Z.hasPointerCapture(q.pointerId)&&Z.releasePointerCapture(q.pointerId),document.body.style.webkitUserSelect=R.current,k.viewport&&(k.viewport.style.scrollBehavior=""),N.current=null})})})}),gs="ScrollAreaThumb",Nh=v.forwardRef((n,r)=>{const{forceMount:i,...s}=n,l=Ch(gs,n.__scopeScrollArea);return y.jsx(Wt,{present:i||l.hasThumb,children:y.jsx(eS,{ref:r,...s})})}),eS=v.forwardRef((n,r)=>{const{__scopeScrollArea:i,style:s,...l}=n,c=jt(gs,i),d=Ch(gs,i),{onThumbPositionChange:f}=d,p=Ae(r,m=>d.onThumbChange(m)),g=v.useRef(void 0),w=ws(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const m=c.viewport;if(m){const x=()=>{if(w(),!g.current){const k=rS(m,f);g.current=k,f()}};return f(),m.addEventListener("scroll",x),()=>m.removeEventListener("scroll",x)}},[c.viewport,w,f]),y.jsx(be.div,{"data-state":d.hasThumb?"visible":"hidden",...l,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:Ce(n.onPointerDownCapture,m=>{const k=m.target.getBoundingClientRect(),E=m.clientX-k.left,S=m.clientY-k.top;d.onThumbPointerDown({x:E,y:S})}),onPointerUp:Ce(n.onPointerUp,d.onThumbPointerUp)})});Nh.displayName=gs;var Fl="ScrollAreaCorner",_h=v.forwardRef((n,r)=>{const i=jt(Fl,n.__scopeScrollArea),s=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&s?y.jsx(tS,{...n,ref:r}):null});_h.displayName=Fl;var tS=v.forwardRef((n,r)=>{const{__scopeScrollArea:i,...s}=n,l=jt(Fl,i),[c,d]=v.useState(0),[f,p]=v.useState(0),g=!!(c&&f);return oo(l.scrollbarX,()=>{var m;const w=((m=l.scrollbarX)==null?void 0:m.offsetHeight)||0;l.onCornerHeightChange(w),p(w)}),oo(l.scrollbarY,()=>{var m;const w=((m=l.scrollbarY)==null?void 0:m.offsetWidth)||0;l.onCornerWidthChange(w),d(w)}),g?y.jsx(be.div,{...s,ref:r,style:{width:c,height:f,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function vs(n){return n?parseInt(n,10):0}function Rh(n,r){const i=n/r;return isNaN(i)?0:i}function ys(n){const r=Rh(n.viewport,n.content),i=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,s=(n.scrollbar.size-i)*r;return Math.max(s,18)}function nS(n,r,i,s="ltr"){const l=ys(i),c=l/2,d=r||c,f=l-d,p=i.scrollbar.paddingStart+d,g=i.scrollbar.size-i.scrollbar.paddingEnd-f,w=i.content-i.viewport,m=s==="ltr"?[0,w]:[w*-1,0];return Ph([p,g],m)(n)}function Th(n,r,i="ltr"){const s=ys(r),l=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,c=r.scrollbar.size-l,d=r.content-r.viewport,f=c-s,p=i==="ltr"?[0,d]:[d*-1,0],g=Ml(n,p);return Ph([0,d],[0,f])(g)}function Ph(n,r){return i=>{if(n[0]===n[1]||r[0]===r[1])return r[0];const s=(r[1]-r[0])/(n[1]-n[0]);return r[0]+s*(i-n[0])}}function Ih(n,r){return n>0&&n<r}var rS=(n,r=()=>{})=>{let i={left:n.scrollLeft,top:n.scrollTop},s=0;return(function l(){const c={left:n.scrollLeft,top:n.scrollTop},d=i.left!==c.left,f=i.top!==c.top;(d||f)&&r(),i=c,s=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(s)};function ws(n,r){const i=ut(n),s=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(s.current),[]),v.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(i,r)},[i,r])}function oo(n,r){const i=ut(r);We(()=>{let s=0;if(n){const l=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(i)});return l.observe(n),()=>{window.cancelAnimationFrame(s),l.unobserve(n)}}},[n,i])}var oS=wh,iS=bh,sS=_h,aS=[" ","Enter","ArrowUp","ArrowDown"],lS=[" ","Enter"],Sr="Select",[xs,bs,cS]=vf(Sr),[io]=bt(Sr,[cS,fs]),ks=fs(),[uS,$n]=io(Sr),[dS,fS]=io(Sr),Ah=n=>{const{__scopeSelect:r,children:i,open:s,defaultOpen:l,onOpenChange:c,value:d,defaultValue:f,onValueChange:p,dir:g,name:w,autoComplete:m,disabled:x,required:k,form:E}=n,S=ks(r),[C,N]=v.useState(null),[R,P]=v.useState(null),[M,W]=v.useState(!1),z=Uo(g),[D,j]=wn({prop:s,defaultProp:l??!1,onChange:c,caller:Sr}),[q,Z]=wn({prop:d,defaultProp:f,onChange:p,caller:Sr}),U=v.useRef(null),K=C?E||!!C.closest("form"):!0,[X,Y]=v.useState(new Set),ue=Array.from(X).map(Q=>Q.props.value).join(";");return y.jsx(Up,{...S,children:y.jsxs(uS,{required:k,scope:r,trigger:C,onTriggerChange:N,valueNode:R,onValueNodeChange:P,valueNodeHasChildren:M,onValueNodeHasChildrenChange:W,contentId:xr(),value:q,onValueChange:Z,open:D,onOpenChange:j,dir:z,triggerPointerDownPosRef:U,disabled:x,children:[y.jsx(xs.Provider,{scope:r,children:y.jsx(dS,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(Q=>{Y(ne=>new Set(ne).add(Q))},[]),onNativeOptionRemove:v.useCallback(Q=>{Y(ne=>{const G=new Set(ne);return G.delete(Q),G})},[]),children:i})}),K?y.jsxs(em,{"aria-hidden":!0,required:k,tabIndex:-1,name:w,autoComplete:m,value:q,onChange:Q=>Z(Q.target.value),disabled:x,form:E,children:[q===void 0?y.jsx("option",{value:""}):null,Array.from(X)]},ue):null]})})};Ah.displayName=Sr;var Mh="SelectTrigger",jh=v.forwardRef((n,r)=>{const{__scopeSelect:i,disabled:s=!1,...l}=n,c=ks(i),d=$n(Mh,i),f=d.disabled||s,p=Ae(r,d.onTriggerChange),g=bs(i),w=v.useRef("touch"),[m,x,k]=nm(S=>{const C=g().filter(P=>!P.disabled),N=C.find(P=>P.value===d.value),R=rm(C,S,N);R!==void 0&&d.onValueChange(R.value)}),E=S=>{f||(d.onOpenChange(!0),k()),S&&(d.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return y.jsx(Hp,{asChild:!0,...c,children:y.jsx(be.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":tm(d.value)?"":void 0,...l,ref:p,onClick:Ce(l.onClick,S=>{S.currentTarget.focus(),w.current!=="mouse"&&E(S)}),onPointerDown:Ce(l.onPointerDown,S=>{w.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(E(S),S.preventDefault())}),onKeyDown:Ce(l.onKeyDown,S=>{const C=m.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&x(S.key),!(C&&S.key===" ")&&aS.includes(S.key)&&(E(),S.preventDefault())})})})});jh.displayName=Mh;var Lh="SelectValue",zh=v.forwardRef((n,r)=>{const{__scopeSelect:i,className:s,style:l,children:c,placeholder:d="",...f}=n,p=$n(Lh,i),{onValueNodeHasChildrenChange:g}=p,w=c!==void 0,m=Ae(r,p.onValueNodeChange);return We(()=>{g(w)},[g,w]),y.jsx(be.span,{...f,ref:m,style:{pointerEvents:"none"},children:tm(p.value)?y.jsx(y.Fragment,{children:d}):c})});zh.displayName=Lh;var pS="SelectIcon",Oh=v.forwardRef((n,r)=>{const{__scopeSelect:i,children:s,...l}=n;return y.jsx(be.span,{"aria-hidden":!0,...l,ref:r,children:s||"▼"})});Oh.displayName=pS;var hS="SelectPortal",Dh=n=>y.jsx(sl,{asChild:!0,...n});Dh.displayName=hS;var Cr="SelectContent",Fh=v.forwardRef((n,r)=>{const i=$n(Cr,n.__scopeSelect),[s,l]=v.useState();if(We(()=>{l(new DocumentFragment)},[]),!i.open){const c=s;return c?Oo.createPortal(y.jsx(Bh,{scope:n.__scopeSelect,children:y.jsx(xs.Slot,{scope:n.__scopeSelect,children:y.jsx("div",{children:n.children})})}),c):null}return y.jsx($h,{...n,ref:r})});Fh.displayName=Cr;var Yt=10,[Bh,Un]=io(Cr),mS="SelectContentImpl",gS=$o("SelectContent.RemoveScroll"),$h=v.forwardRef((n,r)=>{const{__scopeSelect:i,position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,side:f,sideOffset:p,align:g,alignOffset:w,arrowPadding:m,collisionBoundary:x,collisionPadding:k,sticky:E,hideWhenDetached:S,avoidCollisions:C,...N}=n,R=$n(Cr,i),[P,M]=v.useState(null),[W,z]=v.useState(null),D=Ae(r,ie=>M(ie)),[j,q]=v.useState(null),[Z,U]=v.useState(null),K=bs(i),[X,Y]=v.useState(!1),ue=v.useRef(!1);v.useEffect(()=>{if(P)return $1(P)},[P]),t1();const Q=v.useCallback(ie=>{const[re,...de]=K().map(Re=>Re.ref.current),[ye]=de.slice(-1),_e=document.activeElement;for(const Re of ie)if(Re===_e||(Re==null||Re.scrollIntoView({block:"nearest"}),Re===re&&W&&(W.scrollTop=0),Re===ye&&W&&(W.scrollTop=W.scrollHeight),Re==null||Re.focus(),document.activeElement!==_e))return},[K,W]),ne=v.useCallback(()=>Q([j,P]),[Q,j,P]);v.useEffect(()=>{X&&ne()},[X,ne]);const{onOpenChange:G,triggerPointerDownPosRef:F}=R;v.useEffect(()=>{if(P){let ie={x:0,y:0};const re=ye=>{var _e,Re;ie={x:Math.abs(Math.round(ye.pageX)-(((_e=F.current)==null?void 0:_e.x)??0)),y:Math.abs(Math.round(ye.pageY)-(((Re=F.current)==null?void 0:Re.y)??0))}},de=ye=>{ie.x<=10&&ie.y<=10?ye.preventDefault():P.contains(ye.target)||G(!1),document.removeEventListener("pointermove",re),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",de,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",de,{capture:!0})}}},[P,G,F]),v.useEffect(()=>{const ie=()=>G(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[G]);const[I,_]=nm(ie=>{const re=K().filter(_e=>!_e.disabled),de=re.find(_e=>_e.ref.current===document.activeElement),ye=rm(re,ie,de);ye&&setTimeout(()=>ye.ref.current.focus())}),O=v.useCallback((ie,re,de)=>{const ye=!ue.current&&!de;(R.value!==void 0&&R.value===re||ye)&&(q(ie),ye&&(ue.current=!0))},[R.value]),H=v.useCallback(()=>P==null?void 0:P.focus(),[P]),J=v.useCallback((ie,re,de)=>{const ye=!ue.current&&!de;(R.value!==void 0&&R.value===re||ye)&&U(ie)},[R.value]),ee=s==="popper"?Bl:Uh,ce=ee===Bl?{side:f,sideOffset:p,align:g,alignOffset:w,arrowPadding:m,collisionBoundary:x,collisionPadding:k,sticky:E,hideWhenDetached:S,avoidCollisions:C}:{};return y.jsx(Bh,{scope:i,content:P,viewport:W,onViewportChange:z,itemRefCallback:O,selectedItem:j,onItemLeave:H,itemTextRefCallback:J,focusSelectedItem:ne,selectedItemText:Z,position:s,isPositioned:X,searchRef:I,children:y.jsx(Wf,{as:gS,allowPinchZoom:!0,children:y.jsx(_f,{asChild:!0,trapped:R.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:Ce(l,ie=>{var re;(re=R.trigger)==null||re.focus({preventScroll:!0}),ie.preventDefault()}),children:y.jsx(rl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:y.jsx(ee,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:ie=>ie.preventDefault(),...N,...ce,onPlaced:()=>Y(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Ce(N.onKeyDown,ie=>{const re=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!re&&ie.key.length===1&&_(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let ye=K().filter(_e=>!_e.disabled).map(_e=>_e.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const _e=ie.target,Re=ye.indexOf(_e);ye=ye.slice(Re+1)}setTimeout(()=>Q(ye)),ie.preventDefault()}})})})})})})});$h.displayName=mS;var vS="SelectItemAlignedPosition",Uh=v.forwardRef((n,r)=>{const{__scopeSelect:i,onPlaced:s,...l}=n,c=$n(Cr,i),d=Un(Cr,i),[f,p]=v.useState(null),[g,w]=v.useState(null),m=Ae(r,D=>w(D)),x=bs(i),k=v.useRef(!1),E=v.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:N,focusSelectedItem:R}=d,P=v.useCallback(()=>{if(c.trigger&&c.valueNode&&f&&g&&S&&C&&N){const D=c.trigger.getBoundingClientRect(),j=g.getBoundingClientRect(),q=c.valueNode.getBoundingClientRect(),Z=N.getBoundingClientRect();if(c.dir!=="rtl"){const _e=Z.left-j.left,Re=q.left-_e,Fe=D.left-Re,$e=D.width+Fe,fn=Math.max($e,j.width),Kt=window.innerWidth-Yt,gt=Ml(Re,[Yt,Math.max(Yt,Kt-fn)]);f.style.minWidth=$e+"px",f.style.left=gt+"px"}else{const _e=j.right-Z.right,Re=window.innerWidth-q.right-_e,Fe=window.innerWidth-D.right-Re,$e=D.width+Fe,fn=Math.max($e,j.width),Kt=window.innerWidth-Yt,gt=Ml(Re,[Yt,Math.max(Yt,Kt-fn)]);f.style.minWidth=$e+"px",f.style.right=gt+"px"}const U=x(),K=window.innerHeight-Yt*2,X=S.scrollHeight,Y=window.getComputedStyle(g),ue=parseInt(Y.borderTopWidth,10),Q=parseInt(Y.paddingTop,10),ne=parseInt(Y.borderBottomWidth,10),G=parseInt(Y.paddingBottom,10),F=ue+Q+X+G+ne,I=Math.min(C.offsetHeight*5,F),_=window.getComputedStyle(S),O=parseInt(_.paddingTop,10),H=parseInt(_.paddingBottom,10),J=D.top+D.height/2-Yt,ee=K-J,ce=C.offsetHeight/2,ie=C.offsetTop+ce,re=ue+Q+ie,de=F-re;if(re<=J){const _e=U.length>0&&C===U[U.length-1].ref.current;f.style.bottom="0px";const Re=g.clientHeight-S.offsetTop-S.offsetHeight,Fe=Math.max(ee,ce+(_e?H:0)+Re+ne),$e=re+Fe;f.style.height=$e+"px"}else{const _e=U.length>0&&C===U[0].ref.current;f.style.top="0px";const Fe=Math.max(J,ue+S.offsetTop+(_e?O:0)+ce)+de;f.style.height=Fe+"px",S.scrollTop=re-J+S.offsetTop}f.style.margin=`${Yt}px 0`,f.style.minHeight=I+"px",f.style.maxHeight=K+"px",s==null||s(),requestAnimationFrame(()=>k.current=!0)}},[x,c.trigger,c.valueNode,f,g,S,C,N,c.dir,s]);We(()=>P(),[P]);const[M,W]=v.useState();We(()=>{g&&W(window.getComputedStyle(g).zIndex)},[g]);const z=v.useCallback(D=>{D&&E.current===!0&&(P(),R==null||R(),E.current=!1)},[P,R]);return y.jsx(wS,{scope:i,contentWrapper:f,shouldExpandOnScrollRef:k,onScrollButtonChange:z,children:y.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:y.jsx(be.div,{...l,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});Uh.displayName=vS;var yS="SelectPopperPosition",Bl=v.forwardRef((n,r)=>{const{__scopeSelect:i,align:s="start",collisionPadding:l=Yt,...c}=n,d=ks(i);return y.jsx(Vp,{...d,...c,ref:r,align:s,collisionPadding:l,style:{boxSizing:"border-box",...c.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)"}})});Bl.displayName=yS;var[wS,$l]=io(Cr,{}),Ul="SelectViewport",Hh=v.forwardRef((n,r)=>{const{__scopeSelect:i,nonce:s,...l}=n,c=Un(Ul,i),d=$l(Ul,i),f=Ae(r,c.onViewportChange),p=v.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:s}),y.jsx(xs.Slot,{scope:i,children:y.jsx(be.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Ce(l.onScroll,g=>{const w=g.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:x}=d;if(x!=null&&x.current&&m){const k=Math.abs(p.current-w.scrollTop);if(k>0){const E=window.innerHeight-Yt*2,S=parseFloat(m.style.minHeight),C=parseFloat(m.style.height),N=Math.max(S,C);if(N<E){const R=N+k,P=Math.min(E,R),M=R-P;m.style.height=P+"px",m.style.bottom==="0px"&&(w.scrollTop=M>0?M:0,m.style.justifyContent="flex-end")}}}p.current=w.scrollTop})})})]})});Hh.displayName=Ul;var Vh="SelectGroup",[xS,bS]=io(Vh),kS=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n,l=xr();return y.jsx(xS,{scope:i,id:l,children:y.jsx(be.div,{role:"group","aria-labelledby":l,...s,ref:r})})});kS.displayName=Vh;var Wh="SelectLabel",SS=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n,l=bS(Wh,i);return y.jsx(be.div,{id:l.id,...s,ref:r})});SS.displayName=Wh;var Ss="SelectItem",[CS,qh]=io(Ss),Gh=v.forwardRef((n,r)=>{const{__scopeSelect:i,value:s,disabled:l=!1,textValue:c,...d}=n,f=$n(Ss,i),p=Un(Ss,i),g=f.value===s,[w,m]=v.useState(c??""),[x,k]=v.useState(!1),E=Ae(r,R=>{var P;return(P=p.itemRefCallback)==null?void 0:P.call(p,R,s,l)}),S=xr(),C=v.useRef("touch"),N=()=>{l||(f.onValueChange(s),f.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(CS,{scope:i,value:s,disabled:l,textId:S,isSelected:g,onItemTextChange:v.useCallback(R=>{m(P=>P||((R==null?void 0:R.textContent)??"").trim())},[]),children:y.jsx(xs.ItemSlot,{scope:i,value:s,disabled:l,textValue:w,children:y.jsx(be.div,{role:"option","aria-labelledby":S,"data-highlighted":x?"":void 0,"aria-selected":g&&x,"data-state":g?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...d,ref:E,onFocus:Ce(d.onFocus,()=>k(!0)),onBlur:Ce(d.onBlur,()=>k(!1)),onClick:Ce(d.onClick,()=>{C.current!=="mouse"&&N()}),onPointerUp:Ce(d.onPointerUp,()=>{C.current==="mouse"&&N()}),onPointerDown:Ce(d.onPointerDown,R=>{C.current=R.pointerType}),onPointerMove:Ce(d.onPointerMove,R=>{var P;C.current=R.pointerType,l?(P=p.onItemLeave)==null||P.call(p):C.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ce(d.onPointerLeave,R=>{var P;R.currentTarget===document.activeElement&&((P=p.onItemLeave)==null||P.call(p))}),onKeyDown:Ce(d.onKeyDown,R=>{var M;((M=p.searchRef)==null?void 0:M.current)!==""&&R.key===" "||(lS.includes(R.key)&&N(),R.key===" "&&R.preventDefault())})})})})});Gh.displayName=Ss;var qo="SelectItemText",Yh=v.forwardRef((n,r)=>{const{__scopeSelect:i,className:s,style:l,...c}=n,d=$n(qo,i),f=Un(qo,i),p=qh(qo,i),g=fS(qo,i),[w,m]=v.useState(null),x=Ae(r,N=>m(N),p.onItemTextChange,N=>{var R;return(R=f.itemTextRefCallback)==null?void 0:R.call(f,N,p.value,p.disabled)}),k=w==null?void 0:w.textContent,E=v.useMemo(()=>y.jsx("option",{value:p.value,disabled:p.disabled,children:k},p.value),[p.disabled,p.value,k]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=g;return We(()=>(S(E),()=>C(E)),[S,C,E]),y.jsxs(y.Fragment,{children:[y.jsx(be.span,{id:p.textId,...c,ref:x}),p.isSelected&&d.valueNode&&!d.valueNodeHasChildren?Oo.createPortal(c.children,d.valueNode):null]})});Yh.displayName=qo;var Kh="SelectItemIndicator",Xh=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n;return qh(Kh,i).isSelected?y.jsx(be.span,{"aria-hidden":!0,...s,ref:r}):null});Xh.displayName=Kh;var Hl="SelectScrollUpButton",Qh=v.forwardRef((n,r)=>{const i=Un(Hl,n.__scopeSelect),s=$l(Hl,n.__scopeSelect),[l,c]=v.useState(!1),d=Ae(r,s.onScrollButtonChange);return We(()=>{if(i.viewport&&i.isPositioned){let f=function(){const g=p.scrollTop>0;c(g)};const p=i.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[i.viewport,i.isPositioned]),l?y.jsx(Jh,{...n,ref:d,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=i;f&&p&&(f.scrollTop=f.scrollTop-p.offsetHeight)}}):null});Qh.displayName=Hl;var Vl="SelectScrollDownButton",Zh=v.forwardRef((n,r)=>{const i=Un(Vl,n.__scopeSelect),s=$l(Vl,n.__scopeSelect),[l,c]=v.useState(!1),d=Ae(r,s.onScrollButtonChange);return We(()=>{if(i.viewport&&i.isPositioned){let f=function(){const g=p.scrollHeight-p.clientHeight,w=Math.ceil(p.scrollTop)<g;c(w)};const p=i.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[i.viewport,i.isPositioned]),l?y.jsx(Jh,{...n,ref:d,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=i;f&&p&&(f.scrollTop=f.scrollTop+p.offsetHeight)}}):null});Zh.displayName=Vl;var Jh=v.forwardRef((n,r)=>{const{__scopeSelect:i,onAutoScroll:s,...l}=n,c=Un("SelectScrollButton",i),d=v.useRef(null),f=bs(i),p=v.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),We(()=>{var w;const g=f().find(m=>m.ref.current===document.activeElement);(w=g==null?void 0:g.ref.current)==null||w.scrollIntoView({block:"nearest"})},[f]),y.jsx(be.div,{"aria-hidden":!0,...l,ref:r,style:{flexShrink:0,...l.style},onPointerDown:Ce(l.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(s,50))}),onPointerMove:Ce(l.onPointerMove,()=>{var g;(g=c.onItemLeave)==null||g.call(c),d.current===null&&(d.current=window.setInterval(s,50))}),onPointerLeave:Ce(l.onPointerLeave,()=>{p()})})}),ES="SelectSeparator",NS=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n;return y.jsx(be.div,{"aria-hidden":!0,...s,ref:r})});NS.displayName=ES;var Wl="SelectArrow",_S=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n,l=ks(i),c=$n(Wl,i),d=Un(Wl,i);return c.open&&d.position==="popper"?y.jsx(Wp,{...l,...s,ref:r}):null});_S.displayName=Wl;var RS="SelectBubbleInput",em=v.forwardRef(({__scopeSelect:n,value:r,...i},s)=>{const l=v.useRef(null),c=Ae(s,l),d=Ji(r);return v.useEffect(()=>{const f=l.current;if(!f)return;const p=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(p,"value").set;if(d!==r&&w){const m=new Event("change",{bubbles:!0});w.call(f,r),f.dispatchEvent(m)}},[d,r]),y.jsx(be.select,{...i,style:{...mf,...i.style},ref:c,defaultValue:r})});em.displayName=RS;function tm(n){return n===""||n===void 0}function nm(n){const r=ut(n),i=v.useRef(""),s=v.useRef(0),l=v.useCallback(d=>{const f=i.current+d;r(f),(function p(g){i.current=g,window.clearTimeout(s.current),g!==""&&(s.current=window.setTimeout(()=>p(""),1e3))})(f)},[r]),c=v.useCallback(()=>{i.current="",window.clearTimeout(s.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(s.current),[]),[i,l,c]}function rm(n,r,i){const l=r.length>1&&Array.from(r).every(g=>g===r[0])?r[0]:r,c=i?n.indexOf(i):-1;let d=TS(n,Math.max(c,0));l.length===1&&(d=d.filter(g=>g!==i));const p=d.find(g=>g.textValue.toLowerCase().startsWith(l.toLowerCase()));return p!==i?p:void 0}function TS(n,r){return n.map((i,s)=>n[(r+s)%n.length])}var PS=Ah,IS=jh,AS=zh,MS=Oh,jS=Dh,LS=Fh,zS=Hh,OS=Gh,DS=Yh,FS=Xh,BS=Qh,$S=Zh,US="Separator",om="horizontal",HS=["horizontal","vertical"],im=v.forwardRef((n,r)=>{const{decorative:i,orientation:s=om,...l}=n,c=VS(s)?s:om,f=i?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return y.jsx(be.div,{"data-orientation":c,...f,...l,ref:r})});im.displayName=US;function VS(n){return HS.includes(n)}var WS=im,Cs="Switch",[qS]=bt(Cs),[GS,YS]=qS(Cs),sm=v.forwardRef((n,r)=>{const{__scopeSwitch:i,name:s,checked:l,defaultChecked:c,required:d,disabled:f,value:p="on",onCheckedChange:g,form:w,...m}=n,[x,k]=v.useState(null),E=Ae(r,P=>k(P)),S=v.useRef(!1),C=x?w||!!x.closest("form"):!0,[N,R]=wn({prop:l,defaultProp:c??!1,onChange:g,caller:Cs});return y.jsxs(GS,{scope:i,checked:N,disabled:f,children:[y.jsx(be.button,{type:"button",role:"switch","aria-checked":N,"aria-required":d,"data-state":um(N),"data-disabled":f?"":void 0,disabled:f,value:p,...m,ref:E,onClick:Ce(n.onClick,P=>{R(M=>!M),C&&(S.current=P.isPropagationStopped(),S.current||P.stopPropagation())})}),C&&y.jsx(cm,{control:x,bubbles:!S.current,name:s,value:p,checked:N,required:d,disabled:f,form:w,style:{transform:"translateX(-100%)"}})]})});sm.displayName=Cs;var am="SwitchThumb",lm=v.forwardRef((n,r)=>{const{__scopeSwitch:i,...s}=n,l=YS(am,i);return y.jsx(be.span,{"data-state":um(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:r})});lm.displayName=am;var KS="SwitchBubbleInput",cm=v.forwardRef(({__scopeSwitch:n,control:r,checked:i,bubbles:s=!0,...l},c)=>{const d=v.useRef(null),f=Ae(d,c),p=Ji(i),g=es(r);return v.useEffect(()=>{const w=d.current;if(!w)return;const m=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(m,"checked").set;if(p!==i&&k){const E=new Event("click",{bubbles:s});k.call(w,i),w.dispatchEvent(E)}},[p,i,s]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:f,style:{...l.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});cm.displayName=KS;function um(n){return n?"checked":"unchecked"}var XS=sm,QS=lm,Es="Tabs",[ZS]=bt(Es,[ps]),dm=ps(),[JS,ql]=ZS(Es),fm=v.forwardRef((n,r)=>{const{__scopeTabs:i,value:s,onValueChange:l,defaultValue:c,orientation:d="horizontal",dir:f,activationMode:p="automatic",...g}=n,w=Uo(f),[m,x]=wn({prop:s,onChange:l,defaultProp:c??"",caller:Es});return y.jsx(JS,{scope:i,baseId:xr(),value:m,onValueChange:x,orientation:d,dir:w,activationMode:p,children:y.jsx(be.div,{dir:w,"data-orientation":d,...g,ref:r})})});fm.displayName=Es;var pm="TabsList",hm=v.forwardRef((n,r)=>{const{__scopeTabs:i,loop:s=!0,...l}=n,c=ql(pm,i),d=dm(i);return y.jsx(Qp,{asChild:!0,...d,orientation:c.orientation,dir:c.dir,loop:s,children:y.jsx(be.div,{role:"tablist","aria-orientation":c.orientation,...l,ref:r})})});hm.displayName=pm;var mm="TabsTrigger",gm=v.forwardRef((n,r)=>{const{__scopeTabs:i,value:s,disabled:l=!1,...c}=n,d=ql(mm,i),f=dm(i),p=wm(d.baseId,s),g=xm(d.baseId,s),w=s===d.value;return y.jsx(Zp,{asChild:!0,...f,focusable:!l,active:w,children:y.jsx(be.button,{type:"button",role:"tab","aria-selected":w,"aria-controls":g,"data-state":w?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:p,...c,ref:r,onMouseDown:Ce(n.onMouseDown,m=>{!l&&m.button===0&&m.ctrlKey===!1?d.onValueChange(s):m.preventDefault()}),onKeyDown:Ce(n.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&d.onValueChange(s)}),onFocus:Ce(n.onFocus,()=>{const m=d.activationMode!=="manual";!w&&!l&&m&&d.onValueChange(s)})})})});gm.displayName=mm;var vm="TabsContent",ym=v.forwardRef((n,r)=>{const{__scopeTabs:i,value:s,forceMount:l,children:c,...d}=n,f=ql(vm,i),p=wm(f.baseId,s),g=xm(f.baseId,s),w=s===f.value,m=v.useRef(w);return v.useEffect(()=>{const x=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(x)},[]),y.jsx(Wt,{present:l||w,children:({present:x})=>y.jsx(be.div,{"data-state":w?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":p,hidden:!x,id:g,tabIndex:0,...d,ref:r,style:{...n.style,animationDuration:m.current?"0s":void 0},children:x&&c})})});ym.displayName=vm;function wm(n,r){return`${n}-trigger-${r}`}function xm(n,r){return`${n}-content-${r}`}var e2=fm,t2=hm,n2=gm,r2=ym,[Ns]=bt("Tooltip",[fs]),_s=fs(),bm="TooltipProvider",o2=700,Gl="tooltip.open",[i2,Yl]=Ns(bm),km=n=>{const{__scopeTooltip:r,delayDuration:i=o2,skipDelayDuration:s=300,disableHoverableContent:l=!1,children:c}=n,d=v.useRef(!0),f=v.useRef(!1),p=v.useRef(0);return v.useEffect(()=>{const g=p.current;return()=>window.clearTimeout(g)},[]),y.jsx(i2,{scope:r,isOpenDelayedRef:d,delayDuration:i,onOpen:v.useCallback(()=>{window.clearTimeout(p.current),d.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d.current=!0,s)},[s]),isPointerInTransitRef:f,onPointerInTransitChange:v.useCallback(g=>{f.current=g},[]),disableHoverableContent:l,children:c})};km.displayName=bm;var Go="Tooltip",[s2,Yo]=Ns(Go),Sm=n=>{const{__scopeTooltip:r,children:i,open:s,defaultOpen:l,onOpenChange:c,disableHoverableContent:d,delayDuration:f}=n,p=Yl(Go,n.__scopeTooltip),g=_s(r),[w,m]=v.useState(null),x=xr(),k=v.useRef(0),E=d??p.disableHoverableContent,S=f??p.delayDuration,C=v.useRef(!1),[N,R]=wn({prop:s,defaultProp:l??!1,onChange:D=>{D?(p.onOpen(),document.dispatchEvent(new CustomEvent(Gl))):p.onClose(),c==null||c(D)},caller:Go}),P=v.useMemo(()=>N?C.current?"delayed-open":"instant-open":"closed",[N]),M=v.useCallback(()=>{window.clearTimeout(k.current),k.current=0,C.current=!1,R(!0)},[R]),W=v.useCallback(()=>{window.clearTimeout(k.current),k.current=0,R(!1)},[R]),z=v.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>{C.current=!0,R(!0),k.current=0},S)},[S,R]);return v.useEffect(()=>()=>{k.current&&(window.clearTimeout(k.current),k.current=0)},[]),y.jsx(Up,{...g,children:y.jsx(s2,{scope:r,contentId:x,open:N,stateAttribute:P,trigger:w,onTriggerChange:m,onTriggerEnter:v.useCallback(()=>{p.isOpenDelayedRef.current?z():M()},[p.isOpenDelayedRef,z,M]),onTriggerLeave:v.useCallback(()=>{E?W():(window.clearTimeout(k.current),k.current=0)},[W,E]),onOpen:M,onClose:W,disableHoverableContent:E,children:i})})};Sm.displayName=Go;var Kl="TooltipTrigger",Cm=v.forwardRef((n,r)=>{const{__scopeTooltip:i,...s}=n,l=Yo(Kl,i),c=Yl(Kl,i),d=_s(i),f=v.useRef(null),p=Ae(r,f,l.onTriggerChange),g=v.useRef(!1),w=v.useRef(!1),m=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),y.jsx(Hp,{asChild:!0,...d,children:y.jsx(be.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...s,ref:p,onPointerMove:Ce(n.onPointerMove,x=>{x.pointerType!=="touch"&&!w.current&&!c.isPointerInTransitRef.current&&(l.onTriggerEnter(),w.current=!0)}),onPointerLeave:Ce(n.onPointerLeave,()=>{l.onTriggerLeave(),w.current=!1}),onPointerDown:Ce(n.onPointerDown,()=>{l.open&&l.onClose(),g.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Ce(n.onFocus,()=>{g.current||l.onOpen()}),onBlur:Ce(n.onBlur,l.onClose),onClick:Ce(n.onClick,l.onClose)})})});Cm.displayName=Kl;var Xl="TooltipPortal",[a2,l2]=Ns(Xl,{forceMount:void 0}),Em=n=>{const{__scopeTooltip:r,forceMount:i,children:s,container:l}=n,c=Yo(Xl,r);return y.jsx(a2,{scope:r,forceMount:i,children:y.jsx(Wt,{present:i||c.open,children:y.jsx(sl,{asChild:!0,container:l,children:s})})})};Em.displayName=Xl;var so="TooltipContent",Nm=v.forwardRef((n,r)=>{const i=l2(so,n.__scopeTooltip),{forceMount:s=i.forceMount,side:l="top",...c}=n,d=Yo(so,n.__scopeTooltip);return y.jsx(Wt,{present:s||d.open,children:d.disableHoverableContent?y.jsx(_m,{side:l,...c,ref:r}):y.jsx(c2,{side:l,...c,ref:r})})}),c2=v.forwardRef((n,r)=>{const i=Yo(so,n.__scopeTooltip),s=Yl(so,n.__scopeTooltip),l=v.useRef(null),c=Ae(r,l),[d,f]=v.useState(null),{trigger:p,onClose:g}=i,w=l.current,{onPointerInTransitChange:m}=s,x=v.useCallback(()=>{f(null),m(!1)},[m]),k=v.useCallback((E,S)=>{const C=E.currentTarget,N={x:E.clientX,y:E.clientY},R=p2(N,C.getBoundingClientRect()),P=h2(N,R),M=m2(S.getBoundingClientRect()),W=v2([...P,...M]);f(W),m(!0)},[m]);return v.useEffect(()=>()=>x(),[x]),v.useEffect(()=>{if(p&&w){const E=C=>k(C,w),S=C=>k(C,p);return p.addEventListener("pointerleave",E),w.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",E),w.removeEventListener("pointerleave",S)}}},[p,w,k,x]),v.useEffect(()=>{if(d){const E=S=>{const C=S.target,N={x:S.clientX,y:S.clientY},R=(p==null?void 0:p.contains(C))||(w==null?void 0:w.contains(C)),P=!g2(N,d);R?x():P&&(x(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,w,d,g,x]),y.jsx(_m,{...n,ref:c})}),[u2,d2]=Ns(Go,{isInside:!1}),f2=vx("TooltipContent"),_m=v.forwardRef((n,r)=>{const{__scopeTooltip:i,children:s,"aria-label":l,onEscapeKeyDown:c,onPointerDownOutside:d,...f}=n,p=Yo(so,i),g=_s(i),{onClose:w}=p;return v.useEffect(()=>(document.addEventListener(Gl,w),()=>document.removeEventListener(Gl,w)),[w]),v.useEffect(()=>{if(p.trigger){const m=x=>{const k=x.target;k!=null&&k.contains(p.trigger)&&w()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[p.trigger,w]),y.jsx(rl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:m=>m.preventDefault(),onDismiss:w,children:y.jsxs(Vp,{"data-state":p.stateAttribute,...g,...f,ref:r,style:{...f.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(f2,{children:s}),y.jsx(u2,{scope:i,isInside:!0,children:y.jsx(Cx,{id:p.contentId,role:"tooltip",children:l||s})})]})})});Nm.displayName=so;var Rm="TooltipArrow",Tm=v.forwardRef((n,r)=>{const{__scopeTooltip:i,...s}=n,l=_s(i);return d2(Rm,i).isInside?null:y.jsx(Wp,{...l,...s,ref:r})});Tm.displayName=Rm;function p2(n,r){const i=Math.abs(r.top-n.y),s=Math.abs(r.bottom-n.y),l=Math.abs(r.right-n.x),c=Math.abs(r.left-n.x);switch(Math.min(i,s,l,c)){case c:return"left";case l:return"right";case i:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function h2(n,r,i=5){const s=[];switch(r){case"top":s.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":s.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":s.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":s.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return s}function m2(n){const{top:r,right:i,bottom:s,left:l}=n;return[{x:l,y:r},{x:i,y:r},{x:i,y:s},{x:l,y:s}]}function g2(n,r){const{x:i,y:s}=n;let l=!1;for(let c=0,d=r.length-1;c<r.length;d=c++){const f=r[c],p=r[d],g=f.x,w=f.y,m=p.x,x=p.y;w>s!=x>s&&i<(m-g)*(s-w)/(x-w)+g&&(l=!l)}return l}function v2(n){const r=n.slice();return r.sort((i,s)=>i.x<s.x?-1:i.x>s.x?1:i.y<s.y?-1:i.y>s.y?1:0),y2(r)}function y2(n){if(n.length<=1)return n.slice();const r=[];for(let s=0;s<n.length;s++){const l=n[s];for(;r.length>=2;){const c=r[r.length-1],d=r[r.length-2];if((c.x-d.x)*(l.y-d.y)>=(c.y-d.y)*(l.x-d.x))r.pop();else break}r.push(l)}r.pop();const i=[];for(let s=n.length-1;s>=0;s--){const l=n[s];for(;i.length>=2;){const c=i[i.length-1],d=i[i.length-2];if((c.x-d.x)*(l.y-d.y)>=(c.y-d.y)*(l.x-d.x))i.pop();else break}i.push(l)}return i.pop(),r.length===1&&i.length===1&&r[0].x===i[0].x&&r[0].y===i[0].y?r:r.concat(i)}var w2=km,x2=Sm,b2=Cm,k2=Em,S2=Nm,C2=Tm;const E2=Hi("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Pm({className:n,variant:r="default",size:i="default",asChild:s=!1,...l}){const c=s?pf:"button";return y.jsx(c,{"data-slot":"button","data-variant":r,"data-size":i,className:we(E2({variant:r,size:i,className:n})),...l})}const N2={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"},_2=Hi("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 R2({className:n,variant:r="default",hue:i,asChild:s=!1,...l}){const c=s?pf:"span",d=i?N2[i]:void 0;return y.jsx(c,{"data-slot":"badge","data-variant":r,className:we(_2({variant:r}),d,n),...l})}function T2({className:n,type:r,...i}){return y.jsx("input",{type:r,"data-slot":"input",className:we("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 P2({className:n,...r}){return y.jsx("textarea",{"data-slot":"textarea",className:we("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),...r})}function I2({...n}){return y.jsx(PS,{"data-slot":"select",...n})}function A2({...n}){return y.jsx(AS,{"data-slot":"select-value",...n})}function M2({className:n,size:r="default",children:i,...s}){return y.jsxs(IS,{"data-slot":"select-trigger","data-size":r,className:we("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),...s,children:[i,y.jsx(MS,{asChild:!0,children:y.jsx(Md,{className:"size-4 opacity-50"})})]})}function j2({className:n,children:r,position:i="item-aligned",align:s="center",...l}){return y.jsx(jS,{children:y.jsxs(LS,{"data-slot":"select-content",className:we("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:s,...l,children:[y.jsx(z2,{}),y.jsx(zS,{className:we("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),y.jsx(O2,{})]})})}function L2({className:n,children:r,...i}){return y.jsxs(OS,{"data-slot":"select-item",className:we("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(FS,{children:y.jsx(Ad,{className:"size-4"})})}),y.jsx(DS,{children:r})]})}function z2({className:n,...r}){return y.jsx(BS,{"data-slot":"select-scroll-up-button",className:we("flex cursor-default items-center justify-center py-1",n),...r,children:y.jsx(lw,{className:"size-4"})})}function O2({className:n,...r}){return y.jsx($S,{"data-slot":"select-scroll-down-button",className:we("flex cursor-default items-center justify-center py-1",n),...r,children:y.jsx(Md,{className:"size-4"})})}function D2({className:n,...r}){return y.jsx(op,{"data-slot":"checkbox",className:we("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),...r,children:y.jsx(sp,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:y.jsx(Ad,{className:"size-3.5"})})})}function F2({className:n,size:r="default",...i}){return y.jsx(XS,{"data-slot":"switch","data-size":r,className:we("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(QS,{"data-slot":"switch-thumb",className:we("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 B2({className:n,...r}){return y.jsx(Nk,{"data-slot":"label",className:we("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),...r})}function $2({className:n,...r}){return y.jsx(Vk,{"data-slot":"radio-group",className:we("grid gap-3",n),...r})}function U2({className:n,...r}){return y.jsx(Wk,{"data-slot":"radio-group-item",className:we("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),...r,children:y.jsx(qk,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:y.jsx(uw,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"})})})}function H2({className:n,orientation:r="horizontal",decorative:i=!0,...s}){return y.jsx(WS,{"data-slot":"separator",decorative:i,orientation:r,className:we("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),...s})}function V2({className:n,orientation:r="horizontal",...i}){return y.jsx(e2,{"data-slot":"tabs","data-orientation":r,orientation:r,className:we("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",n),...i})}const W2=Hi("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 q2({className:n,variant:r="default",...i}){return y.jsx(t2,{"data-slot":"tabs-list","data-variant":r,className:we(W2({variant:r}),n),...i})}function G2({className:n,...r}){return y.jsx(n2,{"data-slot":"tabs-trigger",className:we("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),...r})}function Y2({className:n,...r}){return y.jsx(r2,{"data-slot":"tabs-content",className:we("flex-1 outline-none",n),...r})}function K2({className:n,children:r,...i}){return y.jsxs(oS,{"data-slot":"scroll-area",className:we("relative",n),...i,children:[y.jsx(iS,{"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:r}),y.jsx(X2,{}),y.jsx(sS,{})]})}function X2({className:n,orientation:r="vertical",...i}){return y.jsx(kh,{"data-slot":"scroll-area-scrollbar",orientation:r,className:we("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...i,children:y.jsx(Nh,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function Ql({className:n,size:r="default",...i}){return y.jsx(X1,{"data-slot":"avatar","data-size":r,className:we("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 Zl({className:n,...r}){return y.jsx(Q1,{"data-slot":"avatar-image",className:we("aspect-square size-full",n),...r})}function Jl({className:n,...r}){return y.jsx(Z1,{"data-slot":"avatar-fallback",className:we("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",n),...r})}var ao={},ec,Im;function Q2(){return Im||(Im=1,ec=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),ec}var tc={},Hn={},Am;function Er(){if(Am)return Hn;Am=1;let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Hn.getSymbolSize=function(s){if(!s)throw new Error('"version" cannot be null or undefined');if(s<1||s>40)throw new Error('"version" should be in range from 1 to 40');return s*4+17},Hn.getSymbolTotalCodewords=function(s){return r[s]},Hn.getBCHDigit=function(i){let s=0;for(;i!==0;)s++,i>>>=1;return s},Hn.setToSJISFunction=function(s){if(typeof s!="function")throw new Error('"toSJISFunc" is not a valid function.');n=s},Hn.isKanjiModeEnabled=function(){return typeof n<"u"},Hn.toSJIS=function(s){return n(s)},Hn}var nc={},Mm;function rc(){return Mm||(Mm=1,(function(n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+i)}}n.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},n.from=function(s,l){if(n.isValid(s))return s;try{return r(s)}catch{return l}}})(nc)),nc}var oc,jm;function Z2(){if(jm)return oc;jm=1;function n(){this.buffer=[],this.length=0}return n.prototype={get:function(r){const i=Math.floor(r/8);return(this.buffer[i]>>>7-r%8&1)===1},put:function(r,i){for(let s=0;s<i;s++)this.putBit((r>>>i-s-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),r&&(this.buffer[i]|=128>>>this.length%8),this.length++}},oc=n,oc}var ic,Lm;function J2(){if(Lm)return ic;Lm=1;function n(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return n.prototype.set=function(r,i,s,l){const c=r*this.size+i;this.data[c]=s,l&&(this.reservedBit[c]=!0)},n.prototype.get=function(r,i){return this.data[r*this.size+i]},n.prototype.xor=function(r,i,s){this.data[r*this.size+i]^=s},n.prototype.isReserved=function(r,i){return this.reservedBit[r*this.size+i]},ic=n,ic}var sc={},zm;function eC(){return zm||(zm=1,(function(n){const r=Er().getSymbolSize;n.getRowColCoords=function(s){if(s===1)return[];const l=Math.floor(s/7)+2,c=r(s),d=c===145?26:Math.ceil((c-13)/(2*l-2))*2,f=[c-7];for(let p=1;p<l-1;p++)f[p]=f[p-1]-d;return f.push(6),f.reverse()},n.getPositions=function(s){const l=[],c=n.getRowColCoords(s),d=c.length;for(let f=0;f<d;f++)for(let p=0;p<d;p++)f===0&&p===0||f===0&&p===d-1||f===d-1&&p===0||l.push([c[f],c[p]]);return l}})(sc)),sc}var ac={},Om;function tC(){if(Om)return ac;Om=1;const n=Er().getSymbolSize,r=7;return ac.getPositions=function(s){const l=n(s);return[[0,0],[l-r,0],[0,l-r]]},ac}var lc={},Dm;function nC(){return Dm||(Dm=1,(function(n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};n.isValid=function(l){return l!=null&&l!==""&&!isNaN(l)&&l>=0&&l<=7},n.from=function(l){return n.isValid(l)?parseInt(l,10):void 0},n.getPenaltyN1=function(l){const c=l.size;let d=0,f=0,p=0,g=null,w=null;for(let m=0;m<c;m++){f=p=0,g=w=null;for(let x=0;x<c;x++){let k=l.get(m,x);k===g?f++:(f>=5&&(d+=r.N1+(f-5)),g=k,f=1),k=l.get(x,m),k===w?p++:(p>=5&&(d+=r.N1+(p-5)),w=k,p=1)}f>=5&&(d+=r.N1+(f-5)),p>=5&&(d+=r.N1+(p-5))}return d},n.getPenaltyN2=function(l){const c=l.size;let d=0;for(let f=0;f<c-1;f++)for(let p=0;p<c-1;p++){const g=l.get(f,p)+l.get(f,p+1)+l.get(f+1,p)+l.get(f+1,p+1);(g===4||g===0)&&d++}return d*r.N2},n.getPenaltyN3=function(l){const c=l.size;let d=0,f=0,p=0;for(let g=0;g<c;g++){f=p=0;for(let w=0;w<c;w++)f=f<<1&2047|l.get(g,w),w>=10&&(f===1488||f===93)&&d++,p=p<<1&2047|l.get(w,g),w>=10&&(p===1488||p===93)&&d++}return d*r.N3},n.getPenaltyN4=function(l){let c=0;const d=l.data.length;for(let p=0;p<d;p++)c+=l.data[p];return Math.abs(Math.ceil(c*100/d/5)-10)*r.N4};function i(s,l,c){switch(s){case n.Patterns.PATTERN000:return(l+c)%2===0;case n.Patterns.PATTERN001:return l%2===0;case n.Patterns.PATTERN010:return c%3===0;case n.Patterns.PATTERN011:return(l+c)%3===0;case n.Patterns.PATTERN100:return(Math.floor(l/2)+Math.floor(c/3))%2===0;case n.Patterns.PATTERN101:return l*c%2+l*c%3===0;case n.Patterns.PATTERN110:return(l*c%2+l*c%3)%2===0;case n.Patterns.PATTERN111:return(l*c%3+(l+c)%2)%2===0;default:throw new Error("bad maskPattern:"+s)}}n.applyMask=function(l,c){const d=c.size;for(let f=0;f<d;f++)for(let p=0;p<d;p++)c.isReserved(p,f)||c.xor(p,f,i(l,p,f))},n.getBestMask=function(l,c){const d=Object.keys(n.Patterns).length;let f=0,p=1/0;for(let g=0;g<d;g++){c(g),n.applyMask(g,l);const w=n.getPenaltyN1(l)+n.getPenaltyN2(l)+n.getPenaltyN3(l)+n.getPenaltyN4(l);n.applyMask(g,l),w<p&&(p=w,f=g)}return f}})(lc)),lc}var Rs={},Fm;function Bm(){if(Fm)return Rs;Fm=1;const n=rc(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Rs.getBlocksCount=function(l,c){switch(c){case n.L:return r[(l-1)*4+0];case n.M:return r[(l-1)*4+1];case n.Q:return r[(l-1)*4+2];case n.H:return r[(l-1)*4+3];default:return}},Rs.getTotalCodewordsCount=function(l,c){switch(c){case n.L:return i[(l-1)*4+0];case n.M:return i[(l-1)*4+1];case n.Q:return i[(l-1)*4+2];case n.H:return i[(l-1)*4+3];default:return}},Rs}var cc={},Ko={},$m;function rC(){if($m)return Ko;$m=1;const n=new Uint8Array(512),r=new Uint8Array(256);return(function(){let s=1;for(let l=0;l<255;l++)n[l]=s,r[s]=l,s<<=1,s&256&&(s^=285);for(let l=255;l<512;l++)n[l]=n[l-255]})(),Ko.log=function(s){if(s<1)throw new Error("log("+s+")");return r[s]},Ko.exp=function(s){return n[s]},Ko.mul=function(s,l){return s===0||l===0?0:n[r[s]+r[l]]},Ko}var Um;function oC(){return Um||(Um=1,(function(n){const r=rC();n.mul=function(s,l){const c=new Uint8Array(s.length+l.length-1);for(let d=0;d<s.length;d++)for(let f=0;f<l.length;f++)c[d+f]^=r.mul(s[d],l[f]);return c},n.mod=function(s,l){let c=new Uint8Array(s);for(;c.length-l.length>=0;){const d=c[0];for(let p=0;p<l.length;p++)c[p]^=r.mul(l[p],d);let f=0;for(;f<c.length&&c[f]===0;)f++;c=c.slice(f)}return c},n.generateECPolynomial=function(s){let l=new Uint8Array([1]);for(let c=0;c<s;c++)l=n.mul(l,new Uint8Array([1,r.exp(c)]));return l}})(cc)),cc}var uc,Hm;function iC(){if(Hm)return uc;Hm=1;const n=oC();function r(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(s){this.degree=s,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(s){if(!this.genPoly)throw new Error("Encoder not initialized");const l=new Uint8Array(s.length+this.degree);l.set(s);const c=n.mod(l,this.genPoly),d=this.degree-c.length;if(d>0){const f=new Uint8Array(this.degree);return f.set(c,d),f}return c},uc=r,uc}var dc={},fc={},pc={},Vm;function Wm(){return Vm||(Vm=1,pc.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),pc}var dn={},qm;function Gm(){if(qm)return dn;qm=1;const n="[0-9]+",r="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const s="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
335
- ]))+`;dn.KANJI=new RegExp(i,"g"),dn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),dn.BYTE=new RegExp(s,"g"),dn.NUMERIC=new RegExp(n,"g"),dn.ALPHANUMERIC=new RegExp(r,"g");const l=new RegExp("^"+i+"$"),c=new RegExp("^"+n+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return dn.testKanji=function(p){return l.test(p)},dn.testNumeric=function(p){return c.test(p)},dn.testAlphanumeric=function(p){return d.test(p)},dn}var Ym;function Nr(){return Ym||(Ym=1,(function(n){const r=Wm(),i=Gm();n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(c,d){if(!c.ccBits)throw new Error("Invalid mode: "+c);if(!r.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?c.ccBits[0]:d<27?c.ccBits[1]:c.ccBits[2]},n.getBestModeForData=function(c){return i.testNumeric(c)?n.NUMERIC:i.testAlphanumeric(c)?n.ALPHANUMERIC:i.testKanji(c)?n.KANJI:n.BYTE},n.toString=function(c){if(c&&c.id)return c.id;throw new Error("Invalid mode")},n.isValid=function(c){return c&&c.bit&&c.ccBits};function s(l){if(typeof l!="string")throw new Error("Param is not a string");switch(l.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+l)}}n.from=function(c,d){if(n.isValid(c))return c;try{return s(c)}catch{return d}}})(fc)),fc}var Km;function sC(){return Km||(Km=1,(function(n){const r=Er(),i=Bm(),s=rc(),l=Nr(),c=Wm(),d=7973,f=r.getBCHDigit(d);function p(x,k,E){for(let S=1;S<=40;S++)if(k<=n.getCapacity(S,E,x))return S}function g(x,k){return l.getCharCountIndicator(x,k)+4}function w(x,k){let E=0;return x.forEach(function(S){const C=g(S.mode,k);E+=C+S.getBitsLength()}),E}function m(x,k){for(let E=1;E<=40;E++)if(w(x,E)<=n.getCapacity(E,k,l.MIXED))return E}n.from=function(k,E){return c.isValid(k)?parseInt(k,10):E},n.getCapacity=function(k,E,S){if(!c.isValid(k))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=l.BYTE);const C=r.getSymbolTotalCodewords(k),N=i.getTotalCodewordsCount(k,E),R=(C-N)*8;if(S===l.MIXED)return R;const P=R-g(S,k);switch(S){case l.NUMERIC:return Math.floor(P/10*3);case l.ALPHANUMERIC:return Math.floor(P/11*2);case l.KANJI:return Math.floor(P/13);case l.BYTE:default:return Math.floor(P/8)}},n.getBestVersionForData=function(k,E){let S;const C=s.from(E,s.M);if(Array.isArray(k)){if(k.length>1)return m(k,C);if(k.length===0)return 1;S=k[0]}else S=k;return p(S.mode,S.getLength(),C)},n.getEncodedBits=function(k){if(!c.isValid(k)||k<7)throw new Error("Invalid QR Code version");let E=k<<12;for(;r.getBCHDigit(E)-f>=0;)E^=d<<r.getBCHDigit(E)-f;return k<<12|E}})(dc)),dc}var hc={},Xm;function aC(){if(Xm)return hc;Xm=1;const n=Er(),r=1335,i=21522,s=n.getBCHDigit(r);return hc.getEncodedBits=function(c,d){const f=c.bit<<3|d;let p=f<<10;for(;n.getBCHDigit(p)-s>=0;)p^=r<<n.getBCHDigit(p)-s;return(f<<10|p)^i},hc}var mc={},gc,Qm;function lC(){if(Qm)return gc;Qm=1;const n=Nr();function r(i){this.mode=n.NUMERIC,this.data=i.toString()}return r.getBitsLength=function(s){return 10*Math.floor(s/3)+(s%3?s%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(s){let l,c,d;for(l=0;l+3<=this.data.length;l+=3)c=this.data.substr(l,3),d=parseInt(c,10),s.put(d,10);const f=this.data.length-l;f>0&&(c=this.data.substr(l),d=parseInt(c,10),s.put(d,f*3+1))},gc=r,gc}var vc,Zm;function cC(){if(Zm)return vc;Zm=1;const n=Nr(),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(s){this.mode=n.ALPHANUMERIC,this.data=s}return i.getBitsLength=function(l){return 11*Math.floor(l/2)+6*(l%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(l){let c;for(c=0;c+2<=this.data.length;c+=2){let d=r.indexOf(this.data[c])*45;d+=r.indexOf(this.data[c+1]),l.put(d,11)}this.data.length%2&&l.put(r.indexOf(this.data[c]),6)},vc=i,vc}var yc,Jm;function uC(){if(Jm)return yc;Jm=1;const n=Nr();function r(i){this.mode=n.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return r.getBitsLength=function(s){return s*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(i){for(let s=0,l=this.data.length;s<l;s++)i.put(this.data[s],8)},yc=r,yc}var wc,eg;function dC(){if(eg)return wc;eg=1;const n=Nr(),r=Er();function i(s){this.mode=n.KANJI,this.data=s}return i.getBitsLength=function(l){return l*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(s){let l;for(l=0;l<this.data.length;l++){let c=r.toSJIS(this.data[l]);if(c>=33088&&c<=40956)c-=33088;else if(c>=57408&&c<=60351)c-=49472;else throw new Error("Invalid SJIS character: "+this.data[l]+`
336
- Make sure your charset is UTF-8`);c=(c>>>8&255)*192+(c&255),s.put(c,13)}},wc=i,wc}var xc={exports:{}},tg;function fC(){return tg||(tg=1,(function(n){var r={single_source_shortest_paths:function(i,s,l){var c={},d={};d[s]=0;var f=r.PriorityQueue.make();f.push(s,0);for(var p,g,w,m,x,k,E,S,C;!f.empty();){p=f.pop(),g=p.value,m=p.cost,x=i[g]||{};for(w in x)x.hasOwnProperty(w)&&(k=x[w],E=m+k,S=d[w],C=typeof d[w]>"u",(C||S>E)&&(d[w]=E,f.push(w,E),c[w]=g))}if(typeof l<"u"&&typeof d[l]>"u"){var N=["Could not find a path from ",s," to ",l,"."].join("");throw new Error(N)}return c},extract_shortest_path_from_predecessor_list:function(i,s){for(var l=[],c=s;c;)l.push(c),i[c],c=i[c];return l.reverse(),l},find_path:function(i,s,l){var c=r.single_source_shortest_paths(i,s,l);return r.extract_shortest_path_from_predecessor_list(c,l)},PriorityQueue:{make:function(i){var s=r.PriorityQueue,l={},c;i=i||{};for(c in s)s.hasOwnProperty(c)&&(l[c]=s[c]);return l.queue=[],l.sorter=i.sorter||s.default_sorter,l},default_sorter:function(i,s){return i.cost-s.cost},push:function(i,s){var l={value:i,cost:s};this.queue.push(l),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};n.exports=r})(xc)),xc.exports}var ng;function pC(){return ng||(ng=1,(function(n){const r=Nr(),i=lC(),s=cC(),l=uC(),c=dC(),d=Gm(),f=Er(),p=fC();function g(N){return unescape(encodeURIComponent(N)).length}function w(N,R,P){const M=[];let W;for(;(W=N.exec(P))!==null;)M.push({data:W[0],index:W.index,mode:R,length:W[0].length});return M}function m(N){const R=w(d.NUMERIC,r.NUMERIC,N),P=w(d.ALPHANUMERIC,r.ALPHANUMERIC,N);let M,W;return f.isKanjiModeEnabled()?(M=w(d.BYTE,r.BYTE,N),W=w(d.KANJI,r.KANJI,N)):(M=w(d.BYTE_KANJI,r.BYTE,N),W=[]),R.concat(P,M,W).sort(function(D,j){return D.index-j.index}).map(function(D){return{data:D.data,mode:D.mode,length:D.length}})}function x(N,R){switch(R){case r.NUMERIC:return i.getBitsLength(N);case r.ALPHANUMERIC:return s.getBitsLength(N);case r.KANJI:return c.getBitsLength(N);case r.BYTE:return l.getBitsLength(N)}}function k(N){return N.reduce(function(R,P){const M=R.length-1>=0?R[R.length-1]:null;return M&&M.mode===P.mode?(R[R.length-1].data+=P.data,R):(R.push(P),R)},[])}function E(N){const R=[];for(let P=0;P<N.length;P++){const M=N[P];switch(M.mode){case r.NUMERIC:R.push([M,{data:M.data,mode:r.ALPHANUMERIC,length:M.length},{data:M.data,mode:r.BYTE,length:M.length}]);break;case r.ALPHANUMERIC:R.push([M,{data:M.data,mode:r.BYTE,length:M.length}]);break;case r.KANJI:R.push([M,{data:M.data,mode:r.BYTE,length:g(M.data)}]);break;case r.BYTE:R.push([{data:M.data,mode:r.BYTE,length:g(M.data)}])}}return R}function S(N,R){const P={},M={start:{}};let W=["start"];for(let z=0;z<N.length;z++){const D=N[z],j=[];for(let q=0;q<D.length;q++){const Z=D[q],U=""+z+q;j.push(U),P[U]={node:Z,lastCount:0},M[U]={};for(let K=0;K<W.length;K++){const X=W[K];P[X]&&P[X].node.mode===Z.mode?(M[X][U]=x(P[X].lastCount+Z.length,Z.mode)-x(P[X].lastCount,Z.mode),P[X].lastCount+=Z.length):(P[X]&&(P[X].lastCount=Z.length),M[X][U]=x(Z.length,Z.mode)+4+r.getCharCountIndicator(Z.mode,R))}}W=j}for(let z=0;z<W.length;z++)M[W[z]].end=0;return{map:M,table:P}}function C(N,R){let P;const M=r.getBestModeForData(N);if(P=r.from(R,M),P!==r.BYTE&&P.bit<M.bit)throw new Error('"'+N+'" cannot be encoded with mode '+r.toString(P)+`.
337
- Suggested mode is: `+r.toString(M));switch(P===r.KANJI&&!f.isKanjiModeEnabled()&&(P=r.BYTE),P){case r.NUMERIC:return new i(N);case r.ALPHANUMERIC:return new s(N);case r.KANJI:return new c(N);case r.BYTE:return new l(N)}}n.fromArray=function(R){return R.reduce(function(P,M){return typeof M=="string"?P.push(C(M,null)):M.data&&P.push(C(M.data,M.mode)),P},[])},n.fromString=function(R,P){const M=m(R,f.isKanjiModeEnabled()),W=E(M),z=S(W,P),D=p.find_path(z.map,"start","end"),j=[];for(let q=1;q<D.length-1;q++)j.push(z.table[D[q]].node);return n.fromArray(k(j))},n.rawSplit=function(R){return n.fromArray(m(R,f.isKanjiModeEnabled()))}})(mc)),mc}var rg;function hC(){if(rg)return tc;rg=1;const n=Er(),r=rc(),i=Z2(),s=J2(),l=eC(),c=tC(),d=nC(),f=Bm(),p=iC(),g=sC(),w=aC(),m=Nr(),x=pC();function k(z,D){const j=z.size,q=c.getPositions(D);for(let Z=0;Z<q.length;Z++){const U=q[Z][0],K=q[Z][1];for(let X=-1;X<=7;X++)if(!(U+X<=-1||j<=U+X))for(let Y=-1;Y<=7;Y++)K+Y<=-1||j<=K+Y||(X>=0&&X<=6&&(Y===0||Y===6)||Y>=0&&Y<=6&&(X===0||X===6)||X>=2&&X<=4&&Y>=2&&Y<=4?z.set(U+X,K+Y,!0,!0):z.set(U+X,K+Y,!1,!0))}}function E(z){const D=z.size;for(let j=8;j<D-8;j++){const q=j%2===0;z.set(j,6,q,!0),z.set(6,j,q,!0)}}function S(z,D){const j=l.getPositions(D);for(let q=0;q<j.length;q++){const Z=j[q][0],U=j[q][1];for(let K=-2;K<=2;K++)for(let X=-2;X<=2;X++)K===-2||K===2||X===-2||X===2||K===0&&X===0?z.set(Z+K,U+X,!0,!0):z.set(Z+K,U+X,!1,!0)}}function C(z,D){const j=z.size,q=g.getEncodedBits(D);let Z,U,K;for(let X=0;X<18;X++)Z=Math.floor(X/3),U=X%3+j-8-3,K=(q>>X&1)===1,z.set(Z,U,K,!0),z.set(U,Z,K,!0)}function N(z,D,j){const q=z.size,Z=w.getEncodedBits(D,j);let U,K;for(U=0;U<15;U++)K=(Z>>U&1)===1,U<6?z.set(U,8,K,!0):U<8?z.set(U+1,8,K,!0):z.set(q-15+U,8,K,!0),U<8?z.set(8,q-U-1,K,!0):U<9?z.set(8,15-U-1+1,K,!0):z.set(8,15-U-1,K,!0);z.set(q-8,8,1,!0)}function R(z,D){const j=z.size;let q=-1,Z=j-1,U=7,K=0;for(let X=j-1;X>0;X-=2)for(X===6&&X--;;){for(let Y=0;Y<2;Y++)if(!z.isReserved(Z,X-Y)){let ue=!1;K<D.length&&(ue=(D[K]>>>U&1)===1),z.set(Z,X-Y,ue),U--,U===-1&&(K++,U=7)}if(Z+=q,Z<0||j<=Z){Z-=q,q=-q;break}}}function P(z,D,j){const q=new i;j.forEach(function(Y){q.put(Y.mode.bit,4),q.put(Y.getLength(),m.getCharCountIndicator(Y.mode,z)),Y.write(q)});const Z=n.getSymbolTotalCodewords(z),U=f.getTotalCodewordsCount(z,D),K=(Z-U)*8;for(q.getLengthInBits()+4<=K&&q.put(0,4);q.getLengthInBits()%8!==0;)q.putBit(0);const X=(K-q.getLengthInBits())/8;for(let Y=0;Y<X;Y++)q.put(Y%2?17:236,8);return M(q,z,D)}function M(z,D,j){const q=n.getSymbolTotalCodewords(D),Z=f.getTotalCodewordsCount(D,j),U=q-Z,K=f.getBlocksCount(D,j),X=q%K,Y=K-X,ue=Math.floor(q/K),Q=Math.floor(U/K),ne=Q+1,G=ue-Q,F=new p(G);let I=0;const _=new Array(K),O=new Array(K);let H=0;const J=new Uint8Array(z.buffer);for(let de=0;de<K;de++){const ye=de<Y?Q:ne;_[de]=J.slice(I,I+ye),O[de]=F.encode(_[de]),I+=ye,H=Math.max(H,ye)}const ee=new Uint8Array(q);let ce=0,ie,re;for(ie=0;ie<H;ie++)for(re=0;re<K;re++)ie<_[re].length&&(ee[ce++]=_[re][ie]);for(ie=0;ie<G;ie++)for(re=0;re<K;re++)ee[ce++]=O[re][ie];return ee}function W(z,D,j,q){let Z;if(Array.isArray(z))Z=x.fromArray(z);else if(typeof z=="string"){let ue=D;if(!ue){const Q=x.rawSplit(z);ue=g.getBestVersionForData(Q,j)}Z=x.fromString(z,ue||40)}else throw new Error("Invalid data");const U=g.getBestVersionForData(Z,j);if(!U)throw new Error("The amount of data is too big to be stored in a QR Code");if(!D)D=U;else if(D<U)throw new Error(`
339
+ Defaulting to \`null\`.`}var jk=th,Lk=rh,zl="Radio",[zk,ah]=bt(zl),[Ok,Dk]=zk(zl),lh=v.forwardRef((n,r)=>{const{__scopeRadio:i,name:s,checked:l=!1,required:c,disabled:d,value:f="on",onCheck:p,form:g,...w}=n,[m,x]=v.useState(null),k=Ae(r,C=>x(C)),E=v.useRef(!1),S=m?g||!!m.closest("form"):!0;return y.jsxs(Ok,{scope:i,checked:l,disabled:d,children:[y.jsx(be.button,{type:"button",role:"radio","aria-checked":l,"data-state":fh(l),"data-disabled":d?"":void 0,disabled:d,value:f,...w,ref:k,onClick:Ce(n.onClick,C=>{l||p==null||p(),S&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),S&&y.jsx(dh,{control:m,bubbles:!E.current,name:s,value:f,checked:l,required:c,disabled:d,form:g,style:{transform:"translateX(-100%)"}})]})});lh.displayName=zl;var ch="RadioIndicator",uh=v.forwardRef((n,r)=>{const{__scopeRadio:i,forceMount:s,...l}=n,c=Dk(ch,i);return y.jsx(Wt,{present:s||c.checked,children:y.jsx(be.span,{"data-state":fh(c.checked),"data-disabled":c.disabled?"":void 0,...l,ref:r})})});uh.displayName=ch;var Fk="RadioBubbleInput",dh=v.forwardRef(({__scopeRadio:n,control:r,checked:i,bubbles:s=!0,...l},c)=>{const d=v.useRef(null),f=Ae(d,c),p=Ji(i),g=es(r);return v.useEffect(()=>{const w=d.current;if(!w)return;const m=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(m,"checked").set;if(p!==i&&k){const E=new Event("click",{bubbles:s});k.call(w,i),w.dispatchEvent(E)}},[p,i,s]),y.jsx(be.input,{type:"radio","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:f,style:{...l.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});dh.displayName=Fk;function fh(n){return n?"checked":"unchecked"}var Bk=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ms="RadioGroup",[$k]=bt(ms,[ps,ah]),ph=ps(),hh=ah(),[Uk,Hk]=$k(ms),mh=v.forwardRef((n,r)=>{const{__scopeRadioGroup:i,name:s,defaultValue:l,value:c,required:d=!1,disabled:f=!1,orientation:p,dir:g,loop:w=!0,onValueChange:m,...x}=n,k=ph(i),E=Uo(g),[S,C]=wn({prop:c,defaultProp:l??null,onChange:m,caller:ms});return y.jsx(Uk,{scope:i,name:s,required:d,disabled:f,value:S,onValueChange:C,children:y.jsx(Zp,{asChild:!0,...k,orientation:p,dir:E,loop:w,children:y.jsx(be.div,{role:"radiogroup","aria-required":d,"aria-orientation":p,"data-disabled":f?"":void 0,dir:E,...x,ref:r})})})});mh.displayName=ms;var gh="RadioGroupItem",vh=v.forwardRef((n,r)=>{const{__scopeRadioGroup:i,disabled:s,...l}=n,c=Hk(gh,i),d=c.disabled||s,f=ph(i),p=hh(i),g=v.useRef(null),w=Ae(r,g),m=c.value===l.value,x=v.useRef(!1);return v.useEffect(()=>{const k=S=>{Bk.includes(S.key)&&(x.current=!0)},E=()=>x.current=!1;return document.addEventListener("keydown",k),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",k),document.removeEventListener("keyup",E)}},[]),y.jsx(Jp,{asChild:!0,...f,focusable:!d,active:m,children:y.jsx(lh,{disabled:d,required:c.required,checked:m,...p,...l,name:c.name,ref:w,onCheck:()=>c.onValueChange(l.value),onKeyDown:Ce(k=>{k.key==="Enter"&&k.preventDefault()}),onFocus:Ce(l.onFocus,()=>{var k;x.current&&((k=g.current)==null||k.click())})})})});vh.displayName=gh;var Vk="RadioGroupIndicator",yh=v.forwardRef((n,r)=>{const{__scopeRadioGroup:i,...s}=n,l=hh(i);return y.jsx(uh,{...l,...s,ref:r})});yh.displayName=Vk;var Wk=mh,qk=vh,Gk=yh;function Yk(n,r){return v.useReducer((i,s)=>r[i][s]??i,n)}var Ol="ScrollArea",[wh]=bt(Ol),[Kk,jt]=wh(Ol),xh=v.forwardRef((n,r)=>{const{__scopeScrollArea:i,type:s="hover",dir:l,scrollHideDelay:c=600,...d}=n,[f,p]=v.useState(null),[g,w]=v.useState(null),[m,x]=v.useState(null),[k,E]=v.useState(null),[S,C]=v.useState(null),[N,R]=v.useState(0),[P,M]=v.useState(0),[W,z]=v.useState(!1),[D,j]=v.useState(!1),q=Ae(r,U=>p(U)),Z=Uo(l);return y.jsx(Kk,{scope:i,type:s,dir:Z,scrollHideDelay:c,scrollArea:f,viewport:g,onViewportChange:w,content:m,onContentChange:x,scrollbarX:k,onScrollbarXChange:E,scrollbarXEnabled:W,onScrollbarXEnabledChange:z,scrollbarY:S,onScrollbarYChange:C,scrollbarYEnabled:D,onScrollbarYEnabledChange:j,onCornerWidthChange:R,onCornerHeightChange:M,children:y.jsx(be.div,{dir:Z,...d,ref:q,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":P+"px",...n.style}})})});xh.displayName=Ol;var bh="ScrollAreaViewport",kh=v.forwardRef((n,r)=>{const{__scopeScrollArea:i,children:s,nonce:l,...c}=n,d=jt(bh,i),f=v.useRef(null),p=Ae(r,f,d.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(be.div,{"data-radix-scroll-area-viewport":"",...c,ref:p,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...n.style},children:y.jsx("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});kh.displayName=bh;var un="ScrollAreaScrollbar",Sh=v.forwardRef((n,r)=>{const{forceMount:i,...s}=n,l=jt(un,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:d}=l,f=n.orientation==="horizontal";return v.useEffect(()=>(f?c(!0):d(!0),()=>{f?c(!1):d(!1)}),[f,c,d]),l.type==="hover"?y.jsx(Xk,{...s,ref:r,forceMount:i}):l.type==="scroll"?y.jsx(Qk,{...s,ref:r,forceMount:i}):l.type==="auto"?y.jsx(Ch,{...s,ref:r,forceMount:i}):l.type==="always"?y.jsx(Dl,{...s,ref:r}):null});Sh.displayName=un;var Xk=v.forwardRef((n,r)=>{const{forceMount:i,...s}=n,l=jt(un,n.__scopeScrollArea),[c,d]=v.useState(!1);return v.useEffect(()=>{const f=l.scrollArea;let p=0;if(f){const g=()=>{window.clearTimeout(p),d(!0)},w=()=>{p=window.setTimeout(()=>d(!1),l.scrollHideDelay)};return f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",w),()=>{window.clearTimeout(p),f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",w)}}},[l.scrollArea,l.scrollHideDelay]),y.jsx(Wt,{present:i||c,children:y.jsx(Ch,{"data-state":c?"visible":"hidden",...s,ref:r})})}),Qk=v.forwardRef((n,r)=>{const{forceMount:i,...s}=n,l=jt(un,n.__scopeScrollArea),c=n.orientation==="horizontal",d=ws(()=>p("SCROLL_END"),100),[f,p]=Yk("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 v.useEffect(()=>{if(f==="idle"){const g=window.setTimeout(()=>p("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(g)}},[f,l.scrollHideDelay,p]),v.useEffect(()=>{const g=l.viewport,w=c?"scrollLeft":"scrollTop";if(g){let m=g[w];const x=()=>{const k=g[w];m!==k&&(p("SCROLL"),d()),m=k};return g.addEventListener("scroll",x),()=>g.removeEventListener("scroll",x)}},[l.viewport,c,p,d]),y.jsx(Wt,{present:i||f!=="hidden",children:y.jsx(Dl,{"data-state":f==="hidden"?"hidden":"visible",...s,ref:r,onPointerEnter:Ce(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:Ce(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),Ch=v.forwardRef((n,r)=>{const i=jt(un,n.__scopeScrollArea),{forceMount:s,...l}=n,[c,d]=v.useState(!1),f=n.orientation==="horizontal",p=ws(()=>{if(i.viewport){const g=i.viewport.offsetWidth<i.viewport.scrollWidth,w=i.viewport.offsetHeight<i.viewport.scrollHeight;d(f?g:w)}},10);return io(i.viewport,p),io(i.content,p),y.jsx(Wt,{present:s||c,children:y.jsx(Dl,{"data-state":c?"visible":"hidden",...l,ref:r})})}),Dl=v.forwardRef((n,r)=>{const{orientation:i="vertical",...s}=n,l=jt(un,n.__scopeScrollArea),c=v.useRef(null),d=v.useRef(0),[f,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=Th(f.viewport,f.content),w={...s,sizes:f,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:x=>c.current=x,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:x=>d.current=x};function m(x,k){return rS(x,d.current,f,k)}return i==="horizontal"?y.jsx(Zk,{...w,ref:r,onThumbPositionChange:()=>{if(l.viewport&&c.current){const x=l.viewport.scrollLeft,k=Ph(x,f,l.dir);c.current.style.transform=`translate3d(${k}px, 0, 0)`}},onWheelScroll:x=>{l.viewport&&(l.viewport.scrollLeft=x)},onDragScroll:x=>{l.viewport&&(l.viewport.scrollLeft=m(x,l.dir))}}):i==="vertical"?y.jsx(Jk,{...w,ref:r,onThumbPositionChange:()=>{if(l.viewport&&c.current){const x=l.viewport.scrollTop,k=Ph(x,f);c.current.style.transform=`translate3d(0, ${k}px, 0)`}},onWheelScroll:x=>{l.viewport&&(l.viewport.scrollTop=x)},onDragScroll:x=>{l.viewport&&(l.viewport.scrollTop=m(x))}}):null}),Zk=v.forwardRef((n,r)=>{const{sizes:i,onSizesChange:s,...l}=n,c=jt(un,n.__scopeScrollArea),[d,f]=v.useState(),p=v.useRef(null),g=Ae(r,p,c.onScrollbarXChange);return v.useEffect(()=>{p.current&&f(getComputedStyle(p.current))},[p]),y.jsx(Nh,{"data-orientation":"horizontal",...l,ref:g,sizes:i,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ys(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.x),onDragScroll:w=>n.onDragScroll(w.x),onWheelScroll:(w,m)=>{if(c.viewport){const x=c.viewport.scrollLeft+w.deltaX;n.onWheelScroll(x),Ah(x,m)&&w.preventDefault()}},onResize:()=>{p.current&&c.viewport&&d&&s({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:vs(d.paddingLeft),paddingEnd:vs(d.paddingRight)}})}})}),Jk=v.forwardRef((n,r)=>{const{sizes:i,onSizesChange:s,...l}=n,c=jt(un,n.__scopeScrollArea),[d,f]=v.useState(),p=v.useRef(null),g=Ae(r,p,c.onScrollbarYChange);return v.useEffect(()=>{p.current&&f(getComputedStyle(p.current))},[p]),y.jsx(Nh,{"data-orientation":"vertical",...l,ref:g,sizes:i,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ys(i)+"px",...n.style},onThumbPointerDown:w=>n.onThumbPointerDown(w.y),onDragScroll:w=>n.onDragScroll(w.y),onWheelScroll:(w,m)=>{if(c.viewport){const x=c.viewport.scrollTop+w.deltaY;n.onWheelScroll(x),Ah(x,m)&&w.preventDefault()}},onResize:()=>{p.current&&c.viewport&&d&&s({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:vs(d.paddingTop),paddingEnd:vs(d.paddingBottom)}})}})}),[eS,Eh]=wh(un),Nh=v.forwardRef((n,r)=>{const{__scopeScrollArea:i,sizes:s,hasThumb:l,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:f,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:w,onResize:m,...x}=n,k=jt(un,i),[E,S]=v.useState(null),C=Ae(r,q=>S(q)),N=v.useRef(null),R=v.useRef(""),P=k.viewport,M=s.content-s.viewport,W=ut(w),z=ut(p),D=ws(m,10);function j(q){if(N.current){const Z=q.clientX-N.current.left,U=q.clientY-N.current.top;g({x:Z,y:U})}}return v.useEffect(()=>{const q=Z=>{const U=Z.target;(E==null?void 0:E.contains(U))&&W(Z,M)};return document.addEventListener("wheel",q,{passive:!1}),()=>document.removeEventListener("wheel",q,{passive:!1})},[P,E,M,W]),v.useEffect(z,[s,z]),io(E,D),io(k.content,D),y.jsx(eS,{scope:i,scrollbar:E,hasThumb:l,onThumbChange:ut(c),onThumbPointerUp:ut(d),onThumbPositionChange:z,onThumbPointerDown:ut(f),children:y.jsx(be.div,{...x,ref:C,style:{position:"absolute",...x.style},onPointerDown:Ce(n.onPointerDown,q=>{q.button===0&&(q.target.setPointerCapture(q.pointerId),N.current=E.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k.viewport&&(k.viewport.style.scrollBehavior="auto"),j(q))}),onPointerMove:Ce(n.onPointerMove,j),onPointerUp:Ce(n.onPointerUp,q=>{const Z=q.target;Z.hasPointerCapture(q.pointerId)&&Z.releasePointerCapture(q.pointerId),document.body.style.webkitUserSelect=R.current,k.viewport&&(k.viewport.style.scrollBehavior=""),N.current=null})})})}),gs="ScrollAreaThumb",_h=v.forwardRef((n,r)=>{const{forceMount:i,...s}=n,l=Eh(gs,n.__scopeScrollArea);return y.jsx(Wt,{present:i||l.hasThumb,children:y.jsx(tS,{ref:r,...s})})}),tS=v.forwardRef((n,r)=>{const{__scopeScrollArea:i,style:s,...l}=n,c=jt(gs,i),d=Eh(gs,i),{onThumbPositionChange:f}=d,p=Ae(r,m=>d.onThumbChange(m)),g=v.useRef(void 0),w=ws(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const m=c.viewport;if(m){const x=()=>{if(w(),!g.current){const k=oS(m,f);g.current=k,f()}};return f(),m.addEventListener("scroll",x),()=>m.removeEventListener("scroll",x)}},[c.viewport,w,f]),y.jsx(be.div,{"data-state":d.hasThumb?"visible":"hidden",...l,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:Ce(n.onPointerDownCapture,m=>{const k=m.target.getBoundingClientRect(),E=m.clientX-k.left,S=m.clientY-k.top;d.onThumbPointerDown({x:E,y:S})}),onPointerUp:Ce(n.onPointerUp,d.onThumbPointerUp)})});_h.displayName=gs;var Fl="ScrollAreaCorner",Rh=v.forwardRef((n,r)=>{const i=jt(Fl,n.__scopeScrollArea),s=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&s?y.jsx(nS,{...n,ref:r}):null});Rh.displayName=Fl;var nS=v.forwardRef((n,r)=>{const{__scopeScrollArea:i,...s}=n,l=jt(Fl,i),[c,d]=v.useState(0),[f,p]=v.useState(0),g=!!(c&&f);return io(l.scrollbarX,()=>{var m;const w=((m=l.scrollbarX)==null?void 0:m.offsetHeight)||0;l.onCornerHeightChange(w),p(w)}),io(l.scrollbarY,()=>{var m;const w=((m=l.scrollbarY)==null?void 0:m.offsetWidth)||0;l.onCornerWidthChange(w),d(w)}),g?y.jsx(be.div,{...s,ref:r,style:{width:c,height:f,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function vs(n){return n?parseInt(n,10):0}function Th(n,r){const i=n/r;return isNaN(i)?0:i}function ys(n){const r=Th(n.viewport,n.content),i=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,s=(n.scrollbar.size-i)*r;return Math.max(s,18)}function rS(n,r,i,s="ltr"){const l=ys(i),c=l/2,d=r||c,f=l-d,p=i.scrollbar.paddingStart+d,g=i.scrollbar.size-i.scrollbar.paddingEnd-f,w=i.content-i.viewport,m=s==="ltr"?[0,w]:[w*-1,0];return Ih([p,g],m)(n)}function Ph(n,r,i="ltr"){const s=ys(r),l=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,c=r.scrollbar.size-l,d=r.content-r.viewport,f=c-s,p=i==="ltr"?[0,d]:[d*-1,0],g=Ml(n,p);return Ih([0,d],[0,f])(g)}function Ih(n,r){return i=>{if(n[0]===n[1]||r[0]===r[1])return r[0];const s=(r[1]-r[0])/(n[1]-n[0]);return r[0]+s*(i-n[0])}}function Ah(n,r){return n>0&&n<r}var oS=(n,r=()=>{})=>{let i={left:n.scrollLeft,top:n.scrollTop},s=0;return(function l(){const c={left:n.scrollLeft,top:n.scrollTop},d=i.left!==c.left,f=i.top!==c.top;(d||f)&&r(),i=c,s=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(s)};function ws(n,r){const i=ut(n),s=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(s.current),[]),v.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(i,r)},[i,r])}function io(n,r){const i=ut(r);We(()=>{let s=0;if(n){const l=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(i)});return l.observe(n),()=>{window.cancelAnimationFrame(s),l.unobserve(n)}}},[n,i])}var iS=xh,sS=kh,aS=Rh,lS=[" ","Enter","ArrowUp","ArrowDown"],cS=[" ","Enter"],Er="Select",[xs,bs,uS]=yf(Er),[so]=bt(Er,[uS,fs]),ks=fs(),[dS,Un]=so(Er),[fS,pS]=so(Er),Mh=n=>{const{__scopeSelect:r,children:i,open:s,defaultOpen:l,onOpenChange:c,value:d,defaultValue:f,onValueChange:p,dir:g,name:w,autoComplete:m,disabled:x,required:k,form:E}=n,S=ks(r),[C,N]=v.useState(null),[R,P]=v.useState(null),[M,W]=v.useState(!1),z=Uo(g),[D,j]=wn({prop:s,defaultProp:l??!1,onChange:c,caller:Er}),[q,Z]=wn({prop:d,defaultProp:f,onChange:p,caller:Er}),U=v.useRef(null),K=C?E||!!C.closest("form"):!0,[X,Y]=v.useState(new Set),ue=Array.from(X).map(Q=>Q.props.value).join(";");return y.jsx(Hp,{...S,children:y.jsxs(dS,{required:k,scope:r,trigger:C,onTriggerChange:N,valueNode:R,onValueNodeChange:P,valueNodeHasChildren:M,onValueNodeHasChildrenChange:W,contentId:kr(),value:q,onValueChange:Z,open:D,onOpenChange:j,dir:z,triggerPointerDownPosRef:U,disabled:x,children:[y.jsx(xs.Provider,{scope:r,children:y.jsx(fS,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(Q=>{Y(ne=>new Set(ne).add(Q))},[]),onNativeOptionRemove:v.useCallback(Q=>{Y(ne=>{const G=new Set(ne);return G.delete(Q),G})},[]),children:i})}),K?y.jsxs(tm,{"aria-hidden":!0,required:k,tabIndex:-1,name:w,autoComplete:m,value:q,onChange:Q=>Z(Q.target.value),disabled:x,form:E,children:[q===void 0?y.jsx("option",{value:""}):null,Array.from(X)]},ue):null]})})};Mh.displayName=Er;var jh="SelectTrigger",Lh=v.forwardRef((n,r)=>{const{__scopeSelect:i,disabled:s=!1,...l}=n,c=ks(i),d=Un(jh,i),f=d.disabled||s,p=Ae(r,d.onTriggerChange),g=bs(i),w=v.useRef("touch"),[m,x,k]=rm(S=>{const C=g().filter(P=>!P.disabled),N=C.find(P=>P.value===d.value),R=om(C,S,N);R!==void 0&&d.onValueChange(R.value)}),E=S=>{f||(d.onOpenChange(!0),k()),S&&(d.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return y.jsx(Vp,{asChild:!0,...c,children:y.jsx(be.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":nm(d.value)?"":void 0,...l,ref:p,onClick:Ce(l.onClick,S=>{S.currentTarget.focus(),w.current!=="mouse"&&E(S)}),onPointerDown:Ce(l.onPointerDown,S=>{w.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(E(S),S.preventDefault())}),onKeyDown:Ce(l.onKeyDown,S=>{const C=m.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&x(S.key),!(C&&S.key===" ")&&lS.includes(S.key)&&(E(),S.preventDefault())})})})});Lh.displayName=jh;var zh="SelectValue",Oh=v.forwardRef((n,r)=>{const{__scopeSelect:i,className:s,style:l,children:c,placeholder:d="",...f}=n,p=Un(zh,i),{onValueNodeHasChildrenChange:g}=p,w=c!==void 0,m=Ae(r,p.onValueNodeChange);return We(()=>{g(w)},[g,w]),y.jsx(be.span,{...f,ref:m,style:{pointerEvents:"none"},children:nm(p.value)?y.jsx(y.Fragment,{children:d}):c})});Oh.displayName=zh;var hS="SelectIcon",Dh=v.forwardRef((n,r)=>{const{__scopeSelect:i,children:s,...l}=n;return y.jsx(be.span,{"aria-hidden":!0,...l,ref:r,children:s||"▼"})});Dh.displayName=hS;var mS="SelectPortal",Fh=n=>y.jsx(sl,{asChild:!0,...n});Fh.displayName=mS;var Nr="SelectContent",Bh=v.forwardRef((n,r)=>{const i=Un(Nr,n.__scopeSelect),[s,l]=v.useState();if(We(()=>{l(new DocumentFragment)},[]),!i.open){const c=s;return c?Oo.createPortal(y.jsx($h,{scope:n.__scopeSelect,children:y.jsx(xs.Slot,{scope:n.__scopeSelect,children:y.jsx("div",{children:n.children})})}),c):null}return y.jsx(Uh,{...n,ref:r})});Bh.displayName=Nr;var Yt=10,[$h,Hn]=so(Nr),gS="SelectContentImpl",vS=$o("SelectContent.RemoveScroll"),Uh=v.forwardRef((n,r)=>{const{__scopeSelect:i,position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,side:f,sideOffset:p,align:g,alignOffset:w,arrowPadding:m,collisionBoundary:x,collisionPadding:k,sticky:E,hideWhenDetached:S,avoidCollisions:C,...N}=n,R=Un(Nr,i),[P,M]=v.useState(null),[W,z]=v.useState(null),D=Ae(r,ie=>M(ie)),[j,q]=v.useState(null),[Z,U]=v.useState(null),K=bs(i),[X,Y]=v.useState(!1),ue=v.useRef(!1);v.useEffect(()=>{if(P)return U1(P)},[P]),n1();const Q=v.useCallback(ie=>{const[re,...de]=K().map(Re=>Re.ref.current),[ye]=de.slice(-1),_e=document.activeElement;for(const Re of ie)if(Re===_e||(Re==null||Re.scrollIntoView({block:"nearest"}),Re===re&&W&&(W.scrollTop=0),Re===ye&&W&&(W.scrollTop=W.scrollHeight),Re==null||Re.focus(),document.activeElement!==_e))return},[K,W]),ne=v.useCallback(()=>Q([j,P]),[Q,j,P]);v.useEffect(()=>{X&&ne()},[X,ne]);const{onOpenChange:G,triggerPointerDownPosRef:F}=R;v.useEffect(()=>{if(P){let ie={x:0,y:0};const re=ye=>{var _e,Re;ie={x:Math.abs(Math.round(ye.pageX)-(((_e=F.current)==null?void 0:_e.x)??0)),y:Math.abs(Math.round(ye.pageY)-(((Re=F.current)==null?void 0:Re.y)??0))}},de=ye=>{ie.x<=10&&ie.y<=10?ye.preventDefault():P.contains(ye.target)||G(!1),document.removeEventListener("pointermove",re),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",de,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",de,{capture:!0})}}},[P,G,F]),v.useEffect(()=>{const ie=()=>G(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[G]);const[I,_]=rm(ie=>{const re=K().filter(_e=>!_e.disabled),de=re.find(_e=>_e.ref.current===document.activeElement),ye=om(re,ie,de);ye&&setTimeout(()=>ye.ref.current.focus())}),O=v.useCallback((ie,re,de)=>{const ye=!ue.current&&!de;(R.value!==void 0&&R.value===re||ye)&&(q(ie),ye&&(ue.current=!0))},[R.value]),H=v.useCallback(()=>P==null?void 0:P.focus(),[P]),J=v.useCallback((ie,re,de)=>{const ye=!ue.current&&!de;(R.value!==void 0&&R.value===re||ye)&&U(ie)},[R.value]),ee=s==="popper"?Bl:Hh,ce=ee===Bl?{side:f,sideOffset:p,align:g,alignOffset:w,arrowPadding:m,collisionBoundary:x,collisionPadding:k,sticky:E,hideWhenDetached:S,avoidCollisions:C}:{};return y.jsx($h,{scope:i,content:P,viewport:W,onViewportChange:z,itemRefCallback:O,selectedItem:j,onItemLeave:H,itemTextRefCallback:J,focusSelectedItem:ne,selectedItemText:Z,position:s,isPositioned:X,searchRef:I,children:y.jsx(qf,{as:vS,allowPinchZoom:!0,children:y.jsx(Rf,{asChild:!0,trapped:R.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:Ce(l,ie=>{var re;(re=R.trigger)==null||re.focus({preventScroll:!0}),ie.preventDefault()}),children:y.jsx(rl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:y.jsx(ee,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:ie=>ie.preventDefault(),...N,...ce,onPlaced:()=>Y(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Ce(N.onKeyDown,ie=>{const re=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!re&&ie.key.length===1&&_(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let ye=K().filter(_e=>!_e.disabled).map(_e=>_e.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const _e=ie.target,Re=ye.indexOf(_e);ye=ye.slice(Re+1)}setTimeout(()=>Q(ye)),ie.preventDefault()}})})})})})})});Uh.displayName=gS;var yS="SelectItemAlignedPosition",Hh=v.forwardRef((n,r)=>{const{__scopeSelect:i,onPlaced:s,...l}=n,c=Un(Nr,i),d=Hn(Nr,i),[f,p]=v.useState(null),[g,w]=v.useState(null),m=Ae(r,D=>w(D)),x=bs(i),k=v.useRef(!1),E=v.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:N,focusSelectedItem:R}=d,P=v.useCallback(()=>{if(c.trigger&&c.valueNode&&f&&g&&S&&C&&N){const D=c.trigger.getBoundingClientRect(),j=g.getBoundingClientRect(),q=c.valueNode.getBoundingClientRect(),Z=N.getBoundingClientRect();if(c.dir!=="rtl"){const _e=Z.left-j.left,Re=q.left-_e,Fe=D.left-Re,$e=D.width+Fe,fn=Math.max($e,j.width),Kt=window.innerWidth-Yt,gt=Ml(Re,[Yt,Math.max(Yt,Kt-fn)]);f.style.minWidth=$e+"px",f.style.left=gt+"px"}else{const _e=j.right-Z.right,Re=window.innerWidth-q.right-_e,Fe=window.innerWidth-D.right-Re,$e=D.width+Fe,fn=Math.max($e,j.width),Kt=window.innerWidth-Yt,gt=Ml(Re,[Yt,Math.max(Yt,Kt-fn)]);f.style.minWidth=$e+"px",f.style.right=gt+"px"}const U=x(),K=window.innerHeight-Yt*2,X=S.scrollHeight,Y=window.getComputedStyle(g),ue=parseInt(Y.borderTopWidth,10),Q=parseInt(Y.paddingTop,10),ne=parseInt(Y.borderBottomWidth,10),G=parseInt(Y.paddingBottom,10),F=ue+Q+X+G+ne,I=Math.min(C.offsetHeight*5,F),_=window.getComputedStyle(S),O=parseInt(_.paddingTop,10),H=parseInt(_.paddingBottom,10),J=D.top+D.height/2-Yt,ee=K-J,ce=C.offsetHeight/2,ie=C.offsetTop+ce,re=ue+Q+ie,de=F-re;if(re<=J){const _e=U.length>0&&C===U[U.length-1].ref.current;f.style.bottom="0px";const Re=g.clientHeight-S.offsetTop-S.offsetHeight,Fe=Math.max(ee,ce+(_e?H:0)+Re+ne),$e=re+Fe;f.style.height=$e+"px"}else{const _e=U.length>0&&C===U[0].ref.current;f.style.top="0px";const Fe=Math.max(J,ue+S.offsetTop+(_e?O:0)+ce)+de;f.style.height=Fe+"px",S.scrollTop=re-J+S.offsetTop}f.style.margin=`${Yt}px 0`,f.style.minHeight=I+"px",f.style.maxHeight=K+"px",s==null||s(),requestAnimationFrame(()=>k.current=!0)}},[x,c.trigger,c.valueNode,f,g,S,C,N,c.dir,s]);We(()=>P(),[P]);const[M,W]=v.useState();We(()=>{g&&W(window.getComputedStyle(g).zIndex)},[g]);const z=v.useCallback(D=>{D&&E.current===!0&&(P(),R==null||R(),E.current=!1)},[P,R]);return y.jsx(xS,{scope:i,contentWrapper:f,shouldExpandOnScrollRef:k,onScrollButtonChange:z,children:y.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:y.jsx(be.div,{...l,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});Hh.displayName=yS;var wS="SelectPopperPosition",Bl=v.forwardRef((n,r)=>{const{__scopeSelect:i,align:s="start",collisionPadding:l=Yt,...c}=n,d=ks(i);return y.jsx(Wp,{...d,...c,ref:r,align:s,collisionPadding:l,style:{boxSizing:"border-box",...c.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)"}})});Bl.displayName=wS;var[xS,$l]=so(Nr,{}),Ul="SelectViewport",Vh=v.forwardRef((n,r)=>{const{__scopeSelect:i,nonce:s,...l}=n,c=Hn(Ul,i),d=$l(Ul,i),f=Ae(r,c.onViewportChange),p=v.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:s}),y.jsx(xs.Slot,{scope:i,children:y.jsx(be.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Ce(l.onScroll,g=>{const w=g.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:x}=d;if(x!=null&&x.current&&m){const k=Math.abs(p.current-w.scrollTop);if(k>0){const E=window.innerHeight-Yt*2,S=parseFloat(m.style.minHeight),C=parseFloat(m.style.height),N=Math.max(S,C);if(N<E){const R=N+k,P=Math.min(E,R),M=R-P;m.style.height=P+"px",m.style.bottom==="0px"&&(w.scrollTop=M>0?M:0,m.style.justifyContent="flex-end")}}}p.current=w.scrollTop})})})]})});Vh.displayName=Ul;var Wh="SelectGroup",[bS,kS]=so(Wh),SS=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n,l=kr();return y.jsx(bS,{scope:i,id:l,children:y.jsx(be.div,{role:"group","aria-labelledby":l,...s,ref:r})})});SS.displayName=Wh;var qh="SelectLabel",CS=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n,l=kS(qh,i);return y.jsx(be.div,{id:l.id,...s,ref:r})});CS.displayName=qh;var Ss="SelectItem",[ES,Gh]=so(Ss),Yh=v.forwardRef((n,r)=>{const{__scopeSelect:i,value:s,disabled:l=!1,textValue:c,...d}=n,f=Un(Ss,i),p=Hn(Ss,i),g=f.value===s,[w,m]=v.useState(c??""),[x,k]=v.useState(!1),E=Ae(r,R=>{var P;return(P=p.itemRefCallback)==null?void 0:P.call(p,R,s,l)}),S=kr(),C=v.useRef("touch"),N=()=>{l||(f.onValueChange(s),f.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(ES,{scope:i,value:s,disabled:l,textId:S,isSelected:g,onItemTextChange:v.useCallback(R=>{m(P=>P||((R==null?void 0:R.textContent)??"").trim())},[]),children:y.jsx(xs.ItemSlot,{scope:i,value:s,disabled:l,textValue:w,children:y.jsx(be.div,{role:"option","aria-labelledby":S,"data-highlighted":x?"":void 0,"aria-selected":g&&x,"data-state":g?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...d,ref:E,onFocus:Ce(d.onFocus,()=>k(!0)),onBlur:Ce(d.onBlur,()=>k(!1)),onClick:Ce(d.onClick,()=>{C.current!=="mouse"&&N()}),onPointerUp:Ce(d.onPointerUp,()=>{C.current==="mouse"&&N()}),onPointerDown:Ce(d.onPointerDown,R=>{C.current=R.pointerType}),onPointerMove:Ce(d.onPointerMove,R=>{var P;C.current=R.pointerType,l?(P=p.onItemLeave)==null||P.call(p):C.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ce(d.onPointerLeave,R=>{var P;R.currentTarget===document.activeElement&&((P=p.onItemLeave)==null||P.call(p))}),onKeyDown:Ce(d.onKeyDown,R=>{var M;((M=p.searchRef)==null?void 0:M.current)!==""&&R.key===" "||(cS.includes(R.key)&&N(),R.key===" "&&R.preventDefault())})})})})});Yh.displayName=Ss;var qo="SelectItemText",Kh=v.forwardRef((n,r)=>{const{__scopeSelect:i,className:s,style:l,...c}=n,d=Un(qo,i),f=Hn(qo,i),p=Gh(qo,i),g=pS(qo,i),[w,m]=v.useState(null),x=Ae(r,N=>m(N),p.onItemTextChange,N=>{var R;return(R=f.itemTextRefCallback)==null?void 0:R.call(f,N,p.value,p.disabled)}),k=w==null?void 0:w.textContent,E=v.useMemo(()=>y.jsx("option",{value:p.value,disabled:p.disabled,children:k},p.value),[p.disabled,p.value,k]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=g;return We(()=>(S(E),()=>C(E)),[S,C,E]),y.jsxs(y.Fragment,{children:[y.jsx(be.span,{id:p.textId,...c,ref:x}),p.isSelected&&d.valueNode&&!d.valueNodeHasChildren?Oo.createPortal(c.children,d.valueNode):null]})});Kh.displayName=qo;var Xh="SelectItemIndicator",Qh=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n;return Gh(Xh,i).isSelected?y.jsx(be.span,{"aria-hidden":!0,...s,ref:r}):null});Qh.displayName=Xh;var Hl="SelectScrollUpButton",Zh=v.forwardRef((n,r)=>{const i=Hn(Hl,n.__scopeSelect),s=$l(Hl,n.__scopeSelect),[l,c]=v.useState(!1),d=Ae(r,s.onScrollButtonChange);return We(()=>{if(i.viewport&&i.isPositioned){let f=function(){const g=p.scrollTop>0;c(g)};const p=i.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[i.viewport,i.isPositioned]),l?y.jsx(em,{...n,ref:d,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=i;f&&p&&(f.scrollTop=f.scrollTop-p.offsetHeight)}}):null});Zh.displayName=Hl;var Vl="SelectScrollDownButton",Jh=v.forwardRef((n,r)=>{const i=Hn(Vl,n.__scopeSelect),s=$l(Vl,n.__scopeSelect),[l,c]=v.useState(!1),d=Ae(r,s.onScrollButtonChange);return We(()=>{if(i.viewport&&i.isPositioned){let f=function(){const g=p.scrollHeight-p.clientHeight,w=Math.ceil(p.scrollTop)<g;c(w)};const p=i.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[i.viewport,i.isPositioned]),l?y.jsx(em,{...n,ref:d,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=i;f&&p&&(f.scrollTop=f.scrollTop+p.offsetHeight)}}):null});Jh.displayName=Vl;var em=v.forwardRef((n,r)=>{const{__scopeSelect:i,onAutoScroll:s,...l}=n,c=Hn("SelectScrollButton",i),d=v.useRef(null),f=bs(i),p=v.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),We(()=>{var w;const g=f().find(m=>m.ref.current===document.activeElement);(w=g==null?void 0:g.ref.current)==null||w.scrollIntoView({block:"nearest"})},[f]),y.jsx(be.div,{"aria-hidden":!0,...l,ref:r,style:{flexShrink:0,...l.style},onPointerDown:Ce(l.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(s,50))}),onPointerMove:Ce(l.onPointerMove,()=>{var g;(g=c.onItemLeave)==null||g.call(c),d.current===null&&(d.current=window.setInterval(s,50))}),onPointerLeave:Ce(l.onPointerLeave,()=>{p()})})}),NS="SelectSeparator",_S=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n;return y.jsx(be.div,{"aria-hidden":!0,...s,ref:r})});_S.displayName=NS;var Wl="SelectArrow",RS=v.forwardRef((n,r)=>{const{__scopeSelect:i,...s}=n,l=ks(i),c=Un(Wl,i),d=Hn(Wl,i);return c.open&&d.position==="popper"?y.jsx(qp,{...l,...s,ref:r}):null});RS.displayName=Wl;var TS="SelectBubbleInput",tm=v.forwardRef(({__scopeSelect:n,value:r,...i},s)=>{const l=v.useRef(null),c=Ae(s,l),d=Ji(r);return v.useEffect(()=>{const f=l.current;if(!f)return;const p=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(p,"value").set;if(d!==r&&w){const m=new Event("change",{bubbles:!0});w.call(f,r),f.dispatchEvent(m)}},[d,r]),y.jsx(be.select,{...i,style:{...gf,...i.style},ref:c,defaultValue:r})});tm.displayName=TS;function nm(n){return n===""||n===void 0}function rm(n){const r=ut(n),i=v.useRef(""),s=v.useRef(0),l=v.useCallback(d=>{const f=i.current+d;r(f),(function p(g){i.current=g,window.clearTimeout(s.current),g!==""&&(s.current=window.setTimeout(()=>p(""),1e3))})(f)},[r]),c=v.useCallback(()=>{i.current="",window.clearTimeout(s.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(s.current),[]),[i,l,c]}function om(n,r,i){const l=r.length>1&&Array.from(r).every(g=>g===r[0])?r[0]:r,c=i?n.indexOf(i):-1;let d=PS(n,Math.max(c,0));l.length===1&&(d=d.filter(g=>g!==i));const p=d.find(g=>g.textValue.toLowerCase().startsWith(l.toLowerCase()));return p!==i?p:void 0}function PS(n,r){return n.map((i,s)=>n[(r+s)%n.length])}var IS=Mh,AS=Lh,MS=Oh,jS=Dh,LS=Fh,zS=Bh,OS=Vh,DS=Yh,FS=Kh,BS=Qh,$S=Zh,US=Jh,HS="Separator",im="horizontal",VS=["horizontal","vertical"],sm=v.forwardRef((n,r)=>{const{decorative:i,orientation:s=im,...l}=n,c=WS(s)?s:im,f=i?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return y.jsx(be.div,{"data-orientation":c,...f,...l,ref:r})});sm.displayName=HS;function WS(n){return VS.includes(n)}var qS=sm,Cs="Switch",[GS]=bt(Cs),[YS,KS]=GS(Cs),am=v.forwardRef((n,r)=>{const{__scopeSwitch:i,name:s,checked:l,defaultChecked:c,required:d,disabled:f,value:p="on",onCheckedChange:g,form:w,...m}=n,[x,k]=v.useState(null),E=Ae(r,P=>k(P)),S=v.useRef(!1),C=x?w||!!x.closest("form"):!0,[N,R]=wn({prop:l,defaultProp:c??!1,onChange:g,caller:Cs});return y.jsxs(YS,{scope:i,checked:N,disabled:f,children:[y.jsx(be.button,{type:"button",role:"switch","aria-checked":N,"aria-required":d,"data-state":dm(N),"data-disabled":f?"":void 0,disabled:f,value:p,...m,ref:E,onClick:Ce(n.onClick,P=>{R(M=>!M),C&&(S.current=P.isPropagationStopped(),S.current||P.stopPropagation())})}),C&&y.jsx(um,{control:x,bubbles:!S.current,name:s,value:p,checked:N,required:d,disabled:f,form:w,style:{transform:"translateX(-100%)"}})]})});am.displayName=Cs;var lm="SwitchThumb",cm=v.forwardRef((n,r)=>{const{__scopeSwitch:i,...s}=n,l=KS(lm,i);return y.jsx(be.span,{"data-state":dm(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:r})});cm.displayName=lm;var XS="SwitchBubbleInput",um=v.forwardRef(({__scopeSwitch:n,control:r,checked:i,bubbles:s=!0,...l},c)=>{const d=v.useRef(null),f=Ae(d,c),p=Ji(i),g=es(r);return v.useEffect(()=>{const w=d.current;if(!w)return;const m=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(m,"checked").set;if(p!==i&&k){const E=new Event("click",{bubbles:s});k.call(w,i),w.dispatchEvent(E)}},[p,i,s]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...l,tabIndex:-1,ref:f,style:{...l.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});um.displayName=XS;function dm(n){return n?"checked":"unchecked"}var QS=am,ZS=cm,Es="Tabs",[JS]=bt(Es,[ps]),fm=ps(),[e2,ql]=JS(Es),pm=v.forwardRef((n,r)=>{const{__scopeTabs:i,value:s,onValueChange:l,defaultValue:c,orientation:d="horizontal",dir:f,activationMode:p="automatic",...g}=n,w=Uo(f),[m,x]=wn({prop:s,onChange:l,defaultProp:c??"",caller:Es});return y.jsx(e2,{scope:i,baseId:kr(),value:m,onValueChange:x,orientation:d,dir:w,activationMode:p,children:y.jsx(be.div,{dir:w,"data-orientation":d,...g,ref:r})})});pm.displayName=Es;var hm="TabsList",mm=v.forwardRef((n,r)=>{const{__scopeTabs:i,loop:s=!0,...l}=n,c=ql(hm,i),d=fm(i);return y.jsx(Zp,{asChild:!0,...d,orientation:c.orientation,dir:c.dir,loop:s,children:y.jsx(be.div,{role:"tablist","aria-orientation":c.orientation,...l,ref:r})})});mm.displayName=hm;var gm="TabsTrigger",vm=v.forwardRef((n,r)=>{const{__scopeTabs:i,value:s,disabled:l=!1,...c}=n,d=ql(gm,i),f=fm(i),p=xm(d.baseId,s),g=bm(d.baseId,s),w=s===d.value;return y.jsx(Jp,{asChild:!0,...f,focusable:!l,active:w,children:y.jsx(be.button,{type:"button",role:"tab","aria-selected":w,"aria-controls":g,"data-state":w?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:p,...c,ref:r,onMouseDown:Ce(n.onMouseDown,m=>{!l&&m.button===0&&m.ctrlKey===!1?d.onValueChange(s):m.preventDefault()}),onKeyDown:Ce(n.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&d.onValueChange(s)}),onFocus:Ce(n.onFocus,()=>{const m=d.activationMode!=="manual";!w&&!l&&m&&d.onValueChange(s)})})})});vm.displayName=gm;var ym="TabsContent",wm=v.forwardRef((n,r)=>{const{__scopeTabs:i,value:s,forceMount:l,children:c,...d}=n,f=ql(ym,i),p=xm(f.baseId,s),g=bm(f.baseId,s),w=s===f.value,m=v.useRef(w);return v.useEffect(()=>{const x=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(x)},[]),y.jsx(Wt,{present:l||w,children:({present:x})=>y.jsx(be.div,{"data-state":w?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":p,hidden:!x,id:g,tabIndex:0,...d,ref:r,style:{...n.style,animationDuration:m.current?"0s":void 0},children:x&&c})})});wm.displayName=ym;function xm(n,r){return`${n}-trigger-${r}`}function bm(n,r){return`${n}-content-${r}`}var t2=pm,n2=mm,r2=vm,o2=wm,[Ns]=bt("Tooltip",[fs]),_s=fs(),km="TooltipProvider",i2=700,Gl="tooltip.open",[s2,Yl]=Ns(km),Sm=n=>{const{__scopeTooltip:r,delayDuration:i=i2,skipDelayDuration:s=300,disableHoverableContent:l=!1,children:c}=n,d=v.useRef(!0),f=v.useRef(!1),p=v.useRef(0);return v.useEffect(()=>{const g=p.current;return()=>window.clearTimeout(g)},[]),y.jsx(s2,{scope:r,isOpenDelayedRef:d,delayDuration:i,onOpen:v.useCallback(()=>{window.clearTimeout(p.current),d.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d.current=!0,s)},[s]),isPointerInTransitRef:f,onPointerInTransitChange:v.useCallback(g=>{f.current=g},[]),disableHoverableContent:l,children:c})};Sm.displayName=km;var Go="Tooltip",[a2,Yo]=Ns(Go),Cm=n=>{const{__scopeTooltip:r,children:i,open:s,defaultOpen:l,onOpenChange:c,disableHoverableContent:d,delayDuration:f}=n,p=Yl(Go,n.__scopeTooltip),g=_s(r),[w,m]=v.useState(null),x=kr(),k=v.useRef(0),E=d??p.disableHoverableContent,S=f??p.delayDuration,C=v.useRef(!1),[N,R]=wn({prop:s,defaultProp:l??!1,onChange:D=>{D?(p.onOpen(),document.dispatchEvent(new CustomEvent(Gl))):p.onClose(),c==null||c(D)},caller:Go}),P=v.useMemo(()=>N?C.current?"delayed-open":"instant-open":"closed",[N]),M=v.useCallback(()=>{window.clearTimeout(k.current),k.current=0,C.current=!1,R(!0)},[R]),W=v.useCallback(()=>{window.clearTimeout(k.current),k.current=0,R(!1)},[R]),z=v.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>{C.current=!0,R(!0),k.current=0},S)},[S,R]);return v.useEffect(()=>()=>{k.current&&(window.clearTimeout(k.current),k.current=0)},[]),y.jsx(Hp,{...g,children:y.jsx(a2,{scope:r,contentId:x,open:N,stateAttribute:P,trigger:w,onTriggerChange:m,onTriggerEnter:v.useCallback(()=>{p.isOpenDelayedRef.current?z():M()},[p.isOpenDelayedRef,z,M]),onTriggerLeave:v.useCallback(()=>{E?W():(window.clearTimeout(k.current),k.current=0)},[W,E]),onOpen:M,onClose:W,disableHoverableContent:E,children:i})})};Cm.displayName=Go;var Kl="TooltipTrigger",Em=v.forwardRef((n,r)=>{const{__scopeTooltip:i,...s}=n,l=Yo(Kl,i),c=Yl(Kl,i),d=_s(i),f=v.useRef(null),p=Ae(r,f,l.onTriggerChange),g=v.useRef(!1),w=v.useRef(!1),m=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),y.jsx(Vp,{asChild:!0,...d,children:y.jsx(be.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...s,ref:p,onPointerMove:Ce(n.onPointerMove,x=>{x.pointerType!=="touch"&&!w.current&&!c.isPointerInTransitRef.current&&(l.onTriggerEnter(),w.current=!0)}),onPointerLeave:Ce(n.onPointerLeave,()=>{l.onTriggerLeave(),w.current=!1}),onPointerDown:Ce(n.onPointerDown,()=>{l.open&&l.onClose(),g.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Ce(n.onFocus,()=>{g.current||l.onOpen()}),onBlur:Ce(n.onBlur,l.onClose),onClick:Ce(n.onClick,l.onClose)})})});Em.displayName=Kl;var Xl="TooltipPortal",[l2,c2]=Ns(Xl,{forceMount:void 0}),Nm=n=>{const{__scopeTooltip:r,forceMount:i,children:s,container:l}=n,c=Yo(Xl,r);return y.jsx(l2,{scope:r,forceMount:i,children:y.jsx(Wt,{present:i||c.open,children:y.jsx(sl,{asChild:!0,container:l,children:s})})})};Nm.displayName=Xl;var ao="TooltipContent",_m=v.forwardRef((n,r)=>{const i=c2(ao,n.__scopeTooltip),{forceMount:s=i.forceMount,side:l="top",...c}=n,d=Yo(ao,n.__scopeTooltip);return y.jsx(Wt,{present:s||d.open,children:d.disableHoverableContent?y.jsx(Rm,{side:l,...c,ref:r}):y.jsx(u2,{side:l,...c,ref:r})})}),u2=v.forwardRef((n,r)=>{const i=Yo(ao,n.__scopeTooltip),s=Yl(ao,n.__scopeTooltip),l=v.useRef(null),c=Ae(r,l),[d,f]=v.useState(null),{trigger:p,onClose:g}=i,w=l.current,{onPointerInTransitChange:m}=s,x=v.useCallback(()=>{f(null),m(!1)},[m]),k=v.useCallback((E,S)=>{const C=E.currentTarget,N={x:E.clientX,y:E.clientY},R=h2(N,C.getBoundingClientRect()),P=m2(N,R),M=g2(S.getBoundingClientRect()),W=y2([...P,...M]);f(W),m(!0)},[m]);return v.useEffect(()=>()=>x(),[x]),v.useEffect(()=>{if(p&&w){const E=C=>k(C,w),S=C=>k(C,p);return p.addEventListener("pointerleave",E),w.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",E),w.removeEventListener("pointerleave",S)}}},[p,w,k,x]),v.useEffect(()=>{if(d){const E=S=>{const C=S.target,N={x:S.clientX,y:S.clientY},R=(p==null?void 0:p.contains(C))||(w==null?void 0:w.contains(C)),P=!v2(N,d);R?x():P&&(x(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,w,d,g,x]),y.jsx(Rm,{...n,ref:c})}),[d2,f2]=Ns(Go,{isInside:!1}),p2=yx("TooltipContent"),Rm=v.forwardRef((n,r)=>{const{__scopeTooltip:i,children:s,"aria-label":l,onEscapeKeyDown:c,onPointerDownOutside:d,...f}=n,p=Yo(ao,i),g=_s(i),{onClose:w}=p;return v.useEffect(()=>(document.addEventListener(Gl,w),()=>document.removeEventListener(Gl,w)),[w]),v.useEffect(()=>{if(p.trigger){const m=x=>{const k=x.target;k!=null&&k.contains(p.trigger)&&w()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[p.trigger,w]),y.jsx(rl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:m=>m.preventDefault(),onDismiss:w,children:y.jsxs(Wp,{"data-state":p.stateAttribute,...g,...f,ref:r,style:{...f.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(p2,{children:s}),y.jsx(d2,{scope:i,isInside:!0,children:y.jsx(Ex,{id:p.contentId,role:"tooltip",children:l||s})})]})})});_m.displayName=ao;var Tm="TooltipArrow",Pm=v.forwardRef((n,r)=>{const{__scopeTooltip:i,...s}=n,l=_s(i);return f2(Tm,i).isInside?null:y.jsx(qp,{...l,...s,ref:r})});Pm.displayName=Tm;function h2(n,r){const i=Math.abs(r.top-n.y),s=Math.abs(r.bottom-n.y),l=Math.abs(r.right-n.x),c=Math.abs(r.left-n.x);switch(Math.min(i,s,l,c)){case c:return"left";case l:return"right";case i:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function m2(n,r,i=5){const s=[];switch(r){case"top":s.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":s.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":s.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":s.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return s}function g2(n){const{top:r,right:i,bottom:s,left:l}=n;return[{x:l,y:r},{x:i,y:r},{x:i,y:s},{x:l,y:s}]}function v2(n,r){const{x:i,y:s}=n;let l=!1;for(let c=0,d=r.length-1;c<r.length;d=c++){const f=r[c],p=r[d],g=f.x,w=f.y,m=p.x,x=p.y;w>s!=x>s&&i<(m-g)*(s-w)/(x-w)+g&&(l=!l)}return l}function y2(n){const r=n.slice();return r.sort((i,s)=>i.x<s.x?-1:i.x>s.x?1:i.y<s.y?-1:i.y>s.y?1:0),w2(r)}function w2(n){if(n.length<=1)return n.slice();const r=[];for(let s=0;s<n.length;s++){const l=n[s];for(;r.length>=2;){const c=r[r.length-1],d=r[r.length-2];if((c.x-d.x)*(l.y-d.y)>=(c.y-d.y)*(l.x-d.x))r.pop();else break}r.push(l)}r.pop();const i=[];for(let s=n.length-1;s>=0;s--){const l=n[s];for(;i.length>=2;){const c=i[i.length-1],d=i[i.length-2];if((c.x-d.x)*(l.y-d.y)>=(c.y-d.y)*(l.x-d.x))i.pop();else break}i.push(l)}return i.pop(),r.length===1&&i.length===1&&r[0].x===i[0].x&&r[0].y===i[0].y?r:r.concat(i)}var x2=Sm,b2=Cm,k2=Em,S2=Nm,C2=_m,E2=Pm;const N2=Hi("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Im({className:n,variant:r="default",size:i="default",asChild:s=!1,...l}){const c=s?hf:"button";return y.jsx(c,{"data-slot":"button","data-variant":r,"data-size":i,className:we(N2({variant:r,size:i,className:n})),...l})}const _2={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"},R2=Hi("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 T2({className:n,variant:r="default",hue:i,asChild:s=!1,...l}){const c=s?hf:"span",d=i?_2[i]:void 0;return y.jsx(c,{"data-slot":"badge","data-variant":r,className:we(R2({variant:r}),d,n),...l})}function P2({className:n,type:r,...i}){return y.jsx("input",{type:r,"data-slot":"input",className:we("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 I2({className:n,...r}){return y.jsx("textarea",{"data-slot":"textarea",className:we("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),...r})}function A2({...n}){return y.jsx(IS,{"data-slot":"select",...n})}function M2({...n}){return y.jsx(MS,{"data-slot":"select-value",...n})}function j2({className:n,size:r="default",children:i,...s}){return y.jsxs(AS,{"data-slot":"select-trigger","data-size":r,className:we("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),...s,children:[i,y.jsx(jS,{asChild:!0,children:y.jsx(Md,{className:"size-4 opacity-50"})})]})}function L2({className:n,children:r,position:i="item-aligned",align:s="center",...l}){return y.jsx(LS,{children:y.jsxs(zS,{"data-slot":"select-content",className:we("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:s,...l,children:[y.jsx(O2,{}),y.jsx(OS,{className:we("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),y.jsx(D2,{})]})})}function z2({className:n,children:r,...i}){return y.jsxs(DS,{"data-slot":"select-item",className:we("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(BS,{children:y.jsx(Ad,{className:"size-4"})})}),y.jsx(FS,{children:r})]})}function O2({className:n,...r}){return y.jsx($S,{"data-slot":"select-scroll-up-button",className:we("flex cursor-default items-center justify-center py-1",n),...r,children:y.jsx(cw,{className:"size-4"})})}function D2({className:n,...r}){return y.jsx(US,{"data-slot":"select-scroll-down-button",className:we("flex cursor-default items-center justify-center py-1",n),...r,children:y.jsx(Md,{className:"size-4"})})}function F2({className:n,...r}){return y.jsx(ip,{"data-slot":"checkbox",className:we("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),...r,children:y.jsx(ap,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:y.jsx(Ad,{className:"size-3.5"})})})}function B2({className:n,size:r="default",...i}){return y.jsx(QS,{"data-slot":"switch","data-size":r,className:we("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(ZS,{"data-slot":"switch-thumb",className:we("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 $2({className:n,...r}){return y.jsx(_k,{"data-slot":"label",className:we("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),...r})}function U2({className:n,...r}){return y.jsx(Wk,{"data-slot":"radio-group",className:we("grid gap-3",n),...r})}function H2({className:n,...r}){return y.jsx(qk,{"data-slot":"radio-group-item",className:we("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),...r,children:y.jsx(Gk,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:y.jsx(dw,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"})})})}function V2({className:n,orientation:r="horizontal",decorative:i=!0,...s}){return y.jsx(qS,{"data-slot":"separator",decorative:i,orientation:r,className:we("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),...s})}function W2({className:n,orientation:r="horizontal",...i}){return y.jsx(t2,{"data-slot":"tabs","data-orientation":r,orientation:r,className:we("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",n),...i})}const q2=Hi("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 G2({className:n,variant:r="default",...i}){return y.jsx(n2,{"data-slot":"tabs-list","data-variant":r,className:we(q2({variant:r}),n),...i})}function Y2({className:n,...r}){return y.jsx(r2,{"data-slot":"tabs-trigger",className:we("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),...r})}function K2({className:n,...r}){return y.jsx(o2,{"data-slot":"tabs-content",className:we("flex-1 outline-none",n),...r})}function X2({className:n,children:r,...i}){return y.jsxs(iS,{"data-slot":"scroll-area",className:we("relative",n),...i,children:[y.jsx(sS,{"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:r}),y.jsx(Q2,{}),y.jsx(aS,{})]})}function Q2({className:n,orientation:r="vertical",...i}){return y.jsx(Sh,{"data-slot":"scroll-area-scrollbar",orientation:r,className:we("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...i,children:y.jsx(_h,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function Ql({className:n,size:r="default",...i}){return y.jsx(Q1,{"data-slot":"avatar","data-size":r,className:we("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 Zl({className:n,...r}){return y.jsx(Z1,{"data-slot":"avatar-image",className:we("aspect-square size-full",n),...r})}function Jl({className:n,...r}){return y.jsx(J1,{"data-slot":"avatar-fallback",className:we("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",n),...r})}var lo={},ec,Am;function Z2(){return Am||(Am=1,ec=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),ec}var tc={},Vn={},Mm;function _r(){if(Mm)return Vn;Mm=1;let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Vn.getSymbolSize=function(s){if(!s)throw new Error('"version" cannot be null or undefined');if(s<1||s>40)throw new Error('"version" should be in range from 1 to 40');return s*4+17},Vn.getSymbolTotalCodewords=function(s){return r[s]},Vn.getBCHDigit=function(i){let s=0;for(;i!==0;)s++,i>>>=1;return s},Vn.setToSJISFunction=function(s){if(typeof s!="function")throw new Error('"toSJISFunc" is not a valid function.');n=s},Vn.isKanjiModeEnabled=function(){return typeof n<"u"},Vn.toSJIS=function(s){return n(s)},Vn}var nc={},jm;function rc(){return jm||(jm=1,(function(n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+i)}}n.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},n.from=function(s,l){if(n.isValid(s))return s;try{return r(s)}catch{return l}}})(nc)),nc}var oc,Lm;function J2(){if(Lm)return oc;Lm=1;function n(){this.buffer=[],this.length=0}return n.prototype={get:function(r){const i=Math.floor(r/8);return(this.buffer[i]>>>7-r%8&1)===1},put:function(r,i){for(let s=0;s<i;s++)this.putBit((r>>>i-s-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),r&&(this.buffer[i]|=128>>>this.length%8),this.length++}},oc=n,oc}var ic,zm;function eC(){if(zm)return ic;zm=1;function n(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return n.prototype.set=function(r,i,s,l){const c=r*this.size+i;this.data[c]=s,l&&(this.reservedBit[c]=!0)},n.prototype.get=function(r,i){return this.data[r*this.size+i]},n.prototype.xor=function(r,i,s){this.data[r*this.size+i]^=s},n.prototype.isReserved=function(r,i){return this.reservedBit[r*this.size+i]},ic=n,ic}var sc={},Om;function tC(){return Om||(Om=1,(function(n){const r=_r().getSymbolSize;n.getRowColCoords=function(s){if(s===1)return[];const l=Math.floor(s/7)+2,c=r(s),d=c===145?26:Math.ceil((c-13)/(2*l-2))*2,f=[c-7];for(let p=1;p<l-1;p++)f[p]=f[p-1]-d;return f.push(6),f.reverse()},n.getPositions=function(s){const l=[],c=n.getRowColCoords(s),d=c.length;for(let f=0;f<d;f++)for(let p=0;p<d;p++)f===0&&p===0||f===0&&p===d-1||f===d-1&&p===0||l.push([c[f],c[p]]);return l}})(sc)),sc}var ac={},Dm;function nC(){if(Dm)return ac;Dm=1;const n=_r().getSymbolSize,r=7;return ac.getPositions=function(s){const l=n(s);return[[0,0],[l-r,0],[0,l-r]]},ac}var lc={},Fm;function rC(){return Fm||(Fm=1,(function(n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};n.isValid=function(l){return l!=null&&l!==""&&!isNaN(l)&&l>=0&&l<=7},n.from=function(l){return n.isValid(l)?parseInt(l,10):void 0},n.getPenaltyN1=function(l){const c=l.size;let d=0,f=0,p=0,g=null,w=null;for(let m=0;m<c;m++){f=p=0,g=w=null;for(let x=0;x<c;x++){let k=l.get(m,x);k===g?f++:(f>=5&&(d+=r.N1+(f-5)),g=k,f=1),k=l.get(x,m),k===w?p++:(p>=5&&(d+=r.N1+(p-5)),w=k,p=1)}f>=5&&(d+=r.N1+(f-5)),p>=5&&(d+=r.N1+(p-5))}return d},n.getPenaltyN2=function(l){const c=l.size;let d=0;for(let f=0;f<c-1;f++)for(let p=0;p<c-1;p++){const g=l.get(f,p)+l.get(f,p+1)+l.get(f+1,p)+l.get(f+1,p+1);(g===4||g===0)&&d++}return d*r.N2},n.getPenaltyN3=function(l){const c=l.size;let d=0,f=0,p=0;for(let g=0;g<c;g++){f=p=0;for(let w=0;w<c;w++)f=f<<1&2047|l.get(g,w),w>=10&&(f===1488||f===93)&&d++,p=p<<1&2047|l.get(w,g),w>=10&&(p===1488||p===93)&&d++}return d*r.N3},n.getPenaltyN4=function(l){let c=0;const d=l.data.length;for(let p=0;p<d;p++)c+=l.data[p];return Math.abs(Math.ceil(c*100/d/5)-10)*r.N4};function i(s,l,c){switch(s){case n.Patterns.PATTERN000:return(l+c)%2===0;case n.Patterns.PATTERN001:return l%2===0;case n.Patterns.PATTERN010:return c%3===0;case n.Patterns.PATTERN011:return(l+c)%3===0;case n.Patterns.PATTERN100:return(Math.floor(l/2)+Math.floor(c/3))%2===0;case n.Patterns.PATTERN101:return l*c%2+l*c%3===0;case n.Patterns.PATTERN110:return(l*c%2+l*c%3)%2===0;case n.Patterns.PATTERN111:return(l*c%3+(l+c)%2)%2===0;default:throw new Error("bad maskPattern:"+s)}}n.applyMask=function(l,c){const d=c.size;for(let f=0;f<d;f++)for(let p=0;p<d;p++)c.isReserved(p,f)||c.xor(p,f,i(l,p,f))},n.getBestMask=function(l,c){const d=Object.keys(n.Patterns).length;let f=0,p=1/0;for(let g=0;g<d;g++){c(g),n.applyMask(g,l);const w=n.getPenaltyN1(l)+n.getPenaltyN2(l)+n.getPenaltyN3(l)+n.getPenaltyN4(l);n.applyMask(g,l),w<p&&(p=w,f=g)}return f}})(lc)),lc}var Rs={},Bm;function $m(){if(Bm)return Rs;Bm=1;const n=rc(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Rs.getBlocksCount=function(l,c){switch(c){case n.L:return r[(l-1)*4+0];case n.M:return r[(l-1)*4+1];case n.Q:return r[(l-1)*4+2];case n.H:return r[(l-1)*4+3];default:return}},Rs.getTotalCodewordsCount=function(l,c){switch(c){case n.L:return i[(l-1)*4+0];case n.M:return i[(l-1)*4+1];case n.Q:return i[(l-1)*4+2];case n.H:return i[(l-1)*4+3];default:return}},Rs}var cc={},Ko={},Um;function oC(){if(Um)return Ko;Um=1;const n=new Uint8Array(512),r=new Uint8Array(256);return(function(){let s=1;for(let l=0;l<255;l++)n[l]=s,r[s]=l,s<<=1,s&256&&(s^=285);for(let l=255;l<512;l++)n[l]=n[l-255]})(),Ko.log=function(s){if(s<1)throw new Error("log("+s+")");return r[s]},Ko.exp=function(s){return n[s]},Ko.mul=function(s,l){return s===0||l===0?0:n[r[s]+r[l]]},Ko}var Hm;function iC(){return Hm||(Hm=1,(function(n){const r=oC();n.mul=function(s,l){const c=new Uint8Array(s.length+l.length-1);for(let d=0;d<s.length;d++)for(let f=0;f<l.length;f++)c[d+f]^=r.mul(s[d],l[f]);return c},n.mod=function(s,l){let c=new Uint8Array(s);for(;c.length-l.length>=0;){const d=c[0];for(let p=0;p<l.length;p++)c[p]^=r.mul(l[p],d);let f=0;for(;f<c.length&&c[f]===0;)f++;c=c.slice(f)}return c},n.generateECPolynomial=function(s){let l=new Uint8Array([1]);for(let c=0;c<s;c++)l=n.mul(l,new Uint8Array([1,r.exp(c)]));return l}})(cc)),cc}var uc,Vm;function sC(){if(Vm)return uc;Vm=1;const n=iC();function r(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(s){this.degree=s,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(s){if(!this.genPoly)throw new Error("Encoder not initialized");const l=new Uint8Array(s.length+this.degree);l.set(s);const c=n.mod(l,this.genPoly),d=this.degree-c.length;if(d>0){const f=new Uint8Array(this.degree);return f.set(c,d),f}return c},uc=r,uc}var dc={},fc={},pc={},Wm;function qm(){return Wm||(Wm=1,pc.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),pc}var dn={},Gm;function Ym(){if(Gm)return dn;Gm=1;const n="[0-9]+",r="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const s="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
340
+ ]))+`;dn.KANJI=new RegExp(i,"g"),dn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),dn.BYTE=new RegExp(s,"g"),dn.NUMERIC=new RegExp(n,"g"),dn.ALPHANUMERIC=new RegExp(r,"g");const l=new RegExp("^"+i+"$"),c=new RegExp("^"+n+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return dn.testKanji=function(p){return l.test(p)},dn.testNumeric=function(p){return c.test(p)},dn.testAlphanumeric=function(p){return d.test(p)},dn}var Km;function Rr(){return Km||(Km=1,(function(n){const r=qm(),i=Ym();n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(c,d){if(!c.ccBits)throw new Error("Invalid mode: "+c);if(!r.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?c.ccBits[0]:d<27?c.ccBits[1]:c.ccBits[2]},n.getBestModeForData=function(c){return i.testNumeric(c)?n.NUMERIC:i.testAlphanumeric(c)?n.ALPHANUMERIC:i.testKanji(c)?n.KANJI:n.BYTE},n.toString=function(c){if(c&&c.id)return c.id;throw new Error("Invalid mode")},n.isValid=function(c){return c&&c.bit&&c.ccBits};function s(l){if(typeof l!="string")throw new Error("Param is not a string");switch(l.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+l)}}n.from=function(c,d){if(n.isValid(c))return c;try{return s(c)}catch{return d}}})(fc)),fc}var Xm;function aC(){return Xm||(Xm=1,(function(n){const r=_r(),i=$m(),s=rc(),l=Rr(),c=qm(),d=7973,f=r.getBCHDigit(d);function p(x,k,E){for(let S=1;S<=40;S++)if(k<=n.getCapacity(S,E,x))return S}function g(x,k){return l.getCharCountIndicator(x,k)+4}function w(x,k){let E=0;return x.forEach(function(S){const C=g(S.mode,k);E+=C+S.getBitsLength()}),E}function m(x,k){for(let E=1;E<=40;E++)if(w(x,E)<=n.getCapacity(E,k,l.MIXED))return E}n.from=function(k,E){return c.isValid(k)?parseInt(k,10):E},n.getCapacity=function(k,E,S){if(!c.isValid(k))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=l.BYTE);const C=r.getSymbolTotalCodewords(k),N=i.getTotalCodewordsCount(k,E),R=(C-N)*8;if(S===l.MIXED)return R;const P=R-g(S,k);switch(S){case l.NUMERIC:return Math.floor(P/10*3);case l.ALPHANUMERIC:return Math.floor(P/11*2);case l.KANJI:return Math.floor(P/13);case l.BYTE:default:return Math.floor(P/8)}},n.getBestVersionForData=function(k,E){let S;const C=s.from(E,s.M);if(Array.isArray(k)){if(k.length>1)return m(k,C);if(k.length===0)return 1;S=k[0]}else S=k;return p(S.mode,S.getLength(),C)},n.getEncodedBits=function(k){if(!c.isValid(k)||k<7)throw new Error("Invalid QR Code version");let E=k<<12;for(;r.getBCHDigit(E)-f>=0;)E^=d<<r.getBCHDigit(E)-f;return k<<12|E}})(dc)),dc}var hc={},Qm;function lC(){if(Qm)return hc;Qm=1;const n=_r(),r=1335,i=21522,s=n.getBCHDigit(r);return hc.getEncodedBits=function(c,d){const f=c.bit<<3|d;let p=f<<10;for(;n.getBCHDigit(p)-s>=0;)p^=r<<n.getBCHDigit(p)-s;return(f<<10|p)^i},hc}var mc={},gc,Zm;function cC(){if(Zm)return gc;Zm=1;const n=Rr();function r(i){this.mode=n.NUMERIC,this.data=i.toString()}return r.getBitsLength=function(s){return 10*Math.floor(s/3)+(s%3?s%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(s){let l,c,d;for(l=0;l+3<=this.data.length;l+=3)c=this.data.substr(l,3),d=parseInt(c,10),s.put(d,10);const f=this.data.length-l;f>0&&(c=this.data.substr(l),d=parseInt(c,10),s.put(d,f*3+1))},gc=r,gc}var vc,Jm;function uC(){if(Jm)return vc;Jm=1;const n=Rr(),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(s){this.mode=n.ALPHANUMERIC,this.data=s}return i.getBitsLength=function(l){return 11*Math.floor(l/2)+6*(l%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(l){let c;for(c=0;c+2<=this.data.length;c+=2){let d=r.indexOf(this.data[c])*45;d+=r.indexOf(this.data[c+1]),l.put(d,11)}this.data.length%2&&l.put(r.indexOf(this.data[c]),6)},vc=i,vc}var yc,eg;function dC(){if(eg)return yc;eg=1;const n=Rr();function r(i){this.mode=n.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return r.getBitsLength=function(s){return s*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(i){for(let s=0,l=this.data.length;s<l;s++)i.put(this.data[s],8)},yc=r,yc}var wc,tg;function fC(){if(tg)return wc;tg=1;const n=Rr(),r=_r();function i(s){this.mode=n.KANJI,this.data=s}return i.getBitsLength=function(l){return l*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(s){let l;for(l=0;l<this.data.length;l++){let c=r.toSJIS(this.data[l]);if(c>=33088&&c<=40956)c-=33088;else if(c>=57408&&c<=60351)c-=49472;else throw new Error("Invalid SJIS character: "+this.data[l]+`
341
+ Make sure your charset is UTF-8`);c=(c>>>8&255)*192+(c&255),s.put(c,13)}},wc=i,wc}var xc={exports:{}},ng;function pC(){return ng||(ng=1,(function(n){var r={single_source_shortest_paths:function(i,s,l){var c={},d={};d[s]=0;var f=r.PriorityQueue.make();f.push(s,0);for(var p,g,w,m,x,k,E,S,C;!f.empty();){p=f.pop(),g=p.value,m=p.cost,x=i[g]||{};for(w in x)x.hasOwnProperty(w)&&(k=x[w],E=m+k,S=d[w],C=typeof d[w]>"u",(C||S>E)&&(d[w]=E,f.push(w,E),c[w]=g))}if(typeof l<"u"&&typeof d[l]>"u"){var N=["Could not find a path from ",s," to ",l,"."].join("");throw new Error(N)}return c},extract_shortest_path_from_predecessor_list:function(i,s){for(var l=[],c=s;c;)l.push(c),i[c],c=i[c];return l.reverse(),l},find_path:function(i,s,l){var c=r.single_source_shortest_paths(i,s,l);return r.extract_shortest_path_from_predecessor_list(c,l)},PriorityQueue:{make:function(i){var s=r.PriorityQueue,l={},c;i=i||{};for(c in s)s.hasOwnProperty(c)&&(l[c]=s[c]);return l.queue=[],l.sorter=i.sorter||s.default_sorter,l},default_sorter:function(i,s){return i.cost-s.cost},push:function(i,s){var l={value:i,cost:s};this.queue.push(l),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};n.exports=r})(xc)),xc.exports}var rg;function hC(){return rg||(rg=1,(function(n){const r=Rr(),i=cC(),s=uC(),l=dC(),c=fC(),d=Ym(),f=_r(),p=pC();function g(N){return unescape(encodeURIComponent(N)).length}function w(N,R,P){const M=[];let W;for(;(W=N.exec(P))!==null;)M.push({data:W[0],index:W.index,mode:R,length:W[0].length});return M}function m(N){const R=w(d.NUMERIC,r.NUMERIC,N),P=w(d.ALPHANUMERIC,r.ALPHANUMERIC,N);let M,W;return f.isKanjiModeEnabled()?(M=w(d.BYTE,r.BYTE,N),W=w(d.KANJI,r.KANJI,N)):(M=w(d.BYTE_KANJI,r.BYTE,N),W=[]),R.concat(P,M,W).sort(function(D,j){return D.index-j.index}).map(function(D){return{data:D.data,mode:D.mode,length:D.length}})}function x(N,R){switch(R){case r.NUMERIC:return i.getBitsLength(N);case r.ALPHANUMERIC:return s.getBitsLength(N);case r.KANJI:return c.getBitsLength(N);case r.BYTE:return l.getBitsLength(N)}}function k(N){return N.reduce(function(R,P){const M=R.length-1>=0?R[R.length-1]:null;return M&&M.mode===P.mode?(R[R.length-1].data+=P.data,R):(R.push(P),R)},[])}function E(N){const R=[];for(let P=0;P<N.length;P++){const M=N[P];switch(M.mode){case r.NUMERIC:R.push([M,{data:M.data,mode:r.ALPHANUMERIC,length:M.length},{data:M.data,mode:r.BYTE,length:M.length}]);break;case r.ALPHANUMERIC:R.push([M,{data:M.data,mode:r.BYTE,length:M.length}]);break;case r.KANJI:R.push([M,{data:M.data,mode:r.BYTE,length:g(M.data)}]);break;case r.BYTE:R.push([{data:M.data,mode:r.BYTE,length:g(M.data)}])}}return R}function S(N,R){const P={},M={start:{}};let W=["start"];for(let z=0;z<N.length;z++){const D=N[z],j=[];for(let q=0;q<D.length;q++){const Z=D[q],U=""+z+q;j.push(U),P[U]={node:Z,lastCount:0},M[U]={};for(let K=0;K<W.length;K++){const X=W[K];P[X]&&P[X].node.mode===Z.mode?(M[X][U]=x(P[X].lastCount+Z.length,Z.mode)-x(P[X].lastCount,Z.mode),P[X].lastCount+=Z.length):(P[X]&&(P[X].lastCount=Z.length),M[X][U]=x(Z.length,Z.mode)+4+r.getCharCountIndicator(Z.mode,R))}}W=j}for(let z=0;z<W.length;z++)M[W[z]].end=0;return{map:M,table:P}}function C(N,R){let P;const M=r.getBestModeForData(N);if(P=r.from(R,M),P!==r.BYTE&&P.bit<M.bit)throw new Error('"'+N+'" cannot be encoded with mode '+r.toString(P)+`.
342
+ Suggested mode is: `+r.toString(M));switch(P===r.KANJI&&!f.isKanjiModeEnabled()&&(P=r.BYTE),P){case r.NUMERIC:return new i(N);case r.ALPHANUMERIC:return new s(N);case r.KANJI:return new c(N);case r.BYTE:return new l(N)}}n.fromArray=function(R){return R.reduce(function(P,M){return typeof M=="string"?P.push(C(M,null)):M.data&&P.push(C(M.data,M.mode)),P},[])},n.fromString=function(R,P){const M=m(R,f.isKanjiModeEnabled()),W=E(M),z=S(W,P),D=p.find_path(z.map,"start","end"),j=[];for(let q=1;q<D.length-1;q++)j.push(z.table[D[q]].node);return n.fromArray(k(j))},n.rawSplit=function(R){return n.fromArray(m(R,f.isKanjiModeEnabled()))}})(mc)),mc}var og;function mC(){if(og)return tc;og=1;const n=_r(),r=rc(),i=J2(),s=eC(),l=tC(),c=nC(),d=rC(),f=$m(),p=sC(),g=aC(),w=lC(),m=Rr(),x=hC();function k(z,D){const j=z.size,q=c.getPositions(D);for(let Z=0;Z<q.length;Z++){const U=q[Z][0],K=q[Z][1];for(let X=-1;X<=7;X++)if(!(U+X<=-1||j<=U+X))for(let Y=-1;Y<=7;Y++)K+Y<=-1||j<=K+Y||(X>=0&&X<=6&&(Y===0||Y===6)||Y>=0&&Y<=6&&(X===0||X===6)||X>=2&&X<=4&&Y>=2&&Y<=4?z.set(U+X,K+Y,!0,!0):z.set(U+X,K+Y,!1,!0))}}function E(z){const D=z.size;for(let j=8;j<D-8;j++){const q=j%2===0;z.set(j,6,q,!0),z.set(6,j,q,!0)}}function S(z,D){const j=l.getPositions(D);for(let q=0;q<j.length;q++){const Z=j[q][0],U=j[q][1];for(let K=-2;K<=2;K++)for(let X=-2;X<=2;X++)K===-2||K===2||X===-2||X===2||K===0&&X===0?z.set(Z+K,U+X,!0,!0):z.set(Z+K,U+X,!1,!0)}}function C(z,D){const j=z.size,q=g.getEncodedBits(D);let Z,U,K;for(let X=0;X<18;X++)Z=Math.floor(X/3),U=X%3+j-8-3,K=(q>>X&1)===1,z.set(Z,U,K,!0),z.set(U,Z,K,!0)}function N(z,D,j){const q=z.size,Z=w.getEncodedBits(D,j);let U,K;for(U=0;U<15;U++)K=(Z>>U&1)===1,U<6?z.set(U,8,K,!0):U<8?z.set(U+1,8,K,!0):z.set(q-15+U,8,K,!0),U<8?z.set(8,q-U-1,K,!0):U<9?z.set(8,15-U-1+1,K,!0):z.set(8,15-U-1,K,!0);z.set(q-8,8,1,!0)}function R(z,D){const j=z.size;let q=-1,Z=j-1,U=7,K=0;for(let X=j-1;X>0;X-=2)for(X===6&&X--;;){for(let Y=0;Y<2;Y++)if(!z.isReserved(Z,X-Y)){let ue=!1;K<D.length&&(ue=(D[K]>>>U&1)===1),z.set(Z,X-Y,ue),U--,U===-1&&(K++,U=7)}if(Z+=q,Z<0||j<=Z){Z-=q,q=-q;break}}}function P(z,D,j){const q=new i;j.forEach(function(Y){q.put(Y.mode.bit,4),q.put(Y.getLength(),m.getCharCountIndicator(Y.mode,z)),Y.write(q)});const Z=n.getSymbolTotalCodewords(z),U=f.getTotalCodewordsCount(z,D),K=(Z-U)*8;for(q.getLengthInBits()+4<=K&&q.put(0,4);q.getLengthInBits()%8!==0;)q.putBit(0);const X=(K-q.getLengthInBits())/8;for(let Y=0;Y<X;Y++)q.put(Y%2?17:236,8);return M(q,z,D)}function M(z,D,j){const q=n.getSymbolTotalCodewords(D),Z=f.getTotalCodewordsCount(D,j),U=q-Z,K=f.getBlocksCount(D,j),X=q%K,Y=K-X,ue=Math.floor(q/K),Q=Math.floor(U/K),ne=Q+1,G=ue-Q,F=new p(G);let I=0;const _=new Array(K),O=new Array(K);let H=0;const J=new Uint8Array(z.buffer);for(let de=0;de<K;de++){const ye=de<Y?Q:ne;_[de]=J.slice(I,I+ye),O[de]=F.encode(_[de]),I+=ye,H=Math.max(H,ye)}const ee=new Uint8Array(q);let ce=0,ie,re;for(ie=0;ie<H;ie++)for(re=0;re<K;re++)ie<_[re].length&&(ee[ce++]=_[re][ie]);for(ie=0;ie<G;ie++)for(re=0;re<K;re++)ee[ce++]=O[re][ie];return ee}function W(z,D,j,q){let Z;if(Array.isArray(z))Z=x.fromArray(z);else if(typeof z=="string"){let ue=D;if(!ue){const Q=x.rawSplit(z);ue=g.getBestVersionForData(Q,j)}Z=x.fromString(z,ue||40)}else throw new Error("Invalid data");const U=g.getBestVersionForData(Z,j);if(!U)throw new Error("The amount of data is too big to be stored in a QR Code");if(!D)D=U;else if(D<U)throw new Error(`
338
343
  The chosen QR Code version cannot contain this amount of data.
339
344
  Minimum version required to store current data is: `+U+`.
340
- `);const K=P(D,j,Z),X=n.getSymbolSize(D),Y=new s(X);return k(Y,D),E(Y),S(Y,D),N(Y,j,0),D>=7&&C(Y,D),R(Y,K),isNaN(q)&&(q=d.getBestMask(Y,N.bind(null,Y,j))),d.applyMask(q,Y),N(Y,j,q),{modules:Y,version:D,errorCorrectionLevel:j,maskPattern:q,segments:Z}}return tc.create=function(D,j){if(typeof D>"u"||D==="")throw new Error("No input text");let q=r.M,Z,U;return typeof j<"u"&&(q=r.from(j.errorCorrectionLevel,r.M),Z=g.from(j.version),U=d.from(j.maskPattern),j.toSJISFunc&&n.setToSJISFunction(j.toSJISFunc)),W(D,Z,q,U)},tc}var bc={},kc={},og;function ig(){return og||(og=1,(function(n){function r(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let s=i.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+i);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(c){return[c,c]}))),s.length===6&&s.push("F","F");const l=parseInt(s.join(""),16);return{r:l>>24&255,g:l>>16&255,b:l>>8&255,a:l&255,hex:"#"+s.slice(0,6).join("")}}n.getOptions=function(s){s||(s={}),s.color||(s.color={});const l=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,c=s.width&&s.width>=21?s.width:void 0,d=s.scale||4;return{width:c,scale:c?4:d,margin:l,color:{dark:r(s.color.dark||"#000000ff"),light:r(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},n.getScale=function(s,l){return l.width&&l.width>=s+l.margin*2?l.width/(s+l.margin*2):l.scale},n.getImageWidth=function(s,l){const c=n.getScale(s,l);return Math.floor((s+l.margin*2)*c)},n.qrToImageData=function(s,l,c){const d=l.modules.size,f=l.modules.data,p=n.getScale(d,c),g=Math.floor((d+c.margin*2)*p),w=c.margin*p,m=[c.color.light,c.color.dark];for(let x=0;x<g;x++)for(let k=0;k<g;k++){let E=(x*g+k)*4,S=c.color.light;if(x>=w&&k>=w&&x<g-w&&k<g-w){const C=Math.floor((x-w)/p),N=Math.floor((k-w)/p);S=m[f[C*d+N]?1:0]}s[E++]=S.r,s[E++]=S.g,s[E++]=S.b,s[E]=S.a}}})(kc)),kc}var sg;function mC(){return sg||(sg=1,(function(n){const r=ig();function i(l,c,d){l.clearRect(0,0,c.width,c.height),c.style||(c.style={}),c.height=d,c.width=d,c.style.height=d+"px",c.style.width=d+"px"}function s(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}n.render=function(c,d,f){let p=f,g=d;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),d||(g=s()),p=r.getOptions(p);const w=r.getImageWidth(c.modules.size,p),m=g.getContext("2d"),x=m.createImageData(w,w);return r.qrToImageData(x.data,c,p),i(m,g,w),m.putImageData(x,0,0),g},n.renderToDataURL=function(c,d,f){let p=f;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),p||(p={});const g=n.render(c,d,p),w=p.type||"image/png",m=p.rendererOpts||{};return g.toDataURL(w,m.quality)}})(bc)),bc}var Sc={},ag;function gC(){if(ag)return Sc;ag=1;const n=ig();function r(l,c){const d=l.a/255,f=c+'="'+l.hex+'"';return d<1?f+" "+c+'-opacity="'+d.toFixed(2).slice(1)+'"':f}function i(l,c,d){let f=l+c;return typeof d<"u"&&(f+=" "+d),f}function s(l,c,d){let f="",p=0,g=!1,w=0;for(let m=0;m<l.length;m++){const x=Math.floor(m%c),k=Math.floor(m/c);!x&&!g&&(g=!0),l[m]?(w++,m>0&&x>0&&l[m-1]||(f+=g?i("M",x+d,.5+k+d):i("m",p,0),p=0,g=!1),x+1<c&&l[m+1]||(f+=i("h",w),w=0)):p++}return f}return Sc.render=function(c,d,f){const p=n.getOptions(d),g=c.modules.size,w=c.modules.data,m=g+p.margin*2,x=p.color.light.a?"<path "+r(p.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",k="<path "+r(p.color.dark,"stroke")+' d="'+s(w,g,p.margin)+'"/>',E='viewBox="0 0 '+m+" "+m+'"',C='<svg xmlns="http://www.w3.org/2000/svg" '+(p.width?'width="'+p.width+'" height="'+p.width+'" ':"")+E+' shape-rendering="crispEdges">'+x+k+`</svg>
341
- `;return typeof f=="function"&&f(null,C),C},Sc}var lg;function vC(){if(lg)return ao;lg=1;const n=Q2(),r=hC(),i=mC(),s=gC();function l(c,d,f,p,g){const w=[].slice.call(arguments,1),m=w.length,x=typeof w[m-1]=="function";if(!x&&!n())throw new Error("Callback required as last argument");if(x){if(m<2)throw new Error("Too few arguments provided");m===2?(g=f,f=d,d=p=void 0):m===3&&(d.getContext&&typeof g>"u"?(g=p,p=void 0):(g=p,p=f,f=d,d=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(f=d,d=p=void 0):m===2&&!d.getContext&&(p=f,f=d,d=void 0),new Promise(function(k,E){try{const S=r.create(f,p);k(c(S,d,p))}catch(S){E(S)}})}try{const k=r.create(f,p);g(null,c(k,d,p))}catch(k){g(k)}}return ao.create=r.create,ao.toCanvas=l.bind(null,i.render),ao.toDataURL=l.bind(null,i.renderToDataURL),ao.toString=l.bind(null,function(c,d,f){return s.render(c,f)}),ao}var yC=vC();const wC=Vt(yC);function cg({className:n,...r}){return y.jsx("div",{"data-slot":"skeleton",className:we("animate-pulse rounded-md bg-accent",n),...r})}const xC={sm:"size-24",md:"size-36",lg:"size-48"},bC={default:{dark:"#000000",light:"#ffffff"},inverted:{dark:"#ffffff",light:"#000000"}};function kC({value:n,size:r="md",variant:i="default",level:s="medium",alt:l="QR code",className:c}){const[d,f]=v.useState(null),[p,g]=v.useState(!1);v.useEffect(()=>{let m=!1;return g(!1),wC.toDataURL(n,{color:bC[i],errorCorrectionLevel:s,width:512,margin:4}).then(x=>{m||f(x)}).catch(x=>{console.error("[ui-qr-code] Failed to encode:",x),m||g(!0)}),()=>{m=!0}},[n,i,s]);const w=we(xC[r],"rounded-sm",c);return p?y.jsx("div",{className:we(w,"bg-muted flex items-center justify-center"),role:"img","aria-label":"Failed to render QR code",children:y.jsx(gw,{className:"size-1/3 text-muted-foreground"})}):d?y.jsx("div",{className:we(w,"overflow-hidden"),children:y.jsx("img",{src:d,alt:l,className:"size-full"})}):y.jsx(cg,{className:we(w,i==="inverted"&&"bg-black")})}function SC({delayDuration:n=0,...r}){return y.jsx(w2,{"data-slot":"tooltip-provider",delayDuration:n,...r})}function CC({...n}){return y.jsx(x2,{"data-slot":"tooltip",...n})}function EC({...n}){return y.jsx(b2,{"data-slot":"tooltip-trigger",...n})}function NC({className:n,sideOffset:r=0,children:i,...s}){return y.jsx(k2,{children:y.jsxs(S2,{"data-slot":"tooltip-content",sideOffset:r,className:we("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),...s,children:[i,y.jsx(C2,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function _C({className:n,value:r,...i}){return y.jsx(Mk,{"data-slot":"progress",className:we("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",n),...i,children:y.jsx(jk,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})})}const RC=Hi("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 TC({className:n,variant:r,...i}){return y.jsx("div",{"data-slot":"alert",role:"alert",className:we(RC({variant:r}),n),...i})}function PC({className:n,...r}){return y.jsx("div",{"data-slot":"alert-title",className:we("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",n),...r})}function IC({className:n,...r}){return y.jsx("div",{"data-slot":"alert-description",className:we("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",n),...r})}function AC({...n}){return y.jsx(Ox,{"data-slot":"collapsible",...n})}function MC({...n}){return y.jsx(xf,{"data-slot":"collapsible-trigger",...n})}function jC({...n}){return y.jsx(bf,{"data-slot":"collapsible-content",...n})}const lo=n=>n==null?void 0:n===!0||n==="true",ug={"arrow-left":rw,calendar:sw,"check-circle-2":Ld,"chevron-left":aw,"chevron-right":Wa,clock:dw,"credit-card":pw,"external-link":hw,"help-circle":zd,info:Fi,"loader-2":qa,mail:Ga,"map-pin":vw,"message-circle":Od,"message-square":Ya,package:ww,phone:xw,search:kw,"shopping-bag":Sw,sparkles:Dd,truck:Ew,user:Fd,"x-circle":cw,"alert-circle":jd,"book-open":ow},dg={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"},fg={default:"text-foreground",muted:"text-muted-foreground",destructive:"text-destructive"},pg=n=>typeof n=="number"?dg[String(n)]??"gap-2":typeof n=="string"?dg[n.trim()]??"gap-2":"gap-2",LC=({children:n,className:r,onClick:i})=>y.jsx(Fo,{className:r,onClick:i,children:n}),zC=({children:n,className:r})=>y.jsx(Bo,{className:r,children:n}),OC=({children:n,className:r})=>y.jsx(mx,{className:r,children:n}),DC=({children:n,className:r,onClick:i,variant:s,size:l,disabled:c,title:d})=>y.jsx(Pm,{className:r,variant:s,size:l,onClick:i,disabled:lo(c),title:d,children:n}),FC=({children:n,className:r,variant:i,hue:s,tone:l})=>y.jsx(R2,{className:we(fg[l]??"",r),variant:i,hue:s,children:n}),BC=({className:n,onChange:r,...i})=>y.jsx(T2,{className:n,onChange:r,...i}),$C=({className:n,onChange:r,...i})=>y.jsx(P2,{className:n,onChange:r,...i}),UC=({children:n,className:r,value:i,defaultValue:s,onChange:l,placeholder:c,disabled:d})=>y.jsxs(I2,{value:i,defaultValue:s,onValueChange:f=>{const p=l;p==null||p({target:{value:f}})},disabled:lo(d),children:[y.jsx(M2,{className:r,children:y.jsx(A2,{placeholder:c})}),y.jsx(j2,{style:{zIndex:"calc(var(--widget-z, 1000) + 1)"},children:n})]}),HC=({children:n,value:r,disabled:i,className:s})=>y.jsx(L2,{value:r,disabled:lo(i),className:s,children:n}),VC=({checked:n,onChange:r,disabled:i,className:s,id:l})=>{const c=n!==void 0,d=r;return y.jsx(D2,{...c?{checked:n==="true"||n===!0}:{},onCheckedChange:f=>d==null?void 0:d({target:{value:String(f)}}),disabled:lo(i),className:s,id:l})},WC=({checked:n,onChange:r,disabled:i,size:s,className:l,id:c})=>{const d=n!==void 0,f=r;return y.jsx(F2,{...d?{checked:n==="true"||n===!0}:{},onCheckedChange:p=>f==null?void 0:f({target:{value:String(p)}}),disabled:lo(i),size:s,className:l,id:c})},qC=({children:n,htmlFor:r,className:i})=>y.jsx(B2,{htmlFor:r,className:i,children:n}),GC=({children:n,value:r,defaultValue:i,onChange:s,className:l})=>y.jsx($2,{value:r,defaultValue:i,onValueChange:c=>{const d=s;d==null||d({target:{value:c}})},className:l,children:n}),YC=({value:n,disabled:r,className:i,id:s})=>y.jsx(U2,{value:n,disabled:lo(r),className:i,id:s}),KC=({className:n})=>y.jsx(H2,{className:n}),XC=({children:n,defaultValue:r,className:i})=>{const[s,l]=ae.useState(r);return y.jsx(V2,{value:s,onValueChange:l,className:i,children:n})},QC=({children:n,className:r})=>y.jsx(q2,{className:r,children:n}),ZC=({children:n,value:r,className:i})=>y.jsx(G2,{className:i,value:r,children:n}),JC=({children:n,value:r,className:i})=>y.jsx(Y2,{className:i,value:r,children:n}),eE=({children:n,className:r})=>y.jsx(K2,{className:r,children:n}),tE=({src:n,alt:r,className:i})=>{var s;return y.jsxs(Ql,{className:i,children:[y.jsx(Zl,{src:n,alt:r}),y.jsx(Jl,{children:((s=r==null?void 0:r.charAt(0))==null?void 0:s.toUpperCase())||"?"})]})},nE=({width:n,height:r,className:i})=>y.jsx(cg,{className:i,style:{width:n,height:r}}),rE=({children:n,content:r,className:i})=>y.jsx(SC,{children:y.jsxs(CC,{children:[y.jsx(EC,{asChild:!0,children:y.jsx("span",{className:i,children:n})}),y.jsx(NC,{children:y.jsx("p",{children:String(r)})})]})}),oE=({value:n,className:r})=>y.jsx(_C,{value:typeof n=="string"?Number(n):n,className:r}),iE={default:Fi,destructive:jd},sE=({children:n,variant:r,title:i,className:s})=>{const l=r,c=iE[l||"default"]||Fi;return y.jsxs(TC,{variant:l,className:s,children:[y.jsx(c,{className:"size-4"}),i?y.jsx(PC,{children:String(i)}):null,n?y.jsx(IC,{children:n}):null]})},aE=({children:n,defaultOpen:r,className:i})=>y.jsx(AC,{defaultOpen:r==="true"||r===!0,className:i,children:n}),lE=({children:n,className:r})=>y.jsxs(MC,{className:we("flex items-center gap-1 cursor-pointer text-sm font-medium [&[data-state=open]>svg]:rotate-90",r),children:[y.jsx(Wa,{className:"size-4 shrink-0 transition-transform duration-200"}),n]}),cE=({children:n,className:r})=>y.jsx(jC,{className:r,children:n}),uE=({children:n,className:r,tone:i})=>y.jsx("p",{className:we("text-sm",fg[i]??"",r),children:n}),dE=({children:n,className:r,level:i})=>{const s=`h${i||"2"}`;return y.jsx(s,{className:we("font-semibold tracking-tight",r),children:n})},fE=({children:n,className:r,direction:i,gap:s})=>{const l=i==="row"?"flex-row":"flex-col",c=pg(s);return y.jsx("div",{className:we("flex",l,c,r),children:n})},pE=({children:n,className:r,gap:i})=>{const s=pg(i);return y.jsx("div",{className:we("flex flex-row items-center",s,r),children:n})},hE=({children:n,className:r,href:i,target:s,rel:l})=>y.jsx("a",{href:i,target:s,rel:l,className:r,children:n}),mE=({title:n,children:r,className:i})=>y.jsxs(Fo,{className:we("overflow-hidden p-0 gap-0 shadow-sm",i),children:[n?y.jsx(Bo,{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:r})]}),gE=({icon:n,label:r,description:i,onClick:s,className:l})=>{const c=n,d="size-5",f=c?ug[c]:null;return y.jsxs("button",{type:"button",className:we("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:s,children:[f&&y.jsx(f,{className:`${d} shrink-0 text-muted-foreground`}),y.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0 items-start",children:[r?y.jsx("p",{className:"font-medium text-sm text-foreground",children:String(r)}):null,i?y.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:String(i)}):null]}),y.jsx(Wa,{className:"mr-1 size-4 shrink-0 text-muted-foreground"})]})},vE=({name:n,size:r,className:i})=>{const l={sm:"size-3",md:"size-5",lg:"size-6"}[r]??"size-4",c=n,d=ug[c],f=c==="sparkles"?"sparkle-icon":"";return d?y.jsx(d,{className:we(l,f,i)}):y.jsx("span",{className:we("inline-block",l,f,i),"data-icon":c})},yE=({value:n,size:r,variant:i,level:s,alt:l,className:c})=>y.jsx(kC,{value:n,size:r,variant:i,level:s,alt:l,className:c}),wE=()=>({"ui-card":LC,"ui-card-content":zC,"ui-card-header":OC,"ui-button":DC,"ui-text":uE,"ui-heading":dE,"ui-badge":FC,"ui-input":BC,"ui-textarea":$C,"ui-select":UC,"ui-select-option":HC,"ui-checkbox":VC,"ui-switch":WC,"ui-label":qC,"ui-radio-group":GC,"ui-radio-group-item":YC,"ui-stack":fE,"ui-inline":pE,"ui-separator":KC,"ui-tabs":XC,"ui-tabs-list":QC,"ui-tabs-trigger":ZC,"ui-tabs-content":JC,"ui-scroll-area":eE,"ui-avatar":tE,"ui-icon":vE,"ui-qr-code":yE,"ui-link":hE,"ui-menu-item":gE,"ui-menu":mE,"ui-skeleton":nE,"ui-tooltip":rE,"ui-progress":oE,"ui-alert":sE,"ui-collapsible":aE,"ui-collapsible-trigger":lE,"ui-collapsible-content":cE}),hg="/api/ecommerce",mg=async(n,r)=>{const i=r?`${r.replace(/\/$/,"")}${hg}`:hg,s=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}),l=await s.json();if(!s.ok)throw new Error(l.error||"API request failed");return l.data},xE=({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)"})})]}),gg="stackable-dev-badge-styles",bE=()=>{if(typeof document>"u"||document.getElementById(gg))return;const n=document.createElement("style");n.id=gg,n.textContent=`
345
+ `);const K=P(D,j,Z),X=n.getSymbolSize(D),Y=new s(X);return k(Y,D),E(Y),S(Y,D),N(Y,j,0),D>=7&&C(Y,D),R(Y,K),isNaN(q)&&(q=d.getBestMask(Y,N.bind(null,Y,j))),d.applyMask(q,Y),N(Y,j,q),{modules:Y,version:D,errorCorrectionLevel:j,maskPattern:q,segments:Z}}return tc.create=function(D,j){if(typeof D>"u"||D==="")throw new Error("No input text");let q=r.M,Z,U;return typeof j<"u"&&(q=r.from(j.errorCorrectionLevel,r.M),Z=g.from(j.version),U=d.from(j.maskPattern),j.toSJISFunc&&n.setToSJISFunction(j.toSJISFunc)),W(D,Z,q,U)},tc}var bc={},kc={},ig;function sg(){return ig||(ig=1,(function(n){function r(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let s=i.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+i);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(c){return[c,c]}))),s.length===6&&s.push("F","F");const l=parseInt(s.join(""),16);return{r:l>>24&255,g:l>>16&255,b:l>>8&255,a:l&255,hex:"#"+s.slice(0,6).join("")}}n.getOptions=function(s){s||(s={}),s.color||(s.color={});const l=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,c=s.width&&s.width>=21?s.width:void 0,d=s.scale||4;return{width:c,scale:c?4:d,margin:l,color:{dark:r(s.color.dark||"#000000ff"),light:r(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},n.getScale=function(s,l){return l.width&&l.width>=s+l.margin*2?l.width/(s+l.margin*2):l.scale},n.getImageWidth=function(s,l){const c=n.getScale(s,l);return Math.floor((s+l.margin*2)*c)},n.qrToImageData=function(s,l,c){const d=l.modules.size,f=l.modules.data,p=n.getScale(d,c),g=Math.floor((d+c.margin*2)*p),w=c.margin*p,m=[c.color.light,c.color.dark];for(let x=0;x<g;x++)for(let k=0;k<g;k++){let E=(x*g+k)*4,S=c.color.light;if(x>=w&&k>=w&&x<g-w&&k<g-w){const C=Math.floor((x-w)/p),N=Math.floor((k-w)/p);S=m[f[C*d+N]?1:0]}s[E++]=S.r,s[E++]=S.g,s[E++]=S.b,s[E]=S.a}}})(kc)),kc}var ag;function gC(){return ag||(ag=1,(function(n){const r=sg();function i(l,c,d){l.clearRect(0,0,c.width,c.height),c.style||(c.style={}),c.height=d,c.width=d,c.style.height=d+"px",c.style.width=d+"px"}function s(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}n.render=function(c,d,f){let p=f,g=d;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),d||(g=s()),p=r.getOptions(p);const w=r.getImageWidth(c.modules.size,p),m=g.getContext("2d"),x=m.createImageData(w,w);return r.qrToImageData(x.data,c,p),i(m,g,w),m.putImageData(x,0,0),g},n.renderToDataURL=function(c,d,f){let p=f;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),p||(p={});const g=n.render(c,d,p),w=p.type||"image/png",m=p.rendererOpts||{};return g.toDataURL(w,m.quality)}})(bc)),bc}var Sc={},lg;function vC(){if(lg)return Sc;lg=1;const n=sg();function r(l,c){const d=l.a/255,f=c+'="'+l.hex+'"';return d<1?f+" "+c+'-opacity="'+d.toFixed(2).slice(1)+'"':f}function i(l,c,d){let f=l+c;return typeof d<"u"&&(f+=" "+d),f}function s(l,c,d){let f="",p=0,g=!1,w=0;for(let m=0;m<l.length;m++){const x=Math.floor(m%c),k=Math.floor(m/c);!x&&!g&&(g=!0),l[m]?(w++,m>0&&x>0&&l[m-1]||(f+=g?i("M",x+d,.5+k+d):i("m",p,0),p=0,g=!1),x+1<c&&l[m+1]||(f+=i("h",w),w=0)):p++}return f}return Sc.render=function(c,d,f){const p=n.getOptions(d),g=c.modules.size,w=c.modules.data,m=g+p.margin*2,x=p.color.light.a?"<path "+r(p.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",k="<path "+r(p.color.dark,"stroke")+' d="'+s(w,g,p.margin)+'"/>',E='viewBox="0 0 '+m+" "+m+'"',C='<svg xmlns="http://www.w3.org/2000/svg" '+(p.width?'width="'+p.width+'" height="'+p.width+'" ':"")+E+' shape-rendering="crispEdges">'+x+k+`</svg>
346
+ `;return typeof f=="function"&&f(null,C),C},Sc}var cg;function yC(){if(cg)return lo;cg=1;const n=Z2(),r=mC(),i=gC(),s=vC();function l(c,d,f,p,g){const w=[].slice.call(arguments,1),m=w.length,x=typeof w[m-1]=="function";if(!x&&!n())throw new Error("Callback required as last argument");if(x){if(m<2)throw new Error("Too few arguments provided");m===2?(g=f,f=d,d=p=void 0):m===3&&(d.getContext&&typeof g>"u"?(g=p,p=void 0):(g=p,p=f,f=d,d=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(f=d,d=p=void 0):m===2&&!d.getContext&&(p=f,f=d,d=void 0),new Promise(function(k,E){try{const S=r.create(f,p);k(c(S,d,p))}catch(S){E(S)}})}try{const k=r.create(f,p);g(null,c(k,d,p))}catch(k){g(k)}}return lo.create=r.create,lo.toCanvas=l.bind(null,i.render),lo.toDataURL=l.bind(null,i.renderToDataURL),lo.toString=l.bind(null,function(c,d,f){return s.render(c,f)}),lo}var wC=yC();const xC=Vt(wC);function ug({className:n,...r}){return y.jsx("div",{"data-slot":"skeleton",className:we("animate-pulse rounded-md bg-accent",n),...r})}const bC={sm:"size-24",md:"size-36",lg:"size-48"},kC={sm:"p-2",md:"p-3",lg:"p-3"},SC={default:{dark:"#000000",light:"#ffffff"},inverted:{dark:"#ffffff",light:"#000000"}},CC={default:"bg-white",inverted:"bg-black"};function EC({value:n,color:r,margin:i=0,width:s=512,variant:l="default",errorCorrectionLevel:c="M",alt:d="QR code",size:f="md",className:p,...g}){const[w,m]=v.useState(null),[x,k]=v.useState(!1);v.useEffect(()=>{if(m(null),k(!n),!n)return;let S=!1;try{xC.toDataURL(n,{color:r??SC[l],errorCorrectionLevel:c,margin:i,width:s,...g}).then(C=>{S||m(C)}).catch(C=>{console.error("[ui-qr-code] Failed to encode:",C),S||k(!0)})}catch(C){console.error("[ui-qr-code] Failed to encode:",C),k(!0)}return()=>{S=!0}},[n,l,c,i,s,r,g]);const E=we(bC[f],"rounded-sm",p);return x?y.jsx("div",{className:we(E,"bg-muted flex items-center justify-center"),role:"img","aria-label":"Failed to render QR code",children:y.jsx(Od,{className:"size-1/3 text-muted-foreground"})}):w?y.jsx("div",{className:we(E,kC[f],CC[l],"overflow-hidden"),children:y.jsx("img",{src:w,alt:d,className:"size-full"})}):y.jsx(ug,{className:we(E,l==="inverted"&&"bg-black")})}function NC({delayDuration:n=0,...r}){return y.jsx(x2,{"data-slot":"tooltip-provider",delayDuration:n,...r})}function _C({...n}){return y.jsx(b2,{"data-slot":"tooltip",...n})}function RC({...n}){return y.jsx(k2,{"data-slot":"tooltip-trigger",...n})}function TC({className:n,sideOffset:r=0,children:i,...s}){return y.jsx(S2,{children:y.jsxs(C2,{"data-slot":"tooltip-content",sideOffset:r,className:we("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),...s,children:[i,y.jsx(E2,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function PC({className:n,value:r,...i}){return y.jsx(jk,{"data-slot":"progress",className:we("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",n),...i,children:y.jsx(Lk,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})})}const IC=Hi("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 AC({className:n,variant:r,...i}){return y.jsx("div",{"data-slot":"alert",role:"alert",className:we(IC({variant:r}),n),...i})}function MC({className:n,...r}){return y.jsx("div",{"data-slot":"alert-title",className:we("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",n),...r})}function jC({className:n,...r}){return y.jsx("div",{"data-slot":"alert-description",className:we("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",n),...r})}function LC({...n}){return y.jsx(Dx,{"data-slot":"collapsible",...n})}function zC({...n}){return y.jsx(bf,{"data-slot":"collapsible-trigger",...n})}function OC({...n}){return y.jsx(kf,{"data-slot":"collapsible-content",...n})}const co=n=>n==null?void 0:n===!0||n==="true",dg={"arrow-left":ow,calendar:aw,"check-circle-2":Ld,"chevron-left":lw,"chevron-right":Wa,clock:fw,"credit-card":hw,"external-link":mw,"help-circle":zd,info:Fi,"loader-2":qa,mail:Ga,"map-pin":vw,"message-circle":Dd,"message-square":Ya,package:ww,phone:xw,search:Sw,"shopping-bag":Cw,sparkles:Fd,truck:Nw,user:Bd,"x-circle":uw,"alert-circle":jd,"book-open":iw,"qr-code":kw,"image-off":Od},fg={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"},pg={default:"text-foreground",muted:"text-muted-foreground",destructive:"text-destructive"},hg=n=>typeof n=="number"?fg[String(n)]??"gap-2":typeof n=="string"?fg[n.trim()]??"gap-2":"gap-2",DC=({children:n,className:r,onClick:i})=>y.jsx(Fo,{className:r,onClick:i,children:n}),FC=({children:n,className:r})=>y.jsx(Bo,{className:r,children:n}),BC=({children:n,className:r})=>y.jsx(gx,{className:r,children:n}),$C=({children:n,className:r,onClick:i,variant:s,size:l,disabled:c,title:d})=>y.jsx(Im,{className:r,variant:s,size:l,onClick:i,disabled:co(c),title:d,children:n}),UC=({children:n,className:r,variant:i,hue:s,tone:l})=>y.jsx(T2,{className:we(pg[l]??"",r),variant:i,hue:s,children:n}),HC=({className:n,onChange:r,...i})=>y.jsx(P2,{className:n,onChange:r,...i}),VC=({className:n,onChange:r,...i})=>y.jsx(I2,{className:n,onChange:r,...i}),WC=({children:n,className:r,value:i,defaultValue:s,onChange:l,placeholder:c,disabled:d})=>y.jsxs(A2,{value:i,defaultValue:s,onValueChange:f=>{const p=l;p==null||p({target:{value:f}})},disabled:co(d),children:[y.jsx(j2,{className:r,children:y.jsx(M2,{placeholder:c})}),y.jsx(L2,{style:{zIndex:"calc(var(--widget-z, 1000) + 1)"},children:n})]}),qC=({children:n,value:r,disabled:i,className:s})=>y.jsx(z2,{value:r,disabled:co(i),className:s,children:n}),GC=({checked:n,onChange:r,disabled:i,className:s,id:l})=>{const c=n!==void 0,d=r;return y.jsx(F2,{...c?{checked:n==="true"||n===!0}:{},onCheckedChange:f=>d==null?void 0:d({target:{value:String(f)}}),disabled:co(i),className:s,id:l})},YC=({checked:n,onChange:r,disabled:i,size:s,className:l,id:c})=>{const d=n!==void 0,f=r;return y.jsx(B2,{...d?{checked:n==="true"||n===!0}:{},onCheckedChange:p=>f==null?void 0:f({target:{value:String(p)}}),disabled:co(i),size:s,className:l,id:c})},KC=({children:n,htmlFor:r,className:i})=>y.jsx($2,{htmlFor:r,className:i,children:n}),XC=({children:n,value:r,defaultValue:i,onChange:s,className:l})=>y.jsx(U2,{value:r,defaultValue:i,onValueChange:c=>{const d=s;d==null||d({target:{value:c}})},className:l,children:n}),QC=({value:n,disabled:r,className:i,id:s})=>y.jsx(H2,{value:n,disabled:co(r),className:i,id:s}),ZC=({className:n})=>y.jsx(V2,{className:n}),JC=({children:n,defaultValue:r,className:i})=>{const[s,l]=ae.useState(r);return y.jsx(W2,{value:s,onValueChange:l,className:i,children:n})},eE=({children:n,className:r})=>y.jsx(G2,{className:r,children:n}),tE=({children:n,value:r,className:i})=>y.jsx(Y2,{className:i,value:r,children:n}),nE=({children:n,value:r,className:i})=>y.jsx(K2,{className:i,value:r,children:n}),rE=({children:n,className:r})=>y.jsx(X2,{className:r,children:n}),oE=({src:n,alt:r,className:i})=>{var s;return y.jsxs(Ql,{className:i,children:[y.jsx(Zl,{src:n,alt:r}),y.jsx(Jl,{children:((s=r==null?void 0:r.charAt(0))==null?void 0:s.toUpperCase())||"?"})]})},iE=({width:n,height:r,className:i})=>y.jsx(ug,{className:i,style:{width:n,height:r}}),sE=({children:n,content:r,className:i})=>y.jsx(NC,{children:y.jsxs(_C,{children:[y.jsx(RC,{asChild:!0,children:y.jsx("span",{className:i,children:n})}),y.jsx(TC,{children:y.jsx("p",{children:String(r)})})]})}),aE=({value:n,className:r})=>y.jsx(PC,{value:typeof n=="string"?Number(n):n,className:r}),lE={default:Fi,destructive:jd},cE=({children:n,variant:r,title:i,className:s})=>{const l=r,c=lE[l||"default"]||Fi;return y.jsxs(AC,{variant:l,className:s,children:[y.jsx(c,{className:"size-4"}),i?y.jsx(MC,{children:String(i)}):null,n?y.jsx(jC,{children:n}):null]})},uE=({children:n,defaultOpen:r,className:i})=>y.jsx(LC,{defaultOpen:r==="true"||r===!0,className:i,children:n}),dE=({children:n,className:r})=>y.jsxs(zC,{className:we("flex items-center gap-1 cursor-pointer text-sm font-medium [&[data-state=open]>svg]:rotate-90",r),children:[y.jsx(Wa,{className:"size-4 shrink-0 transition-transform duration-200"}),n]}),fE=({children:n,className:r})=>y.jsx(OC,{className:r,children:n}),pE=({children:n,className:r,tone:i})=>y.jsx("p",{className:we("text-sm",pg[i]??"",r),children:n}),hE=({children:n,className:r,level:i})=>{const s=`h${i||"2"}`;return y.jsx(s,{className:we("font-semibold tracking-tight",r),children:n})},mE=({children:n,className:r,direction:i,gap:s})=>{const l=i==="row"?"flex-row":"flex-col",c=hg(s);return y.jsx("div",{className:we("flex",l,c,r),children:n})},gE=({children:n,className:r,gap:i})=>{const s=hg(i);return y.jsx("div",{className:we("flex flex-row items-center",s,r),children:n})},vE=({children:n,className:r,href:i,target:s,rel:l})=>y.jsx("a",{href:i,target:s,rel:l,className:r,children:n}),yE=({title:n,children:r,className:i})=>y.jsxs(Fo,{className:we("overflow-hidden p-0 gap-0 shadow-sm",i),children:[n?y.jsx(Bo,{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:r})]}),wE=({icon:n,label:r,description:i,onClick:s,className:l})=>{const c=n,d="size-5",f=c?dg[c]:null;return y.jsxs("button",{type:"button",className:we("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:s,children:[f&&y.jsx(f,{className:`${d} shrink-0 text-muted-foreground`}),y.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0 items-start",children:[r?y.jsx("p",{className:"font-medium text-sm text-foreground",children:String(r)}):null,i?y.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:String(i)}):null]}),y.jsx(Wa,{className:"mr-1 size-4 shrink-0 text-muted-foreground"})]})},xE=({name:n,size:r,className:i})=>{const l={sm:"size-3",md:"size-5",lg:"size-6"}[r]??"size-4",c=n,d=dg[c],f=c==="sparkles"?"sparkle-icon":"";return d?y.jsx(d,{className:we(l,f,i)}):y.jsx("span",{className:we("inline-block",l,f,i),"data-icon":c})},bE=({value:n,size:r,variant:i,level:s,alt:l,className:c})=>y.jsx(EC,{value:n,size:r,variant:i,errorCorrectionLevel:s,alt:l,className:c}),kE=()=>({"ui-card":DC,"ui-card-content":FC,"ui-card-header":BC,"ui-button":$C,"ui-text":pE,"ui-heading":hE,"ui-badge":UC,"ui-input":HC,"ui-textarea":VC,"ui-select":WC,"ui-select-option":qC,"ui-checkbox":GC,"ui-switch":YC,"ui-label":KC,"ui-radio-group":XC,"ui-radio-group-item":QC,"ui-stack":mE,"ui-inline":gE,"ui-separator":ZC,"ui-tabs":JC,"ui-tabs-list":eE,"ui-tabs-trigger":tE,"ui-tabs-content":nE,"ui-scroll-area":rE,"ui-avatar":oE,"ui-icon":xE,"ui-qr-code":bE,"ui-link":vE,"ui-menu-item":wE,"ui-menu":yE,"ui-skeleton":iE,"ui-tooltip":sE,"ui-progress":aE,"ui-alert":cE,"ui-collapsible":uE,"ui-collapsible-trigger":dE,"ui-collapsible-content":fE}),mg="/api/ecommerce",gg=async(n,r)=>{const i=r?`${r.replace(/\/$/,"")}${mg}`:mg,s=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}),l=await s.json();if(!s.ok)throw new Error(l.error||"API request failed");return l.data},SE=({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)"})})]}),vg="stackable-dev-badge-styles",CE=()=>{if(typeof document>"u"||document.getElementById(vg))return;const n=document.createElement("style");n.id=vg,n.textContent=`
342
347
  @keyframes stackable-icon-wiggle {
343
348
  0% { transform: rotate(0deg); }
344
349
  70% { transform: rotate(200deg); }
345
350
  85% { transform: rotate(175deg); }
346
351
  100% { transform: rotate(180deg); }
347
352
  }
348
- `,document.head.appendChild(n)},kE=n=>{const r=n.some(s=>s.mode==="staging"),i=n.some(s=>s.mode==="dev");return r&&i?"Dev + Staging":r?"Staging Mode":"Dev Mode"},SE=n=>n.mode==="staging"?"STAGING":"DEV",CE=({className:n="",extensions:r=[],tokenErrors:i=new Map})=>{const[s,l]=v.useState([]),[c,d]=v.useState(!1),[f,p]=v.useState(!1),[g,w]=v.useState(!1),m=v.useRef(null),x=i.size>0;if(v.useEffect(()=>{bE()},[]),v.useEffect(()=>{if(!x)return;const E=()=>{w(!0),setTimeout(()=>w(!1),600)};E();const S=setInterval(E,4e3);return()=>clearInterval(S)},[x]),v.useEffect(()=>{if(typeof window>"u")return;const E=()=>{const C=Td(window.location.search);l(C)};E();const S=()=>E();return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[]),s.length===0)return null;const k=E=>{if(E.stopPropagation(),typeof window>"u")return;const S=new URL(window.location.href);S.searchParams.delete("_stackable_dev"),S.searchParams.delete("_stackable_staging"),window.location.href=S.toString()};return y.jsxs("div",{className:n,style:{position:"fixed",bottom:"16px",left:"50%",transform:f||g?"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:[c&&y.jsx("div",{style:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderBottom:`1px solid ${x?"#dc2626":"#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:s.map((E,S)=>{var C;return y.jsxs("div",{style:{padding:"8px 12px",borderBottom:S<s.length-1?"1px solid #f3f4f6":"none"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[y.jsx("span",{style:{fontSize:"10px",fontWeight:700,color:E.mode==="staging"?"#7c3aed":"#b45309",backgroundColor:E.mode==="staging"?"#ede9fe":"#fef3c7",padding:"1px 5px",borderRadius:"3px",letterSpacing:"0.05em",fontFamily:"ui-monospace, SFMono-Regular, monospace"},children:SE(E)}),y.jsx("span",{style:{fontSize:"12px",fontWeight:600,color:"#111",fontFamily:"ui-monospace, SFMono-Regular, monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:((C=r.find(N=>N.id===E.extensionId))==null?void 0:C.manifest.name)||E.extensionId})]}),y.jsxs("div",{style:{fontSize:"11px",color:"#6b7280",fontFamily:"ui-monospace, SFMono-Regular, monospace",marginTop:"2px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:E.bundleUrl,children:["→ ",E.bundleUrl]}),i.get(E.extensionId)&&y.jsxs("div",{style:{fontSize:"11px",color:"#dc2626",fontFamily:"ui-monospace, SFMono-Regular, monospace",marginTop:"3px"},children:["⚠ ",i.get(E.extensionId)]})]},E.extensionId)})}),y.jsxs("div",{onClick:()=>d(!c),style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:x?"#dc2626":"#eab308",color:x?"#fff":"#000",padding:"8px 12px",borderRadius:c?"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&&!c||g?"stackable-icon-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both":"none"},children:y.jsx(xE,{className:"w-6 h-6"})}),y.jsx("span",{children:kE(s)}),y.jsxs("span",{style:{fontSize:"12px",opacity:.75},children:["(",s.length," extension",s.length>1?"s":"",")"]}),y.jsx("button",{onClick:k,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:E=>{E.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.25)"},onMouseOut:E=>{E.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.15)"},children:"Clear"})]})]})},EE=800,Xo=(n,r)=>n?`${n.replace(/\/$/,"")}${r}`:r,NE=async(n,r,i,s,l)=>{const c=new Map,d=new Map;return await Promise.all(n.filter(f=>{var p;return f.manifest.permissions.includes("data:fetch")||(((p=f.manifest.settingsSchema)==null?void 0:p.length)??0)>0}).map(async f=>{const p=l.find(k=>k.extensionId===f.id),g=p==null?void 0:p.token,w=p==null?void 0:p.mode,m=Xo(r,"/proxy-token"),x=await fetch(m,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:i,instanceId:s,extensionId:f.id,...w&&{mode:w},...g&&{devSessionToken:g}})});if(x.ok){const{token:k,encryptionKey:E,settings:S}=await x.json();c.set(f.id,{token:k,encryptionKey:E,settings:S})}else{let k=`Proxy token failed (${x.status})`;w&&!g?k="Session token missing — re-run CLI":w&&(k="Session expired or invalid — re-run CLI"),d.set(f.id,k),console.warn(`[embeddables] Failed to obtain proxy token for extension ${f.id} (${x.status}) — ${k}`)}})),{tokens:c,errors:d}},_E=n=>typeof n=="object"&&n!==null&&n.encrypted===!0&&Array.isArray(n.data),RE=({instanceId:n,queryApiBase:r,apiBase:i,appId:s,children:l,customerId:c,customerEmail:d,customerName:f})=>{const[p,g]=v.useState([]),[w,m]=v.useState([]),[x,k]=v.useState(new Map),[E,S]=v.useState(new Map),[C,N]=v.useState(!1),[R,P]=v.useState({authenticated:!1,user:null}),[M,W]=v.useState(void 0);v.useEffect(()=>{window.stackable||(window.stackable={emit:(F,I={})=>{const[_,...O]=F.split(":"),H=O.join(":");window.dispatchEvent(new CustomEvent(`stackable:${_}`,{detail:{eventName:H,data:I}}))}})},[]);const z=v.useRef(null),D=v.useRef(new Set),j=v.useMemo(()=>p.filter(F=>F.manifest.permissions.includes("extend:identity")).map(F=>F.id),[p]);v.useEffect(()=>{(async()=>{const I=n;try{if(!I){console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"),g([]),N(!0);return}if(!i||!s){console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"),g([]),N(!0);return}const _=await fetch(Xo(i,`/instances/${s}/${I}`));if(!_.ok){console.warn(`[ExtensionSetup] Instance not found or failed to load: ${I}`),g([]),N(!0);return}const O=await _.json(),H=Td(typeof window<"u"?window.location.search:""),J=await Xy(O,H),{tokens:ee,errors:ce}=await NE(J,i,s,I,H);g(J),m(H),k(new Map(ee)),S(ce)}catch(_){console.error("Failed to load extensions:",_)}finally{N(!0)}})()},[n,s,i]),v.useEffect(()=>{if(!i||!s||p.length===0)return;const I=setInterval(async()=>{const _=[];await Promise.all(p.filter(O=>{var H;return O.manifest.permissions.includes("data:fetch")||(((H=O.manifest.settingsSchema)==null?void 0:H.length)??0)>0}).map(async O=>{const H=w.find(re=>re.extensionId===O.id),J=H==null?void 0:H.token,ee=H==null?void 0:H.mode,ce=Xo(i,"/proxy-token"),ie=await fetch(ce,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:s,instanceId:n,extensionId:O.id,...ee&&{mode:ee},...J&&{devSessionToken:J}})});if(ie.ok){const{token:re,encryptionKey:de,settings:ye}=await ie.json();_.push([O.id,{token:re,encryptionKey:de,settings:ye}])}else console.warn(`[embeddables] Proxy token refresh failed for extension ${O.id} (${ie.status}) — using stale token`)})),_.length>0&&k(O=>{const H=new Map(O);for(const[J,ee]of _)H.set(J,ee);return H})},3300*1e3);return()=>clearInterval(I)},[p,w,i,s,n]),v.useEffect(()=>{if(x.size===0)return;const F=I=>{const _=I.data;if((_==null?void 0:_.type)!=="extension-ready")return;const O=_.extensionId,H=p.find(ce=>ce.id===O);if(!(H!=null&&H.bundleUrl))return;const J=w.find(ce=>ce.extensionId===O);if(Gy(H.bundleUrl)&&(J==null?void 0:J.mode)!=="staging")return;const ee=x.get(O);ee&&rn(O,{type:"extension-encryption-key",encryptionKey:ee.encryptionKey})};return window.addEventListener("message",F),()=>window.removeEventListener("message",F)},[p,w,x]);const q=v.useCallback((F,I)=>{const _=qr();for(const[O,H]of _){if(!H.manifest.permissions.includes("events:identity"))continue;const J=H.manifest.events??[];!J.includes("identity")&&!J.includes(`identity:${F}`)||rn(O,{type:"extension-event",eventType:"identity",payload:{eventName:F,data:{state:I,timestamp:Ha(new Date().toISOString())}}})}},[]),Z=v.useCallback(F=>{const I=qr();for(const[_,O]of I){if(!O.manifest.permissions.includes("events:messaging"))continue;const H=O.manifest.events??[];!H.includes("messaging")&&!H.includes("messaging:postback")&&!H.includes(`messaging:postback:${F.data.actionName}`)||rn(_,{type:"extension-event",eventType:"messaging",payload:F})}},[]),U=v.useCallback(F=>{const I=qr();for(const[_,O]of I){if(!O.manifest.permissions.includes("events:activity"))continue;const H=O.manifest.events??[];!H.includes("activity")&&!H.includes(`activity:${F.eventName}`)||rn(_,{type:"extension-event",eventType:"activity",payload:F})}},[]),K=v.useCallback(async F=>{const I=qr(),_=[];for(const[H,J]of I){if(!J.manifest.permissions.includes("extend:identity"))continue;const ee=new Promise(ce=>{const ie=`enrich_${H}_${Date.now()}`,re=de=>{const ye=de.data;(ye==null?void 0:ye.type)!=="extend-identity-response"||ye.id!==ie||(window.removeEventListener("message",re),ye.additionalClaims?ce(ye.additionalClaims):ce({}))};window.addEventListener("message",re),setTimeout(()=>{window.removeEventListener("message",re),ce({})},5e3),rn(H,{type:"extend-identity-request",id:ie,claims:F})});_.push(ee)}if(_.length===0)return{};const O=await Promise.all(_);return Object.assign({},...O)},[]),X=v.useCallback(async F=>{if(!i||!s||!n)return console.warn("[embeddables] signIdentity skipped — missing:",{apiBase:!!i,appId:!!s,instanceId:!!n}),null;const I=Xo(i,`/instances/${s}/${n}/identity`);console.log("[embeddables] Calling identity sign:",{url:I,claims:Object.keys(F)});try{const _=await fetch(I,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(F)});if(!_.ok)return console.warn(`[embeddables] Identity sign failed (${_.status})`),null;const{token:O}=await _.json();return O}catch(_){return console.warn("[embeddables] Identity sign request failed:",_),null}},[i,s,n]),Y=v.useCallback(F=>{const I=window.zE;I&&I("messenger","loginUser",async _=>{_(F)})},[]),ue=v.useCallback(()=>{const F=window.zE;F&&F("messenger","logoutUser")},[]),Q=v.useCallback(F=>{console.log("[embeddables] Running sign lifecycle for user:",F.id);const{email:I,name:_}=F,O={external_id:String(F.id)};(async()=>{const H=await K({...O,email:I,name:_});console.log("[embeddables] Enriched claims:",H);const J=await X({...O,...H,email:I,name:_});console.log("[embeddables] Sign result:",{hasToken:!!J}),J&&Y(J)})()},[K,X,Y]),ne=v.useCallback(F=>{if(j.length>0&&D.current.size<j.length){console.log(`[embeddables] Deferring sign lifecycle — waiting for extend:identity extensions: ${D.current.size}/${j.length} ready`),z.current=F;return}console.log("[embeddables] No extend:identity extensions (or all ready) — signing immediately"),Q(F)},[j,Q]);v.useEffect(()=>{if(!C){console.log("[embeddables] Identity effect skipped — extensions not loaded yet");return}if(console.log("[embeddables] Identity effect running",{initialized:C,customerId:!!c,extendExtensions:j.length}),c){console.log("[embeddables] Identity from props:",{customerId:c,customerEmail:d,customerName:f});const F={authenticated:!0,user:{id:String(c),email:d,name:f,provider:"shopify"}};P(I=>{var _,O;return I.authenticated&&((_=I.user)==null?void 0:_.id)===((O=F.user)==null?void 0:O.id)?I:(console.log("[embeddables] Identity state changed (props), starting sign lifecycle"),ne(F.user),q("login",F),F)})}else{if(c===void 0)return;P(F=>F.authenticated?(console.log("[embeddables] Customer props cleared, logging out"),ue(),q("logout",{authenticated:!1,user:null}),{authenticated:!1,user:null}):F)}},[C,c,d,f,j,ne,q,ue]),v.useEffect(()=>{if(!C||c!==void 0)return;const F=()=>{const _=document.getElementById("stackable-identity");if(_)try{const O=JSON.parse(_.textContent??"{}"),H={authenticated:!0,user:{id:String(O.customerId??""),email:O.customerEmail,name:O.customerName,provider:"shopify"}};P(J=>{var ee,ce;return J.authenticated&&((ee=J.user)==null?void 0:ee.id)===((ce=H.user)==null?void 0:ce.id)?J:(console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"),ne(H.user),q("login",H),H)})}catch{console.warn("[embeddables] Failed to parse #stackable-identity JSON")}else P(O=>O.authenticated?(ue(),q("logout",{authenticated:!1,user:null}),{authenticated:!1,user:null}):O)};F();const I=new MutationObserver(F);return I.observe(document.head,{childList:!0,subtree:!0}),I.observe(document.body,{childList:!0,subtree:!0}),()=>I.disconnect()},[C,c,ne,q,ue]),v.useEffect(()=>{if(!R.authenticated)return;const F=I=>{const _=I.data;if((_==null?void 0:_.type)!=="extension-ready")return;const O=_.extensionId,H=p.find(ee=>ee.id===O);if(!(H!=null&&H.manifest.permissions.includes("events:identity")))return;const J=H.manifest.events??[];!J.includes("identity")&&!J.includes("identity:login")||rn(O,{type:"extension-event",eventType:"identity",payload:{eventName:"login",data:{state:R,timestamp:Ha(new Date().toISOString())}}})};return window.addEventListener("message",F),()=>window.removeEventListener("message",F)},[R,p]),v.useEffect(()=>{if(j.length===0)return;const F=_=>{const O=_.data;if((O==null?void 0:O.type)!=="extension-ready")return;const H=O.extensionId;if(j.includes(H)&&(D.current.add(H),console.log(`[embeddables] extend:identity extension ready: ${H} (${D.current.size}/${j.length})`),D.current.size>=j.length&&z.current)){console.log("[embeddables] All extend:identity extensions ready, running deferred sign lifecycle");const J=z.current;z.current=null,Q(J)}};window.addEventListener("message",F);const I=setTimeout(()=>{if(z.current){console.warn(`[embeddables] extend:identity timeout (5s) — signing with ${D.current.size}/${j.length} extensions ready`);const _=z.current;z.current=null,Q(_)}},5e3);return()=>{window.removeEventListener("message",F),clearTimeout(I)}},[j,Q]),v.useEffect(()=>{const F=I=>{const{detail:_}=I;_!=null&&_.eventName&&(_.eventName==="postback"?Z({eventName:"postback",data:{actionName:_.data.actionName,conversationId:_.data.conversationId??"",timestamp:Ha(new Date().toISOString())}}):_.eventName==="context"&&W(O=>({...O,..._.data})))};return window.addEventListener("stackable:messaging",F),()=>window.removeEventListener("stackable:messaging",F)},[Z]),v.useEffect(()=>{const F=I=>{const{detail:_}=I;_!=null&&_.eventName&&U({eventName:_.eventName,data:_.data??{}})};return window.addEventListener("stackable:activity",F),()=>window.removeEventListener("stackable:activity",F)},[U]),v.useEffect(()=>{var _;if(!C)return;const F={customerId:c??"",customerEmail:d??"",customerName:f??"",messaging:M,identity:R},I=qr();for(const[O,H]of I){if(!H.manifest.permissions.includes("context:read"))continue;const J=(_=x.get(O))==null?void 0:_.settings,ee=J?{...F,settings:J}:F;rn(O,{type:"context-push",context:ee})}},[C,c,d,f,R,M,x]);const G=v.useMemo(()=>({"data.query":async F=>mg(F,r),"data.fetch":async(F,I)=>{const _=x.get(F);if(!_)return{status:0,ok:!1,data:{error:"data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"}};const O=_E(I)?I:{url:I.url,method:I.method??"GET",headers:I.headers??{},body:I.body??null},H=Xo(i,"/proxy"),J=await fetch(H,{method:"POST",headers:{"Content-Type":"application/json","X-Extension-Id":F,"X-Application-Id":s??"",Authorization:`Bearer ${_.token}`},body:JSON.stringify(O)}),ee=await J.json();return{status:ee.status??J.status,ok:ee.ok??J.ok,data:ee.data}},"actions.toast":async(F,I)=>{const _={...I.description&&{description:I.description},...I.duration&&{duration:I.duration},...I.position&&{position:I.position},...I.dismissible!=null&&{dismissible:I.dismissible},...I.closeButton!=null&&{closeButton:I.closeButton}};if(I.fetch){const O=J=>new Promise(ee=>setTimeout(ee,J)),H=Promise.all([G["data.fetch"](F,I.fetch),O(EE)]).then(([J])=>J);Kr.promise(H,{loading:I.loading??I.message,success:I.success??I.message,error:I.error??"Something went wrong",..._});return}switch(I.type){case"success":{Kr.success(I.message,_);break}case"error":{Kr.error(I.message,_);break}case"warning":{Kr.warning(I.message,_);break}case"info":{Kr.info(I.message,_);break}default:Kr(I.message,_)}},"actions.invoke":async F=>(window.dispatchEvent(new CustomEvent(`stackable:action:${F.action}`,{detail:F})),{success:!0}),"context.read":async F=>{var I;return{customerId:c??"",customerEmail:d??"",customerName:f??"",identity:R,messaging:M,...((I=x.get(F))==null?void 0:I.settings)&&{settings:x.get(F).settings}}}}),[i,s,r,c,d,f,x,R,M]);return C?y.jsxs(y.Fragment,{children:[y.jsx(hy,{extensions:p,capabilityHandlers:G,components:wE(),children:l}),y.jsx(CE,{extensions:p,tokenErrors:E})]}):null};var TE=(n,r,i,s,l,c,d,f)=>{let p=document.documentElement,g=["light","dark"];function w(k){(Array.isArray(n)?n:[n]).forEach(E=>{let S=E==="class",C=S&&c?l.map(N=>c[N]||N):l;S?(p.classList.remove(...C),p.classList.add(c&&c[k]?c[k]:k)):p.setAttribute(E,k)}),m(k)}function m(k){f&&g.includes(k)&&(p.style.colorScheme=k)}function x(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)w(s);else try{let k=localStorage.getItem(r)||i,E=d&&k==="system"?x():k;w(E)}catch{}},PE=v.createContext(void 0),IE={setTheme:n=>{},themes:[]},AE=()=>{var n;return(n=v.useContext(PE))!=null?n:IE};v.memo(({forcedTheme:n,storageKey:r,attribute:i,enableSystem:s,enableColorScheme:l,defaultTheme:c,value:d,themes:f,nonce:p,scriptProps:g})=>{let w=JSON.stringify([i,r,c,n,f,d,s,l]).slice(1,-1);return v.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${TE.toString()})(${w})`}})});const ME=({...n})=>{const{theme:r="system"}=AE();return y.jsx(qy,{theme:r,className:"toaster group",icons:{success:y.jsx(Ld,{className:"size-4"}),info:y.jsx(Fi,{className:"size-4"}),warning:y.jsx(Cw,{className:"size-4"}),error:y.jsx(yw,{className:"size-4"}),loading:y.jsx(qa,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...n})},jE={dark:"dark",light:"widget-theme-light"},LE={dark:"dark",light:"light"},zE=({children:n,theme:r="inherit"})=>y.jsxs("div",{"data-id":"widget-body",className:jE[r],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(ME,{position:"bottom-center",theme:LE[r]??"system",toastOptions:{descriptionClassName:"!text-muted-foreground"}})]}),OE={airplay:nw,"message-circle":Od,"message-square":Ya,headphones:mw,"help-circle":zd,bot:iw,sparkles:Dd,zap:Nw},DE=({className:n})=>y.jsx("svg",{className:we(n,"scale-125"),viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M10,18 L6,22 L6,18 L10,18 Z M17,6 C19.7614237,6 22,8.23857625 22,11 C22,13.7614237 19.7614237,16 17,16 L7,16 C4.23857625,16 2,13.7614237 2,11 C2,8.23857625 4.23857625,6 7,6 Z",transform:"translate(12, 14) scale(-1, 1) translate(-12, -14)"})}),FE=({className:n})=>y.jsxs("svg",{className:n,viewBox:"0 0 190 190",fill:"currentColor","aria-hidden":"true",children:[y.jsxs("g",{id:"sl-half-right",children:[y.jsx("g",{transform:"translate(-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"})}),y.jsx("g",{transform:"translate(-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",opacity:"0.3"})})]}),y.jsxs("g",{id:"sl-half-left",children:[y.jsx("g",{transform:"translate(-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"})}),y.jsx("g",{transform:"translate(-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",opacity:"0.3"})})]})]}),vg=400,BE=vg*.35,$E=({icon:n,isOpen:r,onClick:i})=>{const s=OE[n]??DE,[l,c]=v.useState("idle"),d=v.useRef(r);v.useEffect(()=>{if(d.current===r)return;d.current=r,c("interstitial");const p=setTimeout(()=>c("idle"),BE);return()=>clearTimeout(p)},[r]);const f=()=>l==="interstitial"?y.jsx(FE,{}):r?y.jsx(fw,{}):y.jsx(s,{});return y.jsx("div",{className:"fixed bottom-8 right-8 z-50",children:y.jsx(Pm,{size:"icon",className:we("h-12 w-12 rounded-full cursor-pointer transition-transform duration-300",r?"scale-115":"scale-100 hover:scale-105"),onClick:i,children:y.jsx("span",{className:we("flex items-center justify-center transition-transform",r&&"rotate-180"),style:{transitionDuration:`${vg}ms`},children:f()})})})},UE=({children:n,icon:r,theme:i})=>{const[s,l]=v.useState(!1),[c,d]=v.useState(!0),[f,p]=v.useState(!1),g=v.useCallback(()=>{l(w=>!w)},[]);return v.useEffect(()=>{s&&!f&&p(!0)},[s,f]),v.useEffect(()=>{const w=()=>l(S=>!S),m=()=>l(!0),x=()=>l(!1),k=()=>d(!0),E=()=>{l(!1),d(!1)};return window.addEventListener("stackable:action:toggle",w),window.addEventListener("stackable:action:open",m),window.addEventListener("stackable:action:close",x),window.addEventListener("stackable:action:show",k),window.addEventListener("stackable:action:hide",E),()=>{window.removeEventListener("stackable:action:open",m),window.removeEventListener("stackable:action:close",x),window.removeEventListener("stackable:action:toggle",w),window.removeEventListener("stackable:action:show",k),window.removeEventListener("stackable:action:hide",E)}},[]),y.jsxs(y.Fragment,{children:[c&&y.jsx($E,{isOpen:s,icon:r,onClick:g}),f&&y.jsx("div",{"data-id":"widget-container",className:we("overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl transition-all duration-200 ease-out origin-bottom-right",s?"opacity-100 scale-100 translate-y-0 pointer-events-auto":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:y.jsx(zE,{theme:i,children:n})})]})},HE=({href:n,children:r})=>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:r}),VE=(n,r)=>{const[i,s]=v.useState(null),[l,c]=v.useState(!1),[d,f]=v.useState(null);return v.useEffect(()=>{if(!n){s(null);return}(async()=>{c(!0),f(null);try{const g=await mg({action:"getCustomer",customerId:n},r);s(g)}catch(g){f(g)}finally{c(!1)}})()},[n,r]),{customer:i,loading:l,error:d}},WE=({customerId:n,customerEmail:r,queryApiBase:i,children:s})=>{var p,g;const{customer:l,loading:c,error:d}=VE(n,i);if(c)return y.jsx(Fo,{className:"border-none shadow-none bg-transparent",children:y.jsx(Bo,{className:"flex items-center justify-center p-6",children:y.jsx(qa,{className:"h-6 w-6 animate-spin text-muted-foreground"})})});if(d||!l){const w=r?r.split("@")[0]:n?`Customer ${n.slice(-4)}`:"Customer",m=w.split(/[\s._-]+/).map(x=>x[0]).join("").slice(0,2).toUpperCase();return y.jsx(Fo,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:y.jsxs(Bo,{className:"p-4 pb-0 pt-2",children:[y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs(Ql,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[y.jsx(Zl,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(w)}&background=7c3aed&color=fff&size=128`,alt:w}),y.jsx(Jl,{className:"text-lg",children:m})]}),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})]}),r&&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(Ga,{className:"h-3 w-3","aria-hidden":"true"}),y.jsx("span",{className:"truncate max-w-[200px]",children:r})]})}),y.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:s})]})]}),y.jsx("p",{className:"pt-2 text-center text-xs text-muted-foreground",children:"Using fallback profile (customer API returned no data)"})]})})}const f=`${((p=l.first_name)==null?void 0:p[0])||""}${((g=l.last_name)==null?void 0:g[0])||""}`;return y.jsx(Fo,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:y.jsx(Bo,{className:"p-4 pb-0 pt-2",children:y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs(Ql,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[y.jsx(Zl,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(l.name)}&background=7c3aed&color=fff&size=128`,alt:l.name}),y.jsx(Jl,{className:"text-lg",children:f})]}),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(Ga,{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:s})]})]})})})},yg=(n,r)=>{v.useEffect(()=>{const i=r.current;if(!i)return;let s=document.getElementById(n);s||(s=document.createElement("div"),s.id=n,s.style.cssText="position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;",document.body.appendChild(s));const l=new MutationObserver(()=>{for(;s.firstChild;)i.appendChild(document.adoptNode(s.firstChild))});return l.observe(s,{childList:!0,subtree:!0}),()=>{l.disconnect(),s==null||s.remove()}},[n,r])},qE=({customization:n})=>{const r=v.useRef(null);return yg("widget_conversations",r),v.useEffect(()=>{!window.zE||!r.current||n&&window.zE("messenger:set","customization",{conversationList:n})},[n]),y.jsx("div",{ref:r,className:"h-full overflow-hidden"})},GE=({customization:n})=>{const r=v.useRef(null);return yg("widget_messages",r),v.useEffect(()=>{!window.zE||!r.current||n&&window.zE("messenger:set","customization",{messageLog:n})},[n]),y.jsx("div",{ref:r,className:"h-full overflow-hidden"})},co="stackable:action",Cc=n=>{window.dispatchEvent(new CustomEvent("stackable:messaging",{detail:{eventName:"context",data:n}}))},Ec=25,Nc=75,YE=({header:n,buttons:r,queryApiBase:i,customerId:s="",customerEmail:l="",primaryPercent:c=50})=>{const d=Math.max(Ec,Math.min(Nc,c)),{extensions:f}=Sd(),p=v.useMemo(()=>f.some(U=>U.enabled&&(U.manifest.targets.includes("slot.header")||U.manifest.targets.includes("slot.content"))),[f]),[g,w]=v.useState(!1),[m,x]=v.useState(!1),[k,E]=v.useState("extensions"),[S,C]=v.useState(d),[N,R]=v.useState("loading"),P=v.useRef(null),M=v.useCallback(()=>!window.zE||!document.getElementById("widget_conversations")||!document.getElementById("widget_messages")?!1:(window.zE("messenger","render",{mode:"embedded",messageLog:{targetElement:"#widget_messages"},conversationList:{targetElement:"#widget_conversations"}}),window.zE("messenger:set","customization",{common:{hideHeader:!1},messageLog:{hideHeader:!0},conversationList:{hideHeader:!0,hideNewConversationButton:!0}}),!0),[]);v.useEffect(()=>{var ue,Q;const U=document.querySelector('script[src*="zdassets.com/ekr/snippet"]'),K=(Q=(ue=U==null?void 0:U.src)==null?void 0:ue.match(/key=([a-f0-9-]+)/))==null?void 0:Q[1];if(K&&fetch(`https://ekr.zdassets.com/compose/${K}`).then(ne=>ne.text()).then(ne=>{var F;const G=(F=ne.match(/appId['"]?\s*:\s*['"]([a-f0-9]+)['"]/))==null?void 0:F[1];G&&Cc({appId:G})}).catch(()=>{}),M()){R("ready");return}const X=setInterval(()=>{M()&&(R("ready"),clearInterval(X))},100),Y=setTimeout(()=>{clearInterval(X),R(ne=>ne==="ready"?ne:(console.warn("Zendesk widget failed to load after 10 seconds"),"error"))},1e4);return()=>{clearInterval(X),clearTimeout(Y)}},[M]);const W=v.useCallback(U=>{!window.zE||!U.length||(console.log("[ZendeskMessenger] setConversationTags",U,{zE:!!window.zE}),window.zE("messenger:set","conversationTags",U))},[]),z=v.useCallback(U=>{!window.zE||!U.length||(console.log("[ZendeskMessenger] setConversationFields",U,{zE:!!window.zE}),window.zE("messenger:set","conversationFields",U))},[]),D=v.useCallback(U=>{if(!window.zE)return;const{tags:K=[],fields:X=[],...Y}=U??{};W(K),z(X),window.zE("messenger:ui","newConversation",Object.keys(Y).length?Y:void 0)},[W,z]),j=v.useCallback(U=>{const{detail:K}=U;K!=null&&K.payload&&D(K.payload)},[D]);v.useEffect(()=>(window.addEventListener(`${co}:${Yr.NEW_CONVERSATION}`,j),()=>{window.removeEventListener(`${co}:${Yr.NEW_CONVERSATION}`,j)}),[j]),v.useEffect(()=>{const U=X=>{const{detail:Y}=X;Y!=null&&Y.payload&&W(Y.payload)},K=X=>{const{detail:Y}=X;Y!=null&&Y.payload&&z(Y.payload)};return window.addEventListener(`${co}:${Yr.SET_CONVERSATION_TAGS}`,U),window.addEventListener(`${co}:${Yr.SET_CONVERSATION_FIELDS}`,K),()=>{window.removeEventListener(`${co}:${Yr.SET_CONVERSATION_TAGS}`,U),window.removeEventListener(`${co}:${Yr.SET_CONVERSATION_FIELDS}`,K)}},[W,z]),v.useEffect(()=>{if(N!=="ready"||!window.zE)return;const U=window.zE("messenger:on","conversationStarted",Y=>{var Q,ne;const ue=(ne=(Q=Y==null?void 0:Y.payload)==null?void 0:Q.conversation)==null?void 0:ne.id;ue&&Cc({conversationId:ue})}),K=window.zE("messenger:on","messagesShown",Y=>{var Q,ne;const ue=(ne=(Q=Y==null?void 0:Y.payload)==null?void 0:Q.conversation)==null?void 0:ne.id;ue&&Cc({conversationId:ue})}),X=window.zE("messenger:on","postbackButtonClicked",Y=>{var Q;const ue=Y==null?void 0:Y.payload;ue!=null&&ue.actionName&&window.dispatchEvent(new CustomEvent("stackable:messaging",{detail:{eventName:"postback",data:{actionName:ue.actionName,conversationId:((Q=ue.conversation)==null?void 0:Q.id)??""}}}))});return()=>{typeof U=="function"&&U(),typeof K=="function"&&K(),typeof X=="function"&&X()}},[N]),v.useEffect(()=>{if(!g)return;const U=X=>{if(!P.current)return;const Y=P.current.getBoundingClientRect();if((m?Y.width:Y.height)===0)return;const Q=m?(X.clientX-Y.left)/Y.width*100:(X.clientY-Y.top)/Y.height*100,ne=Math.max(Ec,Math.min(Nc,Q));C(ne)},K=()=>{w(!1),document.body.style.cursor="",document.body.style.userSelect=""};return document.body.style.cursor=m?"col-resize":"row-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",U),window.addEventListener("mouseup",K),window.addEventListener("blur",K),()=>{window.removeEventListener("mousemove",U),window.removeEventListener("mouseup",K),window.removeEventListener("blur",K),document.body.style.cursor="",document.body.style.userSelect=""}},[g,m]),v.useEffect(()=>{if(!P.current)return;const U=P.current,K=()=>{const Y=getComputedStyle(U).flexDirection==="row";x(Y)};K();const X=new ResizeObserver(K);return X.observe(U),()=>{X.disconnect()}},[]);const q=v.useCallback(U=>{if(U.detail===2){C(d);return}U.preventDefault(),w(!0)},[d]),Z={customerId:s,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:P,"data-id":"panel-layout",className:"relative flex-1 overflow-hidden flex flex-col",children:[p&&y.jsxs("div",{"data-id":"primary-panel",className:"min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",style:{flexBasis:`${S}%`},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:k==="extensions"?"My Profile":"My Conversations"}),y.jsxs("div",{className:"flex items-center gap-1",children:[n&&y.jsx("div",{className:"flex gap-1",children:n}),y.jsxs("div",{className:"flex rounded-lg bg-muted p-1",children:[N==="ready"&&y.jsx("button",{onClick:()=>D({}),className:"rounded-md border border-transparent p-1.5 text-muted-foreground transition-colors hover:cursor-pointer hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",title:"New Conversation",children:y.jsx(bw,{className:"h-4 w-4"})}),r,y.jsx("button",{onClick:()=>E("conversations"),className:we("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",k==="conversations"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"Conversations",children:y.jsx(Ya,{className:"h-4 w-4"})}),y.jsx("button",{onClick:()=>E("extensions"),className:we("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",k==="extensions"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"My Profile",children:y.jsx(Fd,{className:"h-4 w-4"})})]})]})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto p-4 relative",children:[y.jsxs("div",{className:we("flex flex-col gap-2",k==="conversations"&&"hidden"),children:[y.jsx(WE,{customerId:s,customerEmail:l,queryApiBase:i,children:y.jsx(Oi,{target:"slot.header",context:Z,className:"flex-none"})}),y.jsx(Oi,{target:"slot.content",context:Z,className:"flex flex-col gap-2"})]}),y.jsx("div",{className:we("h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",k==="extensions"&&"hidden"),children:N==="error"?y.jsx("div",{className:"flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground",children:y.jsx("p",{children:"Error loading conversations."})}):y.jsx(qE,{})})]})]}),y.jsxs("div",{"data-id":"secondary-panel",className:"min-h-0 min-w-0 flex-none flex flex-col bg-white",style:{flexBasis:p?`${100-S}%`:"100%"},children:[y.jsx("div",{className:"flex-1 overflow-hidden",children:N==="error"?y.jsx("div",{className:"flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground",children:y.jsx("p",{children:"Zendesk Messenger could not be loaded. Check that a valid Snippet Key is configured."})}):y.jsx(GE,{})}),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(Oi,{target:"slot.footer",context:Z,className:"flex items-center gap-1",fallback:y.jsxs(y.Fragment,{children:[y.jsx("div",{children:"powered by"}),y.jsx(HE,{href:"https://zendesk.com",children:"Zendesk"})]})}),y.jsx(Oi,{target:"slot.footer-links",context:Z,className:"flex items-center gap-1",separator:y.jsx("span",{className:"text-zinc-300",children:"/"}),render:({children:U,index:K})=>y.jsxs(y.Fragment,{children:[K===0&&y.jsx("span",{className:"text-zinc-300",children:"+"}),U]})})]})]}),p&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:we("group/resize absolute z-20 flex items-center justify-center",m?"top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize":"w-full h-3 -mt-2.5 cursor-row-resize"),style:m?{left:`${S}%`}:{top:`${S}%`},onMouseDown:q,role:"separator","aria-label":"Resize panels","aria-orientation":m?"vertical":"horizontal","aria-valuemin":Ec,"aria-valuemax":Nc,"aria-valuenow":Math.round(S),children:y.jsx("div",{className:we("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",m?"h-20 w-0.5":"h-0.5 w-20",g?"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")})}),g&&y.jsx("div",{className:we("absolute inset-0 z-40",m?"cursor-col-resize":"cursor-row-resize"),onMouseUp:()=>w(!1)})]})]})]})},KE="ze-snippet",wg=n=>`https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(n)}`,XE=(n,r={})=>{if(typeof window>"u"||typeof document>"u"||!n)return Promise.resolve();const{autorender:i=!1,scriptId:s=KE}=r;window.zEMessenger={autorender:i};const l=document.getElementById(s);if(l){if(l.getAttribute("src")===wg(n))return Promise.resolve();l.remove()}return new Promise((c,d)=>{const f=document.createElement("script");f.id=s,f.src=wg(n),f.async=!0,f.onload=()=>c(),f.onerror=()=>d(new Error("Failed to load Zendesk snippet")),document.head.appendChild(f)})},QE=({queryApiBase:n,apiBase:r,appId:i,theme:s,icon:l,instanceId:c,customerId:d,customerEmail:f,customerName:p,snippetKey:g})=>{const w=s==="dark"||s==="light"?s:"inherit";return v.useEffect(()=>{g&&XE(g).catch(m=>{console.error("[StackableWidget] Failed to load Zendesk snippet:",m)})},[g]),y.jsx(RE,{instanceId:c,queryApiBase:n,apiBase:r,appId:i,customerId:d,customerEmail:f,customerName:p,children:y.jsx(UE,{theme:w,icon:l,children:y.jsx(YE,{queryApiBase:n,customerId:d,customerEmail:f,primaryPercent:40})})})};class ZE extends HTMLElement{constructor(){super();ld(this,"mountNode");ld(this,"root");const i=this.attachShadow({mode:"open"}),s=document.createElement("style");s.textContent=iy,i.appendChild(s),this.mountNode=document.createElement("div"),i.appendChild(this.mountNode)}static get observedAttributes(){return["query-api-base","api-base","app-id","instance-id","theme","icon","customer-id","customer-email","customer-name","snippet-key"]}connectedCallback(){this.root=oy.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(QE,{theme:i,icon:this.getAttribute("icon")??void 0,queryApiBase:this.getAttribute("query-api-base")??"",apiBase:this.getAttribute("api-base")??void 0,appId:this.getAttribute("app-id")??"",instanceId:this.getAttribute("instance-id")??"",customerId:this.getAttribute("customer-id")??void 0,customerEmail:this.getAttribute("customer-email")??void 0,customerName:this.getAttribute("customer-name")??void 0,snippetKey:this.getAttribute("snippet-key")??""}))}}customElements.get("stackable-widget")||customElements.define("stackable-widget",ZE)})();
353
+ `,document.head.appendChild(n)},EE=n=>{const r=n.some(s=>s.mode==="staging"),i=n.some(s=>s.mode==="dev");return r&&i?"Dev + Staging":r?"Staging Mode":"Dev Mode"},NE=n=>n.mode==="staging"?"STAGING":"DEV",_E=({className:n="",extensions:r=[],tokenErrors:i=new Map})=>{const[s,l]=v.useState([]),[c,d]=v.useState(!1),[f,p]=v.useState(!1),[g,w]=v.useState(!1),m=v.useRef(null),x=i.size>0;if(v.useEffect(()=>{CE()},[]),v.useEffect(()=>{if(!x)return;const E=()=>{w(!0),setTimeout(()=>w(!1),600)};E();const S=setInterval(E,4e3);return()=>clearInterval(S)},[x]),v.useEffect(()=>{if(typeof window>"u")return;const E=()=>{const C=Td(window.location.search);l(C)};E();const S=()=>E();return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[]),s.length===0)return null;const k=E=>{if(E.stopPropagation(),typeof window>"u")return;const S=new URL(window.location.href);S.searchParams.delete("_stackable_dev"),S.searchParams.delete("_stackable_staging"),window.location.href=S.toString()};return y.jsxs("div",{className:n,style:{position:"fixed",bottom:"16px",left:"50%",transform:f||g?"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:[c&&y.jsx("div",{style:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderBottom:`1px solid ${x?"#dc2626":"#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:s.map((E,S)=>{var C;return y.jsxs("div",{style:{padding:"8px 12px",borderBottom:S<s.length-1?"1px solid #f3f4f6":"none"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[y.jsx("span",{style:{fontSize:"10px",fontWeight:700,color:E.mode==="staging"?"#7c3aed":"#b45309",backgroundColor:E.mode==="staging"?"#ede9fe":"#fef3c7",padding:"1px 5px",borderRadius:"3px",letterSpacing:"0.05em",fontFamily:"ui-monospace, SFMono-Regular, monospace"},children:NE(E)}),y.jsx("span",{style:{fontSize:"12px",fontWeight:600,color:"#111",fontFamily:"ui-monospace, SFMono-Regular, monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:((C=r.find(N=>N.id===E.extensionId))==null?void 0:C.manifest.name)||E.extensionId})]}),y.jsxs("div",{style:{fontSize:"11px",color:"#6b7280",fontFamily:"ui-monospace, SFMono-Regular, monospace",marginTop:"2px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:E.bundleUrl,children:["→ ",E.bundleUrl]}),i.get(E.extensionId)&&y.jsxs("div",{style:{fontSize:"11px",color:"#dc2626",fontFamily:"ui-monospace, SFMono-Regular, monospace",marginTop:"3px"},children:["⚠ ",i.get(E.extensionId)]})]},E.extensionId)})}),y.jsxs("div",{onClick:()=>d(!c),style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:x?"#dc2626":"#eab308",color:x?"#fff":"#000",padding:"8px 12px",borderRadius:c?"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&&!c||g?"stackable-icon-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both":"none"},children:y.jsx(SE,{className:"w-6 h-6"})}),y.jsx("span",{children:EE(s)}),y.jsxs("span",{style:{fontSize:"12px",opacity:.75},children:["(",s.length," extension",s.length>1?"s":"",")"]}),y.jsx("button",{onClick:k,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:E=>{E.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.25)"},onMouseOut:E=>{E.currentTarget.style.backgroundColor="rgba(0, 0, 0, 0.15)"},children:"Clear"})]})]})},RE=800,Xo=(n,r)=>n?`${n.replace(/\/$/,"")}${r}`:r,TE=async(n,r,i,s,l)=>{const c=new Map,d=new Map;return await Promise.all(n.filter(f=>{var p;return f.manifest.permissions.includes("data:fetch")||(((p=f.manifest.settingsSchema)==null?void 0:p.length)??0)>0}).map(async f=>{const p=l.find(k=>k.extensionId===f.id),g=p==null?void 0:p.token,w=p==null?void 0:p.mode,m=Xo(r,"/proxy-token"),x=await fetch(m,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:i,instanceId:s,extensionId:f.id,...w&&{mode:w},...g&&{devSessionToken:g}})});if(x.ok){const{token:k,encryptionKey:E,settings:S}=await x.json();c.set(f.id,{token:k,encryptionKey:E,settings:S})}else{let k=`Proxy token failed (${x.status})`;w&&!g?k="Session token missing — re-run CLI":w&&(k="Session expired or invalid — re-run CLI"),d.set(f.id,k),console.warn(`[embeddables] Failed to obtain proxy token for extension ${f.id} (${x.status}) — ${k}`)}})),{tokens:c,errors:d}},PE=n=>typeof n=="object"&&n!==null&&n.encrypted===!0&&Array.isArray(n.data),IE=({instanceId:n,queryApiBase:r,apiBase:i,appId:s,children:l,customerId:c,customerEmail:d,customerName:f})=>{const[p,g]=v.useState([]),[w,m]=v.useState([]),[x,k]=v.useState(new Map),[E,S]=v.useState(new Map),[C,N]=v.useState(!1),[R,P]=v.useState({authenticated:!1,user:null}),[M,W]=v.useState(void 0);v.useEffect(()=>{window.stackable||(window.stackable={emit:(F,I={})=>{const[_,...O]=F.split(":"),H=O.join(":");window.dispatchEvent(new CustomEvent(`stackable:${_}`,{detail:{eventName:H,data:I}}))}})},[]);const z=v.useRef(null),D=v.useRef(new Set),j=v.useMemo(()=>p.filter(F=>F.manifest.permissions.includes("extend:identity")).map(F=>F.id),[p]);v.useEffect(()=>{(async()=>{const I=n;try{if(!I){console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"),g([]),N(!0);return}if(!i||!s){console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"),g([]),N(!0);return}const _=await fetch(Xo(i,`/instances/${s}/${I}`));if(!_.ok){console.warn(`[ExtensionSetup] Instance not found or failed to load: ${I}`),g([]),N(!0);return}const O=await _.json(),H=Td(typeof window<"u"?window.location.search:""),J=await Qy(O,H),{tokens:ee,errors:ce}=await TE(J,i,s,I,H);g(J),m(H),k(new Map(ee)),S(ce)}catch(_){console.error("Failed to load extensions:",_)}finally{N(!0)}})()},[n,s,i]),v.useEffect(()=>{if(!i||!s||p.length===0)return;const I=setInterval(async()=>{const _=[];await Promise.all(p.filter(O=>{var H;return O.manifest.permissions.includes("data:fetch")||(((H=O.manifest.settingsSchema)==null?void 0:H.length)??0)>0}).map(async O=>{const H=w.find(re=>re.extensionId===O.id),J=H==null?void 0:H.token,ee=H==null?void 0:H.mode,ce=Xo(i,"/proxy-token"),ie=await fetch(ce,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:s,instanceId:n,extensionId:O.id,...ee&&{mode:ee},...J&&{devSessionToken:J}})});if(ie.ok){const{token:re,encryptionKey:de,settings:ye}=await ie.json();_.push([O.id,{token:re,encryptionKey:de,settings:ye}])}else console.warn(`[embeddables] Proxy token refresh failed for extension ${O.id} (${ie.status}) — using stale token`)})),_.length>0&&k(O=>{const H=new Map(O);for(const[J,ee]of _)H.set(J,ee);return H})},3300*1e3);return()=>clearInterval(I)},[p,w,i,s,n]),v.useEffect(()=>{if(x.size===0)return;const F=I=>{const _=I.data;if((_==null?void 0:_.type)!=="extension-ready")return;const O=_.extensionId,H=p.find(ce=>ce.id===O);if(!(H!=null&&H.bundleUrl))return;const J=w.find(ce=>ce.extensionId===O);if(Yy(H.bundleUrl)&&(J==null?void 0:J.mode)!=="staging")return;const ee=x.get(O);ee&&rn(O,{type:"extension-encryption-key",encryptionKey:ee.encryptionKey})};return window.addEventListener("message",F),()=>window.removeEventListener("message",F)},[p,w,x]);const q=v.useCallback((F,I)=>{const _=Yr();for(const[O,H]of _){if(!H.manifest.permissions.includes("events:identity"))continue;const J=H.manifest.events??[];!J.includes("identity")&&!J.includes(`identity:${F}`)||rn(O,{type:"extension-event",eventType:"identity",payload:{eventName:F,data:{state:I,timestamp:Ha(new Date().toISOString())}}})}},[]),Z=v.useCallback(F=>{const I=Yr();for(const[_,O]of I){if(!O.manifest.permissions.includes("events:messaging"))continue;const H=O.manifest.events??[];!H.includes("messaging")&&!H.includes("messaging:postback")&&!H.includes(`messaging:postback:${F.data.actionName}`)||rn(_,{type:"extension-event",eventType:"messaging",payload:F})}},[]),U=v.useCallback(F=>{const I=Yr();for(const[_,O]of I){if(!O.manifest.permissions.includes("events:activity"))continue;const H=O.manifest.events??[];!H.includes("activity")&&!H.includes(`activity:${F.eventName}`)||rn(_,{type:"extension-event",eventType:"activity",payload:F})}},[]),K=v.useCallback(async F=>{const I=Yr(),_=[];for(const[H,J]of I){if(!J.manifest.permissions.includes("extend:identity"))continue;const ee=new Promise(ce=>{const ie=`enrich_${H}_${Date.now()}`,re=de=>{const ye=de.data;(ye==null?void 0:ye.type)!=="extend-identity-response"||ye.id!==ie||(window.removeEventListener("message",re),ye.additionalClaims?ce(ye.additionalClaims):ce({}))};window.addEventListener("message",re),setTimeout(()=>{window.removeEventListener("message",re),ce({})},5e3),rn(H,{type:"extend-identity-request",id:ie,claims:F})});_.push(ee)}if(_.length===0)return{};const O=await Promise.all(_);return Object.assign({},...O)},[]),X=v.useCallback(async F=>{if(!i||!s||!n)return console.warn("[embeddables] signIdentity skipped — missing:",{apiBase:!!i,appId:!!s,instanceId:!!n}),null;const I=Xo(i,`/instances/${s}/${n}/identity`);console.log("[embeddables] Calling identity sign:",{url:I,claims:Object.keys(F)});try{const _=await fetch(I,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(F)});if(!_.ok)return console.warn(`[embeddables] Identity sign failed (${_.status})`),null;const{token:O}=await _.json();return O}catch(_){return console.warn("[embeddables] Identity sign request failed:",_),null}},[i,s,n]),Y=v.useCallback(F=>{const I=window.zE;I&&I("messenger","loginUser",async _=>{_(F)})},[]),ue=v.useCallback(()=>{const F=window.zE;F&&F("messenger","logoutUser")},[]),Q=v.useCallback(F=>{console.log("[embeddables] Running sign lifecycle for user:",F.id);const{email:I,name:_}=F,O={external_id:String(F.id)};(async()=>{const H=await K({...O,email:I,name:_});console.log("[embeddables] Enriched claims:",H);const J=await X({...O,...H,email:I,name:_});console.log("[embeddables] Sign result:",{hasToken:!!J}),J&&Y(J)})()},[K,X,Y]),ne=v.useCallback(F=>{if(j.length>0&&D.current.size<j.length){console.log(`[embeddables] Deferring sign lifecycle — waiting for extend:identity extensions: ${D.current.size}/${j.length} ready`),z.current=F;return}console.log("[embeddables] No extend:identity extensions (or all ready) — signing immediately"),Q(F)},[j,Q]);v.useEffect(()=>{if(!C){console.log("[embeddables] Identity effect skipped — extensions not loaded yet");return}if(console.log("[embeddables] Identity effect running",{initialized:C,customerId:!!c,extendExtensions:j.length}),c){console.log("[embeddables] Identity from props:",{customerId:c,customerEmail:d,customerName:f});const F={authenticated:!0,user:{id:String(c),email:d,name:f,provider:"shopify"}};P(I=>{var _,O;return I.authenticated&&((_=I.user)==null?void 0:_.id)===((O=F.user)==null?void 0:O.id)?I:(console.log("[embeddables] Identity state changed (props), starting sign lifecycle"),ne(F.user),q("login",F),F)})}else{if(c===void 0)return;P(F=>F.authenticated?(console.log("[embeddables] Customer props cleared, logging out"),ue(),q("logout",{authenticated:!1,user:null}),{authenticated:!1,user:null}):F)}},[C,c,d,f,j,ne,q,ue]),v.useEffect(()=>{if(!C||c!==void 0)return;const F=()=>{const _=document.getElementById("stackable-identity");if(_)try{const O=JSON.parse(_.textContent??"{}"),H={authenticated:!0,user:{id:String(O.customerId??""),email:O.customerEmail,name:O.customerName,provider:"shopify"}};P(J=>{var ee,ce;return J.authenticated&&((ee=J.user)==null?void 0:ee.id)===((ce=H.user)==null?void 0:ce.id)?J:(console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"),ne(H.user),q("login",H),H)})}catch{console.warn("[embeddables] Failed to parse #stackable-identity JSON")}else P(O=>O.authenticated?(ue(),q("logout",{authenticated:!1,user:null}),{authenticated:!1,user:null}):O)};F();const I=new MutationObserver(F);return I.observe(document.head,{childList:!0,subtree:!0}),I.observe(document.body,{childList:!0,subtree:!0}),()=>I.disconnect()},[C,c,ne,q,ue]),v.useEffect(()=>{if(!R.authenticated)return;const F=I=>{const _=I.data;if((_==null?void 0:_.type)!=="extension-ready")return;const O=_.extensionId,H=p.find(ee=>ee.id===O);if(!(H!=null&&H.manifest.permissions.includes("events:identity")))return;const J=H.manifest.events??[];!J.includes("identity")&&!J.includes("identity:login")||rn(O,{type:"extension-event",eventType:"identity",payload:{eventName:"login",data:{state:R,timestamp:Ha(new Date().toISOString())}}})};return window.addEventListener("message",F),()=>window.removeEventListener("message",F)},[R,p]),v.useEffect(()=>{if(j.length===0)return;const F=_=>{const O=_.data;if((O==null?void 0:O.type)!=="extension-ready")return;const H=O.extensionId;if(j.includes(H)&&(D.current.add(H),console.log(`[embeddables] extend:identity extension ready: ${H} (${D.current.size}/${j.length})`),D.current.size>=j.length&&z.current)){console.log("[embeddables] All extend:identity extensions ready, running deferred sign lifecycle");const J=z.current;z.current=null,Q(J)}};window.addEventListener("message",F);const I=setTimeout(()=>{if(z.current){console.warn(`[embeddables] extend:identity timeout (5s) — signing with ${D.current.size}/${j.length} extensions ready`);const _=z.current;z.current=null,Q(_)}},5e3);return()=>{window.removeEventListener("message",F),clearTimeout(I)}},[j,Q]),v.useEffect(()=>{const F=I=>{const{detail:_}=I;_!=null&&_.eventName&&(_.eventName==="postback"?Z({eventName:"postback",data:{actionName:_.data.actionName,conversationId:_.data.conversationId??"",timestamp:Ha(new Date().toISOString())}}):_.eventName==="context"&&W(O=>({...O,..._.data})))};return window.addEventListener("stackable:messaging",F),()=>window.removeEventListener("stackable:messaging",F)},[Z]),v.useEffect(()=>{const F=I=>{const{detail:_}=I;_!=null&&_.eventName&&U({eventName:_.eventName,data:_.data??{}})};return window.addEventListener("stackable:activity",F),()=>window.removeEventListener("stackable:activity",F)},[U]),v.useEffect(()=>{var _;if(!C)return;const F={customerId:c??"",customerEmail:d??"",customerName:f??"",messaging:M,identity:R},I=Yr();for(const[O,H]of I){if(!H.manifest.permissions.includes("context:read"))continue;const J=(_=x.get(O))==null?void 0:_.settings,ee=J?{...F,settings:J}:F;rn(O,{type:"context-push",context:ee})}},[C,c,d,f,R,M,x]);const G=v.useMemo(()=>({"data.query":async F=>gg(F,r),"data.fetch":async(F,I)=>{const _=x.get(F);if(!_)return{status:0,ok:!1,data:{error:"data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"}};const O=PE(I)?I:{url:I.url,method:I.method??"GET",headers:I.headers??{},body:I.body??null},H=Xo(i,"/proxy"),J=await fetch(H,{method:"POST",headers:{"Content-Type":"application/json","X-Extension-Id":F,"X-Application-Id":s??"",Authorization:`Bearer ${_.token}`},body:JSON.stringify(O)}),ee=await J.json();return{status:ee.status??J.status,ok:ee.ok??J.ok,data:ee.data}},"actions.toast":async(F,I)=>{const _={...I.description&&{description:I.description},...I.duration&&{duration:I.duration},...I.position&&{position:I.position},...I.dismissible!=null&&{dismissible:I.dismissible},...I.closeButton!=null&&{closeButton:I.closeButton}};if(I.fetch){const O=J=>new Promise(ee=>setTimeout(ee,J)),H=Promise.all([G["data.fetch"](F,I.fetch),O(RE)]).then(([J])=>J);Xr.promise(H,{loading:I.loading??I.message,success:I.success??I.message,error:I.error??"Something went wrong",..._});return}switch(I.type){case"success":{Xr.success(I.message,_);break}case"error":{Xr.error(I.message,_);break}case"warning":{Xr.warning(I.message,_);break}case"info":{Xr.info(I.message,_);break}default:Xr(I.message,_)}},"actions.invoke":async F=>(window.dispatchEvent(new CustomEvent(`stackable:action:${F.action}`,{detail:F})),{success:!0}),"context.read":async F=>{var I;return{customerId:c??"",customerEmail:d??"",customerName:f??"",identity:R,messaging:M,...((I=x.get(F))==null?void 0:I.settings)&&{settings:x.get(F).settings}}}}),[i,s,r,c,d,f,x,R,M]);return C?y.jsxs(y.Fragment,{children:[y.jsx(my,{extensions:p,capabilityHandlers:G,components:kE(),children:l}),y.jsx(_E,{extensions:p,tokenErrors:E})]}):null};var AE=(n,r,i,s,l,c,d,f)=>{let p=document.documentElement,g=["light","dark"];function w(k){(Array.isArray(n)?n:[n]).forEach(E=>{let S=E==="class",C=S&&c?l.map(N=>c[N]||N):l;S?(p.classList.remove(...C),p.classList.add(c&&c[k]?c[k]:k)):p.setAttribute(E,k)}),m(k)}function m(k){f&&g.includes(k)&&(p.style.colorScheme=k)}function x(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)w(s);else try{let k=localStorage.getItem(r)||i,E=d&&k==="system"?x():k;w(E)}catch{}},ME=v.createContext(void 0),jE={setTheme:n=>{},themes:[]},LE=()=>{var n;return(n=v.useContext(ME))!=null?n:jE};v.memo(({forcedTheme:n,storageKey:r,attribute:i,enableSystem:s,enableColorScheme:l,defaultTheme:c,value:d,themes:f,nonce:p,scriptProps:g})=>{let w=JSON.stringify([i,r,c,n,f,d,s,l]).slice(1,-1);return v.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${AE.toString()})(${w})`}})});const zE=({...n})=>{const{theme:r="system"}=LE();return y.jsx(Gy,{theme:r,className:"toaster group",icons:{success:y.jsx(Ld,{className:"size-4"}),info:y.jsx(Fi,{className:"size-4"}),warning:y.jsx(Ew,{className:"size-4"}),error:y.jsx(yw,{className:"size-4"}),loading:y.jsx(qa,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...n})},OE={dark:"dark",light:"widget-theme-light"},DE={dark:"dark",light:"light"},FE=({children:n,theme:r="inherit"})=>y.jsxs("div",{"data-id":"widget-body",className:OE[r],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(zE,{position:"bottom-center",theme:DE[r]??"system",toastOptions:{descriptionClassName:"!text-muted-foreground"}})]}),BE={airplay:rw,"message-circle":Dd,"message-square":Ya,headphones:gw,"help-circle":zd,bot:sw,sparkles:Fd,zap:_w},$E=({className:n})=>y.jsx("svg",{className:we(n,"scale-125"),viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M10,18 L6,22 L6,18 L10,18 Z M17,6 C19.7614237,6 22,8.23857625 22,11 C22,13.7614237 19.7614237,16 17,16 L7,16 C4.23857625,16 2,13.7614237 2,11 C2,8.23857625 4.23857625,6 7,6 Z",transform:"translate(12, 14) scale(-1, 1) translate(-12, -14)"})}),UE=({className:n})=>y.jsxs("svg",{className:n,viewBox:"0 0 190 190",fill:"currentColor","aria-hidden":"true",children:[y.jsxs("g",{id:"sl-half-right",children:[y.jsx("g",{transform:"translate(-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"})}),y.jsx("g",{transform:"translate(-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",opacity:"0.3"})})]}),y.jsxs("g",{id:"sl-half-left",children:[y.jsx("g",{transform:"translate(-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"})}),y.jsx("g",{transform:"translate(-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",opacity:"0.3"})})]})]}),yg=400,HE=yg*.35,VE=({icon:n,isOpen:r,onClick:i})=>{const s=BE[n]??$E,[l,c]=v.useState("idle"),d=v.useRef(r);v.useEffect(()=>{if(d.current===r)return;d.current=r,c("interstitial");const p=setTimeout(()=>c("idle"),HE);return()=>clearTimeout(p)},[r]);const f=()=>l==="interstitial"?y.jsx(UE,{}):r?y.jsx(pw,{}):y.jsx(s,{});return y.jsx("div",{className:"fixed bottom-8 right-8 z-50",children:y.jsx(Im,{size:"icon",className:we("h-12 w-12 rounded-full cursor-pointer transition-transform duration-300",r?"scale-115":"scale-100 hover:scale-105"),onClick:i,children:y.jsx("span",{className:we("flex items-center justify-center transition-transform",r&&"rotate-180"),style:{transitionDuration:`${yg}ms`},children:f()})})})},WE=({children:n,icon:r,theme:i})=>{const[s,l]=v.useState(!1),[c,d]=v.useState(!0),[f,p]=v.useState(!1),g=v.useCallback(()=>{l(w=>!w)},[]);return v.useEffect(()=>{s&&!f&&p(!0)},[s,f]),v.useEffect(()=>{const w=()=>l(S=>!S),m=()=>l(!0),x=()=>l(!1),k=()=>d(!0),E=()=>{l(!1),d(!1)};return window.addEventListener("stackable:action:toggle",w),window.addEventListener("stackable:action:open",m),window.addEventListener("stackable:action:close",x),window.addEventListener("stackable:action:show",k),window.addEventListener("stackable:action:hide",E),()=>{window.removeEventListener("stackable:action:open",m),window.removeEventListener("stackable:action:close",x),window.removeEventListener("stackable:action:toggle",w),window.removeEventListener("stackable:action:show",k),window.removeEventListener("stackable:action:hide",E)}},[]),y.jsxs(y.Fragment,{children:[c&&y.jsx(VE,{isOpen:s,icon:r,onClick:g}),f&&y.jsx("div",{"data-id":"widget-container",className:we("overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl transition-all duration-200 ease-out origin-bottom-right",s?"opacity-100 scale-100 translate-y-0 pointer-events-auto":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:y.jsx(FE,{theme:i,children:n})})]})},qE=({href:n,children:r})=>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:r}),GE=(n,r)=>{const[i,s]=v.useState(null),[l,c]=v.useState(!1),[d,f]=v.useState(null);return v.useEffect(()=>{if(!n){s(null);return}(async()=>{c(!0),f(null);try{const g=await gg({action:"getCustomer",customerId:n},r);s(g)}catch(g){f(g)}finally{c(!1)}})()},[n,r]),{customer:i,loading:l,error:d}},YE=({customerId:n,customerEmail:r,queryApiBase:i,children:s})=>{var p,g;const{customer:l,loading:c,error:d}=GE(n,i);if(c)return y.jsx(Fo,{className:"border-none shadow-none bg-transparent",children:y.jsx(Bo,{className:"flex items-center justify-center p-6",children:y.jsx(qa,{className:"h-6 w-6 animate-spin text-muted-foreground"})})});if(d||!l){const w=r?r.split("@")[0]:n?`Customer ${n.slice(-4)}`:"Customer",m=w.split(/[\s._-]+/).map(x=>x[0]).join("").slice(0,2).toUpperCase();return y.jsx(Fo,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:y.jsxs(Bo,{className:"p-4 pb-0 pt-2",children:[y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs(Ql,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[y.jsx(Zl,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(w)}&background=7c3aed&color=fff&size=128`,alt:w}),y.jsx(Jl,{className:"text-lg",children:m})]}),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})]}),r&&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(Ga,{className:"h-3 w-3","aria-hidden":"true"}),y.jsx("span",{className:"truncate max-w-[200px]",children:r})]})}),y.jsx("div",{className:"py-1 rounded-lg flex justify-center gap-1",children:s})]})]}),y.jsx("p",{className:"pt-2 text-center text-xs text-muted-foreground",children:"Using fallback profile (customer API returned no data)"})]})})}const f=`${((p=l.first_name)==null?void 0:p[0])||""}${((g=l.last_name)==null?void 0:g[0])||""}`;return y.jsx(Fo,{className:"border-none px-0 py-0 mb-4 shadow-none bg-transparent",children:y.jsx(Bo,{className:"p-4 pb-0 pt-2",children:y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs(Ql,{className:"h-16 w-16 mb-2 ring-2 ring-background shadow-sm",children:[y.jsx(Zl,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(l.name)}&background=7c3aed&color=fff&size=128`,alt:l.name}),y.jsx(Jl,{className:"text-lg",children:f})]}),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(Ga,{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:s})]})]})})})},wg=(n,r)=>{v.useEffect(()=>{const i=r.current;if(!i)return;let s=document.getElementById(n);s||(s=document.createElement("div"),s.id=n,s.style.cssText="position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;",document.body.appendChild(s));const l=new MutationObserver(()=>{for(;s.firstChild;)i.appendChild(document.adoptNode(s.firstChild))});return l.observe(s,{childList:!0,subtree:!0}),()=>{l.disconnect(),s==null||s.remove()}},[n,r])},KE=({customization:n})=>{const r=v.useRef(null);return wg("widget_conversations",r),v.useEffect(()=>{!window.zE||!r.current||n&&window.zE("messenger:set","customization",{conversationList:n})},[n]),y.jsx("div",{ref:r,className:"h-full overflow-hidden"})},XE=({customization:n})=>{const r=v.useRef(null);return wg("widget_messages",r),v.useEffect(()=>{!window.zE||!r.current||n&&window.zE("messenger:set","customization",{messageLog:n})},[n]),y.jsx("div",{ref:r,className:"h-full overflow-hidden"})},uo="stackable:action",Cc=n=>{window.dispatchEvent(new CustomEvent("stackable:messaging",{detail:{eventName:"context",data:n}}))},Ec=25,Nc=75,QE=({header:n,buttons:r,queryApiBase:i,customerId:s="",customerEmail:l="",primaryPercent:c=50})=>{const d=Math.max(Ec,Math.min(Nc,c)),{extensions:f}=Sd(),p=v.useMemo(()=>f.some(U=>U.enabled&&(U.manifest.targets.includes("slot.header")||U.manifest.targets.includes("slot.content"))),[f]),[g,w]=v.useState(!1),[m,x]=v.useState(!1),[k,E]=v.useState("extensions"),[S,C]=v.useState(d),[N,R]=v.useState("loading"),P=v.useRef(null),M=v.useCallback(()=>!window.zE||!document.getElementById("widget_conversations")||!document.getElementById("widget_messages")?!1:(window.zE("messenger","render",{mode:"embedded",messageLog:{targetElement:"#widget_messages"},conversationList:{targetElement:"#widget_conversations"}}),window.zE("messenger:set","customization",{common:{hideHeader:!1},messageLog:{hideHeader:!0},conversationList:{hideHeader:!0,hideNewConversationButton:!0}}),!0),[]);v.useEffect(()=>{var ue,Q;const U=document.querySelector('script[src*="zdassets.com/ekr/snippet"]'),K=(Q=(ue=U==null?void 0:U.src)==null?void 0:ue.match(/key=([a-f0-9-]+)/))==null?void 0:Q[1];if(K&&fetch(`https://ekr.zdassets.com/compose/${K}`).then(ne=>ne.text()).then(ne=>{var F;const G=(F=ne.match(/appId['"]?\s*:\s*['"]([a-f0-9]+)['"]/))==null?void 0:F[1];G&&Cc({appId:G})}).catch(()=>{}),M()){R("ready");return}const X=setInterval(()=>{M()&&(R("ready"),clearInterval(X))},100),Y=setTimeout(()=>{clearInterval(X),R(ne=>ne==="ready"?ne:(console.warn("Zendesk widget failed to load after 10 seconds"),"error"))},1e4);return()=>{clearInterval(X),clearTimeout(Y)}},[M]);const W=v.useCallback(U=>{!window.zE||!U.length||(console.log("[ZendeskMessenger] setConversationTags",U,{zE:!!window.zE}),window.zE("messenger:set","conversationTags",U))},[]),z=v.useCallback(U=>{!window.zE||!U.length||(console.log("[ZendeskMessenger] setConversationFields",U,{zE:!!window.zE}),window.zE("messenger:set","conversationFields",U))},[]),D=v.useCallback(U=>{if(!window.zE)return;const{tags:K=[],fields:X=[],...Y}=U??{};W(K),z(X),window.zE("messenger:ui","newConversation",Object.keys(Y).length?Y:void 0)},[W,z]),j=v.useCallback(U=>{const{detail:K}=U;K!=null&&K.payload&&D(K.payload)},[D]);v.useEffect(()=>(window.addEventListener(`${uo}:${Kr.NEW_CONVERSATION}`,j),()=>{window.removeEventListener(`${uo}:${Kr.NEW_CONVERSATION}`,j)}),[j]),v.useEffect(()=>{const U=X=>{const{detail:Y}=X;Y!=null&&Y.payload&&W(Y.payload)},K=X=>{const{detail:Y}=X;Y!=null&&Y.payload&&z(Y.payload)};return window.addEventListener(`${uo}:${Kr.SET_CONVERSATION_TAGS}`,U),window.addEventListener(`${uo}:${Kr.SET_CONVERSATION_FIELDS}`,K),()=>{window.removeEventListener(`${uo}:${Kr.SET_CONVERSATION_TAGS}`,U),window.removeEventListener(`${uo}:${Kr.SET_CONVERSATION_FIELDS}`,K)}},[W,z]),v.useEffect(()=>{if(N!=="ready"||!window.zE)return;const U=window.zE("messenger:on","conversationStarted",Y=>{var Q,ne;const ue=(ne=(Q=Y==null?void 0:Y.payload)==null?void 0:Q.conversation)==null?void 0:ne.id;ue&&Cc({conversationId:ue})}),K=window.zE("messenger:on","messagesShown",Y=>{var Q,ne;const ue=(ne=(Q=Y==null?void 0:Y.payload)==null?void 0:Q.conversation)==null?void 0:ne.id;ue&&Cc({conversationId:ue})}),X=window.zE("messenger:on","postbackButtonClicked",Y=>{var Q;const ue=Y==null?void 0:Y.payload;ue!=null&&ue.actionName&&window.dispatchEvent(new CustomEvent("stackable:messaging",{detail:{eventName:"postback",data:{actionName:ue.actionName,conversationId:((Q=ue.conversation)==null?void 0:Q.id)??""}}}))});return()=>{typeof U=="function"&&U(),typeof K=="function"&&K(),typeof X=="function"&&X()}},[N]),v.useEffect(()=>{if(!g)return;const U=X=>{if(!P.current)return;const Y=P.current.getBoundingClientRect();if((m?Y.width:Y.height)===0)return;const Q=m?(X.clientX-Y.left)/Y.width*100:(X.clientY-Y.top)/Y.height*100,ne=Math.max(Ec,Math.min(Nc,Q));C(ne)},K=()=>{w(!1),document.body.style.cursor="",document.body.style.userSelect=""};return document.body.style.cursor=m?"col-resize":"row-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",U),window.addEventListener("mouseup",K),window.addEventListener("blur",K),()=>{window.removeEventListener("mousemove",U),window.removeEventListener("mouseup",K),window.removeEventListener("blur",K),document.body.style.cursor="",document.body.style.userSelect=""}},[g,m]),v.useEffect(()=>{if(!P.current)return;const U=P.current,K=()=>{const Y=getComputedStyle(U).flexDirection==="row";x(Y)};K();const X=new ResizeObserver(K);return X.observe(U),()=>{X.disconnect()}},[]);const q=v.useCallback(U=>{if(U.detail===2){C(d);return}U.preventDefault(),w(!0)},[d]),Z={customerId:s,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:P,"data-id":"panel-layout",className:"relative flex-1 overflow-hidden flex flex-col",children:[p&&y.jsxs("div",{"data-id":"primary-panel",className:"min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",style:{flexBasis:`${S}%`},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:k==="extensions"?"My Profile":"My Conversations"}),y.jsxs("div",{className:"flex items-center gap-1",children:[n&&y.jsx("div",{className:"flex gap-1",children:n}),y.jsxs("div",{className:"flex rounded-lg bg-muted p-1",children:[N==="ready"&&y.jsx("button",{onClick:()=>D({}),className:"rounded-md border border-transparent p-1.5 text-muted-foreground transition-colors hover:cursor-pointer hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",title:"New Conversation",children:y.jsx(bw,{className:"h-4 w-4"})}),r,y.jsx("button",{onClick:()=>E("conversations"),className:we("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",k==="conversations"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"Conversations",children:y.jsx(Ya,{className:"h-4 w-4"})}),y.jsx("button",{onClick:()=>E("extensions"),className:we("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",k==="extensions"?"border-border bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),title:"My Profile",children:y.jsx(Bd,{className:"h-4 w-4"})})]})]})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto p-4 relative",children:[y.jsxs("div",{className:we("flex flex-col gap-2",k==="conversations"&&"hidden"),children:[y.jsx(YE,{customerId:s,customerEmail:l,queryApiBase:i,children:y.jsx(Oi,{target:"slot.header",context:Z,className:"flex-none"})}),y.jsx(Oi,{target:"slot.content",context:Z,className:"flex flex-col gap-2"})]}),y.jsx("div",{className:we("h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",k==="extensions"&&"hidden"),children:N==="error"?y.jsx("div",{className:"flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground",children:y.jsx("p",{children:"Error loading conversations."})}):y.jsx(KE,{})})]})]}),y.jsxs("div",{"data-id":"secondary-panel",className:"min-h-0 min-w-0 flex-none flex flex-col bg-white",style:{flexBasis:p?`${100-S}%`:"100%"},children:[y.jsx("div",{className:"flex-1 overflow-hidden",children:N==="error"?y.jsx("div",{className:"flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground",children:y.jsx("p",{children:"Zendesk Messenger could not be loaded. Check that a valid Snippet Key is configured."})}):y.jsx(XE,{})}),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(Oi,{target:"slot.footer",context:Z,className:"flex items-center gap-1",fallback:y.jsxs(y.Fragment,{children:[y.jsx("div",{children:"powered by"}),y.jsx(qE,{href:"https://zendesk.com",children:"Zendesk"})]})}),y.jsx(Oi,{target:"slot.footer-links",context:Z,className:"flex items-center gap-1",separator:y.jsx("span",{className:"text-zinc-300",children:"/"}),render:({children:U,index:K})=>y.jsxs(y.Fragment,{children:[K===0&&y.jsx("span",{className:"text-zinc-300",children:"+"}),U]})})]})]}),p&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:we("group/resize absolute z-20 flex items-center justify-center",m?"top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize":"w-full h-3 -mt-2.5 cursor-row-resize"),style:m?{left:`${S}%`}:{top:`${S}%`},onMouseDown:q,role:"separator","aria-label":"Resize panels","aria-orientation":m?"vertical":"horizontal","aria-valuemin":Ec,"aria-valuemax":Nc,"aria-valuenow":Math.round(S),children:y.jsx("div",{className:we("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",m?"h-20 w-0.5":"h-0.5 w-20",g?"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")})}),g&&y.jsx("div",{className:we("absolute inset-0 z-40",m?"cursor-col-resize":"cursor-row-resize"),onMouseUp:()=>w(!1)})]})]})]})},ZE="ze-snippet",xg=n=>`https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(n)}`,JE=(n,r={})=>{if(typeof window>"u"||typeof document>"u"||!n)return Promise.resolve();const{autorender:i=!1,scriptId:s=ZE}=r;window.zEMessenger={autorender:i};const l=document.getElementById(s);if(l){if(l.getAttribute("src")===xg(n))return Promise.resolve();l.remove()}return new Promise((c,d)=>{const f=document.createElement("script");f.id=s,f.src=xg(n),f.async=!0,f.onload=()=>c(),f.onerror=()=>d(new Error("Failed to load Zendesk snippet")),document.head.appendChild(f)})},eN=({queryApiBase:n,apiBase:r,appId:i,theme:s,icon:l,instanceId:c,customerId:d,customerEmail:f,customerName:p,snippetKey:g})=>{const w=s==="dark"||s==="light"?s:"inherit";return v.useEffect(()=>{g&&JE(g).catch(m=>{console.error("[StackableWidget] Failed to load Zendesk snippet:",m)})},[g]),y.jsx(IE,{instanceId:c,queryApiBase:n,apiBase:r,appId:i,customerId:d,customerEmail:f,customerName:p,children:y.jsx(WE,{theme:w,icon:l,children:y.jsx(QE,{queryApiBase:n,customerId:d,customerEmail:f,primaryPercent:40})})})};class tN extends HTMLElement{constructor(){super();ld(this,"mountNode");ld(this,"root");const i=this.attachShadow({mode:"open"}),s=document.createElement("style");s.textContent=sy,i.appendChild(s),this.mountNode=document.createElement("div"),i.appendChild(this.mountNode)}static get observedAttributes(){return["query-api-base","api-base","app-id","instance-id","theme","icon","customer-id","customer-email","customer-name","snippet-key"]}connectedCallback(){this.root=iy.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(eN,{theme:i,icon:this.getAttribute("icon")??void 0,queryApiBase:this.getAttribute("query-api-base")??"",apiBase:this.getAttribute("api-base")??void 0,appId:this.getAttribute("app-id")??"",instanceId:this.getAttribute("instance-id")??"",customerId:this.getAttribute("customer-id")??void 0,customerEmail:this.getAttribute("customer-email")??void 0,customerName:this.getAttribute("customer-name")??void 0,snippetKey:this.getAttribute("snippet-key")??""}))}}customElements.get("stackable-widget")||customElements.define("stackable-widget",tN)})();