@rulemetric/local 0.14.0 → 0.14.1

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
- function yc(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ns(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _g(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Dn={exports:{}},Et={};/**
1
+ function yc(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ns(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _g(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Dn={exports:{}},kt={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ function yc(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
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 lo;function xc(){if(lo)return Et;lo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return Et.Fragment=t,Et.jsx=n,Et.jsxs=n,Et}var uo;function bc(){return uo||(uo=1,Dn.exports=xc()),Dn.exports}var i=bc(),Fn={exports:{}},z={};/**
9
+ */var lo;function xc(){if(lo)return kt;lo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return kt.Fragment=t,kt.jsx=n,kt.jsxs=n,kt}var uo;function bc(){return uo||(uo=1,Dn.exports=xc()),Dn.exports}var i=bc(),Fn={exports:{}},B={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ function yc(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
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 fo;function wc(){if(fo)return z;fo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),h=Symbol.iterator;function g(y){return y===null||typeof y!="object"?null:(y=h&&y[h]||y["@@iterator"],typeof y=="function"?y:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function b(y,M,$){this.props=y,this.context=M,this.refs=v,this.updater=$||x}b.prototype.isReactComponent={},b.prototype.setState=function(y,M){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,M,"setState")},b.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function C(){}C.prototype=b.prototype;function w(y,M,$){this.props=y,this.context=M,this.refs=v,this.updater=$||x}var k=w.prototype=new C;k.constructor=w,m(k,b.prototype),k.isPureReactComponent=!0;var R=Array.isArray;function T(){}var E={H:null,A:null,T:null,S:null},A=Object.prototype.hasOwnProperty;function D(y,M,$){var L=$.ref;return{$$typeof:e,type:y,key:M,ref:L!==void 0?L:null,props:$}}function F(y,M){return D(y.type,M,y.props)}function H(y){return typeof y=="object"&&y!==null&&y.$$typeof===e}function _(y){var M={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function($){return M[$]})}var Y=/\/+/g;function U(y,M){return typeof y=="object"&&y!==null&&y.key!=null?_(""+y.key):M.toString(36)}function J(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(T,T):(y.status="pending",y.then(function(M){y.status==="pending"&&(y.status="fulfilled",y.value=M)},function(M){y.status==="pending"&&(y.status="rejected",y.reason=M)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function O(y,M,$,L,V){var W=typeof y;(W==="undefined"||W==="boolean")&&(y=null);var P=!1;if(y===null)P=!0;else switch(W){case"bigint":case"string":case"number":P=!0;break;case"object":switch(y.$$typeof){case e:case t:P=!0;break;case f:return P=y._init,O(P(y._payload),M,$,L,V)}}if(P)return V=V(y),P=L===""?"."+U(y,0):L,R(V)?($="",P!=null&&($=P.replace(Y,"$&/")+"/"),O(V,M,$,"",function(ee){return ee})):V!=null&&(H(V)&&(V=F(V,$+(V.key==null||y&&y.key===V.key?"":(""+V.key).replace(Y,"$&/")+"/")+P)),M.push(V)),1;P=0;var X=L===""?".":L+":";if(R(y))for(var G=0;G<y.length;G++)L=y[G],W=X+U(L,G),P+=O(L,M,$,W,V);else if(G=g(y),typeof G=="function")for(y=G.call(y),G=0;!(L=y.next()).done;)L=L.value,W=X+U(L,G++),P+=O(L,M,$,W,V);else if(W==="object"){if(typeof y.then=="function")return O(J(y),M,$,L,V);throw M=String(y),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return P}function K(y,M,$){if(y==null)return y;var L=[],V=0;return O(y,L,"","",function(W){return M.call($,W,V++)}),L}function I(y){if(y._status===-1){var M=y._result;M=M(),M.then(function($){(y._status===0||y._status===-1)&&(y._status=1,y._result=$)},function($){(y._status===0||y._status===-1)&&(y._status=2,y._result=$)}),y._status===-1&&(y._status=0,y._result=M)}if(y._status===1)return y._result.default;throw y._result}var j=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)},Q={map:K,forEach:function(y,M,$){K(y,function(){M.apply(this,arguments)},$)},count:function(y){var M=0;return K(y,function(){M++}),M},toArray:function(y){return K(y,function(M){return M})||[]},only:function(y){if(!H(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};return z.Activity=p,z.Children=Q,z.Component=b,z.Fragment=n,z.Profiler=o,z.PureComponent=w,z.StrictMode=r,z.Suspense=d,z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,z.__COMPILER_RUNTIME={__proto__:null,c:function(y){return E.H.useMemoCache(y)}},z.cache=function(y){return function(){return y.apply(null,arguments)}},z.cacheSignal=function(){return null},z.cloneElement=function(y,M,$){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var L=m({},y.props),V=y.key;if(M!=null)for(W in M.key!==void 0&&(V=""+M.key),M)!A.call(M,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&M.ref===void 0||(L[W]=M[W]);var W=arguments.length-2;if(W===1)L.children=$;else if(1<W){for(var P=Array(W),X=0;X<W;X++)P[X]=arguments[X+2];L.children=P}return D(y.type,V,L)},z.createContext=function(y){return y={$$typeof:a,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:s,_context:y},y},z.createElement=function(y,M,$){var L,V={},W=null;if(M!=null)for(L in M.key!==void 0&&(W=""+M.key),M)A.call(M,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(V[L]=M[L]);var P=arguments.length-2;if(P===1)V.children=$;else if(1<P){for(var X=Array(P),G=0;G<P;G++)X[G]=arguments[G+2];V.children=X}if(y&&y.defaultProps)for(L in P=y.defaultProps,P)V[L]===void 0&&(V[L]=P[L]);return D(y,W,V)},z.createRef=function(){return{current:null}},z.forwardRef=function(y){return{$$typeof:c,render:y}},z.isValidElement=H,z.lazy=function(y){return{$$typeof:f,_payload:{_status:-1,_result:y},_init:I}},z.memo=function(y,M){return{$$typeof:u,type:y,compare:M===void 0?null:M}},z.startTransition=function(y){var M=E.T,$={};E.T=$;try{var L=y(),V=E.S;V!==null&&V($,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(T,j)}catch(W){j(W)}finally{M!==null&&$.types!==null&&(M.types=$.types),E.T=M}},z.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},z.use=function(y){return E.H.use(y)},z.useActionState=function(y,M,$){return E.H.useActionState(y,M,$)},z.useCallback=function(y,M){return E.H.useCallback(y,M)},z.useContext=function(y){return E.H.useContext(y)},z.useDebugValue=function(){},z.useDeferredValue=function(y,M){return E.H.useDeferredValue(y,M)},z.useEffect=function(y,M){return E.H.useEffect(y,M)},z.useEffectEvent=function(y){return E.H.useEffectEvent(y)},z.useId=function(){return E.H.useId()},z.useImperativeHandle=function(y,M,$){return E.H.useImperativeHandle(y,M,$)},z.useInsertionEffect=function(y,M){return E.H.useInsertionEffect(y,M)},z.useLayoutEffect=function(y,M){return E.H.useLayoutEffect(y,M)},z.useMemo=function(y,M){return E.H.useMemo(y,M)},z.useOptimistic=function(y,M){return E.H.useOptimistic(y,M)},z.useReducer=function(y,M,$){return E.H.useReducer(y,M,$)},z.useRef=function(y){return E.H.useRef(y)},z.useState=function(y){return E.H.useState(y)},z.useSyncExternalStore=function(y,M,$){return E.H.useSyncExternalStore(y,M,$)},z.useTransition=function(){return E.H.useTransition()},z.version="19.2.4",z}var po;function br(){return po||(po=1,Fn.exports=wc()),Fn.exports}var l=br();const We=ns(l),rs=yc({__proto__:null,default:We},[l]);var $n={exports:{}},ce={};/**
17
+ */var fo;function wc(){if(fo)return B;fo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),h=Symbol.iterator;function g(y){return y===null||typeof y!="object"?null:(y=h&&y[h]||y["@@iterator"],typeof y=="function"?y:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function b(y,T,$){this.props=y,this.context=T,this.refs=v,this.updater=$||x}b.prototype.isReactComponent={},b.prototype.setState=function(y,T){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,T,"setState")},b.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function C(){}C.prototype=b.prototype;function w(y,T,$){this.props=y,this.context=T,this.refs=v,this.updater=$||x}var E=w.prototype=new C;E.constructor=w,m(E,b.prototype),E.isPureReactComponent=!0;var S=Array.isArray;function M(){}var k={H:null,A:null,T:null,S:null},A=Object.prototype.hasOwnProperty;function D(y,T,$){var L=$.ref;return{$$typeof:e,type:y,key:T,ref:L!==void 0?L:null,props:$}}function F(y,T){return D(y.type,T,y.props)}function H(y){return typeof y=="object"&&y!==null&&y.$$typeof===e}function _(y){var T={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function($){return T[$]})}var Y=/\/+/g;function U(y,T){return typeof y=="object"&&y!==null&&y.key!=null?_(""+y.key):T.toString(36)}function J(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(M,M):(y.status="pending",y.then(function(T){y.status==="pending"&&(y.status="fulfilled",y.value=T)},function(T){y.status==="pending"&&(y.status="rejected",y.reason=T)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function O(y,T,$,L,V){var W=typeof y;(W==="undefined"||W==="boolean")&&(y=null);var P=!1;if(y===null)P=!0;else switch(W){case"bigint":case"string":case"number":P=!0;break;case"object":switch(y.$$typeof){case e:case t:P=!0;break;case f:return P=y._init,O(P(y._payload),T,$,L,V)}}if(P)return V=V(y),P=L===""?"."+U(y,0):L,S(V)?($="",P!=null&&($=P.replace(Y,"$&/")+"/"),O(V,T,$,"",function(ee){return ee})):V!=null&&(H(V)&&(V=F(V,$+(V.key==null||y&&y.key===V.key?"":(""+V.key).replace(Y,"$&/")+"/")+P)),T.push(V)),1;P=0;var X=L===""?".":L+":";if(S(y))for(var G=0;G<y.length;G++)L=y[G],W=X+U(L,G),P+=O(L,T,$,W,V);else if(G=g(y),typeof G=="function")for(y=G.call(y),G=0;!(L=y.next()).done;)L=L.value,W=X+U(L,G++),P+=O(L,T,$,W,V);else if(W==="object"){if(typeof y.then=="function")return O(J(y),T,$,L,V);throw T=String(y),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.")}return P}function K(y,T,$){if(y==null)return y;var L=[],V=0;return O(y,L,"","",function(W){return T.call($,W,V++)}),L}function I(y){if(y._status===-1){var T=y._result;T=T(),T.then(function($){(y._status===0||y._status===-1)&&(y._status=1,y._result=$)},function($){(y._status===0||y._status===-1)&&(y._status=2,y._result=$)}),y._status===-1&&(y._status=0,y._result=T)}if(y._status===1)return y._result.default;throw y._result}var j=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(T))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)},Q={map:K,forEach:function(y,T,$){K(y,function(){T.apply(this,arguments)},$)},count:function(y){var T=0;return K(y,function(){T++}),T},toArray:function(y){return K(y,function(T){return T})||[]},only:function(y){if(!H(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};return B.Activity=p,B.Children=Q,B.Component=b,B.Fragment=n,B.Profiler=o,B.PureComponent=w,B.StrictMode=r,B.Suspense=d,B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,B.__COMPILER_RUNTIME={__proto__:null,c:function(y){return k.H.useMemoCache(y)}},B.cache=function(y){return function(){return y.apply(null,arguments)}},B.cacheSignal=function(){return null},B.cloneElement=function(y,T,$){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var L=m({},y.props),V=y.key;if(T!=null)for(W in T.key!==void 0&&(V=""+T.key),T)!A.call(T,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&T.ref===void 0||(L[W]=T[W]);var W=arguments.length-2;if(W===1)L.children=$;else if(1<W){for(var P=Array(W),X=0;X<W;X++)P[X]=arguments[X+2];L.children=P}return D(y.type,V,L)},B.createContext=function(y){return y={$$typeof:a,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:s,_context:y},y},B.createElement=function(y,T,$){var L,V={},W=null;if(T!=null)for(L in T.key!==void 0&&(W=""+T.key),T)A.call(T,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(V[L]=T[L]);var P=arguments.length-2;if(P===1)V.children=$;else if(1<P){for(var X=Array(P),G=0;G<P;G++)X[G]=arguments[G+2];V.children=X}if(y&&y.defaultProps)for(L in P=y.defaultProps,P)V[L]===void 0&&(V[L]=P[L]);return D(y,W,V)},B.createRef=function(){return{current:null}},B.forwardRef=function(y){return{$$typeof:c,render:y}},B.isValidElement=H,B.lazy=function(y){return{$$typeof:f,_payload:{_status:-1,_result:y},_init:I}},B.memo=function(y,T){return{$$typeof:u,type:y,compare:T===void 0?null:T}},B.startTransition=function(y){var T=k.T,$={};k.T=$;try{var L=y(),V=k.S;V!==null&&V($,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(M,j)}catch(W){j(W)}finally{T!==null&&$.types!==null&&(T.types=$.types),k.T=T}},B.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},B.use=function(y){return k.H.use(y)},B.useActionState=function(y,T,$){return k.H.useActionState(y,T,$)},B.useCallback=function(y,T){return k.H.useCallback(y,T)},B.useContext=function(y){return k.H.useContext(y)},B.useDebugValue=function(){},B.useDeferredValue=function(y,T){return k.H.useDeferredValue(y,T)},B.useEffect=function(y,T){return k.H.useEffect(y,T)},B.useEffectEvent=function(y){return k.H.useEffectEvent(y)},B.useId=function(){return k.H.useId()},B.useImperativeHandle=function(y,T,$){return k.H.useImperativeHandle(y,T,$)},B.useInsertionEffect=function(y,T){return k.H.useInsertionEffect(y,T)},B.useLayoutEffect=function(y,T){return k.H.useLayoutEffect(y,T)},B.useMemo=function(y,T){return k.H.useMemo(y,T)},B.useOptimistic=function(y,T){return k.H.useOptimistic(y,T)},B.useReducer=function(y,T,$){return k.H.useReducer(y,T,$)},B.useRef=function(y){return k.H.useRef(y)},B.useState=function(y){return k.H.useState(y)},B.useSyncExternalStore=function(y,T,$){return k.H.useSyncExternalStore(y,T,$)},B.useTransition=function(){return k.H.useTransition()},B.version="19.2.4",B}var po;function br(){return po||(po=1,Fn.exports=wc()),Fn.exports}var l=br();const We=ns(l),rs=yc({__proto__:null,default:We},[l]);var $n={exports:{}},ce={};/**
18
18
  * @license React
19
19
  * react-dom.production.js
20
20
  *
@@ -22,7 +22,7 @@ function yc(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
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 ho;function Cc(){if(ho)return ce;ho=1;var e=br();function t(d){var u="https://react.dev/errors/"+d;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)u+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+d+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(d,u,f){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:p==null?null:""+p,children:d,containerInfo:u,implementation:f}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return ce.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ce.createPortal=function(d,u){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return s(d,u,null,f)},ce.flushSync=function(d){var u=a.T,f=r.p;try{if(a.T=null,r.p=2,d)return d()}finally{a.T=u,r.p=f,r.d.f()}},ce.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,r.d.C(d,u))},ce.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},ce.preinit=function(d,u){if(typeof d=="string"&&u&&typeof u.as=="string"){var f=u.as,p=c(f,u.crossOrigin),h=typeof u.integrity=="string"?u.integrity:void 0,g=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;f==="style"?r.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:p,integrity:h,fetchPriority:g}):f==="script"&&r.d.X(d,{crossOrigin:p,integrity:h,fetchPriority:g,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},ce.preinitModule=function(d,u){if(typeof d=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var f=c(u.as,u.crossOrigin);r.d.M(d,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&r.d.M(d)},ce.preload=function(d,u){if(typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var f=u.as,p=c(f,u.crossOrigin);r.d.L(d,f,{crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},ce.preloadModule=function(d,u){if(typeof d=="string")if(u){var f=c(u.as,u.crossOrigin);r.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else r.d.m(d)},ce.requestFormReset=function(d){r.d.r(d)},ce.unstable_batchedUpdates=function(d,u){return d(u)},ce.useFormState=function(d,u,f){return a.H.useFormState(d,u,f)},ce.useFormStatus=function(){return a.H.useHostTransitionStatus()},ce.version="19.2.4",ce}var mo;function kc(){if(mo)return $n.exports;mo=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$n.exports=Cc(),$n.exports}/**
25
+ */var ho;function Cc(){if(ho)return ce;ho=1;var e=br();function t(d){var u="https://react.dev/errors/"+d;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)u+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+d+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(d,u,f){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:p==null?null:""+p,children:d,containerInfo:u,implementation:f}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return ce.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ce.createPortal=function(d,u){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return s(d,u,null,f)},ce.flushSync=function(d){var u=a.T,f=r.p;try{if(a.T=null,r.p=2,d)return d()}finally{a.T=u,r.p=f,r.d.f()}},ce.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,r.d.C(d,u))},ce.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},ce.preinit=function(d,u){if(typeof d=="string"&&u&&typeof u.as=="string"){var f=u.as,p=c(f,u.crossOrigin),h=typeof u.integrity=="string"?u.integrity:void 0,g=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;f==="style"?r.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:p,integrity:h,fetchPriority:g}):f==="script"&&r.d.X(d,{crossOrigin:p,integrity:h,fetchPriority:g,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},ce.preinitModule=function(d,u){if(typeof d=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var f=c(u.as,u.crossOrigin);r.d.M(d,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&r.d.M(d)},ce.preload=function(d,u){if(typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var f=u.as,p=c(f,u.crossOrigin);r.d.L(d,f,{crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},ce.preloadModule=function(d,u){if(typeof d=="string")if(u){var f=c(u.as,u.crossOrigin);r.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else r.d.m(d)},ce.requestFormReset=function(d){r.d.r(d)},ce.unstable_batchedUpdates=function(d,u){return d(u)},ce.useFormState=function(d,u,f){return a.H.useFormState(d,u,f)},ce.useFormStatus=function(){return a.H.useHostTransitionStatus()},ce.version="19.2.4",ce}var mo;function Ec(){if(mo)return $n.exports;mo=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$n.exports=Cc(),$n.exports}/**
26
26
  * react-router v7.13.0
27
27
  *
28
28
  * Copyright (c) Remix Software Inc.
@@ -31,9 +31,9 @@ function yc(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
31
31
  * LICENSE.md file in the root directory of this source tree.
32
32
  *
33
33
  * @license MIT
34
- */var go="popstate";function Ec(e={}){function t(r,o){let{pathname:s,search:a,hash:c}=r.location;return nr("",{pathname:s,search:a,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:jt(o)}return Rc(t,n,null,e)}function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xe(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sc(){return Math.random().toString(36).substring(2,10)}function vo(e,t){return{usr:e.state,key:e.key,idx:t}}function nr(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?pt(t):t,state:n,key:t&&t.key||r||Sc()}}function jt({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function pt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Rc(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:s=!1}=r,a=o.history,c="POP",d=null,u=f();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function f(){return(a.state||{idx:null}).idx}function p(){c="POP";let v=f(),b=v==null?null:v-u;u=v,d&&d({action:c,location:m.location,delta:b})}function h(v,b){c="PUSH";let C=nr(m.location,v,b);u=f()+1;let w=vo(C,u),k=m.createHref(C);try{a.pushState(w,"",k)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(k)}s&&d&&d({action:c,location:m.location,delta:1})}function g(v,b){c="REPLACE";let C=nr(m.location,v,b);u=f();let w=vo(C,u),k=m.createHref(C);a.replaceState(w,"",k),s&&d&&d({action:c,location:m.location,delta:0})}function x(v){return Mc(v)}let m={get action(){return c},get location(){return e(o,a)},listen(v){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(go,p),d=v,()=>{o.removeEventListener(go,p),d=null}},createHref(v){return t(o,v)},createURL:x,encodeLocation(v){let b=x(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:g,go(v){return a.go(v)}};return m}function Mc(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ae(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:jt(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function os(e,t,n="/"){return Tc(e,t,n,!1)}function Tc(e,t,n,r){let o=typeof t=="string"?pt(t):t,s=Fe(o.pathname||"/",n);if(s==null)return null;let a=ss(e);Pc(a);let c=null;for(let d=0;c==null&&d<a.length;++d){let u=Uc(s);c=Fc(a[d],u,r)}return c}function ss(e,t=[],n=[],r="",o=!1){let s=(a,c,d=o,u)=>{let f={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:c,route:a};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&d)return;ae(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let p=De([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(ae(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),ss(a.children,t,h,p,d)),!(a.path==null&&!a.index)&&t.push({path:p,score:Lc(p,a.index),routesMeta:h})};return e.forEach((a,c)=>{var d;if(a.path===""||!((d=a.path)!=null&&d.includes("?")))s(a,c);else for(let u of as(a.path))s(a,c,!0,u)}),t}function as(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let a=as(r.join("/")),c=[];return c.push(...a.map(d=>d===""?s:[s,d].join("/"))),o&&c.push(...a),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function Pc(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Dc(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var jc=/^:[\w-]+$/,Ac=3,Nc=2,_c=1,Ic=10,Oc=-2,yo=e=>e==="*";function Lc(e,t){let n=e.split("/"),r=n.length;return n.some(yo)&&(r+=Oc),t&&(r+=Nc),n.filter(o=>!yo(o)).reduce((o,s)=>o+(jc.test(s)?Ac:s===""?_c:Ic),r)}function Dc(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Fc(e,t,n=!1){let{routesMeta:r}=e,o={},s="/",a=[];for(let c=0;c<r.length;++c){let d=r[c],u=c===r.length-1,f=s==="/"?t:t.slice(s.length)||"/",p=on({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},f),h=d.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=on({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},f)),!p)return null;Object.assign(o,p.params),a.push({params:o,pathname:De([s,p.pathname]),pathnameBase:Wc(De([s,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(s=De([s,p.pathnameBase]))}return a}function on(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$c(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],a=s.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:p},h)=>{if(f==="*"){let x=c[h]||"";a=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const g=c[h];return p&&!g?u[f]=void 0:u[f]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:e}}function $c(e,t=!1,n=!0){xe(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Uc(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xe(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Fe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Hc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function zc(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?pt(e):e,s;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?s=xo(n.substring(1),"/"):s=xo(n,t)):s=t,{pathname:s,search:Vc(r),hash:Gc(o)}}function xo(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Un(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Bc(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wr(e){let t=Bc(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Cr(e,t,n,r=!1){let o;typeof e=="string"?o=pt(e):(o={...e},ae(!o.pathname||!o.pathname.includes("?"),Un("?","pathname","search",o)),ae(!o.pathname||!o.pathname.includes("#"),Un("#","pathname","hash",o)),ae(!o.search||!o.search.includes("#"),Un("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,c;if(a==null)c=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}c=p>=0?t[p]:"/"}let d=zc(o,c),u=a&&a!=="/"&&a.endsWith("/"),f=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||f)&&(d.pathname+="/"),d}var De=e=>e.join("/").replace(/\/\/+/g,"/"),Wc=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Vc=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gc=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,qc=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Kc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Yc(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var is=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cs(e,t){let n=e;if(typeof n!="string"||!Hc.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(is)try{let s=new URL(window.location.href),a=n.startsWith("//")?new URL(s.protocol+n):new URL(n),c=Fe(a.pathname,t);a.origin===s.origin&&c!=null?n=c+a.search+a.hash:o=!0}catch{xe(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ls=["POST","PUT","PATCH","DELETE"];new Set(ls);var Xc=["GET",...ls];new Set(Xc);var ht=l.createContext(null);ht.displayName="DataRouter";var hn=l.createContext(null);hn.displayName="DataRouterState";var Zc=l.createContext(!1),us=l.createContext({isTransitioning:!1});us.displayName="ViewTransition";var Jc=l.createContext(new Map);Jc.displayName="Fetchers";var Qc=l.createContext(null);Qc.displayName="Await";var me=l.createContext(null);me.displayName="Navigation";var Ot=l.createContext(null);Ot.displayName="Location";var be=l.createContext({outlet:null,matches:[],isDataRoute:!1});be.displayName="Route";var kr=l.createContext(null);kr.displayName="RouteError";var ds="REACT_ROUTER_ERROR",el="REDIRECT",tl="ROUTE_ERROR_RESPONSE";function nl(e){if(e.startsWith(`${ds}:${el}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function rl(e){if(e.startsWith(`${ds}:${tl}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new qc(t.status,t.statusText,t.data)}catch{}}function ol(e,{relative:t}={}){ae(mt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=l.useContext(me),{hash:o,pathname:s,search:a}=Lt(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:De([n,s])),r.createHref({pathname:c,search:a,hash:o})}function mt(){return l.useContext(Ot)!=null}function He(){return ae(mt(),"useLocation() may be used only in the context of a <Router> component."),l.useContext(Ot).location}var fs="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ps(e){l.useContext(me).static||l.useLayoutEffect(e)}function Er(){let{isDataRoute:e}=l.useContext(be);return e?xl():sl()}function sl(){ae(mt(),"useNavigate() may be used only in the context of a <Router> component.");let e=l.useContext(ht),{basename:t,navigator:n}=l.useContext(me),{matches:r}=l.useContext(be),{pathname:o}=He(),s=JSON.stringify(wr(r)),a=l.useRef(!1);return ps(()=>{a.current=!0}),l.useCallback((d,u={})=>{if(xe(a.current,fs),!a.current)return;if(typeof d=="number"){n.go(d);return}let f=Cr(d,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:De([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,s,o,e])}var al=l.createContext(null);function il(e){let t=l.useContext(be).outlet;return l.useMemo(()=>t&&l.createElement(al.Provider,{value:e},t),[t,e])}function Ig(){let{matches:e}=l.useContext(be),t=e[e.length-1];return t?t.params:{}}function Lt(e,{relative:t}={}){let{matches:n}=l.useContext(be),{pathname:r}=He(),o=JSON.stringify(wr(n));return l.useMemo(()=>Cr(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function cl(e,t){return hs(e,t)}function hs(e,t,n,r,o){var C;ae(mt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=l.useContext(me),{matches:a}=l.useContext(be),c=a[a.length-1],d=c?c.params:{},u=c?c.pathname:"/",f=c?c.pathnameBase:"/",p=c&&c.route;{let w=p&&p.path||"";gs(u,!p||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
34
+ */var go="popstate";function kc(e={}){function t(r,o){let{pathname:s,search:a,hash:c}=r.location;return nr("",{pathname:s,search:a,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:jt(o)}return Rc(t,n,null,e)}function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xe(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sc(){return Math.random().toString(36).substring(2,10)}function vo(e,t){return{usr:e.state,key:e.key,idx:t}}function nr(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?pt(t):t,state:n,key:t&&t.key||r||Sc()}}function jt({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function pt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Rc(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:s=!1}=r,a=o.history,c="POP",d=null,u=f();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function f(){return(a.state||{idx:null}).idx}function p(){c="POP";let v=f(),b=v==null?null:v-u;u=v,d&&d({action:c,location:m.location,delta:b})}function h(v,b){c="PUSH";let C=nr(m.location,v,b);u=f()+1;let w=vo(C,u),E=m.createHref(C);try{a.pushState(w,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}s&&d&&d({action:c,location:m.location,delta:1})}function g(v,b){c="REPLACE";let C=nr(m.location,v,b);u=f();let w=vo(C,u),E=m.createHref(C);a.replaceState(w,"",E),s&&d&&d({action:c,location:m.location,delta:0})}function x(v){return Tc(v)}let m={get action(){return c},get location(){return e(o,a)},listen(v){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(go,p),d=v,()=>{o.removeEventListener(go,p),d=null}},createHref(v){return t(o,v)},createURL:x,encodeLocation(v){let b=x(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:g,go(v){return a.go(v)}};return m}function Tc(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ae(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:jt(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function os(e,t,n="/"){return Mc(e,t,n,!1)}function Mc(e,t,n,r){let o=typeof t=="string"?pt(t):t,s=Fe(o.pathname||"/",n);if(s==null)return null;let a=ss(e);Pc(a);let c=null;for(let d=0;c==null&&d<a.length;++d){let u=Uc(s);c=Fc(a[d],u,r)}return c}function ss(e,t=[],n=[],r="",o=!1){let s=(a,c,d=o,u)=>{let f={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:c,route:a};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&d)return;ae(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let p=De([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(ae(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),ss(a.children,t,h,p,d)),!(a.path==null&&!a.index)&&t.push({path:p,score:Lc(p,a.index),routesMeta:h})};return e.forEach((a,c)=>{var d;if(a.path===""||!((d=a.path)!=null&&d.includes("?")))s(a,c);else for(let u of as(a.path))s(a,c,!0,u)}),t}function as(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let a=as(r.join("/")),c=[];return c.push(...a.map(d=>d===""?s:[s,d].join("/"))),o&&c.push(...a),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function Pc(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Dc(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var jc=/^:[\w-]+$/,Ac=3,Nc=2,_c=1,Ic=10,Oc=-2,yo=e=>e==="*";function Lc(e,t){let n=e.split("/"),r=n.length;return n.some(yo)&&(r+=Oc),t&&(r+=Nc),n.filter(o=>!yo(o)).reduce((o,s)=>o+(jc.test(s)?Ac:s===""?_c:Ic),r)}function Dc(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Fc(e,t,n=!1){let{routesMeta:r}=e,o={},s="/",a=[];for(let c=0;c<r.length;++c){let d=r[c],u=c===r.length-1,f=s==="/"?t:t.slice(s.length)||"/",p=on({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},f),h=d.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=on({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},f)),!p)return null;Object.assign(o,p.params),a.push({params:o,pathname:De([s,p.pathname]),pathnameBase:Wc(De([s,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(s=De([s,p.pathnameBase]))}return a}function on(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$c(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],a=s.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:p},h)=>{if(f==="*"){let x=c[h]||"";a=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const g=c[h];return p&&!g?u[f]=void 0:u[f]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:e}}function $c(e,t=!1,n=!0){xe(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Uc(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xe(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Fe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Hc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Bc(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?pt(e):e,s;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?s=xo(n.substring(1),"/"):s=xo(n,t)):s=t,{pathname:s,search:Vc(r),hash:Gc(o)}}function xo(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Un(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zc(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wr(e){let t=zc(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Cr(e,t,n,r=!1){let o;typeof e=="string"?o=pt(e):(o={...e},ae(!o.pathname||!o.pathname.includes("?"),Un("?","pathname","search",o)),ae(!o.pathname||!o.pathname.includes("#"),Un("#","pathname","hash",o)),ae(!o.search||!o.search.includes("#"),Un("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,c;if(a==null)c=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}c=p>=0?t[p]:"/"}let d=Bc(o,c),u=a&&a!=="/"&&a.endsWith("/"),f=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||f)&&(d.pathname+="/"),d}var De=e=>e.join("/").replace(/\/\/+/g,"/"),Wc=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Vc=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gc=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,qc=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Kc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Yc(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var is=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cs(e,t){let n=e;if(typeof n!="string"||!Hc.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(is)try{let s=new URL(window.location.href),a=n.startsWith("//")?new URL(s.protocol+n):new URL(n),c=Fe(a.pathname,t);a.origin===s.origin&&c!=null?n=c+a.search+a.hash:o=!0}catch{xe(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ls=["POST","PUT","PATCH","DELETE"];new Set(ls);var Xc=["GET",...ls];new Set(Xc);var ht=l.createContext(null);ht.displayName="DataRouter";var hn=l.createContext(null);hn.displayName="DataRouterState";var Zc=l.createContext(!1),us=l.createContext({isTransitioning:!1});us.displayName="ViewTransition";var Jc=l.createContext(new Map);Jc.displayName="Fetchers";var Qc=l.createContext(null);Qc.displayName="Await";var me=l.createContext(null);me.displayName="Navigation";var Ot=l.createContext(null);Ot.displayName="Location";var be=l.createContext({outlet:null,matches:[],isDataRoute:!1});be.displayName="Route";var Er=l.createContext(null);Er.displayName="RouteError";var ds="REACT_ROUTER_ERROR",el="REDIRECT",tl="ROUTE_ERROR_RESPONSE";function nl(e){if(e.startsWith(`${ds}:${el}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function rl(e){if(e.startsWith(`${ds}:${tl}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new qc(t.status,t.statusText,t.data)}catch{}}function ol(e,{relative:t}={}){ae(mt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=l.useContext(me),{hash:o,pathname:s,search:a}=Lt(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:De([n,s])),r.createHref({pathname:c,search:a,hash:o})}function mt(){return l.useContext(Ot)!=null}function He(){return ae(mt(),"useLocation() may be used only in the context of a <Router> component."),l.useContext(Ot).location}var fs="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ps(e){l.useContext(me).static||l.useLayoutEffect(e)}function kr(){let{isDataRoute:e}=l.useContext(be);return e?xl():sl()}function sl(){ae(mt(),"useNavigate() may be used only in the context of a <Router> component.");let e=l.useContext(ht),{basename:t,navigator:n}=l.useContext(me),{matches:r}=l.useContext(be),{pathname:o}=He(),s=JSON.stringify(wr(r)),a=l.useRef(!1);return ps(()=>{a.current=!0}),l.useCallback((d,u={})=>{if(xe(a.current,fs),!a.current)return;if(typeof d=="number"){n.go(d);return}let f=Cr(d,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:De([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,s,o,e])}var al=l.createContext(null);function il(e){let t=l.useContext(be).outlet;return l.useMemo(()=>t&&l.createElement(al.Provider,{value:e},t),[t,e])}function Ig(){let{matches:e}=l.useContext(be),t=e[e.length-1];return t?t.params:{}}function Lt(e,{relative:t}={}){let{matches:n}=l.useContext(be),{pathname:r}=He(),o=JSON.stringify(wr(n));return l.useMemo(()=>Cr(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function cl(e,t){return hs(e,t)}function hs(e,t,n,r,o){var C;ae(mt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=l.useContext(me),{matches:a}=l.useContext(be),c=a[a.length-1],d=c?c.params:{},u=c?c.pathname:"/",f=c?c.pathnameBase:"/",p=c&&c.route;{let w=p&&p.path||"";gs(u,!p||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
35
35
 
36
- Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let h=He(),g;if(t){let w=typeof t=="string"?pt(t):t;ae(f==="/"||((C=w.pathname)==null?void 0:C.startsWith(f)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${w.pathname}" was given in the \`location\` prop.`),g=w}else g=h;let x=g.pathname||"/",m=x;if(f!=="/"){let w=f.replace(/^\//,"").split("/");m="/"+x.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=os(e,{pathname:m});xe(p||v!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),xe(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=pl(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},d,w.params),pathname:De([f,s.encodeLocation?s.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?f:De([f,s.encodeLocation?s.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&b?l.createElement(Ot.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},b):b}function ll(){let e=yl(),t=Kc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:s},"ErrorBoundary")," or"," ",l.createElement("code",{style:s},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,a)}var ul=l.createElement(ll,null),ms=class extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=rl(e.digest);n&&(e=n)}let t=e!==void 0?l.createElement(be.Provider,{value:this.props.routeContext},l.createElement(kr.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?l.createElement(dl,{error:e},t):t}};ms.contextType=Zc;var Hn=new WeakMap;function dl({children:e,error:t}){let{basename:n}=l.useContext(me);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=nl(t.digest);if(r){let o=Hn.get(t);if(o)throw o;let s=cs(r.location,n);if(is&&!Hn.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Hn.set(t,a),a}return l.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function fl({routeContext:e,match:t,children:n}){let r=l.useContext(ht);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(be.Provider,{value:e},n)}function pl(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=n==null?void 0:n.errors;if(a!=null){let f=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);ae(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,f+1))}let c=!1,d=-1;if(n)for(let f=0;f<s.length;f++){let p=s[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:h,errors:g}=n,x=p.route.loader&&!h.hasOwnProperty(p.route.id)&&(!g||g[p.route.id]===void 0);if(p.route.lazy||x){c=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}let u=n&&r?(f,p)=>{var h,g;r(f,{location:n.location,params:((g=(h=n.matches)==null?void 0:h[0])==null?void 0:g.params)??{},unstable_pattern:Yc(n.matches),errorInfo:p})}:void 0;return s.reduceRight((f,p,h)=>{let g,x=!1,m=null,v=null;n&&(g=a&&p.route.id?a[p.route.id]:void 0,m=p.route.errorElement||ul,c&&(d<0&&h===0?(gs("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,v=null):d===h&&(x=!0,v=p.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),C=()=>{let w;return g?w=m:x?w=v:p.route.Component?w=l.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=f,l.createElement(fl,{match:p,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?l.createElement(ms,{location:n.location,revalidation:n.revalidation,component:m,error:g,children:C(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:u}):C()},null)}function Sr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hl(e){let t=l.useContext(ht);return ae(t,Sr(e)),t}function ml(e){let t=l.useContext(hn);return ae(t,Sr(e)),t}function gl(e){let t=l.useContext(be);return ae(t,Sr(e)),t}function Rr(e){let t=gl(e),n=t.matches[t.matches.length-1];return ae(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function vl(){return Rr("useRouteId")}function yl(){var r;let e=l.useContext(kr),t=ml("useRouteError"),n=Rr("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function xl(){let{router:e}=hl("useNavigate"),t=Rr("useNavigate"),n=l.useRef(!1);return ps(()=>{n.current=!0}),l.useCallback(async(o,s={})=>{xe(n.current,fs),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var bo={};function gs(e,t,n){!t&&!bo[e]&&(bo[e]=!0,xe(!1,n))}l.memo(bl);function bl({routes:e,future:t,state:n,onError:r}){return hs(e,void 0,n,r,t)}function Og({to:e,replace:t,state:n,relative:r}){ae(mt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=l.useContext(me);xe(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=l.useContext(be),{pathname:a}=He(),c=Er(),d=Cr(e,wr(s),a,r==="path"),u=JSON.stringify(d);return l.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Lg(e){return il(e.context)}function wl(e){ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Cl({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1,unstable_useTransitions:a}){ae(!mt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=l.useMemo(()=>({basename:c,navigator:o,static:s,unstable_useTransitions:a,future:{}}),[c,o,s,a]);typeof n=="string"&&(n=pt(n));let{pathname:u="/",search:f="",hash:p="",state:h=null,key:g="default"}=n,x=l.useMemo(()=>{let m=Fe(u,c);return m==null?null:{location:{pathname:m,search:f,hash:p,state:h,key:g},navigationType:r}},[c,u,f,p,h,g,r]);return xe(x!=null,`<Router basename="${c}"> is not able to match the URL "${u}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:l.createElement(me.Provider,{value:d},l.createElement(Ot.Provider,{children:t,value:x}))}function Dg({children:e,location:t}){return cl(rr(e),t)}function rr(e,t=[]){let n=[];return l.Children.forEach(e,(r,o)=>{if(!l.isValidElement(r))return;let s=[...t,o];if(r.type===l.Fragment){n.push.apply(n,rr(r.props.children,s));return}ae(r.type===wl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ae(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=rr(r.props.children,s)),n.push(a)}),n}var Qt="get",en="application/x-www-form-urlencoded";function mn(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function kl(e){return mn(e)&&e.tagName.toLowerCase()==="button"}function El(e){return mn(e)&&e.tagName.toLowerCase()==="form"}function Sl(e){return mn(e)&&e.tagName.toLowerCase()==="input"}function Rl(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ml(e,t){return e.button===0&&(!t||t==="_self")&&!Rl(e)}function or(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Tl(e,t){let n=or(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}var Gt=null;function Pl(){if(Gt===null)try{new FormData(document.createElement("form"),0),Gt=!1}catch{Gt=!0}return Gt}var jl=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zn(e){return e!=null&&!jl.has(e)?(xe(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${en}"`),null):e}function Al(e,t){let n,r,o,s,a;if(El(e)){let c=e.getAttribute("action");r=c?Fe(c,t):null,n=e.getAttribute("method")||Qt,o=zn(e.getAttribute("enctype"))||en,s=new FormData(e)}else if(kl(e)||Sl(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?Fe(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Qt,o=zn(e.getAttribute("formenctype"))||zn(c.getAttribute("enctype"))||en,s=new FormData(c,e),!Pl()){let{name:u,type:f,value:p}=e;if(f==="image"){let h=u?`${u}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else u&&s.append(u,p)}}else{if(mn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qt,r=null,o=en,a=e}return s&&o==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nl(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Fe(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function _l(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Il(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Ol(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let a=await _l(s,n);return a.links?a.links():[]}return[]}));return $l(r.flat(1).filter(Il).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function wo(e,t,n,r,o,s){let a=(d,u)=>n[u]?d.route.id!==n[u].route.id:!0,c=(d,u)=>{var f;return n[u].pathname!==d.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,u)=>a(d,u)||c(d,u)):s==="data"?t.filter((d,u)=>{var p;let f=r.routes[d.route.id];if(!f||!f.hasLoader)return!1;if(a(d,u)||c(d,u))return!0;if(d.route.shouldRevalidate){let h=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Ll(e,t,{includeHydrateFallback:n}={}){return Dl(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function Dl(e){return[...new Set(e)]}function Fl(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function $l(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(Fl(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}function vs(){let e=l.useContext(ht);return Mr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ul(){let e=l.useContext(hn);return Mr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Tr=l.createContext(void 0);Tr.displayName="FrameworkContext";function ys(){let e=l.useContext(Tr);return Mr(e,"You must render this element inside a <HydratedRouter> element"),e}function Hl(e,t){let n=l.useContext(Tr),[r,o]=l.useState(!1),[s,a]=l.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:u,onMouseLeave:f,onTouchStart:p}=t,h=l.useRef(null);l.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=b=>{b.forEach(C=>{a(C.isIntersecting)})},v=new IntersectionObserver(m,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]),l.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let g=()=>{o(!0)},x=()=>{o(!1),a(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:St(c,g),onBlur:St(d,x),onMouseEnter:St(u,g),onMouseLeave:St(f,x),onTouchStart:St(p,g)}]:[!1,h,{}]}function St(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function zl({page:e,...t}){let{router:n}=vs(),r=l.useMemo(()=>os(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?l.createElement(Wl,{page:e,matches:r,...t}):null}function Bl(e){let{manifest:t,routeModules:n}=ys(),[r,o]=l.useState([]);return l.useEffect(()=>{let s=!1;return Ol(e,t,n).then(a=>{s||o(a)}),()=>{s=!0}},[e,t,n]),r}function Wl({page:e,matches:t,...n}){let r=He(),{future:o,manifest:s,routeModules:a}=ys(),{basename:c}=vs(),{loaderData:d,matches:u}=Ul(),f=l.useMemo(()=>wo(e,t,u,s,r,"data"),[e,t,u,s,r]),p=l.useMemo(()=>wo(e,t,u,s,r,"assets"),[e,t,u,s,r]),h=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,v=!1;if(t.forEach(C=>{var k;let w=s.routes[C.route.id];!w||!w.hasLoader||(!f.some(R=>R.route.id===C.route.id)&&C.route.id in d&&((k=a[C.route.id])!=null&&k.shouldRevalidate)||w.hasClientLoader?v=!0:m.add(C.route.id))}),m.size===0)return[];let b=Nl(e,c,o.unstable_trailingSlashAwareDataRequests,"data");return v&&m.size>0&&b.searchParams.set("_routes",t.filter(C=>m.has(C.route.id)).map(C=>C.route.id).join(",")),[b.pathname+b.search]},[c,o.unstable_trailingSlashAwareDataRequests,d,r,s,f,t,e,a]),g=l.useMemo(()=>Ll(p,s),[p,s]),x=Bl(p);return l.createElement(l.Fragment,null,h.map(m=>l.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),g.map(m=>l.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),x.map(({key:m,link:v})=>l.createElement("link",{key:m,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function Vl(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Gl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Gl&&(window.__reactRouterVersion="7.13.0")}catch{}function Fg({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=l.useRef();o.current==null&&(o.current=Ec({window:r,v5Compat:!0}));let s=o.current,[a,c]=l.useState({action:s.action,location:s.location}),d=l.useCallback(u=>{n===!1?c(u):l.startTransition(()=>c(u))},[n]);return l.useLayoutEffect(()=>s.listen(d),[s,d]),l.createElement(Cl,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:s,unstable_useTransitions:n})}var xs=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gn=l.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:a,state:c,target:d,to:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...g},x){let{basename:m,unstable_useTransitions:v}=l.useContext(me),b=typeof u=="string"&&xs.test(u),C=cs(u,m);u=C.to;let w=ol(u,{relative:o}),[k,R,T]=Hl(r,g),E=Xl(u,{replace:a,state:c,target:d,preventScrollReset:f,relative:o,viewTransition:p,unstable_defaultShouldRevalidate:h,unstable_useTransitions:v});function A(F){t&&t(F),F.defaultPrevented||E(F)}let D=l.createElement("a",{...g,...T,href:C.absoluteURL||w,onClick:C.isExternal||s?t:A,ref:Vl(x,R),target:d,"data-discover":!b&&n==="render"?"true":void 0});return k&&!b?l.createElement(l.Fragment,null,D,l.createElement(zl,{page:w})):D});gn.displayName="Link";var ql=l.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:a,viewTransition:c,children:d,...u},f){let p=Lt(a,{relative:u.relative}),h=He(),g=l.useContext(hn),{navigator:x,basename:m}=l.useContext(me),v=g!=null&&nu(p)&&c===!0,b=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,C=h.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(C=C.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&m&&(w=Fe(w,m)||w);const k=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let R=C===b||!o&&C.startsWith(b)&&C.charAt(k)==="/",T=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),E={isActive:R,isPending:T,isTransitioning:v},A=R?t:void 0,D;typeof r=="function"?D=r(E):D=[r,R?"active":null,T?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(E):s;return l.createElement(gn,{...u,"aria-current":A,className:D,ref:f,style:F,to:a,viewTransition:c},typeof d=="function"?d(E):d)});ql.displayName="NavLink";var Kl=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:a=Qt,action:c,onSubmit:d,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...g},x)=>{let{unstable_useTransitions:m}=l.useContext(me),v=eu(),b=tu(c,{relative:u}),C=a.toLowerCase()==="get"?"get":"post",w=typeof c=="string"&&xs.test(c),k=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let T=R.nativeEvent.submitter,E=(T==null?void 0:T.getAttribute("formmethod"))||a,A=()=>v(T||R.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:o,state:s,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h});m&&n!==!1?l.startTransition(()=>A()):A()};return l.createElement("form",{ref:x,method:C,action:b,onSubmit:r?d:k,...g,"data-discover":!w&&e==="render"?"true":void 0})});Kl.displayName="Form";function Yl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bs(e){let t=l.useContext(ht);return ae(t,Yl(e)),t}function Xl(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:c,unstable_useTransitions:d}={}){let u=Er(),f=He(),p=Lt(e,{relative:s});return l.useCallback(h=>{if(Ml(h,t)){h.preventDefault();let g=n!==void 0?n:jt(f)===jt(p),x=()=>u(e,{replace:g,state:r,preventScrollReset:o,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:c});d?l.startTransition(()=>x()):x()}},[f,u,p,n,r,t,e,o,s,a,c,d])}function Zl(e){xe(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=l.useRef(or(e)),n=l.useRef(!1),r=He(),o=l.useMemo(()=>Tl(r.search,n.current?null:t.current),[r.search]),s=Er(),a=l.useCallback((c,d)=>{const u=or(typeof c=="function"?c(new URLSearchParams(o)):c);n.current=!0,s("?"+u,d)},[s,o]);return[o,a]}var Jl=0,Ql=()=>`__${String(++Jl)}__`;function eu(){let{router:e}=bs("useSubmit"),{basename:t}=l.useContext(me),n=vl(),r=e.fetch,o=e.navigate;return l.useCallback(async(s,a={})=>{let{action:c,method:d,encType:u,formData:f,body:p}=Al(s,t);if(a.navigate===!1){let h=a.fetcherKey||Ql();await r(h,n,a.action||c,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||d,formEncType:a.encType||u,flushSync:a.flushSync})}else await o(a.action||c,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||d,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}function tu(e,{relative:t}={}){let{basename:n}=l.useContext(me),r=l.useContext(be);ae(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={...Lt(e||".",{relative:t})},a=He();if(e==null){s.search=a.search;let c=new URLSearchParams(s.search),d=c.getAll("index");if(d.some(f=>f==="")){c.delete("index"),d.filter(p=>p).forEach(p=>c.append("index",p));let f=c.toString();s.search=f?`?${f}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:De([n,s.pathname])),jt(s)}function nu(e,{relative:t}={}){let n=l.useContext(us);ae(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=bs("useViewTransitionState"),o=Lt(e,{relative:t});if(!n.isTransitioning)return!1;let s=Fe(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Fe(n.nextLocation.pathname,r)||n.nextLocation.pathname;return on(o.pathname,a)!=null||on(o.pathname,s)!=null}/**
36
+ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let h=He(),g;if(t){let w=typeof t=="string"?pt(t):t;ae(f==="/"||((C=w.pathname)==null?void 0:C.startsWith(f)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${w.pathname}" was given in the \`location\` prop.`),g=w}else g=h;let x=g.pathname||"/",m=x;if(f!=="/"){let w=f.replace(/^\//,"").split("/");m="/"+x.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=os(e,{pathname:m});xe(p||v!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),xe(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=pl(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},d,w.params),pathname:De([f,s.encodeLocation?s.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?f:De([f,s.encodeLocation?s.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&b?l.createElement(Ot.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},b):b}function ll(){let e=yl(),t=Kc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:s},"ErrorBoundary")," or"," ",l.createElement("code",{style:s},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,a)}var ul=l.createElement(ll,null),ms=class extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=rl(e.digest);n&&(e=n)}let t=e!==void 0?l.createElement(be.Provider,{value:this.props.routeContext},l.createElement(Er.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?l.createElement(dl,{error:e},t):t}};ms.contextType=Zc;var Hn=new WeakMap;function dl({children:e,error:t}){let{basename:n}=l.useContext(me);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=nl(t.digest);if(r){let o=Hn.get(t);if(o)throw o;let s=cs(r.location,n);if(is&&!Hn.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Hn.set(t,a),a}return l.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function fl({routeContext:e,match:t,children:n}){let r=l.useContext(ht);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(be.Provider,{value:e},n)}function pl(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=n==null?void 0:n.errors;if(a!=null){let f=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);ae(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,f+1))}let c=!1,d=-1;if(n)for(let f=0;f<s.length;f++){let p=s[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:h,errors:g}=n,x=p.route.loader&&!h.hasOwnProperty(p.route.id)&&(!g||g[p.route.id]===void 0);if(p.route.lazy||x){c=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}let u=n&&r?(f,p)=>{var h,g;r(f,{location:n.location,params:((g=(h=n.matches)==null?void 0:h[0])==null?void 0:g.params)??{},unstable_pattern:Yc(n.matches),errorInfo:p})}:void 0;return s.reduceRight((f,p,h)=>{let g,x=!1,m=null,v=null;n&&(g=a&&p.route.id?a[p.route.id]:void 0,m=p.route.errorElement||ul,c&&(d<0&&h===0?(gs("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,v=null):d===h&&(x=!0,v=p.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),C=()=>{let w;return g?w=m:x?w=v:p.route.Component?w=l.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=f,l.createElement(fl,{match:p,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?l.createElement(ms,{location:n.location,revalidation:n.revalidation,component:m,error:g,children:C(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:u}):C()},null)}function Sr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hl(e){let t=l.useContext(ht);return ae(t,Sr(e)),t}function ml(e){let t=l.useContext(hn);return ae(t,Sr(e)),t}function gl(e){let t=l.useContext(be);return ae(t,Sr(e)),t}function Rr(e){let t=gl(e),n=t.matches[t.matches.length-1];return ae(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function vl(){return Rr("useRouteId")}function yl(){var r;let e=l.useContext(Er),t=ml("useRouteError"),n=Rr("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function xl(){let{router:e}=hl("useNavigate"),t=Rr("useNavigate"),n=l.useRef(!1);return ps(()=>{n.current=!0}),l.useCallback(async(o,s={})=>{xe(n.current,fs),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var bo={};function gs(e,t,n){!t&&!bo[e]&&(bo[e]=!0,xe(!1,n))}l.memo(bl);function bl({routes:e,future:t,state:n,onError:r}){return hs(e,void 0,n,r,t)}function Og({to:e,replace:t,state:n,relative:r}){ae(mt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=l.useContext(me);xe(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=l.useContext(be),{pathname:a}=He(),c=kr(),d=Cr(e,wr(s),a,r==="path"),u=JSON.stringify(d);return l.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Lg(e){return il(e.context)}function wl(e){ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Cl({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1,unstable_useTransitions:a}){ae(!mt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=l.useMemo(()=>({basename:c,navigator:o,static:s,unstable_useTransitions:a,future:{}}),[c,o,s,a]);typeof n=="string"&&(n=pt(n));let{pathname:u="/",search:f="",hash:p="",state:h=null,key:g="default"}=n,x=l.useMemo(()=>{let m=Fe(u,c);return m==null?null:{location:{pathname:m,search:f,hash:p,state:h,key:g},navigationType:r}},[c,u,f,p,h,g,r]);return xe(x!=null,`<Router basename="${c}"> is not able to match the URL "${u}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:l.createElement(me.Provider,{value:d},l.createElement(Ot.Provider,{children:t,value:x}))}function Dg({children:e,location:t}){return cl(rr(e),t)}function rr(e,t=[]){let n=[];return l.Children.forEach(e,(r,o)=>{if(!l.isValidElement(r))return;let s=[...t,o];if(r.type===l.Fragment){n.push.apply(n,rr(r.props.children,s));return}ae(r.type===wl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ae(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=rr(r.props.children,s)),n.push(a)}),n}var Qt="get",en="application/x-www-form-urlencoded";function mn(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function El(e){return mn(e)&&e.tagName.toLowerCase()==="button"}function kl(e){return mn(e)&&e.tagName.toLowerCase()==="form"}function Sl(e){return mn(e)&&e.tagName.toLowerCase()==="input"}function Rl(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tl(e,t){return e.button===0&&(!t||t==="_self")&&!Rl(e)}function or(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Ml(e,t){let n=or(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}var Gt=null;function Pl(){if(Gt===null)try{new FormData(document.createElement("form"),0),Gt=!1}catch{Gt=!0}return Gt}var jl=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bn(e){return e!=null&&!jl.has(e)?(xe(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${en}"`),null):e}function Al(e,t){let n,r,o,s,a;if(kl(e)){let c=e.getAttribute("action");r=c?Fe(c,t):null,n=e.getAttribute("method")||Qt,o=Bn(e.getAttribute("enctype"))||en,s=new FormData(e)}else if(El(e)||Sl(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?Fe(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Qt,o=Bn(e.getAttribute("formenctype"))||Bn(c.getAttribute("enctype"))||en,s=new FormData(c,e),!Pl()){let{name:u,type:f,value:p}=e;if(f==="image"){let h=u?`${u}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else u&&s.append(u,p)}}else{if(mn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qt,r=null,o=en,a=e}return s&&o==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Tr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nl(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Fe(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function _l(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Il(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Ol(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let a=await _l(s,n);return a.links?a.links():[]}return[]}));return $l(r.flat(1).filter(Il).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function wo(e,t,n,r,o,s){let a=(d,u)=>n[u]?d.route.id!==n[u].route.id:!0,c=(d,u)=>{var f;return n[u].pathname!==d.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,u)=>a(d,u)||c(d,u)):s==="data"?t.filter((d,u)=>{var p;let f=r.routes[d.route.id];if(!f||!f.hasLoader)return!1;if(a(d,u)||c(d,u))return!0;if(d.route.shouldRevalidate){let h=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Ll(e,t,{includeHydrateFallback:n}={}){return Dl(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function Dl(e){return[...new Set(e)]}function Fl(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function $l(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(Fl(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}function vs(){let e=l.useContext(ht);return Tr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ul(){let e=l.useContext(hn);return Tr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Mr=l.createContext(void 0);Mr.displayName="FrameworkContext";function ys(){let e=l.useContext(Mr);return Tr(e,"You must render this element inside a <HydratedRouter> element"),e}function Hl(e,t){let n=l.useContext(Mr),[r,o]=l.useState(!1),[s,a]=l.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:u,onMouseLeave:f,onTouchStart:p}=t,h=l.useRef(null);l.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=b=>{b.forEach(C=>{a(C.isIntersecting)})},v=new IntersectionObserver(m,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]),l.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let g=()=>{o(!0)},x=()=>{o(!1),a(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:St(c,g),onBlur:St(d,x),onMouseEnter:St(u,g),onMouseLeave:St(f,x),onTouchStart:St(p,g)}]:[!1,h,{}]}function St(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Bl({page:e,...t}){let{router:n}=vs(),r=l.useMemo(()=>os(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?l.createElement(Wl,{page:e,matches:r,...t}):null}function zl(e){let{manifest:t,routeModules:n}=ys(),[r,o]=l.useState([]);return l.useEffect(()=>{let s=!1;return Ol(e,t,n).then(a=>{s||o(a)}),()=>{s=!0}},[e,t,n]),r}function Wl({page:e,matches:t,...n}){let r=He(),{future:o,manifest:s,routeModules:a}=ys(),{basename:c}=vs(),{loaderData:d,matches:u}=Ul(),f=l.useMemo(()=>wo(e,t,u,s,r,"data"),[e,t,u,s,r]),p=l.useMemo(()=>wo(e,t,u,s,r,"assets"),[e,t,u,s,r]),h=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,v=!1;if(t.forEach(C=>{var E;let w=s.routes[C.route.id];!w||!w.hasLoader||(!f.some(S=>S.route.id===C.route.id)&&C.route.id in d&&((E=a[C.route.id])!=null&&E.shouldRevalidate)||w.hasClientLoader?v=!0:m.add(C.route.id))}),m.size===0)return[];let b=Nl(e,c,o.unstable_trailingSlashAwareDataRequests,"data");return v&&m.size>0&&b.searchParams.set("_routes",t.filter(C=>m.has(C.route.id)).map(C=>C.route.id).join(",")),[b.pathname+b.search]},[c,o.unstable_trailingSlashAwareDataRequests,d,r,s,f,t,e,a]),g=l.useMemo(()=>Ll(p,s),[p,s]),x=zl(p);return l.createElement(l.Fragment,null,h.map(m=>l.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),g.map(m=>l.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),x.map(({key:m,link:v})=>l.createElement("link",{key:m,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function Vl(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Gl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Gl&&(window.__reactRouterVersion="7.13.0")}catch{}function Fg({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=l.useRef();o.current==null&&(o.current=kc({window:r,v5Compat:!0}));let s=o.current,[a,c]=l.useState({action:s.action,location:s.location}),d=l.useCallback(u=>{n===!1?c(u):l.startTransition(()=>c(u))},[n]);return l.useLayoutEffect(()=>s.listen(d),[s,d]),l.createElement(Cl,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:s,unstable_useTransitions:n})}var xs=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gn=l.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:a,state:c,target:d,to:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...g},x){let{basename:m,unstable_useTransitions:v}=l.useContext(me),b=typeof u=="string"&&xs.test(u),C=cs(u,m);u=C.to;let w=ol(u,{relative:o}),[E,S,M]=Hl(r,g),k=Xl(u,{replace:a,state:c,target:d,preventScrollReset:f,relative:o,viewTransition:p,unstable_defaultShouldRevalidate:h,unstable_useTransitions:v});function A(F){t&&t(F),F.defaultPrevented||k(F)}let D=l.createElement("a",{...g,...M,href:C.absoluteURL||w,onClick:C.isExternal||s?t:A,ref:Vl(x,S),target:d,"data-discover":!b&&n==="render"?"true":void 0});return E&&!b?l.createElement(l.Fragment,null,D,l.createElement(Bl,{page:w})):D});gn.displayName="Link";var ql=l.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:a,viewTransition:c,children:d,...u},f){let p=Lt(a,{relative:u.relative}),h=He(),g=l.useContext(hn),{navigator:x,basename:m}=l.useContext(me),v=g!=null&&nu(p)&&c===!0,b=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,C=h.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(C=C.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&m&&(w=Fe(w,m)||w);const E=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let S=C===b||!o&&C.startsWith(b)&&C.charAt(E)==="/",M=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),k={isActive:S,isPending:M,isTransitioning:v},A=S?t:void 0,D;typeof r=="function"?D=r(k):D=[r,S?"active":null,M?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(k):s;return l.createElement(gn,{...u,"aria-current":A,className:D,ref:f,style:F,to:a,viewTransition:c},typeof d=="function"?d(k):d)});ql.displayName="NavLink";var Kl=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:a=Qt,action:c,onSubmit:d,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...g},x)=>{let{unstable_useTransitions:m}=l.useContext(me),v=eu(),b=tu(c,{relative:u}),C=a.toLowerCase()==="get"?"get":"post",w=typeof c=="string"&&xs.test(c),E=S=>{if(d&&d(S),S.defaultPrevented)return;S.preventDefault();let M=S.nativeEvent.submitter,k=(M==null?void 0:M.getAttribute("formmethod"))||a,A=()=>v(M||S.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:o,state:s,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h});m&&n!==!1?l.startTransition(()=>A()):A()};return l.createElement("form",{ref:x,method:C,action:b,onSubmit:r?d:E,...g,"data-discover":!w&&e==="render"?"true":void 0})});Kl.displayName="Form";function Yl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bs(e){let t=l.useContext(ht);return ae(t,Yl(e)),t}function Xl(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:c,unstable_useTransitions:d}={}){let u=kr(),f=He(),p=Lt(e,{relative:s});return l.useCallback(h=>{if(Tl(h,t)){h.preventDefault();let g=n!==void 0?n:jt(f)===jt(p),x=()=>u(e,{replace:g,state:r,preventScrollReset:o,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:c});d?l.startTransition(()=>x()):x()}},[f,u,p,n,r,t,e,o,s,a,c,d])}function Zl(e){xe(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=l.useRef(or(e)),n=l.useRef(!1),r=He(),o=l.useMemo(()=>Ml(r.search,n.current?null:t.current),[r.search]),s=kr(),a=l.useCallback((c,d)=>{const u=or(typeof c=="function"?c(new URLSearchParams(o)):c);n.current=!0,s("?"+u,d)},[s,o]);return[o,a]}var Jl=0,Ql=()=>`__${String(++Jl)}__`;function eu(){let{router:e}=bs("useSubmit"),{basename:t}=l.useContext(me),n=vl(),r=e.fetch,o=e.navigate;return l.useCallback(async(s,a={})=>{let{action:c,method:d,encType:u,formData:f,body:p}=Al(s,t);if(a.navigate===!1){let h=a.fetcherKey||Ql();await r(h,n,a.action||c,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||d,formEncType:a.encType||u,flushSync:a.flushSync})}else await o(a.action||c,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||d,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}function tu(e,{relative:t}={}){let{basename:n}=l.useContext(me),r=l.useContext(be);ae(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={...Lt(e||".",{relative:t})},a=He();if(e==null){s.search=a.search;let c=new URLSearchParams(s.search),d=c.getAll("index");if(d.some(f=>f==="")){c.delete("index"),d.filter(p=>p).forEach(p=>c.append("index",p));let f=c.toString();s.search=f?`?${f}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:De([n,s.pathname])),jt(s)}function nu(e,{relative:t}={}){let n=l.useContext(us);ae(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=bs("useViewTransitionState"),o=Lt(e,{relative:t});if(!n.isTransitioning)return!1;let s=Fe(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Fe(n.nextLocation.pathname,r)||n.nextLocation.pathname;return on(o.pathname,a)!=null||on(o.pathname,s)!=null}/**
37
37
  * @license lucide-react v0.468.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
@@ -53,542 +53,527 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const S=(e,t)=>{const n=l.forwardRef(({className:r,...o},s)=>l.createElement(su,{ref:s,iconNode:t,className:ws(`lucide-${ru(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
56
+ */const R=(e,t)=>{const n=l.forwardRef(({className:r,...o},s)=>l.createElement(su,{ref:s,iconNode:t,className:ws(`lucide-${ru(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
57
57
  * @license lucide-react v0.468.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const $g=S("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
61
+ */const $g=R("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
62
62
  * @license lucide-react v0.468.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 Ug=S("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
66
+ */const Ug=R("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
67
67
  * @license lucide-react v0.468.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 Hg=S("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
71
+ */const Hg=R("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
72
72
  * @license lucide-react v0.468.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
- */const zg=S("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
76
+ */const Bg=R("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
77
77
  * @license lucide-react v0.468.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 Bg=S("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);/**
81
+ */const zg=R("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);/**
82
82
  * @license lucide-react v0.468.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 Wg=S("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
86
+ */const Wg=R("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
87
87
  * @license lucide-react v0.468.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 Vg=S("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
91
+ */const Vg=R("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
92
92
  * @license lucide-react v0.468.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 Gg=S("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
96
+ */const Gg=R("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
97
97
  * @license lucide-react v0.468.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 qg=S("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
101
+ */const qg=R("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
102
102
  * @license lucide-react v0.468.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 Kg=S("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
106
+ */const Kg=R("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
107
107
  * @license lucide-react v0.468.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 Yg=S("BellRing",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]]);/**
111
+ */const Yg=R("BellRing",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]]);/**
112
112
  * @license lucide-react v0.468.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 Xg=S("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
116
+ */const Xg=R("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
117
117
  * @license lucide-react v0.468.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 au=S("BookOpen",[["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"}]]);/**
121
+ */const au=R("BookOpen",[["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"}]]);/**
122
122
  * @license lucide-react v0.468.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 Zg=S("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"}]]);/**
126
+ */const Zg=R("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"}]]);/**
127
127
  * @license lucide-react v0.468.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 Jg=S("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
131
+ */const Jg=R("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
132
132
  * @license lucide-react v0.468.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 Qg=S("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
136
+ */const Qg=R("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
137
137
  * @license lucide-react v0.468.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 ev=S("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
141
+ */const ev=R("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
142
142
  * @license lucide-react v0.468.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 tv=S("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
146
+ */const tv=R("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
147
147
  * @license lucide-react v0.468.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 iu=S("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
151
+ */const iu=R("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
152
152
  * @license lucide-react v0.468.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 nv=S("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
156
+ */const nv=R("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
157
157
  * @license lucide-react v0.468.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 Cs=S("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
161
+ */const Cs=R("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
162
162
  * @license lucide-react v0.468.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 rv=S("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
166
+ */const rv=R("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
167
167
  * @license lucide-react v0.468.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 ov=S("CircleAlert",[["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"}]]);/**
171
+ */const ov=R("CircleAlert",[["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"}]]);/**
172
172
  * @license lucide-react v0.468.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 sv=S("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/**
176
+ */const sv=R("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/**
177
177
  * @license lucide-react v0.468.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 av=S("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
181
+ */const av=R("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
182
182
  * @license lucide-react v0.468.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 iv=S("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
186
+ */const iv=R("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
187
187
  * @license lucide-react v0.468.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 cv=S("CircleHelp",[["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"}]]);/**
191
+ */const cv=R("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
192
192
  * @license lucide-react v0.468.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 lv=S("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/**
196
+ */const lv=R("CircleHelp",[["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"}]]);/**
197
197
  * @license lucide-react v0.468.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 uv=S("CircleX",[["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"}]]);/**
201
+ */const uv=R("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/**
202
202
  * @license lucide-react v0.468.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 dv=S("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
206
+ */const dv=R("CircleX",[["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"}]]);/**
207
207
  * @license lucide-react v0.468.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 fv=S("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
211
+ */const fv=R("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
212
212
  * @license lucide-react v0.468.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 pv=S("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
216
+ */const pv=R("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
217
217
  * @license lucide-react v0.468.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 cu=S("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
221
+ */const hv=R("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
222
222
  * @license lucide-react v0.468.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 lu=S("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
226
+ */const cu=R("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
227
227
  * @license lucide-react v0.468.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 hv=S("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
231
+ */const lu=R("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
232
232
  * @license lucide-react v0.468.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 mv=S("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
236
+ */const mv=R("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
237
237
  * @license lucide-react v0.468.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 gv=S("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
241
+ */const gv=R("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
242
242
  * @license lucide-react v0.468.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 vv=S("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
246
+ */const vv=R("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
247
247
  * @license lucide-react v0.468.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 yv=S("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
251
+ */const yv=R("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
252
252
  * @license lucide-react v0.468.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 xv=S("ExternalLink",[["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"}]]);/**
256
+ */const xv=R("ExternalLink",[["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"}]]);/**
257
257
  * @license lucide-react v0.468.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 bv=S("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
261
+ */const bv=R("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
262
262
  * @license lucide-react v0.468.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 wv=S("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
266
+ */const wv=R("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
267
267
  * @license lucide-react v0.468.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 Cv=S("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/**
271
+ */const Cv=R("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/**
272
272
  * @license lucide-react v0.468.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 kv=S("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
276
+ */const Ev=R("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
277
277
  * @license lucide-react v0.468.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 uu=S("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
281
+ */const uu=R("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
282
282
  * @license lucide-react v0.468.0 - ISC
283
283
  *
284
284
  * This source code is licensed under the ISC license.
285
285
  * See the LICENSE file in the root directory of this source tree.
286
- */const Ev=S("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
286
+ */const kv=R("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
287
287
  * @license lucide-react v0.468.0 - ISC
288
288
  *
289
289
  * This source code is licensed under the ISC license.
290
290
  * See the LICENSE file in the root directory of this source tree.
291
- */const Sv=S("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
291
+ */const Sv=R("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
292
292
  * @license lucide-react v0.468.0 - ISC
293
293
  *
294
294
  * This source code is licensed under the ISC license.
295
295
  * See the LICENSE file in the root directory of this source tree.
296
- */const Rv=S("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
296
+ */const Rv=R("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
297
297
  * @license lucide-react v0.468.0 - ISC
298
298
  *
299
299
  * This source code is licensed under the ISC license.
300
300
  * See the LICENSE file in the root directory of this source tree.
301
- */const Mv=S("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
301
+ */const Tv=R("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
302
302
  * @license lucide-react v0.468.0 - ISC
303
303
  *
304
304
  * This source code is licensed under the ISC license.
305
305
  * See the LICENSE file in the root directory of this source tree.
306
- */const Tv=S("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
306
+ */const Mv=R("GitCompareArrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]);/**
307
307
  * @license lucide-react v0.468.0 - ISC
308
308
  *
309
309
  * This source code is licensed under the ISC license.
310
310
  * See the LICENSE file in the root directory of this source tree.
311
- */const Pv=S("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
311
+ */const Pv=R("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
312
312
  * @license lucide-react v0.468.0 - ISC
313
313
  *
314
314
  * This source code is licensed under the ISC license.
315
315
  * See the LICENSE file in the root directory of this source tree.
316
- */const jv=S("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
316
+ */const jv=R("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
317
317
  * @license lucide-react v0.468.0 - ISC
318
318
  *
319
319
  * This source code is licensed under the ISC license.
320
320
  * See the LICENSE file in the root directory of this source tree.
321
- */const ks=S("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
321
+ */const Es=R("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
322
322
  * @license lucide-react v0.468.0 - ISC
323
323
  *
324
324
  * This source code is licensed under the ISC license.
325
325
  * See the LICENSE file in the root directory of this source tree.
326
- */const Av=S("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
326
+ */const Av=R("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]);/**
327
327
  * @license lucide-react v0.468.0 - ISC
328
328
  *
329
329
  * This source code is licensed under the ISC license.
330
330
  * See the LICENSE file in the root directory of this source tree.
331
- */const Nv=S("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]);/**
331
+ */const Nv=R("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
332
332
  * @license lucide-react v0.468.0 - ISC
333
333
  *
334
334
  * This source code is licensed under the ISC license.
335
335
  * See the LICENSE file in the root directory of this source tree.
336
- */const _v=S("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
336
+ */const _v=R("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
337
337
  * @license lucide-react v0.468.0 - ISC
338
338
  *
339
339
  * This source code is licensed under the ISC license.
340
340
  * See the LICENSE file in the root directory of this source tree.
341
- */const Iv=S("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
341
+ */const Iv=R("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
342
342
  * @license lucide-react v0.468.0 - ISC
343
343
  *
344
344
  * This source code is licensed under the ISC license.
345
345
  * See the LICENSE file in the root directory of this source tree.
346
- */const Ov=S("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
346
+ */const Ov=R("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
347
347
  * @license lucide-react v0.468.0 - ISC
348
348
  *
349
349
  * This source code is licensed under the ISC license.
350
350
  * See the LICENSE file in the root directory of this source tree.
351
- */const Lv=S("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
351
+ */const Lv=R("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
352
352
  * @license lucide-react v0.468.0 - ISC
353
353
  *
354
354
  * This source code is licensed under the ISC license.
355
355
  * See the LICENSE file in the root directory of this source tree.
356
- */const Dv=S("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
356
+ */const Dv=R("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
357
357
  * @license lucide-react v0.468.0 - ISC
358
358
  *
359
359
  * This source code is licensed under the ISC license.
360
360
  * See the LICENSE file in the root directory of this source tree.
361
- */const Fv=S("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
361
+ */const Fv=R("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
362
362
  * @license lucide-react v0.468.0 - ISC
363
363
  *
364
364
  * This source code is licensed under the ISC license.
365
365
  * See the LICENSE file in the root directory of this source tree.
366
- */const $v=S("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
366
+ */const $v=R("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
367
367
  * @license lucide-react v0.468.0 - ISC
368
368
  *
369
369
  * This source code is licensed under the ISC license.
370
370
  * See the LICENSE file in the root directory of this source tree.
371
- */const Uv=S("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
371
+ */const Uv=R("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
372
372
  * @license lucide-react v0.468.0 - ISC
373
373
  *
374
374
  * This source code is licensed under the ISC license.
375
375
  * See the LICENSE file in the root directory of this source tree.
376
- */const Hv=S("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
376
+ */const Hv=R("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
377
377
  * @license lucide-react v0.468.0 - ISC
378
378
  *
379
379
  * This source code is licensed under the ISC license.
380
380
  * See the LICENSE file in the root directory of this source tree.
381
- */const zv=S("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
381
+ */const Bv=R("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
382
382
  * @license lucide-react v0.468.0 - ISC
383
383
  *
384
384
  * This source code is licensed under the ISC license.
385
385
  * See the LICENSE file in the root directory of this source tree.
386
- */const Bv=S("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
386
+ */const zv=R("OctagonX",[["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"}]]);/**
387
387
  * @license lucide-react v0.468.0 - ISC
388
388
  *
389
389
  * This source code is licensed under the ISC license.
390
390
  * See the LICENSE file in the root directory of this source tree.
391
- */const Wv=S("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
391
+ */const Wv=R("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"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
392
392
  * @license lucide-react v0.468.0 - ISC
393
393
  *
394
394
  * This source code is licensed under the ISC license.
395
395
  * See the LICENSE file in the root directory of this source tree.
396
- */const Vv=S("OctagonX",[["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"}]]);/**
396
+ */const Vv=R("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/**
397
397
  * @license lucide-react v0.468.0 - ISC
398
398
  *
399
399
  * This source code is licensed under the ISC license.
400
400
  * See the LICENSE file in the root directory of this source tree.
401
- */const Gv=S("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"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
401
+ */const Gv=R("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
402
402
  * @license lucide-react v0.468.0 - ISC
403
403
  *
404
404
  * This source code is licensed under the ISC license.
405
405
  * See the LICENSE file in the root directory of this source tree.
406
- */const qv=S("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/**
406
+ */const qv=R("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
407
407
  * @license lucide-react v0.468.0 - ISC
408
408
  *
409
409
  * This source code is licensed under the ISC license.
410
410
  * See the LICENSE file in the root directory of this source tree.
411
- */const Kv=S("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
411
+ */const Kv=R("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
412
412
  * @license lucide-react v0.468.0 - ISC
413
413
  *
414
414
  * This source code is licensed under the ISC license.
415
415
  * See the LICENSE file in the root directory of this source tree.
416
- */const Yv=S("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
416
+ */const Yv=R("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
417
417
  * @license lucide-react v0.468.0 - ISC
418
418
  *
419
419
  * This source code is licensed under the ISC license.
420
420
  * See the LICENSE file in the root directory of this source tree.
421
- */const Xv=S("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
421
+ */const Xv=R("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/**
422
422
  * @license lucide-react v0.468.0 - ISC
423
423
  *
424
424
  * This source code is licensed under the ISC license.
425
425
  * See the LICENSE file in the root directory of this source tree.
426
- */const Zv=S("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
426
+ */const du=R("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
427
427
  * @license lucide-react v0.468.0 - ISC
428
428
  *
429
429
  * This source code is licensed under the ISC license.
430
430
  * See the LICENSE file in the root directory of this source tree.
431
- */const Jv=S("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/**
431
+ */const Zv=R("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
432
432
  * @license lucide-react v0.468.0 - ISC
433
433
  *
434
434
  * This source code is licensed under the ISC license.
435
435
  * See the LICENSE file in the root directory of this source tree.
436
- */const du=S("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
436
+ */const Jv=R("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
437
437
  * @license lucide-react v0.468.0 - ISC
438
438
  *
439
439
  * This source code is licensed under the ISC license.
440
440
  * See the LICENSE file in the root directory of this source tree.
441
- */const Qv=S("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
441
+ */const Qv=R("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
442
442
  * @license lucide-react v0.468.0 - ISC
443
443
  *
444
444
  * This source code is licensed under the ISC license.
445
445
  * See the LICENSE file in the root directory of this source tree.
446
- */const ey=S("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
446
+ */const ey=R("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
447
447
  * @license lucide-react v0.468.0 - ISC
448
448
  *
449
449
  * This source code is licensed under the ISC license.
450
450
  * See the LICENSE file in the root directory of this source tree.
451
- */const ty=S("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
451
+ */const ty=R("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
452
452
  * @license lucide-react v0.468.0 - ISC
453
453
  *
454
454
  * This source code is licensed under the ISC license.
455
455
  * See the LICENSE file in the root directory of this source tree.
456
- */const ny=S("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
456
+ */const ny=R("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
457
457
  * @license lucide-react v0.468.0 - ISC
458
458
  *
459
459
  * This source code is licensed under the ISC license.
460
460
  * See the LICENSE file in the root directory of this source tree.
461
- */const ry=S("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
461
+ */const fu=R("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
462
462
  * @license lucide-react v0.468.0 - ISC
463
463
  *
464
464
  * This source code is licensed under the ISC license.
465
465
  * See the LICENSE file in the root directory of this source tree.
466
- */const oy=S("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
466
+ */const ry=R("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
467
467
  * @license lucide-react v0.468.0 - ISC
468
468
  *
469
469
  * This source code is licensed under the ISC license.
470
470
  * See the LICENSE file in the root directory of this source tree.
471
- */const fu=S("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
471
+ */const oy=R("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
472
472
  * @license lucide-react v0.468.0 - ISC
473
473
  *
474
474
  * This source code is licensed under the ISC license.
475
475
  * See the LICENSE file in the root directory of this source tree.
476
- */const sy=S("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
476
+ */const sy=R("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
477
477
  * @license lucide-react v0.468.0 - ISC
478
478
  *
479
479
  * This source code is licensed under the ISC license.
480
480
  * See the LICENSE file in the root directory of this source tree.
481
- */const ay=S("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
481
+ */const ay=R("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
482
482
  * @license lucide-react v0.468.0 - ISC
483
483
  *
484
484
  * This source code is licensed under the ISC license.
485
485
  * See the LICENSE file in the root directory of this source tree.
486
- */const iy=S("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
486
+ */const iy=R("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
487
487
  * @license lucide-react v0.468.0 - ISC
488
488
  *
489
489
  * This source code is licensed under the ISC license.
490
490
  * See the LICENSE file in the root directory of this source tree.
491
- */const cy=S("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
491
+ */const pu=R("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
492
492
  * @license lucide-react v0.468.0 - ISC
493
493
  *
494
494
  * This source code is licensed under the ISC license.
495
495
  * See the LICENSE file in the root directory of this source tree.
496
- */const ly=S("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
496
+ */const cy=R("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);/**
497
497
  * @license lucide-react v0.468.0 - ISC
498
498
  *
499
499
  * This source code is licensed under the ISC license.
500
500
  * See the LICENSE file in the root directory of this source tree.
501
- */const pu=S("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
501
+ */const ly=R("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
502
502
  * @license lucide-react v0.468.0 - ISC
503
503
  *
504
504
  * This source code is licensed under the ISC license.
505
505
  * See the LICENSE file in the root directory of this source tree.
506
- */const uy=S("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);/**
506
+ */const uy=R("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
507
507
  * @license lucide-react v0.468.0 - ISC
508
508
  *
509
509
  * This source code is licensed under the ISC license.
510
510
  * See the LICENSE file in the root directory of this source tree.
511
- */const dy=S("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
511
+ */const dy=R("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
512
512
  * @license lucide-react v0.468.0 - ISC
513
513
  *
514
514
  * This source code is licensed under the ISC license.
515
515
  * See the LICENSE file in the root directory of this source tree.
516
- */const fy=S("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
516
+ */const hu=R("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
517
517
  * @license lucide-react v0.468.0 - ISC
518
518
  *
519
519
  * This source code is licensed under the ISC license.
520
520
  * See the LICENSE file in the root directory of this source tree.
521
- */const py=S("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
521
+ */const fy=R("TriangleAlert",[["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"}]]);/**
522
522
  * @license lucide-react v0.468.0 - ISC
523
523
  *
524
524
  * This source code is licensed under the ISC license.
525
525
  * See the LICENSE file in the root directory of this source tree.
526
- */const hy=S("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
526
+ */const py=R("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
527
527
  * @license lucide-react v0.468.0 - ISC
528
528
  *
529
529
  * This source code is licensed under the ISC license.
530
530
  * See the LICENSE file in the root directory of this source tree.
531
- */const hu=S("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
531
+ */const hy=R("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
532
532
  * @license lucide-react v0.468.0 - ISC
533
533
  *
534
534
  * This source code is licensed under the ISC license.
535
535
  * See the LICENSE file in the root directory of this source tree.
536
- */const my=S("TriangleAlert",[["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"}]]);/**
536
+ */const my=R("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
537
537
  * @license lucide-react v0.468.0 - ISC
538
538
  *
539
539
  * This source code is licensed under the ISC license.
540
540
  * See the LICENSE file in the root directory of this source tree.
541
- */const gy=S("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
541
+ */const gy=R("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
542
542
  * @license lucide-react v0.468.0 - ISC
543
543
  *
544
544
  * This source code is licensed under the ISC license.
545
545
  * See the LICENSE file in the root directory of this source tree.
546
- */const vy=S("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
546
+ */const vy=R("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"}]]);/**
547
547
  * @license lucide-react v0.468.0 - ISC
548
548
  *
549
549
  * This source code is licensed under the ISC license.
550
550
  * See the LICENSE file in the root directory of this source tree.
551
- */const yy=S("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
551
+ */const yy=R("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
552
552
  * @license lucide-react v0.468.0 - ISC
553
553
  *
554
554
  * This source code is licensed under the ISC license.
555
555
  * See the LICENSE file in the root directory of this source tree.
556
- */const xy=S("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
556
+ */const xy=R("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
557
557
  * @license lucide-react v0.468.0 - ISC
558
558
  *
559
559
  * This source code is licensed under the ISC license.
560
560
  * See the LICENSE file in the root directory of this source tree.
561
- */const by=S("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"}]]);/**
561
+ */const by=R("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
562
562
  * @license lucide-react v0.468.0 - ISC
563
563
  *
564
564
  * This source code is licensed under the ISC license.
565
565
  * See the LICENSE file in the root directory of this source tree.
566
- */const wy=S("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
566
+ */const wy=R("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
567
567
  * @license lucide-react v0.468.0 - ISC
568
568
  *
569
569
  * This source code is licensed under the ISC license.
570
570
  * See the LICENSE file in the root directory of this source tree.
571
- */const Cy=S("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
571
+ */const Cy=R("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
572
572
  * @license lucide-react v0.468.0 - ISC
573
573
  *
574
574
  * This source code is licensed under the ISC license.
575
575
  * See the LICENSE file in the root directory of this source tree.
576
- */const ky=S("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
577
- * @license lucide-react v0.468.0 - ISC
578
- *
579
- * This source code is licensed under the ISC license.
580
- * See the LICENSE file in the root directory of this source tree.
581
- */const Ey=S("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
582
- * @license lucide-react v0.468.0 - ISC
583
- *
584
- * This source code is licensed under the ISC license.
585
- * See the LICENSE file in the root directory of this source tree.
586
- */const Sy=S("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
587
- * @license lucide-react v0.468.0 - ISC
588
- *
589
- * This source code is licensed under the ISC license.
590
- * See the LICENSE file in the root directory of this source tree.
591
- */const Ry=S("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"}]]);var Dt=kc();const mu=ns(Dt);function Es(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Es(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ss(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Es(e))&&(r&&(r+=" "),r+=t);return r}const Co=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ko=Ss,Pr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ko(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],p=s==null?void 0:s[u];if(f===null)return null;const h=Co(f)||Co(p);return o[u][h]}),c=n&&Object.entries(n).reduce((u,f)=>{let[p,h]=f;return h===void 0||(u[p]=h),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:h,...g}=f;return Object.entries(g).every(x=>{let[m,v]=x;return Array.isArray(v)?v.includes({...s,...c}[m]):{...s,...c}[m]===v})?[...u,p,h]:u},[]);return ko(e,a,d,n==null?void 0:n.class,n==null?void 0:n.className)};function Eo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Eo(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Eo(e[o],null)}}}}function ne(...e){return l.useCallback(vn(...e),e)}function Xe(e){const t=gu(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,c=l.Children.toArray(s),d=c.find(yu);if(d){const u=d.props.children,f=c.map(p=>p===d?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...a,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return i.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Rs=Xe("Slot");function gu(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=bu(o),c=xu(s,o.props);return o.type!==l.Fragment&&(c.ref=r?vn(r,a):a),l.cloneElement(o,c)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ms=Symbol("radix.slottable");function vu(e){const t=({children:n})=>i.jsx(i.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ms,t}function yu(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ms}function xu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function bu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],B=wu.reduce((e,t)=>{const n=Xe(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...c}=o,d=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ts(e,t){e&&Dt.flushSync(()=>e.dispatchEvent(t))}var Ps=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"}),Cu="VisuallyHidden",js=l.forwardRef((e,t)=>i.jsx(B.span,{...e,ref:t,style:{...Ps,...e.style}}));js.displayName=Cu;var ku=js;function Eu(e,t){const n=l.createContext(t),r=s=>{const{children:a,...c}=s,d=l.useMemo(()=>c,Object.values(c));return i.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ie(e,t=[]){let n=[];function r(s,a){const c=l.createContext(a),d=n.length;n=[...n,a];const u=p=>{var b;const{scope:h,children:g,...x}=p,m=((b=h==null?void 0:h[e])==null?void 0:b[d])||c,v=l.useMemo(()=>x,Object.values(x));return i.jsx(m.Provider,{value:v,children:g})};u.displayName=s+"Provider";function f(p,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[d])||c,x=l.useContext(g);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,Su(o,...t)]}function Su(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const p=d(s)[`__scope${u}`];return{...c,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function jr(e){const t=e+"CollectionProvider",[n,r]=Ie(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:v,children:b}=m,C=We.useRef(null),w=We.useRef(new Map).current;return i.jsx(o,{scope:v,itemMap:w,collectionRef:C,children:b})};a.displayName=t;const c=e+"CollectionSlot",d=Xe(c),u=We.forwardRef((m,v)=>{const{scope:b,children:C}=m,w=s(c,b),k=ne(v,w.collectionRef);return i.jsx(d,{ref:k,children:C})});u.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=Xe(f),g=We.forwardRef((m,v)=>{const{scope:b,children:C,...w}=m,k=We.useRef(null),R=ne(v,k),T=s(f,b);return We.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>void T.itemMap.delete(k))),i.jsx(h,{[p]:"",ref:R,children:C})});g.displayName=f;function x(m){const v=s(e+"CollectionConsumer",m);return We.useCallback(()=>{const C=v.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((T,E)=>w.indexOf(T.ref.current)-w.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},x,r]}function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Ru=rs[" useInsertionEffect ".trim().toString()]||ie;function Ze({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=Mu({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,r])}const u=l.useCallback(f=>{var p;if(c){const h=Tu(f)?f(e):f;h!==e&&((p=a.current)==null||p.call(a,h))}else s(f)},[c,e,s,a]);return[d,u]}function Mu({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return Ru(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Tu(e){return typeof e=="function"}function Pu(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Me=e=>{const{present:t,children:n}=e,r=ju(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=ne(r.ref,Au(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Me.displayName="Presence";function ju(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Pu(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=qt(r.current);s.current=c==="mounted"?u:"none"},[c]),ie(()=>{const u=r.current,f=o.current;if(f!==e){const h=s.current,g=qt(u);e?d("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=g=>{const m=qt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(s.current=qt(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function qt(e){return(e==null?void 0:e.animationName)||"none"}function Au(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Nu=rs[" useId ".trim().toString()]||(()=>{}),_u=0;function ke(e){const[t,n]=l.useState(Nu());return ie(()=>{n(r=>r??String(_u++))},[e]),e||(t?`radix-${t}`:"")}var Iu=l.createContext(void 0);function yn(e){const t=l.useContext(Iu);return e||t||"ltr"}function Ee(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ou(e,t=globalThis==null?void 0:globalThis.document){const n=Ee(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Lu="DismissableLayer",sr="dismissableLayer.update",Du="dismissableLayer.pointerDownOutside",Fu="dismissableLayer.focusOutside",So,As=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ft=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=l.useContext(As),[f,p]=l.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),x=ne(t,E=>p(E)),m=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(v),C=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=C>=b,R=Hu(E=>{const A=E.target,D=[...u.branches].some(F=>F.contains(A));!k||D||(o==null||o(E),a==null||a(E),E.defaultPrevented||c==null||c())},h),T=zu(E=>{const A=E.target;[...u.branches].some(F=>F.contains(A))||(s==null||s(E),a==null||a(E),E.defaultPrevented||c==null||c())},h);return Ou(E=>{C===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},h),l.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(So=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ro(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=So)}},[f,h,n,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ro())},[f,u]),l.useEffect(()=>{const E=()=>g({});return document.addEventListener(sr,E),()=>document.removeEventListener(sr,E)},[]),i.jsx(B.div,{...d,ref:x,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,T.onFocusCapture),onBlurCapture:N(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,R.onPointerDownCapture)})});Ft.displayName=Lu;var $u="DismissableLayerBranch",Uu=l.forwardRef((e,t)=>{const n=l.useContext(As),r=l.useRef(null),o=ne(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),i.jsx(B.div,{...e,ref:o})});Uu.displayName=$u;function Hu(e,t=globalThis==null?void 0:globalThis.document){const n=Ee(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Ns(Du,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function zu(e,t=globalThis==null?void 0:globalThis.document){const n=Ee(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ns(Fu,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ro(){const e=new CustomEvent(sr);document.dispatchEvent(e)}function Ns(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ts(o,s):o.dispatchEvent(s)}var Bn="focusScope.autoFocusOnMount",Wn="focusScope.autoFocusOnUnmount",Mo={bubbles:!1,cancelable:!0},Bu="FocusScope",xn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=l.useState(null),u=Ee(o),f=Ee(s),p=l.useRef(null),h=ne(t,m=>d(m)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let m=function(w){if(g.paused||!c)return;const k=w.target;c.contains(k)?p.current=k:Ve(p.current,{select:!0})},v=function(w){if(g.paused||!c)return;const k=w.relatedTarget;k!==null&&(c.contains(k)||Ve(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const R of w)R.removedNodes.length>0&&Ve(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const C=new MutationObserver(b);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),C.disconnect()}}},[r,c,g.paused]),l.useEffect(()=>{if(c){Po.add(g);const m=document.activeElement;if(!c.contains(m)){const b=new CustomEvent(Bn,Mo);c.addEventListener(Bn,u),c.dispatchEvent(b),b.defaultPrevented||(Wu(Yu(_s(c)),{select:!0}),document.activeElement===m&&Ve(c))}return()=>{c.removeEventListener(Bn,u),setTimeout(()=>{const b=new CustomEvent(Wn,Mo);c.addEventListener(Wn,f),c.dispatchEvent(b),b.defaultPrevented||Ve(m??document.body,{select:!0}),c.removeEventListener(Wn,f),Po.remove(g)},0)}}},[c,u,f,g]);const x=l.useCallback(m=>{if(!n&&!r||g.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(v&&b){const C=m.currentTarget,[w,k]=Vu(C);w&&k?!m.shiftKey&&b===k?(m.preventDefault(),n&&Ve(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),n&&Ve(k,{select:!0})):b===C&&m.preventDefault()}},[n,r,g.paused]);return i.jsx(B.div,{tabIndex:-1,...a,ref:h,onKeyDown:x})});xn.displayName=Bu;function Wu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ve(r,{select:t}),document.activeElement!==n)return}function Vu(e){const t=_s(e),n=To(t,e),r=To(t.reverse(),e);return[n,r]}function _s(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function To(e,t){for(const n of e)if(!Gu(n,{upTo:t}))return n}function Gu(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function qu(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&qu(e)&&t&&e.select()}}var Po=Ku();function Ku(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jo(e,t),e.unshift(t)},remove(t){var n;e=jo(e,t),(n=e[0])==null||n.resume()}}}function jo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Yu(e){return e.filter(t=>t.tagName!=="A")}var Xu="Portal",$t=l.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=l.useState(!1);ie(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?mu.createPortal(i.jsx(B.div,{...r,ref:t}),a):null});$t.displayName=Xu;var Vn=0;function Ar(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ao()),document.body.insertAdjacentElement("beforeend",e[1]??Ao()),Vn++,()=>{Vn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vn--}},[])}function Ao(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var je=function(){return je=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},je.apply(this,arguments)};function Is(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function My(e,t,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function c(f){try{u(r.next(f))}catch(p){a(p)}}function d(f){try{u(r.throw(f))}catch(p){a(p)}}function u(f){f.done?s(f.value):o(f.value).then(c,d)}u((r=r.apply(e,t||[])).next())})}function Zu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var tn="right-scroll-bar-position",nn="width-before-scroll-bar",Ju="with-scroll-bars-hidden",Qu="--removed-body-scroll-bar-size";function Gn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ed(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var td=typeof window<"u"?l.useLayoutEffect:l.useEffect,No=new WeakMap;function nd(e,t){var n=ed(null,function(r){return e.forEach(function(o){return Gn(o,r)})});return td(function(){var r=No.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Gn(c,null)}),s.forEach(function(c){o.has(c)||Gn(c,a)})}No.set(n,e)},[e]),n}function rd(e){return e}function od(e,t){t===void 0&&(t=rd);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function sd(e){e===void 0&&(e={});var t=od(null);return t.options=je({async:!0,ssr:!1},e),t}var Os=function(e){var t=e.sideCar,n=Is(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,je({},n))};Os.isSideCarExport=!0;function ad(e,t){return e.useMedium(t),Os}var Ls=sd(),qn=function(){},bn=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:qn,onWheelCapture:qn,onTouchMoveCapture:qn}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,x=e.noIsolation,m=e.inert,v=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,w=e.gapMode,k=Is(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,T=nd([n,t]),E=je(je({},k),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:Ls,removeScrollBar:u,shards:p,noRelative:g,noIsolation:x,inert:m,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:w}),a?l.cloneElement(l.Children.only(c),je(je({},E),{ref:T})):l.createElement(C,je({},E,{className:d,ref:T}),c))});bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bn.classNames={fullWidth:nn,zeroRight:tn};var id=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=id();return t&&e.setAttribute("nonce",t),e}function ld(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ud(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=cd())&&(ld(t,n),ud(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fd=function(){var e=dd();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ds=function(){var e=fd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},pd={left:0,top:0,right:0,gap:0},Kn=function(e){return parseInt(e||"",10)||0},hd=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Kn(n),Kn(r),Kn(o)]},md=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pd;var t=hd(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},gd=Ds(),ct="data-scroll-locked",vd=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
576
+ */const Ey=R("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"}]]);var Dt=Ec();const mu=ns(Dt);function ks(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ks(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ss(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ks(e))&&(r&&(r+=" "),r+=t);return r}const Co=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Eo=Ss,Pr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Eo(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],p=s==null?void 0:s[u];if(f===null)return null;const h=Co(f)||Co(p);return o[u][h]}),c=n&&Object.entries(n).reduce((u,f)=>{let[p,h]=f;return h===void 0||(u[p]=h),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:h,...g}=f;return Object.entries(g).every(x=>{let[m,v]=x;return Array.isArray(v)?v.includes({...s,...c}[m]):{...s,...c}[m]===v})?[...u,p,h]:u},[]);return Eo(e,a,d,n==null?void 0:n.class,n==null?void 0:n.className)};function ko(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ko(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ko(e[o],null)}}}}function ne(...e){return l.useCallback(vn(...e),e)}function Xe(e){const t=gu(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,c=l.Children.toArray(s),d=c.find(yu);if(d){const u=d.props.children,f=c.map(p=>p===d?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...a,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return i.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Rs=Xe("Slot");function gu(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=bu(o),c=xu(s,o.props);return o.type!==l.Fragment&&(c.ref=r?vn(r,a):a),l.cloneElement(o,c)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ts=Symbol("radix.slottable");function vu(e){const t=({children:n})=>i.jsx(i.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ts,t}function yu(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ts}function xu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function bu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=wu.reduce((e,t)=>{const n=Xe(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...c}=o,d=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ms(e,t){e&&Dt.flushSync(()=>e.dispatchEvent(t))}var Ps=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"}),Cu="VisuallyHidden",js=l.forwardRef((e,t)=>i.jsx(z.span,{...e,ref:t,style:{...Ps,...e.style}}));js.displayName=Cu;var Eu=js;function ku(e,t){const n=l.createContext(t),r=s=>{const{children:a,...c}=s,d=l.useMemo(()=>c,Object.values(c));return i.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ie(e,t=[]){let n=[];function r(s,a){const c=l.createContext(a),d=n.length;n=[...n,a];const u=p=>{var b;const{scope:h,children:g,...x}=p,m=((b=h==null?void 0:h[e])==null?void 0:b[d])||c,v=l.useMemo(()=>x,Object.values(x));return i.jsx(m.Provider,{value:v,children:g})};u.displayName=s+"Provider";function f(p,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[d])||c,x=l.useContext(g);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,Su(o,...t)]}function Su(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const p=d(s)[`__scope${u}`];return{...c,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function jr(e){const t=e+"CollectionProvider",[n,r]=Ie(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:v,children:b}=m,C=We.useRef(null),w=We.useRef(new Map).current;return i.jsx(o,{scope:v,itemMap:w,collectionRef:C,children:b})};a.displayName=t;const c=e+"CollectionSlot",d=Xe(c),u=We.forwardRef((m,v)=>{const{scope:b,children:C}=m,w=s(c,b),E=ne(v,w.collectionRef);return i.jsx(d,{ref:E,children:C})});u.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=Xe(f),g=We.forwardRef((m,v)=>{const{scope:b,children:C,...w}=m,E=We.useRef(null),S=ne(v,E),M=s(f,b);return We.useEffect(()=>(M.itemMap.set(E,{ref:E,...w}),()=>void M.itemMap.delete(E))),i.jsx(h,{[p]:"",ref:S,children:C})});g.displayName=f;function x(m){const v=s(e+"CollectionConsumer",m);return We.useCallback(()=>{const C=v.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((M,k)=>w.indexOf(M.ref.current)-w.indexOf(k.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},x,r]}function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Ru=rs[" useInsertionEffect ".trim().toString()]||ie;function Ze({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=Tu({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,r])}const u=l.useCallback(f=>{var p;if(c){const h=Mu(f)?f(e):f;h!==e&&((p=a.current)==null||p.call(a,h))}else s(f)},[c,e,s,a]);return[d,u]}function Tu({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return Ru(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Mu(e){return typeof e=="function"}function Pu(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Te=e=>{const{present:t,children:n}=e,r=ju(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=ne(r.ref,Au(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Te.displayName="Presence";function ju(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Pu(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=qt(r.current);s.current=c==="mounted"?u:"none"},[c]),ie(()=>{const u=r.current,f=o.current;if(f!==e){const h=s.current,g=qt(u);e?d("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=g=>{const m=qt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(s.current=qt(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function qt(e){return(e==null?void 0:e.animationName)||"none"}function Au(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Nu=rs[" useId ".trim().toString()]||(()=>{}),_u=0;function Ee(e){const[t,n]=l.useState(Nu());return ie(()=>{n(r=>r??String(_u++))},[e]),e||(t?`radix-${t}`:"")}var Iu=l.createContext(void 0);function yn(e){const t=l.useContext(Iu);return e||t||"ltr"}function ke(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ou(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Lu="DismissableLayer",sr="dismissableLayer.update",Du="dismissableLayer.pointerDownOutside",Fu="dismissableLayer.focusOutside",So,As=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ft=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=l.useContext(As),[f,p]=l.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),x=ne(t,k=>p(k)),m=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(v),C=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=C>=b,S=Hu(k=>{const A=k.target,D=[...u.branches].some(F=>F.contains(A));!E||D||(o==null||o(k),a==null||a(k),k.defaultPrevented||c==null||c())},h),M=Bu(k=>{const A=k.target;[...u.branches].some(F=>F.contains(A))||(s==null||s(k),a==null||a(k),k.defaultPrevented||c==null||c())},h);return Ou(k=>{C===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&c&&(k.preventDefault(),c()))},h),l.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(So=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ro(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=So)}},[f,h,n,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ro())},[f,u]),l.useEffect(()=>{const k=()=>g({});return document.addEventListener(sr,k),()=>document.removeEventListener(sr,k)},[]),i.jsx(z.div,{...d,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,M.onFocusCapture),onBlurCapture:N(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,S.onPointerDownCapture)})});Ft.displayName=Lu;var $u="DismissableLayerBranch",Uu=l.forwardRef((e,t)=>{const n=l.useContext(As),r=l.useRef(null),o=ne(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),i.jsx(z.div,{...e,ref:o})});Uu.displayName=$u;function Hu(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Ns(Du,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Bu(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ns(Fu,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ro(){const e=new CustomEvent(sr);document.dispatchEvent(e)}function Ns(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ms(o,s):o.dispatchEvent(s)}var zn="focusScope.autoFocusOnMount",Wn="focusScope.autoFocusOnUnmount",To={bubbles:!1,cancelable:!0},zu="FocusScope",xn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=l.useState(null),u=ke(o),f=ke(s),p=l.useRef(null),h=ne(t,m=>d(m)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let m=function(w){if(g.paused||!c)return;const E=w.target;c.contains(E)?p.current=E:Ve(p.current,{select:!0})},v=function(w){if(g.paused||!c)return;const E=w.relatedTarget;E!==null&&(c.contains(E)||Ve(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ve(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const C=new MutationObserver(b);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),C.disconnect()}}},[r,c,g.paused]),l.useEffect(()=>{if(c){Po.add(g);const m=document.activeElement;if(!c.contains(m)){const b=new CustomEvent(zn,To);c.addEventListener(zn,u),c.dispatchEvent(b),b.defaultPrevented||(Wu(Yu(_s(c)),{select:!0}),document.activeElement===m&&Ve(c))}return()=>{c.removeEventListener(zn,u),setTimeout(()=>{const b=new CustomEvent(Wn,To);c.addEventListener(Wn,f),c.dispatchEvent(b),b.defaultPrevented||Ve(m??document.body,{select:!0}),c.removeEventListener(Wn,f),Po.remove(g)},0)}}},[c,u,f,g]);const x=l.useCallback(m=>{if(!n&&!r||g.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(v&&b){const C=m.currentTarget,[w,E]=Vu(C);w&&E?!m.shiftKey&&b===E?(m.preventDefault(),n&&Ve(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),n&&Ve(E,{select:!0})):b===C&&m.preventDefault()}},[n,r,g.paused]);return i.jsx(z.div,{tabIndex:-1,...a,ref:h,onKeyDown:x})});xn.displayName=zu;function Wu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ve(r,{select:t}),document.activeElement!==n)return}function Vu(e){const t=_s(e),n=Mo(t,e),r=Mo(t.reverse(),e);return[n,r]}function _s(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Mo(e,t){for(const n of e)if(!Gu(n,{upTo:t}))return n}function Gu(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function qu(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&qu(e)&&t&&e.select()}}var Po=Ku();function Ku(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jo(e,t),e.unshift(t)},remove(t){var n;e=jo(e,t),(n=e[0])==null||n.resume()}}}function jo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Yu(e){return e.filter(t=>t.tagName!=="A")}var Xu="Portal",$t=l.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=l.useState(!1);ie(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?mu.createPortal(i.jsx(z.div,{...r,ref:t}),a):null});$t.displayName=Xu;var Vn=0;function Ar(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ao()),document.body.insertAdjacentElement("beforeend",e[1]??Ao()),Vn++,()=>{Vn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vn--}},[])}function Ao(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var je=function(){return je=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},je.apply(this,arguments)};function Is(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ky(e,t,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function c(f){try{u(r.next(f))}catch(p){a(p)}}function d(f){try{u(r.throw(f))}catch(p){a(p)}}function u(f){f.done?s(f.value):o(f.value).then(c,d)}u((r=r.apply(e,t||[])).next())})}function Zu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var tn="right-scroll-bar-position",nn="width-before-scroll-bar",Ju="with-scroll-bars-hidden",Qu="--removed-body-scroll-bar-size";function Gn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ed(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var td=typeof window<"u"?l.useLayoutEffect:l.useEffect,No=new WeakMap;function nd(e,t){var n=ed(null,function(r){return e.forEach(function(o){return Gn(o,r)})});return td(function(){var r=No.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Gn(c,null)}),s.forEach(function(c){o.has(c)||Gn(c,a)})}No.set(n,e)},[e]),n}function rd(e){return e}function od(e,t){t===void 0&&(t=rd);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function sd(e){e===void 0&&(e={});var t=od(null);return t.options=je({async:!0,ssr:!1},e),t}var Os=function(e){var t=e.sideCar,n=Is(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,je({},n))};Os.isSideCarExport=!0;function ad(e,t){return e.useMedium(t),Os}var Ls=sd(),qn=function(){},bn=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:qn,onWheelCapture:qn,onTouchMoveCapture:qn}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,x=e.noIsolation,m=e.inert,v=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,w=e.gapMode,E=Is(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,M=nd([n,t]),k=je(je({},E),o);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:Ls,removeScrollBar:u,shards:p,noRelative:g,noIsolation:x,inert:m,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:w}),a?l.cloneElement(l.Children.only(c),je(je({},k),{ref:M})):l.createElement(C,je({},k,{className:d,ref:M}),c))});bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bn.classNames={fullWidth:nn,zeroRight:tn};var id=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=id();return t&&e.setAttribute("nonce",t),e}function ld(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ud(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=cd())&&(ld(t,n),ud(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fd=function(){var e=dd();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ds=function(){var e=fd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},pd={left:0,top:0,right:0,gap:0},Kn=function(e){return parseInt(e||"",10)||0},hd=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Kn(n),Kn(r),Kn(o)]},md=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pd;var t=hd(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},gd=Ds(),ct="data-scroll-locked",vd=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
592
577
  .`.concat(Ju,` {
593
578
  overflow: hidden `).concat(r,`;
594
579
  padding-right: `).concat(c,"px ").concat(r,`;
@@ -625,14 +610,14 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
625
610
  body[`).concat(ct,`] {
626
611
  `).concat(Qu,": ").concat(c,`px;
627
612
  }
628
- `)},_o=function(){var e=parseInt(document.body.getAttribute(ct)||"0",10);return isFinite(e)?e:0},yd=function(){l.useEffect(function(){return document.body.setAttribute(ct,(_o()+1).toString()),function(){var e=_o()-1;e<=0?document.body.removeAttribute(ct):document.body.setAttribute(ct,e.toString())}},[])},xd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;yd();var s=l.useMemo(function(){return md(o)},[o]);return l.createElement(gd,{styles:vd(s,!t,o,n?"":"!important")})},ar=!1;if(typeof window<"u")try{var Kt=Object.defineProperty({},"passive",{get:function(){return ar=!0,!0}});window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{ar=!1}var ot=ar?{passive:!1}:!1,bd=function(e){return e.tagName==="TEXTAREA"},Fs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!bd(e)&&n[t]==="visible")},wd=function(e){return Fs(e,"overflowY")},Cd=function(e){return Fs(e,"overflowX")},Io=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=$s(e,r);if(o){var s=Us(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},kd=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ed=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$s=function(e,t){return e==="v"?wd(t):Cd(t)},Us=function(e,t){return e==="v"?kd(t):Ed(t)},Sd=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rd=function(e,t,n,r,o){var s=Sd(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,f=a>0,p=0,h=0;do{if(!c)break;var g=Us(e,c),x=g[0],m=g[1],v=g[2],b=m-v-s*x;(x||b)&&$s(e,c)&&(p+=b,h+=x);var C=c.parentNode;c=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(f&&Math.abs(p)<1||!f&&Math.abs(h)<1)&&(u=!0),u},Yt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Oo=function(e){return[e.deltaX,e.deltaY]},Lo=function(e){return e&&"current"in e?e.current:e},Md=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Td=function(e){return`
613
+ `)},_o=function(){var e=parseInt(document.body.getAttribute(ct)||"0",10);return isFinite(e)?e:0},yd=function(){l.useEffect(function(){return document.body.setAttribute(ct,(_o()+1).toString()),function(){var e=_o()-1;e<=0?document.body.removeAttribute(ct):document.body.setAttribute(ct,e.toString())}},[])},xd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;yd();var s=l.useMemo(function(){return md(o)},[o]);return l.createElement(gd,{styles:vd(s,!t,o,n?"":"!important")})},ar=!1;if(typeof window<"u")try{var Kt=Object.defineProperty({},"passive",{get:function(){return ar=!0,!0}});window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{ar=!1}var ot=ar?{passive:!1}:!1,bd=function(e){return e.tagName==="TEXTAREA"},Fs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!bd(e)&&n[t]==="visible")},wd=function(e){return Fs(e,"overflowY")},Cd=function(e){return Fs(e,"overflowX")},Io=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=$s(e,r);if(o){var s=Us(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ed=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},kd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$s=function(e,t){return e==="v"?wd(t):Cd(t)},Us=function(e,t){return e==="v"?Ed(t):kd(t)},Sd=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rd=function(e,t,n,r,o){var s=Sd(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,f=a>0,p=0,h=0;do{if(!c)break;var g=Us(e,c),x=g[0],m=g[1],v=g[2],b=m-v-s*x;(x||b)&&$s(e,c)&&(p+=b,h+=x);var C=c.parentNode;c=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(f&&Math.abs(p)<1||!f&&Math.abs(h)<1)&&(u=!0),u},Yt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Oo=function(e){return[e.deltaX,e.deltaY]},Lo=function(e){return e&&"current"in e?e.current:e},Td=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Md=function(e){return`
629
614
  .block-interactivity-`.concat(e,` {pointer-events: none;}
630
615
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
631
- `)},Pd=0,st=[];function jd(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Pd++)[0],s=l.useState(Ds)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Zu([e.lockRef.current],(e.shards||[]).map(Lo),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=l.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var b=Yt(m),C=n.current,w="deltaX"in m?m.deltaX:C[0]-b[0],k="deltaY"in m?m.deltaY:C[1]-b[1],R,T=m.target,E=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in m&&E==="h"&&T.type==="range")return!1;var A=window.getSelection(),D=A&&A.anchorNode,F=D?D===T||D.contains(T):!1;if(F)return!1;var H=Io(E,T);if(!H)return!0;if(H?R=E:(R=E==="v"?"h":"v",H=Io(E,T)),!H)return!1;if(!r.current&&"changedTouches"in m&&(w||k)&&(r.current=R),!R)return!0;var _=r.current||R;return Rd(_,v,m,_==="h"?w:k)},[]),d=l.useCallback(function(m){var v=m;if(!(!st.length||st[st.length-1]!==s)){var b="deltaY"in v?Oo(v):Yt(v),C=t.current.filter(function(R){return R.name===v.type&&(R.target===v.target||v.target===R.shadowParent)&&Md(R.delta,b)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var w=(a.current.shards||[]).map(Lo).filter(Boolean).filter(function(R){return R.contains(v.target)}),k=w.length>0?c(v,w[0]):!a.current.noIsolation;k&&v.cancelable&&v.preventDefault()}}},[]),u=l.useCallback(function(m,v,b,C){var w={name:m,delta:v,target:b,should:C,shadowParent:Ad(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),f=l.useCallback(function(m){n.current=Yt(m),r.current=void 0},[]),p=l.useCallback(function(m){u(m.type,Oo(m),m.target,c(m,e.lockRef.current))},[]),h=l.useCallback(function(m){u(m.type,Yt(m),m.target,c(m,e.lockRef.current))},[]);l.useEffect(function(){return st.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",d,ot),document.addEventListener("touchmove",d,ot),document.addEventListener("touchstart",f,ot),function(){st=st.filter(function(m){return m!==s}),document.removeEventListener("wheel",d,ot),document.removeEventListener("touchmove",d,ot),document.removeEventListener("touchstart",f,ot)}},[]);var g=e.removeScrollBar,x=e.inert;return l.createElement(l.Fragment,null,x?l.createElement(s,{styles:Td(o)}):null,g?l.createElement(xd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ad(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Nd=ad(Ls,jd);var wn=l.forwardRef(function(e,t){return l.createElement(bn,je({},e,{ref:t,sideCar:Nd}))});wn.classNames=bn.classNames;var _d=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},at=new WeakMap,Xt=new WeakMap,Zt={},Yn=0,Hs=function(e){return e&&(e.host||Hs(e.parentNode))},Id=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hs(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Od=function(e,t,n,r){var o=Id(t,Array.isArray(e)?e:[e]);Zt[n]||(Zt[n]=new WeakMap);var s=Zt[n],a=[],c=new Set,d=new Set(o),u=function(p){!p||c.has(p)||(c.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(h){if(c.has(h))f(h);else try{var g=h.getAttribute(r),x=g!==null&&g!=="false",m=(at.get(h)||0)+1,v=(s.get(h)||0)+1;at.set(h,m),s.set(h,v),a.push(h),m===1&&x&&Xt.set(h,!0),v===1&&h.setAttribute(n,"true"),x||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return f(t),c.clear(),Yn++,function(){a.forEach(function(p){var h=at.get(p)-1,g=s.get(p)-1;at.set(p,h),s.set(p,g),h||(Xt.has(p)||p.removeAttribute(r),Xt.delete(p)),g||p.removeAttribute(n)}),Yn--,Yn||(at=new WeakMap,at=new WeakMap,Xt=new WeakMap,Zt={})}},Nr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=_d(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Od(r,o,n,"aria-hidden")):function(){return null}},Cn="Dialog",[zs]=Ie(Cn),[Ld,Te]=zs(Cn),Bs=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=l.useRef(null),d=l.useRef(null),[u,f]=Ze({prop:r,defaultProp:o??!1,onChange:s,caller:Cn});return i.jsx(Ld,{scope:t,triggerRef:c,contentRef:d,contentId:ke(),titleId:ke(),descriptionId:ke(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:a,children:n})};Bs.displayName=Cn;var Ws="DialogTrigger",Vs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Ws,n),s=ne(t,o.triggerRef);return i.jsx(B.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Or(o.open),...r,ref:s,onClick:N(e.onClick,o.onOpenToggle)})});Vs.displayName=Ws;var _r="DialogPortal",[Dd,Gs]=zs(_r,{forceMount:void 0}),qs=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Te(_r,t);return i.jsx(Dd,{scope:t,forceMount:n,children:l.Children.map(r,a=>i.jsx(Me,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:a})}))})};qs.displayName=_r;var sn="DialogOverlay",Ks=l.forwardRef((e,t)=>{const n=Gs(sn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(sn,e.__scopeDialog);return s.modal?i.jsx(Me,{present:r||s.open,children:i.jsx($d,{...o,ref:t})}):null});Ks.displayName=sn;var Fd=Xe("DialogOverlay.RemoveScroll"),$d=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(sn,n);return i.jsx(wn,{as:Fd,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(B.div,{"data-state":Or(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Je="DialogContent",Ys=l.forwardRef((e,t)=>{const n=Gs(Je,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(Je,e.__scopeDialog);return i.jsx(Me,{present:r||s.open,children:s.modal?i.jsx(Ud,{...o,ref:t}):i.jsx(Hd,{...o,ref:t})})});Ys.displayName=Je;var Ud=l.forwardRef((e,t)=>{const n=Te(Je,e.__scopeDialog),r=l.useRef(null),o=ne(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return Nr(s)},[]),i.jsx(Xs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault())})}),Hd=l.forwardRef((e,t)=>{const n=Te(Je,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return i.jsx(Xs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Xs=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Te(Je,n),d=l.useRef(null),u=ne(t,d);return Ar(),i.jsxs(i.Fragment,{children:[i.jsx(xn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:i.jsx(Ft,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Or(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(zd,{titleId:c.titleId}),i.jsx(Wd,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Ir="DialogTitle",Zs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Ir,n);return i.jsx(B.h2,{id:o.titleId,...r,ref:t})});Zs.displayName=Ir;var Js="DialogDescription",Qs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Js,n);return i.jsx(B.p,{id:o.descriptionId,...r,ref:t})});Qs.displayName=Js;var ea="DialogClose",ta=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(ea,n);return i.jsx(B.button,{type:"button",...r,ref:t,onClick:N(e.onClick,()=>o.onOpenChange(!1))})});ta.displayName=ea;function Or(e){return e?"open":"closed"}var na="DialogTitleWarning",[Ty,ra]=Eu(na,{contentName:Je,titleName:Ir,docsSlug:"dialog"}),zd=({titleId:e})=>{const t=ra(na),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
616
+ `)},Pd=0,st=[];function jd(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Pd++)[0],s=l.useState(Ds)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Zu([e.lockRef.current],(e.shards||[]).map(Lo),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=l.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var b=Yt(m),C=n.current,w="deltaX"in m?m.deltaX:C[0]-b[0],E="deltaY"in m?m.deltaY:C[1]-b[1],S,M=m.target,k=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&k==="h"&&M.type==="range")return!1;var A=window.getSelection(),D=A&&A.anchorNode,F=D?D===M||D.contains(M):!1;if(F)return!1;var H=Io(k,M);if(!H)return!0;if(H?S=k:(S=k==="v"?"h":"v",H=Io(k,M)),!H)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=S),!S)return!0;var _=r.current||S;return Rd(_,v,m,_==="h"?w:E)},[]),d=l.useCallback(function(m){var v=m;if(!(!st.length||st[st.length-1]!==s)){var b="deltaY"in v?Oo(v):Yt(v),C=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&Td(S.delta,b)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var w=(a.current.shards||[]).map(Lo).filter(Boolean).filter(function(S){return S.contains(v.target)}),E=w.length>0?c(v,w[0]):!a.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=l.useCallback(function(m,v,b,C){var w={name:m,delta:v,target:b,should:C,shadowParent:Ad(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=l.useCallback(function(m){n.current=Yt(m),r.current=void 0},[]),p=l.useCallback(function(m){u(m.type,Oo(m),m.target,c(m,e.lockRef.current))},[]),h=l.useCallback(function(m){u(m.type,Yt(m),m.target,c(m,e.lockRef.current))},[]);l.useEffect(function(){return st.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",d,ot),document.addEventListener("touchmove",d,ot),document.addEventListener("touchstart",f,ot),function(){st=st.filter(function(m){return m!==s}),document.removeEventListener("wheel",d,ot),document.removeEventListener("touchmove",d,ot),document.removeEventListener("touchstart",f,ot)}},[]);var g=e.removeScrollBar,x=e.inert;return l.createElement(l.Fragment,null,x?l.createElement(s,{styles:Md(o)}):null,g?l.createElement(xd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ad(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Nd=ad(Ls,jd);var wn=l.forwardRef(function(e,t){return l.createElement(bn,je({},e,{ref:t,sideCar:Nd}))});wn.classNames=bn.classNames;var _d=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},at=new WeakMap,Xt=new WeakMap,Zt={},Yn=0,Hs=function(e){return e&&(e.host||Hs(e.parentNode))},Id=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hs(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Od=function(e,t,n,r){var o=Id(t,Array.isArray(e)?e:[e]);Zt[n]||(Zt[n]=new WeakMap);var s=Zt[n],a=[],c=new Set,d=new Set(o),u=function(p){!p||c.has(p)||(c.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(h){if(c.has(h))f(h);else try{var g=h.getAttribute(r),x=g!==null&&g!=="false",m=(at.get(h)||0)+1,v=(s.get(h)||0)+1;at.set(h,m),s.set(h,v),a.push(h),m===1&&x&&Xt.set(h,!0),v===1&&h.setAttribute(n,"true"),x||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return f(t),c.clear(),Yn++,function(){a.forEach(function(p){var h=at.get(p)-1,g=s.get(p)-1;at.set(p,h),s.set(p,g),h||(Xt.has(p)||p.removeAttribute(r),Xt.delete(p)),g||p.removeAttribute(n)}),Yn--,Yn||(at=new WeakMap,at=new WeakMap,Xt=new WeakMap,Zt={})}},Nr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=_d(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Od(r,o,n,"aria-hidden")):function(){return null}},Cn="Dialog",[Bs]=Ie(Cn),[Ld,Me]=Bs(Cn),zs=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=l.useRef(null),d=l.useRef(null),[u,f]=Ze({prop:r,defaultProp:o??!1,onChange:s,caller:Cn});return i.jsx(Ld,{scope:t,triggerRef:c,contentRef:d,contentId:Ee(),titleId:Ee(),descriptionId:Ee(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:a,children:n})};zs.displayName=Cn;var Ws="DialogTrigger",Vs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(Ws,n),s=ne(t,o.triggerRef);return i.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Or(o.open),...r,ref:s,onClick:N(e.onClick,o.onOpenToggle)})});Vs.displayName=Ws;var _r="DialogPortal",[Dd,Gs]=Bs(_r,{forceMount:void 0}),qs=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Me(_r,t);return i.jsx(Dd,{scope:t,forceMount:n,children:l.Children.map(r,a=>i.jsx(Te,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:a})}))})};qs.displayName=_r;var sn="DialogOverlay",Ks=l.forwardRef((e,t)=>{const n=Gs(sn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Me(sn,e.__scopeDialog);return s.modal?i.jsx(Te,{present:r||s.open,children:i.jsx($d,{...o,ref:t})}):null});Ks.displayName=sn;var Fd=Xe("DialogOverlay.RemoveScroll"),$d=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(sn,n);return i.jsx(wn,{as:Fd,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(z.div,{"data-state":Or(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Je="DialogContent",Ys=l.forwardRef((e,t)=>{const n=Gs(Je,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Me(Je,e.__scopeDialog);return i.jsx(Te,{present:r||s.open,children:s.modal?i.jsx(Ud,{...o,ref:t}):i.jsx(Hd,{...o,ref:t})})});Ys.displayName=Je;var Ud=l.forwardRef((e,t)=>{const n=Me(Je,e.__scopeDialog),r=l.useRef(null),o=ne(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return Nr(s)},[]),i.jsx(Xs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault())})}),Hd=l.forwardRef((e,t)=>{const n=Me(Je,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return i.jsx(Xs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Xs=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Me(Je,n),d=l.useRef(null),u=ne(t,d);return Ar(),i.jsxs(i.Fragment,{children:[i.jsx(xn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:i.jsx(Ft,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Or(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(Bd,{titleId:c.titleId}),i.jsx(Wd,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Ir="DialogTitle",Zs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(Ir,n);return i.jsx(z.h2,{id:o.titleId,...r,ref:t})});Zs.displayName=Ir;var Js="DialogDescription",Qs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(Js,n);return i.jsx(z.p,{id:o.descriptionId,...r,ref:t})});Qs.displayName=Js;var ea="DialogClose",ta=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(ea,n);return i.jsx(z.button,{type:"button",...r,ref:t,onClick:N(e.onClick,()=>o.onOpenChange(!1))})});ta.displayName=ea;function Or(e){return e?"open":"closed"}var na="DialogTitleWarning",[Sy,ra]=ku(na,{contentName:Je,titleName:Ir,docsSlug:"dialog"}),Bd=({titleId:e})=>{const t=ra(na),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
632
617
 
633
618
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
634
619
 
635
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Bd="DialogDescriptionWarning",Wd=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ra(Bd).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Py=Bs,jy=Vs,Ay=qs,Ny=Ks,_y=Ys,Iy=Zs,Oy=Qs,Ly=ta,Xn={exports:{}},Zn={};/**
620
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},zd="DialogDescriptionWarning",Wd=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ra(zd).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ry=zs,Ty=Vs,My=qs,Py=Ks,jy=Ys,Ay=Zs,Ny=Qs,_y=ta,Xn={exports:{}},Zn={};/**
636
621
  * @license React
637
622
  * use-sync-external-store-shim.production.js
638
623
  *
@@ -640,7 +625,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
640
625
  *
641
626
  * This source code is licensed under the MIT license found in the
642
627
  * LICENSE file in the root directory of this source tree.
643
- */var Do;function Vd(){if(Do)return Zn;Do=1;var e=br();function t(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function c(p,h){var g=h(),x=r({inst:{value:g,getSnapshot:h}}),m=x[0].inst,v=x[1];return s(function(){m.value=g,m.getSnapshot=h,d(m)&&v({inst:m})},[p,g,h]),o(function(){return d(m)&&v({inst:m}),p(function(){d(m)&&v({inst:m})})},[p]),a(g),g}function d(p){var h=p.getSnapshot;p=p.value;try{var g=h();return!n(p,g)}catch{return!0}}function u(p,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:c;return Zn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Zn}var Fo;function Gd(){return Fo||(Fo=1,Xn.exports=Vd()),Xn.exports}var qd=Gd();function Kd(){return qd.useSyncExternalStore(Yd,()=>!0,()=>!1)}function Yd(){return()=>{}}var Lr="Avatar",[Xd]=Ie(Lr),[Zd,oa]=Xd(Lr),sa=l.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=l.useState("idle");return i.jsx(Zd,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:i.jsx(B.span,{...r,ref:t})})});sa.displayName=Lr;var aa="AvatarImage",Jd=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,a=oa(aa,n),c=Qd(r,s),d=Ee(u=>{o(u),a.onImageLoadingStatusChange(u)});return ie(()=>{c!=="idle"&&d(c)},[c,d]),c==="loaded"?i.jsx(B.img,{...s,ref:t,src:r}):null});Jd.displayName=aa;var ia="AvatarFallback",ca=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=oa(ia,n),[a,c]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(d)}},[r]),a&&s.imageLoadingStatus!=="loaded"?i.jsx(B.span,{...o,ref:t}):null});ca.displayName=ia;function $o(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Qd(e,{referrerPolicy:t,crossOrigin:n}){const r=Kd(),o=l.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[a,c]=l.useState(()=>$o(s,e));return ie(()=>{c($o(s,e))},[s,e]),ie(()=>{const d=p=>()=>{c(p)};if(!s)return;const u=d("loaded"),f=d("error");return s.addEventListener("load",u),s.addEventListener("error",f),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",u),s.removeEventListener("error",f)}},[s,n,t]),a}var Dy=sa,Fy=ca;function ef(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function tf(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const nf=["top","right","bottom","left"],Ge=Math.min,pe=Math.max,an=Math.round,Jt=Math.floor,Ne=e=>({x:e,y:e}),rf={left:"right",right:"left",bottom:"top",top:"bottom"},of={start:"end",end:"start"};function ir(e,t,n){return pe(e,Ge(t,n))}function $e(e,t){return typeof e=="function"?e(t):e}function Ue(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function Dr(e){return e==="x"?"y":"x"}function Fr(e){return e==="y"?"height":"width"}const sf=new Set(["top","bottom"]);function Ae(e){return sf.has(Ue(e))?"y":"x"}function $r(e){return Dr(Ae(e))}function af(e,t,n){n===void 0&&(n=!1);const r=gt(e),o=$r(e),s=Fr(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=cn(a)),[a,cn(a)]}function cf(e){const t=cn(e);return[cr(e),t,cr(t)]}function cr(e){return e.replace(/start|end/g,t=>of[t])}const Uo=["left","right"],Ho=["right","left"],lf=["top","bottom"],uf=["bottom","top"];function df(e,t,n){switch(e){case"top":case"bottom":return n?t?Ho:Uo:t?Uo:Ho;case"left":case"right":return t?lf:uf;default:return[]}}function ff(e,t,n,r){const o=gt(e);let s=df(Ue(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(cr)))),s}function cn(e){return e.replace(/left|right|bottom|top/g,t=>rf[t])}function pf(e){return{top:0,right:0,bottom:0,left:0,...e}}function la(e){return typeof e!="number"?pf(e):{top:e,right:e,bottom:e,left:e}}function ln(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function zo(e,t,n){let{reference:r,floating:o}=e;const s=Ae(t),a=$r(t),c=Fr(a),d=Ue(t),u=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[c]/2-o[c]/2;let g;switch(d){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(gt(t)){case"start":g[a]-=h*(n&&u?-1:1);break;case"end":g[a]+=h*(n&&u?-1:1);break}return g}async function hf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=$e(t,e),x=la(g),v=c[h?p==="floating"?"reference":"floating":p],b=ln(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),C=p==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),k=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},R=ln(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:w,strategy:d}):C);return{top:(b.top-R.top+x.top)/k.y,bottom:(R.bottom-b.bottom+x.bottom)/k.y,left:(b.left-R.left+x.left)/k.x,right:(R.right-b.right+x.right)/k.x}}const mf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=zo(u,r,d),h=r,g={},x=0;for(let v=0;v<c.length;v++){var m;const{name:b,fn:C}=c[v],{x:w,y:k,data:R,reset:T}=await C({x:f,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:hf},elements:{reference:e,floating:t}});f=w??f,p=k??p,g={...g,[b]:{...g[b],...R}},T&&x<=50&&(x++,typeof T=="object"&&(T.placement&&(h=T.placement),T.rects&&(u=T.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:f,y:p}=zo(u,h,d)),v=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:g}},gf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:d}=t,{element:u,padding:f=0}=$e(e,t)||{};if(u==null)return{};const p=la(f),h={x:n,y:r},g=$r(o),x=Fr(g),m=await a.getDimensions(u),v=g==="y",b=v?"top":"left",C=v?"bottom":"right",w=v?"clientHeight":"clientWidth",k=s.reference[x]+s.reference[g]-h[g]-s.floating[x],R=h[g]-s.reference[g],T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let E=T?T[w]:0;(!E||!await(a.isElement==null?void 0:a.isElement(T)))&&(E=c.floating[w]||s.floating[x]);const A=k/2-R/2,D=E/2-m[x]/2-1,F=Ge(p[b],D),H=Ge(p[C],D),_=F,Y=E-m[x]-H,U=E/2-m[x]/2+A,J=ir(_,U,Y),O=!d.arrow&&gt(o)!=null&&U!==J&&s.reference[x]/2-(U<_?F:H)-m[x]/2<0,K=O?U<_?U-_:U-Y:0;return{[g]:h[g]+K,data:{[g]:J,centerOffset:U-J-K,...O&&{alignmentOffset:K}},reset:O}}}),vf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:m=!0,...v}=$e(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Ue(o),C=Ae(c),w=Ue(c)===c,k=await(d.isRTL==null?void 0:d.isRTL(u.floating)),R=h||(w||!m?[cn(c)]:cf(c)),T=x!=="none";!h&&T&&R.push(...ff(c,m,x,k));const E=[c,...R],A=await d.detectOverflow(t,v),D=[];let F=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(A[b]),p){const U=af(o,a,k);D.push(A[U[0]],A[U[1]])}if(F=[...F,{placement:o,overflows:D}],!D.every(U=>U<=0)){var H,_;const U=(((H=s.flip)==null?void 0:H.index)||0)+1,J=E[U];if(J&&(!(p==="alignment"?C!==Ae(J):!1)||F.every(I=>Ae(I.placement)===C?I.overflows[0]>0:!0)))return{data:{index:U,overflows:F},reset:{placement:J}};let O=(_=F.filter(K=>K.overflows[0]<=0).sort((K,I)=>K.overflows[1]-I.overflows[1])[0])==null?void 0:_.placement;if(!O)switch(g){case"bestFit":{var Y;const K=(Y=F.filter(I=>{if(T){const j=Ae(I.placement);return j===C||j==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(j=>j>0).reduce((j,Q)=>j+Q,0)]).sort((I,j)=>I[1]-j[1])[0])==null?void 0:Y[0];K&&(O=K);break}case"initialPlacement":O=c;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function Bo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wo(e){return nf.some(t=>e[t]>=0)}const yf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=$e(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),c=Bo(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Wo(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),c=Bo(a,n.floating);return{data:{escapedOffsets:c,escaped:Wo(c)}}}default:return{}}}}},ua=new Set(["left","top"]);async function xf(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ue(n),c=gt(n),d=Ae(n)==="y",u=ua.has(a)?-1:1,f=s&&d?-1:1,p=$e(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof x=="number"&&(g=c==="end"?x*-1:x),d?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const bf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,d=await xf(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:a}}}}},wf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:d={fn:b=>{let{x:C,y:w}=b;return{x:C,y:w}}},...u}=$e(e,t),f={x:n,y:r},p=await s.detectOverflow(t,u),h=Ae(Ue(o)),g=Dr(h);let x=f[g],m=f[h];if(a){const b=g==="y"?"top":"left",C=g==="y"?"bottom":"right",w=x+p[b],k=x-p[C];x=ir(w,x,k)}if(c){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",w=m+p[b],k=m-p[C];m=ir(w,m,k)}const v=d.fn({...t,[g]:x,[h]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:a,[h]:c}}}}}},Cf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=$e(e,t),f={x:n,y:r},p=Ae(o),h=Dr(p);let g=f[h],x=f[p];const m=$e(c,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(d){const w=h==="y"?"height":"width",k=s.reference[h]-s.floating[w]+v.mainAxis,R=s.reference[h]+s.reference[w]-v.mainAxis;g<k?g=k:g>R&&(g=R)}if(u){var b,C;const w=h==="y"?"width":"height",k=ua.has(Ue(o)),R=s.reference[p]-s.floating[w]+(k&&((b=a.offset)==null?void 0:b[p])||0)+(k?0:v.crossAxis),T=s.reference[p]+s.reference[w]+(k?0:((C=a.offset)==null?void 0:C[p])||0)-(k?v.crossAxis:0);x<R?x=R:x>T&&(x=T)}return{[h]:g,[p]:x}}}},kf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:d=()=>{},...u}=$e(e,t),f=await a.detectOverflow(t,u),p=Ue(o),h=gt(o),g=Ae(o)==="y",{width:x,height:m}=s.floating;let v,b;p==="top"||p==="bottom"?(v=p,b=h===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=p,v=h==="end"?"top":"bottom");const C=m-f.top-f.bottom,w=x-f.left-f.right,k=Ge(m-f[v],C),R=Ge(x-f[b],w),T=!t.middlewareData.shift;let E=k,A=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=C),T&&!h){const F=pe(f.left,0),H=pe(f.right,0),_=pe(f.top,0),Y=pe(f.bottom,0);g?A=x-2*(F!==0||H!==0?F+H:pe(f.left,f.right)):E=m-2*(_!==0||Y!==0?_+Y:pe(f.top,f.bottom))}await d({...t,availableWidth:A,availableHeight:E});const D=await a.getDimensions(c.floating);return x!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function kn(){return typeof window<"u"}function vt(e){return da(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(da(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function da(e){return kn()?e instanceof Node||e instanceof he(e).Node:!1}function Se(e){return kn()?e instanceof Element||e instanceof he(e).Element:!1}function _e(e){return kn()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function Vo(e){return!kn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}const Ef=new Set(["inline","contents"]);function Ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ef.has(o)}const Sf=new Set(["table","td","th"]);function Rf(e){return Sf.has(vt(e))}const Mf=[":popover-open",":modal"];function En(e){return Mf.some(t=>{try{return e.matches(t)}catch{return!1}})}const Tf=["transform","translate","scale","rotate","perspective"],Pf=["transform","translate","scale","rotate","perspective","filter"],jf=["paint","layout","strict","content"];function Ur(e){const t=Hr(),n=Se(e)?Re(e):e;return Tf.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Pf.some(r=>(n.willChange||"").includes(r))||jf.some(r=>(n.contain||"").includes(r))}function Af(e){let t=qe(e);for(;_e(t)&&!dt(t);){if(Ur(t))return t;if(En(t))return null;t=qe(t)}return null}function Hr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Nf=new Set(["html","body","#document"]);function dt(e){return Nf.has(vt(e))}function Re(e){return he(e).getComputedStyle(e)}function Sn(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qe(e){if(vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vo(e)&&e.host||Oe(e);return Vo(t)?t.host:t}function fa(e){const t=qe(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:_e(t)&&Ut(t)?t:fa(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=fa(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=he(o);if(s){const c=lr(a);return t.concat(a,a.visualViewport||[],Ut(o)?o:[],c&&n?At(c):[])}return t.concat(o,At(o,[],n))}function lr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pa(e){const t=Re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_e(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=an(n)!==s||an(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function zr(e){return Se(e)?e:e.contextElement}function lt(e){const t=zr(e);if(!_e(t))return Ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=pa(t);let a=(s?an(n.width):n.width)/r,c=(s?an(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const _f=Ne(0);function ha(e){const t=he(e);return!Hr()||!t.visualViewport?_f:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function If(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==he(e)?!1:t}function Qe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=zr(e);let a=Ne(1);t&&(r?Se(r)&&(a=lt(r)):a=lt(e));const c=If(s,n,r)?ha(s):Ne(0);let d=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){const h=he(s),g=r&&Se(r)?he(r):r;let x=h,m=lr(x);for(;m&&r&&g!==x;){const v=lt(m),b=m.getBoundingClientRect(),C=Re(m),w=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*v.x,k=b.top+(m.clientTop+parseFloat(C.paddingTop))*v.y;d*=v.x,u*=v.y,f*=v.x,p*=v.y,d+=w,u+=k,x=he(m),m=lr(x)}}return ln({width:f,height:p,x:d,y:u})}function Rn(e,t){const n=Sn(e).scrollLeft;return t?t.left+n:Qe(Oe(e)).left+n}function ma(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Rn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Of(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Oe(r),c=t?En(t.floating):!1;if(r===a||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=Ne(1);const f=Ne(0),p=_e(r);if((p||!p&&!s)&&((vt(r)!=="body"||Ut(a))&&(d=Sn(r)),_e(r))){const g=Qe(r);u=lt(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const h=a&&!p&&!s?ma(a,d):Ne(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-d.scrollTop*u.y+f.y+h.y}}function Lf(e){return Array.from(e.getClientRects())}function Df(e){const t=Oe(e),n=Sn(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Rn(e);const c=-n.scrollTop;return Re(r).direction==="rtl"&&(a+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}const Go=25;function Ff(e,t){const n=he(e),r=Oe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(o){s=o.width,a=o.height;const f=Hr();(!f||f&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}const u=Rn(r);if(u<=0){const f=r.ownerDocument,p=f.body,h=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-g);x<=Go&&(s-=x)}else u<=Go&&(s+=u);return{width:s,height:a,x:c,y:d}}const $f=new Set(["absolute","fixed"]);function Uf(e,t){const n=Qe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=_e(e)?lt(e):Ne(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,d=o*s.x,u=r*s.y;return{width:a,height:c,x:d,y:u}}function qo(e,t,n){let r;if(t==="viewport")r=Ff(e,n);else if(t==="document")r=Df(Oe(e));else if(Se(t))r=Uf(t,n);else{const o=ha(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ln(r)}function ga(e,t){const n=qe(e);return n===t||!Se(n)||dt(n)?!1:Re(n).position==="fixed"||ga(n,t)}function Hf(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(c=>Se(c)&&vt(c)!=="body"),o=null;const s=Re(e).position==="fixed";let a=s?qe(e):e;for(;Se(a)&&!dt(a);){const c=Re(a),d=Ur(a);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&$f.has(o.position)||Ut(a)&&!d&&ga(e,a))?r=r.filter(f=>f!==a):o=c,a=qe(a)}return t.set(e,r),r}function zf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?En(t)?[]:Hf(t,this._c):[].concat(n),r],c=a[0],d=a.reduce((u,f)=>{const p=qo(t,f,o);return u.top=pe(p.top,u.top),u.right=Ge(p.right,u.right),u.bottom=Ge(p.bottom,u.bottom),u.left=pe(p.left,u.left),u},qo(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Bf(e){const{width:t,height:n}=pa(e);return{width:t,height:n}}function Wf(e,t,n){const r=_e(t),o=Oe(t),s=n==="fixed",a=Qe(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=Ne(0);function u(){d.x=Rn(o)}if(r||!r&&!s)if((vt(t)!=="body"||Ut(o))&&(c=Sn(t)),r){const g=Qe(t,!0,s,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?ma(o,c):Ne(0),p=a.left+c.scrollLeft-d.x-f.x,h=a.top+c.scrollTop-d.y-f.y;return{x:p,y:h,width:a.width,height:a.height}}function Jn(e){return Re(e).position==="static"}function Ko(e,t){if(!_e(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oe(e)===n&&(n=n.ownerDocument.body),n}function va(e,t){const n=he(e);if(En(e))return n;if(!_e(e)){let o=qe(e);for(;o&&!dt(o);){if(Se(o)&&!Jn(o))return o;o=qe(o)}return n}let r=Ko(e,t);for(;r&&Rf(r)&&Jn(r);)r=Ko(r,t);return r&&dt(r)&&Jn(r)&&!Ur(r)?n:r||Af(e)||n}const Vf=async function(e){const t=this.getOffsetParent||va,n=this.getDimensions,r=await n(e.floating);return{reference:Wf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gf(e){return Re(e).direction==="rtl"}const qf={convertOffsetParentRelativeRectToViewportRelativeRect:Of,getDocumentElement:Oe,getClippingRect:zf,getOffsetParent:va,getElementRects:Vf,getClientRects:Lf,getDimensions:Bf,getScale:lt,isElement:Se,isRTL:Gf};function ya(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kf(e,t){let n=null,r;const o=Oe(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:f,top:p,width:h,height:g}=u;if(c||t(),!h||!g)return;const x=Jt(p),m=Jt(o.clientWidth-(f+h)),v=Jt(o.clientHeight-(p+g)),b=Jt(f),w={rootMargin:-x+"px "+-m+"px "+-v+"px "+-b+"px",threshold:pe(0,Ge(1,d))||1};let k=!0;function R(T){const E=T[0].intersectionRatio;if(E!==d){if(!k)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!ya(u,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(R,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,w)}n.observe(e)}return a(!0),s}function Yf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=zr(e),f=o||s?[...u?At(u):[],...At(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=u&&c?Kf(u,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(b=>{let[C]=b;C&&C.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),u&&!d&&g.observe(u),g.observe(t));let x,m=d?Qe(e):null;d&&v();function v(){const b=Qe(e);m&&!ya(m,b)&&n(),m=b,x=requestAnimationFrame(v)}return n(),()=>{var b;f.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),p==null||p(),(b=g)==null||b.disconnect(),g=null,d&&cancelAnimationFrame(x)}}const Xf=bf,Zf=wf,Jf=vf,Qf=kf,ep=yf,Yo=gf,tp=Cf,np=(e,t,n)=>{const r=new Map,o={platform:qf,...n},s={...o.platform,_c:r};return mf(e,t,{...o,platform:s})};var rp=typeof document<"u",op=function(){},rn=rp?l.useLayoutEffect:op;function un(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!un(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!un(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function xa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xo(e,t){const n=xa(e);return Math.round(t*n)/n}function Qn(e){const t=l.useRef(e);return rn(()=>{t.current=e}),t}function sp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=l.useState(r);un(h,r)||g(r);const[x,m]=l.useState(null),[v,b]=l.useState(null),C=l.useCallback(I=>{I!==T.current&&(T.current=I,m(I))},[]),w=l.useCallback(I=>{I!==E.current&&(E.current=I,b(I))},[]),k=s||x,R=a||v,T=l.useRef(null),E=l.useRef(null),A=l.useRef(f),D=d!=null,F=Qn(d),H=Qn(o),_=Qn(u),Y=l.useCallback(()=>{if(!T.current||!E.current)return;const I={placement:t,strategy:n,middleware:h};H.current&&(I.platform=H.current),np(T.current,E.current,I).then(j=>{const Q={...j,isPositioned:_.current!==!1};U.current&&!un(A.current,Q)&&(A.current=Q,Dt.flushSync(()=>{p(Q)}))})},[h,t,n,H,_]);rn(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[u]);const U=l.useRef(!1);rn(()=>(U.current=!0,()=>{U.current=!1}),[]),rn(()=>{if(k&&(T.current=k),R&&(E.current=R),k&&R){if(F.current)return F.current(k,R,Y);Y()}},[k,R,Y,F,D]);const J=l.useMemo(()=>({reference:T,floating:E,setReference:C,setFloating:w}),[C,w]),O=l.useMemo(()=>({reference:k,floating:R}),[k,R]),K=l.useMemo(()=>{const I={position:n,left:0,top:0};if(!O.floating)return I;const j=Xo(O.floating,f.x),Q=Xo(O.floating,f.y);return c?{...I,transform:"translate("+j+"px, "+Q+"px)",...xa(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:Q}},[n,c,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:Y,refs:J,elements:O,floatingStyles:K}),[f,Y,J,O,K])}const ap=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Yo({element:r.current,padding:o}).fn(n):{}:r?Yo({element:r,padding:o}).fn(n):{}}}},ip=(e,t)=>({...Xf(e),options:[e,t]}),cp=(e,t)=>({...Zf(e),options:[e,t]}),lp=(e,t)=>({...tp(e),options:[e,t]}),up=(e,t)=>({...Jf(e),options:[e,t]}),dp=(e,t)=>({...Qf(e),options:[e,t]}),fp=(e,t)=>({...ep(e),options:[e,t]}),pp=(e,t)=>({...ap(e),options:[e,t]});var hp="Arrow",ba=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i.jsx(B.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});ba.displayName=hp;var mp=ba,Br="Popper",[wa,yt]=Ie(Br),[gp,Ca]=wa(Br),ka=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return i.jsx(gp,{scope:t,anchor:r,onAnchorChange:o,children:n})};ka.displayName=Br;var Ea="PopperAnchor",Sa=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ca(Ea,n),a=l.useRef(null),c=ne(t,a),d=l.useRef(null);return l.useEffect(()=>{const u=d.current;d.current=(r==null?void 0:r.current)||a.current,u!==d.current&&s.onAnchorChange(d.current)}),r?null:i.jsx(B.div,{...o,ref:c})});Sa.displayName=Ea;var Wr="PopperContent",[vp,yp]=wa(Wr),Ra=l.forwardRef((e,t)=>{var P,X,G,ee,re,oe;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:x,...m}=e,v=Ca(Wr,n),[b,C]=l.useState(null),w=ne(t,fe=>C(fe)),[k,R]=l.useState(null),T=tf(k),E=(T==null?void 0:T.width)??0,A=(T==null?void 0:T.height)??0,D=r+(s!=="center"?"-"+s:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(u)?u:[u],_=H.length>0,Y={padding:F,boundary:H.filter(bp),altBoundary:_},{refs:U,floatingStyles:J,placement:O,isPositioned:K,middlewareData:I}=sp({strategy:"fixed",placement:D,whileElementsMounted:(...fe)=>Yf(...fe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[ip({mainAxis:o+A,alignmentAxis:a}),d&&cp({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?lp():void 0,...Y}),d&&up({...Y}),dp({...Y,apply:({elements:fe,rects:Pe,availableWidth:wt,availableHeight:Ct})=>{const{width:kt,height:vc}=Pe.reference,Vt=fe.floating.style;Vt.setProperty("--radix-popper-available-width",`${wt}px`),Vt.setProperty("--radix-popper-available-height",`${Ct}px`),Vt.setProperty("--radix-popper-anchor-width",`${kt}px`),Vt.setProperty("--radix-popper-anchor-height",`${vc}px`)}}),k&&pp({element:k,padding:c}),wp({arrowWidth:E,arrowHeight:A}),h&&fp({strategy:"referenceHidden",...Y})]}),[j,Q]=Pa(O),y=Ee(x);ie(()=>{K&&(y==null||y())},[K,y]);const M=(P=I.arrow)==null?void 0:P.x,$=(X=I.arrow)==null?void 0:X.y,L=((G=I.arrow)==null?void 0:G.centerOffset)!==0,[V,W]=l.useState();return ie(()=>{b&&W(window.getComputedStyle(b).zIndex)},[b]),i.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:V,"--radix-popper-transform-origin":[(ee=I.transformOrigin)==null?void 0:ee.x,(re=I.transformOrigin)==null?void 0:re.y].join(" "),...((oe=I.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(vp,{scope:n,placedSide:j,onArrowChange:R,arrowX:M,arrowY:$,shouldHideArrow:L,children:i.jsx(B.div,{"data-side":j,"data-align":Q,...m,ref:w,style:{...m.style,animation:K?void 0:"none"}})})})});Ra.displayName=Wr;var Ma="PopperArrow",xp={top:"bottom",right:"left",bottom:"top",left:"right"},Ta=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=yp(Ma,r),a=xp[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(mp,{...o,ref:n,style:{...o.style,display:"block"}})})});Ta.displayName=Ma;function bp(e){return e!==null}var wp=e=>({name:"transformOrigin",options:e,fn(t){var v,b,C;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,f]=Pa(n),p={start:"0%",center:"50%",end:"100%"}[f],h=(((b=o.arrow)==null?void 0:b.x)??0)+c/2,g=(((C=o.arrow)==null?void 0:C.y)??0)+d/2;let x="",m="";return u==="bottom"?(x=a?p:`${h}px`,m=`${-d}px`):u==="top"?(x=a?p:`${h}px`,m=`${r.floating.height+d}px`):u==="right"?(x=`${-d}px`,m=a?p:`${g}px`):u==="left"&&(x=`${r.floating.width+d}px`,m=a?p:`${g}px`),{data:{x,y:m}}}});function Pa(e){const[t,n="center"]=e.split("-");return[t,n]}var Vr=ka,Gr=Sa,qr=Ra,Kr=Ta,er="rovingFocusGroup.onEntryFocus",Cp={bubbles:!1,cancelable:!0},Ht="RovingFocusGroup",[ur,ja,kp]=jr(Ht),[Ep,Mn]=Ie(Ht,[kp]),[Sp,Rp]=Ep(Ht),Aa=l.forwardRef((e,t)=>i.jsx(ur.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(ur.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Mp,{...e,ref:t})})}));Aa.displayName=Ht;var Mp=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,h=l.useRef(null),g=ne(t,h),x=yn(s),[m,v]=Ze({prop:a,defaultProp:c??null,onChange:d,caller:Ht}),[b,C]=l.useState(!1),w=Ee(u),k=ja(n),R=l.useRef(!1),[T,E]=l.useState(0);return l.useEffect(()=>{const A=h.current;if(A)return A.addEventListener(er,w),()=>A.removeEventListener(er,w)},[w]),i.jsx(Sp,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(A=>v(A),[v]),onItemShiftTab:l.useCallback(()=>C(!0),[]),onFocusableItemAdd:l.useCallback(()=>E(A=>A+1),[]),onFocusableItemRemove:l.useCallback(()=>E(A=>A-1),[]),children:i.jsx(B.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{R.current=!0}),onFocus:N(e.onFocus,A=>{const D=!R.current;if(A.target===A.currentTarget&&D&&!b){const F=new CustomEvent(er,Cp);if(A.currentTarget.dispatchEvent(F),!F.defaultPrevented){const H=k().filter(O=>O.focusable),_=H.find(O=>O.active),Y=H.find(O=>O.id===m),J=[_,Y,...H].filter(Boolean).map(O=>O.ref.current);Ia(J,f)}}R.current=!1}),onBlur:N(e.onBlur,()=>C(!1))})})}),Na="RovingFocusGroupItem",_a=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...c}=e,d=ke(),u=s||d,f=Rp(Na,n),p=f.currentTabStopId===u,h=ja(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:m}=f;return l.useEffect(()=>{if(r)return g(),()=>x()},[r,g,x]),i.jsx(ur.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:i.jsx(B.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:N(e.onMouseDown,v=>{r?f.onItemFocus(u):v.preventDefault()}),onFocus:N(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:N(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=jp(v,f.orientation,f.dir);if(b!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=h().filter(k=>k.focusable).map(k=>k.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const k=w.indexOf(v.currentTarget);w=f.loop?Ap(w,k+1):w.slice(k+1)}setTimeout(()=>Ia(w))}}),children:typeof a=="function"?a({isCurrentTabStop:p,hasTabStop:m!=null}):a})})});_a.displayName=Na;var Tp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Pp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function jp(e,t,n){const r=Pp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Tp[r]}function Ia(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ap(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Oa=Aa,La=_a,dr=["Enter"," "],Np=["ArrowDown","PageUp","Home"],Da=["ArrowUp","PageDown","End"],_p=[...Np,...Da],Ip={ltr:[...dr,"ArrowRight"],rtl:[...dr,"ArrowLeft"]},Op={ltr:["ArrowLeft"],rtl:["ArrowRight"]},zt="Menu",[Nt,Lp,Dp]=jr(zt),[nt,Fa]=Ie(zt,[Dp,yt,Mn]),Tn=yt(),$a=Mn(),[Fp,rt]=nt(zt),[$p,Bt]=nt(zt),Ua=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,c=Tn(t),[d,u]=l.useState(null),f=l.useRef(!1),p=Ee(s),h=yn(o);return l.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),i.jsx(Vr,{...c,children:i.jsx(Fp,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:u,children:i.jsx($p,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:a,children:r})})})};Ua.displayName=zt;var Up="MenuAnchor",Yr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Tn(n);return i.jsx(Gr,{...o,...r,ref:t})});Yr.displayName=Up;var Xr="MenuPortal",[Hp,Ha]=nt(Xr,{forceMount:void 0}),za=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=rt(Xr,t);return i.jsx(Hp,{scope:t,forceMount:n,children:i.jsx(Me,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:r})})})};za.displayName=Xr;var ye="MenuContent",[zp,Zr]=nt(ye),Ba=l.forwardRef((e,t)=>{const n=Ha(ye,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=rt(ye,e.__scopeMenu),a=Bt(ye,e.__scopeMenu);return i.jsx(Nt.Provider,{scope:e.__scopeMenu,children:i.jsx(Me,{present:r||s.open,children:i.jsx(Nt.Slot,{scope:e.__scopeMenu,children:a.modal?i.jsx(Bp,{...o,ref:t}):i.jsx(Wp,{...o,ref:t})})})})}),Bp=l.forwardRef((e,t)=>{const n=rt(ye,e.__scopeMenu),r=l.useRef(null),o=ne(t,r);return l.useEffect(()=>{const s=r.current;if(s)return Nr(s)},[]),i.jsx(Jr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Wp=l.forwardRef((e,t)=>{const n=rt(ye,e.__scopeMenu);return i.jsx(Jr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Vp=Xe("MenuContent.ScrollLock"),Jr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:g,disableOutsideScroll:x,...m}=e,v=rt(ye,n),b=Bt(ye,n),C=Tn(n),w=$a(n),k=Lp(n),[R,T]=l.useState(null),E=l.useRef(null),A=ne(t,E,v.onContentChange),D=l.useRef(0),F=l.useRef(""),H=l.useRef(0),_=l.useRef(null),Y=l.useRef("right"),U=l.useRef(0),J=x?wn:l.Fragment,O=x?{as:Vp,allowPinchZoom:!0}:void 0,K=j=>{var P,X;const Q=F.current+j,y=k().filter(G=>!G.disabled),M=document.activeElement,$=(P=y.find(G=>G.ref.current===M))==null?void 0:P.textValue,L=y.map(G=>G.textValue),V=rh(L,Q,$),W=(X=y.find(G=>G.textValue===V))==null?void 0:X.ref.current;(function G(ee){F.current=ee,window.clearTimeout(D.current),ee!==""&&(D.current=window.setTimeout(()=>G(""),1e3))})(Q),W&&setTimeout(()=>W.focus())};l.useEffect(()=>()=>window.clearTimeout(D.current),[]),Ar();const I=l.useCallback(j=>{var y,M;return Y.current===((y=_.current)==null?void 0:y.side)&&sh(j,(M=_.current)==null?void 0:M.area)},[]);return i.jsx(zp,{scope:n,searchRef:F,onItemEnter:l.useCallback(j=>{I(j)&&j.preventDefault()},[I]),onItemLeave:l.useCallback(j=>{var Q;I(j)||((Q=E.current)==null||Q.focus(),T(null))},[I]),onTriggerLeave:l.useCallback(j=>{I(j)&&j.preventDefault()},[I]),pointerGraceTimerRef:H,onPointerGraceIntentChange:l.useCallback(j=>{_.current=j},[]),children:i.jsx(J,{...O,children:i.jsx(xn,{asChild:!0,trapped:o,onMountAutoFocus:N(s,j=>{var Q;j.preventDefault(),(Q=E.current)==null||Q.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:g,children:i.jsx(Oa,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:T,onEntryFocus:N(d,j=>{b.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(qr,{role:"menu","aria-orientation":"vertical","data-state":si(v.open),"data-radix-menu-content":"",dir:b.dir,...C,...m,ref:A,style:{outline:"none",...m.style},onKeyDown:N(m.onKeyDown,j=>{const y=j.target.closest("[data-radix-menu-content]")===j.currentTarget,M=j.ctrlKey||j.altKey||j.metaKey,$=j.key.length===1;y&&(j.key==="Tab"&&j.preventDefault(),!M&&$&&K(j.key));const L=E.current;if(j.target!==L||!_p.includes(j.key))return;j.preventDefault();const W=k().filter(P=>!P.disabled).map(P=>P.ref.current);Da.includes(j.key)&&W.reverse(),th(W)}),onBlur:N(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(D.current),F.current="")}),onPointerMove:N(e.onPointerMove,_t(j=>{const Q=j.target,y=U.current!==j.clientX;if(j.currentTarget.contains(Q)&&y){const M=j.clientX>U.current?"right":"left";Y.current=M,U.current=j.clientX}}))})})})})})})});Ba.displayName=ye;var Gp="MenuGroup",Qr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(B.div,{role:"group",...r,ref:t})});Qr.displayName=Gp;var qp="MenuLabel",Wa=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(B.div,{...r,ref:t})});Wa.displayName=qp;var dn="MenuItem",Zo="menu.itemSelect",Pn=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=Bt(dn,e.__scopeMenu),c=Zr(dn,e.__scopeMenu),d=ne(t,s),u=l.useRef(!1),f=()=>{const p=s.current;if(!n&&p){const h=new CustomEvent(Zo,{bubbles:!0,cancelable:!0});p.addEventListener(Zo,g=>r==null?void 0:r(g),{once:!0}),Ts(p,h),h.defaultPrevented?u.current=!1:a.onClose()}};return i.jsx(Va,{...o,ref:d,disabled:n,onClick:N(e.onClick,f),onPointerDown:p=>{var h;(h=e.onPointerDown)==null||h.call(e,p),u.current=!0},onPointerUp:N(e.onPointerUp,p=>{var h;u.current||(h=p.currentTarget)==null||h.click()}),onKeyDown:N(e.onKeyDown,p=>{const h=c.searchRef.current!=="";n||h&&p.key===" "||dr.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Pn.displayName=dn;var Va=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=Zr(dn,n),c=$a(n),d=l.useRef(null),u=ne(t,d),[f,p]=l.useState(!1),[h,g]=l.useState("");return l.useEffect(()=>{const x=d.current;x&&g((x.textContent??"").trim())},[s.children]),i.jsx(Nt.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:i.jsx(La,{asChild:!0,...c,focusable:!r,children:i.jsx(B.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:N(e.onPointerMove,_t(x=>{r?a.onItemLeave(x):(a.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:N(e.onPointerLeave,_t(x=>a.onItemLeave(x))),onFocus:N(e.onFocus,()=>p(!0)),onBlur:N(e.onBlur,()=>p(!1))})})})}),Kp="MenuCheckboxItem",Ga=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.jsx(Za,{scope:e.__scopeMenu,checked:n,children:i.jsx(Pn,{role:"menuitemcheckbox","aria-checked":fn(n)?"mixed":n,...o,ref:t,"data-state":to(n),onSelect:N(o.onSelect,()=>r==null?void 0:r(fn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ga.displayName=Kp;var qa="MenuRadioGroup",[Yp,Xp]=nt(qa,{value:void 0,onValueChange:()=>{}}),Ka=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Ee(r);return i.jsx(Yp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:i.jsx(Qr,{...o,ref:t})})});Ka.displayName=qa;var Ya="MenuRadioItem",Xa=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=Xp(Ya,e.__scopeMenu),s=n===o.value;return i.jsx(Za,{scope:e.__scopeMenu,checked:s,children:i.jsx(Pn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":to(s),onSelect:N(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});Xa.displayName=Ya;var eo="MenuItemIndicator",[Za,Zp]=nt(eo,{checked:!1}),Ja=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Zp(eo,n);return i.jsx(Me,{present:r||fn(s.checked)||s.checked===!0,children:i.jsx(B.span,{...o,ref:t,"data-state":to(s.checked)})})});Ja.displayName=eo;var Jp="MenuSeparator",Qa=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(B.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Qa.displayName=Jp;var Qp="MenuArrow",ei=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Tn(n);return i.jsx(Kr,{...o,...r,ref:t})});ei.displayName=Qp;var eh="MenuSub",[$y,ti]=nt(eh),Tt="MenuSubTrigger",ni=l.forwardRef((e,t)=>{const n=rt(Tt,e.__scopeMenu),r=Bt(Tt,e.__scopeMenu),o=ti(Tt,e.__scopeMenu),s=Zr(Tt,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,u={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>f,[f]),l.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),d(null)}},[c,d]),i.jsx(Yr,{asChild:!0,...u,children:i.jsx(Va,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":si(n.open),...e,ref:vn(t,o.onTriggerChange),onClick:p=>{var h;(h=e.onClick)==null||h.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:N(e.onPointerMove,_t(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:N(e.onPointerLeave,_t(p=>{var g,x;f();const h=(g=n.content)==null?void 0:g.getBoundingClientRect();if(h){const m=(x=n.content)==null?void 0:x.dataset.side,v=m==="right",b=v?-5:5,C=h[v?"left":"right"],w=h[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+b,y:p.clientY},{x:C,y:h.top},{x:w,y:h.top},{x:w,y:h.bottom},{x:C,y:h.bottom}],side:m}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:N(e.onKeyDown,p=>{var g;const h=s.searchRef.current!=="";e.disabled||h&&p.key===" "||Ip[r.dir].includes(p.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),p.preventDefault())})})})});ni.displayName=Tt;var ri="MenuSubContent",oi=l.forwardRef((e,t)=>{const n=Ha(ye,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=rt(ye,e.__scopeMenu),a=Bt(ye,e.__scopeMenu),c=ti(ri,e.__scopeMenu),d=l.useRef(null),u=ne(t,d);return i.jsx(Nt.Provider,{scope:e.__scopeMenu,children:i.jsx(Me,{present:r||s.open,children:i.jsx(Nt.Slot,{scope:e.__scopeMenu,children:i.jsx(Jr,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;a.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:N(e.onFocusOutside,f=>{f.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:N(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:N(e.onKeyDown,f=>{var g;const p=f.currentTarget.contains(f.target),h=Op[a.dir].includes(f.key);p&&h&&(s.onOpenChange(!1),(g=c.trigger)==null||g.focus(),f.preventDefault())})})})})})});oi.displayName=ri;function si(e){return e?"open":"closed"}function fn(e){return e==="indeterminate"}function to(e){return fn(e)?"indeterminate":e?"checked":"unchecked"}function th(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function nh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function rh(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=nh(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function oh(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],d=t[a],u=c.x,f=c.y,p=d.x,h=d.y;f>r!=h>r&&n<(p-u)*(r-f)/(h-f)+u&&(o=!o)}return o}function sh(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return oh(n,t)}function _t(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ah=Ua,ih=Yr,ch=za,lh=Ba,uh=Qr,dh=Wa,fh=Pn,ph=Ga,hh=Ka,mh=Xa,gh=Ja,vh=Qa,yh=ei,xh=ni,bh=oi,jn="DropdownMenu",[wh]=Ie(jn,[Fa]),le=Fa(),[Ch,ai]=wh(jn),ii=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,d=le(t),u=l.useRef(null),[f,p]=Ze({prop:o,defaultProp:s??!1,onChange:a,caller:jn});return i.jsx(Ch,{scope:t,triggerId:ke(),triggerRef:u,contentId:ke(),open:f,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(h=>!h),[p]),modal:c,children:i.jsx(ah,{...d,open:f,onOpenChange:p,dir:r,modal:c,children:n})})};ii.displayName=jn;var ci="DropdownMenuTrigger",li=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=ai(ci,n),a=le(n);return i.jsx(ih,{asChild:!0,...a,children:i.jsx(B.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:vn(t,s.triggerRef),onPointerDown:N(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:N(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});li.displayName=ci;var kh="DropdownMenuPortal",ui=e=>{const{__scopeDropdownMenu:t,...n}=e,r=le(t);return i.jsx(ch,{...r,...n})};ui.displayName=kh;var di="DropdownMenuContent",fi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ai(di,n),s=le(n),a=l.useRef(!1);return i.jsx(lh,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:N(e.onCloseAutoFocus,c=>{var d;a.current||(d=o.triggerRef.current)==null||d.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:N(e.onInteractOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!o.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});fi.displayName=di;var Eh="DropdownMenuGroup",Sh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(uh,{...o,...r,ref:t})});Sh.displayName=Eh;var Rh="DropdownMenuLabel",pi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(dh,{...o,...r,ref:t})});pi.displayName=Rh;var Mh="DropdownMenuItem",hi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(fh,{...o,...r,ref:t})});hi.displayName=Mh;var Th="DropdownMenuCheckboxItem",Ph=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(ph,{...o,...r,ref:t})});Ph.displayName=Th;var jh="DropdownMenuRadioGroup",Ah=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(hh,{...o,...r,ref:t})});Ah.displayName=jh;var Nh="DropdownMenuRadioItem",_h=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(mh,{...o,...r,ref:t})});_h.displayName=Nh;var Ih="DropdownMenuItemIndicator",Oh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(gh,{...o,...r,ref:t})});Oh.displayName=Ih;var Lh="DropdownMenuSeparator",mi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(vh,{...o,...r,ref:t})});mi.displayName=Lh;var Dh="DropdownMenuArrow",Fh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(yh,{...o,...r,ref:t})});Fh.displayName=Dh;var $h="DropdownMenuSubTrigger",Uh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(xh,{...o,...r,ref:t})});Uh.displayName=$h;var Hh="DropdownMenuSubContent",zh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(bh,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});zh.displayName=Hh;var Uy=ii,Hy=li,zy=ui,By=fi,Wy=pi,Vy=hi,Gy=mi,Bh="Label",gi=l.forwardRef((e,t)=>i.jsx(B.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));gi.displayName=Bh;var qy=gi;function Jo(e,[t,n]){return Math.min(n,Math.max(t,e))}var Wh=[" ","Enter","ArrowUp","ArrowDown"],Vh=[" ","Enter"],et="Select",[An,Nn,Gh]=jr(et),[xt]=Ie(et,[Gh,yt]),_n=yt(),[qh,Ke]=xt(et),[Kh,Yh]=xt(et),vi=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:c,onValueChange:d,dir:u,name:f,autoComplete:p,disabled:h,required:g,form:x}=e,m=_n(t),[v,b]=l.useState(null),[C,w]=l.useState(null),[k,R]=l.useState(!1),T=yn(u),[E,A]=Ze({prop:r,defaultProp:o??!1,onChange:s,caller:et}),[D,F]=Ze({prop:a,defaultProp:c,onChange:d,caller:et}),H=l.useRef(null),_=v?x||!!v.closest("form"):!0,[Y,U]=l.useState(new Set),J=Array.from(Y).map(O=>O.props.value).join(";");return i.jsx(Vr,{...m,children:i.jsxs(qh,{required:g,scope:t,trigger:v,onTriggerChange:b,valueNode:C,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:R,contentId:ke(),value:D,onValueChange:F,open:E,onOpenChange:A,dir:T,triggerPointerDownPosRef:H,disabled:h,children:[i.jsx(An.Provider,{scope:t,children:i.jsx(Kh,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(O=>{U(K=>new Set(K).add(O))},[]),onNativeOptionRemove:l.useCallback(O=>{U(K=>{const I=new Set(K);return I.delete(O),I})},[]),children:n})}),_?i.jsxs($i,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:O=>F(O.target.value),disabled:h,form:x,children:[D===void 0?i.jsx("option",{value:""}):null,Array.from(Y)]},J):null]})})};vi.displayName=et;var yi="SelectTrigger",xi=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=_n(n),a=Ke(yi,n),c=a.disabled||r,d=ne(t,a.onTriggerChange),u=Nn(n),f=l.useRef("touch"),[p,h,g]=Hi(m=>{const v=u().filter(w=>!w.disabled),b=v.find(w=>w.value===a.value),C=zi(v,m,b);C!==void 0&&a.onValueChange(C.value)}),x=m=>{c||(a.onOpenChange(!0),g()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return i.jsx(Gr,{asChild:!0,...s,children:i.jsx(B.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Ui(a.value)?"":void 0,...o,ref:d,onClick:N(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&x(m)}),onPointerDown:N(o.onPointerDown,m=>{f.current=m.pointerType;const v=m.target;v.hasPointerCapture(m.pointerId)&&v.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(x(m),m.preventDefault())}),onKeyDown:N(o.onKeyDown,m=>{const v=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(v&&m.key===" ")&&Wh.includes(m.key)&&(x(),m.preventDefault())})})})});xi.displayName=yi;var bi="SelectValue",wi=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,d=Ke(bi,n),{onValueNodeHasChildrenChange:u}=d,f=s!==void 0,p=ne(t,d.onValueNodeChange);return ie(()=>{u(f)},[u,f]),i.jsx(B.span,{...c,ref:p,style:{pointerEvents:"none"},children:Ui(d.value)?i.jsx(i.Fragment,{children:a}):s})});wi.displayName=bi;var Xh="SelectIcon",Ci=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(B.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ci.displayName=Xh;var Zh="SelectPortal",ki=e=>i.jsx($t,{asChild:!0,...e});ki.displayName=Zh;var tt="SelectContent",Ei=l.forwardRef((e,t)=>{const n=Ke(tt,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Dt.createPortal(i.jsx(Si,{scope:e.__scopeSelect,children:i.jsx(An.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),s):null}return i.jsx(Ri,{...e,ref:t})});Ei.displayName=tt;var Ce=10,[Si,Ye]=xt(tt),Jh="SelectContentImpl",Qh=Xe("SelectContent.RemoveScroll"),Ri=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:x,hideWhenDetached:m,avoidCollisions:v,...b}=e,C=Ke(tt,n),[w,k]=l.useState(null),[R,T]=l.useState(null),E=ne(t,P=>k(P)),[A,D]=l.useState(null),[F,H]=l.useState(null),_=Nn(n),[Y,U]=l.useState(!1),J=l.useRef(!1);l.useEffect(()=>{if(w)return Nr(w)},[w]),Ar();const O=l.useCallback(P=>{const[X,...G]=_().map(oe=>oe.ref.current),[ee]=G.slice(-1),re=document.activeElement;for(const oe of P)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===X&&R&&(R.scrollTop=0),oe===ee&&R&&(R.scrollTop=R.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[_,R]),K=l.useCallback(()=>O([A,w]),[O,A,w]);l.useEffect(()=>{Y&&K()},[Y,K]);const{onOpenChange:I,triggerPointerDownPosRef:j}=C;l.useEffect(()=>{if(w){let P={x:0,y:0};const X=ee=>{var re,oe;P={x:Math.abs(Math.round(ee.pageX)-(((re=j.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((oe=j.current)==null?void 0:oe.y)??0))}},G=ee=>{P.x<=10&&P.y<=10?ee.preventDefault():w.contains(ee.target)||I(!1),document.removeEventListener("pointermove",X),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",G,{capture:!0})}}},[w,I,j]),l.useEffect(()=>{const P=()=>I(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[I]);const[Q,y]=Hi(P=>{const X=_().filter(re=>!re.disabled),G=X.find(re=>re.ref.current===document.activeElement),ee=zi(X,P,G);ee&&setTimeout(()=>ee.ref.current.focus())}),M=l.useCallback((P,X,G)=>{const ee=!J.current&&!G;(C.value!==void 0&&C.value===X||ee)&&(D(P),ee&&(J.current=!0))},[C.value]),$=l.useCallback(()=>w==null?void 0:w.focus(),[w]),L=l.useCallback((P,X,G)=>{const ee=!J.current&&!G;(C.value!==void 0&&C.value===X||ee)&&H(P)},[C.value]),V=r==="popper"?fr:Mi,W=V===fr?{side:c,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:x,hideWhenDetached:m,avoidCollisions:v}:{};return i.jsx(Si,{scope:n,content:w,viewport:R,onViewportChange:T,itemRefCallback:M,selectedItem:A,onItemLeave:$,itemTextRefCallback:L,focusSelectedItem:K,selectedItemText:F,position:r,isPositioned:Y,searchRef:Q,children:i.jsx(wn,{as:Qh,allowPinchZoom:!0,children:i.jsx(xn,{asChild:!0,trapped:C.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:N(o,P=>{var X;(X=C.trigger)==null||X.focus({preventScroll:!0}),P.preventDefault()}),children:i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:i.jsx(V,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:P=>P.preventDefault(),...b,...W,onPlaced:()=>U(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:N(b.onKeyDown,P=>{const X=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!X&&P.key.length===1&&y(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let ee=_().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(P.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const re=P.target,oe=ee.indexOf(re);ee=ee.slice(oe+1)}setTimeout(()=>O(ee)),P.preventDefault()}})})})})})})});Ri.displayName=Jh;var em="SelectItemAlignedPosition",Mi=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ke(tt,n),a=Ye(tt,n),[c,d]=l.useState(null),[u,f]=l.useState(null),p=ne(t,E=>f(E)),h=Nn(n),g=l.useRef(!1),x=l.useRef(!0),{viewport:m,selectedItem:v,selectedItemText:b,focusSelectedItem:C}=a,w=l.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&m&&v&&b){const E=s.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),D=s.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(s.dir!=="rtl"){const re=F.left-A.left,oe=D.left-re,fe=E.left-oe,Pe=E.width+fe,wt=Math.max(Pe,A.width),Ct=window.innerWidth-Ce,kt=Jo(oe,[Ce,Math.max(Ce,Ct-wt)]);c.style.minWidth=Pe+"px",c.style.left=kt+"px"}else{const re=A.right-F.right,oe=window.innerWidth-D.right-re,fe=window.innerWidth-E.right-oe,Pe=E.width+fe,wt=Math.max(Pe,A.width),Ct=window.innerWidth-Ce,kt=Jo(oe,[Ce,Math.max(Ce,Ct-wt)]);c.style.minWidth=Pe+"px",c.style.right=kt+"px"}const H=h(),_=window.innerHeight-Ce*2,Y=m.scrollHeight,U=window.getComputedStyle(u),J=parseInt(U.borderTopWidth,10),O=parseInt(U.paddingTop,10),K=parseInt(U.borderBottomWidth,10),I=parseInt(U.paddingBottom,10),j=J+O+Y+I+K,Q=Math.min(v.offsetHeight*5,j),y=window.getComputedStyle(m),M=parseInt(y.paddingTop,10),$=parseInt(y.paddingBottom,10),L=E.top+E.height/2-Ce,V=_-L,W=v.offsetHeight/2,P=v.offsetTop+W,X=J+O+P,G=j-X;if(X<=L){const re=H.length>0&&v===H[H.length-1].ref.current;c.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(V,W+(re?$:0)+oe+K),Pe=X+fe;c.style.height=Pe+"px"}else{const re=H.length>0&&v===H[0].ref.current;c.style.top="0px";const fe=Math.max(L,J+m.offsetTop+(re?M:0)+W)+G;c.style.height=fe+"px",m.scrollTop=X-L+m.offsetTop}c.style.margin=`${Ce}px 0`,c.style.minHeight=Q+"px",c.style.maxHeight=_+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,c,u,m,v,b,s.dir,r]);ie(()=>w(),[w]);const[k,R]=l.useState();ie(()=>{u&&R(window.getComputedStyle(u).zIndex)},[u]);const T=l.useCallback(E=>{E&&x.current===!0&&(w(),C==null||C(),x.current=!1)},[w,C]);return i.jsx(nm,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:i.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:i.jsx(B.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Mi.displayName=em;var tm="SelectPopperPosition",fr=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ce,...s}=e,a=_n(n);return i.jsx(qr,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});fr.displayName=tm;var[nm,no]=xt(tt,{}),pr="SelectViewport",Ti=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Ye(pr,n),a=no(pr,n),c=ne(t,s.onViewportChange),d=l.useRef(0);return i.jsxs(i.Fragment,{children:[i.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:r}),i.jsx(An.Slot,{scope:n,children:i.jsx(B.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:N(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&p){const g=Math.abs(d.current-f.scrollTop);if(g>0){const x=window.innerHeight-Ce*2,m=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),b=Math.max(m,v);if(b<x){const C=b+g,w=Math.min(x,C),k=C-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=k>0?k:0,p.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});Ti.displayName=pr;var Pi="SelectGroup",[rm,om]=xt(Pi),sm=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ke();return i.jsx(rm,{scope:n,id:o,children:i.jsx(B.div,{role:"group","aria-labelledby":o,...r,ref:t})})});sm.displayName=Pi;var ji="SelectLabel",am=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=om(ji,n);return i.jsx(B.div,{id:o.id,...r,ref:t})});am.displayName=ji;var pn="SelectItem",[im,Ai]=xt(pn),Ni=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=Ke(pn,n),d=Ye(pn,n),u=c.value===r,[f,p]=l.useState(s??""),[h,g]=l.useState(!1),x=ne(t,C=>{var w;return(w=d.itemRefCallback)==null?void 0:w.call(d,C,r,o)}),m=ke(),v=l.useRef("touch"),b=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")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 i.jsx(im,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(C=>{p(w=>w||((C==null?void 0:C.textContent)??"").trim())},[]),children:i.jsx(An.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:i.jsx(B.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:x,onFocus:N(a.onFocus,()=>g(!0)),onBlur:N(a.onBlur,()=>g(!1)),onClick:N(a.onClick,()=>{v.current!=="mouse"&&b()}),onPointerUp:N(a.onPointerUp,()=>{v.current==="mouse"&&b()}),onPointerDown:N(a.onPointerDown,C=>{v.current=C.pointerType}),onPointerMove:N(a.onPointerMove,C=>{var w;v.current=C.pointerType,o?(w=d.onItemLeave)==null||w.call(d):v.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(a.onPointerLeave,C=>{var w;C.currentTarget===document.activeElement&&((w=d.onItemLeave)==null||w.call(d))}),onKeyDown:N(a.onKeyDown,C=>{var k;((k=d.searchRef)==null?void 0:k.current)!==""&&C.key===" "||(Vh.includes(C.key)&&b(),C.key===" "&&C.preventDefault())})})})})});Ni.displayName=pn;var Pt="SelectItemText",_i=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Ke(Pt,n),c=Ye(Pt,n),d=Ai(Pt,n),u=Yh(Pt,n),[f,p]=l.useState(null),h=ne(t,b=>p(b),d.onItemTextChange,b=>{var C;return(C=c.itemTextRefCallback)==null?void 0:C.call(c,b,d.value,d.disabled)}),g=f==null?void 0:f.textContent,x=l.useMemo(()=>i.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=u;return ie(()=>(m(x),()=>v(x)),[m,v,x]),i.jsxs(i.Fragment,{children:[i.jsx(B.span,{id:d.textId,...s,ref:h}),d.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Dt.createPortal(s.children,a.valueNode):null]})});_i.displayName=Pt;var Ii="SelectItemIndicator",Oi=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ai(Ii,n).isSelected?i.jsx(B.span,{"aria-hidden":!0,...r,ref:t}):null});Oi.displayName=Ii;var hr="SelectScrollUpButton",Li=l.forwardRef((e,t)=>{const n=Ye(hr,e.__scopeSelect),r=no(hr,e.__scopeSelect),[o,s]=l.useState(!1),a=ne(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;s(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?i.jsx(Fi,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});Li.displayName=hr;var mr="SelectScrollDownButton",Di=l.forwardRef((e,t)=>{const n=Ye(mr,e.__scopeSelect),r=no(mr,e.__scopeSelect),[o,s]=l.useState(!1),a=ne(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<u;s(f)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?i.jsx(Fi,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});Di.displayName=mr;var Fi=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Ye("SelectScrollButton",n),a=l.useRef(null),c=Nn(n),d=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>d(),[d]),ie(()=>{var f;const u=c().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[c]),i.jsx(B.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:N(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:N(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:N(o.onPointerLeave,()=>{d()})})}),cm="SelectSeparator",lm=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(B.div,{"aria-hidden":!0,...r,ref:t})});lm.displayName=cm;var gr="SelectArrow",um=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_n(n),s=Ke(gr,n),a=Ye(gr,n);return s.open&&a.position==="popper"?i.jsx(Kr,{...o,...r,ref:t}):null});um.displayName=gr;var dm="SelectBubbleInput",$i=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=ne(r,o),a=ef(t);return l.useEffect(()=>{const c=o.current;if(!c)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(a!==t&&f){const p=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(p)}},[a,t]),i.jsx(B.select,{...n,style:{...Ps,...n.style},ref:s,defaultValue:t})});$i.displayName=dm;function Ui(e){return e===""||e===void 0}function Hi(e){const t=Ee(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(a=>{const c=n.current+a;t(c),(function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(c)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function zi(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=fm(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function fm(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ky=vi,Yy=xi,Xy=wi,Zy=Ci,Jy=ki,Qy=Ei,ex=Ti,tx=Ni,nx=_i,rx=Oi,ox=Li,sx=Di,pm="Separator",Qo="horizontal",hm=["horizontal","vertical"],Bi=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Qo,...o}=e,s=mm(r)?r:Qo,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return i.jsx(B.div,{"data-orientation":s,...c,...o,ref:t})});Bi.displayName=pm;function mm(e){return hm.includes(e)}var ax=Bi,In="Tabs",[gm]=Ie(In,[Mn]),Wi=Mn(),[vm,ro]=gm(In),Vi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:c,activationMode:d="automatic",...u}=e,f=yn(c),[p,h]=Ze({prop:r,onChange:o,defaultProp:s??"",caller:In});return i.jsx(vm,{scope:n,baseId:ke(),value:p,onValueChange:h,orientation:a,dir:f,activationMode:d,children:i.jsx(B.div,{dir:f,"data-orientation":a,...u,ref:t})})});Vi.displayName=In;var Gi="TabsList",qi=l.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=ro(Gi,n),a=Wi(n);return i.jsx(Oa,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:r,children:i.jsx(B.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});qi.displayName=Gi;var Ki="TabsTrigger",Yi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,a=ro(Ki,n),c=Wi(n),d=Ji(a.baseId,r),u=Qi(a.baseId,r),f=r===a.value;return i.jsx(La,{asChild:!0,...c,focusable:!o,active:f,children:i.jsx(B.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:N(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?a.onValueChange(r):p.preventDefault()}),onKeyDown:N(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&a.onValueChange(r)}),onFocus:N(e.onFocus,()=>{const p=a.activationMode!=="manual";!f&&!o&&p&&a.onValueChange(r)})})})});Yi.displayName=Ki;var Xi="TabsContent",Zi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...a}=e,c=ro(Xi,n),d=Ji(c.baseId,r),u=Qi(c.baseId,r),f=r===c.value,p=l.useRef(f);return l.useEffect(()=>{const h=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(h)},[]),i.jsx(Me,{present:o||f,children:({present:h})=>i.jsx(B.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!h,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:h&&s})})});Zi.displayName=Xi;function Ji(e,t){return`${e}-trigger-${t}`}function Qi(e,t){return`${e}-content-${t}`}var ym=Vi,xm=qi,bm=Yi,wm=Zi,[On]=Ie("Tooltip",[yt]),Ln=yt(),ec="TooltipProvider",Cm=700,vr="tooltip.open",[km,oo]=On(ec),tc=e=>{const{__scopeTooltip:t,delayDuration:n=Cm,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),i.jsx(km,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(u=>{c.current=u},[]),disableHoverableContent:o,children:s})};tc.displayName=ec;var It="Tooltip",[Em,Wt]=On(It),nc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=oo(It,e.__scopeTooltip),u=Ln(t),[f,p]=l.useState(null),h=ke(),g=l.useRef(0),x=a??d.disableHoverableContent,m=c??d.delayDuration,v=l.useRef(!1),[b,C]=Ze({prop:r,defaultProp:o??!1,onChange:E=>{E?(d.onOpen(),document.dispatchEvent(new CustomEvent(vr))):d.onClose(),s==null||s(E)},caller:It}),w=l.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),k=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,C(!0)},[C]),R=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,C(!1)},[C]),T=l.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,C(!0),g.current=0},m)},[m,C]);return l.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),i.jsx(Vr,{...u,children:i.jsx(Em,{scope:t,contentId:h,open:b,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{d.isOpenDelayedRef.current?T():k()},[d.isOpenDelayedRef,T,k]),onTriggerLeave:l.useCallback(()=>{x?R():(window.clearTimeout(g.current),g.current=0)},[R,x]),onOpen:k,onClose:R,disableHoverableContent:x,children:n})})};nc.displayName=It;var yr="TooltipTrigger",rc=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(yr,n),s=oo(yr,n),a=Ln(n),c=l.useRef(null),d=ne(t,c,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),i.jsx(Gr,{asChild:!0,...a,children:i.jsx(B.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:N(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:N(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:N(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:N(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:N(e.onBlur,o.onClose),onClick:N(e.onClick,o.onClose)})})});rc.displayName=yr;var so="TooltipPortal",[Sm,Rm]=On(so,{forceMount:void 0}),oc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Wt(so,t);return i.jsx(Sm,{scope:t,forceMount:n,children:i.jsx(Me,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:r})})})};oc.displayName=so;var ft="TooltipContent",sc=l.forwardRef((e,t)=>{const n=Rm(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Wt(ft,e.__scopeTooltip);return i.jsx(Me,{present:r||a.open,children:a.disableHoverableContent?i.jsx(ac,{side:o,...s,ref:t}):i.jsx(Mm,{side:o,...s,ref:t})})}),Mm=l.forwardRef((e,t)=>{const n=Wt(ft,e.__scopeTooltip),r=oo(ft,e.__scopeTooltip),o=l.useRef(null),s=ne(t,o),[a,c]=l.useState(null),{trigger:d,onClose:u}=n,f=o.current,{onPointerInTransitChange:p}=r,h=l.useCallback(()=>{c(null),p(!1)},[p]),g=l.useCallback((x,m)=>{const v=x.currentTarget,b={x:x.clientX,y:x.clientY},C=Am(b,v.getBoundingClientRect()),w=Nm(b,C),k=_m(m.getBoundingClientRect()),R=Om([...w,...k]);c(R),p(!0)},[p]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(d&&f){const x=v=>g(v,f),m=v=>g(v,d);return d.addEventListener("pointerleave",x),f.addEventListener("pointerleave",m),()=>{d.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",m)}}},[d,f,g,h]),l.useEffect(()=>{if(a){const x=m=>{const v=m.target,b={x:m.clientX,y:m.clientY},C=(d==null?void 0:d.contains(v))||(f==null?void 0:f.contains(v)),w=!Im(b,a);C?h():w&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[d,f,a,u,h]),i.jsx(ac,{...e,ref:s})}),[Tm,Pm]=On(It,{isInside:!1}),jm=vu("TooltipContent"),ac=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,d=Wt(ft,n),u=Ln(n),{onClose:f}=d;return l.useEffect(()=>(document.addEventListener(vr,f),()=>document.removeEventListener(vr,f)),[f]),l.useEffect(()=>{if(d.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(d.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,f]),i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:i.jsxs(qr,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.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:[i.jsx(jm,{children:r}),i.jsx(Tm,{scope:n,isInside:!0,children:i.jsx(ku,{id:d.contentId,role:"tooltip",children:o||r})})]})})});sc.displayName=ft;var ic="TooltipArrow",cc=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ln(n);return Pm(ic,n).isInside?null:i.jsx(Kr,{...o,...r,ref:t})});cc.displayName=ic;function Am(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Nm(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function _m(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Im(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],d=t[a],u=c.x,f=c.y,p=d.x,h=d.y;f>r!=h>r&&n<(p-u)*(r-f)/(h-f)+u&&(o=!o)}return o}function Om(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Lm(t)}function Lm(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ix=tc,cx=nc,lx=rc,ux=oc,dx=sc,fx=cc;const ao="-",Dm=e=>{const t=$m(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const c=a.split(ao);return c[0]===""&&c.length!==1&&c.shift(),lc(c,t)||Fm(a)},getConflictingClassGroupIds:(a,c)=>{const d=n[a]||[];return c&&r[a]?[...d,...r[a]]:d}}},lc=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?lc(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(ao);return(a=t.validators.find(({validator:c})=>c(s)))==null?void 0:a.classGroupId},es=/^\[(.+)\]$/,Fm=e=>{if(es.test(e)){const t=es.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},$m=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Hm(Object.entries(e.classGroups),n).forEach(([s,a])=>{xr(a,r,s,t)}),r},xr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ts(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Um(o)){xr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{xr(a,ts(t,s),n,r)})})},ts=(e,t)=>{let n=e;return t.split(ao).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Um=e=>e.isThemeGetter,Hm=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,c])=>[t+a,c])):s);return[n,o]}):e,zm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},uc="!",Bm=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,a=c=>{const d=[];let u=0,f=0,p;for(let v=0;v<c.length;v++){let b=c[v];if(u===0){if(b===o&&(r||c.slice(v,v+s)===t)){d.push(c.slice(f,v)),f=v+s;continue}if(b==="/"){p=v;continue}}b==="["?u++:b==="]"&&u--}const h=d.length===0?c:c.substring(f),g=h.startsWith(uc),x=g?h.substring(1):h,m=p&&p>f?p-f:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:m}};return n?c=>n({className:c,parseClassName:a}):a},Wm=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Vm=e=>({cache:zm(e.cacheSize),parseClassName:Bm(e),...Dm(e)}),Gm=/\s+/,qm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(Gm);let c="";for(let d=a.length-1;d>=0;d-=1){const u=a[d],{modifiers:f,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=n(u);let x=!!g,m=r(x?h.substring(0,g):h);if(!m){if(!x){c=u+(c.length>0?" "+c:c);continue}if(m=r(h),!m){c=u+(c.length>0?" "+c:c);continue}x=!1}const v=Wm(f).join(":"),b=p?v+uc:v,C=b+m;if(s.includes(C))continue;s.push(C);const w=o(m,x);for(let k=0;k<w.length;++k){const R=w[k];s.push(b+R)}c=u+(c.length>0?" "+c:c)}return c};function Km(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=dc(t))&&(r&&(r+=" "),r+=n);return r}const dc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=dc(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ym(e,...t){let n,r,o,s=a;function a(d){const u=t.reduce((f,p)=>p(f),e());return n=Vm(u),r=n.cache.get,o=n.cache.set,s=c,c(d)}function c(d){const u=r(d);if(u)return u;const f=qm(d,n);return o(d,f),f}return function(){return s(Km.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},fc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xm=/^\d+\/\d+$/,Zm=new Set(["px","full","screen"]),Jm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qm=/\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$/,eg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ng=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Le=e=>ut(e)||Zm.has(e)||Xm.test(e),ze=e=>bt(e,"length",ug),ut=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>bt(e,"number",ut),Rt=e=>!!e&&Number.isInteger(Number(e)),rg=e=>e.endsWith("%")&&ut(e.slice(0,-1)),q=e=>fc.test(e),Be=e=>Jm.test(e),og=new Set(["length","size","percentage"]),sg=e=>bt(e,og,pc),ag=e=>bt(e,"position",pc),ig=new Set(["image","url"]),cg=e=>bt(e,ig,fg),lg=e=>bt(e,"",dg),Mt=()=>!0,bt=(e,t,n)=>{const r=fc.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ug=e=>Qm.test(e)&&!eg.test(e),pc=()=>!1,dg=e=>tg.test(e),fg=e=>ng.test(e),pg=()=>{const e=se("colors"),t=se("spacing"),n=se("blur"),r=se("brightness"),o=se("borderColor"),s=se("borderRadius"),a=se("borderSpacing"),c=se("borderWidth"),d=se("contrast"),u=se("grayscale"),f=se("hueRotate"),p=se("invert"),h=se("gap"),g=se("gradientColorStops"),x=se("gradientColorStopPositions"),m=se("inset"),v=se("margin"),b=se("opacity"),C=se("padding"),w=se("saturate"),k=se("scale"),R=se("sepia"),T=se("skew"),E=se("space"),A=se("translate"),D=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",q,t],_=()=>[q,t],Y=()=>["",Le,ze],U=()=>["auto",ut,q],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",q],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>[ut,q];return{cacheSize:500,separator:":",theme:{colors:[Mt],spacing:[Le,ze],blur:["none","",Be,q],brightness:y(),borderColor:[e],borderRadius:["none","","full",Be,q],borderSpacing:_(),borderWidth:Y(),contrast:y(),grayscale:j(),hueRotate:y(),invert:j(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[rg,ze],inset:H(),margin:H(),opacity:y(),padding:_(),saturate:y(),scale:y(),sepia:j(),skew:y(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[Be]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),q]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rt,q]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Rt,q]}],"grid-cols":[{"grid-cols":[Mt]}],"col-start-end":[{col:["auto",{span:["full",Rt,q]},q]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[Mt]}],"row-start-end":[{row:["auto",{span:[Rt,q]},q]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[Be]},Be]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Be,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tr]}],"font-family":[{font:[Mt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",ut,tr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Le,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Le,ze]}],"underline-offset":[{"underline-offset":["auto",Le,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),ag]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[Le,q]}],"outline-w":[{outline:[Le,ze]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Le,ze]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Be,lg]}],"shadow-color":[{shadow:[Mt]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Be,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:y()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:y()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Rt,q]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Le,ze,tr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},hg=Ym(pg);function we(...e){return hg(Ss(e))}const mg=Pr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{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:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input 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 rounded-md gap-1.5 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 gg({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const s=r?Rs:"button";return i.jsx(s,{"data-slot":"button","data-variant":t,"data-size":n,className:we(mg({variant:t,size:n,className:e})),...o})}const io="@rulemetric/cli",vg=`npm install -g ${io}`,px=`npm install -g ${io}@latest`,hx=`npm i -g ${io}@latest`,yg=Pr("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 [button&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 [button&]:hover:bg-secondary/90",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 [button&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [button&]:hover:bg-accent [button&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground [button&]:hover:bg-accent [button&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline [button&]:hover:underline"}},defaultVariants:{variant:"default"}});function co({className:e,variant:t="default",asChild:n=!1,...r}){const o=n?Rs:"span";return i.jsx(o,{"data-slot":"badge","data-variant":t,className:we(yg({variant:t}),e),...r})}function xg(e=2e3){const[t,n]=l.useState(!1),r=l.useCallback(async o=>{const s=()=>{n(!0),setTimeout(()=>n(!1),e)};try{return await navigator.clipboard.writeText(o),s(),!0}catch{try{const a=document.createElement("textarea");return a.value=o,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),s(),!0}catch{return!1}}},[e]);return{copied:t,copy:r}}function ge({className:e,...t}){return i.jsx("div",{"data-slot":"card",className:we("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function mx({className:e,...t}){return i.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",e),...t})}function gx({className:e,...t}){return i.jsx("div",{"data-slot":"card-title",className:we("leading-none font-semibold",e),...t})}function vx({className:e,...t}){return i.jsx("div",{"data-slot":"card-description",className:we("text-muted-foreground text-sm",e),...t})}function ve({className:e,...t}){return i.jsx("div",{"data-slot":"card-content",className:we("px-6",e),...t})}function yx({className:e,...t}){return i.jsx("div",{"data-slot":"card-footer",className:we("flex items-center px-6 [.border-t]:pt-6",e),...t})}function hc({className:e,orientation:t="horizontal",...n}){return i.jsx(ym,{"data-slot":"tabs","data-orientation":t,orientation:t,className:we("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...n})}const bg=Pr("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit max-w-full items-center justify-center group-data-[orientation=horizontal]/tabs:overflow-x-auto group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function mc({className:e,variant:t="default",...n}){return i.jsx(xm,{"data-slot":"tabs-list","data-variant":t,className:we(bg({variant:t}),e),...n})}function ue({className:e,...t}){return i.jsx(bm,{"data-slot":"tabs-trigger",className:we("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground 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 transition-all cursor-pointer group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 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 [&_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 dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute 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",e),...t})}function de({className:e,...t}){return i.jsx(wm,{"data-slot":"tabs-content",className:we("flex-1 outline-none",e),...t})}function gc(e,t,n="tab"){const[r,o]=Zl(),s=r.get(n);return[s!=null&&e.includes(s)?s:t,d=>{o(u=>{const f=new URLSearchParams(u);return d===t?f.delete(n):f.set(n,d),f},{replace:!0})}]}const wg=[{group:"Auth",commands:[{name:"auth login",desc:"Log in to RuleMetric (email/password)"},{name:"auth create-key",desc:"Create a long-lived API key for hooks and proxy"},{name:"auth revoke-key",desc:"Revoke an API key"},{name:"auth logout",desc:"Log out and clear stored credentials"},{name:"auth status",desc:"Show current auth status"}]},{group:"Instructions",commands:[{name:"instructions list",desc:"List all your instructions"},{name:"import <file>",desc:"Import a CLAUDE.md, .cursorrules, etc."},{name:"catalog",desc:"Browse the org/team instruction catalog"}]},{group:"Sessions",commands:[{name:"sessions list",desc:"List captured sessions (supports --tool, --limit)"},{name:"sessions import <file>",desc:"Import session from JSONL/JSON (auto-detects tool)"}]},{group:"Hooks",commands:[{name:"hooks install",desc:"Install session tracking hooks in current project"},{name:"hooks install --global",desc:"Install hooks for all projects"},{name:"hooks uninstall",desc:"Remove hooks from current project"},{name:"hooks run <name>",desc:"Execute a hook script (called by AI tools)"}]},{group:"Evals",commands:[{name:"evals create <target-id>",desc:"Create eval test cases for a target"},{name:"evals run <target-id>",desc:"Execute evals (with/without target, grading)"},{name:"evals benchmark <target-id>",desc:"Aggregate runs into statistical benchmarks"},{name:"evals optimize <target-id>",desc:"Iteratively optimize instruction content"},{name:"evals optimize-description <target-id>",desc:"Optimize trigger description using queries"},{name:"evals compare <a-id> <b-id>",desc:"Blind A/B comparison between two targets"},{name:"evals agent",desc:"Run the worker in the foreground (one-off)"}]},{group:"Proxy",commands:[{name:"proxy start",desc:"Start the mitmproxy context sniffer"},{name:"proxy stop",desc:"Stop mitmproxy (gateway stays alive)"},{name:"proxy status",desc:"Check gateway and proxy health"}]},{group:"Worker / Service",commands:[{name:"service install --worker-only",desc:"Install the worker as a persistent service (launchd/systemd) — no repo needed"},{name:"service status",desc:"Check installed RuleMetric services"},{name:"service uninstall",desc:"Remove installed RuleMetric services"}]}],Cg=[{group:"Instructions",endpoints:[{method:"GET",path:"/api/instructions",desc:"List instructions (supports ?scope=, ?search=)"},{method:"POST",path:"/api/instructions",desc:"Create a new instruction"},{method:"GET",path:"/api/instructions/:id",desc:"Get instruction by ID"},{method:"PUT",path:"/api/instructions/:id",desc:"Update instruction (creates version on content change)"},{method:"DELETE",path:"/api/instructions/:id",desc:"Archive an instruction"}]},{group:"Sessions",endpoints:[{method:"POST",path:"/api/sessions",desc:"Create a new session"},{method:"GET",path:"/api/sessions",desc:"List sessions (?tool, ?outcome, ?friction, ?instructionId, ?projectPath)"},{method:"GET",path:"/api/sessions/:id",desc:"Get session with linked instructions"},{method:"POST",path:"/api/sessions/:id/events",desc:"Append event (atomic sequence assignment)"},{method:"PATCH",path:"/api/sessions/:id/enrich",desc:"Merge metadata, analysis, tokenUsage, externalSessionId"},{method:"POST",path:"/api/sessions/:id/analyze",desc:"AI-powered session analysis"},{method:"POST",path:"/api/sessions/import",desc:"Import from raw content (auto-detects tool)"},{method:"POST",path:"/api/sessions/link-instructions",desc:"Scan snapshots, auto-create + link instructions"}]},{group:"Context Snapshots",endpoints:[{method:"POST",path:"/api/sessions/:id/context-snapshots",desc:"Store captured LLM request snapshot"},{method:"GET",path:"/api/sessions/:id/context-snapshots",desc:"List snapshots (supports ?limit=, ?offset=)"},{method:"GET",path:"/api/context-snapshots/:id",desc:"Get single snapshot"}]},{group:"Eval Targets & Cases",endpoints:[{method:"POST",path:"/api/eval-targets",desc:"Create eval target"},{method:"GET",path:"/api/eval-targets",desc:"List targets (supports ?type=, ?content_hash=)"},{method:"GET",path:"/api/eval-targets/:id",desc:"Get target by ID"},{method:"PUT",path:"/api/eval-targets/:id",desc:"Update target (content change = new version)"},{method:"POST",path:"/api/eval-targets/:id/evals",desc:"Create test case for target"},{method:"GET",path:"/api/eval-targets/:id/evals",desc:"List test cases"}]},{group:"Eval Runs & Benchmarks",endpoints:[{method:"POST",path:"/api/eval-runs",desc:"Create eval run (posted by CLI worker)"},{method:"GET",path:"/api/eval-targets/:id/runs",desc:"List runs (supports ?iteration=, ?limit=)"},{method:"POST",path:"/api/eval-targets/:id/benchmarks",desc:"Create aggregated benchmark"},{method:"GET",path:"/api/eval-targets/:id/benchmarks",desc:"List benchmarks"}]},{group:"Eval Jobs",endpoints:[{method:"POST",path:"/api/eval-jobs",desc:"Create pending eval job (web UI triggers); the local CLI worker claims it via GET /api/work/next"},{method:"GET",path:"/api/eval-targets/:id/jobs",desc:"List jobs for a target"},{method:"PATCH",path:"/api/eval-jobs/:id/progress",desc:"Update job progress"},{method:"PATCH",path:"/api/eval-jobs/:id/state",desc:"Mirror state updates from worker (driven by runner.events)"},{method:"POST",path:"/api/eval-jobs/:id/cancel",desc:"Cancel a pending job"}]},{group:"Eval from Context",endpoints:[{method:"POST",path:"/api/eval-from-context",desc:"Find-or-create target + auto-generate evals + create job"}]},{group:"Eval Conversations",endpoints:[{method:"POST",path:"/api/eval-targets/:id/conversations",desc:"Get-or-create chat conversation"},{method:"POST",path:"/api/eval-conversations/:id/messages",desc:"Send user message (creates worker job)"},{method:"POST",path:"/api/eval-conversations/:id/messages/assistant",desc:"Worker posts assistant message"},{method:"POST",path:"/api/eval-conversations/:id/apply-proposal",desc:"Apply proposed content changes"}]},{group:"Insights",endpoints:[{method:"GET",path:"/api/insights/compute",desc:"Live aggregation (?projectPath, ?since, ?until)"},{method:"GET",path:"/api/insights/instruction-impact",desc:"With-vs-without comparison (?instructionId)"}]},{group:"API Keys",endpoints:[{method:"GET",path:"/api/auth/api-keys",desc:"List API keys for current user"},{method:"POST",path:"/api/auth/api-keys",desc:"Create new API key (returns key once)"},{method:"DELETE",path:"/api/auth/api-keys/:id",desc:"Revoke an API key"}]},{group:"Worker Status",endpoints:[{method:"POST",path:"/api/workers/heartbeat",desc:"Upsert worker connection heartbeat"},{method:"GET",path:"/api/workers/status",desc:"List all worker connections for user"}]}],kg={GET:"text-teal-500 bg-teal-500/10 border-teal-500/20",POST:"text-blue-500 bg-blue-500/10 border-blue-500/20",PUT:"text-amber-500 bg-amber-500/10 border-amber-500/20",PATCH:"text-pink-500 bg-pink-500/10 border-pink-500/20",DELETE:"text-red-500 bg-red-500/10 border-red-500/20"},it=window.location.origin;function Eg({text:e}){const{copied:t,copy:n}=xg();return i.jsx(gg,{variant:"ghost",size:"sm",onClick:()=>n(e),className:"cursor-pointer h-7 text-xs",children:t?i.jsxs(i.Fragment,{children:[i.jsx(iu,{className:"mr-1 h-3 w-3"}),"Copied"]}):i.jsxs(i.Fragment,{children:[i.jsx(lu,{className:"mr-1 h-3 w-3"}),"Copy"]})})}function Z({label:e,code:t}){return i.jsxs("div",{className:"relative",children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:e}),i.jsx(Eg,{text:t})]}),i.jsx("pre",{className:"overflow-auto rounded-lg border border-border bg-[#0B1120] p-4 text-sm font-mono whitespace-pre-wrap",children:t})]})}function te({title:e,children:t}){return i.jsxs("div",{className:"space-y-3",children:[i.jsx("h3",{className:"text-lg font-mono font-semibold tracking-tight",children:e}),t]})}function Sg(){const[e,t]=gc(["claude-code","cursor","copilot","antigravity","windsurf","other"],"claude-code","tool");return i.jsxs("div",{className:"space-y-8",children:[i.jsxs(te,{title:"1. Sign Up & Log In",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Create an account on this dashboard, then authenticate the CLI:"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Rather keep everything on your own machine?"," ",i.jsx(gn,{to:"/docs?tab=local",className:"text-primary hover:underline",children:"Local Mode"})," ","runs the same product with no cloud contact — no account required."]}),i.jsx(Z,{label:"Terminal",code:`# Install the CLI
628
+ */var Do;function Vd(){if(Do)return Zn;Do=1;var e=br();function t(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function c(p,h){var g=h(),x=r({inst:{value:g,getSnapshot:h}}),m=x[0].inst,v=x[1];return s(function(){m.value=g,m.getSnapshot=h,d(m)&&v({inst:m})},[p,g,h]),o(function(){return d(m)&&v({inst:m}),p(function(){d(m)&&v({inst:m})})},[p]),a(g),g}function d(p){var h=p.getSnapshot;p=p.value;try{var g=h();return!n(p,g)}catch{return!0}}function u(p,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:c;return Zn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Zn}var Fo;function Gd(){return Fo||(Fo=1,Xn.exports=Vd()),Xn.exports}var qd=Gd();function Kd(){return qd.useSyncExternalStore(Yd,()=>!0,()=>!1)}function Yd(){return()=>{}}var Lr="Avatar",[Xd]=Ie(Lr),[Zd,oa]=Xd(Lr),sa=l.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=l.useState("idle");return i.jsx(Zd,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:i.jsx(z.span,{...r,ref:t})})});sa.displayName=Lr;var aa="AvatarImage",Jd=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,a=oa(aa,n),c=Qd(r,s),d=ke(u=>{o(u),a.onImageLoadingStatusChange(u)});return ie(()=>{c!=="idle"&&d(c)},[c,d]),c==="loaded"?i.jsx(z.img,{...s,ref:t,src:r}):null});Jd.displayName=aa;var ia="AvatarFallback",ca=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=oa(ia,n),[a,c]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(d)}},[r]),a&&s.imageLoadingStatus!=="loaded"?i.jsx(z.span,{...o,ref:t}):null});ca.displayName=ia;function $o(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Qd(e,{referrerPolicy:t,crossOrigin:n}){const r=Kd(),o=l.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[a,c]=l.useState(()=>$o(s,e));return ie(()=>{c($o(s,e))},[s,e]),ie(()=>{const d=p=>()=>{c(p)};if(!s)return;const u=d("loaded"),f=d("error");return s.addEventListener("load",u),s.addEventListener("error",f),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",u),s.removeEventListener("error",f)}},[s,n,t]),a}var Iy=sa,Oy=ca;function ef(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function tf(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const nf=["top","right","bottom","left"],Ge=Math.min,pe=Math.max,an=Math.round,Jt=Math.floor,Ne=e=>({x:e,y:e}),rf={left:"right",right:"left",bottom:"top",top:"bottom"},of={start:"end",end:"start"};function ir(e,t,n){return pe(e,Ge(t,n))}function $e(e,t){return typeof e=="function"?e(t):e}function Ue(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function Dr(e){return e==="x"?"y":"x"}function Fr(e){return e==="y"?"height":"width"}const sf=new Set(["top","bottom"]);function Ae(e){return sf.has(Ue(e))?"y":"x"}function $r(e){return Dr(Ae(e))}function af(e,t,n){n===void 0&&(n=!1);const r=gt(e),o=$r(e),s=Fr(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=cn(a)),[a,cn(a)]}function cf(e){const t=cn(e);return[cr(e),t,cr(t)]}function cr(e){return e.replace(/start|end/g,t=>of[t])}const Uo=["left","right"],Ho=["right","left"],lf=["top","bottom"],uf=["bottom","top"];function df(e,t,n){switch(e){case"top":case"bottom":return n?t?Ho:Uo:t?Uo:Ho;case"left":case"right":return t?lf:uf;default:return[]}}function ff(e,t,n,r){const o=gt(e);let s=df(Ue(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(cr)))),s}function cn(e){return e.replace(/left|right|bottom|top/g,t=>rf[t])}function pf(e){return{top:0,right:0,bottom:0,left:0,...e}}function la(e){return typeof e!="number"?pf(e):{top:e,right:e,bottom:e,left:e}}function ln(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Bo(e,t,n){let{reference:r,floating:o}=e;const s=Ae(t),a=$r(t),c=Fr(a),d=Ue(t),u=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[c]/2-o[c]/2;let g;switch(d){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(gt(t)){case"start":g[a]-=h*(n&&u?-1:1);break;case"end":g[a]+=h*(n&&u?-1:1);break}return g}async function hf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=$e(t,e),x=la(g),v=c[h?p==="floating"?"reference":"floating":p],b=ln(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),C=p==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},S=ln(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:w,strategy:d}):C);return{top:(b.top-S.top+x.top)/E.y,bottom:(S.bottom-b.bottom+x.bottom)/E.y,left:(b.left-S.left+x.left)/E.x,right:(S.right-b.right+x.right)/E.x}}const mf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Bo(u,r,d),h=r,g={},x=0;for(let v=0;v<c.length;v++){var m;const{name:b,fn:C}=c[v],{x:w,y:E,data:S,reset:M}=await C({x:f,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:hf},elements:{reference:e,floating:t}});f=w??f,p=E??p,g={...g,[b]:{...g[b],...S}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(h=M.placement),M.rects&&(u=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):M.rects),{x:f,y:p}=Bo(u,h,d)),v=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:g}},gf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:d}=t,{element:u,padding:f=0}=$e(e,t)||{};if(u==null)return{};const p=la(f),h={x:n,y:r},g=$r(o),x=Fr(g),m=await a.getDimensions(u),v=g==="y",b=v?"top":"left",C=v?"bottom":"right",w=v?"clientHeight":"clientWidth",E=s.reference[x]+s.reference[g]-h[g]-s.floating[x],S=h[g]-s.reference[g],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let k=M?M[w]:0;(!k||!await(a.isElement==null?void 0:a.isElement(M)))&&(k=c.floating[w]||s.floating[x]);const A=E/2-S/2,D=k/2-m[x]/2-1,F=Ge(p[b],D),H=Ge(p[C],D),_=F,Y=k-m[x]-H,U=k/2-m[x]/2+A,J=ir(_,U,Y),O=!d.arrow&&gt(o)!=null&&U!==J&&s.reference[x]/2-(U<_?F:H)-m[x]/2<0,K=O?U<_?U-_:U-Y:0;return{[g]:h[g]+K,data:{[g]:J,centerOffset:U-J-K,...O&&{alignmentOffset:K}},reset:O}}}),vf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:m=!0,...v}=$e(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Ue(o),C=Ae(c),w=Ue(c)===c,E=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=h||(w||!m?[cn(c)]:cf(c)),M=x!=="none";!h&&M&&S.push(...ff(c,m,x,E));const k=[c,...S],A=await d.detectOverflow(t,v),D=[];let F=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(A[b]),p){const U=af(o,a,E);D.push(A[U[0]],A[U[1]])}if(F=[...F,{placement:o,overflows:D}],!D.every(U=>U<=0)){var H,_;const U=(((H=s.flip)==null?void 0:H.index)||0)+1,J=k[U];if(J&&(!(p==="alignment"?C!==Ae(J):!1)||F.every(I=>Ae(I.placement)===C?I.overflows[0]>0:!0)))return{data:{index:U,overflows:F},reset:{placement:J}};let O=(_=F.filter(K=>K.overflows[0]<=0).sort((K,I)=>K.overflows[1]-I.overflows[1])[0])==null?void 0:_.placement;if(!O)switch(g){case"bestFit":{var Y;const K=(Y=F.filter(I=>{if(M){const j=Ae(I.placement);return j===C||j==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(j=>j>0).reduce((j,Q)=>j+Q,0)]).sort((I,j)=>I[1]-j[1])[0])==null?void 0:Y[0];K&&(O=K);break}case"initialPlacement":O=c;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function zo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wo(e){return nf.some(t=>e[t]>=0)}const yf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=$e(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),c=zo(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Wo(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),c=zo(a,n.floating);return{data:{escapedOffsets:c,escaped:Wo(c)}}}default:return{}}}}},ua=new Set(["left","top"]);async function xf(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ue(n),c=gt(n),d=Ae(n)==="y",u=ua.has(a)?-1:1,f=s&&d?-1:1,p=$e(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof x=="number"&&(g=c==="end"?x*-1:x),d?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const bf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,d=await xf(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:a}}}}},wf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:d={fn:b=>{let{x:C,y:w}=b;return{x:C,y:w}}},...u}=$e(e,t),f={x:n,y:r},p=await s.detectOverflow(t,u),h=Ae(Ue(o)),g=Dr(h);let x=f[g],m=f[h];if(a){const b=g==="y"?"top":"left",C=g==="y"?"bottom":"right",w=x+p[b],E=x-p[C];x=ir(w,x,E)}if(c){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",w=m+p[b],E=m-p[C];m=ir(w,m,E)}const v=d.fn({...t,[g]:x,[h]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:a,[h]:c}}}}}},Cf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=$e(e,t),f={x:n,y:r},p=Ae(o),h=Dr(p);let g=f[h],x=f[p];const m=$e(c,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(d){const w=h==="y"?"height":"width",E=s.reference[h]-s.floating[w]+v.mainAxis,S=s.reference[h]+s.reference[w]-v.mainAxis;g<E?g=E:g>S&&(g=S)}if(u){var b,C;const w=h==="y"?"width":"height",E=ua.has(Ue(o)),S=s.reference[p]-s.floating[w]+(E&&((b=a.offset)==null?void 0:b[p])||0)+(E?0:v.crossAxis),M=s.reference[p]+s.reference[w]+(E?0:((C=a.offset)==null?void 0:C[p])||0)-(E?v.crossAxis:0);x<S?x=S:x>M&&(x=M)}return{[h]:g,[p]:x}}}},Ef=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:d=()=>{},...u}=$e(e,t),f=await a.detectOverflow(t,u),p=Ue(o),h=gt(o),g=Ae(o)==="y",{width:x,height:m}=s.floating;let v,b;p==="top"||p==="bottom"?(v=p,b=h===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=p,v=h==="end"?"top":"bottom");const C=m-f.top-f.bottom,w=x-f.left-f.right,E=Ge(m-f[v],C),S=Ge(x-f[b],w),M=!t.middlewareData.shift;let k=E,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),M&&!h){const F=pe(f.left,0),H=pe(f.right,0),_=pe(f.top,0),Y=pe(f.bottom,0);g?A=x-2*(F!==0||H!==0?F+H:pe(f.left,f.right)):k=m-2*(_!==0||Y!==0?_+Y:pe(f.top,f.bottom))}await d({...t,availableWidth:A,availableHeight:k});const D=await a.getDimensions(c.floating);return x!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function En(){return typeof window<"u"}function vt(e){return da(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(da(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function da(e){return En()?e instanceof Node||e instanceof he(e).Node:!1}function Se(e){return En()?e instanceof Element||e instanceof he(e).Element:!1}function _e(e){return En()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function Vo(e){return!En()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}const kf=new Set(["inline","contents"]);function Ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!kf.has(o)}const Sf=new Set(["table","td","th"]);function Rf(e){return Sf.has(vt(e))}const Tf=[":popover-open",":modal"];function kn(e){return Tf.some(t=>{try{return e.matches(t)}catch{return!1}})}const Mf=["transform","translate","scale","rotate","perspective"],Pf=["transform","translate","scale","rotate","perspective","filter"],jf=["paint","layout","strict","content"];function Ur(e){const t=Hr(),n=Se(e)?Re(e):e;return Mf.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Pf.some(r=>(n.willChange||"").includes(r))||jf.some(r=>(n.contain||"").includes(r))}function Af(e){let t=qe(e);for(;_e(t)&&!dt(t);){if(Ur(t))return t;if(kn(t))return null;t=qe(t)}return null}function Hr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Nf=new Set(["html","body","#document"]);function dt(e){return Nf.has(vt(e))}function Re(e){return he(e).getComputedStyle(e)}function Sn(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qe(e){if(vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vo(e)&&e.host||Oe(e);return Vo(t)?t.host:t}function fa(e){const t=qe(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:_e(t)&&Ut(t)?t:fa(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=fa(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=he(o);if(s){const c=lr(a);return t.concat(a,a.visualViewport||[],Ut(o)?o:[],c&&n?At(c):[])}return t.concat(o,At(o,[],n))}function lr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pa(e){const t=Re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_e(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=an(n)!==s||an(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function Br(e){return Se(e)?e:e.contextElement}function lt(e){const t=Br(e);if(!_e(t))return Ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=pa(t);let a=(s?an(n.width):n.width)/r,c=(s?an(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const _f=Ne(0);function ha(e){const t=he(e);return!Hr()||!t.visualViewport?_f:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function If(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==he(e)?!1:t}function Qe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Br(e);let a=Ne(1);t&&(r?Se(r)&&(a=lt(r)):a=lt(e));const c=If(s,n,r)?ha(s):Ne(0);let d=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){const h=he(s),g=r&&Se(r)?he(r):r;let x=h,m=lr(x);for(;m&&r&&g!==x;){const v=lt(m),b=m.getBoundingClientRect(),C=Re(m),w=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*v.x,E=b.top+(m.clientTop+parseFloat(C.paddingTop))*v.y;d*=v.x,u*=v.y,f*=v.x,p*=v.y,d+=w,u+=E,x=he(m),m=lr(x)}}return ln({width:f,height:p,x:d,y:u})}function Rn(e,t){const n=Sn(e).scrollLeft;return t?t.left+n:Qe(Oe(e)).left+n}function ma(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Rn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Of(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Oe(r),c=t?kn(t.floating):!1;if(r===a||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=Ne(1);const f=Ne(0),p=_e(r);if((p||!p&&!s)&&((vt(r)!=="body"||Ut(a))&&(d=Sn(r)),_e(r))){const g=Qe(r);u=lt(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const h=a&&!p&&!s?ma(a,d):Ne(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-d.scrollTop*u.y+f.y+h.y}}function Lf(e){return Array.from(e.getClientRects())}function Df(e){const t=Oe(e),n=Sn(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Rn(e);const c=-n.scrollTop;return Re(r).direction==="rtl"&&(a+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}const Go=25;function Ff(e,t){const n=he(e),r=Oe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(o){s=o.width,a=o.height;const f=Hr();(!f||f&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}const u=Rn(r);if(u<=0){const f=r.ownerDocument,p=f.body,h=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-g);x<=Go&&(s-=x)}else u<=Go&&(s+=u);return{width:s,height:a,x:c,y:d}}const $f=new Set(["absolute","fixed"]);function Uf(e,t){const n=Qe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=_e(e)?lt(e):Ne(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,d=o*s.x,u=r*s.y;return{width:a,height:c,x:d,y:u}}function qo(e,t,n){let r;if(t==="viewport")r=Ff(e,n);else if(t==="document")r=Df(Oe(e));else if(Se(t))r=Uf(t,n);else{const o=ha(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ln(r)}function ga(e,t){const n=qe(e);return n===t||!Se(n)||dt(n)?!1:Re(n).position==="fixed"||ga(n,t)}function Hf(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(c=>Se(c)&&vt(c)!=="body"),o=null;const s=Re(e).position==="fixed";let a=s?qe(e):e;for(;Se(a)&&!dt(a);){const c=Re(a),d=Ur(a);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&$f.has(o.position)||Ut(a)&&!d&&ga(e,a))?r=r.filter(f=>f!==a):o=c,a=qe(a)}return t.set(e,r),r}function Bf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?kn(t)?[]:Hf(t,this._c):[].concat(n),r],c=a[0],d=a.reduce((u,f)=>{const p=qo(t,f,o);return u.top=pe(p.top,u.top),u.right=Ge(p.right,u.right),u.bottom=Ge(p.bottom,u.bottom),u.left=pe(p.left,u.left),u},qo(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zf(e){const{width:t,height:n}=pa(e);return{width:t,height:n}}function Wf(e,t,n){const r=_e(t),o=Oe(t),s=n==="fixed",a=Qe(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=Ne(0);function u(){d.x=Rn(o)}if(r||!r&&!s)if((vt(t)!=="body"||Ut(o))&&(c=Sn(t)),r){const g=Qe(t,!0,s,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?ma(o,c):Ne(0),p=a.left+c.scrollLeft-d.x-f.x,h=a.top+c.scrollTop-d.y-f.y;return{x:p,y:h,width:a.width,height:a.height}}function Jn(e){return Re(e).position==="static"}function Ko(e,t){if(!_e(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oe(e)===n&&(n=n.ownerDocument.body),n}function va(e,t){const n=he(e);if(kn(e))return n;if(!_e(e)){let o=qe(e);for(;o&&!dt(o);){if(Se(o)&&!Jn(o))return o;o=qe(o)}return n}let r=Ko(e,t);for(;r&&Rf(r)&&Jn(r);)r=Ko(r,t);return r&&dt(r)&&Jn(r)&&!Ur(r)?n:r||Af(e)||n}const Vf=async function(e){const t=this.getOffsetParent||va,n=this.getDimensions,r=await n(e.floating);return{reference:Wf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gf(e){return Re(e).direction==="rtl"}const qf={convertOffsetParentRelativeRectToViewportRelativeRect:Of,getDocumentElement:Oe,getClippingRect:Bf,getOffsetParent:va,getElementRects:Vf,getClientRects:Lf,getDimensions:zf,getScale:lt,isElement:Se,isRTL:Gf};function ya(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kf(e,t){let n=null,r;const o=Oe(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:f,top:p,width:h,height:g}=u;if(c||t(),!h||!g)return;const x=Jt(p),m=Jt(o.clientWidth-(f+h)),v=Jt(o.clientHeight-(p+g)),b=Jt(f),w={rootMargin:-x+"px "+-m+"px "+-v+"px "+-b+"px",threshold:pe(0,Ge(1,d))||1};let E=!0;function S(M){const k=M[0].intersectionRatio;if(k!==d){if(!E)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!ya(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return a(!0),s}function Yf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=Br(e),f=o||s?[...u?At(u):[],...At(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=u&&c?Kf(u,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(b=>{let[C]=b;C&&C.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),u&&!d&&g.observe(u),g.observe(t));let x,m=d?Qe(e):null;d&&v();function v(){const b=Qe(e);m&&!ya(m,b)&&n(),m=b,x=requestAnimationFrame(v)}return n(),()=>{var b;f.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),p==null||p(),(b=g)==null||b.disconnect(),g=null,d&&cancelAnimationFrame(x)}}const Xf=bf,Zf=wf,Jf=vf,Qf=Ef,ep=yf,Yo=gf,tp=Cf,np=(e,t,n)=>{const r=new Map,o={platform:qf,...n},s={...o.platform,_c:r};return mf(e,t,{...o,platform:s})};var rp=typeof document<"u",op=function(){},rn=rp?l.useLayoutEffect:op;function un(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!un(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!un(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function xa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xo(e,t){const n=xa(e);return Math.round(t*n)/n}function Qn(e){const t=l.useRef(e);return rn(()=>{t.current=e}),t}function sp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=l.useState(r);un(h,r)||g(r);const[x,m]=l.useState(null),[v,b]=l.useState(null),C=l.useCallback(I=>{I!==M.current&&(M.current=I,m(I))},[]),w=l.useCallback(I=>{I!==k.current&&(k.current=I,b(I))},[]),E=s||x,S=a||v,M=l.useRef(null),k=l.useRef(null),A=l.useRef(f),D=d!=null,F=Qn(d),H=Qn(o),_=Qn(u),Y=l.useCallback(()=>{if(!M.current||!k.current)return;const I={placement:t,strategy:n,middleware:h};H.current&&(I.platform=H.current),np(M.current,k.current,I).then(j=>{const Q={...j,isPositioned:_.current!==!1};U.current&&!un(A.current,Q)&&(A.current=Q,Dt.flushSync(()=>{p(Q)}))})},[h,t,n,H,_]);rn(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[u]);const U=l.useRef(!1);rn(()=>(U.current=!0,()=>{U.current=!1}),[]),rn(()=>{if(E&&(M.current=E),S&&(k.current=S),E&&S){if(F.current)return F.current(E,S,Y);Y()}},[E,S,Y,F,D]);const J=l.useMemo(()=>({reference:M,floating:k,setReference:C,setFloating:w}),[C,w]),O=l.useMemo(()=>({reference:E,floating:S}),[E,S]),K=l.useMemo(()=>{const I={position:n,left:0,top:0};if(!O.floating)return I;const j=Xo(O.floating,f.x),Q=Xo(O.floating,f.y);return c?{...I,transform:"translate("+j+"px, "+Q+"px)",...xa(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:Q}},[n,c,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:Y,refs:J,elements:O,floatingStyles:K}),[f,Y,J,O,K])}const ap=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Yo({element:r.current,padding:o}).fn(n):{}:r?Yo({element:r,padding:o}).fn(n):{}}}},ip=(e,t)=>({...Xf(e),options:[e,t]}),cp=(e,t)=>({...Zf(e),options:[e,t]}),lp=(e,t)=>({...tp(e),options:[e,t]}),up=(e,t)=>({...Jf(e),options:[e,t]}),dp=(e,t)=>({...Qf(e),options:[e,t]}),fp=(e,t)=>({...ep(e),options:[e,t]}),pp=(e,t)=>({...ap(e),options:[e,t]});var hp="Arrow",ba=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i.jsx(z.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});ba.displayName=hp;var mp=ba,zr="Popper",[wa,yt]=Ie(zr),[gp,Ca]=wa(zr),Ea=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return i.jsx(gp,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ea.displayName=zr;var ka="PopperAnchor",Sa=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ca(ka,n),a=l.useRef(null),c=ne(t,a),d=l.useRef(null);return l.useEffect(()=>{const u=d.current;d.current=(r==null?void 0:r.current)||a.current,u!==d.current&&s.onAnchorChange(d.current)}),r?null:i.jsx(z.div,{...o,ref:c})});Sa.displayName=ka;var Wr="PopperContent",[vp,yp]=wa(Wr),Ra=l.forwardRef((e,t)=>{var P,X,G,ee,re,oe;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:x,...m}=e,v=Ca(Wr,n),[b,C]=l.useState(null),w=ne(t,fe=>C(fe)),[E,S]=l.useState(null),M=tf(E),k=(M==null?void 0:M.width)??0,A=(M==null?void 0:M.height)??0,D=r+(s!=="center"?"-"+s:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(u)?u:[u],_=H.length>0,Y={padding:F,boundary:H.filter(bp),altBoundary:_},{refs:U,floatingStyles:J,placement:O,isPositioned:K,middlewareData:I}=sp({strategy:"fixed",placement:D,whileElementsMounted:(...fe)=>Yf(...fe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[ip({mainAxis:o+A,alignmentAxis:a}),d&&cp({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?lp():void 0,...Y}),d&&up({...Y}),dp({...Y,apply:({elements:fe,rects:Pe,availableWidth:wt,availableHeight:Ct})=>{const{width:Et,height:vc}=Pe.reference,Vt=fe.floating.style;Vt.setProperty("--radix-popper-available-width",`${wt}px`),Vt.setProperty("--radix-popper-available-height",`${Ct}px`),Vt.setProperty("--radix-popper-anchor-width",`${Et}px`),Vt.setProperty("--radix-popper-anchor-height",`${vc}px`)}}),E&&pp({element:E,padding:c}),wp({arrowWidth:k,arrowHeight:A}),h&&fp({strategy:"referenceHidden",...Y})]}),[j,Q]=Pa(O),y=ke(x);ie(()=>{K&&(y==null||y())},[K,y]);const T=(P=I.arrow)==null?void 0:P.x,$=(X=I.arrow)==null?void 0:X.y,L=((G=I.arrow)==null?void 0:G.centerOffset)!==0,[V,W]=l.useState();return ie(()=>{b&&W(window.getComputedStyle(b).zIndex)},[b]),i.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:V,"--radix-popper-transform-origin":[(ee=I.transformOrigin)==null?void 0:ee.x,(re=I.transformOrigin)==null?void 0:re.y].join(" "),...((oe=I.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(vp,{scope:n,placedSide:j,onArrowChange:S,arrowX:T,arrowY:$,shouldHideArrow:L,children:i.jsx(z.div,{"data-side":j,"data-align":Q,...m,ref:w,style:{...m.style,animation:K?void 0:"none"}})})})});Ra.displayName=Wr;var Ta="PopperArrow",xp={top:"bottom",right:"left",bottom:"top",left:"right"},Ma=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=yp(Ta,r),a=xp[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(mp,{...o,ref:n,style:{...o.style,display:"block"}})})});Ma.displayName=Ta;function bp(e){return e!==null}var wp=e=>({name:"transformOrigin",options:e,fn(t){var v,b,C;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,f]=Pa(n),p={start:"0%",center:"50%",end:"100%"}[f],h=(((b=o.arrow)==null?void 0:b.x)??0)+c/2,g=(((C=o.arrow)==null?void 0:C.y)??0)+d/2;let x="",m="";return u==="bottom"?(x=a?p:`${h}px`,m=`${-d}px`):u==="top"?(x=a?p:`${h}px`,m=`${r.floating.height+d}px`):u==="right"?(x=`${-d}px`,m=a?p:`${g}px`):u==="left"&&(x=`${r.floating.width+d}px`,m=a?p:`${g}px`),{data:{x,y:m}}}});function Pa(e){const[t,n="center"]=e.split("-");return[t,n]}var Vr=Ea,Gr=Sa,qr=Ra,Kr=Ma,er="rovingFocusGroup.onEntryFocus",Cp={bubbles:!1,cancelable:!0},Ht="RovingFocusGroup",[ur,ja,Ep]=jr(Ht),[kp,Tn]=Ie(Ht,[Ep]),[Sp,Rp]=kp(Ht),Aa=l.forwardRef((e,t)=>i.jsx(ur.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(ur.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Tp,{...e,ref:t})})}));Aa.displayName=Ht;var Tp=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,h=l.useRef(null),g=ne(t,h),x=yn(s),[m,v]=Ze({prop:a,defaultProp:c??null,onChange:d,caller:Ht}),[b,C]=l.useState(!1),w=ke(u),E=ja(n),S=l.useRef(!1),[M,k]=l.useState(0);return l.useEffect(()=>{const A=h.current;if(A)return A.addEventListener(er,w),()=>A.removeEventListener(er,w)},[w]),i.jsx(Sp,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(A=>v(A),[v]),onItemShiftTab:l.useCallback(()=>C(!0),[]),onFocusableItemAdd:l.useCallback(()=>k(A=>A+1),[]),onFocusableItemRemove:l.useCallback(()=>k(A=>A-1),[]),children:i.jsx(z.div,{tabIndex:b||M===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{S.current=!0}),onFocus:N(e.onFocus,A=>{const D=!S.current;if(A.target===A.currentTarget&&D&&!b){const F=new CustomEvent(er,Cp);if(A.currentTarget.dispatchEvent(F),!F.defaultPrevented){const H=E().filter(O=>O.focusable),_=H.find(O=>O.active),Y=H.find(O=>O.id===m),J=[_,Y,...H].filter(Boolean).map(O=>O.ref.current);Ia(J,f)}}S.current=!1}),onBlur:N(e.onBlur,()=>C(!1))})})}),Na="RovingFocusGroupItem",_a=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...c}=e,d=Ee(),u=s||d,f=Rp(Na,n),p=f.currentTabStopId===u,h=ja(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:m}=f;return l.useEffect(()=>{if(r)return g(),()=>x()},[r,g,x]),i.jsx(ur.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:i.jsx(z.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:N(e.onMouseDown,v=>{r?f.onItemFocus(u):v.preventDefault()}),onFocus:N(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:N(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=jp(v,f.orientation,f.dir);if(b!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=h().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const E=w.indexOf(v.currentTarget);w=f.loop?Ap(w,E+1):w.slice(E+1)}setTimeout(()=>Ia(w))}}),children:typeof a=="function"?a({isCurrentTabStop:p,hasTabStop:m!=null}):a})})});_a.displayName=Na;var Mp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Pp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function jp(e,t,n){const r=Pp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Mp[r]}function Ia(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ap(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Oa=Aa,La=_a,dr=["Enter"," "],Np=["ArrowDown","PageUp","Home"],Da=["ArrowUp","PageDown","End"],_p=[...Np,...Da],Ip={ltr:[...dr,"ArrowRight"],rtl:[...dr,"ArrowLeft"]},Op={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Bt="Menu",[Nt,Lp,Dp]=jr(Bt),[nt,Fa]=Ie(Bt,[Dp,yt,Tn]),Mn=yt(),$a=Tn(),[Fp,rt]=nt(Bt),[$p,zt]=nt(Bt),Ua=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,c=Mn(t),[d,u]=l.useState(null),f=l.useRef(!1),p=ke(s),h=yn(o);return l.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),i.jsx(Vr,{...c,children:i.jsx(Fp,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:u,children:i.jsx($p,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:a,children:r})})})};Ua.displayName=Bt;var Up="MenuAnchor",Yr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mn(n);return i.jsx(Gr,{...o,...r,ref:t})});Yr.displayName=Up;var Xr="MenuPortal",[Hp,Ha]=nt(Xr,{forceMount:void 0}),Ba=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=rt(Xr,t);return i.jsx(Hp,{scope:t,forceMount:n,children:i.jsx(Te,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:r})})})};Ba.displayName=Xr;var ye="MenuContent",[Bp,Zr]=nt(ye),za=l.forwardRef((e,t)=>{const n=Ha(ye,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=rt(ye,e.__scopeMenu),a=zt(ye,e.__scopeMenu);return i.jsx(Nt.Provider,{scope:e.__scopeMenu,children:i.jsx(Te,{present:r||s.open,children:i.jsx(Nt.Slot,{scope:e.__scopeMenu,children:a.modal?i.jsx(zp,{...o,ref:t}):i.jsx(Wp,{...o,ref:t})})})})}),zp=l.forwardRef((e,t)=>{const n=rt(ye,e.__scopeMenu),r=l.useRef(null),o=ne(t,r);return l.useEffect(()=>{const s=r.current;if(s)return Nr(s)},[]),i.jsx(Jr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Wp=l.forwardRef((e,t)=>{const n=rt(ye,e.__scopeMenu);return i.jsx(Jr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Vp=Xe("MenuContent.ScrollLock"),Jr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:g,disableOutsideScroll:x,...m}=e,v=rt(ye,n),b=zt(ye,n),C=Mn(n),w=$a(n),E=Lp(n),[S,M]=l.useState(null),k=l.useRef(null),A=ne(t,k,v.onContentChange),D=l.useRef(0),F=l.useRef(""),H=l.useRef(0),_=l.useRef(null),Y=l.useRef("right"),U=l.useRef(0),J=x?wn:l.Fragment,O=x?{as:Vp,allowPinchZoom:!0}:void 0,K=j=>{var P,X;const Q=F.current+j,y=E().filter(G=>!G.disabled),T=document.activeElement,$=(P=y.find(G=>G.ref.current===T))==null?void 0:P.textValue,L=y.map(G=>G.textValue),V=rh(L,Q,$),W=(X=y.find(G=>G.textValue===V))==null?void 0:X.ref.current;(function G(ee){F.current=ee,window.clearTimeout(D.current),ee!==""&&(D.current=window.setTimeout(()=>G(""),1e3))})(Q),W&&setTimeout(()=>W.focus())};l.useEffect(()=>()=>window.clearTimeout(D.current),[]),Ar();const I=l.useCallback(j=>{var y,T;return Y.current===((y=_.current)==null?void 0:y.side)&&sh(j,(T=_.current)==null?void 0:T.area)},[]);return i.jsx(Bp,{scope:n,searchRef:F,onItemEnter:l.useCallback(j=>{I(j)&&j.preventDefault()},[I]),onItemLeave:l.useCallback(j=>{var Q;I(j)||((Q=k.current)==null||Q.focus(),M(null))},[I]),onTriggerLeave:l.useCallback(j=>{I(j)&&j.preventDefault()},[I]),pointerGraceTimerRef:H,onPointerGraceIntentChange:l.useCallback(j=>{_.current=j},[]),children:i.jsx(J,{...O,children:i.jsx(xn,{asChild:!0,trapped:o,onMountAutoFocus:N(s,j=>{var Q;j.preventDefault(),(Q=k.current)==null||Q.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:g,children:i.jsx(Oa,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:M,onEntryFocus:N(d,j=>{b.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(qr,{role:"menu","aria-orientation":"vertical","data-state":si(v.open),"data-radix-menu-content":"",dir:b.dir,...C,...m,ref:A,style:{outline:"none",...m.style},onKeyDown:N(m.onKeyDown,j=>{const y=j.target.closest("[data-radix-menu-content]")===j.currentTarget,T=j.ctrlKey||j.altKey||j.metaKey,$=j.key.length===1;y&&(j.key==="Tab"&&j.preventDefault(),!T&&$&&K(j.key));const L=k.current;if(j.target!==L||!_p.includes(j.key))return;j.preventDefault();const W=E().filter(P=>!P.disabled).map(P=>P.ref.current);Da.includes(j.key)&&W.reverse(),th(W)}),onBlur:N(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(D.current),F.current="")}),onPointerMove:N(e.onPointerMove,_t(j=>{const Q=j.target,y=U.current!==j.clientX;if(j.currentTarget.contains(Q)&&y){const T=j.clientX>U.current?"right":"left";Y.current=T,U.current=j.clientX}}))})})})})})})});za.displayName=ye;var Gp="MenuGroup",Qr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{role:"group",...r,ref:t})});Qr.displayName=Gp;var qp="MenuLabel",Wa=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{...r,ref:t})});Wa.displayName=qp;var dn="MenuItem",Zo="menu.itemSelect",Pn=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=zt(dn,e.__scopeMenu),c=Zr(dn,e.__scopeMenu),d=ne(t,s),u=l.useRef(!1),f=()=>{const p=s.current;if(!n&&p){const h=new CustomEvent(Zo,{bubbles:!0,cancelable:!0});p.addEventListener(Zo,g=>r==null?void 0:r(g),{once:!0}),Ms(p,h),h.defaultPrevented?u.current=!1:a.onClose()}};return i.jsx(Va,{...o,ref:d,disabled:n,onClick:N(e.onClick,f),onPointerDown:p=>{var h;(h=e.onPointerDown)==null||h.call(e,p),u.current=!0},onPointerUp:N(e.onPointerUp,p=>{var h;u.current||(h=p.currentTarget)==null||h.click()}),onKeyDown:N(e.onKeyDown,p=>{const h=c.searchRef.current!=="";n||h&&p.key===" "||dr.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Pn.displayName=dn;var Va=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=Zr(dn,n),c=$a(n),d=l.useRef(null),u=ne(t,d),[f,p]=l.useState(!1),[h,g]=l.useState("");return l.useEffect(()=>{const x=d.current;x&&g((x.textContent??"").trim())},[s.children]),i.jsx(Nt.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:i.jsx(La,{asChild:!0,...c,focusable:!r,children:i.jsx(z.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:N(e.onPointerMove,_t(x=>{r?a.onItemLeave(x):(a.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:N(e.onPointerLeave,_t(x=>a.onItemLeave(x))),onFocus:N(e.onFocus,()=>p(!0)),onBlur:N(e.onBlur,()=>p(!1))})})})}),Kp="MenuCheckboxItem",Ga=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.jsx(Za,{scope:e.__scopeMenu,checked:n,children:i.jsx(Pn,{role:"menuitemcheckbox","aria-checked":fn(n)?"mixed":n,...o,ref:t,"data-state":to(n),onSelect:N(o.onSelect,()=>r==null?void 0:r(fn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ga.displayName=Kp;var qa="MenuRadioGroup",[Yp,Xp]=nt(qa,{value:void 0,onValueChange:()=>{}}),Ka=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=ke(r);return i.jsx(Yp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:i.jsx(Qr,{...o,ref:t})})});Ka.displayName=qa;var Ya="MenuRadioItem",Xa=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=Xp(Ya,e.__scopeMenu),s=n===o.value;return i.jsx(Za,{scope:e.__scopeMenu,checked:s,children:i.jsx(Pn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":to(s),onSelect:N(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});Xa.displayName=Ya;var eo="MenuItemIndicator",[Za,Zp]=nt(eo,{checked:!1}),Ja=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Zp(eo,n);return i.jsx(Te,{present:r||fn(s.checked)||s.checked===!0,children:i.jsx(z.span,{...o,ref:t,"data-state":to(s.checked)})})});Ja.displayName=eo;var Jp="MenuSeparator",Qa=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Qa.displayName=Jp;var Qp="MenuArrow",ei=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mn(n);return i.jsx(Kr,{...o,...r,ref:t})});ei.displayName=Qp;var eh="MenuSub",[Ly,ti]=nt(eh),Mt="MenuSubTrigger",ni=l.forwardRef((e,t)=>{const n=rt(Mt,e.__scopeMenu),r=zt(Mt,e.__scopeMenu),o=ti(Mt,e.__scopeMenu),s=Zr(Mt,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,u={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>f,[f]),l.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),d(null)}},[c,d]),i.jsx(Yr,{asChild:!0,...u,children:i.jsx(Va,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":si(n.open),...e,ref:vn(t,o.onTriggerChange),onClick:p=>{var h;(h=e.onClick)==null||h.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:N(e.onPointerMove,_t(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:N(e.onPointerLeave,_t(p=>{var g,x;f();const h=(g=n.content)==null?void 0:g.getBoundingClientRect();if(h){const m=(x=n.content)==null?void 0:x.dataset.side,v=m==="right",b=v?-5:5,C=h[v?"left":"right"],w=h[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+b,y:p.clientY},{x:C,y:h.top},{x:w,y:h.top},{x:w,y:h.bottom},{x:C,y:h.bottom}],side:m}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:N(e.onKeyDown,p=>{var g;const h=s.searchRef.current!=="";e.disabled||h&&p.key===" "||Ip[r.dir].includes(p.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),p.preventDefault())})})})});ni.displayName=Mt;var ri="MenuSubContent",oi=l.forwardRef((e,t)=>{const n=Ha(ye,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=rt(ye,e.__scopeMenu),a=zt(ye,e.__scopeMenu),c=ti(ri,e.__scopeMenu),d=l.useRef(null),u=ne(t,d);return i.jsx(Nt.Provider,{scope:e.__scopeMenu,children:i.jsx(Te,{present:r||s.open,children:i.jsx(Nt.Slot,{scope:e.__scopeMenu,children:i.jsx(Jr,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;a.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:N(e.onFocusOutside,f=>{f.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:N(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:N(e.onKeyDown,f=>{var g;const p=f.currentTarget.contains(f.target),h=Op[a.dir].includes(f.key);p&&h&&(s.onOpenChange(!1),(g=c.trigger)==null||g.focus(),f.preventDefault())})})})})})});oi.displayName=ri;function si(e){return e?"open":"closed"}function fn(e){return e==="indeterminate"}function to(e){return fn(e)?"indeterminate":e?"checked":"unchecked"}function th(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function nh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function rh(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=nh(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function oh(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],d=t[a],u=c.x,f=c.y,p=d.x,h=d.y;f>r!=h>r&&n<(p-u)*(r-f)/(h-f)+u&&(o=!o)}return o}function sh(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return oh(n,t)}function _t(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ah=Ua,ih=Yr,ch=Ba,lh=za,uh=Qr,dh=Wa,fh=Pn,ph=Ga,hh=Ka,mh=Xa,gh=Ja,vh=Qa,yh=ei,xh=ni,bh=oi,jn="DropdownMenu",[wh]=Ie(jn,[Fa]),le=Fa(),[Ch,ai]=wh(jn),ii=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,d=le(t),u=l.useRef(null),[f,p]=Ze({prop:o,defaultProp:s??!1,onChange:a,caller:jn});return i.jsx(Ch,{scope:t,triggerId:Ee(),triggerRef:u,contentId:Ee(),open:f,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(h=>!h),[p]),modal:c,children:i.jsx(ah,{...d,open:f,onOpenChange:p,dir:r,modal:c,children:n})})};ii.displayName=jn;var ci="DropdownMenuTrigger",li=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=ai(ci,n),a=le(n);return i.jsx(ih,{asChild:!0,...a,children:i.jsx(z.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:vn(t,s.triggerRef),onPointerDown:N(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:N(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});li.displayName=ci;var Eh="DropdownMenuPortal",ui=e=>{const{__scopeDropdownMenu:t,...n}=e,r=le(t);return i.jsx(ch,{...r,...n})};ui.displayName=Eh;var di="DropdownMenuContent",fi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ai(di,n),s=le(n),a=l.useRef(!1);return i.jsx(lh,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:N(e.onCloseAutoFocus,c=>{var d;a.current||(d=o.triggerRef.current)==null||d.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:N(e.onInteractOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!o.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});fi.displayName=di;var kh="DropdownMenuGroup",Sh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(uh,{...o,...r,ref:t})});Sh.displayName=kh;var Rh="DropdownMenuLabel",pi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(dh,{...o,...r,ref:t})});pi.displayName=Rh;var Th="DropdownMenuItem",hi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(fh,{...o,...r,ref:t})});hi.displayName=Th;var Mh="DropdownMenuCheckboxItem",Ph=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(ph,{...o,...r,ref:t})});Ph.displayName=Mh;var jh="DropdownMenuRadioGroup",Ah=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(hh,{...o,...r,ref:t})});Ah.displayName=jh;var Nh="DropdownMenuRadioItem",_h=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(mh,{...o,...r,ref:t})});_h.displayName=Nh;var Ih="DropdownMenuItemIndicator",Oh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(gh,{...o,...r,ref:t})});Oh.displayName=Ih;var Lh="DropdownMenuSeparator",mi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(vh,{...o,...r,ref:t})});mi.displayName=Lh;var Dh="DropdownMenuArrow",Fh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(yh,{...o,...r,ref:t})});Fh.displayName=Dh;var $h="DropdownMenuSubTrigger",Uh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(xh,{...o,...r,ref:t})});Uh.displayName=$h;var Hh="DropdownMenuSubContent",Bh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(bh,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Bh.displayName=Hh;var Dy=ii,Fy=li,$y=ui,Uy=fi,Hy=pi,By=hi,zy=mi,zh="Label",gi=l.forwardRef((e,t)=>i.jsx(z.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));gi.displayName=zh;var Wy=gi;function Jo(e,[t,n]){return Math.min(n,Math.max(t,e))}var Wh=[" ","Enter","ArrowUp","ArrowDown"],Vh=[" ","Enter"],et="Select",[An,Nn,Gh]=jr(et),[xt]=Ie(et,[Gh,yt]),_n=yt(),[qh,Ke]=xt(et),[Kh,Yh]=xt(et),vi=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:c,onValueChange:d,dir:u,name:f,autoComplete:p,disabled:h,required:g,form:x}=e,m=_n(t),[v,b]=l.useState(null),[C,w]=l.useState(null),[E,S]=l.useState(!1),M=yn(u),[k,A]=Ze({prop:r,defaultProp:o??!1,onChange:s,caller:et}),[D,F]=Ze({prop:a,defaultProp:c,onChange:d,caller:et}),H=l.useRef(null),_=v?x||!!v.closest("form"):!0,[Y,U]=l.useState(new Set),J=Array.from(Y).map(O=>O.props.value).join(";");return i.jsx(Vr,{...m,children:i.jsxs(qh,{required:g,scope:t,trigger:v,onTriggerChange:b,valueNode:C,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:S,contentId:Ee(),value:D,onValueChange:F,open:k,onOpenChange:A,dir:M,triggerPointerDownPosRef:H,disabled:h,children:[i.jsx(An.Provider,{scope:t,children:i.jsx(Kh,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(O=>{U(K=>new Set(K).add(O))},[]),onNativeOptionRemove:l.useCallback(O=>{U(K=>{const I=new Set(K);return I.delete(O),I})},[]),children:n})}),_?i.jsxs($i,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:O=>F(O.target.value),disabled:h,form:x,children:[D===void 0?i.jsx("option",{value:""}):null,Array.from(Y)]},J):null]})})};vi.displayName=et;var yi="SelectTrigger",xi=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=_n(n),a=Ke(yi,n),c=a.disabled||r,d=ne(t,a.onTriggerChange),u=Nn(n),f=l.useRef("touch"),[p,h,g]=Hi(m=>{const v=u().filter(w=>!w.disabled),b=v.find(w=>w.value===a.value),C=Bi(v,m,b);C!==void 0&&a.onValueChange(C.value)}),x=m=>{c||(a.onOpenChange(!0),g()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return i.jsx(Gr,{asChild:!0,...s,children:i.jsx(z.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Ui(a.value)?"":void 0,...o,ref:d,onClick:N(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&x(m)}),onPointerDown:N(o.onPointerDown,m=>{f.current=m.pointerType;const v=m.target;v.hasPointerCapture(m.pointerId)&&v.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(x(m),m.preventDefault())}),onKeyDown:N(o.onKeyDown,m=>{const v=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(v&&m.key===" ")&&Wh.includes(m.key)&&(x(),m.preventDefault())})})})});xi.displayName=yi;var bi="SelectValue",wi=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,d=Ke(bi,n),{onValueNodeHasChildrenChange:u}=d,f=s!==void 0,p=ne(t,d.onValueNodeChange);return ie(()=>{u(f)},[u,f]),i.jsx(z.span,{...c,ref:p,style:{pointerEvents:"none"},children:Ui(d.value)?i.jsx(i.Fragment,{children:a}):s})});wi.displayName=bi;var Xh="SelectIcon",Ci=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ci.displayName=Xh;var Zh="SelectPortal",Ei=e=>i.jsx($t,{asChild:!0,...e});Ei.displayName=Zh;var tt="SelectContent",ki=l.forwardRef((e,t)=>{const n=Ke(tt,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Dt.createPortal(i.jsx(Si,{scope:e.__scopeSelect,children:i.jsx(An.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),s):null}return i.jsx(Ri,{...e,ref:t})});ki.displayName=tt;var Ce=10,[Si,Ye]=xt(tt),Jh="SelectContentImpl",Qh=Xe("SelectContent.RemoveScroll"),Ri=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:x,hideWhenDetached:m,avoidCollisions:v,...b}=e,C=Ke(tt,n),[w,E]=l.useState(null),[S,M]=l.useState(null),k=ne(t,P=>E(P)),[A,D]=l.useState(null),[F,H]=l.useState(null),_=Nn(n),[Y,U]=l.useState(!1),J=l.useRef(!1);l.useEffect(()=>{if(w)return Nr(w)},[w]),Ar();const O=l.useCallback(P=>{const[X,...G]=_().map(oe=>oe.ref.current),[ee]=G.slice(-1),re=document.activeElement;for(const oe of P)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===X&&S&&(S.scrollTop=0),oe===ee&&S&&(S.scrollTop=S.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[_,S]),K=l.useCallback(()=>O([A,w]),[O,A,w]);l.useEffect(()=>{Y&&K()},[Y,K]);const{onOpenChange:I,triggerPointerDownPosRef:j}=C;l.useEffect(()=>{if(w){let P={x:0,y:0};const X=ee=>{var re,oe;P={x:Math.abs(Math.round(ee.pageX)-(((re=j.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((oe=j.current)==null?void 0:oe.y)??0))}},G=ee=>{P.x<=10&&P.y<=10?ee.preventDefault():w.contains(ee.target)||I(!1),document.removeEventListener("pointermove",X),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",G,{capture:!0})}}},[w,I,j]),l.useEffect(()=>{const P=()=>I(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[I]);const[Q,y]=Hi(P=>{const X=_().filter(re=>!re.disabled),G=X.find(re=>re.ref.current===document.activeElement),ee=Bi(X,P,G);ee&&setTimeout(()=>ee.ref.current.focus())}),T=l.useCallback((P,X,G)=>{const ee=!J.current&&!G;(C.value!==void 0&&C.value===X||ee)&&(D(P),ee&&(J.current=!0))},[C.value]),$=l.useCallback(()=>w==null?void 0:w.focus(),[w]),L=l.useCallback((P,X,G)=>{const ee=!J.current&&!G;(C.value!==void 0&&C.value===X||ee)&&H(P)},[C.value]),V=r==="popper"?fr:Ti,W=V===fr?{side:c,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:x,hideWhenDetached:m,avoidCollisions:v}:{};return i.jsx(Si,{scope:n,content:w,viewport:S,onViewportChange:M,itemRefCallback:T,selectedItem:A,onItemLeave:$,itemTextRefCallback:L,focusSelectedItem:K,selectedItemText:F,position:r,isPositioned:Y,searchRef:Q,children:i.jsx(wn,{as:Qh,allowPinchZoom:!0,children:i.jsx(xn,{asChild:!0,trapped:C.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:N(o,P=>{var X;(X=C.trigger)==null||X.focus({preventScroll:!0}),P.preventDefault()}),children:i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:i.jsx(V,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:P=>P.preventDefault(),...b,...W,onPlaced:()=>U(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:N(b.onKeyDown,P=>{const X=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!X&&P.key.length===1&&y(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let ee=_().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(P.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const re=P.target,oe=ee.indexOf(re);ee=ee.slice(oe+1)}setTimeout(()=>O(ee)),P.preventDefault()}})})})})})})});Ri.displayName=Jh;var em="SelectItemAlignedPosition",Ti=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ke(tt,n),a=Ye(tt,n),[c,d]=l.useState(null),[u,f]=l.useState(null),p=ne(t,k=>f(k)),h=Nn(n),g=l.useRef(!1),x=l.useRef(!0),{viewport:m,selectedItem:v,selectedItemText:b,focusSelectedItem:C}=a,w=l.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&m&&v&&b){const k=s.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),D=s.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(s.dir!=="rtl"){const re=F.left-A.left,oe=D.left-re,fe=k.left-oe,Pe=k.width+fe,wt=Math.max(Pe,A.width),Ct=window.innerWidth-Ce,Et=Jo(oe,[Ce,Math.max(Ce,Ct-wt)]);c.style.minWidth=Pe+"px",c.style.left=Et+"px"}else{const re=A.right-F.right,oe=window.innerWidth-D.right-re,fe=window.innerWidth-k.right-oe,Pe=k.width+fe,wt=Math.max(Pe,A.width),Ct=window.innerWidth-Ce,Et=Jo(oe,[Ce,Math.max(Ce,Ct-wt)]);c.style.minWidth=Pe+"px",c.style.right=Et+"px"}const H=h(),_=window.innerHeight-Ce*2,Y=m.scrollHeight,U=window.getComputedStyle(u),J=parseInt(U.borderTopWidth,10),O=parseInt(U.paddingTop,10),K=parseInt(U.borderBottomWidth,10),I=parseInt(U.paddingBottom,10),j=J+O+Y+I+K,Q=Math.min(v.offsetHeight*5,j),y=window.getComputedStyle(m),T=parseInt(y.paddingTop,10),$=parseInt(y.paddingBottom,10),L=k.top+k.height/2-Ce,V=_-L,W=v.offsetHeight/2,P=v.offsetTop+W,X=J+O+P,G=j-X;if(X<=L){const re=H.length>0&&v===H[H.length-1].ref.current;c.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(V,W+(re?$:0)+oe+K),Pe=X+fe;c.style.height=Pe+"px"}else{const re=H.length>0&&v===H[0].ref.current;c.style.top="0px";const fe=Math.max(L,J+m.offsetTop+(re?T:0)+W)+G;c.style.height=fe+"px",m.scrollTop=X-L+m.offsetTop}c.style.margin=`${Ce}px 0`,c.style.minHeight=Q+"px",c.style.maxHeight=_+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,c,u,m,v,b,s.dir,r]);ie(()=>w(),[w]);const[E,S]=l.useState();ie(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const M=l.useCallback(k=>{k&&x.current===!0&&(w(),C==null||C(),x.current=!1)},[w,C]);return i.jsx(nm,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:M,children:i.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:i.jsx(z.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ti.displayName=em;var tm="SelectPopperPosition",fr=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ce,...s}=e,a=_n(n);return i.jsx(qr,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});fr.displayName=tm;var[nm,no]=xt(tt,{}),pr="SelectViewport",Mi=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Ye(pr,n),a=no(pr,n),c=ne(t,s.onViewportChange),d=l.useRef(0);return i.jsxs(i.Fragment,{children:[i.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:r}),i.jsx(An.Slot,{scope:n,children:i.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:N(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&p){const g=Math.abs(d.current-f.scrollTop);if(g>0){const x=window.innerHeight-Ce*2,m=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),b=Math.max(m,v);if(b<x){const C=b+g,w=Math.min(x,C),E=C-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});Mi.displayName=pr;var Pi="SelectGroup",[rm,om]=xt(Pi),sm=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ee();return i.jsx(rm,{scope:n,id:o,children:i.jsx(z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});sm.displayName=Pi;var ji="SelectLabel",am=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=om(ji,n);return i.jsx(z.div,{id:o.id,...r,ref:t})});am.displayName=ji;var pn="SelectItem",[im,Ai]=xt(pn),Ni=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=Ke(pn,n),d=Ye(pn,n),u=c.value===r,[f,p]=l.useState(s??""),[h,g]=l.useState(!1),x=ne(t,C=>{var w;return(w=d.itemRefCallback)==null?void 0:w.call(d,C,r,o)}),m=Ee(),v=l.useRef("touch"),b=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")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 i.jsx(im,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(C=>{p(w=>w||((C==null?void 0:C.textContent)??"").trim())},[]),children:i.jsx(An.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:i.jsx(z.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:x,onFocus:N(a.onFocus,()=>g(!0)),onBlur:N(a.onBlur,()=>g(!1)),onClick:N(a.onClick,()=>{v.current!=="mouse"&&b()}),onPointerUp:N(a.onPointerUp,()=>{v.current==="mouse"&&b()}),onPointerDown:N(a.onPointerDown,C=>{v.current=C.pointerType}),onPointerMove:N(a.onPointerMove,C=>{var w;v.current=C.pointerType,o?(w=d.onItemLeave)==null||w.call(d):v.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(a.onPointerLeave,C=>{var w;C.currentTarget===document.activeElement&&((w=d.onItemLeave)==null||w.call(d))}),onKeyDown:N(a.onKeyDown,C=>{var E;((E=d.searchRef)==null?void 0:E.current)!==""&&C.key===" "||(Vh.includes(C.key)&&b(),C.key===" "&&C.preventDefault())})})})})});Ni.displayName=pn;var Pt="SelectItemText",_i=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Ke(Pt,n),c=Ye(Pt,n),d=Ai(Pt,n),u=Yh(Pt,n),[f,p]=l.useState(null),h=ne(t,b=>p(b),d.onItemTextChange,b=>{var C;return(C=c.itemTextRefCallback)==null?void 0:C.call(c,b,d.value,d.disabled)}),g=f==null?void 0:f.textContent,x=l.useMemo(()=>i.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=u;return ie(()=>(m(x),()=>v(x)),[m,v,x]),i.jsxs(i.Fragment,{children:[i.jsx(z.span,{id:d.textId,...s,ref:h}),d.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Dt.createPortal(s.children,a.valueNode):null]})});_i.displayName=Pt;var Ii="SelectItemIndicator",Oi=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ai(Ii,n).isSelected?i.jsx(z.span,{"aria-hidden":!0,...r,ref:t}):null});Oi.displayName=Ii;var hr="SelectScrollUpButton",Li=l.forwardRef((e,t)=>{const n=Ye(hr,e.__scopeSelect),r=no(hr,e.__scopeSelect),[o,s]=l.useState(!1),a=ne(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;s(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?i.jsx(Fi,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});Li.displayName=hr;var mr="SelectScrollDownButton",Di=l.forwardRef((e,t)=>{const n=Ye(mr,e.__scopeSelect),r=no(mr,e.__scopeSelect),[o,s]=l.useState(!1),a=ne(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<u;s(f)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?i.jsx(Fi,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});Di.displayName=mr;var Fi=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Ye("SelectScrollButton",n),a=l.useRef(null),c=Nn(n),d=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>d(),[d]),ie(()=>{var f;const u=c().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[c]),i.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:N(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:N(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:N(o.onPointerLeave,()=>{d()})})}),cm="SelectSeparator",lm=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(z.div,{"aria-hidden":!0,...r,ref:t})});lm.displayName=cm;var gr="SelectArrow",um=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_n(n),s=Ke(gr,n),a=Ye(gr,n);return s.open&&a.position==="popper"?i.jsx(Kr,{...o,...r,ref:t}):null});um.displayName=gr;var dm="SelectBubbleInput",$i=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=ne(r,o),a=ef(t);return l.useEffect(()=>{const c=o.current;if(!c)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(a!==t&&f){const p=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(p)}},[a,t]),i.jsx(z.select,{...n,style:{...Ps,...n.style},ref:s,defaultValue:t})});$i.displayName=dm;function Ui(e){return e===""||e===void 0}function Hi(e){const t=ke(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(a=>{const c=n.current+a;t(c),(function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(c)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Bi(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=fm(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function fm(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Vy=vi,Gy=xi,qy=wi,Ky=Ci,Yy=Ei,Xy=ki,Zy=Mi,Jy=Ni,Qy=_i,ex=Oi,tx=Li,nx=Di,pm="Separator",Qo="horizontal",hm=["horizontal","vertical"],zi=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Qo,...o}=e,s=mm(r)?r:Qo,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return i.jsx(z.div,{"data-orientation":s,...c,...o,ref:t})});zi.displayName=pm;function mm(e){return hm.includes(e)}var rx=zi,In="Tabs",[gm]=Ie(In,[Tn]),Wi=Tn(),[vm,ro]=gm(In),Vi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:c,activationMode:d="automatic",...u}=e,f=yn(c),[p,h]=Ze({prop:r,onChange:o,defaultProp:s??"",caller:In});return i.jsx(vm,{scope:n,baseId:Ee(),value:p,onValueChange:h,orientation:a,dir:f,activationMode:d,children:i.jsx(z.div,{dir:f,"data-orientation":a,...u,ref:t})})});Vi.displayName=In;var Gi="TabsList",qi=l.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=ro(Gi,n),a=Wi(n);return i.jsx(Oa,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:r,children:i.jsx(z.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});qi.displayName=Gi;var Ki="TabsTrigger",Yi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,a=ro(Ki,n),c=Wi(n),d=Ji(a.baseId,r),u=Qi(a.baseId,r),f=r===a.value;return i.jsx(La,{asChild:!0,...c,focusable:!o,active:f,children:i.jsx(z.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:N(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?a.onValueChange(r):p.preventDefault()}),onKeyDown:N(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&a.onValueChange(r)}),onFocus:N(e.onFocus,()=>{const p=a.activationMode!=="manual";!f&&!o&&p&&a.onValueChange(r)})})})});Yi.displayName=Ki;var Xi="TabsContent",Zi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...a}=e,c=ro(Xi,n),d=Ji(c.baseId,r),u=Qi(c.baseId,r),f=r===c.value,p=l.useRef(f);return l.useEffect(()=>{const h=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(h)},[]),i.jsx(Te,{present:o||f,children:({present:h})=>i.jsx(z.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!h,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:h&&s})})});Zi.displayName=Xi;function Ji(e,t){return`${e}-trigger-${t}`}function Qi(e,t){return`${e}-content-${t}`}var ym=Vi,xm=qi,bm=Yi,wm=Zi,[On]=Ie("Tooltip",[yt]),Ln=yt(),ec="TooltipProvider",Cm=700,vr="tooltip.open",[Em,oo]=On(ec),tc=e=>{const{__scopeTooltip:t,delayDuration:n=Cm,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),i.jsx(Em,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(u=>{c.current=u},[]),disableHoverableContent:o,children:s})};tc.displayName=ec;var It="Tooltip",[km,Wt]=On(It),nc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=oo(It,e.__scopeTooltip),u=Ln(t),[f,p]=l.useState(null),h=Ee(),g=l.useRef(0),x=a??d.disableHoverableContent,m=c??d.delayDuration,v=l.useRef(!1),[b,C]=Ze({prop:r,defaultProp:o??!1,onChange:k=>{k?(d.onOpen(),document.dispatchEvent(new CustomEvent(vr))):d.onClose(),s==null||s(k)},caller:It}),w=l.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),E=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,C(!0)},[C]),S=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,C(!1)},[C]),M=l.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,C(!0),g.current=0},m)},[m,C]);return l.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),i.jsx(Vr,{...u,children:i.jsx(km,{scope:t,contentId:h,open:b,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{d.isOpenDelayedRef.current?M():E()},[d.isOpenDelayedRef,M,E]),onTriggerLeave:l.useCallback(()=>{x?S():(window.clearTimeout(g.current),g.current=0)},[S,x]),onOpen:E,onClose:S,disableHoverableContent:x,children:n})})};nc.displayName=It;var yr="TooltipTrigger",rc=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(yr,n),s=oo(yr,n),a=Ln(n),c=l.useRef(null),d=ne(t,c,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),i.jsx(Gr,{asChild:!0,...a,children:i.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:N(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:N(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:N(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:N(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:N(e.onBlur,o.onClose),onClick:N(e.onClick,o.onClose)})})});rc.displayName=yr;var so="TooltipPortal",[Sm,Rm]=On(so,{forceMount:void 0}),oc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Wt(so,t);return i.jsx(Sm,{scope:t,forceMount:n,children:i.jsx(Te,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:r})})})};oc.displayName=so;var ft="TooltipContent",sc=l.forwardRef((e,t)=>{const n=Rm(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Wt(ft,e.__scopeTooltip);return i.jsx(Te,{present:r||a.open,children:a.disableHoverableContent?i.jsx(ac,{side:o,...s,ref:t}):i.jsx(Tm,{side:o,...s,ref:t})})}),Tm=l.forwardRef((e,t)=>{const n=Wt(ft,e.__scopeTooltip),r=oo(ft,e.__scopeTooltip),o=l.useRef(null),s=ne(t,o),[a,c]=l.useState(null),{trigger:d,onClose:u}=n,f=o.current,{onPointerInTransitChange:p}=r,h=l.useCallback(()=>{c(null),p(!1)},[p]),g=l.useCallback((x,m)=>{const v=x.currentTarget,b={x:x.clientX,y:x.clientY},C=Am(b,v.getBoundingClientRect()),w=Nm(b,C),E=_m(m.getBoundingClientRect()),S=Om([...w,...E]);c(S),p(!0)},[p]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(d&&f){const x=v=>g(v,f),m=v=>g(v,d);return d.addEventListener("pointerleave",x),f.addEventListener("pointerleave",m),()=>{d.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",m)}}},[d,f,g,h]),l.useEffect(()=>{if(a){const x=m=>{const v=m.target,b={x:m.clientX,y:m.clientY},C=(d==null?void 0:d.contains(v))||(f==null?void 0:f.contains(v)),w=!Im(b,a);C?h():w&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[d,f,a,u,h]),i.jsx(ac,{...e,ref:s})}),[Mm,Pm]=On(It,{isInside:!1}),jm=vu("TooltipContent"),ac=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,d=Wt(ft,n),u=Ln(n),{onClose:f}=d;return l.useEffect(()=>(document.addEventListener(vr,f),()=>document.removeEventListener(vr,f)),[f]),l.useEffect(()=>{if(d.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(d.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,f]),i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:i.jsxs(qr,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.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:[i.jsx(jm,{children:r}),i.jsx(Mm,{scope:n,isInside:!0,children:i.jsx(Eu,{id:d.contentId,role:"tooltip",children:o||r})})]})})});sc.displayName=ft;var ic="TooltipArrow",cc=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ln(n);return Pm(ic,n).isInside?null:i.jsx(Kr,{...o,...r,ref:t})});cc.displayName=ic;function Am(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Nm(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function _m(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Im(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],d=t[a],u=c.x,f=c.y,p=d.x,h=d.y;f>r!=h>r&&n<(p-u)*(r-f)/(h-f)+u&&(o=!o)}return o}function Om(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Lm(t)}function Lm(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ox=tc,sx=nc,ax=rc,ix=oc,cx=sc,lx=cc;const ao="-",Dm=e=>{const t=$m(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const c=a.split(ao);return c[0]===""&&c.length!==1&&c.shift(),lc(c,t)||Fm(a)},getConflictingClassGroupIds:(a,c)=>{const d=n[a]||[];return c&&r[a]?[...d,...r[a]]:d}}},lc=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?lc(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(ao);return(a=t.validators.find(({validator:c})=>c(s)))==null?void 0:a.classGroupId},es=/^\[(.+)\]$/,Fm=e=>{if(es.test(e)){const t=es.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},$m=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Hm(Object.entries(e.classGroups),n).forEach(([s,a])=>{xr(a,r,s,t)}),r},xr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ts(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Um(o)){xr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{xr(a,ts(t,s),n,r)})})},ts=(e,t)=>{let n=e;return t.split(ao).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Um=e=>e.isThemeGetter,Hm=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,c])=>[t+a,c])):s);return[n,o]}):e,Bm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},uc="!",zm=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,a=c=>{const d=[];let u=0,f=0,p;for(let v=0;v<c.length;v++){let b=c[v];if(u===0){if(b===o&&(r||c.slice(v,v+s)===t)){d.push(c.slice(f,v)),f=v+s;continue}if(b==="/"){p=v;continue}}b==="["?u++:b==="]"&&u--}const h=d.length===0?c:c.substring(f),g=h.startsWith(uc),x=g?h.substring(1):h,m=p&&p>f?p-f:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:m}};return n?c=>n({className:c,parseClassName:a}):a},Wm=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Vm=e=>({cache:Bm(e.cacheSize),parseClassName:zm(e),...Dm(e)}),Gm=/\s+/,qm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(Gm);let c="";for(let d=a.length-1;d>=0;d-=1){const u=a[d],{modifiers:f,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=n(u);let x=!!g,m=r(x?h.substring(0,g):h);if(!m){if(!x){c=u+(c.length>0?" "+c:c);continue}if(m=r(h),!m){c=u+(c.length>0?" "+c:c);continue}x=!1}const v=Wm(f).join(":"),b=p?v+uc:v,C=b+m;if(s.includes(C))continue;s.push(C);const w=o(m,x);for(let E=0;E<w.length;++E){const S=w[E];s.push(b+S)}c=u+(c.length>0?" "+c:c)}return c};function Km(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=dc(t))&&(r&&(r+=" "),r+=n);return r}const dc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=dc(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ym(e,...t){let n,r,o,s=a;function a(d){const u=t.reduce((f,p)=>p(f),e());return n=Vm(u),r=n.cache.get,o=n.cache.set,s=c,c(d)}function c(d){const u=r(d);if(u)return u;const f=qm(d,n);return o(d,f),f}return function(){return s(Km.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},fc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xm=/^\d+\/\d+$/,Zm=new Set(["px","full","screen"]),Jm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qm=/\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$/,eg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ng=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Le=e=>ut(e)||Zm.has(e)||Xm.test(e),Be=e=>bt(e,"length",ug),ut=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>bt(e,"number",ut),Rt=e=>!!e&&Number.isInteger(Number(e)),rg=e=>e.endsWith("%")&&ut(e.slice(0,-1)),q=e=>fc.test(e),ze=e=>Jm.test(e),og=new Set(["length","size","percentage"]),sg=e=>bt(e,og,pc),ag=e=>bt(e,"position",pc),ig=new Set(["image","url"]),cg=e=>bt(e,ig,fg),lg=e=>bt(e,"",dg),Tt=()=>!0,bt=(e,t,n)=>{const r=fc.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ug=e=>Qm.test(e)&&!eg.test(e),pc=()=>!1,dg=e=>tg.test(e),fg=e=>ng.test(e),pg=()=>{const e=se("colors"),t=se("spacing"),n=se("blur"),r=se("brightness"),o=se("borderColor"),s=se("borderRadius"),a=se("borderSpacing"),c=se("borderWidth"),d=se("contrast"),u=se("grayscale"),f=se("hueRotate"),p=se("invert"),h=se("gap"),g=se("gradientColorStops"),x=se("gradientColorStopPositions"),m=se("inset"),v=se("margin"),b=se("opacity"),C=se("padding"),w=se("saturate"),E=se("scale"),S=se("sepia"),M=se("skew"),k=se("space"),A=se("translate"),D=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",q,t],_=()=>[q,t],Y=()=>["",Le,Be],U=()=>["auto",ut,q],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",q],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>[ut,q];return{cacheSize:500,separator:":",theme:{colors:[Tt],spacing:[Le,Be],blur:["none","",ze,q],brightness:y(),borderColor:[e],borderRadius:["none","","full",ze,q],borderSpacing:_(),borderWidth:Y(),contrast:y(),grayscale:j(),hueRotate:y(),invert:j(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[rg,Be],inset:H(),margin:H(),opacity:y(),padding:_(),saturate:y(),scale:y(),sepia:j(),skew:y(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[ze]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),q]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rt,q]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Rt,q]}],"grid-cols":[{"grid-cols":[Tt]}],"col-start-end":[{col:["auto",{span:["full",Rt,q]},q]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[Tt]}],"row-start-end":[{row:["auto",{span:[Rt,q]},q]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[ze]},ze]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ze,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tr]}],"font-family":[{font:[Tt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",ut,tr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Le,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Le,Be]}],"underline-offset":[{"underline-offset":["auto",Le,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),ag]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[Le,q]}],"outline-w":[{outline:[Le,Be]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Le,Be]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ze,lg]}],"shadow-color":[{shadow:[Tt]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ze,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:y()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:y()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Rt,q]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Le,Be,tr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},hg=Ym(pg);function we(...e){return hg(Ss(e))}const mg=Pr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{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:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input 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 rounded-md gap-1.5 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 gg({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const s=r?Rs:"button";return i.jsx(s,{"data-slot":"button","data-variant":t,"data-size":n,className:we(mg({variant:t,size:n,className:e})),...o})}const io="@rulemetric/cli",vg=`npm install -g ${io}`,ux=`npm install -g ${io}@latest`,dx=`npm i -g ${io}@latest`,yg=Pr("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 [button&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 [button&]:hover:bg-secondary/90",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 [button&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [button&]:hover:bg-accent [button&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground [button&]:hover:bg-accent [button&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline [button&]:hover:underline"}},defaultVariants:{variant:"default"}});function co({className:e,variant:t="default",asChild:n=!1,...r}){const o=n?Rs:"span";return i.jsx(o,{"data-slot":"badge","data-variant":t,className:we(yg({variant:t}),e),...r})}function xg(e=2e3){const[t,n]=l.useState(!1),r=l.useCallback(async o=>{const s=()=>{n(!0),setTimeout(()=>n(!1),e)};try{return await navigator.clipboard.writeText(o),s(),!0}catch{try{const a=document.createElement("textarea");return a.value=o,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),s(),!0}catch{return!1}}},[e]);return{copied:t,copy:r}}function ge({className:e,...t}){return i.jsx("div",{"data-slot":"card",className:we("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function fx({className:e,...t}){return i.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",e),...t})}function px({className:e,...t}){return i.jsx("div",{"data-slot":"card-title",className:we("leading-none font-semibold",e),...t})}function hx({className:e,...t}){return i.jsx("div",{"data-slot":"card-description",className:we("text-muted-foreground text-sm",e),...t})}function ve({className:e,...t}){return i.jsx("div",{"data-slot":"card-content",className:we("px-6",e),...t})}function mx({className:e,...t}){return i.jsx("div",{"data-slot":"card-footer",className:we("flex items-center px-6 [.border-t]:pt-6",e),...t})}function hc({className:e,orientation:t="horizontal",...n}){return i.jsx(ym,{"data-slot":"tabs","data-orientation":t,orientation:t,className:we("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...n})}const bg=Pr("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit max-w-full items-center justify-center group-data-[orientation=horizontal]/tabs:overflow-x-auto group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function mc({className:e,variant:t="default",...n}){return i.jsx(xm,{"data-slot":"tabs-list","data-variant":t,className:we(bg({variant:t}),e),...n})}function ue({className:e,...t}){return i.jsx(bm,{"data-slot":"tabs-trigger",className:we("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground 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 transition-all cursor-pointer group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 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 [&_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 dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute 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",e),...t})}function de({className:e,...t}){return i.jsx(wm,{"data-slot":"tabs-content",className:we("flex-1 outline-none",e),...t})}function gc(e,t,n="tab"){const[r,o]=Zl(),s=r.get(n);return[s!=null&&e.includes(s)?s:t,d=>{o(u=>{const f=new URLSearchParams(u);return d===t?f.delete(n):f.set(n,d),f},{replace:!0})}]}const wg=[{group:"Auth",commands:[{name:"auth login",desc:"Log in to RuleMetric (email/password)"},{name:"auth create-key",desc:"Create a long-lived API key for hooks and proxy"},{name:"auth revoke-key",desc:"Revoke an API key"},{name:"auth logout",desc:"Log out and clear stored credentials"},{name:"auth status",desc:"Show current auth status"}]},{group:"Instructions",commands:[{name:"instructions list",desc:"List all your instructions"},{name:"import <file>",desc:"Import a CLAUDE.md, .cursorrules, etc."},{name:"catalog",desc:"Browse the org/team instruction catalog"}]},{group:"Sessions",commands:[{name:"sessions list",desc:"List captured sessions (supports --tool, --limit)"},{name:"sessions import <file>",desc:"Import session from JSONL/JSON (auto-detects tool)"}]},{group:"Hooks",commands:[{name:"hooks install",desc:"Install session tracking hooks in current project"},{name:"hooks install --global",desc:"Install hooks for all projects"},{name:"hooks uninstall",desc:"Remove hooks from current project"},{name:"hooks run <name>",desc:"Execute a hook script (called by AI tools)"}]},{group:"Evals",commands:[{name:"evals create <target-id>",desc:"Create eval test cases for a target"},{name:"evals run <target-id>",desc:"Execute evals (with/without target, grading)"},{name:"evals benchmark <target-id>",desc:"Aggregate runs into statistical benchmarks"},{name:"evals optimize <target-id>",desc:"Iteratively optimize instruction content"},{name:"evals optimize-description <target-id>",desc:"Optimize trigger description using queries"},{name:"evals compare <a-id> <b-id>",desc:"Blind A/B comparison between two targets"},{name:"evals agent",desc:"Run the worker in the foreground (one-off)"}]},{group:"Proxy",commands:[{name:"proxy start",desc:"Start the mitmproxy context sniffer"},{name:"proxy stop",desc:"Stop mitmproxy (gateway stays alive)"},{name:"proxy status",desc:"Check gateway and proxy health"}]},{group:"Worker / Service",commands:[{name:"service install --worker-only",desc:"Install the worker as a persistent service (launchd/systemd) — no repo needed"},{name:"service status",desc:"Check installed RuleMetric services"},{name:"service uninstall",desc:"Remove installed RuleMetric services"}]}],Cg=[{group:"Instructions",endpoints:[{method:"GET",path:"/api/instructions",desc:"List instructions (supports ?scope=, ?search=)"},{method:"POST",path:"/api/instructions",desc:"Create a new instruction"},{method:"GET",path:"/api/instructions/:id",desc:"Get instruction by ID"},{method:"PUT",path:"/api/instructions/:id",desc:"Update instruction (creates version on content change)"},{method:"DELETE",path:"/api/instructions/:id",desc:"Archive an instruction"}]},{group:"Sessions",endpoints:[{method:"POST",path:"/api/sessions",desc:"Create a new session"},{method:"GET",path:"/api/sessions",desc:"List sessions (?tool, ?outcome, ?friction, ?instructionId, ?projectPath)"},{method:"GET",path:"/api/sessions/:id",desc:"Get session with linked instructions"},{method:"POST",path:"/api/sessions/:id/events",desc:"Append event (atomic sequence assignment)"},{method:"PATCH",path:"/api/sessions/:id/enrich",desc:"Merge metadata, analysis, tokenUsage, externalSessionId"},{method:"POST",path:"/api/sessions/:id/analyze",desc:"AI-powered session analysis"},{method:"POST",path:"/api/sessions/import",desc:"Import from raw content (auto-detects tool)"},{method:"POST",path:"/api/sessions/link-instructions",desc:"Scan snapshots, auto-create + link instructions"}]},{group:"Context Snapshots",endpoints:[{method:"POST",path:"/api/sessions/:id/context-snapshots",desc:"Store captured LLM request snapshot"},{method:"GET",path:"/api/sessions/:id/context-snapshots",desc:"List snapshots (supports ?limit=, ?offset=)"},{method:"GET",path:"/api/context-snapshots/:id",desc:"Get single snapshot"}]},{group:"Eval Targets & Cases",endpoints:[{method:"POST",path:"/api/eval-targets",desc:"Create eval target"},{method:"GET",path:"/api/eval-targets",desc:"List targets (supports ?type=, ?content_hash=)"},{method:"GET",path:"/api/eval-targets/:id",desc:"Get target by ID"},{method:"PUT",path:"/api/eval-targets/:id",desc:"Update target (content change = new version)"},{method:"POST",path:"/api/eval-targets/:id/evals",desc:"Create test case for target"},{method:"GET",path:"/api/eval-targets/:id/evals",desc:"List test cases"}]},{group:"Eval Runs & Benchmarks",endpoints:[{method:"POST",path:"/api/eval-runs",desc:"Create eval run (posted by CLI worker)"},{method:"GET",path:"/api/eval-targets/:id/runs",desc:"List runs (supports ?iteration=, ?limit=)"},{method:"POST",path:"/api/eval-targets/:id/benchmarks",desc:"Create aggregated benchmark"},{method:"GET",path:"/api/eval-targets/:id/benchmarks",desc:"List benchmarks"}]},{group:"Eval Jobs",endpoints:[{method:"POST",path:"/api/eval-jobs",desc:"Create pending eval job (web UI triggers); the local CLI worker claims it via GET /api/work/next"},{method:"GET",path:"/api/eval-targets/:id/jobs",desc:"List jobs for a target"},{method:"PATCH",path:"/api/eval-jobs/:id/progress",desc:"Update job progress"},{method:"PATCH",path:"/api/eval-jobs/:id/state",desc:"Mirror state updates from worker (driven by runner.events)"},{method:"POST",path:"/api/eval-jobs/:id/cancel",desc:"Cancel a pending job"}]},{group:"Eval from Context",endpoints:[{method:"POST",path:"/api/eval-from-context",desc:"Find-or-create target + auto-generate evals + create job"}]},{group:"Eval Conversations",endpoints:[{method:"POST",path:"/api/eval-targets/:id/conversations",desc:"Get-or-create chat conversation"},{method:"POST",path:"/api/eval-conversations/:id/messages",desc:"Send user message (creates worker job)"},{method:"POST",path:"/api/eval-conversations/:id/messages/assistant",desc:"Worker posts assistant message"},{method:"POST",path:"/api/eval-conversations/:id/apply-proposal",desc:"Apply proposed content changes"}]},{group:"Insights",endpoints:[{method:"GET",path:"/api/insights/compute",desc:"Live aggregation (?projectPath, ?since, ?until)"},{method:"GET",path:"/api/insights/instruction-impact",desc:"With-vs-without comparison (?instructionId)"}]},{group:"API Keys",endpoints:[{method:"GET",path:"/api/auth/api-keys",desc:"List API keys for current user"},{method:"POST",path:"/api/auth/api-keys",desc:"Create new API key (returns key once)"},{method:"DELETE",path:"/api/auth/api-keys/:id",desc:"Revoke an API key"}]},{group:"Worker Status",endpoints:[{method:"POST",path:"/api/workers/heartbeat",desc:"Upsert worker connection heartbeat"},{method:"GET",path:"/api/workers/status",desc:"List all worker connections for user"}]}],Eg={GET:"text-teal-500 bg-teal-500/10 border-teal-500/20",POST:"text-blue-500 bg-blue-500/10 border-blue-500/20",PUT:"text-amber-500 bg-amber-500/10 border-amber-500/20",PATCH:"text-pink-500 bg-pink-500/10 border-pink-500/20",DELETE:"text-red-500 bg-red-500/10 border-red-500/20"},it=window.location.origin;function kg({text:e}){const{copied:t,copy:n}=xg();return i.jsx(gg,{variant:"ghost",size:"sm",onClick:()=>n(e),className:"cursor-pointer h-7 text-xs",children:t?i.jsxs(i.Fragment,{children:[i.jsx(iu,{className:"mr-1 h-3 w-3"}),"Copied"]}):i.jsxs(i.Fragment,{children:[i.jsx(lu,{className:"mr-1 h-3 w-3"}),"Copy"]})})}function Z({label:e,code:t}){return i.jsxs("div",{className:"relative",children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:e}),i.jsx(kg,{text:t})]}),i.jsx("pre",{className:"overflow-auto rounded-lg border border-border bg-[#0B1120] p-4 text-sm font-mono whitespace-pre-wrap",children:t})]})}function te({title:e,children:t}){return i.jsxs("div",{className:"space-y-3",children:[i.jsx("h3",{className:"text-lg font-mono font-semibold tracking-tight",children:e}),t]})}function Sg(){const[e,t]=gc(["claude-code","cursor","copilot","antigravity","windsurf","other"],"claude-code","tool");return i.jsxs("div",{className:"space-y-8",children:[i.jsxs(te,{title:"1. Sign Up & Log In",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Create an account on this dashboard, then authenticate the CLI:"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Rather keep everything on your own machine?"," ",i.jsx(gn,{to:"/docs?tab=local",className:"text-primary hover:underline",children:"Local Mode"})," ","runs the same product with no cloud contact — no account required."]}),i.jsx(Z,{label:"Terminal",code:`# Install the CLI
644
629
  ${vg}
645
630
 
646
631
  # Log in (email/password prompt)
@@ -735,7 +720,7 @@ rulemetric skills install <id>`}),i.jsx("p",{className:"text-sm text-muted-foreg
735
720
  └── Tools: list, search, catalog, recommend
736
721
  |
737
722
  v
738
- RuleMetric API → Supabase DB → Web Dashboard`})})})]})}function Rg(){return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["All commands are prefixed with ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"rulemetric"}),". Use ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"--help"})," on any command for full options."]}),wg.map(e=>i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:e.group}),i.jsx("div",{className:"grid gap-2",children:e.commands.map(t=>i.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border bg-background p-3",children:[i.jsx("code",{className:"font-mono text-xs bg-muted px-2 py-1 rounded shrink-0",children:t.name}),i.jsx("span",{className:"text-sm text-muted-foreground",children:t.desc})]},t.name))})]},e.group))]})}function Mg(){return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["All API endpoints require authentication via ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"Authorization: Bearer <api-key-or-jwt>"})," header. Use an API key (",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"rm_..."}),") for CLI/proxy or a Supabase JWT for web sessions. Base URL: ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:it})]}),Cg.map(e=>i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:e.group}),i.jsx("div",{className:"grid gap-1.5",children:e.endpoints.map(t=>i.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-background px-3 py-2",children:[i.jsx(co,{variant:"outline",className:`font-mono text-xs w-14 justify-center shrink-0 ${kg[t.method]??""}`,children:t.method}),i.jsx("code",{className:"font-mono text-xs shrink-0",children:t.path}),i.jsx(Cs,{className:"h-3 w-3 text-muted-foreground shrink-0"}),i.jsx("span",{className:"text-sm text-muted-foreground truncate",children:t.desc})]},`${t.method}-${t.path}`))})]},e.group))]})}function Tg(){return i.jsxs("div",{className:"space-y-8",children:[i.jsxs(te,{title:"Overview",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["The eval system measures whether your instructions actually improve AI behavior. It compares AI output ",i.jsx("strong",{children:"with"})," vs ",i.jsx("strong",{children:"without"})," your instruction, grades against expectations, and tracks quality over time."]}),i.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-4",children:i.jsx("pre",{className:"text-xs font-mono text-muted-foreground whitespace-pre overflow-x-auto",children:`Instruction (eval target)
723
+ RuleMetric API → Supabase DB → Web Dashboard`})})})]})}function Rg(){return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["All commands are prefixed with ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"rulemetric"}),". Use ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"--help"})," on any command for full options."]}),wg.map(e=>i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:e.group}),i.jsx("div",{className:"grid gap-2",children:e.commands.map(t=>i.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border bg-background p-3",children:[i.jsx("code",{className:"font-mono text-xs bg-muted px-2 py-1 rounded shrink-0",children:t.name}),i.jsx("span",{className:"text-sm text-muted-foreground",children:t.desc})]},t.name))})]},e.group))]})}function Tg(){return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["All API endpoints require authentication via ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"Authorization: Bearer <api-key-or-jwt>"})," header. Use an API key (",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"rm_..."}),") for CLI/proxy or a Supabase JWT for web sessions. Base URL: ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:it})]}),Cg.map(e=>i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:e.group}),i.jsx("div",{className:"grid gap-1.5",children:e.endpoints.map(t=>i.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-background px-3 py-2",children:[i.jsx(co,{variant:"outline",className:`font-mono text-xs w-14 justify-center shrink-0 ${Eg[t.method]??""}`,children:t.method}),i.jsx("code",{className:"font-mono text-xs shrink-0",children:t.path}),i.jsx(Cs,{className:"h-3 w-3 text-muted-foreground shrink-0"}),i.jsx("span",{className:"text-sm text-muted-foreground truncate",children:t.desc})]},`${t.method}-${t.path}`))})]},e.group))]})}function Mg(){return i.jsxs("div",{className:"space-y-8",children:[i.jsxs(te,{title:"Overview",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["The eval system measures whether your instructions actually improve AI behavior. It compares AI output ",i.jsx("strong",{children:"with"})," vs ",i.jsx("strong",{children:"without"})," your instruction, grades against expectations, and tracks quality over time."]}),i.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-4",children:i.jsx("pre",{className:"text-xs font-mono text-muted-foreground whitespace-pre overflow-x-auto",children:`Instruction (eval target)
739
724
  |
740
725
  ├── Test Cases (evals) — prompts + expectations
741
726
  | |
@@ -794,7 +779,7 @@ RULEMETRIC_API_URL=http://localhost:3000 rulemetric auth login
794
779
 
795
780
  rulemetric hooks install`})]})})}),i.jsx(te,{title:"4. Guarantee zero cloud egress",children:i.jsx(ge,{children:i.jsxs(ve,{className:"pt-6 space-y-3",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Strict mode turns every ",i.jsx("em",{children:"implicit"})," fallback to"," ",i.jsx("code",{className:"bg-muted px-1 rounded",children:"https://rulemetric.com"})," into a loud failure instead of a silent upload — across the CLI, hooks, the error beacon, and the proxy reporter. A URL you configured explicitly always satisfies it."]}),i.jsx(Z,{label:"strict local",code:"echo 'RULEMETRIC_STRICT_LOCAL=1' >> ~/.config/rulemetric/env"})]})})}),i.jsx(te,{title:"5. Stop, restart, or wipe",children:i.jsx(Z,{label:"lifecycle",code:`rulemetric local down # stop; your data stays on disk
796
781
  rulemetric local up # pick it back up
797
- rulemetric local down --delete-data # stop and delete the local database (irreversible)`})})]})}function Ng(){return i.jsxs("div",{className:"space-y-8",children:[i.jsx(te,{title:"Data Retention Policy",children:i.jsx(ge,{children:i.jsxs(ve,{className:"pt-6 space-y-3",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["RuleMetric captures AI coding sessions to measure which instructions actually work. That data is yours: it is ",i.jsx("strong",{children:"retained until you delete it"})," — there is no silent expiry of session content, because longitudinal measurement is the product. Deletion is self-serve, immediate, and complete."]}),i.jsxs(gn,{to:"/docs?tab=local",className:"group flex items-center gap-2 rounded-lg border border-primary/40 bg-primary/[0.06] px-3 py-2 no-underline transition-colors hover:bg-primary/[0.1]",children:[i.jsx(ks,{className:"h-4 w-4 shrink-0 text-primary"}),i.jsx("span",{className:"min-w-0 flex-1 text-sm",children:"Prefer none of this to leave your machine? Run RuleMetric fully locally."}),i.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-sm font-medium text-primary",children:["Local Mode",i.jsx(Cs,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]})]})})}),i.jsx(te,{title:"What is stored, and for how long",children:i.jsx(ge,{children:i.jsx(ve,{className:"pt-6 space-y-4",children:i.jsxs("div",{className:"space-y-3 text-sm text-muted-foreground",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Session content — kept until you delete it"}),i.jsx("p",{children:"Events (your prompts, assistant responses, tool calls), context snapshots (system prompts, injected instructions), and offloaded conversation blobs. No automatic expiry."})]}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Derived data — documented separately, survives session deletion"}),i.jsxs("p",{children:["Effectiveness statistics, distilled memories, and eval baselines are ",i.jsx("em",{children:"derived from"})," sessions. Aggregates (pass rates, outcome deltas) contain no transcript text and are retained independently. Text-bearing derived artifacts (memories, suggestion reasons, eval targets) can be deleted individually, and account deletion removes all of them."]})]}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Operational telemetry — 12 months"}),i.jsx("p",{children:"Setup events, error beacons, and usage-limit observations are pruned after 12 months. They contain command names and error codes, not session content."})]}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Backups — 7 days"}),i.jsx("p",{children:"The database is backed up daily with a 7-day retention window. Deleted data leaves all backups within 7 days of deletion."})]})]})})})}),i.jsx(te,{title:"Deleting your data",children:i.jsx(ge,{children:i.jsxs(ve,{className:"pt-6 space-y-4",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Session deletion removes the session and everything stored under it — events, context snapshots, and offloaded storage blobs (blobs are content-addressed and shared, so removal is reference-counted: nothing another session needs is touched, nothing yours had is left behind). The command reports exactly what was erased."}),i.jsx(Z,{label:"Delete sessions (CLI ≥ 0.7.39)",code:`# One or more sessions by id
782
+ rulemetric local down --delete-data # stop and delete the local database (irreversible)`})})]})}function Ng(){return i.jsxs("div",{className:"space-y-8",children:[i.jsx(te,{title:"Data Retention Policy",children:i.jsx(ge,{children:i.jsxs(ve,{className:"pt-6 space-y-3",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["RuleMetric captures AI coding sessions to measure which instructions actually work. That data is yours: it is ",i.jsx("strong",{children:"retained until you delete it"})," — there is no silent expiry of session content, because longitudinal measurement is the product. Deletion is self-serve, immediate, and complete."]}),i.jsxs(gn,{to:"/docs?tab=local",className:"group flex items-center gap-2 rounded-lg border border-primary/40 bg-primary/[0.06] px-3 py-2 no-underline transition-colors hover:bg-primary/[0.1]",children:[i.jsx(Es,{className:"h-4 w-4 shrink-0 text-primary"}),i.jsx("span",{className:"min-w-0 flex-1 text-sm",children:"Prefer none of this to leave your machine? Run RuleMetric fully locally."}),i.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-sm font-medium text-primary",children:["Local Mode",i.jsx(Cs,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]})]})})}),i.jsx(te,{title:"What is stored, and for how long",children:i.jsx(ge,{children:i.jsx(ve,{className:"pt-6 space-y-4",children:i.jsxs("div",{className:"space-y-3 text-sm text-muted-foreground",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Session content — kept until you delete it"}),i.jsx("p",{children:"Events (your prompts, assistant responses, tool calls), context snapshots (system prompts, injected instructions), and offloaded conversation blobs. No automatic expiry."})]}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Derived data — documented separately, survives session deletion"}),i.jsxs("p",{children:["Effectiveness statistics, distilled memories, and eval baselines are ",i.jsx("em",{children:"derived from"})," sessions. Aggregates (pass rates, outcome deltas) contain no transcript text and are retained independently. Text-bearing derived artifacts (memories, suggestion reasons, eval targets) can be deleted individually, and account deletion removes all of them."]})]}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Operational telemetry — 12 months"}),i.jsx("p",{children:"Setup events, error beacons, and usage-limit observations are pruned after 12 months. They contain command names and error codes, not session content."})]}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Backups — 7 days"}),i.jsx("p",{children:"The database is backed up daily with a 7-day retention window. Deleted data leaves all backups within 7 days of deletion."})]})]})})})}),i.jsx(te,{title:"Deleting your data",children:i.jsx(ge,{children:i.jsxs(ve,{className:"pt-6 space-y-4",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Session deletion removes the session and everything stored under it — events, context snapshots, and offloaded storage blobs (blobs are content-addressed and shared, so removal is reference-counted: nothing another session needs is touched, nothing yours had is left behind). The command reports exactly what was erased."}),i.jsx(Z,{label:"Delete sessions (CLI ≥ 0.7.39)",code:`# One or more sessions by id
798
783
  rulemetric sessions delete <session-id>
799
784
 
800
785
  # Everything captured under a project (bulk scrub)
@@ -804,4 +789,4 @@ rulemetric capture scope --tool hooks --off
804
789
 
805
790
  # The worker's Codex transcript sweep
806
791
  rulemetric capture scope --add ~/work/client-a
807
- rulemetric capture scope --off`}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"One honest caveat: the optional mitmproxy network-capture chain is governed by its host allowlist, not by these scopes. Hooks-first capture (the default) is fully governed."})]})})})]})}function xx(){const[e,t]=gc(["getting-started","cli","api","evals","proxy","insights","data","local"],"getting-started");return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-mono font-bold tracking-tight",children:"Documentation"}),i.jsx("p",{className:"text-muted-foreground",children:"Guides, CLI reference, API reference, and system documentation"})]}),i.jsxs(hc,{value:e,onValueChange:t,children:[i.jsxs(mc,{children:[i.jsxs(ue,{value:"getting-started",className:"cursor-pointer",children:[i.jsx(au,{className:"mr-2 h-4 w-4"}),"Quick Start"]}),i.jsxs(ue,{value:"cli",className:"cursor-pointer",children:[i.jsx(pu,{className:"mr-2 h-4 w-4"}),"CLI Reference"]}),i.jsxs(ue,{value:"api",className:"cursor-pointer",children:[i.jsx(cu,{className:"mr-2 h-4 w-4"}),"API Reference"]}),i.jsxs(ue,{value:"evals",className:"cursor-pointer",children:[i.jsx(uu,{className:"mr-2 h-4 w-4"}),"Eval System"]}),i.jsxs(ue,{value:"proxy",className:"cursor-pointer",children:[i.jsx(du,{className:"mr-2 h-4 w-4"}),"Proxy & Context"]}),i.jsxs(ue,{value:"insights",className:"cursor-pointer",children:[i.jsx(hu,{className:"mr-2 h-4 w-4"}),"Insights"]}),i.jsxs(ue,{value:"local",className:"cursor-pointer",children:[i.jsx(ks,{className:"mr-2 h-4 w-4"}),"Local Mode"]}),i.jsxs(ue,{value:"data",className:"cursor-pointer",children:[i.jsx(fu,{className:"mr-2 h-4 w-4"}),"Data & Retention"]})]}),i.jsx(de,{value:"getting-started",className:"mt-6",children:i.jsx(Sg,{})}),i.jsx(de,{value:"cli",className:"mt-6",children:i.jsx(Rg,{})}),i.jsx(de,{value:"api",className:"mt-6",children:i.jsx(Mg,{})}),i.jsx(de,{value:"evals",className:"mt-6",children:i.jsx(Tg,{})}),i.jsx(de,{value:"proxy",className:"mt-6",children:i.jsx(Pg,{})}),i.jsx(de,{value:"insights",className:"mt-6",children:i.jsx(jg,{})}),i.jsx(de,{value:"local",className:"mt-6",children:i.jsx(Ag,{})}),i.jsx(de,{value:"data",className:"mt-6",children:i.jsx(Ng,{})})]})]})}export{Ay as $,$g as A,gg as B,av as C,gv as D,Gy as E,uu as F,Pv as G,Wy as H,_v as I,Dy as J,Fy as K,Fv as L,zv as M,Og as N,Vv as O,Xv as P,Py as Q,We as R,iy as S,my as T,_y as U,Ly as V,Iy as W,Sy as X,Oy as Y,jy as Z,My as _,kc as a,vv as a$,Ny as a0,Er as a1,Xg as a2,tv as a3,ov as a4,fv as a5,qg as a6,Yg as a7,Bv as a8,by as a9,cu as aA,hy as aB,Tv as aC,qy as aD,Zl as aE,ge as aF,mx as aG,gx as aH,vx as aI,ve as aJ,yx as aK,ix as aL,cx as aM,lx as aN,ux as aO,dx as aP,fx as aQ,Wv as aR,Mv as aS,pv as aT,kv as aU,Cs as aV,gc as aW,hc as aX,mc as aY,ue as aZ,de as a_,Uv as aa,sv as ab,hx as ac,uv as ad,vg as ae,xg as af,iu as ag,lu as ah,px as ai,Nv as aj,Qv as ak,co as al,qv as am,Jv as an,ry as ao,dv as ap,Wg as aq,ev as ar,fu as as,Av as at,ks as au,$v as av,pu as aw,jv as ax,Ry as ay,hv as az,l as b,ky as b0,Cy as b1,Iv as b2,bv as b3,wv as b4,Zv as b5,py as b6,Cv as b7,nv as b8,Gg as b9,iv as bA,Gv as bB,Ey as bC,xv as bD,vy as bE,ny as bF,Kv as bG,ty as bH,Ug as bI,ly as bJ,Zg as bK,gy as bL,lv as bM,Kg as bN,Sv as bO,Qg as bP,wy as bQ,Hv as bR,xy as bS,yv as bT,Bg as bU,mv as bV,yy as bW,oy as bX,Fg as bY,Dg as bZ,wl as b_,Hg as ba,Vg as bb,Ig as bc,zg as bd,Rv as be,cv as bf,Ky as bg,Yy as bh,Zy as bi,Xy as bj,Jy as bk,Qy as bl,ex as bm,tx as bn,rx as bo,nx as bp,ox as bq,rv as br,sx as bs,ey as bt,Ev as bu,Yv as bv,fy as bw,dy as bx,cy as by,xx as bz,mu as c,Is as d,we as e,Lg as f,_g as g,ax as h,Lv as i,i as j,Ov as k,hu as l,Jg as m,Dv as n,uy as o,ay as p,au as q,br as r,gn as s,sy as t,He as u,Uy as v,Hy as w,zy as x,By as y,Vy as z};
792
+ rulemetric capture scope --off`}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"One honest caveat: the optional mitmproxy network-capture chain is governed by its host allowlist, not by these scopes. Hooks-first capture (the default) is fully governed."})]})})})]})}function gx(){const[e,t]=gc(["getting-started","cli","api","evals","proxy","insights","data","local"],"getting-started");return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-mono font-bold tracking-tight",children:"Documentation"}),i.jsx("p",{className:"text-muted-foreground",children:"Guides, CLI reference, API reference, and system documentation"})]}),i.jsxs(hc,{value:e,onValueChange:t,children:[i.jsxs(mc,{children:[i.jsxs(ue,{value:"getting-started",className:"cursor-pointer",children:[i.jsx(au,{className:"mr-2 h-4 w-4"}),"Quick Start"]}),i.jsxs(ue,{value:"cli",className:"cursor-pointer",children:[i.jsx(pu,{className:"mr-2 h-4 w-4"}),"CLI Reference"]}),i.jsxs(ue,{value:"api",className:"cursor-pointer",children:[i.jsx(cu,{className:"mr-2 h-4 w-4"}),"API Reference"]}),i.jsxs(ue,{value:"evals",className:"cursor-pointer",children:[i.jsx(uu,{className:"mr-2 h-4 w-4"}),"Eval System"]}),i.jsxs(ue,{value:"proxy",className:"cursor-pointer",children:[i.jsx(du,{className:"mr-2 h-4 w-4"}),"Proxy & Context"]}),i.jsxs(ue,{value:"insights",className:"cursor-pointer",children:[i.jsx(hu,{className:"mr-2 h-4 w-4"}),"Insights"]}),i.jsxs(ue,{value:"local",className:"cursor-pointer",children:[i.jsx(Es,{className:"mr-2 h-4 w-4"}),"Local Mode"]}),i.jsxs(ue,{value:"data",className:"cursor-pointer",children:[i.jsx(fu,{className:"mr-2 h-4 w-4"}),"Data & Retention"]})]}),i.jsx(de,{value:"getting-started",className:"mt-6",children:i.jsx(Sg,{})}),i.jsx(de,{value:"cli",className:"mt-6",children:i.jsx(Rg,{})}),i.jsx(de,{value:"api",className:"mt-6",children:i.jsx(Tg,{})}),i.jsx(de,{value:"evals",className:"mt-6",children:i.jsx(Mg,{})}),i.jsx(de,{value:"proxy",className:"mt-6",children:i.jsx(Pg,{})}),i.jsx(de,{value:"insights",className:"mt-6",children:i.jsx(jg,{})}),i.jsx(de,{value:"local",className:"mt-6",children:i.jsx(Ag,{})}),i.jsx(de,{value:"data",className:"mt-6",children:i.jsx(Ng,{})})]})]})}export{My as $,$g as A,gg as B,av as C,gv as D,zy as E,uu as F,jv as G,Hy as H,Nv as I,Iy as J,Oy as K,Dv as L,Uv as M,Og as N,zv as O,Kv as P,Ry as Q,We as R,sy as S,fy as T,jy as U,_y as V,Ay as W,Cy as X,Ny as Y,Ty as Z,ky as _,Ec as a,wv as a$,Py as a0,kr as a1,Xg as a2,tv as a3,ov as a4,pv as a5,qg as a6,Yg as a7,Hv as a8,vy as a9,hx as aA,ve as aB,mx as aC,ox as aD,sx as aE,ax as aF,ix as aG,cx as aH,lx as aI,Ey as aJ,Bv as aK,cu as aL,ev as aM,Tv as aN,hv as aO,Ev as aP,Cs as aQ,gc as aR,hc as aS,mc as aT,ue as aU,de as aV,vv as aW,by as aX,xy as aY,_v as aZ,bv as a_,Fv as aa,sv as ab,dx as ac,dv as ad,vg as ae,xg as af,iu as ag,lu as ah,ux as ai,Av as aj,Zv as ak,co as al,Vv as am,Xv as an,ty as ao,fv as ap,Wg as aq,cv as ar,Sv as as,Mv as at,Pv as au,Wy as av,Zl as aw,ge as ax,fx as ay,px as az,l as b,Yv as b0,dy as b1,pu as b2,Cv as b3,nv as b4,Gg as b5,Hg as b6,Vg as b7,Ig as b8,Bg as b9,hy as bA,ey as bB,Gv as bC,Qv as bD,Ug as bE,iy as bF,Zg as bG,py as bH,uv as bI,Kg as bJ,Qg as bK,yy as bL,$v as bM,gy as bN,yv as bO,zg as bP,mv as bQ,my as bR,ny as bS,Fg as bT,Dg as bU,wl as bV,Rv as ba,lv as bb,Vy as bc,Gy as bd,Ky as be,qy as bf,Yy as bg,Xy as bh,Zy as bi,Jy as bj,ex as bk,Qy as bl,tx as bm,rv as bn,nx as bo,Jv as bp,kv as bq,qv as br,uy as bs,ly as bt,ay as bu,gx as bv,iv as bw,Wv as bx,wy as by,xv as bz,mu as c,Is as d,we as e,Lg as f,_g as g,rx as h,Ov as i,i as j,Iv as k,hu as l,Jg as m,Lv as n,cy as o,oy as p,au as q,br as r,gn as s,ry as t,He as u,Dy as v,Fy as w,$y as x,Uy as y,By as z};